2006-06-19 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2
3         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
4           being translated relative to whole window, instead of client window.
5           That caused broken offsets on mouseclick (and caused gas for our
6           InternalWindowManager)
7
8 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
9
10         * TextControl.cs:
11           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12           - Undo(): Added replay of cursor move on DeleteChars action; added
13             calling Undo() again if a recorded cursor move is invalid (to
14             ensure that some action is performed on Undo)
15         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
16
17 2006-06-16  Jackson Harper  <jackson@ximian.com>
18
19         * MdiClient.cs: Instead of just sizing maximized windows when
20         there is a resize we also have to adjust the Y of minimized
21         windows, so they stay pinned to the bottom of the mdi container.
22         - Eliminate separate tracking of the active control, we can just
23         get this from the controls collection.
24         - Paint the decorations for the newly activated titlebar so we get
25         a pretty blue bar.
26         * InternalWindowManager.cs:
27         * ThemeWin32Classic.cs: Minimized windows get all three buttons
28         even if they are a tool window.
29         
30 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
31
32         * TextControl.cs (Undo): Handle non-existent cursor locations in the
33           undo buffer, these can happen when text was deleted and the cursor
34           was recorded first. Since we will also have a recorded cursor
35           after the delete this is not an issue. (Fixes #78651)
36
37 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
38
39         * AccessibleObject.cs: Remove dependence on Control.is_selected;
40           instead properly track control states internally (allows us to
41           remove is_selected from Control)
42
43 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
44
45         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
46         whose width is not a multiple of 8.
47
48 2006-06-13  Jackson Harper  <jackson@ximian.com>
49
50         * MdiClient.cs:  Only maximize the next child if the current one
51         is maximized.
52
53 2006-06-13  Chris Toshok  <toshok@ximian.com>
54
55         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
56         modified.  Also, guard against grid or grid_drawing being null in
57         Invalidate.
58
59         * DataGrid.cs: Reformat tons of getters/setters.  In the
60         DataMember setter, just call SetNewDataSource instead of
61         duplicating some of its functionality.  In SetNewDataSource, don't
62         check ListManager for null, since the property getter creates the
63         object if needed.
64
65         * DataGridTableStyle.cs: don't set TableStyle or call
66         SetDataGridInternal on the column here, it's done in
67         GridColumnStylesCollection.Add.
68
69         * GridColumnStylesCollection.cs: fix all the explicit interface
70         implementations to just call our methods.  Nuke AddInternal() and
71         move the body of it to Add().  Also, add a call to
72         column.SetDataGridInternal to Add().
73
74         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
75         base()+duplicate code.  Also, use the Format property instead of
76         format to generate an Invalidate ala MS.  Lastly, create the
77         textbox here, unconditionally.
78         (set_Format): call Invalidate.
79         (get_TextBox): no need to call EnsureTextBox.
80         (Commit): remove the message box.
81         (Edit) remove the call to EnsureTextBox.
82         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
83         (EnterNullValue): no need to check textbox for null.
84         (HideEditBox): no need to check textbox for null.
85         (SetDataGridInColumn): add the textbox to the grid's controls.
86         (EnsureTextBox): nuke.
87         
88 2006-06-13  Jackson Harper  <jackson@ximian.com>
89
90         * MdiWindowManager.cs: Hook up to the maximized menus paint event
91         and redraw the buttons when needed. Unhook when the window is
92         unmaximized.
93         * MainMenu.cs: Add an internal Paint event, the mdi window manager
94         needs this so that it can redraw its buttons when the menu is
95         repainted.
96         * InternalWindowManager.cs:
97         * Form.cs: The method order has changed for DrawMaximizedButtons,
98         so that it can be a PaintEventHandler.
99         
100 2006-06-13  Jackson Harper  <jackson@ximian.com>
101
102         * MdiClient.cs: When we close a maximized mdi window, the next mdi
103         window is activated and maximized, even if it wasn't before.
104         - When  a new window is activated repaint the decorations of the
105         old one, so that it no longer has the Active "look" (the blue
106         titlebar).
107         * InternalWindowManager.cs: Open up CreateButtons to base classes
108         so they can recreate the buttons on state changes.
109         - If a window is maximized give it all three buttons
110         * MdiWindowManager.cs: Create the titlebar buttons when the state
111         is changed, this is needed because a toolwindow will not have all
112         three buttons until it is maximized.
113
114 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
115
116         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
117           Fixed bug #78609.
118
119 2006-06-12  Jackson Harper  <jackson@ximian.com>
120
121         * KeysConverter.cs: Make sure we handle the Ctrl special case
122         if its the only key.
123         
124 2006-06-12  Jackson Harper  <jackson@ximian.com>
125
126         * Theme.cs: Add a method to get the size of a managed window
127         toolbar button.
128         * InternalWindowManager.cs: Remove the ButtonSize property, this
129         should be retrieved from the theme.
130         * MdiWindowManager.cs: Get the button size from the theme
131         * ThemeWin32Classic.cs: Make the method to get the managed window
132         titlebar button size public.
133         - Handle the different button sizes of maximized toolwindows
134         (should match any maximized window).
135         - Get the titlebar height from the theme, not the WM (which gets
136         it from the theme).
137
138 2006-06-12  Jackson Harper  <jackson@ximian.com>
139
140         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
141         event down to the mdi window manager.
142         - Expose some extra stuff to base classes
143         - Make sure to end the Capture on an NC Mouse up, so that we can
144         get double clicks properly, and the sizing doens't stick.
145         - When doing PointToClient contain it in the workable desktop
146         area, this prevents windows from changing size when the cursor is
147         pulled outside of the working area while sizing.
148         * MdiWindowManager.cs: When we get a double click maximize the
149         window.
150         - Reset the cursor after handling mode changes.
151
152 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
153
154         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
155           current desktop, instead of just assuming a 0, 0 origin. This
156           is needed for our internal window manager, to know the top
157           margin of the desktop
158
159 2006-06-12  Chris Toshok  <toshok@ximian.com>
160
161         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
162         we need this to get rid of the selected background in the bool
163         column.
164         (CancelEditing): move the ConcedeFocus call to above the Abort
165         call.  Also, set is_changing to false and invalidate the row
166         header if we were changing before.
167         (ProcessKeyPreviewInternal): remove, since noone outside this
168         class calls it anymore.  Roll the code into ProcessKeyPreview.
169         (EndEdit): remove the internal version.
170         (InvalidateCurrentRowHeader): make private.
171
172         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
173         Keys.Escape handling (and with it the last call to
174         DataGrid.EndEdit from outside the class.)
175
176
177 2006-06-12  Chris Toshok  <toshok@ximian.com>
178
179         * DataGridTextBox.cs (.ctor): isedit defaults to false.
180         (OnKeyPress): set isedit to true.
181         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
182         already handled by the grid.
183
184         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
185         right.  ugh.
186         (set_DataSource): SetDataSource always returns true, so stop
187         putting it in an if statement.
188         (EndEdit): get rid of some {}'s
189         (ProcessGridKey): return true in case Keys.Escape.
190         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
191         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
192         PositionChanged, stopped connecting to CurrentChanged.
193         (GetDataSource): simplify this a bunch.
194         (SetDataSource): change return type from bool to void.
195         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
196         to this, and make sure we don't set ListManager.Position inside
197         set_CurrentCell.
198         (OnListManagerItemChanged): if we're passed an actual index,
199         redraw that row.
200
201         * CurrencyManager.cs (set_Position): don't call PullData here.
202
203 2006-06-09  Jackson Harper  <jackson@ximian.com>
204
205         * TreeNode.cs:  Recalculate the visible order before doing the
206         Expand/Collapse Below calls, because those calls generate an
207         expose.
208         - Reduce calls to the TreeView property, which is mildly expensive
209         by using a local var.
210         * Form.cs: Layout the MDI child windows when creating the parent
211         form.
212         - Don't use the internal constructor anymore
213         * MdiClient.cs: use the parent form width/height (if available)
214         when laying out the child windows, we do this because the
215         mdiclient isn't docked yet when the initial layout is done.
216         - Don't need an internal constructor anymore.
217
218 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
219
220         * FileDialog.cs: handle access errors when trying to create a folder
221         or changing to a directory. No need to initialize out parameters.
222
223 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
224
225         * FileDialog.cs: Append a number when creating a new folder if the
226           folder already exists (use parenthesis instead of square brackets)
227
228 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
229
230         * FileDialog.cs:
231           - Disabled registry support for windows and added better registry
232             error checking for other systems (need to investigate why it
233             works perfectly on my system)
234           - If a folder already exist show an error MessageBox instead of
235             trying to create an indexed name.
236           - Fixed a non intentional typo.
237
238 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
239
240         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
241
242 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
243
244         * FileDialog.cs: When creating a new folder don't crash if the
245           folder already exists.
246
247 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
248
249         * FileDialog.cs: Allmost a complete rewrite.
250           - added a "virtual" file system that handles the differences
251             between unix and windows file systems (especially the directory
252             structure). Moved most of the directory and file handling code
253             into the vfs.
254             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
255             UnixFileSystem and FSEntry.
256           - Recently used folder/directory, size, location and used file names
257             (file name ComboBox) are now stored in the registry and get read
258             before the dialog shows up (fixes part 6 of bug #78446).
259           - Creation of new folders/directories is now possible (context menu
260             or ToolBar). Added TextEntryDialog for this that fills in the gap
261             until ListView.LabelEdit works.
262           - Fixed cursor handling (bug #78527) and focus handling for
263             PopupButtonPanel
264           - Various "Search in" ComboBox enhancements. The content of the
265             dropdown listbox now almost matches ms.
266           - Changed the behaviour when the user switches to SpecialFolder
267             Recent to show the ListView in View.Details.
268           - Beside using the ToolBar to change the View property of the
269             file ListView it is now possible to use the context menu too.
270
271 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
272
273         * ComboBox.cs: Don't create a new ObjectCollection when an item
274           gets inserted. Just insert the item in the existing object_items
275           ArrayList.
276
277 2006-06-08  Jackson Harper  <jackson@ximian.com>
278
279         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
280         that the treeview and root node checks are done also, this fixes a
281         regression i caused in the unit tests.
282
283 2006-06-07  Wade Berrier <wberrier@novell.com> 
284
285         * RichTextBox.cs: More ISO8859-1 -> unicode
286
287 2006-06-07  Mike Kestner  <mkestner@novell.com>
288
289         * ComboBox.cs : use items to hold highlight/selection so that
290         collection insertions don't require synchronization.
291
292 2006-06-07  Jackson Harper  <jackson@ximian.com>
293
294         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
295         routine.  We now always keep the sized edge at the cursor instead
296         of computing movement and adjusting rects.  There is one buglet
297         with this method though when the cursor is moved over area that
298         the window can not expand too (such as the toolbars on the desktop).
299
300 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
301
302         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
303         here. Fixes crash on startup in AlbumSurfer.
304
305 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
306
307         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
308           values
309
310 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
311
312         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
313         statement to avoid calling XNextEvent which will block if another thread
314         took the event that we were expecting. Fixes bug #78605.
315
316 2006-06-07  Mike Kestner  <mkestner@novell.com>
317
318         * ListView.cs : isolated checkbox clicking from the selection logic.
319         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
320
321 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
322
323         * Form.cs: Check that the value passed to Form.DialogResult
324         is a valid enum value.
325
326 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
327
328         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
329         Computer'. Clicking it in the network view goes to 'My Computer'.
330         Added CIFS filesystem type. Display the mount point of filesystems.
331         Avoid duplicate mount points (happens for me with CIFS);
332
333 2006-06-06  Jackson Harper  <jackson@ximian.com>
334
335         * InternalWindowManager.cs: Draw the maximized windows buttons
336         when resizing.
337
338 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
339
340         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
341         all other dialogs. Fixes bug #78585.
342
343 2006-06-06  Mike Kestner  <mkestner@novell.com>
344
345         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
346         Only invalidate checkbox on checkstate changes to avoid flicker.
347         * ListBox.cs : avoid unselect/select when clicking selected item.
348         avoid reselection flicker for already multiselected items.
349         Fixes #78382.
350
351 2006-06-06  Jackson Harper  <jackson@ximian.com>
352
353         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
354         the parent form so that the menu is removed if needed.
355
356 2006-06-06  Mike Kestner  <mkestner@novell.com>
357
358         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
359         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
360
361 2006-06-06  Mike Kestner  <mkestner@novell.com>
362
363         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
364
365
366 2006-06-06  Jackson Harper  <jackson@ximian.com>
367
368         * Control.cs: Use the property (instead of the field) to get the
369         default cursor so it is instantiated correctly.
370         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
371         resizes so we need to manually repaint the window decorations here.
372         - Set the titlebar button locations as soon as they are created,
373         otherwise they are not set correctly on win32.
374         
375 2006-06-06  Chris Toshok  <toshok@ximian.com>
376
377         * CurrencyManager.cs (set_Position): call PullData before
378         OnCurrentChanged.
379         (AddNew): after calling IBindingList.AddNew, update our
380         listposition, and call OnCurrentChanged/OnPositionChanged (without
381         calling PullData).
382         (OnCurrentChanged): remove the call to PullData from here.
383         (OnItemChanged): remove the call to PushData from here.
384         (OnPositionChanged): change the test from == null to != null to
385         match the other methods.
386         (ListChangedHandler): the grossest part of the patch.  Implement
387         this such that it passes the unit tests in CurrencyManagerTest and
388         the output more or less matches that of MS's implementation.
389  
390 2006-06-06  Mike Kestner  <mkestner@novell.com>
391
392         * ListView.cs : only update check state on single click.
393         * ThemeWin32Classic.cs : fix focus drawing for details view without
394         fullrowselect.  Fixes #78454.
395         * XplatUIX11.cs : fix for double click emission.
396
397 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
398
399         * PropertyGridView.cs : Applied Atsushi's patch to fix
400         font dialog bug  (#78197).
401
402 2006-06-05  Jackson Harper  <jackson@ximian.com>
403
404         * TreeNode.cs: Compute the next node for expanding/collapsing
405         correctly. We now factor in nodes without a NextNode
406         correctly. (Fixes somes cases in nunit-gui).
407         * InternalWindowManager.cs: Set the bounds when updating the
408         virtual position of a tool window.
409         
410 2006-06-05  Chris Toshok  <toshok@ximian.com>
411
412         * DataGrid.cs: rename cached_currencymgr to list_manager.
413         (set_CurrentCell): move SetCurrentCell code here, and clean it up
414         some.
415         (CurrentRow, CurrentColumn): single accessors so we can make the
416         cursor movement code a lot easier to understand.
417         (CurrentRowIndex): implement this in terms of CurrentRow.
418         (BeginEdit): clean this up a bit.
419         (CancelEditing): sort out the is_editing/is_changing/is_adding
420         stuff a little.
421         (EndEdit): minor changes.
422         (OnKeyDown): add a comment about a (most likely) unnecessary
423         check.
424         (OnMouseDown): cancel editing when we click on a row header.  And
425         use the CurrentRow setter, not CurrentCell.
426         (ProcessDialogKey): directly call ProcessGridKey.
427         (UpdateSelectionAfterCursorMove): factor out this common block of
428         code (it's used everywhere that we move the cursor by updating row
429         or column).
430         (ProcessGridKey): pretty substantial overhaul.  Use the
431         CurrentRow/CurrentColumn properties to make the code a lot more
432         readable.  Only use the CurrentCell property when we have to
433         modify both row and column at once.  Tab behavior is still broken,
434         and Delete is untested.
435         (Select): if we have no selected rows, set selection_start to
436         @row.
437         (EditCurrentCell): rename EditCell this.  It was only ever invoked
438         with CurrentCell as the arg, so drop the arg and rename it.
439
440         * DataGridColumnStyle.cs: clean up the constructors a little, and
441         drop CommonConstructor().
442
443         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
444         actually get notified when the user hits it.
445         (ProcessKeyMessage): *substantially* simplify this method.
446         There's no reason (that I can see) for the textbox to be making
447         calls into the datagrid at all.  Remove all of them but the ones
448         for Enter handling.  those will take some more work.
449
450         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
451         calling HideEditBox.
452         (HideEditBox): if we have an active textbox, render it invisible
453         without causing a re-layout of the datagrid.
454
455 2006-06-05  Mike Kestner  <mkestner@novell.com>
456
457         * ListView.cs : fix NRE crasher when focuseditem is cleared by
458         collection changes by resetting it to Items[0].  Fixes #78587.
459
460 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
461
462         * MessageBox.cs: if the height of the text is larger than the icon_size,
463         use that. Fixes bug #78575.
464
465 2006-06-05  Jackson Harper  <jackson@ximian.com>
466
467         * TreeView.cs: Fix line drawing when scrolling.  To do this each
468         node is basically responsible for drawing its entire horizontal
469         area.  When drawing a node it draws its parent node lines if
470         needed.
471         - Adjust the clip area to the viewport rectangle
472         - Fix Left/Right key handling to match MS. (It expand/collapses
473         and moves to parents/first child but does not move selection to
474         sibling nodes).
475         - Fix SetTop to work with new bound calculation code
476         - When scrollbars are no longer needed we need to reset scrolling
477         vars and recalculate the visible order so the redraw is correct
478         * TreeNode.cs: We can't expand/collapse nodes with no children.
479
480 2006-06-03  John Luke  <john.luke@gmail.com> 
481
482         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
483         so the colors work without dev packages
484         
485 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
486
487         * Control.cs 
488           - Select: Implemented to just use activate. Seems to match MS 
489             behaviour closest. Documented to only do actual control walking 
490             based on it's parameters if in a container control so I moved 
491             the code there.
492           - Removed selection check logic from our internal Select() method
493         * ContainerControl.cs:
494           - Select: Moved selection logic from Control here, since MS documents
495             that containers obey the bool arguments. No longer calling base
496
497 2006-06-02  Jackson Harper  <jackson@ximian.com>
498
499         * TreeView.cs: If the selected node isn't changed when we get
500         focus update the previously selected node so that we see the
501         selection box.
502
503 2006-06-02  Mike Kestner  <mkestner@novell.com>
504
505         * ComboBox.cs: restructure grab and general mouse event handling.
506         Make the composite control raise mouse events like it was a single
507         control for leaves/enters/motion/up/down events.  fix dropdown list
508         coordinate mangling and refactor it into the scrollbar subclass to
509         reduce code duplication.  Fixes #78282 #78361 and #78457.
510
511 2006-06-02  Mike Kestner  <mkestner@novell.com>
512
513         * ScrollBar.cs: remove Capture setting/clearing, as it happens
514         automatically in the Control.WndProc.
515
516 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517
518         * FileDialog.cs: fix crash when running SharpChess, which sets the
519         FilterIndex to 2 with only one Filter.
520
521 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
522
523         * ToolBar.cs: add SizeSpecified property.
524         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
525         try to figure out our real size, otherwise fallback to what the
526         container says.
527
528 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
529
530         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
531         * Control.cs (WndProc): MS always calls the DefWndProc to pass
532           up the event
533
534 2006-06-01  Mike Kestner  <mkestner@novell.com>
535
536         * ListView.cs: revamp the focus management in ListView.  It still
537         causes churn of LostFocus/GotFocus emissions on clicks, but it's
538         better than not handling focus at all.  Will revisit when pdb feels
539         the general focus handling is solid.  Fixes #78526.
540
541 2006-06-01  Jackson Harper  <jackson@ximian.com>
542
543         * TreeView.cs: Set the default border style in the constructor.
544         - Move painting to use OnPaintInternal instead of capturing
545         WM_PAINT, this is the correct way of doing things
546         - UpdateBelow shouldn't invalidate the scrollbar area
547         - Cap the top on update below in case the node was above the top
548         of the viewport rectangle.
549         - ExpandBelow and Collapse below need to obey Begin/End Update.
550         * TreeNode.cs: Make is_expanded internal so the treenode
551         collection can change it without firing the whole event chain.
552         * TreeNodeCollection.cs: When clearing all the child nodes make
553         sure to recalc the visible order.
554         - Improve algo for remove the top node
555
556 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
557
558         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
559           SendMessage directly calling window procedures, which in turn might
560           call SetFocus()
561
562 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
563
564         * Control.cs: Don't handle WM_SETFOCUS if the same window already
565           has focus (works around X11 sending a FocusIn after our SetFocus)
566         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
567
568 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
569
570         * Mime.cs: Fix for the NET_2_0 build.
571           NameValueCollection needs StringComparer now.
572
573 2006-05-31  Chris Toshok  <toshok@ximian.com>
574
575         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
576         return (via an out parameter) the starting X of the column.
577         (UpdateVisibleColumn): track change to FromPixelToColumn.
578         (HitTest): add a ColumnResize case here.
579         (DrawResizeLine): new function, probably poorly named.
580
581         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
582         only need to keep one reference.
583         (set_ListManager): same.
584         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
585         Also, add support for HitTestType.ColumnResize.
586         (OnMouseMove): add column resize behavior here, and change the
587         cursor to the correct one as we move around the datagrid.
588         (OnMouseUp): terminate the column resize if we're resizing.
589         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
590         for the current cell.
591         (ConnectListManagerEvents): use cached_currencymgr.
592         (DisconnectListManagerEvents): fill this in, using
593         cached_currencymgr.
594         (SetCurrentCell): remove cached_currencymgr_events handling.
595         (SetDataMember): only call DisconnectListManagerEvents if
596         cached_currencymgr is != null.
597         (SetDataSource): same.
598         (OnListManagerCurrentChanged): cached_currencymgr_events ->
599         cached_currencymgr.
600
601 2006-05-31  Jackson Harper  <jackson@ximian.com>
602
603         * BindingManagerBase.cs: Remove somedebug code that creeped into
604         SVN.
605         * TreeNode.cs: We get the indent level dynamically right now, so
606         don't track it as a member.
607         * TreeNodeCollection.cs: Make sure all nodes added to the list
608         have parents, treeviews/topnodes setup properly.
609         - Don't attempt to track indent level.
610
611 2006-05-30  Jackson Harper  <jackson@ximian.com>
612
613         * BindingContext.cs: Create the currency manager tables here.
614         This allows us to more easily create null tables (when bad data
615         members are used), and more easily create related currency
616         managers.
617         * CurrencyManager.cs: All the table creation stuff is done by the
618         binding context now.
619         - Current should throw an exception if listposition is -1.
620         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
621         been bound yet.
622
623 2006-05-30  Mike Kestner  <mkestner@novell.com>
624
625         * ListView.cs: allow reexpansion of zero-width column headers.
626         Fixes #78528.
627
628 2006-05-28  Chris Toshok  <toshok@ximian.com>
629
630         * CurrencyManager.cs (get_Current): after the late binding
631         listposition = -1 fix, we need to guard against it here and return
632         null, otherwise we raise an exception (which is swallowed
633         elsewhere, and breaks datagrid databinding.)
634
635 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
636
637         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
638           than WM_SYSKEY, don't throw if get something unexpected (#78507)
639
640 2006-05-26  Jackson Harper  <jackson@ximian.com>
641
642         * ControlPaint.cs:
643         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
644         values, it's faster and it's all we care about (we don't care if
645         the names aren't equal).
646         * KeyboardLayouts.cs: Eliminate some dead code.
647         - Lazy init things
648         * X11Keyboard.cs: Lazy init keyboard detection.
649         - Cleanup access modifiers a little.
650
651 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
652
653         * XplatUIX11.cs: Once again, attempting to get layout just right.
654
655 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
656
657         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
658           the sizes of each link section, that will result in sizes that
659           match DrawString's layout (Fixes #78391)
660
661 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
662
663         * FileDialog.cs: If AddExtension property is true autocomplete the
664           extensions in SaveFileDialog correctly. Fixes bug #78453.
665           Set MyNetwork and MyComputer to "C:\" for windows. This should
666           fix part 8 of bug #78446 for now.
667
668 2006-05-26  Chris Toshok  <toshok@ximian.com>
669
670         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
671         invalidate the current row header if we need to, but presumably
672         we'll invalidate the row corrsponding to the bounds or
673         editingControl.
674         (GridHScrolled): switch back to this method, as it's part of the
675         public api.  *sigh*.
676         (GridVScrolled): same.
677         (OnMouseWheel): hack up something that more or less works.  Call
678         GridHScrolled/GridVScrolled directly, instead of duplicating much
679         of their code here.
680         (EnsureCellVisibility): reinstate a bunch of this code, since we
681         can't just set the scrollbar Value and expect to do all the work
682         in the ValueChanged handler.  Also, Call Update() after scrolling
683         in one direction so the other XplatX11.ScrollWindow call has the
684         proper stuff in the proper places.
685         (EditCell): set is_editing to true before calling .Edit.
686
687         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
688         don't bother comparing first.
689         (OnKeyPress): call grid.ColumnStartedEditing before calling
690         base.OnKeyPress.  this will set is_changing and invalidate the row
691         header if necessary.
692         (ProcessKeyMessage): for WM_CHAR messages, call
693         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
694         and WM_KEYDOWN.
695         
696         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
697         it's done in the DataGrid.
698         (NextState): call grid.ColumnStartedEditing, which takes care of
699         invalidating the row header (and setting is_changing).
700
701         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
702         here.  it's done in the DataGrid.
703
704 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
705
706         * Control.cs: allow changing the cursor when the mouse position is
707         out of bounds but Capture is set.
708         * LinkLabel.cs: handle the case when the mouse button is pressed on the
709         linklabel but released somewhere else.
710
711 2006-05-25  Jackson Harper  <jackson@ximian.com>
712
713         * TreeView.cs: When we get focus if there is no selected node make
714         it the top node
715         - Remove some uneeded setup code from Draw.
716         * TreeNodeCollection.cs: If the tree doesn't have a top node when
717         a new node is inserted make the new node the top.
718         * XplatUIX11.cs:
719         * Timer.cs: Use Utc time so that no local time zone stuff needs to
720         be used (should be faster).
721         
722 2006-05-25  Chris Toshok  <toshok@ximian.com>
723
724         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
725         problem with the last commit.
726
727 2006-05-25  Chris Toshok  <toshok@ximian.com>
728
729         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
730         need the invalidate call here, while scrolling right-to-left via
731         the left arrow key (i.e. moving the editing cell while scrolling).
732
733         * DataGrid.cs (.ctor): remove the initialization of
734         ctrl_pressed/shift_pressed.  We no longer track them using key
735         up/down handlers, but by using Control.ModifierKeys.  Also, switch
736         to using ValueChanged handlers on the scrollbars instead of
737         Scrolled event handlers.  This simplifies a bunch of the scrolling
738         code.
739         (GridHValueChanged): rename from GridHScrolled, and change it to
740         work with the new event args.
741         (GridVValueChanged): same.
742         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
743         (OnMouseWheel): actually scroll the datagrid.  Don't change the
744         selected cell.
745         (ProcessGridKey): correct all the keyboard navigation stuff I
746         could find.  Ctrl up/down/left/right/home/end work now.
747         (EnsureCellVisibility): correct method name spelling.  Also,
748         simplify this a touch by not explicitly calling the
749         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
750         scrollbar value.
751         (OnKeyUpDG): no need for this method now.
752         
753 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
754
755         * LinkLabel.cs: display the OverrideCursor when hovering the label.
756         Fixes bug #78392.
757
758 2006-05-25  Chris Toshok  <toshok@ximian.com>
759
760         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
761         r61019.
762
763 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
764
765         * Application.cs: Moved setting of is_modal and closing to before
766           we create the control, to allow the event handlers called as a
767           result of creation affect closing. Also removed Gonzalo's previous
768           change to setting DialogResult, the behaviour has been moved to 
769           Form.ShowDialog()
770         * Form.cs: 
771           - ShowDialog(): Removed explicit creation of the form, let RunLoop
772             handle it instead
773           - ShowDialog(): If no dialog result is set, we need to return Cancel
774           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
775             the close is cancelled
776
777 2006-05-25  Jackson Harper  <jackson@ximian.com>
778
779         * StatusBar.cs: We only need to update the sizes of the other
780         panels when we have auto size contents.  Also we are only updating
781         the contents of the panel, not the borders, so compensate for the
782         border width (TODO: get this width from the theme somehow).
783         * TreeView.cs: Scrollable is true by default
784         - Use invalidate instead of refresh where needed
785         - Factor the scrollable value into scrollbar updating
786         - Update the scrollbars if the Scrollable property is altered
787         - Update the selected node if its ImageIndex is changed
788         - Handle null nodes in UpdateNode (mainly so we don't have to
789         check if selected is null when updating it
790         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
791         are factored into the visible count
792         - Use VisibleCount for clarity in the code
793         - When the font is changed we need to recurse through all the
794         nodes and invalidate their sizes
795         
796 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
797
798         * Application.cs: set the DialogResult to fixed when the main form is
799         hidden or destroyed while being modal.
800
801 2006-05-25  Miguel de Icaza  <miguel@novell.com>
802
803         * Theme.cs: Use Tangoified messagebox icons. 
804
805         (GetSizedResourceImage): Also cope with width = 0 and do not
806         trigger a warning in that case (0 means "give me your icon from
807         the resouce, no special size needed).
808
809 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
810
811         * Application.cs: Leave runloop if the the main modal form is 
812           hidden (fixes #78484)
813
814 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
815
816         * BindingContext.cs : reject null datasource in Contains() and
817           Item[].
818         * CurrencyManager.cs : check data_member validity when data_source
819           is dataset. When it is late binding, the initial position is -1.
820
821 2006-05-24  Jackson Harper  <jackson@ximian.com>
822
823         * TreeNodeCollection.cs: Dont't recalculate the visible order on
824         inserted nodes that aren't visible.  This changes the
825         max_visible_order which confuses scrollbar settings.
826         - Use the enumerator to get the prev node instead of duplicating
827         code.
828         * TreeView.cs: Use new method for setting scrollbar values
829         - Don't set the bounds every time the scrollbar is updated
830         - When updating below the root node use an invalidate instead of a
831         refresh to prevent the child controls (scrollbars) from being
832         refreshed. (UpdateBelow still needs to be reworked anyways).
833         - Reenable SetBottom now that visible orders are set correctly,
834         added some debug code incase we ever get bad values there again.
835         - Set the scrollbar max to 2 less then the max value, this
836         compensates for the max value being one above the node count, and
837         for scrollbars adding one extra "notch".
838         - When drawing image nodes if there is an imagelist we draw the
839         first image in the list if the supplied image index is out of the
840         image list's bounds.
841         
842 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
843
844         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
845           we receive a size change from the WM (Fixes #78503)
846
847 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
848
849         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
850           rectangle (Fixes #78501)
851
852 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
853
854         * ButtonBase.cs: 
855           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
856             as a bitfield.
857           - Fixed MouseMove to no longer switch pressed state unless the left
858             mouse button is pressed. Atsushi provided the original patch (#78485)
859           
860 2006-05-24  Jackson Harper  <jackson@ximian.com>
861
862         * ScrollBar.cs: New internal methods that allow us to change a
863         couple values on the scrollbar (the most common case is maximum
864         and large change) without getting multiple invalidates.
865
866 2006-05-24  Chris Toshok  <toshok@ximian.com>
867
868         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
869         (Edit): save off the original state in oldState, and set
870         grid.is_editing to true.
871         (OnKeyDown): abort editing if escape is pressed.  also, call
872         NextState if space is pressed.
873         (OnMouseDown): call NextState.
874         (NextState): factor out shared code from OnKeyDown and OnMouseDown
875         here.  Also, only invalidate the row header once (on the initial
876         is_changing switch) to save on redraws.
877
878 2006-05-24  Chris Toshok  <toshok@ximian.com>
879
880         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
881         if the value in the cell is different than it was before.  This
882         keeps us from triggering a layout when we move around a datarid
883         with a highlighted cell.
884         (Edit): suspend layout when creating/positining the text box, and
885         resume passing false so we don't ever actually re-layout.
886         (ReleaseHostedControl): same.
887         (EnsureTextBox): reformat slightly, and set WordWrap to false.
888
889         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
890         control-key sequences should go to the datagrid - remove that
891         lock.  Also, modify the conditions under which we move between
892         cells when moving the cursor within a cell, and remove the "this"
893         and "base" from field accesses.  We weren't even consistent, given
894         they all were in the base class.
895
896 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
897
898         * Binding.cs : (.ctor)
899           An obvious NRE fix for BindingTest.CtorNullTest().
900
901 2006-05-23  Chris Toshok  <toshok@ximian.com>
902
903         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
904         them between lines.  This fixes some quirks editing cells in the
905         datagrid.
906
907 2006-05-23  Jackson Harper  <jackson@ximian.com>
908
909         * TreeView.cs: Use begin/end update when doing expand/collapse all
910         so that we don't get flicker on the scrollbar.
911
912 2006-05-23  Jackson Harper  <jackson@ximian.com>
913
914         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
915         treenode calculations to be independant of the painting code. To
916         do this nodes track a visible order which is calculated by the
917         treeview.
918         - Call new methods for expanding/collapsing nodes.  These methods
919         use scrollwindow so we don't have to update everything below the
920         node.
921         * TreeView.cs: Refactored drawing and scrolling code.  We don't
922         need to update nodes when drawing anymore or calculate scrollbar
923         stuff.
924         - Added new methods for expanding/collapsing nodes. These methods
925         use ScrollWindow so as to not have to redraw all the nodes below.
926         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
927         we add/remove nodes or sort.
928         - Handle removing the selected and the top node properly.
929
930 2006-05-23  Chris Toshok  <toshok@ximian.com>
931
932         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
933         maybe this should actually happen in the datagrid code?
934         (EndEdit): no need to invalidate anything, given that
935         ReleaseHostedControl causes the datagrid to relayout, which
936         invalidates everything anyway.
937
938         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
939         in SetCurrentCell).
940         (set_SelectionBackColor): call InvalidateSelection instead of
941         Refresh.
942         (set_SelectionForeColor): same.
943         (BeginEdit): Flesh this out a bit.
944         (CancelEditing): only do any of this if we're editing/adding.
945         (EndEdit): same.
946         (OnMouseDown): there's no need to cancel editing here, it's done
947         in SetCurrentCell.
948         (SetCurrentCell): only invalidate the current row header if it's a
949         different row than the new one.
950         (ShiftSelection): fix this to work like MS does.
951         (ResetSelection): factor out the invalidation of selected_rows to
952         InvalidateSelection.
953         (SetDataSource): cancel any editing that's going on.
954
955         * DataGridColumnStyle.cs
956         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
957         call the non-interface version.
958
959         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
960         header rectangle with the clip rectangle so we don't redraw the
961         entire header for just a small area.  Gets rid of the last flicker
962         when horizontally scrolling.
963         (DataGridPaintRow): same.
964
965 2006-05-23  Mike Kestner  <mkestner@novell.com>
966
967         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
968         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
969         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
970         Critical bug report.
971
972 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
973
974         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
975           and this fixes #78493
976
977 2006-05-23  Miguel de Icaza  <miguel@novell.com>
978
979         * Theme.cs (GetSizedResourceImage): Scale images if the proper
980         size is not found.  
981         
982         * FileDialog.cs: Do not change the background for the side bar as
983         it wont work nicely with the theme, and also reduces the artifacts
984         in rendering the icons (which I want to fix too).
985
986         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
987         resources, not resgen resources. 
988
989         (PlatformDefaultHandler): Pull images using the new API.
990
991 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
992
993         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
994           a reference to the hwnd and will not remove it unless there are
995           no pending exposures (fixes #78341)
996         * XplatUI.cs: Improved debug
997
998 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
999
1000         * MenuAPI.cs : don't handle OnClick event when it was not the left
1001           button. Fixed bug #78487.
1002
1003 2006-05-23  Mike Kestner  <mkestner@novell.com>
1004
1005         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1006         prefer submenus to the top menu for item lookup, to avoid popping down
1007         top-row items.
1008
1009 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1010
1011         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1012           Graphics.FillRectangle as the visual results are really bad (even
1013           on win). We now draw perfect arrows (and perfect shadows when the
1014           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1015           Pen.DashPattern to draw the dots of each line.
1016
1017 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1018
1019         * FileDialog.cs: Update the filename combobox when navigating through
1020           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1021
1022 2006-05-22  Mike Kestner  <mkestner@novell.com>
1023
1024         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1025         Fixes #78463.
1026
1027 2006-05-22  Mike Kestner  <mkestner@novell.com>
1028
1029         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1030         requests. Fix a misspelled parameter and a copy paste exception error
1031         in Select.
1032
1033 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1034
1035         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1036           to get the same width/height (5/13) on X11 as the default font has on
1037           win32. This means that our DefaultFont emSize is smaller than the 
1038           the MS SWF equivalent (even thought the width/height stays the same)
1039
1040 2006-05-20  Jackson Harper  <jackson@ximian.com>
1041
1042         * MdiClient.cs:
1043         * MdiWindowManager.cs:
1044         * InternalWindowManager.cs: Make sure to use the border width from
1045         the theme.
1046
1047 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1048
1049         * PrintDialog.cs: Implements printer details
1050
1051 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1052
1053         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1054           Fixes part 1 and 2 of bug #78446
1055
1056 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1057
1058         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1059           instead of sticking to the first ever calculated value
1060
1061 2006-05-19  Mike Kestner  <mkestner@novell.com>
1062
1063         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1064         PointToClient, since Capture is set. Fixes #78344.
1065
1066 2006-05-19  Mike Kestner  <mkestner@novell.com>
1067
1068         * ListView.cs: match MS behavior in Details view where items are not
1069         drawn if Columns.Count == 0. 
1070         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1071         Use a separate pen to draw the check, since changing the width affects
1072         the box as well.  Fixes #78454.
1073
1074 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1075
1076         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1077         exception should throw the name of the invalid argument.
1078
1079         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1080         there are no files listed. 
1081
1082 2006-05-18  Jackson Harper  <jackson@ximian.com>
1083
1084         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1085         up.
1086
1087 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1088
1089         * Control.cs: Brought back our old UpdateZOrder method as a private
1090           function and switched our calls from UpdateZOrder to the new one.
1091           This fixes the Paint.Net canvas disappearing bug.
1092
1093 2006-05-18  Jackson Harper  <jackson@ximian.com>
1094
1095         * Theme.cs:
1096         * ThemeWin32Classic.cs:
1097         * InternalWindowManager.cs: Move the drawing into the theme,
1098         expose everything the theme should need from the window manager.
1099
1100 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1101
1102         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1103           from the call to NativeWindow to avoid walking up the parent chain
1104           further than needed (speeds up setting cursors and avoids setting
1105           the wrong cursor if a parent has another cursor defined)
1106         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1107           the icon as hotspot, not what's contained as hotspot in the icon
1108           file. This fixes the perceived drawing offset seen with Paint.Net
1109         
1110 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1111
1112         * XplatUIX11.cs: 
1113           - Store the calculated rectangle in Hwnd object and use it when 
1114             setting the client size
1115           - Force Toolwindows to always be type Dock, to ensure they're on top
1116
1117 2006-05-18  Mike Kestner  <mkestner@novell.com>
1118
1119         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1120         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1121         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1122         Substantial refactoring to remove confusing nested classes. Coding
1123         standard and Get+Set->property refactorings.  Shift to index based
1124         highlighting in ComboListBox instead of constantly using IndexOf and
1125         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1126         in FileDialog growth.  Draw borders manually since Simple mode needs
1127         to look like two independent controls.  Make listbox border
1128         conditional to DropDownStyle.  Improved OwnerDraw support.
1129
1130 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1131
1132         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1133         Don't set the disposed graphics to null, so we can throw the "right"
1134         exception if the graphics is reused later (added a flag to avoid 
1135         double disposing). Some behaviours are different under 2.0 and are
1136         filled under bug #78448.
1137
1138 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1139
1140         * Control.cs: When double-buffering is enabled, we need to reset
1141           our graphics context between paint calls. Otherwise, any 
1142           transformations and other alterations on the context will 
1143           become cumulative (#77734)
1144
1145 2006-05-18  Mike Kestner  <mkestner@novell.com>
1146
1147         * ListView.cs: do focused item selection like MS on clicks. 
1148         Rework focus handling for ItemControl so LostFocus invalidates as
1149         well.
1150         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1151         the ListView ItemControl has focus.
1152
1153 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1154
1155         * XplatUIX11.cs: If client_window ends up being width or height zero
1156           due to border settings, move it off window inside whole_window (#78433)
1157
1158 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1159
1160         * Mime.cs: Shrink the mime file cache correctly.
1161
1162 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1163
1164         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1165
1166 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1167
1168         * XplatUIX11.cs (AddExpose): More sanity checks
1169
1170 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1171
1172         * XplatUIX11.cs:
1173           - AddExpose: Don't add expose ranges outside the size of our
1174             window
1175           - Cast opacity values to Int32 to avoid crashes with certain
1176             values
1177           - Added disabled code paths that protect against illegal cross-
1178             thread painting (Developers.exe)
1179
1180 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1181
1182         * ProgressBar.cs: Invalidate the control when it's resized
1183           since block size is based on control size. (#78388)
1184
1185 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1186
1187         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1188         of setting the incoming argument to the "reset" value, we set the
1189         this.datamember to string.empty (before we were invalidating the
1190         incoming data).   
1191
1192         Fixes 78420
1193
1194 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1195
1196         * Form.cs: Only apply transparency settings after the form
1197           is created. (Fixes #77800)
1198
1199 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1200
1201         * ApplicationContext.cs: Grab the HandleDestroyed event so
1202           we know when to fire OnMainFormClosed 
1203
1204 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1205
1206         * Application.cs: Introduced sub-class to allow tracking of
1207           threads and centralized triggering of the event mess for
1208           ThreadExit, AppExit, etc..  (#76156)
1209
1210 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1211
1212         * MimeIcon.cs:
1213           - Do not return a null icon index value for a mime subclass.
1214             Instead try the main mime type class too.
1215           - Seems that some newer distributions don't have a link to some
1216             gnome default icons anymore. So check the default gnome dir too.
1217           
1218
1219 2006-05-16  Jackson Harper  <jackson@ximian.com>
1220
1221         * MdiClient.cs: Don't paint the parent background image if we have
1222         our own background image.
1223
1224 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1225
1226         * Control.cs:
1227           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1228             controls, all filled controls are supposed to overlap (#78080)
1229           - UpdateZOrder is supposed to update the control's z-order in the
1230             parent's z-order chain. Fixed to behave like that
1231           - BringToFront: Removed obsolete code
1232           - SendToBack: Simplyfied
1233           - SetChildIndex: Trigger layout calculations when Z-order changes
1234             since layout is done by z-order
1235
1236 2006-05-16  Chris Toshok  <toshok@ximian.com>
1237
1238         [ fixes bug #78410 ]
1239         * DataGrid.cs (set_AlternatingBackColor): use
1240         grid_drawing.InvalidateCells instead of Refresh().
1241         (set_BackColor): call grid_drawing.InvalidateCells.
1242         (set_BackgroundColor): use Invalidate instead of Refresh.
1243
1244         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1245         invalidate the cell area.
1246
1247 2006-05-15  Chris Toshok  <toshok@ximian.com>
1248
1249         [ fixes bug #78011 ]
1250         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1251         on to DataGridPaintRow.
1252         (DataGridPaintRow): take a clip argument, and only draw the cells
1253         which intersect it.  same with the not_usedarea.
1254
1255         * Theme.cs (DataGridPaintRow) add @clip parameter.
1256
1257         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1258         XplatUI.ScrollWindow.
1259         (ScrollToRow): same.
1260
1261         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1262         with last column which was causing a gray swath to appear with the
1263         XplatUI.ScrollWindow code.
1264
1265 2006-05-15  Chris Toshok  <toshok@ximian.com>
1266
1267         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1268         use XplatUI.ScrollWindow.
1269         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1270
1271 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1272
1273         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1274
1275 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1276
1277         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1278           file since there are no equivalent X11 cursors
1279
1280 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1281
1282         * MonthCalendar.cs : DateTimePicker should reflect selected date
1283           on mouse*up*, not mouse*down*. Fixed originally reported part of
1284           bug #76474.
1285
1286 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1287
1288         * TabControl.cs : When argument index is equal or more than tab
1289           count, just ignore. Fixed bug #78395.
1290
1291 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1292
1293         * Control.cs: Dispose all child controls when control is diposed (#78394)
1294
1295 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1296
1297         * ColorDialog.cs: Finally it is possible to select the color with
1298           the text boxes
1299
1300 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1301
1302         * PrintDialog.cs: Fix typo
1303
1304 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1305
1306         * PrintDialog.cs: PrintDialog is not resizable
1307         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1308           color. Made some ToolBar drawing methods protected virtual.
1309
1310 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1311
1312         * PrintDialog.cs: Implementation of the PrintDialog
1313
1314 2006-05-12  Chris Toshok  <toshok@ximian.com>
1315
1316         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1317         thumb, instead use MoveThumb.  This has the side effect of making
1318         most of the other thumb moving machinery use MoveThumb as well.
1319         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1320         need to actually invalidate the rectangle where the new thumb will
1321         go.
1322         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1323         We force an Update() after, so it's not as fast as it could be,
1324         but at least there's zero flicker and no droppings.
1325         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1326         (UpdateThumbPos): add another argument (dirty), which says whether
1327         or not to calculate/add dirty regions which we later invalidate.
1328         For cases where we know we're going to use MoveThumb, we pass
1329         false for this.  Otherwise, pass true.
1330
1331 2006-05-12  Jackson Harper  <jackson@ximian.com>
1332
1333         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1334         the status bar.
1335         
1336 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1337
1338         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1339           and GetClipRegion methods and UserClipWontExposeParent property.
1340         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1341           overriding UserClipWontExposeParent property, setting to false, since
1342           Win32 handles the required expose messages to draw our clipped parent
1343           areas internally
1344         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1345           PaintEventStart to set the user clip region if set.
1346         * Control.cs: 
1347           - Now internally tracking the Region for the control since we need to
1348             store it if the handle is not yet created and only set it when it
1349             becomes created. Before setting the region forced handle creation
1350           - Added code to draw the parents underneath a user-clipped region
1351         * Hwnd.cs: Added UserClip property
1352
1353 2006-05-12  Chris Toshok  <toshok@ximian.com>
1354
1355         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1356         (set_Maximum): same.
1357         (set_Minimum): same.
1358         (set_SmallChange): same.
1359         (OnMouseUpSB): remove the call to refresh when releasing the
1360         thumb.  We shouldn't need it.
1361         
1362 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1363
1364         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1365         AutoSize set to None, we do not need to relayout everything, we
1366         just need to invalidate the current region.
1367
1368         (Draw): Do not draw the entire ClientArea, just redraw the
1369         clip area being passed.
1370
1371         * MdiClient.cs: Make MdiClient constructor with the Form argument
1372         internal. 
1373
1374 2006-05-12  Jackson Harper  <jackson@ximian.com>
1375
1376         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1377         parents background image,  but strangely not their own.
1378         - (DrawStatusBarPanel): Take into account horizontal alignment
1379         when drawing the strings and icons.
1380
1381 2006-05-12  Mike Kestner  <mkestner@novell.com>
1382
1383         * ListBox.cs: avoid invalidations for focus when the collection is
1384         empty. 
1385
1386 2006-05-12  Chris Toshok  <toshok@ximian.com>
1387
1388         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1389         invalidate the entire thumb area.  Call InvalidateDirty which
1390         limits the redraw to the thumb itself and surrounding pixels.
1391
1392         * XplatUIX11.cs (ScrollWindow): optimize copying.
1393         
1394 2006-05-12  Chris Toshok  <toshok@ximian.com>
1395
1396         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1397         Figure out the positioning/layout in a single pass instead of
1398         multiple recursive invocations.  Speeds up the initial display of
1399         the data grid.  Also, make many things private that were
1400         originally public but unused outside this class.
1401
1402 2006-05-11  Jackson Harper  <jackson@ximian.com>
1403
1404         * MdiClient.cs: Improved layout code.
1405
1406 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1407
1408         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1409           not SelectedObject.
1410
1411 2006-05-11  Chris Toshok  <toshok@ximian.com>
1412
1413         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1414         union of that will always be {0,0,width,height}.
1415
1416 2006-05-11  Jackson Harper  <jackson@ximian.com>
1417
1418         * Form.cs: Match MS's DefaultSize for forms (they must have
1419         changed the size in sp2).
1420
1421 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1422
1423         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1424
1425 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1426
1427         * TextControl.cs : Fixed bug #78109. This incorrect position
1428           comparison caused crash on automatic line split.
1429         * TextBoxBase.cs : reduce duplicate code.
1430
1431 2006-05-10  Jackson Harper  <jackson@ximian.com>
1432
1433         * MdiClient.cs: Active form is only sent to the back when using
1434         the Next form functionality, when a form is clicked the current
1435         active shouldn't be sent to the back.
1436         - Layout the mdi windows when the container is first made visible.
1437         * Form.cs: Give the MdiClient a ref to the containing form when we
1438         create it.
1439         
1440 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1441
1442         * LinkLabel.cs : link_font could be uninitialized, so populate one
1443           before actual use. Fixed bug #78340.
1444
1445 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1446
1447         * XplatUIX11.cs : clipboard format native value is IntPtr.
1448           Fixed bug #78283.
1449
1450 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1451
1452         * Control.cs: 
1453           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1454             which is passed up the parent chain by DefWndProc
1455           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1456             to DefWndProc (#77956)
1457         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1458
1459 2006-05-10  Jackson Harper  <jackson@ximian.com>
1460
1461         * MdiClient.cs: We need to remove the controls from the mdi
1462         collection, when we close the window.
1463         * MdiWindowManager.cs: Special handling of closing mdi windows.
1464         * InternalWindowManager.cs: Make the close method virtual so the
1465         mdi window manager can handle it specially.
1466
1467 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1468
1469         * DataGrid.cs:
1470           - Recalculate grid when the data source has changed
1471           - Matches styles provided by user from all data sources types
1472         * DataGridTableStyle.cs: For columns that provided by the user set the
1473         with the preferred value is there was unassigned.
1474         * CurrencyManager.cs: throw OnItemChanged event
1475
1476 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1477
1478         * PictureBox.cs: Don't animate until handle is created. Start animation
1479           when handle is created.
1480
1481 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1482
1483         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1484           current codebase.
1485         * XEventQueue.cs: We don't need to provide the extra info
1486
1487 2006-05-10  Jackson Harper  <jackson@ximian.com>
1488
1489         * MdiClient.cs: If the mdi clients parent form has a background
1490         image set, we draw that background image for the mdi area's
1491         background.
1492
1493 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1494
1495         * TextBoxBase.cs: Set IBeam cursor (#78347)
1496
1497 2006-05-10  Mike Kestner  <mkestner@novell.com>
1498
1499         * ToolBar.cs: fix some text padding issues with ButtonSize
1500         calculation. Update the default size to match MS documentation.
1501         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1502         button size. Fixes #78296.
1503
1504 2006-05-10  Mike Kestner  <mkestner@novell.com>
1505
1506         * ListBox.cs: use is_visible for scrollbar positioning in case the
1507         control isn't on screen yet.  Fix off by one with Right vs Width
1508         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1509         
1510 2006-05-10  Jackson Harper  <jackson@ximian.com>
1511
1512         * X11Dnd.cs: Drop to a control with another control on top of it.
1513         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1514         be modified in click handlers. TODO: Look for similar problems in
1515         other controls.
1516
1517 2006-05-09  Jackson Harper  <jackson@ximian.com>
1518
1519         * Form.cs: Window managers need the old window state when setting
1520         window state now.
1521         * InternalWindowManager.cs: Allow the base mdi window manager to
1522         handle more of the MDI only stuff (like maximize buttons).
1523         * MdiWindowManager.cs: Fix some snafus in changing the window
1524         state.  Add all the menu functionality, for both popup and
1525         maximized menus.
1526         * MdiClient.cs: When a new form is selected the currently
1527         activated form is sent to the back, this matches MS.
1528         - Implement a new method to activate the next mdi child window.
1529
1530 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1531
1532         * Control.cs: 
1533           - Added new InternalCapture method to allow controls to prevent
1534             the capture behaviour on the click handlers
1535           - Switched to use InternalCapture
1536         * ComboBox.cs:
1537           - Using InternalCapture to prevent mouse captures from being released
1538             on mouse button release (Fixes #78100)
1539         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1540           returns Form borders if a caption is present. (Fixes #78310)
1541
1542 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1543
1544         * TreeNode.cs: Changed serialization .ctor to not require every field
1545           to be present. (#78265)
1546         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1547
1548 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1549
1550         * MimeIcon.cs: for is faster than foreach for strings.
1551
1552 2006-05-05  Mike Kestner  <mkestner@novell.com>
1553
1554         * CheckedListBox.cs: update check handling code to not use selected.
1555         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1556         behavior for visual feedback, motion response, shift/ctrl handling,
1557         and properly deal with all 4 selection modes. Updates to bounds
1558         handling logic.  Add scroll wheel support. [Fixes #77842]
1559
1560 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1561
1562         * ListView.cs:
1563           - Moved adding of Implicit controls into .ctor. That way, subsequent
1564             creation of the controls will not cause them to think they are 
1565             toplevel windows (fixes #78200 header problem)
1566           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1567           - Switched visibility setting of header control to use internal field
1568             to avoid triggering handle creation
1569           - Now checking if handle is created before causing a refresh when items
1570             are added (This makes us now match handle creation time with MS)
1571         * Splitter.cs: Removed loading of private splitter cursor, switched to
1572           Cursors version now that that is loading the right ones
1573         * Cursors.cs: Load proper splitter cursors from resources
1574         * Cursor.cs: Added second method of loading resource cursors for the 
1575           VS.Net users amongst us
1576
1577 2006-05-05  Mike Kestner  <mkestner@novell.com>
1578
1579         * ListView.cs: give header_control a minimum size based on the
1580         ListView size.
1581
1582 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1583
1584         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1585           window seems to do that with metacity, so set that type. (#78120)
1586
1587 2006-05-05  Mike Kestner  <mkestner@novell.com>
1588
1589         * ListViewItem.cs: fix Details mode checkbox layout bug.
1590         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1591         at the end of the header, if it exists. [Fixes for #78200]
1592
1593 2006-05-04  Jackson Harper  <jackson@ximian.com>
1594
1595         * MdiClient.cs: Add a helper property to get the container form.
1596         * MdiWindowManager.cs: We have to make sure to use the menu origin
1597         when drawing the icons and buttons, this fixes maximized window
1598         icons/buttons on win32.
1599         * InternalWindowManager.cs: Reset the restore captions when a
1600         window goes from Maximized to Minimized and vice versa. Move the
1601         DrawMaximizedButtons into the MdiWindowManager source, tool
1602         windows can't be maximized. NOTE: This could use a little
1603         refactoring if time ever permits.
1604         
1605 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1606
1607         * TextBox.cs: Add MWFCategoryAttributes
1608         * TextBoxBase.cs: Add MWFCategoryAttributes
1609         * Form.cs: Add MWFCategoryAttributes
1610
1611 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1612
1613         * Control.cs: Add MWFCategoryAttributes
1614         * ScrollableControl.cs: Add MWFCategoryAttributes
1615
1616 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1617
1618         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1619           Divider is true. Fix a little glitch in PropertyToolBar
1620           drawing code
1621
1622 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1623
1624         * Control.cs:
1625           - Dispose: Call base.Dispose, this causes the disposed event
1626             to be fired (and probably other, more important stuff)
1627           - SetVisibleCore: Set is_visible to true after creating the
1628             window so that the window still gets created invisible (if
1629             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1630             to generate a WM_ACTIVE message
1631         * Form.cs: Call Dispose when we want to destroy the window, instead of
1632           just destroying the handle (Dispose will do that for us)
1633         * XplatUIX11.cs:
1634           - RootWindow also needs a queue, so we can properly process the
1635             property change events from RootWindow (like Activate)
1636           - Generatic synthetic WM_ACTIVE message when the active window is
1637             being destroyed
1638
1639 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1640
1641         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1642           bounds are changed
1643
1644 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1645
1646         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1647           for determining width and height (image might not be assigned if
1648           we're drawing an imagelist)
1649
1650 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1651
1652         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1653         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1654           height from system
1655         * Theme.cs: No longer returns hardcoded menu height, instead calls
1656           new driver method
1657         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1658           on MS (# 78257)
1659
1660 2006-05-01  Mike Kestner  <mkestner@novell.com>
1661
1662         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1663
1664 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1665
1666         * TextBoxBase.cs: Removed Fixme
1667         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1668
1669 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1670
1671         * XplatUIX11.cs:
1672           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1673             the rectangle relative to the parent, considering borders. We
1674             don't really want that.
1675           - ScrollWindow: Fixed warning to be more understandable
1676         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1677           scrollbars and scroll only the visible area
1678         * RichTextBox.cs: Removed debug output
1679
1680 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1681
1682         * NumericUpDown.cs (Text): Just use base
1683         * UpDownBase.cs: Ensure txtView is created before using it
1684
1685 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1686
1687         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1688           casting to IntPtr to avoid 64bit overflow errors
1689
1690 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1691
1692         * Control.cs:
1693           - AllowDrop: Don't force handle creation.
1694           - CreateHandle: Added call to tell driver if we're allowed to drop
1695
1696 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1697
1698         * FileDialog.cs: Remember the last directory not only for the
1699           current instance but also for new FileDialog instances.
1700
1701 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1702         
1703         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1704           broke sending async messages
1705
1706 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1707
1708         * XplatUIX11.cs:
1709           - ScrollWindow: Fixed method. We finally generate expose events again
1710             for scrolled areas. This was causing 'garbage' when scrolling
1711             textbox and other controls that used ScrollWindow
1712           - Switched from using the regular queue for paint events to the MS 
1713             model of 'generating' paint events when the queue is empty.
1714             We use the new XQueueEvent.Paint subclass to store which windows
1715             need painting.
1716           - AddExpose now takes the x/y/width/height of the exposed area
1717             and inserts the window into the paint queue if not already there
1718           - InvalidateWholeWindow: Switched to use new AddExpose method
1719           - UpdateMessageQueue: Added which queue to monitor for paint events
1720           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1721             the unlikely case nothing above handles it. We reset the expose
1722             pending states to get them off the queue.
1723           - GetMessage: Now pulls a paint event if no other events are in the
1724             queue
1725           - Invalidate: Switched to new AddExpose method
1726           - PeekMessage: Updated to understand pending paint events
1727           - UpdateWindow: Fixed logic bug. We were only updating if the window
1728             didn't need updating. Also switched to sending WM_PAINT directly,
1729             like MS does.
1730         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1731           and random access Remove(). The random access is needed to handle
1732           UpdateWindow() where a WM_PAINT is sent directly without accessing
1733           the queue.
1734         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1735           allow for better feedback when scrolling. Scrollbars are small and
1736           the immediate update should make it 'feel' more responsive without
1737           slowing things down. ScrollBar still needs it's invaliate logic
1738           updated to not always invalidate the whole bar on certain changes.
1739
1740 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1741
1742         * Control.cs:
1743         (BackColor): if the control does not support a transparent background,
1744         return the default backcolor when the parent backcolor is transparent.
1745
1746 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1747
1748         * Application.cs: Updated to new StartLoop/GetMessage API
1749         * RichTextBox.cs: Provide some output on RTF parsing errors
1750         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1751           new queue_id argument to GetMessage and PeekMessage to allow faster
1752           handling of per-thread queues in drivers.
1753         * Hwnd.cs: Added Queue tracking and property
1754         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1755         * XEventQueue.cs: Added thread trackingA
1756         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1757         * XplatUIX11.cs:
1758           - Implemented new per-thread queue
1759           - GetMessage: Fixed return/break behaviour on several cases. We were
1760             returning stale messages in some cases, instead of just processing
1761             the next message
1762
1763 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1764
1765         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1766
1767 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1768
1769         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1770           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1771
1772 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1773
1774         * PropertyGridView.cs: Fix drop down width.
1775
1776 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1777
1778         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1779           a mess in DrawToolBar, so I removed one of them.
1780
1781 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1782
1783         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1784           needed (clip). Otherwise we get artifacts.
1785
1786 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1787
1788         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1789           dimension is fixed
1790         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1791           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1792         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1793           if it matches the scale base font (avoids unneeded scaling)
1794
1795 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1796
1797         * X11DesktopColors.cs: One gtk_init_check should be enough
1798
1799 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1800
1801         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1802           match MS behaviour
1803
1804 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1805
1806         * TextBoxBase.cs: 
1807           - Generate OnTextChanged for Backspace even if we're only deleting
1808             the current selection
1809           - When setting the Text property, only select all text if the
1810             control does not have focus when it is being set. Otherwise
1811             just place the cursor at the beginning of the control
1812
1813 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1814
1815         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1816           Added a little helper to draw PropertyGrid ToolBar with a different
1817           border and a different BackColor.
1818         * PropertyGrid.cs: Some background parts didn't get painted with the
1819           correct background color. Added a class that helps us to draw the
1820           correct border for PropertyGridView and a class that helps us to
1821           draw ToolBars with a different backcolor
1822         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1823
1824 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1825
1826         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1827         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1828
1829 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1830
1831         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1832           into the palette entries. Also, since we're working on a copy
1833           we needed to copy the palette back onto the bitmap.
1834         * Cursor.cs: Same fix as XplatUIWin32.cs.
1835
1836 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1837
1838         * ImageListStreamer.cs: Need to read the var (or we're off)
1839
1840 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1841
1842         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1843           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1844           TextBoxBase.cs: Unused var fixes
1845         * AxHost.cs: Small 2.0 fix
1846         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1847           as it seems that is what at least Metacity expects. This will make
1848           icons show up on 64bit platforms. We still have some 64bit size
1849           issues, though, since the startup app window size still won't match.
1850
1851 2006-04-25  Mike Kestner  <mkestner@novell.com>
1852
1853         * *.cs: cleanup newly reported exception var unused warnings.
1854
1855 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1856
1857         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1858           ms
1859
1860 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1861
1862         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1863           image. The image position is always the same, no matter if the
1864           button is pressed or not.
1865
1866 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1867
1868         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1869           selection and set the correct filename for SaveFileDialog.
1870           Patch by Emery Conrad.
1871
1872 2006-04-24  Mike Kestner  <mkestner@novell.com>
1873
1874         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1875         check for item.X outside the ClientRect instead of item.Y. Fixes
1876         #78151.
1877
1878 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1879
1880         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1881         trust that value blindly and do some sanity check. Fixes bug #77814.
1882
1883 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1884
1885         * ImageListStreamer.cs: save the mask as a 1bpp image.
1886
1887 2006-04-21  Mike Kestner  <mkestner@novell.com>
1888
1889         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1890         pass Checked and Indeterminate to the Theme Engine. Improve
1891         encapsulation with ListBox.
1892         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1893         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1894         nested types.  Move all CheckState functionality to CheckedListBox.
1895         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1896         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1897         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1898         single base list. Fix scrollbar sizing and placement to mirror MS.
1899         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1900         used.
1901         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1902         for CheckedListBox by using new DrawItemState info.  Center the
1903         checkboxes on the items. Use new StringFormat property.
1904
1905 2006-04-18  Jackson Harper  <jackson@ximian.com>
1906
1907         * Form.cs: MdiChildren don't do default locations the same way as
1908         regular forms.  This prevents a crash when trying to position the
1909         mdi windows.
1910
1911 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1912
1913         * PropertyGridTextBox.cs: Formatting, copyright
1914         * PropertiesTab.cs: Formatting
1915         * PropertyGrid.cs: Formatting
1916         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1917           click toggling of values
1918           
1919 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1920
1921         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1922         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1923           every time a control is created
1924         * Application.cs: Removed obsolete EnableRTLMirroring method
1925
1926 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1927
1928         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1929         SelectedIndex to -1. Fixes bug #78121.
1930
1931 2006-04-17  Jackson Harper  <jackson@ximian.com>
1932
1933         * Binding.cs: Handle null values for Current and BindingContext.
1934         This occurs when binding is a little delayed.
1935         * CurrencyManager.cs: return null for Current when there are no
1936         items in the list.
1937         - Hookup to the listchanged event on the DataView and update
1938         bindings when the list is changed.  This fixes late binding of
1939         controls.
1940
1941 2006-04-17  Jackson Harper  <jackson@ximian.com>
1942
1943         * X11Dnd.cs:
1944         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1945         Ringenbach.
1946
1947 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1948
1949         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1950           place
1951         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1952           with the correct ButtonState
1953
1954 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1955
1956         * XplatUIX11.cs: Improved distinguishing between window types to
1957           tell the WM a type closer to what the app wants (Fixes #78107)
1958
1959 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1960
1961         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1962           GrabHandle
1963
1964 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1965
1966         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1967           drawing code to reflect the size grip changes
1968
1969 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1970
1971         * ImageListStreamer.cs: fix handling of the mask that follows the main
1972         bitmap when deserializing and serialize it properly. The generated mask
1973         should better be a 1bpp image, but I'll do that later.
1974
1975 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1976
1977         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1978           path doesn't fit into some of our Current.Places
1979
1980 2006-04-13  Jackson Harper  <jackson@ximian.com>
1981
1982         * ComboBox.cs: Use borders instead of drawing our own decorations,
1983         try to obey correct rules for heights.
1984         * Theme.cs:
1985         * ThemeNice.cs:
1986         * ThemeClearLooks.cs:
1987         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1988         this is now handled by borders.
1989         - Remove unused DrawListBoxDecorationSize method.
1990         
1991 2006-04-13  Mike Kestner  <mkestner@novell.com>
1992
1993         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1994         reported by Alex.
1995
1996 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1997
1998         * ThemeWin32Classic.cs: 
1999           - Fixed CPDrawStringDisabled
2000           - Corrected drawing of disabled menu items
2001           - Fixed drawing of disabled radio buttons (bug #78095)
2002           - Draw check in a disabled CheckBox with color ControlDark 
2003
2004 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2005
2006         * Form.cs: Use the provided width when calculating the menu size;
2007           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2008           and ClientSize.Width won't be updated yet
2009         * Application.cs: Use Visible instead of Show() to make form visible,
2010           this way we create the handle later and menusize is considered
2011
2012 2006-04-12  Mike Kestner  <mkestner@novell.com>
2013
2014         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2015         reporting.
2016
2017 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2018
2019         * TextBox.cs: Implemented context menu
2020
2021 2006-04-12  Mike Kestner  <mkestner@novell.com>
2022
2023         * ListView.cs: implement box selection. fixes #77838.
2024         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2025
2026 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2027
2028         * XplatUIX11.cs: Added setting of window type when transient window
2029           is created (metacity would move it otherwise)
2030         * X11Structs.cs: Added WINDOW_TYPE atoms
2031         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2032           background (the control is Opaque but still wants transparent
2033           backgrounds)
2034
2035 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2036
2037         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2038           that set Opaque but don't mean it (like all ButtonBase-derived
2039           controls) to still draw their background
2040         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2041           the background
2042
2043 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2044
2045         * Control.cs (PaintControlBackground): Set the graphics object
2046           on our PaintEvent to null to prevent it from being disposed
2047           when the PaintEvent gets disposed
2048
2049 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2050
2051         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2052         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2053
2054 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2055
2056         * Control.cs: 
2057           - Added transparency check to BackColor property. Transparent
2058             backgrounds are only allowed if the control styles permit it
2059           - Added recursive painting of parent control background and
2060             foreground if a control with a transparent backcolor is drawn
2061             (Thanks to Tim Ringenback for providing his 'hack' as a base
2062              for this patch) Fixes #77985 and #78026.
2063           - Added Opaque style check before calling OnPaintBackground, no
2064             need to draw the background if the control is opaque
2065           - Removed ControlAccessibleObject owner variable (inherited from
2066             base, no need to define again)
2067           - Added some documentation links explaining the drawing events
2068             and styles
2069
2070 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2071
2072         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2073           that the affected control is the located at the left border of our
2074           parent (Fixes #77936)
2075
2076 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2077
2078         * TextBoxBase.cs: When rendering disabled or readonly controls,
2079           draw the background with 'Control' instead of 'Window' color as
2080           long as the user hasn't specifically set a color
2081
2082 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2083
2084         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2085           since that won't be updated if the user types text (only if it's
2086           programatically set)
2087
2088 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2089
2090         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2091           layout changes do to app-triggered resizes will have the proper
2092           display rectangle for layout
2093
2094 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2095
2096         * ThemeWin32Classic.cs:
2097           - Make use of the SystemBrushes and SystemPens wherever possible
2098           - Corrected some highlight colors
2099           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2100             drawing
2101         * Theme.cs: Added Empty field to CPColor struct
2102
2103 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2104
2105         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2106           is displayed when calculating the display rectangle. Thanks to Mike
2107           for teaching me the err of my ways.
2108
2109 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2110
2111         * ScrollableControl.cs:
2112           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2113             (instead of 0,0) and we now return the real width/height instead of
2114             just the clientrectangle, adjusted for padding. The rectangle is
2115             now cached and created by the new CalculateDisplayRectangle method.
2116           - Created new CalculateDisplayRectange method, which basically does
2117             what get_DisplayRectangle() did originally, but now using the 
2118             right edge instead of DisplayRectangle to determine the size of
2119             our scrollbars
2120           - get_Canvas(): Fixed it to properly calculate canvas for 
2121             right/bottom controls which seem to be placed to the right/bottom
2122             of any controls that have a fixed location
2123           - Removed TODO that's taken care of
2124           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2125             and SetDisplayRectLocation according to new MSDN2 docs
2126           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2127             event when that is called, this is added for compatibility
2128           - ScrollControlIntoView(): Implemented.
2129           - Switched scrollbars to be implicit, they shouldn't be selectable
2130         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2131           call it when the active control is set/changed
2132         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2133         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2134           implicit_control variable (used for native Win32 message generation)
2135         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2136           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2137         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2138         * XplatUIStructs.cs: Added ScrollBarCommands enum
2139
2140 2006-04-10  Jackson Harper  <jackson@ximian.com>
2141
2142         * ButtonBase.cs:
2143         * CheckedListBox.cs:
2144         * ComboBox.cs:
2145         * DataGrid.cs:
2146         * DataGridView.cs:
2147         * Form.cs:
2148         * GroupBox.cs:
2149         * ListBox.cs:
2150         * PrintPreviewControl.cs:
2151         * ProgressBar.cs:
2152         * PropertyGrid.cs:
2153         * Splitter.cs:
2154         * StatusBar.cs:
2155         * TrackBar.cs:
2156         * UpDownBase.cs: Fixup base event overrides.
2157         
2158 2006-04-06  Mike Kestner  <mkestner@novell.com>
2159
2160         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2161         all user-initiated value changes to min <= value <= max-thumbsz+1.
2162         (set_Value): check for vert/horiz when calculating new thumb position.
2163         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2164         like MS does.
2165         (OnMouseMoveSB): refactor the thumb dragging code and refine
2166         invalidation logic to reduce flicker.
2167         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2168         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2169         (UpdateThumbPosition): small code readability cleanup
2170
2171 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2172
2173         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2174           different
2175
2176 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2177
2178         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2179
2180 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2181
2182         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2183         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2184           This dramatically reduces the number of Pen.Dispose calls. 
2185           Where possible call ResPool methods only once instead of calling it
2186           over and over again (for example for the same color).
2187
2188 2006-04-06  Mike Kestner  <mkestner@novell.com>
2189
2190         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2191         Also remove an unused private field on the collection. Fixes #77972.
2192
2193 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2194
2195         * ThemeNice.cs: Added ToolBar drawing code
2196
2197 2006-04-06  Mike Kestner  <mkestner@novell.com>
2198
2199         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2200         I'm assuming that means we need to look up the toplevel for the
2201         provided control. Fixes the crash trace in #77911 but exposes another
2202         crash in some strange reflection usage in NDocGui.
2203
2204 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2205
2206         * ThemeNice.cs: Gave it a little silver touch and added Images
2207           method
2208         * FontDialog.cs: FontDialog is not resizable
2209         * FileDialg.cs: Added SizeGripStyle.Show
2210
2211 2006-04-05  Jackson Harper  <jackson@ximian.com>
2212
2213         * KeyboardLayouts.cs: Remove warning.
2214
2215 2006-04-05  Jackson Harper  <jackson@ximian.com>
2216
2217         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2218         all of our controls instead of Paint +=.
2219         * ListBox.cs:
2220         * ListView.cs:
2221         * MenuAPI.cs:
2222         * MessageBox.cs:
2223         * NotifyIcon.cs:
2224         * ProgressBar.cs:
2225         * ScrollBar.cs:
2226         * Splitter.cs:
2227         * StatusBar.cs:
2228         * TabControl.cs:
2229         * TextBoxBase.cs:
2230         * ToolBar.cs:
2231         * TrackBar.cs:
2232         * UpDownBase.cs:
2233         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2234         use OnPaintInternal. Remove Width/Height and Visible checks in
2235         paint handler, this is done at a higher level now.
2236         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2237         * PaintEventArgs.cs: Add a handled flag so controls that don't
2238         want anymore painting after OnPaintInternal can make sure OnPaint
2239         isn't called.
2240
2241 2006-04-05  Mike Kestner  <mkestner@novell.com>
2242
2243         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2244         state of the form, so that we don't process events when Modal dialogs
2245         are up. Fixes #77922.
2246
2247 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2248
2249         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2250           checking is done.
2251
2252 2006-04-05  Mike Kestner  <mkestner@novell.com>
2253
2254         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2255
2256 2006-04-05  Mike Kestner  <mkestner@novell.com>
2257
2258         * ListView.cs (HeaderMouseMove): null guarding for the over column
2259         when setting up the drag_to_index.  Fixes #78015.
2260
2261 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2262
2263         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2264           in the taskbar. Transient windows seem to accomplish that.
2265
2266 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2267
2268         * Form.cs:
2269           - Re-enabled CreateParams.X/Y code for FormStartPosition
2270           - Added code for manual placement when creating the Control
2271           - Incomplete patch to treat MDI forms differently when
2272             setting the ClientSizeCore. (Still need to figure out handling
2273             x/y coords there)
2274         * XplatUIX11.cs:
2275           - When we're explicitly setting the X/Y position of a non-Child
2276             window, let the WM know. Metacity really wants this.
2277
2278 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2279
2280         * ThemeNice.cs: Added CPDrawButton
2281
2282 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2283
2284         * ThemeNice.cs: Changed the color for focused buttons and activated
2285           the arrows for small scroll buttons.
2286
2287 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2288
2289         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2290           anymore. Changed some method modifiers to protected (virtual)
2291         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2292           changes
2293         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2294           Updated drawing of menus, buttons and progressbars; added
2295           CPDrawBorder3D 
2296
2297 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2298
2299         * ImageListStreamer.cs: implemented serialization/deserialization
2300         of the images.
2301
2302 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2303
2304         * ThemeWin32Classic.cs:
2305           - Removed all the DrawFrameControl stuff; CPDrawButton,
2306             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2307             inside the methods
2308           - Updated and corrected the drawing code of CPDrawButton,
2309             CPDrawCheckBox and CPDrawRadioButton to better match ms
2310           - Updated theme checkbox and radiobutton code to use the CP*
2311             methods
2312
2313 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2314
2315         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2316           bug is fixed
2317
2318 2006-03-31  Jackson Harper  <jackson@ximian.com>
2319
2320         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2321         sometimes.
2322         * UpDownBase.cs: Don't CreateGraphics manually, use a
2323         Refresh. Ideally we would invalidate the correct areas here.
2324
2325 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2326
2327         * XplatUIX11.cs: 
2328           - We now track the mapping state of windows. If a window (or 
2329             one of it's parents) is not mapped we no longer permit
2330             WM_PAINT messages to be generated since we'd otherwise get 
2331             lots of BadMatch X errors. Jackson did all the work figuring
2332             out the problem.
2333           - Destroying the caret if the window it's contained in is 
2334             destroyed. Can't use regular DestroyCaret method since it
2335             might fall into a drawing function (trying to remove the
2336             caret) and with that generate new BadMatch errors. Again,
2337             Jackson tracked this down.
2338           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2339             make sure we send the messages to all windows. (The old code
2340             would send the WM_DESTROY to the window, and then all child
2341             windows would be 'gone' because the WM_DESTROY handle lookup
2342             would no longer find the destroyed window)
2343         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2344         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2345
2346 2006-03-31  Jackson Harper  <jackson@ximian.com>
2347
2348         * ScrollableControl.cs: Dont recalc if we are not visible.
2349
2350 2006-03-31  Mike Kestner  <mkestner@novell.com>
2351
2352         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2353         the visibility branch.
2354
2355 2006-03-31  Jackson Harper  <jackson@ximian.com>
2356
2357         * ScrollBar.cs: Cap values when incrementing/decrementing.
2358
2359 2006-03-31  Mike Kestner  <mkestner@novell.com>
2360
2361         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2362         * ToolTip.cs: guard against timer expirations with no active control.
2363         Not sure why it happened.
2364
2365 2006-03-31  Mike Kestner  <mkestner@novell.com>
2366
2367         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2368         text.
2369         * ToolTip.cs: Position the tooltip based on where the cursor is at
2370         popup time, not at MouseEnter time.  Add a Down state so that we don't
2371         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2372         positioning offset. Lookup DisplaySize at positioning time, since it
2373         can theoretically change during invocation.
2374         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2375         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2376
2377 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2378
2379         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2380           Fixes behaviour when the Text property of the box is String.Empty
2381
2382 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2383
2384         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2385           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2386           a window)
2387
2388 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2389
2390         * FileDialog.cs: Visual enhancement for the popup buttons in 
2391           PopupButtonPanel
2392
2393 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2394
2395         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2396           code
2397
2398 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2399
2400         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2401           highlighted menu items to match ms
2402
2403 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2404
2405         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2406
2407 2006-03-30  Mike Kestner  <mkestner@novell.com>
2408
2409         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2410         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2411         go active to account for HotLight to Selected transition.
2412         * MenuItem.cs: add internal Selected prop. Fill out the Status
2413         property by calculating it from item info. Add HotLight,
2414         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2415
2416 2006-03-30  Mike Kestner  <mkestner@novell.com>
2417
2418         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2419
2420 2006-03-29  Jackson Harper  <jackson@ximian.com>
2421
2422         * Form.cs: Implement TODO.
2423
2424 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2425
2426         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2427           missing proper dialog setup in the constructor
2428
2429 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2430
2431         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2432         * Control.cs:
2433           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2434           - Fixed ResetBindings and removed TODO
2435           - Added check for cross-thread calls to get_Handle()
2436           - Added Marshaller attribute for set_Font to satisfy class status
2437         * FontDialog.cs: Removed TODOs that seemed implemented
2438         * UpDownBase.cs: Removed unneeded TODO and Fixme
2439         * MessageBox.cs: Implemented support for Default button and removed TODO
2440         * FileDialog.cs: Removed obsolete TODO
2441         * DomainUpDown.cs: Removed obsolete TODO
2442         * ButtonBase.cs: Removed obsolete TODO
2443         * XplatUIWin32.cs: Removed obsolete TODO
2444         * Form.cs:
2445           - Removed obsolete TODO
2446           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2447             internal status updates
2448           - Making sure the active control is selected when the control is created
2449         * CurrencyManager.cs: Removed obsolete TODO
2450
2451 2006-03-29  Mike Kestner  <mkestner@novell.com>
2452
2453         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2454         of PrintPreviewDialog and RichTextBox.
2455
2456 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2457
2458         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2459           DarkDark, Light and LightLight colors for a specific color
2460         * ThemeWin32Classic.cs:
2461           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2462             Appearance = Button 
2463           - Make use of the new ResPool helper CPColor
2464           - Draw ProgressBar and StatusBar with correct 3D borders
2465
2466 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2467
2468         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2469
2470 2006-03-28  Mike Kestner  <mkestner@novell.com>
2471
2472         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2473         calculating col/row counts.
2474
2475 2006-03-28  Mike Kestner  <mkestner@novell.com>
2476
2477         * ColumnHeader.cs:
2478         * ListView.cs:
2479         * ListViewItem.cs:
2480         * Menu.cs: 
2481         switch to explicit interface method implementation for some methods
2482         corcompare identifies as inconsistent with MS.
2483
2484 2006-03-28  Mike Kestner  <mkestner@novell.com>
2485
2486         * MainMenu.cs: 
2487         * Menu.cs:
2488         add a few missing methods from the class status output.
2489
2490 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2491
2492         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2493           correct.
2494
2495 2006-03-28  Mike Kestner  <mkestner@novell.com>
2496
2497         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2498
2499 2006-03-27  Mike Kestner  <mkestner@novell.com>
2500
2501         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2502         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2503
2504 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2505
2506         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2507
2508 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2509
2510         * ThemeWin32Classic.cs:
2511           - GroupBox: Inserted a little gap between the text and the lines
2512             on the right side
2513           - Made the code in CPDrawBorder3D more readable
2514           - Corrected the drawing location of the up and down arrows in 
2515             CPDrawScrollButton
2516
2517 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2518
2519         * ControlPaint.cs: Corrected line widths in DrawBorder for
2520           ButtonBorderStyle Inset and Outset
2521
2522 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2523
2524         * ThemeWin32Classic.cs:
2525           - Rewrote the totally broken CPDrawBorder3D method. That was
2526             one of the main problems for the terrific ThemeWin32Classic
2527             look
2528           - Updated and corrected Button drawing
2529           - Correct the dimensions of the SizeGrip to match ms ones
2530           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2531         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2532           Border3DStyle.Sunken to match ms.
2533
2534 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2535
2536         * ThemeWin32Classic.cs: First small part of the "de-uglify
2537           ThemeWin32Classic" effort, SizeGrip
2538
2539 2006-03-24  Jackson Harper  <jackson@ximian.com>
2540
2541         * XplatUIX11.cs: Give a max idle time of one second, this matches
2542         MS and forces an Idle event every second when there are no other
2543         events in the queue.
2544
2545 2006-03-24  Mike Kestner  <mkestner@novell.com>
2546
2547         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2548         * ListView.Item.cs: fix layout issues with null image lists and images
2549         smaller than checkbox size.
2550         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2551         mode like MS does.  It's weird, but consistent.  ;-)
2552         Fixes #77890.
2553
2554 2006-03-24  Mike Kestner  <mkestner@novell.com>
2555
2556         * ListView.cs: Scroll wheel support for the item control.  Fixes
2557         #77839.
2558
2559 2006-03-23  Jackson Harper  <jackson@ximian.com>
2560
2561         * ScrollableControl.cs: Special case negative sized areas, not
2562         zero.
2563         * MonthCalendar.cs: Save the rect of the clicked date so we can
2564         use it for invalidation.
2565         - Try to cut down on the number of invalidates
2566         - Invalidate the rect the mouse is over and was over when moving
2567         the mouse, so we get the focus box following the cursor.
2568
2569 2006-03-23  Mike Kestner  <mkestner@novell.com>
2570
2571         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2572         focus rectangle drawing. Fixes #77835.
2573
2574 2006-03-23  Mike Kestner  <mkestner@novell.com>
2575
2576         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2577         the if and else if and reverting back to the original == check on the
2578         None conditional.
2579
2580 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2581
2582         * FontDialog.cs: Update the example panel if the selected index of
2583           the fontListBox changes.
2584
2585 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2586
2587         * FileDialog.cs: Make FileDialog remember which directory it was in
2588           last in the same execution.
2589
2590 2006-03-22  Mike Kestner  <mkestner@novell.com>
2591
2592         * FileDialog.cs: make the DropDownMenu on the toolbar display
2593         RadioChecks since they are mutually exclusive and that's what MS does.
2594
2595 2006-03-22  Mike Kestner  <mkestner@novell.com>
2596
2597         * Theme.cs: add Color param to CPDrawMenuGlyph.
2598         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2599         checks and radio marks and arrows are visible on highlighted items.
2600         * ControlPaint.cs: update to use new Theme signature.
2601
2602 2006-03-22  Mike Kestner  <mkestner@novell.com>
2603
2604         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2605         is active. Fixes #77870.
2606
2607 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2608
2609         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2610           to be focused/selected after startup
2611
2612 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2613
2614         * ColorDialog.cs: 
2615           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2616             CustomColors and ShowHelp properties
2617           - Some internal rewrites to get better results when using the
2618             ColorMatrix
2619
2620 2006-03-22  Mike Kestner  <mkestner@novell.com>
2621
2622         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2623         HoverSelection.  Fixes #77836.
2624
2625 2006-03-22  Mike Kestner  <mkestner@novell.com>
2626
2627         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2628         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2629         1, not 0.  Update ButtonSize based on a pixel count of the win32
2630         control.  Adjust the toolbar size/location for new button size.
2631
2632 2006-03-22  Jackson Harper  <jackson@ximian.com>
2633
2634         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2635         true.
2636         * ScrollBar.cs: When doing increments and decrements we need to
2637         set the Value property so that ValueChanged gets raised. A
2638         possible optimization here would be to make an internal SetValue
2639         that doesn't invalidate immediately.
2640         * ToolTip.cs: Tooltips get added to their container (when
2641         supplied) so they get disposed when the container is disposed.
2642         - Don't create tooltips for String.Empty. This prevents all these
2643         little 2-3 pixel windows from showing up when running nunit-gui
2644         and driving me mad.
2645         * Form.cs: Don't set topmost when setting the owner if the handles
2646         haven't been created yet.  The topmost set will happen when the
2647         handles are created.
2648
2649 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2650
2651         * XplatUIX11.cs:
2652           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2653           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2654             visible (to allow them to recalculate their sizes)
2655
2656 2006-03-21  Mike Kestner  <mkestner@novell.com>
2657
2658         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2659         methods. Removed a ton of redundant code.  Still not really happy with
2660         the border rendering, but I think that's mainly because of the
2661         ControlDarkDark being black instead of a dark grey. Depending on how 
2662         close we want to be, we might want to revisit those color choices.
2663         Among the new features added during the refactor were DropDownArrow
2664         pressed rendering, Disabled image rendering.  Proper flat appearance
2665         boundary rendering.  Removed the Divider and Wrapping dividers since I
2666         can't figure out any combination of themes and conditions to make the
2667         MS control draw a horizontal line on a toolbar despite what the
2668         Divider property docs indicate.
2669         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2670         conditions and incorrect layout.  Updated to coding standard.
2671         * ToolBarButton.cs: refactored layout and positioning code from
2672         ToolBar to here.  Invalidate wherever possible instead of forcing
2673         redraws of the whole toolbar. 
2674         (Known remaining issues: explicit ButtonSize smaller than provided
2675         images.)
2676
2677 2006-03-21  Mike Kestner  <mkestner@novell.com>
2678
2679         * ContextMenu.cs (Show): use the position parameter instead of just
2680         showing at the MousePosition.
2681
2682 2006-03-21  Jackson Harper  <jackson@ximian.com>
2683
2684         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2685         control handle this.
2686         * TreeNodeCollection.cs: If we are clearing the root node we need
2687         to reset top_node so calcs can still happen.
2688         * ThemeWin32Classic.cs: This is a Flags so we need to check
2689         properly.
2690         
2691 2006-03-21  Jackson Harper  <jackson@ximian.com>
2692
2693         * DataGrid.cs: Create columns when the binding context has been
2694         changed.
2695         * X11Structs.cs: Keysyms are uints.
2696         - Add size to fix build.
2697
2698 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2699
2700         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2701           XplatUIOSX.cs: 
2702           - Added ResetMouseHover method to allow controls to retrigger
2703             hovering if they need it more than once
2704           - Implemented MouseHoverTime and MouseHoverSize properties
2705         * Timer.cs: Start() must reset the interval
2706         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2707           properties
2708
2709 2006-03-21  Jackson Harper  <jackson@ximian.com>
2710
2711         * X11Keyboard.cs: improved layout detection. Move the nonchar
2712         tables into this file.
2713         * KeyboardLayouts.cs: Move the tables into resource files.
2714
2715 2006-03-21  Mike Kestner  <mkestner@novell.com>
2716
2717         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2718
2719 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2720
2721         * Mime.cs: Various speed optimizations. Looking up mime types
2722           is now 2 times faster than before
2723
2724 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2725
2726         * CreateParams.cs: Added internal menu field
2727         * Control.cs: 
2728           - Switched call order for UpdateBounds; now we always call
2729             the one that also takes ClientSize, and we're calculating the 
2730             client size via driver method in the others. The previous
2731             method of tracking client size by difference wasn't working
2732             for forms where even the starting client size wouldn't match
2733             the overall form size (due to borders) (Part of fix for #77729)
2734           - CreateParams(): Do not use parent.Handle unless the handle is
2735             already created. Causes havoc with Nexxia and throws off our
2736             creation of controls
2737         * XplatUIX11.cs:
2738           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2739           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2740             method (consolidates code)
2741           - Changed RequestNCRecalc to use new PerformNCCalc method
2742           - Added calls to RequestNCRecalc when menus and borders are changed
2743             to allow app to set NC size. (Part of fix for #77729) This matches
2744             when MS send a WM_NCRECALC on Win32 windows.
2745           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2746             (Part of fix for #77729). This matches what MS does, they also
2747             send that message when the form is made visible.
2748           - XException.GetMessage: Improved usability of X errors by including
2749             a translation of the window into Hwnd and Control class
2750           - Improved debug info for window creation, reparenting and destruction
2751           - Created helper method WindowIsMapped() [Currently not used]
2752         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2753         * Form.cs:
2754           - CreateParams: Now setting our menu on the new internal menu field
2755           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2756             avoid calculating the same property twice
2757         * Hwnd.cs:
2758           - Improved usability of ToString() for debugging purposes
2759           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2760             determine the height of the menu, instead of just the font. This
2761             required to also create a graphics context and to keep a bmp 
2762             around (for performance reasons)
2763
2764 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2765
2766         * MenuAPI.cs: Added OnMouseUp method
2767         * Form.cs:
2768           - Now remembering the requested client size, avoids size errors
2769           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2770             instead of base if the menu is active. This is required due to
2771             control now capturing and releasing on down/up and it would
2772             prematurely release our menu capture
2773
2774 2006-03-17  Jackson Harper  <jackson@ximian.com>
2775
2776         * KeyboardLayouts.cs: Add the czech layouts.
2777
2778 2006-03-16  Jackson Harper  <jackson@ximian.com>
2779
2780         * Control.cs: Use the viewport space when sizing not the controls
2781         client size, so things like ScrollableControl that effect the
2782         viewport size (when scrollbars are added) are computed correctly.
2783         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2784         of ManagerEntrys.
2785         - Handle creating BindingManagers for null data sources.
2786         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2787         source, otherwise when rows are added they are added to the 'fake'
2788         datasource and we will crash when trying to set the position in
2789         those rows.
2790         - Use Implicit scrollbars on the datagrid so they arent
2791         selectable.
2792         
2793 2006-03-16  Jackson Harper  <jackson@ximian.com>
2794
2795         * Binding.cs:
2796         * InternalWindowManager.cs:
2797         * MdiWindowManager.cs:
2798         * X11Keyboard.cs: I really want Mike to love me again (fix
2799         compiler warnings).
2800
2801 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2802
2803         * DataGrid.cs:
2804           - OnMouseDown: Switch to editing mode when clicking on the cell
2805                          even if we're clicking on the cell that's currently 
2806                          selected
2807           - ProcessGridKey: Left/Right now wrap like MS.Net does
2808           - ProcessGridKey: Tab now knows to add a new row when tab is
2809                             pressed in the cell of the last column of the 
2810                             last row
2811           - ProcessGridKey: Enter now adds another row  if pressed in the last
2812                             row and selectes the new row, same column cell
2813           - ProcessGridKey: Home/End navigate columns, not rows, like 
2814                             originally implemented
2815           - Broke ProcessKeyPreview code out into an extra Internal method
2816             so it can be called from the edit code
2817         * DataGridTextBox.cs (ProcessKeyMessage):
2818           - Switched to accept Tab keypresses
2819           - Added F2 handling to allow jumping to the end of the edited cell
2820           - Added logic to allow moving caret left/right inside edited cell
2821             and making the edited cell jump when the caret hits cell borders
2822           - Tab and Enter are now passed to the datagrid after being handled
2823         * TextBoxBase.cs:
2824           - Removed capture code now that Control handles it
2825           - set_SelectionStart now ensures caret is visible
2826
2827 2006-03-16  Jackson Harper  <jackson@ximian.com>
2828
2829         * TrackBar.cs: Debackwards the increment/decrement for handling
2830         mouse clicks on the bar with vertical trackbars.
2831         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2832         bottom to match MS.
2833
2834 2006-03-16  Mike Kestner  <mkestner@novell.com>
2835
2836         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2837         consistent with the MS control. Fix a bug in
2838         SelectedListViewItemCollection.Clear that was pissing me off for the
2839         better part of a day because the collection was being altered
2840         underneath us as we walked the list.
2841
2842 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2843
2844         * Control.cs: Not sure how we could miss this so long, but it seems
2845           that MS.Net has Capture set all the way from before calling 
2846           OnMouseDown through sending the mouse events until after
2847           OnMouseUp. This will fix DataGrid's selection being set to end
2848           at the location of the MouseUp.
2849
2850 2006-03-15  Jackson Harper  <jackson@ximian.com>
2851
2852         * BindingContext.cs: Check the binding after its added so that it
2853           can initialize the binding managers and hookup to events.
2854         * Binding.cs: Data members seem to sometimes include rows/cols in
2855           the format Row.Column we now take this into account.
2856           - Hookup to the position changed event so we can update the
2857           control when the position has changed in the data set.
2858         * CurrencyManager.cs: Take into account the row/col naming
2859           convention when creating dataset tables.
2860         * BindingContext.cs: Using a newer better way of storing
2861           datasource/datamember pairs.  Hopefully this better matches MS for
2862           looking up binding managers.
2863
2864
2865 2006-03-15  Jackson Harper  <jackson@ximian.com>
2866
2867         * BindingContext.cs: The currency manager needs the data member
2868         name, if the member is a data set we use the name to find the
2869         correct table.
2870         * CurrencyManager.cs: When creating the list prefer an IList over
2871         an IListSource.
2872         - Attempt to create a DataTable from a DataSet (TODO: might need
2873         some better error checking here, although MS doesn't seem to have much)
2874         - If we have a DataTable create a view and use it as our list.
2875
2876 2006-03-15  Mike Kestner  <mkestner@novell.com>
2877
2878         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2879         keyboard navigation. Support Up/Down/Left/Right selection correctly
2880         for all 4 View modes.
2881         * ListViewItem.cs: add internal row/col fields for icon layouts.
2882
2883 2006-03-15  Jackson Harper  <jackson@ximian.com>
2884
2885         * TabControl.cs: Redraw the tabs when we resize so their newly
2886         calculated sizes are drawn on screen.
2887         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2888         composite characters.
2889         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2890         - filter events so that composite characters can be created
2891         patches by peter
2892         * X11Structs.cs: Add XIMProperties enum.
2893
2894 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2895
2896         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2897           unless it's created
2898
2899 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2900
2901         * Control.cs (PerformLayout): We don't need to consider visiblity
2902           for anchoring, only for docking. This fixes 'whacky' alignment
2903           in listbox and other controls that use implicit scrollbars after
2904           the previous PerformLayout patch
2905         * ListBox.cs: Switched to use implicit scrollbars
2906           
2907 2006-03-14  Mike Kestner  <mkestner@novell.com>
2908
2909         * ToolBar.cs: 
2910         * VScrollBar.cs:
2911         - chain up the "new event" overrides to base and use
2912         OnEvent to raise them.  Part of fix for bug #76509.
2913
2914 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2915
2916         * FileDialog.cs: Do not select an item in the parent directory
2917           on backspace
2918
2919 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2920
2921         * Control.cs (PerformLayout): It would seem that we considered
2922           invisible windows for our layout. Not quite the right thing
2923           to do. Now we don't any longer, thereby fixing bug #76889.
2924
2925 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2926
2927         * Control.cs (CanFocus): I goofed. A control can have focus 
2928           even though it's not selectable. Made it match MS docs.
2929
2930 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2931
2932         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2933           center by default (fixes #76895)
2934         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2935           all uses of Border3DSides.All with the explicit ORd together
2936           Left|Right|Top|Bottom because I assume that nobody was aware 
2937           that All also implies a center fill. Most places I checked had
2938           a fill right above.
2939         * ProgressBarStyle.cs: Added
2940
2941 2006-03-13  Mike Kestner  <mkestner@novell.com>
2942
2943         * ListView.cs: fix breakage in drag shadow header positioning 
2944         from Peter's csc compilation fix.
2945
2946 2006-03-13  Mike Kestner  <mkestner@novell.com>
2947
2948         * ListView.cs: fix NRE produced by backspacing twice in a focused
2949         FileDialog.
2950
2951 2006-03-13  Mike Kestner  <mkestner@novell.com>
2952
2953         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2954
2955 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2956
2957         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2958           be changed
2959         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2960           the allowed size before making programmatic size changes
2961
2962 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2963
2964         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2965           set, metacity is broken and will still use the emty sizes in 
2966           the struct. (Fix for #77089)
2967
2968 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2969
2970         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2971           WindowExStyles and marked both enums as Flags
2972         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2973           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2974           to match WindowStyles split
2975         * XplatUIX11.cs:
2976           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2977           - Updated to match WindowStyles split
2978         * XplatUIWin32.cs:
2979           - Fixed FosterParent creation, was using ExStyle on the Style field
2980             (This should help with Popup focus issues)
2981           - Updated to match WindowStyles split
2982
2983 2006-03-13  Jackson Harper  <jackson@ximian.com>
2984
2985         * MdiWindowManager.cs: Use the system menu height. Fixes some
2986         strange sizing issues.
2987
2988 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2989
2990         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2991         * TextBoxBase.cs:
2992           - Scroll to caret after inserting text (#77672)
2993           - Make scroll range one pixel higher, fixes off-by-one error (and
2994             makes underlines visible on the last line)
2995
2996 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2997
2998         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2999           the keyboard state from being stuck with keys in 'pressed' state when
3000           focus is switched away via keyboard
3001         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3002           reset the keyboard if no X11 KeyUp events are expected to come
3003         * X11Structs.cs: Switched type of Visible to bool to match driver
3004
3005 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3006
3007         * TextControl.cs:
3008           - Switched caret to be just 1 pixel wide, matches MS and looks less
3009             clunky
3010           - Moved caret display 1 pixel down from the top of the control
3011             to improve view
3012           - InsertCharAtCharet: Update the selection start if moving the caret
3013             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3014           - No longer always creating the caret when the caret methods are
3015             called. Only the actual ShowCaret/HideCaret will do that now
3016           - Only setting caret visible if the owner control has focus
3017           - UpdateView: Added invalidation-shortcut logic for center and right 
3018             aligned text. Previously we'd update all according to the left
3019             logic which caused drawing errors. Also fixed height of invalidated
3020             areas, now properly invalidating the whole area (was off-by-one)
3021           - owner_HandleCreated: Always generate the document when the
3022             handle is created; this ensures that 
3023         * TextBoxBase.cs:
3024           - Fixed situation where caret would disappear under the right
3025             window border, also improved scrolling behaviour on left-
3026             aligned textboxes
3027           - Fixed right-aligned textboxes to have a border to the
3028             right instead of the caret being under the right border
3029         * XplatUIX11.cs:
3030           - Switched from 'nested' to simple visible/not visible tracking 
3031             for caret (part of fix for #77671)
3032           - No longer passing through translated FocusIn/FocusOut messages
3033             since we were notifying too often and the wrong windows. Instead
3034             we just notify our focussed window of receiving or loosing focus
3035         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3036           counting for caret to simple visible yes/no behaviour (part of 
3037           fix for #77671)
3038
3039 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3040
3041         * Mime.cs: Remove debug code...
3042
3043 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3044
3045         * MimeGenerated.cs: Removed
3046         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3047           and subclasses) from /usr/(local/)share/mime and
3048           $HOME/.local/share/mime.
3049
3050 2006-03-10  Jackson Harper  <jackson@ximian.com>
3051
3052         * MdiWindowManager.cs: Recalc the NC area when a window is
3053         maximized/restored so that the menu area is drawn on forms that
3054         don't have a menu.
3055
3056 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3057
3058         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3059           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3060           us to force a WM_NCCALCRESIZE message being sent. This is needed
3061           for MDI maximizing.
3062
3063 2006-03-10  Jackson Harper  <jackson@ximian.com>
3064
3065         * Form.cs: We need to use the ActiveMenu when calculating menu
3066         height.
3067         - Fix nullref when the window manager hasn't been created yet.
3068         * Control.cs: Fix nullref when we try to bring a control to the
3069         front that has no parent.
3070         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3071         height.
3072         - Add a dummy item to the maximized menu so it always has the
3073         correct height. Otherwise when there are no menus we don't get our
3074         icon and buttons.
3075         
3076
3077 2006-03-10  Jackson Harper  <jackson@ximian.com>
3078
3079         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3080         stuff.
3081         * Form.cs: Make the window_state internal so the window managers
3082         can track it.
3083         - When an MDI child is maximized let its window manager create the
3084         main menu (so it can add its icon).
3085         - Notify the window managers of state changes
3086         - Let the window manager paint its buttons and handle button
3087         clicks on the menu when it is maximized.
3088         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3089         window manager, since tool windows don't use it, only mdi windows.
3090         - Tell the main form that we don't want it to handle NCPAINT
3091         itself to avoid extra painting.
3092         - Handle clicks on a maximized windows menu.
3093         - Handle window state changes
3094         - Handle minimize/maximize clicks correctly by setting the window state.
3095         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3096         when clicking on the forms icon).
3097         - New method to create a forms maximized menu. This is its normal
3098         menu + an icon.
3099         - Handle window state changes.
3100         - Handle sizing of maximized windows.  Maximized windows are just
3101         drawn bigger then the parent visible area. All controls are still
3102         there, they are just outside the visible area (this matches windows).
3103         * MdiClient.cs: No scrollbars when a child window is maximized.
3104         - Let the children windows figure out how big they should be when
3105         sizing maximized windows.
3106         - Implement a version of ArrangeIconicWindows somewhat similar to
3107         Windows version.  There are some little differences, but I don't
3108         think any app will rely on the layout of minimized mdi windows.
3109
3110 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3111
3112         * Padding.cs: Several fixes to allow compiling with csc 2.0
3113
3114 2006-03-09  Jackson Harper  <jackson@ximian.com>
3115
3116         * Menu.cs:
3117         * MenuItem.cs: Cheap hack so we can add items to the list without
3118         the events being raised.  This allows adding mdi items during
3119         drawing. TODO: Should probably find a better time to add the items.
3120
3121 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3122
3123         * ThemeWin32Classic.cs:
3124           - CheckBox_DrawText: Added logic to not wrap if not enough space
3125             is available (Fix for bug #77727)
3126           - RadioButton_DrawText: Added logic not to wrap if not enough
3127             space is available (Fix for bug #77727). Also removed some
3128             duplicate code, DrawString always drawing the regular text
3129             before hitting the if statement.
3130
3131 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3132
3133         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3134
3135 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3136
3137         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3138         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3139           methods. Moved the new 2.0 properties into alphabetical order with
3140           other properties and added MonoTODO tags
3141
3142 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3143
3144         * AutoScaleMode.cs: Added. Fix build.
3145
3146 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3147
3148         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3149           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3150           and was requiring premature handle creation for calls from above
3151         * Form.cs, Control.cs: Removed handle arguments from calls to
3152           CalculateClientRect()
3153
3154 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3155
3156         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3157           drag_column.column_rect is MarshalByRef and can't be used that way
3158
3159 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3160
3161         * AxHost.cs: Added deserialization constructor for 
3162           AxHost+State (fixes 77743)
3163
3164 2006-03-09  Mike Kestner  <mkestner@novell.com>
3165
3166         * ListView.cs: 
3167         - Added column drag reordering for details view.
3168         - fixed behavior when mouse is dragged off column and
3169         AllowColumnReorder is false.
3170         * ColumnHeader.cs: clone the format too in Clone.
3171         * Theme.cs: add DrawListViewHeaderDragDetails method.
3172         * ThemeWin32Classic.cs:
3173         - impl new method for drawing drag column shadows and targets.
3174         - support column offset for details mode in DrawListViewItem.
3175
3176 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3177
3178         * TextControl.cs: Reset the char_count when the document is cleared
3179           (Fixes bug reported on mono-winforms mailing list)
3180
3181 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3182
3183         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3184           of calling base we simply process the key ourselves, since both
3185           DefWindowProc and the handled method would set m.Result. 
3186           (Fixes #77732)
3187
3188 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3189
3190         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3191           method also moves the window; instead implemented a copy of
3192           Control.ScaleCore (Part of fix for #77456)
3193         * TextBoxBase.cs: 
3194           - Created new CreateGraphicsInternal method to allow providing
3195             a graphics context when no handle is created without triggering
3196             handle creation. (Part of fix for #77456)
3197           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3198         * TextControl.cs: 
3199           - Switched Constructor to require TextBoxBase instead of Control (to
3200             allow uncast access to CreateGraphicsInternal)
3201           - Safeguarded use of owner.Handle property. No longer accessing it
3202             unless the handle is already created.
3203           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3204           - Now triggering a recalc when owning control becomes visible
3205         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3206           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3207           premature handle creation (Part of fix for #77456)
3208         * Control.cs:
3209           - We now only destroy our double-buffering buffers when the
3210             control is resized or disposed, but not when visibility
3211             changes. (The code even re-created them twice every time)
3212           - Now requiring a redraw of the buffer on visibility changes
3213             (fixes bug 77654 part 2)
3214           - Not passing OnParentVisibleChanged up unless the control
3215             is visible
3216           - CanFocus: Fixed to match MS documentation
3217           - Focus: Fixed to return actual focus state and to check if
3218             setting focus is legal before setting it
3219
3220 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3221
3222         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3223           when to draw focus rectangle by looking at parent focus and
3224           selected state instead. This fixes TabPages on Linux sometimes
3225           having none or multiple focus rectangles.
3226         * XplatUIX11.cs (SetFocus): 
3227           - Don't set the focus if the same window already has focus
3228           - Use SendMessage instead of PostMessage (like it's Win32
3229             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3230             to match MS behaviour
3231         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3232           are not selectable.
3233
3234 2006-03-07  Jackson Harper  <jackson@ximian.com>
3235
3236         * PictureBox.cs: Revert line I accidently committed last week.
3237
3238 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3239
3240         * Control.cs: 
3241           - Added new IsRecreating and ParentIsRecreating properties to
3242             allow testing if RecreateHandle has been called on ourselves
3243             or one of our parents
3244           - WndProc(WM_DESTROY): If our control handle is being recreated
3245             we immediately need to create the handle when receiving the
3246             destroy, that way our child windows find a valid parent handle
3247             when they themselves are being recreated upon WM_DESTROY receipt
3248             (fix for bug #77654 part 1)
3249         * XplatUIX11.cs:
3250           - DestroyWindow: WM_DESTROY must be sent to our own window before
3251             notifying any child windows. MS documents that child windows
3252             are still valid when WM_DESTROY is received. (Control now relies on
3253             this behaviour)
3254           - Added some fine-grain debug options
3255
3256 2006-03-06  Jackson Harper  <jackson@ximian.com>
3257
3258         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3259         box and base calculations off this.
3260         * MdiChildContext.cs:
3261         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3262         anymore.
3263         
3264 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3265
3266         * Splitter.cs: In situations where the affected control is added
3267           to the parent's control list after the splitter, we would not
3268           populate affected. Now we try populating it on mousedown, if
3269           it's not already set, and force it to be re-set whenever our
3270           parent changes.
3271
3272 2006-03-03  Matt Hargett  <matt@use.net>
3273
3274         * Control.cs: implement Control.Padding
3275         * Padding.cs: -Padding.All returns -1 when constructing with the
3276         implicit default ctor
3277         -Padding.ToString() matches MS.NET
3278         * ContainerControl.cs: implement
3279         ContainerControl.AutoScaleDimensions
3280         * ListControl.cs: implement ListControl.FormattingEnabled
3281         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3282         * ButtonBase.cs:
3283         * TabPage.cs: Implement UseVisualStyleBackColor.
3284         * PictureBox.cs: Implement PictureBox.InitialImage.
3285
3286 2006-03-03  Mike Kestner  <mkestner@novell.com>
3287
3288         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3289         event declarations to proxy to base event.
3290         * ListViewItem.cs: update to use ItemControl.
3291         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3292         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3293         column header label rendering for 0 width columns.
3294
3295 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3296
3297         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3298           that causes the control to be created. Fixes #77476.
3299
3300 2006-03-02  Jackson Harper  <jackson@ximian.com>
3301
3302         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3303         expose_pending.
3304
3305 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3306
3307         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3308           passed in for the EventArgs (fixes #77690)
3309
3310 2006-03-01  Jackson Harper  <jackson@ximian.com>
3311
3312         * ScrollBar.cs: Refresh afterbeing resized.
3313
3314 2006-02-28  Mike Kestner  <mkestner@novell.com>
3315
3316         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3317         Clean up a tracker compile warning.
3318         * MenuItem.cs: add internal PerformPopup method.
3319         [Fixes #77457]
3320
3321 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3322
3323         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3324           implicit expose) when the text is set to null
3325
3326 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3327
3328         * RichTextBox.cs (FlushText): When newline is true, we always
3329           need to split the line, even if no text is on it and we may
3330           never eat newlines. (Fixes #77669)
3331
3332 2006-02-28  Mike Kestner  <mkestner@novell.com>
3333
3334         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3335         and set Selected instead.
3336         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3337         collections.
3338
3339 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3340
3341         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3342
3343 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3344
3345         * FontDialog.cs:
3346           - Got rid of the panel. All controls are now directly added to
3347             the dialog form
3348           - It is now possible to set a font with the Font property
3349           - MinSize and MaxSize property do now what they should
3350           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3351           - Searching and selecting a font with the font textbox works now,
3352             the same applies to the style and size textbox
3353           - Draw the correct 3D border in the example panel
3354           - Fixed a little mem leak (unused fonts didn't get disposed)
3355           - Many other internal updates/rewrites...
3356           - Fix typo
3357
3358 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3359
3360         * TextControl.cs: 
3361           - InsertRTFFromStream: Added 'number of characters inserted' argument
3362           - set_SelectedRTF: Now using the number of characters to calculate
3363             the new location for the selection and cursor (x/y cannot be used
3364             due to potentially already wrapped text)
3365
3366 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3367
3368         * TextControl.cs: Added property and implemented means to allow 
3369           disabling recalculation of a document (can be used to speed up
3370           multiple inserts and is needed to make RTF inserts predictable, see
3371           bug #77659)
3372         * RichTextBox.cs: Using the new NoRecalc property of Document to
3373           keep x/y insert locations predictable. Also makes it faster inserting
3374           large chunks of RTF
3375
3376 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3377
3378         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3379           it's easier for a child control to handle the other messages without
3380           having to duplicate the special functionality
3381         * TextBoxBase.cs
3382           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3383             code to handle processing the key ourselves, in order to get 
3384             access to the result of KeyEventArgs.Handled. We now only call 
3385             ProcessKey if they key hasn't been handled already. Fixes #77526.
3386           - set_Text: If null or empty string is given, just clear the 
3387             document. Fixes part of #77526
3388
3389 2006-02-27  Jackson Harper  <jackson@ximian.com>
3390
3391         * SizeGrip.cs: Paint the background color before painting the grip
3392         so things look right.
3393         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3394
3395 2006-02-27  Mike Kestner  <mkestner@novell.com>
3396
3397         * ListView.cs:
3398           - Restructure layout and invalidation model to remove a ton of
3399           flicker from the control and speed up performance in general.
3400           - Add manual column resize, flickers like crazy, but I already have
3401           some ideas on how I'll fix that. (#76822)
3402           - Merge the three Icon-based views into a single layout method.
3403           - Move item selection interaction logic from the item since 
3404           interaction with the collections is more appropriate to the view.
3405           - Deselection on non-item clicks.
3406         * ListViewItem.cs:
3407           - Encapsulate most of the layout. Add some internal props to trigger
3408           layout.  Move to a model where Items invalidate themselves instead
3409           of just invalidating the whole control every time something changes.
3410           - Invalidate on Text/Caption changes.
3411           - switch to an offset based layout model to avoid having to absolute
3412           position every element on item moves.
3413           - correct checkbox layout to conform to MS layout.
3414         * ThemeWin32Classic.cs:
3415           - refactor some column header drawing code.
3416           - fix string justification for column headers (#76821)
3417           - make SmallIcon labels top justified for compat with MS impl.
3418         * ThemeClearlooks.cs:
3419           - adjust to new ListViewItem internal checkbox bounds api.
3420
3421 2006-02-27  Jackson Harper  <jackson@ximian.com>
3422
3423         * Control.cs:  Change where implicit controls fall in the zorder.
3424         They are now on top of all children.
3425         - Synced AddImplicit code with Add
3426         - Removed unused enumerator.
3427         * SizeGrip.cs: Remove the TODO as its been TODONE.
3428
3429 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3430
3431         * TextControl.cs(Insert): Combine the last lines unless the insertion
3432           string ends with \n\n, otherwise we leave one line too many (Fixes
3433           something I noticed with the testapp for #77526; the bug itself was
3434           already fixed in the previous checkin)
3435
3436 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3437
3438         * RichTextBox.cs:
3439           - SelectionColor and SelectionFont methods no longer set absolute
3440             styles. Instead, the keep font or color respectively (This 
3441             resolves a long-standing FIXME in the code)
3442           - When flushing RTF text, the insert code now considers text trailing
3443             behind the insertion point (Fixes the bug where when replacing
3444             the selected text via SelectedRTF the remainder of the line behind 
3445             the selection would stay on the first insertion line)
3446         * TextBoxBase.cs:
3447           - AppendText now updates the selection points after inserting text
3448           - AppendText now ensures that the last tag (sometimes 0-length) of
3449             the document is used for the style information (Fixes part of 
3450             bug #77220)
3451         * TextControl.cs:
3452           - Created new FontDefiniton class to allow describing partial style
3453             changes
3454           - StreamLine() now takes a lines argument, to allow it to decide
3455             whether an encountered zero-length tag is the last in the document
3456             (which must be kept to not loose the font/color contained in it,
3457             for later appends)
3458           - Created Combine() and Split() methods for Marker structs, to 
3459             support marker updates due to reformatted documents (soft line
3460             wraps)
3461           - Implemented Document.CaretTag setter
3462           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3463             of the last line (Not the cause, but also exposed by bug #77220)
3464           - Added LineTag argument to InsertString method, to allow callers
3465             to force a certain tag to be used (required to force use of the
3466             trailing zero-length tag of a document)
3467           - Now updating markers in Combine(), to avoid stale tag markers
3468           - Added some method descriptions to aid maintenance
3469           - Implemented new FormatText concept, allowing additive/subtractive
3470             formatting by only specifying the components that are to be 
3471             changed. This was needed for resolving the RTB.SelectedColor/
3472             RTB.SelectedFont fixmes
3473           - Added Break() support method to allow breaking up linetags (used
3474             for partial formatting)
3475           - Added GenerateTextFormat() method. It is used for partial 
3476             formatting and allows to generate a full font/color from given
3477             attributes and an existing tag.
3478
3479 2006-02-26  Jackson Harper  <jackson@ximian.com>
3480
3481         * XplatUIX11.cs:  Use the correct caption height.
3482         - Translate hittest coordinates to screen coords to match MS.
3483         * XplatUIWin32.cs: When we create MDI windows we need to reset
3484         some of the style flags, so we get a nice blank window, and can
3485         draw all the decorations ourselves.
3486         - Set a clipping rectangle on the non client paint event, the
3487         window manager drawing code needs one.
3488         * Form.cs: The window manager needs to know when the window state
3489         has been updated.
3490         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3491         don't need to factor in border and title sizes in these
3492         methods. TODO: Remove the args and fix the call points.
3493         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3494         properly.
3495         - Let the driver set the cursors.
3496         - Improve active window handling
3497         - Correct sizes for title bars and buttons.
3498         - Match MS drawing better
3499         * MdiWindowManager.cs: We don't need to handle border style
3500         updates specially anymore.
3501         - Check for scrollbars when windows are done moving
3502         - Handle Active properly.
3503         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3504         correctly. I am spewing the exception though, so we don't hide the
3505         bugs.
3506         
3507 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3508
3509         * DataGridViewRowPostPaintEventArgs.cs,
3510           DataGridViewCellPaintingEventArgs.cs,
3511           DataGridViewRowCollection.cs,
3512           DataGridViewRowPrePaintEventArgs.cs,
3513           DataGridViewCell.cs: Clear a few warnings and implement a few
3514           exceptions that should be thrown.
3515
3516 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3517
3518         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3519           'inheriting' our parent's (non-default) cursor. (Part of
3520            the fix for #77479)
3521
3522 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3523
3524         * XplatUIX11.cs: Fixed cast to make csc happy
3525
3526 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3527
3528         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3529           it's for the client area (part of fix for #77479 and needed
3530           for MDI window cursor handling)
3531         * XplatUIX11.cs
3532           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3533             the appropriate default cursors and also passing the message
3534             up the parent chain 
3535           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3536             for non-client areas
3537
3538 2006-02-15  Jackson Harper  <jackson@ximian.com>
3539
3540         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3541         is a real MDI window
3542
3543 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3544
3545         * X11DesktopColors.cs: Instead of checking the desktop session
3546           string for "KDE" check if it starts with "KDE"
3547
3548 2006-02-10  Jackson Harper  <jackson@ximian.com>
3549
3550         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3551         systems).
3552
3553 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3554
3555         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3556           errors
3557         * ColorDialog.cs:
3558           - Got rid of the panel. All controls are now directly added to
3559             the dialog form
3560           - Changed to mono coding style
3561
3562 2006-02-10  Jackson Harper  <jackson@ximian.com>
3563
3564         * InternalWindowManager.cs: We don't need the set visibility to
3565         false hack anymore now that peter has written beautiful shutdown
3566         code.
3567
3568 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3569
3570         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3571           where already explicitly destroyed
3572
3573 2006-02-10  Jackson Harper  <jackson@ximian.com>
3574
3575         * MdiClient.cs: Handle the case where windows are too high or to
3576         the left and we need scrollbars.
3577
3578 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3579
3580         * MimeIcon.cs: Added some icons
3581         * FileDialog.cs:
3582           - Fixed bug #77477
3583           - Got rid of the panel. All controls are now directly added to
3584             the dialog form
3585           - Changed to mono coding style
3586           - On Linux "My Computer" and "My Network" will now show some
3587             more usefull information. A new class, MasterMount, gathers
3588             this information from /proc/mount. Updated MWFFileView to make
3589             use of this information
3590           - Fixed a bug that caused FileDialog to crash when
3591             ".recently_used" file had a zero size
3592           - FilterIndex does now what it should
3593           - Some Refactoring
3594         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3595             FileDialog changes
3596
3597 2006-02-09  Jackson Harper  <jackson@ximian.com>
3598
3599         * ComboBox.cs: Don't touch if null.
3600
3601 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3602
3603         * Cursor.cs: 64bit safeness fix
3604         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3605
3606 2006-02-09  Jackson Harper  <jackson@ximian.com>
3607
3608         * Form.cs: If a form is made into an MDI form update the styles so
3609         all the props can get set correctly.
3610         - Kill the mdi_container when we dont need it anymore.
3611         * InternalWindowManager.cs: Add missing NOT
3612
3613 2006-02-08  Jackson Harper  <jackson@ximian.com>
3614
3615         * InternalWindowManager.cs: Respek clipping when drawing MDi
3616         decorations.
3617
3618 2006-02-08  Jackson Harper  <jackson@ximian.com>
3619
3620         * Hwnd.cs: Add bits to track non client expose events.
3621         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3622         gives us a proper invalid rect and will allow for some nice
3623         optimizations with NC client drawing
3624         - MDI windows are children windows, so move their style handling
3625         into the child window block.
3626         * InternalWindowManager.cs: Remove a state reset that was
3627         getting invoked at the wrong time. Fixes managed windows getting
3628         into a 'stuck' captured state.
3629
3630 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3631
3632         * TextControl.cs (Document.ctor): Now initializing 
3633           selection_anchor. Fixes #77493
3634
3635 2006-02-07  Jackson Harper  <jackson@ximian.com>
3636
3637         * TrackBar.cs: The increment/decrements were backwards.
3638
3639 2006-02-07  Mike Kestner  <mkestner@novell.com>
3640
3641         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3642         to the instance itself.
3643
3644 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3645
3646         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3647           on ulongs and pointers, the size differs between 32bit and 64bit
3648           systems. 
3649
3650 2006-02-07  Mike Kestner  <mkestner@novell.com>
3651
3652         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3653         for 64 bit platforms to work around a metacity bug. 
3654
3655 2006-02-07  Jackson Harper  <jackson@ximian.com>
3656
3657         * TrackBar.cs: Process the input keys we need, and hookup to
3658         KeyDown instead of using WndProc, so we get key messages.
3659
3660 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3661
3662         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3663           machine we're on. 
3664         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3665           we need to translate the XdndVersion atoms array before sending it
3666
3667 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3668
3669         * XplatUIX11.cs: 
3670           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3671             number of bits for the property, not the number of bytes. The
3672             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3673             but would not crash since it specified 8 bits instead of 4 bits)
3674           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3675             defined as XID -> long in the C headers)
3676           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3677             references since those are now IntPtr to begin with
3678           - Switched all Atom.XXX 'int' casts to IntPtr casts
3679           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3680           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3681           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3682         * X11Structs.cs:
3683           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3684           - Changed atom in HoverStruct to be IntPtr
3685         * X11DnD.cs:
3686           - Removed local DllImports, switched code to use those from XplatUIX11
3687           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3688
3689 2006-02-06  Mike Kestner  <mkestner@novell.com>
3690
3691         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3692         method signatures in the import region.  There may still be some
3693         lingering struct marshaling issues, as I didn't drill down into those.
3694         Yet.
3695
3696 2006-02-06  Jackson Harper  <jackson@ximian.com>
3697
3698         * ComboBox.cs: Dont manually set the top_item, this is computed
3699         when the scrollbar position is set.
3700
3701 2006-02-06  Mike Kestner  <mkestner@novell.com>
3702
3703         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3704         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3705         usage of Atom needs to be mapped to IntPtr for example.  And there are
3706         likely other int/long issues to be addressed.
3707
3708 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3709
3710         * FileDialog.cs: One more...
3711
3712 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3713
3714         * FileDialog.cs: Next try
3715
3716 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3717
3718         * FileDialog.cs: First part of fix for #77464
3719
3720 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3721
3722         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3723           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3724           AcceptButton border drawing.
3725
3726 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3727
3728         * Form.cs: Moved positioning of form after auto scaling is applied,
3729           otherwise it would possibly use wrong form size.
3730
3731 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3732
3733         * Control.cs (RecreateHandle): No need to re-create any child
3734           controls, the child windows will get destroyed automatically by
3735           the windowing system or driver, and re-created when the handle
3736           is being accessed the first time. Fixes #77456
3737         * Form.cs: No longer setting the form to closing if the handle is 
3738           being recreated. This seems like the right thing to do, don't
3739           have a bug or testcase for this, though.
3740
3741 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3742
3743         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3744           controls to avoid unwanted side effects
3745
3746 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3747
3748         * Control.cs: 
3749           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3750             control. Fixes #77416.
3751           - DefaultSize is 0,0 for control
3752         * TextBoxBase.cs: 
3753           - DefaultSize is 100, 20
3754           - SetBoundsCore: Now enforcing the height, no matter if the provided
3755             height is more or less than the preferred one, as long as AutoSize
3756             is on
3757         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3758
3759 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3760
3761         * Control.cs:
3762           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3763             call unless both performLayout is true *and* we have a pending
3764             layout change
3765           - ResumeLayout: MS does not completely nest Suspend and Resume,
3766             they bottom out at 0, fixed our code to match that.
3767           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3768             SetBoundsCore, we were updating even when we shouldn't. This fixes
3769             swf-anchors mis-anchoring when resizing the app fast and lots.
3770           - UpdateDistances: Now only setting the left and top distance if 
3771             we have a parent and are not suspended, this is based on
3772             a suggestion by Don Edvaldson in bug #77355.
3773           - OnVisibleChanged: Fixed logic when to create the control. We may
3774             not create the control if we have no parent or if it's not visible;
3775             switched to using Visible property instead of is_visible field 
3776             since the property also considers parent states. This fixes a bug
3777             when starting Paint.Net
3778
3779 2006-02-02  Jackson Harper  <jackson@ximian.com>
3780
3781         * Form.cs: If the forms handle hasn't been created yet don't call
3782         into xplatui to make it top most, just set the topmost flag on the
3783         form in CreateParams
3784         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3785
3786 2006-02-01  Jackson Harper  <jackson@ximian.com>
3787
3788         * ScrollableControl.cs: Refactored the Recalculate method a
3789         little, this wasn't handling all the variants of bottom and right
3790         bars needed to be added and added/removed based on their
3791         counterparts being added/removed (which changes the drawable
3792         size). Also we special case client widths and heights of 0 and
3793         don't add the scrollbar for those.
3794
3795 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3796
3797         * XplatUIX11.cs: 
3798           - Added method to get AbsoluteGeometry(); currently unused, but might
3799             be used in the future, if we try again to figure out toplevel
3800             coordinates with some more crappy window managers
3801           - Added FrameExtents() method to retrieve the WM set decoration size
3802           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3803             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3804         * Hwnd.cs: 
3805           - Added whacky_wm tracking var for metacity
3806           - Added logic to have default menu height if the actual menu height
3807             has not yet been calculated (part of fix for #77426)
3808         * Form.cs: Keep track whether client size has been set and re-set 
3809           it if a menu is added/removed afterwards (Fixes #77426)
3810
3811 2006-01-31  Jackson Harper  <jackson@ximian.com>
3812
3813         * Control.cs: When a new Site is set on the component attempt to
3814         pull the AmbientProperties from it.
3815
3816 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3817
3818         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3819           in the background of the owning form. Fixes #77332
3820
3821 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3822
3823         * MimeIcon.cs: Fix for #77409
3824
3825 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3826
3827         * XplatUIX11GTK.cs: Initial import
3828
3829 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3830
3831         * FixedSizeTextBox: fixes class signature
3832
3833 2006-01-30  Jackson Harper  <jackson@ximian.com>
3834
3835         * FixedSizeTextBox.cs: New internal class that represents a
3836         textBox that will not be scaled.
3837         * TreeView.cs:
3838         * ComboBox.cs:
3839         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3840         standard TextBox.
3841                 
3842 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3843
3844         * XplatUIX11.cs: Retrieve default screen number instead of
3845           assuming 0. Attempted fix for #77318
3846
3847 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3848
3849         * XplatUIWin32.cs: 
3850           - GetWindowPos: When a window is parented by FosterParent, use 
3851             the desktop instead of FosterParent as the base to get coordinates
3852           - CreateWindow: Don't make FosterParent the parent window for Popups
3853             if we don't want a taskbar entry, Popups automatically don't get one
3854         * Hwnd.cs: Need to call remove to actually remove the key from the
3855           hash table
3856
3857 2006-01-30  Mike Kestner  <mkestner@novell.com>
3858
3859         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3860
3861 2006-01-30  Jackson Harper  <jackson@ximian.com>
3862
3863         * TreeView.cs:
3864         * TreeNode.cs: Raise events no matter how the treenode is
3865         checked. Patch by Don Edvalson.
3866
3867 2006-01-30  Jackson Harper  <jackson@ximian.com>
3868
3869         * TreeNode.cs: Signature fix.
3870
3871 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3872
3873         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3874
3875 2006-01-20  Mike Kestner  <mkestner@novell.com>
3876
3877         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3878         event forwarding when menus are active.
3879         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3880         Most of the patch is pdb's with a little rework.
3881
3882 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3883
3884         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3885           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3886           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3887         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3888         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3889           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3890           the PaintWindowDecorations method
3891         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3892         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3893         * MenuAPI.cs: Made tracker window invisible
3894         * XplatUIWin32.cs:
3895           - Removed GetMenuDC and ReleaseMenuDC methods
3896           - Implemented the client=false path for PaintEventStart and
3897             PaintEventEnd
3898
3899 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3900
3901         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3902         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3903           styles
3904         * Form.cs: 
3905           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3906             the style
3907           - CreateParams: Reworked the styles to match MS look'n'feel,
3908             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3909             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3910
3911 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3912
3913         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3914           window is not mapped, since otherwise every form that's being 
3915           created is considered minimized, which is wrong.
3916         * Form.cs: Catching the exception and returning our internal value
3917           instead
3918
3919 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3920
3921         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3922           SetWindowMinMax() to have means to tell the driver about the minimum,
3923           maximum and maximized state window sizes. (Part of the fix for #76485)
3924         * Form.cs:
3925           - Implemented tracking of minimum and maximum window size, now calling
3926             new SetWindowMinMax() driver method to tell the driver (Part of the
3927             fix for #76485)
3928           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3929             (Completes fix for #76485)
3930           - Calling new SetWindowMinMax driver method when the handle for a 
3931             form is created, to make sure the driver knows about it even if
3932             the values have been set before the window was created
3933           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3934             to avoid messing up our anchoring calculations (partial fix
3935             for #77355)
3936         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3937         * XplatUIX11.cs:
3938           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3939           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3940             (and presumably other freedesktop.org compliant WMs). Left the
3941             assumption unmapped=minimized, needed for SetVisible to work.
3942           - Now setting the window state when creating windows
3943           - Fixed SetVisible to consider/set the window state when mapping
3944             a Form. We cannot set the state before it's mapped, and we cannot
3945             use Form.WindowState once it's mapped (since it would ask the
3946             driver and get 'normal'. Therefore, we grab the state before
3947             mapping, map, and then set state.
3948           - Implmemented SetWindowMinMax method; Metacity does not seem to
3949             honor the ZoomHints, though.
3950         * XplatUIWin32.cs:
3951           - Removed MINMAXINFO (moved to XplatUIStructs)
3952           - Added SetWindowMinMax stub (on Win32 the only way to set that
3953             information is in response to the WM_GETMINMAXINFO message, which
3954             is handled in Form.cs)
3955           - Added logic to SetVisible to set the proper window state when a 
3956             form is made visible (fixes #75720)
3957
3958 2006-01-26  Jackson Harper  <jackson@ximian.com>
3959
3960         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3961         same way we handle them with Invoke.
3962
3963 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3964
3965         * Form.cs:
3966           - Added tracking of window state so CreateParams can return
3967             the appropriate style
3968           - Moved setting of WS_CAPTION style in CreateParams to allow
3969             styles without caption
3970         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3971           control if the TextBox property is accessed. Fixes #77345
3972         * Control.cs:
3973           - get_Created: now uses is_disposed and is_created to determine
3974             return value (suggested by Jackson)
3975           - CreateHandle: No longer exits if the handle is being recreated
3976           - RecreateHandle: If the handle is not yet created call the 
3977             appropriate method to create either control or handle. If the
3978             control is already created CreateHandle will simply exit instead
3979             of just creating the handle
3980         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3981           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3982           is called.
3983         * XplatUIX11.cs: 
3984           - When DestroyWindow is called, instead of waiting for the 
3985             DestroyNotification from X11, we directly post it to the WndProc
3986             and immediately dispose the hwnd object.
3987             Same applies to DestroyChildWindows, and this obsoletes the
3988             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3989             child windows before our own, to avoid X11 errors.
3990           - Removed the direct sending of WM_PAINT on UpdateWindow
3991         * XplatUIWin32.cs:
3992           - Reworked DoEvents and GetMessage to allow access to internal queue
3993             even when trying non-blocking access to the queue.  Fixes #77335. 
3994             Based on a patch suggestion by Don Edvalson. The new private
3995             GetMessage can now also be used as a backend for a PeekMessage
3996             frontend version.
3997         * XplatUI.cs: Improved debug output for CreateWindow
3998
3999 2006-01-25  Jackson Harper  <jackson@ximian.com>
4000
4001         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4002
4003 2006-01-24  Jackson Harper  <jackson@ximian.com>
4004
4005         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4006         when we have a MaxDropItems lower then the selected index.
4007
4008 2006-01-24  Jackson Harper  <jackson@ximian.com>
4009
4010         * Control.cs: Don't allow selection of non visible controls, allow
4011         selection of controls without parents.
4012
4013 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4014
4015         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4016         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4017
4018 2006-01-23  Jackson Harper  <jackson@ximian.com>
4019
4020         * UpDownBase.cs: Make the textbox handle all the selection and
4021         tabbing. This fixes tabing to updown controls.
4022
4023 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4024
4025         * TextBoxBase.cs: fixes exception thown the object was null
4026
4027 2006-01-23  Jackson Harper  <jackson@ximian.com>
4028
4029         * ButtonBase.cs: Just use the base CreateParams. They set
4030         visibility and enabled correctly.
4031         * ComboBox.cs:
4032         * TrackBar.cs:
4033         * MonthCalendar.cs: Lets let the base set as much of the
4034         createparams as possible so we don't have duplicate code all over
4035         the place.
4036
4037 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4038
4039         * ThemeGtk.cs: Added TrackBar and some experimental code to
4040           get double buffering back
4041
4042 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4043
4044         * DataGrid.cs: Allows row number set internally higher than the last
4045         when creating a new row. Restores the editing functionality.
4046
4047 2006-01-20  Mike Kestner  <mkestner@novell.com>
4048
4049         * MimeIcon.cs: delay Image creation until the icons are accessed
4050         instead of creating 190 scaled images on GnomeHandler startup.
4051
4052 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4053
4054         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4055           first call base before processing the event. Fixes #77279
4056
4057 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4058
4059         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4060           that the stride for the GDI bitmap would match the stride of
4061           a DIB or a Cursor.
4062
4063 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4064
4065         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4066
4067 2006-01-19  Jackson Harper  <jackson@ximian.com>
4068
4069         * ComboBox.cs: Hookup the text controls keydown event so we get
4070         those when the text control has the focus.
4071
4072 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4073
4074         * Label.cs: Now using the base events instead of defining new ones;
4075           this allows us to just call the base properties without having to
4076           duplicate all base property logic 
4077
4078 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4079
4080         * Label.cs: A label by default is not a tabstop (Fixes one of our
4081           failing nunit tests)
4082
4083 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4084
4085         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4086         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4087
4088 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4089
4090         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4091           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4092           This fixes #77218
4093         * XplatUIWin32.cs: 
4094           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4095             constructor creates images that can't be saved. Part of the fix
4096             for #76103
4097           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4098           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4099             bug fix for handling window state in forms properly)
4100
4101 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4102
4103         * ThemeGtk.cs: Simplify ScrollBar drawing
4104
4105 2006-01-18  Jackson Harper  <jackson@ximian.com>
4106
4107         * Splitter.cs: Set the default dock style for the splitter control
4108         in the constructor.
4109
4110 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4111
4112         * ThemeGtk.cs: Corrected StateType and ShadowType for
4113           gtk_paint_box
4114
4115 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4116
4117         * Control.cs: Make use of Theme.DoubleBufferingSupported
4118         * ThemeGtk.cs:
4119           - Added drawing for flat style buttons
4120           - Added ScrollBar drawing
4121
4122 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4123
4124         * ThemeClearlooks.cs: Removed some unneeded code.
4125         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4126
4127 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4128
4129         * LinkLabel.cs: We need to update the hover drawing when
4130           leaving the control as well.
4131
4132 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4133
4134         * DataGrid.cs: Clicking on non empty areas in the columns
4135            area was giving an exception
4136
4137 2006-01-17  Jackson Harper  <jackson@ximian.com>
4138
4139         * ThemeWin32Classic.cs:
4140         * ListView.cs: Do not draw/clip the headers when the header style
4141         is None.
4142
4143 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4144
4145         * DataGrid.cs: Fixes 77260
4146         
4147 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4148
4149         * DataGrid.cs: Clicking on a column on a empty grid was giving
4150           an exception
4151
4152 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4153
4154         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4155           or any keypress will crash the grid.
4156
4157 2006-01-17  Mike Kestner  <mkestner@novell.com>
4158
4159         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4160         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4161         invisible/previously-visible items.
4162         [Fixes #76909]
4163
4164 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4165
4166         * ThemeClearlooks.cs:
4167         - Added CL_Draw_Button method; now other theme controls that are 
4168           not derived from button or do not have a button can draw buttons
4169           too
4170         - Updated ComboBox drawing
4171         - Beautified RadioButton drawing
4172         - Corrected drawing of bottom and left tabs
4173         - Beautified DateTimePicker and MonthCalendar
4174         - Added CPDrawButton and CPDrawRadioButton
4175
4176 2006-01-16  Jackson Harper  <jackson@ximian.com>
4177
4178         * ComboBox.cs: Set the initial value of the scrollbar to the
4179         current index. Reduce the numbers of refreshs and IndexOfs called.
4180
4181 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4182
4183         * FileDialog.cs: When the file listview is focused hitting the
4184           backspace key moves the fileview to the parent directory
4185
4186 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4187
4188         * Form.cs: 
4189           - Added RecreateHandle call when changing taskbar visibility to 
4190             trigger reparenting in Win32 driver (Fixes #75719)
4191           - If a window has minimize or maximize buttons, it cannot have
4192             a help button
4193         * XplatUIWin32.cs:
4194           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4195             the toplevel form with FosterParent (A toolwindow not on the
4196             taskbar) (Fixes #75719)
4197           - Made FosterParent a toolwindow
4198
4199 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4200
4201         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4202
4203 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4204
4205         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4206           is currently over that control, make sure that tooltip_window.Text
4207           gets updated
4208
4209 2006-01-13  Mike Kestner  <mkestner@novell.com>
4210
4211         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4212
4213 2006-01-13  Jackson Harper  <jackson@ximian.com>
4214
4215         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4216         value passed.  Also redraw the selected node when we recieve
4217         focus, so tabbing between trees works correctly.
4218
4219 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4220
4221         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4222           ~/.gconf/%gconf-tree.xml, so use
4223           .gconf/desktop/gnome/interface/%gconf.xml
4224
4225 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4226
4227         * TextControl.cs: Draw text in gray if control is disabled
4228
4229 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4230
4231         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4232           make sure it's always visible. Fixes #76680.
4233
4234 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4235
4236         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4237
4238 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4239
4240         * PageSetupDialog.cs: Added.
4241         * PrintDialog.cs: Attributes.
4242         * PrintPreviewControl.cs: Updates.
4243         * PrintPreviewDialog.cs: Updates.
4244         
4245 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4246
4247         * Control.cs: Undid my selection check fix, since it's not needed
4248         * TextBoxBase.cs:
4249           - Now considering the presence of hscroll/vscroll when sizing
4250             vscroll/hscroll respectively. Fixed bug #77077
4251           - Added Left/Up/Down/Right to IsInputKey list to prevent
4252             ContainerControl from stealing them. This fixes what I broke
4253             with my last checkin.
4254
4255 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4256
4257         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4258           I finally understand how the property can be set without a setter :-)
4259
4260 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4261
4262         * Application.cs:
4263           - Switched RunLoop to use static Message.Create to create a 
4264             Message object
4265           - Added PreProcessMessage call in runloop for keyboard events; this
4266             is part of the fix for #77219, I overlooked this originally in the
4267             MSDN doc for PreProcessMessage
4268         * Control.cs:
4269           - Removed call to PreProcessMessage from handling of keyboard 
4270             messages; it's supposed to be done in the message pump
4271           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4272             per MSDN documentation.
4273           - IsInputChar: All chars are input chars by default; removed the 
4274             parent calling chain, MS does not document that
4275           - PreProcessMessage: If IsInputChar is true, we want to return false
4276             to allow dispatching of the message
4277           - When selecting the next control, now also check that we're not
4278             selecting ourselves again and therefore return a false positive.
4279         * TextBoxBase.cs:
4280           - Tried to match return values for IsInputKey and ProcessDialogKey
4281             to what MS returns; moved processing of our special keys outside
4282             ProcessDialogKey since MS does not seem to return true on those.
4283           - Moved code that previously was in ProcessDialogKey into new private
4284             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4285           - Reworked handling of WM_CHAR to not have to duplicate code from
4286             Control.cs anymore, instead we simply call down to base.
4287            
4288 2006-01-12  Jackson Harper  <jackson@ximian.com>
4289
4290         * ComboBox.cs: We always need to refresh the text area when
4291         EndUpdate is called. Fixes the combobox in the file dialog.
4292         * Control.cs: Don't create the creator_thread until the controls
4293         handle is created.  Also in InvokeRequired we check if the
4294         creator_thread is null. This gives the effect of InvokeRequired
4295         returning true if the controls handle is not created yet, and
4296         matches MS.
4297
4298 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4299
4300         * XplatUI.cs:
4301           - Added StartLoop() driver method. This is used to allow drivers to
4302             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4303             loop for a particular thread
4304           - Added EndLoop() driver method. This is called once the message
4305             pump for the thread is shut down
4306           - Added SupportsTransparency method to allow the driver to indicate
4307             opacity support for windows
4308         * Form.cs:
4309           - Removed TODO attribute, completed AllowTransparency property
4310           - Added documented logic to Opacity
4311         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4312           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4313           versions of CompatibleTextRendering
4314         * X11Structs.cs: Added opacity atom to our atom enumeration
4315         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4316           of a form might be set before it's reparented by the WM, and we need
4317           the opacity value without calling up to Form)
4318         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4319           SupportsTransparency() driver methods
4320         * Application.cs: Now calling StartLoop and EndLoop driver methods
4321         * XplatUIX11.cs:
4322           - Added opacity atom registration
4323           - Added StartLoop()/EndLoop() methods. They're empty right now but
4324             will need to get implemented when we switch to a per-thread queue
4325           - Implemented SupportsTransparency() method
4326           - Implemented SetWindowTransparency() method
4327           - Added support for setting the opacity value when a window is
4328             reparented (since the opacity needs to be set on the WM frame)
4329         * XplatUIOSX.cs, XplatUIWin32.cs:
4330           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4331
4332 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4333
4334         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4335
4336 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4337
4338         * FileDialog.cs: Added ToolTip for MWFFileView
4339         * MimeIcon.cs: Rewrote GnomeHandler.
4340           - Get currently used gnome icon theme from
4341             ($HOME)/.gconf/%gconf-tree.xml
4342           - Make use of inherited icon themes
4343           - Support SVG icon themes like Tango via librsvg
4344
4345 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4346
4347         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4348         builds. 
4349         
4350         * Application.cs: Move the use_compatible_text_rendering outside
4351         the NET_2_0 define.  If we ever need to use the
4352         use_compatible_text_rendering on the individual controls they will
4353         access the variable from the common shared code paths.
4354
4355 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4356
4357         * XplatUI.cs:
4358           - Added more granular debug options
4359           - Added method to print both window text and id
4360           - Switched debug output to use new Window() debug method
4361           - Added IsEnabled() driver method
4362           - Added EnableWindow() driver method
4363         * Form.cs:
4364           - Removed end_modal; no longer needed, new loop handles termination
4365             via 'closing' variable
4366           - If form is modal, setting DialogResult will now initiate loop
4367             termination via 'closing' variable
4368           - Added support for is_enabled/WS_DISABLED to CreateParams
4369           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4370             does all the work
4371           - Removed code that's now in RunLoop from ShowDialog()
4372           - Added various documented sanity checks to ShowDialog()
4373           - Added handling of WM_DESTROY message; we set 'closing' on getting
4374             the message to indicate the message pump to terminate
4375           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4376             send by the Application.ExitThread method. (We send the message
4377             to destroy the window after all other events have been
4378             processed through the queue, instead of destroying the handle 
4379             directly)
4380           - Moved code from Close() method to WM_CLOSE handler; added logic
4381             to only send close-related events if the form is not displayed
4382             modal
4383         * Splitter.cs (..ctor): Fixed typo in resource name
4384         * Control.cs:
4385           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4386             brush now
4387           - set_Cursor: Now only setting calling into XplatUI if the handle for
4388             the control is already created; this avoids implict handle creation
4389             or crashes if it's not created
4390           - set_Enabled: Now setting the enabled state via the new driver method
4391             instead of just tracking it
4392           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4393           - CreateControl: Reordered event firing and method calls to more
4394             closely fire events in the order MS does. Now setting the
4395             enabled state in the driver when creating the control.
4396           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4397             match MS order
4398         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4399           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4400         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4401         * Hwnd.cs:
4402           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4403           - Added EnabledHwnd property to easily allow a driver to find the
4404             handle of the first enabled window in the parent chain (this is
4405             used by drivers to pass up input events of disabled windows)
4406         * XplatUIDriver.cs: Added IsEnabled() method
4407         * Application.cs:
4408           - Removed crude and obsolete exiting tracking variable
4409           - Removed internal ModalRun(); replaced by RunLoop()
4410           - Implemented private CloseForms() method to allow closing all 
4411             windows owned by a particular (or all) threads
4412           - Exit() now properly closes all windows without forcing the message
4413             pump to quit
4414           - Removed obsolete InternalExit() method
4415           - Changed Run() methods to use new RunLoop() message pump
4416           - Implemented new RunLoop() method for both modal and non-modal forms
4417         * CommonDialog.cs:
4418           - get_CreateParams: Added setting of WS_DISABLED
4419           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4420             invoked via Form.ShowDialog()
4421         * NativeWindow.cs: We don't remove the window from the collection when
4422           the handle is destroyed; there might still be messages for it in the
4423           queue (mainly the resulting WM_DESTROY); instead it will be removed
4424           when Control calls InvalidateHandle in the WM_DESTROY handler
4425         * XplatUIX11.cs:
4426           - CreateWindow: Added logic to handle the WS_DISABLED window style
4427           - EnableWindow: Implemented based on Hwnd.Enabled
4428           - GetMessage: Reset PostQuitState so the method can be called again
4429           - Implemented support for disabled windows (passing messages to the
4430             first enabled parent) in handling all input messages
4431           - Added optimizations for handling Expose events
4432           - Implemeted new driver method IsEnabled()
4433           - Now always resetting paint pending tracking vars when we start paint
4434           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4435         * XplatUIOSX.cs: Added IsEnabled method stub
4436         * XplatUIWin32.cs: Implemented new IsEnabled() method
4437
4438 2006-01-11  Jackson Harper  <jackson@ximian.com>
4439
4440         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4441         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4442         variables a little.
4443         * ColorDialog.cs: Clear out the old form before adding the new
4444         panel.  
4445
4446 2006-01-11  Jackson Harper  <jackson@ximian.com>
4447
4448         * X11Dnd.cs: Make sure to add all the text formats when adding
4449         strings to the data object.
4450         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4451         do some redrawing too.  Also change the UpdateNode to an
4452         UpdateBelow so the newly added node gets painted.
4453         
4454 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4455
4456         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4457         LinkLabel.cs, PropertyGrid.cs: Implement the
4458         UseCompatibleTextRendering property for 2.x
4459
4460         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4461
4462 2006-01-11  Jackson Harper  <jackson@ximian.com>
4463
4464         * TreeView.cs: Use the property for setting the selected node so
4465         the correct events get raised.
4466         * TreeNode.cs: Update the tree when the fore/back colours of a
4467         node are set.
4468
4469 2006-01-10  Jackson Harper  <jackson@ximian.com>
4470
4471         * TreeView.cs: Allow setting SelectedNode to null.
4472
4473 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4474
4475         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4476
4477 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4478
4479         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4480
4481 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4482
4483         * PrintDialog.cs: Added attributes and set default property values.
4484
4485 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4486
4487         * PrintControllerWithStatusDialog.cs: 
4488         Added PrintControllerWithStatusDialog.
4489
4490 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4491
4492         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4493         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4494
4495 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4496
4497         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4498
4499 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4500
4501         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4502         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4503
4504 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4505
4506         * MimeIcon.cs: Added internal class SVGUtil.
4507
4508 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4509
4510         * FileDialog.cs: Don't crash if there are two files with the
4511           same name but different locations.
4512
4513 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4514
4515         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4516         dates across multiple month grids. Used to not highlight entire 
4517         month, but does now.
4518         
4519 2006-01-06  Jackson Harper  <jackson@ximian.com>
4520
4521         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4522         message loop. Change timer intervals to numbers that seem more
4523         natural.
4524
4525 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4526
4527         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4528           object for location info since screen object is now implemented.
4529
4530 2006-01-05  Jackson Harper  <jackson@ximian.com>
4531
4532         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4533         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4534         AsyncMethodResult, this is because we ALWAYS want the
4535         ManualResetEvent to get set.
4536         * Control.cs: When disposing use an async invoke to call shutdown
4537         code, so that thigns don't block on the finalizer thread.  Also
4538         check if we even have a message loop before trying to send
4539         messages, if we don't then don't bother sending messages.
4540         - No more weak references for async methods
4541         * XplatUIDriver.cs: No more weak references for async methods.
4542
4543 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4544
4545         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4546           returns two FontFamily with the same name
4547
4548 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4549
4550         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4551           drawing disabled text. Instead using the ColorGrayText color
4552
4553 2006-01-04  Jackson Harper  <jackson@ximian.com>
4554
4555         * TreeNode.cs: redraw the node when its image index is changed.
4556
4557 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4558
4559         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4560           time I checked there are no others like it.
4561
4562 2006-01-04  Jackson Harper  <jackson@ximian.com>
4563
4564         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4565         this gives the behavoir I was looking for.
4566         * Control.cs: Special case Invoking EventHandlers, this matches MS
4567         and fixes part of bug #76326.
4568
4569 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4570
4571         * ThemeClearlooks.cs, FileDialog.cs:
4572           - Reflect the latest Theme class changes
4573           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4574             with DateTime
4575             
4576 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4577
4578         * Theme.cs: Cache UI resource images and resize them if needed
4579
4580 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4581
4582         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4583           is called. This fixes the crash in Nexxia when setting the font
4584           attributes in the chat. [However, RTF needs a look-over to make sure
4585           that all SelectionXXX methods handle the special case that selection
4586           is empty and therefore the change must be applied to all text starting
4587           at the cursor/selection start]
4588
4589 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4590
4591         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4592           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4593         * X11Keyboard.cs: Switched to new way of calling PostMessage
4594
4595 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4596
4597         * Theme.cs: Added theme interface for images to allow the theme to
4598           control what images are used for things like FileDialog, MessageBox
4599           icons, etc.
4600         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4601
4602 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4603
4604         * FileDialog.cs:
4605           - Removed some dead code
4606           - Opening a recently used file does work now
4607           - Small UI enhancements
4608           - Refactoring
4609
4610 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4611
4612         * FileDialog.cs: Forgot too add __MonoCS__
4613
4614 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4615
4616         * FileDialog.cs: We are able to read recently used files now let's
4617           go on and write them.
4618
4619 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4620
4621         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4622           button
4623         * MimeIcon.cs: Do a check for the top level media type also
4624
4625 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4626
4627         * ThemeClearlooks.cs:
4628           - Added CPDrawStringDisabled
4629           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4630             some chars if the text doesn't fit into text_rect
4631           - DrawListViewItem: If View = View.LargeIcon center the image;
4632             rewrote the drawing of ListViewItem.Text if View = 
4633             View.LargeIcon
4634
4635 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4636
4637         * MimeIcon.cs: Use default KDE icon theme if there is no
4638           "48x48" directory for the current icon theme, fixes #77114
4639         * Mime.cs: Disable not working and actually not used code. 
4640         * ThemeWin32Classic.cs:
4641           - Replace "new SolidBrush" in GetControlBackBrush and
4642             GetControlForeBrush with ResPool.GetSolidBrush
4643           - Changed DrawListViewItem from private to protected virtual
4644         * FileDialog.cs:
4645           - Added form.MaximizeBox = true
4646           - Don't throw an exception if there is a broken symbolic link
4647
4648 2005-12-23  Jackson Harper  <jackson@ximian.com>
4649
4650         * TabControl.cs: Give the panels focus, keyboard navigation is
4651         fixed so this works correctly now.
4652         - We need these key events also.
4653         * ToolBar.cs: Remove some of the poor mans double buffering.
4654         
4655 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4656
4657         * ComboBox.cs: The internal TextBox now returns the focus.
4658
4659 2005-12-23  Jackson Harper  <jackson@ximian.com>
4660
4661         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4662
4663 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4664
4665         * Control.cs: Removed debug code
4666         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4667           implicit children
4668
4669 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4670
4671         * Control.cs: When creating the control, update the Z-order after
4672           all it's children are created, too. (Fixes nexxia not showing
4673           picturebox bug)
4674
4675 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4676
4677         * Control.cs: Do not update the anchoring distances if layout is
4678           suspended, instead do it once layout is resumed
4679
4680 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4681
4682         * Control.cs: 
4683           - After many hours of debugging, for both Jackson and
4684             myself, it turns out that it helps to set the parent of a control
4685             if you want to actually see it onscreen. In the spirit of that
4686             discovery, we're now setting the parent of the control and
4687             it's children when the control's handle is created. This fix
4688             will make Lutz Roeder's Reflector run happily. 
4689           - now just creating the handle instead of the whole control when
4690             getting a graphics context for the control.
4691
4692 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4693
4694         * ScrollableControl.cs: When calculating the canvas, don't consider
4695           the scrollbar widths. Instead, predict if horizontal scrollbar
4696           will affect canvas when deciding on vertical display and vice versa.
4697
4698 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4699
4700         * RichTextBox.cs: Set default RTF font for documents that don't
4701           have a font table (Fixes #77076)
4702
4703 2005-12-22  Jackson Harper  <jackson@ximian.com>
4704
4705         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4706         clipboard. This prevents a NullRef in that case.
4707         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4708         clipboard. PRIMARY is for the currently selected text only. (We
4709         should implement PRIMARY at some point.
4710
4711 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4712
4713         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4714           a Unicode function with a structure that was defined in Ansi way.
4715           This fixes #76942.
4716
4717 2005-12-21  Jackson Harper  <jackson@ximian.com>
4718
4719         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4720         on. Because thats how it rolls. (and this avoids it using ambient
4721         colours).
4722         * ThemeWin32Classic.cs: Use the proper back color for filling.
4723         * Menu.cs: Use the system menu bar color for drawing menu
4724         bars. Using the window back color will bring ambient colours into
4725         the picture.
4726
4727 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4728
4729         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4730           Bitmaps were created and not disposed.
4731
4732 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4733
4734         * Control.cs (CreateControl): Don't do anything if the control is
4735           already created, otherwise we'd fire the OnCreated event more than
4736           once
4737
4738 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4739
4740         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4741           will always match. Instead return -1. Fixes #76464.
4742
4743 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4744
4745         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4746           neither the beginning nor the end of the line (Fixes bug #76479)
4747
4748 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4749
4750         * Control.cs:
4751           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4752             where handle is invalid
4753           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4754             instead of slower linear search
4755         * NativeWindow.cs: Don't remove the window from the hashtable until
4756           after the driver has destroyed it (since the driver might use
4757           Control.FromHandle to lookup the control object
4758         * Hwnd.cs: Added DestroyPending property to track if a window is 
4759           already destroyed as far as the driver is concerned and only hasn't
4760           yet notified the control
4761         * XplatUIX11.cs:
4762           - Activate(): Check if the window is still valid before using the 
4763             handle
4764           - Implemented DestroyChildWindow() method to mark child windows as
4765             destroyed when a window is destroyed. This prevents situations 
4766             where we might call an X method based on queued events for a
4767             window that already has been destroyed but we haven't yet pulled
4768             the destroy method from the queue.
4769           - Added a call to the new DestroyChildWindow() method to the drivers
4770             DestroyWindow code. Also now marking the destroyed window itself
4771             as pending
4772
4773 2005-12-20  Jackson Harper  <jackson@ximian.com>
4774
4775         * StatusBar.cs:
4776         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4777         anymore. Just do them when needed, also track the rects of panels
4778         so that we can optimize refreshing more in the future.
4779
4780 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4781
4782         * ColorDialog.cs: Fixed focus drawing in small color controls
4783
4784 2005-12-19  Jackson Harper  <jackson@ximian.com>
4785
4786         * InternalWindowManager.cs:
4787         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4788         moving windows works properly.
4789
4790 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4791
4792         * Control.cs: 
4793           - Removed call to InitLayout() from SetBoundsCore(); doc says
4794             it's only called when a control is added to a container
4795           - Split InitLayout logic, moved to separate UpdateDistances() method
4796             since we need to perform those calculations more often than just
4797             when adding the control to a container. (Needed to fix #77022)
4798           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4799           - Reduced the OnBindingContextChanged events count, don't send them
4800             unless the control is created, we still aren't totally matching
4801             MS, but I can't quite figure out some of their rules
4802
4803 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4804
4805         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4806           stripes
4807
4808 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4809
4810         * ThemeClearlooks.cs:
4811           - Updated ProgressBar drawing
4812           - Corrected drawing of ScrollBars and scroll buttons
4813           - Some temporary fixes for minor pixel artefacts
4814
4815 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4816
4817         * Control.cs:
4818           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4819             cause events to be sent in the same order as MS does.
4820           - Added ChangeParent() method to trigger various OnXXXChanged events
4821             that need to be fired when a parent changes (This is a reworking
4822             of the patch from r54254, with the X11 errors fixed)
4823           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4824             since on MS we get OnLayoutChanged events when calling Clear()
4825           - Changed Enabled property to consider parent state as well, if a
4826             parent is not enabled, the control will not be either
4827           - Changed Parent property to simply call Controls.Add() since that
4828             now does all the work required, this way we avoid code duplication
4829           - Threw in a few OnBindingsContextChanged calls to try and match
4830             when MS sends them. We seem to send a few too many, though.
4831           - Added call to CreateControl when adding the control to a parent.
4832             We were never calling CreateControl. Still needs some work, in
4833             some places we treat HandleCreated and ControlCreated as equal, 
4834             which is wrong
4835           - Removed obsolete commented out code from UpdateZOrder()
4836
4837 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4838
4839         * ThemeClearlooks.cs: Updated TrackBar drawing.
4840
4841 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4842
4843         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4844
4845 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4846
4847         * FileDialog.cs: Add the Help button and the open readonly
4848           checkbox only if needed
4849
4850 2005-12-16  Jackson Harper  <jackson@ximian.com>
4851
4852         * Control.cs: Make sure we have an active menu before trying to
4853         process commands on it. Prevents menu-less forms from crashing
4854         when Alt is pressed.
4855         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4856         Dieter Bremes.
4857         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4858         2.0 build.
4859
4860 2005-12-16  Jackson Harper  <jackson@ximian.com>
4861
4862         * InternalWindowManager.cs: Don't translate tool windows screen
4863         coordinates. This fixes windows 'bouncing' around when being moved.
4864
4865 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4866
4867         * TextBoxBase.cs:
4868           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4869             not quite MS compatible, MS uses that number only for single line
4870             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4871             the limit at 2GB)
4872           - Now enforcing the MaxLength limit when entering characters
4873           - Added argument to internal Paste() method to track if it's called
4874             from programatically or via keyboard, since keyboard driven pastes
4875             need to enforce max-length
4876           - Added logic to Paste to only paste as many chars as MaxLength 
4877             allows
4878         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4879         * TextControl.cs:
4880           - Added Length property to return number of characters in document
4881           - Added private CharCount property which only tracks actual chars
4882             in the document (no linefeeds) and fires event when CharCount
4883             changes
4884           - Added tracking of character count to all methods that alter it
4885           - Added LengthChanged event to allow applications to subscribe
4886             to any changes to the document
4887
4888 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4889
4890         * TextBox.cs: 
4891           - Removed local password_char field (moved to TextBoxBase)
4892           - Now setting the document's password var when password is
4893             set
4894         * TextBoxBase.cs:
4895           - Added password_char field (needed here so MultiLine can
4896             access it)
4897           - Added logic to MultiLine property setter to set the document's
4898             variable when password display is allowed
4899           - Removed debug code and made some debug code conditional
4900         * TextControl.cs:
4901           - Added RecalculatePasswordLine() method to handle special password
4902             char only lines
4903           - Added PasswordChar property, also added related tracking vars
4904           - Draw() method now uses local text var for grabbing text to draw,
4905             this var is set to line.text unless we're doing password display,
4906             then it is set to the pre-generated all-password-chars line
4907           - Added calling RecalculatePasswordLine() method for password lines
4908
4909 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4910
4911         * Hwnd.cs: 
4912           - Added Reparented property to allow tracking of Window Manager
4913             reparenting actions (which affect X/Y calculations of toplevel 
4914             windows)
4915           - Made ToString() print window handles in hex
4916         * XplatUIX11.cs:
4917           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4918             determine if X/Y needs offsetting
4919           - AddConfigureNotify(): Fixed offset calculations
4920           - Now adds ReparentNotify messages into the queue
4921           - Now processes ReparentNotify messages and causes a 
4922             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4923             is reparented (as most likely it's X/Y coordinates are changed
4924             due to that)
4925
4926 2005-12-14  Jackson Harper  <jackson@ximian.com>
4927
4928         * XplatUIX11.cs: Tool windows still need to respek focus.
4929
4930 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4931
4932         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4933           have a working release
4934
4935 2005-12-13  Jackson Harper  <jackson@ximian.com>
4936
4937         * Form.cs: Update styles after setting the border style regardless
4938         of whether or not the window is using a window manager.
4939
4940 2005-12-13  Jackson Harper  <jackson@ximian.com>
4941
4942         * Form.cs: We now hook into an internal window manager instead of just an
4943         MDI subsystem, this is so we can have properly behaving tool windows.
4944         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4945         * InternalWindowManager.cs: New internal class that acts as a
4946         window manager for tool windows and as a base for mdi windows.
4947         * MdiWindowManager.cs: New class that acts as a window manager for
4948         mdi windows.
4949
4950 2005-12-12  Jackson Harper  <jackson@ximian.com>
4951
4952         * Control.cs: Updates so we match behavoir for for implicit
4953         controls. Fixes explosions in MDI.
4954
4955 2005-12-12  Jackson Harper  <jackson@ximian.com>
4956
4957         * Control.cs: Implement Invalidate (Region).
4958
4959 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4960
4961         * Control.cs: 
4962           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4963             the same events as MS does. MS fires events for each property 
4964             except, for unknown reasons, Cursor, when the control is reparented. 
4965             I can't seem to totally match add/remove since MS also fires some 
4966             VisibleChanged events, which makes no sense. Consolidated the
4967             parenting code into a separate method so it can be called from
4968             both Add and Remove. set_Parent no longer needs any special logic
4969             as it calls the parent's add method which implicitly fires
4970             all events
4971           - Removed some obsolete code and debug output
4972           - Enabled state is inherited from parents, if this is enabled
4973
4974 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4975
4976         * Form.cs: Removed commented out code
4977
4978 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4979
4980         * Control.cs:
4981           - Added internal version of Invoke, with additional argument 
4982             indicating if we're calling it from a Dispose() handler. That
4983             way we can avoid BeginInvoke throwing an exception if we're
4984             calling for an already destroyed window.
4985           - Added a dispose argument to BeginInvokeInternal, and made the
4986             check if a valid window handle chain exists conditional on
4987             it not being a dispose call
4988           - Removed code in DestroyHandle to destroy our children. Since we
4989             now handle the WM_DESTROY message we will catch all our children
4990             being destroyed.
4991           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4992         * Form.cs:
4993           - Added a field to track the application context of the form.
4994           - No need to set closing variable as response to WM_CLOSE, instead
4995             we destroy the window. We also call PostQuitMessage if the form
4996             has an application context (which makes it the main app form,
4997             which, when closed terminates the app)
4998         * XplatUI.cs:
4999           - Dropped Exit() method, it's naming was confusing
5000           - Added PostQuitMessage() which causes GetMessage to return false
5001             once the message queue is empty
5002         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5003           PostQuitMessage()
5004         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5005           no longer a valid XplatUI method, but left it in since it's used
5006           internally. Added empty PostQuitMessage() method.
5007         * MenuAPI.cs: Replaced call to Exit() with call to
5008           PostQuitMessage, even though this is probably no longer needed.
5009         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5010         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5011         * Application.cs:
5012           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5013           - Removed old debug code that would call XplatUI for exception
5014             display, enabled standard exception handling (Still not enabled
5015             though, until NativeWindow's ExternalExceptionHandler define
5016             is removed
5017         * NativeWindow.cs:
5018           - Added internal method to allow control to update NativeWindow
5019             after a window has been destroyed
5020           - Added handling of already destroyed windows when calling i
5021             DestroyWindow
5022           - Added removal of handle from list on ReleaseHandle
5023         * XplatUIX11.cs:
5024           - Dropped GetMessageResult var and related code
5025           - Added PostQuitState to field to track if PostQuitMessage has been
5026             called
5027           - Dropped Exit() method
5028           - Added PostQuitMessage() method
5029           - GetMessage now will return false if PostQuitState is set and no
5030             more messages are in the queue.
5031           - Expose handler will no longer generate WM_PAINT messages if we are
5032             in PostQuitState since it's very likely any windows have already
5033             been destroyed, and since Hwnd won't get updated until we have
5034             processed the DestroyNotify we'd be causing X errors.
5035         
5036 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5037
5038         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5039           Thanks to Mike for pointing out the err of my ways.
5040
5041 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5042
5043         * Control.cs(PreProcessMessage): Moved menu handling back, but
5044           after all other key handling, to match MS (who handles Menu in
5045           DefWndProc)
5046         * Menu.cs (WndProc): Removed my brainfart
5047
5048 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5049
5050         * Control.cs(PreProcessMessage): Removed special menu handling 
5051         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5052
5053 2005-12-07  Mike Kestner  <mkestner@novell.com>
5054
5055         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5056         state according in tracker.
5057         * Menu.cs : promote tracker field to base class and provide a tracker
5058         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5059         has a tracker. Unparent items that are removed from the collection.
5060         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5061         * Theme*.cs: add always_show_hotkeys field to support configurability
5062         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5063         pressed.
5064
5065 2005-12-07  Jackson Harper  <jackson@ximian.com>
5066
5067         * MdiChildContext.cs: Use Control.ResetCursor.
5068         * Control.cs: ResetCursor needs to set the property so that the
5069         correct XplatUI call gets made.
5070
5071 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5072
5073         * Control.cs: More fixes to make our key events match MS. We
5074           were not setting the modifier state on KeyData, and we were
5075           not generating any events when Alt was pressed with a key
5076           since handling of WM_SYSxxx was missing for the OnKey methods.
5077
5078 2005-12-07  Jackson Harper  <jackson@ximian.com>
5079
5080         * MdiChildContext.cs: reenable the sizing code.
5081         - When the mouse leaves a window reset its cursor.
5082
5083 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5084
5085         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5086
5087 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5088
5089         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5090           widths of Fixed3D borders
5091
5092 2005-12-07  Jackson Harper  <jackson@ximian.com>
5093
5094         * MdiClient.cs: Fix warnings. Earn Mike's love.
5095
5096 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5097
5098         * ThemeClearlooks.cs:
5099           - Adjusted mouse over button color
5100           - Added first parts of CheckBox drawing
5101           - Added correct color for selected text background
5102           - Fixed ComboBox drawing
5103           - Added CPDrawBorder3D and CPDrawBorder
5104
5105 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5106
5107         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5108
5109 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5110
5111         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5112           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5113           alert users via sound. We could add an enum arg with different
5114           types of alerts in the future
5115
5116 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5117
5118         * Control.cs: Fix behaviour problems pointed out by Mike
5119
5120 2005-12-05  Mike Kestner  <mkestner@novell.com>
5121
5122         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5123         prop setters.  Calls parent.Refresh for now, but could be maybe be
5124         optimized with an internal method on StatusBar at some point.
5125         [Fixes #76513]
5126
5127 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5128
5129         * RichTextBox.cs: Implemented get_SelectionColor
5130
5131 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5132
5133         * ThemeClearlooks.cs:
5134           - Removed dead code
5135           - Draw black button border only if button is Form.AcceptButton
5136           - Draw correct button color for pressed RadioButton if the mouse 
5137             has entered the button
5138           - Updated ProgressBar drawing!
5139           - Updated CPDrawSizeGrip drawing
5140           - Updated StatusBarPanel drawing
5141
5142 2005-12-05  Mike Kestner  <mkestner@novell.com>
5143
5144         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5145         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5146
5147 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5148
5149         * ThemeClearlooks.cs: Initial check-in, activate with
5150           export MONO_THEME=clearlooks
5151         * ThemeEngine.cs: Added ThemeClearlooks
5152
5153 2005-12-03  Mike Kestner  <mkestner@novell.com>
5154
5155         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5156         [Fixes #76897]
5157
5158 2005-12-02  Jackson Harper  <jackson@ximian.com>
5159
5160         * Form.cs: If the child form has no menu the default main menu is
5161         used as the active menu.
5162
5163 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5164
5165         * ListBox.cs: Check if any items exist before trying to resolve 
5166           coordinates into items
5167
5168 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5169
5170         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5171           as the second color for the background hatch
5172
5173 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5174
5175         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5176         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5177           sure that what we pass to FormatText is always 1-based. Fixes #76885
5178
5179 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5180
5181         * NumericUpDown.cs (EndInit): When we are done initializing,
5182         reflect any updates on the UI.
5183
5184 2005-12-02  Jackson Harper  <jackson@ximian.com>
5185
5186         * ImplicitHScrollBar.cs:
5187         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5188         their container controls.
5189         * TreeView.cs: Use the new implicit scrollbars.
5190
5191 2005-12-02  Jackson Harper  <jackson@ximian.com>
5192
5193         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5194         can play with it.
5195         * TreeNodeCollection.cs: If we remove the topnode we need to
5196         update topnode to the next node in line.
5197         - When clearing nodes go through the same process as removing
5198         them, so they get depareneted and checked if they are top node.
5199
5200 2005-12-01  Jackson Harper  <jackson@ximian.com>
5201
5202         * TreeView.cs: When imagelists are used the image area is
5203         selectable as well as the text.
5204         - If there are no selected nodes select the first one.
5205         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5206         so don't do it more then we need to.
5207
5208 2005-12-01  Jackson Harper  <jackson@ximian.com>
5209
5210         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5211         that arrows can be scaled.
5212
5213 2005-12-01  Jackson Harper  <jackson@ximian.com>
5214
5215         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5216         fail. Patch by Dieter Bremes
5217
5218 2005-11-30  Jackson Harper  <jackson@ximian.com>
5219
5220         * Form.cs: Property is 2.0 only
5221         * PrintDialog.cs: Signature fix.
5222
5223 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5224
5225         * TextControl.cs: 
5226           - No longer artificially moves text 2 pixels down (now that we have
5227             borders this is no longer needed)
5228           - Added calcs for left, hanging and right indent
5229
5230 2005-11-23  Mike Kestner  <mkestner@novell.com>
5231
5232         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5233
5234 2005-11-30  Jackson Harper  <jackson@ximian.com>
5235
5236         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5237         get cloned as part of CloneMenu ().
5238         * Menu.cs: Make sure the parent of the items get set correctly
5239         when they are added.  And the owners are notified of the changes.
5240         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5241         we can change the menu being displayed/handled by the form without
5242         changing the menu assosciated with the form.
5243         - Don't let Mdi children draw/handle menus.
5244         
5245 2005-11-30  Jackson Harper  <jackson@ximian.com>
5246
5247         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5248         a MenuChanged event. Just to make the API a little more
5249         consistent.
5250         * MainMenu.cs:
5251         * MenuItem.cs: Use the new OnMenuChanged
5252         * MdiChildContext.cs: Handle menu merging.
5253         * Form.cs: Implement MergedMenu.
5254         
5255 2005-11-30  Jackson Harper  <jackson@ximian.com>
5256
5257         * Menu.cs: We were misusing Add. Add goes behind the specified
5258         index according to the docs, and does not replace the specified
5259         index. So I added an Insert method.
5260
5261 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5262
5263         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5264           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5265           is for Jackson
5266         * RichTextBox.cs: Added calls to base for DnD events
5267
5268 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5269
5270         * TextControl.cs:
5271           - Fixed drag-selection related crash; style fixes
5272           - Implemented undo class
5273             o Implemented method to capture document state for specified
5274               range in document tree
5275             o Implemented method to restore captured document state
5276             o Implemented cursor tracking
5277             o Implemented basic undo stack
5278           - Added undo cursor tracking to methods altering cursor location
5279           - Added undo tracking to selection deletion (still missing
5280             other text-altering hookups)
5281         * RichTextBox.cs:
5282           - Added SelectionLength property
5283           - Implemented CanPaste()
5284           - Implemented Paste()
5285           - Added missing protected methods
5286           - Fixed RTF->Document conversion; now uses font index 0 and color 
5287             index 0 as the default font for the parsed text
5288           - Fixed RTF<->Document font size translation
5289           - Fixed RTF generation, now properly handles cross-tag boundaries
5290             for single line selection
5291           - No longer always appends blank line to generated RTF
5292           - Removed TODOs
5293           - Added missing attributes
5294           - Hooked up undo-related methods
5295         * TextBoxBase.cs:
5296           - Implemented Copy()
5297           - Implemented Paste()
5298           - Implemented Cut()
5299           - Fixed caret mis-behaviour on backspace across line-boundaries
5300
5301 2005-11-29  Jackson Harper  <jackson@ximian.com>
5302
5303         * MdiClient.cs: Add a method for activating mdi children. Very
5304         basic right now. I imagine someday it might need more girth.
5305         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5306         children windows names are added to the menu item.
5307         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5308         mdilist. This happens regardless of whether or not there are any
5309         mdi windows to see in the list, and according to my tests happens
5310         before the items are even added. Also happens if there isn't even
5311         an mdi client to get windows from.
5312
5313 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5314
5315         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5316         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5317
5318 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5319
5320         * DataGridTableStyle.cs:
5321           - Create always the styles for the missing columns even if they are
5322             provided by the user (not default table style)
5323         * DataGrid.cs:
5324           - Fixes bug 76770
5325           - Fixes SetDataBinding (always re-attach source)
5326           - Fixes SetNewDataSource (only clear styles if they are not for 
5327             this source)
5328          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5329             and remove properly
5330
5331 2005-11-29  Jackson Harper  <jackson@ximian.com>
5332
5333         * FileDialog.cs: Implement missing bits, remove some dead
5334         code.
5335         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5336         creation of the panel so that the options set on the dialog are
5337         seen when the panel is created.
5338         * TreeView.cs: raise a click when items are clicked.
5339         
5340 2005-11-29  Jackson Harper  <jackson@ximian.com>
5341
5342         * MdiClient.cs: Pass some signature methods through to base.
5343
5344 2005-11-28  Jackson Harper  <jackson@ximian.com>
5345
5346         * ListView.cs: Raise the click event when items are clicked.
5347
5348 2005-11-28  Jackson Harper  <jackson@ximian.com>
5349
5350         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5351         a nullref.
5352
5353 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5354
5355         * ThemeNice.cs: - Removed 1 pixel bitmaps
5356           - Use SmoothingMode.AntiAlias where it makes sense
5357             (ScrollButton arrow for example)
5358           - Enhanced Button focus drawing
5359           - Fixed ComboBox drawing (no artefacts anymore, focus
5360             rectangle is back again, reduced size of ComboButton, etc.)
5361           - Fixed RadioButton focus drawing for Appearence.Button
5362           - Slight ScrollButton redesign
5363           - Some LinearGradientBrush size fixes
5364           - GroupBoxes have now rounded edges
5365           - Fixed StatusBar drawing
5366
5367 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5368
5369         * ThemeNice.cs: - Remove dead code
5370           - use correct background colors for menus, etc.
5371           - Fake pixel drawing with 1 pixel bitmaps
5372
5373 2005-11-24  Jackson Harper  <jackson@ximian.com>
5374
5375         * MdiClient.cs: Size the scrollbars when resizing the window.
5376         - Resize the maximized windows when the client is resized
5377         * Form.cs: Make the child context available
5378         
5379 2005-11-23  Jackson Harper  <jackson@ximian.com>
5380
5381         * MdiChildContext.cs: Don't size windows if they are maximized.
5382
5383 2005-11-23  Mike Kestner  <mkestner@novell.com>
5384
5385         * ContextMenu.cs: use MenuTracker.
5386         * Control.cs: remove menu handle usage.
5387         * Form.cs: remove menu handle usage.
5388         * Hwnd.cs: remove menu handle usage.
5389         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5390         motion and clicks to the new Tracker handlers.
5391         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5392         and handle usage.
5393         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5394         Killed the MENU and MENUITEM data types and associated collections
5395         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5396         MenuTracker class that exposes the leftovers from the old MenuAPI
5397         static methods. Restructured Capture handling so that only one grab is
5398         done for the entire menu hierarchy instead of handing off grabs to
5399         submenus. Tracker now has an invisible control to Capture when active.
5400         * MenuItem.cs: add sizing accessors, kill Create
5401         and handle usage.
5402         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5403         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5404         MENU(ITEM). remove menu handle usage, use Menu directly.
5405         * XplatUIDriver.cs: remove menu handle usage.
5406         * XplatUIOSX.cs: remove menu handle usage.
5407         * XplatUIWin32.cs: remove menu handle usage.
5408         * XplatUIX11.cs: remove menu handle usage.
5409
5410 2005-11-22  Jackson Harper  <jackson@ximian.com>
5411
5412         * Hwnd.cs: Don't compute the menu size for
5413         DefaultClientRectangle.
5414         - Reenable menu sizes being computed for GetClienRectangle.
5415         * Form.cs: Remove comment of trechery
5416         
5417 2005-11-22  Jackson Harper  <jackson@ximian.com>
5418
5419         * Hwnd.cs: The adjustments for the menu bar are made when it is
5420         attached to the form.
5421
5422 2005-11-19  Jackson Harper  <jackson@ximian.com>
5423
5424         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5425         (just like on windows).
5426
5427 2005-11-19  Jackson Harper  <jackson@ximian.com>
5428
5429         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5430         use real buttons anymore because they are in non client area. The
5431         one TODO here is that I need to somehow invalidate a section of
5432         the non client area.
5433
5434 2005-11-18  Jackson Harper  <jackson@ximian.com>
5435
5436         * Control.cs: Put the enum check back in now that MDI doesnt have
5437         to use this to set border styles.
5438         * Form.cs: Only set mdi child windows borders if the handle has
5439         been created.
5440         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5441         this directly on to the driver.
5442         - Get the move start position before adjusting for the titlebar
5443         height, this fixes the windows "skipping" when they are first
5444         moved.
5445
5446 2005-11-18  Jackson Harper  <jackson@ximian.com>
5447
5448         * XplatUIX11.cs: Just compute the mdi borders separately as they
5449         don't totally match up with normal form borders.
5450
5451 2005-11-18  Jackson Harper  <jackson@ximian.com>
5452
5453         * Control.cs: Set WS_ styles for borders, so that the driver does
5454         not have to retrieve the control instance to figure out what kind
5455         of borders it should have.
5456         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5457         driver can know its an mdi child easily.
5458         * XplatUIX11.cs: Get the border styles and whether the window is
5459         MDI from the Styles and ExStyles params instead of having to get a
5460         control. This prevents a chicken and egg problem.       
5461
5462 2005-11-18  Jackson Harper  <jackson@ximian.com>
5463
5464         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5465
5466 2005-11-18  Jackson Harper  <jackson@ximian.com>
5467
5468         * MdiClient.cs: Calculate when to add and remove scrollbars
5469         correctly.
5470         * MdiChildContext.cs: Adjust the y position to take the titlebar
5471         into account.
5472         - No height for FormBorderStyle.None
5473
5474 2005-11-18  Jackson Harper  <jackson@ximian.com>
5475
5476         * Control.cs: Allow non enum values to be used for
5477         InternalBorderStyle.  MDI does this to set a special border style.
5478         - New utility methods for converting points to/from client coords
5479         - Add the newly created control to the Controls collection before
5480         updating its style. This way UpdateStyle can walk the control
5481         heirarchy to find the control if needed.
5482         so I don't need to create a new Point object all the time.
5483         * Form.cs: Let MDI windows handle their border styles.
5484         - Set styles on MDI windows so the correct title style is derived.
5485         * MdiChildContext.cs: Move all the painting and window handling
5486         into the non client area.
5487         - Use correct sizing and put correct buttons on frames based on
5488         the FormBorderStyle.
5489         - Notify the mdi client about scrolling
5490         - Need to handle the buttons ourselves now, because they are all
5491         in non client areas and we can't add controls there.
5492         * MdiClient.cs: Halfway to scrolling, this implementation is
5493         somewhat broken though, we need to check to make sure other
5494         windows aren't causing scrolling before removing the bars. Also
5495         the bars need to be drawn on top, maybe I can switch implicit
5496         controls to be on top.
5497         * Hwnd.cs: caption_height and tool_caption_height are now
5498         properties of an hwnd, this way they can be set by the driver
5499         based on the type of window they are.  In X11 the window manager
5500         handles the decorations so caption_height is zero unless its an
5501         MDI window.
5502         - Add 3 pixel borders for MDI windows (0xFFFF).
5503         - Get rid of some code duplication, have DefaultClientRectanle
5504         just call GetClientRectangle.
5505         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5506         Hwnd now.
5507         - Set border styles differently for mdi windows.
5508         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5509         Hwnd now.
5510         
5511 2005-11-15  Mike Kestner  <mkestner@novell.com>
5512
5513         * Menu.cs: when adding an item to the collection, if item is already 
5514         parented, remove it from the parent.
5515
5516 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5517
5518         * X11DesktopColors.cs: Added KDE support
5519
5520 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5521
5522         * XplatUIWin32.cs: 
5523           - Clipboard methods now can translate Rtf format
5524           - No longer removes clipboard contents whenever a new format is added
5525             to allow placing multiple formats on the clipboard
5526         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5527           will place all formats contained in it onto the clipboard. Also
5528           now cleans the clipboard before placing a new object onto it
5529         * RichTextBox.cs:
5530           - Implemented set_Rtf
5531           - Implemented set_SelectedRtf
5532           - Created InsertRTFFromStream() method to allow single code base
5533             for all properties and methods that insert RTF into document
5534           - Removed debug output
5535         * TextControl.cs:
5536           - Fixed Delete(int) to fix up line numbers
5537           - Fixed ReplaceSelection to combine start and end line
5538           - Fixed serious DeleteChars bug that would leave the document tree
5539             broken
5540           - Improved DumpTree with several logic checks to detect broken
5541             document trees
5542           - Removed debug lines
5543           - Fixed Caret.WordForward/WordBack moving code, now always also 
5544             updates caret.tag (fixes crash when word-selecting across tag
5545             boundaries via keyboard)
5546           - Added Insert() method for inserting multiline text into documents
5547           - Fixed DeleteChars() calculation errors that would cause a broken
5548             tag chain with multiple tag lines
5549           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5550           - Split() no longer moves caret if split is at caret location
5551           - ReplaceSelection() now updates the cursor and re-displays it
5552           - ReplaceSelection() now uses new Insert() method to avoid code
5553             duplication
5554           - FormatText() can now handle formatting partial lines
5555         * TextBoxBase.cs:
5556           - Append now uses new TextControl.Insert() method (this avoids 
5557             duplicate code)
5558           - Implemented Ctrl-X (Cut) (
5559           - Implemented Ctrl-C (Copy)
5560           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5561             regeneration when pasting text; roundtripping Copy&Paste within
5562             edit control still fails due to some calculation bugs in GenerateRTF)
5563           - The Delete key will now remove the current selection if it is visible
5564         * TextBox.cs: Removed debug lines
5565         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5566           driver to be initialized and can't therefore be done via a static ctor)
5567
5568 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5569
5570         * TextControl.cs: Added backend code for finding char arrays and strings
5571         * TextBoxBase.cs:
5572           - Added mouse wheel scroll support
5573           - Added support for VScroll and HScroll events
5574         * RichTextBox.cs:
5575           - Implemented all seven Find() variants
5576           - Implemented GetCharFromPosition()
5577           - Implemented GetCharIndexFromPosition()
5578           - Implemented GetLineFromIndex()
5579           - Implemented GetPositionFromCharIndex();
5580           - Implemented SaveFile for PlainText and UnicodeText
5581           - Fixed set_Font, now setting a new font applies that font to
5582             the whole document
5583           - Implemented generic Document to RTF converter
5584           - Implemented SaveFile for RichText format (still missing unicode
5585             conversion for non-ansi chars)
5586           - Implemented get_Rtf
5587           - Implemented get_SelectedRtf
5588
5589 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5590
5591         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5592           to allow any captures to be released before triggering OnClick. This
5593           way a click handler may capture the mouse without interference.
5594         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5595           This way we send them even though X may not allow a grab (if the window
5596           isn't visible, for example)
5597
5598 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5599
5600         * DataGridViewRowEventArgs.cs: DataGridView implementation
5601         * DataGridViewElement.cs: DataGridView implementation
5602         * DataGridViewComboBoxCell.cs: DataGridView implementation
5603         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5604         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5605         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5606         * ImageLayout.cs: DataGridView implementation
5607         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5608         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5609         * DataGridViewSelectionMode.cs: DataGridView implementation
5610         * IDataGridViewEditingControl.cs: DataGridView implementation
5611         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5612         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5613         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5614         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5615         * DataGridViewColumnSortMode.cs: DataGridView implementation
5616         * DataGridView.cs: DataGridView implementation
5617         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5618         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5619         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5620         * Padding.cs: DataGridView implementation
5621         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5622         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5623         * DataGridViewRowEventHandler.cs: DataGridView implementation
5624         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5625         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5626         * DataGridViewButtonCell.cs: DataGridView implementation
5627         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5628         * DataGridViewEditMode.cs: DataGridView implementation
5629         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5630         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5631         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5632         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5633         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5634         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5635         * DataGridViewCellEventHandler.cs: DataGridView implementation
5636         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5637         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5638         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5639         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5640         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5641         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5642         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5643         * QuestionEventArgs.cs: DataGridView implementation
5644         * IDataGridViewEditingCell.cs: DataGridView implementation
5645         * DataGridViewTriState.cs: DataGridView implementation
5646         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5647         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5648         * DataGridViewColumnCollection.cs: DataGridView implementation
5649         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5650         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5651         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5652         * DataGridViewColumn.cs: DataGridView implementation
5653         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5654         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5655         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5656         * DataGridViewRow.cs: DataGridView implementation
5657         * DataGridViewImageCellLayout.cs: DataGridView implementation
5658         * DataGridViewImageCell.cs: DataGridView implementation
5659         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5660         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5661         * DataGridViewHeaderCell.cs: DataGridView implementation
5662         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5663         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5664         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5665         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5666         * QuestionEventHandler.cs: DataGridView implementation
5667         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5668         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5669         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5670         * DataGridViewCell.cs: DataGridView implementation
5671         * DataGridViewCellEventArgs.cs: DataGridView implementation
5672         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5673         * DataGridViewCellStyle.cs: DataGridView implementation
5674         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5675         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5676         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5677         * TextFormatFlags.cs: DataGridView implementation
5678         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5679         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5680         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5681         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5682         * DataGridViewButtonColumn.cs: DataGridView implementation
5683         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5684         * HandledMouseEventArgs.cs: DataGridView implementation
5685         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5686         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5687         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5688         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5689         * DataGridViewRowCollection.cs: DataGridView implementation
5690         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5691         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5692         * DataGridViewHitTestType.cs: DataGridView implementation
5693         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5694         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5695         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5696         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5697         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5698         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5699         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5700         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5701         * DataGridViewContentAlignment.cs: DataGridView implementation
5702         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5703         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5704         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5705         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5706         * DataGridViewPaintParts.cs: DataGridView implementation
5707         * DataGridViewCellCollection.cs: DataGridView implementation
5708         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5709         * DataGridViewImageColumn.cs: DataGridView implementation
5710         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5711         * DataGridViewElementStates.cs: DataGridView implementation
5712         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5713         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5714         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5715         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5716         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5717         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5718         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5719         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5720         * DataGridViewTextBoxCell.cs: DataGridView implementation
5721         * DataGridViewBand.cs: DataGridView implementation
5722         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5723         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5724         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5725         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5726         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5727         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5728         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5729         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5730         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5731         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5732         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5733
5734 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5735
5736         * ThemeWin32Classic.cs: 
5737           - Draw the outside focus rectangle around buttons
5738           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5739             doesn't use end caps for every dash of a line anymore. This
5740             workaround ignores the forecolor.
5741
5742 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5743
5744         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5745           endian safe.
5746
5747 2005-11-07  Jackson Harper  <jackson@ximian.com>
5748
5749         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5750
5751 2005-11-07  Jackson Harper  <jackson@ximian.com>
5752
5753         * ScrollableControl.cs: Calculate the maximum and change vars
5754         (more) correctly so that scrollbars appear as a sensible size.
5755
5756 2005-11-04  Jackson Harper  <jackson@ximian.com>
5757
5758         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5759         collection.
5760         * TreeView.cs: When the tree is sorted null out the top_node so
5761         that it is recalculated.
5762         - Use dotted lines instead of dashed lines to match MS better.
5763
5764 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5765
5766         * ListView.cs: 
5767           - Implements key search for items. Useful when browsing files with FileDialog
5768           - When changing view mode or when clear the items reset scrollbar positions
5769
5770 2005-11-04  Jackson Harper  <jackson@ximian.com>
5771
5772         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5773         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5774         as to what the method may do as there is no real way of creating a
5775         derived CurrencyManager and calling the method. 
5776
5777 2005-11-03  Jackson Harper  <jackson@ximian.com>
5778
5779         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5780         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5781         method which seems to just be used internally to refresh the tabs.
5782
5783 2005-11-03  Jackson Harper  <jackson@ximian.com>
5784
5785         * TabControl.cs: Implement the remove method. Fix some broken
5786         comments.
5787
5788 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5789
5790         * DateTimePicker.cs:
5791           - Added missing DateTimePickerAccessibleObject class
5792           - Added missing events
5793           - Added OnFontChanged method
5794         * Form.cs: Added missing attributes
5795         * TreeView.cs: Added missing attributes
5796
5797 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5798
5799         * GridItemCollection.cs: Fix signatures
5800
5801 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5802
5803         * XplatUI.cs: Updated build rev/date
5804         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5805           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5806         * Application.cs: Trigger context-specific ExitThread events
5807
5808 2005-11-03  Jackson Harper  <jackson@ximian.com>
5809
5810         * Menu.cs:
5811         * MainMenu.cs:
5812         * GridTableStylesCollection.cs:
5813         * Timer.cs:
5814         * TabPage.cs:
5815         * HelpProvider.cs:
5816         * StatusBar.cs:
5817         * MonthCalendar.cs: Signature fixes
5818
5819 2005-11-03  Jackson Harper  <jackson@ximian.com>
5820
5821         * TreeNodeCollection.cs: Remove should not be virtual.
5822         * TreeView.cs: Implement the last of the missing methods.
5823
5824 2005-11-03  Jackson Harper  <jackson@ximian.com>
5825
5826         * TreeNodeConverter.cs: Implement to get off my class-status back.
5827
5828 2005-11-03  Jackson Harper  <jackson@ximian.com>
5829
5830         * TreeView.cs: Hookup the bits for drag and drop.
5831         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5832         that nodes can be moved from tree to tree easily this just causes
5833         all sorts of problems.
5834         * TreeNodeCollection: Don't need to give treenodes an index and
5835         treeview anymore when they are added, these are computed on the
5836         fly. Also make sure to remove a node before its added.
5837
5838 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5839
5840         * TextControl.cs:
5841           - Added CaretSelection enum
5842           - Added comparison methods to Marker struct, makes selection code
5843             more readable
5844           - Added SelectionStart and SelectionEnd as 'moveable' location for
5845             the CaretDirection enum and handler
5846           - Added selection_prev variable to track optimized invalidation for
5847             word and line selection
5848           - Added SelectionVisible property (returns true if there is a valid 
5849             selection)
5850           - Switched CaretHasFocus to only display the caret if there is no
5851             visible selection
5852           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5853             using the direct character index; should be much faster
5854           - Added various conditional debug statements
5855           - Fixed invalidation calculation for selection ranges
5856           - Added ExpandSelection() method to support word and line selection
5857           - Switched SetSelectionToCaret to use new Marker compare overloads
5858           - Added central IsWordSeparator() method to determine word 
5859             separators/whitespace and FindWordSeparator() to streamline common
5860             usage of IsWordSeparator()
5861         * TextBoxBase.cs:
5862           - Removed unneeded grabbed variable, it was just mirroring
5863             Control.Capture
5864           - No longer firing OnTextChanged event when Text setter is called,
5865             since the base will fire the event for us
5866           - Added handling of Ctrl-Up/Down selection
5867           - Added handling of Shift-Cursorkey selection
5868           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5869             words
5870           - Added handling of Shift and Ctrl-Shift-Home/End selection
5871           - Removed some debug output
5872           - Added handling for single/double/tripple-click to place caret/
5873             select word/select line respectively (Fixes bug #76031)
5874           - Added support for drag expansion of word/line selection
5875         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5876           current selection
5877
5878 2005-11-02  Jackson Harper  <jackson@ximian.com>
5879
5880         * X11Dnd.cs: If the drag is going to and from a MWF window just
5881         copy the data instead of sending it out through the X Selection
5882         mechanism.
5883
5884 2005-11-02  Jackson Harper  <jackson@ximian.com>
5885
5886         * X11Dnd.cs:
5887         * XplatUIX11.cs: When in a drag we don't want motion notify
5888         messages to get passed on to the other controls. This prevents
5889         mouse move messages from showing up in the drag source.
5890
5891 2005-11-02  Jackson Harper  <jackson@ximian.com>
5892
5893         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5894         the correct button is release to end a drag.
5895         * XplatUIX11.cs: Make the button state internal so the drag system
5896         can access it.  Dragging needs to know about all button releases,
5897         not just left button.
5898
5899 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5900
5901         * Form.cs (Icon): If the icon is null, reset the icon to the
5902         default value. 
5903
5904         * Cursor.cs: When writing the AND-mask bitmap do not include the
5905         number of colors, but hardcode those to two (black and white),
5906         fixes the loading of color cursors (Paint Dot Net).
5907
5908         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5909         turn off autoscaling.
5910
5911         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5912
5913 2005-11-02  Jackson Harper  <jackson@ximian.com>
5914
5915         * X11Dnd.cs: Make sure to send a status message if the pointer
5916         enters a control that can not accept a drop, otherwise the cursor
5917         isn't updated correctly. Also tried to compress the lines of code
5918         a bit.
5919
5920 2005-11-02  Jackson Harper  <jackson@ximian.com>
5921
5922         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5923         set actions correctly.  This isn't perfect as XDND and win32 have
5924         some differences on how you allow actions. I'll clear this up by
5925         adding a path for drag from MWF to MWF windows.
5926         * XplatUIX11.cs: Hook into the dnd system.
5927
5928 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5929
5930         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5931         previously shown but they are no longer need it. Very obvious when 
5932         browsing files with FileDialog.
5933
5934 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5935
5936         * Control.cs: We always need to call OnPaintBackground. We pretty much
5937           ignore AllPaintingInWmPaint and always do the painting there, whether 
5938           it's set or not, since we always ignore the WM_ERASEBKGND message 
5939           (which we don't generate on X11). This fixes #76616.
5940         * Panel.cs: Removed unneeded background painting. This happens properly
5941           in Control.cs already
5942
5943 2005-10-31  Mike Kestner  <mkestner@novell.com>
5944
5945         * Menu.cs: Add items to collection before setting their index.
5946         * MenuItem.cs : add range checking with ArgumentException like MS.
5947         [Fixes #76510]
5948
5949 2005-10-31  Jackson Harper  <jackson@ximian.com>
5950
5951         * ListBox.cs: Invalidate if the area is visible at all not just
5952         contained in the visible rect. Fixes unselection of semi visible
5953         items.
5954
5955 2005-10-31  Jackson Harper  <jackson@ximian.com>
5956
5957         * Control.cs: Consistently name the dnd methods. Make them
5958         internal so we can override them to match some MS behavoir
5959         internally.
5960         * Win32DnD.cs: Use the new consistent names.
5961
5962 2005-10-31  Jackson Harper  <jackson@ximian.com>
5963
5964         * TreeView.cs: Don't draw the selected node when we lose focus.
5965
5966 2005-10-31  Jackson Harper  <jackson@ximian.com>
5967
5968         * X11Dnd.cs: We still need to reset the state even though a full
5969         reset isn't being done, otherwise status's still get sent all over
5970         the place.
5971
5972 2005-10-31  Jackson Harper  <jackson@ximian.com>
5973
5974         * Control.cs: Make the dnd_aware flag internal so the dnd
5975         subsystem can check it. Catch exceptions thrown in dnd handlers to
5976         match MS behavoir.
5977         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5978         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5979         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5980         flags to reduce the number of dnd enters/status's sent.
5981
5982 2005-10-31  Jackson Harper  <jackson@ximian.com>
5983
5984         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5985
5986 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5987
5988         * PictureBox.cs: Fixes 76512
5989
5990 2005-10-28  Jackson Harper  <jackson@ximian.com>
5991
5992         * X11Dnd.cs: Early implementation to support winforms being a drag
5993         source for data on X11. Also restructured the converters so they
5994         can go both ways now.
5995         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5996         
5997 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5998
5999         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6000           clipboard requests
6001
6002 2005-10-27  Jackson Harper  <jackson@ximian.com>
6003
6004         * TreeNode.cs: Implement serialization so my DnD examples will work.
6005
6006 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6007
6008         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6009           TreeView.cs: Don't dispose objects that are not owned.
6010           
6011 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6012
6013         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6014           should retrieve the current cursor and report that, but XplatUI
6015           doesn't (yet) have an interface for that (and I'm not sure I even
6016           can, on X11)
6017         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6018           until any message loop processing is done (and the WM_SETCURSOR
6019           replaces the cursor to the proper one)
6020         * XplatUIX11.cs: 
6021           - Fixed override behaviour, we can't set the cursor globally on X11, 
6022             just for our windows.
6023           - Invalidating the System.Drawing X11 display handle when we are
6024             shutting down
6025         * Control.cs: Fix to make csc happy
6026
6027 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6028
6029         * TextBoxBase.cs: 
6030           - get_Text: Add last line (without trailing newline) to returned
6031             value (Fixes 76212)
6032           - get_TextLength: Count last line in returned length
6033           - ToString: Call Text property instead of duplicating code
6034
6035 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6036
6037         * ImageList.cs: Dispose ImageAttributes objects.
6038
6039 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6040
6041         * ImageList.cs: Use attribute constructors with less arguments where
6042           possible.
6043
6044 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6045
6046         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6047           Use typeof instead of strings when assembly is referenced. Added
6048           some more comments.
6049
6050 2005-10-21  Jackson Harper  <jackson@ximian.com>
6051
6052         * ListView.cs: Raise a double click event. Also tried to somewhat
6053         fix when the selectedindexchanged event is raised. Its still
6054         broken though.
6055
6056 2005-10-21  Jackson Harper  <jackson@ximian.com>
6057
6058         * TreeView.cs: New method to invalidate the plus minus area of a
6059         node without invalidating the whole node (maybe this can be used
6060         in some more places).
6061         * TreeNodeCollection.cs: When adding to an empty node we need to
6062         invalidate its plus minus area so the little block shows up.
6063         
6064 2005-10-21  Jackson Harper  <jackson@ximian.com>
6065
6066         * TreeView.cs: Make sure that when we invalidate a node the bounds
6067         are big enough to cover the selected box and the focus
6068         rectangle. Use a different colour for the lines connecting nodes
6069         so they show up with all themes.
6070
6071 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6072
6073         * NativeWindow.cs: Don't call anything that could call into the driver,
6074           we might be on a different thread.
6075
6076 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6077
6078         * Control.cs(Dispose): Since Dispose might run on a different thread,
6079           make sure that we call methods that could call into the driver via
6080           invoke, to avoid thread issues
6081
6082 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6083
6084         * XplatUI.cs: Removed finalizer
6085         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6086           not allowing to be called on the finalizer thread.
6087
6088 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6089
6090         * ImageList.cs:
6091           - Reverted r51889 and r51891.
6092           - Added ImageListItem class that stores unmodified image items and image
6093             properties required to create list images until handle is created.
6094           - Added AddItem and moved image creation logic to AddItemInternal.
6095           - Added CreateHandle method that creates images based on unmodified items.
6096           - Added DestroyHandle that changes state to store unmodified items.
6097           - Add and AddStrip methods no more create handle.
6098           - ReduceColorDepth has no return value.
6099           - Dispose destroys handle.
6100           - Modified other methods to reflect the above changes.
6101           - Implemented key support.
6102           - Added profile 2.0 members and attributes.
6103           - Added private Reset and ShouldSerialize methods that provide the same
6104             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6105             them as they are private.
6106           - Added some more comments about implementation details.
6107
6108 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6109
6110         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6111
6112 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6113
6114         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6115
6116 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6117
6118         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6119         * DataGridColumnStyle.cs: Remove debug message
6120
6121 2005-10-20  Jackson Harper  <jackson@ximian.com>
6122
6123         * TreeView.cs: We can always get input keys regardless of whether
6124         or not editing is enabled. They are used for navigation.
6125
6126 2005-10-20  Jackson Harper  <jackson@ximian.com>
6127
6128         * TreeNode.cs: Use the viewport rect for determining if a node
6129         needs to be moved for visibility. Don't use Begin/End edit. This
6130         calls a full refresh when its done.
6131         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6132         rect property internal so the treenodes can see it. When clicking
6133         on a node we need to ensure that its visible because it might just
6134         be partly visible when clicked.
6135
6136 2005-10-20  Jackson Harper  <jackson@ximian.com>
6137
6138         * TreeNodeCollection.cs: Remove debug code.
6139
6140 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6141
6142         * Datagrid.cs: Implements column sorting in Datagrid
6143         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6144
6145 2005-10-20  Jackson Harper  <jackson@ximian.com>
6146
6147         * TreeNodeCollection.cs: Remove items properly. Update the correct
6148         area after removing them.
6149
6150 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6151
6152         * Datagrid.cs: Should not call base.OnPaintBackground
6153
6154 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6155
6156         * XplatUIX11.cs (GetMessage):
6157           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6158             window instead of client window
6159           - Now properly calculates NC_xBUTTONUP message coordinates
6160           - ScreenToMenu now properly calculates it's coordinates of whole 
6161             window, since menus are in the whole window, not in the client
6162             window
6163           - Added WholeToScreen coordinate translation method
6164
6165 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6166
6167         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6168           want to return a message, loop back to the beginning of the function
6169           and grab the next real message to process instead.
6170
6171 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6172
6173         * Splitter.cs: Properly set limits if no filler control is used
6174
6175 2005-10-19  Jackson Harper  <jackson@ximian.com>
6176
6177         * ColorDialog.cs: Don't show the help button if it is not enabled
6178         instead of disabling it (this is what MS does). Don't create the
6179         panel until the dialog is run, otherwise the vars (such as
6180         ShowHelp) are not set yet.
6181
6182 2005-10-19  Jackson Harper  <jackson@ximian.com>
6183
6184         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6185         are reduced when adding nodes.
6186         * TreeNode.cs:
6187         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6188         tree.
6189         
6190 2005-10-19  Jackson Harper  <jackson@ximian.com>
6191
6192         * FolderBrowserDialog.cs: End editing our treeview so the window
6193         actually gets refreshed.
6194
6195 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6196
6197         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6198           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6199           inside of WM_PAINT
6200
6201 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6202
6203         * MenuAPI.cs: Returns after Hidding window
6204         * XplatUIX11.cs: Added TODO found while debugging menu issues
6205
6206 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6207
6208         * XplatUIX11.cs: Do not re-map the whole window when it's size
6209           becomes non-zero unless it's supposed to be actually visible
6210
6211 2005-10-18  Jackson Harper  <jackson@ximian.com>
6212
6213         * TreeView.cs: We don't need to keep a count anymore.
6214         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6215         use the Grow method.
6216
6217 2005-10-18  Jackson Harper  <jackson@ximian.com>
6218
6219         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6220         implement it manually here.
6221
6222 2005-10-18  Jackson Harper  <jackson@ximian.com>
6223
6224         * ImageList.cs: Dont kill the list when the colour depth is
6225         changed, just change the colour depth of all the images.
6226         - Same goes for setting the image size. Just resize them all
6227         instead of killing the list softly.
6228
6229 2005-10-18  Jackson Harper  <jackson@ximian.com>
6230
6231         * Control.cs: Don't invalidate empty rectangles.
6232
6233 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6234
6235         * ListViewItem.cs:
6236           - Adds checked item to the Checked/Item lists (where empty before)
6237           - Do not add items to the Selected lists if they are already present
6238         * ListView.cs:
6239           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6240           - When deleting items make sure that we delete them for the Selected
6241           and Checked list also.
6242
6243 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6244
6245         * Label.cs: Dispose objects no longer used
6246         * ThemeWin32Classic.cs: Dispose objects no longer used
6247
6248 2005-10-18  Jackson Harper  <jackson@ximian.com>
6249
6250         * TabControl.cs: Don't refresh the whole control when the tabs are
6251         scrolled, we just need to refresh the tab area.
6252
6253 2005-10-17  Jackson Harper  <jackson@ximian.com>
6254
6255         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6256         after handle when we need it.
6257
6258 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6259
6260         * Control.cs: When the parent size changes, recalculate anchor 
6261           positions. Partial fix for #76462
6262
6263 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6264
6265         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6266           drawn. Fixes #76462
6267
6268 2005-10-17  Jackson Harper  <jackson@ximian.com>
6269
6270         * MonthCalendar.cs: Don't create the numeric up down until our
6271         handle is created. Otherwise our handle is created in the
6272         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6273         yet.
6274
6275 2005-10-17  Jackson Harper  <jackson@ximian.com>
6276
6277         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6278         correctly.
6279
6280 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6281         * TreeNode.cs : small logical fix (was using local var instead of field)
6282         
6283 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6284
6285         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6286
6287 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6288
6289         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6290
6291 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6292
6293         * Control.cs: 
6294           - Re-implemented anchoring code. My first version was really broken.
6295             This fixes bug #76033. Unlike the previous implementation we will
6296             no longer have round errors since all numbers are calculated from
6297             scratch every time. Removed various anchor-related obsolete vars.
6298           - InitLayout no longer causes layout event firing and layout to be 
6299             performed
6300
6301 2005-10-16  Jackson Harper  <jackson@ximian.com>
6302
6303         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6304         which was broken).
6305
6306 2005-10-16  Jackson Harper  <jackson@ximian.com>
6307
6308         * TabControl.cs: Remove debug code.
6309
6310 2005-10-16  Jackson Harper  <jackson@ximian.com>
6311
6312         * XEventQueue.cs: Increase the default queue size (very simple
6313         apps needed to grow the queue).
6314         * Hwnd.cs: No finalizer so we don't need to suppress
6315         finalization. Compute the invalid area manually so a new rectangle
6316         does not newto be created.
6317         * ScrollableControl.cs: Don't set any params (otherwise visibility
6318         isn't set correctly).
6319         * MdiChildContext.cs: New constructor takes the mdi parent so it
6320         doesn't have to be computed and avoids a crash on windows. Draw
6321         the window icon properly, and allow the text to be seen.
6322         * Form.cs: Use new MdiChildContext constructor. Make sure the
6323         child context isn't null in wndproc.
6324         * TabControl.cs: Don't set focus, this is muddling keyboard
6325         behavoir. Expand the tab rows when a window size increase will
6326         allow extra tabs to be seen. Don't allow tabs smaller than the
6327         width of a window to be scrolled out of view.
6328         * TreeNode.cs:
6329         * TreeView.cs: Use measure string to calculate a nodes width, the
6330         width is cached and only updated when the text or the font is
6331         changed. Don't check for expand/collapse clicks on the first level
6332         nodes if root lines are disabled.
6333         
6334 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6335
6336         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6337
6338 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6339
6340         * DataGridBoolColumn.cs: fixes warning
6341
6342 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6343
6344         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6345         to match more to match more precisely the MS Net behavior
6346
6347 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6348
6349         * Hwnd.cs: Added field to track if window is mapped
6350         * XplatUIX11.cs: 
6351           - Unmap windows if they become 0-size, re-map when 
6352             they are >0 again; fixes #76035
6353           - Re-set our error handler after initializing X11Desktop
6354             to override any error handlers Gtk or whatever was called
6355             may have set.
6356
6357 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6358
6359         * CheckedListBox.cs: Removed unused vars
6360         * ListView.cs: Fixed signatures
6361         * RichTextBox.cs: Removed unused vars
6362         * TextBoxBase.cs: Removed unused vars
6363         * XplatUIWin32.cs: Removed unused vars
6364         * XplatUIX11.cs: Removed unused vars
6365         * XplatUI.cs: Updated version and date to latest published
6366
6367 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6368
6369         * Cursor.cs: Added private .ctor to work around a bug in
6370           resourceset (Thanks to Geoff Norton for the help on this)
6371         * SplitterEventArgs.cs: Made fields accessible so we don't
6372           waste boatloads of objects and can reuse the same one
6373           in Splitter
6374         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6375           any captions and borders when generating screen coordinates
6376         * Splitter.cs: Reimplemented control, now fully complete, uses
6377           rubberband drawing, supports and obeys all properties, has
6378           proper cursors
6379
6380 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6381
6382         * Form.cs (Form): Setup default values for autoscale and
6383         autoscale_base_size;  Make these instance variables, not static
6384         variables. 
6385
6386         (OnLoad): on the first load, adjust the size of the form.
6387
6388 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6389
6390         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6391           width argument to DrawReversibleRectangle()
6392         * XplatUIWin32.cs, XplatUIX11.cs: 
6393           - Implemented width for DrawReversibleRectangle()
6394           - Added logic to DrawReversibleRectangle that recognizes a zero
6395             width or height and only draws a line in that situation
6396         
6397 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6398
6399         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6400         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6401         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6402           method (it uses our FosterParent window to get a graphics context)
6403
6404 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6405
6406         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6407           and SetWindowBackground methods
6408         * Control.cs:
6409           - Setting proper ControlStyles
6410           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6411             EraseWindowBackground, instead we draw the window background
6412             ourselves in PaintControlBackground. This behaviour is
6413             required to match MS, where, when OnPaintBackground is not
6414             called, the background is not drawn.
6415           - Removed unneeded Refresh() in set_Text
6416         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6417         * XplatUIX11.cs:
6418           - Created DeriveStyles method to translate from CreateParams to
6419             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6420             matches FormBorderStyle enum values)
6421           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6422             style calculations into single DeriveStyles method
6423           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6424             from redrawing the whole window on any resize or expose.
6425           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6426             all styles were applied to our whole/client window appropriately
6427           - Removed EraseWindowBackground() and SetWindowBackground() methods
6428           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6429             no longer clear/redraw the background through X
6430           - Removed handling of erase_pending bit, we have no use for it (or
6431             so it seems)
6432         * XplatUIOSX.cs:
6433           - Removed generation and handling of WM_ERASEBKGND message
6434           - Removed EraseWindowBackground() and SetWindowBackground() methods
6435           - Removed handling of hwnd.ErasePending flag
6436         * XplatUIWin32.cs:
6437           - Removed EraseWindowBackground() and SetWindowBackground() methods
6438           - We no longer call EraseWindowBackground on PaintEventStart, we 
6439             ignore the fErase flag, erasing is handled in Control in the
6440             background handler
6441         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6442           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6443           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6444           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6445           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6446           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6447           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6448
6449 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6450
6451         * PropertyGrids.cs: Get sub properties
6452         * PropertyGridView.cs: Fix drawing code
6453
6454 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6455
6456         * ListBox.cs: Fixes 76383
6457
6458 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6459
6460         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6461         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6462         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6463
6464
6465 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6466
6467         * ComboBox.cs: Fixes border drawing
6468
6469 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6470
6471         * MimeIcon.cs: Ignore errors if the file can not be read.
6472
6473 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6474
6475         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6476          - Fixed border calculations
6477          - Fixed horizontal scrolling in single column listboxes
6478          - Fixed drawing issues
6479
6480 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6481
6482         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6483           FormBorderStyle enum
6484         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6485           code to determine FormBorderStyles from CreateParams
6486         * Form.cs:
6487           - Fixed bug where we'd set the wrong window styles if we were
6488             not creating an MDI window
6489           - Added call to XplatUI.SetBorderStyle when form borders are set
6490         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6491         * Hwnd.cs:
6492           - Removed obsolete edge style
6493           - Switched from BorderStyle to FormBorderStyle
6494         
6495 2005-10-10  Jackson Harper  <jackson@ximian.com>
6496
6497         * Form.cs: Use the property to get the window handle instead of
6498         accessing it directly. Prevents a null reference exception.
6499
6500 2005-10-10  Jackson Harper  <jackson@ximian.com>
6501
6502         * TreeView.cs: Don't adjust the rect given to DrawString now that
6503         our libgdiplus draws correctly.
6504
6505 2005-10-08  Jackson Harper  <jackson@ximian.com>
6506
6507         * TreeView.cs: Don't try to find the clicked on node if there are
6508         no nodes in the tree.
6509
6510 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6511
6512         * RichTextBox.cs:
6513
6514           restore
6515
6516 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6517
6518         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6519           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6520           ErrorProvider.cs:
6521           Use ResPool for brushes and dispose System.Drawing objects that
6522           are not used anymore.
6523
6524 2005-10-07  Jackson Harper  <jackson@ximian.com>
6525
6526         * MdiChildContext.cs: Use the new borders instead of drawing them
6527         ourselves.
6528
6529 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6530
6531         * Calling UpdateBounds after changing the window's BorderStyle 
6532         since the style can change the ClientSize
6533
6534 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6535
6536         * Control.cs: Made PaintControlBackground virtual
6537         * Panel.cs: Overriding PaintControlBackground instead of using paint
6538           event; paint event method was interfering with 'real' users of the
6539           event.
6540
6541 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6542
6543         * ThemeWin32Classic.cs: remove border drawing since it is handled
6544         by the base control class now and was causing double border drawing.
6545
6546 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6547
6548         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6549           but it does seem to match MS behaviour. This fixes bug #75324
6550
6551 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6552
6553         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6554           somewhat hackish looking
6555
6556 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6557
6558         * TextBoxBase.cs:
6559           - We now accept Enter even if AcceptEnter is false, if the containing
6560             form does not have an AcceptButton configured (fixes bug #76355)
6561           - Calculations are now fixed to no longer use Width/Height, but
6562             ClientSize.Width/Height, since we now support borders (this was
6563             a result of fixing borders and therefore bug #76166)
6564           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6565             true (fixes bug #76354)
6566         
6567 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6568
6569         * Control.cs: 
6570           - Defaulting BorderStyle and setting it in XplatUI when our window 
6571             is created
6572           - Added enum check to InternalBorderStyle setter
6573         * XplatUIX11.cs: 
6574           - Added drawing of window borders
6575           - Now properly calculates WM decorations offset for toplevel 
6576             windows (fixes bug #74763)
6577         * XplatUIWin32.cs: 
6578           - Implemented BorderStyles for windows (we're letting win32 draw 
6579             the border for us)
6580           - Fixed the signature for SetWindowLong
6581         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6582           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6583           setting borders
6584         * UpDownBase.cs: Remove drawing of borders, this is handled by
6585           the driver, outside the client area
6586         * ListView.cs: Removed bogus border calculations. The control should
6587           be oblivious to borders, since those are not part of the client
6588           area. 
6589         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6590         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6591           drawing code
6592
6593 2005-10-06  Jackson Harper  <jackson@ximian.com>
6594
6595         * MdiChildContext.cs: Clear out the old virtual position remove
6596         all the unneeded calls to CreateGraphics.
6597
6598 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6599
6600         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6601
6602 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6603
6604         * Form.cs: 
6605           - Added loading and setting of our new default icon
6606           - Only set icon if window is already created
6607
6608 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6609
6610         * Label.cs:
6611           - Do not explicitly set the foreground and background colors, to
6612             allow inheriting from parents (fixes #76302)
6613           - Use Control's InternalBorderStyle property to deal with borders
6614
6615 2005-10-06  Jackson Harper  <jackson@ximian.com>
6616
6617         * MdiChildContext.cs: Use the new xplatui function to draw a
6618         reversible rect.
6619
6620 2005-10-06  Jackson Harper  <jackson@ximian.com>
6621
6622         * Form.cs: Add the parent before creating the child context cause
6623         we need the parent when setting up the child.
6624
6625 2005-10-06  Jackson Harper  <jackson@ximian.com>
6626
6627         * FolderBrowserDialog.cs: redo the tree population code so a
6628         second thread isn't used. Should be a lot faster and more stable
6629         now.
6630
6631 2005-10-05  Jackson Harper  <jackson@ximian.com>
6632
6633         * TreeView.cs: There are no expand/collapse boxes if the node has
6634         no children.
6635
6636 2005-10-05  Jackson Harper  <jackson@ximian.com>
6637
6638         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6639
6640 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6641
6642         * FileDialog.cs: Fix InitialDirectory
6643
6644 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6645
6646         * ComboBox.cs:
6647                 - Fixes changing between styles
6648                 - Fixes simple mode
6649                 - Fixes last item crashing when navigating with keyboard
6650
6651 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6652
6653         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6654
6655 2005-10-05  Jackson Harper  <jackson@ximian.com>
6656
6657         * TreeView.cs: If updating the root node do a full refresh.
6658         * TreeNode.cs: The root node should be expanded by default. Also
6659         added a utility prop to tell if we are the root node.
6660         * TreeNodeCollection.cs: Only refresh if the node we are being
6661         added to is expanded. Also added a comment on a potential
6662         optimization.
6663         
6664 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6665
6666         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6667           in dispose method. Fixes #76330
6668
6669 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6670
6671         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6672
6673                 - Implements vertical and horizontal scrolling using XplatUI
6674                 - Fixes keyboard navagation
6675                 - Fixes EnsureVisible
6676                 - Drawing fixes
6677                 - Handles and draws focus properly
6678
6679
6680 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6681
6682         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6683           Create handle. NET_2_0: Destroy handle when value is null.
6684
6685 2005-10-03  Jackson Harper  <jackson@ximian.com>
6686
6687         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6688         revert and a new patch to prevent the thumb from refreshing so
6689         much.
6690
6691 2005-10-02  Jackson Harper  <jackson@ximian.com>
6692
6693         * ScrollBar.cs: Don't update position if it hasn't actually
6694         changed. This occurs when you hold down the increment/decrement
6695         buttons and the thumb gets to the max/min.
6696
6697 2005-10-01  Jackson Harper  <jackson@ximian.com>
6698
6699         * Form.cs:
6700         * MdiChildContext.cs:
6701         * MdiClient.cs: Implement ActiveMdiChild in Form.
6702
6703 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6704
6705         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6706
6707 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6708
6709         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6710           be found
6711
6712 2005-09-30  Jackson Harper  <jackson@ximian.com>
6713
6714         * ListBox.cs: Don't do a full refresh unless some data has
6715         actually changed.
6716
6717 2005-09-30  Jackson Harper  <jackson@ximian.com>
6718
6719         * TreeView.cs: Make sure that the checkboxes size is factored in
6720         even when not visible.
6721
6722 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6723
6724         * FileDialog.cs: Fix Jordi's build break
6725
6726 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6727
6728         * FileDialog.cs: 
6729                 - Use standard the Windows colours for the combobox as espected
6730                 - Dispose objects that use resouces when no longer need them
6731
6732 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6733
6734         * X11DesktopColors.cs: Initial incomplete implementation
6735         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6736
6737 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6738
6739         * Theme.cs: 
6740           - Switched Theme color names to match the names defined in 
6741             System.Drawing.KnownColors. Life's hard enough, no need to make 
6742             it harder.
6743           - Added setters to all theme color properties so themes can set
6744             their color schemes. The setters also propagate the color changes
6745             to System.Drawing.KnownColors via reflection
6746         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6747           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6748           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6749           use the new, more logical theme color names
6750         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6751           post-NT colors
6752         * ThemeWin32Classic.cs:
6753           - Removed code to set the old classic Windows colors. Instead it
6754             now relies on the colors returned by System.Drawing.KnownColors
6755             which will be either modern static colors (Unix) or colors
6756             read from the user's configuration (Win32)
6757           - Updated to use the new, more logical theme color names
6758           - Switched DataGrid drawing code to use only Theme colors instead of
6759             a mix of System.Drawing.KnownColors and Theme colors
6760           - DrawFrameControl(): Removed code that fills the button area, the
6761             fill would overwrite any previous fill done by a control. This
6762             fixes bug #75338 
6763           - Added DrawReversibleRectangle() stub
6764         * ScrollableControl.cs: Set visible state to false when scrollbars
6765           are removed (pdn fix)
6766         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6767           DrawReversibleRectangle() method to allow drawing primitive 
6768           'rubber bands'
6769         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6770
6771 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6772
6773         * ImageList.cs: Add(Icon): Create handle.
6774
6775 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6776
6777         * ListView.cs:
6778         * ThemeWin32Classic.cs:
6779                 - Fixes detail mode
6780                 - Sets clippings
6781                 - Issues with drawing
6782
6783 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6784
6785         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6786           source has to be the ImageList.
6787
6788 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6789
6790         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6791
6792 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6793
6794         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6795
6796 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6797
6798         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6799
6800 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6801         * GridItem.cs: Fixed TODOs
6802         * GridItemCollection.cs: Added ICollection interface
6803
6804 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6805
6806         * ImageList.cs: Resize icons when needed.
6807
6808 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6809
6810         * ListViewItem.cs
6811                 - Fixes GetBounds and returns on screen rects
6812         * ListView.cs:
6813                 - Fixes vertical and horzintal scrolling of items
6814         * ThemeWin32Classic.cs:
6815                 - Fixes drawing
6816                 
6817 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6818
6819         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6820
6821 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6822
6823         * ImageList.cs: Added comments about handle creation. Moved Handle,
6824           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6825           Handle is created in Add methods.
6826
6827 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6828          
6829         * DataGridDrawingLogic.cs: 
6830                 - Takes rows into account on Colum calculations
6831                 - Returns the column when clickig
6832         * DataGrid.cs:
6833                 - Fixes default HitTestInfo values
6834                 - Fixes HitTestInfo.ToString
6835                 - Fixes ResetBackColor          
6836         
6837 2005-09-28  Jackson Harper  <jackson@ximian.com>
6838
6839         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6840         sizing or cursor changes). Also added some temp code to draw the
6841         titlebars text (Makes dev a little easier).
6842
6843 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6844
6845         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6846
6847 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6848          
6849         * ListBox.cs: Fixes bug 76253
6850
6851 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6852
6853         * ImageList.cs: Added comments about the current implementation. Added
6854           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6855           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6856           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6857           with Bitmap.LockBits for better performance. Revised the whole file to
6858           match MS.NET behaviour and provide better performance. Non-public
6859           interface members are calling public members even when they throw
6860           NotSupportedException for better maintainability. Moved ColorDepth,
6861           ImageSize, ImageStream and TransparentColor implementations to
6862           ImageCollection for better performance as these properties are not used
6863           by ImageList.
6864         * ImageListStreamer.cs: Added a new internal constructor that takes an
6865           ImageList.ImageCollection and serializes Images based on
6866           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6867           match ImageList property name.
6868
6869 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6870
6871         * ListBox.cs: Fixes IndexFromPoint for last item
6872
6873 2005-09-27  Jackson Harper  <jackson@ximian.com>
6874
6875         * Form.cs: Set the position of new mdi children correctly.
6876
6877 2005-09-27  Jackson Harper  <jackson@ximian.com>
6878
6879         * MdiClient.cs: New mdi children need to be added to the back of
6880         the controls collection so the zorder is set correctly. Also add a
6881         count of all the child windows that have been created.
6882
6883 2005-09-27  Jackson Harper  <jackson@ximian.com>
6884
6885         * Form.cs (CreateParams): Setup MDI forms correctly.
6886
6887 2005-09-27  Jackson Harper  <jackson@ximian.com>
6888
6889         * MdiChildContext.cs:
6890         * MonthCalendar.cs:
6891         * UpDownBase.cs:
6892         * ListBox.cs:
6893         * ListView.cs:
6894         * TextBoxBase.cs:
6895         * TreeView.cs:
6896         * ScrollableControl.cs:
6897         * ComboBox.cs: Add implicit controls using the new implict control
6898         functionality in ControlCollection. Also try to block multiple
6899         control add in a suspend/resume layout to save some cycles.
6900         
6901 2005-09-27  Jackson Harper  <jackson@ximian.com>
6902
6903         * Control.cs: Add functionality to the controls collection to add
6904         'implicit controls' these are controls that are created by the
6905         containing control but should not be exposed to the user. Such as
6906         scrollbars in the treeview.
6907         * Form.cs: The list var of the ControlsCollection is no longer
6908         available because of the potential of implicit controls getting
6909         ignored by someone accessing the list directly.
6910
6911 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6912
6913         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6914           loose it's parent. (Fixed bug introduced in r49103 when we added
6915           setting the child parent to null on Remove)
6916
6917 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6918
6919         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6920         * Splitter.cs: Added missing attributes for BorderStyle property.
6921         * TextBoxBase.cs: Marked Calculate* methods internal.
6922         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6923         MS.NET.
6924
6925 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6926          
6927         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6928
6929 2005-09-25  Jackson Harper  <jackson@ximian.com>
6930
6931         * TreeView.cs: Update the node bounds correctly regardless of
6932         whether the node is visible.
6933
6934 2005-09-25  Jackson Harper  <jackson@ximian.com>
6935
6936         * ImageList.cs: Don't dispose the image after it is added to the
6937         image list. Only reformat images that need to be resized.
6938
6939 2005-09-25  Jackson Harper  <jackson@ximian.com>
6940
6941         * ImageList.cs: Don't set the format when changing the image.
6942
6943 2005-09-25  Jackson Harper  <jackson@ximian.com>
6944
6945         * TreeView.cs: We can't just assume the node has a font. Use the
6946         treeviews font if no node font is available.
6947
6948 2005-09-25  Jackson Harper  <jackson@ximian.com>
6949
6950         * TreeView.cs: Allow the scrollbars to be reset with negative
6951         values.
6952         - Don't add scrollbars to negative sized windows.
6953
6954 2005-09-23  Jackson Harper  <jackson@ximian.com>
6955
6956         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6957         old Mono.Posix. Also remove some stray code that shouldn't have
6958         been committed.
6959
6960 2005-09-23  Jackson Harper  <jackson@ximian.com>
6961
6962         * TreeView.cs: Attempt at proper sizing of the horizontal
6963         scrollbar. Also don't resize the scrollbars unless they are
6964         visible.
6965
6966 2005-09-23  Jackson Harper  <jackson@ximian.com>
6967
6968         * TreeView.cs: We don't need to expand the invalid area when the
6969         selection changes, as this is all drawn in the node's bounding
6970         box. The area needs to be expanded (previous typo was contracting
6971         it) when the focus rect moves.
6972
6973 2005-09-23  Jackson Harper  <jackson@ximian.com>
6974
6975         * TreeView.cs: Display the selection box under the correct
6976         circumstances. We were rendering white text with no selection box
6977         before.
6978
6979 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6980
6981         * TextControl.cs(Split): Now updates selection start/end if it points 
6982           into a line that's being split. Fixes a FIXME and bug #75258
6983
6984 2005-09-23  Jackson Harper  <jackson@ximian.com>
6985
6986         * Binding.cs:
6987         * ListControl.cs: Don't use the path when retrieving binding
6988         managers from the binding context. My bat sense tells me that the
6989         path is only used on insertion.
6990
6991 2005-09-22  Jackson Harper  <jackson@ximian.com>
6992
6993         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6994
6995 2005-09-22  Jackson Harper  <jackson@ximian.com>
6996
6997         * Splitter.cs: There are special cursors used for splitting.
6998         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6999
7000 2005-09-22  Jackson Harper  <jackson@ximian.com>
7001
7002         * Splitter.cs: Change the cursor appropriately when the splitter
7003         is moused over, so the user actually knows there is a splitter
7004         there.
7005
7006 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7007
7008        * Label.cs : Fix ToString method to give same output as MS.NET
7009
7010 2005-09-22  Jackson Harper  <jackson@ximian.com>
7011
7012         * TreeView.cs: Create the scrollbars when the handle is created
7013         and add them right away, just make them invisble. Also account for
7014         the window being shrunk vertically to the point that the vert
7015         scrollbar needs to be added.
7016         - Remove some 0.5 adjustments to get around anti aliasing issues.
7017         
7018 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7019          
7020         * MainMenu.cs: Fixes default value
7021         * MenuItem.cs: Fixes default value
7022
7023 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7024
7025         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7026
7027 2005-09-21  Jackson Harper  <jackson@ximian.com>
7028
7029         * Control.cs: Don't try to set the border style on the window if
7030         it hasn't been created. When the window is created the border
7031         style will be used.
7032
7033 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7034
7035         * Control.cs (Update): Don't call XplatUI if we don't have a
7036           window handle yet
7037
7038 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7039
7040         * ContainerControl.cs: Instead of throwing an exception, print
7041           a one-time warning about Validate not being implemented
7042         * XplatUIWin32.cs: Removed debug output
7043
7044 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7045
7046         * Control.cs: Only set XplatUI background if we expect the windowing
7047           system to handle the background. This stops controls that draw their
7048           own background from flickering
7049
7050         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7051           creation. This allows, amongst other things, using MWF X11 windows 
7052           with OpenGL.
7053
7054 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7055
7056         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7057           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7058           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7059           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7060           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7061           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7062           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7063           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7064           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7065           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7066           GridColumnStylesCollection.cs, 
7067           IDataGridColumnStyleEditingNotificationService.cs,
7068           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7069           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7070           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7071           TreeNodeCollection.cs, AmbientProperties.cs, 
7072           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7073           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7074           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7075           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7076           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7077           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7078           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7079           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7080           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7081           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7082           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7083           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7084           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7085           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7086           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7087           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7088           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7089           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7090           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7091           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7092           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7093           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7094           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7095           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7096           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7097           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7098           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7099           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7100           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7101           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7102           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7103           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7104           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7105           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7106           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7107           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7108           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7109
7110 2005-09-21  Jackson Harper  <jackson@ximian.com>
7111
7112         * TreeNode.cs: Call Before/After Expand not Collapse when
7113         expanding.
7114
7115 2005-09-20  Jackson Harper  <jackson@ximian.com>
7116         
7117         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7118
7119 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7120          
7121         * ListViewItem.cs:
7122                 - Fixes bug 76120
7123                 - Fixes proper storing of subitems
7124                 - Fixes not updated items
7125
7126 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7127
7128         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7129           things if our window handle isn't created yet. Also disabled 
7130           debug for TextBoxBase
7131
7132 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7133
7134         * MenuAPI.cs: Remove filtering of events to allow menu usage
7135
7136 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7137
7138         * Cursor.cs: Allow null to be passed to Cursor.Current.
7139
7140 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7141
7142         * ThemeWin32Classic.cs:
7143           - Change some private methods/fields to protected virtual so that 
7144             they can be accessed and overriden in derived classes
7145           - First refactoring of some methods. Derived themes now don't 
7146             need to duplicate the complete code from ThemeWin32Classic
7147         * ThemeNice.cs:
7148           - Added nice StatusBar
7149           - Derive from ThemeWin32Classic and not Theme
7150           - Removed duplicate ThemeWin32Classic code
7151
7152 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7153
7154         * Control.cs (ControlCollection.Add): If the value null is passed
7155         the control is ignored. 
7156
7157         Optimize this loop.
7158
7159 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7160
7161         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7162           PostQuitMessage state.
7163         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7164
7165 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7166
7167         * Application.cs: Our constructor will never get called, move 
7168           initialization to fields; fixes bug #75933
7169
7170 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7171
7172         * FileDialog.cs :
7173                 - Allow files to be selected properly using file name
7174                 combo box.
7175                 - Add ability to change diretory (absolute / relative)
7176                 using file name combo box.
7177
7178 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7179          
7180         * ListBox.cs: 
7181                 - Fixes Multicolumn listboxes item wrong calculations
7182                 - Allows to click when only one item is in the listbox
7183                 - Fixes crash when no items using keyboard navigation
7184
7185 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7186
7187         * ComboBox.cs: Reverted almost everything from the latest patch which
7188           broke ComboBox
7189
7190 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7191         
7192         * ToolTip.cs:
7193                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7194         * ComboBox.cs:
7195                 - When DropDownStyle is Simple, it does not show scrollbar 
7196                 to the last item of the list.
7197                 - When DropDownStyle is Simple, it crashed when the list was 
7198                 scrolled down with the down cursor key.
7199                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7200                 selected item was not shown.
7201                 - The position of the selected item was not preserved when 
7202                 the next dropdown happened.
7203         * ThemeWin32Classic.cs:
7204                 - Items were wrapped at the right end.
7205         * CheckedListBox.cs:
7206                 - Fixed Add method
7207         * ListBox.cs:
7208                 - Items should be fully shown.
7209                 - When resizing and vertical scrollbar disappeared, the item 
7210                 of index 0 should be on the top of the list.
7211                 - GetItemRectangle should consider the size of ver. scrollbar
7212         * StatusBar.cs:
7213                 - SizingGrip area should not be allocated when it is not 
7214                 displayed.
7215                 - Now it reflects MinWidth of the containing panel and 
7216                 fixed a crash that happens when its width becomes so small.
7217
7218 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7219
7220         * CheckedListBox.cs: Fixes bug 76028
7221         * ListBox.cs: Fixes bug 76028
7222
7223 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7224
7225         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7226         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7227
7228 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7229
7230         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7231
7232 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7233
7234         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7235
7236 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7237
7238         * IRootGridEntry.cs: Added
7239         * PropertyGridCommands.cs: Added
7240         * PropertiesTab.cs: Added missing methods and property
7241         * PropertyGridView.cs: Made class internal
7242         * PropertyGridTextBox.cs: Made class internal
7243
7244 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7245
7246         * MimeIcon.cs: Try to check some other environment variables
7247           if "DESKTOP_SESSION" returns "default"
7248
7249 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7250
7251         * ThemeNice.cs: Corrected background colors (e.g. menus)
7252         * ColorDialog.cs: Use correct background colors for controls
7253
7254 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7255
7256         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7257
7258 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7259
7260         * RichTextBox.cs: Added initial implementation
7261         * lang.cs: Removed. Was accidentally checked in long time ago
7262         * TODO: Removed. Contents were obsolete
7263
7264 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7265                                                                                 
7266         * PropertiesTab.cs : Added
7267
7268 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7269                                                                                 
7270         * PropertyGrid.cs : Update
7271         * PropertyGridView.cs : Update
7272         * System.Windows.Forms.resx : Added images and strings
7273
7274 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7275
7276         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7277  
7278 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7279
7280         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7281           a busy loop right after the Ungrab the X11 display is otherwise 
7282           blocked
7283
7284 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7285
7286         * ThemeWin32Classic.cs: Optimise the use of clipping
7287
7288 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7289
7290         * DataGrid.cs: fixes recursion bug
7291
7292 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7293
7294         * ThemeNice.cs: 
7295           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7296           - Cleanup
7297
7298 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7299
7300         * ThemeNice.cs: Draw nice ProgressBars
7301
7302 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7303
7304         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7305
7306         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7307         bug finder.
7308
7309 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7310
7311         * ThemeNice.cs:
7312           - Added nicer menu drawing
7313           - Updated DrawTab
7314           - some refactoring
7315
7316 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7317
7318         * CreateParams.cs (ToString): Made output match MS
7319         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7320             handle is already created (to avoid forcing window creation)
7321         * XplatUIX11.cs: Set window text to caption after creating window,
7322           in case Text was set before window was created
7323         * Form.cs: Use this.Text instead of a static string as caption
7324
7325 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7326
7327         * NotifyIcon.cs: Don't set the window to visible; this screws
7328           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7329           OnPaint without a bitmap)
7330         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7331           happen very often anyway; we could add the check to the WM_PAINT 
7332           event generation code
7333
7334 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7335
7336         * NotifyIcon.cs: Fill the icon area with a background color, to 
7337           avoid 'residue' when transparent icons are drawn
7338         * XplatUIX11.cs:
7339           - Handle whole_window == client_window when destroying windows
7340           - SystrayAdd(): Set client_window to whole_window value to
7341             get mouse and other events passed to NotifyIcon
7342
7343 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7344
7345         * Form.cs: Set proper default for Opacity property
7346         * NotifyIcon.cs:
7347           - ShowSystray(): Don't bother creating telling the OS
7348             about the systray item if no icon is provided
7349           - Now handles WM_NCPAINT message to deal with whole/client window
7350             split
7351           - Create window as visible to not get caught by Expose optimization
7352         * Hwnd.cs: Removed debug message
7353         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7354           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7355             PaintEventStart/End to use new client argument
7356         * TextBoxBase.cs:
7357           - Commented out debug messages
7358           - Switched PaintEventStart/End to use new client argument
7359         * XplatUI.cs: Added client window bool to PaintEventStart()/
7360           PaintEventEnd() calls, to support drawing in non-client areas
7361         * XplatUIDriver.cs: 
7362           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7363             calls, to support drawing in non-client areas
7364           - Added conditional compile to allow using MWF BeginInvoke 
7365             on MS runtime
7366         * XplatUIX11.cs:
7367           - Added some conditional debug output
7368           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7369             whole/client window split
7370           - Implemented handling of client argument to PaintEventStart()/End()
7371         * Control.cs:
7372           - Throw exception if BeginInvoke() is called and the window handle
7373             or one of the window's parent handles is not created
7374           - Added conditional compile to allow using MWF BeginInvoke on
7375             MS runtime
7376           - get_Parent(): Only sets parent if handle is created. This avoids
7377             forcing window handle creation when parent is set.
7378           - Now fires Layout and Parent changed events in proper order
7379           - Switched to use Handle instead of window.Handle for Z-Order setting,
7380             the get_Parent() patch above causes us to possibly get null for 'window'
7381           - Implemented handling of client argument to PaintEventStart()/End()
7382           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7383             default handling)
7384           - Now sends a Refresh() to all child windows when Refresh() is called
7385
7386 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7387
7388         * Form.cs: Added (non-functional) Opacity property
7389         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7390
7391 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7392         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7393           use export MONO_THEME=nice to activate it.
7394           Currently supported controls:
7395           - Button
7396           - ComboBox
7397           - ScrollBar
7398           - TabControl (TabAlignment.Top only, other will follow)
7399         * ThemeEngine.cs: Add theme nice
7400         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7401           if enabled
7402
7403 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7404
7405         * Splitter.cs: Resize docked control and its neighbor.
7406
7407 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7408         -- Making Windows with Menus layout correctly --
7409         * Form.cs : The first leg of the fix
7410                 Menu setter - adjust Client Size as needed to make space for the menu
7411                 SetClientSizeCore - doesn't call base version to be able to pass the 
7412                         menu handle to XplatUI.CalculateWindowRect
7413         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7414         * XplatUIX11.cs: The critical second leg of the fix
7415                 GetWindowPos needs to use a recalculated client_rect
7416                 so that resizing the window doesn't break layout of child controls. 
7417                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7418                 Lots of \t\n killed
7419
7420 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7421
7422         * Label.cs: Now properly recalculates width and height on Font and Text
7423           changes if AutoSize is set
7424
7425 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7426         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7427
7428 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7429
7430         * ImageList.cs: Makes ToString method compatible with MS
7431
7432 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7433
7434         * MenuAPI.cs: fixes bug 75716
7435
7436 2005-08-11 Umadevi S <sumadevi@novell.com>
7437         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7438
7439 2005-08-11 Umadevi S <sumadevi@novell.com>
7440         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7441
7442 2005-08-10  Umadevi S <sumadevi@novell.com>
7443         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7444
7445 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7446
7447         * Menu.cs: fixes bug 75700
7448         * MenuAPI.cs: fixes navigation issues
7449
7450 2005-08-09  Umadevi S <sumadevi@novell.com>
7451         * CheckedListBox.cs - simple fix for GetItemChecked.
7452
7453 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7454
7455         * ComboBox.cs: Serveral fixes
7456         * ListBox.cs: Serveral fixes
7457
7458 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7459
7460         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7461         * ListBox.cs: Fixes FindString methods
7462
7463 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7464
7465         * DataGrid.cs: fixes bugs exposed by new tests
7466
7467 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7468
7469         * Mime.cs: Compile Mono assembly references only if compiling
7470           with Mono (Allows to build with VS.Net again)
7471
7472 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7473
7474         * Control.cs (PaintControlBackground): Draw background image
7475         corrrectly.
7476         (CheckForIllegalCrossThreadCalls): Stubbed.
7477         
7478         * Form.cs (OnCreateControl): Center when should be centered.
7479         
7480         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7481
7482 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7483
7484         * Binding.cs: Binding to properties should be case unsensitive
7485
7486 2005-07-18 vlindos@nucleusys.com
7487
7488         * DataGrid.cs: fixes setmember order
7489
7490 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7491
7492         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7493         * FileDialog.cs: FileDialog is now resizable and uses the new
7494           MimeIconEngine
7495
7496 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7497
7498         * DataGridTextBoxColumn.cs: default value
7499         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7500         * GridTableStylesCollection.cs: fixes checking MappingName
7501         * DataGridDrawingLogic.cs: fixes drawing logic issues
7502         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7503         * DataGrid.cs: fixes    
7504
7505 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7506
7507         * MimeGenerated.cs: Use case sensitive comparer for
7508           NameValueCollections
7509
7510 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7511
7512         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7513         * ThemeWin32Classic.cs: bug fixes, code refactoring
7514         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7515         * DataGrid.cs: bug fixes, code refactoring
7516         * DataGridTextBox.cs: bug fixes, code refactoring
7517         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7518         * Theme.cs:  bug fixes, code refactoring
7519
7520 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7521
7522         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7523           and other text box usage
7524
7525 2005-07-01  Jackson Harper  <jackson@ximian.com>
7526
7527         * TabControl.cs: Make sure the bottom of the tab covers the pages
7528         border.
7529
7530 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7531
7532         * Form.cs (ShowDialog): Assign owner of the dialog
7533         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7534           might have been moved to a tag with different height
7535
7536 2005-06-30  Jackson Harper  <jackson@ximian.com>
7537
7538         * Form.cs: Don't create an infinite loop when setting focus
7539         * MenuItem.cs: Don't dirty the parents if we don't have any
7540
7541 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7542
7543         * LibSupport.cs: Rename
7544
7545 2005-06-29  Peter Bartok  <pbartok@novell.com>
7546
7547         * TextBoxBase.cs: Re-align caret after deleting a character
7548         * TextControl.cs:
7549           - DeleteChars(): Ensure that tag covers the provided position
7550           - StreamLine(): Drop reference for dropped tag
7551
7552 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7553
7554         * TextControl.cs: 
7555           - Selections now work properly, anchoring at the initial location
7556             and properly extending in either direction (SetSelectionToCaret(),
7557             SetSelectionStart() and SetSelectionEnd())
7558           - No longer redraws the whole control on selection change, now
7559             calculates delta between previous and new selection and only
7560             invalidates/redraws that area
7561           - Fixed FindPos() math off-by-one errors
7562           - Changed DeleteChars() to verify the provided tag covers the
7563             provided position, selections may have a tag that doesn't cover
7564             the position if the selection is at a tag border
7565           - Fixed off-by-one errors in DeleteChars()
7566           - Added missing streamlining check in DeleteChars() to remove
7567             zero-length tags
7568           - Implemented Invalidate() method, now properly calculates exposures
7569             between two given lines/positions
7570           - Implemented SetSelection()
7571           - Obsoleted and removed FixupSelection()
7572           - Improved RecalculateDocument() logic, removing code duplication
7573
7574 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7575
7576         * LibSupport.cs: changes to match different input/output arguments.
7577
7578 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7579
7580         * LibSupport.cs: added libsupport.so init routine.
7581
7582 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7583         
7584         * ControlBindingsCollection.cs
7585                 - Throws an exception on null datasource when adding
7586                 - Checks for duplicated bindings when adding
7587
7588 2005-06-28  Jackson Harper  <jackson@ximian.com>
7589
7590         * TreeView.cs (OnKeyDown): Support left and right properly
7591         (navigates as well as expanding and collapsing.
7592         - Add support for Multiply, this expands all the selected nodes
7593         children.
7594         - Fix some tabbing.
7595
7596 2005-06-28  Jackson Harper  <jackson@ximian.com>
7597
7598         * TreeView.cs: Implement keyboard navigation, currently supports,
7599         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7600         support for toggling checkboxes with the space bar.
7601
7602 2005-06-28  Jackson Harper  <jackson@ximian.com>
7603
7604         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7605         tree.
7606
7607 2005-06-28  Jackson Harper  <jackson@ximian.com>
7608
7609         * TreeView.cs: Add missing event.
7610
7611 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7612
7613         * TextControl.cs:
7614           - Made line ending size configurable (now allows for counting 
7615             lineendings as \n or \r\n)
7616           - Added margin to viewport to keep caret visible on right side
7617           - Fixed translation routines for line/pos to documentpos to consider
7618             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7619           - Fixed some line-endings to be unix style
7620           - Fixed Document.FormatText to perform it's calculations 1-based
7621           - Added descriptions for a few methods that might otherwise get 
7622             used wrong
7623           - Added NOTE section with some basic conventions to remember at 
7624             the top of the file
7625           - Major fixup for RichTextBox selection drawing:
7626             * Fixed crashes when multiple tags on a single line were selected
7627             * fixed selection box drawing not overlaying text
7628             * fixed bogus offset calculation for tags not starting at index 1
7629             * Switched behaviour from using multiple Substrings of a 
7630               StringBuilder.ToString() to using multiple 
7631               StringBuilder.ToString(start, length) statements, hoping this is
7632               faster (kept original version commented out in the code, in case
7633               original version was faster)
7634         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7635           alignment != Left
7636         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7637           call it as well
7638
7639 2005-06-27  Jackson Harper  <jackson@ximian.com>
7640
7641         * TabControl.cs: Move to the left and right with the arrow
7642         keys. These keys don't cycle beyond first and last like
7643         tab. Refresh all the tabs when scrolling them to the left or
7644         right.
7645
7646 2005-06-27  Jackson Harper  <jackson@ximian.com>
7647
7648         * TabControl.cs:
7649           - ToString: Added method
7650           - CreateParams: Remove TODO and comment
7651           - OnKeyDown: Cycle through bounds properly.
7652           - SelectedIndex: Scroll to the right or left if we need to
7653           display the newly selected tab.
7654
7655 2005-06-23  Jackson Harper  <jackson@ximian.com>
7656
7657         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7658         set.
7659
7660 2005-06-23  Jackson Harper  <jackson@ximian.com>
7661
7662         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7663         CTRL-SHIFT-TAB, and HOME, END are there any others?
7664
7665 2005-06-23  Jackson Harper  <jackson@ximian.com>
7666
7667         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7668
7669 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7670         
7671         * DataGridTextBoxColumn.cs: fixes and enhancements
7672         * ThemeWin32Classic.cs: fixes and enhancements
7673         * DataGridBoolColumn.cs:  fixes and enhancements
7674         * DataGridDrawingLogic.cs:  fixes and enhancements
7675         * CurrencyManager.cs: fixes and enhancements
7676         * DataGrid.cs: fixes and enhancements
7677         * DataGridColumnStyle.cs:  fixes and enhancements
7678
7679 2005-06-22  Jackson Harper  <jackson@ximian.com>
7680
7681         * TabControl.cs: Add some missing methods that just call into the
7682         base. Make the TabPageCollection's IList interface behave in the
7683         same manner as the MS implementation.
7684
7685 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7686
7687         * TextControl.cs: Added sanity check
7688         * TextBoxBase.cs: 
7689           - Fixed wrapping behaviour, don't set wrap on single line controls
7690             (this fixes the breakage of colordialog introduced in an earlier
7691              checkin)
7692           - Added rudimentary support for autoscrolling right-aligned controls
7693             (still needs fixing, also, center alignment scroll is missing)
7694
7695 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7696         
7697         * ScrollBar.cs: Fixes thumbpos on Maximum values
7698
7699 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7700         
7701         * PropertyGridView.cs: Pass context information to UITypeEditors 
7702
7703 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7704
7705         * TextBoxBase.cs:
7706           - Now calling PositionCaret with absolute space coordinates
7707           - Enabled vertical scrolling
7708           - Better tracking of scrollbar changes, tied into WidthChange
7709             event
7710           - Improved cursor tracking
7711           - Removed debug output
7712         * TextControl.cs:
7713           - PositionCaret coordinates are now works in absolute space, not 
7714             the canvas
7715           - Improved tracking of document size
7716           - Added events for width and height changes
7717
7718 2005-06-21  Peter Bartok  <pbartok@novell.com>
7719
7720         * Form.cs: Set focus to active control when form is activated
7721         * TextControl.cs: 
7722           - Added word-wrap functionality to RecalculateLine() 
7723           - Added some short function descriptions for VS.Net to aid in
7724             writing dependent controls
7725           - Added Caret property, returning the current coords of the caret
7726           - Added ViewPortWidth and ViewPortHeight properties
7727           - Added Wrap property
7728           - Added CaretMoved event
7729           - Removed some old debug code
7730           - Split() can now create soft splits
7731           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7732           - Added method to format existing text
7733           - Fixed size/alignment calculations to use viewport
7734           - RecalculateDocument now can handle changing line-numbers while
7735             calculating lines
7736
7737         * TextBox.cs:
7738           - Added some wrap logic, we don't wrap if alignment is not left
7739           - Added casts for scrollbar var, base class switched types to
7740             also support RichTextBoxA
7741           - Implemented handling of scrollbar visibility flags
7742
7743         * TextBoxBase.cs:
7744           - Switched scrollbars type to RichTextBoxScrollBars to support
7745             RichTextBox
7746           - Added tracking of canvas width/height
7747           - Switched scrollbars to be not selectable (to keep focus on text)
7748           - Added central CalculateDocument() method to handle all redraw
7749             requirements
7750           - Added ReadOnly support
7751           - Added WordWrap support
7752           - Fixed handling of Enter key (we now treat it as a DialogKey)
7753           - Fixed caret positioning when h or v scroll is not zero
7754           - Fixed placing/generation of vertical scrollbar
7755           - Added CalculateScrollBars() method to allow updating scrollbar
7756             limits and visibility
7757           - Fixed handling of horizontal scroll
7758           - Added handling of vertical scroll
7759           - Implemented auto-'jump' when caret moves to close to a left or
7760             right border and there is text to be scrolled into view (currently
7761             there's the potential for a stack overflow, until a bug in
7762             scrollbar is fixed)
7763
7764 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7765         
7766         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7767
7768 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7769
7770         * Mime.cs:
7771         - added inodes.
7772         - return application/x-zerosize for files with size zero
7773           (if no extension pattern matches).
7774         - check matches collection for strings too.
7775         - return only the first mime type if the name value
7776           collection has more than one mime type.
7777
7778 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7779         
7780         * PropertyGrid.cs: Cleaned up some TODOs
7781         * PropertyGridView.cs: Added support for UITypeEditors
7782
7783 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7784         
7785         * DataGrid.cs: clears cached value
7786
7787 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7788
7789         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7790         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7791         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7792         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7793         
7794 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7795
7796         * ThemeWin32Classic.cs: fixes colour
7797
7798 2005-06-15  Peter Bartok  <pbartok@novell.com>
7799
7800         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7801         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7802         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7803         * Control.cs: Added some MWFCategory and MWFDescription attributes
7804         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7805
7806 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7807
7808         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7809         usage
7810
7811 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7812
7813         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7814         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7815         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7816         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7817         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7818         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7819
7820 2005-06-13  Jackson Harper  <jackson@ximian.com>
7821
7822         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7823         isn't printed when the user enables dropping. (X11 does accept
7824         drops).
7825         
7826 2005-06-13  Jackson Harper  <jackson@ximian.com>
7827
7828         * TreeView.cs: Remove some TODOS.
7829
7830 2005-06-13  Jackson Harper  <jackson@ximian.com>
7831
7832         * Form.cs: Hook into the mdi framework.
7833         * MdiClient.cs: Use the base control collections add method so
7834         parents get setup correctly. Set the default back colour and dock
7835         style.
7836         * MdiChildContext.cs: New class, this bad actor handles an
7837         instance of an MDI window. Right now there is only basic
7838         support. You can drag, close, and resize windows. Minimize and
7839         Maximize are partially implemented.
7840
7841 2005-06-13  Jackson Harper  <jackson@ximian.com>
7842
7843         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7844         freaky when both vals are negative. NOTE: There are probably other
7845         places in XplatUIX11 that this needs to be done.
7846
7847 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7848
7849         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7850         * DataGridColumnStyle.cs: fixes signature
7851
7852 2005-06-12  Jackson Harper  <jackson@ximian.com>
7853
7854         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7855         windows.
7856
7857 2005-06-11  Jackson Harper  <jackson@ximian.com>
7858
7859         * StatusBarPanel.cs: Signature cleanups. Implement
7860         BeginInit/EndInit.
7861
7862 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7863
7864         * DataGridTextBoxColumn.cs: Honors aligment
7865         * GridColumnStylesCollection.cs: Contains is case unsensitive
7866         * GridTableStylesCollection.cs: several fixes
7867         * DataGridTableStyle.cs: default column creation
7868         * DataGridDrawingLogic.cs: fixes
7869         * CurrencyManager.cs: ListName property
7870         * DataGrid.cs: multiple styles support
7871         * DataGridColumnStyle.cs: fixes
7872         
7873
7874 2005-06-10  Peter Bartok  <pbartok@novell.com>
7875
7876         * Control.cs(Select): Moved SetFocus call to avoid potential
7877           loops if controls change the active control when getting focus
7878         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7879           the up/down buttons
7880
7881 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7882
7883         * ImageListConverter.cs: Implemented
7884
7885 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7886
7887         * MonthCalendar.cs: Wired in NumericUpDown control for year
7888
7889 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7890
7891         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7892           DoubleClick events, since they are not meant to be fired.
7893
7894 2005-06-09  Peter Bartok  <pbartok@novell.com>
7895
7896         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7897           Jonathan's standalone controls into MWF, implemented missing
7898           events, attributes and methods; added xxxAccessible classes
7899         * AccessibleObject.cs: Made fields internal so other classes
7900           can change them if needed
7901
7902 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7903
7904         * UpDownBase.cs: Complete implementation
7905         * NumericUpDown.cs: Complete implementation
7906         * DomainUpDown.cs: Complete implementation
7907
7908 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7909
7910         * DataGridTextBoxColumn.cs: drawing fixes
7911         * DataGridCell.cs: fixes ToString method to match MSNet
7912         * DataGridTableStyle.cs: fixes
7913         * DataGridBoolColumn.cs: fixes, drawing
7914         * DataGridDrawingLogic.cs: fixes, new methods
7915         * DataGridTextBox.cs: Keyboard and fixes
7916         * DataGrid.cs:
7917                 - Keyboard navigation
7918                 - Scrolling fixes
7919                 - Row selection (single, multiple, deletion, etc)
7920                 - Lots of fixes
7921         
7922 2005-06-07  Jackson Harper  <jackson@ximian.com>
7923
7924         * ThemeWin32Classic.cs: Clear the background area when drawing
7925         buttons.
7926
7927 2005-06-06  Peter Bartok  <pbartok@novell.com>
7928
7929         * ImageListStreamer.cs: Fixed signature for GetData
7930         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7931         * ComboBox.cs:
7932           - Added missing ChildAccessibleObject class
7933           - Added missing OnXXXFocus overrides, switched to using those
7934             instead of the event handler
7935         * Control.cs:
7936           - Added Parent property for ControlAccessibleObject
7937           - Fixed signatures
7938           - Fixed attributes
7939           - Added ResetBindings()
7940         * ListBindingConverter.cs: Implemented some methods
7941         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7942         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7943         * ContainerControl.cs: Fixed signature, now subscribing to the
7944           ControlRemoved event instead of overriding the handler, LAMESPEC
7945         * CurrencyManager.cs: Added missing attribute
7946         * MonthCalendar.cs: Added missing properties
7947
7948 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7949
7950         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7951         
7952 2005-06-06  Gaurav Vaish and Ankit Jain
7953
7954         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7955         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7956         
7957 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7958
7959         * Control.cs: fixes CreateParams Width / Height.
7960
7961 2005-06-05  Peter Bartok  <pbartok@novell.com>
7962
7963         * Win32DnD.cs: Removed compilation warnings
7964
7965 2005-06-05  Peter Bartok  <pbartok@novell.com>
7966
7967         * Control.cs (CreateParams): Since we don't know if one of the
7968           properties we use is overridden, lets make sure if we fail accessing
7969           we continue with a backup plan
7970
7971 2005-06-05  Peter Bartok  <pbartok@novell.com>
7972
7973         * Win32DnD.cs:
7974           - Removed debug output
7975           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7976             struct
7977           - Plugged resource leak
7978         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7979           MS size
7980
7981 2005-06-05  Peter Bartok  <pbartok@novell.com>
7982
7983         * XplatUIWin32.cs: Removed DnD code
7984         * Win32DnD.cs: Implemented drop source and drop target functionality
7985
7986 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7987
7988         * UpDownBase.cs: remove duplicate addition of event, enable some code
7989         that was commented out.
7990         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7991         Validate input when a key is pressed. It works fine now for every
7992         combination of Hexadecimal. Only missing some drawing love when sharing
7993         space with other controls.
7994
7995 2005-06-04  Peter Bartok  <pbartok@novell.com>
7996
7997         * Control.cs:
7998           - We need to pass a window for DragDrop, so enable callback events
7999           - Added DnD callback events when being a DragSource
8000         * XplatUI.cs (StartDrag): Added window handle argument
8001         * XplatUIDriver.cs (StartDrag): Added window handle argument
8002         * QueryContinueDragEventArgs: Made fields internally accessible so
8003           drivers can set them
8004         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8005           can set them
8006
8007 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8008
8009         * DataGridTextBoxColumn.cs: column text editing
8010         * DataGridTableStyle.cs: Respect columns styles created by the user
8011         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8012         * DataGridBoolColumn.cs: bool column editing
8013         * DataGrid.cs: fixes to scrolling, properties, etc
8014         * DataGridTextBox.cs: handle keyboard
8015         * DataGridColumnStyle.cs: fixes
8016
8017 2005-06-02  Jackson Harper  <jackson@ximian.com>
8018
8019         * ImageListStreamer.cs: Somewhat broken implementation of
8020         GetObjectData. The RLE needs some work to match MS properly.
8021
8022 2005-06-02  Jackson Harper  <jackson@ximian.com>
8023
8024         * X11Dnd.cs: Attempting to keep at least one file in MWF
8025         monostyled.
8026
8027 2005-06-02  Peter Bartok  <pbartok@novell.com>
8028
8029         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8030           that way
8031
8032 2005-06-02  Peter Bartok  <pbartok@novell.com>
8033
8034         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8035         * XplatUI.cs: Added DoDragDrop() method
8036         * XplatUIDriver.cs: Added DoDragDrop() method
8037
8038 2005-06-02  Jackson Harper  <jackson@ximian.com>
8039
8040         * Splitter.cs: Implement BorderStyle.
8041
8042 2005-06-02  Jackson Harper  <jackson@ximian.com>
8043
8044         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8045         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8046         X11 using XDND.
8047
8048 2005-06-02  Peter Bartok  <pbartok@novell.com>
8049
8050         * DataObject.cs:
8051           - Added Data setter
8052           - Fixed broken insertion code for SetData, now also
8053             overwrites any existing entry of the same format name
8054         * Hwnd.cs: Added list of pointers that automatically gets
8055           freed when the window is disposed
8056         * XplatUI.cs: Call driver initialization method when loading
8057           a driver
8058         * Control.cs:
8059           - OnDragLeave takes EventArgs, not DragEventArgs
8060           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8061             supported
8062           - Forces style update when drop state changes
8063         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8064           not perfect since we cannot (yet) call the IDataObject.GetData()
8065           method, we keep getting 0x80004005 error, dunno why)
8066
8067 2005-06-02  Peter Bartok  <pbartok@novell.com>
8068
8069         * DragEventArgs.cs: Make fields internal so we can cache the
8070           object and re-set the fields from XplatUI
8071
8072 2005-06-02  Jackson Harper  <jackson@ximian.com>
8073
8074         * Control.cs: Add some internal methods so the DnD subsystem can
8075         raise DnD events. Also call into the driver when AllowDrop is set.
8076         * XplatUI.cs:
8077         * XplatUIDriver.cs: New method for setting whether or not a window
8078         is allowed to accept drag and drop messages.
8079                 
8080 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8081         
8082         * ScrollBar.cs: Make sure that values sent in Scroll events
8083         are always between Maximum and Minimum.
8084
8085 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8086
8087         * Menu.cs: Call MenuChanged when menuitem visibility has been
8088         changed.
8089         * MenuItem.cs: Rebuild menu when item is (not) visible.
8090         * MainMenu.cs: MainMenu has special MenuChanged.
8091         * Theme.cs: Caption and FrameBorderSize are not fixed.
8092         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8093         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8094         * XplatUIX11.cs,
8095         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8096         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8097
8098 2005-05-30  Jackson Harper  <jackson@ximian.com>
8099
8100         * DataFormat.cs: We can't statically initialize this stuff because
8101         it calls into the xplatui and could create a loop. So we lazy init
8102         it.
8103
8104 2005-05-28  Jackson Harper  <jackson@ximian.com>
8105
8106         * Control.cs: Proper implementation of Product(Name/Version).
8107
8108 2005-05-27  Jackson Harper  <jackson@ximian.com>
8109
8110         * DataObject.cs: Dont crash if no data is found.
8111
8112 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8113         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8114                 as per status page, guessing it should be set to true
8115
8116 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8117
8118         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8119         * DataGridTableStyle.cs: set proper formatting text, def header text
8120         * ThemeWin32Classic.cs: new themable paramaters
8121         * DataGridBoolColumn.cs: paint check box, get data, fixes
8122         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8123         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8124         * DataGridColumnStyle.cs: fixes
8125         * Theme.cs: new themable paramaters
8126                 
8127 2005-05-26  Peter Bartok  <pbartok@novell.com>
8128
8129         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8130
8131 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8132         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8133
8134 2005-05-24  Peter Bartok  <pbartok@novell.com>
8135
8136         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8137           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8138           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8139           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8140           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8141           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8142           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8143           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8144           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8145           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8146           missing attributes, etc
8147         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8148
8149 2005-05-24  Peter Bartok  <pbartok@novell.com>
8150
8151         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8152           when user tries to get help
8153         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8154           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8155           to suppress warnings
8156         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8157           avoid unreachable code warning
8158
8159 2005-05-20  Peter Bartok  <pbartok@novell.com>
8160
8161         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8162
8163 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8164
8165         * DataGridTextBoxColumn.cs: Basic painting methods
8166         * DataGridTableStyle.cs: Set table style in the column
8167         * ThemeWin32Classic.cs: Use Theme for colors
8168         * DataGridDrawingLogic.cs: Implement more drawing
8169         * DataGrid.cs: drawing, theming, enhacements, fixes
8170         * DataGridColumnStyle.cs: fixes, drawing
8171         * Theme.cs: theming for Datagrid
8172
8173 2005-05-20  Peter Bartok  <pbartok@novell.com>
8174
8175         * Cursor.cs: Implemented GetObjectData() method
8176
8177 2005-05-20  Peter Bartok  <pbartok@novell.com>
8178
8179         * Cursors.cs: Added setting of cursor name
8180         * Cursor.cs:
8181           - Implemented constructors
8182           - Implemented Draw and DrawStretched
8183           - Implemented Current property
8184           - Implemented == and != operators
8185           - Implemented Dispose()
8186           - Implemented ToString
8187           - Added missing attributes
8188         * XplatUIX11.cs:
8189           - Added missing reset for OverrideCursor when DoEvents is called
8190           - Fixed creation of cursor, logic was wrong
8191         * XplatUIWin32.cs:
8192           - Added missing reset for OverrideCursor when DoEvents is called
8193           - Fixed creation of cursor, bit arrays were swapped
8194         * Clipboard.cs: Removed obsolete MonoTODO attribute
8195
8196 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8197
8198         * ComboBox.cs: fixes OnSelectedItemChanged
8199         * ControlBindingsCollection.cs: fixes item range check
8200
8201 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8202
8203         * UpDownBase.cs:
8204                 - Calc preferred height properly
8205                 - Implement missing properties
8206                 
8207         * NumericUpDown.cs: Implement missing events
8208
8209 2005-05-19  Jackson Harper  <jackson@ximian.com>
8210
8211         * TabControl.cs: New method that resizes the tab pages before
8212         redrawing them. This as needed as the control is double buffered
8213         and sizing will not be recalculated unless ResizeTabPages is
8214         called.
8215         * TabPage.cs: Set base.Text instead of Text in the constructor so
8216         that UpdateOwner does not get called. Use the new Redraw method of
8217         TabControl instead of Refresh so the sizing is recalculated.
8218         * ThemeWin32Classic.cs: Draw the text for button tabs.
8219
8220 2005-05-19  Jackson Harper  <jackson@ximian.com>
8221
8222         * Control.cs: Paint control background images. Fix typo where
8223         PaintControlBackground was not getting called correctly.
8224
8225 2005-05-19  Peter Bartok  <pbartok@novell.com>
8226
8227         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8228           I can investigate, apparently I broke FileDialog
8229
8230 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8231
8232         * AxHost.cs: Some simple properties.
8233         * Control.cs: window must be accessible after ctor.
8234         * Form.cs: Added TransparencyKey property.
8235         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8236         * XplatUIWin32.cs: SetBorderStyle implemented.
8237
8238 2005-05-18  Peter Bartok  <pbartok@novell.com>
8239
8240         * DataObject.cs: Entries are not global but particular to the
8241           DataObject, now it behaves that way
8242         * XplatUIWin32.cs: Implemented Clipboard methods
8243         * Clipboard.cs: Implemented
8244         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8245         * XplatUIOSX.cs: Updated to final clipboard prototypes
8246         * XplatUIX11.cs: Implemented Clipboard methods
8247         * XplatUIDriver.cs: Updated to final clipboard prototypes
8248         * XplatUIStructs.cs:
8249           - Added BITMAPINFOHEADER struct
8250           - Added ClipboardFormats enum
8251         * X11Structs.cs:
8252           - Added ClipboardStruct
8253           - Added Atom enum items for clipboard types
8254           - Fixed atom types for Selection event structures
8255         * DataFormats.cs:
8256           - Added internal properties and methods for drivers to enumerate
8257             all known formats
8258           - Switched initialization method to allow drivers to assign their
8259             own IDs even for the MS predefined clipboard IDs
8260         * XplatUI.cs: Updated to final clipboard interface
8261
8262 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8263         * PropertyGridView.cs: Fixed compiler warnings.
8264
8265 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8266         * PropertyGrid.cs: Added some event calls
8267         * PropertyGridView.cs: Change drawing code to use double buffering
8268         * PropertyGridTextBox.cs: Changed Text property name
8269         * GridItem.cs: Added Bounds property.
8270         * GridEntry.cs: Added Bounds property.
8271
8272 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8273
8274         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8275         since GetType() may not return the correct type if the object is
8276         a remoting proxy.
8277
8278 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8279
8280         * TreeNodeCollection.cs: fixes get/set item ranges
8281         
8282 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8283
8284         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8285                 
8286 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8287
8288         * ComboBox.cs: Fix item range comparation
8289         * ListView.cs: Fix item range comparation
8290
8291 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8292
8293         * FontDialog.cs:
8294           - Clear example panel when OnPaint is called
8295           - Better solution for displaying the example panel text
8296           - Select default indexes in the ListBoxes
8297
8298 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8299
8300         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8301
8302 2005-05-11  Peter Bartok  <pbartok@novell.com>
8303
8304         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8305         * SelectionRangeConverter.cs: Implemented
8306         * PropertyGrid.cs: Fixed attribute value
8307         * Control.cs:
8308           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8309           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8310         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8311           that's common to all drivers. First methods to go there are
8312           Sebastien Pouliot's CAS Stack Propagation helper methods
8313         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8314           Sebastien Pouliot for CAS Stack Propagation
8315
8316 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8317
8318         * OSXStructs.cs:
8319           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8320
8321 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8322
8323         * DataGridTextBoxColumn.cs: fixed some members
8324         * GridColumnStylesCollection.cs: indexed column is case insensitive
8325         * DataGridTableStyle.cs: fixes
8326         * ThemeWin32Classic.cs: add new theme parameter
8327         * Theme.cs: add new theme parameter
8328         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8329         * DataGrid.cs: fixes, new internal properties, etc.
8330         * DataGridColumnStyle.cs: allows to set grid value
8331         *
8332
8333 2005-05-10  Peter Bartok  <pbartok@novell.com>
8334
8335         * AccessibleObject.cs:
8336           - Removed MonoTODO attribute on help, method is correct
8337           - Fixed Bounds property
8338         * AxHost.cs: Moved MonoTODO
8339         * ButtonBase.cs: Now setting AccessibleObject properties
8340         * RadioButton.cs: Setting proper AccessibleObject role
8341         * CheckBox.cs: Setting proper AccessibleObject role
8342         * ControlBindingsCollection.cs: Added properties, methods and attributes
8343         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8344           userdefined DataFormats.Format items as well
8345         * ListControl.cs: Removed data_member from the public eye
8346         * OpenFileDialog.cs:
8347           - Made class sealed
8348           - Added missing attributes
8349         * SaveFileDialog.cs: Added missing attributes
8350         * ImageListStreamer.cs: Fixed code that caused warnings
8351         * LinkLabel.cs: Removed unreachable code
8352         * TreeView.cs: Fixed code that caused warnings
8353         * PropertyGridView.cs: Fixed code that caused warnings
8354         * GridColumnStylesCollection.cs: Added missing attributes
8355         * GridTableStylesCollection: Added missing attribute
8356         * PropertyManager: Added .ctor
8357         * SecurityIDType: Added
8358         * DataObject.cs: Implemented class
8359         * LinkArea.cs: Added missing attribute
8360
8361 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8362
8363         * RadioButton.cs: call base method to allow to fire OnClick event
8364         * UpDownBase.cs: OnMouseUp call base method
8365         * CheckedListBox.cs: call base method before returning
8366         * TrackBar.cs: call base method before returning
8367         
8368
8369 2005-05-10  Peter Bartok  <pbartok@novell.com>
8370
8371         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8372           for messages
8373
8374 2005-05-10  Peter Bartok  <pbartok@novell.com>
8375
8376         * DataFormats.cs: Implemented
8377         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8378           XplatUIX11.cs: Added Clipboard APIs
8379         * XplatUIWin32.cs: Implemented Clipboard APIs
8380         * FolderBrowserDialog.cs: Added missing event, attributes
8381
8382 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8383
8384         * CheckBox.cs: call base method to allow to fire OnClick event
8385
8386 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8387
8388         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8389
8390 2005-05-06  Peter Bartok  <pbartok@novell.com>
8391
8392         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8393         * Screen.cs: Implemented
8394         * HelpNavigator.cs: Added
8395         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8396           property
8397         * HelpProvider.cs: Implemented all we can do until we have a CHM
8398           help library (which means that "What's This" does work now)
8399
8400 2005-05-06  Jackson Harper  <jackson@ximian.com>
8401
8402         * XplatUIX11.cs: Fix waking up the main loop.
8403                 
8404 2005-05-05  Peter Bartok  <pbartok@novell.com>
8405
8406         * XplatUI.cs: Updated revision
8407         * Form.cs: Removed enless loop
8408         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8409         * Label.cs (OnPaint): Added call to base.OnPaint()
8410         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8411         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8412         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8413         * AxHost.cs: Added
8414         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8415         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8416           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8417           reuse of ToolTipWindow by other controls
8418         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8419         * XplatUIX11.cs: Now clipping drawing area (experimental)
8420         * PictureBox.cs: Moved base.OnPaint() call to end of method
8421         * Theme.cs: Fixed ToolTip abstracts to match new format
8422         * ErrorProvider.cs: Implemented
8423
8424 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8425
8426         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8427         * LinkLabel.cs:
8428                 - Adds cursors
8429                 - Handles focus
8430                 - Implements LinkBehavior
8431                 - Fixes many issues
8432
8433 2005-05-03  Jackson Harper  <jackson@ximian.com>
8434
8435         * ListView.cs: Calculate the scrollbar positioning on resize and
8436         paint, so they get put in the correct place.
8437
8438 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8439
8440         * ColorDialogs.cs: The small color panels are now handled by
8441           SmallColorControl. This fixes drawing of the focus rectangle
8442           and adds a 3D border.
8443
8444 2005-05-03  Peter Bartok  <pbartok@novell.com>
8445
8446         * Control.cs: Modified version of Jonathan Chamber's fix for
8447           double-buffering
8448
8449 2005-05-03  Jackson Harper  <jackson@ximian.com>
8450
8451         * ListView.cs: Remove redraw variable. Control now handles whether
8452         or not a redraw needs to be done, and will only raise the paint
8453         event if redrawing is needed.
8454
8455 2005-05-03  Jackson Harper  <jackson@ximian.com>
8456
8457         * Splitter.cs: No decorations for the splitter form. Cache the
8458         hatch brush.
8459
8460 2005-05-03  Jackson Harper  <jackson@ximian.com>
8461
8462         * TreeView.cs: Use dashed lines to connect nodes. Use the
8463         ControlPaint method for drawing the focus rect instead of doing
8464         that in treeview.
8465
8466 2005-05-02  Peter Bartok  <pbartok@novell.com>
8467
8468         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8469
8470 2005-04-29  Jackson Harper  <jackson@ximian.com>
8471
8472         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8473         entire image buffer. Just clear the clipping rectangle.
8474
8475 2005-04-29  Jackson Harper  <jackson@ximian.com>
8476
8477         * ThemeWin32Classic.cs: Don't draw list view items that are
8478         outside the clipping rectangle.
8479
8480 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8481
8482         * ListBox.cs: added horizontal item scroll
8483
8484 2005-04-29  Jackson Harper  <jackson@ximian.com>
8485
8486         * ThemeWin32Classic.cs: Remove some old debug code that was
8487         causing flicker with the new double buffering code.
8488
8489 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8490
8491         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8492         behave like combobox and comboboxlist (still not sure if this is
8493         correct though).
8494
8495 2005-04-28  Jackson Harper  <jackson@ximian.com>
8496
8497         * ThemeWin32Classic.cs: Don't fill the middle of progress
8498         bars. This fills areas outside of the clip bounds that don't need
8499         to be filled.
8500
8501 2005-04-28  Jackson Harper  <jackson@ximian.com>
8502
8503         * Control.cs: Don't expose functionality to touch the image buffers.
8504         * ProgressBar.cs:
8505         * ListView.cs: We do not need to (and no longer can) manipulate
8506         the image buffers directly. All of this is handled by Control.
8507
8508 2005-04-28  Peter Bartok  <pbartok@novell.com>
8509
8510         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8511           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8512           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8513
8514 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8515
8516         * Combobox:
8517                 - Adjust control's height for non-simple comboboxes (bug fix)
8518                 - Remove dead code
8519         * MenuAPI.cs: remove unused var
8520         * ScrollBar.cs: remove unsed var
8521                  
8522         * ListBox.cs: unselect items when clearing
8523
8524 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8525
8526         * ListControl.cs: honors OnPositionChanged and default Selected Item
8527         * ListBox.cs: unselect items when clearing
8528
8529 2005-04-27  Jackson Harper  <jackson@ximian.com>
8530
8531         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8532         if a "correct" keyboard is not found. This will make us not crash,
8533         but might give some users bad keyboard layouts...seems to be the
8534         same thing rewind does.
8535
8536 2005-04-27  Jackson Harper  <jackson@ximian.com>
8537
8538         * BindingManagerBase.cs: Attach the current/position changed
8539         handlers to their respective events.
8540
8541 2005-04-27  Jackson Harper  <jackson@ximian.com>
8542
8543         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8544         not just a blit.
8545         * ThemeWin32Classic.cs: Don't fill the background for picture
8546         boxes. This could overright user drawing.
8547         * ComboBox.cs: Just fill the clipping rect not the entire client
8548         rect when drawing the background. This prevents pieces of the
8549         image buffer from getting overwritten and is theoretically faster.
8550
8551 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8552
8553         * ComboBox.cs: Databinding support fixes, fire missing events
8554         * ListControl.cs: implement missing methods and properties, fixes
8555         * ThemeWin32Classic.cs: Databiding support on Drawing
8556         * CheckedListBox.cs: Databinding support fixes, fire missing events
8557         * ListBox.cs: Databinding support fixes, fire missing events
8558         
8559 2005-04-25  Peter Bartok  <pbartok@novell.com>
8560
8561         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8562
8563 2005-04-25  Jackson Harper  <jackson@ximian.com>
8564
8565         * TreeView.cs: Use the horizontal scrollbars height not width when
8566         determining how much of the client area is available.
8567
8568 2005-04-25  Jackson Harper  <jackson@ximian.com>
8569
8570         * Control.cs: Double buffering is handled differently now. As per
8571         the spec, the extra buffer is created in the WM_PAINT message and
8572         passed down to the control's drawing code.
8573         * GroupBox.cs:
8574         * Label.cs:
8575         * CheckBox.cs:
8576         * ProgressBar.cs:
8577         * RadioButton.cs:
8578         * ColorDialog.cs:
8579         * ComboBox.cs:
8580         * PropertyGridView.cs:
8581         * UpDownBase.cs:
8582         * MessageBox.cs:
8583         * MenuAPI.cs:
8584         * ListView.cs:
8585         * ButtonBase.cs:
8586         * SizeGrip.cs:
8587         * ScrollBar.cs:
8588         * ListBox.cs:
8589         * TrackBar.cs:
8590         * ToolBar.cs:
8591         * PictureBox.cs:
8592         * DateTimePicker.cs:
8593         * StatusBar.cs:
8594         * TreeView.cs: Update to new double buffering system.
8595         * MonthCalendar.cs: Uncomment block, as Capture is now
8596         working. Update to new double buffering
8597         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8598         * PaintEventArgs.cs: New internal method allows us to set the
8599         graphics object. This is used for double buffering.
8600         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8601         rectangle. The internal paint_area var has been removed from
8602         StatusBar. The clipping rect should be used instead.
8603         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8604         * TabPage.cs: The RefreshTabs method was removed, so just call the
8605         tab controls Refresh method now.
8606         * TabControl.cs: Update to new double buffering. Make sure the
8607         handle is created before sizing the tab pages, otherwise we will
8608         get stuck in a loop.
8609
8610 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8611
8612         * LinkLabel.cs: Fix typo, bug #74719; patch
8613           from Borja Sanchez Zamorano
8614
8615 2005-04-22  Jackson Harper  <jackson@ximian.com>
8616
8617         * TreeNode.cs: Implement Handle stuff.
8618         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8619
8620 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8621
8622         * DataGridTextBoxColumn.cs: call base constructors, fixes
8623         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8624         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8625         * DataGridTableStyle.cs: implements create default column styles
8626         * DataGridBoolColumn.cs: which types can handle
8627         * DataGrid.cs: missing methods, fixes, new functionality
8628         * DataGridColumnStyle.cs: fixes
8629
8630 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8631         * FolderBrowserDialog.cs:
8632         - Use a thread to fill the TreeView
8633         - Adjusted some sizes
8634
8635 2005-04-19  Peter Bartok  <pbartok@novell.com>
8636
8637         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8638           property. Fixes #74360.
8639
8640 2005-04-19  Jackson Harper  <jackson@ximian.com>
8641
8642         * XEventQueue.cs: Lock when getting the lockqueue size.
8643         * PictureBox.cs: Call base OnPaint
8644         
8645 2005-04-19  Peter Bartok  <pbartok@novell.com>
8646
8647         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8648           messages were no longer being processed (this broke BeginInvoke)
8649
8650           
8651 2005-04-18  Jackson Harper  <jackson@ximian.com>
8652
8653         * TreeView.cs: buglet that caused node images to get drawn
8654         regardless of whether or not they were in the clipping rectangle.
8655
8656 2005-04-18  Jackson Harper  <jackson@ximian.com>
8657
8658         * CurrencyManager.cs: There are four rules for GetItemProperties:
8659         - If the type is an array use the element type of the array
8660         - If the type is a typed list, use the type
8661         - If the list contains an Item property that is not an object, use
8662         that property
8663         - use the first element of the list if there are any elements in
8664         the list.
8665         
8666 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8667
8668         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8669         click. This handles offsets for scrolling properly and reduces
8670         memory. Also fixed GetNode to not offset now that TopNode works
8671         properly.
8672         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8673         
8674 2005-04-17  Jackson Harper  <jackson@ximian.com>
8675
8676         * CursorConverter.cs: Initial implementation.
8677
8678 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8679
8680         * ListControl.cs: work towards complex data binding support on ListControl
8681         * CurrencyManager.cs: work towards complex data binding support on ListControl
8682         * ListBox.cs: work towards complex data binding support on ListControl
8683
8684
8685 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8686
8687         * GridTableStylesCollection.cs: fixes name and constructor
8688         * DataGridTableStyle.cs: fixes
8689         * DataGridBoolColumn.cs: fixes names and constructors
8690         * DataGrid.cs: define methods and properties. Some init implementations
8691         * DataGridCell.cs: define methods and properties. Some init implementations
8692         * GridTablesFactory.cs: Define methods and properties
8693
8694 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8695
8696         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8697         graphics port changes.  We still want the coordinates in global screen
8698         coordinates.
8699
8700 2005-04-14  Jackson Harper  <jackson@ximian.com>
8701
8702         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8703         check plus minus or checkbox clicks unless those features are enabled.
8704
8705 2005-04-14  Jackson Harper  <jackson@ximian.com>
8706
8707         * TreeView.cs: Add methods for setting the top and bottom visible
8708         nodes. TreeNode::EnsureVisible uses these methods.
8709         * TreeNode.cs: Implement EnsureVisible
8710
8711 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8712
8713         * Form.cs: Pospone menu assignation if the window has not been created yet
8714         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8715         size and position
8716
8717 2005-04-12  Jackson Harper  <jackson@ximian.com>
8718
8719         * TreeView.cs: Set the TopNode properly when scrolling
8720         occurs. This has the added benifit of reducing the amount of
8721         walking that needs to be done when drawing. Also removed an old
8722         misleading TODO.
8723         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8724         
8725 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8726
8727         * Timer.cs: fixes interval setting when the timer is already enabled
8728         
8729 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8730
8731         * FolderBrowserDialog.cs: First approach
8732
8733 2005-04-09  Peter Bartok  <pbartok@novell.com>
8734
8735         * FolderBrowserDialog: Added
8736
8737 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8738
8739         * LinkLabel.cs: move drawing code into the theme
8740         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8741         * Theme.cs: define DrawLinkLabel method
8742
8743 2005-04-05  Jackson Harper  <jackson@ximian.com>
8744
8745         * BindingContext.cs: Use weak references so these bad actors don't
8746         stay alive longer then they need to.
8747
8748 2005-04-05  Jackson Harper  <jackson@ximian.com>
8749
8750         * ListControl.cs: Basic implementation of complex databinding.
8751         * ComboBox.cs:
8752         * ListBox.cs: Add calls to ListControl databinding methods.
8753
8754 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8755
8756         * FileDialog.cs:
8757           - Don't change PopupButtonState to Normal when the
8758             PopupButton gets pressed several times.
8759           - Renamed ButtonPanel to PopupButtonPanel
8760
8761 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8762
8763         * ColorDialog.cs: Use cached objects instead of creating them
8764         * LinkLabel.cs: Use cached objects instead of creating them
8765         * Splitter.cs: Use cached objects instead of creating them
8766         * FontDialog.cs: Use cached objects instead of creating them
8767         * PropertyGridView.cs: Use cached objects instead of creating them
8768         * MessageBox.cs: Use cached objects instead of creating them
8769         * FileDialog.cs: Use cached objects instead of creating them
8770         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8771         * TreeView.cs: Use cached objects instead of creating them
8772         
8773 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8774
8775         * Control.cs: use Equals to compare the font since no == op
8776         * ScrollBar.cs: use Equals to compare the font since no == op
8777
8778 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8779
8780         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8781
8782 2005-04-01  Jackson Harper  <jackson@ximian.com>
8783
8784         * Binding.cs: Implement IsBinding.
8785         * BindingManagerBase.cs:
8786         * PropertyManager.cs:
8787         * CurrencyManager.cs: Add IsSuspended property.
8788
8789 2005-04-01  Jackson Harper  <jackson@ximian.com>
8790
8791         * Binding.cs: Had some IsAssignableFrom calls backwards.
8792
8793 2005-04-01  Jackson Harper  <jackson@ximian.com>
8794
8795         * Binding.cs: Handle null data members when pulling data.
8796         * PropertyManager.cs: Handle the data member being a property that
8797         does not exist.
8798
8799 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8800
8801         * DataGridTextBoxColumn.cs: fixes signature
8802         * DataGrid.cs: calls right constructor
8803
8804 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8805
8806         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8807         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8808         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8809         * DataGridTableStyle.cs: implements DataGridTableStyle
8810         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8811         * DataGridTextBox.cs: implements DataGridTextBox
8812         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8813
8814 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8815
8816         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8817
8818 2005-03-29  Peter Bartok  <pbartok@novell.com>
8819
8820         * Application.cs:
8821           - Properly implemented CompanyName property
8822           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8823             returns a path that includes CompanyName, ProductName and
8824             Version (fixes bug #70330)
8825
8826 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8827
8828         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8829           fixes bug #72588.
8830
8831 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8832
8833         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8834         
8835           - Added ReadOnly CheckBox
8836           - Further refactoring: moved some code from Open-/SaveFileDialog
8837             to FileDialog
8838
8839 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8840
8841         * OpenFileDialog.cs: Fixed CheckFileExists
8842         * FileDialog.cs:
8843           Moved FileView and DirComboBox outside FileDialog class.
8844           They can now be used outside FileDialog
8845
8846 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8847
8848         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8849         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8850
8851 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8852
8853         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8854           - Added missing CreatePrompt property in SaveDialog
8855           - Overall SaveDialog handling should be better now
8856           - Added non standard ShowHiddenFiles property
8857           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8858           - Added InitialDirectory and RestoreDirectory support
8859
8860 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8861
8862         * FileDialog.cs: Made dirComboBox usable
8863
8864 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8865
8866         * FileDialog.cs: Added Filter support (case sensitiv)
8867
8868 2005-03-24  Jackson Harper  <jackson@ximian.com>
8869
8870         * TabControl.cs: Need a couple more pixels for the lines.
8871
8872 2005-03-23  Jackson Harper  <jackson@ximian.com>
8873
8874         * TabControl.cs: Give the tab page focus when it is selected.
8875
8876 2005-03-23  Jackson Harper  <jackson@ximian.com>
8877
8878         * TabControl.cs: Account for the drawing of tabs borders when
8879         invalidating. If the slider was clicked dont do click detection on
8880         the tabs.
8881
8882 2005-03-23  Jackson Harper  <jackson@ximian.com>
8883
8884         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8885
8886 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8887
8888         * CategoryGridEntry.cs: Added
8889         * GridItem.cs: Added helper properties
8890         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8891         * GridEntry.cs: Updated code for collection
8892         * PropertyGrid.cs: Cleaned up some formatting
8893         * PropertyGridView.cs: Added drop down functionality for enums.
8894         * GridItemCollection.cs: Added enumerator logic
8895         * PropertyGridEntry.cs: Added
8896
8897 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8898
8899         * FileDialog.cs:
8900           - Removed unnecessary commented code
8901           - Fixed handling for entering the filename manually in the combobox
8902
8903 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8904
8905         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8906
8907 2005-03-18  Peter Bartok  <pbartok@novell.com>
8908
8909         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8910           them being touching the border
8911
8912 2005-03-18  Peter Bartok  <pbartok@novell.com>
8913
8914         * TextControl.cs: Quick hack to center text better
8915
8916 2005-03-18  Peter Bartok  <pbartok@novell.com>
8917
8918         * ControlPaint.cs:
8919           - Don't throw NotImplemented exceptions, just print a notice once
8920             instead (requested by Miguel). This makes running existing SWF
8921             apps a bit easier
8922         * Control.cs:
8923           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8924           - Added context menu trigger on right click
8925         * Panel.cs: Trigger invalidate on resize
8926         * StatusBar.cs:
8927           - Removed old double-buffer drawing
8928           - Added ResizeRedraw style to force proper update of statusbar
8929         * ListView.cs:
8930           - Removed debug output
8931         * ThemeWin32Classic.cs:
8932           - Fixed drawing of status bar, now draws Text property if there
8933             are no defined panels
8934
8935 2005-03-18  Jackson Harper  <jackson@ximian.com>
8936
8937         * ImageList.cs: When the image stream is set pull all the images
8938         from it.
8939         * ImageListStreamer.cs: Implement reading image list streams.
8940
8941 2005-03-18  Peter Bartok  <pbartok@novell.com>
8942
8943         * ThemeWin32Classic.cs (DrawPictureBox):
8944           - Fixed calculations for centered drawing
8945           - Fixed drawing for normal mode, not scaling the image on normal
8946
8947 2005-03-18  Peter Bartok  <pbartok@novell.com>
8948
8949         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8950           textbox
8951         * FileDialog.cs:
8952           - Made Open/Save button the accept button for FileDialog
8953           - Tied the cancel button to the IButtonControl cancel button
8954           - Save/Open now properly builds the pathname
8955           - Now handles user-entered text
8956           - Preventing crash on right-click if no item is selected
8957           - Fixed Text property, now uses contents of textbox
8958           - Fixed SelectedText property, now just returns the text part that
8959             is selected in the text box
8960
8961 2005-03-18  Jackson Harper  <jackson@ximian.com>
8962
8963         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8964         rect, make sure to de-adjust the interior rect after drawing the
8965         tab text.
8966
8967 2005-03-18  Peter Bartok  <pbartok@novell.com>
8968
8969         * MenuAPI.cs: Remove menu *before* executing selected action to
8970           prevent the menu from 'hanging around'
8971           
8972 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8973
8974         * XplatUIOSX.cs: Implemented WorkingArea property
8975
8976 2005-03-17  Peter Bartok  <pbartok@novell.com>
8977
8978         * XplatUIX11.cs: Fixed menu coord calculations
8979         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8980           for calculating offsets
8981
8982 2005-03-17  Peter Bartok  <pbartok@novell.com>
8983
8984         * Hwnd.cs: Do not consider menu presence for default client
8985           rectangle location/size
8986         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8987           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8988           translation functions
8989         * FileDialog.cs: Fixed (what I presume is a) typo
8990
8991 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8992
8993         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8994           X access (avoids X-Async errors)
8995
8996 2005-03-16  Jackson Harper  <jackson@ximian.com>
8997
8998         * TabControl.cs: Raise the SelectedIndexChanged event.
8999
9000 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9001
9002         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9003           - Removed vertical ToolBar and replaced it with a custom panel
9004             (desktop and home button already work)
9005           - Added Help button (some controls get resized or relocated then)
9006           - Draw correct text depending on Open or Save.
9007           - Fixed some typos...
9008
9009 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9010
9011         * ScrollBar.cs:
9012           - Only change Maximum and Minimum when need it (bug fix)
9013
9014 2005-03-15  Peter Bartok  <pbartok@novell.com>
9015
9016         * Form.cs: Use Handle for icon, to trigger creation if
9017           the window does not yet exist
9018         * Control.cs:
9019           - CanSelect: Slight performance improvement
9020           - Focus(): Preventing possible recursion
9021           - Invalidate(): Removed ControlStyle based clear flag setting
9022           - WM_PAINT: fixed logic for calling OnPaintBackground
9023           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9024             EraseWindowBackground if the control doesn't paint background
9025         * XplatUIWin32.cs:
9026           - Moved EraseWindowBackground() method to internal methods
9027           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9028             is sent via SendMessage on BeginPaint call on Win32
9029         * XplatUIX11.cs:
9030           - Added EraseWindowBackground() method
9031           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9032             PaintEventStart, which more closely matches Win32 behaviour
9033           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9034           - Fixed SetFocus() to properly deal with client and whole windows
9035         * Hwnd.cs: Added ErasePending property
9036         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9037         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9038
9039 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9040
9041         * XplatUIOSX.cs:
9042           - Fix hard loop when timers exist.
9043           - Fix bugs with middle and right click for 3 button mice.
9044
9045 2005-03-11  Peter Bartok  <pbartok@novell.com>
9046
9047         * XplatUIX11.cs:
9048           - get_WorkingArea: Need to call X directly, GetWindowPos only
9049             returns cached data now
9050           - Added sanity check to GetWindowPos hwnd usage
9051
9052 2005-03-11  Jackson Harper  <jackson@ximian.com>
9053
9054         * BindingManagerBase.cs: This method isn't used anymore as
9055         PullData now updates the data in the control.
9056
9057 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9058
9059         * Form.cs: fixes menu drawing on X11
9060         * MenuAPI.cs:  fixes menu drawing on X11
9061
9062 2005-03-11  Peter Bartok  <pbartok@novell.com>
9063
9064         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9065           from Jonathan Gilbert; should fix bug #73606
9066         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9067           in Screen coordinates. Thanks, Jordi.
9068         * Form.cs: Added missing attribute
9069
9070 2005-03-11  Peter Bartok  <pbartok@novell.com>
9071
9072         * Form.cs:
9073           - Rudimentary Mdi support
9074           - Removed outdated FormParent code
9075           - Implemented lots of missing properties and methods, still missing
9076             transparency support
9077           - Added missing attributes
9078           - Implemented support for MaximumBounds
9079           - Added firing of various events
9080         * XplatUI.cs: Added SetIcon() method
9081         * XplatUIDriver.cs: Added SetIcon() abstract
9082         * XplatUIOSX.cs: Stubbed out SetIcon() method
9083         * XplatUIX11.cs:
9084           - Implemented SetIcon() support
9085           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9086           - Switched to unix line endings
9087         * XplatUIWin32.cs:
9088           - Made POINT internal so for can access it as part of MINMAX
9089           - Implemented SetIcon() support
9090           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9091             native Mdi support again, might have to go managed)
9092         * Control.cs: Now fires the StyleChanged event
9093         * MdiClient.cs: Added; still mostly empty
9094
9095 2005-03-10  Peter Bartok  <pbartok@novell.com>
9096
9097         * SaveFileDialog.cs: Added emtpy file
9098
9099 2005-03-08  Peter Bartok  <pbartok@novell.com>
9100
9101         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9102           in turn triggers OnCreateContro) when creating a handle for the
9103           first time.
9104         * TextControl.cs: Fixed endless loop in certain cases when
9105           replacing the current selection
9106
9107 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9108
9109         * ScrollBar.cs:
9110           - Honors NewValue changes in Scroll events allowing apps to change it
9111           - Adds First and Last Scroll events
9112           - Fixes Thumb events
9113
9114 2005-03-07  Peter Bartok  <pbartok@novell.com>
9115
9116         * Hwnd.cs: Added DefaultClientRectangle property
9117         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9118           more detailed debug information
9119         * XplatUIX11.cs:
9120           - Fixed size-change feedback loop, where we would pull an old size
9121             off the queue and mistakenly change our window's size to an
9122             earlier value
9123           - Now compressing ConfigureNotify events, to reduce looping and
9124             redraw issues
9125         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9126           is called
9127
9128 2005-03-07  Jackson Harper  <jackson@ximian.com>
9129
9130         * Binding.cs: Push data pushes from data -> property. Check if the
9131         property is readonly when attempting to set it.
9132
9133 2005-03-07  Jackson Harper  <jackson@ximian.com>
9134
9135         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9136         instead of IsSubclassOf. Pulling data now sets the value on the
9137         control.
9138         * PropertyManager.cs:
9139         * CurrencyManager.cs: Just need to pull data when updating now,
9140         because PullData will set the value on the control.
9141
9142 2005-03-04  Jackson Harper  <jackson@ximian.com>
9143
9144         * Binding.cs: Implement data type parsing and converting on pulled
9145         data. TODO: Are there more ways the data can be converted?
9146
9147 2005-03-04  Jackson Harper  <jackson@ximian.com>
9148
9149         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9150         controls Validating method so we can repull the data when the
9151         control loses focus.
9152
9153 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9154
9155         * ColumnHeader.cs:
9156           - Fixes null string format
9157           
9158         * ListView.cs:
9159           - Adds enum type checks
9160           - Fixes redrawing and recalc need after changing some properties
9161           - Fixes on focus_item set after the event
9162           - Fixes adding columns after the control has been created
9163           
9164         * ThemeWin32Classic.cs:
9165           - Fixes CheckBox focus rectangle
9166           - Fixes ColumnHeader drawing
9167
9168
9169 2005-03-03  Jackson Harper  <jackson@ximian.com>
9170
9171         * Binding.cs: Bind to <Property>Changed events so we can detect
9172         when properties are changed and update the data.
9173
9174 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9175
9176         * ImageList.cs:
9177           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9178           - Fixes ImageList constructor with ImageList container
9179           - Fixes image scaling (wrong parameters at DrawImage)
9180
9181 2005-02-02  Jackson Harper  <jackson@ximian.com>
9182
9183         * Binding.cs: Make property searches case-insensitive. Eliminate
9184         some duplicated code.
9185
9186 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9187
9188         * ComboBox.cs:
9189                 - Handle focus event
9190                 - Fix scrollbar events
9191                 - Discard highlighted item if remove it
9192                 - Fixes SelectedItem with strings
9193
9194 2005-03-01  Peter Bartok  <pbartok@novell.com>
9195
9196         * Control.cs:
9197           - Fixed Visible property, now follows (once again) parent chain
9198             to return false if any control in the chain is visible=false
9199           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9200           - Fixed several places where is_visible instead of Visible was used
9201           - Implemented FIXME related to focus selection when setting focused
9202             control to be invisible
9203
9204         * XplatUIWin32.cs: Now using proper method to find out if window is
9205           visible. Thanks to Jordi for pointing it out
9206
9207 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9208
9209         * ComboBox.cs: show/hide scrollbar instead of creating it
9210
9211 2005-02-27  Jackson Harper  <jackson@ximian.com>
9212
9213         * CurrencyManager.cs: Add PositionChanged stuff.
9214
9215 2005-02-27  Peter Bartok  <pbartok@novell.com>
9216
9217         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9218         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9219         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9220         * XplatUIX11.cs:
9221           - Implemented GetMenuDC()
9222           - Implemented GetMenuOrigin()
9223           - Implemented ReleaseMenuDC()
9224           - Implemented generation of WM_NCPAINT message
9225           - Implemented generation and handling of WM_NCCALCSIZE message
9226         * Form.cs: Added debug helper message for Jordi's menu work
9227         * Hwnd.cs:
9228           - Modified ClientRect property; added setter, fixed getter to handle
9229             setting of ClientRect
9230           - Added MenuOrigin property
9231
9232 2005-02-26  Peter Bartok  <pbartok@novell.com>
9233
9234         * XplatUIX11.cs:
9235           - Destroys the caret if a window that's being destroyed contains it
9236           - Ignores expose events coming from the X11 queue for windows that
9237             already are destroyed
9238           - Now uses the proper variable for handling DestroyNotify, before we
9239             marked the wrong window as destroyed
9240           - Improved/added some debug output
9241
9242 2005-02-26  Peter Bartok  <pbartok@novell.com>
9243
9244         * X11Keyboard.cs: Fixes to work on 64bit systems
9245
9246 2005-02-26  Peter Bartok  <pbartok@novell.com>
9247
9248         * Control.cs:
9249           - Now calling OnHandleDestroyed from DestroyHandle()
9250             instead of Dispose()
9251           - Removed bogus call to controls.Remove() from DestroyHandle()
9252
9253 2005-02-26  Peter Bartok  <pbartok@novell.com>
9254
9255         * Control.cs: Properly destroy child windows when our handle is
9256           destroyed
9257
9258 2005-02-25  Peter Bartok  <pbartok@novell.com>
9259
9260         * XplatUI.cs:
9261           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9262           - Alphabetized Static Methods and Subclasses
9263
9264         * XplatUIX11.cs:
9265           - Added XException class to allow custom handling of X11 exceptions
9266           - Created custom X11 error handler, tied into XException class
9267           - Added support for MONO_XEXCEPTIONS env var to allow the user
9268             to either throw an exception on X errors or continue running
9269             after displaying the error
9270           - Added handling of DestroyNotify message
9271           - Added handler for CreateNotify message (still disabled)
9272           - Improved (tried to at least) Where method to provide file and lineno
9273         * X11Structs.cs:
9274           - Added XErrorHandler delegate
9275           - Added XRequest enumeration (to suppor translation of errors)
9276
9277 2005-02-25  Jackson Harper  <jackson@ximian.com>
9278
9279         * PropertyManager.cs: Implement editing features
9280         * CurrencyManager.cs:
9281         * Binding.cs: First attempt at UpdateIsBinding
9282         * BindingManagerBase.cs: Call UpdateIsBinding before
9283         pushing/pulling data.
9284
9285 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9286
9287         * MenuAPI.cs: Respect disabled items
9288         * ThemeWin32Classic.cs
9289                 - Caches ImageAttributes creation for DrawImageDisabled
9290                 - Fixes vertical menu line drawing
9291                 - Draws disabled arrows in disable menu items
9292
9293 2005-02-24  Peter Bartok  <pbartok@novell.com>
9294
9295         * Hwnd.cs:
9296           - Added UserData property to allow associating arbitrary objects
9297             with the handle
9298           - Fixed leak; now removing Hwnd references from static windows array
9299         * XplatUIWin32.cs:
9300           - Fixed Graphics leak in PaintEventEnd
9301           - Removed usage of HandleData, switched over to Hwnd class
9302         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9303
9304 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9305
9306         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9307         * ScrollBar.cs: Fixes bug
9308         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9309          keyboard navigation enhancements
9310
9311 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9312
9313         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9314         * GroupBox.cs: Add control styles
9315         * Label.cs: Add control styles
9316         * UpDownBase.cs: Add control styles
9317         * ListBox.cs: Add control styles
9318         * XplatUIWin32.cs: Fixes wrong parameter order
9319
9320
9321 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9322
9323         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9324
9325 2005-02-23  Jackson Harper  <jackson@ximian.com>
9326
9327         * PropertyManager.cs: Implement property binding. This doesn't
9328         seem to work yet though as (I think) there are some bugs in
9329         System.ComponentModel.PropertyDescriptor.
9330         * BindingContext.cs: Use new PropertyManager constructor.
9331
9332 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9333
9334         * ProgressBar.cs: use clip region in ProgressBar
9335         * ThemeWin32Classic.cs: use clip region in ProgressBar
9336
9337 2004-02-22  Jackson Harper  <jackson@ximian.com>
9338
9339         * BindingsCollection.cs: Remove some debug code.
9340
9341 2005-02-22  Jackson Harper  <jackson@ximian.com>
9342
9343         * BindingContext.cs:
9344         * ControlBindingsCollection.cs:
9345         * CurrencyManager.cs:
9346         * Binding.cs:
9347         * BindingManagerBase.cs: Initial implementation
9348         * BindingsCollection.cs: Add an internal contains method that the
9349         BindingManagerBase uses to ensure bindings aren't added twice to
9350         the collection.
9351         * PropertyManager.cs: Stubbed out.
9352         * Control.cs:
9353         * ContainerControl.cs: Hook up databinding
9354         
9355 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9356
9357         * XplatUIOSX.cs:
9358           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9359           Fixed Invalidate/Update chain.
9360           Fixed tons of other minor bugs (this is almost a complete rewrite).
9361
9362 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9363
9364         * ComboBox.cs: do subcontrol creation when the control is created
9365
9366 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9367
9368         * Label.cs: fixes image drawing (image and imagelist)
9369         * ThemeWin32Classic.cs: cache brushes
9370         
9371 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9372
9373         * Form.cs: Move menu drawing code to Theme class
9374         * ComboBox.cs: Move ComboBox drawing code to Theme class
9375         * MenuItem.cs: Move menu drawing code to Theme class
9376         * MenuAPI.cs: Move menu drawing code to Theme class
9377         * ThemeWin32Classic.cs: New methods
9378         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9379         * ListBox.cs: Move Listbox drawing code to Theme class
9380         * Theme.cs: New methods
9381
9382 2005-02-20  Peter Bartok  <pbartok@novell.com>
9383
9384         * Control.cs:
9385           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9386             only process mnemonics on those)
9387           - Fixed event sequence for key handling; first calling
9388             ProcessKeyEventArgs now
9389         * TextBoxBase.cs:
9390           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9391             for processing non-character keys
9392           - Fixed WM_CHAR to generate proper event sequence before processing
9393         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9394           generation
9395
9396 2005-02-19  Peter Bartok  <pbartok@novell.com>
9397
9398         * UserControl.cs: Added TextChanged event; added attributes
9399         * SizeGrip.cs: Implemented resizing and optional display of grip
9400         * Form.cs: Fixed attribute
9401         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9402           Changed meaning of ScrollWindow bool argument; instead of the
9403           clear attribute (which will be true usually anyway), it gives the
9404           option of moving child controls as well.
9405         * XplatUIX11.cs:
9406           - Changed to match new ScrollWindow argument
9407           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9408             now handles the implicit parent window a WM puts around us
9409         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9410           to work)
9411         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9412         * TreeView.cs: Adjusted to new ScrollWindow arguments
9413
9414 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9415
9416         * Form.cs: Menu integration with non-client area
9417         * MenuItem.cs: Menu integration with non-client area
9418         * MenuAPI.cs: Menu integration with non-client area
9419
9420 2005-02-18  Peter Bartok  <pbartok@novell.com>
9421
9422         * MethodInvoker.cs: Added
9423         * MdiLayout.cs: Added
9424         * SendKeys.cs: Started implementation
9425         * ErrorIconAlignment.cs: Added
9426
9427 2005-02-18  Peter Bartok  <pbartok@novell.com>
9428
9429         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9430         * Form.cs: Added handling for Menu-related Non-client messages
9431
9432 2005-02-17  Peter Bartok  <pbartok@novell.com>
9433
9434         * UpDownBase.cs: Fixed typo, compilation errors
9435         * DomainUpDown.cs: Fixed attribute value
9436
9437 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9438
9439         * UpDownBase.cs: Attach entry events.
9440         Propagate events.
9441         Add ForeColor property, Focused, InterceptArrowKeys (interception
9442         does not work yet).
9443
9444 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9445
9446         * Form.cs:
9447                 - Redraw non client are on Setmenu
9448                 - Calc proper menu starting point
9449
9450 2005-02-17  Peter Bartok  <pbartok@novell.com>
9451
9452         * Application.cs: Fixed message_filter check
9453
9454 2005-02-17  Peter Bartok  <pbartok@novell.com>
9455
9456         * Application.cs: Now calls registered message filters
9457         * DockStyle.cs: Fixed attribute
9458         * Form.cs: Fixed attribute
9459         * Menu.cs: Fixed attribute
9460         * ToolTip.cs: Fixed attribute
9461         * TreeNode.cs: Added missing attributes and arranged in regions
9462         * PropertyGrid.cs: Fixed signatures
9463         * TreeNodeCollection.cs: Added attributes
9464         * Splitter.cs: Added missing attributes; arranged into regions
9465         * TabPage.cs: Added missing attributes; arranged into regions
9466         * TextBoxBase.cs: Added missing attributes
9467         * TextBox.cs: Added missing attributes
9468         * ArrangeDirection.cs: Added missing attributes
9469         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9470         * ToolBarButton.cs: Fixed attributes
9471         * AnchorStyles.cs: Fixed attribute
9472         * TrackBar.cs: Fixed attributes
9473         * TabControl.cs: Added missing attributes and arranged into regions
9474         * ToolBar.cs: Fixed attribute
9475         * StatusBar.cs: Fixed signature, organized into regions and added
9476           attributes
9477         * StatusBarPanel.cs: Fixed attributes
9478         * ContentsResizedEventArgs.cs: Implemented
9479         * ContentsResizedEventHandler.cs: Implemented
9480         * DateBoldEventArgs.cs: Implemented
9481         * DateBoldEventHandler.cs: Implemented
9482         * UpDownEventArgs.cs: Implemented
9483         * UpDownEventHandler.cs: Implemented
9484         
9485 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9486
9487         * Form.cs: first Menu NC refactoring
9488         * MenuAPI.cs: first Menu NC refactoring
9489         
9490 2005-02-16  Peter Bartok  <pbartok@novell.com>
9491
9492         * ImeMode.cs: Added missing attributes
9493         * Menu.cs: Fixed attribute
9494         * GroupBox.cs: Fixed attribute
9495         * Label.cs: Fixed attribute
9496         * ColorDialog.cs (RunDialog): Removed TODO attribute
9497         * ComboBox.cs: Fixed attributes
9498         * ListControl.cs: Added missing attributes
9499         * PropertyGrid.cs: Fixed attributes
9500         * Control.cs: Fixed attributes
9501         * ListViewItem.cs: Added TypeConverter attribute
9502         * NotifyIcon.cs: Fixed attributes
9503         * ListView.cs: Fixed attributes
9504         * ButtonBase.cs: Fixed attribute
9505         * ImageList.cs: Added missing attributes
9506         * ContainerControl.cs: Fixed signature
9507         * CheckedListBox.cs: Fixed attribute; added missing attributes
9508         * Panel.cs: Fixed attributes
9509         * PropertyTabChangedEventArgs.cs: Added missing attribute
9510         * PropertyValueChangedEventArgs.cs: Added missing attribute
9511         * Binding.cs: Fixed attribute
9512         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9513         * ListBox.cs: Fixed attribute; added missing attributes;
9514         * ScrollableControl.cs: Added missing attributes
9515         * PictureBox.cs: Added missing attributes; implemented missing property
9516         * DateTimePicker.cs: Added missing attributes
9517         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9518         * MonthCalendar.cs: Fixed attributes
9519         * StatusBarPanel.cs: Added missing attributes
9520         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9521
9522 2005-02-16  Peter Bartok  <pbartok@novell.com>
9523
9524         * TextBoxBase.cs: The previous method to enforce height yet remember
9525           the requested high was less than ideal, this is an attempt to do
9526           it better.
9527         * Control.cs: Added comment about possible problem
9528         * Copyright: Updated format
9529         * GridItemType.cs: Fixed swapped values
9530
9531 2005-02-15  Jackson Harper  <jackson@ximian.com>
9532
9533         * BaseCollection.cs: Use property so we never access an
9534         uninitialized list. Also initialize the list in the property.
9535
9536 2005-02-15  Peter Bartok  <pbartok@novell.com>
9537
9538         * GroupBox.cs (ProcessMnemonic): Implemented
9539         * Label.cs (ProcessMnemonic): Implemented
9540         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9541           hotkeys
9542
9543 2005-02-15  Peter Bartok  <pbartok@novell.com>
9544
9545         * RadioButton.cs (ProcessMnemonic): Implemented
9546         * CheckBox.cs (ProcessMnemonic): Implemented
9547         * Control.cs:
9548           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9549             handling
9550           - Added internal method to allow calling ProcessMnemonic from other
9551             controls
9552         * ContainerControl.cs:
9553           - Started support for handling validation chain handling
9554           - Implemented ProcessMnemonic support
9555           - Added Select() call to Active, to make sure the active control
9556             receives focus
9557         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9558           FormParent rewrite)
9559         * ThemeWin32Classic.cs:
9560           - DrawCheckBox(): Fixed stringformat to show hotkeys
9561           - DrawRadioButton(): Fixed stringformat to show hotkeys
9562         * CommonDialog.cs: Removed WndProc override, not needed
9563
9564 2005-02-14  Peter Bartok  <pbartok@novell.com>
9565
9566         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9567           missed those in the rewrite
9568
9569 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9570
9571         * NumericUpDown.cs (Increment, ToString): Add.
9572         (DecimalPlaces): implement.
9573         
9574         Add attributes.
9575         
9576         * UpDownBase.cs: Add the designer attributes.
9577
9578 2005-02-13  Peter Bartok  <pbartok@novell.com>
9579
9580         * Panel.cs: Removed border_style, now in Control
9581         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9582           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9583
9584 2005-02-13  Peter Bartok  <pbartok@novell.com>
9585
9586         * MouseButtons.cs: Added missing attributes
9587         * XplatUIStructs.cs: Added enumeration for title styles
9588         * LeftRightAlignment.cs: Added missing attributes
9589         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9590           it compatible with Graphics.FromHwnd()
9591         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9592         * Keys.cs: Added missing attributes
9593         * SelectionRange.cs: Added missing attributes
9594         * SelectionRangeConverter.cs: Added
9595         * XplatUI.cs:
9596           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9597             ReleaseMenuDC methods
9598           - Renamed ReleaseWindow to UngrabWindow
9599           - Added proper startup notice to allow version identification
9600         * Form.cs:
9601           - Added missing attributes
9602           - Removed FormParent concept
9603         * Label.cs: Removed border_style field, now in Control
9604         * RadioButton.cs: Now properly selects RadioButton when focus is
9605           received
9606         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9607         * Control.cs:
9608           - Added missing attributes
9609           - Added borderstyle handling
9610           - Removed FormParent concept support
9611           - Fixed calls to XplatUI to match changed APIs
9612           - Fixed bug that would case us to use disposed Graphics objects
9613           - Removed unneeded internal methods
9614           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9615           - SelectNextControl(): Fixed to properly check common parents
9616         * TextBoxBase.cs: Removed border_style field (now in Control)
9617         * MessageBox.cs:
9618           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9619             fixed calculations for form size
9620           - Added support for localized strings and icons
9621           - Improved form size calculations, added border
9622         * ListView.cs: Removed border_style field (now in Control)
9623         * X11Structs.cs: Moved several structs from X11 driver here
9624         * X11Keyboard.cs: Changed debug message
9625         * Application.cs: Removed FormParent concept support
9626         * CommonDialog.cs:
9627           - Resetting end_modal flag
9628           - Removed FormParent concept support
9629         * NativeWindow.cs: Removed FormParent concept support
9630         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9631           Client area and Non-Client whole window to allow support for WM_NC
9632           messages
9633         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9634           prevent using it until it supports Hwnd as per Geoff Norton's request
9635         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9636         * PictureBox.cs: Removed border_style field, now in Control
9637         * XplatUIWin32.cs: Added new driver methods
9638
9639 2005-02-12  Peter Bartok  <pbartok@novell.com>
9640
9641         * OpacityConverter.cs: Implemented
9642         * Hwnd.cs: Internal class to support drivers that need to emulate
9643           client area/non-client area window behaviour
9644
9645 2005-02-11  Peter Bartok  <pbartok@novell.com>
9646
9647         * KeysConverter.cs: Implemented
9648
9649 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9650
9651         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9652         * LinkLabel: Added missing attributes
9653         * MainMenu.cs: fixes ToString
9654         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9655         * ListBox.cs: fixes event position
9656         * TrackBar.cs: adds missing attributes and events
9657         
9658 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9659
9660         * MenuItem.cs: Use SystemInformation and bug fixes
9661         * MenuAPI.cs: Use SystemInformation and bug fixes
9662
9663 2005-02-09  Jackson Harper  <jackson@ximian.com>
9664
9665         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9666         their keystate otherwise things like VK_MENU get stuck "on".
9667
9668 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9669
9670         * ListBox.cs: Fixes AddRange bug
9671         
9672 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9673
9674         * ProgressBar.cs
9675                 - Add missing attributes
9676                 - Add missing method
9677                 
9678         * CheckedListBox.cs: Added missing attributes
9679                 - Add missing attributes
9680                 - Remove extra method
9681         
9682         * ComboBox.cs: Added missing attributes
9683         * VScrollBar.cs: Added missing attributes
9684         * ScrollBar.cs:  Added missing attributes
9685         * ListBox.cs: Fixes signature, add missing consts
9686         * LinkArea.cs:   Added missing attributes
9687         
9688
9689 2005-02-08  Peter Bartok  <pbartok@novell.com>
9690
9691         * Menu.cs: Added missing attributes
9692         * MainMenu.cs: Added missing attributes
9693         * GroupBox.cs: Added missing attributes
9694         * Label.cs: Added missing attributes
9695         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9696         * ColorDialog.cs:
9697           - Added Instance and Options properties
9698           - Added missing attributes
9699         * Cursor.cs: Made Serializable
9700         * NotifyIcon: Added missing attributes
9701         * MenuItem.cs: Added missing attributes
9702         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9703         * Panel.cs: Added Missing attributes
9704         * MonthCalendar.cs: Fixed CreateParams
9705
9706 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9707         
9708         * LinkLabel.cs:
9709                 - Fixes signature
9710                 - Fixes issues with links
9711                 - Adds the class attributes
9712
9713 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9714         
9715         * ComboBox.cs:
9716                 - Fixes button when no items available in dropdown
9717                 - Fixes repainting problems
9718                 - Adds the class attributes
9719                 
9720 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9721
9722         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9723         the current theme.  Cache these on startup.
9724
9725 2005-02-07  Jackson Harper  <jackson@ximian.com>
9726
9727         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9728         the scrollbar buttons when they are depressed.
9729
9730 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9731
9732         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9733         Get the display size from the main displayid.  We currently dont
9734         support multiple display configurations.
9735
9736 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9737
9738         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9739
9740 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9741
9742         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9743
9744 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9745
9746         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9747
9748 2005-02-04  Jackson Harper  <jackson@ximian.com>
9749
9750         * ThemeWin32Classic.cs: Respect the clipping rect when
9751         drawing. Only fill the intersection of clips and rects so there
9752         isn't a lot of large fills.
9753         * ScrollBar.cs: Pass the correct clipping rect to the theme
9754         engine. Remove some debug code.
9755
9756 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9757         
9758         * DateTimePicker.cs:
9759                 - Fixed crash on DateTime.Parse, use Constructor instead
9760
9761 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9762         
9763         * MenuItem.cs:
9764         * MenuAPI.cs:
9765                 - Owner draw support (MeasureItem and DrawItem)
9766
9767 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9768         
9769         *  Menu.cs:
9770                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9771                 - Fixes MenuItems.Add range
9772         * MenuItem.cs:
9773                 - MergeMenu and Clone and CloneMenu functions
9774
9775 2005-02-03  Jackson Harper  <jackson@ximian.com>
9776
9777         * ScrollBar.cs: Make abstract
9778         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9779         is abstract.
9780
9781 2005-02-03  Jackson Harper  <jackson@ximian.com>
9782
9783         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9784         all the unneeded refreshes and uses invalidates with properly
9785         computed rects.
9786
9787 2005-02-03  Peter Bartok  <pbartok@novell.com>
9788
9789         * ComponentModel.cs: Added
9790         * IDataGridEditingService.cs: Added
9791         * Timer.cs: Added missing attributes
9792         * ToolTip.cs: Added missing attributes
9793
9794 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9795
9796         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9797
9798 2005-02-03  Peter Bartok  <pbartok@novell.com>
9799
9800         * ListBox.cs: Added missing attributes
9801
9802 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9803         
9804         * ListBox.cs:
9805                 - Fixes font height after font change
9806                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9807                 
9808 2005-02-02  Peter Bartok  <pbartok@novell.com>
9809
9810         * HandleData.cs: Introduced static methods to allow class
9811           to be more self-contained and track it's own HandleData objects
9812         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9813           HandleData to use new static methods
9814
9815 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9816
9817         * Combobox.cs:
9818                 - Fixes default size and PreferredHeight
9819                 - Missing events
9820                 - ObjectCollection.Insert implementation
9821                 
9822         * ListControl.cs
9823                 - Fixes signature
9824         * ListBox.cs:
9825                 - Several fixes
9826                 - ObjectCollection.Insert implementation
9827                 - No selection after clean
9828                 - Small fixes
9829
9830 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9831
9832         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9833
9834 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9835
9836         * Combobox.cs:
9837                 - Caches ItemHeight calculation for OwnerDrawVariable
9838                 - Handles dropdown properly
9839                 - Fixes several minor bugs
9840
9841 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9842
9843         * ListBox.cs:
9844                 - Fixes 71946 and 71950
9845                 - Fixes changing Multicolumn on the fly
9846                 - Fixes keyboard navigation on Multicolumn listboxes
9847
9848 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9849         
9850         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9851         crash reporter log.
9852
9853 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9854
9855         * XplatUIOSX.cs: Allow applications to actually exit.
9856
9857 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9858
9859         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9860         their parent at creation time rather than lazily later.  Fixes a major
9861         regression we were experiencing.
9862
9863 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9864
9865         * ThemeWin32Classic.cs: more date time picker painting fixes
9866         * DateTimePicker.cs: more monthcalendar drop down fixes
9867         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9868
9869 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9870
9871         * ScrollBar.cs:
9872                 - When moving the thumb going outside the control should stop the moving
9873                 - Adds the firing of missing events
9874                 - Fixes no button show if Size is not specified
9875                 - End / Home keys for keyboard navigation
9876
9877 2005-01-30  Peter Bartok  <pbartok@novell.com>
9878
9879         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9880           sanity check to prevent theoretical loop
9881         * XplatUIWin32.cs (SetVisible): Removed debug output
9882         * XplatUIX11.cs (SystrayChange): Added sanity check
9883         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9884         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9885           behaviour, valid until the X11 client window rewrite is done
9886         * TextBox.cs (ctor): Setting proper default foreground and background
9887           colors
9888
9889 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9890
9891         * Theme: Added DrawDateTimePicker to interface
9892         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9893         * DateTimePicker.cs: Created (still needs keys and painting code)
9894         * DateTimePickerFormat.cs: added
9895         * MonthCalendar.cs: fixed CreateParams for popup window mode
9896           
9897 2005-01-29  Peter Bartok  <pbartok@novell.com>
9898
9899         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9900           this should also the calculations for ligher/darker
9901         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9902
9903 2005-01-29  Peter Bartok  <pbartok@novell.com>
9904
9905         * ArrangeDirection.cs: Added
9906         * ArrangeStartingPositon.cs: Added
9907         * SystemInformation.cs: Implemented
9908         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9909           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9910           used by SystemInformation class
9911         * X11Strucs.cs: Added XSizeHints structure
9912         * MenuAPI.cs:
9913           - Fixed CreateParams to make sure the menu window is always visible
9914           - TrackPopupMenu: Added check to make sure we don't draw the
9915             menu offscreen
9916
9917 2005-01-29  Peter Bartok  <pbartok@novell.com>
9918
9919         * HandleData.cs: Added method for altering invalid area
9920         * TextBoxBase.cs: Implemented TextLength
9921
9922 2005-01-28  Peter Bartok  <pbartok@novell.com>
9923
9924         * XplatUIX11.cs: Improvement over last patch, not sending
9925           the WM_PAINT directly anymore, instead we scroll any pending
9926           exposed areas and let the system pick out the WM_PAINT later
9927
9928 2005-01-28  Peter Bartok  <pbartok@novell.com>
9929
9930         * SWF.csproj: Deleted, no longer used. Instead,
9931           Managed.Windows.Forms/SWF.csproj should be used
9932         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9933           directly, to avoid a potential race condition with the next
9934           scroll
9935
9936 2005-01-28  Peter Bartok  <pbartok@novell.com>
9937
9938         * XplatUI.cs: Made class internal
9939
9940 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9941
9942         * CheckedListBox.cs:
9943                 - Draw focus
9944                 - Fixed Drawing
9945                 - Missing methods and events
9946
9947 2005-01-27  Peter Bartok  <pbartok@novell.com>
9948
9949         * Application.cs (Run): Don't use form if we don't have one
9950
9951 2005-01-27  Peter Bartok  <pbartok@novell.com>
9952
9953         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9954
9955 2005-01-27  Peter Bartok  <pbartok@novell.com>
9956
9957         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9958         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9959         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9960         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9961         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9962         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9963         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9964         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9965         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9966         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9967         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9968         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9969
9970 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9971
9972         * Combobox.cs:
9973                 - Draw focus on Simple Combobox
9974                 - Fixes drawing issues
9975                 - fixes 71834
9976
9977 2005-01-27  Peter Bartok  <pbartok@novell.com>
9978
9979         * Form.cs:
9980           - Place window in default location, instead of hardcoded 0/0
9981           - Send initial LocationChanged event
9982         * Control.cs:
9983           - UpdateBounds after creation to find out where the WM placed us
9984           - Make sure that if the ParentForm changes location the Form
9985             is notified
9986         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9987             to the root, but to whatever the WM placed around us.
9988             Translate to root coordinates before returning toplevel
9989             coordinates
9990         * XplatUIWin32.cs: Removed debug output
9991         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9992           flag to GetWindowPos, to allow translation of coordinates on X11
9993
9994 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9995
9996         * ListBox.cs: connect LostFocus Event
9997
9998 2005-01-27  Peter Bartok  <pbartok@novell.com>
9999
10000         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10001           XplatUIX11.cs: Extended the Systray API
10002         * Form.cs: Removed debug output
10003         * Application.cs: Fixed focus assignment, always need to call
10004           XplatUI.Activate() since Form.Activate() has rules that may
10005           prevent activation
10006         * NotifyIcon.cs: Should be complete now
10007         * ToolTip.cs: Worked around possible timer bug
10008
10009 2005-01-27  Jackson Harper  <jackson@ximian.com>
10010
10011         * TabControl.cs:
10012         - Only invalidate the effected tabs when the
10013         selected index changes. This reduces drawing and gets rid of some
10014         flicker.
10015         - Only refresh if the tabs need to be shifted, otherwise only
10016         invalidate the slider button.
10017         - On windows the tabs are not filled to right if the slider is
10018         visible.
10019         
10020 2005-01-27  Jackson Harper  <jackson@ximian.com>
10021
10022         * TabControl.cs: Only refresh on mouseup if we are showing the
10023         slider. Also only invalidate the button whose state has changed.
10024
10025 2005-01-26  Peter Bartok  <pbartok@novell.com>
10026
10027         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10028         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10029           and SystrayRemove() methods
10030         * XplatUIOSX.cs: Stubbed Systray methods
10031         * XplatUIX11.cs:
10032           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10033             methods
10034           - Fixed broken XChangeProperty calls (marshalling messed up things)
10035         * X11Structs.cs: Added enums and structs required for Size hinting
10036         * NotifyIcon.cs: Added & implemented
10037
10038 2005-01-26  Jackson Harper  <jackson@ximian.com>
10039
10040         * TabControl.cs: Space vertically layed out tabs properly.
10041
10042 2005-01-26  Peter Bartok  <pbartok@novell.com>
10043
10044         * Form.cs (CreateClientParams): Always set the location to 0,0
10045           since we're a child window.
10046
10047         * Control.cs (SetVisibleCore): Always explicitly setting the location
10048           of a toplevel window, apparently X11 doesn't like to move windows
10049           while they're not mapped.
10050
10051 2005-01-26  Jackson Harper  <jackson@ximian.com>
10052
10053         * TabControl.cs: Implement FillToRight size mode with vertically
10054         rendered tabs.
10055
10056 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10057
10058         * ControlPaint.cs, ThemeWin32Classic.cs
10059                 - Fixes DrawFocusRectangle
10060
10061 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10062
10063         * MenuAPI.cs:
10064                 - MenuBar tracking only starts when item is first clicked
10065                 - Fixes menu hidding for multiple subitems
10066                 - Unselect item in MenuBar when item Executed
10067                 - Fixes bug 71495
10068
10069 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10070
10071         * ListControl.cs:
10072                 - IsInputKey for ListBox
10073         * ListBox.cs:
10074                 - Focus item
10075                 - Shift and Control item selection
10076                 - Implement SelectionMode.MultiExtended
10077                 - Fixes RightToLeft
10078         * ComboBox.cs:
10079                 - IsInputKey implemented
10080                 - Do not generate OnTextChangedEdit on internal txt changes
10081                 
10082 2005-01-23  Peter Bartok  <pbartok@novell.com>
10083
10084         * AccessibleObject.cs: Partially implemented Select()
10085         * MonthCalendar.cs: Added missing attributes and events
10086         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10087           form can properly override CreateParams.
10088         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10089           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10090           Control performs Invalidate & Update
10091         * NativeWindow (CreateHandle): Added special handling for Form
10092           and Form.FormParent classes to allow overriding of From.CreateParams
10093         * Control.cs:
10094           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10095             name 'owner'
10096           - ControlNativeWindow: Added Owner property
10097           - Removed usage of Refresh() on property changes, changed into
10098             Invalidate(), we need to wait until the queue is processed for
10099             updates, direct calls might cause problems if not all vars for
10100             Paint are initialized
10101           - Added call to UpdateStyles() when creating the window, to set any
10102             styles that CreateWindow might have ignored.
10103           - Added support for Form CreateParent overrides to UpdateStyles()
10104         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10105           CreateParams are now properly overridable
10106         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10107           CreateParams are now properly overridable
10108
10109 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10110
10111         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10112         OnTextBoxChanged.
10113
10114         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10115         recursive invocation that I have not figured out yet.
10116
10117         Reset the timer when not using (it was accumulating).
10118
10119
10120         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10121         user has made changes that require validation.
10122
10123         Reset changing to avoid loops.
10124
10125 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10126
10127         * NumericUpDown.cs: Display value at startup.
10128
10129         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10130         ValidateEditText.
10131
10132         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10133         filled in.  Added some basic parsing of text.
10134
10135         Still missing the OnXXX method overrides, and figuring out the
10136         events that must be emitted.
10137
10138         * UpDownBase.cs: Handle UserEdit on the Text property.
10139         
10140 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10141
10142         * ComboBox.cs:
10143           - Fixes IntegralHeight
10144           - ToString method
10145
10146 2005-01-21  Jackson Harper  <jackson@ximian.com>
10147
10148         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10149         is set so that the page visibility is updated and the tabs are
10150         sized correctly.
10151
10152 2005-01-21  Jackson Harper  <jackson@ximian.com>
10153
10154         * TabControl.cs: Use cliping rectangle for blitting. Give the
10155         theme the clipping rect so we can do clipping while
10156         drawing. Remove some debug code.
10157
10158 2005-01-21  Jackson Harper  <jackson@ximian.com>
10159
10160         * TabPage.cs: Add a new method so tab pages can force the tab
10161         control to recalculate the tab page sizes.
10162         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10163         sizes.
10164
10165 2005-01-20  Jackson Harper  <jackson@ximian.com>
10166
10167         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10168
10169 2005-01-20  Jackson Harper  <jackson@ximian.com>
10170
10171         * TreeView.cs: Set the bounds for nodes properly. They were
10172         getting screwed up when checkboxes were not enabled, but images
10173         were.
10174
10175 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10176
10177         * ListBox.cs:
10178                 - Owner draw support
10179                 - Fixes
10180                 
10181 2005-01-20  Jackson Harper  <jackson@ximian.com>
10182
10183         * XplatUIStructs.cs: More misc keys
10184         * X11Keyboard.cs: Ignore some control keys.
10185
10186 2005-01-20  Jackson Harper  <jackson@ximian.com>
10187
10188         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10189         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10190
10191 2005-01-19  Peter Bartok  <pbartok@novell.com>
10192
10193         * Control.cs: Un-selecting the control when it is loosing focus
10194
10195 2005-01-19  Jackson Harper  <jackson@ximian.com>
10196
10197         * TreeView.cs: Hook up to the text controls leave event so we can
10198         end editing when the users clicks outside the text box.
10199         
10200 2005-01-19  Jackson Harper  <jackson@ximian.com>
10201
10202         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10203         get set in the conversion array.
10204
10205 2005-01-19  Peter Bartok  <pbartok@novell.com>
10206
10207         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10208           focus is properly set
10209         * Button.cs:
10210           - Added missing attributes
10211           - removed styles, those are already set in the base class
10212         * ButtonBase.cs:
10213           - Added missing attributes
10214           - Added clip window styles
10215         * CheckBox.cs: Added missing attributes
10216         * CommonDialog.cs:
10217           - FormParentWindow.CreateParams: Added required clip styles
10218         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10219           also filters modifier keys
10220         * MessageBox.cs:
10221           - Added assignment of Accept and Cancel button to enable Enter
10222             and Esc keys in MessageBox dialogs
10223           - FormParentWindow.CreateParams: Added required clip styles
10224         * RadioButton.cs: Added missing attributes
10225         * TextControl.cs: No longer draws selection if control does not
10226           have focus
10227         * TextBoxBase.cs:
10228           - Now draws simple rectangle around test area to make it obvious
10229             there's a control. This is a hack until we properly support borders
10230           - A few simple fixes to support selections better, now erases selected
10231             text when typing, and resets selection when using movement keys
10232
10233 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10234
10235         * UpDownBase.cs: Added some new properties.
10236
10237         * DomainUpDown.cs: Implement a lot to get my test working.
10238
10239 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10240
10241         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10242
10243 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10244
10245         * OSXStructs (WindowAttributes): Fixed csc complaints
10246
10247 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10248
10249         * XplayUIOSX.cs:
10250           OSXStructs.cs: Initial refactor to move enums and consts into
10251           OSXStructs and use them in the driver for greater readability.
10252
10253 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10254
10255         * XplatUIOSX.cs: Initial support for Standard Cursors.
10256         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10257
10258 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10259
10260         * ComboBox.cs: ability to change style when the ctrl is already
10261         created, missing methods and events, bug fixes, signature fixes
10262
10263 2005-01-19  Peter Bartok  <pbartok@novell.com>
10264
10265         * Cursors.cs (ctor): Added ctor to fix signature
10266
10267 2005-01-18  Peter Bartok  <pbartok@novell.com>
10268
10269         * Button.cs: Implemented DoubleClick event
10270         * ButtonBase.cs:
10271           - Fixed keyboard handling to behave like MS, where the press of
10272             Spacebar is equivalent to a mousedown, and the key release is
10273             equivalent to mouseup. Now a spacebar push will give the same
10274             visual feedback like a mouse click.
10275           - Added missing attributes
10276           - Added ImeModeChanged event
10277           - Added support for generating DoubleClick event for derived classes
10278         * CheckBox.cs:
10279           - Implemented DoubleClick event
10280           - Added missing attributes
10281         * CommonDialog.cs: Added missing attribute
10282         * ContextMenu.cs: Added missing attributes
10283         * RadioButton.cs:
10284           - AutoChecked buttons do not allow to be unselected when clicked
10285             (otherwise we might end up with no selected buttons in a group)
10286           - Added missing attributes
10287           - Implemented DoubleClickEvent
10288         * ThreadExceptionDialog.cs: Enabled TextBox code
10289
10290 2005-01-18  Peter Bartok  <pbartok@novell.com>
10291
10292         * Form.cs: Removed debug output
10293         * Button.cs: Added support for DoubleClick method
10294
10295 2005-01-18  Peter Bartok  <pbartok@novell.com>
10296
10297         * Form.cs:
10298           - Added method to parent window that allows triggering size
10299             calculations when a menu is added/removed
10300           - set_Menu: Cleaned up mess from early days of Form and Control,
10301             now properly triggers a recalc when a menu is added/removed
10302           - Added case to select form itself as focused form if no child
10303             controls exist
10304           - Added PerformLayout call when showing dialog, to ensure properly
10305             placed controls
10306         * Control.cs:
10307           - Select(): Made internal so Form can access it
10308           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10309             status
10310         * Application.cs (Run): Removed hack and calls PerformLayout instead
10311           to trigger calculation when Form becomes visible
10312
10313 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10314
10315         * ComboBox.cs: fixes for ownerdraw
10316
10317 2005-01-18  Peter Bartok  <pbartok@novell.com>
10318
10319         * TextControl.cs:
10320           - Sentinel is no longer static, each Document gets it's own, this
10321             avoids locking or alternatively overwrite problems when more
10322             than one text control is used simultaneously.
10323           - Switched to use Hilight and HilightText brushes for text selection
10324
10325         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10326
10327 2005-01-18  Peter Bartok  <pbartok@novell.com>
10328
10329         * Control.cs:
10330           - Hooked up the following events:
10331                 o ControlAdded
10332                 o ControlRemoved
10333                 o HandleDestroyed
10334                 o ImeModeChanged
10335                 o ParentChanged
10336                 o TabStopChanged
10337                 o Invalidated
10338                 o SystemColorsChanged
10339                 o ParentFontChanged
10340                 o Move
10341           - Removed debug output
10342           - Added a call to the current theme's ResetDefaults when a color change
10343             is detected
10344         * Form.cs: Now setting the proper ImeMode
10345         * Theme.cs: Defined a method to force recreation of cached resources
10346           and rereading of system defaults (ResetDefaults())
10347         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10348
10349 2005-01-17  Peter Bartok  <pbartok@novell.com>
10350
10351         * Control.cs: Added missing attributes
10352
10353 2005-01-17  Jackson Harper  <jackson@ximian.com>
10354
10355         * TreeNode.cs: Implement editing. Add missing properties selected
10356         and visible.
10357         * TreeView.cs: Implement node editing. Also some fixes to use
10358         Invalidate (invalid area) instead of Refresh when selecting.
10359
10360 2005-01-17  Peter Bartok  <pbartok@novell.com>
10361
10362         * Control.cs:
10363           - Implemented InvokeGotFocus() method
10364           - Implemented InvokeLostFocus() method
10365           - Implemented InvokePaint() method
10366           - Implemented InvokePaintBackground() method
10367           - Implemented InvokeClick() method
10368           - Implemented FindForm() method
10369           - Implemented RectangleToClient() method
10370           - Implemented ClientToRectangle() method
10371           - Implemented ResetBackColor() method
10372           - Implemented ResetCursor() method
10373           - Implemented ResetFont() method
10374           - Implemented ResteForeColor() method
10375           - Implemented ResetImeMode() method
10376           - Implemented ResetLeftToRight() method
10377           - Implemented ResetText() method
10378           - Implemented Scale() methods
10379           - Implemented ScaleCore() method
10380           - Implemented Update() method
10381           - Removed unused variables
10382           - Stubbed AccessibilityNotifyClients and
10383             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10384             with those yet)
10385           - Now setting proper default for RightToLeft property
10386           - Fixed bug in SetClientSizeCore that would cause windows to get
10387             really big
10388           - Now sending Click/DoubleClick events
10389           - Now selecting controls when left mouse button is clicked on
10390             selectable control
10391         * AccessibleEvents.cs: Added
10392         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10393         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10394         * XplatUIWin32.cs: Implemented UpdateWindow() method
10395         * XplatUIX11.cs: Implemented UpdateWindow() method
10396         * Form.cs: Removed stray semicolon causing CS0162 warning
10397         * ThemeWin32Classic.cs: Fixed unused variable warnings
10398         * ScrollableControl.cs: Now calls base method for ScaleCore
10399         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10400           style to avoid interference with internal click handler (which is
10401           different than standard Control click handling)
10402         * RadioButton.cs:
10403           - Now unchecks all sibling radio buttons when control is
10404             selected (Fixes #68756)
10405           - Removed internal tabstop variable, using the one inherited from
10406             Control
10407
10408 2005-01-17  Jackson Harper  <jackson@ximian.com>
10409
10410         * NavigateEventArgs.cs: Fix base type.
10411         * LinkLabel.cs: Sig fix
10412         
10413 2005-01-17  Jackson Harper  <jackson@ximian.com>
10414
10415         * TreeView.cs: Only invalidate the effected nodes bounds when
10416         selecting nodes.
10417
10418 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10419
10420         * XplatUIWin32.cs: fixes Win32 marshaling
10421         * XplatUIX11.cs: fixes method signature
10422
10423 2005-01-17  Peter Bartok  <pbartok@novell.com>
10424
10425         * XplatUIX11.cs: Clean up resources when we no longer need them
10426
10427 2005-01-17  Peter Bartok  <pbartok@novell.com>
10428
10429         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10430           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10431           and DestroyCursor() methods.
10432         * Cursor.cs: Partially implemented, now supports standard cursors;
10433           still contains some debug code
10434         * Cursors.cs: Implemented class
10435         * Control.cs:
10436           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10437             appropriate cursor
10438           - Implemented Cursor property
10439           - Replaced break; with return; more straightforwar and possibly
10440             faster
10441           - Now properly setting the result for WM_HELP
10442         * X11Structs.cs: Added CursorFontShape enum
10443         * XplatUIStructs.cs:
10444           - Added StdCursor enum (to support DefineStdCursor() method)
10445           - Added HitTest enum (to support sending WM_SETCURSOR message)
10446         * XplatUIX11.cs:
10447           - Now sends the WM_SETCURSOR message
10448           - Implemented new cursor methods
10449         * XplatUIOSX.cs: Stubbed new cursor methods
10450         * XplatUIWin32.cs:
10451           - Implemented new cursor methods
10452           - Added GetSystemMetrics function and associated enumeration
10453
10454 2005-01-15  Peter Bartok  <pbartok@novell.com>
10455
10456         * Control.cs:
10457           - WndProc(): Now handles EnableNotifyMessage
10458           - SelectNextControl(): Fixed bug where if no child or sibling
10459             controls exist we looped endlessly
10460
10461 2005-01-14  Jackson Harper  <jackson@ximian.com>
10462
10463         * TreeView.cs: Recalculate the tab pages when a new one is added
10464         so that the proper bounding rects are created.
10465
10466 2005-01-14  Jackson Harper  <jackson@ximian.com>
10467
10468         * TreeView.cs: Draw a gray box instead of a grip in the lower
10469         right hand corner when there are both horizontal and vertical
10470         scroll bars.
10471
10472 2005-01-14  Jackson Harper  <jackson@ximian.com>
10473
10474         * Control.cs: When erasing backgrounds use FromHwnd instead of
10475         FromHdc when there is a NULL wparam. This occurs on the X driver.
10476         * XplatUIX11.cs: Set the wparam to NULL.
10477
10478 2005-01-13  Jackson Harper  <jackson@ximian.com>
10479
10480         * PictureBox.cs: Implement missing methods (except ToString, need
10481         to test that on windows) and events. When visibility is changed we
10482         need to redraw the image because the buffers are killed. When size
10483         is changed refresh if the sizemode needs it.
10484
10485 2005-01-13  Peter Bartok  <pbartok@novell.com>
10486
10487         * Control.cs (SelectNextControl): Was using wrong method to select
10488           a control
10489
10490 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10491
10492         * ComboBox.cs: fixes dropstyle
10493
10494 2005-01-13  Peter Bartok  <pbartok@novell.com>
10495
10496         * Form.cs:
10497           - Implemented Select() override
10498           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10499           - Now sets keyboard focus on startup
10500         * Control.cs (SelectNextControl): Now properly handles directed=true
10501         * TextBoxBase.cs:
10502           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10503           - Added (really bad) focus rectangle (mostly for testing)
10504         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10505           to enforce redraw on focus changes
10506         * ContainerControl.cs:
10507           - Fixed detection of Shift-Tab key presses
10508           - Fixed traversal with arrow keys
10509         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10510           gonna keep this or if it's complete yet
10511         
10512 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10513
10514         * ComboBox.cs: missing properties, fixes
10515
10516 2005-01-13  Peter Bartok  <pbartok@novell.com>
10517
10518         * Panel.cs (ctor): Setting Selectable window style to off
10519         * Splitter.cs (ctor): Setting Selectable window style to off
10520         * GroupBox.cs (ctor): Setting Selectable window style to off
10521         * Label.cs (ctor): Setting Selectable window style to off
10522
10523 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10524
10525         * UpDownBase.cs (InitTimer): If the timer has been already
10526         created, enable it.
10527
10528         Use a TextBox instead of a Label.
10529
10530 2005-01-12  Jackson Harper  <jackson@ximian.com>
10531
10532         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10533         draw the connecting node lines (when ShowLines is true).
10534         * TreeNode.cs: The nodes index can now be updated. This is used
10535         when a node collection is sorted.
10536         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10537         insert or an existing unsorted node collection can be sorted.
10538         
10539 2005-01-12  Peter Bartok  <pbartok@novell.com>
10540
10541         * ContainerControl.cs: Implemented ProcessDialogKeys()
10542
10543 2005-01-12  Peter Bartok  <pbartok@novell.com>
10544
10545         * Control.cs:
10546           - Implemented SelectNextControl() method
10547           - Several focus related bug fixes
10548           - Fixed Docking calculations to match MS documentation and
10549             behaviour
10550
10551 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10552
10553         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10554         bug fixes
10555
10556 2005-01-12  Peter Bartok  <pbartok@novell.com>
10557
10558         * Control.cs:
10559           - Fixed broken Contains() method
10560           - Implemented GetNextControl() method. Finally. This is the pre-
10561             requisite for focus handling.
10562
10563 2005-01-12  Peter Bartok  <pbartok@novell.com>
10564
10565         * OSXStrucs.cs: Added
10566
10567 2005-01-12  Peter Bartok  <pbartok@novell.com>
10568
10569         * XplatUIWin32.cs:
10570           - Removed PeekMessageFlags
10571           - Implemented SetWindowStyle() method
10572         * XplatUIStructs.cs: Added PeekMessageFlags
10573         * X11Structs: Added missing border_width field to XWindowChanges struct
10574         * XplatUIX11.cs:
10575           - PeekMessage: Now throws exception if flags which are not yet
10576             supported are passed
10577           - Implemented SetWindowStyle() method
10578           - Fixed SetZOrder to handle AfterHwnd properly
10579         * XplatUI.cs: Added SetWindowStyle() method
10580         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10581         * Control.cs:
10582           - Implemented UpdateStyles() method
10583           - Implemented UpdateZOrder() method
10584         * XplatUIOSX.cs: Added SetWindowStyle() stub
10585
10586 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10587
10588         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10589         button mouse).
10590
10591
10592 2005-01-11  Jackson Harper  <jackson@ximian.com>
10593
10594         * TreeView.cs: Still need to draw lines to siblings even if out of
10595         the current node is out of the clip.
10596
10597 2005-01-11  Jackson Harper  <jackson@ximian.com>
10598
10599         * TreeView.cs: When setting the hbar/vbar/grip position use
10600         SetBounds so that perform layout is only called once. Also suspend
10601         and resume layout so layout is only done once for all controls.
10602         - Removed some debug fluff
10603         * SizeGrip.cs: Call base implmentation in overriding methods.
10604         - When visibility is changed the drawing buffers are killed so we
10605         need to redraw.
10606
10607 2005-01-11  Jackson Harper  <jackson@ximian.com>
10608
10609         * TreeView.cs: Calculate the open node count while drawing. This
10610         saves us an entire tree traversal for every paint operation. Use
10611         a member var for the open node count so less vars are passed around.
10612
10613 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10614
10615         * MonthCalendar.cs:
10616         - fixed selection to use mousemove, not mouse polling on timer
10617         * ThemeWin32Classic.cs
10618         - removed redundant unused variable "no_more_content"
10619         
10620 2005-01-11  Peter Bartok  <pbartok@novell.com>
10621
10622         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10623           are pending, so it now calls PeekMessage instead of GetMessage;
10624           implemented a incomplete version of PeekMessage
10625         
10626 2005-01-11  Peter Bartok  <pbartok@novell.com>
10627
10628         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10629           I18n issues
10630         * TextBoxBase.cs: Added sending of TextChanged event
10631
10632 2005-01-10  Jackson Harper  <jackson@ximian.com>
10633
10634         * TreeView.cs: Try not to draw outside the clipping rectangle on
10635         each node element.
10636
10637 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10638
10639         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10640
10641 2005-01-10  Jackson Harper  <jackson@ximian.com>
10642
10643         * TreeView.cs:
10644         - Implement fast scrolling. Now only the newly
10645         exposed nodes are drawn and the old image is moved using the
10646         XplatUI::ScrollWindow method.
10647         - Factor in height of nodes when calculating whether or not the
10648         node is in the clipping rect.
10649
10650 2005-01-10  Jackson Harper  <jackson@ximian.com>
10651
10652         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10653
10654 2005-01-10  Peter Bartok  <pbartok@novell.com>
10655
10656         * Application.cs: Added temporary hack to resolve all our resize
10657           required issues on startup. This will get fixed properly at
10658           some point in the future
10659
10660 2005-01-10  Jackson Harper  <jackson@ximian.com>
10661
10662         * SizeGrip.cs: New internal class that is used as a sizing
10663         grip control...hence the name.
10664
10665 2005-01-10  Peter Bartok  <pbartok@novell.com>
10666
10667         * Control.cs: Implemented proper TabIndex handling, now assigning
10668           a tabindex when a control is added to a container
10669         * GroupBox.cs (ctor): Now sets the Container style bit, required
10670           for Control.GetNextControl()
10671
10672 2005-01-09  Jackson Harper  <jackson@ximian.com>
10673
10674         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10675
10676 2005-01-09  Peter Bartok <pbartok@novell.com>
10677
10678         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10679           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10680           an overload for ScrollWindow to allow only scrolling a rectangle
10681
10682 2005-01-09  Peter Bartok <pbartok@novell.com>
10683
10684         * Form.cs:
10685           - Implemented SetDesktopBounds method
10686           - Implemented SetDesktopLocation method
10687
10688 2005-01-08  Jackson Harper  <jackson@ximian.com>
10689
10690         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10691         the node count has changed, this removes to VScroll::Refresh calls
10692         when drawing.
10693
10694 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10695
10696         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10697
10698 2005-01-07  Jackson Harper  <jackson@ximian.com>
10699
10700         * TreeNode.cs: Just update the single node when it is
10701         checked. Don't refresh after toggling, the Expand/Collapse already
10702         handles this.
10703         * TreeView.cs: Respect clipping a little more when drawing. Try
10704         not to redraw things that don't need to be redrawn. Just hide the
10705         scrollbars when they are no longer needed instead of removing
10706         them, so they don't have to be created again and again.
10707         
10708 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10709
10710         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10711         coordinates to window space to place the caret properly, FIXED.
10712         Implement GetWindowState & SetWindowState
10713
10714 2005-01-06  Peter Bartok <pbartok@novell.com>
10715
10716         * Form.cs:
10717           - Implemented ClientSize property
10718           - Implemented DesktopBounds property
10719           - Implemented DesktopLocation property
10720           - Implemented IsRestrictedWindow property
10721           - Implemented Size property
10722           - Implemented TopLevel property
10723           - Implemented FormWindowState property
10724         * Control.cs:
10725           - Implemented GetTopLevel() method
10726           - Implemented SetTopLevel() method
10727         * X11Structs.cs (Atom):
10728           - Added AnyPropertyType definition
10729           - Added MapState definiton and updated XWindowAttribute struct
10730         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10731         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10732         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10733         * XplatUIWin32.cs:
10734           - Implemented GetWindowState() and SetWindowState() methods
10735           - Fixed Win32GetWindowLong return type
10736         * XplatUIX11.cs:
10737           - Introduced central function for sending NET_WM messages
10738           - Implemented GetWindowState() and SetWindowState() methods
10739         * TextBoxBase.cs (set_Lines):
10740           - Now uses Foreground color for text added via Text property (Duh!)
10741           - Added code to remember programmatically requested size (fixes
10742             behaviour when Multiline is set after Size)
10743           - Added AutoSize logic
10744
10745 2005-01-06  Jackson Harper  <jackson@ximian.com>
10746
10747         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10748
10749 2005-01-06  Jackson Harper  <jackson@ximian.com>
10750
10751         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10752         set to less then 0.
10753
10754 2005-01-06  Jackson Harper  <jackson@ximian.com>
10755
10756         * ScrollableControl.cs: Lazy init the scrollbars.
10757         
10758 2005-01-06  Jackson Harper  <jackson@ximian.com>
10759
10760         * Theme.cs: Speed up getting pens and solid brushes, by using
10761         their ARGB as a hash instead of tostring and not calling Contains.
10762
10763 2005-01-06  Peter Bartok <pbartok@novell.com>
10764
10765         * Form.cs:
10766           - Implemented OnActivated and OnDeactivate event trigger
10767           - Implemented Activate() method
10768           - Fixed ShowDialog() to activate the form that was active before
10769             the dialog was shown
10770         * XplatUIX11.cs:
10771           - Added global active_window var that tracks the currently active
10772             X11 window
10773           - Now always grabs Property changes from the root window to always
10774             catch changes on the active window property
10775           - Added code to PropertyNotify handler to send Active/Inactive
10776             messages when state changes. This puts X11 and Win32 en par on
10777             WM_ACTIVATE notifications (except for double notifications when
10778             the user clicks away from our modal window to another one of our
10779             windows)
10780
10781 2005-01-05  Jackson Harper  <jackson@ximian.com>
10782
10783         * ImageList.cs: Implment ctor
10784
10785 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10786
10787         * XplatUIOSX.cs: Implement Activate/SetTopmost
10788
10789 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10790
10791         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10792
10793 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10794
10795         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10796
10797 2005-01-05  Peter Bartok <pbartok@novell.com>
10798
10799         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10800           XplatUIOSX.cs: Added GetActive method to return the currently
10801           active window for the application (or null, if none is active)
10802         * Form.cs:
10803           - Implemented ActiveForm
10804           - Commented out owner assignment for modal dialogs (causes problems
10805             on Win32, since the owner will be disabled)
10806           - Reworked some Active/Focus handling (still incomplete)
10807         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10808           (causes problems on Win32, since the owner will be disabled)
10809         * IWin32Window: Added ComVisible attribute
10810
10811 2005-01-05  Peter Bartok <pbartok@novell.com>
10812
10813         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10814           required XplatUI functions.
10815
10816 2005-01-05  Peter Bartok <pbartok@novell.com>
10817
10818         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10819           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10820           to implement focus and activation handling; still incomplete and
10821           with debug output
10822
10823 2005-01-04  Peter Bartok <pbartok@novell.com>
10824
10825         * TextBoxBase.cs: Changed access level for Document property to
10826           match switch to internal for TextControl
10827
10828 2005-01-04  Peter Bartok <pbartok@novell.com>
10829
10830         * AccessibleObject: Added ComVisible attribute
10831
10832 2005-01-04  Jackson Harper  <jackson@ximian.com>
10833
10834         * X11Keyboard.cs: Remove unneeded var.
10835
10836 2005-01-04  Jackson Harper  <jackson@ximian.com>
10837
10838         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10839         but PAINT.
10840         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10841         ClientMessage. This makes apps exit cleanly (more often).
10842         
10843 2005-01-04  Jackson Harper  <jackson@ximian.com>
10844
10845         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10846         handling focus, return correct colors and fonts,
10847         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10848         handle selection, horizontal scrolling, and mouse interaction.
10849
10850 2005-01-04  Peter Bartok <pbartok@novell.com>
10851
10852         * ICommandExecutor.cs: Added
10853         * IDataGridColumnStyleEditingNotificationService.cs: Added
10854         * IFeatureSupport.cs: Added
10855         * IFileReaderService.cs: Added
10856         * IDataObject.cs: Added ComVisible attribute
10857         * AmbientProperties.cs: Added
10858         * BaseCollection.cs: Added missing attributes
10859         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10860         * BaseCollection.cs: Added missing attributes
10861         * Binding.cs: Added TypeConverter attribute
10862         * BindingContext.cs: Added DefaultEvent attribute
10863         * BindingsCollection.cs: Added DefaultEvent attribute
10864         * Button.cs: Added DefaultValue attribute
10865         * DragEventArgs.cs: Added ComVisible attribute
10866         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10867         * KeyEventArgs.cs: Added ComVisible attribute
10868         * KeyPressEventArgs.cs: Added ComVisible attribute
10869         * MouseEventArgs.cs: Added ComVisible attribute
10870         * NavigateEventArgs.cs: Added
10871         * NavigateEventHandler.cs: Added
10872         * FeatureSupport.cs: Added
10873         * OSFeature.cs: Added
10874         * Theme.cs: Added abstract Version property to support OSFeature
10875         * ThemeWin32Classic.cs: Added Version property to
10876           support OSFeature.Themes
10877         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10878           the proper styles to avoid background drawing are set, also doesn't
10879           match MS signature
10880         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10881         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10882         * ScrollEventArgs.cs: Added ComVisible attribute
10883         * SplitterEventArgs.cs: Added ComVisible attribute
10884         * AccessibleSelection.cs: Added Flags attribute
10885         * Appearance.cs: Added ComVisible attribute
10886         * Border3DSide.cs: Added ComVisible attribute
10887         * Border3DStyle.cs: Added ComVisible attribute
10888         * BorderStyle.cs: Added ComVisible attribute
10889         * DragAction.cs: Added ComVisible attribute
10890         * ErrorBlinkStyle.cs: Added
10891         * ScrollEventType.cs: Added ComVisible attribute
10892         * AnchorStyles.cs: Added Editor attribute
10893         * DockStyle.cs: Added Editor attribute
10894         * HorizontalAlignment.cs: Added ComVisible attribute
10895         * HelpEventArgs.cs: Added ComVisible attribute
10896         * PaintEventArgs.cs: Added IDisposable
10897
10898 2005-01-04  Peter Bartok <pbartok@novell.com>
10899
10900         * TextControl.cs: Switched Line, LineTag and Document classes to
10901           internal
10902
10903 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10904
10905         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10906         Simple mode, fixes, IntegralHeight, etc.
10907
10908 2005-01-04  Peter Bartok <pbartok@novell.com>
10909
10910         * TextBoxBase.cs: Using proper font variable now
10911
10912 2005-01-04  Peter Bartok <pbartok@novell.com>
10913
10914         * Form.cs (ShowDialog): Set parent to owner, if provided
10915         * GroupBox.cs: Removed unused vars
10916         * TextControl.cs:
10917           - Added GetHashCode() for Document and LineTag classes
10918           - Removed unused variables
10919           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10920             to allow translation between continuous char position and line/pos
10921         * CheckBox.cs: Removed vars that are provided by base class
10922         * RadioButton.cs: Removed vars that are provided by base class, added
10923           new keyword where required
10924         * LinkLabel.cs: Added new keyword where required
10925         * Control.cs (WndProc): Removed unused variable
10926         * TextBoxBase.cs:
10927           - Finished SelectionLength property
10928           - Implemented SelectionStart property
10929           - Implemented Text property
10930           - Removed unused vars
10931         * MessageBox.cs: Added new keyword where required
10932         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10933           WndProc signature
10934         * MenuAPI.cs: Added new keyword where required
10935         * ButtonBase.cs: Removed vars that are provided by base class, added
10936           new keyword where required
10937         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10938           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10939           into this)
10940         * Application.cs (Run): Now triggers the ThreadExit event
10941         * CommonDialog.cs: Added new keyword where required; now properly sets
10942           parent (owner) for dialog
10943         * XplatUIX11.cs: Commented out unused vars
10944         * StatusBar.cs: Fixed signature for Text property
10945         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10946
10947 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10948
10949         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10950         TrackBar.cs, MonthCalendar.cs: remove unused vars
10951
10952 2005-01-03  Jackson Harper  <jackson@ximian.com>
10953
10954         * ThemeWin32Classic.cs:
10955         * X11Keyboard.cs: Remove unused vars.
10956
10957 2005-01-03  Peter Bartok  <pbartok@novell.com>
10958
10959         * TextBox.cs:
10960           - set_Text: Tied into TextControl
10961           - set_TextAlignment: Tied into TextControl
10962         * TextControl.cs:
10963           - Added alignment properties and implemented alignment handling
10964             and drawing (still has a bug, not generating proper expose events)
10965           - Added new Line() constructor to allow passing the line alignment
10966           - Fixed selection setting, properly handling end<start now
10967           - Added aligment considerations to RecalculateDocument()
10968         * TextBoxBase.cs:
10969           - Now properly enforces control height for single line controls
10970           - Added support for CharacterCasing
10971           - Added IsInputKey override
10972           - Fixed Keys.Enter logic
10973           - Added SetBoundsCore override
10974           - Fixed mouse selection handling
10975
10976 2005-01-03  Jackson Harper  <jackson@ximian.com>
10977
10978         * TreeView.cs:
10979           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10980           - Checkboxes are always aligned to the bottom of the node,
10981           regardless of item height.
10982           - Use the node bounds to draw the text so we can center it when
10983           the item height is greater then the font height.
10984           - Node::Bounds are only the text part of the node.
10985         * TreeNode.cs: New method to combine collapsing and unchecking all
10986           nodes recursively.
10987
10988 2005-01-02  Jackson Harper  <jackson@ximian.com>
10989
10990         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10991         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10992         tree when a check is changed. TODO: Only refresh the checked node.
10993
10994 2004-12-30  Jackson Harper  <jackson@ximian.com>
10995
10996         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10997         * TreeNode.cs: When collapsing make sure to never collapse the
10998         root node.
10999
11000 2004-12-29  Jackson Harper  <jackson@ximian.com>
11001
11002         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11003         
11004 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11005
11006         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11007
11008 2004-12-28  Peter Bartok  <pbartok@novell.com>
11009
11010         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11011           not yet assigned
11012
11013 2004-12-28  Peter Bartok  <pbartok@novell.com>
11014
11015         * Control.cs (WndProc): Added WM_HELP handler, now generates
11016           HelpRequested event
11017         * Form.cs: Added HelpButton property and required support code
11018         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11019
11020 2004-12-28  Peter Bartok  <pbartok@novell.com>
11021
11022         * CommonDialog.cs:
11023           - Made DialogForm.owner variable internal
11024           - Added check to ensure owner form is set before setting
11025             owner properties in CreateParams
11026
11027 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11028
11029         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11030           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11031           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11032           system to support borderless/titleless windows (implements menus).
11033           Fix GetWindowPos.  Implement initial background color support for
11034           views.
11035
11036 2004-12-28  Peter Bartok  <pbartok@novell.com>
11037
11038         * Form.cs (get_CreateParams): Make sure we have an owner before using
11039           the owner variable. Implement proper default if no owner exists
11040
11041 2004-12-28  Peter Bartok  <pbartok@novell.com>
11042
11043         * In preparation for making Managed.Windows.Forms the default build target
11044           for System.Windows.Forms, the following stubbed files were added.
11045           Dialogs are currently being implemented by contributors and are only
11046           short-term place holders.
11047         * ColorDialog.cs: Initial check-in (minmal stub)
11048         * DataGrid.cs: Initial check-in (minimal stub)
11049         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11050         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11051         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11052         * FontDialog.cs: Initial check-in (minimal stub)
11053         * FileDialog.cs: Initial check-in (minimal stub)
11054         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11055         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11056         * OpenFileDialog: Initial check-in (minimal stub)
11057         * IComponentEditorPageSite.cs: Initial check-in
11058         * Splitter.cs: Initial check-in (for Jackson)
11059         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11060         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11061         * TextBox.cs: Initial check-in; still needs some wiring to
11062           TextControl backend
11063         * Form.cs: Implemented ControlBox property
11064         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11065         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11066         * TextControl.cs: Added selection functionality; added todo header
11067         * TextBoxBase.cs:
11068           - Implemented Lines property
11069           - Implemented TextHeight property
11070           - Implemented SelectedText property
11071           - Implemented SelectionLength property
11072           - Implemented SelectAll method
11073           - Implemented ToString method
11074           - Removed and cleaned up some debug code
11075           - Implemented (still buggy) mouse text selection
11076
11077 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11078
11079         * ComboBox.cs: Complete DropDownList implementation, fixes.
11080
11081 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11082
11083         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11084         * ComboBoxStyle.cs: ComboBoxStyle enum
11085         * ComboBox.cs: Initial work on ComboBox control
11086
11087 2004-12-21  Peter Bartok  <pbartok@novell.com>
11088
11089         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11090           forward so that anything that creates a window gets the default,
11091           also no longer uses Visible property in CreateParams to avoid
11092           walking up the parent chain and possibly get the wrong visible
11093           status. Fixed IsVisible to no longer walk up to the parent.
11094
11095 2004-12-21  Peter Bartok  <pbartok@novell.com>
11096
11097         * Form.cs (ShowDialog): Unset modality for the proper window
11098  
11099 2004-12-20  Peter Bartok  <pbartok@novell.com>
11100
11101         * CommonDialog.cs: Initial check-in
11102
11103 2004-12-20  Peter Bartok  <pbartok@novell.com>
11104
11105         * Control.cs (Visible): Now uses the parent window instead of the
11106           client area window for the property
11107
11108         * Form.cs
11109           - ShowDialog(): Now uses the proper window for modality
11110           - The default visibility state for the form parent is now false. This
11111             will prevent the user from seeing all the changes to the form and
11112             its controls before the application hits Application.Run()
11113           - Removed some stale commented out code
11114
11115         * NativeWindow.cs:
11116           - Added FindWindow() method to have a method to check for existence
11117             of a window handle
11118           - Added ability to override default exception handling (for example
11119             when debugging with VS.Net; to do this the ExternalExceptionHandler
11120             define must be set
11121           - Removed some useless debug output
11122
11123         * XplatUIX11.cs:
11124           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11125             not working as expected
11126           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11127             property to allow switching back to the modal window if focus is
11128             given to another one of our windows (Application Modal)
11129           - Now only sets override_redirect if we create a window
11130             without WS_CAPTION
11131           - Moved EventMask selection before mapping of newly created window
11132             so we can catch the map event as well
11133           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11134           - Added various Atom related DllImports
11135           - Implemented Exit() method
11136           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11137             in the CreateParams
11138
11139         * MessageBox.cs: Now properly deals with the FormParent window by
11140           providing an override the FormParent CreateParams property to
11141           set as POPUP instead of OVERLAPPED window.
11142
11143 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11144
11145         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11146         Minor code cleanup.
11147
11148 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11149         
11150         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11151
11152 2004-12-18  Peter Bartok  <pbartok@novell.com>
11153
11154         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11155           implementing SetModal() method
11156
11157 2004-12-18  Peter Bartok  <pbartok@novell.com>
11158
11159         * X11Structs.cs (XGCValues): Fixed type of function element
11160         * XplatUI.cs: Added ScrollWindow() method
11161         * XplatUIDriver.cs: Added ScrollWindow() abstract
11162         * XplatUIWin32.cs: Implemented ScrollWindow() method
11163         * XplatUIX11.cs: Implemented ScrollWindow() method
11164         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11165
11166 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11167
11168         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11169         Some more keyboard support (INCOMPLETE)
11170
11171 2004-12-17  Peter Bartok  <pbartok@novell.com>
11172
11173         * TextControl.cs:
11174         - Added color attribute to line tags.
11175         - Added color argument to all functions dealing with tags
11176         - Added color argument support to various functions
11177         - Fixed miss-calculation of baseline/shift in certain circumstances
11178
11179         * TextBoxBase.cs: Added new color option to test code
11180
11181 2004-12-17  Jackson Harper  <jackson@ximian.com>
11182
11183         * TreeNode.cs:
11184         * MonthCalendar.cs: Signature fixes
11185
11186 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11187
11188         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11189         keyboard event moved it.  Create a new graphics context for each paint resolves this
11190
11191 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11192
11193         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11194         Make caret exist and go blink blink.  Initial keyboard support.
11195         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11196         works.
11197
11198 2004-12-17  Jackson Harper  <jackson@ximian.com>
11199
11200         * XplatUIStructs.cs: Updated set of virtual keycodes.
11201         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11202
11203 2004-12-17  Jackson Harper  <jackson@ximian.com>
11204
11205         * XplatUIX11.cs: Prune old keyboard code.
11206
11207 2004-12-17  Jackson Harper  <jackson@ximian.com>
11208
11209         * XplatUIX11.cs: When generating mouse wparams get the modifier
11210         keys from the ModifierKeys property.
11211
11212 2004-12-17  Jackson Harper  <jackson@ximian.com>
11213
11214         * X11Keyboard.cs: Send up/down input when generating
11215         messages. Remove some unused vars.
11216
11217 2004-12-17  Jackson Harper  <jackson@ximian.com>
11218
11219         * TabControl.cs:
11220         * TreeView.cs: get rid of warnings.
11221
11222 2004-12-17  Jackson Harper  <jackson@ximian.com>
11223
11224         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11225
11226 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11227
11228         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11229           CheckedListBox.cs: Implementation
11230
11231 2004-12-17  Peter Bartok  <pbartok@novell.com>
11232
11233         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11234
11235 2004-12-16  Peter Bartok  <pbartok@novell.com>
11236
11237         * TextControl.cs:
11238           - InsertCharAtCaret(): Fixed start pos fixup
11239           - CaretLine_get: No longer derives the line from the tag, the tag
11240             could be stale if lines in the document have been added or deleted
11241           - RebalanceAfterDelete(): Fixed bug in balancing code
11242           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11243           - Line.Streamline(): Now can also elminate leading empty tags
11244           - DumpTree(): Added a few more tests and prevented exception on
11245             uninitialized data
11246           - Added Debug section for Combining lines
11247           - Delete(): Now copies all remaining properties of a line
11248           
11249         * TextBoxBase.cs:
11250           - Left mousebutton now sets the caret (and middle button still acts
11251             as formatting tester, which must go away soon)
11252           - Added Debug section for Deleting/Combining lines
11253           - Fixed calculations for UpdateView after Combining lines
11254
11255 2004-12-16  Peter Bartok  <pbartok@novell.com>
11256
11257         * TextControl.cs: Now properly aligns text on a baseline, using the
11258           new XplatUI.GetFontMetrics() method. Simplified several calculations
11259         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11260           defined
11261
11262 2004-12-16  Peter Bartok  <pbartok@novell.com>
11263
11264         * XplatUI.cs: Added GetFontMetrics() method
11265         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11266         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11267           into libgdiplus, our private GetFontMetrics function
11268         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11269         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11270
11271 2004-12-16  Jackson Harper  <jackson@ximain.com>
11272
11273         * XplatUIStruct.cs: Add enum for dead keys
11274         * X11Keyboard.cs: Map and unmap dead keys.
11275
11276 2004-12-16  Jackson Harper  <jackson@ximian.com>
11277
11278         * X11Keyboard.cs: Detect and use the num lock mask.
11279
11280 2004-12-16  Peter Bartok  <pbartok@novell.com>
11281
11282         * Control.cs (CreateGraphics): Added check to make sure the
11283           handle of the window exists before calling Graphics.FromHwnd()
11284
11285 2004-12-16  Peter Bartok  <pbartok@novell.com>
11286
11287         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11288           contains a lot of code that's not supposed to be there for the
11289           real thing, but required for developing/testing the textbox
11290           backend.
11291
11292 2004-12-16  Peter Bartok  <pbartok@novell.com>
11293
11294         * TextControl.cs:
11295         - Fixed Streamline method
11296         - Added FindTag method to Line
11297         - Added DumpTree method for debugging
11298         - Added DecrementLines() method for deleting lines
11299         - Fixed UpdateView to update the cursor to end-of-line on single-line
11300           updates
11301         - Added PositionCaret() method
11302         - Fixed MoveCaret(LineDown) to move into the last line, too
11303         - Added InsertChar overload
11304         - Fixed InsertChar tag offset calculations
11305         - Added DeleteChar() method
11306         - Added Combine() method for folding lines
11307         - Fixed Delete() method, no longer allocates wasted Line object and
11308           now copies all properties when swapping nodes
11309         - Delete() method now updates document line counter
11310
11311 2004-12-15  Jackson Harper  <jackson@ximian.com>
11312
11313         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11314         * X11Keyboard.cs: Expose the currently selected modifier keys
11315         through a property.
11316
11317 2004-12-15  Peter Bartok  <pbartok@novell.com>
11318
11319         * TextControl.cs: Initial check-in. Still incomplete
11320
11321 2004-12-15  Jackson Harper  <jackson@ximian.com>
11322
11323         * TreeNode.cs:
11324         * TreeView.cs: Fix build on csc (second time today ;-))
11325
11326 2004-12-15  Jackson Harper  <jackson@ximian.com>
11327
11328         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11329         is calculated and use this for click testing.
11330         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11331
11332 2004-12-15  Jackson Harper  <jackson@ximian.com>
11333
11334         * TreeView.cs: Pass the nodes image index to the image list when
11335         drawing that image.
11336
11337 2004-12-15  Jackson Harper  <jackson@ximian.com>
11338
11339         * X11Keyboard.cs: Set messages hwnd.
11340         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11341         post_message calls.
11342
11343 2004-12-15  Jackson Harper  <jackson@ximian.com>
11344
11345         * X11Keyboard.cs: Fix to compile with csc.
11346         
11347 2004-12-15  Jackson Harper  <jackson@ximian.com>
11348
11349         * X11Structs.cs: Add key mask values
11350         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11351         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11352         down/up foo into WM_CHAR foo
11353         * KeyboardLayouts.cs: Common keyboard layouts
11354         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11355         post messages into the main queue.
11356
11357 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11358
11359         * Button.cs: implement ProcessMnemonic
11360         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11361           brushes everytime
11362         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11363         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11364
11365 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11366         
11367         * MonthCalendar.cs: Implemented click-hold for next/previous month
11368           and date selection
11369           
11370 2004-12-11  Peter Bartok  <pbartok@novell.com>
11371
11372         * X11Structs.cs:
11373           - Added XKeyboardState (moved from XplatUIX11.cs)
11374           - Added XCreateGC related enums and structures
11375           - Added GXFunction for XSetFunction
11376
11377         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11378
11379         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11380           CaretVisible() calls
11381
11382         * ToolTip.cs: Added code to prevent stealing focus from app windows
11383
11384         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11385           DestroyCaret, SetCaretPos and CaretVisible)
11386
11387         * XplatUIX11.cs:
11388           - Added implementation for caret functions
11389           - Moved hover variables into a struct, to make it a bit easier
11390             on the eyes and to debug
11391           - Removed XKeyboardState (moved to XplatUIX11.cs)
11392           - Moved Keyboard properties into the properties region
11393
11394         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11395           call to get a graphics context for our control
11396
11397         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11398
11399         * TreeView.cs: Fixed bug. No matter what color was set it would always
11400           return SystemColors.Window
11401
11402         * XplatUIWin32.cs: Implemented caret overrides
11403
11404 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11405
11406         * ListBox.cs: fire events, implement missing methods and properties,
11407         sorting.
11408
11409 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11410
11411         * MonthCalendar.cs: invalidation bug fixing
11412         * ThemeWin32Classic.cs: paint fixing
11413
11414 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11415
11416         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11417         prepare the CGContextRef there now.
11418
11419 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11420
11421         * MonthCalendar.cs:
11422           - optimisationL only invalidate areas that have changed
11423         * ThemeWin32Classic.cs:
11424           - only paint parts that intersect with clip_area
11425
11426 2004-12-09  Peter Bartok  <pbartok@novell.com>
11427
11428         * Application.cs: Undid changes from r37004 which cause problems
11429         on X11
11430
11431 2004-12-09  Ravindra  <rkumar@novell.com>
11432
11433         * ToolBar.cs: Added support for displaying ContextMenu
11434         attached to a button on ToolBar.
11435         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11436         property.
11437
11438 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11439
11440         * Label.cs: autosize works in text change and removes unnecessary
11441         invalidate
11442
11443 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11444
11445         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11446         remove warnings
11447
11448 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11449
11450         * XplatUIOSX.cs: Added mouse move/click/grab support
11451         Remove some debugging WriteLines not needed anymore.
11452         Add window resizing/positioning.
11453         Fix visibility on reparenting.
11454
11455 2004-12-08  Peter Bartok  <pbartok@novell.com>
11456
11457         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11458
11459 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11460
11461         * XplatUIOSX.cs: Initial checkin
11462         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11463
11464 2004-12-03  Ravindra <rkumar@novell.com>
11465
11466         * ListView.cs: Added some keybindings and fixed scrolling.
11467         ScrollBars listen to ValueChanged event instead of Scroll
11468         Event. This would let us take care of all changes being
11469         done in the scrollbars' values programmatically or manually.
11470         * ListView.cs (CanMultiselect): Added a check for shift key.
11471         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11472         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11473         of ListViewSubItemCollection as well.
11474
11475 2004-12-06  Peter Bartok <pbartok@novell.com>
11476
11477         * Control.cs (Parent): Added check and exception to prevent
11478         circular parenting
11479
11480 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11481
11482         * ListBox.cs: implemented clipping, selection single and multiple,
11483         bug fixing
11484
11485 2004-12-03  Ravindra <rkumar@novell.com>
11486
11487         * ListView.cs (ListView_KeyDown):
11488         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11489         when CTRL key is pressed.
11490         * ListViewItem.cs (Selected): Fixed setting the property.
11491
11492 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11493
11494         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11495
11496         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11497         MinimizeBox, ShowInTaskbar, TopMost properties.
11498
11499         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11500         will be implemented).
11501
11502 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11503
11504         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11505
11506         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11507         tests.
11508         
11509         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11510         
11511         * TreeView.cs: BackColor is Colors.Window.
11512
11513 2004-12-01  Jackson Harper  <jackson@ximian.com>
11514
11515         * TreeView.cs: When resizing the tree if the user is making it
11516         smaller we don't get expose events, so we need to handle adding
11517         the horizontal scrollbar in the size changed handler as well as
11518         the expose handler.
11519
11520 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11521
11522         * DrawItemState.cs: fixes wrong enum values
11523
11524 2004-12-01  Jackson Harper  <jackson@ximian.com>
11525
11526         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11527
11528 2004-12-01  Jackson Harper  <jackson@ximian.com>
11529
11530         * NodeLabelEditEventArgs.cs:
11531         * NodeLabelEditEventHandler.cs:
11532         * OpenTreeNodeEnumerator.cs:
11533         * TreeNode.cs:
11534         * TreeNodeCollection.cs:
11535         * TreeView.cs:
11536         * TreeViewAction.cs:
11537         * TreeViewCancelEventArgs.cs:
11538         * TreeViewCancelEventHandler.cs:
11539         * TreeViewEventArgs.cs:
11540         * TreeViewEventHandler.cs: Initial implementation.
11541
11542 2004-12-01  Ravindra <rkumar@novell.com>
11543
11544         * ListView.cs (CalculateListView): Fixed scrolling related
11545         calculations. Also, removed some debug statements from other
11546         places.
11547         * ListViewItem.cs: Changed access to 'selected' instance variable
11548         from private to internal.
11549         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11550
11551 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11552
11553         * ThemeWin32Classic.cs: remove cache of brush and pens for
11554         specific controls and use the global system, fixes scrollbutton
11555         bugs (for small sizes, disabled, etc)
11556         
11557         * ScrollBar.cs: does not show the thumb for very small controls
11558         (as MS) and allow smaller buttons that the regular size
11559
11560 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11561
11562         * UpDownBase.cs: Add abstract methods for the interface.
11563         Add new virtual methods (need to be hooked up to TextEntry when it
11564         exists).
11565         Add override methods for most features.
11566         Computes the size, forces the height of the text entry.
11567
11568         * NumericUpDown.cs: Put here the current testing code.
11569
11570         * Set eol-style property on all files that do not have mixed line
11571         endings, to minimize the future problems.  There are still a few
11572         files with mixed endings, and someone should choose whether they
11573         want to move it or not.
11574
11575 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11576
11577         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11578         System.Colors
11579         
11580 2004-11-30  Ravindra <rkumar@novell.com>
11581
11582         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11583         drawing and replaced use of SystemColors by theme colors.
11584         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11585         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11586         same ListViewItem is being added more than once.
11587
11588 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11589
11590         * MonthCalendar.cs:
11591           - ControlStyles love to make the control not flicker
11592           
11593 2004-11-30  Peter Bartok  <pbartok@novell.com>
11594
11595         * CharacterCasing.cs: Added
11596
11597 2004-11-29  Peter Bartok  <pbartok@novell.com>
11598
11599         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11600           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11601           I am removing these files as they conflict with already completed
11602           work. While it is fantastic to get contributions to MWF, I
11603           respectfully ask that everyone please coordinate their contributions
11604           through mono-winforms-list or #mono-winforms at this time. We're
11605           explicitly avoiding stubbing and don't want controls that don't have
11606           their basic functionality implemented in svn. Please also see
11607           http://www.mono-project.com/contributing/winforms.html
11608
11609
11610 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11611
11612         * Application.cs (ModalRun): Don't hang after exit.
11613
11614         * Theme.cs: New TreeViewDefaultSize property.
11615
11616         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11617         with less hardcoded SystemColors constant.
11618         Implemented TreeViewDefaultSize.
11619
11620         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11621         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11622
11623
11624 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11625
11626         * MonthCalendar.cs:
11627           - Fix NextMonthDate and PrevMonthDate click moving calendar
11628
11629 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11630
11631         * MonthCalendar.cs:
11632           - Fix usage of ScrollChange Property when scrolling months
11633
11634 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11635
11636         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11637          - Fixes menu destroying
11638          - Support adding and removing items on already created menus
11639
11640 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11641
11642         * MonthCalendar.cs:
11643           - Re-worked all bolded dates handling to match win32
11644         * ThemeWin32Classic.cs:
11645           - Fixed rendering with bolded dates
11646
11647 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11648
11649         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11650         - Horizontal scroolbar
11651         - Multicolumn
11652         - Fixes
11653
11654
11655 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11656
11657         * MonthCalendar.cs:
11658           - Fix Usage of MaxSelectionCount from SelectionRange
11659           - Fixed Shift + Cursor Selection
11660           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11661           - Fixed normal cursor selection to be compat with win32
11662           - Fixed Shift + Mouse Click selection
11663
11664 2004-11-24  Peter Bartok <pbartok@novell.com>
11665
11666         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11667         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11668         * XplatUIX11.cs:
11669           - CreatedKeyBoardMsg now updates keystate with Alt key
11670           - Added workaround for timer crash to CheckTimers, Jackson will
11671             develop a proper fix and check in later
11672           - Implemented DispatchMessage
11673           - Removed calling the native window proc from GetMessage (call
11674             now moved to DispatchMessage)
11675
11676         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11677           the keydata (Fixes bug #69831)
11678
11679         * XplatUIWin32.cs:
11680           - (DispatchMessage): Switched to return IntPtr
11681           - Added DllImport for SetFocus
11682
11683 2004-11-24  Ravindra <rkumar@novell.com>
11684
11685         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11686         background drawing.
11687         * ListViewItem.cs: Fixed various properties, calculations
11688         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11689         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11690         and some internal properties. Fixed MouseDown handler and Paint
11691         method.
11692
11693 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11694
11695         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11696
11697 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11698
11699         * ContainerControl.cs: correct accidental check in of local changes
11700
11701 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11702
11703         * ThemeWin32Classic.cs:
11704                 - Fixed Drawing Last month in grid (sometimes not showing)
11705         * MonthCalendar.cs:
11706                 - Fixed title width calculation bug (makeing title small)
11707
11708 2004-11-23  Peter Bartok <pbartok@novell.com>
11709
11710         * XplatUIX11.cs:
11711           - Added generation of WM_MOUSEHOVER event
11712           - Added missing assignment of async_method atom
11713           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11714
11715 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11716
11717         * ThemeWin32Classic.cs:
11718                 - Fixed Drawing of today circle when showtodaycircle not set
11719                 - fixed drawing of first and last month in the grid (gay dates)
11720         * MonthCalendar.cs:
11721                 - Fixed Drawing of today circle
11722                 - Fixed drawing of grady dates
11723                 - Fixed HitTest for today link when ShowToday set to false
11724                 - Fixed DefaultSize to obey ShowToday
11725
11726 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11727
11728         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11729         * System.Windows.Forms/Theme.cs
11730         * MonthCalendar.cs: added for MonthCalendar
11731         * SelectionRange.cs: added for MonthCalendar
11732         * Day.cs: added for MonthCalendar: added for MonthCalendar
11733         * DateRangeEventArgs.cs: added for MonthCalendar
11734         * DateRangeEventHandler.cs: added for MonthCalendar
11735
11736 2004-11-22  Ravindra <rkumar@novell.com>
11737
11738         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11739         property.
11740
11741 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11742
11743         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11744         event handler.
11745         
11746         * NumericUpDown.cs: Added new implementation.
11747         * UpDownBase.cs: Added new implementation.
11748
11749         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11750         implementations.
11751         
11752         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11753         implementations.
11754
11755         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11756         methods.
11757
11758 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11759
11760         * Timer.cs  (Dispose): Should call the base dispose when
11761         overriding.
11762
11763 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11764
11765         * ScrollBar.cs: updates thumb position when max, min or increment
11766         is changed
11767
11768 2004-11-21  Ravindra <rkumar@novell.com>
11769
11770         * ListView.cs: Implemented item selection, activation and
11771         column header style. Fixed properties to do a redraw, if
11772         required. Added support for MouseHover, DoubleClick, KeyDown
11773         and KeyUp event handling and some minor fixes.
11774         * ListViewItem.cs: Fixed constructor.
11775         * ThemeWin32Classic.cs: Improved drawing for ListView.
11776
11777 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11778
11779         * ThemeWin32Classic.cs: initial listbox drawing code
11780         * DrawMode.cs: new enumerator
11781         * ListControl.cs: stubbed class
11782         * ListBox.cs: initial implementation
11783         * Theme.cs: new methods definitions
11784         * SelectionMode.cs: new enumerator
11785
11786 2004-11-17  Peter Bartok  <pbartok@novell.com>
11787
11788         * XplatUIWin32.cs: Added double-click events to the class style
11789         * Control.cs (WndProc):
11790           - Added handling of click-count to MouseDown/ MouseUp events.
11791           - Added handling of middle and right mouse buttons
11792           - Removed old debug code
11793
11794 2004-11-17  Jackson Harper  <jackson@ximian.com>
11795
11796         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11797
11798 2004-11-17  Ravindra <rkumar@novell.com>
11799
11800         * ListView.cs: Added event handling for MouseMove/Up/Down.
11801         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11802         * ThemeWin32Classic.cs: We need to clear the graphics context and
11803         draw column header in a proper state.
11804
11805
11806 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11807
11808         *  Menu.cs: fixes signature
11809
11810 2004-11-16  Peter Bartok  <pbartok@novell.com>
11811
11812         * XplatUIX11.cs (GetMessage): Implemented generation of
11813           double click mouse messages
11814
11815 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11816
11817         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11818         not by menu
11819
11820 2004-11-11  Peter Bartok  <pbartok@novell.com>
11821
11822         * HandleData.cs: Added Visible property
11823         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11824           HandleData
11825         * XplatUIX11.cs: Removed old debug leftovers
11826         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11827         * Control.cs (WndProc): Removed old debug leftovers,
11828           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11829           needed WM_SIZE handling
11830
11831 2004-11-11  Jackson Harper  <jackson@ximian.com>
11832
11833         * OwnerDrawPropertyBag.cs:
11834         * TreeViewImageIndexConverter.cs: Initial implementation
11835
11836 2004-11-10  Jackson Harper  <jackson@ximian.com>
11837
11838         * ThemeWin32Classic.cs:
11839         * TabControl.cs: instead of moving tabs by the slider pos just
11840         start drawing at the tab that is offset by the slider. This way
11841         scrolling always moves by exactly one tab.
11842
11843 2004-11-10  Jackson Harper  <jackson@ximian.com>
11844
11845         * TabControl.cs: You can only scroll left when the slider has
11846         already ben moved right.
11847         
11848 2004-11-10  Jackson Harper  <jackson@ximian.com>
11849
11850         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11851         the clip area.
11852         
11853 2004-11-10  Jackson Harper  <jackson@ximian.com>
11854
11855         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11856         clip area.
11857         
11858 2004-11-09  Jackson Harper  <jackson@ximian.com>
11859
11860         * TabControl.cs (CalcXPos): New helper method so we can determine
11861         the proper place to start drawing vertical tabs.
11862         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11863         
11864 2004-11-09  Jackson Harper  <jackson@ximian.com>
11865
11866         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11867         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11868         and Bottom, left and right are illegal values for this and
11869         multiline is enabled when the alignment is set to left or right.
11870         (DrawTab): Each alignment block should draw the text itself now
11871         because Left requires special love. Also add rendering for Left
11872         aligned tabs.
11873         
11874 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11875
11876         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11877         does not destroy the windows, removes debugging messages
11878
11879 2004-11-09  jba  <jba-mono@optusnet.com.au>
11880
11881         * ThemeWin32Classic.cs
11882         (DrawButtonBase): Fix verticle text rect clipping in windows
11883         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11884         rendering and incorrect text rect clipping
11885         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11886         rendering and incorrect text rect clipping
11887         
11888 2004-11-08  Jackson Harper  <jackson@ximian.com>
11889
11890         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11891         bottom when they are bottom aligned so the bottoms of the tabs get
11892         displayed.
11893         * TabControl.cs (DropRow): Move rows up instead of down when the
11894         tab control is bottom aligned.
11895
11896 2004-11-08 13:59  pbartok
11897
11898         * XplatUIX11.cs:
11899           - Added handling for various window styles
11900           - Added handling for popup windows
11901           - Added SetTopmost handling
11902
11903 2004-11-08 13:55  pbartok
11904
11905         * XplatUIWin32.cs:
11906           - Added argument to SetTopmost method
11907           - Fixed broken ClientToScreen function
11908
11909 2004-11-08 13:53  pbartok
11910
11911         * XplatUIStructs.cs:
11912           - Added missing WS_EX styles
11913
11914 2004-11-08 13:53  pbartok
11915
11916         * XplatUI.cs, XplatUIDriver.cs:
11917           - Added argument to SetTopmost
11918
11919 2004-11-08 13:52  pbartok
11920
11921         * X11Structs.cs:
11922           - Added XSetWindowAttributes structure
11923           - Improved XWindowAttributes structure
11924           - Added SetWindowValuemask enum
11925           - Added window creation arguments enum
11926           - Added gravity enum
11927           - Added Motif hints structure
11928           - Added various Motif flags and enums
11929           - Added PropertyMode enum for property functions
11930
11931 2004-11-08 13:50  pbartok
11932
11933         * Form.cs:
11934           - Fixed arguments for updated SetTopmost method
11935
11936 2004-11-08 13:49  pbartok
11937
11938         * ToolTip.cs:
11939           - Fixed arguments for updated SetTopmost function
11940           - Fixed usage of PointToClient
11941
11942 2004-11-08 13:44  pbartok
11943
11944         * MenuAPI.cs:
11945           - Added Clipping of children and siblings
11946
11947 2004-11-08 13:41  pbartok
11948
11949         * MainMenu.cs:
11950           - Removed SetMenuBarWindow call. We do this in Form.cs
11951
11952 2004-11-08 13:40  jackson
11953
11954         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11955           scrolling jimmi in the correct location with bottom aligned tabs
11956
11957 2004-11-08 13:36  pbartok
11958
11959         * ContainerControl.cs:
11960           - Implemented BindingContext
11961           - Implemented ParentForm
11962
11963 2004-11-08 12:46  jackson
11964
11965         * TabControl.cs: Put bottom rendered tabs in the right location
11966
11967 2004-11-08 07:15  jordi
11968
11969         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11970           removes dead code
11971
11972 2004-11-05 17:30  jackson
11973
11974         * TabControl.cs: When selected tabs are expanded make sure they
11975           don't go beyond the edges of the tab control
11976
11977 2004-11-05 14:57  jackson
11978
11979         * TabControl.cs: Reset show_slider so if the control is resized to
11980           a size where it is no longer needed it's not displayed anymore
11981
11982 2004-11-05 13:16  jackson
11983
11984         * TabControl.cs: Make tab pages non visible when added to the
11985           control
11986
11987 2004-11-05 12:42  jackson
11988
11989         * TabControl.cs: Implement SizeMode.FillToRight
11990
11991 2004-11-05 12:16  jackson
11992
11993         * Control.cs: Do not call CreateHandle if the handle is already
11994           created
11995
11996 2004-11-05 11:46  jackson
11997
11998         * TabControl.cs: Remove superflous call to CalcTabRows
11999
12000 2004-11-05 09:07  jackson
12001
12002         * XplatUIX11.cs: Update for Mono.Posix changes
12003
12004 2004-11-05 07:00  ravindra
12005
12006         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12007           scrolling.
12008
12009 2004-11-04 22:47  jba
12010
12011         * ThemeWin32Classic.cs:
12012           - Fix Button rendering for FlatStyle = Flat or Popup
12013           - Fix RadioButton and CheckBox rendering when Appearance = Button
12014             (normal and flatstyle).
12015           - Correct outer rectangle color when drawing focus rectangle
12016           - Adjust button bounds to be 1 px smaller when focused
12017           - Make button not draw sunken 3d border when pushed (windows compat)
12018           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12019           - Offset the text in RadioButton and Checkbox when being rendered as
12020           a button.
12021           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12022           radiobuttons
12023           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12024           - Fixed disabled text rendering for normally rendered radiobuttons
12025
12026 2004-11-04 10:26  jackson
12027
12028         * TabControl.cs: Recalculate tab rows when resizing
12029
12030 2004-11-04 07:47  jordi
12031
12032         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12033           collection completion, drawing issues, missing features
12034
12035 2004-11-04 05:03  ravindra
12036
12037         * ScrollBar.cs:
12038                 - We need to recalculate the Thumb area when
12039                 LargeChange/maximum/minimum values are changed.
12040           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12041                 than minimum. This is required to handle the case if large_change is
12042                 more than max, and use LargeChange property instead of large_change
12043                 variable.
12044           - We return max+1 when large_change is more than max, like MS does.
12045
12046 2004-11-04 04:29  ravindra
12047
12048         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12049                 - Changed default value signatures (prefixed all with ListView).
12050                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12051                 ListView.
12052           - Fixed calculations for ListViewItem and implemented Clone()
12053           method.
12054
12055 2004-11-04 04:26  ravindra
12056
12057         * Theme.cs, ThemeWin32Classic.cs:
12058                 - Changed default ListView values signatures (prefixed all with
12059                 ListView).
12060           - Fixed default size values for VScrollBar and HScrollBar.
12061                 - Fixed DrawListViewItem method.
12062
12063 2004-11-04 04:05  ravindra
12064
12065         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12066
12067 2004-11-04 04:04  ravindra
12068
12069         * ImageList.cs: Implemented the missing overload for Draw method.
12070
12071 2004-11-03 19:29  jackson
12072
12073         * TabControl.cs: Handle dropping rows on selection properly
12074
12075 2004-11-03 11:59  jackson
12076
12077         * TabControl.cs: remove debug code
12078
12079 2004-11-03 11:52  jackson
12080
12081         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12082           the scrolly widgerywoo
12083
12084 2004-11-02 13:52  jackson
12085
12086         * TabControl.cs: Resize the tab pages and tabs when the tab control
12087           is resized
12088
12089 2004-11-02 13:40  jackson
12090
12091         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12092           selected tab to the bottom
12093
12094 2004-11-02 13:39  jackson
12095
12096         * TabPage.cs: Store the tab pages row
12097
12098 2004-11-02 12:33  jordi
12099
12100         * MenuItem.cs: fixes handle creation
12101
12102 2004-11-02 11:42  jackson
12103
12104         * TabControl.cs: signature fix
12105
12106 2004-11-02 08:56  jackson
12107
12108         * TabControl.cs: Calculate whether the tab is on an edge properly.
12109           Remove top secret debugging code
12110
12111 2004-11-01 19:57  jackson
12112
12113         * TabControl.cs: Add click handling, and proper sizing
12114
12115 2004-11-01 19:47  jackson
12116
12117         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12118           tab controls
12119
12120 2004-11-01 19:39  jackson
12121
12122         * TabPage.cs: add internal property to store the bounds of a tab
12123           page
12124
12125 2004-10-30 04:23  ravindra
12126
12127         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12128           values.
12129
12130 2004-10-30 04:21  ravindra
12131
12132         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12133           fixed calculations.
12134
12135 2004-10-30 03:06  pbartok
12136
12137         * XplatUIX11.cs:
12138           - Removed extension of DllImported libs
12139
12140 2004-10-29 09:55  jordi
12141
12142         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12143           navigation, itemcollection completion, menu fixes
12144
12145 2004-10-27 22:58  pbartok
12146
12147         * XplatUIX11.cs:
12148           - Now throws a nice error message when no X display could be opened
12149
12150 2004-10-26 13:51  jordi
12151
12152         * ListView.cs: removes warning
12153
12154 2004-10-26 03:55  ravindra
12155
12156         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12157           ThemeWin32Classic.cs: Some formatting for my last checkins.
12158
12159 2004-10-26 03:36  ravindra
12160
12161         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12162           control and default values.
12163
12164 2004-10-26 03:35  ravindra
12165
12166         * Theme.cs: Added some default values for ListView control.
12167
12168 2004-10-26 03:33  ravindra
12169
12170         * ToolBar.cs: ToolBar should use the user specified button size, if
12171           there is any. Added a size_specified flag for the same.
12172
12173 2004-10-26 03:33  ravindra
12174
12175         * ColumnHeader.cs: Added some internal members and calculations for
12176           ColumnHeader.
12177
12178 2004-10-26 03:32  ravindra
12179
12180         * ListViewItem.cs: Calculations for ListViewItem.
12181
12182 2004-10-26 03:31  ravindra
12183
12184         * ListView.cs: Added some internal members and calculations for
12185           ListView.
12186
12187 2004-10-22 13:31  jordi
12188
12189         * MenuAPI.cs: speedup menus drawing
12190
12191 2004-10-22 13:16  jackson
12192
12193         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12194           expose event
12195
12196 2004-10-22 11:49  jackson
12197
12198         * Control.cs: oops
12199
12200 2004-10-22 11:41  jackson
12201
12202         * Control.cs: Check to see if the window should have its background
12203           repainted by X when drawing.
12204
12205 2004-10-22 11:31  jackson
12206
12207         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12208           clear is true, this way we do not get flicker from X repainting the
12209           background
12210
12211 2004-10-22 11:28  jackson
12212
12213         * XEventQueue.cs: Queue properly
12214
12215 2004-10-21 09:38  jackson
12216
12217         * XEventQueue.cs: Fix access modifier
12218
12219 2004-10-21 09:36  jackson
12220
12221         * XEventQueue.cs: Don't loose messages
12222
12223 2004-10-21 09:22  jackson
12224
12225         * XEventQueue.cs: Don't loose messages
12226
12227 2004-10-20 04:15  jordi
12228
12229         * BootMode.cs: enum need it by SystemInfo
12230
12231 2004-10-19 21:58  pbartok
12232
12233         * XplatUIWin32.cs:
12234           - Small sanity check
12235
12236 2004-10-19 21:56  pbartok
12237
12238         * Form.cs:
12239           - Added private FormParentWindow class which acts as the container
12240             for our form and as the non-client area where menus are drawn
12241           - Added/Moved required tie-ins to Jordi's menus
12242           - Fixed/Implemented the FormStartPosition functionality
12243
12244 2004-10-19 21:52  pbartok
12245
12246         * Control.cs:
12247           - Removed unneeded locals
12248           - Added code to all size and location properties to understand and
12249             deal with the parent container of Form
12250
12251 2004-10-19 21:33  pbartok
12252
12253         * Application.cs:
12254           - Fixed to deal with new Form subclasses for menus
12255
12256 2004-10-19 17:48  jackson
12257
12258         * XEventQueue.cs: commit correct version of file
12259
12260 2004-10-19 16:50  jackson
12261
12262         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12263
12264 2004-10-19 16:15  jordi
12265
12266         * MenuAPI.cs: MenuBarCalcSize returns the height
12267
12268 2004-10-19 08:31  pbartok
12269
12270         * Control.cs:
12271           - Added missing call to PreProcessMessage before calling OnXXXKey
12272           methods
12273
12274 2004-10-19 00:04  ravindra
12275
12276         * ToolTip.cs: Fixed constructor.
12277
12278 2004-10-18 09:31  jordi
12279
12280         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12281
12282 2004-10-18 09:26  jordi
12283
12284         * MenuItem.cs: fixes MenuItem class signature
12285
12286 2004-10-18 08:56  jordi
12287
12288         * MenuAPI.cs: prevents windows from showing in the taskbar
12289
12290 2004-10-18 00:28  ravindra
12291
12292         * ToolTip.cs: Suppressed a warning message.
12293
12294 2004-10-18 00:27  ravindra
12295
12296         * Control.cs: Default value of visible property must be true.
12297
12298 2004-10-17 23:19  pbartok
12299
12300         * ToolTip.cs:
12301           - Complete implementation
12302
12303 2004-10-17 23:19  pbartok
12304
12305         * XplatUIX11.cs:
12306           - Added EnableWindow method
12307           - Added SetModal stub
12308           - Added generation of WM_ACTIVATE message (still needs testing)
12309           - Added SetTopMost stub
12310           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12311
12312 2004-10-17 23:17  pbartok
12313
12314         * XplatUIWin32.cs:
12315           - Removed VirtualKeys to XplatUIStructs
12316           - Implemented SetTopMost method
12317           - Implemented EnableWindow method
12318           - Bugfix in ScreenToClient()
12319           - Bugfixes in ClientToScreen()
12320
12321 2004-10-17 22:51  pbartok
12322
12323         * XplatUIStructs.cs:
12324           - Added WS_EX styles to WindowStyles enumeration
12325
12326 2004-10-17 22:50  pbartok
12327
12328         * XplatUI.cs, XplatUIDriver.cs:
12329           - Added method for enabling/disabling windows
12330           - Added method for setting window modality
12331           - Added method for setting topmost window
12332
12333 2004-10-17 22:49  pbartok
12334
12335         * ThemeWin32Classic.cs:
12336           - Added ToolTip drawing code
12337
12338 2004-10-17 22:49  pbartok
12339
12340         * Theme.cs:
12341           - Added ToolTip abstracts
12342
12343 2004-10-17 22:47  pbartok
12344
12345         * Form.cs:
12346           - Fixed Form.ControlCollection to handle owner relations
12347           - Added Owner/OwnedForms handling
12348           - Implemented Z-Ordering for owned forms
12349           - Removed unneeded private overload of ShowDialog
12350           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12351             so I hope)
12352           - Fixed Close(), had wrong default
12353           - Added firing of OnLoad event
12354           - Added some commented out debug code for Ownership handling
12355
12356 2004-10-17 22:16  pbartok
12357
12358         * Control.cs:
12359           - Fixed/implemented flat list of controls
12360
12361 2004-10-17 22:14  pbartok
12362
12363         * Application.cs:
12364           - Added code to simulate modal dialogs on Win32
12365
12366 2004-10-17 16:11  jordi
12367
12368         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12369           mouse event
12370
12371 2004-10-17 13:39  jordi
12372
12373         * MenuAPI.cs: menu drawing fixes
12374
12375 2004-10-15 09:10  ravindra
12376
12377         * StructFormat.cs: General Enum.
12378
12379 2004-10-15 09:09  ravindra
12380
12381         * SizeGripStyle.cs: Enum for Form.
12382
12383 2004-10-15 09:08  ravindra
12384
12385         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12386           in Theme for ListView.
12387
12388 2004-10-15 09:06  ravindra
12389
12390         * ColumnHeader.cs: Flushing some formatting changes.
12391
12392 2004-10-15 09:05  ravindra
12393
12394         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12395           style.
12396
12397 2004-10-15 09:03  ravindra
12398
12399         * ListView.cs: Implemented Paint method and fixed coding style.
12400
12401 2004-10-15 07:34  jordi
12402
12403         * MenuAPI.cs: fix for X11
12404
12405 2004-10-15 07:32  ravindra
12406
12407         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12408                 - Renamed Paint() method to Draw() for clarity. Also, moved
12409                 DrawImage() to OnPaint().
12410
12411 2004-10-15 07:25  ravindra
12412
12413         * CheckBox.cs, RadioButton.cs:
12414                 - Removed Redraw (), we get it from ButtonBase.
12415                 - Implemented Paint (), to do class specific painting.
12416
12417 2004-10-15 07:16  ravindra
12418
12419         * ButtonBase.cs:
12420                 - Redraw () is not virtual now.
12421                 - Added an internal virtual method Paint (), so that
12422                 derived classes can do their painting on their own.
12423                 - Modified OnPaint () to call Paint ().
12424
12425 2004-10-15 06:43  jordi
12426
12427         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12428           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12429
12430 2004-10-15 00:30  ravindra
12431
12432         * MessageBox.cs:
12433                 - MessageBox on windows does not have min/max buttons.
12434                 This change in CreateParams fixes this on Windows. We
12435                 still need to implement this windowstyle behavior in
12436                 our X11 driver.
12437
12438 2004-10-14 05:14  ravindra
12439
12440         * ToolBar.cs:
12441                 - Changed Redraw () to do a Refresh () always.
12442                 - Fixed the MouseMove event handling when mouse is pressed,
12443                 ie drag event handling.
12444                 - Replaced the usage of ToolBarButton.Pressed property to
12445                 ToolBarButton.pressed internal variable.
12446
12447 2004-10-14 05:10  ravindra
12448
12449         * ToolBarButton.cs:
12450                 - Added an internal member 'inside' to handle mouse move
12451                 with mouse pressed ie mouse drag event.
12452                 - Changed 'Pressed' property to return true only when
12453                 'inside' and 'pressed' are both true.
12454                 - Some coding style love.
12455
12456 2004-10-14 00:17  ravindra
12457
12458         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12459           public method.
12460
12461 2004-10-14 00:15  ravindra
12462
12463         * ButtonBase.cs: Redraw () related improvements.
12464
12465 2004-10-14 00:14  ravindra
12466
12467         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12468           removed unnecessary calls to Button.Show () method.
12469
12470 2004-10-13 17:50  pbartok
12471
12472         * XplatUIX11.cs:
12473           - Formatting fix
12474           - Removed destroying of window until we solve the problem of X
12475             destroying the window before us on shutdown
12476
12477 2004-10-13 16:32  pbartok
12478
12479         * ButtonBase.cs:
12480           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12481
12482 2004-10-13 14:18  pbartok
12483
12484         * XplatUIX11.cs:
12485           - Added code to destroy the X window
12486
12487 2004-10-13 14:18  pbartok
12488
12489         * XplatUIWin32.cs:
12490           - Added code to destroy a window
12491
12492 2004-10-13 14:12  pbartok
12493
12494         * ButtonBase.cs:
12495           - Added the Redraw on Resize that got dropped in the last rev
12496
12497 2004-10-13 09:06  pbartok
12498
12499         * ThemeWin32Classic.cs:
12500           - Path from John BouAntoun:
12501             * Fix check rendering (centre correctly for normal style, offset
12502               correctly for FlatStyle).
12503             * Fix border color usage (use backcolor) for FlatStyle.Popup
12504             * Use checkbox.Capture instead of checkbox.is_pressed when
12505               rendering flatstyle states.
12506
12507 2004-10-12 21:48  pbartok
12508
12509         * ThemeWin32Classic.cs:
12510           - Removed all occurences of SystemColors and replaced them with the
12511             matching theme color
12512
12513 2004-10-12 21:41  pbartok
12514
12515         * ThemeWin32Classic.cs:
12516           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12517             him using the function for flatstyle drawing
12518           - Changed functions to use the new version of CPDrawBorder3D
12519
12520 2004-10-12 21:15  pbartok
12521
12522         * ControlPaint.cs:
12523           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12524             match MS documentation. They need to return defined colors if the
12525             passed color matches the configured control color. Thanks to John
12526             BouAntoun for pointing this out.
12527
12528 2004-10-12 20:57  pbartok
12529
12530         * Control.cs:
12531           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12532             color is changed
12533
12534 2004-10-12 20:46  pbartok
12535
12536         * CheckBox.cs:
12537           - Fix from John BouAntoun: Now properly sets the Appearance property
12538
12539 2004-10-12 20:45  pbartok
12540
12541         * ThemeWin32Classic.cs:
12542           - Fixes from John BouAntoun: now handles forecolors and backcolors
12543             for flatstyle rendered controls much better; It also fixes normal
12544             checkbox rendering when pushed or disabled.
12545
12546 2004-10-08 02:50  jordi
12547
12548         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12549           work
12550
12551 2004-10-07 08:56  jordi
12552
12553         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12554
12555 2004-10-06 03:59  jordi
12556
12557         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12558           XplatUIWin32.cs: removes warnings from compilation
12559
12560 2004-10-05 12:23  jackson
12561
12562         * RadioButton.cs: Fix ctor
12563
12564 2004-10-05 11:10  pbartok
12565
12566         * MessageBox.cs:
12567           - Partial implementation by Benjamin Dasnois
12568
12569 2004-10-05 10:15  jackson
12570
12571         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12572           by John BouAntoun
12573
12574 2004-10-05 03:07  ravindra
12575
12576         * ToolBar.cs:
12577                 - Removed a private method, Draw ().
12578                 - Fixed the ButtonDropDown event handling.
12579                 - Fixed MouseMove event handling.
12580
12581 2004-10-05 03:04  ravindra
12582
12583         * ThemeWin32Classic.cs:
12584                 - Added DrawListView method and ListViewDefaultSize property.
12585                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12586                 - Changed DOS style CRLF to Unix format (dos2unix).
12587
12588 2004-10-05 03:03  ravindra
12589
12590         * Theme.cs:
12591                 - Added DrawListView method and ListViewDefaultSize property.
12592
12593 2004-10-05 02:42  ravindra
12594
12595         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12596           clicks on DropDown arrow.
12597
12598 2004-10-04 22:56  jackson
12599
12600         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12601           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12602           Control handle the buffers, derived classes should not have to
12603           CreateBuffers themselves.
12604
12605 2004-10-04 21:20  jackson
12606
12607         * StatusBar.cs: The control handles resizing the buffers now.
12608
12609 2004-10-04 21:18  jackson
12610
12611         * Control.cs: When resizing the buffers should be invalidated. This
12612           should be handled in Control not in derived classes.
12613
12614 2004-10-04 14:45  jackson
12615
12616         * TabPage.cs: oops
12617
12618 2004-10-04 02:14  pbartok
12619
12620         * LeftRightAlignment.cs:
12621           - Initial check-in
12622
12623 2004-10-04 01:09  jordi
12624
12625         * ThemeWin32Classic.cs: fixes right button position causing right
12626           button not showing on horizontal scrollbars
12627
12628 2004-10-02 13:12  pbartok
12629
12630         * XplatUIX11.cs:
12631           - Simplified the Invalidate method by using an X call instead of
12632             generating the expose ourselves
12633           - Added an expose when the window background is changed
12634           - Implemented ClientToScreen method
12635
12636 2004-10-02 13:08  pbartok
12637
12638         * XplatUIWin32.cs:
12639           - Added Win32EnableWindow method (test for implementing modal
12640           dialogs)
12641           - Added ClientToScreen method and imports
12642
12643 2004-10-02 13:07  pbartok
12644
12645         * XplatUI.cs, XplatUIDriver.cs:
12646           - Added ClientToScreen coordinate translation method
12647
12648 2004-10-02 13:06  pbartok
12649
12650         * KeyPressEventArgs.cs:
12651           - Fixed access level for constructor
12652
12653 2004-10-02 13:06  pbartok
12654
12655         * NativeWindow.cs:
12656           - Changed access level for the window_collection hash table
12657
12658 2004-10-02 13:05  pbartok
12659
12660         * Form.cs:
12661           - Added KeyPreview property
12662           - Added Menu property (still incomplete, pending Jordi's menu work)
12663           - Implemented ProcessCmdKey
12664           - Implemented ProcessDialogKey
12665           - Implemented ProcessKeyPreview
12666
12667 2004-10-02 13:02  pbartok
12668
12669         * Control.cs:
12670           - Added private method to get the Control object from the window
12671           handle
12672           - Implemented ContextMenu property
12673           - Implemented PointToScreen
12674           - Implemented PreProcessMessage
12675           - Implemented IsInputChar
12676           - Implemented IsInputKey
12677           - Implemented ProcessCmdKey
12678           - Completed ProcessKeyEventArgs
12679           - Fixed message loop to call the proper chain of functions on key
12680           events
12681           - Implemented ProcessDialogChar
12682           - Implemented ProcessDialogKey
12683           - Implemented ProcessKeyMessage
12684           - Implemented ProcessKeyPreview
12685           - Added RaiseDragEvent stub (MS internal method)
12686           - Added RaiseKeyEvent stub (MS internal method)
12687           - Added RaiseMouseEvent stub (MS Internal method)
12688           - Added RaisePaintEvent stub (MS Internal method)
12689           - Added ResetMouseEventArgs stub (MS Internal method)
12690           - Implemented RtlTranslateAlignment
12691           - Implemented RtlTranslateContent
12692           - Implemented RtlTranslateHorizontal
12693           - Implemented RtlTranslateLeftRight
12694           - Added generation of KeyPress event
12695
12696 2004-10-02 05:57  ravindra
12697
12698         * ListViewItem.cs: Added attributes.
12699
12700 2004-10-02 05:32  ravindra
12701
12702         * ListView.cs: Added attributes.
12703
12704 2004-10-01 11:53  jackson
12705
12706         * Form.cs: Implement the Close method so work on MessageBox can
12707           continue.
12708
12709 2004-09-30 14:06  pbartok
12710
12711         * XplatUIX11.cs:
12712           - Bug fixes
12713
12714 2004-09-30 11:34  jackson
12715
12716         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12717
12718 2004-09-30 07:26  ravindra
12719
12720         * ListViewItemConverter.cs: Converter for ListViewItem.
12721
12722 2004-09-30 07:26  ravindra
12723
12724         * SortOrder.cs: Enum for ListView control.
12725
12726 2004-09-30 07:25  ravindra
12727
12728         * ColumnHeader.cs: Supporting class for ListView control.
12729
12730 2004-09-30 07:24  ravindra
12731
12732         * ListView.cs, ListViewItem.cs: Initial implementation.
12733
12734 2004-09-30 07:20  ravindra
12735
12736         * ItemActivation.cs: Enum for ListView Control.
12737
12738 2004-09-29 20:29  pbartok
12739
12740         * XplatUIX11.cs:
12741           - Added lookup of pixel value for background color; tries to get a
12742             color 'close' to the requested color, it avoids having to create a
12743             colormap.  Depending on the display this could mean the used color
12744             is slightly off the desired color. Might have to change it to a more
12745             resource intensive colormap approach, but it will work as a
12746           workaround to avoid red screens.
12747
12748 2004-09-29 14:27  jackson
12749
12750         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12751
12752 2004-09-28 12:44  pbartok
12753
12754         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12755           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12756           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12757           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12758           TrackBar.cs, VScrollBar.cs:
12759           - Streamlined Theme interfaces:
12760             * Each DrawXXX method for a control now is passed the object for
12761               the control to be drawn in order to allow accessing any state the
12762               theme might require
12763
12764             * ControlPaint methods for the theme now have a CP prefix to avoid
12765               name clashes with the Draw methods for controls
12766
12767             * Every control now retrieves it's DefaultSize from the current
12768             theme
12769
12770 2004-09-28 12:17  jackson
12771
12772         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12773           drawing
12774
12775 2004-09-24 14:57  jackson
12776
12777         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12778           Gives us a nice little performance boost.
12779
12780 2004-09-24 12:02  jackson
12781
12782         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12783           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12784           Control and supporting classes. Initial checkin
12785
12786 2004-09-23 13:08  jackson
12787
12788         * Form.cs: Temp build fixage
12789
12790 2004-09-23 01:39  ravindra
12791
12792         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12793           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12794           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12795           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12796           EventHandlers needed by ListView Control.
12797
12798 2004-09-22 14:12  pbartok
12799
12800         * ScrollableControl.cs:
12801           - Implemented DockPadding property
12802           - Implemented AutoScroll property
12803           - Implemented AutoScrollMargin property
12804           - Implemented AutoScrollMinSize property
12805           - Implemented AutoScrollPosition property
12806           - Implemented DisplayRectangle property (still incomplete)
12807           - Implemented CreateParams property
12808           - Implemented HScroll property
12809           - Implemented VScroll property
12810           - Implemented OnVisibleChanged property
12811
12812 2004-09-22 14:09  pbartok
12813
12814         * Form.cs:
12815           - Added Form.ControllCollection class
12816           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12817             RemoveOwnedForm (still incomplete, missing on-top and common
12818             minimize/maximize behaviour)
12819           - Added StartPosition property (still incomplete, does not use when
12820             creating the form)
12821           - Added ShowDialog() methods (still incomplete, missing forcing the
12822             dialog modal)
12823
12824 2004-09-22 14:05  pbartok
12825
12826         * Application.cs:
12827           - Added message loop for modal dialogs
12828
12829 2004-09-22 14:02  pbartok
12830
12831         * GroupBox.cs:
12832           - Fixed wrong types for events
12833
12834 2004-09-22 14:00  pbartok
12835
12836         * Shortcut.cs, FormWindowState.cs:
12837           - Fixed wrong values
12838
12839 2004-09-22 12:01  jackson
12840
12841         * Control.cs: Text is never null
12842
12843 2004-09-20 22:14  pbartok
12844
12845         * XplatUIWin32.cs:
12846           - Fixed accessibility level for Idle handler
12847
12848 2004-09-20 18:54  jackson
12849
12850         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12851           XplatUIX11.cs: New message loop that uses poll so we don't get a
12852           busy loop
12853
12854 2004-09-17 10:43  pbartok
12855
12856         * ScrollBar.cs:
12857           - Fixed behaviour of arrow buttons. Now properly behaves like
12858             Buttons (and like Microsoft's scrollbar arrow buttons)
12859
12860 2004-09-17 10:14  pbartok
12861
12862         * ScrollBar.cs:
12863           - Added missing release of keyboard/mouse capture
12864
12865 2004-09-17 06:18  jordi
12866
12867         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12868           Theme.cs: Very early menu support
12869
12870 2004-09-16 17:45  pbartok
12871
12872         * XplatUIWin32.cs:
12873           - Fixed sending a window to the front
12874           - Added overload for SetWindowPos to avoid casting
12875
12876 2004-09-16 17:44  pbartok
12877
12878         * Control.cs:
12879           - Added SendToBack and BringToFront methods
12880
12881 2004-09-16 07:00  ravindra
12882
12883         * Copyright: Added Novell URL.
12884
12885 2004-09-16 07:00  ravindra
12886
12887         * ToolBar.cs: Invalidate should be done before redrawing.
12888
12889 2004-09-15 21:19  ravindra
12890
12891         * ColumnHeaderStyle.cs: Enum for ListView Control.
12892
12893 2004-09-15 21:18  ravindra
12894
12895         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12896           ListView Control.
12897
12898 2004-09-13 18:26  jackson
12899
12900         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12901           properly
12902
12903 2004-09-13 18:13  jackson
12904
12905         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12906           a second thread and post messages into the main threads message
12907           queue. This makes timing much more consistent. Both win2K and XP
12908           have a minimum timer value of 15 milliseconds, so we now do this
12909           too.
12910
12911 2004-09-13 15:18  pbartok
12912
12913         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12914           XplatUIX11.cs:
12915           - Added Z-Ordering methods
12916
12917 2004-09-13 10:56  pbartok
12918
12919         * Form.cs:
12920           - Fixed #region names
12921           - Moved properties and methods into their proper #regions
12922
12923 2004-09-13 10:51  pbartok
12924
12925         * Form.cs:
12926           - Added Accept and CancelButton properties
12927           - Added ProcessDialogKey() method
12928
12929 2004-09-13 08:18  pbartok
12930
12931         * IWindowTarget.cs:
12932           - Initial check-in
12933
12934 2004-09-10 21:50  pbartok
12935
12936         * Control.cs:
12937           - Added DoDragDrop() [incomplete]
12938           - Properly implemented 'Visible' handling
12939           - Added SetVisibleCore()
12940           - Implemented FindChildAtPoint()
12941           - Implemented GetContainerControl()
12942           - Implemented Hide()
12943
12944 2004-09-10 19:28  pbartok
12945
12946         * Control.cs:
12947           - Moved methods into their appropriate #regions
12948           - Reordered methods within regions alphabetically
12949
12950 2004-09-10 18:57  pbartok
12951
12952         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12953           - Added method to retrieve text from window
12954
12955 2004-09-10 18:56  pbartok
12956
12957         * Control.cs:
12958           - Moved some internal functions into the internal region
12959           - Implemented FontHeight
12960           - Implemented RenderRightToLeft
12961           - Implemented ResizeRedraw
12962           - Implemented ShowFocusCues
12963           - Implemented ShowKeyboardCues
12964           - Implemented FromChildHandle
12965           - Implemented FromHandle
12966           - Implemented IsMnemonic
12967           - Implemented ReflectMessage
12968           - All public and protected Static Methods are now complete
12969
12970 2004-09-10 16:54  pbartok
12971
12972         * Control.cs:
12973           - Implemented remaining missing public instance properties
12974           - Alphabetized some out of order properties
12975
12976 2004-09-10 05:51  ravindra
12977
12978         * PictureBox.cs: Added a check for null image.
12979
12980 2004-09-10 00:59  jordi
12981
12982         * GroupBox.cs: remove cvs tag
12983
12984 2004-09-09 05:25  ravindra
12985
12986         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12987
12988 2004-09-09 05:23  ravindra
12989
12990         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12991           parent redraw.
12992
12993 2004-09-09 02:28  pbartok
12994
12995         * ThemeWin32Classic.cs:
12996           - Improve disabled string look
12997
12998 2004-09-09 01:15  jordi
12999
13000         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13001           args and handler
13002
13003 2004-09-08 23:56  ravindra
13004
13005         * ItemBoundsPortion.cs: It's enum, not a class!
13006
13007 2004-09-08 23:47  ravindra
13008
13009         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13010           Enums for Form.
13011
13012 2004-09-08 21:13  ravindra
13013
13014         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13015           ListView control.
13016
13017 2004-09-08 21:03  ravindra
13018
13019         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13020           avoid crash.
13021
13022 2004-09-08 21:01  ravindra
13023
13024         * ScrollableControl.cs: Removed unreachable code.
13025
13026 2004-09-08 06:45  jordi
13027
13028         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13029
13030 2004-09-08 01:00  jackson
13031
13032         * XplatUIX11.cs: Only run the timers when updating the message
13033           queue. This effectively gives X messages a higher priority then
13034           timer messages. Timers still need love though
13035
13036 2004-09-07 14:01  jackson
13037
13038         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13039           this for us and the handle is no longer valid.
13040
13041 2004-09-07 13:59  jackson
13042
13043         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13044           loop that manages to not crash. TODO: Add poll and cleanup timers
13045
13046 2004-09-07 11:12  jordi
13047
13048         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13049
13050 2004-09-07 03:40  jordi
13051
13052         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13053           fixes, methods, multiple links
13054
13055 2004-09-06 06:55  jordi
13056
13057         * Control.cs: Caches ClientRectangle rectangle value
13058
13059 2004-09-05 02:03  jordi
13060
13061         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13062           certain situations
13063
13064 2004-09-04 11:10  jordi
13065
13066         * Label.cs: Refresh when font changed
13067
13068 2004-09-02 16:24  pbartok
13069
13070         * Control.cs:
13071           - Added sanity check to creation of double buffer bitmap
13072
13073 2004-09-02 16:24  pbartok
13074
13075         * ButtonBase.cs:
13076           - Fixed selection of text color
13077           - Fixed handling of resize event; now properly recreates double
13078             buffering bitmap
13079           - Added missing assignment of TextAlignment
13080           - Added proper default for TextAlignment
13081
13082 2004-09-02 14:26  pbartok
13083
13084         * RadioButton.cs:
13085           - Added missing RadioButton.RadioButtonAccessibleObject class
13086
13087 2004-09-02 14:26  pbartok
13088
13089         * Control.cs:
13090           - Added missing Control.ControlAccessibleObject class
13091           - Started to implement Select()ion mechanisms, still very incomplete
13092
13093 2004-09-02 14:25  pbartok
13094
13095         * AccessibleObject.cs:
13096           - Added missing methods
13097
13098 2004-09-02 14:23  pbartok
13099
13100         * AccessibleNavigation.cs, AccessibleSelection.cs:
13101           - Initial check-in
13102
13103 2004-09-02 10:32  jordi
13104
13105         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13106           pool for pens, brushes, and hatchbruses
13107
13108 2004-09-01 15:30  jackson
13109
13110         * StatusBar.cs: Fix typo
13111
13112 2004-09-01 14:44  pbartok
13113
13114         * RadioButton.cs:
13115           - Fixed state
13116
13117 2004-09-01 14:39  pbartok
13118
13119         * Button.cs, RadioButton.cs:
13120           - Functional initial check-in
13121
13122 2004-09-01 14:01  pbartok
13123
13124         * CheckBox.cs:
13125           - Added missing default
13126           - Added missing region mark
13127
13128 2004-09-01 09:10  jordi
13129
13130         * Label.cs: fixes method signatures, new methods, events, fixes
13131           autosize
13132
13133 2004-09-01 07:19  jordi
13134
13135         * Control.cs: Init string variables with an empty object
13136
13137 2004-09-01 04:20  jordi
13138
13139         * Control.cs: fires OnFontChanged event
13140
13141 2004-08-31 20:07  pbartok
13142
13143         * ButtonBase.cs:
13144           - Enabled display of strings
13145
13146 2004-08-31 20:05  pbartok
13147
13148         * Form.cs:
13149           - Added (partial) implementation of DialogResult; rest needs to be
13150             implemented when the modal loop code is done
13151
13152 2004-08-31 19:55  pbartok
13153
13154         * CheckBox.cs:
13155           - Fixed to match the removal of the needs_redraw concept
13156
13157 2004-08-31 19:55  pbartok
13158
13159         * ButtonBase.cs:
13160           - Removed the rather odd split between 'needs redraw' and redrawing
13161           - Now handles the events that require regeneration (ambient
13162             properties and size)
13163
13164 2004-08-31 19:41  pbartok
13165
13166         * Control.cs:
13167           - Added firing of BackColorChanged event
13168           - Added TopLevelControl property
13169           - Fixed handling of WM_ERASEBKGRND message
13170
13171 2004-08-31 12:49  pbartok
13172
13173         * ButtonBase.cs:
13174           - Removed debug
13175           - Minor fixes
13176
13177 2004-08-31 12:48  pbartok
13178
13179         * CheckBox.cs:
13180           - Finished (famous last words)
13181
13182 2004-08-31 04:35  jordi
13183
13184         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13185           scrolling bugs, adds new methods
13186
13187 2004-08-30 14:42  pbartok
13188
13189         * CheckBox.cs:
13190           - Implemented CheckBox drawing code
13191
13192 2004-08-30 14:42  pbartok
13193
13194         * ButtonBase.cs:
13195           - Made Redraw() and CheckRedraw() virtual
13196           - Improved mouse up/down/move logic to properly track buttons
13197
13198 2004-08-30 09:44  pbartok
13199
13200         * CheckBox.cs:
13201           - Updated to fix broken build. Not complete yet.
13202
13203 2004-08-30 09:28  pbartok
13204
13205         * CheckState.cs:
13206           - Initial checkin
13207
13208 2004-08-30 09:17  pbartok
13209
13210         * Appearance.cs:
13211           - Initial check-in
13212
13213 2004-08-27 16:12  ravindra
13214
13215         * ToolBarButton.cs: Added TypeConverter attribute.
13216
13217 2004-08-27 16:07  ravindra
13218
13219         * ImageIndexConverter.cs: Implemented.
13220
13221 2004-08-27 14:17  pbartok
13222
13223         * Control.cs:
13224           - Removed unneeded stack vars
13225           - First attempt to fix sizing issues when layout is suspended
13226
13227 2004-08-25 15:35  jordi
13228
13229         * ScrollBar.cs: more fixes to scrollbar
13230
13231 2004-08-25 14:04  ravindra
13232
13233         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13234           Added the missing divider code and grip for ToolBar Control.
13235
13236 2004-08-25 13:20  pbartok
13237
13238         * Control.cs:
13239           - Control now properly passes the ambient background color to child
13240             controls
13241
13242 2004-08-25 13:20  jordi
13243
13244         * ScrollBar.cs: small bug fix regarding bar position
13245
13246 2004-08-25 12:33  pbartok
13247
13248         * Timer.cs:
13249           - Now only calls SetTimer or KillTimer if the enabled state has
13250           changed
13251
13252 2004-08-25 12:33  pbartok
13253
13254         * XplatUIWin32.cs:
13255           - Fixed timer handling, now seems to work
13256           - Improved error message for window creation
13257
13258 2004-08-25 12:32  pbartok
13259
13260         * Control.cs:
13261           - Fixed generation of MouseUp message
13262
13263 2004-08-25 12:29  jordi
13264
13265         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13266           and fixes for progressbar
13267
13268 2004-08-24 18:43  ravindra
13269
13270         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13271           in ToolBar control.
13272
13273 2004-08-24 17:15  pbartok
13274
13275         * Panel.cs:
13276           - Added #region
13277           - Added missing events
13278           - Alphabetized
13279
13280 2004-08-24 17:14  pbartok
13281
13282         * StatusBar.cs, PictureBox.cs:
13283           - Now uses Control's CreateParams
13284
13285 2004-08-24 16:36  pbartok
13286
13287         * XplatUIX11.cs:
13288           - Fixed background color handling
13289           - Fixed sending of enter/leave events on a grab
13290
13291 2004-08-24 16:35  pbartok
13292
13293         * X11Structs.cs:
13294           - Refined definitions for CrossingEvent
13295
13296 2004-08-24 12:37  jordi
13297
13298         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13299           formmating, methods signature, and adds missing events
13300
13301 2004-08-24 12:24  jordi
13302
13303         * Control.cs: fire OnEnabledChanged event
13304
13305 2004-08-24 11:17  pbartok
13306
13307         * XplatUIWin32.cs:
13308           - Implemented SetTimer() and KillTimer()
13309
13310 2004-08-24 11:16  pbartok
13311
13312         * XplatUIX11.cs:
13313           - Now uses Remove instead of Add to kill the timer
13314
13315 2004-08-24 10:16  jackson
13316
13317         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13318           picture boxes in the theme now. Draw picture box borders and obey
13319           sizing modes
13320
13321 2004-08-24 05:49  jackson
13322
13323         * Timer.cs: Remove top secret debugging code
13324
13325 2004-08-24 05:34  jackson
13326
13327         * PictureBox.cs: Temp hack to make picture boxes draw their full
13328           image
13329
13330 2004-08-24 05:29  jackson
13331
13332         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13333           XplatUIX11.cs: Move timers to the driver level. On X they are
13334           queued by the driver and checked on idle.
13335
13336 2004-08-24 01:07  jackson
13337
13338         * XplatUIX11.cs: Use a queue for async messages instead of passing
13339           them as ClientMessages since that was totally broken. Also simply
13340           check for events and return an idle message if none are found. This
13341           gives us an idle handler, and prevents deadlocking when no messages
13342           are in the queue.
13343
13344 2004-08-23 18:19  ravindra
13345
13346         * XplatUIWin32.cs: Removed the unwanted destructor.
13347
13348 2004-08-23 17:27  pbartok
13349
13350         * ButtonBase.cs:
13351           - Finishing touches. Works now, just needs some optimizations.
13352
13353 2004-08-23 16:53  jordi
13354
13355         * ScrollBar.cs: small fix
13356
13357 2004-08-23 16:45  pbartok
13358
13359         * Application.cs:
13360           - Removed debug output
13361           - Simplifications
13362
13363 2004-08-23 16:43  jordi
13364
13365         * ScrollBar.cs: [no log message]
13366
13367 2004-08-23 16:10  pbartok
13368
13369         * Form.cs:
13370           - Fixed handling of WM_CLOSE message
13371           - Removed debug output
13372
13373 2004-08-23 16:09  pbartok
13374
13375         * Application.cs:
13376           - Added handling of Idle event
13377           - Added handling of form closing
13378           - Fixed reporting of MessageLoop property
13379           - Removed some unneeded code, should provide a bit of a speedup
13380
13381 2004-08-23 15:22  pbartok
13382
13383         * Control.cs:
13384           - Added InitLayout() method
13385           - Added code to properly perform layout when Anchor or Dock property
13386             is changed
13387           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13388             LAMESPEC, tried to do it in a way that makes sense
13389
13390 2004-08-23 14:10  jordi
13391
13392         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13393           properties and methods
13394
13395 2004-08-23 13:55  pbartok
13396
13397         * Control.cs:
13398           - Properly fixed Jordi's last fix
13399           - Now uses Cursor's Position property instead of calling XplatUI
13400           directly
13401
13402 2004-08-23 13:44  jordi
13403
13404         * PaintEventHandler.cs: Adding missing attribute
13405
13406 2004-08-23 13:39  pbartok
13407
13408         * Cursor.cs:
13409           - Implemented Position property
13410
13411 2004-08-23 13:39  pbartok
13412
13413         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13414           - Added method to move mouse cursor
13415
13416 2004-08-23 13:39  pbartok
13417
13418         * XplatUIX11.cs:
13419           - Fixed setting of background color
13420           - Added method to move mouse cursor
13421
13422 2004-08-23 13:16  jordi
13423
13424         * Control.cs: avoids null exception
13425
13426 2004-08-22 17:46  jackson
13427
13428         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13429           PictureBox
13430
13431 2004-08-22 17:40  jackson
13432
13433         * XplatUIX11.cs: Add some missing locks
13434
13435 2004-08-22 15:10  pbartok
13436
13437         * Control.cs, Form.cs:
13438           - Removed OverlappedWindow style from Control, instead it's default
13439             now is child
13440           - Made form windows OverlappedWindow by default
13441
13442 2004-08-22 13:34  jackson
13443
13444         * ScrollBar.cs: Update the position through the Value property so
13445           the OnValueChanged event is raised.
13446
13447 2004-08-22 12:04  pbartok
13448
13449         * SWF.csproj:
13450           - Added Cursor.cs and UserControl.cs
13451
13452 2004-08-22 12:03  pbartok
13453
13454         * Cursor.cs:
13455           - Started implementation, not usable yet
13456
13457 2004-08-22 12:00  pbartok
13458
13459         * UserControl.cs:
13460           - Implemented UserControl (complete)
13461
13462 2004-08-21 19:20  ravindra
13463
13464         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13465
13466 2004-08-21 18:49  ravindra
13467
13468         * ToolBar.cs: Probably this completes the missing attributes in
13469           toolbar control.
13470
13471 2004-08-21 18:03  ravindra
13472
13473         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13474           Fixed toolbar control signatures.
13475
13476 2004-08-21 16:32  pbartok
13477
13478         * LinkLabel.cs:
13479           - Signature Fixes
13480
13481 2004-08-21 16:30  pbartok
13482
13483         * Label.cs:
13484           - Signature fixes
13485
13486 2004-08-21 16:19  pbartok
13487
13488         * Control.cs, Label.cs:
13489           - Signature fixes
13490
13491 2004-08-21 15:57  pbartok
13492
13493         * ButtonBase.cs:
13494           - Added loads of debug output for development
13495           - Fixed typo in method name
13496
13497 2004-08-21 15:52  pbartok
13498
13499         * ToolBarButtonClickEventArgs.cs:
13500           - Added missing base class
13501
13502 2004-08-21 14:53  pbartok
13503
13504         * Control.cs:
13505           - Updated to match new GrabWindow signature
13506
13507 2004-08-21 14:51  pbartok
13508
13509         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13510           - Added method to get default display size
13511
13512 2004-08-21 14:23  pbartok
13513
13514         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13515           - Added method to query current grab state
13516           - Added argument to allow confining a grab to a window
13517
13518 2004-08-21 14:22  pbartok
13519
13520         * Keys.cs:
13521           - Added [Flags] attribute so that modifiers can be used in bitwise
13522           ops
13523
13524 2004-08-21 14:21  pbartok
13525
13526         * TrackBar.cs, ScrollBar.cs:
13527           - Replaced direct XplatUI calls with their Control counterpart
13528
13529 2004-08-21 13:32  pbartok
13530
13531         * Control.cs:
13532           - Implemented Created property
13533
13534 2004-08-21 13:28  pbartok
13535
13536         * Control.cs:
13537           - Implemented ContainsFocus
13538
13539 2004-08-21 13:26  pbartok
13540
13541         * Control.cs:
13542           - Implemented CausesValidation
13543
13544 2004-08-21 13:21  pbartok
13545
13546         * Control.cs:
13547           - Implemented CanFocus
13548           - Implemented CanSelect
13549           - Implemented Capture
13550
13551 2004-08-21 12:35  pbartok
13552
13553         * XplatUIWin32.cs:
13554           - Fixed bug with Async message handling
13555           - Implemented getting the ModifierKeys
13556
13557 2004-08-21 12:32  jackson
13558
13559         * AsyncMethodResult.cs: Make sure we have the mutex before we
13560           release it. Fixes BeginInvoke on windows
13561
13562 2004-08-21 11:31  pbartok
13563
13564         * XplatUIWin32.cs, XplatUIX11.cs:
13565           - Drivers now return proper mouse state
13566
13567 2004-08-21 10:54  jackson
13568
13569         * Control.cs: Implement EndInvoke
13570
13571 2004-08-21 10:48  jackson
13572
13573         * Timer.cs: Remove unneeded finalizer
13574
13575 2004-08-20 19:52  ravindra
13576
13577         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13578           in mouse event handling in the ToolBar control.
13579
13580 2004-08-20 19:50  ravindra
13581
13582         * ImageList.cs: Changed draw method to use the arguments passed in
13583           to draw the image.
13584
13585 2004-08-20 18:58  pbartok
13586
13587         * XplatUIStructs.cs:
13588           - Added private message for async communication
13589
13590 2004-08-20 17:38  ravindra
13591
13592         * Control.cs: Made RightToLeft property virtual and removed a
13593           Console.WriteLine.
13594
13595 2004-08-20 14:39  jordi
13596
13597         * ThemeGtk.cs: use style_attach
13598
13599 2004-08-20 14:39  pbartok
13600
13601         * XplatUIWin32.cs:
13602           - Added jackson's Async code from X11 to Win32
13603
13604 2004-08-20 14:09  pbartok
13605
13606         * SWF.csproj:
13607           - Added all new files
13608
13609 2004-08-20 14:09  pbartok
13610
13611         * Control.cs:
13612           - Added call to set window background color
13613
13614 2004-08-20 14:03  pbartok
13615
13616         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13617           - Added method for setting the window background
13618
13619 2004-08-20 14:02  pbartok
13620
13621         * XplatUIWin32.cs:
13622           - Added method for setting the background color
13623           - Added handling for erasing the window background
13624
13625 2004-08-20 13:45  jordi
13626
13627         * TrackBar.cs: fixes timer, new properties and methods
13628
13629 2004-08-20 13:34  jackson
13630
13631         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13632           correct thread
13633
13634 2004-08-20 13:22  jackson
13635
13636         * Timer.cs: Timer Tick events are now handed through Controls Async
13637           mechanism so the callbacks are executed in the same thread as X
13638
13639 2004-08-20 13:19  jackson
13640
13641         * XplatUIDriver.cs: Expose functionality to send async messages
13642           through the driver
13643
13644 2004-08-20 13:18  jackson
13645
13646         * Control.cs: Implement Begininvoke
13647
13648 2004-08-20 13:14  jackson
13649
13650         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13651           messages through the driver
13652
13653 2004-08-20 13:12  jackson
13654
13655         * XplatUIX11.cs: Lock before all X operations. Also added Async
13656           method functionality through XSendEvent
13657
13658 2004-08-20 13:11  jackson
13659
13660         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13661           This will screw up on 64 bit systems)
13662
13663 2004-08-20 13:10  jackson
13664
13665         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13666           Async messages through X/Win32
13667
13668 2004-08-19 19:39  pbartok
13669
13670         * XplatUIX11.cs:
13671           - Updated code to match new HandleData.DeviceContext type
13672
13673 2004-08-19 19:38  pbartok
13674
13675         * HandleData.cs:
13676           - Made DeviceContext a generic object to allow usage from various
13677           drivers
13678           - Added support for queueing Windows messages
13679
13680 2004-08-19 19:37  pbartok
13681
13682         * XplatUIWin32.cs:
13683           - Added generation of MouseEnter, MouseLeave and MouseHover events
13684           - Added cleanup on EndPaint
13685
13686 2004-08-19 19:17  pbartok
13687
13688         * Control.cs:
13689           - Added handling of WM_MOUSEHOVER
13690           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13691           code
13692
13693 2004-08-19 18:55  jordi
13694
13695         * ThemeGtk.cs: fixes button order
13696
13697 2004-08-19 18:12  jordi
13698
13699         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13700
13701 2004-08-19 17:09  pbartok
13702
13703         * Control.cs:
13704           - Added Right property
13705           - Added RightToLeft property
13706
13707 2004-08-19 16:27  jordi
13708
13709         * ThemeGtk.cs: experimental GTK theme support
13710
13711 2004-08-19 16:26  jordi
13712
13713         * ITheme.cs, Theme.cs: move themes from an interface to a class
13714
13715 2004-08-19 16:25  jordi
13716
13717         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13718           theme enhancaments
13719
13720 2004-08-19 16:04  pbartok
13721
13722         * XplatUIX11.cs:
13723           - Added colormap basics
13724           - Added a way to re-initialize with a different display handle
13725           - Fixed setting of the window background color
13726           - Added various X11 imports related to colors and colormaps
13727
13728 2004-08-19 15:51  pbartok
13729
13730         * X11Structs.cs:
13731           - Removed packing hints (Paolo suggested this a while back)
13732           - fixed colormap type
13733           - Added default Atom types
13734           - Added Screen and color structs and enums
13735
13736 2004-08-19 15:39  pbartok
13737
13738         * ImageList.cs:
13739           - Added missing Draw() method
13740           - Added missing RecreateHandle event
13741
13742 2004-08-19 15:30  pbartok
13743
13744         * Form.cs:
13745           - Added handling of WM_CLOSE
13746
13747 2004-08-18 13:16  jordi
13748
13749         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13750           a table
13751
13752 2004-08-18 09:56  jordi
13753
13754         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13755
13756 2004-08-17 15:31  ravindra
13757
13758         * SWF.csproj: Updated project.
13759
13760 2004-08-17 15:25  pbartok
13761
13762         * Control.cs:
13763           - Drawing improvement; don't call UpdateBounds if we are not visible
13764             (or have been minimized)
13765
13766 2004-08-17 15:24  pbartok
13767
13768         * XplatUIWin32.cs:
13769           - Finished IsVisible
13770           - Added Win32GetWindowPlacement
13771
13772 2004-08-17 15:08  jackson
13773
13774         * Panel.cs: Initial checkin of the Panel
13775
13776 2004-08-17 14:25  pbartok
13777
13778         * Control.cs:
13779           - Fixed broken handling of default window sizes
13780
13781 2004-08-17 13:29  jackson
13782
13783         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13784           has a large startup time.
13785
13786 2004-08-17 10:25  jackson
13787
13788         * HandleData.cs: union areas properly
13789
13790 2004-08-17 10:12  jackson
13791
13792         * HandleData.cs: union areas properly
13793
13794 2004-08-16 20:00  ravindra
13795
13796         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13797
13798 2004-08-16 18:48  ravindra
13799
13800         * ToolBar.cs: Added attributes.
13801
13802 2004-08-16 17:17  ravindra
13803
13804         * SWF.csproj: Updated project.
13805
13806 2004-08-16 17:16  jackson
13807
13808         * XplatUIX11.cs: Check for more expose events before sending a
13809           WM_PAINT so they can all be grouped together. This makes dragging a
13810           window across another window redraw in a sane way.
13811
13812 2004-08-16 15:47  pbartok
13813
13814         * Control.cs:
13815           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13816             support OnMouseEnter/Leave()
13817           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13818             exposure handling
13819
13820 2004-08-16 15:46  pbartok
13821
13822         * XplatUIStructs.cs, XplatUIX11.cs:
13823           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13824           OnMouseEnter/Leave()
13825
13826 2004-08-16 15:34  jackson
13827
13828         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13829           sure messages get the message field set to WM_NULL if they are not
13830           handled.
13831
13832 2004-08-16 15:24  jackson
13833
13834         * HandleData.cs: HandleData is used for storing message information
13835           for window handles
13836
13837 2004-08-15 17:23  ravindra
13838
13839         * ColorDepth.cs: Added attribute.
13840
13841 2004-08-15 17:23  ravindra
13842
13843         * SWF.csproj: Updated project for ToolBar Control.
13844
13845 2004-08-15 17:20  ravindra
13846
13847         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13848           control and also dos2unix format.
13849
13850 2004-08-15 17:13  ravindra
13851
13852         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13853           ToolBarButtonClickEventArgs.cs,
13854           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13855           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13856
13857 2004-08-15 15:31  pbartok
13858
13859         * ButtonBase.cs:
13860           - First (mostly) working version
13861
13862 2004-08-13 16:15  pbartok
13863
13864         * Control.cs:
13865           - Fixed Anchor default
13866
13867 2004-08-13 15:43  pbartok
13868
13869         * Control.cs:
13870           - Changed GetCursorPos signature
13871
13872 2004-08-13 15:42  pbartok
13873
13874         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13875           - Changed signature for GetCursorPos
13876
13877 2004-08-13 15:25  pbartok
13878
13879         * XplatUIX11.cs:
13880           - Cleanup
13881           - Fixed resizing/exposure handling
13882
13883 2004-08-13 15:22  jordi
13884
13885         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13886           with tickposition
13887
13888 2004-08-13 14:55  jordi
13889
13890         * TrackBar.cs: change from wndproc to events
13891
13892 2004-08-13 13:00  jordi
13893
13894         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13895           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13896
13897 2004-08-13 12:53  pbartok
13898
13899         * XplatUIWin32.cs:
13900           - Changed GetWindowPos to also provide client area size
13901           - Fixed broken prototypes for several win32 functions
13902
13903 2004-08-13 12:53  pbartok
13904
13905         * XplatUI.cs, XplatUIDriver.cs:
13906           - Changed GetWindowPos to also provide client area size
13907
13908 2004-08-13 12:52  pbartok
13909
13910         * XplatUIX11.cs:
13911           - Added generation of WM_POSCHANGED
13912           - Changed GetWindowPos to also provide client area size
13913
13914 2004-08-13 12:52  pbartok
13915
13916         * Control.cs:
13917           - Added Dispose() and destructor
13918           - Fixed resizing and bounds calculation
13919           - Fixed Layout
13920           - Added memory savings for invisible windows
13921
13922 2004-08-13 12:46  jordi
13923
13924         * TrackBar.cs: adds timer and grap window
13925
13926 2004-08-13 10:25  jackson
13927
13928         * Timer.cs: SWF Timer
13929
13930 2004-08-12 16:59  pbartok
13931
13932         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13933           - Implemented method to get current mouse position
13934
13935 2004-08-12 14:29  jordi
13936
13937         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13938           enhancement, fix mouse problems, highli thumb, etc
13939
13940 2004-08-12 13:31  pbartok
13941
13942         * Control.cs:
13943           - Fixed Anchoring bugs
13944
13945 2004-08-12 13:01  jackson
13946
13947         * StatusBar.cs: Don't forget things
13948
13949 2004-08-12 12:54  jackson
13950
13951         * ThemeWin32Classic.cs: Handle owner draw status bars
13952
13953 2004-08-12 12:54  jackson
13954
13955         * StatusBar.cs: Implement missing properties, events, and methods.
13956           Handle mouse clicking
13957
13958 2004-08-12 10:19  jackson
13959
13960         * StatusBarPanelClickEventArgs.cs,
13961           StatusBarPanelClickEventHandler.cs: Classes for handling status
13962           bar panel click events
13963
13964 2004-08-12 10:10  jackson
13965
13966         * Control.cs: Add missing properties
13967
13968 2004-08-12 09:46  pbartok
13969
13970         * BindingsManagerBase.cs:
13971           - Name changed to BindingManagerBase.cs
13972
13973 2004-08-12 09:25  jordi
13974
13975         * ScrollableControl.cs: calls ctrlbase instead of exeception
13976
13977 2004-08-11 16:28  pbartok
13978
13979         * InputLanguageChangingEventArgs.cs:
13980           - Never check in before compiling. Fixes the last check-in
13981
13982 2004-08-11 16:26  pbartok
13983
13984         * InputLanguageChangingEventArgs.cs:
13985           - More signature fixes
13986
13987 2004-08-11 16:20  pbartok
13988
13989         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13990           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13991           ImageListStreamer.cs, InputLanguage.cs,
13992           InputLanguageChangedEventArgs.cs,
13993           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13994           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13995           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13996           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13997           - Signature fixes
13998
13999 2004-08-11 16:16  pbartok
14000
14001         * Application.cs:
14002           - Fixed Signature
14003           - Added .Net 1.1 method
14004
14005 2004-08-11 15:25  pbartok
14006
14007         * SWF.csproj:
14008           - Fixed BindingManagerBase.cs filename
14009
14010 2004-08-11 15:22  pbartok
14011
14012         * BindingManagerBase.cs:
14013           - Was checked in with wrong filename
14014
14015 2004-08-11 14:50  pbartok
14016
14017         * SWF.csproj:
14018           - Updated
14019
14020 2004-08-11 13:41  jordi
14021
14022         * XplatUIWin32.cs: Fixes ClientRect
14023
14024 2004-08-11 13:19  pbartok
14025
14026         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14027           XplatUIX11.cs:
14028           - We had SetWindowPos and MoveWindow to set window positions and
14029             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14030             keep SetWindowPos as matching counterpart
14031           - Added some X11 sanity checking
14032
14033 2004-08-11 12:59  pbartok
14034
14035         * Control.cs:
14036           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14037             (It seems that SetBounds is just a front for SetBoundsCore and
14038              SetBoundsCore updates the underlying window system and
14039              UpdateBounds is responsible for updating the variables associated
14040              with the Control and sending the events)
14041           - Major cleanup of Size handling; we now have two sizes, client_size
14042             and bounds. Bounds defines the window with decorations, client_size
14043             without them.
14044
14045 2004-08-11 12:55  pbartok
14046
14047         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14048           - Added method to calculate difference between decorated window and
14049             raw client area
14050
14051 2004-08-11 12:54  pbartok
14052
14053         * Label.cs:
14054           - Forcing redraw on resize
14055
14056 2004-08-11 11:43  pbartok
14057
14058         * ImageList.cs:
14059           - Removed disposing of the actual images when the list is disposed
14060
14061 2004-08-11 09:13  pbartok
14062
14063         * Control.cs:
14064           - Now properly reparents windows
14065
14066 2004-08-11 08:37  pbartok
14067
14068         * Control.cs:
14069           - Duh!
14070
14071 2004-08-11 07:47  pbartok
14072
14073         * Control.cs:
14074           - Rewrote the collection stuff. Might not be as fast now, not
14075             keeping the number of children around and accessible directly, but
14076             it's more straightforward
14077
14078 2004-08-11 07:44  pbartok
14079
14080         * AccessibleObject.cs:
14081           - Fixed to match ControlCollection rewrite
14082
14083 2004-08-11 07:43  pbartok
14084
14085         * ImageList.cs:
14086           - Added missing creation of the collection list
14087
14088 2004-08-10 20:08  jackson
14089
14090         * StatusBar.cs: Get the paint message from WndProc
14091
14092 2004-08-10 19:31  jackson
14093
14094         * ThemeWin32Classic.cs: Create Brushes as little as possible
14095
14096 2004-08-10 19:20  jackson
14097
14098         * UICues.cs: Add Flags attribute
14099
14100 2004-08-10 19:19  jackson
14101
14102         * StatusBarPanel.cs: Signature cleanup
14103
14104 2004-08-10 19:10  jackson
14105
14106         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14107           Initial implementation of status bar item drawing
14108
14109 2004-08-10 17:27  jordi
14110
14111         * TrackBar.cs: add missing methods, properties, and restructure to
14112           hide extra ones
14113
14114 2004-08-10 16:24  jackson
14115
14116         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14117           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14118           attribute
14119
14120 2004-08-10 13:21  jordi
14121
14122         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14123           enhancements and standarize on win colors defaults
14124
14125 2004-08-10 12:52  jackson
14126
14127         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14128           ThemeWin32Classic.cs: Implement DrawItem functionality
14129
14130 2004-08-10 12:47  jordi
14131
14132         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14133
14134 2004-08-10 12:32  jordi
14135
14136         * Control.cs: throw ontextchange event
14137
14138 2004-08-10 11:43  pbartok
14139
14140         * Control.cs:
14141           - Added more to the still unfinished Dock/Anchor layout code
14142
14143 2004-08-10 11:39  pbartok
14144
14145         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14146           - Added GetWindowPos method
14147
14148 2004-08-10 11:36  pbartok
14149
14150         * XplatUIWin32.cs:
14151           - Implemented several methods
14152
14153 2004-08-10 09:47  jackson
14154
14155         * TrackBar.cs: Allow control to handle buffering
14156
14157 2004-08-10 09:41  jackson
14158
14159         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14160
14161 2004-08-10 09:24  jackson
14162
14163         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14164
14165 2004-08-10 09:09  jackson
14166
14167         * StatusBar.cs: Let Control handle all the buffering.
14168
14169 2004-08-10 09:08  jackson
14170
14171         * Control.cs: Control will now handle the buffering code, so each
14172           control does not have to implement this.
14173
14174 2004-08-10 08:34  jackson
14175
14176         * XplatUIDriver.cs: Use default colors from the theme
14177
14178 2004-08-09 17:12  pbartok
14179
14180         * ImageList.cs:
14181           - Fixed several bugs Ravindra pointed out
14182
14183 2004-08-09 16:11  pbartok
14184
14185         * Control.cs:
14186           - Added incomplete dock layout code
14187           - Added support for mouse wheel
14188
14189 2004-08-09 16:09  pbartok
14190
14191         * XplatUIX11.cs:
14192           - Added handling for middle and right mousebutton
14193           - Added handling for mouse wheel
14194           - Added handling for key state and mouse state and position
14195           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14196           messages
14197
14198 2004-08-09 15:40  jackson
14199
14200         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14201           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14202           checkin
14203
14204 2004-08-09 15:37  jackson
14205
14206         * StatusBar.cs: Initial implementation of StatusBar
14207
14208 2004-08-09 15:36  jackson
14209
14210         * ITheme.cs: Add support for drawing status bar and getting status
14211           bar item sizes
14212
14213 2004-08-09 15:35  pbartok
14214
14215         * MouseButtons.cs:
14216           - Fixed values
14217
14218 2004-08-09 15:34  jackson
14219
14220         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14221           status bar item sizes
14222
14223 2004-08-09 15:21  jackson
14224
14225         * ThemeWin32Classic.cs: Use known colors for default control
14226           colours
14227
14228 2004-08-09 15:12  jackson
14229
14230         * ThemeWin32Classic.cs: Make the default font static, it is static
14231           in control so this doesn't change functionality and creating fonts
14232           is sloooooow.
14233
14234 2004-08-09 14:56  pbartok
14235
14236         * X11Structs.cs:
14237           - Added GrabMode enum
14238
14239 2004-08-09 14:55  pbartok
14240
14241         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14242           - Removed Run method, was only required for initial development
14243
14244 2004-08-09 14:51  pbartok
14245
14246         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14247           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14248           capture
14249
14250 2004-08-09 13:48  pbartok
14251
14252         * XplatUIX11.cs:
14253           - Fixed default sizing for child windows
14254
14255 2004-08-09 12:56  pbartok
14256
14257         * XplatUIX11.cs:
14258           - Added generation of WM_DESTROY message
14259           - Added handling of window manager induced shutdown
14260
14261 2004-08-09 11:31  jackson
14262
14263         * ThemeWin32Classic.cs: New names for control properties
14264
14265 2004-08-09 11:25  jackson
14266
14267         * Control.cs: Use new color names
14268
14269 2004-08-09 11:02  jackson
14270
14271         * XplatUI.cs: Get default window properties from the theme
14272
14273 2004-08-09 11:01  jackson
14274
14275         * ITheme.cs: The theme engine now controls default window
14276           properties
14277
14278 2004-08-09 11:00  jackson
14279
14280         * ThemeWin32Classic.cs: Add default window color properties
14281
14282 2004-08-09 10:17  jackson
14283
14284         * ThemeWin32Classic.cs: Use correct default back color
14285
14286 2004-08-09 10:05  jackson
14287
14288         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14289           the theme now.
14290
14291 2004-08-09 09:56  jackson
14292
14293         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14294
14295 2004-08-09 09:54  jackson
14296
14297         * Control.cs: Get default properties from the theme.
14298
14299 2004-08-09 09:53  jackson
14300
14301         * ITheme.cs: Themes now handle default control properties
14302
14303 2004-08-09 09:53  jackson
14304
14305         * ThemeWin32Classic.cs: Themes now handle default control
14306           properties so coloring will be consistent
14307
14308 2004-08-08 16:54  jordi
14309
14310         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14311
14312 2004-08-08 15:08  jordi
14313
14314         * XplatUIX11.cs: fixes keyboard crash
14315
14316 2004-08-08 13:47  jordi
14317
14318         * Label.cs: add cvs header info
14319
14320 2004-08-08 12:09  jackson
14321
14322         * ThemeWin32Classic.cs: Add pen_buttonface
14323
14324 2004-08-08 11:52  jordi
14325
14326         * Label.cs, LinkLabel.cs: [no log message]
14327
14328 2004-08-08 11:34  jordi
14329
14330         * ThemeWin32Classic.cs: Use Windows Standard Colours
14331
14332 2004-08-07 17:32  jordi
14333
14334         * TrackBar.cs: throw exceptions of invalid enums values
14335
14336 2004-08-07 17:31  jordi
14337
14338         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14339           draw method name
14340
14341 2004-08-07 16:56  jackson
14342
14343         * HorizontalAlignment.cs: Initial checkin
14344
14345 2004-08-07 13:16  jordi
14346
14347         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14348           methods
14349
14350 2004-08-07 13:05  jordi
14351
14352         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14353           GetSysColor defines
14354
14355 2004-08-06 18:01  pbartok
14356
14357         * ThemeWin32Classic.cs:
14358           - Fixed some rounding issues with float/int
14359
14360 2004-08-06 18:00  jackson
14361
14362         * DockStyle.cs, AnchorStyles.cs:
14363
14364                   Add flags and serializable attributes.
14365
14366 2004-08-06 17:46  pbartok
14367
14368         * XplatUIX11.cs:
14369           - Implemented GetParent
14370
14371 2004-08-06 17:18  pbartok
14372
14373         * TrackBar.cs:
14374           - Fixed some rounding issues with float/int
14375
14376 2004-08-06 17:17  pbartok
14377
14378         * X11Structs.cs, XplatUIX11.cs:
14379           - Fixed Refresh and Invalidate
14380
14381 2004-08-06 15:30  pbartok
14382
14383         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14384           - Fixed recursive loop when resizing
14385           - Improved/fixed redrawing on expose messages
14386
14387 2004-08-06 09:53  jordi
14388
14389         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14390           keyboard navigation
14391
14392 2004-08-06 08:02  pbartok
14393
14394         * X11Structs.cs, XplatUIX11.cs:
14395           - Fixed reparenting
14396           - Fixed window border creation
14397
14398 2004-08-05 15:38  pbartok
14399
14400         * XplatUIX11.cs:
14401           - Attempted fix for reparenting problems
14402
14403 2004-08-04 15:14  pbartok
14404
14405         * Control.cs:
14406           - Fixed Invalidation bug (calculated wrong client area)
14407           - Added ClientSize setter
14408
14409 2004-08-04 15:13  pbartok
14410
14411         * Form.cs:
14412           - Added AutoScale properties
14413
14414 2004-08-04 15:13  pbartok
14415
14416         * SWF.csproj:
14417           - Added latest files
14418
14419 2004-08-04 14:11  pbartok
14420
14421         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14422           XplatUIX11.cs:
14423           - Added Invalidate handling
14424
14425 2004-08-03 17:09  jordi
14426
14427         * XplatUIDriver.cs: fixes spelling mistake
14428
14429 2004-07-27 09:53  jordi
14430
14431         * TrackBar.cs: fixes trackbar events, def classname, methods
14432           signature
14433
14434 2004-07-27 09:29  jordi
14435
14436         * ScrollBar.cs: fixes scrollbar events
14437
14438 2004-07-27 04:38  jordi
14439
14440         * Control.cs: changes to be able to run winforms samples
14441
14442 2004-07-26 11:42  jordi
14443
14444         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14445           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14446
14447 2004-07-26 05:41  jordi
14448
14449         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14450           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14451           implementation
14452
14453 2004-07-22 09:22  jordi
14454
14455         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14456           check link overlapping, implement events, and fixes
14457
14458 2004-07-21 10:28  jordi
14459
14460         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14461
14462 2004-07-21 10:19  jordi
14463
14464         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14465           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14466           LinkLabelLinkClickedEventArgs.cs,
14467           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14468           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14469           implementation
14470
14471 2004-07-19 13:09  jordi
14472
14473         * Control.cs, Label.cs: label control re-written: added missing
14474           functionlity, events, and properties
14475
14476 2004-07-19 10:49  jordi
14477
14478         * Control.cs: fixes SetBounds logic
14479
14480 2004-07-19 01:29  jordi
14481
14482         * Control.cs: Call RefreshWindow only if the window has created
14483
14484 2004-07-15 14:05  pbartok
14485
14486         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14487           - Implemented ImageList and ImageList.ImageCollection classes
14488           - Added ColorDepth enumeration
14489           - Updated SWF VS.Net project
14490
14491 2004-07-15 11:06  jordi
14492
14493         * XplatUIStructs.cs: added MsgButons enum
14494
14495 2004-07-15 11:03  jordi
14496
14497         * Control.cs: added basic mouse handeling events
14498
14499 2004-07-15 03:38  jordi
14500
14501         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14502           Vertical TrackBar control implementation
14503
14504 2004-07-13 09:33  jordi
14505
14506         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14507
14508 2004-07-13 09:31  jordi
14509
14510         * Control.cs, Form.cs: commit: new properties and fixes form size
14511           problems
14512
14513 2004-07-09 14:13  miguel
14514
14515         * ProgressBar.cs: Spelling
14516
14517 2004-07-09 11:25  pbartok
14518
14519         * ProgressBar.cs:
14520           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14521           faster
14522
14523 2004-07-09 11:17  miguel
14524
14525         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14526
14527                 * ProgressBar.cs: Fixed spelling for `block'
14528
14529                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14530                 style guidelines.
14531
14532                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14533
14534 2004-07-08 23:21  pbartok
14535
14536         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14537           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14538           BaseCollection.cs, Binding.cs, BindingContext.cs,
14539           BindingMemberInfo.cs, BindingsCollection.cs,
14540           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14541           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14542           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14543           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14544           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14545           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14546           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14547           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14548           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14549           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14550           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14551           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14552           InputLanguageChangedEventArgs.cs,
14553           InputLanguageChangedEventHandler.cs,
14554           InputLanguageChangingEventArgs.cs,
14555           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14556           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14557           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14558           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14559           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14560           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14561           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14562           QueryAccessibilityHelpEventArgs.cs,
14563           QueryAccessibilityHelpEventHandler.cs,
14564           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14565           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14566           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14567           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14568           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14569           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14570           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14571           XplatUIX11.cs, lang.cs:
14572           - Initial check-in
14573