2006-06-15 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2
3         * TextControl.cs:
4           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
5           - Undo(): Added replay of cursor move on DeleteChars action; added
6             calling Undo() again if a recorded cursor move is invalid (to
7             ensure that some action is performed on Undo)
8         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
9
10 2006-06-16  Jackson Harper  <jackson@ximian.com>
11
12         * MdiClient.cs: Instead of just sizing maximized windows when
13         there is a resize we also have to adjust the Y of minimized
14         windows, so they stay pinned to the bottom of the mdi container.
15         - Eliminate separate tracking of the active control, we can just
16         get this from the controls collection.
17         - Paint the decorations for the newly activated titlebar so we get
18         a pretty blue bar.
19         * InternalWindowManager.cs:
20         * ThemeWin32Classic.cs: Minimized windows get all three buttons
21         even if they are a tool window.
22         
23 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
24
25         * TextControl.cs (Undo): Handle non-existent cursor locations in the
26           undo buffer, these can happen when text was deleted and the cursor
27           was recorded first. Since we will also have a recorded cursor
28           after the delete this is not an issue. (Fixes #78651)
29
30 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
31
32         * AccessibleObject.cs: Remove dependence on Control.is_selected;
33           instead properly track control states internally (allows us to
34           remove is_selected from Control)
35
36 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
37
38         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
39         whose width is not a multiple of 8.
40
41 2006-06-13  Jackson Harper  <jackson@ximian.com>
42
43         * MdiClient.cs:  Only maximize the next child if the current one
44         is maximized.
45
46 2006-06-13  Chris Toshok  <toshok@ximian.com>
47
48         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
49         modified.  Also, guard against grid or grid_drawing being null in
50         Invalidate.
51
52         * DataGrid.cs: Reformat tons of getters/setters.  In the
53         DataMember setter, just call SetNewDataSource instead of
54         duplicating some of its functionality.  In SetNewDataSource, don't
55         check ListManager for null, since the property getter creates the
56         object if needed.
57
58         * DataGridTableStyle.cs: don't set TableStyle or call
59         SetDataGridInternal on the column here, it's done in
60         GridColumnStylesCollection.Add.
61
62         * GridColumnStylesCollection.cs: fix all the explicit interface
63         implementations to just call our methods.  Nuke AddInternal() and
64         move the body of it to Add().  Also, add a call to
65         column.SetDataGridInternal to Add().
66
67         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
68         base()+duplicate code.  Also, use the Format property instead of
69         format to generate an Invalidate ala MS.  Lastly, create the
70         textbox here, unconditionally.
71         (set_Format): call Invalidate.
72         (get_TextBox): no need to call EnsureTextBox.
73         (Commit): remove the message box.
74         (Edit) remove the call to EnsureTextBox.
75         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
76         (EnterNullValue): no need to check textbox for null.
77         (HideEditBox): no need to check textbox for null.
78         (SetDataGridInColumn): add the textbox to the grid's controls.
79         (EnsureTextBox): nuke.
80         
81 2006-06-13  Jackson Harper  <jackson@ximian.com>
82
83         * MdiWindowManager.cs: Hook up to the maximized menus paint event
84         and redraw the buttons when needed. Unhook when the window is
85         unmaximized.
86         * MainMenu.cs: Add an internal Paint event, the mdi window manager
87         needs this so that it can redraw its buttons when the menu is
88         repainted.
89         * InternalWindowManager.cs:
90         * Form.cs: The method order has changed for DrawMaximizedButtons,
91         so that it can be a PaintEventHandler.
92         
93 2006-06-13  Jackson Harper  <jackson@ximian.com>
94
95         * MdiClient.cs: When we close a maximized mdi window, the next mdi
96         window is activated and maximized, even if it wasn't before.
97         - When  a new window is activated repaint the decorations of the
98         old one, so that it no longer has the Active "look" (the blue
99         titlebar).
100         * InternalWindowManager.cs: Open up CreateButtons to base classes
101         so they can recreate the buttons on state changes.
102         - If a window is maximized give it all three buttons
103         * MdiWindowManager.cs: Create the titlebar buttons when the state
104         is changed, this is needed because a toolwindow will not have all
105         three buttons until it is maximized.
106
107 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
108
109         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
110           Fixed bug #78609.
111
112 2006-06-12  Jackson Harper  <jackson@ximian.com>
113
114         * KeysConverter.cs: Make sure we handle the Ctrl special case
115         if its the only key.
116         
117 2006-06-12  Jackson Harper  <jackson@ximian.com>
118
119         * Theme.cs: Add a method to get the size of a managed window
120         toolbar button.
121         * InternalWindowManager.cs: Remove the ButtonSize property, this
122         should be retrieved from the theme.
123         * MdiWindowManager.cs: Get the button size from the theme
124         * ThemeWin32Classic.cs: Make the method to get the managed window
125         titlebar button size public.
126         - Handle the different button sizes of maximized toolwindows
127         (should match any maximized window).
128         - Get the titlebar height from the theme, not the WM (which gets
129         it from the theme).
130
131 2006-06-12  Jackson Harper  <jackson@ximian.com>
132
133         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
134         event down to the mdi window manager.
135         - Expose some extra stuff to base classes
136         - Make sure to end the Capture on an NC Mouse up, so that we can
137         get double clicks properly, and the sizing doens't stick.
138         - When doing PointToClient contain it in the workable desktop
139         area, this prevents windows from changing size when the cursor is
140         pulled outside of the working area while sizing.
141         * MdiWindowManager.cs: When we get a double click maximize the
142         window.
143         - Reset the cursor after handling mode changes.
144
145 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
146
147         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
148           current desktop, instead of just assuming a 0, 0 origin. This
149           is needed for our internal window manager, to know the top
150           margin of the desktop
151
152 2006-06-12  Chris Toshok  <toshok@ximian.com>
153
154         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
155         we need this to get rid of the selected background in the bool
156         column.
157         (CancelEditing): move the ConcedeFocus call to above the Abort
158         call.  Also, set is_changing to false and invalidate the row
159         header if we were changing before.
160         (ProcessKeyPreviewInternal): remove, since noone outside this
161         class calls it anymore.  Roll the code into ProcessKeyPreview.
162         (EndEdit): remove the internal version.
163         (InvalidateCurrentRowHeader): make private.
164
165         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
166         Keys.Escape handling (and with it the last call to
167         DataGrid.EndEdit from outside the class.)
168
169
170 2006-06-12  Chris Toshok  <toshok@ximian.com>
171
172         * DataGridTextBox.cs (.ctor): isedit defaults to false.
173         (OnKeyPress): set isedit to true.
174         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
175         already handled by the grid.
176
177         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
178         right.  ugh.
179         (set_DataSource): SetDataSource always returns true, so stop
180         putting it in an if statement.
181         (EndEdit): get rid of some {}'s
182         (ProcessGridKey): return true in case Keys.Escape.
183         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
184         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
185         PositionChanged, stopped connecting to CurrentChanged.
186         (GetDataSource): simplify this a bunch.
187         (SetDataSource): change return type from bool to void.
188         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
189         to this, and make sure we don't set ListManager.Position inside
190         set_CurrentCell.
191         (OnListManagerItemChanged): if we're passed an actual index,
192         redraw that row.
193
194         * CurrencyManager.cs (set_Position): don't call PullData here.
195
196 2006-06-09  Jackson Harper  <jackson@ximian.com>
197
198         * TreeNode.cs:  Recalculate the visible order before doing the
199         Expand/Collapse Below calls, because those calls generate an
200         expose.
201         - Reduce calls to the TreeView property, which is mildly expensive
202         by using a local var.
203         * Form.cs: Layout the MDI child windows when creating the parent
204         form.
205         - Don't use the internal constructor anymore
206         * MdiClient.cs: use the parent form width/height (if available)
207         when laying out the child windows, we do this because the
208         mdiclient isn't docked yet when the initial layout is done.
209         - Don't need an internal constructor anymore.
210
211 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * FileDialog.cs: handle access errors when trying to create a folder
214         or changing to a directory. No need to initialize out parameters.
215
216 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
217
218         * FileDialog.cs: Append a number when creating a new folder if the
219           folder already exists (use parenthesis instead of square brackets)
220
221 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
222
223         * FileDialog.cs:
224           - Disabled registry support for windows and added better registry
225             error checking for other systems (need to investigate why it
226             works perfectly on my system)
227           - If a folder already exist show an error MessageBox instead of
228             trying to create an indexed name.
229           - Fixed a non intentional typo.
230
231 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
232
233         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
234
235 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
236
237         * FileDialog.cs: When creating a new folder don't crash if the
238           folder already exists.
239
240 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
241
242         * FileDialog.cs: Allmost a complete rewrite.
243           - added a "virtual" file system that handles the differences
244             between unix and windows file systems (especially the directory
245             structure). Moved most of the directory and file handling code
246             into the vfs.
247             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
248             UnixFileSystem and FSEntry.
249           - Recently used folder/directory, size, location and used file names
250             (file name ComboBox) are now stored in the registry and get read
251             before the dialog shows up (fixes part 6 of bug #78446).
252           - Creation of new folders/directories is now possible (context menu
253             or ToolBar). Added TextEntryDialog for this that fills in the gap
254             until ListView.LabelEdit works.
255           - Fixed cursor handling (bug #78527) and focus handling for
256             PopupButtonPanel
257           - Various "Search in" ComboBox enhancements. The content of the
258             dropdown listbox now almost matches ms.
259           - Changed the behaviour when the user switches to SpecialFolder
260             Recent to show the ListView in View.Details.
261           - Beside using the ToolBar to change the View property of the
262             file ListView it is now possible to use the context menu too.
263
264 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
265
266         * ComboBox.cs: Don't create a new ObjectCollection when an item
267           gets inserted. Just insert the item in the existing object_items
268           ArrayList.
269
270 2006-06-08  Jackson Harper  <jackson@ximian.com>
271
272         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
273         that the treeview and root node checks are done also, this fixes a
274         regression i caused in the unit tests.
275
276 2006-06-07  Wade Berrier <wberrier@novell.com> 
277
278         * RichTextBox.cs: More ISO8859-1 -> unicode
279
280 2006-06-07  Mike Kestner  <mkestner@novell.com>
281
282         * ComboBox.cs : use items to hold highlight/selection so that
283         collection insertions don't require synchronization.
284
285 2006-06-07  Jackson Harper  <jackson@ximian.com>
286
287         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
288         routine.  We now always keep the sized edge at the cursor instead
289         of computing movement and adjusting rects.  There is one buglet
290         with this method though when the cursor is moved over area that
291         the window can not expand too (such as the toolbars on the desktop).
292
293 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
294
295         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
296         here. Fixes crash on startup in AlbumSurfer.
297
298 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
299
300         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
301           values
302
303 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
304
305         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
306         statement to avoid calling XNextEvent which will block if another thread
307         took the event that we were expecting. Fixes bug #78605.
308
309 2006-06-07  Mike Kestner  <mkestner@novell.com>
310
311         * ListView.cs : isolated checkbox clicking from the selection logic.
312         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
313
314 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
315
316         * Form.cs: Check that the value passed to Form.DialogResult
317         is a valid enum value.
318
319 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
320
321         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
322         Computer'. Clicking it in the network view goes to 'My Computer'.
323         Added CIFS filesystem type. Display the mount point of filesystems.
324         Avoid duplicate mount points (happens for me with CIFS);
325
326 2006-06-06  Jackson Harper  <jackson@ximian.com>
327
328         * InternalWindowManager.cs: Draw the maximized windows buttons
329         when resizing.
330
331 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
332
333         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
334         all other dialogs. Fixes bug #78585.
335
336 2006-06-06  Mike Kestner  <mkestner@novell.com>
337
338         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
339         Only invalidate checkbox on checkstate changes to avoid flicker.
340         * ListBox.cs : avoid unselect/select when clicking selected item.
341         avoid reselection flicker for already multiselected items.
342         Fixes #78382.
343
344 2006-06-06  Jackson Harper  <jackson@ximian.com>
345
346         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
347         the parent form so that the menu is removed if needed.
348
349 2006-06-06  Mike Kestner  <mkestner@novell.com>
350
351         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
352         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
353
354 2006-06-06  Mike Kestner  <mkestner@novell.com>
355
356         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
357
358
359 2006-06-06  Jackson Harper  <jackson@ximian.com>
360
361         * Control.cs: Use the property (instead of the field) to get the
362         default cursor so it is instantiated correctly.
363         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
364         resizes so we need to manually repaint the window decorations here.
365         - Set the titlebar button locations as soon as they are created,
366         otherwise they are not set correctly on win32.
367         
368 2006-06-06  Chris Toshok  <toshok@ximian.com>
369
370         * CurrencyManager.cs (set_Position): call PullData before
371         OnCurrentChanged.
372         (AddNew): after calling IBindingList.AddNew, update our
373         listposition, and call OnCurrentChanged/OnPositionChanged (without
374         calling PullData).
375         (OnCurrentChanged): remove the call to PullData from here.
376         (OnItemChanged): remove the call to PushData from here.
377         (OnPositionChanged): change the test from == null to != null to
378         match the other methods.
379         (ListChangedHandler): the grossest part of the patch.  Implement
380         this such that it passes the unit tests in CurrencyManagerTest and
381         the output more or less matches that of MS's implementation.
382  
383 2006-06-06  Mike Kestner  <mkestner@novell.com>
384
385         * ListView.cs : only update check state on single click.
386         * ThemeWin32Classic.cs : fix focus drawing for details view without
387         fullrowselect.  Fixes #78454.
388         * XplatUIX11.cs : fix for double click emission.
389
390 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
391
392         * PropertyGridView.cs : Applied Atsushi's patch to fix
393         font dialog bug  (#78197).
394
395 2006-06-05  Jackson Harper  <jackson@ximian.com>
396
397         * TreeNode.cs: Compute the next node for expanding/collapsing
398         correctly. We now factor in nodes without a NextNode
399         correctly. (Fixes somes cases in nunit-gui).
400         * InternalWindowManager.cs: Set the bounds when updating the
401         virtual position of a tool window.
402         
403 2006-06-05  Chris Toshok  <toshok@ximian.com>
404
405         * DataGrid.cs: rename cached_currencymgr to list_manager.
406         (set_CurrentCell): move SetCurrentCell code here, and clean it up
407         some.
408         (CurrentRow, CurrentColumn): single accessors so we can make the
409         cursor movement code a lot easier to understand.
410         (CurrentRowIndex): implement this in terms of CurrentRow.
411         (BeginEdit): clean this up a bit.
412         (CancelEditing): sort out the is_editing/is_changing/is_adding
413         stuff a little.
414         (EndEdit): minor changes.
415         (OnKeyDown): add a comment about a (most likely) unnecessary
416         check.
417         (OnMouseDown): cancel editing when we click on a row header.  And
418         use the CurrentRow setter, not CurrentCell.
419         (ProcessDialogKey): directly call ProcessGridKey.
420         (UpdateSelectionAfterCursorMove): factor out this common block of
421         code (it's used everywhere that we move the cursor by updating row
422         or column).
423         (ProcessGridKey): pretty substantial overhaul.  Use the
424         CurrentRow/CurrentColumn properties to make the code a lot more
425         readable.  Only use the CurrentCell property when we have to
426         modify both row and column at once.  Tab behavior is still broken,
427         and Delete is untested.
428         (Select): if we have no selected rows, set selection_start to
429         @row.
430         (EditCurrentCell): rename EditCell this.  It was only ever invoked
431         with CurrentCell as the arg, so drop the arg and rename it.
432
433         * DataGridColumnStyle.cs: clean up the constructors a little, and
434         drop CommonConstructor().
435
436         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
437         actually get notified when the user hits it.
438         (ProcessKeyMessage): *substantially* simplify this method.
439         There's no reason (that I can see) for the textbox to be making
440         calls into the datagrid at all.  Remove all of them but the ones
441         for Enter handling.  those will take some more work.
442
443         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
444         calling HideEditBox.
445         (HideEditBox): if we have an active textbox, render it invisible
446         without causing a re-layout of the datagrid.
447
448 2006-06-05  Mike Kestner  <mkestner@novell.com>
449
450         * ListView.cs : fix NRE crasher when focuseditem is cleared by
451         collection changes by resetting it to Items[0].  Fixes #78587.
452
453 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
454
455         * MessageBox.cs: if the height of the text is larger than the icon_size,
456         use that. Fixes bug #78575.
457
458 2006-06-05  Jackson Harper  <jackson@ximian.com>
459
460         * TreeView.cs: Fix line drawing when scrolling.  To do this each
461         node is basically responsible for drawing its entire horizontal
462         area.  When drawing a node it draws its parent node lines if
463         needed.
464         - Adjust the clip area to the viewport rectangle
465         - Fix Left/Right key handling to match MS. (It expand/collapses
466         and moves to parents/first child but does not move selection to
467         sibling nodes).
468         - Fix SetTop to work with new bound calculation code
469         - When scrollbars are no longer needed we need to reset scrolling
470         vars and recalculate the visible order so the redraw is correct
471         * TreeNode.cs: We can't expand/collapse nodes with no children.
472
473 2006-06-03  John Luke  <john.luke@gmail.com> 
474
475         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
476         so the colors work without dev packages
477         
478 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
479
480         * Control.cs 
481           - Select: Implemented to just use activate. Seems to match MS 
482             behaviour closest. Documented to only do actual control walking 
483             based on it's parameters if in a container control so I moved 
484             the code there.
485           - Removed selection check logic from our internal Select() method
486         * ContainerControl.cs:
487           - Select: Moved selection logic from Control here, since MS documents
488             that containers obey the bool arguments. No longer calling base
489
490 2006-06-02  Jackson Harper  <jackson@ximian.com>
491
492         * TreeView.cs: If the selected node isn't changed when we get
493         focus update the previously selected node so that we see the
494         selection box.
495
496 2006-06-02  Mike Kestner  <mkestner@novell.com>
497
498         * ComboBox.cs: restructure grab and general mouse event handling.
499         Make the composite control raise mouse events like it was a single
500         control for leaves/enters/motion/up/down events.  fix dropdown list
501         coordinate mangling and refactor it into the scrollbar subclass to
502         reduce code duplication.  Fixes #78282 #78361 and #78457.
503
504 2006-06-02  Mike Kestner  <mkestner@novell.com>
505
506         * ScrollBar.cs: remove Capture setting/clearing, as it happens
507         automatically in the Control.WndProc.
508
509 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
510
511         * FileDialog.cs: fix crash when running SharpChess, which sets the
512         FilterIndex to 2 with only one Filter.
513
514 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
515
516         * ToolBar.cs: add SizeSpecified property.
517         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
518         try to figure out our real size, otherwise fallback to what the
519         container says.
520
521 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
522
523         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
524         * Control.cs (WndProc): MS always calls the DefWndProc to pass
525           up the event
526
527 2006-06-01  Mike Kestner  <mkestner@novell.com>
528
529         * ListView.cs: revamp the focus management in ListView.  It still
530         causes churn of LostFocus/GotFocus emissions on clicks, but it's
531         better than not handling focus at all.  Will revisit when pdb feels
532         the general focus handling is solid.  Fixes #78526.
533
534 2006-06-01  Jackson Harper  <jackson@ximian.com>
535
536         * TreeView.cs: Set the default border style in the constructor.
537         - Move painting to use OnPaintInternal instead of capturing
538         WM_PAINT, this is the correct way of doing things
539         - UpdateBelow shouldn't invalidate the scrollbar area
540         - Cap the top on update below in case the node was above the top
541         of the viewport rectangle.
542         - ExpandBelow and Collapse below need to obey Begin/End Update.
543         * TreeNode.cs: Make is_expanded internal so the treenode
544         collection can change it without firing the whole event chain.
545         * TreeNodeCollection.cs: When clearing all the child nodes make
546         sure to recalc the visible order.
547         - Improve algo for remove the top node
548
549 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
550
551         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
552           SendMessage directly calling window procedures, which in turn might
553           call SetFocus()
554
555 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
556
557         * Control.cs: Don't handle WM_SETFOCUS if the same window already
558           has focus (works around X11 sending a FocusIn after our SetFocus)
559         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
560
561 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
562
563         * Mime.cs: Fix for the NET_2_0 build.
564           NameValueCollection needs StringComparer now.
565
566 2006-05-31  Chris Toshok  <toshok@ximian.com>
567
568         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
569         return (via an out parameter) the starting X of the column.
570         (UpdateVisibleColumn): track change to FromPixelToColumn.
571         (HitTest): add a ColumnResize case here.
572         (DrawResizeLine): new function, probably poorly named.
573
574         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
575         only need to keep one reference.
576         (set_ListManager): same.
577         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
578         Also, add support for HitTestType.ColumnResize.
579         (OnMouseMove): add column resize behavior here, and change the
580         cursor to the correct one as we move around the datagrid.
581         (OnMouseUp): terminate the column resize if we're resizing.
582         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
583         for the current cell.
584         (ConnectListManagerEvents): use cached_currencymgr.
585         (DisconnectListManagerEvents): fill this in, using
586         cached_currencymgr.
587         (SetCurrentCell): remove cached_currencymgr_events handling.
588         (SetDataMember): only call DisconnectListManagerEvents if
589         cached_currencymgr is != null.
590         (SetDataSource): same.
591         (OnListManagerCurrentChanged): cached_currencymgr_events ->
592         cached_currencymgr.
593
594 2006-05-31  Jackson Harper  <jackson@ximian.com>
595
596         * BindingManagerBase.cs: Remove somedebug code that creeped into
597         SVN.
598         * TreeNode.cs: We get the indent level dynamically right now, so
599         don't track it as a member.
600         * TreeNodeCollection.cs: Make sure all nodes added to the list
601         have parents, treeviews/topnodes setup properly.
602         - Don't attempt to track indent level.
603
604 2006-05-30  Jackson Harper  <jackson@ximian.com>
605
606         * BindingContext.cs: Create the currency manager tables here.
607         This allows us to more easily create null tables (when bad data
608         members are used), and more easily create related currency
609         managers.
610         * CurrencyManager.cs: All the table creation stuff is done by the
611         binding context now.
612         - Current should throw an exception if listposition is -1.
613         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
614         been bound yet.
615
616 2006-05-30  Mike Kestner  <mkestner@novell.com>
617
618         * ListView.cs: allow reexpansion of zero-width column headers.
619         Fixes #78528.
620
621 2006-05-28  Chris Toshok  <toshok@ximian.com>
622
623         * CurrencyManager.cs (get_Current): after the late binding
624         listposition = -1 fix, we need to guard against it here and return
625         null, otherwise we raise an exception (which is swallowed
626         elsewhere, and breaks datagrid databinding.)
627
628 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
629
630         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
631           than WM_SYSKEY, don't throw if get something unexpected (#78507)
632
633 2006-05-26  Jackson Harper  <jackson@ximian.com>
634
635         * ControlPaint.cs:
636         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
637         values, it's faster and it's all we care about (we don't care if
638         the names aren't equal).
639         * KeyboardLayouts.cs: Eliminate some dead code.
640         - Lazy init things
641         * X11Keyboard.cs: Lazy init keyboard detection.
642         - Cleanup access modifiers a little.
643
644 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
645
646         * XplatUIX11.cs: Once again, attempting to get layout just right.
647
648 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
649
650         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
651           the sizes of each link section, that will result in sizes that
652           match DrawString's layout (Fixes #78391)
653
654 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
655
656         * FileDialog.cs: If AddExtension property is true autocomplete the
657           extensions in SaveFileDialog correctly. Fixes bug #78453.
658           Set MyNetwork and MyComputer to "C:\" for windows. This should
659           fix part 8 of bug #78446 for now.
660
661 2006-05-26  Chris Toshok  <toshok@ximian.com>
662
663         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
664         invalidate the current row header if we need to, but presumably
665         we'll invalidate the row corrsponding to the bounds or
666         editingControl.
667         (GridHScrolled): switch back to this method, as it's part of the
668         public api.  *sigh*.
669         (GridVScrolled): same.
670         (OnMouseWheel): hack up something that more or less works.  Call
671         GridHScrolled/GridVScrolled directly, instead of duplicating much
672         of their code here.
673         (EnsureCellVisibility): reinstate a bunch of this code, since we
674         can't just set the scrollbar Value and expect to do all the work
675         in the ValueChanged handler.  Also, Call Update() after scrolling
676         in one direction so the other XplatX11.ScrollWindow call has the
677         proper stuff in the proper places.
678         (EditCell): set is_editing to true before calling .Edit.
679
680         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
681         don't bother comparing first.
682         (OnKeyPress): call grid.ColumnStartedEditing before calling
683         base.OnKeyPress.  this will set is_changing and invalidate the row
684         header if necessary.
685         (ProcessKeyMessage): for WM_CHAR messages, call
686         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
687         and WM_KEYDOWN.
688         
689         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
690         it's done in the DataGrid.
691         (NextState): call grid.ColumnStartedEditing, which takes care of
692         invalidating the row header (and setting is_changing).
693
694         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
695         here.  it's done in the DataGrid.
696
697 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
698
699         * Control.cs: allow changing the cursor when the mouse position is
700         out of bounds but Capture is set.
701         * LinkLabel.cs: handle the case when the mouse button is pressed on the
702         linklabel but released somewhere else.
703
704 2006-05-25  Jackson Harper  <jackson@ximian.com>
705
706         * TreeView.cs: When we get focus if there is no selected node make
707         it the top node
708         - Remove some uneeded setup code from Draw.
709         * TreeNodeCollection.cs: If the tree doesn't have a top node when
710         a new node is inserted make the new node the top.
711         * XplatUIX11.cs:
712         * Timer.cs: Use Utc time so that no local time zone stuff needs to
713         be used (should be faster).
714         
715 2006-05-25  Chris Toshok  <toshok@ximian.com>
716
717         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
718         problem with the last commit.
719
720 2006-05-25  Chris Toshok  <toshok@ximian.com>
721
722         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
723         need the invalidate call here, while scrolling right-to-left via
724         the left arrow key (i.e. moving the editing cell while scrolling).
725
726         * DataGrid.cs (.ctor): remove the initialization of
727         ctrl_pressed/shift_pressed.  We no longer track them using key
728         up/down handlers, but by using Control.ModifierKeys.  Also, switch
729         to using ValueChanged handlers on the scrollbars instead of
730         Scrolled event handlers.  This simplifies a bunch of the scrolling
731         code.
732         (GridHValueChanged): rename from GridHScrolled, and change it to
733         work with the new event args.
734         (GridVValueChanged): same.
735         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
736         (OnMouseWheel): actually scroll the datagrid.  Don't change the
737         selected cell.
738         (ProcessGridKey): correct all the keyboard navigation stuff I
739         could find.  Ctrl up/down/left/right/home/end work now.
740         (EnsureCellVisibility): correct method name spelling.  Also,
741         simplify this a touch by not explicitly calling the
742         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
743         scrollbar value.
744         (OnKeyUpDG): no need for this method now.
745         
746 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
747
748         * LinkLabel.cs: display the OverrideCursor when hovering the label.
749         Fixes bug #78392.
750
751 2006-05-25  Chris Toshok  <toshok@ximian.com>
752
753         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
754         r61019.
755
756 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
757
758         * Application.cs: Moved setting of is_modal and closing to before
759           we create the control, to allow the event handlers called as a
760           result of creation affect closing. Also removed Gonzalo's previous
761           change to setting DialogResult, the behaviour has been moved to 
762           Form.ShowDialog()
763         * Form.cs: 
764           - ShowDialog(): Removed explicit creation of the form, let RunLoop
765             handle it instead
766           - ShowDialog(): If no dialog result is set, we need to return Cancel
767           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
768             the close is cancelled
769
770 2006-05-25  Jackson Harper  <jackson@ximian.com>
771
772         * StatusBar.cs: We only need to update the sizes of the other
773         panels when we have auto size contents.  Also we are only updating
774         the contents of the panel, not the borders, so compensate for the
775         border width (TODO: get this width from the theme somehow).
776         * TreeView.cs: Scrollable is true by default
777         - Use invalidate instead of refresh where needed
778         - Factor the scrollable value into scrollbar updating
779         - Update the scrollbars if the Scrollable property is altered
780         - Update the selected node if its ImageIndex is changed
781         - Handle null nodes in UpdateNode (mainly so we don't have to
782         check if selected is null when updating it
783         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
784         are factored into the visible count
785         - Use VisibleCount for clarity in the code
786         - When the font is changed we need to recurse through all the
787         nodes and invalidate their sizes
788         
789 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
790
791         * Application.cs: set the DialogResult to fixed when the main form is
792         hidden or destroyed while being modal.
793
794 2006-05-25  Miguel de Icaza  <miguel@novell.com>
795
796         * Theme.cs: Use Tangoified messagebox icons. 
797
798         (GetSizedResourceImage): Also cope with width = 0 and do not
799         trigger a warning in that case (0 means "give me your icon from
800         the resouce, no special size needed).
801
802 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
803
804         * Application.cs: Leave runloop if the the main modal form is 
805           hidden (fixes #78484)
806
807 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
808
809         * BindingContext.cs : reject null datasource in Contains() and
810           Item[].
811         * CurrencyManager.cs : check data_member validity when data_source
812           is dataset. When it is late binding, the initial position is -1.
813
814 2006-05-24  Jackson Harper  <jackson@ximian.com>
815
816         * TreeNodeCollection.cs: Dont't recalculate the visible order on
817         inserted nodes that aren't visible.  This changes the
818         max_visible_order which confuses scrollbar settings.
819         - Use the enumerator to get the prev node instead of duplicating
820         code.
821         * TreeView.cs: Use new method for setting scrollbar values
822         - Don't set the bounds every time the scrollbar is updated
823         - When updating below the root node use an invalidate instead of a
824         refresh to prevent the child controls (scrollbars) from being
825         refreshed. (UpdateBelow still needs to be reworked anyways).
826         - Reenable SetBottom now that visible orders are set correctly,
827         added some debug code incase we ever get bad values there again.
828         - Set the scrollbar max to 2 less then the max value, this
829         compensates for the max value being one above the node count, and
830         for scrollbars adding one extra "notch".
831         - When drawing image nodes if there is an imagelist we draw the
832         first image in the list if the supplied image index is out of the
833         image list's bounds.
834         
835 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
836
837         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
838           we receive a size change from the WM (Fixes #78503)
839
840 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
841
842         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
843           rectangle (Fixes #78501)
844
845 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
846
847         * ButtonBase.cs: 
848           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
849             as a bitfield.
850           - Fixed MouseMove to no longer switch pressed state unless the left
851             mouse button is pressed. Atsushi provided the original patch (#78485)
852           
853 2006-05-24  Jackson Harper  <jackson@ximian.com>
854
855         * ScrollBar.cs: New internal methods that allow us to change a
856         couple values on the scrollbar (the most common case is maximum
857         and large change) without getting multiple invalidates.
858
859 2006-05-24  Chris Toshok  <toshok@ximian.com>
860
861         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
862         (Edit): save off the original state in oldState, and set
863         grid.is_editing to true.
864         (OnKeyDown): abort editing if escape is pressed.  also, call
865         NextState if space is pressed.
866         (OnMouseDown): call NextState.
867         (NextState): factor out shared code from OnKeyDown and OnMouseDown
868         here.  Also, only invalidate the row header once (on the initial
869         is_changing switch) to save on redraws.
870
871 2006-05-24  Chris Toshok  <toshok@ximian.com>
872
873         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
874         if the value in the cell is different than it was before.  This
875         keeps us from triggering a layout when we move around a datarid
876         with a highlighted cell.
877         (Edit): suspend layout when creating/positining the text box, and
878         resume passing false so we don't ever actually re-layout.
879         (ReleaseHostedControl): same.
880         (EnsureTextBox): reformat slightly, and set WordWrap to false.
881
882         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
883         control-key sequences should go to the datagrid - remove that
884         lock.  Also, modify the conditions under which we move between
885         cells when moving the cursor within a cell, and remove the "this"
886         and "base" from field accesses.  We weren't even consistent, given
887         they all were in the base class.
888
889 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
890
891         * Binding.cs : (.ctor)
892           An obvious NRE fix for BindingTest.CtorNullTest().
893
894 2006-05-23  Chris Toshok  <toshok@ximian.com>
895
896         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
897         them between lines.  This fixes some quirks editing cells in the
898         datagrid.
899
900 2006-05-23  Jackson Harper  <jackson@ximian.com>
901
902         * TreeView.cs: Use begin/end update when doing expand/collapse all
903         so that we don't get flicker on the scrollbar.
904
905 2006-05-23  Jackson Harper  <jackson@ximian.com>
906
907         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
908         treenode calculations to be independant of the painting code. To
909         do this nodes track a visible order which is calculated by the
910         treeview.
911         - Call new methods for expanding/collapsing nodes.  These methods
912         use scrollwindow so we don't have to update everything below the
913         node.
914         * TreeView.cs: Refactored drawing and scrolling code.  We don't
915         need to update nodes when drawing anymore or calculate scrollbar
916         stuff.
917         - Added new methods for expanding/collapsing nodes. These methods
918         use ScrollWindow so as to not have to redraw all the nodes below.
919         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
920         we add/remove nodes or sort.
921         - Handle removing the selected and the top node properly.
922
923 2006-05-23  Chris Toshok  <toshok@ximian.com>
924
925         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
926         maybe this should actually happen in the datagrid code?
927         (EndEdit): no need to invalidate anything, given that
928         ReleaseHostedControl causes the datagrid to relayout, which
929         invalidates everything anyway.
930
931         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
932         in SetCurrentCell).
933         (set_SelectionBackColor): call InvalidateSelection instead of
934         Refresh.
935         (set_SelectionForeColor): same.
936         (BeginEdit): Flesh this out a bit.
937         (CancelEditing): only do any of this if we're editing/adding.
938         (EndEdit): same.
939         (OnMouseDown): there's no need to cancel editing here, it's done
940         in SetCurrentCell.
941         (SetCurrentCell): only invalidate the current row header if it's a
942         different row than the new one.
943         (ShiftSelection): fix this to work like MS does.
944         (ResetSelection): factor out the invalidation of selected_rows to
945         InvalidateSelection.
946         (SetDataSource): cancel any editing that's going on.
947
948         * DataGridColumnStyle.cs
949         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
950         call the non-interface version.
951
952         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
953         header rectangle with the clip rectangle so we don't redraw the
954         entire header for just a small area.  Gets rid of the last flicker
955         when horizontally scrolling.
956         (DataGridPaintRow): same.
957
958 2006-05-23  Mike Kestner  <mkestner@novell.com>
959
960         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
961         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
962         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
963         Critical bug report.
964
965 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
966
967         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
968           and this fixes #78493
969
970 2006-05-23  Miguel de Icaza  <miguel@novell.com>
971
972         * Theme.cs (GetSizedResourceImage): Scale images if the proper
973         size is not found.  
974         
975         * FileDialog.cs: Do not change the background for the side bar as
976         it wont work nicely with the theme, and also reduces the artifacts
977         in rendering the icons (which I want to fix too).
978
979         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
980         resources, not resgen resources. 
981
982         (PlatformDefaultHandler): Pull images using the new API.
983
984 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
985
986         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
987           a reference to the hwnd and will not remove it unless there are
988           no pending exposures (fixes #78341)
989         * XplatUI.cs: Improved debug
990
991 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
992
993         * MenuAPI.cs : don't handle OnClick event when it was not the left
994           button. Fixed bug #78487.
995
996 2006-05-23  Mike Kestner  <mkestner@novell.com>
997
998         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
999         prefer submenus to the top menu for item lookup, to avoid popping down
1000         top-row items.
1001
1002 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1003
1004         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1005           Graphics.FillRectangle as the visual results are really bad (even
1006           on win). We now draw perfect arrows (and perfect shadows when the
1007           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1008           Pen.DashPattern to draw the dots of each line.
1009
1010 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1011
1012         * FileDialog.cs: Update the filename combobox when navigating through
1013           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1014
1015 2006-05-22  Mike Kestner  <mkestner@novell.com>
1016
1017         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1018         Fixes #78463.
1019
1020 2006-05-22  Mike Kestner  <mkestner@novell.com>
1021
1022         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1023         requests. Fix a misspelled parameter and a copy paste exception error
1024         in Select.
1025
1026 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1027
1028         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1029           to get the same width/height (5/13) on X11 as the default font has on
1030           win32. This means that our DefaultFont emSize is smaller than the 
1031           the MS SWF equivalent (even thought the width/height stays the same)
1032
1033 2006-05-20  Jackson Harper  <jackson@ximian.com>
1034
1035         * MdiClient.cs:
1036         * MdiWindowManager.cs:
1037         * InternalWindowManager.cs: Make sure to use the border width from
1038         the theme.
1039
1040 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1041
1042         * PrintDialog.cs: Implements printer details
1043
1044 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1045
1046         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1047           Fixes part 1 and 2 of bug #78446
1048
1049 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1050
1051         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1052           instead of sticking to the first ever calculated value
1053
1054 2006-05-19  Mike Kestner  <mkestner@novell.com>
1055
1056         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1057         PointToClient, since Capture is set. Fixes #78344.
1058
1059 2006-05-19  Mike Kestner  <mkestner@novell.com>
1060
1061         * ListView.cs: match MS behavior in Details view where items are not
1062         drawn if Columns.Count == 0. 
1063         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1064         Use a separate pen to draw the check, since changing the width affects
1065         the box as well.  Fixes #78454.
1066
1067 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1068
1069         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1070         exception should throw the name of the invalid argument.
1071
1072         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1073         there are no files listed. 
1074
1075 2006-05-18  Jackson Harper  <jackson@ximian.com>
1076
1077         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1078         up.
1079
1080 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1081
1082         * Control.cs: Brought back our old UpdateZOrder method as a private
1083           function and switched our calls from UpdateZOrder to the new one.
1084           This fixes the Paint.Net canvas disappearing bug.
1085
1086 2006-05-18  Jackson Harper  <jackson@ximian.com>
1087
1088         * Theme.cs:
1089         * ThemeWin32Classic.cs:
1090         * InternalWindowManager.cs: Move the drawing into the theme,
1091         expose everything the theme should need from the window manager.
1092
1093 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1094
1095         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1096           from the call to NativeWindow to avoid walking up the parent chain
1097           further than needed (speeds up setting cursors and avoids setting
1098           the wrong cursor if a parent has another cursor defined)
1099         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1100           the icon as hotspot, not what's contained as hotspot in the icon
1101           file. This fixes the perceived drawing offset seen with Paint.Net
1102         
1103 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1104
1105         * XplatUIX11.cs: 
1106           - Store the calculated rectangle in Hwnd object and use it when 
1107             setting the client size
1108           - Force Toolwindows to always be type Dock, to ensure they're on top
1109
1110 2006-05-18  Mike Kestner  <mkestner@novell.com>
1111
1112         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1113         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1114         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1115         Substantial refactoring to remove confusing nested classes. Coding
1116         standard and Get+Set->property refactorings.  Shift to index based
1117         highlighting in ComboListBox instead of constantly using IndexOf and
1118         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1119         in FileDialog growth.  Draw borders manually since Simple mode needs
1120         to look like two independent controls.  Make listbox border
1121         conditional to DropDownStyle.  Improved OwnerDraw support.
1122
1123 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1124
1125         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1126         Don't set the disposed graphics to null, so we can throw the "right"
1127         exception if the graphics is reused later (added a flag to avoid 
1128         double disposing). Some behaviours are different under 2.0 and are
1129         filled under bug #78448.
1130
1131 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1132
1133         * Control.cs: When double-buffering is enabled, we need to reset
1134           our graphics context between paint calls. Otherwise, any 
1135           transformations and other alterations on the context will 
1136           become cumulative (#77734)
1137
1138 2006-05-18  Mike Kestner  <mkestner@novell.com>
1139
1140         * ListView.cs: do focused item selection like MS on clicks. 
1141         Rework focus handling for ItemControl so LostFocus invalidates as
1142         well.
1143         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1144         the ListView ItemControl has focus.
1145
1146 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1147
1148         * XplatUIX11.cs: If client_window ends up being width or height zero
1149           due to border settings, move it off window inside whole_window (#78433)
1150
1151 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1152
1153         * Mime.cs: Shrink the mime file cache correctly.
1154
1155 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1156
1157         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1158
1159 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1160
1161         * XplatUIX11.cs (AddExpose): More sanity checks
1162
1163 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1164
1165         * XplatUIX11.cs:
1166           - AddExpose: Don't add expose ranges outside the size of our
1167             window
1168           - Cast opacity values to Int32 to avoid crashes with certain
1169             values
1170           - Added disabled code paths that protect against illegal cross-
1171             thread painting (Developers.exe)
1172
1173 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1174
1175         * ProgressBar.cs: Invalidate the control when it's resized
1176           since block size is based on control size. (#78388)
1177
1178 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1179
1180         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1181         of setting the incoming argument to the "reset" value, we set the
1182         this.datamember to string.empty (before we were invalidating the
1183         incoming data).   
1184
1185         Fixes 78420
1186
1187 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1188
1189         * Form.cs: Only apply transparency settings after the form
1190           is created. (Fixes #77800)
1191
1192 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1193
1194         * ApplicationContext.cs: Grab the HandleDestroyed event so
1195           we know when to fire OnMainFormClosed 
1196
1197 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1198
1199         * Application.cs: Introduced sub-class to allow tracking of
1200           threads and centralized triggering of the event mess for
1201           ThreadExit, AppExit, etc..  (#76156)
1202
1203 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1204
1205         * MimeIcon.cs:
1206           - Do not return a null icon index value for a mime subclass.
1207             Instead try the main mime type class too.
1208           - Seems that some newer distributions don't have a link to some
1209             gnome default icons anymore. So check the default gnome dir too.
1210           
1211
1212 2006-05-16  Jackson Harper  <jackson@ximian.com>
1213
1214         * MdiClient.cs: Don't paint the parent background image if we have
1215         our own background image.
1216
1217 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1218
1219         * Control.cs:
1220           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1221             controls, all filled controls are supposed to overlap (#78080)
1222           - UpdateZOrder is supposed to update the control's z-order in the
1223             parent's z-order chain. Fixed to behave like that
1224           - BringToFront: Removed obsolete code
1225           - SendToBack: Simplyfied
1226           - SetChildIndex: Trigger layout calculations when Z-order changes
1227             since layout is done by z-order
1228
1229 2006-05-16  Chris Toshok  <toshok@ximian.com>
1230
1231         [ fixes bug #78410 ]
1232         * DataGrid.cs (set_AlternatingBackColor): use
1233         grid_drawing.InvalidateCells instead of Refresh().
1234         (set_BackColor): call grid_drawing.InvalidateCells.
1235         (set_BackgroundColor): use Invalidate instead of Refresh.
1236
1237         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1238         invalidate the cell area.
1239
1240 2006-05-15  Chris Toshok  <toshok@ximian.com>
1241
1242         [ fixes bug #78011 ]
1243         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1244         on to DataGridPaintRow.
1245         (DataGridPaintRow): take a clip argument, and only draw the cells
1246         which intersect it.  same with the not_usedarea.
1247
1248         * Theme.cs (DataGridPaintRow) add @clip parameter.
1249
1250         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1251         XplatUI.ScrollWindow.
1252         (ScrollToRow): same.
1253
1254         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1255         with last column which was causing a gray swath to appear with the
1256         XplatUI.ScrollWindow code.
1257
1258 2006-05-15  Chris Toshok  <toshok@ximian.com>
1259
1260         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1261         use XplatUI.ScrollWindow.
1262         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1263
1264 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1265
1266         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1267
1268 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1269
1270         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1271           file since there are no equivalent X11 cursors
1272
1273 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1274
1275         * MonthCalendar.cs : DateTimePicker should reflect selected date
1276           on mouse*up*, not mouse*down*. Fixed originally reported part of
1277           bug #76474.
1278
1279 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1280
1281         * TabControl.cs : When argument index is equal or more than tab
1282           count, just ignore. Fixed bug #78395.
1283
1284 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1285
1286         * Control.cs: Dispose all child controls when control is diposed (#78394)
1287
1288 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1289
1290         * ColorDialog.cs: Finally it is possible to select the color with
1291           the text boxes
1292
1293 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1294
1295         * PrintDialog.cs: Fix typo
1296
1297 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1298
1299         * PrintDialog.cs: PrintDialog is not resizable
1300         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1301           color. Made some ToolBar drawing methods protected virtual.
1302
1303 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1304
1305         * PrintDialog.cs: Implementation of the PrintDialog
1306
1307 2006-05-12  Chris Toshok  <toshok@ximian.com>
1308
1309         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1310         thumb, instead use MoveThumb.  This has the side effect of making
1311         most of the other thumb moving machinery use MoveThumb as well.
1312         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1313         need to actually invalidate the rectangle where the new thumb will
1314         go.
1315         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1316         We force an Update() after, so it's not as fast as it could be,
1317         but at least there's zero flicker and no droppings.
1318         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1319         (UpdateThumbPos): add another argument (dirty), which says whether
1320         or not to calculate/add dirty regions which we later invalidate.
1321         For cases where we know we're going to use MoveThumb, we pass
1322         false for this.  Otherwise, pass true.
1323
1324 2006-05-12  Jackson Harper  <jackson@ximian.com>
1325
1326         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1327         the status bar.
1328         
1329 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1330
1331         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1332           and GetClipRegion methods and UserClipWontExposeParent property.
1333         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1334           overriding UserClipWontExposeParent property, setting to false, since
1335           Win32 handles the required expose messages to draw our clipped parent
1336           areas internally
1337         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1338           PaintEventStart to set the user clip region if set.
1339         * Control.cs: 
1340           - Now internally tracking the Region for the control since we need to
1341             store it if the handle is not yet created and only set it when it
1342             becomes created. Before setting the region forced handle creation
1343           - Added code to draw the parents underneath a user-clipped region
1344         * Hwnd.cs: Added UserClip property
1345
1346 2006-05-12  Chris Toshok  <toshok@ximian.com>
1347
1348         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1349         (set_Maximum): same.
1350         (set_Minimum): same.
1351         (set_SmallChange): same.
1352         (OnMouseUpSB): remove the call to refresh when releasing the
1353         thumb.  We shouldn't need it.
1354         
1355 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1356
1357         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1358         AutoSize set to None, we do not need to relayout everything, we
1359         just need to invalidate the current region.
1360
1361         (Draw): Do not draw the entire ClientArea, just redraw the
1362         clip area being passed.
1363
1364         * MdiClient.cs: Make MdiClient constructor with the Form argument
1365         internal. 
1366
1367 2006-05-12  Jackson Harper  <jackson@ximian.com>
1368
1369         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1370         parents background image,  but strangely not their own.
1371         - (DrawStatusBarPanel): Take into account horizontal alignment
1372         when drawing the strings and icons.
1373
1374 2006-05-12  Mike Kestner  <mkestner@novell.com>
1375
1376         * ListBox.cs: avoid invalidations for focus when the collection is
1377         empty. 
1378
1379 2006-05-12  Chris Toshok  <toshok@ximian.com>
1380
1381         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1382         invalidate the entire thumb area.  Call InvalidateDirty which
1383         limits the redraw to the thumb itself and surrounding pixels.
1384
1385         * XplatUIX11.cs (ScrollWindow): optimize copying.
1386         
1387 2006-05-12  Chris Toshok  <toshok@ximian.com>
1388
1389         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1390         Figure out the positioning/layout in a single pass instead of
1391         multiple recursive invocations.  Speeds up the initial display of
1392         the data grid.  Also, make many things private that were
1393         originally public but unused outside this class.
1394
1395 2006-05-11  Jackson Harper  <jackson@ximian.com>
1396
1397         * MdiClient.cs: Improved layout code.
1398
1399 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1400
1401         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1402           not SelectedObject.
1403
1404 2006-05-11  Chris Toshok  <toshok@ximian.com>
1405
1406         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1407         union of that will always be {0,0,width,height}.
1408
1409 2006-05-11  Jackson Harper  <jackson@ximian.com>
1410
1411         * Form.cs: Match MS's DefaultSize for forms (they must have
1412         changed the size in sp2).
1413
1414 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1415
1416         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1417
1418 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1419
1420         * TextControl.cs : Fixed bug #78109. This incorrect position
1421           comparison caused crash on automatic line split.
1422         * TextBoxBase.cs : reduce duplicate code.
1423
1424 2006-05-10  Jackson Harper  <jackson@ximian.com>
1425
1426         * MdiClient.cs: Active form is only sent to the back when using
1427         the Next form functionality, when a form is clicked the current
1428         active shouldn't be sent to the back.
1429         - Layout the mdi windows when the container is first made visible.
1430         * Form.cs: Give the MdiClient a ref to the containing form when we
1431         create it.
1432         
1433 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1434
1435         * LinkLabel.cs : link_font could be uninitialized, so populate one
1436           before actual use. Fixed bug #78340.
1437
1438 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1439
1440         * XplatUIX11.cs : clipboard format native value is IntPtr.
1441           Fixed bug #78283.
1442
1443 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1444
1445         * Control.cs: 
1446           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1447             which is passed up the parent chain by DefWndProc
1448           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1449             to DefWndProc (#77956)
1450         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1451
1452 2006-05-10  Jackson Harper  <jackson@ximian.com>
1453
1454         * MdiClient.cs: We need to remove the controls from the mdi
1455         collection, when we close the window.
1456         * MdiWindowManager.cs: Special handling of closing mdi windows.
1457         * InternalWindowManager.cs: Make the close method virtual so the
1458         mdi window manager can handle it specially.
1459
1460 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1461
1462         * DataGrid.cs:
1463           - Recalculate grid when the data source has changed
1464           - Matches styles provided by user from all data sources types
1465         * DataGridTableStyle.cs: For columns that provided by the user set the
1466         with the preferred value is there was unassigned.
1467         * CurrencyManager.cs: throw OnItemChanged event
1468
1469 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1470
1471         * PictureBox.cs: Don't animate until handle is created. Start animation
1472           when handle is created.
1473
1474 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1475
1476         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1477           current codebase.
1478         * XEventQueue.cs: We don't need to provide the extra info
1479
1480 2006-05-10  Jackson Harper  <jackson@ximian.com>
1481
1482         * MdiClient.cs: If the mdi clients parent form has a background
1483         image set, we draw that background image for the mdi area's
1484         background.
1485
1486 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1487
1488         * TextBoxBase.cs: Set IBeam cursor (#78347)
1489
1490 2006-05-10  Mike Kestner  <mkestner@novell.com>
1491
1492         * ToolBar.cs: fix some text padding issues with ButtonSize
1493         calculation. Update the default size to match MS documentation.
1494         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1495         button size. Fixes #78296.
1496
1497 2006-05-10  Mike Kestner  <mkestner@novell.com>
1498
1499         * ListBox.cs: use is_visible for scrollbar positioning in case the
1500         control isn't on screen yet.  Fix off by one with Right vs Width
1501         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1502         
1503 2006-05-10  Jackson Harper  <jackson@ximian.com>
1504
1505         * X11Dnd.cs: Drop to a control with another control on top of it.
1506         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1507         be modified in click handlers. TODO: Look for similar problems in
1508         other controls.
1509
1510 2006-05-09  Jackson Harper  <jackson@ximian.com>
1511
1512         * Form.cs: Window managers need the old window state when setting
1513         window state now.
1514         * InternalWindowManager.cs: Allow the base mdi window manager to
1515         handle more of the MDI only stuff (like maximize buttons).
1516         * MdiWindowManager.cs: Fix some snafus in changing the window
1517         state.  Add all the menu functionality, for both popup and
1518         maximized menus.
1519         * MdiClient.cs: When a new form is selected the currently
1520         activated form is sent to the back, this matches MS.
1521         - Implement a new method to activate the next mdi child window.
1522
1523 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1524
1525         * Control.cs: 
1526           - Added new InternalCapture method to allow controls to prevent
1527             the capture behaviour on the click handlers
1528           - Switched to use InternalCapture
1529         * ComboBox.cs:
1530           - Using InternalCapture to prevent mouse captures from being released
1531             on mouse button release (Fixes #78100)
1532         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1533           returns Form borders if a caption is present. (Fixes #78310)
1534
1535 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1536
1537         * TreeNode.cs: Changed serialization .ctor to not require every field
1538           to be present. (#78265)
1539         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1540
1541 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1542
1543         * MimeIcon.cs: for is faster than foreach for strings.
1544
1545 2006-05-05  Mike Kestner  <mkestner@novell.com>
1546
1547         * CheckedListBox.cs: update check handling code to not use selected.
1548         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1549         behavior for visual feedback, motion response, shift/ctrl handling,
1550         and properly deal with all 4 selection modes. Updates to bounds
1551         handling logic.  Add scroll wheel support. [Fixes #77842]
1552
1553 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1554
1555         * ListView.cs:
1556           - Moved adding of Implicit controls into .ctor. That way, subsequent
1557             creation of the controls will not cause them to think they are 
1558             toplevel windows (fixes #78200 header problem)
1559           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1560           - Switched visibility setting of header control to use internal field
1561             to avoid triggering handle creation
1562           - Now checking if handle is created before causing a refresh when items
1563             are added (This makes us now match handle creation time with MS)
1564         * Splitter.cs: Removed loading of private splitter cursor, switched to
1565           Cursors version now that that is loading the right ones
1566         * Cursors.cs: Load proper splitter cursors from resources
1567         * Cursor.cs: Added second method of loading resource cursors for the 
1568           VS.Net users amongst us
1569
1570 2006-05-05  Mike Kestner  <mkestner@novell.com>
1571
1572         * ListView.cs: give header_control a minimum size based on the
1573         ListView size.
1574
1575 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1576
1577         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1578           window seems to do that with metacity, so set that type. (#78120)
1579
1580 2006-05-05  Mike Kestner  <mkestner@novell.com>
1581
1582         * ListViewItem.cs: fix Details mode checkbox layout bug.
1583         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1584         at the end of the header, if it exists. [Fixes for #78200]
1585
1586 2006-05-04  Jackson Harper  <jackson@ximian.com>
1587
1588         * MdiClient.cs: Add a helper property to get the container form.
1589         * MdiWindowManager.cs: We have to make sure to use the menu origin
1590         when drawing the icons and buttons, this fixes maximized window
1591         icons/buttons on win32.
1592         * InternalWindowManager.cs: Reset the restore captions when a
1593         window goes from Maximized to Minimized and vice versa. Move the
1594         DrawMaximizedButtons into the MdiWindowManager source, tool
1595         windows can't be maximized. NOTE: This could use a little
1596         refactoring if time ever permits.
1597         
1598 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1599
1600         * TextBox.cs: Add MWFCategoryAttributes
1601         * TextBoxBase.cs: Add MWFCategoryAttributes
1602         * Form.cs: Add MWFCategoryAttributes
1603
1604 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1605
1606         * Control.cs: Add MWFCategoryAttributes
1607         * ScrollableControl.cs: Add MWFCategoryAttributes
1608
1609 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1610
1611         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1612           Divider is true. Fix a little glitch in PropertyToolBar
1613           drawing code
1614
1615 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1616
1617         * Control.cs:
1618           - Dispose: Call base.Dispose, this causes the disposed event
1619             to be fired (and probably other, more important stuff)
1620           - SetVisibleCore: Set is_visible to true after creating the
1621             window so that the window still gets created invisible (if
1622             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1623             to generate a WM_ACTIVE message
1624         * Form.cs: Call Dispose when we want to destroy the window, instead of
1625           just destroying the handle (Dispose will do that for us)
1626         * XplatUIX11.cs:
1627           - RootWindow also needs a queue, so we can properly process the
1628             property change events from RootWindow (like Activate)
1629           - Generatic synthetic WM_ACTIVE message when the active window is
1630             being destroyed
1631
1632 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1633
1634         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1635           bounds are changed
1636
1637 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1638
1639         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1640           for determining width and height (image might not be assigned if
1641           we're drawing an imagelist)
1642
1643 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1644
1645         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1646         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1647           height from system
1648         * Theme.cs: No longer returns hardcoded menu height, instead calls
1649           new driver method
1650         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1651           on MS (# 78257)
1652
1653 2006-05-01  Mike Kestner  <mkestner@novell.com>
1654
1655         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1656
1657 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1658
1659         * TextBoxBase.cs: Removed Fixme
1660         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1661
1662 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1663
1664         * XplatUIX11.cs:
1665           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1666             the rectangle relative to the parent, considering borders. We
1667             don't really want that.
1668           - ScrollWindow: Fixed warning to be more understandable
1669         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1670           scrollbars and scroll only the visible area
1671         * RichTextBox.cs: Removed debug output
1672
1673 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1674
1675         * NumericUpDown.cs (Text): Just use base
1676         * UpDownBase.cs: Ensure txtView is created before using it
1677
1678 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1679
1680         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1681           casting to IntPtr to avoid 64bit overflow errors
1682
1683 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1684
1685         * Control.cs:
1686           - AllowDrop: Don't force handle creation.
1687           - CreateHandle: Added call to tell driver if we're allowed to drop
1688
1689 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1690
1691         * FileDialog.cs: Remember the last directory not only for the
1692           current instance but also for new FileDialog instances.
1693
1694 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1695         
1696         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1697           broke sending async messages
1698
1699 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1700
1701         * XplatUIX11.cs:
1702           - ScrollWindow: Fixed method. We finally generate expose events again
1703             for scrolled areas. This was causing 'garbage' when scrolling
1704             textbox and other controls that used ScrollWindow
1705           - Switched from using the regular queue for paint events to the MS 
1706             model of 'generating' paint events when the queue is empty.
1707             We use the new XQueueEvent.Paint subclass to store which windows
1708             need painting.
1709           - AddExpose now takes the x/y/width/height of the exposed area
1710             and inserts the window into the paint queue if not already there
1711           - InvalidateWholeWindow: Switched to use new AddExpose method
1712           - UpdateMessageQueue: Added which queue to monitor for paint events
1713           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1714             the unlikely case nothing above handles it. We reset the expose
1715             pending states to get them off the queue.
1716           - GetMessage: Now pulls a paint event if no other events are in the
1717             queue
1718           - Invalidate: Switched to new AddExpose method
1719           - PeekMessage: Updated to understand pending paint events
1720           - UpdateWindow: Fixed logic bug. We were only updating if the window
1721             didn't need updating. Also switched to sending WM_PAINT directly,
1722             like MS does.
1723         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1724           and random access Remove(). The random access is needed to handle
1725           UpdateWindow() where a WM_PAINT is sent directly without accessing
1726           the queue.
1727         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1728           allow for better feedback when scrolling. Scrollbars are small and
1729           the immediate update should make it 'feel' more responsive without
1730           slowing things down. ScrollBar still needs it's invaliate logic
1731           updated to not always invalidate the whole bar on certain changes.
1732
1733 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1734
1735         * Control.cs:
1736         (BackColor): if the control does not support a transparent background,
1737         return the default backcolor when the parent backcolor is transparent.
1738
1739 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1740
1741         * Application.cs: Updated to new StartLoop/GetMessage API
1742         * RichTextBox.cs: Provide some output on RTF parsing errors
1743         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1744           new queue_id argument to GetMessage and PeekMessage to allow faster
1745           handling of per-thread queues in drivers.
1746         * Hwnd.cs: Added Queue tracking and property
1747         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1748         * XEventQueue.cs: Added thread trackingA
1749         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1750         * XplatUIX11.cs:
1751           - Implemented new per-thread queue
1752           - GetMessage: Fixed return/break behaviour on several cases. We were
1753             returning stale messages in some cases, instead of just processing
1754             the next message
1755
1756 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1757
1758         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1759
1760 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1761
1762         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1763           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1764
1765 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1766
1767         * PropertyGridView.cs: Fix drop down width.
1768
1769 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1770
1771         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1772           a mess in DrawToolBar, so I removed one of them.
1773
1774 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1775
1776         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1777           needed (clip). Otherwise we get artifacts.
1778
1779 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1780
1781         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1782           dimension is fixed
1783         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1784           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1785         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1786           if it matches the scale base font (avoids unneeded scaling)
1787
1788 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1789
1790         * X11DesktopColors.cs: One gtk_init_check should be enough
1791
1792 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1793
1794         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1795           match MS behaviour
1796
1797 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1798
1799         * TextBoxBase.cs: 
1800           - Generate OnTextChanged for Backspace even if we're only deleting
1801             the current selection
1802           - When setting the Text property, only select all text if the
1803             control does not have focus when it is being set. Otherwise
1804             just place the cursor at the beginning of the control
1805
1806 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1807
1808         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1809           Added a little helper to draw PropertyGrid ToolBar with a different
1810           border and a different BackColor.
1811         * PropertyGrid.cs: Some background parts didn't get painted with the
1812           correct background color. Added a class that helps us to draw the
1813           correct border for PropertyGridView and a class that helps us to
1814           draw ToolBars with a different backcolor
1815         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1816
1817 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1818
1819         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1820         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1821
1822 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1823
1824         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1825           into the palette entries. Also, since we're working on a copy
1826           we needed to copy the palette back onto the bitmap.
1827         * Cursor.cs: Same fix as XplatUIWin32.cs.
1828
1829 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1830
1831         * ImageListStreamer.cs: Need to read the var (or we're off)
1832
1833 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1834
1835         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1836           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1837           TextBoxBase.cs: Unused var fixes
1838         * AxHost.cs: Small 2.0 fix
1839         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1840           as it seems that is what at least Metacity expects. This will make
1841           icons show up on 64bit platforms. We still have some 64bit size
1842           issues, though, since the startup app window size still won't match.
1843
1844 2006-04-25  Mike Kestner  <mkestner@novell.com>
1845
1846         * *.cs: cleanup newly reported exception var unused warnings.
1847
1848 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1849
1850         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1851           ms
1852
1853 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1854
1855         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1856           image. The image position is always the same, no matter if the
1857           button is pressed or not.
1858
1859 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1860
1861         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1862           selection and set the correct filename for SaveFileDialog.
1863           Patch by Emery Conrad.
1864
1865 2006-04-24  Mike Kestner  <mkestner@novell.com>
1866
1867         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1868         check for item.X outside the ClientRect instead of item.Y. Fixes
1869         #78151.
1870
1871 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1872
1873         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1874         trust that value blindly and do some sanity check. Fixes bug #77814.
1875
1876 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1877
1878         * ImageListStreamer.cs: save the mask as a 1bpp image.
1879
1880 2006-04-21  Mike Kestner  <mkestner@novell.com>
1881
1882         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1883         pass Checked and Indeterminate to the Theme Engine. Improve
1884         encapsulation with ListBox.
1885         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1886         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1887         nested types.  Move all CheckState functionality to CheckedListBox.
1888         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1889         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1890         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1891         single base list. Fix scrollbar sizing and placement to mirror MS.
1892         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1893         used.
1894         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1895         for CheckedListBox by using new DrawItemState info.  Center the
1896         checkboxes on the items. Use new StringFormat property.
1897
1898 2006-04-18  Jackson Harper  <jackson@ximian.com>
1899
1900         * Form.cs: MdiChildren don't do default locations the same way as
1901         regular forms.  This prevents a crash when trying to position the
1902         mdi windows.
1903
1904 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1905
1906         * PropertyGridTextBox.cs: Formatting, copyright
1907         * PropertiesTab.cs: Formatting
1908         * PropertyGrid.cs: Formatting
1909         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1910           click toggling of values
1911           
1912 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1913
1914         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1915         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1916           every time a control is created
1917         * Application.cs: Removed obsolete EnableRTLMirroring method
1918
1919 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1920
1921         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1922         SelectedIndex to -1. Fixes bug #78121.
1923
1924 2006-04-17  Jackson Harper  <jackson@ximian.com>
1925
1926         * Binding.cs: Handle null values for Current and BindingContext.
1927         This occurs when binding is a little delayed.
1928         * CurrencyManager.cs: return null for Current when there are no
1929         items in the list.
1930         - Hookup to the listchanged event on the DataView and update
1931         bindings when the list is changed.  This fixes late binding of
1932         controls.
1933
1934 2006-04-17  Jackson Harper  <jackson@ximian.com>
1935
1936         * X11Dnd.cs:
1937         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1938         Ringenbach.
1939
1940 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1941
1942         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1943           place
1944         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1945           with the correct ButtonState
1946
1947 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1948
1949         * XplatUIX11.cs: Improved distinguishing between window types to
1950           tell the WM a type closer to what the app wants (Fixes #78107)
1951
1952 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1953
1954         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1955           GrabHandle
1956
1957 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1958
1959         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1960           drawing code to reflect the size grip changes
1961
1962 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1963
1964         * ImageListStreamer.cs: fix handling of the mask that follows the main
1965         bitmap when deserializing and serialize it properly. The generated mask
1966         should better be a 1bpp image, but I'll do that later.
1967
1968 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1969
1970         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1971           path doesn't fit into some of our Current.Places
1972
1973 2006-04-13  Jackson Harper  <jackson@ximian.com>
1974
1975         * ComboBox.cs: Use borders instead of drawing our own decorations,
1976         try to obey correct rules for heights.
1977         * Theme.cs:
1978         * ThemeNice.cs:
1979         * ThemeClearLooks.cs:
1980         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1981         this is now handled by borders.
1982         - Remove unused DrawListBoxDecorationSize method.
1983         
1984 2006-04-13  Mike Kestner  <mkestner@novell.com>
1985
1986         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1987         reported by Alex.
1988
1989 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1990
1991         * ThemeWin32Classic.cs: 
1992           - Fixed CPDrawStringDisabled
1993           - Corrected drawing of disabled menu items
1994           - Fixed drawing of disabled radio buttons (bug #78095)
1995           - Draw check in a disabled CheckBox with color ControlDark 
1996
1997 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1998
1999         * Form.cs: Use the provided width when calculating the menu size;
2000           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2001           and ClientSize.Width won't be updated yet
2002         * Application.cs: Use Visible instead of Show() to make form visible,
2003           this way we create the handle later and menusize is considered
2004
2005 2006-04-12  Mike Kestner  <mkestner@novell.com>
2006
2007         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2008         reporting.
2009
2010 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2011
2012         * TextBox.cs: Implemented context menu
2013
2014 2006-04-12  Mike Kestner  <mkestner@novell.com>
2015
2016         * ListView.cs: implement box selection. fixes #77838.
2017         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2018
2019 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2020
2021         * XplatUIX11.cs: Added setting of window type when transient window
2022           is created (metacity would move it otherwise)
2023         * X11Structs.cs: Added WINDOW_TYPE atoms
2024         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2025           background (the control is Opaque but still wants transparent
2026           backgrounds)
2027
2028 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2029
2030         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2031           that set Opaque but don't mean it (like all ButtonBase-derived
2032           controls) to still draw their background
2033         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2034           the background
2035
2036 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2037
2038         * Control.cs (PaintControlBackground): Set the graphics object
2039           on our PaintEvent to null to prevent it from being disposed
2040           when the PaintEvent gets disposed
2041
2042 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2043
2044         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2045         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2046
2047 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2048
2049         * Control.cs: 
2050           - Added transparency check to BackColor property. Transparent
2051             backgrounds are only allowed if the control styles permit it
2052           - Added recursive painting of parent control background and
2053             foreground if a control with a transparent backcolor is drawn
2054             (Thanks to Tim Ringenback for providing his 'hack' as a base
2055              for this patch) Fixes #77985 and #78026.
2056           - Added Opaque style check before calling OnPaintBackground, no
2057             need to draw the background if the control is opaque
2058           - Removed ControlAccessibleObject owner variable (inherited from
2059             base, no need to define again)
2060           - Added some documentation links explaining the drawing events
2061             and styles
2062
2063 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2064
2065         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2066           that the affected control is the located at the left border of our
2067           parent (Fixes #77936)
2068
2069 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2070
2071         * TextBoxBase.cs: When rendering disabled or readonly controls,
2072           draw the background with 'Control' instead of 'Window' color as
2073           long as the user hasn't specifically set a color
2074
2075 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2076
2077         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2078           since that won't be updated if the user types text (only if it's
2079           programatically set)
2080
2081 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2082
2083         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2084           layout changes do to app-triggered resizes will have the proper
2085           display rectangle for layout
2086
2087 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2088
2089         * ThemeWin32Classic.cs:
2090           - Make use of the SystemBrushes and SystemPens wherever possible
2091           - Corrected some highlight colors
2092           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2093             drawing
2094         * Theme.cs: Added Empty field to CPColor struct
2095
2096 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2097
2098         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2099           is displayed when calculating the display rectangle. Thanks to Mike
2100           for teaching me the err of my ways.
2101
2102 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2103
2104         * ScrollableControl.cs:
2105           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2106             (instead of 0,0) and we now return the real width/height instead of
2107             just the clientrectangle, adjusted for padding. The rectangle is
2108             now cached and created by the new CalculateDisplayRectangle method.
2109           - Created new CalculateDisplayRectange method, which basically does
2110             what get_DisplayRectangle() did originally, but now using the 
2111             right edge instead of DisplayRectangle to determine the size of
2112             our scrollbars
2113           - get_Canvas(): Fixed it to properly calculate canvas for 
2114             right/bottom controls which seem to be placed to the right/bottom
2115             of any controls that have a fixed location
2116           - Removed TODO that's taken care of
2117           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2118             and SetDisplayRectLocation according to new MSDN2 docs
2119           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2120             event when that is called, this is added for compatibility
2121           - ScrollControlIntoView(): Implemented.
2122           - Switched scrollbars to be implicit, they shouldn't be selectable
2123         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2124           call it when the active control is set/changed
2125         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2126         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2127           implicit_control variable (used for native Win32 message generation)
2128         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2129           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2130         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2131         * XplatUIStructs.cs: Added ScrollBarCommands enum
2132
2133 2006-04-10  Jackson Harper  <jackson@ximian.com>
2134
2135         * ButtonBase.cs:
2136         * CheckedListBox.cs:
2137         * ComboBox.cs:
2138         * DataGrid.cs:
2139         * DataGridView.cs:
2140         * Form.cs:
2141         * GroupBox.cs:
2142         * ListBox.cs:
2143         * PrintPreviewControl.cs:
2144         * ProgressBar.cs:
2145         * PropertyGrid.cs:
2146         * Splitter.cs:
2147         * StatusBar.cs:
2148         * TrackBar.cs:
2149         * UpDownBase.cs: Fixup base event overrides.
2150         
2151 2006-04-06  Mike Kestner  <mkestner@novell.com>
2152
2153         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2154         all user-initiated value changes to min <= value <= max-thumbsz+1.
2155         (set_Value): check for vert/horiz when calculating new thumb position.
2156         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2157         like MS does.
2158         (OnMouseMoveSB): refactor the thumb dragging code and refine
2159         invalidation logic to reduce flicker.
2160         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2161         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2162         (UpdateThumbPosition): small code readability cleanup
2163
2164 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2165
2166         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2167           different
2168
2169 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2170
2171         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2172
2173 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2174
2175         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2176         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2177           This dramatically reduces the number of Pen.Dispose calls. 
2178           Where possible call ResPool methods only once instead of calling it
2179           over and over again (for example for the same color).
2180
2181 2006-04-06  Mike Kestner  <mkestner@novell.com>
2182
2183         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2184         Also remove an unused private field on the collection. Fixes #77972.
2185
2186 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2187
2188         * ThemeNice.cs: Added ToolBar drawing code
2189
2190 2006-04-06  Mike Kestner  <mkestner@novell.com>
2191
2192         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2193         I'm assuming that means we need to look up the toplevel for the
2194         provided control. Fixes the crash trace in #77911 but exposes another
2195         crash in some strange reflection usage in NDocGui.
2196
2197 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2198
2199         * ThemeNice.cs: Gave it a little silver touch and added Images
2200           method
2201         * FontDialog.cs: FontDialog is not resizable
2202         * FileDialg.cs: Added SizeGripStyle.Show
2203
2204 2006-04-05  Jackson Harper  <jackson@ximian.com>
2205
2206         * KeyboardLayouts.cs: Remove warning.
2207
2208 2006-04-05  Jackson Harper  <jackson@ximian.com>
2209
2210         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2211         all of our controls instead of Paint +=.
2212         * ListBox.cs:
2213         * ListView.cs:
2214         * MenuAPI.cs:
2215         * MessageBox.cs:
2216         * NotifyIcon.cs:
2217         * ProgressBar.cs:
2218         * ScrollBar.cs:
2219         * Splitter.cs:
2220         * StatusBar.cs:
2221         * TabControl.cs:
2222         * TextBoxBase.cs:
2223         * ToolBar.cs:
2224         * TrackBar.cs:
2225         * UpDownBase.cs:
2226         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2227         use OnPaintInternal. Remove Width/Height and Visible checks in
2228         paint handler, this is done at a higher level now.
2229         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2230         * PaintEventArgs.cs: Add a handled flag so controls that don't
2231         want anymore painting after OnPaintInternal can make sure OnPaint
2232         isn't called.
2233
2234 2006-04-05  Mike Kestner  <mkestner@novell.com>
2235
2236         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2237         state of the form, so that we don't process events when Modal dialogs
2238         are up. Fixes #77922.
2239
2240 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2241
2242         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2243           checking is done.
2244
2245 2006-04-05  Mike Kestner  <mkestner@novell.com>
2246
2247         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2248
2249 2006-04-05  Mike Kestner  <mkestner@novell.com>
2250
2251         * ListView.cs (HeaderMouseMove): null guarding for the over column
2252         when setting up the drag_to_index.  Fixes #78015.
2253
2254 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2255
2256         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2257           in the taskbar. Transient windows seem to accomplish that.
2258
2259 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2260
2261         * Form.cs:
2262           - Re-enabled CreateParams.X/Y code for FormStartPosition
2263           - Added code for manual placement when creating the Control
2264           - Incomplete patch to treat MDI forms differently when
2265             setting the ClientSizeCore. (Still need to figure out handling
2266             x/y coords there)
2267         * XplatUIX11.cs:
2268           - When we're explicitly setting the X/Y position of a non-Child
2269             window, let the WM know. Metacity really wants this.
2270
2271 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2272
2273         * ThemeNice.cs: Added CPDrawButton
2274
2275 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2276
2277         * ThemeNice.cs: Changed the color for focused buttons and activated
2278           the arrows for small scroll buttons.
2279
2280 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2281
2282         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2283           anymore. Changed some method modifiers to protected (virtual)
2284         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2285           changes
2286         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2287           Updated drawing of menus, buttons and progressbars; added
2288           CPDrawBorder3D 
2289
2290 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2291
2292         * ImageListStreamer.cs: implemented serialization/deserialization
2293         of the images.
2294
2295 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2296
2297         * ThemeWin32Classic.cs:
2298           - Removed all the DrawFrameControl stuff; CPDrawButton,
2299             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2300             inside the methods
2301           - Updated and corrected the drawing code of CPDrawButton,
2302             CPDrawCheckBox and CPDrawRadioButton to better match ms
2303           - Updated theme checkbox and radiobutton code to use the CP*
2304             methods
2305
2306 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2307
2308         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2309           bug is fixed
2310
2311 2006-03-31  Jackson Harper  <jackson@ximian.com>
2312
2313         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2314         sometimes.
2315         * UpDownBase.cs: Don't CreateGraphics manually, use a
2316         Refresh. Ideally we would invalidate the correct areas here.
2317
2318 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2319
2320         * XplatUIX11.cs: 
2321           - We now track the mapping state of windows. If a window (or 
2322             one of it's parents) is not mapped we no longer permit
2323             WM_PAINT messages to be generated since we'd otherwise get 
2324             lots of BadMatch X errors. Jackson did all the work figuring
2325             out the problem.
2326           - Destroying the caret if the window it's contained in is 
2327             destroyed. Can't use regular DestroyCaret method since it
2328             might fall into a drawing function (trying to remove the
2329             caret) and with that generate new BadMatch errors. Again,
2330             Jackson tracked this down.
2331           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2332             make sure we send the messages to all windows. (The old code
2333             would send the WM_DESTROY to the window, and then all child
2334             windows would be 'gone' because the WM_DESTROY handle lookup
2335             would no longer find the destroyed window)
2336         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2337         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2338
2339 2006-03-31  Jackson Harper  <jackson@ximian.com>
2340
2341         * ScrollableControl.cs: Dont recalc if we are not visible.
2342
2343 2006-03-31  Mike Kestner  <mkestner@novell.com>
2344
2345         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2346         the visibility branch.
2347
2348 2006-03-31  Jackson Harper  <jackson@ximian.com>
2349
2350         * ScrollBar.cs: Cap values when incrementing/decrementing.
2351
2352 2006-03-31  Mike Kestner  <mkestner@novell.com>
2353
2354         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2355         * ToolTip.cs: guard against timer expirations with no active control.
2356         Not sure why it happened.
2357
2358 2006-03-31  Mike Kestner  <mkestner@novell.com>
2359
2360         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2361         text.
2362         * ToolTip.cs: Position the tooltip based on where the cursor is at
2363         popup time, not at MouseEnter time.  Add a Down state so that we don't
2364         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2365         positioning offset. Lookup DisplaySize at positioning time, since it
2366         can theoretically change during invocation.
2367         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2368         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2369
2370 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2371
2372         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2373           Fixes behaviour when the Text property of the box is String.Empty
2374
2375 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2376
2377         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2378           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2379           a window)
2380
2381 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2382
2383         * FileDialog.cs: Visual enhancement for the popup buttons in 
2384           PopupButtonPanel
2385
2386 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2387
2388         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2389           code
2390
2391 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2392
2393         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2394           highlighted menu items to match ms
2395
2396 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2397
2398         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2399
2400 2006-03-30  Mike Kestner  <mkestner@novell.com>
2401
2402         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2403         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2404         go active to account for HotLight to Selected transition.
2405         * MenuItem.cs: add internal Selected prop. Fill out the Status
2406         property by calculating it from item info. Add HotLight,
2407         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2408
2409 2006-03-30  Mike Kestner  <mkestner@novell.com>
2410
2411         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2412
2413 2006-03-29  Jackson Harper  <jackson@ximian.com>
2414
2415         * Form.cs: Implement TODO.
2416
2417 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2418
2419         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2420           missing proper dialog setup in the constructor
2421
2422 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2423
2424         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2425         * Control.cs:
2426           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2427           - Fixed ResetBindings and removed TODO
2428           - Added check for cross-thread calls to get_Handle()
2429           - Added Marshaller attribute for set_Font to satisfy class status
2430         * FontDialog.cs: Removed TODOs that seemed implemented
2431         * UpDownBase.cs: Removed unneeded TODO and Fixme
2432         * MessageBox.cs: Implemented support for Default button and removed TODO
2433         * FileDialog.cs: Removed obsolete TODO
2434         * DomainUpDown.cs: Removed obsolete TODO
2435         * ButtonBase.cs: Removed obsolete TODO
2436         * XplatUIWin32.cs: Removed obsolete TODO
2437         * Form.cs:
2438           - Removed obsolete TODO
2439           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2440             internal status updates
2441           - Making sure the active control is selected when the control is created
2442         * CurrencyManager.cs: Removed obsolete TODO
2443
2444 2006-03-29  Mike Kestner  <mkestner@novell.com>
2445
2446         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2447         of PrintPreviewDialog and RichTextBox.
2448
2449 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2450
2451         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2452           DarkDark, Light and LightLight colors for a specific color
2453         * ThemeWin32Classic.cs:
2454           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2455             Appearance = Button 
2456           - Make use of the new ResPool helper CPColor
2457           - Draw ProgressBar and StatusBar with correct 3D borders
2458
2459 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2460
2461         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2462
2463 2006-03-28  Mike Kestner  <mkestner@novell.com>
2464
2465         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2466         calculating col/row counts.
2467
2468 2006-03-28  Mike Kestner  <mkestner@novell.com>
2469
2470         * ColumnHeader.cs:
2471         * ListView.cs:
2472         * ListViewItem.cs:
2473         * Menu.cs: 
2474         switch to explicit interface method implementation for some methods
2475         corcompare identifies as inconsistent with MS.
2476
2477 2006-03-28  Mike Kestner  <mkestner@novell.com>
2478
2479         * MainMenu.cs: 
2480         * Menu.cs:
2481         add a few missing methods from the class status output.
2482
2483 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2484
2485         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2486           correct.
2487
2488 2006-03-28  Mike Kestner  <mkestner@novell.com>
2489
2490         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2491
2492 2006-03-27  Mike Kestner  <mkestner@novell.com>
2493
2494         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2495         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2496
2497 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2498
2499         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2500
2501 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2502
2503         * ThemeWin32Classic.cs:
2504           - GroupBox: Inserted a little gap between the text and the lines
2505             on the right side
2506           - Made the code in CPDrawBorder3D more readable
2507           - Corrected the drawing location of the up and down arrows in 
2508             CPDrawScrollButton
2509
2510 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2511
2512         * ControlPaint.cs: Corrected line widths in DrawBorder for
2513           ButtonBorderStyle Inset and Outset
2514
2515 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2516
2517         * ThemeWin32Classic.cs:
2518           - Rewrote the totally broken CPDrawBorder3D method. That was
2519             one of the main problems for the terrific ThemeWin32Classic
2520             look
2521           - Updated and corrected Button drawing
2522           - Correct the dimensions of the SizeGrip to match ms ones
2523           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2524         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2525           Border3DStyle.Sunken to match ms.
2526
2527 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2528
2529         * ThemeWin32Classic.cs: First small part of the "de-uglify
2530           ThemeWin32Classic" effort, SizeGrip
2531
2532 2006-03-24  Jackson Harper  <jackson@ximian.com>
2533
2534         * XplatUIX11.cs: Give a max idle time of one second, this matches
2535         MS and forces an Idle event every second when there are no other
2536         events in the queue.
2537
2538 2006-03-24  Mike Kestner  <mkestner@novell.com>
2539
2540         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2541         * ListView.Item.cs: fix layout issues with null image lists and images
2542         smaller than checkbox size.
2543         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2544         mode like MS does.  It's weird, but consistent.  ;-)
2545         Fixes #77890.
2546
2547 2006-03-24  Mike Kestner  <mkestner@novell.com>
2548
2549         * ListView.cs: Scroll wheel support for the item control.  Fixes
2550         #77839.
2551
2552 2006-03-23  Jackson Harper  <jackson@ximian.com>
2553
2554         * ScrollableControl.cs: Special case negative sized areas, not
2555         zero.
2556         * MonthCalendar.cs: Save the rect of the clicked date so we can
2557         use it for invalidation.
2558         - Try to cut down on the number of invalidates
2559         - Invalidate the rect the mouse is over and was over when moving
2560         the mouse, so we get the focus box following the cursor.
2561
2562 2006-03-23  Mike Kestner  <mkestner@novell.com>
2563
2564         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2565         focus rectangle drawing. Fixes #77835.
2566
2567 2006-03-23  Mike Kestner  <mkestner@novell.com>
2568
2569         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2570         the if and else if and reverting back to the original == check on the
2571         None conditional.
2572
2573 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2574
2575         * FontDialog.cs: Update the example panel if the selected index of
2576           the fontListBox changes.
2577
2578 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2579
2580         * FileDialog.cs: Make FileDialog remember which directory it was in
2581           last in the same execution.
2582
2583 2006-03-22  Mike Kestner  <mkestner@novell.com>
2584
2585         * FileDialog.cs: make the DropDownMenu on the toolbar display
2586         RadioChecks since they are mutually exclusive and that's what MS does.
2587
2588 2006-03-22  Mike Kestner  <mkestner@novell.com>
2589
2590         * Theme.cs: add Color param to CPDrawMenuGlyph.
2591         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2592         checks and radio marks and arrows are visible on highlighted items.
2593         * ControlPaint.cs: update to use new Theme signature.
2594
2595 2006-03-22  Mike Kestner  <mkestner@novell.com>
2596
2597         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2598         is active. Fixes #77870.
2599
2600 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2601
2602         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2603           to be focused/selected after startup
2604
2605 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2606
2607         * ColorDialog.cs: 
2608           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2609             CustomColors and ShowHelp properties
2610           - Some internal rewrites to get better results when using the
2611             ColorMatrix
2612
2613 2006-03-22  Mike Kestner  <mkestner@novell.com>
2614
2615         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2616         HoverSelection.  Fixes #77836.
2617
2618 2006-03-22  Mike Kestner  <mkestner@novell.com>
2619
2620         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2621         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2622         1, not 0.  Update ButtonSize based on a pixel count of the win32
2623         control.  Adjust the toolbar size/location for new button size.
2624
2625 2006-03-22  Jackson Harper  <jackson@ximian.com>
2626
2627         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2628         true.
2629         * ScrollBar.cs: When doing increments and decrements we need to
2630         set the Value property so that ValueChanged gets raised. A
2631         possible optimization here would be to make an internal SetValue
2632         that doesn't invalidate immediately.
2633         * ToolTip.cs: Tooltips get added to their container (when
2634         supplied) so they get disposed when the container is disposed.
2635         - Don't create tooltips for String.Empty. This prevents all these
2636         little 2-3 pixel windows from showing up when running nunit-gui
2637         and driving me mad.
2638         * Form.cs: Don't set topmost when setting the owner if the handles
2639         haven't been created yet.  The topmost set will happen when the
2640         handles are created.
2641
2642 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2643
2644         * XplatUIX11.cs:
2645           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2646           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2647             visible (to allow them to recalculate their sizes)
2648
2649 2006-03-21  Mike Kestner  <mkestner@novell.com>
2650
2651         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2652         methods. Removed a ton of redundant code.  Still not really happy with
2653         the border rendering, but I think that's mainly because of the
2654         ControlDarkDark being black instead of a dark grey. Depending on how 
2655         close we want to be, we might want to revisit those color choices.
2656         Among the new features added during the refactor were DropDownArrow
2657         pressed rendering, Disabled image rendering.  Proper flat appearance
2658         boundary rendering.  Removed the Divider and Wrapping dividers since I
2659         can't figure out any combination of themes and conditions to make the
2660         MS control draw a horizontal line on a toolbar despite what the
2661         Divider property docs indicate.
2662         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2663         conditions and incorrect layout.  Updated to coding standard.
2664         * ToolBarButton.cs: refactored layout and positioning code from
2665         ToolBar to here.  Invalidate wherever possible instead of forcing
2666         redraws of the whole toolbar. 
2667         (Known remaining issues: explicit ButtonSize smaller than provided
2668         images.)
2669
2670 2006-03-21  Mike Kestner  <mkestner@novell.com>
2671
2672         * ContextMenu.cs (Show): use the position parameter instead of just
2673         showing at the MousePosition.
2674
2675 2006-03-21  Jackson Harper  <jackson@ximian.com>
2676
2677         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2678         control handle this.
2679         * TreeNodeCollection.cs: If we are clearing the root node we need
2680         to reset top_node so calcs can still happen.
2681         * ThemeWin32Classic.cs: This is a Flags so we need to check
2682         properly.
2683         
2684 2006-03-21  Jackson Harper  <jackson@ximian.com>
2685
2686         * DataGrid.cs: Create columns when the binding context has been
2687         changed.
2688         * X11Structs.cs: Keysyms are uints.
2689         - Add size to fix build.
2690
2691 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2692
2693         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2694           XplatUIOSX.cs: 
2695           - Added ResetMouseHover method to allow controls to retrigger
2696             hovering if they need it more than once
2697           - Implemented MouseHoverTime and MouseHoverSize properties
2698         * Timer.cs: Start() must reset the interval
2699         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2700           properties
2701
2702 2006-03-21  Jackson Harper  <jackson@ximian.com>
2703
2704         * X11Keyboard.cs: improved layout detection. Move the nonchar
2705         tables into this file.
2706         * KeyboardLayouts.cs: Move the tables into resource files.
2707
2708 2006-03-21  Mike Kestner  <mkestner@novell.com>
2709
2710         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2711
2712 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2713
2714         * Mime.cs: Various speed optimizations. Looking up mime types
2715           is now 2 times faster than before
2716
2717 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2718
2719         * CreateParams.cs: Added internal menu field
2720         * Control.cs: 
2721           - Switched call order for UpdateBounds; now we always call
2722             the one that also takes ClientSize, and we're calculating the 
2723             client size via driver method in the others. The previous
2724             method of tracking client size by difference wasn't working
2725             for forms where even the starting client size wouldn't match
2726             the overall form size (due to borders) (Part of fix for #77729)
2727           - CreateParams(): Do not use parent.Handle unless the handle is
2728             already created. Causes havoc with Nexxia and throws off our
2729             creation of controls
2730         * XplatUIX11.cs:
2731           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2732           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2733             method (consolidates code)
2734           - Changed RequestNCRecalc to use new PerformNCCalc method
2735           - Added calls to RequestNCRecalc when menus and borders are changed
2736             to allow app to set NC size. (Part of fix for #77729) This matches
2737             when MS send a WM_NCRECALC on Win32 windows.
2738           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2739             (Part of fix for #77729). This matches what MS does, they also
2740             send that message when the form is made visible.
2741           - XException.GetMessage: Improved usability of X errors by including
2742             a translation of the window into Hwnd and Control class
2743           - Improved debug info for window creation, reparenting and destruction
2744           - Created helper method WindowIsMapped() [Currently not used]
2745         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2746         * Form.cs:
2747           - CreateParams: Now setting our menu on the new internal menu field
2748           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2749             avoid calculating the same property twice
2750         * Hwnd.cs:
2751           - Improved usability of ToString() for debugging purposes
2752           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2753             determine the height of the menu, instead of just the font. This
2754             required to also create a graphics context and to keep a bmp 
2755             around (for performance reasons)
2756
2757 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2758
2759         * MenuAPI.cs: Added OnMouseUp method
2760         * Form.cs:
2761           - Now remembering the requested client size, avoids size errors
2762           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2763             instead of base if the menu is active. This is required due to
2764             control now capturing and releasing on down/up and it would
2765             prematurely release our menu capture
2766
2767 2006-03-17  Jackson Harper  <jackson@ximian.com>
2768
2769         * KeyboardLayouts.cs: Add the czech layouts.
2770
2771 2006-03-16  Jackson Harper  <jackson@ximian.com>
2772
2773         * Control.cs: Use the viewport space when sizing not the controls
2774         client size, so things like ScrollableControl that effect the
2775         viewport size (when scrollbars are added) are computed correctly.
2776         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2777         of ManagerEntrys.
2778         - Handle creating BindingManagers for null data sources.
2779         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2780         source, otherwise when rows are added they are added to the 'fake'
2781         datasource and we will crash when trying to set the position in
2782         those rows.
2783         - Use Implicit scrollbars on the datagrid so they arent
2784         selectable.
2785         
2786 2006-03-16  Jackson Harper  <jackson@ximian.com>
2787
2788         * Binding.cs:
2789         * InternalWindowManager.cs:
2790         * MdiWindowManager.cs:
2791         * X11Keyboard.cs: I really want Mike to love me again (fix
2792         compiler warnings).
2793
2794 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2795
2796         * DataGrid.cs:
2797           - OnMouseDown: Switch to editing mode when clicking on the cell
2798                          even if we're clicking on the cell that's currently 
2799                          selected
2800           - ProcessGridKey: Left/Right now wrap like MS.Net does
2801           - ProcessGridKey: Tab now knows to add a new row when tab is
2802                             pressed in the cell of the last column of the 
2803                             last row
2804           - ProcessGridKey: Enter now adds another row  if pressed in the last
2805                             row and selectes the new row, same column cell
2806           - ProcessGridKey: Home/End navigate columns, not rows, like 
2807                             originally implemented
2808           - Broke ProcessKeyPreview code out into an extra Internal method
2809             so it can be called from the edit code
2810         * DataGridTextBox.cs (ProcessKeyMessage):
2811           - Switched to accept Tab keypresses
2812           - Added F2 handling to allow jumping to the end of the edited cell
2813           - Added logic to allow moving caret left/right inside edited cell
2814             and making the edited cell jump when the caret hits cell borders
2815           - Tab and Enter are now passed to the datagrid after being handled
2816         * TextBoxBase.cs:
2817           - Removed capture code now that Control handles it
2818           - set_SelectionStart now ensures caret is visible
2819
2820 2006-03-16  Jackson Harper  <jackson@ximian.com>
2821
2822         * TrackBar.cs: Debackwards the increment/decrement for handling
2823         mouse clicks on the bar with vertical trackbars.
2824         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2825         bottom to match MS.
2826
2827 2006-03-16  Mike Kestner  <mkestner@novell.com>
2828
2829         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2830         consistent with the MS control. Fix a bug in
2831         SelectedListViewItemCollection.Clear that was pissing me off for the
2832         better part of a day because the collection was being altered
2833         underneath us as we walked the list.
2834
2835 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2836
2837         * Control.cs: Not sure how we could miss this so long, but it seems
2838           that MS.Net has Capture set all the way from before calling 
2839           OnMouseDown through sending the mouse events until after
2840           OnMouseUp. This will fix DataGrid's selection being set to end
2841           at the location of the MouseUp.
2842
2843 2006-03-15  Jackson Harper  <jackson@ximian.com>
2844
2845         * BindingContext.cs: Check the binding after its added so that it
2846           can initialize the binding managers and hookup to events.
2847         * Binding.cs: Data members seem to sometimes include rows/cols in
2848           the format Row.Column we now take this into account.
2849           - Hookup to the position changed event so we can update the
2850           control when the position has changed in the data set.
2851         * CurrencyManager.cs: Take into account the row/col naming
2852           convention when creating dataset tables.
2853         * BindingContext.cs: Using a newer better way of storing
2854           datasource/datamember pairs.  Hopefully this better matches MS for
2855           looking up binding managers.
2856
2857
2858 2006-03-15  Jackson Harper  <jackson@ximian.com>
2859
2860         * BindingContext.cs: The currency manager needs the data member
2861         name, if the member is a data set we use the name to find the
2862         correct table.
2863         * CurrencyManager.cs: When creating the list prefer an IList over
2864         an IListSource.
2865         - Attempt to create a DataTable from a DataSet (TODO: might need
2866         some better error checking here, although MS doesn't seem to have much)
2867         - If we have a DataTable create a view and use it as our list.
2868
2869 2006-03-15  Mike Kestner  <mkestner@novell.com>
2870
2871         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2872         keyboard navigation. Support Up/Down/Left/Right selection correctly
2873         for all 4 View modes.
2874         * ListViewItem.cs: add internal row/col fields for icon layouts.
2875
2876 2006-03-15  Jackson Harper  <jackson@ximian.com>
2877
2878         * TabControl.cs: Redraw the tabs when we resize so their newly
2879         calculated sizes are drawn on screen.
2880         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2881         composite characters.
2882         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2883         - filter events so that composite characters can be created
2884         patches by peter
2885         * X11Structs.cs: Add XIMProperties enum.
2886
2887 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2888
2889         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2890           unless it's created
2891
2892 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2893
2894         * Control.cs (PerformLayout): We don't need to consider visiblity
2895           for anchoring, only for docking. This fixes 'whacky' alignment
2896           in listbox and other controls that use implicit scrollbars after
2897           the previous PerformLayout patch
2898         * ListBox.cs: Switched to use implicit scrollbars
2899           
2900 2006-03-14  Mike Kestner  <mkestner@novell.com>
2901
2902         * ToolBar.cs: 
2903         * VScrollBar.cs:
2904         - chain up the "new event" overrides to base and use
2905         OnEvent to raise them.  Part of fix for bug #76509.
2906
2907 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2908
2909         * FileDialog.cs: Do not select an item in the parent directory
2910           on backspace
2911
2912 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2913
2914         * Control.cs (PerformLayout): It would seem that we considered
2915           invisible windows for our layout. Not quite the right thing
2916           to do. Now we don't any longer, thereby fixing bug #76889.
2917
2918 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2919
2920         * Control.cs (CanFocus): I goofed. A control can have focus 
2921           even though it's not selectable. Made it match MS docs.
2922
2923 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2924
2925         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2926           center by default (fixes #76895)
2927         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2928           all uses of Border3DSides.All with the explicit ORd together
2929           Left|Right|Top|Bottom because I assume that nobody was aware 
2930           that All also implies a center fill. Most places I checked had
2931           a fill right above.
2932         * ProgressBarStyle.cs: Added
2933
2934 2006-03-13  Mike Kestner  <mkestner@novell.com>
2935
2936         * ListView.cs: fix breakage in drag shadow header positioning 
2937         from Peter's csc compilation fix.
2938
2939 2006-03-13  Mike Kestner  <mkestner@novell.com>
2940
2941         * ListView.cs: fix NRE produced by backspacing twice in a focused
2942         FileDialog.
2943
2944 2006-03-13  Mike Kestner  <mkestner@novell.com>
2945
2946         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2947
2948 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2949
2950         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2951           be changed
2952         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2953           the allowed size before making programmatic size changes
2954
2955 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2956
2957         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2958           set, metacity is broken and will still use the emty sizes in 
2959           the struct. (Fix for #77089)
2960
2961 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2962
2963         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2964           WindowExStyles and marked both enums as Flags
2965         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2966           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2967           to match WindowStyles split
2968         * XplatUIX11.cs:
2969           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2970           - Updated to match WindowStyles split
2971         * XplatUIWin32.cs:
2972           - Fixed FosterParent creation, was using ExStyle on the Style field
2973             (This should help with Popup focus issues)
2974           - Updated to match WindowStyles split
2975
2976 2006-03-13  Jackson Harper  <jackson@ximian.com>
2977
2978         * MdiWindowManager.cs: Use the system menu height. Fixes some
2979         strange sizing issues.
2980
2981 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2982
2983         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2984         * TextBoxBase.cs:
2985           - Scroll to caret after inserting text (#77672)
2986           - Make scroll range one pixel higher, fixes off-by-one error (and
2987             makes underlines visible on the last line)
2988
2989 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2990
2991         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2992           the keyboard state from being stuck with keys in 'pressed' state when
2993           focus is switched away via keyboard
2994         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2995           reset the keyboard if no X11 KeyUp events are expected to come
2996         * X11Structs.cs: Switched type of Visible to bool to match driver
2997
2998 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2999
3000         * TextControl.cs:
3001           - Switched caret to be just 1 pixel wide, matches MS and looks less
3002             clunky
3003           - Moved caret display 1 pixel down from the top of the control
3004             to improve view
3005           - InsertCharAtCharet: Update the selection start if moving the caret
3006             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3007           - No longer always creating the caret when the caret methods are
3008             called. Only the actual ShowCaret/HideCaret will do that now
3009           - Only setting caret visible if the owner control has focus
3010           - UpdateView: Added invalidation-shortcut logic for center and right 
3011             aligned text. Previously we'd update all according to the left
3012             logic which caused drawing errors. Also fixed height of invalidated
3013             areas, now properly invalidating the whole area (was off-by-one)
3014           - owner_HandleCreated: Always generate the document when the
3015             handle is created; this ensures that 
3016         * TextBoxBase.cs:
3017           - Fixed situation where caret would disappear under the right
3018             window border, also improved scrolling behaviour on left-
3019             aligned textboxes
3020           - Fixed right-aligned textboxes to have a border to the
3021             right instead of the caret being under the right border
3022         * XplatUIX11.cs:
3023           - Switched from 'nested' to simple visible/not visible tracking 
3024             for caret (part of fix for #77671)
3025           - No longer passing through translated FocusIn/FocusOut messages
3026             since we were notifying too often and the wrong windows. Instead
3027             we just notify our focussed window of receiving or loosing focus
3028         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3029           counting for caret to simple visible yes/no behaviour (part of 
3030           fix for #77671)
3031
3032 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3033
3034         * Mime.cs: Remove debug code...
3035
3036 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3037
3038         * MimeGenerated.cs: Removed
3039         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3040           and subclasses) from /usr/(local/)share/mime and
3041           $HOME/.local/share/mime.
3042
3043 2006-03-10  Jackson Harper  <jackson@ximian.com>
3044
3045         * MdiWindowManager.cs: Recalc the NC area when a window is
3046         maximized/restored so that the menu area is drawn on forms that
3047         don't have a menu.
3048
3049 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3050
3051         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3052           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3053           us to force a WM_NCCALCRESIZE message being sent. This is needed
3054           for MDI maximizing.
3055
3056 2006-03-10  Jackson Harper  <jackson@ximian.com>
3057
3058         * Form.cs: We need to use the ActiveMenu when calculating menu
3059         height.
3060         - Fix nullref when the window manager hasn't been created yet.
3061         * Control.cs: Fix nullref when we try to bring a control to the
3062         front that has no parent.
3063         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3064         height.
3065         - Add a dummy item to the maximized menu so it always has the
3066         correct height. Otherwise when there are no menus we don't get our
3067         icon and buttons.
3068         
3069
3070 2006-03-10  Jackson Harper  <jackson@ximian.com>
3071
3072         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3073         stuff.
3074         * Form.cs: Make the window_state internal so the window managers
3075         can track it.
3076         - When an MDI child is maximized let its window manager create the
3077         main menu (so it can add its icon).
3078         - Notify the window managers of state changes
3079         - Let the window manager paint its buttons and handle button
3080         clicks on the menu when it is maximized.
3081         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3082         window manager, since tool windows don't use it, only mdi windows.
3083         - Tell the main form that we don't want it to handle NCPAINT
3084         itself to avoid extra painting.
3085         - Handle clicks on a maximized windows menu.
3086         - Handle window state changes
3087         - Handle minimize/maximize clicks correctly by setting the window state.
3088         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3089         when clicking on the forms icon).
3090         - New method to create a forms maximized menu. This is its normal
3091         menu + an icon.
3092         - Handle window state changes.
3093         - Handle sizing of maximized windows.  Maximized windows are just
3094         drawn bigger then the parent visible area. All controls are still
3095         there, they are just outside the visible area (this matches windows).
3096         * MdiClient.cs: No scrollbars when a child window is maximized.
3097         - Let the children windows figure out how big they should be when
3098         sizing maximized windows.
3099         - Implement a version of ArrangeIconicWindows somewhat similar to
3100         Windows version.  There are some little differences, but I don't
3101         think any app will rely on the layout of minimized mdi windows.
3102
3103 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3104
3105         * Padding.cs: Several fixes to allow compiling with csc 2.0
3106
3107 2006-03-09  Jackson Harper  <jackson@ximian.com>
3108
3109         * Menu.cs:
3110         * MenuItem.cs: Cheap hack so we can add items to the list without
3111         the events being raised.  This allows adding mdi items during
3112         drawing. TODO: Should probably find a better time to add the items.
3113
3114 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3115
3116         * ThemeWin32Classic.cs:
3117           - CheckBox_DrawText: Added logic to not wrap if not enough space
3118             is available (Fix for bug #77727)
3119           - RadioButton_DrawText: Added logic not to wrap if not enough
3120             space is available (Fix for bug #77727). Also removed some
3121             duplicate code, DrawString always drawing the regular text
3122             before hitting the if statement.
3123
3124 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3125
3126         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3127
3128 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3129
3130         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3131         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3132           methods. Moved the new 2.0 properties into alphabetical order with
3133           other properties and added MonoTODO tags
3134
3135 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3136
3137         * AutoScaleMode.cs: Added. Fix build.
3138
3139 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3140
3141         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3142           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3143           and was requiring premature handle creation for calls from above
3144         * Form.cs, Control.cs: Removed handle arguments from calls to
3145           CalculateClientRect()
3146
3147 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3148
3149         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3150           drag_column.column_rect is MarshalByRef and can't be used that way
3151
3152 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3153
3154         * AxHost.cs: Added deserialization constructor for 
3155           AxHost+State (fixes 77743)
3156
3157 2006-03-09  Mike Kestner  <mkestner@novell.com>
3158
3159         * ListView.cs: 
3160         - Added column drag reordering for details view.
3161         - fixed behavior when mouse is dragged off column and
3162         AllowColumnReorder is false.
3163         * ColumnHeader.cs: clone the format too in Clone.
3164         * Theme.cs: add DrawListViewHeaderDragDetails method.
3165         * ThemeWin32Classic.cs:
3166         - impl new method for drawing drag column shadows and targets.
3167         - support column offset for details mode in DrawListViewItem.
3168
3169 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3170
3171         * TextControl.cs: Reset the char_count when the document is cleared
3172           (Fixes bug reported on mono-winforms mailing list)
3173
3174 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3175
3176         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3177           of calling base we simply process the key ourselves, since both
3178           DefWindowProc and the handled method would set m.Result. 
3179           (Fixes #77732)
3180
3181 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3182
3183         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3184           method also moves the window; instead implemented a copy of
3185           Control.ScaleCore (Part of fix for #77456)
3186         * TextBoxBase.cs: 
3187           - Created new CreateGraphicsInternal method to allow providing
3188             a graphics context when no handle is created without triggering
3189             handle creation. (Part of fix for #77456)
3190           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3191         * TextControl.cs: 
3192           - Switched Constructor to require TextBoxBase instead of Control (to
3193             allow uncast access to CreateGraphicsInternal)
3194           - Safeguarded use of owner.Handle property. No longer accessing it
3195             unless the handle is already created.
3196           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3197           - Now triggering a recalc when owning control becomes visible
3198         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3199           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3200           premature handle creation (Part of fix for #77456)
3201         * Control.cs:
3202           - We now only destroy our double-buffering buffers when the
3203             control is resized or disposed, but not when visibility
3204             changes. (The code even re-created them twice every time)
3205           - Now requiring a redraw of the buffer on visibility changes
3206             (fixes bug 77654 part 2)
3207           - Not passing OnParentVisibleChanged up unless the control
3208             is visible
3209           - CanFocus: Fixed to match MS documentation
3210           - Focus: Fixed to return actual focus state and to check if
3211             setting focus is legal before setting it
3212
3213 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3214
3215         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3216           when to draw focus rectangle by looking at parent focus and
3217           selected state instead. This fixes TabPages on Linux sometimes
3218           having none or multiple focus rectangles.
3219         * XplatUIX11.cs (SetFocus): 
3220           - Don't set the focus if the same window already has focus
3221           - Use SendMessage instead of PostMessage (like it's Win32
3222             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3223             to match MS behaviour
3224         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3225           are not selectable.
3226
3227 2006-03-07  Jackson Harper  <jackson@ximian.com>
3228
3229         * PictureBox.cs: Revert line I accidently committed last week.
3230
3231 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3232
3233         * Control.cs: 
3234           - Added new IsRecreating and ParentIsRecreating properties to
3235             allow testing if RecreateHandle has been called on ourselves
3236             or one of our parents
3237           - WndProc(WM_DESTROY): If our control handle is being recreated
3238             we immediately need to create the handle when receiving the
3239             destroy, that way our child windows find a valid parent handle
3240             when they themselves are being recreated upon WM_DESTROY receipt
3241             (fix for bug #77654 part 1)
3242         * XplatUIX11.cs:
3243           - DestroyWindow: WM_DESTROY must be sent to our own window before
3244             notifying any child windows. MS documents that child windows
3245             are still valid when WM_DESTROY is received. (Control now relies on
3246             this behaviour)
3247           - Added some fine-grain debug options
3248
3249 2006-03-06  Jackson Harper  <jackson@ximian.com>
3250
3251         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3252         box and base calculations off this.
3253         * MdiChildContext.cs:
3254         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3255         anymore.
3256         
3257 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3258
3259         * Splitter.cs: In situations where the affected control is added
3260           to the parent's control list after the splitter, we would not
3261           populate affected. Now we try populating it on mousedown, if
3262           it's not already set, and force it to be re-set whenever our
3263           parent changes.
3264
3265 2006-03-03  Matt Hargett  <matt@use.net>
3266
3267         * Control.cs: implement Control.Padding
3268         * Padding.cs: -Padding.All returns -1 when constructing with the
3269         implicit default ctor
3270         -Padding.ToString() matches MS.NET
3271         * ContainerControl.cs: implement
3272         ContainerControl.AutoScaleDimensions
3273         * ListControl.cs: implement ListControl.FormattingEnabled
3274         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3275         * ButtonBase.cs:
3276         * TabPage.cs: Implement UseVisualStyleBackColor.
3277         * PictureBox.cs: Implement PictureBox.InitialImage.
3278
3279 2006-03-03  Mike Kestner  <mkestner@novell.com>
3280
3281         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3282         event declarations to proxy to base event.
3283         * ListViewItem.cs: update to use ItemControl.
3284         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3285         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3286         column header label rendering for 0 width columns.
3287
3288 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3289
3290         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3291           that causes the control to be created. Fixes #77476.
3292
3293 2006-03-02  Jackson Harper  <jackson@ximian.com>
3294
3295         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3296         expose_pending.
3297
3298 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3299
3300         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3301           passed in for the EventArgs (fixes #77690)
3302
3303 2006-03-01  Jackson Harper  <jackson@ximian.com>
3304
3305         * ScrollBar.cs: Refresh afterbeing resized.
3306
3307 2006-02-28  Mike Kestner  <mkestner@novell.com>
3308
3309         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3310         Clean up a tracker compile warning.
3311         * MenuItem.cs: add internal PerformPopup method.
3312         [Fixes #77457]
3313
3314 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3315
3316         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3317           implicit expose) when the text is set to null
3318
3319 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3320
3321         * RichTextBox.cs (FlushText): When newline is true, we always
3322           need to split the line, even if no text is on it and we may
3323           never eat newlines. (Fixes #77669)
3324
3325 2006-02-28  Mike Kestner  <mkestner@novell.com>
3326
3327         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3328         and set Selected instead.
3329         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3330         collections.
3331
3332 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3333
3334         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3335
3336 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3337
3338         * FontDialog.cs:
3339           - Got rid of the panel. All controls are now directly added to
3340             the dialog form
3341           - It is now possible to set a font with the Font property
3342           - MinSize and MaxSize property do now what they should
3343           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3344           - Searching and selecting a font with the font textbox works now,
3345             the same applies to the style and size textbox
3346           - Draw the correct 3D border in the example panel
3347           - Fixed a little mem leak (unused fonts didn't get disposed)
3348           - Many other internal updates/rewrites...
3349           - Fix typo
3350
3351 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3352
3353         * TextControl.cs: 
3354           - InsertRTFFromStream: Added 'number of characters inserted' argument
3355           - set_SelectedRTF: Now using the number of characters to calculate
3356             the new location for the selection and cursor (x/y cannot be used
3357             due to potentially already wrapped text)
3358
3359 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3360
3361         * TextControl.cs: Added property and implemented means to allow 
3362           disabling recalculation of a document (can be used to speed up
3363           multiple inserts and is needed to make RTF inserts predictable, see
3364           bug #77659)
3365         * RichTextBox.cs: Using the new NoRecalc property of Document to
3366           keep x/y insert locations predictable. Also makes it faster inserting
3367           large chunks of RTF
3368
3369 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3370
3371         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3372           it's easier for a child control to handle the other messages without
3373           having to duplicate the special functionality
3374         * TextBoxBase.cs
3375           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3376             code to handle processing the key ourselves, in order to get 
3377             access to the result of KeyEventArgs.Handled. We now only call 
3378             ProcessKey if they key hasn't been handled already. Fixes #77526.
3379           - set_Text: If null or empty string is given, just clear the 
3380             document. Fixes part of #77526
3381
3382 2006-02-27  Jackson Harper  <jackson@ximian.com>
3383
3384         * SizeGrip.cs: Paint the background color before painting the grip
3385         so things look right.
3386         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3387
3388 2006-02-27  Mike Kestner  <mkestner@novell.com>
3389
3390         * ListView.cs:
3391           - Restructure layout and invalidation model to remove a ton of
3392           flicker from the control and speed up performance in general.
3393           - Add manual column resize, flickers like crazy, but I already have
3394           some ideas on how I'll fix that. (#76822)
3395           - Merge the three Icon-based views into a single layout method.
3396           - Move item selection interaction logic from the item since 
3397           interaction with the collections is more appropriate to the view.
3398           - Deselection on non-item clicks.
3399         * ListViewItem.cs:
3400           - Encapsulate most of the layout. Add some internal props to trigger
3401           layout.  Move to a model where Items invalidate themselves instead
3402           of just invalidating the whole control every time something changes.
3403           - Invalidate on Text/Caption changes.
3404           - switch to an offset based layout model to avoid having to absolute
3405           position every element on item moves.
3406           - correct checkbox layout to conform to MS layout.
3407         * ThemeWin32Classic.cs:
3408           - refactor some column header drawing code.
3409           - fix string justification for column headers (#76821)
3410           - make SmallIcon labels top justified for compat with MS impl.
3411         * ThemeClearlooks.cs:
3412           - adjust to new ListViewItem internal checkbox bounds api.
3413
3414 2006-02-27  Jackson Harper  <jackson@ximian.com>
3415
3416         * Control.cs:  Change where implicit controls fall in the zorder.
3417         They are now on top of all children.
3418         - Synced AddImplicit code with Add
3419         - Removed unused enumerator.
3420         * SizeGrip.cs: Remove the TODO as its been TODONE.
3421
3422 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3423
3424         * TextControl.cs(Insert): Combine the last lines unless the insertion
3425           string ends with \n\n, otherwise we leave one line too many (Fixes
3426           something I noticed with the testapp for #77526; the bug itself was
3427           already fixed in the previous checkin)
3428
3429 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3430
3431         * RichTextBox.cs:
3432           - SelectionColor and SelectionFont methods no longer set absolute
3433             styles. Instead, the keep font or color respectively (This 
3434             resolves a long-standing FIXME in the code)
3435           - When flushing RTF text, the insert code now considers text trailing
3436             behind the insertion point (Fixes the bug where when replacing
3437             the selected text via SelectedRTF the remainder of the line behind 
3438             the selection would stay on the first insertion line)
3439         * TextBoxBase.cs:
3440           - AppendText now updates the selection points after inserting text
3441           - AppendText now ensures that the last tag (sometimes 0-length) of
3442             the document is used for the style information (Fixes part of 
3443             bug #77220)
3444         * TextControl.cs:
3445           - Created new FontDefiniton class to allow describing partial style
3446             changes
3447           - StreamLine() now takes a lines argument, to allow it to decide
3448             whether an encountered zero-length tag is the last in the document
3449             (which must be kept to not loose the font/color contained in it,
3450             for later appends)
3451           - Created Combine() and Split() methods for Marker structs, to 
3452             support marker updates due to reformatted documents (soft line
3453             wraps)
3454           - Implemented Document.CaretTag setter
3455           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3456             of the last line (Not the cause, but also exposed by bug #77220)
3457           - Added LineTag argument to InsertString method, to allow callers
3458             to force a certain tag to be used (required to force use of the
3459             trailing zero-length tag of a document)
3460           - Now updating markers in Combine(), to avoid stale tag markers
3461           - Added some method descriptions to aid maintenance
3462           - Implemented new FormatText concept, allowing additive/subtractive
3463             formatting by only specifying the components that are to be 
3464             changed. This was needed for resolving the RTB.SelectedColor/
3465             RTB.SelectedFont fixmes
3466           - Added Break() support method to allow breaking up linetags (used
3467             for partial formatting)
3468           - Added GenerateTextFormat() method. It is used for partial 
3469             formatting and allows to generate a full font/color from given
3470             attributes and an existing tag.
3471
3472 2006-02-26  Jackson Harper  <jackson@ximian.com>
3473
3474         * XplatUIX11.cs:  Use the correct caption height.
3475         - Translate hittest coordinates to screen coords to match MS.
3476         * XplatUIWin32.cs: When we create MDI windows we need to reset
3477         some of the style flags, so we get a nice blank window, and can
3478         draw all the decorations ourselves.
3479         - Set a clipping rectangle on the non client paint event, the
3480         window manager drawing code needs one.
3481         * Form.cs: The window manager needs to know when the window state
3482         has been updated.
3483         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3484         don't need to factor in border and title sizes in these
3485         methods. TODO: Remove the args and fix the call points.
3486         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3487         properly.
3488         - Let the driver set the cursors.
3489         - Improve active window handling
3490         - Correct sizes for title bars and buttons.
3491         - Match MS drawing better
3492         * MdiWindowManager.cs: We don't need to handle border style
3493         updates specially anymore.
3494         - Check for scrollbars when windows are done moving
3495         - Handle Active properly.
3496         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3497         correctly. I am spewing the exception though, so we don't hide the
3498         bugs.
3499         
3500 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3501
3502         * DataGridViewRowPostPaintEventArgs.cs,
3503           DataGridViewCellPaintingEventArgs.cs,
3504           DataGridViewRowCollection.cs,
3505           DataGridViewRowPrePaintEventArgs.cs,
3506           DataGridViewCell.cs: Clear a few warnings and implement a few
3507           exceptions that should be thrown.
3508
3509 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3510
3511         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3512           'inheriting' our parent's (non-default) cursor. (Part of
3513            the fix for #77479)
3514
3515 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3516
3517         * XplatUIX11.cs: Fixed cast to make csc happy
3518
3519 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3520
3521         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3522           it's for the client area (part of fix for #77479 and needed
3523           for MDI window cursor handling)
3524         * XplatUIX11.cs
3525           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3526             the appropriate default cursors and also passing the message
3527             up the parent chain 
3528           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3529             for non-client areas
3530
3531 2006-02-15  Jackson Harper  <jackson@ximian.com>
3532
3533         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3534         is a real MDI window
3535
3536 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3537
3538         * X11DesktopColors.cs: Instead of checking the desktop session
3539           string for "KDE" check if it starts with "KDE"
3540
3541 2006-02-10  Jackson Harper  <jackson@ximian.com>
3542
3543         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3544         systems).
3545
3546 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3547
3548         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3549           errors
3550         * ColorDialog.cs:
3551           - Got rid of the panel. All controls are now directly added to
3552             the dialog form
3553           - Changed to mono coding style
3554
3555 2006-02-10  Jackson Harper  <jackson@ximian.com>
3556
3557         * InternalWindowManager.cs: We don't need the set visibility to
3558         false hack anymore now that peter has written beautiful shutdown
3559         code.
3560
3561 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3562
3563         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3564           where already explicitly destroyed
3565
3566 2006-02-10  Jackson Harper  <jackson@ximian.com>
3567
3568         * MdiClient.cs: Handle the case where windows are too high or to
3569         the left and we need scrollbars.
3570
3571 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3572
3573         * MimeIcon.cs: Added some icons
3574         * FileDialog.cs:
3575           - Fixed bug #77477
3576           - Got rid of the panel. All controls are now directly added to
3577             the dialog form
3578           - Changed to mono coding style
3579           - On Linux "My Computer" and "My Network" will now show some
3580             more usefull information. A new class, MasterMount, gathers
3581             this information from /proc/mount. Updated MWFFileView to make
3582             use of this information
3583           - Fixed a bug that caused FileDialog to crash when
3584             ".recently_used" file had a zero size
3585           - FilterIndex does now what it should
3586           - Some Refactoring
3587         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3588             FileDialog changes
3589
3590 2006-02-09  Jackson Harper  <jackson@ximian.com>
3591
3592         * ComboBox.cs: Don't touch if null.
3593
3594 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3595
3596         * Cursor.cs: 64bit safeness fix
3597         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3598
3599 2006-02-09  Jackson Harper  <jackson@ximian.com>
3600
3601         * Form.cs: If a form is made into an MDI form update the styles so
3602         all the props can get set correctly.
3603         - Kill the mdi_container when we dont need it anymore.
3604         * InternalWindowManager.cs: Add missing NOT
3605
3606 2006-02-08  Jackson Harper  <jackson@ximian.com>
3607
3608         * InternalWindowManager.cs: Respek clipping when drawing MDi
3609         decorations.
3610
3611 2006-02-08  Jackson Harper  <jackson@ximian.com>
3612
3613         * Hwnd.cs: Add bits to track non client expose events.
3614         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3615         gives us a proper invalid rect and will allow for some nice
3616         optimizations with NC client drawing
3617         - MDI windows are children windows, so move their style handling
3618         into the child window block.
3619         * InternalWindowManager.cs: Remove a state reset that was
3620         getting invoked at the wrong time. Fixes managed windows getting
3621         into a 'stuck' captured state.
3622
3623 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3624
3625         * TextControl.cs (Document.ctor): Now initializing 
3626           selection_anchor. Fixes #77493
3627
3628 2006-02-07  Jackson Harper  <jackson@ximian.com>
3629
3630         * TrackBar.cs: The increment/decrements were backwards.
3631
3632 2006-02-07  Mike Kestner  <mkestner@novell.com>
3633
3634         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3635         to the instance itself.
3636
3637 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3638
3639         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3640           on ulongs and pointers, the size differs between 32bit and 64bit
3641           systems. 
3642
3643 2006-02-07  Mike Kestner  <mkestner@novell.com>
3644
3645         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3646         for 64 bit platforms to work around a metacity bug. 
3647
3648 2006-02-07  Jackson Harper  <jackson@ximian.com>
3649
3650         * TrackBar.cs: Process the input keys we need, and hookup to
3651         KeyDown instead of using WndProc, so we get key messages.
3652
3653 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3654
3655         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3656           machine we're on. 
3657         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3658           we need to translate the XdndVersion atoms array before sending it
3659
3660 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3661
3662         * XplatUIX11.cs: 
3663           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3664             number of bits for the property, not the number of bytes. The
3665             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3666             but would not crash since it specified 8 bits instead of 4 bits)
3667           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3668             defined as XID -> long in the C headers)
3669           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3670             references since those are now IntPtr to begin with
3671           - Switched all Atom.XXX 'int' casts to IntPtr casts
3672           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3673           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3674           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3675         * X11Structs.cs:
3676           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3677           - Changed atom in HoverStruct to be IntPtr
3678         * X11DnD.cs:
3679           - Removed local DllImports, switched code to use those from XplatUIX11
3680           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3681
3682 2006-02-06  Mike Kestner  <mkestner@novell.com>
3683
3684         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3685         method signatures in the import region.  There may still be some
3686         lingering struct marshaling issues, as I didn't drill down into those.
3687         Yet.
3688
3689 2006-02-06  Jackson Harper  <jackson@ximian.com>
3690
3691         * ComboBox.cs: Dont manually set the top_item, this is computed
3692         when the scrollbar position is set.
3693
3694 2006-02-06  Mike Kestner  <mkestner@novell.com>
3695
3696         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3697         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3698         usage of Atom needs to be mapped to IntPtr for example.  And there are
3699         likely other int/long issues to be addressed.
3700
3701 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3702
3703         * FileDialog.cs: One more...
3704
3705 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3706
3707         * FileDialog.cs: Next try
3708
3709 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3710
3711         * FileDialog.cs: First part of fix for #77464
3712
3713 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3714
3715         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3716           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3717           AcceptButton border drawing.
3718
3719 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3720
3721         * Form.cs: Moved positioning of form after auto scaling is applied,
3722           otherwise it would possibly use wrong form size.
3723
3724 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3725
3726         * Control.cs (RecreateHandle): No need to re-create any child
3727           controls, the child windows will get destroyed automatically by
3728           the windowing system or driver, and re-created when the handle
3729           is being accessed the first time. Fixes #77456
3730         * Form.cs: No longer setting the form to closing if the handle is 
3731           being recreated. This seems like the right thing to do, don't
3732           have a bug or testcase for this, though.
3733
3734 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3735
3736         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3737           controls to avoid unwanted side effects
3738
3739 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3740
3741         * Control.cs: 
3742           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3743             control. Fixes #77416.
3744           - DefaultSize is 0,0 for control
3745         * TextBoxBase.cs: 
3746           - DefaultSize is 100, 20
3747           - SetBoundsCore: Now enforcing the height, no matter if the provided
3748             height is more or less than the preferred one, as long as AutoSize
3749             is on
3750         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3751
3752 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3753
3754         * Control.cs:
3755           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3756             call unless both performLayout is true *and* we have a pending
3757             layout change
3758           - ResumeLayout: MS does not completely nest Suspend and Resume,
3759             they bottom out at 0, fixed our code to match that.
3760           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3761             SetBoundsCore, we were updating even when we shouldn't. This fixes
3762             swf-anchors mis-anchoring when resizing the app fast and lots.
3763           - UpdateDistances: Now only setting the left and top distance if 
3764             we have a parent and are not suspended, this is based on
3765             a suggestion by Don Edvaldson in bug #77355.
3766           - OnVisibleChanged: Fixed logic when to create the control. We may
3767             not create the control if we have no parent or if it's not visible;
3768             switched to using Visible property instead of is_visible field 
3769             since the property also considers parent states. This fixes a bug
3770             when starting Paint.Net
3771
3772 2006-02-02  Jackson Harper  <jackson@ximian.com>
3773
3774         * Form.cs: If the forms handle hasn't been created yet don't call
3775         into xplatui to make it top most, just set the topmost flag on the
3776         form in CreateParams
3777         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3778
3779 2006-02-01  Jackson Harper  <jackson@ximian.com>
3780
3781         * ScrollableControl.cs: Refactored the Recalculate method a
3782         little, this wasn't handling all the variants of bottom and right
3783         bars needed to be added and added/removed based on their
3784         counterparts being added/removed (which changes the drawable
3785         size). Also we special case client widths and heights of 0 and
3786         don't add the scrollbar for those.
3787
3788 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3789
3790         * XplatUIX11.cs: 
3791           - Added method to get AbsoluteGeometry(); currently unused, but might
3792             be used in the future, if we try again to figure out toplevel
3793             coordinates with some more crappy window managers
3794           - Added FrameExtents() method to retrieve the WM set decoration size
3795           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3796             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3797         * Hwnd.cs: 
3798           - Added whacky_wm tracking var for metacity
3799           - Added logic to have default menu height if the actual menu height
3800             has not yet been calculated (part of fix for #77426)
3801         * Form.cs: Keep track whether client size has been set and re-set 
3802           it if a menu is added/removed afterwards (Fixes #77426)
3803
3804 2006-01-31  Jackson Harper  <jackson@ximian.com>
3805
3806         * Control.cs: When a new Site is set on the component attempt to
3807         pull the AmbientProperties from it.
3808
3809 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3810
3811         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3812           in the background of the owning form. Fixes #77332
3813
3814 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3815
3816         * MimeIcon.cs: Fix for #77409
3817
3818 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3819
3820         * XplatUIX11GTK.cs: Initial import
3821
3822 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3823
3824         * FixedSizeTextBox: fixes class signature
3825
3826 2006-01-30  Jackson Harper  <jackson@ximian.com>
3827
3828         * FixedSizeTextBox.cs: New internal class that represents a
3829         textBox that will not be scaled.
3830         * TreeView.cs:
3831         * ComboBox.cs:
3832         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3833         standard TextBox.
3834                 
3835 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3836
3837         * XplatUIX11.cs: Retrieve default screen number instead of
3838           assuming 0. Attempted fix for #77318
3839
3840 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3841
3842         * XplatUIWin32.cs: 
3843           - GetWindowPos: When a window is parented by FosterParent, use 
3844             the desktop instead of FosterParent as the base to get coordinates
3845           - CreateWindow: Don't make FosterParent the parent window for Popups
3846             if we don't want a taskbar entry, Popups automatically don't get one
3847         * Hwnd.cs: Need to call remove to actually remove the key from the
3848           hash table
3849
3850 2006-01-30  Mike Kestner  <mkestner@novell.com>
3851
3852         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3853
3854 2006-01-30  Jackson Harper  <jackson@ximian.com>
3855
3856         * TreeView.cs:
3857         * TreeNode.cs: Raise events no matter how the treenode is
3858         checked. Patch by Don Edvalson.
3859
3860 2006-01-30  Jackson Harper  <jackson@ximian.com>
3861
3862         * TreeNode.cs: Signature fix.
3863
3864 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3865
3866         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3867
3868 2006-01-20  Mike Kestner  <mkestner@novell.com>
3869
3870         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3871         event forwarding when menus are active.
3872         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3873         Most of the patch is pdb's with a little rework.
3874
3875 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3876
3877         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3878           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3879           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3880         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3881         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3882           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3883           the PaintWindowDecorations method
3884         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3885         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3886         * MenuAPI.cs: Made tracker window invisible
3887         * XplatUIWin32.cs:
3888           - Removed GetMenuDC and ReleaseMenuDC methods
3889           - Implemented the client=false path for PaintEventStart and
3890             PaintEventEnd
3891
3892 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3893
3894         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3895         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3896           styles
3897         * Form.cs: 
3898           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3899             the style
3900           - CreateParams: Reworked the styles to match MS look'n'feel,
3901             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3902             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3903
3904 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3905
3906         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3907           window is not mapped, since otherwise every form that's being 
3908           created is considered minimized, which is wrong.
3909         * Form.cs: Catching the exception and returning our internal value
3910           instead
3911
3912 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3913
3914         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3915           SetWindowMinMax() to have means to tell the driver about the minimum,
3916           maximum and maximized state window sizes. (Part of the fix for #76485)
3917         * Form.cs:
3918           - Implemented tracking of minimum and maximum window size, now calling
3919             new SetWindowMinMax() driver method to tell the driver (Part of the
3920             fix for #76485)
3921           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3922             (Completes fix for #76485)
3923           - Calling new SetWindowMinMax driver method when the handle for a 
3924             form is created, to make sure the driver knows about it even if
3925             the values have been set before the window was created
3926           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3927             to avoid messing up our anchoring calculations (partial fix
3928             for #77355)
3929         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3930         * XplatUIX11.cs:
3931           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3932           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3933             (and presumably other freedesktop.org compliant WMs). Left the
3934             assumption unmapped=minimized, needed for SetVisible to work.
3935           - Now setting the window state when creating windows
3936           - Fixed SetVisible to consider/set the window state when mapping
3937             a Form. We cannot set the state before it's mapped, and we cannot
3938             use Form.WindowState once it's mapped (since it would ask the
3939             driver and get 'normal'. Therefore, we grab the state before
3940             mapping, map, and then set state.
3941           - Implmemented SetWindowMinMax method; Metacity does not seem to
3942             honor the ZoomHints, though.
3943         * XplatUIWin32.cs:
3944           - Removed MINMAXINFO (moved to XplatUIStructs)
3945           - Added SetWindowMinMax stub (on Win32 the only way to set that
3946             information is in response to the WM_GETMINMAXINFO message, which
3947             is handled in Form.cs)
3948           - Added logic to SetVisible to set the proper window state when a 
3949             form is made visible (fixes #75720)
3950
3951 2006-01-26  Jackson Harper  <jackson@ximian.com>
3952
3953         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3954         same way we handle them with Invoke.
3955
3956 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3957
3958         * Form.cs:
3959           - Added tracking of window state so CreateParams can return
3960             the appropriate style
3961           - Moved setting of WS_CAPTION style in CreateParams to allow
3962             styles without caption
3963         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3964           control if the TextBox property is accessed. Fixes #77345
3965         * Control.cs:
3966           - get_Created: now uses is_disposed and is_created to determine
3967             return value (suggested by Jackson)
3968           - CreateHandle: No longer exits if the handle is being recreated
3969           - RecreateHandle: If the handle is not yet created call the 
3970             appropriate method to create either control or handle. If the
3971             control is already created CreateHandle will simply exit instead
3972             of just creating the handle
3973         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3974           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3975           is called.
3976         * XplatUIX11.cs: 
3977           - When DestroyWindow is called, instead of waiting for the 
3978             DestroyNotification from X11, we directly post it to the WndProc
3979             and immediately dispose the hwnd object.
3980             Same applies to DestroyChildWindows, and this obsoletes the
3981             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3982             child windows before our own, to avoid X11 errors.
3983           - Removed the direct sending of WM_PAINT on UpdateWindow
3984         * XplatUIWin32.cs:
3985           - Reworked DoEvents and GetMessage to allow access to internal queue
3986             even when trying non-blocking access to the queue.  Fixes #77335. 
3987             Based on a patch suggestion by Don Edvalson. The new private
3988             GetMessage can now also be used as a backend for a PeekMessage
3989             frontend version.
3990         * XplatUI.cs: Improved debug output for CreateWindow
3991
3992 2006-01-25  Jackson Harper  <jackson@ximian.com>
3993
3994         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3995
3996 2006-01-24  Jackson Harper  <jackson@ximian.com>
3997
3998         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3999         when we have a MaxDropItems lower then the selected index.
4000
4001 2006-01-24  Jackson Harper  <jackson@ximian.com>
4002
4003         * Control.cs: Don't allow selection of non visible controls, allow
4004         selection of controls without parents.
4005
4006 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4007
4008         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4009         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4010
4011 2006-01-23  Jackson Harper  <jackson@ximian.com>
4012
4013         * UpDownBase.cs: Make the textbox handle all the selection and
4014         tabbing. This fixes tabing to updown controls.
4015
4016 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4017
4018         * TextBoxBase.cs: fixes exception thown the object was null
4019
4020 2006-01-23  Jackson Harper  <jackson@ximian.com>
4021
4022         * ButtonBase.cs: Just use the base CreateParams. They set
4023         visibility and enabled correctly.
4024         * ComboBox.cs:
4025         * TrackBar.cs:
4026         * MonthCalendar.cs: Lets let the base set as much of the
4027         createparams as possible so we don't have duplicate code all over
4028         the place.
4029
4030 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4031
4032         * ThemeGtk.cs: Added TrackBar and some experimental code to
4033           get double buffering back
4034
4035 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4036
4037         * DataGrid.cs: Allows row number set internally higher than the last
4038         when creating a new row. Restores the editing functionality.
4039
4040 2006-01-20  Mike Kestner  <mkestner@novell.com>
4041
4042         * MimeIcon.cs: delay Image creation until the icons are accessed
4043         instead of creating 190 scaled images on GnomeHandler startup.
4044
4045 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4046
4047         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4048           first call base before processing the event. Fixes #77279
4049
4050 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4051
4052         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4053           that the stride for the GDI bitmap would match the stride of
4054           a DIB or a Cursor.
4055
4056 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4057
4058         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4059
4060 2006-01-19  Jackson Harper  <jackson@ximian.com>
4061
4062         * ComboBox.cs: Hookup the text controls keydown event so we get
4063         those when the text control has the focus.
4064
4065 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4066
4067         * Label.cs: Now using the base events instead of defining new ones;
4068           this allows us to just call the base properties without having to
4069           duplicate all base property logic 
4070
4071 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4072
4073         * Label.cs: A label by default is not a tabstop (Fixes one of our
4074           failing nunit tests)
4075
4076 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4077
4078         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4079         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4080
4081 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4082
4083         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4084           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4085           This fixes #77218
4086         * XplatUIWin32.cs: 
4087           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4088             constructor creates images that can't be saved. Part of the fix
4089             for #76103
4090           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4091           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4092             bug fix for handling window state in forms properly)
4093
4094 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4095
4096         * ThemeGtk.cs: Simplify ScrollBar drawing
4097
4098 2006-01-18  Jackson Harper  <jackson@ximian.com>
4099
4100         * Splitter.cs: Set the default dock style for the splitter control
4101         in the constructor.
4102
4103 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4104
4105         * ThemeGtk.cs: Corrected StateType and ShadowType for
4106           gtk_paint_box
4107
4108 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4109
4110         * Control.cs: Make use of Theme.DoubleBufferingSupported
4111         * ThemeGtk.cs:
4112           - Added drawing for flat style buttons
4113           - Added ScrollBar drawing
4114
4115 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4116
4117         * ThemeClearlooks.cs: Removed some unneeded code.
4118         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4119
4120 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4121
4122         * LinkLabel.cs: We need to update the hover drawing when
4123           leaving the control as well.
4124
4125 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4126
4127         * DataGrid.cs: Clicking on non empty areas in the columns
4128            area was giving an exception
4129
4130 2006-01-17  Jackson Harper  <jackson@ximian.com>
4131
4132         * ThemeWin32Classic.cs:
4133         * ListView.cs: Do not draw/clip the headers when the header style
4134         is None.
4135
4136 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4137
4138         * DataGrid.cs: Fixes 77260
4139         
4140 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4141
4142         * DataGrid.cs: Clicking on a column on a empty grid was giving
4143           an exception
4144
4145 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4146
4147         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4148           or any keypress will crash the grid.
4149
4150 2006-01-17  Mike Kestner  <mkestner@novell.com>
4151
4152         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4153         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4154         invisible/previously-visible items.
4155         [Fixes #76909]
4156
4157 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4158
4159         * ThemeClearlooks.cs:
4160         - Added CL_Draw_Button method; now other theme controls that are 
4161           not derived from button or do not have a button can draw buttons
4162           too
4163         - Updated ComboBox drawing
4164         - Beautified RadioButton drawing
4165         - Corrected drawing of bottom and left tabs
4166         - Beautified DateTimePicker and MonthCalendar
4167         - Added CPDrawButton and CPDrawRadioButton
4168
4169 2006-01-16  Jackson Harper  <jackson@ximian.com>
4170
4171         * ComboBox.cs: Set the initial value of the scrollbar to the
4172         current index. Reduce the numbers of refreshs and IndexOfs called.
4173
4174 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4175
4176         * FileDialog.cs: When the file listview is focused hitting the
4177           backspace key moves the fileview to the parent directory
4178
4179 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4180
4181         * Form.cs: 
4182           - Added RecreateHandle call when changing taskbar visibility to 
4183             trigger reparenting in Win32 driver (Fixes #75719)
4184           - If a window has minimize or maximize buttons, it cannot have
4185             a help button
4186         * XplatUIWin32.cs:
4187           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4188             the toplevel form with FosterParent (A toolwindow not on the
4189             taskbar) (Fixes #75719)
4190           - Made FosterParent a toolwindow
4191
4192 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4193
4194         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4195
4196 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4197
4198         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4199           is currently over that control, make sure that tooltip_window.Text
4200           gets updated
4201
4202 2006-01-13  Mike Kestner  <mkestner@novell.com>
4203
4204         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4205
4206 2006-01-13  Jackson Harper  <jackson@ximian.com>
4207
4208         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4209         value passed.  Also redraw the selected node when we recieve
4210         focus, so tabbing between trees works correctly.
4211
4212 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4213
4214         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4215           ~/.gconf/%gconf-tree.xml, so use
4216           .gconf/desktop/gnome/interface/%gconf.xml
4217
4218 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4219
4220         * TextControl.cs: Draw text in gray if control is disabled
4221
4222 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4223
4224         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4225           make sure it's always visible. Fixes #76680.
4226
4227 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4228
4229         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4230
4231 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4232
4233         * PageSetupDialog.cs: Added.
4234         * PrintDialog.cs: Attributes.
4235         * PrintPreviewControl.cs: Updates.
4236         * PrintPreviewDialog.cs: Updates.
4237         
4238 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4239
4240         * Control.cs: Undid my selection check fix, since it's not needed
4241         * TextBoxBase.cs:
4242           - Now considering the presence of hscroll/vscroll when sizing
4243             vscroll/hscroll respectively. Fixed bug #77077
4244           - Added Left/Up/Down/Right to IsInputKey list to prevent
4245             ContainerControl from stealing them. This fixes what I broke
4246             with my last checkin.
4247
4248 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4249
4250         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4251           I finally understand how the property can be set without a setter :-)
4252
4253 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4254
4255         * Application.cs:
4256           - Switched RunLoop to use static Message.Create to create a 
4257             Message object
4258           - Added PreProcessMessage call in runloop for keyboard events; this
4259             is part of the fix for #77219, I overlooked this originally in the
4260             MSDN doc for PreProcessMessage
4261         * Control.cs:
4262           - Removed call to PreProcessMessage from handling of keyboard 
4263             messages; it's supposed to be done in the message pump
4264           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4265             per MSDN documentation.
4266           - IsInputChar: All chars are input chars by default; removed the 
4267             parent calling chain, MS does not document that
4268           - PreProcessMessage: If IsInputChar is true, we want to return false
4269             to allow dispatching of the message
4270           - When selecting the next control, now also check that we're not
4271             selecting ourselves again and therefore return a false positive.
4272         * TextBoxBase.cs:
4273           - Tried to match return values for IsInputKey and ProcessDialogKey
4274             to what MS returns; moved processing of our special keys outside
4275             ProcessDialogKey since MS does not seem to return true on those.
4276           - Moved code that previously was in ProcessDialogKey into new private
4277             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4278           - Reworked handling of WM_CHAR to not have to duplicate code from
4279             Control.cs anymore, instead we simply call down to base.
4280            
4281 2006-01-12  Jackson Harper  <jackson@ximian.com>
4282
4283         * ComboBox.cs: We always need to refresh the text area when
4284         EndUpdate is called. Fixes the combobox in the file dialog.
4285         * Control.cs: Don't create the creator_thread until the controls
4286         handle is created.  Also in InvokeRequired we check if the
4287         creator_thread is null. This gives the effect of InvokeRequired
4288         returning true if the controls handle is not created yet, and
4289         matches MS.
4290
4291 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4292
4293         * XplatUI.cs:
4294           - Added StartLoop() driver method. This is used to allow drivers to
4295             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4296             loop for a particular thread
4297           - Added EndLoop() driver method. This is called once the message
4298             pump for the thread is shut down
4299           - Added SupportsTransparency method to allow the driver to indicate
4300             opacity support for windows
4301         * Form.cs:
4302           - Removed TODO attribute, completed AllowTransparency property
4303           - Added documented logic to Opacity
4304         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4305           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4306           versions of CompatibleTextRendering
4307         * X11Structs.cs: Added opacity atom to our atom enumeration
4308         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4309           of a form might be set before it's reparented by the WM, and we need
4310           the opacity value without calling up to Form)
4311         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4312           SupportsTransparency() driver methods
4313         * Application.cs: Now calling StartLoop and EndLoop driver methods
4314         * XplatUIX11.cs:
4315           - Added opacity atom registration
4316           - Added StartLoop()/EndLoop() methods. They're empty right now but
4317             will need to get implemented when we switch to a per-thread queue
4318           - Implemented SupportsTransparency() method
4319           - Implemented SetWindowTransparency() method
4320           - Added support for setting the opacity value when a window is
4321             reparented (since the opacity needs to be set on the WM frame)
4322         * XplatUIOSX.cs, XplatUIWin32.cs:
4323           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4324
4325 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4326
4327         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4328
4329 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4330
4331         * FileDialog.cs: Added ToolTip for MWFFileView
4332         * MimeIcon.cs: Rewrote GnomeHandler.
4333           - Get currently used gnome icon theme from
4334             ($HOME)/.gconf/%gconf-tree.xml
4335           - Make use of inherited icon themes
4336           - Support SVG icon themes like Tango via librsvg
4337
4338 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4339
4340         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4341         builds. 
4342         
4343         * Application.cs: Move the use_compatible_text_rendering outside
4344         the NET_2_0 define.  If we ever need to use the
4345         use_compatible_text_rendering on the individual controls they will
4346         access the variable from the common shared code paths.
4347
4348 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4349
4350         * XplatUI.cs:
4351           - Added more granular debug options
4352           - Added method to print both window text and id
4353           - Switched debug output to use new Window() debug method
4354           - Added IsEnabled() driver method
4355           - Added EnableWindow() driver method
4356         * Form.cs:
4357           - Removed end_modal; no longer needed, new loop handles termination
4358             via 'closing' variable
4359           - If form is modal, setting DialogResult will now initiate loop
4360             termination via 'closing' variable
4361           - Added support for is_enabled/WS_DISABLED to CreateParams
4362           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4363             does all the work
4364           - Removed code that's now in RunLoop from ShowDialog()
4365           - Added various documented sanity checks to ShowDialog()
4366           - Added handling of WM_DESTROY message; we set 'closing' on getting
4367             the message to indicate the message pump to terminate
4368           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4369             send by the Application.ExitThread method. (We send the message
4370             to destroy the window after all other events have been
4371             processed through the queue, instead of destroying the handle 
4372             directly)
4373           - Moved code from Close() method to WM_CLOSE handler; added logic
4374             to only send close-related events if the form is not displayed
4375             modal
4376         * Splitter.cs (..ctor): Fixed typo in resource name
4377         * Control.cs:
4378           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4379             brush now
4380           - set_Cursor: Now only setting calling into XplatUI if the handle for
4381             the control is already created; this avoids implict handle creation
4382             or crashes if it's not created
4383           - set_Enabled: Now setting the enabled state via the new driver method
4384             instead of just tracking it
4385           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4386           - CreateControl: Reordered event firing and method calls to more
4387             closely fire events in the order MS does. Now setting the
4388             enabled state in the driver when creating the control.
4389           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4390             match MS order
4391         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4392           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4393         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4394         * Hwnd.cs:
4395           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4396           - Added EnabledHwnd property to easily allow a driver to find the
4397             handle of the first enabled window in the parent chain (this is
4398             used by drivers to pass up input events of disabled windows)
4399         * XplatUIDriver.cs: Added IsEnabled() method
4400         * Application.cs:
4401           - Removed crude and obsolete exiting tracking variable
4402           - Removed internal ModalRun(); replaced by RunLoop()
4403           - Implemented private CloseForms() method to allow closing all 
4404             windows owned by a particular (or all) threads
4405           - Exit() now properly closes all windows without forcing the message
4406             pump to quit
4407           - Removed obsolete InternalExit() method
4408           - Changed Run() methods to use new RunLoop() message pump
4409           - Implemented new RunLoop() method for both modal and non-modal forms
4410         * CommonDialog.cs:
4411           - get_CreateParams: Added setting of WS_DISABLED
4412           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4413             invoked via Form.ShowDialog()
4414         * NativeWindow.cs: We don't remove the window from the collection when
4415           the handle is destroyed; there might still be messages for it in the
4416           queue (mainly the resulting WM_DESTROY); instead it will be removed
4417           when Control calls InvalidateHandle in the WM_DESTROY handler
4418         * XplatUIX11.cs:
4419           - CreateWindow: Added logic to handle the WS_DISABLED window style
4420           - EnableWindow: Implemented based on Hwnd.Enabled
4421           - GetMessage: Reset PostQuitState so the method can be called again
4422           - Implemented support for disabled windows (passing messages to the
4423             first enabled parent) in handling all input messages
4424           - Added optimizations for handling Expose events
4425           - Implemeted new driver method IsEnabled()
4426           - Now always resetting paint pending tracking vars when we start paint
4427           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4428         * XplatUIOSX.cs: Added IsEnabled method stub
4429         * XplatUIWin32.cs: Implemented new IsEnabled() method
4430
4431 2006-01-11  Jackson Harper  <jackson@ximian.com>
4432
4433         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4434         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4435         variables a little.
4436         * ColorDialog.cs: Clear out the old form before adding the new
4437         panel.  
4438
4439 2006-01-11  Jackson Harper  <jackson@ximian.com>
4440
4441         * X11Dnd.cs: Make sure to add all the text formats when adding
4442         strings to the data object.
4443         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4444         do some redrawing too.  Also change the UpdateNode to an
4445         UpdateBelow so the newly added node gets painted.
4446         
4447 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4448
4449         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4450         LinkLabel.cs, PropertyGrid.cs: Implement the
4451         UseCompatibleTextRendering property for 2.x
4452
4453         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4454
4455 2006-01-11  Jackson Harper  <jackson@ximian.com>
4456
4457         * TreeView.cs: Use the property for setting the selected node so
4458         the correct events get raised.
4459         * TreeNode.cs: Update the tree when the fore/back colours of a
4460         node are set.
4461
4462 2006-01-10  Jackson Harper  <jackson@ximian.com>
4463
4464         * TreeView.cs: Allow setting SelectedNode to null.
4465
4466 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4467
4468         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4469
4470 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4471
4472         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4473
4474 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4475
4476         * PrintDialog.cs: Added attributes and set default property values.
4477
4478 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4479
4480         * PrintControllerWithStatusDialog.cs: 
4481         Added PrintControllerWithStatusDialog.
4482
4483 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4484
4485         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4486         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4487
4488 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4489
4490         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4491
4492 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4493
4494         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4495         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4496
4497 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4498
4499         * MimeIcon.cs: Added internal class SVGUtil.
4500
4501 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4502
4503         * FileDialog.cs: Don't crash if there are two files with the
4504           same name but different locations.
4505
4506 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4507
4508         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4509         dates across multiple month grids. Used to not highlight entire 
4510         month, but does now.
4511         
4512 2006-01-06  Jackson Harper  <jackson@ximian.com>
4513
4514         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4515         message loop. Change timer intervals to numbers that seem more
4516         natural.
4517
4518 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4519
4520         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4521           object for location info since screen object is now implemented.
4522
4523 2006-01-05  Jackson Harper  <jackson@ximian.com>
4524
4525         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4526         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4527         AsyncMethodResult, this is because we ALWAYS want the
4528         ManualResetEvent to get set.
4529         * Control.cs: When disposing use an async invoke to call shutdown
4530         code, so that thigns don't block on the finalizer thread.  Also
4531         check if we even have a message loop before trying to send
4532         messages, if we don't then don't bother sending messages.
4533         - No more weak references for async methods
4534         * XplatUIDriver.cs: No more weak references for async methods.
4535
4536 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4537
4538         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4539           returns two FontFamily with the same name
4540
4541 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4542
4543         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4544           drawing disabled text. Instead using the ColorGrayText color
4545
4546 2006-01-04  Jackson Harper  <jackson@ximian.com>
4547
4548         * TreeNode.cs: redraw the node when its image index is changed.
4549
4550 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4551
4552         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4553           time I checked there are no others like it.
4554
4555 2006-01-04  Jackson Harper  <jackson@ximian.com>
4556
4557         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4558         this gives the behavoir I was looking for.
4559         * Control.cs: Special case Invoking EventHandlers, this matches MS
4560         and fixes part of bug #76326.
4561
4562 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4563
4564         * ThemeClearlooks.cs, FileDialog.cs:
4565           - Reflect the latest Theme class changes
4566           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4567             with DateTime
4568             
4569 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4570
4571         * Theme.cs: Cache UI resource images and resize them if needed
4572
4573 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4574
4575         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4576           is called. This fixes the crash in Nexxia when setting the font
4577           attributes in the chat. [However, RTF needs a look-over to make sure
4578           that all SelectionXXX methods handle the special case that selection
4579           is empty and therefore the change must be applied to all text starting
4580           at the cursor/selection start]
4581
4582 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4583
4584         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4585           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4586         * X11Keyboard.cs: Switched to new way of calling PostMessage
4587
4588 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4589
4590         * Theme.cs: Added theme interface for images to allow the theme to
4591           control what images are used for things like FileDialog, MessageBox
4592           icons, etc.
4593         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4594
4595 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4596
4597         * FileDialog.cs:
4598           - Removed some dead code
4599           - Opening a recently used file does work now
4600           - Small UI enhancements
4601           - Refactoring
4602
4603 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4604
4605         * FileDialog.cs: Forgot too add __MonoCS__
4606
4607 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4608
4609         * FileDialog.cs: We are able to read recently used files now let's
4610           go on and write them.
4611
4612 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4613
4614         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4615           button
4616         * MimeIcon.cs: Do a check for the top level media type also
4617
4618 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4619
4620         * ThemeClearlooks.cs:
4621           - Added CPDrawStringDisabled
4622           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4623             some chars if the text doesn't fit into text_rect
4624           - DrawListViewItem: If View = View.LargeIcon center the image;
4625             rewrote the drawing of ListViewItem.Text if View = 
4626             View.LargeIcon
4627
4628 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4629
4630         * MimeIcon.cs: Use default KDE icon theme if there is no
4631           "48x48" directory for the current icon theme, fixes #77114
4632         * Mime.cs: Disable not working and actually not used code. 
4633         * ThemeWin32Classic.cs:
4634           - Replace "new SolidBrush" in GetControlBackBrush and
4635             GetControlForeBrush with ResPool.GetSolidBrush
4636           - Changed DrawListViewItem from private to protected virtual
4637         * FileDialog.cs:
4638           - Added form.MaximizeBox = true
4639           - Don't throw an exception if there is a broken symbolic link
4640
4641 2005-12-23  Jackson Harper  <jackson@ximian.com>
4642
4643         * TabControl.cs: Give the panels focus, keyboard navigation is
4644         fixed so this works correctly now.
4645         - We need these key events also.
4646         * ToolBar.cs: Remove some of the poor mans double buffering.
4647         
4648 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4649
4650         * ComboBox.cs: The internal TextBox now returns the focus.
4651
4652 2005-12-23  Jackson Harper  <jackson@ximian.com>
4653
4654         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4655
4656 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4657
4658         * Control.cs: Removed debug code
4659         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4660           implicit children
4661
4662 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4663
4664         * Control.cs: When creating the control, update the Z-order after
4665           all it's children are created, too. (Fixes nexxia not showing
4666           picturebox bug)
4667
4668 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4669
4670         * Control.cs: Do not update the anchoring distances if layout is
4671           suspended, instead do it once layout is resumed
4672
4673 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4674
4675         * Control.cs: 
4676           - After many hours of debugging, for both Jackson and
4677             myself, it turns out that it helps to set the parent of a control
4678             if you want to actually see it onscreen. In the spirit of that
4679             discovery, we're now setting the parent of the control and
4680             it's children when the control's handle is created. This fix
4681             will make Lutz Roeder's Reflector run happily. 
4682           - now just creating the handle instead of the whole control when
4683             getting a graphics context for the control.
4684
4685 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4686
4687         * ScrollableControl.cs: When calculating the canvas, don't consider
4688           the scrollbar widths. Instead, predict if horizontal scrollbar
4689           will affect canvas when deciding on vertical display and vice versa.
4690
4691 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4692
4693         * RichTextBox.cs: Set default RTF font for documents that don't
4694           have a font table (Fixes #77076)
4695
4696 2005-12-22  Jackson Harper  <jackson@ximian.com>
4697
4698         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4699         clipboard. This prevents a NullRef in that case.
4700         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4701         clipboard. PRIMARY is for the currently selected text only. (We
4702         should implement PRIMARY at some point.
4703
4704 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4705
4706         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4707           a Unicode function with a structure that was defined in Ansi way.
4708           This fixes #76942.
4709
4710 2005-12-21  Jackson Harper  <jackson@ximian.com>
4711
4712         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4713         on. Because thats how it rolls. (and this avoids it using ambient
4714         colours).
4715         * ThemeWin32Classic.cs: Use the proper back color for filling.
4716         * Menu.cs: Use the system menu bar color for drawing menu
4717         bars. Using the window back color will bring ambient colours into
4718         the picture.
4719
4720 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4721
4722         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4723           Bitmaps were created and not disposed.
4724
4725 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4726
4727         * Control.cs (CreateControl): Don't do anything if the control is
4728           already created, otherwise we'd fire the OnCreated event more than
4729           once
4730
4731 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4732
4733         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4734           will always match. Instead return -1. Fixes #76464.
4735
4736 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4737
4738         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4739           neither the beginning nor the end of the line (Fixes bug #76479)
4740
4741 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4742
4743         * Control.cs:
4744           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4745             where handle is invalid
4746           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4747             instead of slower linear search
4748         * NativeWindow.cs: Don't remove the window from the hashtable until
4749           after the driver has destroyed it (since the driver might use
4750           Control.FromHandle to lookup the control object
4751         * Hwnd.cs: Added DestroyPending property to track if a window is 
4752           already destroyed as far as the driver is concerned and only hasn't
4753           yet notified the control
4754         * XplatUIX11.cs:
4755           - Activate(): Check if the window is still valid before using the 
4756             handle
4757           - Implemented DestroyChildWindow() method to mark child windows as
4758             destroyed when a window is destroyed. This prevents situations 
4759             where we might call an X method based on queued events for a
4760             window that already has been destroyed but we haven't yet pulled
4761             the destroy method from the queue.
4762           - Added a call to the new DestroyChildWindow() method to the drivers
4763             DestroyWindow code. Also now marking the destroyed window itself
4764             as pending
4765
4766 2005-12-20  Jackson Harper  <jackson@ximian.com>
4767
4768         * StatusBar.cs:
4769         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4770         anymore. Just do them when needed, also track the rects of panels
4771         so that we can optimize refreshing more in the future.
4772
4773 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4774
4775         * ColorDialog.cs: Fixed focus drawing in small color controls
4776
4777 2005-12-19  Jackson Harper  <jackson@ximian.com>
4778
4779         * InternalWindowManager.cs:
4780         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4781         moving windows works properly.
4782
4783 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4784
4785         * Control.cs: 
4786           - Removed call to InitLayout() from SetBoundsCore(); doc says
4787             it's only called when a control is added to a container
4788           - Split InitLayout logic, moved to separate UpdateDistances() method
4789             since we need to perform those calculations more often than just
4790             when adding the control to a container. (Needed to fix #77022)
4791           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4792           - Reduced the OnBindingContextChanged events count, don't send them
4793             unless the control is created, we still aren't totally matching
4794             MS, but I can't quite figure out some of their rules
4795
4796 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4797
4798         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4799           stripes
4800
4801 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4802
4803         * ThemeClearlooks.cs:
4804           - Updated ProgressBar drawing
4805           - Corrected drawing of ScrollBars and scroll buttons
4806           - Some temporary fixes for minor pixel artefacts
4807
4808 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4809
4810         * Control.cs:
4811           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4812             cause events to be sent in the same order as MS does.
4813           - Added ChangeParent() method to trigger various OnXXXChanged events
4814             that need to be fired when a parent changes (This is a reworking
4815             of the patch from r54254, with the X11 errors fixed)
4816           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4817             since on MS we get OnLayoutChanged events when calling Clear()
4818           - Changed Enabled property to consider parent state as well, if a
4819             parent is not enabled, the control will not be either
4820           - Changed Parent property to simply call Controls.Add() since that
4821             now does all the work required, this way we avoid code duplication
4822           - Threw in a few OnBindingsContextChanged calls to try and match
4823             when MS sends them. We seem to send a few too many, though.
4824           - Added call to CreateControl when adding the control to a parent.
4825             We were never calling CreateControl. Still needs some work, in
4826             some places we treat HandleCreated and ControlCreated as equal, 
4827             which is wrong
4828           - Removed obsolete commented out code from UpdateZOrder()
4829
4830 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4831
4832         * ThemeClearlooks.cs: Updated TrackBar drawing.
4833
4834 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4835
4836         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4837
4838 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4839
4840         * FileDialog.cs: Add the Help button and the open readonly
4841           checkbox only if needed
4842
4843 2005-12-16  Jackson Harper  <jackson@ximian.com>
4844
4845         * Control.cs: Make sure we have an active menu before trying to
4846         process commands on it. Prevents menu-less forms from crashing
4847         when Alt is pressed.
4848         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4849         Dieter Bremes.
4850         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4851         2.0 build.
4852
4853 2005-12-16  Jackson Harper  <jackson@ximian.com>
4854
4855         * InternalWindowManager.cs: Don't translate tool windows screen
4856         coordinates. This fixes windows 'bouncing' around when being moved.
4857
4858 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4859
4860         * TextBoxBase.cs:
4861           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4862             not quite MS compatible, MS uses that number only for single line
4863             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4864             the limit at 2GB)
4865           - Now enforcing the MaxLength limit when entering characters
4866           - Added argument to internal Paste() method to track if it's called
4867             from programatically or via keyboard, since keyboard driven pastes
4868             need to enforce max-length
4869           - Added logic to Paste to only paste as many chars as MaxLength 
4870             allows
4871         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4872         * TextControl.cs:
4873           - Added Length property to return number of characters in document
4874           - Added private CharCount property which only tracks actual chars
4875             in the document (no linefeeds) and fires event when CharCount
4876             changes
4877           - Added tracking of character count to all methods that alter it
4878           - Added LengthChanged event to allow applications to subscribe
4879             to any changes to the document
4880
4881 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4882
4883         * TextBox.cs: 
4884           - Removed local password_char field (moved to TextBoxBase)
4885           - Now setting the document's password var when password is
4886             set
4887         * TextBoxBase.cs:
4888           - Added password_char field (needed here so MultiLine can
4889             access it)
4890           - Added logic to MultiLine property setter to set the document's
4891             variable when password display is allowed
4892           - Removed debug code and made some debug code conditional
4893         * TextControl.cs:
4894           - Added RecalculatePasswordLine() method to handle special password
4895             char only lines
4896           - Added PasswordChar property, also added related tracking vars
4897           - Draw() method now uses local text var for grabbing text to draw,
4898             this var is set to line.text unless we're doing password display,
4899             then it is set to the pre-generated all-password-chars line
4900           - Added calling RecalculatePasswordLine() method for password lines
4901
4902 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4903
4904         * Hwnd.cs: 
4905           - Added Reparented property to allow tracking of Window Manager
4906             reparenting actions (which affect X/Y calculations of toplevel 
4907             windows)
4908           - Made ToString() print window handles in hex
4909         * XplatUIX11.cs:
4910           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4911             determine if X/Y needs offsetting
4912           - AddConfigureNotify(): Fixed offset calculations
4913           - Now adds ReparentNotify messages into the queue
4914           - Now processes ReparentNotify messages and causes a 
4915             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4916             is reparented (as most likely it's X/Y coordinates are changed
4917             due to that)
4918
4919 2005-12-14  Jackson Harper  <jackson@ximian.com>
4920
4921         * XplatUIX11.cs: Tool windows still need to respek focus.
4922
4923 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4924
4925         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4926           have a working release
4927
4928 2005-12-13  Jackson Harper  <jackson@ximian.com>
4929
4930         * Form.cs: Update styles after setting the border style regardless
4931         of whether or not the window is using a window manager.
4932
4933 2005-12-13  Jackson Harper  <jackson@ximian.com>
4934
4935         * Form.cs: We now hook into an internal window manager instead of just an
4936         MDI subsystem, this is so we can have properly behaving tool windows.
4937         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4938         * InternalWindowManager.cs: New internal class that acts as a
4939         window manager for tool windows and as a base for mdi windows.
4940         * MdiWindowManager.cs: New class that acts as a window manager for
4941         mdi windows.
4942
4943 2005-12-12  Jackson Harper  <jackson@ximian.com>
4944
4945         * Control.cs: Updates so we match behavoir for for implicit
4946         controls. Fixes explosions in MDI.
4947
4948 2005-12-12  Jackson Harper  <jackson@ximian.com>
4949
4950         * Control.cs: Implement Invalidate (Region).
4951
4952 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4953
4954         * Control.cs: 
4955           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4956             the same events as MS does. MS fires events for each property 
4957             except, for unknown reasons, Cursor, when the control is reparented. 
4958             I can't seem to totally match add/remove since MS also fires some 
4959             VisibleChanged events, which makes no sense. Consolidated the
4960             parenting code into a separate method so it can be called from
4961             both Add and Remove. set_Parent no longer needs any special logic
4962             as it calls the parent's add method which implicitly fires
4963             all events
4964           - Removed some obsolete code and debug output
4965           - Enabled state is inherited from parents, if this is enabled
4966
4967 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4968
4969         * Form.cs: Removed commented out code
4970
4971 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4972
4973         * Control.cs:
4974           - Added internal version of Invoke, with additional argument 
4975             indicating if we're calling it from a Dispose() handler. That
4976             way we can avoid BeginInvoke throwing an exception if we're
4977             calling for an already destroyed window.
4978           - Added a dispose argument to BeginInvokeInternal, and made the
4979             check if a valid window handle chain exists conditional on
4980             it not being a dispose call
4981           - Removed code in DestroyHandle to destroy our children. Since we
4982             now handle the WM_DESTROY message we will catch all our children
4983             being destroyed.
4984           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4985         * Form.cs:
4986           - Added a field to track the application context of the form.
4987           - No need to set closing variable as response to WM_CLOSE, instead
4988             we destroy the window. We also call PostQuitMessage if the form
4989             has an application context (which makes it the main app form,
4990             which, when closed terminates the app)
4991         * XplatUI.cs:
4992           - Dropped Exit() method, it's naming was confusing
4993           - Added PostQuitMessage() which causes GetMessage to return false
4994             once the message queue is empty
4995         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4996           PostQuitMessage()
4997         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4998           no longer a valid XplatUI method, but left it in since it's used
4999           internally. Added empty PostQuitMessage() method.
5000         * MenuAPI.cs: Replaced call to Exit() with call to
5001           PostQuitMessage, even though this is probably no longer needed.
5002         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5003         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5004         * Application.cs:
5005           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5006           - Removed old debug code that would call XplatUI for exception
5007             display, enabled standard exception handling (Still not enabled
5008             though, until NativeWindow's ExternalExceptionHandler define
5009             is removed
5010         * NativeWindow.cs:
5011           - Added internal method to allow control to update NativeWindow
5012             after a window has been destroyed
5013           - Added handling of already destroyed windows when calling i
5014             DestroyWindow
5015           - Added removal of handle from list on ReleaseHandle
5016         * XplatUIX11.cs:
5017           - Dropped GetMessageResult var and related code
5018           - Added PostQuitState to field to track if PostQuitMessage has been
5019             called
5020           - Dropped Exit() method
5021           - Added PostQuitMessage() method
5022           - GetMessage now will return false if PostQuitState is set and no
5023             more messages are in the queue.
5024           - Expose handler will no longer generate WM_PAINT messages if we are
5025             in PostQuitState since it's very likely any windows have already
5026             been destroyed, and since Hwnd won't get updated until we have
5027             processed the DestroyNotify we'd be causing X errors.
5028         
5029 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5030
5031         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5032           Thanks to Mike for pointing out the err of my ways.
5033
5034 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5035
5036         * Control.cs(PreProcessMessage): Moved menu handling back, but
5037           after all other key handling, to match MS (who handles Menu in
5038           DefWndProc)
5039         * Menu.cs (WndProc): Removed my brainfart
5040
5041 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5042
5043         * Control.cs(PreProcessMessage): Removed special menu handling 
5044         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5045
5046 2005-12-07  Mike Kestner  <mkestner@novell.com>
5047
5048         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5049         state according in tracker.
5050         * Menu.cs : promote tracker field to base class and provide a tracker
5051         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5052         has a tracker. Unparent items that are removed from the collection.
5053         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5054         * Theme*.cs: add always_show_hotkeys field to support configurability
5055         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5056         pressed.
5057
5058 2005-12-07  Jackson Harper  <jackson@ximian.com>
5059
5060         * MdiChildContext.cs: Use Control.ResetCursor.
5061         * Control.cs: ResetCursor needs to set the property so that the
5062         correct XplatUI call gets made.
5063
5064 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5065
5066         * Control.cs: More fixes to make our key events match MS. We
5067           were not setting the modifier state on KeyData, and we were
5068           not generating any events when Alt was pressed with a key
5069           since handling of WM_SYSxxx was missing for the OnKey methods.
5070
5071 2005-12-07  Jackson Harper  <jackson@ximian.com>
5072
5073         * MdiChildContext.cs: reenable the sizing code.
5074         - When the mouse leaves a window reset its cursor.
5075
5076 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5077
5078         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5079
5080 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5081
5082         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5083           widths of Fixed3D borders
5084
5085 2005-12-07  Jackson Harper  <jackson@ximian.com>
5086
5087         * MdiClient.cs: Fix warnings. Earn Mike's love.
5088
5089 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5090
5091         * ThemeClearlooks.cs:
5092           - Adjusted mouse over button color
5093           - Added first parts of CheckBox drawing
5094           - Added correct color for selected text background
5095           - Fixed ComboBox drawing
5096           - Added CPDrawBorder3D and CPDrawBorder
5097
5098 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5099
5100         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5101
5102 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5103
5104         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5105           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5106           alert users via sound. We could add an enum arg with different
5107           types of alerts in the future
5108
5109 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5110
5111         * Control.cs: Fix behaviour problems pointed out by Mike
5112
5113 2005-12-05  Mike Kestner  <mkestner@novell.com>
5114
5115         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5116         prop setters.  Calls parent.Refresh for now, but could be maybe be
5117         optimized with an internal method on StatusBar at some point.
5118         [Fixes #76513]
5119
5120 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5121
5122         * RichTextBox.cs: Implemented get_SelectionColor
5123
5124 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5125
5126         * ThemeClearlooks.cs:
5127           - Removed dead code
5128           - Draw black button border only if button is Form.AcceptButton
5129           - Draw correct button color for pressed RadioButton if the mouse 
5130             has entered the button
5131           - Updated ProgressBar drawing!
5132           - Updated CPDrawSizeGrip drawing
5133           - Updated StatusBarPanel drawing
5134
5135 2005-12-05  Mike Kestner  <mkestner@novell.com>
5136
5137         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5138         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5139
5140 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5141
5142         * ThemeClearlooks.cs: Initial check-in, activate with
5143           export MONO_THEME=clearlooks
5144         * ThemeEngine.cs: Added ThemeClearlooks
5145
5146 2005-12-03  Mike Kestner  <mkestner@novell.com>
5147
5148         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5149         [Fixes #76897]
5150
5151 2005-12-02  Jackson Harper  <jackson@ximian.com>
5152
5153         * Form.cs: If the child form has no menu the default main menu is
5154         used as the active menu.
5155
5156 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5157
5158         * ListBox.cs: Check if any items exist before trying to resolve 
5159           coordinates into items
5160
5161 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5162
5163         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5164           as the second color for the background hatch
5165
5166 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5167
5168         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5169         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5170           sure that what we pass to FormatText is always 1-based. Fixes #76885
5171
5172 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5173
5174         * NumericUpDown.cs (EndInit): When we are done initializing,
5175         reflect any updates on the UI.
5176
5177 2005-12-02  Jackson Harper  <jackson@ximian.com>
5178
5179         * ImplicitHScrollBar.cs:
5180         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5181         their container controls.
5182         * TreeView.cs: Use the new implicit scrollbars.
5183
5184 2005-12-02  Jackson Harper  <jackson@ximian.com>
5185
5186         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5187         can play with it.
5188         * TreeNodeCollection.cs: If we remove the topnode we need to
5189         update topnode to the next node in line.
5190         - When clearing nodes go through the same process as removing
5191         them, so they get depareneted and checked if they are top node.
5192
5193 2005-12-01  Jackson Harper  <jackson@ximian.com>
5194
5195         * TreeView.cs: When imagelists are used the image area is
5196         selectable as well as the text.
5197         - If there are no selected nodes select the first one.
5198         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5199         so don't do it more then we need to.
5200
5201 2005-12-01  Jackson Harper  <jackson@ximian.com>
5202
5203         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5204         that arrows can be scaled.
5205
5206 2005-12-01  Jackson Harper  <jackson@ximian.com>
5207
5208         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5209         fail. Patch by Dieter Bremes
5210
5211 2005-11-30  Jackson Harper  <jackson@ximian.com>
5212
5213         * Form.cs: Property is 2.0 only
5214         * PrintDialog.cs: Signature fix.
5215
5216 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5217
5218         * TextControl.cs: 
5219           - No longer artificially moves text 2 pixels down (now that we have
5220             borders this is no longer needed)
5221           - Added calcs for left, hanging and right indent
5222
5223 2005-11-23  Mike Kestner  <mkestner@novell.com>
5224
5225         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5226
5227 2005-11-30  Jackson Harper  <jackson@ximian.com>
5228
5229         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5230         get cloned as part of CloneMenu ().
5231         * Menu.cs: Make sure the parent of the items get set correctly
5232         when they are added.  And the owners are notified of the changes.
5233         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5234         we can change the menu being displayed/handled by the form without
5235         changing the menu assosciated with the form.
5236         - Don't let Mdi children draw/handle menus.
5237         
5238 2005-11-30  Jackson Harper  <jackson@ximian.com>
5239
5240         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5241         a MenuChanged event. Just to make the API a little more
5242         consistent.
5243         * MainMenu.cs:
5244         * MenuItem.cs: Use the new OnMenuChanged
5245         * MdiChildContext.cs: Handle menu merging.
5246         * Form.cs: Implement MergedMenu.
5247         
5248 2005-11-30  Jackson Harper  <jackson@ximian.com>
5249
5250         * Menu.cs: We were misusing Add. Add goes behind the specified
5251         index according to the docs, and does not replace the specified
5252         index. So I added an Insert method.
5253
5254 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5255
5256         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5257           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5258           is for Jackson
5259         * RichTextBox.cs: Added calls to base for DnD events
5260
5261 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5262
5263         * TextControl.cs:
5264           - Fixed drag-selection related crash; style fixes
5265           - Implemented undo class
5266             o Implemented method to capture document state for specified
5267               range in document tree
5268             o Implemented method to restore captured document state
5269             o Implemented cursor tracking
5270             o Implemented basic undo stack
5271           - Added undo cursor tracking to methods altering cursor location
5272           - Added undo tracking to selection deletion (still missing
5273             other text-altering hookups)
5274         * RichTextBox.cs:
5275           - Added SelectionLength property
5276           - Implemented CanPaste()
5277           - Implemented Paste()
5278           - Added missing protected methods
5279           - Fixed RTF->Document conversion; now uses font index 0 and color 
5280             index 0 as the default font for the parsed text
5281           - Fixed RTF<->Document font size translation
5282           - Fixed RTF generation, now properly handles cross-tag boundaries
5283             for single line selection
5284           - No longer always appends blank line to generated RTF
5285           - Removed TODOs
5286           - Added missing attributes
5287           - Hooked up undo-related methods
5288         * TextBoxBase.cs:
5289           - Implemented Copy()
5290           - Implemented Paste()
5291           - Implemented Cut()
5292           - Fixed caret mis-behaviour on backspace across line-boundaries
5293
5294 2005-11-29  Jackson Harper  <jackson@ximian.com>
5295
5296         * MdiClient.cs: Add a method for activating mdi children. Very
5297         basic right now. I imagine someday it might need more girth.
5298         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5299         children windows names are added to the menu item.
5300         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5301         mdilist. This happens regardless of whether or not there are any
5302         mdi windows to see in the list, and according to my tests happens
5303         before the items are even added. Also happens if there isn't even
5304         an mdi client to get windows from.
5305
5306 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5307
5308         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5309         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5310
5311 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5312
5313         * DataGridTableStyle.cs:
5314           - Create always the styles for the missing columns even if they are
5315             provided by the user (not default table style)
5316         * DataGrid.cs:
5317           - Fixes bug 76770
5318           - Fixes SetDataBinding (always re-attach source)
5319           - Fixes SetNewDataSource (only clear styles if they are not for 
5320             this source)
5321          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5322             and remove properly
5323
5324 2005-11-29  Jackson Harper  <jackson@ximian.com>
5325
5326         * FileDialog.cs: Implement missing bits, remove some dead
5327         code.
5328         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5329         creation of the panel so that the options set on the dialog are
5330         seen when the panel is created.
5331         * TreeView.cs: raise a click when items are clicked.
5332         
5333 2005-11-29  Jackson Harper  <jackson@ximian.com>
5334
5335         * MdiClient.cs: Pass some signature methods through to base.
5336
5337 2005-11-28  Jackson Harper  <jackson@ximian.com>
5338
5339         * ListView.cs: Raise the click event when items are clicked.
5340
5341 2005-11-28  Jackson Harper  <jackson@ximian.com>
5342
5343         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5344         a nullref.
5345
5346 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5347
5348         * ThemeNice.cs: - Removed 1 pixel bitmaps
5349           - Use SmoothingMode.AntiAlias where it makes sense
5350             (ScrollButton arrow for example)
5351           - Enhanced Button focus drawing
5352           - Fixed ComboBox drawing (no artefacts anymore, focus
5353             rectangle is back again, reduced size of ComboButton, etc.)
5354           - Fixed RadioButton focus drawing for Appearence.Button
5355           - Slight ScrollButton redesign
5356           - Some LinearGradientBrush size fixes
5357           - GroupBoxes have now rounded edges
5358           - Fixed StatusBar drawing
5359
5360 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5361
5362         * ThemeNice.cs: - Remove dead code
5363           - use correct background colors for menus, etc.
5364           - Fake pixel drawing with 1 pixel bitmaps
5365
5366 2005-11-24  Jackson Harper  <jackson@ximian.com>
5367
5368         * MdiClient.cs: Size the scrollbars when resizing the window.
5369         - Resize the maximized windows when the client is resized
5370         * Form.cs: Make the child context available
5371         
5372 2005-11-23  Jackson Harper  <jackson@ximian.com>
5373
5374         * MdiChildContext.cs: Don't size windows if they are maximized.
5375
5376 2005-11-23  Mike Kestner  <mkestner@novell.com>
5377
5378         * ContextMenu.cs: use MenuTracker.
5379         * Control.cs: remove menu handle usage.
5380         * Form.cs: remove menu handle usage.
5381         * Hwnd.cs: remove menu handle usage.
5382         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5383         motion and clicks to the new Tracker handlers.
5384         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5385         and handle usage.
5386         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5387         Killed the MENU and MENUITEM data types and associated collections
5388         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5389         MenuTracker class that exposes the leftovers from the old MenuAPI
5390         static methods. Restructured Capture handling so that only one grab is
5391         done for the entire menu hierarchy instead of handing off grabs to
5392         submenus. Tracker now has an invisible control to Capture when active.
5393         * MenuItem.cs: add sizing accessors, kill Create
5394         and handle usage.
5395         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5396         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5397         MENU(ITEM). remove menu handle usage, use Menu directly.
5398         * XplatUIDriver.cs: remove menu handle usage.
5399         * XplatUIOSX.cs: remove menu handle usage.
5400         * XplatUIWin32.cs: remove menu handle usage.
5401         * XplatUIX11.cs: remove menu handle usage.
5402
5403 2005-11-22  Jackson Harper  <jackson@ximian.com>
5404
5405         * Hwnd.cs: Don't compute the menu size for
5406         DefaultClientRectangle.
5407         - Reenable menu sizes being computed for GetClienRectangle.
5408         * Form.cs: Remove comment of trechery
5409         
5410 2005-11-22  Jackson Harper  <jackson@ximian.com>
5411
5412         * Hwnd.cs: The adjustments for the menu bar are made when it is
5413         attached to the form.
5414
5415 2005-11-19  Jackson Harper  <jackson@ximian.com>
5416
5417         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5418         (just like on windows).
5419
5420 2005-11-19  Jackson Harper  <jackson@ximian.com>
5421
5422         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5423         use real buttons anymore because they are in non client area. The
5424         one TODO here is that I need to somehow invalidate a section of
5425         the non client area.
5426
5427 2005-11-18  Jackson Harper  <jackson@ximian.com>
5428
5429         * Control.cs: Put the enum check back in now that MDI doesnt have
5430         to use this to set border styles.
5431         * Form.cs: Only set mdi child windows borders if the handle has
5432         been created.
5433         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5434         this directly on to the driver.
5435         - Get the move start position before adjusting for the titlebar
5436         height, this fixes the windows "skipping" when they are first
5437         moved.
5438
5439 2005-11-18  Jackson Harper  <jackson@ximian.com>
5440
5441         * XplatUIX11.cs: Just compute the mdi borders separately as they
5442         don't totally match up with normal form borders.
5443
5444 2005-11-18  Jackson Harper  <jackson@ximian.com>
5445
5446         * Control.cs: Set WS_ styles for borders, so that the driver does
5447         not have to retrieve the control instance to figure out what kind
5448         of borders it should have.
5449         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5450         driver can know its an mdi child easily.
5451         * XplatUIX11.cs: Get the border styles and whether the window is
5452         MDI from the Styles and ExStyles params instead of having to get a
5453         control. This prevents a chicken and egg problem.       
5454
5455 2005-11-18  Jackson Harper  <jackson@ximian.com>
5456
5457         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5458
5459 2005-11-18  Jackson Harper  <jackson@ximian.com>
5460
5461         * MdiClient.cs: Calculate when to add and remove scrollbars
5462         correctly.
5463         * MdiChildContext.cs: Adjust the y position to take the titlebar
5464         into account.
5465         - No height for FormBorderStyle.None
5466
5467 2005-11-18  Jackson Harper  <jackson@ximian.com>
5468
5469         * Control.cs: Allow non enum values to be used for
5470         InternalBorderStyle.  MDI does this to set a special border style.
5471         - New utility methods for converting points to/from client coords
5472         - Add the newly created control to the Controls collection before
5473         updating its style. This way UpdateStyle can walk the control
5474         heirarchy to find the control if needed.
5475         so I don't need to create a new Point object all the time.
5476         * Form.cs: Let MDI windows handle their border styles.
5477         - Set styles on MDI windows so the correct title style is derived.
5478         * MdiChildContext.cs: Move all the painting and window handling
5479         into the non client area.
5480         - Use correct sizing and put correct buttons on frames based on
5481         the FormBorderStyle.
5482         - Notify the mdi client about scrolling
5483         - Need to handle the buttons ourselves now, because they are all
5484         in non client areas and we can't add controls there.
5485         * MdiClient.cs: Halfway to scrolling, this implementation is
5486         somewhat broken though, we need to check to make sure other
5487         windows aren't causing scrolling before removing the bars. Also
5488         the bars need to be drawn on top, maybe I can switch implicit
5489         controls to be on top.
5490         * Hwnd.cs: caption_height and tool_caption_height are now
5491         properties of an hwnd, this way they can be set by the driver
5492         based on the type of window they are.  In X11 the window manager
5493         handles the decorations so caption_height is zero unless its an
5494         MDI window.
5495         - Add 3 pixel borders for MDI windows (0xFFFF).
5496         - Get rid of some code duplication, have DefaultClientRectanle
5497         just call GetClientRectangle.
5498         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5499         Hwnd now.
5500         - Set border styles differently for mdi windows.
5501         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5502         Hwnd now.
5503         
5504 2005-11-15  Mike Kestner  <mkestner@novell.com>
5505
5506         * Menu.cs: when adding an item to the collection, if item is already 
5507         parented, remove it from the parent.
5508
5509 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5510
5511         * X11DesktopColors.cs: Added KDE support
5512
5513 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5514
5515         * XplatUIWin32.cs: 
5516           - Clipboard methods now can translate Rtf format
5517           - No longer removes clipboard contents whenever a new format is added
5518             to allow placing multiple formats on the clipboard
5519         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5520           will place all formats contained in it onto the clipboard. Also
5521           now cleans the clipboard before placing a new object onto it
5522         * RichTextBox.cs:
5523           - Implemented set_Rtf
5524           - Implemented set_SelectedRtf
5525           - Created InsertRTFFromStream() method to allow single code base
5526             for all properties and methods that insert RTF into document
5527           - Removed debug output
5528         * TextControl.cs:
5529           - Fixed Delete(int) to fix up line numbers
5530           - Fixed ReplaceSelection to combine start and end line
5531           - Fixed serious DeleteChars bug that would leave the document tree
5532             broken
5533           - Improved DumpTree with several logic checks to detect broken
5534             document trees
5535           - Removed debug lines
5536           - Fixed Caret.WordForward/WordBack moving code, now always also 
5537             updates caret.tag (fixes crash when word-selecting across tag
5538             boundaries via keyboard)
5539           - Added Insert() method for inserting multiline text into documents
5540           - Fixed DeleteChars() calculation errors that would cause a broken
5541             tag chain with multiple tag lines
5542           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5543           - Split() no longer moves caret if split is at caret location
5544           - ReplaceSelection() now updates the cursor and re-displays it
5545           - ReplaceSelection() now uses new Insert() method to avoid code
5546             duplication
5547           - FormatText() can now handle formatting partial lines
5548         * TextBoxBase.cs:
5549           - Append now uses new TextControl.Insert() method (this avoids 
5550             duplicate code)
5551           - Implemented Ctrl-X (Cut) (
5552           - Implemented Ctrl-C (Copy)
5553           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5554             regeneration when pasting text; roundtripping Copy&Paste within
5555             edit control still fails due to some calculation bugs in GenerateRTF)
5556           - The Delete key will now remove the current selection if it is visible
5557         * TextBox.cs: Removed debug lines
5558         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5559           driver to be initialized and can't therefore be done via a static ctor)
5560
5561 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5562
5563         * TextControl.cs: Added backend code for finding char arrays and strings
5564         * TextBoxBase.cs:
5565           - Added mouse wheel scroll support
5566           - Added support for VScroll and HScroll events
5567         * RichTextBox.cs:
5568           - Implemented all seven Find() variants
5569           - Implemented GetCharFromPosition()
5570           - Implemented GetCharIndexFromPosition()
5571           - Implemented GetLineFromIndex()
5572           - Implemented GetPositionFromCharIndex();
5573           - Implemented SaveFile for PlainText and UnicodeText
5574           - Fixed set_Font, now setting a new font applies that font to
5575             the whole document
5576           - Implemented generic Document to RTF converter
5577           - Implemented SaveFile for RichText format (still missing unicode
5578             conversion for non-ansi chars)
5579           - Implemented get_Rtf
5580           - Implemented get_SelectedRtf
5581
5582 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5583
5584         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5585           to allow any captures to be released before triggering OnClick. This
5586           way a click handler may capture the mouse without interference.
5587         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5588           This way we send them even though X may not allow a grab (if the window
5589           isn't visible, for example)
5590
5591 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5592
5593         * DataGridViewRowEventArgs.cs: DataGridView implementation
5594         * DataGridViewElement.cs: DataGridView implementation
5595         * DataGridViewComboBoxCell.cs: DataGridView implementation
5596         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5597         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5598         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5599         * ImageLayout.cs: DataGridView implementation
5600         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5601         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5602         * DataGridViewSelectionMode.cs: DataGridView implementation
5603         * IDataGridViewEditingControl.cs: DataGridView implementation
5604         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5605         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5606         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5607         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5608         * DataGridViewColumnSortMode.cs: DataGridView implementation
5609         * DataGridView.cs: DataGridView implementation
5610         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5611         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5612         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5613         * Padding.cs: DataGridView implementation
5614         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5615         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5616         * DataGridViewRowEventHandler.cs: DataGridView implementation
5617         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5618         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5619         * DataGridViewButtonCell.cs: DataGridView implementation
5620         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5621         * DataGridViewEditMode.cs: DataGridView implementation
5622         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5623         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5624         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5625         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5626         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5627         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5628         * DataGridViewCellEventHandler.cs: DataGridView implementation
5629         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5630         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5631         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5632         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5633         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5634         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5635         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5636         * QuestionEventArgs.cs: DataGridView implementation
5637         * IDataGridViewEditingCell.cs: DataGridView implementation
5638         * DataGridViewTriState.cs: DataGridView implementation
5639         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5640         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5641         * DataGridViewColumnCollection.cs: DataGridView implementation
5642         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5643         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5644         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5645         * DataGridViewColumn.cs: DataGridView implementation
5646         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5647         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5648         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5649         * DataGridViewRow.cs: DataGridView implementation
5650         * DataGridViewImageCellLayout.cs: DataGridView implementation
5651         * DataGridViewImageCell.cs: DataGridView implementation
5652         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5653         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5654         * DataGridViewHeaderCell.cs: DataGridView implementation
5655         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5656         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5657         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5658         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5659         * QuestionEventHandler.cs: DataGridView implementation
5660         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5661         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5662         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5663         * DataGridViewCell.cs: DataGridView implementation
5664         * DataGridViewCellEventArgs.cs: DataGridView implementation
5665         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5666         * DataGridViewCellStyle.cs: DataGridView implementation
5667         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5668         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5669         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5670         * TextFormatFlags.cs: DataGridView implementation
5671         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5672         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5673         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5674         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5675         * DataGridViewButtonColumn.cs: DataGridView implementation
5676         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5677         * HandledMouseEventArgs.cs: DataGridView implementation
5678         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5679         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5680         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5681         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5682         * DataGridViewRowCollection.cs: DataGridView implementation
5683         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5684         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5685         * DataGridViewHitTestType.cs: DataGridView implementation
5686         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5687         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5688         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5689         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5690         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5691         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5692         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5693         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5694         * DataGridViewContentAlignment.cs: DataGridView implementation
5695         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5696         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5697         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5698         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5699         * DataGridViewPaintParts.cs: DataGridView implementation
5700         * DataGridViewCellCollection.cs: DataGridView implementation
5701         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5702         * DataGridViewImageColumn.cs: DataGridView implementation
5703         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5704         * DataGridViewElementStates.cs: DataGridView implementation
5705         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5706         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5707         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5708         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5709         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5710         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5711         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5712         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5713         * DataGridViewTextBoxCell.cs: DataGridView implementation
5714         * DataGridViewBand.cs: DataGridView implementation
5715         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5716         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5717         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5718         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5719         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5720         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5721         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5722         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5723         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5724         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5725         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5726
5727 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5728
5729         * ThemeWin32Classic.cs: 
5730           - Draw the outside focus rectangle around buttons
5731           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5732             doesn't use end caps for every dash of a line anymore. This
5733             workaround ignores the forecolor.
5734
5735 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5736
5737         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5738           endian safe.
5739
5740 2005-11-07  Jackson Harper  <jackson@ximian.com>
5741
5742         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5743
5744 2005-11-07  Jackson Harper  <jackson@ximian.com>
5745
5746         * ScrollableControl.cs: Calculate the maximum and change vars
5747         (more) correctly so that scrollbars appear as a sensible size.
5748
5749 2005-11-04  Jackson Harper  <jackson@ximian.com>
5750
5751         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5752         collection.
5753         * TreeView.cs: When the tree is sorted null out the top_node so
5754         that it is recalculated.
5755         - Use dotted lines instead of dashed lines to match MS better.
5756
5757 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5758
5759         * ListView.cs: 
5760           - Implements key search for items. Useful when browsing files with FileDialog
5761           - When changing view mode or when clear the items reset scrollbar positions
5762
5763 2005-11-04  Jackson Harper  <jackson@ximian.com>
5764
5765         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5766         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5767         as to what the method may do as there is no real way of creating a
5768         derived CurrencyManager and calling the method. 
5769
5770 2005-11-03  Jackson Harper  <jackson@ximian.com>
5771
5772         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5773         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5774         method which seems to just be used internally to refresh the tabs.
5775
5776 2005-11-03  Jackson Harper  <jackson@ximian.com>
5777
5778         * TabControl.cs: Implement the remove method. Fix some broken
5779         comments.
5780
5781 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5782
5783         * DateTimePicker.cs:
5784           - Added missing DateTimePickerAccessibleObject class
5785           - Added missing events
5786           - Added OnFontChanged method
5787         * Form.cs: Added missing attributes
5788         * TreeView.cs: Added missing attributes
5789
5790 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5791
5792         * GridItemCollection.cs: Fix signatures
5793
5794 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5795
5796         * XplatUI.cs: Updated build rev/date
5797         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5798           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5799         * Application.cs: Trigger context-specific ExitThread events
5800
5801 2005-11-03  Jackson Harper  <jackson@ximian.com>
5802
5803         * Menu.cs:
5804         * MainMenu.cs:
5805         * GridTableStylesCollection.cs:
5806         * Timer.cs:
5807         * TabPage.cs:
5808         * HelpProvider.cs:
5809         * StatusBar.cs:
5810         * MonthCalendar.cs: Signature fixes
5811
5812 2005-11-03  Jackson Harper  <jackson@ximian.com>
5813
5814         * TreeNodeCollection.cs: Remove should not be virtual.
5815         * TreeView.cs: Implement the last of the missing methods.
5816
5817 2005-11-03  Jackson Harper  <jackson@ximian.com>
5818
5819         * TreeNodeConverter.cs: Implement to get off my class-status back.
5820
5821 2005-11-03  Jackson Harper  <jackson@ximian.com>
5822
5823         * TreeView.cs: Hookup the bits for drag and drop.
5824         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5825         that nodes can be moved from tree to tree easily this just causes
5826         all sorts of problems.
5827         * TreeNodeCollection: Don't need to give treenodes an index and
5828         treeview anymore when they are added, these are computed on the
5829         fly. Also make sure to remove a node before its added.
5830
5831 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5832
5833         * TextControl.cs:
5834           - Added CaretSelection enum
5835           - Added comparison methods to Marker struct, makes selection code
5836             more readable
5837           - Added SelectionStart and SelectionEnd as 'moveable' location for
5838             the CaretDirection enum and handler
5839           - Added selection_prev variable to track optimized invalidation for
5840             word and line selection
5841           - Added SelectionVisible property (returns true if there is a valid 
5842             selection)
5843           - Switched CaretHasFocus to only display the caret if there is no
5844             visible selection
5845           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5846             using the direct character index; should be much faster
5847           - Added various conditional debug statements
5848           - Fixed invalidation calculation for selection ranges
5849           - Added ExpandSelection() method to support word and line selection
5850           - Switched SetSelectionToCaret to use new Marker compare overloads
5851           - Added central IsWordSeparator() method to determine word 
5852             separators/whitespace and FindWordSeparator() to streamline common
5853             usage of IsWordSeparator()
5854         * TextBoxBase.cs:
5855           - Removed unneeded grabbed variable, it was just mirroring
5856             Control.Capture
5857           - No longer firing OnTextChanged event when Text setter is called,
5858             since the base will fire the event for us
5859           - Added handling of Ctrl-Up/Down selection
5860           - Added handling of Shift-Cursorkey selection
5861           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5862             words
5863           - Added handling of Shift and Ctrl-Shift-Home/End selection
5864           - Removed some debug output
5865           - Added handling for single/double/tripple-click to place caret/
5866             select word/select line respectively (Fixes bug #76031)
5867           - Added support for drag expansion of word/line selection
5868         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5869           current selection
5870
5871 2005-11-02  Jackson Harper  <jackson@ximian.com>
5872
5873         * X11Dnd.cs: If the drag is going to and from a MWF window just
5874         copy the data instead of sending it out through the X Selection
5875         mechanism.
5876
5877 2005-11-02  Jackson Harper  <jackson@ximian.com>
5878
5879         * X11Dnd.cs:
5880         * XplatUIX11.cs: When in a drag we don't want motion notify
5881         messages to get passed on to the other controls. This prevents
5882         mouse move messages from showing up in the drag source.
5883
5884 2005-11-02  Jackson Harper  <jackson@ximian.com>
5885
5886         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5887         the correct button is release to end a drag.
5888         * XplatUIX11.cs: Make the button state internal so the drag system
5889         can access it.  Dragging needs to know about all button releases,
5890         not just left button.
5891
5892 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5893
5894         * Form.cs (Icon): If the icon is null, reset the icon to the
5895         default value. 
5896
5897         * Cursor.cs: When writing the AND-mask bitmap do not include the
5898         number of colors, but hardcode those to two (black and white),
5899         fixes the loading of color cursors (Paint Dot Net).
5900
5901         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5902         turn off autoscaling.
5903
5904         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5905
5906 2005-11-02  Jackson Harper  <jackson@ximian.com>
5907
5908         * X11Dnd.cs: Make sure to send a status message if the pointer
5909         enters a control that can not accept a drop, otherwise the cursor
5910         isn't updated correctly. Also tried to compress the lines of code
5911         a bit.
5912
5913 2005-11-02  Jackson Harper  <jackson@ximian.com>
5914
5915         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5916         set actions correctly.  This isn't perfect as XDND and win32 have
5917         some differences on how you allow actions. I'll clear this up by
5918         adding a path for drag from MWF to MWF windows.
5919         * XplatUIX11.cs: Hook into the dnd system.
5920
5921 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5922
5923         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5924         previously shown but they are no longer need it. Very obvious when 
5925         browsing files with FileDialog.
5926
5927 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5928
5929         * Control.cs: We always need to call OnPaintBackground. We pretty much
5930           ignore AllPaintingInWmPaint and always do the painting there, whether 
5931           it's set or not, since we always ignore the WM_ERASEBKGND message 
5932           (which we don't generate on X11). This fixes #76616.
5933         * Panel.cs: Removed unneeded background painting. This happens properly
5934           in Control.cs already
5935
5936 2005-10-31  Mike Kestner  <mkestner@novell.com>
5937
5938         * Menu.cs: Add items to collection before setting their index.
5939         * MenuItem.cs : add range checking with ArgumentException like MS.
5940         [Fixes #76510]
5941
5942 2005-10-31  Jackson Harper  <jackson@ximian.com>
5943
5944         * ListBox.cs: Invalidate if the area is visible at all not just
5945         contained in the visible rect. Fixes unselection of semi visible
5946         items.
5947
5948 2005-10-31  Jackson Harper  <jackson@ximian.com>
5949
5950         * Control.cs: Consistently name the dnd methods. Make them
5951         internal so we can override them to match some MS behavoir
5952         internally.
5953         * Win32DnD.cs: Use the new consistent names.
5954
5955 2005-10-31  Jackson Harper  <jackson@ximian.com>
5956
5957         * TreeView.cs: Don't draw the selected node when we lose focus.
5958
5959 2005-10-31  Jackson Harper  <jackson@ximian.com>
5960
5961         * X11Dnd.cs: We still need to reset the state even though a full
5962         reset isn't being done, otherwise status's still get sent all over
5963         the place.
5964
5965 2005-10-31  Jackson Harper  <jackson@ximian.com>
5966
5967         * Control.cs: Make the dnd_aware flag internal so the dnd
5968         subsystem can check it. Catch exceptions thrown in dnd handlers to
5969         match MS behavoir.
5970         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5971         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5972         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5973         flags to reduce the number of dnd enters/status's sent.
5974
5975 2005-10-31  Jackson Harper  <jackson@ximian.com>
5976
5977         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5978
5979 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5980
5981         * PictureBox.cs: Fixes 76512
5982
5983 2005-10-28  Jackson Harper  <jackson@ximian.com>
5984
5985         * X11Dnd.cs: Early implementation to support winforms being a drag
5986         source for data on X11. Also restructured the converters so they
5987         can go both ways now.
5988         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5989         
5990 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5991
5992         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5993           clipboard requests
5994
5995 2005-10-27  Jackson Harper  <jackson@ximian.com>
5996
5997         * TreeNode.cs: Implement serialization so my DnD examples will work.
5998
5999 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6000
6001         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6002           TreeView.cs: Don't dispose objects that are not owned.
6003           
6004 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6005
6006         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6007           should retrieve the current cursor and report that, but XplatUI
6008           doesn't (yet) have an interface for that (and I'm not sure I even
6009           can, on X11)
6010         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6011           until any message loop processing is done (and the WM_SETCURSOR
6012           replaces the cursor to the proper one)
6013         * XplatUIX11.cs: 
6014           - Fixed override behaviour, we can't set the cursor globally on X11, 
6015             just for our windows.
6016           - Invalidating the System.Drawing X11 display handle when we are
6017             shutting down
6018         * Control.cs: Fix to make csc happy
6019
6020 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6021
6022         * TextBoxBase.cs: 
6023           - get_Text: Add last line (without trailing newline) to returned
6024             value (Fixes 76212)
6025           - get_TextLength: Count last line in returned length
6026           - ToString: Call Text property instead of duplicating code
6027
6028 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6029
6030         * ImageList.cs: Dispose ImageAttributes objects.
6031
6032 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6033
6034         * ImageList.cs: Use attribute constructors with less arguments where
6035           possible.
6036
6037 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6038
6039         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6040           Use typeof instead of strings when assembly is referenced. Added
6041           some more comments.
6042
6043 2005-10-21  Jackson Harper  <jackson@ximian.com>
6044
6045         * ListView.cs: Raise a double click event. Also tried to somewhat
6046         fix when the selectedindexchanged event is raised. Its still
6047         broken though.
6048
6049 2005-10-21  Jackson Harper  <jackson@ximian.com>
6050
6051         * TreeView.cs: New method to invalidate the plus minus area of a
6052         node without invalidating the whole node (maybe this can be used
6053         in some more places).
6054         * TreeNodeCollection.cs: When adding to an empty node we need to
6055         invalidate its plus minus area so the little block shows up.
6056         
6057 2005-10-21  Jackson Harper  <jackson@ximian.com>
6058
6059         * TreeView.cs: Make sure that when we invalidate a node the bounds
6060         are big enough to cover the selected box and the focus
6061         rectangle. Use a different colour for the lines connecting nodes
6062         so they show up with all themes.
6063
6064 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6065
6066         * NativeWindow.cs: Don't call anything that could call into the driver,
6067           we might be on a different thread.
6068
6069 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6070
6071         * Control.cs(Dispose): Since Dispose might run on a different thread,
6072           make sure that we call methods that could call into the driver via
6073           invoke, to avoid thread issues
6074
6075 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6076
6077         * XplatUI.cs: Removed finalizer
6078         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6079           not allowing to be called on the finalizer thread.
6080
6081 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6082
6083         * ImageList.cs:
6084           - Reverted r51889 and r51891.
6085           - Added ImageListItem class that stores unmodified image items and image
6086             properties required to create list images until handle is created.
6087           - Added AddItem and moved image creation logic to AddItemInternal.
6088           - Added CreateHandle method that creates images based on unmodified items.
6089           - Added DestroyHandle that changes state to store unmodified items.
6090           - Add and AddStrip methods no more create handle.
6091           - ReduceColorDepth has no return value.
6092           - Dispose destroys handle.
6093           - Modified other methods to reflect the above changes.
6094           - Implemented key support.
6095           - Added profile 2.0 members and attributes.
6096           - Added private Reset and ShouldSerialize methods that provide the same
6097             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6098             them as they are private.
6099           - Added some more comments about implementation details.
6100
6101 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6102
6103         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6104
6105 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6106
6107         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6108
6109 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6110
6111         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6112         * DataGridColumnStyle.cs: Remove debug message
6113
6114 2005-10-20  Jackson Harper  <jackson@ximian.com>
6115
6116         * TreeView.cs: We can always get input keys regardless of whether
6117         or not editing is enabled. They are used for navigation.
6118
6119 2005-10-20  Jackson Harper  <jackson@ximian.com>
6120
6121         * TreeNode.cs: Use the viewport rect for determining if a node
6122         needs to be moved for visibility. Don't use Begin/End edit. This
6123         calls a full refresh when its done.
6124         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6125         rect property internal so the treenodes can see it. When clicking
6126         on a node we need to ensure that its visible because it might just
6127         be partly visible when clicked.
6128
6129 2005-10-20  Jackson Harper  <jackson@ximian.com>
6130
6131         * TreeNodeCollection.cs: Remove debug code.
6132
6133 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6134
6135         * Datagrid.cs: Implements column sorting in Datagrid
6136         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6137
6138 2005-10-20  Jackson Harper  <jackson@ximian.com>
6139
6140         * TreeNodeCollection.cs: Remove items properly. Update the correct
6141         area after removing them.
6142
6143 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6144
6145         * Datagrid.cs: Should not call base.OnPaintBackground
6146
6147 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6148
6149         * XplatUIX11.cs (GetMessage):
6150           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6151             window instead of client window
6152           - Now properly calculates NC_xBUTTONUP message coordinates
6153           - ScreenToMenu now properly calculates it's coordinates of whole 
6154             window, since menus are in the whole window, not in the client
6155             window
6156           - Added WholeToScreen coordinate translation method
6157
6158 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6159
6160         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6161           want to return a message, loop back to the beginning of the function
6162           and grab the next real message to process instead.
6163
6164 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6165
6166         * Splitter.cs: Properly set limits if no filler control is used
6167
6168 2005-10-19  Jackson Harper  <jackson@ximian.com>
6169
6170         * ColorDialog.cs: Don't show the help button if it is not enabled
6171         instead of disabling it (this is what MS does). Don't create the
6172         panel until the dialog is run, otherwise the vars (such as
6173         ShowHelp) are not set yet.
6174
6175 2005-10-19  Jackson Harper  <jackson@ximian.com>
6176
6177         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6178         are reduced when adding nodes.
6179         * TreeNode.cs:
6180         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6181         tree.
6182         
6183 2005-10-19  Jackson Harper  <jackson@ximian.com>
6184
6185         * FolderBrowserDialog.cs: End editing our treeview so the window
6186         actually gets refreshed.
6187
6188 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6189
6190         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6191           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6192           inside of WM_PAINT
6193
6194 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6195
6196         * MenuAPI.cs: Returns after Hidding window
6197         * XplatUIX11.cs: Added TODO found while debugging menu issues
6198
6199 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6200
6201         * XplatUIX11.cs: Do not re-map the whole window when it's size
6202           becomes non-zero unless it's supposed to be actually visible
6203
6204 2005-10-18  Jackson Harper  <jackson@ximian.com>
6205
6206         * TreeView.cs: We don't need to keep a count anymore.
6207         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6208         use the Grow method.
6209
6210 2005-10-18  Jackson Harper  <jackson@ximian.com>
6211
6212         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6213         implement it manually here.
6214
6215 2005-10-18  Jackson Harper  <jackson@ximian.com>
6216
6217         * ImageList.cs: Dont kill the list when the colour depth is
6218         changed, just change the colour depth of all the images.
6219         - Same goes for setting the image size. Just resize them all
6220         instead of killing the list softly.
6221
6222 2005-10-18  Jackson Harper  <jackson@ximian.com>
6223
6224         * Control.cs: Don't invalidate empty rectangles.
6225
6226 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6227
6228         * ListViewItem.cs:
6229           - Adds checked item to the Checked/Item lists (where empty before)
6230           - Do not add items to the Selected lists if they are already present
6231         * ListView.cs:
6232           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6233           - When deleting items make sure that we delete them for the Selected
6234           and Checked list also.
6235
6236 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6237
6238         * Label.cs: Dispose objects no longer used
6239         * ThemeWin32Classic.cs: Dispose objects no longer used
6240
6241 2005-10-18  Jackson Harper  <jackson@ximian.com>
6242
6243         * TabControl.cs: Don't refresh the whole control when the tabs are
6244         scrolled, we just need to refresh the tab area.
6245
6246 2005-10-17  Jackson Harper  <jackson@ximian.com>
6247
6248         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6249         after handle when we need it.
6250
6251 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6252
6253         * Control.cs: When the parent size changes, recalculate anchor 
6254           positions. Partial fix for #76462
6255
6256 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6257
6258         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6259           drawn. Fixes #76462
6260
6261 2005-10-17  Jackson Harper  <jackson@ximian.com>
6262
6263         * MonthCalendar.cs: Don't create the numeric up down until our
6264         handle is created. Otherwise our handle is created in the
6265         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6266         yet.
6267
6268 2005-10-17  Jackson Harper  <jackson@ximian.com>
6269
6270         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6271         correctly.
6272
6273 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6274         * TreeNode.cs : small logical fix (was using local var instead of field)
6275         
6276 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6277
6278         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6279
6280 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6281
6282         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6283
6284 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6285
6286         * Control.cs: 
6287           - Re-implemented anchoring code. My first version was really broken.
6288             This fixes bug #76033. Unlike the previous implementation we will
6289             no longer have round errors since all numbers are calculated from
6290             scratch every time. Removed various anchor-related obsolete vars.
6291           - InitLayout no longer causes layout event firing and layout to be 
6292             performed
6293
6294 2005-10-16  Jackson Harper  <jackson@ximian.com>
6295
6296         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6297         which was broken).
6298
6299 2005-10-16  Jackson Harper  <jackson@ximian.com>
6300
6301         * TabControl.cs: Remove debug code.
6302
6303 2005-10-16  Jackson Harper  <jackson@ximian.com>
6304
6305         * XEventQueue.cs: Increase the default queue size (very simple
6306         apps needed to grow the queue).
6307         * Hwnd.cs: No finalizer so we don't need to suppress
6308         finalization. Compute the invalid area manually so a new rectangle
6309         does not newto be created.
6310         * ScrollableControl.cs: Don't set any params (otherwise visibility
6311         isn't set correctly).
6312         * MdiChildContext.cs: New constructor takes the mdi parent so it
6313         doesn't have to be computed and avoids a crash on windows. Draw
6314         the window icon properly, and allow the text to be seen.
6315         * Form.cs: Use new MdiChildContext constructor. Make sure the
6316         child context isn't null in wndproc.
6317         * TabControl.cs: Don't set focus, this is muddling keyboard
6318         behavoir. Expand the tab rows when a window size increase will
6319         allow extra tabs to be seen. Don't allow tabs smaller than the
6320         width of a window to be scrolled out of view.
6321         * TreeNode.cs:
6322         * TreeView.cs: Use measure string to calculate a nodes width, the
6323         width is cached and only updated when the text or the font is
6324         changed. Don't check for expand/collapse clicks on the first level
6325         nodes if root lines are disabled.
6326         
6327 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6328
6329         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6330
6331 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6332
6333         * DataGridBoolColumn.cs: fixes warning
6334
6335 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6336
6337         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6338         to match more to match more precisely the MS Net behavior
6339
6340 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6341
6342         * Hwnd.cs: Added field to track if window is mapped
6343         * XplatUIX11.cs: 
6344           - Unmap windows if they become 0-size, re-map when 
6345             they are >0 again; fixes #76035
6346           - Re-set our error handler after initializing X11Desktop
6347             to override any error handlers Gtk or whatever was called
6348             may have set.
6349
6350 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6351
6352         * CheckedListBox.cs: Removed unused vars
6353         * ListView.cs: Fixed signatures
6354         * RichTextBox.cs: Removed unused vars
6355         * TextBoxBase.cs: Removed unused vars
6356         * XplatUIWin32.cs: Removed unused vars
6357         * XplatUIX11.cs: Removed unused vars
6358         * XplatUI.cs: Updated version and date to latest published
6359
6360 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6361
6362         * Cursor.cs: Added private .ctor to work around a bug in
6363           resourceset (Thanks to Geoff Norton for the help on this)
6364         * SplitterEventArgs.cs: Made fields accessible so we don't
6365           waste boatloads of objects and can reuse the same one
6366           in Splitter
6367         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6368           any captions and borders when generating screen coordinates
6369         * Splitter.cs: Reimplemented control, now fully complete, uses
6370           rubberband drawing, supports and obeys all properties, has
6371           proper cursors
6372
6373 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6374
6375         * Form.cs (Form): Setup default values for autoscale and
6376         autoscale_base_size;  Make these instance variables, not static
6377         variables. 
6378
6379         (OnLoad): on the first load, adjust the size of the form.
6380
6381 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6382
6383         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6384           width argument to DrawReversibleRectangle()
6385         * XplatUIWin32.cs, XplatUIX11.cs: 
6386           - Implemented width for DrawReversibleRectangle()
6387           - Added logic to DrawReversibleRectangle that recognizes a zero
6388             width or height and only draws a line in that situation
6389         
6390 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6391
6392         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6393         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6394         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6395           method (it uses our FosterParent window to get a graphics context)
6396
6397 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6398
6399         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6400           and SetWindowBackground methods
6401         * Control.cs:
6402           - Setting proper ControlStyles
6403           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6404             EraseWindowBackground, instead we draw the window background
6405             ourselves in PaintControlBackground. This behaviour is
6406             required to match MS, where, when OnPaintBackground is not
6407             called, the background is not drawn.
6408           - Removed unneeded Refresh() in set_Text
6409         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6410         * XplatUIX11.cs:
6411           - Created DeriveStyles method to translate from CreateParams to
6412             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6413             matches FormBorderStyle enum values)
6414           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6415             style calculations into single DeriveStyles method
6416           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6417             from redrawing the whole window on any resize or expose.
6418           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6419             all styles were applied to our whole/client window appropriately
6420           - Removed EraseWindowBackground() and SetWindowBackground() methods
6421           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6422             no longer clear/redraw the background through X
6423           - Removed handling of erase_pending bit, we have no use for it (or
6424             so it seems)
6425         * XplatUIOSX.cs:
6426           - Removed generation and handling of WM_ERASEBKGND message
6427           - Removed EraseWindowBackground() and SetWindowBackground() methods
6428           - Removed handling of hwnd.ErasePending flag
6429         * XplatUIWin32.cs:
6430           - Removed EraseWindowBackground() and SetWindowBackground() methods
6431           - We no longer call EraseWindowBackground on PaintEventStart, we 
6432             ignore the fErase flag, erasing is handled in Control in the
6433             background handler
6434         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6435           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6436           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6437           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6438           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6439           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6440           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6441
6442 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6443
6444         * PropertyGrids.cs: Get sub properties
6445         * PropertyGridView.cs: Fix drawing code
6446
6447 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6448
6449         * ListBox.cs: Fixes 76383
6450
6451 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6452
6453         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6454         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6455         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6456
6457
6458 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6459
6460         * ComboBox.cs: Fixes border drawing
6461
6462 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6463
6464         * MimeIcon.cs: Ignore errors if the file can not be read.
6465
6466 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6467
6468         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6469          - Fixed border calculations
6470          - Fixed horizontal scrolling in single column listboxes
6471          - Fixed drawing issues
6472
6473 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6474
6475         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6476           FormBorderStyle enum
6477         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6478           code to determine FormBorderStyles from CreateParams
6479         * Form.cs:
6480           - Fixed bug where we'd set the wrong window styles if we were
6481             not creating an MDI window
6482           - Added call to XplatUI.SetBorderStyle when form borders are set
6483         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6484         * Hwnd.cs:
6485           - Removed obsolete edge style
6486           - Switched from BorderStyle to FormBorderStyle
6487         
6488 2005-10-10  Jackson Harper  <jackson@ximian.com>
6489
6490         * Form.cs: Use the property to get the window handle instead of
6491         accessing it directly. Prevents a null reference exception.
6492
6493 2005-10-10  Jackson Harper  <jackson@ximian.com>
6494
6495         * TreeView.cs: Don't adjust the rect given to DrawString now that
6496         our libgdiplus draws correctly.
6497
6498 2005-10-08  Jackson Harper  <jackson@ximian.com>
6499
6500         * TreeView.cs: Don't try to find the clicked on node if there are
6501         no nodes in the tree.
6502
6503 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6504
6505         * RichTextBox.cs:
6506
6507           restore
6508
6509 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6510
6511         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6512           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6513           ErrorProvider.cs:
6514           Use ResPool for brushes and dispose System.Drawing objects that
6515           are not used anymore.
6516
6517 2005-10-07  Jackson Harper  <jackson@ximian.com>
6518
6519         * MdiChildContext.cs: Use the new borders instead of drawing them
6520         ourselves.
6521
6522 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6523
6524         * Calling UpdateBounds after changing the window's BorderStyle 
6525         since the style can change the ClientSize
6526
6527 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6528
6529         * Control.cs: Made PaintControlBackground virtual
6530         * Panel.cs: Overriding PaintControlBackground instead of using paint
6531           event; paint event method was interfering with 'real' users of the
6532           event.
6533
6534 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6535
6536         * ThemeWin32Classic.cs: remove border drawing since it is handled
6537         by the base control class now and was causing double border drawing.
6538
6539 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6540
6541         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6542           but it does seem to match MS behaviour. This fixes bug #75324
6543
6544 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6545
6546         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6547           somewhat hackish looking
6548
6549 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6550
6551         * TextBoxBase.cs:
6552           - We now accept Enter even if AcceptEnter is false, if the containing
6553             form does not have an AcceptButton configured (fixes bug #76355)
6554           - Calculations are now fixed to no longer use Width/Height, but
6555             ClientSize.Width/Height, since we now support borders (this was
6556             a result of fixing borders and therefore bug #76166)
6557           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6558             true (fixes bug #76354)
6559         
6560 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6561
6562         * Control.cs: 
6563           - Defaulting BorderStyle and setting it in XplatUI when our window 
6564             is created
6565           - Added enum check to InternalBorderStyle setter
6566         * XplatUIX11.cs: 
6567           - Added drawing of window borders
6568           - Now properly calculates WM decorations offset for toplevel 
6569             windows (fixes bug #74763)
6570         * XplatUIWin32.cs: 
6571           - Implemented BorderStyles for windows (we're letting win32 draw 
6572             the border for us)
6573           - Fixed the signature for SetWindowLong
6574         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6575           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6576           setting borders
6577         * UpDownBase.cs: Remove drawing of borders, this is handled by
6578           the driver, outside the client area
6579         * ListView.cs: Removed bogus border calculations. The control should
6580           be oblivious to borders, since those are not part of the client
6581           area. 
6582         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6583         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6584           drawing code
6585
6586 2005-10-06  Jackson Harper  <jackson@ximian.com>
6587
6588         * MdiChildContext.cs: Clear out the old virtual position remove
6589         all the unneeded calls to CreateGraphics.
6590
6591 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6592
6593         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6594
6595 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6596
6597         * Form.cs: 
6598           - Added loading and setting of our new default icon
6599           - Only set icon if window is already created
6600
6601 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6602
6603         * Label.cs:
6604           - Do not explicitly set the foreground and background colors, to
6605             allow inheriting from parents (fixes #76302)
6606           - Use Control's InternalBorderStyle property to deal with borders
6607
6608 2005-10-06  Jackson Harper  <jackson@ximian.com>
6609
6610         * MdiChildContext.cs: Use the new xplatui function to draw a
6611         reversible rect.
6612
6613 2005-10-06  Jackson Harper  <jackson@ximian.com>
6614
6615         * Form.cs: Add the parent before creating the child context cause
6616         we need the parent when setting up the child.
6617
6618 2005-10-06  Jackson Harper  <jackson@ximian.com>
6619
6620         * FolderBrowserDialog.cs: redo the tree population code so a
6621         second thread isn't used. Should be a lot faster and more stable
6622         now.
6623
6624 2005-10-05  Jackson Harper  <jackson@ximian.com>
6625
6626         * TreeView.cs: There are no expand/collapse boxes if the node has
6627         no children.
6628
6629 2005-10-05  Jackson Harper  <jackson@ximian.com>
6630
6631         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6632
6633 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6634
6635         * FileDialog.cs: Fix InitialDirectory
6636
6637 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6638
6639         * ComboBox.cs:
6640                 - Fixes changing between styles
6641                 - Fixes simple mode
6642                 - Fixes last item crashing when navigating with keyboard
6643
6644 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6645
6646         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6647
6648 2005-10-05  Jackson Harper  <jackson@ximian.com>
6649
6650         * TreeView.cs: If updating the root node do a full refresh.
6651         * TreeNode.cs: The root node should be expanded by default. Also
6652         added a utility prop to tell if we are the root node.
6653         * TreeNodeCollection.cs: Only refresh if the node we are being
6654         added to is expanded. Also added a comment on a potential
6655         optimization.
6656         
6657 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6658
6659         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6660           in dispose method. Fixes #76330
6661
6662 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6663
6664         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6665
6666                 - Implements vertical and horizontal scrolling using XplatUI
6667                 - Fixes keyboard navagation
6668                 - Fixes EnsureVisible
6669                 - Drawing fixes
6670                 - Handles and draws focus properly
6671
6672
6673 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6674
6675         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6676           Create handle. NET_2_0: Destroy handle when value is null.
6677
6678 2005-10-03  Jackson Harper  <jackson@ximian.com>
6679
6680         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6681         revert and a new patch to prevent the thumb from refreshing so
6682         much.
6683
6684 2005-10-02  Jackson Harper  <jackson@ximian.com>
6685
6686         * ScrollBar.cs: Don't update position if it hasn't actually
6687         changed. This occurs when you hold down the increment/decrement
6688         buttons and the thumb gets to the max/min.
6689
6690 2005-10-01  Jackson Harper  <jackson@ximian.com>
6691
6692         * Form.cs:
6693         * MdiChildContext.cs:
6694         * MdiClient.cs: Implement ActiveMdiChild in Form.
6695
6696 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6697
6698         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6699
6700 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6701
6702         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6703           be found
6704
6705 2005-09-30  Jackson Harper  <jackson@ximian.com>
6706
6707         * ListBox.cs: Don't do a full refresh unless some data has
6708         actually changed.
6709
6710 2005-09-30  Jackson Harper  <jackson@ximian.com>
6711
6712         * TreeView.cs: Make sure that the checkboxes size is factored in
6713         even when not visible.
6714
6715 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6716
6717         * FileDialog.cs: Fix Jordi's build break
6718
6719 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6720
6721         * FileDialog.cs: 
6722                 - Use standard the Windows colours for the combobox as espected
6723                 - Dispose objects that use resouces when no longer need them
6724
6725 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6726
6727         * X11DesktopColors.cs: Initial incomplete implementation
6728         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6729
6730 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6731
6732         * Theme.cs: 
6733           - Switched Theme color names to match the names defined in 
6734             System.Drawing.KnownColors. Life's hard enough, no need to make 
6735             it harder.
6736           - Added setters to all theme color properties so themes can set
6737             their color schemes. The setters also propagate the color changes
6738             to System.Drawing.KnownColors via reflection
6739         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6740           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6741           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6742           use the new, more logical theme color names
6743         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6744           post-NT colors
6745         * ThemeWin32Classic.cs:
6746           - Removed code to set the old classic Windows colors. Instead it
6747             now relies on the colors returned by System.Drawing.KnownColors
6748             which will be either modern static colors (Unix) or colors
6749             read from the user's configuration (Win32)
6750           - Updated to use the new, more logical theme color names
6751           - Switched DataGrid drawing code to use only Theme colors instead of
6752             a mix of System.Drawing.KnownColors and Theme colors
6753           - DrawFrameControl(): Removed code that fills the button area, the
6754             fill would overwrite any previous fill done by a control. This
6755             fixes bug #75338 
6756           - Added DrawReversibleRectangle() stub
6757         * ScrollableControl.cs: Set visible state to false when scrollbars
6758           are removed (pdn fix)
6759         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6760           DrawReversibleRectangle() method to allow drawing primitive 
6761           'rubber bands'
6762         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6763
6764 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6765
6766         * ImageList.cs: Add(Icon): Create handle.
6767
6768 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6769
6770         * ListView.cs:
6771         * ThemeWin32Classic.cs:
6772                 - Fixes detail mode
6773                 - Sets clippings
6774                 - Issues with drawing
6775
6776 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6777
6778         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6779           source has to be the ImageList.
6780
6781 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6782
6783         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6784
6785 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6786
6787         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6788
6789 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6790
6791         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6792
6793 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6794         * GridItem.cs: Fixed TODOs
6795         * GridItemCollection.cs: Added ICollection interface
6796
6797 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6798
6799         * ImageList.cs: Resize icons when needed.
6800
6801 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6802
6803         * ListViewItem.cs
6804                 - Fixes GetBounds and returns on screen rects
6805         * ListView.cs:
6806                 - Fixes vertical and horzintal scrolling of items
6807         * ThemeWin32Classic.cs:
6808                 - Fixes drawing
6809                 
6810 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6811
6812         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6813
6814 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6815
6816         * ImageList.cs: Added comments about handle creation. Moved Handle,
6817           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6818           Handle is created in Add methods.
6819
6820 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6821          
6822         * DataGridDrawingLogic.cs: 
6823                 - Takes rows into account on Colum calculations
6824                 - Returns the column when clickig
6825         * DataGrid.cs:
6826                 - Fixes default HitTestInfo values
6827                 - Fixes HitTestInfo.ToString
6828                 - Fixes ResetBackColor          
6829         
6830 2005-09-28  Jackson Harper  <jackson@ximian.com>
6831
6832         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6833         sizing or cursor changes). Also added some temp code to draw the
6834         titlebars text (Makes dev a little easier).
6835
6836 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6837
6838         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6839
6840 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6841          
6842         * ListBox.cs: Fixes bug 76253
6843
6844 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6845
6846         * ImageList.cs: Added comments about the current implementation. Added
6847           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6848           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6849           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6850           with Bitmap.LockBits for better performance. Revised the whole file to
6851           match MS.NET behaviour and provide better performance. Non-public
6852           interface members are calling public members even when they throw
6853           NotSupportedException for better maintainability. Moved ColorDepth,
6854           ImageSize, ImageStream and TransparentColor implementations to
6855           ImageCollection for better performance as these properties are not used
6856           by ImageList.
6857         * ImageListStreamer.cs: Added a new internal constructor that takes an
6858           ImageList.ImageCollection and serializes Images based on
6859           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6860           match ImageList property name.
6861
6862 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6863
6864         * ListBox.cs: Fixes IndexFromPoint for last item
6865
6866 2005-09-27  Jackson Harper  <jackson@ximian.com>
6867
6868         * Form.cs: Set the position of new mdi children correctly.
6869
6870 2005-09-27  Jackson Harper  <jackson@ximian.com>
6871
6872         * MdiClient.cs: New mdi children need to be added to the back of
6873         the controls collection so the zorder is set correctly. Also add a
6874         count of all the child windows that have been created.
6875
6876 2005-09-27  Jackson Harper  <jackson@ximian.com>
6877
6878         * Form.cs (CreateParams): Setup MDI forms correctly.
6879
6880 2005-09-27  Jackson Harper  <jackson@ximian.com>
6881
6882         * MdiChildContext.cs:
6883         * MonthCalendar.cs:
6884         * UpDownBase.cs:
6885         * ListBox.cs:
6886         * ListView.cs:
6887         * TextBoxBase.cs:
6888         * TreeView.cs:
6889         * ScrollableControl.cs:
6890         * ComboBox.cs: Add implicit controls using the new implict control
6891         functionality in ControlCollection. Also try to block multiple
6892         control add in a suspend/resume layout to save some cycles.
6893         
6894 2005-09-27  Jackson Harper  <jackson@ximian.com>
6895
6896         * Control.cs: Add functionality to the controls collection to add
6897         'implicit controls' these are controls that are created by the
6898         containing control but should not be exposed to the user. Such as
6899         scrollbars in the treeview.
6900         * Form.cs: The list var of the ControlsCollection is no longer
6901         available because of the potential of implicit controls getting
6902         ignored by someone accessing the list directly.
6903
6904 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6905
6906         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6907           loose it's parent. (Fixed bug introduced in r49103 when we added
6908           setting the child parent to null on Remove)
6909
6910 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6911
6912         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6913         * Splitter.cs: Added missing attributes for BorderStyle property.
6914         * TextBoxBase.cs: Marked Calculate* methods internal.
6915         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6916         MS.NET.
6917
6918 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6919          
6920         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6921
6922 2005-09-25  Jackson Harper  <jackson@ximian.com>
6923
6924         * TreeView.cs: Update the node bounds correctly regardless of
6925         whether the node is visible.
6926
6927 2005-09-25  Jackson Harper  <jackson@ximian.com>
6928
6929         * ImageList.cs: Don't dispose the image after it is added to the
6930         image list. Only reformat images that need to be resized.
6931
6932 2005-09-25  Jackson Harper  <jackson@ximian.com>
6933
6934         * ImageList.cs: Don't set the format when changing the image.
6935
6936 2005-09-25  Jackson Harper  <jackson@ximian.com>
6937
6938         * TreeView.cs: We can't just assume the node has a font. Use the
6939         treeviews font if no node font is available.
6940
6941 2005-09-25  Jackson Harper  <jackson@ximian.com>
6942
6943         * TreeView.cs: Allow the scrollbars to be reset with negative
6944         values.
6945         - Don't add scrollbars to negative sized windows.
6946
6947 2005-09-23  Jackson Harper  <jackson@ximian.com>
6948
6949         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6950         old Mono.Posix. Also remove some stray code that shouldn't have
6951         been committed.
6952
6953 2005-09-23  Jackson Harper  <jackson@ximian.com>
6954
6955         * TreeView.cs: Attempt at proper sizing of the horizontal
6956         scrollbar. Also don't resize the scrollbars unless they are
6957         visible.
6958
6959 2005-09-23  Jackson Harper  <jackson@ximian.com>
6960
6961         * TreeView.cs: We don't need to expand the invalid area when the
6962         selection changes, as this is all drawn in the node's bounding
6963         box. The area needs to be expanded (previous typo was contracting
6964         it) when the focus rect moves.
6965
6966 2005-09-23  Jackson Harper  <jackson@ximian.com>
6967
6968         * TreeView.cs: Display the selection box under the correct
6969         circumstances. We were rendering white text with no selection box
6970         before.
6971
6972 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6973
6974         * TextControl.cs(Split): Now updates selection start/end if it points 
6975           into a line that's being split. Fixes a FIXME and bug #75258
6976
6977 2005-09-23  Jackson Harper  <jackson@ximian.com>
6978
6979         * Binding.cs:
6980         * ListControl.cs: Don't use the path when retrieving binding
6981         managers from the binding context. My bat sense tells me that the
6982         path is only used on insertion.
6983
6984 2005-09-22  Jackson Harper  <jackson@ximian.com>
6985
6986         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6987
6988 2005-09-22  Jackson Harper  <jackson@ximian.com>
6989
6990         * Splitter.cs: There are special cursors used for splitting.
6991         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6992
6993 2005-09-22  Jackson Harper  <jackson@ximian.com>
6994
6995         * Splitter.cs: Change the cursor appropriately when the splitter
6996         is moused over, so the user actually knows there is a splitter
6997         there.
6998
6999 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7000
7001        * Label.cs : Fix ToString method to give same output as MS.NET
7002
7003 2005-09-22  Jackson Harper  <jackson@ximian.com>
7004
7005         * TreeView.cs: Create the scrollbars when the handle is created
7006         and add them right away, just make them invisble. Also account for
7007         the window being shrunk vertically to the point that the vert
7008         scrollbar needs to be added.
7009         - Remove some 0.5 adjustments to get around anti aliasing issues.
7010         
7011 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7012          
7013         * MainMenu.cs: Fixes default value
7014         * MenuItem.cs: Fixes default value
7015
7016 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7017
7018         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7019
7020 2005-09-21  Jackson Harper  <jackson@ximian.com>
7021
7022         * Control.cs: Don't try to set the border style on the window if
7023         it hasn't been created. When the window is created the border
7024         style will be used.
7025
7026 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7027
7028         * Control.cs (Update): Don't call XplatUI if we don't have a
7029           window handle yet
7030
7031 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7032
7033         * ContainerControl.cs: Instead of throwing an exception, print
7034           a one-time warning about Validate not being implemented
7035         * XplatUIWin32.cs: Removed debug output
7036
7037 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7038
7039         * Control.cs: Only set XplatUI background if we expect the windowing
7040           system to handle the background. This stops controls that draw their
7041           own background from flickering
7042
7043         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7044           creation. This allows, amongst other things, using MWF X11 windows 
7045           with OpenGL.
7046
7047 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7048
7049         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7050           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7051           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7052           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7053           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7054           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7055           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7056           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7057           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7058           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7059           GridColumnStylesCollection.cs, 
7060           IDataGridColumnStyleEditingNotificationService.cs,
7061           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7062           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7063           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7064           TreeNodeCollection.cs, AmbientProperties.cs, 
7065           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7066           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7067           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7068           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7069           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7070           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7071           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7072           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7073           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7074           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7075           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7076           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7077           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7078           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7079           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7080           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7081           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7082           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7083           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7084           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7085           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7086           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7087           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7088           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7089           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7090           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7091           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7092           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7093           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7094           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7095           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7096           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7097           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7098           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7099           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7100           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7101           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7102
7103 2005-09-21  Jackson Harper  <jackson@ximian.com>
7104
7105         * TreeNode.cs: Call Before/After Expand not Collapse when
7106         expanding.
7107
7108 2005-09-20  Jackson Harper  <jackson@ximian.com>
7109         
7110         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7111
7112 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7113          
7114         * ListViewItem.cs:
7115                 - Fixes bug 76120
7116                 - Fixes proper storing of subitems
7117                 - Fixes not updated items
7118
7119 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7120
7121         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7122           things if our window handle isn't created yet. Also disabled 
7123           debug for TextBoxBase
7124
7125 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7126
7127         * MenuAPI.cs: Remove filtering of events to allow menu usage
7128
7129 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7130
7131         * Cursor.cs: Allow null to be passed to Cursor.Current.
7132
7133 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7134
7135         * ThemeWin32Classic.cs:
7136           - Change some private methods/fields to protected virtual so that 
7137             they can be accessed and overriden in derived classes
7138           - First refactoring of some methods. Derived themes now don't 
7139             need to duplicate the complete code from ThemeWin32Classic
7140         * ThemeNice.cs:
7141           - Added nice StatusBar
7142           - Derive from ThemeWin32Classic and not Theme
7143           - Removed duplicate ThemeWin32Classic code
7144
7145 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7146
7147         * Control.cs (ControlCollection.Add): If the value null is passed
7148         the control is ignored. 
7149
7150         Optimize this loop.
7151
7152 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7153
7154         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7155           PostQuitMessage state.
7156         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7157
7158 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7159
7160         * Application.cs: Our constructor will never get called, move 
7161           initialization to fields; fixes bug #75933
7162
7163 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7164
7165         * FileDialog.cs :
7166                 - Allow files to be selected properly using file name
7167                 combo box.
7168                 - Add ability to change diretory (absolute / relative)
7169                 using file name combo box.
7170
7171 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7172          
7173         * ListBox.cs: 
7174                 - Fixes Multicolumn listboxes item wrong calculations
7175                 - Allows to click when only one item is in the listbox
7176                 - Fixes crash when no items using keyboard navigation
7177
7178 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7179
7180         * ComboBox.cs: Reverted almost everything from the latest patch which
7181           broke ComboBox
7182
7183 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7184         
7185         * ToolTip.cs:
7186                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7187         * ComboBox.cs:
7188                 - When DropDownStyle is Simple, it does not show scrollbar 
7189                 to the last item of the list.
7190                 - When DropDownStyle is Simple, it crashed when the list was 
7191                 scrolled down with the down cursor key.
7192                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7193                 selected item was not shown.
7194                 - The position of the selected item was not preserved when 
7195                 the next dropdown happened.
7196         * ThemeWin32Classic.cs:
7197                 - Items were wrapped at the right end.
7198         * CheckedListBox.cs:
7199                 - Fixed Add method
7200         * ListBox.cs:
7201                 - Items should be fully shown.
7202                 - When resizing and vertical scrollbar disappeared, the item 
7203                 of index 0 should be on the top of the list.
7204                 - GetItemRectangle should consider the size of ver. scrollbar
7205         * StatusBar.cs:
7206                 - SizingGrip area should not be allocated when it is not 
7207                 displayed.
7208                 - Now it reflects MinWidth of the containing panel and 
7209                 fixed a crash that happens when its width becomes so small.
7210
7211 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7212
7213         * CheckedListBox.cs: Fixes bug 76028
7214         * ListBox.cs: Fixes bug 76028
7215
7216 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7217
7218         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7219         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7220
7221 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7222
7223         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7224
7225 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7226
7227         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7228
7229 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7230
7231         * IRootGridEntry.cs: Added
7232         * PropertyGridCommands.cs: Added
7233         * PropertiesTab.cs: Added missing methods and property
7234         * PropertyGridView.cs: Made class internal
7235         * PropertyGridTextBox.cs: Made class internal
7236
7237 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7238
7239         * MimeIcon.cs: Try to check some other environment variables
7240           if "DESKTOP_SESSION" returns "default"
7241
7242 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7243
7244         * ThemeNice.cs: Corrected background colors (e.g. menus)
7245         * ColorDialog.cs: Use correct background colors for controls
7246
7247 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7248
7249         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7250
7251 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7252
7253         * RichTextBox.cs: Added initial implementation
7254         * lang.cs: Removed. Was accidentally checked in long time ago
7255         * TODO: Removed. Contents were obsolete
7256
7257 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7258                                                                                 
7259         * PropertiesTab.cs : Added
7260
7261 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7262                                                                                 
7263         * PropertyGrid.cs : Update
7264         * PropertyGridView.cs : Update
7265         * System.Windows.Forms.resx : Added images and strings
7266
7267 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7268
7269         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7270  
7271 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7272
7273         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7274           a busy loop right after the Ungrab the X11 display is otherwise 
7275           blocked
7276
7277 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7278
7279         * ThemeWin32Classic.cs: Optimise the use of clipping
7280
7281 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7282
7283         * DataGrid.cs: fixes recursion bug
7284
7285 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7286
7287         * ThemeNice.cs: 
7288           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7289           - Cleanup
7290
7291 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7292
7293         * ThemeNice.cs: Draw nice ProgressBars
7294
7295 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7296
7297         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7298
7299         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7300         bug finder.
7301
7302 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7303
7304         * ThemeNice.cs:
7305           - Added nicer menu drawing
7306           - Updated DrawTab
7307           - some refactoring
7308
7309 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7310
7311         * CreateParams.cs (ToString): Made output match MS
7312         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7313             handle is already created (to avoid forcing window creation)
7314         * XplatUIX11.cs: Set window text to caption after creating window,
7315           in case Text was set before window was created
7316         * Form.cs: Use this.Text instead of a static string as caption
7317
7318 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7319
7320         * NotifyIcon.cs: Don't set the window to visible; this screws
7321           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7322           OnPaint without a bitmap)
7323         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7324           happen very often anyway; we could add the check to the WM_PAINT 
7325           event generation code
7326
7327 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7328
7329         * NotifyIcon.cs: Fill the icon area with a background color, to 
7330           avoid 'residue' when transparent icons are drawn
7331         * XplatUIX11.cs:
7332           - Handle whole_window == client_window when destroying windows
7333           - SystrayAdd(): Set client_window to whole_window value to
7334             get mouse and other events passed to NotifyIcon
7335
7336 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7337
7338         * Form.cs: Set proper default for Opacity property
7339         * NotifyIcon.cs:
7340           - ShowSystray(): Don't bother creating telling the OS
7341             about the systray item if no icon is provided
7342           - Now handles WM_NCPAINT message to deal with whole/client window
7343             split
7344           - Create window as visible to not get caught by Expose optimization
7345         * Hwnd.cs: Removed debug message
7346         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7347           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7348             PaintEventStart/End to use new client argument
7349         * TextBoxBase.cs:
7350           - Commented out debug messages
7351           - Switched PaintEventStart/End to use new client argument
7352         * XplatUI.cs: Added client window bool to PaintEventStart()/
7353           PaintEventEnd() calls, to support drawing in non-client areas
7354         * XplatUIDriver.cs: 
7355           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7356             calls, to support drawing in non-client areas
7357           - Added conditional compile to allow using MWF BeginInvoke 
7358             on MS runtime
7359         * XplatUIX11.cs:
7360           - Added some conditional debug output
7361           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7362             whole/client window split
7363           - Implemented handling of client argument to PaintEventStart()/End()
7364         * Control.cs:
7365           - Throw exception if BeginInvoke() is called and the window handle
7366             or one of the window's parent handles is not created
7367           - Added conditional compile to allow using MWF BeginInvoke on
7368             MS runtime
7369           - get_Parent(): Only sets parent if handle is created. This avoids
7370             forcing window handle creation when parent is set.
7371           - Now fires Layout and Parent changed events in proper order
7372           - Switched to use Handle instead of window.Handle for Z-Order setting,
7373             the get_Parent() patch above causes us to possibly get null for 'window'
7374           - Implemented handling of client argument to PaintEventStart()/End()
7375           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7376             default handling)
7377           - Now sends a Refresh() to all child windows when Refresh() is called
7378
7379 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7380
7381         * Form.cs: Added (non-functional) Opacity property
7382         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7383
7384 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7385         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7386           use export MONO_THEME=nice to activate it.
7387           Currently supported controls:
7388           - Button
7389           - ComboBox
7390           - ScrollBar
7391           - TabControl (TabAlignment.Top only, other will follow)
7392         * ThemeEngine.cs: Add theme nice
7393         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7394           if enabled
7395
7396 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7397
7398         * Splitter.cs: Resize docked control and its neighbor.
7399
7400 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7401         -- Making Windows with Menus layout correctly --
7402         * Form.cs : The first leg of the fix
7403                 Menu setter - adjust Client Size as needed to make space for the menu
7404                 SetClientSizeCore - doesn't call base version to be able to pass the 
7405                         menu handle to XplatUI.CalculateWindowRect
7406         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7407         * XplatUIX11.cs: The critical second leg of the fix
7408                 GetWindowPos needs to use a recalculated client_rect
7409                 so that resizing the window doesn't break layout of child controls. 
7410                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7411                 Lots of \t\n killed
7412
7413 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7414
7415         * Label.cs: Now properly recalculates width and height on Font and Text
7416           changes if AutoSize is set
7417
7418 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7419         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7420
7421 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7422
7423         * ImageList.cs: Makes ToString method compatible with MS
7424
7425 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7426
7427         * MenuAPI.cs: fixes bug 75716
7428
7429 2005-08-11 Umadevi S <sumadevi@novell.com>
7430         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7431
7432 2005-08-11 Umadevi S <sumadevi@novell.com>
7433         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7434
7435 2005-08-10  Umadevi S <sumadevi@novell.com>
7436         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7437
7438 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7439
7440         * Menu.cs: fixes bug 75700
7441         * MenuAPI.cs: fixes navigation issues
7442
7443 2005-08-09  Umadevi S <sumadevi@novell.com>
7444         * CheckedListBox.cs - simple fix for GetItemChecked.
7445
7446 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7447
7448         * ComboBox.cs: Serveral fixes
7449         * ListBox.cs: Serveral fixes
7450
7451 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7452
7453         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7454         * ListBox.cs: Fixes FindString methods
7455
7456 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7457
7458         * DataGrid.cs: fixes bugs exposed by new tests
7459
7460 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7461
7462         * Mime.cs: Compile Mono assembly references only if compiling
7463           with Mono (Allows to build with VS.Net again)
7464
7465 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7466
7467         * Control.cs (PaintControlBackground): Draw background image
7468         corrrectly.
7469         (CheckForIllegalCrossThreadCalls): Stubbed.
7470         
7471         * Form.cs (OnCreateControl): Center when should be centered.
7472         
7473         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7474
7475 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7476
7477         * Binding.cs: Binding to properties should be case unsensitive
7478
7479 2005-07-18 vlindos@nucleusys.com
7480
7481         * DataGrid.cs: fixes setmember order
7482
7483 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7484
7485         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7486         * FileDialog.cs: FileDialog is now resizable and uses the new
7487           MimeIconEngine
7488
7489 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7490
7491         * DataGridTextBoxColumn.cs: default value
7492         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7493         * GridTableStylesCollection.cs: fixes checking MappingName
7494         * DataGridDrawingLogic.cs: fixes drawing logic issues
7495         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7496         * DataGrid.cs: fixes    
7497
7498 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7499
7500         * MimeGenerated.cs: Use case sensitive comparer for
7501           NameValueCollections
7502
7503 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7504
7505         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7506         * ThemeWin32Classic.cs: bug fixes, code refactoring
7507         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7508         * DataGrid.cs: bug fixes, code refactoring
7509         * DataGridTextBox.cs: bug fixes, code refactoring
7510         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7511         * Theme.cs:  bug fixes, code refactoring
7512
7513 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7514
7515         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7516           and other text box usage
7517
7518 2005-07-01  Jackson Harper  <jackson@ximian.com>
7519
7520         * TabControl.cs: Make sure the bottom of the tab covers the pages
7521         border.
7522
7523 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7524
7525         * Form.cs (ShowDialog): Assign owner of the dialog
7526         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7527           might have been moved to a tag with different height
7528
7529 2005-06-30  Jackson Harper  <jackson@ximian.com>
7530
7531         * Form.cs: Don't create an infinite loop when setting focus
7532         * MenuItem.cs: Don't dirty the parents if we don't have any
7533
7534 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7535
7536         * LibSupport.cs: Rename
7537
7538 2005-06-29  Peter Bartok  <pbartok@novell.com>
7539
7540         * TextBoxBase.cs: Re-align caret after deleting a character
7541         * TextControl.cs:
7542           - DeleteChars(): Ensure that tag covers the provided position
7543           - StreamLine(): Drop reference for dropped tag
7544
7545 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7546
7547         * TextControl.cs: 
7548           - Selections now work properly, anchoring at the initial location
7549             and properly extending in either direction (SetSelectionToCaret(),
7550             SetSelectionStart() and SetSelectionEnd())
7551           - No longer redraws the whole control on selection change, now
7552             calculates delta between previous and new selection and only
7553             invalidates/redraws that area
7554           - Fixed FindPos() math off-by-one errors
7555           - Changed DeleteChars() to verify the provided tag covers the
7556             provided position, selections may have a tag that doesn't cover
7557             the position if the selection is at a tag border
7558           - Fixed off-by-one errors in DeleteChars()
7559           - Added missing streamlining check in DeleteChars() to remove
7560             zero-length tags
7561           - Implemented Invalidate() method, now properly calculates exposures
7562             between two given lines/positions
7563           - Implemented SetSelection()
7564           - Obsoleted and removed FixupSelection()
7565           - Improved RecalculateDocument() logic, removing code duplication
7566
7567 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7568
7569         * LibSupport.cs: changes to match different input/output arguments.
7570
7571 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7572
7573         * LibSupport.cs: added libsupport.so init routine.
7574
7575 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7576         
7577         * ControlBindingsCollection.cs
7578                 - Throws an exception on null datasource when adding
7579                 - Checks for duplicated bindings when adding
7580
7581 2005-06-28  Jackson Harper  <jackson@ximian.com>
7582
7583         * TreeView.cs (OnKeyDown): Support left and right properly
7584         (navigates as well as expanding and collapsing.
7585         - Add support for Multiply, this expands all the selected nodes
7586         children.
7587         - Fix some tabbing.
7588
7589 2005-06-28  Jackson Harper  <jackson@ximian.com>
7590
7591         * TreeView.cs: Implement keyboard navigation, currently supports,
7592         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7593         support for toggling checkboxes with the space bar.
7594
7595 2005-06-28  Jackson Harper  <jackson@ximian.com>
7596
7597         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7598         tree.
7599
7600 2005-06-28  Jackson Harper  <jackson@ximian.com>
7601
7602         * TreeView.cs: Add missing event.
7603
7604 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7605
7606         * TextControl.cs:
7607           - Made line ending size configurable (now allows for counting 
7608             lineendings as \n or \r\n)
7609           - Added margin to viewport to keep caret visible on right side
7610           - Fixed translation routines for line/pos to documentpos to consider
7611             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7612           - Fixed some line-endings to be unix style
7613           - Fixed Document.FormatText to perform it's calculations 1-based
7614           - Added descriptions for a few methods that might otherwise get 
7615             used wrong
7616           - Added NOTE section with some basic conventions to remember at 
7617             the top of the file
7618           - Major fixup for RichTextBox selection drawing:
7619             * Fixed crashes when multiple tags on a single line were selected
7620             * fixed selection box drawing not overlaying text
7621             * fixed bogus offset calculation for tags not starting at index 1
7622             * Switched behaviour from using multiple Substrings of a 
7623               StringBuilder.ToString() to using multiple 
7624               StringBuilder.ToString(start, length) statements, hoping this is
7625               faster (kept original version commented out in the code, in case
7626               original version was faster)
7627         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7628           alignment != Left
7629         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7630           call it as well
7631
7632 2005-06-27  Jackson Harper  <jackson@ximian.com>
7633
7634         * TabControl.cs: Move to the left and right with the arrow
7635         keys. These keys don't cycle beyond first and last like
7636         tab. Refresh all the tabs when scrolling them to the left or
7637         right.
7638
7639 2005-06-27  Jackson Harper  <jackson@ximian.com>
7640
7641         * TabControl.cs:
7642           - ToString: Added method
7643           - CreateParams: Remove TODO and comment
7644           - OnKeyDown: Cycle through bounds properly.
7645           - SelectedIndex: Scroll to the right or left if we need to
7646           display the newly selected tab.
7647
7648 2005-06-23  Jackson Harper  <jackson@ximian.com>
7649
7650         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7651         set.
7652
7653 2005-06-23  Jackson Harper  <jackson@ximian.com>
7654
7655         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7656         CTRL-SHIFT-TAB, and HOME, END are there any others?
7657
7658 2005-06-23  Jackson Harper  <jackson@ximian.com>
7659
7660         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7661
7662 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7663         
7664         * DataGridTextBoxColumn.cs: fixes and enhancements
7665         * ThemeWin32Classic.cs: fixes and enhancements
7666         * DataGridBoolColumn.cs:  fixes and enhancements
7667         * DataGridDrawingLogic.cs:  fixes and enhancements
7668         * CurrencyManager.cs: fixes and enhancements
7669         * DataGrid.cs: fixes and enhancements
7670         * DataGridColumnStyle.cs:  fixes and enhancements
7671
7672 2005-06-22  Jackson Harper  <jackson@ximian.com>
7673
7674         * TabControl.cs: Add some missing methods that just call into the
7675         base. Make the TabPageCollection's IList interface behave in the
7676         same manner as the MS implementation.
7677
7678 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7679
7680         * TextControl.cs: Added sanity check
7681         * TextBoxBase.cs: 
7682           - Fixed wrapping behaviour, don't set wrap on single line controls
7683             (this fixes the breakage of colordialog introduced in an earlier
7684              checkin)
7685           - Added rudimentary support for autoscrolling right-aligned controls
7686             (still needs fixing, also, center alignment scroll is missing)
7687
7688 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7689         
7690         * ScrollBar.cs: Fixes thumbpos on Maximum values
7691
7692 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7693         
7694         * PropertyGridView.cs: Pass context information to UITypeEditors 
7695
7696 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7697
7698         * TextBoxBase.cs:
7699           - Now calling PositionCaret with absolute space coordinates
7700           - Enabled vertical scrolling
7701           - Better tracking of scrollbar changes, tied into WidthChange
7702             event
7703           - Improved cursor tracking
7704           - Removed debug output
7705         * TextControl.cs:
7706           - PositionCaret coordinates are now works in absolute space, not 
7707             the canvas
7708           - Improved tracking of document size
7709           - Added events for width and height changes
7710
7711 2005-06-21  Peter Bartok  <pbartok@novell.com>
7712
7713         * Form.cs: Set focus to active control when form is activated
7714         * TextControl.cs: 
7715           - Added word-wrap functionality to RecalculateLine() 
7716           - Added some short function descriptions for VS.Net to aid in
7717             writing dependent controls
7718           - Added Caret property, returning the current coords of the caret
7719           - Added ViewPortWidth and ViewPortHeight properties
7720           - Added Wrap property
7721           - Added CaretMoved event
7722           - Removed some old debug code
7723           - Split() can now create soft splits
7724           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7725           - Added method to format existing text
7726           - Fixed size/alignment calculations to use viewport
7727           - RecalculateDocument now can handle changing line-numbers while
7728             calculating lines
7729
7730         * TextBox.cs:
7731           - Added some wrap logic, we don't wrap if alignment is not left
7732           - Added casts for scrollbar var, base class switched types to
7733             also support RichTextBoxA
7734           - Implemented handling of scrollbar visibility flags
7735
7736         * TextBoxBase.cs:
7737           - Switched scrollbars type to RichTextBoxScrollBars to support
7738             RichTextBox
7739           - Added tracking of canvas width/height
7740           - Switched scrollbars to be not selectable (to keep focus on text)
7741           - Added central CalculateDocument() method to handle all redraw
7742             requirements
7743           - Added ReadOnly support
7744           - Added WordWrap support
7745           - Fixed handling of Enter key (we now treat it as a DialogKey)
7746           - Fixed caret positioning when h or v scroll is not zero
7747           - Fixed placing/generation of vertical scrollbar
7748           - Added CalculateScrollBars() method to allow updating scrollbar
7749             limits and visibility
7750           - Fixed handling of horizontal scroll
7751           - Added handling of vertical scroll
7752           - Implemented auto-'jump' when caret moves to close to a left or
7753             right border and there is text to be scrolled into view (currently
7754             there's the potential for a stack overflow, until a bug in
7755             scrollbar is fixed)
7756
7757 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7758         
7759         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7760
7761 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7762
7763         * Mime.cs:
7764         - added inodes.
7765         - return application/x-zerosize for files with size zero
7766           (if no extension pattern matches).
7767         - check matches collection for strings too.
7768         - return only the first mime type if the name value
7769           collection has more than one mime type.
7770
7771 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7772         
7773         * PropertyGrid.cs: Cleaned up some TODOs
7774         * PropertyGridView.cs: Added support for UITypeEditors
7775
7776 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7777         
7778         * DataGrid.cs: clears cached value
7779
7780 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7781
7782         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7783         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7784         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7785         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7786         
7787 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7788
7789         * ThemeWin32Classic.cs: fixes colour
7790
7791 2005-06-15  Peter Bartok  <pbartok@novell.com>
7792
7793         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7794         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7795         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7796         * Control.cs: Added some MWFCategory and MWFDescription attributes
7797         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7798
7799 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7800
7801         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7802         usage
7803
7804 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7805
7806         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7807         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7808         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7809         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7810         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7811         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7812
7813 2005-06-13  Jackson Harper  <jackson@ximian.com>
7814
7815         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7816         isn't printed when the user enables dropping. (X11 does accept
7817         drops).
7818         
7819 2005-06-13  Jackson Harper  <jackson@ximian.com>
7820
7821         * TreeView.cs: Remove some TODOS.
7822
7823 2005-06-13  Jackson Harper  <jackson@ximian.com>
7824
7825         * Form.cs: Hook into the mdi framework.
7826         * MdiClient.cs: Use the base control collections add method so
7827         parents get setup correctly. Set the default back colour and dock
7828         style.
7829         * MdiChildContext.cs: New class, this bad actor handles an
7830         instance of an MDI window. Right now there is only basic
7831         support. You can drag, close, and resize windows. Minimize and
7832         Maximize are partially implemented.
7833
7834 2005-06-13  Jackson Harper  <jackson@ximian.com>
7835
7836         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7837         freaky when both vals are negative. NOTE: There are probably other
7838         places in XplatUIX11 that this needs to be done.
7839
7840 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7841
7842         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7843         * DataGridColumnStyle.cs: fixes signature
7844
7845 2005-06-12  Jackson Harper  <jackson@ximian.com>
7846
7847         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7848         windows.
7849
7850 2005-06-11  Jackson Harper  <jackson@ximian.com>
7851
7852         * StatusBarPanel.cs: Signature cleanups. Implement
7853         BeginInit/EndInit.
7854
7855 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7856
7857         * DataGridTextBoxColumn.cs: Honors aligment
7858         * GridColumnStylesCollection.cs: Contains is case unsensitive
7859         * GridTableStylesCollection.cs: several fixes
7860         * DataGridTableStyle.cs: default column creation
7861         * DataGridDrawingLogic.cs: fixes
7862         * CurrencyManager.cs: ListName property
7863         * DataGrid.cs: multiple styles support
7864         * DataGridColumnStyle.cs: fixes
7865         
7866
7867 2005-06-10  Peter Bartok  <pbartok@novell.com>
7868
7869         * Control.cs(Select): Moved SetFocus call to avoid potential
7870           loops if controls change the active control when getting focus
7871         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7872           the up/down buttons
7873
7874 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7875
7876         * ImageListConverter.cs: Implemented
7877
7878 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7879
7880         * MonthCalendar.cs: Wired in NumericUpDown control for year
7881
7882 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7883
7884         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7885           DoubleClick events, since they are not meant to be fired.
7886
7887 2005-06-09  Peter Bartok  <pbartok@novell.com>
7888
7889         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7890           Jonathan's standalone controls into MWF, implemented missing
7891           events, attributes and methods; added xxxAccessible classes
7892         * AccessibleObject.cs: Made fields internal so other classes
7893           can change them if needed
7894
7895 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7896
7897         * UpDownBase.cs: Complete implementation
7898         * NumericUpDown.cs: Complete implementation
7899         * DomainUpDown.cs: Complete implementation
7900
7901 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7902
7903         * DataGridTextBoxColumn.cs: drawing fixes
7904         * DataGridCell.cs: fixes ToString method to match MSNet
7905         * DataGridTableStyle.cs: fixes
7906         * DataGridBoolColumn.cs: fixes, drawing
7907         * DataGridDrawingLogic.cs: fixes, new methods
7908         * DataGridTextBox.cs: Keyboard and fixes
7909         * DataGrid.cs:
7910                 - Keyboard navigation
7911                 - Scrolling fixes
7912                 - Row selection (single, multiple, deletion, etc)
7913                 - Lots of fixes
7914         
7915 2005-06-07  Jackson Harper  <jackson@ximian.com>
7916
7917         * ThemeWin32Classic.cs: Clear the background area when drawing
7918         buttons.
7919
7920 2005-06-06  Peter Bartok  <pbartok@novell.com>
7921
7922         * ImageListStreamer.cs: Fixed signature for GetData
7923         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7924         * ComboBox.cs:
7925           - Added missing ChildAccessibleObject class
7926           - Added missing OnXXXFocus overrides, switched to using those
7927             instead of the event handler
7928         * Control.cs:
7929           - Added Parent property for ControlAccessibleObject
7930           - Fixed signatures
7931           - Fixed attributes
7932           - Added ResetBindings()
7933         * ListBindingConverter.cs: Implemented some methods
7934         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7935         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7936         * ContainerControl.cs: Fixed signature, now subscribing to the
7937           ControlRemoved event instead of overriding the handler, LAMESPEC
7938         * CurrencyManager.cs: Added missing attribute
7939         * MonthCalendar.cs: Added missing properties
7940
7941 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7942
7943         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7944         
7945 2005-06-06  Gaurav Vaish and Ankit Jain
7946
7947         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7948         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7949         
7950 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7951
7952         * Control.cs: fixes CreateParams Width / Height.
7953
7954 2005-06-05  Peter Bartok  <pbartok@novell.com>
7955
7956         * Win32DnD.cs: Removed compilation warnings
7957
7958 2005-06-05  Peter Bartok  <pbartok@novell.com>
7959
7960         * Control.cs (CreateParams): Since we don't know if one of the
7961           properties we use is overridden, lets make sure if we fail accessing
7962           we continue with a backup plan
7963
7964 2005-06-05  Peter Bartok  <pbartok@novell.com>
7965
7966         * Win32DnD.cs:
7967           - Removed debug output
7968           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7969             struct
7970           - Plugged resource leak
7971         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7972           MS size
7973
7974 2005-06-05  Peter Bartok  <pbartok@novell.com>
7975
7976         * XplatUIWin32.cs: Removed DnD code
7977         * Win32DnD.cs: Implemented drop source and drop target functionality
7978
7979 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7980
7981         * UpDownBase.cs: remove duplicate addition of event, enable some code
7982         that was commented out.
7983         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7984         Validate input when a key is pressed. It works fine now for every
7985         combination of Hexadecimal. Only missing some drawing love when sharing
7986         space with other controls.
7987
7988 2005-06-04  Peter Bartok  <pbartok@novell.com>
7989
7990         * Control.cs:
7991           - We need to pass a window for DragDrop, so enable callback events
7992           - Added DnD callback events when being a DragSource
7993         * XplatUI.cs (StartDrag): Added window handle argument
7994         * XplatUIDriver.cs (StartDrag): Added window handle argument
7995         * QueryContinueDragEventArgs: Made fields internally accessible so
7996           drivers can set them
7997         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7998           can set them
7999
8000 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8001
8002         * DataGridTextBoxColumn.cs: column text editing
8003         * DataGridTableStyle.cs: Respect columns styles created by the user
8004         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8005         * DataGridBoolColumn.cs: bool column editing
8006         * DataGrid.cs: fixes to scrolling, properties, etc
8007         * DataGridTextBox.cs: handle keyboard
8008         * DataGridColumnStyle.cs: fixes
8009
8010 2005-06-02  Jackson Harper  <jackson@ximian.com>
8011
8012         * ImageListStreamer.cs: Somewhat broken implementation of
8013         GetObjectData. The RLE needs some work to match MS properly.
8014
8015 2005-06-02  Jackson Harper  <jackson@ximian.com>
8016
8017         * X11Dnd.cs: Attempting to keep at least one file in MWF
8018         monostyled.
8019
8020 2005-06-02  Peter Bartok  <pbartok@novell.com>
8021
8022         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8023           that way
8024
8025 2005-06-02  Peter Bartok  <pbartok@novell.com>
8026
8027         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8028         * XplatUI.cs: Added DoDragDrop() method
8029         * XplatUIDriver.cs: Added DoDragDrop() method
8030
8031 2005-06-02  Jackson Harper  <jackson@ximian.com>
8032
8033         * Splitter.cs: Implement BorderStyle.
8034
8035 2005-06-02  Jackson Harper  <jackson@ximian.com>
8036
8037         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8038         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8039         X11 using XDND.
8040
8041 2005-06-02  Peter Bartok  <pbartok@novell.com>
8042
8043         * DataObject.cs:
8044           - Added Data setter
8045           - Fixed broken insertion code for SetData, now also
8046             overwrites any existing entry of the same format name
8047         * Hwnd.cs: Added list of pointers that automatically gets
8048           freed when the window is disposed
8049         * XplatUI.cs: Call driver initialization method when loading
8050           a driver
8051         * Control.cs:
8052           - OnDragLeave takes EventArgs, not DragEventArgs
8053           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8054             supported
8055           - Forces style update when drop state changes
8056         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8057           not perfect since we cannot (yet) call the IDataObject.GetData()
8058           method, we keep getting 0x80004005 error, dunno why)
8059
8060 2005-06-02  Peter Bartok  <pbartok@novell.com>
8061
8062         * DragEventArgs.cs: Make fields internal so we can cache the
8063           object and re-set the fields from XplatUI
8064
8065 2005-06-02  Jackson Harper  <jackson@ximian.com>
8066
8067         * Control.cs: Add some internal methods so the DnD subsystem can
8068         raise DnD events. Also call into the driver when AllowDrop is set.
8069         * XplatUI.cs:
8070         * XplatUIDriver.cs: New method for setting whether or not a window
8071         is allowed to accept drag and drop messages.
8072                 
8073 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8074         
8075         * ScrollBar.cs: Make sure that values sent in Scroll events
8076         are always between Maximum and Minimum.
8077
8078 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8079
8080         * Menu.cs: Call MenuChanged when menuitem visibility has been
8081         changed.
8082         * MenuItem.cs: Rebuild menu when item is (not) visible.
8083         * MainMenu.cs: MainMenu has special MenuChanged.
8084         * Theme.cs: Caption and FrameBorderSize are not fixed.
8085         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8086         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8087         * XplatUIX11.cs,
8088         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8089         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8090
8091 2005-05-30  Jackson Harper  <jackson@ximian.com>
8092
8093         * DataFormat.cs: We can't statically initialize this stuff because
8094         it calls into the xplatui and could create a loop. So we lazy init
8095         it.
8096
8097 2005-05-28  Jackson Harper  <jackson@ximian.com>
8098
8099         * Control.cs: Proper implementation of Product(Name/Version).
8100
8101 2005-05-27  Jackson Harper  <jackson@ximian.com>
8102
8103         * DataObject.cs: Dont crash if no data is found.
8104
8105 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8106         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8107                 as per status page, guessing it should be set to true
8108
8109 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8110
8111         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8112         * DataGridTableStyle.cs: set proper formatting text, def header text
8113         * ThemeWin32Classic.cs: new themable paramaters
8114         * DataGridBoolColumn.cs: paint check box, get data, fixes
8115         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8116         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8117         * DataGridColumnStyle.cs: fixes
8118         * Theme.cs: new themable paramaters
8119                 
8120 2005-05-26  Peter Bartok  <pbartok@novell.com>
8121
8122         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8123
8124 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8125         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8126
8127 2005-05-24  Peter Bartok  <pbartok@novell.com>
8128
8129         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8130           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8131           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8132           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8133           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8134           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8135           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8136           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8137           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8138           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8139           missing attributes, etc
8140         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8141
8142 2005-05-24  Peter Bartok  <pbartok@novell.com>
8143
8144         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8145           when user tries to get help
8146         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8147           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8148           to suppress warnings
8149         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8150           avoid unreachable code warning
8151
8152 2005-05-20  Peter Bartok  <pbartok@novell.com>
8153
8154         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8155
8156 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8157
8158         * DataGridTextBoxColumn.cs: Basic painting methods
8159         * DataGridTableStyle.cs: Set table style in the column
8160         * ThemeWin32Classic.cs: Use Theme for colors
8161         * DataGridDrawingLogic.cs: Implement more drawing
8162         * DataGrid.cs: drawing, theming, enhacements, fixes
8163         * DataGridColumnStyle.cs: fixes, drawing
8164         * Theme.cs: theming for Datagrid
8165
8166 2005-05-20  Peter Bartok  <pbartok@novell.com>
8167
8168         * Cursor.cs: Implemented GetObjectData() method
8169
8170 2005-05-20  Peter Bartok  <pbartok@novell.com>
8171
8172         * Cursors.cs: Added setting of cursor name
8173         * Cursor.cs:
8174           - Implemented constructors
8175           - Implemented Draw and DrawStretched
8176           - Implemented Current property
8177           - Implemented == and != operators
8178           - Implemented Dispose()
8179           - Implemented ToString
8180           - Added missing attributes
8181         * XplatUIX11.cs:
8182           - Added missing reset for OverrideCursor when DoEvents is called
8183           - Fixed creation of cursor, logic was wrong
8184         * XplatUIWin32.cs:
8185           - Added missing reset for OverrideCursor when DoEvents is called
8186           - Fixed creation of cursor, bit arrays were swapped
8187         * Clipboard.cs: Removed obsolete MonoTODO attribute
8188
8189 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8190
8191         * ComboBox.cs: fixes OnSelectedItemChanged
8192         * ControlBindingsCollection.cs: fixes item range check
8193
8194 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8195
8196         * UpDownBase.cs:
8197                 - Calc preferred height properly
8198                 - Implement missing properties
8199                 
8200         * NumericUpDown.cs: Implement missing events
8201
8202 2005-05-19  Jackson Harper  <jackson@ximian.com>
8203
8204         * TabControl.cs: New method that resizes the tab pages before
8205         redrawing them. This as needed as the control is double buffered
8206         and sizing will not be recalculated unless ResizeTabPages is
8207         called.
8208         * TabPage.cs: Set base.Text instead of Text in the constructor so
8209         that UpdateOwner does not get called. Use the new Redraw method of
8210         TabControl instead of Refresh so the sizing is recalculated.
8211         * ThemeWin32Classic.cs: Draw the text for button tabs.
8212
8213 2005-05-19  Jackson Harper  <jackson@ximian.com>
8214
8215         * Control.cs: Paint control background images. Fix typo where
8216         PaintControlBackground was not getting called correctly.
8217
8218 2005-05-19  Peter Bartok  <pbartok@novell.com>
8219
8220         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8221           I can investigate, apparently I broke FileDialog
8222
8223 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8224
8225         * AxHost.cs: Some simple properties.
8226         * Control.cs: window must be accessible after ctor.
8227         * Form.cs: Added TransparencyKey property.
8228         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8229         * XplatUIWin32.cs: SetBorderStyle implemented.
8230
8231 2005-05-18  Peter Bartok  <pbartok@novell.com>
8232
8233         * DataObject.cs: Entries are not global but particular to the
8234           DataObject, now it behaves that way
8235         * XplatUIWin32.cs: Implemented Clipboard methods
8236         * Clipboard.cs: Implemented
8237         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8238         * XplatUIOSX.cs: Updated to final clipboard prototypes
8239         * XplatUIX11.cs: Implemented Clipboard methods
8240         * XplatUIDriver.cs: Updated to final clipboard prototypes
8241         * XplatUIStructs.cs:
8242           - Added BITMAPINFOHEADER struct
8243           - Added ClipboardFormats enum
8244         * X11Structs.cs:
8245           - Added ClipboardStruct
8246           - Added Atom enum items for clipboard types
8247           - Fixed atom types for Selection event structures
8248         * DataFormats.cs:
8249           - Added internal properties and methods for drivers to enumerate
8250             all known formats
8251           - Switched initialization method to allow drivers to assign their
8252             own IDs even for the MS predefined clipboard IDs
8253         * XplatUI.cs: Updated to final clipboard interface
8254
8255 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8256         * PropertyGridView.cs: Fixed compiler warnings.
8257
8258 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8259         * PropertyGrid.cs: Added some event calls
8260         * PropertyGridView.cs: Change drawing code to use double buffering
8261         * PropertyGridTextBox.cs: Changed Text property name
8262         * GridItem.cs: Added Bounds property.
8263         * GridEntry.cs: Added Bounds property.
8264
8265 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8266
8267         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8268         since GetType() may not return the correct type if the object is
8269         a remoting proxy.
8270
8271 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8272
8273         * TreeNodeCollection.cs: fixes get/set item ranges
8274         
8275 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8276
8277         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8278                 
8279 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8280
8281         * ComboBox.cs: Fix item range comparation
8282         * ListView.cs: Fix item range comparation
8283
8284 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8285
8286         * FontDialog.cs:
8287           - Clear example panel when OnPaint is called
8288           - Better solution for displaying the example panel text
8289           - Select default indexes in the ListBoxes
8290
8291 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8292
8293         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8294
8295 2005-05-11  Peter Bartok  <pbartok@novell.com>
8296
8297         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8298         * SelectionRangeConverter.cs: Implemented
8299         * PropertyGrid.cs: Fixed attribute value
8300         * Control.cs:
8301           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8302           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8303         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8304           that's common to all drivers. First methods to go there are
8305           Sebastien Pouliot's CAS Stack Propagation helper methods
8306         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8307           Sebastien Pouliot for CAS Stack Propagation
8308
8309 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8310
8311         * OSXStructs.cs:
8312           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8313
8314 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8315
8316         * DataGridTextBoxColumn.cs: fixed some members
8317         * GridColumnStylesCollection.cs: indexed column is case insensitive
8318         * DataGridTableStyle.cs: fixes
8319         * ThemeWin32Classic.cs: add new theme parameter
8320         * Theme.cs: add new theme parameter
8321         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8322         * DataGrid.cs: fixes, new internal properties, etc.
8323         * DataGridColumnStyle.cs: allows to set grid value
8324         *
8325
8326 2005-05-10  Peter Bartok  <pbartok@novell.com>
8327
8328         * AccessibleObject.cs:
8329           - Removed MonoTODO attribute on help, method is correct
8330           - Fixed Bounds property
8331         * AxHost.cs: Moved MonoTODO
8332         * ButtonBase.cs: Now setting AccessibleObject properties
8333         * RadioButton.cs: Setting proper AccessibleObject role
8334         * CheckBox.cs: Setting proper AccessibleObject role
8335         * ControlBindingsCollection.cs: Added properties, methods and attributes
8336         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8337           userdefined DataFormats.Format items as well
8338         * ListControl.cs: Removed data_member from the public eye
8339         * OpenFileDialog.cs:
8340           - Made class sealed
8341           - Added missing attributes
8342         * SaveFileDialog.cs: Added missing attributes
8343         * ImageListStreamer.cs: Fixed code that caused warnings
8344         * LinkLabel.cs: Removed unreachable code
8345         * TreeView.cs: Fixed code that caused warnings
8346         * PropertyGridView.cs: Fixed code that caused warnings
8347         * GridColumnStylesCollection.cs: Added missing attributes
8348         * GridTableStylesCollection: Added missing attribute
8349         * PropertyManager: Added .ctor
8350         * SecurityIDType: Added
8351         * DataObject.cs: Implemented class
8352         * LinkArea.cs: Added missing attribute
8353
8354 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8355
8356         * RadioButton.cs: call base method to allow to fire OnClick event
8357         * UpDownBase.cs: OnMouseUp call base method
8358         * CheckedListBox.cs: call base method before returning
8359         * TrackBar.cs: call base method before returning
8360         
8361
8362 2005-05-10  Peter Bartok  <pbartok@novell.com>
8363
8364         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8365           for messages
8366
8367 2005-05-10  Peter Bartok  <pbartok@novell.com>
8368
8369         * DataFormats.cs: Implemented
8370         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8371           XplatUIX11.cs: Added Clipboard APIs
8372         * XplatUIWin32.cs: Implemented Clipboard APIs
8373         * FolderBrowserDialog.cs: Added missing event, attributes
8374
8375 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8376
8377         * CheckBox.cs: call base method to allow to fire OnClick event
8378
8379 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8380
8381         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8382
8383 2005-05-06  Peter Bartok  <pbartok@novell.com>
8384
8385         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8386         * Screen.cs: Implemented
8387         * HelpNavigator.cs: Added
8388         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8389           property
8390         * HelpProvider.cs: Implemented all we can do until we have a CHM
8391           help library (which means that "What's This" does work now)
8392
8393 2005-05-06  Jackson Harper  <jackson@ximian.com>
8394
8395         * XplatUIX11.cs: Fix waking up the main loop.
8396                 
8397 2005-05-05  Peter Bartok  <pbartok@novell.com>
8398
8399         * XplatUI.cs: Updated revision
8400         * Form.cs: Removed enless loop
8401         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8402         * Label.cs (OnPaint): Added call to base.OnPaint()
8403         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8404         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8405         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8406         * AxHost.cs: Added
8407         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8408         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8409           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8410           reuse of ToolTipWindow by other controls
8411         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8412         * XplatUIX11.cs: Now clipping drawing area (experimental)
8413         * PictureBox.cs: Moved base.OnPaint() call to end of method
8414         * Theme.cs: Fixed ToolTip abstracts to match new format
8415         * ErrorProvider.cs: Implemented
8416
8417 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8418
8419         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8420         * LinkLabel.cs:
8421                 - Adds cursors
8422                 - Handles focus
8423                 - Implements LinkBehavior
8424                 - Fixes many issues
8425
8426 2005-05-03  Jackson Harper  <jackson@ximian.com>
8427
8428         * ListView.cs: Calculate the scrollbar positioning on resize and
8429         paint, so they get put in the correct place.
8430
8431 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8432
8433         * ColorDialogs.cs: The small color panels are now handled by
8434           SmallColorControl. This fixes drawing of the focus rectangle
8435           and adds a 3D border.
8436
8437 2005-05-03  Peter Bartok  <pbartok@novell.com>
8438
8439         * Control.cs: Modified version of Jonathan Chamber's fix for
8440           double-buffering
8441
8442 2005-05-03  Jackson Harper  <jackson@ximian.com>
8443
8444         * ListView.cs: Remove redraw variable. Control now handles whether
8445         or not a redraw needs to be done, and will only raise the paint
8446         event if redrawing is needed.
8447
8448 2005-05-03  Jackson Harper  <jackson@ximian.com>
8449
8450         * Splitter.cs: No decorations for the splitter form. Cache the
8451         hatch brush.
8452
8453 2005-05-03  Jackson Harper  <jackson@ximian.com>
8454
8455         * TreeView.cs: Use dashed lines to connect nodes. Use the
8456         ControlPaint method for drawing the focus rect instead of doing
8457         that in treeview.
8458
8459 2005-05-02  Peter Bartok  <pbartok@novell.com>
8460
8461         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8462
8463 2005-04-29  Jackson Harper  <jackson@ximian.com>
8464
8465         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8466         entire image buffer. Just clear the clipping rectangle.
8467
8468 2005-04-29  Jackson Harper  <jackson@ximian.com>
8469
8470         * ThemeWin32Classic.cs: Don't draw list view items that are
8471         outside the clipping rectangle.
8472
8473 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8474
8475         * ListBox.cs: added horizontal item scroll
8476
8477 2005-04-29  Jackson Harper  <jackson@ximian.com>
8478
8479         * ThemeWin32Classic.cs: Remove some old debug code that was
8480         causing flicker with the new double buffering code.
8481
8482 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8483
8484         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8485         behave like combobox and comboboxlist (still not sure if this is
8486         correct though).
8487
8488 2005-04-28  Jackson Harper  <jackson@ximian.com>
8489
8490         * ThemeWin32Classic.cs: Don't fill the middle of progress
8491         bars. This fills areas outside of the clip bounds that don't need
8492         to be filled.
8493
8494 2005-04-28  Jackson Harper  <jackson@ximian.com>
8495
8496         * Control.cs: Don't expose functionality to touch the image buffers.
8497         * ProgressBar.cs:
8498         * ListView.cs: We do not need to (and no longer can) manipulate
8499         the image buffers directly. All of this is handled by Control.
8500
8501 2005-04-28  Peter Bartok  <pbartok@novell.com>
8502
8503         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8504           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8505           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8506
8507 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8508
8509         * Combobox:
8510                 - Adjust control's height for non-simple comboboxes (bug fix)
8511                 - Remove dead code
8512         * MenuAPI.cs: remove unused var
8513         * ScrollBar.cs: remove unsed var
8514                  
8515         * ListBox.cs: unselect items when clearing
8516
8517 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8518
8519         * ListControl.cs: honors OnPositionChanged and default Selected Item
8520         * ListBox.cs: unselect items when clearing
8521
8522 2005-04-27  Jackson Harper  <jackson@ximian.com>
8523
8524         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8525         if a "correct" keyboard is not found. This will make us not crash,
8526         but might give some users bad keyboard layouts...seems to be the
8527         same thing rewind does.
8528
8529 2005-04-27  Jackson Harper  <jackson@ximian.com>
8530
8531         * BindingManagerBase.cs: Attach the current/position changed
8532         handlers to their respective events.
8533
8534 2005-04-27  Jackson Harper  <jackson@ximian.com>
8535
8536         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8537         not just a blit.
8538         * ThemeWin32Classic.cs: Don't fill the background for picture
8539         boxes. This could overright user drawing.
8540         * ComboBox.cs: Just fill the clipping rect not the entire client
8541         rect when drawing the background. This prevents pieces of the
8542         image buffer from getting overwritten and is theoretically faster.
8543
8544 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8545
8546         * ComboBox.cs: Databinding support fixes, fire missing events
8547         * ListControl.cs: implement missing methods and properties, fixes
8548         * ThemeWin32Classic.cs: Databiding support on Drawing
8549         * CheckedListBox.cs: Databinding support fixes, fire missing events
8550         * ListBox.cs: Databinding support fixes, fire missing events
8551         
8552 2005-04-25  Peter Bartok  <pbartok@novell.com>
8553
8554         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8555
8556 2005-04-25  Jackson Harper  <jackson@ximian.com>
8557
8558         * TreeView.cs: Use the horizontal scrollbars height not width when
8559         determining how much of the client area is available.
8560
8561 2005-04-25  Jackson Harper  <jackson@ximian.com>
8562
8563         * Control.cs: Double buffering is handled differently now. As per
8564         the spec, the extra buffer is created in the WM_PAINT message and
8565         passed down to the control's drawing code.
8566         * GroupBox.cs:
8567         * Label.cs:
8568         * CheckBox.cs:
8569         * ProgressBar.cs:
8570         * RadioButton.cs:
8571         * ColorDialog.cs:
8572         * ComboBox.cs:
8573         * PropertyGridView.cs:
8574         * UpDownBase.cs:
8575         * MessageBox.cs:
8576         * MenuAPI.cs:
8577         * ListView.cs:
8578         * ButtonBase.cs:
8579         * SizeGrip.cs:
8580         * ScrollBar.cs:
8581         * ListBox.cs:
8582         * TrackBar.cs:
8583         * ToolBar.cs:
8584         * PictureBox.cs:
8585         * DateTimePicker.cs:
8586         * StatusBar.cs:
8587         * TreeView.cs: Update to new double buffering system.
8588         * MonthCalendar.cs: Uncomment block, as Capture is now
8589         working. Update to new double buffering
8590         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8591         * PaintEventArgs.cs: New internal method allows us to set the
8592         graphics object. This is used for double buffering.
8593         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8594         rectangle. The internal paint_area var has been removed from
8595         StatusBar. The clipping rect should be used instead.
8596         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8597         * TabPage.cs: The RefreshTabs method was removed, so just call the
8598         tab controls Refresh method now.
8599         * TabControl.cs: Update to new double buffering. Make sure the
8600         handle is created before sizing the tab pages, otherwise we will
8601         get stuck in a loop.
8602
8603 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8604
8605         * LinkLabel.cs: Fix typo, bug #74719; patch
8606           from Borja Sanchez Zamorano
8607
8608 2005-04-22  Jackson Harper  <jackson@ximian.com>
8609
8610         * TreeNode.cs: Implement Handle stuff.
8611         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8612
8613 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8614
8615         * DataGridTextBoxColumn.cs: call base constructors, fixes
8616         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8617         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8618         * DataGridTableStyle.cs: implements create default column styles
8619         * DataGridBoolColumn.cs: which types can handle
8620         * DataGrid.cs: missing methods, fixes, new functionality
8621         * DataGridColumnStyle.cs: fixes
8622
8623 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8624         * FolderBrowserDialog.cs:
8625         - Use a thread to fill the TreeView
8626         - Adjusted some sizes
8627
8628 2005-04-19  Peter Bartok  <pbartok@novell.com>
8629
8630         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8631           property. Fixes #74360.
8632
8633 2005-04-19  Jackson Harper  <jackson@ximian.com>
8634
8635         * XEventQueue.cs: Lock when getting the lockqueue size.
8636         * PictureBox.cs: Call base OnPaint
8637         
8638 2005-04-19  Peter Bartok  <pbartok@novell.com>
8639
8640         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8641           messages were no longer being processed (this broke BeginInvoke)
8642
8643           
8644 2005-04-18  Jackson Harper  <jackson@ximian.com>
8645
8646         * TreeView.cs: buglet that caused node images to get drawn
8647         regardless of whether or not they were in the clipping rectangle.
8648
8649 2005-04-18  Jackson Harper  <jackson@ximian.com>
8650
8651         * CurrencyManager.cs: There are four rules for GetItemProperties:
8652         - If the type is an array use the element type of the array
8653         - If the type is a typed list, use the type
8654         - If the list contains an Item property that is not an object, use
8655         that property
8656         - use the first element of the list if there are any elements in
8657         the list.
8658         
8659 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8660
8661         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8662         click. This handles offsets for scrolling properly and reduces
8663         memory. Also fixed GetNode to not offset now that TopNode works
8664         properly.
8665         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8666         
8667 2005-04-17  Jackson Harper  <jackson@ximian.com>
8668
8669         * CursorConverter.cs: Initial implementation.
8670
8671 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8672
8673         * ListControl.cs: work towards complex data binding support on ListControl
8674         * CurrencyManager.cs: work towards complex data binding support on ListControl
8675         * ListBox.cs: work towards complex data binding support on ListControl
8676
8677
8678 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8679
8680         * GridTableStylesCollection.cs: fixes name and constructor
8681         * DataGridTableStyle.cs: fixes
8682         * DataGridBoolColumn.cs: fixes names and constructors
8683         * DataGrid.cs: define methods and properties. Some init implementations
8684         * DataGridCell.cs: define methods and properties. Some init implementations
8685         * GridTablesFactory.cs: Define methods and properties
8686
8687 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8688
8689         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8690         graphics port changes.  We still want the coordinates in global screen
8691         coordinates.
8692
8693 2005-04-14  Jackson Harper  <jackson@ximian.com>
8694
8695         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8696         check plus minus or checkbox clicks unless those features are enabled.
8697
8698 2005-04-14  Jackson Harper  <jackson@ximian.com>
8699
8700         * TreeView.cs: Add methods for setting the top and bottom visible
8701         nodes. TreeNode::EnsureVisible uses these methods.
8702         * TreeNode.cs: Implement EnsureVisible
8703
8704 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8705
8706         * Form.cs: Pospone menu assignation if the window has not been created yet
8707         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8708         size and position
8709
8710 2005-04-12  Jackson Harper  <jackson@ximian.com>
8711
8712         * TreeView.cs: Set the TopNode properly when scrolling
8713         occurs. This has the added benifit of reducing the amount of
8714         walking that needs to be done when drawing. Also removed an old
8715         misleading TODO.
8716         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8717         
8718 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8719
8720         * Timer.cs: fixes interval setting when the timer is already enabled
8721         
8722 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8723
8724         * FolderBrowserDialog.cs: First approach
8725
8726 2005-04-09  Peter Bartok  <pbartok@novell.com>
8727
8728         * FolderBrowserDialog: Added
8729
8730 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8731
8732         * LinkLabel.cs: move drawing code into the theme
8733         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8734         * Theme.cs: define DrawLinkLabel method
8735
8736 2005-04-05  Jackson Harper  <jackson@ximian.com>
8737
8738         * BindingContext.cs: Use weak references so these bad actors don't
8739         stay alive longer then they need to.
8740
8741 2005-04-05  Jackson Harper  <jackson@ximian.com>
8742
8743         * ListControl.cs: Basic implementation of complex databinding.
8744         * ComboBox.cs:
8745         * ListBox.cs: Add calls to ListControl databinding methods.
8746
8747 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8748
8749         * FileDialog.cs:
8750           - Don't change PopupButtonState to Normal when the
8751             PopupButton gets pressed several times.
8752           - Renamed ButtonPanel to PopupButtonPanel
8753
8754 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8755
8756         * ColorDialog.cs: Use cached objects instead of creating them
8757         * LinkLabel.cs: Use cached objects instead of creating them
8758         * Splitter.cs: Use cached objects instead of creating them
8759         * FontDialog.cs: Use cached objects instead of creating them
8760         * PropertyGridView.cs: Use cached objects instead of creating them
8761         * MessageBox.cs: Use cached objects instead of creating them
8762         * FileDialog.cs: Use cached objects instead of creating them
8763         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8764         * TreeView.cs: Use cached objects instead of creating them
8765         
8766 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8767
8768         * Control.cs: use Equals to compare the font since no == op
8769         * ScrollBar.cs: use Equals to compare the font since no == op
8770
8771 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8772
8773         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8774
8775 2005-04-01  Jackson Harper  <jackson@ximian.com>
8776
8777         * Binding.cs: Implement IsBinding.
8778         * BindingManagerBase.cs:
8779         * PropertyManager.cs:
8780         * CurrencyManager.cs: Add IsSuspended property.
8781
8782 2005-04-01  Jackson Harper  <jackson@ximian.com>
8783
8784         * Binding.cs: Had some IsAssignableFrom calls backwards.
8785
8786 2005-04-01  Jackson Harper  <jackson@ximian.com>
8787
8788         * Binding.cs: Handle null data members when pulling data.
8789         * PropertyManager.cs: Handle the data member being a property that
8790         does not exist.
8791
8792 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8793
8794         * DataGridTextBoxColumn.cs: fixes signature
8795         * DataGrid.cs: calls right constructor
8796
8797 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8798
8799         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8800         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8801         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8802         * DataGridTableStyle.cs: implements DataGridTableStyle
8803         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8804         * DataGridTextBox.cs: implements DataGridTextBox
8805         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8806
8807 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8808
8809         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8810
8811 2005-03-29  Peter Bartok  <pbartok@novell.com>
8812
8813         * Application.cs:
8814           - Properly implemented CompanyName property
8815           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8816             returns a path that includes CompanyName, ProductName and
8817             Version (fixes bug #70330)
8818
8819 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8820
8821         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8822           fixes bug #72588.
8823
8824 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8825
8826         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8827         
8828           - Added ReadOnly CheckBox
8829           - Further refactoring: moved some code from Open-/SaveFileDialog
8830             to FileDialog
8831
8832 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8833
8834         * OpenFileDialog.cs: Fixed CheckFileExists
8835         * FileDialog.cs:
8836           Moved FileView and DirComboBox outside FileDialog class.
8837           They can now be used outside FileDialog
8838
8839 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8840
8841         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8842         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8843
8844 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8845
8846         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8847           - Added missing CreatePrompt property in SaveDialog
8848           - Overall SaveDialog handling should be better now
8849           - Added non standard ShowHiddenFiles property
8850           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8851           - Added InitialDirectory and RestoreDirectory support
8852
8853 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8854
8855         * FileDialog.cs: Made dirComboBox usable
8856
8857 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8858
8859         * FileDialog.cs: Added Filter support (case sensitiv)
8860
8861 2005-03-24  Jackson Harper  <jackson@ximian.com>
8862
8863         * TabControl.cs: Need a couple more pixels for the lines.
8864
8865 2005-03-23  Jackson Harper  <jackson@ximian.com>
8866
8867         * TabControl.cs: Give the tab page focus when it is selected.
8868
8869 2005-03-23  Jackson Harper  <jackson@ximian.com>
8870
8871         * TabControl.cs: Account for the drawing of tabs borders when
8872         invalidating. If the slider was clicked dont do click detection on
8873         the tabs.
8874
8875 2005-03-23  Jackson Harper  <jackson@ximian.com>
8876
8877         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8878
8879 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8880
8881         * CategoryGridEntry.cs: Added
8882         * GridItem.cs: Added helper properties
8883         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8884         * GridEntry.cs: Updated code for collection
8885         * PropertyGrid.cs: Cleaned up some formatting
8886         * PropertyGridView.cs: Added drop down functionality for enums.
8887         * GridItemCollection.cs: Added enumerator logic
8888         * PropertyGridEntry.cs: Added
8889
8890 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8891
8892         * FileDialog.cs:
8893           - Removed unnecessary commented code
8894           - Fixed handling for entering the filename manually in the combobox
8895
8896 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8897
8898         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8899
8900 2005-03-18  Peter Bartok  <pbartok@novell.com>
8901
8902         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8903           them being touching the border
8904
8905 2005-03-18  Peter Bartok  <pbartok@novell.com>
8906
8907         * TextControl.cs: Quick hack to center text better
8908
8909 2005-03-18  Peter Bartok  <pbartok@novell.com>
8910
8911         * ControlPaint.cs:
8912           - Don't throw NotImplemented exceptions, just print a notice once
8913             instead (requested by Miguel). This makes running existing SWF
8914             apps a bit easier
8915         * Control.cs:
8916           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8917           - Added context menu trigger on right click
8918         * Panel.cs: Trigger invalidate on resize
8919         * StatusBar.cs:
8920           - Removed old double-buffer drawing
8921           - Added ResizeRedraw style to force proper update of statusbar
8922         * ListView.cs:
8923           - Removed debug output
8924         * ThemeWin32Classic.cs:
8925           - Fixed drawing of status bar, now draws Text property if there
8926             are no defined panels
8927
8928 2005-03-18  Jackson Harper  <jackson@ximian.com>
8929
8930         * ImageList.cs: When the image stream is set pull all the images
8931         from it.
8932         * ImageListStreamer.cs: Implement reading image list streams.
8933
8934 2005-03-18  Peter Bartok  <pbartok@novell.com>
8935
8936         * ThemeWin32Classic.cs (DrawPictureBox):
8937           - Fixed calculations for centered drawing
8938           - Fixed drawing for normal mode, not scaling the image on normal
8939
8940 2005-03-18  Peter Bartok  <pbartok@novell.com>
8941
8942         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8943           textbox
8944         * FileDialog.cs:
8945           - Made Open/Save button the accept button for FileDialog
8946           - Tied the cancel button to the IButtonControl cancel button
8947           - Save/Open now properly builds the pathname
8948           - Now handles user-entered text
8949           - Preventing crash on right-click if no item is selected
8950           - Fixed Text property, now uses contents of textbox
8951           - Fixed SelectedText property, now just returns the text part that
8952             is selected in the text box
8953
8954 2005-03-18  Jackson Harper  <jackson@ximian.com>
8955
8956         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8957         rect, make sure to de-adjust the interior rect after drawing the
8958         tab text.
8959
8960 2005-03-18  Peter Bartok  <pbartok@novell.com>
8961
8962         * MenuAPI.cs: Remove menu *before* executing selected action to
8963           prevent the menu from 'hanging around'
8964           
8965 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8966
8967         * XplatUIOSX.cs: Implemented WorkingArea property
8968
8969 2005-03-17  Peter Bartok  <pbartok@novell.com>
8970
8971         * XplatUIX11.cs: Fixed menu coord calculations
8972         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8973           for calculating offsets
8974
8975 2005-03-17  Peter Bartok  <pbartok@novell.com>
8976
8977         * Hwnd.cs: Do not consider menu presence for default client
8978           rectangle location/size
8979         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8980           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8981           translation functions
8982         * FileDialog.cs: Fixed (what I presume is a) typo
8983
8984 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8985
8986         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8987           X access (avoids X-Async errors)
8988
8989 2005-03-16  Jackson Harper  <jackson@ximian.com>
8990
8991         * TabControl.cs: Raise the SelectedIndexChanged event.
8992
8993 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8994
8995         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8996           - Removed vertical ToolBar and replaced it with a custom panel
8997             (desktop and home button already work)
8998           - Added Help button (some controls get resized or relocated then)
8999           - Draw correct text depending on Open or Save.
9000           - Fixed some typos...
9001
9002 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9003
9004         * ScrollBar.cs:
9005           - Only change Maximum and Minimum when need it (bug fix)
9006
9007 2005-03-15  Peter Bartok  <pbartok@novell.com>
9008
9009         * Form.cs: Use Handle for icon, to trigger creation if
9010           the window does not yet exist
9011         * Control.cs:
9012           - CanSelect: Slight performance improvement
9013           - Focus(): Preventing possible recursion
9014           - Invalidate(): Removed ControlStyle based clear flag setting
9015           - WM_PAINT: fixed logic for calling OnPaintBackground
9016           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9017             EraseWindowBackground if the control doesn't paint background
9018         * XplatUIWin32.cs:
9019           - Moved EraseWindowBackground() method to internal methods
9020           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9021             is sent via SendMessage on BeginPaint call on Win32
9022         * XplatUIX11.cs:
9023           - Added EraseWindowBackground() method
9024           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9025             PaintEventStart, which more closely matches Win32 behaviour
9026           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9027           - Fixed SetFocus() to properly deal with client and whole windows
9028         * Hwnd.cs: Added ErasePending property
9029         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9030         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9031
9032 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9033
9034         * XplatUIOSX.cs:
9035           - Fix hard loop when timers exist.
9036           - Fix bugs with middle and right click for 3 button mice.
9037
9038 2005-03-11  Peter Bartok  <pbartok@novell.com>
9039
9040         * XplatUIX11.cs:
9041           - get_WorkingArea: Need to call X directly, GetWindowPos only
9042             returns cached data now
9043           - Added sanity check to GetWindowPos hwnd usage
9044
9045 2005-03-11  Jackson Harper  <jackson@ximian.com>
9046
9047         * BindingManagerBase.cs: This method isn't used anymore as
9048         PullData now updates the data in the control.
9049
9050 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9051
9052         * Form.cs: fixes menu drawing on X11
9053         * MenuAPI.cs:  fixes menu drawing on X11
9054
9055 2005-03-11  Peter Bartok  <pbartok@novell.com>
9056
9057         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9058           from Jonathan Gilbert; should fix bug #73606
9059         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9060           in Screen coordinates. Thanks, Jordi.
9061         * Form.cs: Added missing attribute
9062
9063 2005-03-11  Peter Bartok  <pbartok@novell.com>
9064
9065         * Form.cs:
9066           - Rudimentary Mdi support
9067           - Removed outdated FormParent code
9068           - Implemented lots of missing properties and methods, still missing
9069             transparency support
9070           - Added missing attributes
9071           - Implemented support for MaximumBounds
9072           - Added firing of various events
9073         * XplatUI.cs: Added SetIcon() method
9074         * XplatUIDriver.cs: Added SetIcon() abstract
9075         * XplatUIOSX.cs: Stubbed out SetIcon() method
9076         * XplatUIX11.cs:
9077           - Implemented SetIcon() support
9078           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9079           - Switched to unix line endings
9080         * XplatUIWin32.cs:
9081           - Made POINT internal so for can access it as part of MINMAX
9082           - Implemented SetIcon() support
9083           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9084             native Mdi support again, might have to go managed)
9085         * Control.cs: Now fires the StyleChanged event
9086         * MdiClient.cs: Added; still mostly empty
9087
9088 2005-03-10  Peter Bartok  <pbartok@novell.com>
9089
9090         * SaveFileDialog.cs: Added emtpy file
9091
9092 2005-03-08  Peter Bartok  <pbartok@novell.com>
9093
9094         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9095           in turn triggers OnCreateContro) when creating a handle for the
9096           first time.
9097         * TextControl.cs: Fixed endless loop in certain cases when
9098           replacing the current selection
9099
9100 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9101
9102         * ScrollBar.cs:
9103           - Honors NewValue changes in Scroll events allowing apps to change it
9104           - Adds First and Last Scroll events
9105           - Fixes Thumb events
9106
9107 2005-03-07  Peter Bartok  <pbartok@novell.com>
9108
9109         * Hwnd.cs: Added DefaultClientRectangle property
9110         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9111           more detailed debug information
9112         * XplatUIX11.cs:
9113           - Fixed size-change feedback loop, where we would pull an old size
9114             off the queue and mistakenly change our window's size to an
9115             earlier value
9116           - Now compressing ConfigureNotify events, to reduce looping and
9117             redraw issues
9118         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9119           is called
9120
9121 2005-03-07  Jackson Harper  <jackson@ximian.com>
9122
9123         * Binding.cs: Push data pushes from data -> property. Check if the
9124         property is readonly when attempting to set it.
9125
9126 2005-03-07  Jackson Harper  <jackson@ximian.com>
9127
9128         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9129         instead of IsSubclassOf. Pulling data now sets the value on the
9130         control.
9131         * PropertyManager.cs:
9132         * CurrencyManager.cs: Just need to pull data when updating now,
9133         because PullData will set the value on the control.
9134
9135 2005-03-04  Jackson Harper  <jackson@ximian.com>
9136
9137         * Binding.cs: Implement data type parsing and converting on pulled
9138         data. TODO: Are there more ways the data can be converted?
9139
9140 2005-03-04  Jackson Harper  <jackson@ximian.com>
9141
9142         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9143         controls Validating method so we can repull the data when the
9144         control loses focus.
9145
9146 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9147
9148         * ColumnHeader.cs:
9149           - Fixes null string format
9150           
9151         * ListView.cs:
9152           - Adds enum type checks
9153           - Fixes redrawing and recalc need after changing some properties
9154           - Fixes on focus_item set after the event
9155           - Fixes adding columns after the control has been created
9156           
9157         * ThemeWin32Classic.cs:
9158           - Fixes CheckBox focus rectangle
9159           - Fixes ColumnHeader drawing
9160
9161
9162 2005-03-03  Jackson Harper  <jackson@ximian.com>
9163
9164         * Binding.cs: Bind to <Property>Changed events so we can detect
9165         when properties are changed and update the data.
9166
9167 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9168
9169         * ImageList.cs:
9170           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9171           - Fixes ImageList constructor with ImageList container
9172           - Fixes image scaling (wrong parameters at DrawImage)
9173
9174 2005-02-02  Jackson Harper  <jackson@ximian.com>
9175
9176         * Binding.cs: Make property searches case-insensitive. Eliminate
9177         some duplicated code.
9178
9179 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9180
9181         * ComboBox.cs:
9182                 - Handle focus event
9183                 - Fix scrollbar events
9184                 - Discard highlighted item if remove it
9185                 - Fixes SelectedItem with strings
9186
9187 2005-03-01  Peter Bartok  <pbartok@novell.com>
9188
9189         * Control.cs:
9190           - Fixed Visible property, now follows (once again) parent chain
9191             to return false if any control in the chain is visible=false
9192           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9193           - Fixed several places where is_visible instead of Visible was used
9194           - Implemented FIXME related to focus selection when setting focused
9195             control to be invisible
9196
9197         * XplatUIWin32.cs: Now using proper method to find out if window is
9198           visible. Thanks to Jordi for pointing it out
9199
9200 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9201
9202         * ComboBox.cs: show/hide scrollbar instead of creating it
9203
9204 2005-02-27  Jackson Harper  <jackson@ximian.com>
9205
9206         * CurrencyManager.cs: Add PositionChanged stuff.
9207
9208 2005-02-27  Peter Bartok  <pbartok@novell.com>
9209
9210         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9211         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9212         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9213         * XplatUIX11.cs:
9214           - Implemented GetMenuDC()
9215           - Implemented GetMenuOrigin()
9216           - Implemented ReleaseMenuDC()
9217           - Implemented generation of WM_NCPAINT message
9218           - Implemented generation and handling of WM_NCCALCSIZE message
9219         * Form.cs: Added debug helper message for Jordi's menu work
9220         * Hwnd.cs:
9221           - Modified ClientRect property; added setter, fixed getter to handle
9222             setting of ClientRect
9223           - Added MenuOrigin property
9224
9225 2005-02-26  Peter Bartok  <pbartok@novell.com>
9226
9227         * XplatUIX11.cs:
9228           - Destroys the caret if a window that's being destroyed contains it
9229           - Ignores expose events coming from the X11 queue for windows that
9230             already are destroyed
9231           - Now uses the proper variable for handling DestroyNotify, before we
9232             marked the wrong window as destroyed
9233           - Improved/added some debug output
9234
9235 2005-02-26  Peter Bartok  <pbartok@novell.com>
9236
9237         * X11Keyboard.cs: Fixes to work on 64bit systems
9238
9239 2005-02-26  Peter Bartok  <pbartok@novell.com>
9240
9241         * Control.cs:
9242           - Now calling OnHandleDestroyed from DestroyHandle()
9243             instead of Dispose()
9244           - Removed bogus call to controls.Remove() from DestroyHandle()
9245
9246 2005-02-26  Peter Bartok  <pbartok@novell.com>
9247
9248         * Control.cs: Properly destroy child windows when our handle is
9249           destroyed
9250
9251 2005-02-25  Peter Bartok  <pbartok@novell.com>
9252
9253         * XplatUI.cs:
9254           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9255           - Alphabetized Static Methods and Subclasses
9256
9257         * XplatUIX11.cs:
9258           - Added XException class to allow custom handling of X11 exceptions
9259           - Created custom X11 error handler, tied into XException class
9260           - Added support for MONO_XEXCEPTIONS env var to allow the user
9261             to either throw an exception on X errors or continue running
9262             after displaying the error
9263           - Added handling of DestroyNotify message
9264           - Added handler for CreateNotify message (still disabled)
9265           - Improved (tried to at least) Where method to provide file and lineno
9266         * X11Structs.cs:
9267           - Added XErrorHandler delegate
9268           - Added XRequest enumeration (to suppor translation of errors)
9269
9270 2005-02-25  Jackson Harper  <jackson@ximian.com>
9271
9272         * PropertyManager.cs: Implement editing features
9273         * CurrencyManager.cs:
9274         * Binding.cs: First attempt at UpdateIsBinding
9275         * BindingManagerBase.cs: Call UpdateIsBinding before
9276         pushing/pulling data.
9277
9278 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9279
9280         * MenuAPI.cs: Respect disabled items
9281         * ThemeWin32Classic.cs
9282                 - Caches ImageAttributes creation for DrawImageDisabled
9283                 - Fixes vertical menu line drawing
9284                 - Draws disabled arrows in disable menu items
9285
9286 2005-02-24  Peter Bartok  <pbartok@novell.com>
9287
9288         * Hwnd.cs:
9289           - Added UserData property to allow associating arbitrary objects
9290             with the handle
9291           - Fixed leak; now removing Hwnd references from static windows array
9292         * XplatUIWin32.cs:
9293           - Fixed Graphics leak in PaintEventEnd
9294           - Removed usage of HandleData, switched over to Hwnd class
9295         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9296
9297 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9298
9299         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9300         * ScrollBar.cs: Fixes bug
9301         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9302          keyboard navigation enhancements
9303
9304 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9305
9306         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9307         * GroupBox.cs: Add control styles
9308         * Label.cs: Add control styles
9309         * UpDownBase.cs: Add control styles
9310         * ListBox.cs: Add control styles
9311         * XplatUIWin32.cs: Fixes wrong parameter order
9312
9313
9314 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9315
9316         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9317
9318 2005-02-23  Jackson Harper  <jackson@ximian.com>
9319
9320         * PropertyManager.cs: Implement property binding. This doesn't
9321         seem to work yet though as (I think) there are some bugs in
9322         System.ComponentModel.PropertyDescriptor.
9323         * BindingContext.cs: Use new PropertyManager constructor.
9324
9325 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9326
9327         * ProgressBar.cs: use clip region in ProgressBar
9328         * ThemeWin32Classic.cs: use clip region in ProgressBar
9329
9330 2004-02-22  Jackson Harper  <jackson@ximian.com>
9331
9332         * BindingsCollection.cs: Remove some debug code.
9333
9334 2005-02-22  Jackson Harper  <jackson@ximian.com>
9335
9336         * BindingContext.cs:
9337         * ControlBindingsCollection.cs:
9338         * CurrencyManager.cs:
9339         * Binding.cs:
9340         * BindingManagerBase.cs: Initial implementation
9341         * BindingsCollection.cs: Add an internal contains method that the
9342         BindingManagerBase uses to ensure bindings aren't added twice to
9343         the collection.
9344         * PropertyManager.cs: Stubbed out.
9345         * Control.cs:
9346         * ContainerControl.cs: Hook up databinding
9347         
9348 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9349
9350         * XplatUIOSX.cs:
9351           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9352           Fixed Invalidate/Update chain.
9353           Fixed tons of other minor bugs (this is almost a complete rewrite).
9354
9355 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9356
9357         * ComboBox.cs: do subcontrol creation when the control is created
9358
9359 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9360
9361         * Label.cs: fixes image drawing (image and imagelist)
9362         * ThemeWin32Classic.cs: cache brushes
9363         
9364 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9365
9366         * Form.cs: Move menu drawing code to Theme class
9367         * ComboBox.cs: Move ComboBox drawing code to Theme class
9368         * MenuItem.cs: Move menu drawing code to Theme class
9369         * MenuAPI.cs: Move menu drawing code to Theme class
9370         * ThemeWin32Classic.cs: New methods
9371         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9372         * ListBox.cs: Move Listbox drawing code to Theme class
9373         * Theme.cs: New methods
9374
9375 2005-02-20  Peter Bartok  <pbartok@novell.com>
9376
9377         * Control.cs:
9378           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9379             only process mnemonics on those)
9380           - Fixed event sequence for key handling; first calling
9381             ProcessKeyEventArgs now
9382         * TextBoxBase.cs:
9383           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9384             for processing non-character keys
9385           - Fixed WM_CHAR to generate proper event sequence before processing
9386         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9387           generation
9388
9389 2005-02-19  Peter Bartok  <pbartok@novell.com>
9390
9391         * UserControl.cs: Added TextChanged event; added attributes
9392         * SizeGrip.cs: Implemented resizing and optional display of grip
9393         * Form.cs: Fixed attribute
9394         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9395           Changed meaning of ScrollWindow bool argument; instead of the
9396           clear attribute (which will be true usually anyway), it gives the
9397           option of moving child controls as well.
9398         * XplatUIX11.cs:
9399           - Changed to match new ScrollWindow argument
9400           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9401             now handles the implicit parent window a WM puts around us
9402         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9403           to work)
9404         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9405         * TreeView.cs: Adjusted to new ScrollWindow arguments
9406
9407 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9408
9409         * Form.cs: Menu integration with non-client area
9410         * MenuItem.cs: Menu integration with non-client area
9411         * MenuAPI.cs: Menu integration with non-client area
9412
9413 2005-02-18  Peter Bartok  <pbartok@novell.com>
9414
9415         * MethodInvoker.cs: Added
9416         * MdiLayout.cs: Added
9417         * SendKeys.cs: Started implementation
9418         * ErrorIconAlignment.cs: Added
9419
9420 2005-02-18  Peter Bartok  <pbartok@novell.com>
9421
9422         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9423         * Form.cs: Added handling for Menu-related Non-client messages
9424
9425 2005-02-17  Peter Bartok  <pbartok@novell.com>
9426
9427         * UpDownBase.cs: Fixed typo, compilation errors
9428         * DomainUpDown.cs: Fixed attribute value
9429
9430 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9431
9432         * UpDownBase.cs: Attach entry events.
9433         Propagate events.
9434         Add ForeColor property, Focused, InterceptArrowKeys (interception
9435         does not work yet).
9436
9437 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9438
9439         * Form.cs:
9440                 - Redraw non client are on Setmenu
9441                 - Calc proper menu starting point
9442
9443 2005-02-17  Peter Bartok  <pbartok@novell.com>
9444
9445         * Application.cs: Fixed message_filter check
9446
9447 2005-02-17  Peter Bartok  <pbartok@novell.com>
9448
9449         * Application.cs: Now calls registered message filters
9450         * DockStyle.cs: Fixed attribute
9451         * Form.cs: Fixed attribute
9452         * Menu.cs: Fixed attribute
9453         * ToolTip.cs: Fixed attribute
9454         * TreeNode.cs: Added missing attributes and arranged in regions
9455         * PropertyGrid.cs: Fixed signatures
9456         * TreeNodeCollection.cs: Added attributes
9457         * Splitter.cs: Added missing attributes; arranged into regions
9458         * TabPage.cs: Added missing attributes; arranged into regions
9459         * TextBoxBase.cs: Added missing attributes
9460         * TextBox.cs: Added missing attributes
9461         * ArrangeDirection.cs: Added missing attributes
9462         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9463         * ToolBarButton.cs: Fixed attributes
9464         * AnchorStyles.cs: Fixed attribute
9465         * TrackBar.cs: Fixed attributes
9466         * TabControl.cs: Added missing attributes and arranged into regions
9467         * ToolBar.cs: Fixed attribute
9468         * StatusBar.cs: Fixed signature, organized into regions and added
9469           attributes
9470         * StatusBarPanel.cs: Fixed attributes
9471         * ContentsResizedEventArgs.cs: Implemented
9472         * ContentsResizedEventHandler.cs: Implemented
9473         * DateBoldEventArgs.cs: Implemented
9474         * DateBoldEventHandler.cs: Implemented
9475         * UpDownEventArgs.cs: Implemented
9476         * UpDownEventHandler.cs: Implemented
9477         
9478 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9479
9480         * Form.cs: first Menu NC refactoring
9481         * MenuAPI.cs: first Menu NC refactoring
9482         
9483 2005-02-16  Peter Bartok  <pbartok@novell.com>
9484
9485         * ImeMode.cs: Added missing attributes
9486         * Menu.cs: Fixed attribute
9487         * GroupBox.cs: Fixed attribute
9488         * Label.cs: Fixed attribute
9489         * ColorDialog.cs (RunDialog): Removed TODO attribute
9490         * ComboBox.cs: Fixed attributes
9491         * ListControl.cs: Added missing attributes
9492         * PropertyGrid.cs: Fixed attributes
9493         * Control.cs: Fixed attributes
9494         * ListViewItem.cs: Added TypeConverter attribute
9495         * NotifyIcon.cs: Fixed attributes
9496         * ListView.cs: Fixed attributes
9497         * ButtonBase.cs: Fixed attribute
9498         * ImageList.cs: Added missing attributes
9499         * ContainerControl.cs: Fixed signature
9500         * CheckedListBox.cs: Fixed attribute; added missing attributes
9501         * Panel.cs: Fixed attributes
9502         * PropertyTabChangedEventArgs.cs: Added missing attribute
9503         * PropertyValueChangedEventArgs.cs: Added missing attribute
9504         * Binding.cs: Fixed attribute
9505         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9506         * ListBox.cs: Fixed attribute; added missing attributes;
9507         * ScrollableControl.cs: Added missing attributes
9508         * PictureBox.cs: Added missing attributes; implemented missing property
9509         * DateTimePicker.cs: Added missing attributes
9510         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9511         * MonthCalendar.cs: Fixed attributes
9512         * StatusBarPanel.cs: Added missing attributes
9513         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9514
9515 2005-02-16  Peter Bartok  <pbartok@novell.com>
9516
9517         * TextBoxBase.cs: The previous method to enforce height yet remember
9518           the requested high was less than ideal, this is an attempt to do
9519           it better.
9520         * Control.cs: Added comment about possible problem
9521         * Copyright: Updated format
9522         * GridItemType.cs: Fixed swapped values
9523
9524 2005-02-15  Jackson Harper  <jackson@ximian.com>
9525
9526         * BaseCollection.cs: Use property so we never access an
9527         uninitialized list. Also initialize the list in the property.
9528
9529 2005-02-15  Peter Bartok  <pbartok@novell.com>
9530
9531         * GroupBox.cs (ProcessMnemonic): Implemented
9532         * Label.cs (ProcessMnemonic): Implemented
9533         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9534           hotkeys
9535
9536 2005-02-15  Peter Bartok  <pbartok@novell.com>
9537
9538         * RadioButton.cs (ProcessMnemonic): Implemented
9539         * CheckBox.cs (ProcessMnemonic): Implemented
9540         * Control.cs:
9541           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9542             handling
9543           - Added internal method to allow calling ProcessMnemonic from other
9544             controls
9545         * ContainerControl.cs:
9546           - Started support for handling validation chain handling
9547           - Implemented ProcessMnemonic support
9548           - Added Select() call to Active, to make sure the active control
9549             receives focus
9550         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9551           FormParent rewrite)
9552         * ThemeWin32Classic.cs:
9553           - DrawCheckBox(): Fixed stringformat to show hotkeys
9554           - DrawRadioButton(): Fixed stringformat to show hotkeys
9555         * CommonDialog.cs: Removed WndProc override, not needed
9556
9557 2005-02-14  Peter Bartok  <pbartok@novell.com>
9558
9559         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9560           missed those in the rewrite
9561
9562 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9563
9564         * NumericUpDown.cs (Increment, ToString): Add.
9565         (DecimalPlaces): implement.
9566         
9567         Add attributes.
9568         
9569         * UpDownBase.cs: Add the designer attributes.
9570
9571 2005-02-13  Peter Bartok  <pbartok@novell.com>
9572
9573         * Panel.cs: Removed border_style, now in Control
9574         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9575           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9576
9577 2005-02-13  Peter Bartok  <pbartok@novell.com>
9578
9579         * MouseButtons.cs: Added missing attributes
9580         * XplatUIStructs.cs: Added enumeration for title styles
9581         * LeftRightAlignment.cs: Added missing attributes
9582         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9583           it compatible with Graphics.FromHwnd()
9584         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9585         * Keys.cs: Added missing attributes
9586         * SelectionRange.cs: Added missing attributes
9587         * SelectionRangeConverter.cs: Added
9588         * XplatUI.cs:
9589           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9590             ReleaseMenuDC methods
9591           - Renamed ReleaseWindow to UngrabWindow
9592           - Added proper startup notice to allow version identification
9593         * Form.cs:
9594           - Added missing attributes
9595           - Removed FormParent concept
9596         * Label.cs: Removed border_style field, now in Control
9597         * RadioButton.cs: Now properly selects RadioButton when focus is
9598           received
9599         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9600         * Control.cs:
9601           - Added missing attributes
9602           - Added borderstyle handling
9603           - Removed FormParent concept support
9604           - Fixed calls to XplatUI to match changed APIs
9605           - Fixed bug that would case us to use disposed Graphics objects
9606           - Removed unneeded internal methods
9607           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9608           - SelectNextControl(): Fixed to properly check common parents
9609         * TextBoxBase.cs: Removed border_style field (now in Control)
9610         * MessageBox.cs:
9611           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9612             fixed calculations for form size
9613           - Added support for localized strings and icons
9614           - Improved form size calculations, added border
9615         * ListView.cs: Removed border_style field (now in Control)
9616         * X11Structs.cs: Moved several structs from X11 driver here
9617         * X11Keyboard.cs: Changed debug message
9618         * Application.cs: Removed FormParent concept support
9619         * CommonDialog.cs:
9620           - Resetting end_modal flag
9621           - Removed FormParent concept support
9622         * NativeWindow.cs: Removed FormParent concept support
9623         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9624           Client area and Non-Client whole window to allow support for WM_NC
9625           messages
9626         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9627           prevent using it until it supports Hwnd as per Geoff Norton's request
9628         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9629         * PictureBox.cs: Removed border_style field, now in Control
9630         * XplatUIWin32.cs: Added new driver methods
9631
9632 2005-02-12  Peter Bartok  <pbartok@novell.com>
9633
9634         * OpacityConverter.cs: Implemented
9635         * Hwnd.cs: Internal class to support drivers that need to emulate
9636           client area/non-client area window behaviour
9637
9638 2005-02-11  Peter Bartok  <pbartok@novell.com>
9639
9640         * KeysConverter.cs: Implemented
9641
9642 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9643
9644         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9645         * LinkLabel: Added missing attributes
9646         * MainMenu.cs: fixes ToString
9647         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9648         * ListBox.cs: fixes event position
9649         * TrackBar.cs: adds missing attributes and events
9650         
9651 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9652
9653         * MenuItem.cs: Use SystemInformation and bug fixes
9654         * MenuAPI.cs: Use SystemInformation and bug fixes
9655
9656 2005-02-09  Jackson Harper  <jackson@ximian.com>
9657
9658         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9659         their keystate otherwise things like VK_MENU get stuck "on".
9660
9661 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9662
9663         * ListBox.cs: Fixes AddRange bug
9664         
9665 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9666
9667         * ProgressBar.cs
9668                 - Add missing attributes
9669                 - Add missing method
9670                 
9671         * CheckedListBox.cs: Added missing attributes
9672                 - Add missing attributes
9673                 - Remove extra method
9674         
9675         * ComboBox.cs: Added missing attributes
9676         * VScrollBar.cs: Added missing attributes
9677         * ScrollBar.cs:  Added missing attributes
9678         * ListBox.cs: Fixes signature, add missing consts
9679         * LinkArea.cs:   Added missing attributes
9680         
9681
9682 2005-02-08  Peter Bartok  <pbartok@novell.com>
9683
9684         * Menu.cs: Added missing attributes
9685         * MainMenu.cs: Added missing attributes
9686         * GroupBox.cs: Added missing attributes
9687         * Label.cs: Added missing attributes
9688         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9689         * ColorDialog.cs:
9690           - Added Instance and Options properties
9691           - Added missing attributes
9692         * Cursor.cs: Made Serializable
9693         * NotifyIcon: Added missing attributes
9694         * MenuItem.cs: Added missing attributes
9695         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9696         * Panel.cs: Added Missing attributes
9697         * MonthCalendar.cs: Fixed CreateParams
9698
9699 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9700         
9701         * LinkLabel.cs:
9702                 - Fixes signature
9703                 - Fixes issues with links
9704                 - Adds the class attributes
9705
9706 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9707         
9708         * ComboBox.cs:
9709                 - Fixes button when no items available in dropdown
9710                 - Fixes repainting problems
9711                 - Adds the class attributes
9712                 
9713 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9714
9715         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9716         the current theme.  Cache these on startup.
9717
9718 2005-02-07  Jackson Harper  <jackson@ximian.com>
9719
9720         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9721         the scrollbar buttons when they are depressed.
9722
9723 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9724
9725         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9726         Get the display size from the main displayid.  We currently dont
9727         support multiple display configurations.
9728
9729 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9730
9731         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9732
9733 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9734
9735         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9736
9737 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9738
9739         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9740
9741 2005-02-04  Jackson Harper  <jackson@ximian.com>
9742
9743         * ThemeWin32Classic.cs: Respect the clipping rect when
9744         drawing. Only fill the intersection of clips and rects so there
9745         isn't a lot of large fills.
9746         * ScrollBar.cs: Pass the correct clipping rect to the theme
9747         engine. Remove some debug code.
9748
9749 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9750         
9751         * DateTimePicker.cs:
9752                 - Fixed crash on DateTime.Parse, use Constructor instead
9753
9754 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9755         
9756         * MenuItem.cs:
9757         * MenuAPI.cs:
9758                 - Owner draw support (MeasureItem and DrawItem)
9759
9760 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9761         
9762         *  Menu.cs:
9763                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9764                 - Fixes MenuItems.Add range
9765         * MenuItem.cs:
9766                 - MergeMenu and Clone and CloneMenu functions
9767
9768 2005-02-03  Jackson Harper  <jackson@ximian.com>
9769
9770         * ScrollBar.cs: Make abstract
9771         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9772         is abstract.
9773
9774 2005-02-03  Jackson Harper  <jackson@ximian.com>
9775
9776         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9777         all the unneeded refreshes and uses invalidates with properly
9778         computed rects.
9779
9780 2005-02-03  Peter Bartok  <pbartok@novell.com>
9781
9782         * ComponentModel.cs: Added
9783         * IDataGridEditingService.cs: Added
9784         * Timer.cs: Added missing attributes
9785         * ToolTip.cs: Added missing attributes
9786
9787 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9788
9789         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9790
9791 2005-02-03  Peter Bartok  <pbartok@novell.com>
9792
9793         * ListBox.cs: Added missing attributes
9794
9795 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9796         
9797         * ListBox.cs:
9798                 - Fixes font height after font change
9799                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9800                 
9801 2005-02-02  Peter Bartok  <pbartok@novell.com>
9802
9803         * HandleData.cs: Introduced static methods to allow class
9804           to be more self-contained and track it's own HandleData objects
9805         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9806           HandleData to use new static methods
9807
9808 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9809
9810         * Combobox.cs:
9811                 - Fixes default size and PreferredHeight
9812                 - Missing events
9813                 - ObjectCollection.Insert implementation
9814                 
9815         * ListControl.cs
9816                 - Fixes signature
9817         * ListBox.cs:
9818                 - Several fixes
9819                 - ObjectCollection.Insert implementation
9820                 - No selection after clean
9821                 - Small fixes
9822
9823 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9824
9825         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9826
9827 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9828
9829         * Combobox.cs:
9830                 - Caches ItemHeight calculation for OwnerDrawVariable
9831                 - Handles dropdown properly
9832                 - Fixes several minor bugs
9833
9834 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9835
9836         * ListBox.cs:
9837                 - Fixes 71946 and 71950
9838                 - Fixes changing Multicolumn on the fly
9839                 - Fixes keyboard navigation on Multicolumn listboxes
9840
9841 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9842         
9843         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9844         crash reporter log.
9845
9846 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9847
9848         * XplatUIOSX.cs: Allow applications to actually exit.
9849
9850 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9851
9852         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9853         their parent at creation time rather than lazily later.  Fixes a major
9854         regression we were experiencing.
9855
9856 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9857
9858         * ThemeWin32Classic.cs: more date time picker painting fixes
9859         * DateTimePicker.cs: more monthcalendar drop down fixes
9860         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9861
9862 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9863
9864         * ScrollBar.cs:
9865                 - When moving the thumb going outside the control should stop the moving
9866                 - Adds the firing of missing events
9867                 - Fixes no button show if Size is not specified
9868                 - End / Home keys for keyboard navigation
9869
9870 2005-01-30  Peter Bartok  <pbartok@novell.com>
9871
9872         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9873           sanity check to prevent theoretical loop
9874         * XplatUIWin32.cs (SetVisible): Removed debug output
9875         * XplatUIX11.cs (SystrayChange): Added sanity check
9876         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9877         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9878           behaviour, valid until the X11 client window rewrite is done
9879         * TextBox.cs (ctor): Setting proper default foreground and background
9880           colors
9881
9882 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9883
9884         * Theme: Added DrawDateTimePicker to interface
9885         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9886         * DateTimePicker.cs: Created (still needs keys and painting code)
9887         * DateTimePickerFormat.cs: added
9888         * MonthCalendar.cs: fixed CreateParams for popup window mode
9889           
9890 2005-01-29  Peter Bartok  <pbartok@novell.com>
9891
9892         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9893           this should also the calculations for ligher/darker
9894         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9895
9896 2005-01-29  Peter Bartok  <pbartok@novell.com>
9897
9898         * ArrangeDirection.cs: Added
9899         * ArrangeStartingPositon.cs: Added
9900         * SystemInformation.cs: Implemented
9901         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9902           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9903           used by SystemInformation class
9904         * X11Strucs.cs: Added XSizeHints structure
9905         * MenuAPI.cs:
9906           - Fixed CreateParams to make sure the menu window is always visible
9907           - TrackPopupMenu: Added check to make sure we don't draw the
9908             menu offscreen
9909
9910 2005-01-29  Peter Bartok  <pbartok@novell.com>
9911
9912         * HandleData.cs: Added method for altering invalid area
9913         * TextBoxBase.cs: Implemented TextLength
9914
9915 2005-01-28  Peter Bartok  <pbartok@novell.com>
9916
9917         * XplatUIX11.cs: Improvement over last patch, not sending
9918           the WM_PAINT directly anymore, instead we scroll any pending
9919           exposed areas and let the system pick out the WM_PAINT later
9920
9921 2005-01-28  Peter Bartok  <pbartok@novell.com>
9922
9923         * SWF.csproj: Deleted, no longer used. Instead,
9924           Managed.Windows.Forms/SWF.csproj should be used
9925         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9926           directly, to avoid a potential race condition with the next
9927           scroll
9928
9929 2005-01-28  Peter Bartok  <pbartok@novell.com>
9930
9931         * XplatUI.cs: Made class internal
9932
9933 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9934
9935         * CheckedListBox.cs:
9936                 - Draw focus
9937                 - Fixed Drawing
9938                 - Missing methods and events
9939
9940 2005-01-27  Peter Bartok  <pbartok@novell.com>
9941
9942         * Application.cs (Run): Don't use form if we don't have one
9943
9944 2005-01-27  Peter Bartok  <pbartok@novell.com>
9945
9946         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9947
9948 2005-01-27  Peter Bartok  <pbartok@novell.com>
9949
9950         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9951         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9952         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9953         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9954         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9955         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9956         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9957         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9958         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9959         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9960         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9961         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9962
9963 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9964
9965         * Combobox.cs:
9966                 - Draw focus on Simple Combobox
9967                 - Fixes drawing issues
9968                 - fixes 71834
9969
9970 2005-01-27  Peter Bartok  <pbartok@novell.com>
9971
9972         * Form.cs:
9973           - Place window in default location, instead of hardcoded 0/0
9974           - Send initial LocationChanged event
9975         * Control.cs:
9976           - UpdateBounds after creation to find out where the WM placed us
9977           - Make sure that if the ParentForm changes location the Form
9978             is notified
9979         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9980             to the root, but to whatever the WM placed around us.
9981             Translate to root coordinates before returning toplevel
9982             coordinates
9983         * XplatUIWin32.cs: Removed debug output
9984         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9985           flag to GetWindowPos, to allow translation of coordinates on X11
9986
9987 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9988
9989         * ListBox.cs: connect LostFocus Event
9990
9991 2005-01-27  Peter Bartok  <pbartok@novell.com>
9992
9993         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9994           XplatUIX11.cs: Extended the Systray API
9995         * Form.cs: Removed debug output
9996         * Application.cs: Fixed focus assignment, always need to call
9997           XplatUI.Activate() since Form.Activate() has rules that may
9998           prevent activation
9999         * NotifyIcon.cs: Should be complete now
10000         * ToolTip.cs: Worked around possible timer bug
10001
10002 2005-01-27  Jackson Harper  <jackson@ximian.com>
10003
10004         * TabControl.cs:
10005         - Only invalidate the effected tabs when the
10006         selected index changes. This reduces drawing and gets rid of some
10007         flicker.
10008         - Only refresh if the tabs need to be shifted, otherwise only
10009         invalidate the slider button.
10010         - On windows the tabs are not filled to right if the slider is
10011         visible.
10012         
10013 2005-01-27  Jackson Harper  <jackson@ximian.com>
10014
10015         * TabControl.cs: Only refresh on mouseup if we are showing the
10016         slider. Also only invalidate the button whose state has changed.
10017
10018 2005-01-26  Peter Bartok  <pbartok@novell.com>
10019
10020         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10021         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10022           and SystrayRemove() methods
10023         * XplatUIOSX.cs: Stubbed Systray methods
10024         * XplatUIX11.cs:
10025           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10026             methods
10027           - Fixed broken XChangeProperty calls (marshalling messed up things)
10028         * X11Structs.cs: Added enums and structs required for Size hinting
10029         * NotifyIcon.cs: Added & implemented
10030
10031 2005-01-26  Jackson Harper  <jackson@ximian.com>
10032
10033         * TabControl.cs: Space vertically layed out tabs properly.
10034
10035 2005-01-26  Peter Bartok  <pbartok@novell.com>
10036
10037         * Form.cs (CreateClientParams): Always set the location to 0,0
10038           since we're a child window.
10039
10040         * Control.cs (SetVisibleCore): Always explicitly setting the location
10041           of a toplevel window, apparently X11 doesn't like to move windows
10042           while they're not mapped.
10043
10044 2005-01-26  Jackson Harper  <jackson@ximian.com>
10045
10046         * TabControl.cs: Implement FillToRight size mode with vertically
10047         rendered tabs.
10048
10049 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10050
10051         * ControlPaint.cs, ThemeWin32Classic.cs
10052                 - Fixes DrawFocusRectangle
10053
10054 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10055
10056         * MenuAPI.cs:
10057                 - MenuBar tracking only starts when item is first clicked
10058                 - Fixes menu hidding for multiple subitems
10059                 - Unselect item in MenuBar when item Executed
10060                 - Fixes bug 71495
10061
10062 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10063
10064         * ListControl.cs:
10065                 - IsInputKey for ListBox
10066         * ListBox.cs:
10067                 - Focus item
10068                 - Shift and Control item selection
10069                 - Implement SelectionMode.MultiExtended
10070                 - Fixes RightToLeft
10071         * ComboBox.cs:
10072                 - IsInputKey implemented
10073                 - Do not generate OnTextChangedEdit on internal txt changes
10074                 
10075 2005-01-23  Peter Bartok  <pbartok@novell.com>
10076
10077         * AccessibleObject.cs: Partially implemented Select()
10078         * MonthCalendar.cs: Added missing attributes and events
10079         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10080           form can properly override CreateParams.
10081         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10082           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10083           Control performs Invalidate & Update
10084         * NativeWindow (CreateHandle): Added special handling for Form
10085           and Form.FormParent classes to allow overriding of From.CreateParams
10086         * Control.cs:
10087           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10088             name 'owner'
10089           - ControlNativeWindow: Added Owner property
10090           - Removed usage of Refresh() on property changes, changed into
10091             Invalidate(), we need to wait until the queue is processed for
10092             updates, direct calls might cause problems if not all vars for
10093             Paint are initialized
10094           - Added call to UpdateStyles() when creating the window, to set any
10095             styles that CreateWindow might have ignored.
10096           - Added support for Form CreateParent overrides to UpdateStyles()
10097         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10098           CreateParams are now properly overridable
10099         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10100           CreateParams are now properly overridable
10101
10102 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10103
10104         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10105         OnTextBoxChanged.
10106
10107         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10108         recursive invocation that I have not figured out yet.
10109
10110         Reset the timer when not using (it was accumulating).
10111
10112
10113         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10114         user has made changes that require validation.
10115
10116         Reset changing to avoid loops.
10117
10118 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10119
10120         * NumericUpDown.cs: Display value at startup.
10121
10122         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10123         ValidateEditText.
10124
10125         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10126         filled in.  Added some basic parsing of text.
10127
10128         Still missing the OnXXX method overrides, and figuring out the
10129         events that must be emitted.
10130
10131         * UpDownBase.cs: Handle UserEdit on the Text property.
10132         
10133 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10134
10135         * ComboBox.cs:
10136           - Fixes IntegralHeight
10137           - ToString method
10138
10139 2005-01-21  Jackson Harper  <jackson@ximian.com>
10140
10141         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10142         is set so that the page visibility is updated and the tabs are
10143         sized correctly.
10144
10145 2005-01-21  Jackson Harper  <jackson@ximian.com>
10146
10147         * TabControl.cs: Use cliping rectangle for blitting. Give the
10148         theme the clipping rect so we can do clipping while
10149         drawing. Remove some debug code.
10150
10151 2005-01-21  Jackson Harper  <jackson@ximian.com>
10152
10153         * TabPage.cs: Add a new method so tab pages can force the tab
10154         control to recalculate the tab page sizes.
10155         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10156         sizes.
10157
10158 2005-01-20  Jackson Harper  <jackson@ximian.com>
10159
10160         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10161
10162 2005-01-20  Jackson Harper  <jackson@ximian.com>
10163
10164         * TreeView.cs: Set the bounds for nodes properly. They were
10165         getting screwed up when checkboxes were not enabled, but images
10166         were.
10167
10168 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10169
10170         * ListBox.cs:
10171                 - Owner draw support
10172                 - Fixes
10173                 
10174 2005-01-20  Jackson Harper  <jackson@ximian.com>
10175
10176         * XplatUIStructs.cs: More misc keys
10177         * X11Keyboard.cs: Ignore some control keys.
10178
10179 2005-01-20  Jackson Harper  <jackson@ximian.com>
10180
10181         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10182         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10183
10184 2005-01-19  Peter Bartok  <pbartok@novell.com>
10185
10186         * Control.cs: Un-selecting the control when it is loosing focus
10187
10188 2005-01-19  Jackson Harper  <jackson@ximian.com>
10189
10190         * TreeView.cs: Hook up to the text controls leave event so we can
10191         end editing when the users clicks outside the text box.
10192         
10193 2005-01-19  Jackson Harper  <jackson@ximian.com>
10194
10195         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10196         get set in the conversion array.
10197
10198 2005-01-19  Peter Bartok  <pbartok@novell.com>
10199
10200         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10201           focus is properly set
10202         * Button.cs:
10203           - Added missing attributes
10204           - removed styles, those are already set in the base class
10205         * ButtonBase.cs:
10206           - Added missing attributes
10207           - Added clip window styles
10208         * CheckBox.cs: Added missing attributes
10209         * CommonDialog.cs:
10210           - FormParentWindow.CreateParams: Added required clip styles
10211         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10212           also filters modifier keys
10213         * MessageBox.cs:
10214           - Added assignment of Accept and Cancel button to enable Enter
10215             and Esc keys in MessageBox dialogs
10216           - FormParentWindow.CreateParams: Added required clip styles
10217         * RadioButton.cs: Added missing attributes
10218         * TextControl.cs: No longer draws selection if control does not
10219           have focus
10220         * TextBoxBase.cs:
10221           - Now draws simple rectangle around test area to make it obvious
10222             there's a control. This is a hack until we properly support borders
10223           - A few simple fixes to support selections better, now erases selected
10224             text when typing, and resets selection when using movement keys
10225
10226 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10227
10228         * UpDownBase.cs: Added some new properties.
10229
10230         * DomainUpDown.cs: Implement a lot to get my test working.
10231
10232 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10233
10234         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10235
10236 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10237
10238         * OSXStructs (WindowAttributes): Fixed csc complaints
10239
10240 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10241
10242         * XplayUIOSX.cs:
10243           OSXStructs.cs: Initial refactor to move enums and consts into
10244           OSXStructs and use them in the driver for greater readability.
10245
10246 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10247
10248         * XplatUIOSX.cs: Initial support for Standard Cursors.
10249         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10250
10251 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10252
10253         * ComboBox.cs: ability to change style when the ctrl is already
10254         created, missing methods and events, bug fixes, signature fixes
10255
10256 2005-01-19  Peter Bartok  <pbartok@novell.com>
10257
10258         * Cursors.cs (ctor): Added ctor to fix signature
10259
10260 2005-01-18  Peter Bartok  <pbartok@novell.com>
10261
10262         * Button.cs: Implemented DoubleClick event
10263         * ButtonBase.cs:
10264           - Fixed keyboard handling to behave like MS, where the press of
10265             Spacebar is equivalent to a mousedown, and the key release is
10266             equivalent to mouseup. Now a spacebar push will give the same
10267             visual feedback like a mouse click.
10268           - Added missing attributes
10269           - Added ImeModeChanged event
10270           - Added support for generating DoubleClick event for derived classes
10271         * CheckBox.cs:
10272           - Implemented DoubleClick event
10273           - Added missing attributes
10274         * CommonDialog.cs: Added missing attribute
10275         * ContextMenu.cs: Added missing attributes
10276         * RadioButton.cs:
10277           - AutoChecked buttons do not allow to be unselected when clicked
10278             (otherwise we might end up with no selected buttons in a group)
10279           - Added missing attributes
10280           - Implemented DoubleClickEvent
10281         * ThreadExceptionDialog.cs: Enabled TextBox code
10282
10283 2005-01-18  Peter Bartok  <pbartok@novell.com>
10284
10285         * Form.cs: Removed debug output
10286         * Button.cs: Added support for DoubleClick method
10287
10288 2005-01-18  Peter Bartok  <pbartok@novell.com>
10289
10290         * Form.cs:
10291           - Added method to parent window that allows triggering size
10292             calculations when a menu is added/removed
10293           - set_Menu: Cleaned up mess from early days of Form and Control,
10294             now properly triggers a recalc when a menu is added/removed
10295           - Added case to select form itself as focused form if no child
10296             controls exist
10297           - Added PerformLayout call when showing dialog, to ensure properly
10298             placed controls
10299         * Control.cs:
10300           - Select(): Made internal so Form can access it
10301           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10302             status
10303         * Application.cs (Run): Removed hack and calls PerformLayout instead
10304           to trigger calculation when Form becomes visible
10305
10306 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10307
10308         * ComboBox.cs: fixes for ownerdraw
10309
10310 2005-01-18  Peter Bartok  <pbartok@novell.com>
10311
10312         * TextControl.cs:
10313           - Sentinel is no longer static, each Document gets it's own, this
10314             avoids locking or alternatively overwrite problems when more
10315             than one text control is used simultaneously.
10316           - Switched to use Hilight and HilightText brushes for text selection
10317
10318         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10319
10320 2005-01-18  Peter Bartok  <pbartok@novell.com>
10321
10322         * Control.cs:
10323           - Hooked up the following events:
10324                 o ControlAdded
10325                 o ControlRemoved
10326                 o HandleDestroyed
10327                 o ImeModeChanged
10328                 o ParentChanged
10329                 o TabStopChanged
10330                 o Invalidated
10331                 o SystemColorsChanged
10332                 o ParentFontChanged
10333                 o Move
10334           - Removed debug output
10335           - Added a call to the current theme's ResetDefaults when a color change
10336             is detected
10337         * Form.cs: Now setting the proper ImeMode
10338         * Theme.cs: Defined a method to force recreation of cached resources
10339           and rereading of system defaults (ResetDefaults())
10340         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10341
10342 2005-01-17  Peter Bartok  <pbartok@novell.com>
10343
10344         * Control.cs: Added missing attributes
10345
10346 2005-01-17  Jackson Harper  <jackson@ximian.com>
10347
10348         * TreeNode.cs: Implement editing. Add missing properties selected
10349         and visible.
10350         * TreeView.cs: Implement node editing. Also some fixes to use
10351         Invalidate (invalid area) instead of Refresh when selecting.
10352
10353 2005-01-17  Peter Bartok  <pbartok@novell.com>
10354
10355         * Control.cs:
10356           - Implemented InvokeGotFocus() method
10357           - Implemented InvokeLostFocus() method
10358           - Implemented InvokePaint() method
10359           - Implemented InvokePaintBackground() method
10360           - Implemented InvokeClick() method
10361           - Implemented FindForm() method
10362           - Implemented RectangleToClient() method
10363           - Implemented ClientToRectangle() method
10364           - Implemented ResetBackColor() method
10365           - Implemented ResetCursor() method
10366           - Implemented ResetFont() method
10367           - Implemented ResteForeColor() method
10368           - Implemented ResetImeMode() method
10369           - Implemented ResetLeftToRight() method
10370           - Implemented ResetText() method
10371           - Implemented Scale() methods
10372           - Implemented ScaleCore() method
10373           - Implemented Update() method
10374           - Removed unused variables
10375           - Stubbed AccessibilityNotifyClients and
10376             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10377             with those yet)
10378           - Now setting proper default for RightToLeft property
10379           - Fixed bug in SetClientSizeCore that would cause windows to get
10380             really big
10381           - Now sending Click/DoubleClick events
10382           - Now selecting controls when left mouse button is clicked on
10383             selectable control
10384         * AccessibleEvents.cs: Added
10385         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10386         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10387         * XplatUIWin32.cs: Implemented UpdateWindow() method
10388         * XplatUIX11.cs: Implemented UpdateWindow() method
10389         * Form.cs: Removed stray semicolon causing CS0162 warning
10390         * ThemeWin32Classic.cs: Fixed unused variable warnings
10391         * ScrollableControl.cs: Now calls base method for ScaleCore
10392         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10393           style to avoid interference with internal click handler (which is
10394           different than standard Control click handling)
10395         * RadioButton.cs:
10396           - Now unchecks all sibling radio buttons when control is
10397             selected (Fixes #68756)
10398           - Removed internal tabstop variable, using the one inherited from
10399             Control
10400
10401 2005-01-17  Jackson Harper  <jackson@ximian.com>
10402
10403         * NavigateEventArgs.cs: Fix base type.
10404         * LinkLabel.cs: Sig fix
10405         
10406 2005-01-17  Jackson Harper  <jackson@ximian.com>
10407
10408         * TreeView.cs: Only invalidate the effected nodes bounds when
10409         selecting nodes.
10410
10411 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10412
10413         * XplatUIWin32.cs: fixes Win32 marshaling
10414         * XplatUIX11.cs: fixes method signature
10415
10416 2005-01-17  Peter Bartok  <pbartok@novell.com>
10417
10418         * XplatUIX11.cs: Clean up resources when we no longer need them
10419
10420 2005-01-17  Peter Bartok  <pbartok@novell.com>
10421
10422         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10423           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10424           and DestroyCursor() methods.
10425         * Cursor.cs: Partially implemented, now supports standard cursors;
10426           still contains some debug code
10427         * Cursors.cs: Implemented class
10428         * Control.cs:
10429           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10430             appropriate cursor
10431           - Implemented Cursor property
10432           - Replaced break; with return; more straightforwar and possibly
10433             faster
10434           - Now properly setting the result for WM_HELP
10435         * X11Structs.cs: Added CursorFontShape enum
10436         * XplatUIStructs.cs:
10437           - Added StdCursor enum (to support DefineStdCursor() method)
10438           - Added HitTest enum (to support sending WM_SETCURSOR message)
10439         * XplatUIX11.cs:
10440           - Now sends the WM_SETCURSOR message
10441           - Implemented new cursor methods
10442         * XplatUIOSX.cs: Stubbed new cursor methods
10443         * XplatUIWin32.cs:
10444           - Implemented new cursor methods
10445           - Added GetSystemMetrics function and associated enumeration
10446
10447 2005-01-15  Peter Bartok  <pbartok@novell.com>
10448
10449         * Control.cs:
10450           - WndProc(): Now handles EnableNotifyMessage
10451           - SelectNextControl(): Fixed bug where if no child or sibling
10452             controls exist we looped endlessly
10453
10454 2005-01-14  Jackson Harper  <jackson@ximian.com>
10455
10456         * TreeView.cs: Recalculate the tab pages when a new one is added
10457         so that the proper bounding rects are created.
10458
10459 2005-01-14  Jackson Harper  <jackson@ximian.com>
10460
10461         * TreeView.cs: Draw a gray box instead of a grip in the lower
10462         right hand corner when there are both horizontal and vertical
10463         scroll bars.
10464
10465 2005-01-14  Jackson Harper  <jackson@ximian.com>
10466
10467         * Control.cs: When erasing backgrounds use FromHwnd instead of
10468         FromHdc when there is a NULL wparam. This occurs on the X driver.
10469         * XplatUIX11.cs: Set the wparam to NULL.
10470
10471 2005-01-13  Jackson Harper  <jackson@ximian.com>
10472
10473         * PictureBox.cs: Implement missing methods (except ToString, need
10474         to test that on windows) and events. When visibility is changed we
10475         need to redraw the image because the buffers are killed. When size
10476         is changed refresh if the sizemode needs it.
10477
10478 2005-01-13  Peter Bartok  <pbartok@novell.com>
10479
10480         * Control.cs (SelectNextControl): Was using wrong method to select
10481           a control
10482
10483 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10484
10485         * ComboBox.cs: fixes dropstyle
10486
10487 2005-01-13  Peter Bartok  <pbartok@novell.com>
10488
10489         * Form.cs:
10490           - Implemented Select() override
10491           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10492           - Now sets keyboard focus on startup
10493         * Control.cs (SelectNextControl): Now properly handles directed=true
10494         * TextBoxBase.cs:
10495           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10496           - Added (really bad) focus rectangle (mostly for testing)
10497         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10498           to enforce redraw on focus changes
10499         * ContainerControl.cs:
10500           - Fixed detection of Shift-Tab key presses
10501           - Fixed traversal with arrow keys
10502         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10503           gonna keep this or if it's complete yet
10504         
10505 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10506
10507         * ComboBox.cs: missing properties, fixes
10508
10509 2005-01-13  Peter Bartok  <pbartok@novell.com>
10510
10511         * Panel.cs (ctor): Setting Selectable window style to off
10512         * Splitter.cs (ctor): Setting Selectable window style to off
10513         * GroupBox.cs (ctor): Setting Selectable window style to off
10514         * Label.cs (ctor): Setting Selectable window style to off
10515
10516 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10517
10518         * UpDownBase.cs (InitTimer): If the timer has been already
10519         created, enable it.
10520
10521         Use a TextBox instead of a Label.
10522
10523 2005-01-12  Jackson Harper  <jackson@ximian.com>
10524
10525         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10526         draw the connecting node lines (when ShowLines is true).
10527         * TreeNode.cs: The nodes index can now be updated. This is used
10528         when a node collection is sorted.
10529         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10530         insert or an existing unsorted node collection can be sorted.
10531         
10532 2005-01-12  Peter Bartok  <pbartok@novell.com>
10533
10534         * ContainerControl.cs: Implemented ProcessDialogKeys()
10535
10536 2005-01-12  Peter Bartok  <pbartok@novell.com>
10537
10538         * Control.cs:
10539           - Implemented SelectNextControl() method
10540           - Several focus related bug fixes
10541           - Fixed Docking calculations to match MS documentation and
10542             behaviour
10543
10544 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10545
10546         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10547         bug fixes
10548
10549 2005-01-12  Peter Bartok  <pbartok@novell.com>
10550
10551         * Control.cs:
10552           - Fixed broken Contains() method
10553           - Implemented GetNextControl() method. Finally. This is the pre-
10554             requisite for focus handling.
10555
10556 2005-01-12  Peter Bartok  <pbartok@novell.com>
10557
10558         * OSXStrucs.cs: Added
10559
10560 2005-01-12  Peter Bartok  <pbartok@novell.com>
10561
10562         * XplatUIWin32.cs:
10563           - Removed PeekMessageFlags
10564           - Implemented SetWindowStyle() method
10565         * XplatUIStructs.cs: Added PeekMessageFlags
10566         * X11Structs: Added missing border_width field to XWindowChanges struct
10567         * XplatUIX11.cs:
10568           - PeekMessage: Now throws exception if flags which are not yet
10569             supported are passed
10570           - Implemented SetWindowStyle() method
10571           - Fixed SetZOrder to handle AfterHwnd properly
10572         * XplatUI.cs: Added SetWindowStyle() method
10573         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10574         * Control.cs:
10575           - Implemented UpdateStyles() method
10576           - Implemented UpdateZOrder() method
10577         * XplatUIOSX.cs: Added SetWindowStyle() stub
10578
10579 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10580
10581         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10582         button mouse).
10583
10584
10585 2005-01-11  Jackson Harper  <jackson@ximian.com>
10586
10587         * TreeView.cs: Still need to draw lines to siblings even if out of
10588         the current node is out of the clip.
10589
10590 2005-01-11  Jackson Harper  <jackson@ximian.com>
10591
10592         * TreeView.cs: When setting the hbar/vbar/grip position use
10593         SetBounds so that perform layout is only called once. Also suspend
10594         and resume layout so layout is only done once for all controls.
10595         - Removed some debug fluff
10596         * SizeGrip.cs: Call base implmentation in overriding methods.
10597         - When visibility is changed the drawing buffers are killed so we
10598         need to redraw.
10599
10600 2005-01-11  Jackson Harper  <jackson@ximian.com>
10601
10602         * TreeView.cs: Calculate the open node count while drawing. This
10603         saves us an entire tree traversal for every paint operation. Use
10604         a member var for the open node count so less vars are passed around.
10605
10606 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10607
10608         * MonthCalendar.cs:
10609         - fixed selection to use mousemove, not mouse polling on timer
10610         * ThemeWin32Classic.cs
10611         - removed redundant unused variable "no_more_content"
10612         
10613 2005-01-11  Peter Bartok  <pbartok@novell.com>
10614
10615         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10616           are pending, so it now calls PeekMessage instead of GetMessage;
10617           implemented a incomplete version of PeekMessage
10618         
10619 2005-01-11  Peter Bartok  <pbartok@novell.com>
10620
10621         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10622           I18n issues
10623         * TextBoxBase.cs: Added sending of TextChanged event
10624
10625 2005-01-10  Jackson Harper  <jackson@ximian.com>
10626
10627         * TreeView.cs: Try not to draw outside the clipping rectangle on
10628         each node element.
10629
10630 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10631
10632         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10633
10634 2005-01-10  Jackson Harper  <jackson@ximian.com>
10635
10636         * TreeView.cs:
10637         - Implement fast scrolling. Now only the newly
10638         exposed nodes are drawn and the old image is moved using the
10639         XplatUI::ScrollWindow method.
10640         - Factor in height of nodes when calculating whether or not the
10641         node is in the clipping rect.
10642
10643 2005-01-10  Jackson Harper  <jackson@ximian.com>
10644
10645         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10646
10647 2005-01-10  Peter Bartok  <pbartok@novell.com>
10648
10649         * Application.cs: Added temporary hack to resolve all our resize
10650           required issues on startup. This will get fixed properly at
10651           some point in the future
10652
10653 2005-01-10  Jackson Harper  <jackson@ximian.com>
10654
10655         * SizeGrip.cs: New internal class that is used as a sizing
10656         grip control...hence the name.
10657
10658 2005-01-10  Peter Bartok  <pbartok@novell.com>
10659
10660         * Control.cs: Implemented proper TabIndex handling, now assigning
10661           a tabindex when a control is added to a container
10662         * GroupBox.cs (ctor): Now sets the Container style bit, required
10663           for Control.GetNextControl()
10664
10665 2005-01-09  Jackson Harper  <jackson@ximian.com>
10666
10667         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10668
10669 2005-01-09  Peter Bartok <pbartok@novell.com>
10670
10671         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10672           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10673           an overload for ScrollWindow to allow only scrolling a rectangle
10674
10675 2005-01-09  Peter Bartok <pbartok@novell.com>
10676
10677         * Form.cs:
10678           - Implemented SetDesktopBounds method
10679           - Implemented SetDesktopLocation method
10680
10681 2005-01-08  Jackson Harper  <jackson@ximian.com>
10682
10683         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10684         the node count has changed, this removes to VScroll::Refresh calls
10685         when drawing.
10686
10687 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10688
10689         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10690
10691 2005-01-07  Jackson Harper  <jackson@ximian.com>
10692
10693         * TreeNode.cs: Just update the single node when it is
10694         checked. Don't refresh after toggling, the Expand/Collapse already
10695         handles this.
10696         * TreeView.cs: Respect clipping a little more when drawing. Try
10697         not to redraw things that don't need to be redrawn. Just hide the
10698         scrollbars when they are no longer needed instead of removing
10699         them, so they don't have to be created again and again.
10700         
10701 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10702
10703         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10704         coordinates to window space to place the caret properly, FIXED.
10705         Implement GetWindowState & SetWindowState
10706
10707 2005-01-06  Peter Bartok <pbartok@novell.com>
10708
10709         * Form.cs:
10710           - Implemented ClientSize property
10711           - Implemented DesktopBounds property
10712           - Implemented DesktopLocation property
10713           - Implemented IsRestrictedWindow property
10714           - Implemented Size property
10715           - Implemented TopLevel property
10716           - Implemented FormWindowState property
10717         * Control.cs:
10718           - Implemented GetTopLevel() method
10719           - Implemented SetTopLevel() method
10720         * X11Structs.cs (Atom):
10721           - Added AnyPropertyType definition
10722           - Added MapState definiton and updated XWindowAttribute struct
10723         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10724         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10725         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10726         * XplatUIWin32.cs:
10727           - Implemented GetWindowState() and SetWindowState() methods
10728           - Fixed Win32GetWindowLong return type
10729         * XplatUIX11.cs:
10730           - Introduced central function for sending NET_WM messages
10731           - Implemented GetWindowState() and SetWindowState() methods
10732         * TextBoxBase.cs (set_Lines):
10733           - Now uses Foreground color for text added via Text property (Duh!)
10734           - Added code to remember programmatically requested size (fixes
10735             behaviour when Multiline is set after Size)
10736           - Added AutoSize logic
10737
10738 2005-01-06  Jackson Harper  <jackson@ximian.com>
10739
10740         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10741
10742 2005-01-06  Jackson Harper  <jackson@ximian.com>
10743
10744         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10745         set to less then 0.
10746
10747 2005-01-06  Jackson Harper  <jackson@ximian.com>
10748
10749         * ScrollableControl.cs: Lazy init the scrollbars.
10750         
10751 2005-01-06  Jackson Harper  <jackson@ximian.com>
10752
10753         * Theme.cs: Speed up getting pens and solid brushes, by using
10754         their ARGB as a hash instead of tostring and not calling Contains.
10755
10756 2005-01-06  Peter Bartok <pbartok@novell.com>
10757
10758         * Form.cs:
10759           - Implemented OnActivated and OnDeactivate event trigger
10760           - Implemented Activate() method
10761           - Fixed ShowDialog() to activate the form that was active before
10762             the dialog was shown
10763         * XplatUIX11.cs:
10764           - Added global active_window var that tracks the currently active
10765             X11 window
10766           - Now always grabs Property changes from the root window to always
10767             catch changes on the active window property
10768           - Added code to PropertyNotify handler to send Active/Inactive
10769             messages when state changes. This puts X11 and Win32 en par on
10770             WM_ACTIVATE notifications (except for double notifications when
10771             the user clicks away from our modal window to another one of our
10772             windows)
10773
10774 2005-01-05  Jackson Harper  <jackson@ximian.com>
10775
10776         * ImageList.cs: Implment ctor
10777
10778 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10779
10780         * XplatUIOSX.cs: Implement Activate/SetTopmost
10781
10782 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10783
10784         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10785
10786 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10787
10788         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10789
10790 2005-01-05  Peter Bartok <pbartok@novell.com>
10791
10792         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10793           XplatUIOSX.cs: Added GetActive method to return the currently
10794           active window for the application (or null, if none is active)
10795         * Form.cs:
10796           - Implemented ActiveForm
10797           - Commented out owner assignment for modal dialogs (causes problems
10798             on Win32, since the owner will be disabled)
10799           - Reworked some Active/Focus handling (still incomplete)
10800         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10801           (causes problems on Win32, since the owner will be disabled)
10802         * IWin32Window: Added ComVisible attribute
10803
10804 2005-01-05  Peter Bartok <pbartok@novell.com>
10805
10806         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10807           required XplatUI functions.
10808
10809 2005-01-05  Peter Bartok <pbartok@novell.com>
10810
10811         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10812           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10813           to implement focus and activation handling; still incomplete and
10814           with debug output
10815
10816 2005-01-04  Peter Bartok <pbartok@novell.com>
10817
10818         * TextBoxBase.cs: Changed access level for Document property to
10819           match switch to internal for TextControl
10820
10821 2005-01-04  Peter Bartok <pbartok@novell.com>
10822
10823         * AccessibleObject: Added ComVisible attribute
10824
10825 2005-01-04  Jackson Harper  <jackson@ximian.com>
10826
10827         * X11Keyboard.cs: Remove unneeded var.
10828
10829 2005-01-04  Jackson Harper  <jackson@ximian.com>
10830
10831         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10832         but PAINT.
10833         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10834         ClientMessage. This makes apps exit cleanly (more often).
10835         
10836 2005-01-04  Jackson Harper  <jackson@ximian.com>
10837
10838         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10839         handling focus, return correct colors and fonts,
10840         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10841         handle selection, horizontal scrolling, and mouse interaction.
10842
10843 2005-01-04  Peter Bartok <pbartok@novell.com>
10844
10845         * ICommandExecutor.cs: Added
10846         * IDataGridColumnStyleEditingNotificationService.cs: Added
10847         * IFeatureSupport.cs: Added
10848         * IFileReaderService.cs: Added
10849         * IDataObject.cs: Added ComVisible attribute
10850         * AmbientProperties.cs: Added
10851         * BaseCollection.cs: Added missing attributes
10852         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10853         * BaseCollection.cs: Added missing attributes
10854         * Binding.cs: Added TypeConverter attribute
10855         * BindingContext.cs: Added DefaultEvent attribute
10856         * BindingsCollection.cs: Added DefaultEvent attribute
10857         * Button.cs: Added DefaultValue attribute
10858         * DragEventArgs.cs: Added ComVisible attribute
10859         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10860         * KeyEventArgs.cs: Added ComVisible attribute
10861         * KeyPressEventArgs.cs: Added ComVisible attribute
10862         * MouseEventArgs.cs: Added ComVisible attribute
10863         * NavigateEventArgs.cs: Added
10864         * NavigateEventHandler.cs: Added
10865         * FeatureSupport.cs: Added
10866         * OSFeature.cs: Added
10867         * Theme.cs: Added abstract Version property to support OSFeature
10868         * ThemeWin32Classic.cs: Added Version property to
10869           support OSFeature.Themes
10870         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10871           the proper styles to avoid background drawing are set, also doesn't
10872           match MS signature
10873         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10874         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10875         * ScrollEventArgs.cs: Added ComVisible attribute
10876         * SplitterEventArgs.cs: Added ComVisible attribute
10877         * AccessibleSelection.cs: Added Flags attribute
10878         * Appearance.cs: Added ComVisible attribute
10879         * Border3DSide.cs: Added ComVisible attribute
10880         * Border3DStyle.cs: Added ComVisible attribute
10881         * BorderStyle.cs: Added ComVisible attribute
10882         * DragAction.cs: Added ComVisible attribute
10883         * ErrorBlinkStyle.cs: Added
10884         * ScrollEventType.cs: Added ComVisible attribute
10885         * AnchorStyles.cs: Added Editor attribute
10886         * DockStyle.cs: Added Editor attribute
10887         * HorizontalAlignment.cs: Added ComVisible attribute
10888         * HelpEventArgs.cs: Added ComVisible attribute
10889         * PaintEventArgs.cs: Added IDisposable
10890
10891 2005-01-04  Peter Bartok <pbartok@novell.com>
10892
10893         * TextControl.cs: Switched Line, LineTag and Document classes to
10894           internal
10895
10896 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10897
10898         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10899         Simple mode, fixes, IntegralHeight, etc.
10900
10901 2005-01-04  Peter Bartok <pbartok@novell.com>
10902
10903         * TextBoxBase.cs: Using proper font variable now
10904
10905 2005-01-04  Peter Bartok <pbartok@novell.com>
10906
10907         * Form.cs (ShowDialog): Set parent to owner, if provided
10908         * GroupBox.cs: Removed unused vars
10909         * TextControl.cs:
10910           - Added GetHashCode() for Document and LineTag classes
10911           - Removed unused variables
10912           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10913             to allow translation between continuous char position and line/pos
10914         * CheckBox.cs: Removed vars that are provided by base class
10915         * RadioButton.cs: Removed vars that are provided by base class, added
10916           new keyword where required
10917         * LinkLabel.cs: Added new keyword where required
10918         * Control.cs (WndProc): Removed unused variable
10919         * TextBoxBase.cs:
10920           - Finished SelectionLength property
10921           - Implemented SelectionStart property
10922           - Implemented Text property
10923           - Removed unused vars
10924         * MessageBox.cs: Added new keyword where required
10925         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10926           WndProc signature
10927         * MenuAPI.cs: Added new keyword where required
10928         * ButtonBase.cs: Removed vars that are provided by base class, added
10929           new keyword where required
10930         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10931           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10932           into this)
10933         * Application.cs (Run): Now triggers the ThreadExit event
10934         * CommonDialog.cs: Added new keyword where required; now properly sets
10935           parent (owner) for dialog
10936         * XplatUIX11.cs: Commented out unused vars
10937         * StatusBar.cs: Fixed signature for Text property
10938         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10939
10940 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10941
10942         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10943         TrackBar.cs, MonthCalendar.cs: remove unused vars
10944
10945 2005-01-03  Jackson Harper  <jackson@ximian.com>
10946
10947         * ThemeWin32Classic.cs:
10948         * X11Keyboard.cs: Remove unused vars.
10949
10950 2005-01-03  Peter Bartok  <pbartok@novell.com>
10951
10952         * TextBox.cs:
10953           - set_Text: Tied into TextControl
10954           - set_TextAlignment: Tied into TextControl
10955         * TextControl.cs:
10956           - Added alignment properties and implemented alignment handling
10957             and drawing (still has a bug, not generating proper expose events)
10958           - Added new Line() constructor to allow passing the line alignment
10959           - Fixed selection setting, properly handling end<start now
10960           - Added aligment considerations to RecalculateDocument()
10961         * TextBoxBase.cs:
10962           - Now properly enforces control height for single line controls
10963           - Added support for CharacterCasing
10964           - Added IsInputKey override
10965           - Fixed Keys.Enter logic
10966           - Added SetBoundsCore override
10967           - Fixed mouse selection handling
10968
10969 2005-01-03  Jackson Harper  <jackson@ximian.com>
10970
10971         * TreeView.cs:
10972           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10973           - Checkboxes are always aligned to the bottom of the node,
10974           regardless of item height.
10975           - Use the node bounds to draw the text so we can center it when
10976           the item height is greater then the font height.
10977           - Node::Bounds are only the text part of the node.
10978         * TreeNode.cs: New method to combine collapsing and unchecking all
10979           nodes recursively.
10980
10981 2005-01-02  Jackson Harper  <jackson@ximian.com>
10982
10983         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10984         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10985         tree when a check is changed. TODO: Only refresh the checked node.
10986
10987 2004-12-30  Jackson Harper  <jackson@ximian.com>
10988
10989         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10990         * TreeNode.cs: When collapsing make sure to never collapse the
10991         root node.
10992
10993 2004-12-29  Jackson Harper  <jackson@ximian.com>
10994
10995         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10996         
10997 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10998
10999         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11000
11001 2004-12-28  Peter Bartok  <pbartok@novell.com>
11002
11003         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11004           not yet assigned
11005
11006 2004-12-28  Peter Bartok  <pbartok@novell.com>
11007
11008         * Control.cs (WndProc): Added WM_HELP handler, now generates
11009           HelpRequested event
11010         * Form.cs: Added HelpButton property and required support code
11011         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11012
11013 2004-12-28  Peter Bartok  <pbartok@novell.com>
11014
11015         * CommonDialog.cs:
11016           - Made DialogForm.owner variable internal
11017           - Added check to ensure owner form is set before setting
11018             owner properties in CreateParams
11019
11020 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11021
11022         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11023           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11024           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11025           system to support borderless/titleless windows (implements menus).
11026           Fix GetWindowPos.  Implement initial background color support for
11027           views.
11028
11029 2004-12-28  Peter Bartok  <pbartok@novell.com>
11030
11031         * Form.cs (get_CreateParams): Make sure we have an owner before using
11032           the owner variable. Implement proper default if no owner exists
11033
11034 2004-12-28  Peter Bartok  <pbartok@novell.com>
11035
11036         * In preparation for making Managed.Windows.Forms the default build target
11037           for System.Windows.Forms, the following stubbed files were added.
11038           Dialogs are currently being implemented by contributors and are only
11039           short-term place holders.
11040         * ColorDialog.cs: Initial check-in (minmal stub)
11041         * DataGrid.cs: Initial check-in (minimal stub)
11042         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11043         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11044         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11045         * FontDialog.cs: Initial check-in (minimal stub)
11046         * FileDialog.cs: Initial check-in (minimal stub)
11047         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11048         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11049         * OpenFileDialog: Initial check-in (minimal stub)
11050         * IComponentEditorPageSite.cs: Initial check-in
11051         * Splitter.cs: Initial check-in (for Jackson)
11052         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11053         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11054         * TextBox.cs: Initial check-in; still needs some wiring to
11055           TextControl backend
11056         * Form.cs: Implemented ControlBox property
11057         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11058         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11059         * TextControl.cs: Added selection functionality; added todo header
11060         * TextBoxBase.cs:
11061           - Implemented Lines property
11062           - Implemented TextHeight property
11063           - Implemented SelectedText property
11064           - Implemented SelectionLength property
11065           - Implemented SelectAll method
11066           - Implemented ToString method
11067           - Removed and cleaned up some debug code
11068           - Implemented (still buggy) mouse text selection
11069
11070 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11071
11072         * ComboBox.cs: Complete DropDownList implementation, fixes.
11073
11074 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11075
11076         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11077         * ComboBoxStyle.cs: ComboBoxStyle enum
11078         * ComboBox.cs: Initial work on ComboBox control
11079
11080 2004-12-21  Peter Bartok  <pbartok@novell.com>
11081
11082         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11083           forward so that anything that creates a window gets the default,
11084           also no longer uses Visible property in CreateParams to avoid
11085           walking up the parent chain and possibly get the wrong visible
11086           status. Fixed IsVisible to no longer walk up to the parent.
11087
11088 2004-12-21  Peter Bartok  <pbartok@novell.com>
11089
11090         * Form.cs (ShowDialog): Unset modality for the proper window
11091  
11092 2004-12-20  Peter Bartok  <pbartok@novell.com>
11093
11094         * CommonDialog.cs: Initial check-in
11095
11096 2004-12-20  Peter Bartok  <pbartok@novell.com>
11097
11098         * Control.cs (Visible): Now uses the parent window instead of the
11099           client area window for the property
11100
11101         * Form.cs
11102           - ShowDialog(): Now uses the proper window for modality
11103           - The default visibility state for the form parent is now false. This
11104             will prevent the user from seeing all the changes to the form and
11105             its controls before the application hits Application.Run()
11106           - Removed some stale commented out code
11107
11108         * NativeWindow.cs:
11109           - Added FindWindow() method to have a method to check for existence
11110             of a window handle
11111           - Added ability to override default exception handling (for example
11112             when debugging with VS.Net; to do this the ExternalExceptionHandler
11113             define must be set
11114           - Removed some useless debug output
11115
11116         * XplatUIX11.cs:
11117           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11118             not working as expected
11119           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11120             property to allow switching back to the modal window if focus is
11121             given to another one of our windows (Application Modal)
11122           - Now only sets override_redirect if we create a window
11123             without WS_CAPTION
11124           - Moved EventMask selection before mapping of newly created window
11125             so we can catch the map event as well
11126           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11127           - Added various Atom related DllImports
11128           - Implemented Exit() method
11129           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11130             in the CreateParams
11131
11132         * MessageBox.cs: Now properly deals with the FormParent window by
11133           providing an override the FormParent CreateParams property to
11134           set as POPUP instead of OVERLAPPED window.
11135
11136 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11137
11138         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11139         Minor code cleanup.
11140
11141 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11142         
11143         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11144
11145 2004-12-18  Peter Bartok  <pbartok@novell.com>
11146
11147         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11148           implementing SetModal() method
11149
11150 2004-12-18  Peter Bartok  <pbartok@novell.com>
11151
11152         * X11Structs.cs (XGCValues): Fixed type of function element
11153         * XplatUI.cs: Added ScrollWindow() method
11154         * XplatUIDriver.cs: Added ScrollWindow() abstract
11155         * XplatUIWin32.cs: Implemented ScrollWindow() method
11156         * XplatUIX11.cs: Implemented ScrollWindow() method
11157         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11158
11159 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11160
11161         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11162         Some more keyboard support (INCOMPLETE)
11163
11164 2004-12-17  Peter Bartok  <pbartok@novell.com>
11165
11166         * TextControl.cs:
11167         - Added color attribute to line tags.
11168         - Added color argument to all functions dealing with tags
11169         - Added color argument support to various functions
11170         - Fixed miss-calculation of baseline/shift in certain circumstances
11171
11172         * TextBoxBase.cs: Added new color option to test code
11173
11174 2004-12-17  Jackson Harper  <jackson@ximian.com>
11175
11176         * TreeNode.cs:
11177         * MonthCalendar.cs: Signature fixes
11178
11179 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11180
11181         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11182         keyboard event moved it.  Create a new graphics context for each paint resolves this
11183
11184 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11185
11186         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11187         Make caret exist and go blink blink.  Initial keyboard support.
11188         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11189         works.
11190
11191 2004-12-17  Jackson Harper  <jackson@ximian.com>
11192
11193         * XplatUIStructs.cs: Updated set of virtual keycodes.
11194         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11195
11196 2004-12-17  Jackson Harper  <jackson@ximian.com>
11197
11198         * XplatUIX11.cs: Prune old keyboard code.
11199
11200 2004-12-17  Jackson Harper  <jackson@ximian.com>
11201
11202         * XplatUIX11.cs: When generating mouse wparams get the modifier
11203         keys from the ModifierKeys property.
11204
11205 2004-12-17  Jackson Harper  <jackson@ximian.com>
11206
11207         * X11Keyboard.cs: Send up/down input when generating
11208         messages. Remove some unused vars.
11209
11210 2004-12-17  Jackson Harper  <jackson@ximian.com>
11211
11212         * TabControl.cs:
11213         * TreeView.cs: get rid of warnings.
11214
11215 2004-12-17  Jackson Harper  <jackson@ximian.com>
11216
11217         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11218
11219 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11220
11221         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11222           CheckedListBox.cs: Implementation
11223
11224 2004-12-17  Peter Bartok  <pbartok@novell.com>
11225
11226         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11227
11228 2004-12-16  Peter Bartok  <pbartok@novell.com>
11229
11230         * TextControl.cs:
11231           - InsertCharAtCaret(): Fixed start pos fixup
11232           - CaretLine_get: No longer derives the line from the tag, the tag
11233             could be stale if lines in the document have been added or deleted
11234           - RebalanceAfterDelete(): Fixed bug in balancing code
11235           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11236           - Line.Streamline(): Now can also elminate leading empty tags
11237           - DumpTree(): Added a few more tests and prevented exception on
11238             uninitialized data
11239           - Added Debug section for Combining lines
11240           - Delete(): Now copies all remaining properties of a line
11241           
11242         * TextBoxBase.cs:
11243           - Left mousebutton now sets the caret (and middle button still acts
11244             as formatting tester, which must go away soon)
11245           - Added Debug section for Deleting/Combining lines
11246           - Fixed calculations for UpdateView after Combining lines
11247
11248 2004-12-16  Peter Bartok  <pbartok@novell.com>
11249
11250         * TextControl.cs: Now properly aligns text on a baseline, using the
11251           new XplatUI.GetFontMetrics() method. Simplified several calculations
11252         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11253           defined
11254
11255 2004-12-16  Peter Bartok  <pbartok@novell.com>
11256
11257         * XplatUI.cs: Added GetFontMetrics() method
11258         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11259         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11260           into libgdiplus, our private GetFontMetrics function
11261         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11262         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11263
11264 2004-12-16  Jackson Harper  <jackson@ximain.com>
11265
11266         * XplatUIStruct.cs: Add enum for dead keys
11267         * X11Keyboard.cs: Map and unmap dead keys.
11268
11269 2004-12-16  Jackson Harper  <jackson@ximian.com>
11270
11271         * X11Keyboard.cs: Detect and use the num lock mask.
11272
11273 2004-12-16  Peter Bartok  <pbartok@novell.com>
11274
11275         * Control.cs (CreateGraphics): Added check to make sure the
11276           handle of the window exists before calling Graphics.FromHwnd()
11277
11278 2004-12-16  Peter Bartok  <pbartok@novell.com>
11279
11280         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11281           contains a lot of code that's not supposed to be there for the
11282           real thing, but required for developing/testing the textbox
11283           backend.
11284
11285 2004-12-16  Peter Bartok  <pbartok@novell.com>
11286
11287         * TextControl.cs:
11288         - Fixed Streamline method
11289         - Added FindTag method to Line
11290         - Added DumpTree method for debugging
11291         - Added DecrementLines() method for deleting lines
11292         - Fixed UpdateView to update the cursor to end-of-line on single-line
11293           updates
11294         - Added PositionCaret() method
11295         - Fixed MoveCaret(LineDown) to move into the last line, too
11296         - Added InsertChar overload
11297         - Fixed InsertChar tag offset calculations
11298         - Added DeleteChar() method
11299         - Added Combine() method for folding lines
11300         - Fixed Delete() method, no longer allocates wasted Line object and
11301           now copies all properties when swapping nodes
11302         - Delete() method now updates document line counter
11303
11304 2004-12-15  Jackson Harper  <jackson@ximian.com>
11305
11306         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11307         * X11Keyboard.cs: Expose the currently selected modifier keys
11308         through a property.
11309
11310 2004-12-15  Peter Bartok  <pbartok@novell.com>
11311
11312         * TextControl.cs: Initial check-in. Still incomplete
11313
11314 2004-12-15  Jackson Harper  <jackson@ximian.com>
11315
11316         * TreeNode.cs:
11317         * TreeView.cs: Fix build on csc (second time today ;-))
11318
11319 2004-12-15  Jackson Harper  <jackson@ximian.com>
11320
11321         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11322         is calculated and use this for click testing.
11323         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11324
11325 2004-12-15  Jackson Harper  <jackson@ximian.com>
11326
11327         * TreeView.cs: Pass the nodes image index to the image list when
11328         drawing that image.
11329
11330 2004-12-15  Jackson Harper  <jackson@ximian.com>
11331
11332         * X11Keyboard.cs: Set messages hwnd.
11333         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11334         post_message calls.
11335
11336 2004-12-15  Jackson Harper  <jackson@ximian.com>
11337
11338         * X11Keyboard.cs: Fix to compile with csc.
11339         
11340 2004-12-15  Jackson Harper  <jackson@ximian.com>
11341
11342         * X11Structs.cs: Add key mask values
11343         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11344         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11345         down/up foo into WM_CHAR foo
11346         * KeyboardLayouts.cs: Common keyboard layouts
11347         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11348         post messages into the main queue.
11349
11350 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11351
11352         * Button.cs: implement ProcessMnemonic
11353         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11354           brushes everytime
11355         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11356         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11357
11358 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11359         
11360         * MonthCalendar.cs: Implemented click-hold for next/previous month
11361           and date selection
11362           
11363 2004-12-11  Peter Bartok  <pbartok@novell.com>
11364
11365         * X11Structs.cs:
11366           - Added XKeyboardState (moved from XplatUIX11.cs)
11367           - Added XCreateGC related enums and structures
11368           - Added GXFunction for XSetFunction
11369
11370         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11371
11372         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11373           CaretVisible() calls
11374
11375         * ToolTip.cs: Added code to prevent stealing focus from app windows
11376
11377         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11378           DestroyCaret, SetCaretPos and CaretVisible)
11379
11380         * XplatUIX11.cs:
11381           - Added implementation for caret functions
11382           - Moved hover variables into a struct, to make it a bit easier
11383             on the eyes and to debug
11384           - Removed XKeyboardState (moved to XplatUIX11.cs)
11385           - Moved Keyboard properties into the properties region
11386
11387         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11388           call to get a graphics context for our control
11389
11390         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11391
11392         * TreeView.cs: Fixed bug. No matter what color was set it would always
11393           return SystemColors.Window
11394
11395         * XplatUIWin32.cs: Implemented caret overrides
11396
11397 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11398
11399         * ListBox.cs: fire events, implement missing methods and properties,
11400         sorting.
11401
11402 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11403
11404         * MonthCalendar.cs: invalidation bug fixing
11405         * ThemeWin32Classic.cs: paint fixing
11406
11407 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11408
11409         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11410         prepare the CGContextRef there now.
11411
11412 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11413
11414         * MonthCalendar.cs:
11415           - optimisationL only invalidate areas that have changed
11416         * ThemeWin32Classic.cs:
11417           - only paint parts that intersect with clip_area
11418
11419 2004-12-09  Peter Bartok  <pbartok@novell.com>
11420
11421         * Application.cs: Undid changes from r37004 which cause problems
11422         on X11
11423
11424 2004-12-09  Ravindra  <rkumar@novell.com>
11425
11426         * ToolBar.cs: Added support for displaying ContextMenu
11427         attached to a button on ToolBar.
11428         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11429         property.
11430
11431 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11432
11433         * Label.cs: autosize works in text change and removes unnecessary
11434         invalidate
11435
11436 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11437
11438         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11439         remove warnings
11440
11441 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11442
11443         * XplatUIOSX.cs: Added mouse move/click/grab support
11444         Remove some debugging WriteLines not needed anymore.
11445         Add window resizing/positioning.
11446         Fix visibility on reparenting.
11447
11448 2004-12-08  Peter Bartok  <pbartok@novell.com>
11449
11450         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11451
11452 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11453
11454         * XplatUIOSX.cs: Initial checkin
11455         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11456
11457 2004-12-03  Ravindra <rkumar@novell.com>
11458
11459         * ListView.cs: Added some keybindings and fixed scrolling.
11460         ScrollBars listen to ValueChanged event instead of Scroll
11461         Event. This would let us take care of all changes being
11462         done in the scrollbars' values programmatically or manually.
11463         * ListView.cs (CanMultiselect): Added a check for shift key.
11464         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11465         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11466         of ListViewSubItemCollection as well.
11467
11468 2004-12-06  Peter Bartok <pbartok@novell.com>
11469
11470         * Control.cs (Parent): Added check and exception to prevent
11471         circular parenting
11472
11473 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11474
11475         * ListBox.cs: implemented clipping, selection single and multiple,
11476         bug fixing
11477
11478 2004-12-03  Ravindra <rkumar@novell.com>
11479
11480         * ListView.cs (ListView_KeyDown):
11481         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11482         when CTRL key is pressed.
11483         * ListViewItem.cs (Selected): Fixed setting the property.
11484
11485 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11486
11487         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11488
11489         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11490         MinimizeBox, ShowInTaskbar, TopMost properties.
11491
11492         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11493         will be implemented).
11494
11495 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11496
11497         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11498
11499         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11500         tests.
11501         
11502         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11503         
11504         * TreeView.cs: BackColor is Colors.Window.
11505
11506 2004-12-01  Jackson Harper  <jackson@ximian.com>
11507
11508         * TreeView.cs: When resizing the tree if the user is making it
11509         smaller we don't get expose events, so we need to handle adding
11510         the horizontal scrollbar in the size changed handler as well as
11511         the expose handler.
11512
11513 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11514
11515         * DrawItemState.cs: fixes wrong enum values
11516
11517 2004-12-01  Jackson Harper  <jackson@ximian.com>
11518
11519         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11520
11521 2004-12-01  Jackson Harper  <jackson@ximian.com>
11522
11523         * NodeLabelEditEventArgs.cs:
11524         * NodeLabelEditEventHandler.cs:
11525         * OpenTreeNodeEnumerator.cs:
11526         * TreeNode.cs:
11527         * TreeNodeCollection.cs:
11528         * TreeView.cs:
11529         * TreeViewAction.cs:
11530         * TreeViewCancelEventArgs.cs:
11531         * TreeViewCancelEventHandler.cs:
11532         * TreeViewEventArgs.cs:
11533         * TreeViewEventHandler.cs: Initial implementation.
11534
11535 2004-12-01  Ravindra <rkumar@novell.com>
11536
11537         * ListView.cs (CalculateListView): Fixed scrolling related
11538         calculations. Also, removed some debug statements from other
11539         places.
11540         * ListViewItem.cs: Changed access to 'selected' instance variable
11541         from private to internal.
11542         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11543
11544 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11545
11546         * ThemeWin32Classic.cs: remove cache of brush and pens for
11547         specific controls and use the global system, fixes scrollbutton
11548         bugs (for small sizes, disabled, etc)
11549         
11550         * ScrollBar.cs: does not show the thumb for very small controls
11551         (as MS) and allow smaller buttons that the regular size
11552
11553 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11554
11555         * UpDownBase.cs: Add abstract methods for the interface.
11556         Add new virtual methods (need to be hooked up to TextEntry when it
11557         exists).
11558         Add override methods for most features.
11559         Computes the size, forces the height of the text entry.
11560
11561         * NumericUpDown.cs: Put here the current testing code.
11562
11563         * Set eol-style property on all files that do not have mixed line
11564         endings, to minimize the future problems.  There are still a few
11565         files with mixed endings, and someone should choose whether they
11566         want to move it or not.
11567
11568 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11569
11570         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11571         System.Colors
11572         
11573 2004-11-30  Ravindra <rkumar@novell.com>
11574
11575         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11576         drawing and replaced use of SystemColors by theme colors.
11577         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11578         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11579         same ListViewItem is being added more than once.
11580
11581 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11582
11583         * MonthCalendar.cs:
11584           - ControlStyles love to make the control not flicker
11585           
11586 2004-11-30  Peter Bartok  <pbartok@novell.com>
11587
11588         * CharacterCasing.cs: Added
11589
11590 2004-11-29  Peter Bartok  <pbartok@novell.com>
11591
11592         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11593           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11594           I am removing these files as they conflict with already completed
11595           work. While it is fantastic to get contributions to MWF, I
11596           respectfully ask that everyone please coordinate their contributions
11597           through mono-winforms-list or #mono-winforms at this time. We're
11598           explicitly avoiding stubbing and don't want controls that don't have
11599           their basic functionality implemented in svn. Please also see
11600           http://www.mono-project.com/contributing/winforms.html
11601
11602
11603 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11604
11605         * Application.cs (ModalRun): Don't hang after exit.
11606
11607         * Theme.cs: New TreeViewDefaultSize property.
11608
11609         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11610         with less hardcoded SystemColors constant.
11611         Implemented TreeViewDefaultSize.
11612
11613         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11614         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11615
11616
11617 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11618
11619         * MonthCalendar.cs:
11620           - Fix NextMonthDate and PrevMonthDate click moving calendar
11621
11622 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11623
11624         * MonthCalendar.cs:
11625           - Fix usage of ScrollChange Property when scrolling months
11626
11627 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11628
11629         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11630          - Fixes menu destroying
11631          - Support adding and removing items on already created menus
11632
11633 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11634
11635         * MonthCalendar.cs:
11636           - Re-worked all bolded dates handling to match win32
11637         * ThemeWin32Classic.cs:
11638           - Fixed rendering with bolded dates
11639
11640 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11641
11642         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11643         - Horizontal scroolbar
11644         - Multicolumn
11645         - Fixes
11646
11647
11648 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11649
11650         * MonthCalendar.cs:
11651           - Fix Usage of MaxSelectionCount from SelectionRange
11652           - Fixed Shift + Cursor Selection
11653           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11654           - Fixed normal cursor selection to be compat with win32
11655           - Fixed Shift + Mouse Click selection
11656
11657 2004-11-24  Peter Bartok <pbartok@novell.com>
11658
11659         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11660         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11661         * XplatUIX11.cs:
11662           - CreatedKeyBoardMsg now updates keystate with Alt key
11663           - Added workaround for timer crash to CheckTimers, Jackson will
11664             develop a proper fix and check in later
11665           - Implemented DispatchMessage
11666           - Removed calling the native window proc from GetMessage (call
11667             now moved to DispatchMessage)
11668
11669         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11670           the keydata (Fixes bug #69831)
11671
11672         * XplatUIWin32.cs:
11673           - (DispatchMessage): Switched to return IntPtr
11674           - Added DllImport for SetFocus
11675
11676 2004-11-24  Ravindra <rkumar@novell.com>
11677
11678         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11679         background drawing.
11680         * ListViewItem.cs: Fixed various properties, calculations
11681         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11682         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11683         and some internal properties. Fixed MouseDown handler and Paint
11684         method.
11685
11686 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11687
11688         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11689
11690 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11691
11692         * ContainerControl.cs: correct accidental check in of local changes
11693
11694 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11695
11696         * ThemeWin32Classic.cs:
11697                 - Fixed Drawing Last month in grid (sometimes not showing)
11698         * MonthCalendar.cs:
11699                 - Fixed title width calculation bug (makeing title small)
11700
11701 2004-11-23  Peter Bartok <pbartok@novell.com>
11702
11703         * XplatUIX11.cs:
11704           - Added generation of WM_MOUSEHOVER event
11705           - Added missing assignment of async_method atom
11706           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11707
11708 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11709
11710         * ThemeWin32Classic.cs:
11711                 - Fixed Drawing of today circle when showtodaycircle not set
11712                 - fixed drawing of first and last month in the grid (gay dates)
11713         * MonthCalendar.cs:
11714                 - Fixed Drawing of today circle
11715                 - Fixed drawing of grady dates
11716                 - Fixed HitTest for today link when ShowToday set to false
11717                 - Fixed DefaultSize to obey ShowToday
11718
11719 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11720
11721         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11722         * System.Windows.Forms/Theme.cs
11723         * MonthCalendar.cs: added for MonthCalendar
11724         * SelectionRange.cs: added for MonthCalendar
11725         * Day.cs: added for MonthCalendar: added for MonthCalendar
11726         * DateRangeEventArgs.cs: added for MonthCalendar
11727         * DateRangeEventHandler.cs: added for MonthCalendar
11728
11729 2004-11-22  Ravindra <rkumar@novell.com>
11730
11731         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11732         property.
11733
11734 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11735
11736         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11737         event handler.
11738         
11739         * NumericUpDown.cs: Added new implementation.
11740         * UpDownBase.cs: Added new implementation.
11741
11742         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11743         implementations.
11744         
11745         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11746         implementations.
11747
11748         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11749         methods.
11750
11751 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11752
11753         * Timer.cs  (Dispose): Should call the base dispose when
11754         overriding.
11755
11756 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11757
11758         * ScrollBar.cs: updates thumb position when max, min or increment
11759         is changed
11760
11761 2004-11-21  Ravindra <rkumar@novell.com>
11762
11763         * ListView.cs: Implemented item selection, activation and
11764         column header style. Fixed properties to do a redraw, if
11765         required. Added support for MouseHover, DoubleClick, KeyDown
11766         and KeyUp event handling and some minor fixes.
11767         * ListViewItem.cs: Fixed constructor.
11768         * ThemeWin32Classic.cs: Improved drawing for ListView.
11769
11770 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11771
11772         * ThemeWin32Classic.cs: initial listbox drawing code
11773         * DrawMode.cs: new enumerator
11774         * ListControl.cs: stubbed class
11775         * ListBox.cs: initial implementation
11776         * Theme.cs: new methods definitions
11777         * SelectionMode.cs: new enumerator
11778
11779 2004-11-17  Peter Bartok  <pbartok@novell.com>
11780
11781         * XplatUIWin32.cs: Added double-click events to the class style
11782         * Control.cs (WndProc):
11783           - Added handling of click-count to MouseDown/ MouseUp events.
11784           - Added handling of middle and right mouse buttons
11785           - Removed old debug code
11786
11787 2004-11-17  Jackson Harper  <jackson@ximian.com>
11788
11789         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11790
11791 2004-11-17  Ravindra <rkumar@novell.com>
11792
11793         * ListView.cs: Added event handling for MouseMove/Up/Down.
11794         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11795         * ThemeWin32Classic.cs: We need to clear the graphics context and
11796         draw column header in a proper state.
11797
11798
11799 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11800
11801         *  Menu.cs: fixes signature
11802
11803 2004-11-16  Peter Bartok  <pbartok@novell.com>
11804
11805         * XplatUIX11.cs (GetMessage): Implemented generation of
11806           double click mouse messages
11807
11808 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11809
11810         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11811         not by menu
11812
11813 2004-11-11  Peter Bartok  <pbartok@novell.com>
11814
11815         * HandleData.cs: Added Visible property
11816         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11817           HandleData
11818         * XplatUIX11.cs: Removed old debug leftovers
11819         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11820         * Control.cs (WndProc): Removed old debug leftovers,
11821           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11822           needed WM_SIZE handling
11823
11824 2004-11-11  Jackson Harper  <jackson@ximian.com>
11825
11826         * OwnerDrawPropertyBag.cs:
11827         * TreeViewImageIndexConverter.cs: Initial implementation
11828
11829 2004-11-10  Jackson Harper  <jackson@ximian.com>
11830
11831         * ThemeWin32Classic.cs:
11832         * TabControl.cs: instead of moving tabs by the slider pos just
11833         start drawing at the tab that is offset by the slider. This way
11834         scrolling always moves by exactly one tab.
11835
11836 2004-11-10  Jackson Harper  <jackson@ximian.com>
11837
11838         * TabControl.cs: You can only scroll left when the slider has
11839         already ben moved right.
11840         
11841 2004-11-10  Jackson Harper  <jackson@ximian.com>
11842
11843         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11844         the clip area.
11845         
11846 2004-11-10  Jackson Harper  <jackson@ximian.com>
11847
11848         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11849         clip area.
11850         
11851 2004-11-09  Jackson Harper  <jackson@ximian.com>
11852
11853         * TabControl.cs (CalcXPos): New helper method so we can determine
11854         the proper place to start drawing vertical tabs.
11855         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11856         
11857 2004-11-09  Jackson Harper  <jackson@ximian.com>
11858
11859         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11860         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11861         and Bottom, left and right are illegal values for this and
11862         multiline is enabled when the alignment is set to left or right.
11863         (DrawTab): Each alignment block should draw the text itself now
11864         because Left requires special love. Also add rendering for Left
11865         aligned tabs.
11866         
11867 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11868
11869         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11870         does not destroy the windows, removes debugging messages
11871
11872 2004-11-09  jba  <jba-mono@optusnet.com.au>
11873
11874         * ThemeWin32Classic.cs
11875         (DrawButtonBase): Fix verticle text rect clipping in windows
11876         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11877         rendering and incorrect text rect clipping
11878         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11879         rendering and incorrect text rect clipping
11880         
11881 2004-11-08  Jackson Harper  <jackson@ximian.com>
11882
11883         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11884         bottom when they are bottom aligned so the bottoms of the tabs get
11885         displayed.
11886         * TabControl.cs (DropRow): Move rows up instead of down when the
11887         tab control is bottom aligned.
11888
11889 2004-11-08 13:59  pbartok
11890
11891         * XplatUIX11.cs:
11892           - Added handling for various window styles
11893           - Added handling for popup windows
11894           - Added SetTopmost handling
11895
11896 2004-11-08 13:55  pbartok
11897
11898         * XplatUIWin32.cs:
11899           - Added argument to SetTopmost method
11900           - Fixed broken ClientToScreen function
11901
11902 2004-11-08 13:53  pbartok
11903
11904         * XplatUIStructs.cs:
11905           - Added missing WS_EX styles
11906
11907 2004-11-08 13:53  pbartok
11908
11909         * XplatUI.cs, XplatUIDriver.cs:
11910           - Added argument to SetTopmost
11911
11912 2004-11-08 13:52  pbartok
11913
11914         * X11Structs.cs:
11915           - Added XSetWindowAttributes structure
11916           - Improved XWindowAttributes structure
11917           - Added SetWindowValuemask enum
11918           - Added window creation arguments enum
11919           - Added gravity enum
11920           - Added Motif hints structure
11921           - Added various Motif flags and enums
11922           - Added PropertyMode enum for property functions
11923
11924 2004-11-08 13:50  pbartok
11925
11926         * Form.cs:
11927           - Fixed arguments for updated SetTopmost method
11928
11929 2004-11-08 13:49  pbartok
11930
11931         * ToolTip.cs:
11932           - Fixed arguments for updated SetTopmost function
11933           - Fixed usage of PointToClient
11934
11935 2004-11-08 13:44  pbartok
11936
11937         * MenuAPI.cs:
11938           - Added Clipping of children and siblings
11939
11940 2004-11-08 13:41  pbartok
11941
11942         * MainMenu.cs:
11943           - Removed SetMenuBarWindow call. We do this in Form.cs
11944
11945 2004-11-08 13:40  jackson
11946
11947         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11948           scrolling jimmi in the correct location with bottom aligned tabs
11949
11950 2004-11-08 13:36  pbartok
11951
11952         * ContainerControl.cs:
11953           - Implemented BindingContext
11954           - Implemented ParentForm
11955
11956 2004-11-08 12:46  jackson
11957
11958         * TabControl.cs: Put bottom rendered tabs in the right location
11959
11960 2004-11-08 07:15  jordi
11961
11962         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11963           removes dead code
11964
11965 2004-11-05 17:30  jackson
11966
11967         * TabControl.cs: When selected tabs are expanded make sure they
11968           don't go beyond the edges of the tab control
11969
11970 2004-11-05 14:57  jackson
11971
11972         * TabControl.cs: Reset show_slider so if the control is resized to
11973           a size where it is no longer needed it's not displayed anymore
11974
11975 2004-11-05 13:16  jackson
11976
11977         * TabControl.cs: Make tab pages non visible when added to the
11978           control
11979
11980 2004-11-05 12:42  jackson
11981
11982         * TabControl.cs: Implement SizeMode.FillToRight
11983
11984 2004-11-05 12:16  jackson
11985
11986         * Control.cs: Do not call CreateHandle if the handle is already
11987           created
11988
11989 2004-11-05 11:46  jackson
11990
11991         * TabControl.cs: Remove superflous call to CalcTabRows
11992
11993 2004-11-05 09:07  jackson
11994
11995         * XplatUIX11.cs: Update for Mono.Posix changes
11996
11997 2004-11-05 07:00  ravindra
11998
11999         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12000           scrolling.
12001
12002 2004-11-04 22:47  jba
12003
12004         * ThemeWin32Classic.cs:
12005           - Fix Button rendering for FlatStyle = Flat or Popup
12006           - Fix RadioButton and CheckBox rendering when Appearance = Button
12007             (normal and flatstyle).
12008           - Correct outer rectangle color when drawing focus rectangle
12009           - Adjust button bounds to be 1 px smaller when focused
12010           - Make button not draw sunken 3d border when pushed (windows compat)
12011           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12012           - Offset the text in RadioButton and Checkbox when being rendered as
12013           a button.
12014           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12015           radiobuttons
12016           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12017           - Fixed disabled text rendering for normally rendered radiobuttons
12018
12019 2004-11-04 10:26  jackson
12020
12021         * TabControl.cs: Recalculate tab rows when resizing
12022
12023 2004-11-04 07:47  jordi
12024
12025         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12026           collection completion, drawing issues, missing features
12027
12028 2004-11-04 05:03  ravindra
12029
12030         * ScrollBar.cs:
12031                 - We need to recalculate the Thumb area when
12032                 LargeChange/maximum/minimum values are changed.
12033           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12034                 than minimum. This is required to handle the case if large_change is
12035                 more than max, and use LargeChange property instead of large_change
12036                 variable.
12037           - We return max+1 when large_change is more than max, like MS does.
12038
12039 2004-11-04 04:29  ravindra
12040
12041         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12042                 - Changed default value signatures (prefixed all with ListView).
12043                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12044                 ListView.
12045           - Fixed calculations for ListViewItem and implemented Clone()
12046           method.
12047
12048 2004-11-04 04:26  ravindra
12049
12050         * Theme.cs, ThemeWin32Classic.cs:
12051                 - Changed default ListView values signatures (prefixed all with
12052                 ListView).
12053           - Fixed default size values for VScrollBar and HScrollBar.
12054                 - Fixed DrawListViewItem method.
12055
12056 2004-11-04 04:05  ravindra
12057
12058         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12059
12060 2004-11-04 04:04  ravindra
12061
12062         * ImageList.cs: Implemented the missing overload for Draw method.
12063
12064 2004-11-03 19:29  jackson
12065
12066         * TabControl.cs: Handle dropping rows on selection properly
12067
12068 2004-11-03 11:59  jackson
12069
12070         * TabControl.cs: remove debug code
12071
12072 2004-11-03 11:52  jackson
12073
12074         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12075           the scrolly widgerywoo
12076
12077 2004-11-02 13:52  jackson
12078
12079         * TabControl.cs: Resize the tab pages and tabs when the tab control
12080           is resized
12081
12082 2004-11-02 13:40  jackson
12083
12084         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12085           selected tab to the bottom
12086
12087 2004-11-02 13:39  jackson
12088
12089         * TabPage.cs: Store the tab pages row
12090
12091 2004-11-02 12:33  jordi
12092
12093         * MenuItem.cs: fixes handle creation
12094
12095 2004-11-02 11:42  jackson
12096
12097         * TabControl.cs: signature fix
12098
12099 2004-11-02 08:56  jackson
12100
12101         * TabControl.cs: Calculate whether the tab is on an edge properly.
12102           Remove top secret debugging code
12103
12104 2004-11-01 19:57  jackson
12105
12106         * TabControl.cs: Add click handling, and proper sizing
12107
12108 2004-11-01 19:47  jackson
12109
12110         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12111           tab controls
12112
12113 2004-11-01 19:39  jackson
12114
12115         * TabPage.cs: add internal property to store the bounds of a tab
12116           page
12117
12118 2004-10-30 04:23  ravindra
12119
12120         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12121           values.
12122
12123 2004-10-30 04:21  ravindra
12124
12125         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12126           fixed calculations.
12127
12128 2004-10-30 03:06  pbartok
12129
12130         * XplatUIX11.cs:
12131           - Removed extension of DllImported libs
12132
12133 2004-10-29 09:55  jordi
12134
12135         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12136           navigation, itemcollection completion, menu fixes
12137
12138 2004-10-27 22:58  pbartok
12139
12140         * XplatUIX11.cs:
12141           - Now throws a nice error message when no X display could be opened
12142
12143 2004-10-26 13:51  jordi
12144
12145         * ListView.cs: removes warning
12146
12147 2004-10-26 03:55  ravindra
12148
12149         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12150           ThemeWin32Classic.cs: Some formatting for my last checkins.
12151
12152 2004-10-26 03:36  ravindra
12153
12154         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12155           control and default values.
12156
12157 2004-10-26 03:35  ravindra
12158
12159         * Theme.cs: Added some default values for ListView control.
12160
12161 2004-10-26 03:33  ravindra
12162
12163         * ToolBar.cs: ToolBar should use the user specified button size, if
12164           there is any. Added a size_specified flag for the same.
12165
12166 2004-10-26 03:33  ravindra
12167
12168         * ColumnHeader.cs: Added some internal members and calculations for
12169           ColumnHeader.
12170
12171 2004-10-26 03:32  ravindra
12172
12173         * ListViewItem.cs: Calculations for ListViewItem.
12174
12175 2004-10-26 03:31  ravindra
12176
12177         * ListView.cs: Added some internal members and calculations for
12178           ListView.
12179
12180 2004-10-22 13:31  jordi
12181
12182         * MenuAPI.cs: speedup menus drawing
12183
12184 2004-10-22 13:16  jackson
12185
12186         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12187           expose event
12188
12189 2004-10-22 11:49  jackson
12190
12191         * Control.cs: oops
12192
12193 2004-10-22 11:41  jackson
12194
12195         * Control.cs: Check to see if the window should have its background
12196           repainted by X when drawing.
12197
12198 2004-10-22 11:31  jackson
12199
12200         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12201           clear is true, this way we do not get flicker from X repainting the
12202           background
12203
12204 2004-10-22 11:28  jackson
12205
12206         * XEventQueue.cs: Queue properly
12207
12208 2004-10-21 09:38  jackson
12209
12210         * XEventQueue.cs: Fix access modifier
12211
12212 2004-10-21 09:36  jackson
12213
12214         * XEventQueue.cs: Don't loose messages
12215
12216 2004-10-21 09:22  jackson
12217
12218         * XEventQueue.cs: Don't loose messages
12219
12220 2004-10-20 04:15  jordi
12221
12222         * BootMode.cs: enum need it by SystemInfo
12223
12224 2004-10-19 21:58  pbartok
12225
12226         * XplatUIWin32.cs:
12227           - Small sanity check
12228
12229 2004-10-19 21:56  pbartok
12230
12231         * Form.cs:
12232           - Added private FormParentWindow class which acts as the container
12233             for our form and as the non-client area where menus are drawn
12234           - Added/Moved required tie-ins to Jordi's menus
12235           - Fixed/Implemented the FormStartPosition functionality
12236
12237 2004-10-19 21:52  pbartok
12238
12239         * Control.cs:
12240           - Removed unneeded locals
12241           - Added code to all size and location properties to understand and
12242             deal with the parent container of Form
12243
12244 2004-10-19 21:33  pbartok
12245
12246         * Application.cs:
12247           - Fixed to deal with new Form subclasses for menus
12248
12249 2004-10-19 17:48  jackson
12250
12251         * XEventQueue.cs: commit correct version of file
12252
12253 2004-10-19 16:50  jackson
12254
12255         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12256
12257 2004-10-19 16:15  jordi
12258
12259         * MenuAPI.cs: MenuBarCalcSize returns the height
12260
12261 2004-10-19 08:31  pbartok
12262
12263         * Control.cs:
12264           - Added missing call to PreProcessMessage before calling OnXXXKey
12265           methods
12266
12267 2004-10-19 00:04  ravindra
12268
12269         * ToolTip.cs: Fixed constructor.
12270
12271 2004-10-18 09:31  jordi
12272
12273         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12274
12275 2004-10-18 09:26  jordi
12276
12277         * MenuItem.cs: fixes MenuItem class signature
12278
12279 2004-10-18 08:56  jordi
12280
12281         * MenuAPI.cs: prevents windows from showing in the taskbar
12282
12283 2004-10-18 00:28  ravindra
12284
12285         * ToolTip.cs: Suppressed a warning message.
12286
12287 2004-10-18 00:27  ravindra
12288
12289         * Control.cs: Default value of visible property must be true.
12290
12291 2004-10-17 23:19  pbartok
12292
12293         * ToolTip.cs:
12294           - Complete implementation
12295
12296 2004-10-17 23:19  pbartok
12297
12298         * XplatUIX11.cs:
12299           - Added EnableWindow method
12300           - Added SetModal stub
12301           - Added generation of WM_ACTIVATE message (still needs testing)
12302           - Added SetTopMost stub
12303           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12304
12305 2004-10-17 23:17  pbartok
12306
12307         * XplatUIWin32.cs:
12308           - Removed VirtualKeys to XplatUIStructs
12309           - Implemented SetTopMost method
12310           - Implemented EnableWindow method
12311           - Bugfix in ScreenToClient()
12312           - Bugfixes in ClientToScreen()
12313
12314 2004-10-17 22:51  pbartok
12315
12316         * XplatUIStructs.cs:
12317           - Added WS_EX styles to WindowStyles enumeration
12318
12319 2004-10-17 22:50  pbartok
12320
12321         * XplatUI.cs, XplatUIDriver.cs:
12322           - Added method for enabling/disabling windows
12323           - Added method for setting window modality
12324           - Added method for setting topmost window
12325
12326 2004-10-17 22:49  pbartok
12327
12328         * ThemeWin32Classic.cs:
12329           - Added ToolTip drawing code
12330
12331 2004-10-17 22:49  pbartok
12332
12333         * Theme.cs:
12334           - Added ToolTip abstracts
12335
12336 2004-10-17 22:47  pbartok
12337
12338         * Form.cs:
12339           - Fixed Form.ControlCollection to handle owner relations
12340           - Added Owner/OwnedForms handling
12341           - Implemented Z-Ordering for owned forms
12342           - Removed unneeded private overload of ShowDialog
12343           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12344             so I hope)
12345           - Fixed Close(), had wrong default
12346           - Added firing of OnLoad event
12347           - Added some commented out debug code for Ownership handling
12348
12349 2004-10-17 22:16  pbartok
12350
12351         * Control.cs:
12352           - Fixed/implemented flat list of controls
12353
12354 2004-10-17 22:14  pbartok
12355
12356         * Application.cs:
12357           - Added code to simulate modal dialogs on Win32
12358
12359 2004-10-17 16:11  jordi
12360
12361         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12362           mouse event
12363
12364 2004-10-17 13:39  jordi
12365
12366         * MenuAPI.cs: menu drawing fixes
12367
12368 2004-10-15 09:10  ravindra
12369
12370         * StructFormat.cs: General Enum.
12371
12372 2004-10-15 09:09  ravindra
12373
12374         * SizeGripStyle.cs: Enum for Form.
12375
12376 2004-10-15 09:08  ravindra
12377
12378         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12379           in Theme for ListView.
12380
12381 2004-10-15 09:06  ravindra
12382
12383         * ColumnHeader.cs: Flushing some formatting changes.
12384
12385 2004-10-15 09:05  ravindra
12386
12387         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12388           style.
12389
12390 2004-10-15 09:03  ravindra
12391
12392         * ListView.cs: Implemented Paint method and fixed coding style.
12393
12394 2004-10-15 07:34  jordi
12395
12396         * MenuAPI.cs: fix for X11
12397
12398 2004-10-15 07:32  ravindra
12399
12400         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12401                 - Renamed Paint() method to Draw() for clarity. Also, moved
12402                 DrawImage() to OnPaint().
12403
12404 2004-10-15 07:25  ravindra
12405
12406         * CheckBox.cs, RadioButton.cs:
12407                 - Removed Redraw (), we get it from ButtonBase.
12408                 - Implemented Paint (), to do class specific painting.
12409
12410 2004-10-15 07:16  ravindra
12411
12412         * ButtonBase.cs:
12413                 - Redraw () is not virtual now.
12414                 - Added an internal virtual method Paint (), so that
12415                 derived classes can do their painting on their own.
12416                 - Modified OnPaint () to call Paint ().
12417
12418 2004-10-15 06:43  jordi
12419
12420         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12421           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12422
12423 2004-10-15 00:30  ravindra
12424
12425         * MessageBox.cs:
12426                 - MessageBox on windows does not have min/max buttons.
12427                 This change in CreateParams fixes this on Windows. We
12428                 still need to implement this windowstyle behavior in
12429                 our X11 driver.
12430
12431 2004-10-14 05:14  ravindra
12432
12433         * ToolBar.cs:
12434                 - Changed Redraw () to do a Refresh () always.
12435                 - Fixed the MouseMove event handling when mouse is pressed,
12436                 ie drag event handling.
12437                 - Replaced the usage of ToolBarButton.Pressed property to
12438                 ToolBarButton.pressed internal variable.
12439
12440 2004-10-14 05:10  ravindra
12441
12442         * ToolBarButton.cs:
12443                 - Added an internal member 'inside' to handle mouse move
12444                 with mouse pressed ie mouse drag event.
12445                 - Changed 'Pressed' property to return true only when
12446                 'inside' and 'pressed' are both true.
12447                 - Some coding style love.
12448
12449 2004-10-14 00:17  ravindra
12450
12451         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12452           public method.
12453
12454 2004-10-14 00:15  ravindra
12455
12456         * ButtonBase.cs: Redraw () related improvements.
12457
12458 2004-10-14 00:14  ravindra
12459
12460         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12461           removed unnecessary calls to Button.Show () method.
12462
12463 2004-10-13 17:50  pbartok
12464
12465         * XplatUIX11.cs:
12466           - Formatting fix
12467           - Removed destroying of window until we solve the problem of X
12468             destroying the window before us on shutdown
12469
12470 2004-10-13 16:32  pbartok
12471
12472         * ButtonBase.cs:
12473           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12474
12475 2004-10-13 14:18  pbartok
12476
12477         * XplatUIX11.cs:
12478           - Added code to destroy the X window
12479
12480 2004-10-13 14:18  pbartok
12481
12482         * XplatUIWin32.cs:
12483           - Added code to destroy a window
12484
12485 2004-10-13 14:12  pbartok
12486
12487         * ButtonBase.cs:
12488           - Added the Redraw on Resize that got dropped in the last rev
12489
12490 2004-10-13 09:06  pbartok
12491
12492         * ThemeWin32Classic.cs:
12493           - Path from John BouAntoun:
12494             * Fix check rendering (centre correctly for normal style, offset
12495               correctly for FlatStyle).
12496             * Fix border color usage (use backcolor) for FlatStyle.Popup
12497             * Use checkbox.Capture instead of checkbox.is_pressed when
12498               rendering flatstyle states.
12499
12500 2004-10-12 21:48  pbartok
12501
12502         * ThemeWin32Classic.cs:
12503           - Removed all occurences of SystemColors and replaced them with the
12504             matching theme color
12505
12506 2004-10-12 21:41  pbartok
12507
12508         * ThemeWin32Classic.cs:
12509           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12510             him using the function for flatstyle drawing
12511           - Changed functions to use the new version of CPDrawBorder3D
12512
12513 2004-10-12 21:15  pbartok
12514
12515         * ControlPaint.cs:
12516           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12517             match MS documentation. They need to return defined colors if the
12518             passed color matches the configured control color. Thanks to John
12519             BouAntoun for pointing this out.
12520
12521 2004-10-12 20:57  pbartok
12522
12523         * Control.cs:
12524           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12525             color is changed
12526
12527 2004-10-12 20:46  pbartok
12528
12529         * CheckBox.cs:
12530           - Fix from John BouAntoun: Now properly sets the Appearance property
12531
12532 2004-10-12 20:45  pbartok
12533
12534         * ThemeWin32Classic.cs:
12535           - Fixes from John BouAntoun: now handles forecolors and backcolors
12536             for flatstyle rendered controls much better; It also fixes normal
12537             checkbox rendering when pushed or disabled.
12538
12539 2004-10-08 02:50  jordi
12540
12541         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12542           work
12543
12544 2004-10-07 08:56  jordi
12545
12546         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12547
12548 2004-10-06 03:59  jordi
12549
12550         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12551           XplatUIWin32.cs: removes warnings from compilation
12552
12553 2004-10-05 12:23  jackson
12554
12555         * RadioButton.cs: Fix ctor
12556
12557 2004-10-05 11:10  pbartok
12558
12559         * MessageBox.cs:
12560           - Partial implementation by Benjamin Dasnois
12561
12562 2004-10-05 10:15  jackson
12563
12564         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12565           by John BouAntoun
12566
12567 2004-10-05 03:07  ravindra
12568
12569         * ToolBar.cs:
12570                 - Removed a private method, Draw ().
12571                 - Fixed the ButtonDropDown event handling.
12572                 - Fixed MouseMove event handling.
12573
12574 2004-10-05 03:04  ravindra
12575
12576         * ThemeWin32Classic.cs:
12577                 - Added DrawListView method and ListViewDefaultSize property.
12578                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12579                 - Changed DOS style CRLF to Unix format (dos2unix).
12580
12581 2004-10-05 03:03  ravindra
12582
12583         * Theme.cs:
12584                 - Added DrawListView method and ListViewDefaultSize property.
12585
12586 2004-10-05 02:42  ravindra
12587
12588         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12589           clicks on DropDown arrow.
12590
12591 2004-10-04 22:56  jackson
12592
12593         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12594           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12595           Control handle the buffers, derived classes should not have to
12596           CreateBuffers themselves.
12597
12598 2004-10-04 21:20  jackson
12599
12600         * StatusBar.cs: The control handles resizing the buffers now.
12601
12602 2004-10-04 21:18  jackson
12603
12604         * Control.cs: When resizing the buffers should be invalidated. This
12605           should be handled in Control not in derived classes.
12606
12607 2004-10-04 14:45  jackson
12608
12609         * TabPage.cs: oops
12610
12611 2004-10-04 02:14  pbartok
12612
12613         * LeftRightAlignment.cs:
12614           - Initial check-in
12615
12616 2004-10-04 01:09  jordi
12617
12618         * ThemeWin32Classic.cs: fixes right button position causing right
12619           button not showing on horizontal scrollbars
12620
12621 2004-10-02 13:12  pbartok
12622
12623         * XplatUIX11.cs:
12624           - Simplified the Invalidate method by using an X call instead of
12625             generating the expose ourselves
12626           - Added an expose when the window background is changed
12627           - Implemented ClientToScreen method
12628
12629 2004-10-02 13:08  pbartok
12630
12631         * XplatUIWin32.cs:
12632           - Added Win32EnableWindow method (test for implementing modal
12633           dialogs)
12634           - Added ClientToScreen method and imports
12635
12636 2004-10-02 13:07  pbartok
12637
12638         * XplatUI.cs, XplatUIDriver.cs:
12639           - Added ClientToScreen coordinate translation method
12640
12641 2004-10-02 13:06  pbartok
12642
12643         * KeyPressEventArgs.cs:
12644           - Fixed access level for constructor
12645
12646 2004-10-02 13:06  pbartok
12647
12648         * NativeWindow.cs:
12649           - Changed access level for the window_collection hash table
12650
12651 2004-10-02 13:05  pbartok
12652
12653         * Form.cs:
12654           - Added KeyPreview property
12655           - Added Menu property (still incomplete, pending Jordi's menu work)
12656           - Implemented ProcessCmdKey
12657           - Implemented ProcessDialogKey
12658           - Implemented ProcessKeyPreview
12659
12660 2004-10-02 13:02  pbartok
12661
12662         * Control.cs:
12663           - Added private method to get the Control object from the window
12664           handle
12665           - Implemented ContextMenu property
12666           - Implemented PointToScreen
12667           - Implemented PreProcessMessage
12668           - Implemented IsInputChar
12669           - Implemented IsInputKey
12670           - Implemented ProcessCmdKey
12671           - Completed ProcessKeyEventArgs
12672           - Fixed message loop to call the proper chain of functions on key
12673           events
12674           - Implemented ProcessDialogChar
12675           - Implemented ProcessDialogKey
12676           - Implemented ProcessKeyMessage
12677           - Implemented ProcessKeyPreview
12678           - Added RaiseDragEvent stub (MS internal method)
12679           - Added RaiseKeyEvent stub (MS internal method)
12680           - Added RaiseMouseEvent stub (MS Internal method)
12681           - Added RaisePaintEvent stub (MS Internal method)
12682           - Added ResetMouseEventArgs stub (MS Internal method)
12683           - Implemented RtlTranslateAlignment
12684           - Implemented RtlTranslateContent
12685           - Implemented RtlTranslateHorizontal
12686           - Implemented RtlTranslateLeftRight
12687           - Added generation of KeyPress event
12688
12689 2004-10-02 05:57  ravindra
12690
12691         * ListViewItem.cs: Added attributes.
12692
12693 2004-10-02 05:32  ravindra
12694
12695         * ListView.cs: Added attributes.
12696
12697 2004-10-01 11:53  jackson
12698
12699         * Form.cs: Implement the Close method so work on MessageBox can
12700           continue.
12701
12702 2004-09-30 14:06  pbartok
12703
12704         * XplatUIX11.cs:
12705           - Bug fixes
12706
12707 2004-09-30 11:34  jackson
12708
12709         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12710
12711 2004-09-30 07:26  ravindra
12712
12713         * ListViewItemConverter.cs: Converter for ListViewItem.
12714
12715 2004-09-30 07:26  ravindra
12716
12717         * SortOrder.cs: Enum for ListView control.
12718
12719 2004-09-30 07:25  ravindra
12720
12721         * ColumnHeader.cs: Supporting class for ListView control.
12722
12723 2004-09-30 07:24  ravindra
12724
12725         * ListView.cs, ListViewItem.cs: Initial implementation.
12726
12727 2004-09-30 07:20  ravindra
12728
12729         * ItemActivation.cs: Enum for ListView Control.
12730
12731 2004-09-29 20:29  pbartok
12732
12733         * XplatUIX11.cs:
12734           - Added lookup of pixel value for background color; tries to get a
12735             color 'close' to the requested color, it avoids having to create a
12736             colormap.  Depending on the display this could mean the used color
12737             is slightly off the desired color. Might have to change it to a more
12738             resource intensive colormap approach, but it will work as a
12739           workaround to avoid red screens.
12740
12741 2004-09-29 14:27  jackson
12742
12743         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12744
12745 2004-09-28 12:44  pbartok
12746
12747         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12748           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12749           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12750           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12751           TrackBar.cs, VScrollBar.cs:
12752           - Streamlined Theme interfaces:
12753             * Each DrawXXX method for a control now is passed the object for
12754               the control to be drawn in order to allow accessing any state the
12755               theme might require
12756
12757             * ControlPaint methods for the theme now have a CP prefix to avoid
12758               name clashes with the Draw methods for controls
12759
12760             * Every control now retrieves it's DefaultSize from the current
12761             theme
12762
12763 2004-09-28 12:17  jackson
12764
12765         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12766           drawing
12767
12768 2004-09-24 14:57  jackson
12769
12770         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12771           Gives us a nice little performance boost.
12772
12773 2004-09-24 12:02  jackson
12774
12775         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12776           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12777           Control and supporting classes. Initial checkin
12778
12779 2004-09-23 13:08  jackson
12780
12781         * Form.cs: Temp build fixage
12782
12783 2004-09-23 01:39  ravindra
12784
12785         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12786           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12787           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12788           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12789           EventHandlers needed by ListView Control.
12790
12791 2004-09-22 14:12  pbartok
12792
12793         * ScrollableControl.cs:
12794           - Implemented DockPadding property
12795           - Implemented AutoScroll property
12796           - Implemented AutoScrollMargin property
12797           - Implemented AutoScrollMinSize property
12798           - Implemented AutoScrollPosition property
12799           - Implemented DisplayRectangle property (still incomplete)
12800           - Implemented CreateParams property
12801           - Implemented HScroll property
12802           - Implemented VScroll property
12803           - Implemented OnVisibleChanged property
12804
12805 2004-09-22 14:09  pbartok
12806
12807         * Form.cs:
12808           - Added Form.ControllCollection class
12809           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12810             RemoveOwnedForm (still incomplete, missing on-top and common
12811             minimize/maximize behaviour)
12812           - Added StartPosition property (still incomplete, does not use when
12813             creating the form)
12814           - Added ShowDialog() methods (still incomplete, missing forcing the
12815             dialog modal)
12816
12817 2004-09-22 14:05  pbartok
12818
12819         * Application.cs:
12820           - Added message loop for modal dialogs
12821
12822 2004-09-22 14:02  pbartok
12823
12824         * GroupBox.cs:
12825           - Fixed wrong types for events
12826
12827 2004-09-22 14:00  pbartok
12828
12829         * Shortcut.cs, FormWindowState.cs:
12830           - Fixed wrong values
12831
12832 2004-09-22 12:01  jackson
12833
12834         * Control.cs: Text is never null
12835
12836 2004-09-20 22:14  pbartok
12837
12838         * XplatUIWin32.cs:
12839           - Fixed accessibility level for Idle handler
12840
12841 2004-09-20 18:54  jackson
12842
12843         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12844           XplatUIX11.cs: New message loop that uses poll so we don't get a
12845           busy loop
12846
12847 2004-09-17 10:43  pbartok
12848
12849         * ScrollBar.cs:
12850           - Fixed behaviour of arrow buttons. Now properly behaves like
12851             Buttons (and like Microsoft's scrollbar arrow buttons)
12852
12853 2004-09-17 10:14  pbartok
12854
12855         * ScrollBar.cs:
12856           - Added missing release of keyboard/mouse capture
12857
12858 2004-09-17 06:18  jordi
12859
12860         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12861           Theme.cs: Very early menu support
12862
12863 2004-09-16 17:45  pbartok
12864
12865         * XplatUIWin32.cs:
12866           - Fixed sending a window to the front
12867           - Added overload for SetWindowPos to avoid casting
12868
12869 2004-09-16 17:44  pbartok
12870
12871         * Control.cs:
12872           - Added SendToBack and BringToFront methods
12873
12874 2004-09-16 07:00  ravindra
12875
12876         * Copyright: Added Novell URL.
12877
12878 2004-09-16 07:00  ravindra
12879
12880         * ToolBar.cs: Invalidate should be done before redrawing.
12881
12882 2004-09-15 21:19  ravindra
12883
12884         * ColumnHeaderStyle.cs: Enum for ListView Control.
12885
12886 2004-09-15 21:18  ravindra
12887
12888         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12889           ListView Control.
12890
12891 2004-09-13 18:26  jackson
12892
12893         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12894           properly
12895
12896 2004-09-13 18:13  jackson
12897
12898         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12899           a second thread and post messages into the main threads message
12900           queue. This makes timing much more consistent. Both win2K and XP
12901           have a minimum timer value of 15 milliseconds, so we now do this
12902           too.
12903
12904 2004-09-13 15:18  pbartok
12905
12906         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12907           XplatUIX11.cs:
12908           - Added Z-Ordering methods
12909
12910 2004-09-13 10:56  pbartok
12911
12912         * Form.cs:
12913           - Fixed #region names
12914           - Moved properties and methods into their proper #regions
12915
12916 2004-09-13 10:51  pbartok
12917
12918         * Form.cs:
12919           - Added Accept and CancelButton properties
12920           - Added ProcessDialogKey() method
12921
12922 2004-09-13 08:18  pbartok
12923
12924         * IWindowTarget.cs:
12925           - Initial check-in
12926
12927 2004-09-10 21:50  pbartok
12928
12929         * Control.cs:
12930           - Added DoDragDrop() [incomplete]
12931           - Properly implemented 'Visible' handling
12932           - Added SetVisibleCore()
12933           - Implemented FindChildAtPoint()
12934           - Implemented GetContainerControl()
12935           - Implemented Hide()
12936
12937 2004-09-10 19:28  pbartok
12938
12939         * Control.cs:
12940           - Moved methods into their appropriate #regions
12941           - Reordered methods within regions alphabetically
12942
12943 2004-09-10 18:57  pbartok
12944
12945         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12946           - Added method to retrieve text from window
12947
12948 2004-09-10 18:56  pbartok
12949
12950         * Control.cs:
12951           - Moved some internal functions into the internal region
12952           - Implemented FontHeight
12953           - Implemented RenderRightToLeft
12954           - Implemented ResizeRedraw
12955           - Implemented ShowFocusCues
12956           - Implemented ShowKeyboardCues
12957           - Implemented FromChildHandle
12958           - Implemented FromHandle
12959           - Implemented IsMnemonic
12960           - Implemented ReflectMessage
12961           - All public and protected Static Methods are now complete
12962
12963 2004-09-10 16:54  pbartok
12964
12965         * Control.cs:
12966           - Implemented remaining missing public instance properties
12967           - Alphabetized some out of order properties
12968
12969 2004-09-10 05:51  ravindra
12970
12971         * PictureBox.cs: Added a check for null image.
12972
12973 2004-09-10 00:59  jordi
12974
12975         * GroupBox.cs: remove cvs tag
12976
12977 2004-09-09 05:25  ravindra
12978
12979         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12980
12981 2004-09-09 05:23  ravindra
12982
12983         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12984           parent redraw.
12985
12986 2004-09-09 02:28  pbartok
12987
12988         * ThemeWin32Classic.cs:
12989           - Improve disabled string look
12990
12991 2004-09-09 01:15  jordi
12992
12993         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12994           args and handler
12995
12996 2004-09-08 23:56  ravindra
12997
12998         * ItemBoundsPortion.cs: It's enum, not a class!
12999
13000 2004-09-08 23:47  ravindra
13001
13002         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13003           Enums for Form.
13004
13005 2004-09-08 21:13  ravindra
13006
13007         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13008           ListView control.
13009
13010 2004-09-08 21:03  ravindra
13011
13012         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13013           avoid crash.
13014
13015 2004-09-08 21:01  ravindra
13016
13017         * ScrollableControl.cs: Removed unreachable code.
13018
13019 2004-09-08 06:45  jordi
13020
13021         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13022
13023 2004-09-08 01:00  jackson
13024
13025         * XplatUIX11.cs: Only run the timers when updating the message
13026           queue. This effectively gives X messages a higher priority then
13027           timer messages. Timers still need love though
13028
13029 2004-09-07 14:01  jackson
13030
13031         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13032           this for us and the handle is no longer valid.
13033
13034 2004-09-07 13:59  jackson
13035
13036         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13037           loop that manages to not crash. TODO: Add poll and cleanup timers
13038
13039 2004-09-07 11:12  jordi
13040
13041         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13042
13043 2004-09-07 03:40  jordi
13044
13045         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13046           fixes, methods, multiple links
13047
13048 2004-09-06 06:55  jordi
13049
13050         * Control.cs: Caches ClientRectangle rectangle value
13051
13052 2004-09-05 02:03  jordi
13053
13054         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13055           certain situations
13056
13057 2004-09-04 11:10  jordi
13058
13059         * Label.cs: Refresh when font changed
13060
13061 2004-09-02 16:24  pbartok
13062
13063         * Control.cs:
13064           - Added sanity check to creation of double buffer bitmap
13065
13066 2004-09-02 16:24  pbartok
13067
13068         * ButtonBase.cs:
13069           - Fixed selection of text color
13070           - Fixed handling of resize event; now properly recreates double
13071             buffering bitmap
13072           - Added missing assignment of TextAlignment
13073           - Added proper default for TextAlignment
13074
13075 2004-09-02 14:26  pbartok
13076
13077         * RadioButton.cs:
13078           - Added missing RadioButton.RadioButtonAccessibleObject class
13079
13080 2004-09-02 14:26  pbartok
13081
13082         * Control.cs:
13083           - Added missing Control.ControlAccessibleObject class
13084           - Started to implement Select()ion mechanisms, still very incomplete
13085
13086 2004-09-02 14:25  pbartok
13087
13088         * AccessibleObject.cs:
13089           - Added missing methods
13090
13091 2004-09-02 14:23  pbartok
13092
13093         * AccessibleNavigation.cs, AccessibleSelection.cs:
13094           - Initial check-in
13095
13096 2004-09-02 10:32  jordi
13097
13098         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13099           pool for pens, brushes, and hatchbruses
13100
13101 2004-09-01 15:30  jackson
13102
13103         * StatusBar.cs: Fix typo
13104
13105 2004-09-01 14:44  pbartok
13106
13107         * RadioButton.cs:
13108           - Fixed state
13109
13110 2004-09-01 14:39  pbartok
13111
13112         * Button.cs, RadioButton.cs:
13113           - Functional initial check-in
13114
13115 2004-09-01 14:01  pbartok
13116
13117         * CheckBox.cs:
13118           - Added missing default
13119           - Added missing region mark
13120
13121 2004-09-01 09:10  jordi
13122
13123         * Label.cs: fixes method signatures, new methods, events, fixes
13124           autosize
13125
13126 2004-09-01 07:19  jordi
13127
13128         * Control.cs: Init string variables with an empty object
13129
13130 2004-09-01 04:20  jordi
13131
13132         * Control.cs: fires OnFontChanged event
13133
13134 2004-08-31 20:07  pbartok
13135
13136         * ButtonBase.cs:
13137           - Enabled display of strings
13138
13139 2004-08-31 20:05  pbartok
13140
13141         * Form.cs:
13142           - Added (partial) implementation of DialogResult; rest needs to be
13143             implemented when the modal loop code is done
13144
13145 2004-08-31 19:55  pbartok
13146
13147         * CheckBox.cs:
13148           - Fixed to match the removal of the needs_redraw concept
13149
13150 2004-08-31 19:55  pbartok
13151
13152         * ButtonBase.cs:
13153           - Removed the rather odd split between 'needs redraw' and redrawing
13154           - Now handles the events that require regeneration (ambient
13155             properties and size)
13156
13157 2004-08-31 19:41  pbartok
13158
13159         * Control.cs:
13160           - Added firing of BackColorChanged event
13161           - Added TopLevelControl property
13162           - Fixed handling of WM_ERASEBKGRND message
13163
13164 2004-08-31 12:49  pbartok
13165
13166         * ButtonBase.cs:
13167           - Removed debug
13168           - Minor fixes
13169
13170 2004-08-31 12:48  pbartok
13171
13172         * CheckBox.cs:
13173           - Finished (famous last words)
13174
13175 2004-08-31 04:35  jordi
13176
13177         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13178           scrolling bugs, adds new methods
13179
13180 2004-08-30 14:42  pbartok
13181
13182         * CheckBox.cs:
13183           - Implemented CheckBox drawing code
13184
13185 2004-08-30 14:42  pbartok
13186
13187         * ButtonBase.cs:
13188           - Made Redraw() and CheckRedraw() virtual
13189           - Improved mouse up/down/move logic to properly track buttons
13190
13191 2004-08-30 09:44  pbartok
13192
13193         * CheckBox.cs:
13194           - Updated to fix broken build. Not complete yet.
13195
13196 2004-08-30 09:28  pbartok
13197
13198         * CheckState.cs:
13199           - Initial checkin
13200
13201 2004-08-30 09:17  pbartok
13202
13203         * Appearance.cs:
13204           - Initial check-in
13205
13206 2004-08-27 16:12  ravindra
13207
13208         * ToolBarButton.cs: Added TypeConverter attribute.
13209
13210 2004-08-27 16:07  ravindra
13211
13212         * ImageIndexConverter.cs: Implemented.
13213
13214 2004-08-27 14:17  pbartok
13215
13216         * Control.cs:
13217           - Removed unneeded stack vars
13218           - First attempt to fix sizing issues when layout is suspended
13219
13220 2004-08-25 15:35  jordi
13221
13222         * ScrollBar.cs: more fixes to scrollbar
13223
13224 2004-08-25 14:04  ravindra
13225
13226         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13227           Added the missing divider code and grip for ToolBar Control.
13228
13229 2004-08-25 13:20  pbartok
13230
13231         * Control.cs:
13232           - Control now properly passes the ambient background color to child
13233             controls
13234
13235 2004-08-25 13:20  jordi
13236
13237         * ScrollBar.cs: small bug fix regarding bar position
13238
13239 2004-08-25 12:33  pbartok
13240
13241         * Timer.cs:
13242           - Now only calls SetTimer or KillTimer if the enabled state has
13243           changed
13244
13245 2004-08-25 12:33  pbartok
13246
13247         * XplatUIWin32.cs:
13248           - Fixed timer handling, now seems to work
13249           - Improved error message for window creation
13250
13251 2004-08-25 12:32  pbartok
13252
13253         * Control.cs:
13254           - Fixed generation of MouseUp message
13255
13256 2004-08-25 12:29  jordi
13257
13258         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13259           and fixes for progressbar
13260
13261 2004-08-24 18:43  ravindra
13262
13263         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13264           in ToolBar control.
13265
13266 2004-08-24 17:15  pbartok
13267
13268         * Panel.cs:
13269           - Added #region
13270           - Added missing events
13271           - Alphabetized
13272
13273 2004-08-24 17:14  pbartok
13274
13275         * StatusBar.cs, PictureBox.cs:
13276           - Now uses Control's CreateParams
13277
13278 2004-08-24 16:36  pbartok
13279
13280         * XplatUIX11.cs:
13281           - Fixed background color handling
13282           - Fixed sending of enter/leave events on a grab
13283
13284 2004-08-24 16:35  pbartok
13285
13286         * X11Structs.cs:
13287           - Refined definitions for CrossingEvent
13288
13289 2004-08-24 12:37  jordi
13290
13291         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13292           formmating, methods signature, and adds missing events
13293
13294 2004-08-24 12:24  jordi
13295
13296         * Control.cs: fire OnEnabledChanged event
13297
13298 2004-08-24 11:17  pbartok
13299
13300         * XplatUIWin32.cs:
13301           - Implemented SetTimer() and KillTimer()
13302
13303 2004-08-24 11:16  pbartok
13304
13305         * XplatUIX11.cs:
13306           - Now uses Remove instead of Add to kill the timer
13307
13308 2004-08-24 10:16  jackson
13309
13310         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13311           picture boxes in the theme now. Draw picture box borders and obey
13312           sizing modes
13313
13314 2004-08-24 05:49  jackson
13315
13316         * Timer.cs: Remove top secret debugging code
13317
13318 2004-08-24 05:34  jackson
13319
13320         * PictureBox.cs: Temp hack to make picture boxes draw their full
13321           image
13322
13323 2004-08-24 05:29  jackson
13324
13325         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13326           XplatUIX11.cs: Move timers to the driver level. On X they are
13327           queued by the driver and checked on idle.
13328
13329 2004-08-24 01:07  jackson
13330
13331         * XplatUIX11.cs: Use a queue for async messages instead of passing
13332           them as ClientMessages since that was totally broken. Also simply
13333           check for events and return an idle message if none are found. This
13334           gives us an idle handler, and prevents deadlocking when no messages
13335           are in the queue.
13336
13337 2004-08-23 18:19  ravindra
13338
13339         * XplatUIWin32.cs: Removed the unwanted destructor.
13340
13341 2004-08-23 17:27  pbartok
13342
13343         * ButtonBase.cs:
13344           - Finishing touches. Works now, just needs some optimizations.
13345
13346 2004-08-23 16:53  jordi
13347
13348         * ScrollBar.cs: small fix
13349
13350 2004-08-23 16:45  pbartok
13351
13352         * Application.cs:
13353           - Removed debug output
13354           - Simplifications
13355
13356 2004-08-23 16:43  jordi
13357
13358         * ScrollBar.cs: [no log message]
13359
13360 2004-08-23 16:10  pbartok
13361
13362         * Form.cs:
13363           - Fixed handling of WM_CLOSE message
13364           - Removed debug output
13365
13366 2004-08-23 16:09  pbartok
13367
13368         * Application.cs:
13369           - Added handling of Idle event
13370           - Added handling of form closing
13371           - Fixed reporting of MessageLoop property
13372           - Removed some unneeded code, should provide a bit of a speedup
13373
13374 2004-08-23 15:22  pbartok
13375
13376         * Control.cs:
13377           - Added InitLayout() method
13378           - Added code to properly perform layout when Anchor or Dock property
13379             is changed
13380           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13381             LAMESPEC, tried to do it in a way that makes sense
13382
13383 2004-08-23 14:10  jordi
13384
13385         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13386           properties and methods
13387
13388 2004-08-23 13:55  pbartok
13389
13390         * Control.cs:
13391           - Properly fixed Jordi's last fix
13392           - Now uses Cursor's Position property instead of calling XplatUI
13393           directly
13394
13395 2004-08-23 13:44  jordi
13396
13397         * PaintEventHandler.cs: Adding missing attribute
13398
13399 2004-08-23 13:39  pbartok
13400
13401         * Cursor.cs:
13402           - Implemented Position property
13403
13404 2004-08-23 13:39  pbartok
13405
13406         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13407           - Added method to move mouse cursor
13408
13409 2004-08-23 13:39  pbartok
13410
13411         * XplatUIX11.cs:
13412           - Fixed setting of background color
13413           - Added method to move mouse cursor
13414
13415 2004-08-23 13:16  jordi
13416
13417         * Control.cs: avoids null exception
13418
13419 2004-08-22 17:46  jackson
13420
13421         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13422           PictureBox
13423
13424 2004-08-22 17:40  jackson
13425
13426         * XplatUIX11.cs: Add some missing locks
13427
13428 2004-08-22 15:10  pbartok
13429
13430         * Control.cs, Form.cs:
13431           - Removed OverlappedWindow style from Control, instead it's default
13432             now is child
13433           - Made form windows OverlappedWindow by default
13434
13435 2004-08-22 13:34  jackson
13436
13437         * ScrollBar.cs: Update the position through the Value property so
13438           the OnValueChanged event is raised.
13439
13440 2004-08-22 12:04  pbartok
13441
13442         * SWF.csproj:
13443           - Added Cursor.cs and UserControl.cs
13444
13445 2004-08-22 12:03  pbartok
13446
13447         * Cursor.cs:
13448           - Started implementation, not usable yet
13449
13450 2004-08-22 12:00  pbartok
13451
13452         * UserControl.cs:
13453           - Implemented UserControl (complete)
13454
13455 2004-08-21 19:20  ravindra
13456
13457         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13458
13459 2004-08-21 18:49  ravindra
13460
13461         * ToolBar.cs: Probably this completes the missing attributes in
13462           toolbar control.
13463
13464 2004-08-21 18:03  ravindra
13465
13466         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13467           Fixed toolbar control signatures.
13468
13469 2004-08-21 16:32  pbartok
13470
13471         * LinkLabel.cs:
13472           - Signature Fixes
13473
13474 2004-08-21 16:30  pbartok
13475
13476         * Label.cs:
13477           - Signature fixes
13478
13479 2004-08-21 16:19  pbartok
13480
13481         * Control.cs, Label.cs:
13482           - Signature fixes
13483
13484 2004-08-21 15:57  pbartok
13485
13486         * ButtonBase.cs:
13487           - Added loads of debug output for development
13488           - Fixed typo in method name
13489
13490 2004-08-21 15:52  pbartok
13491
13492         * ToolBarButtonClickEventArgs.cs:
13493           - Added missing base class
13494
13495 2004-08-21 14:53  pbartok
13496
13497         * Control.cs:
13498           - Updated to match new GrabWindow signature
13499
13500 2004-08-21 14:51  pbartok
13501
13502         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13503           - Added method to get default display size
13504
13505 2004-08-21 14:23  pbartok
13506
13507         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13508           - Added method to query current grab state
13509           - Added argument to allow confining a grab to a window
13510
13511 2004-08-21 14:22  pbartok
13512
13513         * Keys.cs:
13514           - Added [Flags] attribute so that modifiers can be used in bitwise
13515           ops
13516
13517 2004-08-21 14:21  pbartok
13518
13519         * TrackBar.cs, ScrollBar.cs:
13520           - Replaced direct XplatUI calls with their Control counterpart
13521
13522 2004-08-21 13:32  pbartok
13523
13524         * Control.cs:
13525           - Implemented Created property
13526
13527 2004-08-21 13:28  pbartok
13528
13529         * Control.cs:
13530           - Implemented ContainsFocus
13531
13532 2004-08-21 13:26  pbartok
13533
13534         * Control.cs:
13535           - Implemented CausesValidation
13536
13537 2004-08-21 13:21  pbartok
13538
13539         * Control.cs:
13540           - Implemented CanFocus
13541           - Implemented CanSelect
13542           - Implemented Capture
13543
13544 2004-08-21 12:35  pbartok
13545
13546         * XplatUIWin32.cs:
13547           - Fixed bug with Async message handling
13548           - Implemented getting the ModifierKeys
13549
13550 2004-08-21 12:32  jackson
13551
13552         * AsyncMethodResult.cs: Make sure we have the mutex before we
13553           release it. Fixes BeginInvoke on windows
13554
13555 2004-08-21 11:31  pbartok
13556
13557         * XplatUIWin32.cs, XplatUIX11.cs:
13558           - Drivers now return proper mouse state
13559
13560 2004-08-21 10:54  jackson
13561
13562         * Control.cs: Implement EndInvoke
13563
13564 2004-08-21 10:48  jackson
13565
13566         * Timer.cs: Remove unneeded finalizer
13567
13568 2004-08-20 19:52  ravindra
13569
13570         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13571           in mouse event handling in the ToolBar control.
13572
13573 2004-08-20 19:50  ravindra
13574
13575         * ImageList.cs: Changed draw method to use the arguments passed in
13576           to draw the image.
13577
13578 2004-08-20 18:58  pbartok
13579
13580         * XplatUIStructs.cs:
13581           - Added private message for async communication
13582
13583 2004-08-20 17:38  ravindra
13584
13585         * Control.cs: Made RightToLeft property virtual and removed a
13586           Console.WriteLine.
13587
13588 2004-08-20 14:39  jordi
13589
13590         * ThemeGtk.cs: use style_attach
13591
13592 2004-08-20 14:39  pbartok
13593
13594         * XplatUIWin32.cs:
13595           - Added jackson's Async code from X11 to Win32
13596
13597 2004-08-20 14:09  pbartok
13598
13599         * SWF.csproj:
13600           - Added all new files
13601
13602 2004-08-20 14:09  pbartok
13603
13604         * Control.cs:
13605           - Added call to set window background color
13606
13607 2004-08-20 14:03  pbartok
13608
13609         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13610           - Added method for setting the window background
13611
13612 2004-08-20 14:02  pbartok
13613
13614         * XplatUIWin32.cs:
13615           - Added method for setting the background color
13616           - Added handling for erasing the window background
13617
13618 2004-08-20 13:45  jordi
13619
13620         * TrackBar.cs: fixes timer, new properties and methods
13621
13622 2004-08-20 13:34  jackson
13623
13624         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13625           correct thread
13626
13627 2004-08-20 13:22  jackson
13628
13629         * Timer.cs: Timer Tick events are now handed through Controls Async
13630           mechanism so the callbacks are executed in the same thread as X
13631
13632 2004-08-20 13:19  jackson
13633
13634         * XplatUIDriver.cs: Expose functionality to send async messages
13635           through the driver
13636
13637 2004-08-20 13:18  jackson
13638
13639         * Control.cs: Implement Begininvoke
13640
13641 2004-08-20 13:14  jackson
13642
13643         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13644           messages through the driver
13645
13646 2004-08-20 13:12  jackson
13647
13648         * XplatUIX11.cs: Lock before all X operations. Also added Async
13649           method functionality through XSendEvent
13650
13651 2004-08-20 13:11  jackson
13652
13653         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13654           This will screw up on 64 bit systems)
13655
13656 2004-08-20 13:10  jackson
13657
13658         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13659           Async messages through X/Win32
13660
13661 2004-08-19 19:39  pbartok
13662
13663         * XplatUIX11.cs:
13664           - Updated code to match new HandleData.DeviceContext type
13665
13666 2004-08-19 19:38  pbartok
13667
13668         * HandleData.cs:
13669           - Made DeviceContext a generic object to allow usage from various
13670           drivers
13671           - Added support for queueing Windows messages
13672
13673 2004-08-19 19:37  pbartok
13674
13675         * XplatUIWin32.cs:
13676           - Added generation of MouseEnter, MouseLeave and MouseHover events
13677           - Added cleanup on EndPaint
13678
13679 2004-08-19 19:17  pbartok
13680
13681         * Control.cs:
13682           - Added handling of WM_MOUSEHOVER
13683           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13684           code
13685
13686 2004-08-19 18:55  jordi
13687
13688         * ThemeGtk.cs: fixes button order
13689
13690 2004-08-19 18:12  jordi
13691
13692         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13693
13694 2004-08-19 17:09  pbartok
13695
13696         * Control.cs:
13697           - Added Right property
13698           - Added RightToLeft property
13699
13700 2004-08-19 16:27  jordi
13701
13702         * ThemeGtk.cs: experimental GTK theme support
13703
13704 2004-08-19 16:26  jordi
13705
13706         * ITheme.cs, Theme.cs: move themes from an interface to a class
13707
13708 2004-08-19 16:25  jordi
13709
13710         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13711           theme enhancaments
13712
13713 2004-08-19 16:04  pbartok
13714
13715         * XplatUIX11.cs:
13716           - Added colormap basics
13717           - Added a way to re-initialize with a different display handle
13718           - Fixed setting of the window background color
13719           - Added various X11 imports related to colors and colormaps
13720
13721 2004-08-19 15:51  pbartok
13722
13723         * X11Structs.cs:
13724           - Removed packing hints (Paolo suggested this a while back)
13725           - fixed colormap type
13726           - Added default Atom types
13727           - Added Screen and color structs and enums
13728
13729 2004-08-19 15:39  pbartok
13730
13731         * ImageList.cs:
13732           - Added missing Draw() method
13733           - Added missing RecreateHandle event
13734
13735 2004-08-19 15:30  pbartok
13736
13737         * Form.cs:
13738           - Added handling of WM_CLOSE
13739
13740 2004-08-18 13:16  jordi
13741
13742         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13743           a table
13744
13745 2004-08-18 09:56  jordi
13746
13747         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13748
13749 2004-08-17 15:31  ravindra
13750
13751         * SWF.csproj: Updated project.
13752
13753 2004-08-17 15:25  pbartok
13754
13755         * Control.cs:
13756           - Drawing improvement; don't call UpdateBounds if we are not visible
13757             (or have been minimized)
13758
13759 2004-08-17 15:24  pbartok
13760
13761         * XplatUIWin32.cs:
13762           - Finished IsVisible
13763           - Added Win32GetWindowPlacement
13764
13765 2004-08-17 15:08  jackson
13766
13767         * Panel.cs: Initial checkin of the Panel
13768
13769 2004-08-17 14:25  pbartok
13770
13771         * Control.cs:
13772           - Fixed broken handling of default window sizes
13773
13774 2004-08-17 13:29  jackson
13775
13776         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13777           has a large startup time.
13778
13779 2004-08-17 10:25  jackson
13780
13781         * HandleData.cs: union areas properly
13782
13783 2004-08-17 10:12  jackson
13784
13785         * HandleData.cs: union areas properly
13786
13787 2004-08-16 20:00  ravindra
13788
13789         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13790
13791 2004-08-16 18:48  ravindra
13792
13793         * ToolBar.cs: Added attributes.
13794
13795 2004-08-16 17:17  ravindra
13796
13797         * SWF.csproj: Updated project.
13798
13799 2004-08-16 17:16  jackson
13800
13801         * XplatUIX11.cs: Check for more expose events before sending a
13802           WM_PAINT so they can all be grouped together. This makes dragging a
13803           window across another window redraw in a sane way.
13804
13805 2004-08-16 15:47  pbartok
13806
13807         * Control.cs:
13808           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13809             support OnMouseEnter/Leave()
13810           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13811             exposure handling
13812
13813 2004-08-16 15:46  pbartok
13814
13815         * XplatUIStructs.cs, XplatUIX11.cs:
13816           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13817           OnMouseEnter/Leave()
13818
13819 2004-08-16 15:34  jackson
13820
13821         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13822           sure messages get the message field set to WM_NULL if they are not
13823           handled.
13824
13825 2004-08-16 15:24  jackson
13826
13827         * HandleData.cs: HandleData is used for storing message information
13828           for window handles
13829
13830 2004-08-15 17:23  ravindra
13831
13832         * ColorDepth.cs: Added attribute.
13833
13834 2004-08-15 17:23  ravindra
13835
13836         * SWF.csproj: Updated project for ToolBar Control.
13837
13838 2004-08-15 17:20  ravindra
13839
13840         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13841           control and also dos2unix format.
13842
13843 2004-08-15 17:13  ravindra
13844
13845         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13846           ToolBarButtonClickEventArgs.cs,
13847           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13848           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13849
13850 2004-08-15 15:31  pbartok
13851
13852         * ButtonBase.cs:
13853           - First (mostly) working version
13854
13855 2004-08-13 16:15  pbartok
13856
13857         * Control.cs:
13858           - Fixed Anchor default
13859
13860 2004-08-13 15:43  pbartok
13861
13862         * Control.cs:
13863           - Changed GetCursorPos signature
13864
13865 2004-08-13 15:42  pbartok
13866
13867         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13868           - Changed signature for GetCursorPos
13869
13870 2004-08-13 15:25  pbartok
13871
13872         * XplatUIX11.cs:
13873           - Cleanup
13874           - Fixed resizing/exposure handling
13875
13876 2004-08-13 15:22  jordi
13877
13878         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13879           with tickposition
13880
13881 2004-08-13 14:55  jordi
13882
13883         * TrackBar.cs: change from wndproc to events
13884
13885 2004-08-13 13:00  jordi
13886
13887         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13888           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13889
13890 2004-08-13 12:53  pbartok
13891
13892         * XplatUIWin32.cs:
13893           - Changed GetWindowPos to also provide client area size
13894           - Fixed broken prototypes for several win32 functions
13895
13896 2004-08-13 12:53  pbartok
13897
13898         * XplatUI.cs, XplatUIDriver.cs:
13899           - Changed GetWindowPos to also provide client area size
13900
13901 2004-08-13 12:52  pbartok
13902
13903         * XplatUIX11.cs:
13904           - Added generation of WM_POSCHANGED
13905           - Changed GetWindowPos to also provide client area size
13906
13907 2004-08-13 12:52  pbartok
13908
13909         * Control.cs:
13910           - Added Dispose() and destructor
13911           - Fixed resizing and bounds calculation
13912           - Fixed Layout
13913           - Added memory savings for invisible windows
13914
13915 2004-08-13 12:46  jordi
13916
13917         * TrackBar.cs: adds timer and grap window
13918
13919 2004-08-13 10:25  jackson
13920
13921         * Timer.cs: SWF Timer
13922
13923 2004-08-12 16:59  pbartok
13924
13925         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13926           - Implemented method to get current mouse position
13927
13928 2004-08-12 14:29  jordi
13929
13930         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13931           enhancement, fix mouse problems, highli thumb, etc
13932
13933 2004-08-12 13:31  pbartok
13934
13935         * Control.cs:
13936           - Fixed Anchoring bugs
13937
13938 2004-08-12 13:01  jackson
13939
13940         * StatusBar.cs: Don't forget things
13941
13942 2004-08-12 12:54  jackson
13943
13944         * ThemeWin32Classic.cs: Handle owner draw status bars
13945
13946 2004-08-12 12:54  jackson
13947
13948         * StatusBar.cs: Implement missing properties, events, and methods.
13949           Handle mouse clicking
13950
13951 2004-08-12 10:19  jackson
13952
13953         * StatusBarPanelClickEventArgs.cs,
13954           StatusBarPanelClickEventHandler.cs: Classes for handling status
13955           bar panel click events
13956
13957 2004-08-12 10:10  jackson
13958
13959         * Control.cs: Add missing properties
13960
13961 2004-08-12 09:46  pbartok
13962
13963         * BindingsManagerBase.cs:
13964           - Name changed to BindingManagerBase.cs
13965
13966 2004-08-12 09:25  jordi
13967
13968         * ScrollableControl.cs: calls ctrlbase instead of exeception
13969
13970 2004-08-11 16:28  pbartok
13971
13972         * InputLanguageChangingEventArgs.cs:
13973           - Never check in before compiling. Fixes the last check-in
13974
13975 2004-08-11 16:26  pbartok
13976
13977         * InputLanguageChangingEventArgs.cs:
13978           - More signature fixes
13979
13980 2004-08-11 16:20  pbartok
13981
13982         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13983           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13984           ImageListStreamer.cs, InputLanguage.cs,
13985           InputLanguageChangedEventArgs.cs,
13986           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13987           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13988           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13989           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13990           - Signature fixes
13991
13992 2004-08-11 16:16  pbartok
13993
13994         * Application.cs:
13995           - Fixed Signature
13996           - Added .Net 1.1 method
13997
13998 2004-08-11 15:25  pbartok
13999
14000         * SWF.csproj:
14001           - Fixed BindingManagerBase.cs filename
14002
14003 2004-08-11 15:22  pbartok
14004
14005         * BindingManagerBase.cs:
14006           - Was checked in with wrong filename
14007
14008 2004-08-11 14:50  pbartok
14009
14010         * SWF.csproj:
14011           - Updated
14012
14013 2004-08-11 13:41  jordi
14014
14015         * XplatUIWin32.cs: Fixes ClientRect
14016
14017 2004-08-11 13:19  pbartok
14018
14019         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14020           XplatUIX11.cs:
14021           - We had SetWindowPos and MoveWindow to set window positions and
14022             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14023             keep SetWindowPos as matching counterpart
14024           - Added some X11 sanity checking
14025
14026 2004-08-11 12:59  pbartok
14027
14028         * Control.cs:
14029           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14030             (It seems that SetBounds is just a front for SetBoundsCore and
14031              SetBoundsCore updates the underlying window system and
14032              UpdateBounds is responsible for updating the variables associated
14033              with the Control and sending the events)
14034           - Major cleanup of Size handling; we now have two sizes, client_size
14035             and bounds. Bounds defines the window with decorations, client_size
14036             without them.
14037
14038 2004-08-11 12:55  pbartok
14039
14040         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14041           - Added method to calculate difference between decorated window and
14042             raw client area
14043
14044 2004-08-11 12:54  pbartok
14045
14046         * Label.cs:
14047           - Forcing redraw on resize
14048
14049 2004-08-11 11:43  pbartok
14050
14051         * ImageList.cs:
14052           - Removed disposing of the actual images when the list is disposed
14053
14054 2004-08-11 09:13  pbartok
14055
14056         * Control.cs:
14057           - Now properly reparents windows
14058
14059 2004-08-11 08:37  pbartok
14060
14061         * Control.cs:
14062           - Duh!
14063
14064 2004-08-11 07:47  pbartok
14065
14066         * Control.cs:
14067           - Rewrote the collection stuff. Might not be as fast now, not
14068             keeping the number of children around and accessible directly, but
14069             it's more straightforward
14070
14071 2004-08-11 07:44  pbartok
14072
14073         * AccessibleObject.cs:
14074           - Fixed to match ControlCollection rewrite
14075
14076 2004-08-11 07:43  pbartok
14077
14078         * ImageList.cs:
14079           - Added missing creation of the collection list
14080
14081 2004-08-10 20:08  jackson
14082
14083         * StatusBar.cs: Get the paint message from WndProc
14084
14085 2004-08-10 19:31  jackson
14086
14087         * ThemeWin32Classic.cs: Create Brushes as little as possible
14088
14089 2004-08-10 19:20  jackson
14090
14091         * UICues.cs: Add Flags attribute
14092
14093 2004-08-10 19:19  jackson
14094
14095         * StatusBarPanel.cs: Signature cleanup
14096
14097 2004-08-10 19:10  jackson
14098
14099         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14100           Initial implementation of status bar item drawing
14101
14102 2004-08-10 17:27  jordi
14103
14104         * TrackBar.cs: add missing methods, properties, and restructure to
14105           hide extra ones
14106
14107 2004-08-10 16:24  jackson
14108
14109         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14110           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14111           attribute
14112
14113 2004-08-10 13:21  jordi
14114
14115         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14116           enhancements and standarize on win colors defaults
14117
14118 2004-08-10 12:52  jackson
14119
14120         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14121           ThemeWin32Classic.cs: Implement DrawItem functionality
14122
14123 2004-08-10 12:47  jordi
14124
14125         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14126
14127 2004-08-10 12:32  jordi
14128
14129         * Control.cs: throw ontextchange event
14130
14131 2004-08-10 11:43  pbartok
14132
14133         * Control.cs:
14134           - Added more to the still unfinished Dock/Anchor layout code
14135
14136 2004-08-10 11:39  pbartok
14137
14138         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14139           - Added GetWindowPos method
14140
14141 2004-08-10 11:36  pbartok
14142
14143         * XplatUIWin32.cs:
14144           - Implemented several methods
14145
14146 2004-08-10 09:47  jackson
14147
14148         * TrackBar.cs: Allow control to handle buffering
14149
14150 2004-08-10 09:41  jackson
14151
14152         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14153
14154 2004-08-10 09:24  jackson
14155
14156         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14157
14158 2004-08-10 09:09  jackson
14159
14160         * StatusBar.cs: Let Control handle all the buffering.
14161
14162 2004-08-10 09:08  jackson
14163
14164         * Control.cs: Control will now handle the buffering code, so each
14165           control does not have to implement this.
14166
14167 2004-08-10 08:34  jackson
14168
14169         * XplatUIDriver.cs: Use default colors from the theme
14170
14171 2004-08-09 17:12  pbartok
14172
14173         * ImageList.cs:
14174           - Fixed several bugs Ravindra pointed out
14175
14176 2004-08-09 16:11  pbartok
14177
14178         * Control.cs:
14179           - Added incomplete dock layout code
14180           - Added support for mouse wheel
14181
14182 2004-08-09 16:09  pbartok
14183
14184         * XplatUIX11.cs:
14185           - Added handling for middle and right mousebutton
14186           - Added handling for mouse wheel
14187           - Added handling for key state and mouse state and position
14188           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14189           messages
14190
14191 2004-08-09 15:40  jackson
14192
14193         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14194           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14195           checkin
14196
14197 2004-08-09 15:37  jackson
14198
14199         * StatusBar.cs: Initial implementation of StatusBar
14200
14201 2004-08-09 15:36  jackson
14202
14203         * ITheme.cs: Add support for drawing status bar and getting status
14204           bar item sizes
14205
14206 2004-08-09 15:35  pbartok
14207
14208         * MouseButtons.cs:
14209           - Fixed values
14210
14211 2004-08-09 15:34  jackson
14212
14213         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14214           status bar item sizes
14215
14216 2004-08-09 15:21  jackson
14217
14218         * ThemeWin32Classic.cs: Use known colors for default control
14219           colours
14220
14221 2004-08-09 15:12  jackson
14222
14223         * ThemeWin32Classic.cs: Make the default font static, it is static
14224           in control so this doesn't change functionality and creating fonts
14225           is sloooooow.
14226
14227 2004-08-09 14:56  pbartok
14228
14229         * X11Structs.cs:
14230           - Added GrabMode enum
14231
14232 2004-08-09 14:55  pbartok
14233
14234         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14235           - Removed Run method, was only required for initial development
14236
14237 2004-08-09 14:51  pbartok
14238
14239         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14240           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14241           capture
14242
14243 2004-08-09 13:48  pbartok
14244
14245         * XplatUIX11.cs:
14246           - Fixed default sizing for child windows
14247
14248 2004-08-09 12:56  pbartok
14249
14250         * XplatUIX11.cs:
14251           - Added generation of WM_DESTROY message
14252           - Added handling of window manager induced shutdown
14253
14254 2004-08-09 11:31  jackson
14255
14256         * ThemeWin32Classic.cs: New names for control properties
14257
14258 2004-08-09 11:25  jackson
14259
14260         * Control.cs: Use new color names
14261
14262 2004-08-09 11:02  jackson
14263
14264         * XplatUI.cs: Get default window properties from the theme
14265
14266 2004-08-09 11:01  jackson
14267
14268         * ITheme.cs: The theme engine now controls default window
14269           properties
14270
14271 2004-08-09 11:00  jackson
14272
14273         * ThemeWin32Classic.cs: Add default window color properties
14274
14275 2004-08-09 10:17  jackson
14276
14277         * ThemeWin32Classic.cs: Use correct default back color
14278
14279 2004-08-09 10:05  jackson
14280
14281         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14282           the theme now.
14283
14284 2004-08-09 09:56  jackson
14285
14286         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14287
14288 2004-08-09 09:54  jackson
14289
14290         * Control.cs: Get default properties from the theme.
14291
14292 2004-08-09 09:53  jackson
14293
14294         * ITheme.cs: Themes now handle default control properties
14295
14296 2004-08-09 09:53  jackson
14297
14298         * ThemeWin32Classic.cs: Themes now handle default control
14299           properties so coloring will be consistent
14300
14301 2004-08-08 16:54  jordi
14302
14303         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14304
14305 2004-08-08 15:08  jordi
14306
14307         * XplatUIX11.cs: fixes keyboard crash
14308
14309 2004-08-08 13:47  jordi
14310
14311         * Label.cs: add cvs header info
14312
14313 2004-08-08 12:09  jackson
14314
14315         * ThemeWin32Classic.cs: Add pen_buttonface
14316
14317 2004-08-08 11:52  jordi
14318
14319         * Label.cs, LinkLabel.cs: [no log message]
14320
14321 2004-08-08 11:34  jordi
14322
14323         * ThemeWin32Classic.cs: Use Windows Standard Colours
14324
14325 2004-08-07 17:32  jordi
14326
14327         * TrackBar.cs: throw exceptions of invalid enums values
14328
14329 2004-08-07 17:31  jordi
14330
14331         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14332           draw method name
14333
14334 2004-08-07 16:56  jackson
14335
14336         * HorizontalAlignment.cs: Initial checkin
14337
14338 2004-08-07 13:16  jordi
14339
14340         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14341           methods
14342
14343 2004-08-07 13:05  jordi
14344
14345         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14346           GetSysColor defines
14347
14348 2004-08-06 18:01  pbartok
14349
14350         * ThemeWin32Classic.cs:
14351           - Fixed some rounding issues with float/int
14352
14353 2004-08-06 18:00  jackson
14354
14355         * DockStyle.cs, AnchorStyles.cs:
14356
14357                   Add flags and serializable attributes.
14358
14359 2004-08-06 17:46  pbartok
14360
14361         * XplatUIX11.cs:
14362           - Implemented GetParent
14363
14364 2004-08-06 17:18  pbartok
14365
14366         * TrackBar.cs:
14367           - Fixed some rounding issues with float/int
14368
14369 2004-08-06 17:17  pbartok
14370
14371         * X11Structs.cs, XplatUIX11.cs:
14372           - Fixed Refresh and Invalidate
14373
14374 2004-08-06 15:30  pbartok
14375
14376         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14377           - Fixed recursive loop when resizing
14378           - Improved/fixed redrawing on expose messages
14379
14380 2004-08-06 09:53  jordi
14381
14382         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14383           keyboard navigation
14384
14385 2004-08-06 08:02  pbartok
14386
14387         * X11Structs.cs, XplatUIX11.cs:
14388           - Fixed reparenting
14389           - Fixed window border creation
14390
14391 2004-08-05 15:38  pbartok
14392
14393         * XplatUIX11.cs:
14394           - Attempted fix for reparenting problems
14395
14396 2004-08-04 15:14  pbartok
14397
14398         * Control.cs:
14399           - Fixed Invalidation bug (calculated wrong client area)
14400           - Added ClientSize setter
14401
14402 2004-08-04 15:13  pbartok
14403
14404         * Form.cs:
14405           - Added AutoScale properties
14406
14407 2004-08-04 15:13  pbartok
14408
14409         * SWF.csproj:
14410           - Added latest files
14411
14412 2004-08-04 14:11  pbartok
14413
14414         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14415           XplatUIX11.cs:
14416           - Added Invalidate handling
14417
14418 2004-08-03 17:09  jordi
14419
14420         * XplatUIDriver.cs: fixes spelling mistake
14421
14422 2004-07-27 09:53  jordi
14423
14424         * TrackBar.cs: fixes trackbar events, def classname, methods
14425           signature
14426
14427 2004-07-27 09:29  jordi
14428
14429         * ScrollBar.cs: fixes scrollbar events
14430
14431 2004-07-27 04:38  jordi
14432
14433         * Control.cs: changes to be able to run winforms samples
14434
14435 2004-07-26 11:42  jordi
14436
14437         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14438           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14439
14440 2004-07-26 05:41  jordi
14441
14442         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14443           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14444           implementation
14445
14446 2004-07-22 09:22  jordi
14447
14448         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14449           check link overlapping, implement events, and fixes
14450
14451 2004-07-21 10:28  jordi
14452
14453         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14454
14455 2004-07-21 10:19  jordi
14456
14457         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14458           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14459           LinkLabelLinkClickedEventArgs.cs,
14460           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14461           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14462           implementation
14463
14464 2004-07-19 13:09  jordi
14465
14466         * Control.cs, Label.cs: label control re-written: added missing
14467           functionlity, events, and properties
14468
14469 2004-07-19 10:49  jordi
14470
14471         * Control.cs: fixes SetBounds logic
14472
14473 2004-07-19 01:29  jordi
14474
14475         * Control.cs: Call RefreshWindow only if the window has created
14476
14477 2004-07-15 14:05  pbartok
14478
14479         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14480           - Implemented ImageList and ImageList.ImageCollection classes
14481           - Added ColorDepth enumeration
14482           - Updated SWF VS.Net project
14483
14484 2004-07-15 11:06  jordi
14485
14486         * XplatUIStructs.cs: added MsgButons enum
14487
14488 2004-07-15 11:03  jordi
14489
14490         * Control.cs: added basic mouse handeling events
14491
14492 2004-07-15 03:38  jordi
14493
14494         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14495           Vertical TrackBar control implementation
14496
14497 2004-07-13 09:33  jordi
14498
14499         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14500
14501 2004-07-13 09:31  jordi
14502
14503         * Control.cs, Form.cs: commit: new properties and fixes form size
14504           problems
14505
14506 2004-07-09 14:13  miguel
14507
14508         * ProgressBar.cs: Spelling
14509
14510 2004-07-09 11:25  pbartok
14511
14512         * ProgressBar.cs:
14513           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14514           faster
14515
14516 2004-07-09 11:17  miguel
14517
14518         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14519
14520                 * ProgressBar.cs: Fixed spelling for `block'
14521
14522                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14523                 style guidelines.
14524
14525                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14526
14527 2004-07-08 23:21  pbartok
14528
14529         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14530           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14531           BaseCollection.cs, Binding.cs, BindingContext.cs,
14532           BindingMemberInfo.cs, BindingsCollection.cs,
14533           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14534           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14535           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14536           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14537           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14538           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14539           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14540           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14541           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14542           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14543           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14544           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14545           InputLanguageChangedEventArgs.cs,
14546           InputLanguageChangedEventHandler.cs,
14547           InputLanguageChangingEventArgs.cs,
14548           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14549           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14550           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14551           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14552           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14553           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14554           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14555           QueryAccessibilityHelpEventArgs.cs,
14556           QueryAccessibilityHelpEventHandler.cs,
14557           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14558           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14559           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14560           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14561           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14562           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14563           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14564           XplatUIX11.cs, lang.cs:
14565           - Initial check-in
14566