* RichTextBox.cs: More ISO8859-1 -> unicode
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-07  Wade Berrier <wberrier@novell.com> 
2
3         * RichTextBox.cs: More ISO8859-1 -> unicode
4
5 2006-06-07  Mike Kestner  <mkestner@novell.com>
6
7         * ComboBox.cs : use items to hold highlight/selection so that
8         collection insertions don't require synchronization.
9
10 2006-06-07  Jackson Harper  <jackson@ximian.com>
11
12         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
13         routine.  We now always keep the sized edge at the cursor instead
14         of computing movement and adjusting rects.  There is one buglet
15         with this method though when the cursor is moved over area that
16         the window can not expand too (such as the toolbars on the desktop).
17
18 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19
20         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21         here. Fixes crash on startup in AlbumSurfer.
22
23 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
24
25         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
26           values
27
28 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29
30         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
31         statement to avoid calling XNextEvent which will block if another thread
32         took the event that we were expecting. Fixes bug #78605.
33
34 2006-06-07  Mike Kestner  <mkestner@novell.com>
35
36         * ListView.cs : isolated checkbox clicking from the selection logic.
37         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
38
39 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
40
41         * Form.cs: Check that the value passed to Form.DialogResult
42         is a valid enum value.
43
44 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
45
46         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
47         Computer'. Clicking it in the network view goes to 'My Computer'.
48         Added CIFS filesystem type. Display the mount point of filesystems.
49         Avoid duplicate mount points (happens for me with CIFS);
50
51 2006-06-06  Jackson Harper  <jackson@ximian.com>
52
53         * InternalWindowManager.cs: Draw the maximized windows buttons
54         when resizing.
55
56 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
57
58         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
59         all other dialogs. Fixes bug #78585.
60
61 2006-06-06  Mike Kestner  <mkestner@novell.com>
62
63         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
64         Only invalidate checkbox on checkstate changes to avoid flicker.
65         * ListBox.cs : avoid unselect/select when clicking selected item.
66         avoid reselection flicker for already multiselected items.
67         Fixes #78382.
68
69 2006-06-06  Jackson Harper  <jackson@ximian.com>
70
71         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
72         the parent form so that the menu is removed if needed.
73
74 2006-06-06  Mike Kestner  <mkestner@novell.com>
75
76         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
77         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
78
79 2006-06-06  Mike Kestner  <mkestner@novell.com>
80
81         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
82
83
84 2006-06-06  Jackson Harper  <jackson@ximian.com>
85
86         * Control.cs: Use the property (instead of the field) to get the
87         default cursor so it is instantiated correctly.
88         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
89         resizes so we need to manually repaint the window decorations here.
90         - Set the titlebar button locations as soon as they are created,
91         otherwise they are not set correctly on win32.
92         
93 2006-06-06  Chris Toshok  <toshok@ximian.com>
94
95         * CurrencyManager.cs (set_Position): call PullData before
96         OnCurrentChanged.
97         (AddNew): after calling IBindingList.AddNew, update our
98         listposition, and call OnCurrentChanged/OnPositionChanged (without
99         calling PullData).
100         (OnCurrentChanged): remove the call to PullData from here.
101         (OnItemChanged): remove the call to PushData from here.
102         (OnPositionChanged): change the test from == null to != null to
103         match the other methods.
104         (ListChangedHandler): the grossest part of the patch.  Implement
105         this such that it passes the unit tests in CurrencyManagerTest and
106         the output more or less matches that of MS's implementation.
107  
108 2006-06-06  Mike Kestner  <mkestner@novell.com>
109
110         * ListView.cs : only update check state on single click.
111         * ThemeWin32Classic.cs : fix focus drawing for details view without
112         fullrowselect.  Fixes #78454.
113         * XplatUIX11.cs : fix for double click emission.
114
115 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
116
117         * PropertyGridView.cs : Applied Atsushi's patch to fix
118         font dialog bug  (#78197).
119
120 2006-06-05  Jackson Harper  <jackson@ximian.com>
121
122         * TreeNode.cs: Compute the next node for expanding/collapsing
123         correctly. We now factor in nodes without a NextNode
124         correctly. (Fixes somes cases in nunit-gui).
125         * InternalWindowManager.cs: Set the bounds when updating the
126         virtual position of a tool window.
127         
128 2006-06-05  Chris Toshok  <toshok@ximian.com>
129
130         * DataGrid.cs: rename cached_currencymgr to list_manager.
131         (set_CurrentCell): move SetCurrentCell code here, and clean it up
132         some.
133         (CurrentRow, CurrentColumn): single accessors so we can make the
134         cursor movement code a lot easier to understand.
135         (CurrentRowIndex): implement this in terms of CurrentRow.
136         (BeginEdit): clean this up a bit.
137         (CancelEditing): sort out the is_editing/is_changing/is_adding
138         stuff a little.
139         (EndEdit): minor changes.
140         (OnKeyDown): add a comment about a (most likely) unnecessary
141         check.
142         (OnMouseDown): cancel editing when we click on a row header.  And
143         use the CurrentRow setter, not CurrentCell.
144         (ProcessDialogKey): directly call ProcessGridKey.
145         (UpdateSelectionAfterCursorMove): factor out this common block of
146         code (it's used everywhere that we move the cursor by updating row
147         or column).
148         (ProcessGridKey): pretty substantial overhaul.  Use the
149         CurrentRow/CurrentColumn properties to make the code a lot more
150         readable.  Only use the CurrentCell property when we have to
151         modify both row and column at once.  Tab behavior is still broken,
152         and Delete is untested.
153         (Select): if we have no selected rows, set selection_start to
154         @row.
155         (EditCurrentCell): rename EditCell this.  It was only ever invoked
156         with CurrentCell as the arg, so drop the arg and rename it.
157
158         * DataGridColumnStyle.cs: clean up the constructors a little, and
159         drop CommonConstructor().
160
161         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
162         actually get notified when the user hits it.
163         (ProcessKeyMessage): *substantially* simplify this method.
164         There's no reason (that I can see) for the textbox to be making
165         calls into the datagrid at all.  Remove all of them but the ones
166         for Enter handling.  those will take some more work.
167
168         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
169         calling HideEditBox.
170         (HideEditBox): if we have an active textbox, render it invisible
171         without causing a re-layout of the datagrid.
172
173 2006-06-05  Mike Kestner  <mkestner@novell.com>
174
175         * ListView.cs : fix NRE crasher when focuseditem is cleared by
176         collection changes by resetting it to Items[0].  Fixes #78587.
177
178 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
179
180         * MessageBox.cs: if the height of the text is larger than the icon_size,
181         use that. Fixes bug #78575.
182
183 2006-06-05  Jackson Harper  <jackson@ximian.com>
184
185         * TreeView.cs: Fix line drawing when scrolling.  To do this each
186         node is basically responsible for drawing its entire horizontal
187         area.  When drawing a node it draws its parent node lines if
188         needed.
189         - Adjust the clip area to the viewport rectangle
190         - Fix Left/Right key handling to match MS. (It expand/collapses
191         and moves to parents/first child but does not move selection to
192         sibling nodes).
193         - Fix SetTop to work with new bound calculation code
194         - When scrollbars are no longer needed we need to reset scrolling
195         vars and recalculate the visible order so the redraw is correct
196         * TreeNode.cs: We can't expand/collapse nodes with no children.
197
198 2006-06-03  John Luke  <john.luke@gmail.com> 
199
200         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
201         so the colors work without dev packages
202         
203 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
204
205         * Control.cs 
206           - Select: Implemented to just use activate. Seems to match MS 
207             behaviour closest. Documented to only do actual control walking 
208             based on it's parameters if in a container control so I moved 
209             the code there.
210           - Removed selection check logic from our internal Select() method
211         * ContainerControl.cs:
212           - Select: Moved selection logic from Control here, since MS documents
213             that containers obey the bool arguments. No longer calling base
214
215 2006-06-02  Jackson Harper  <jackson@ximian.com>
216
217         * TreeView.cs: If the selected node isn't changed when we get
218         focus update the previously selected node so that we see the
219         selection box.
220
221 2006-06-02  Mike Kestner  <mkestner@novell.com>
222
223         * ComboBox.cs: restructure grab and general mouse event handling.
224         Make the composite control raise mouse events like it was a single
225         control for leaves/enters/motion/up/down events.  fix dropdown list
226         coordinate mangling and refactor it into the scrollbar subclass to
227         reduce code duplication.  Fixes #78282 #78361 and #78457.
228
229 2006-06-02  Mike Kestner  <mkestner@novell.com>
230
231         * ScrollBar.cs: remove Capture setting/clearing, as it happens
232         automatically in the Control.WndProc.
233
234 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
235
236         * FileDialog.cs: fix crash when running SharpChess, which sets the
237         FilterIndex to 2 with only one Filter.
238
239 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
240
241         * ToolBar.cs: add SizeSpecified property.
242         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
243         try to figure out our real size, otherwise fallback to what the
244         container says.
245
246 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
247
248         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
249         * Control.cs (WndProc): MS always calls the DefWndProc to pass
250           up the event
251
252 2006-06-01  Mike Kestner  <mkestner@novell.com>
253
254         * ListView.cs: revamp the focus management in ListView.  It still
255         causes churn of LostFocus/GotFocus emissions on clicks, but it's
256         better than not handling focus at all.  Will revisit when pdb feels
257         the general focus handling is solid.  Fixes #78526.
258
259 2006-06-01  Jackson Harper  <jackson@ximian.com>
260
261         * TreeView.cs: Set the default border style in the constructor.
262         - Move painting to use OnPaintInternal instead of capturing
263         WM_PAINT, this is the correct way of doing things
264         - UpdateBelow shouldn't invalidate the scrollbar area
265         - Cap the top on update below in case the node was above the top
266         of the viewport rectangle.
267         - ExpandBelow and Collapse below need to obey Begin/End Update.
268         * TreeNode.cs: Make is_expanded internal so the treenode
269         collection can change it without firing the whole event chain.
270         * TreeNodeCollection.cs: When clearing all the child nodes make
271         sure to recalc the visible order.
272         - Improve algo for remove the top node
273
274 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
275
276         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
277           SendMessage directly calling window procedures, which in turn might
278           call SetFocus()
279
280 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
281
282         * Control.cs: Don't handle WM_SETFOCUS if the same window already
283           has focus (works around X11 sending a FocusIn after our SetFocus)
284         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
285
286 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
287
288         * Mime.cs: Fix for the NET_2_0 build.
289           NameValueCollection needs StringComparer now.
290
291 2006-05-31  Chris Toshok  <toshok@ximian.com>
292
293         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
294         return (via an out parameter) the starting X of the column.
295         (UpdateVisibleColumn): track change to FromPixelToColumn.
296         (HitTest): add a ColumnResize case here.
297         (DrawResizeLine): new function, probably poorly named.
298
299         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
300         only need to keep one reference.
301         (set_ListManager): same.
302         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
303         Also, add support for HitTestType.ColumnResize.
304         (OnMouseMove): add column resize behavior here, and change the
305         cursor to the correct one as we move around the datagrid.
306         (OnMouseUp): terminate the column resize if we're resizing.
307         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
308         for the current cell.
309         (ConnectListManagerEvents): use cached_currencymgr.
310         (DisconnectListManagerEvents): fill this in, using
311         cached_currencymgr.
312         (SetCurrentCell): remove cached_currencymgr_events handling.
313         (SetDataMember): only call DisconnectListManagerEvents if
314         cached_currencymgr is != null.
315         (SetDataSource): same.
316         (OnListManagerCurrentChanged): cached_currencymgr_events ->
317         cached_currencymgr.
318
319 2006-05-31  Jackson Harper  <jackson@ximian.com>
320
321         * BindingManagerBase.cs: Remove somedebug code that creeped into
322         SVN.
323         * TreeNode.cs: We get the indent level dynamically right now, so
324         don't track it as a member.
325         * TreeNodeCollection.cs: Make sure all nodes added to the list
326         have parents, treeviews/topnodes setup properly.
327         - Don't attempt to track indent level.
328
329 2006-05-30  Jackson Harper  <jackson@ximian.com>
330
331         * BindingContext.cs: Create the currency manager tables here.
332         This allows us to more easily create null tables (when bad data
333         members are used), and more easily create related currency
334         managers.
335         * CurrencyManager.cs: All the table creation stuff is done by the
336         binding context now.
337         - Current should throw an exception if listposition is -1.
338         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
339         been bound yet.
340
341 2006-05-30  Mike Kestner  <mkestner@novell.com>
342
343         * ListView.cs: allow reexpansion of zero-width column headers.
344         Fixes #78528.
345
346 2006-05-28  Chris Toshok  <toshok@ximian.com>
347
348         * CurrencyManager.cs (get_Current): after the late binding
349         listposition = -1 fix, we need to guard against it here and return
350         null, otherwise we raise an exception (which is swallowed
351         elsewhere, and breaks datagrid databinding.)
352
353 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
354
355         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
356           than WM_SYSKEY, don't throw if get something unexpected (#78507)
357
358 2006-05-26  Jackson Harper  <jackson@ximian.com>
359
360         * ControlPaint.cs:
361         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
362         values, it's faster and it's all we care about (we don't care if
363         the names aren't equal).
364         * KeyboardLayouts.cs: Eliminate some dead code.
365         - Lazy init things
366         * X11Keyboard.cs: Lazy init keyboard detection.
367         - Cleanup access modifiers a little.
368
369 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
370
371         * XplatUIX11.cs: Once again, attempting to get layout just right.
372
373 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
374
375         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
376           the sizes of each link section, that will result in sizes that
377           match DrawString's layout (Fixes #78391)
378
379 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
380
381         * FileDialog.cs: If AddExtension property is true autocomplete the
382           extensions in SaveFileDialog correctly. Fixes bug #78453.
383           Set MyNetwork and MyComputer to "C:\" for windows. This should
384           fix part 8 of bug #78446 for now.
385
386 2006-05-26  Chris Toshok  <toshok@ximian.com>
387
388         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
389         invalidate the current row header if we need to, but presumably
390         we'll invalidate the row corrsponding to the bounds or
391         editingControl.
392         (GridHScrolled): switch back to this method, as it's part of the
393         public api.  *sigh*.
394         (GridVScrolled): same.
395         (OnMouseWheel): hack up something that more or less works.  Call
396         GridHScrolled/GridVScrolled directly, instead of duplicating much
397         of their code here.
398         (EnsureCellVisibility): reinstate a bunch of this code, since we
399         can't just set the scrollbar Value and expect to do all the work
400         in the ValueChanged handler.  Also, Call Update() after scrolling
401         in one direction so the other XplatX11.ScrollWindow call has the
402         proper stuff in the proper places.
403         (EditCell): set is_editing to true before calling .Edit.
404
405         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
406         don't bother comparing first.
407         (OnKeyPress): call grid.ColumnStartedEditing before calling
408         base.OnKeyPress.  this will set is_changing and invalidate the row
409         header if necessary.
410         (ProcessKeyMessage): for WM_CHAR messages, call
411         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
412         and WM_KEYDOWN.
413         
414         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
415         it's done in the DataGrid.
416         (NextState): call grid.ColumnStartedEditing, which takes care of
417         invalidating the row header (and setting is_changing).
418
419         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
420         here.  it's done in the DataGrid.
421
422 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
423
424         * Control.cs: allow changing the cursor when the mouse position is
425         out of bounds but Capture is set.
426         * LinkLabel.cs: handle the case when the mouse button is pressed on the
427         linklabel but released somewhere else.
428
429 2006-05-25  Jackson Harper  <jackson@ximian.com>
430
431         * TreeView.cs: When we get focus if there is no selected node make
432         it the top node
433         - Remove some uneeded setup code from Draw.
434         * TreeNodeCollection.cs: If the tree doesn't have a top node when
435         a new node is inserted make the new node the top.
436         * XplatUIX11.cs:
437         * Timer.cs: Use Utc time so that no local time zone stuff needs to
438         be used (should be faster).
439         
440 2006-05-25  Chris Toshok  <toshok@ximian.com>
441
442         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
443         problem with the last commit.
444
445 2006-05-25  Chris Toshok  <toshok@ximian.com>
446
447         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
448         need the invalidate call here, while scrolling right-to-left via
449         the left arrow key (i.e. moving the editing cell while scrolling).
450
451         * DataGrid.cs (.ctor): remove the initialization of
452         ctrl_pressed/shift_pressed.  We no longer track them using key
453         up/down handlers, but by using Control.ModifierKeys.  Also, switch
454         to using ValueChanged handlers on the scrollbars instead of
455         Scrolled event handlers.  This simplifies a bunch of the scrolling
456         code.
457         (GridHValueChanged): rename from GridHScrolled, and change it to
458         work with the new event args.
459         (GridVValueChanged): same.
460         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
461         (OnMouseWheel): actually scroll the datagrid.  Don't change the
462         selected cell.
463         (ProcessGridKey): correct all the keyboard navigation stuff I
464         could find.  Ctrl up/down/left/right/home/end work now.
465         (EnsureCellVisibility): correct method name spelling.  Also,
466         simplify this a touch by not explicitly calling the
467         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
468         scrollbar value.
469         (OnKeyUpDG): no need for this method now.
470         
471 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
472
473         * LinkLabel.cs: display the OverrideCursor when hovering the label.
474         Fixes bug #78392.
475
476 2006-05-25  Chris Toshok  <toshok@ximian.com>
477
478         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
479         r61019.
480
481 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
482
483         * Application.cs: Moved setting of is_modal and closing to before
484           we create the control, to allow the event handlers called as a
485           result of creation affect closing. Also removed Gonzalo's previous
486           change to setting DialogResult, the behaviour has been moved to 
487           Form.ShowDialog()
488         * Form.cs: 
489           - ShowDialog(): Removed explicit creation of the form, let RunLoop
490             handle it instead
491           - ShowDialog(): If no dialog result is set, we need to return Cancel
492           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
493             the close is cancelled
494
495 2006-05-25  Jackson Harper  <jackson@ximian.com>
496
497         * StatusBar.cs: We only need to update the sizes of the other
498         panels when we have auto size contents.  Also we are only updating
499         the contents of the panel, not the borders, so compensate for the
500         border width (TODO: get this width from the theme somehow).
501         * TreeView.cs: Scrollable is true by default
502         - Use invalidate instead of refresh where needed
503         - Factor the scrollable value into scrollbar updating
504         - Update the scrollbars if the Scrollable property is altered
505         - Update the selected node if its ImageIndex is changed
506         - Handle null nodes in UpdateNode (mainly so we don't have to
507         check if selected is null when updating it
508         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
509         are factored into the visible count
510         - Use VisibleCount for clarity in the code
511         - When the font is changed we need to recurse through all the
512         nodes and invalidate their sizes
513         
514 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
515
516         * Application.cs: set the DialogResult to fixed when the main form is
517         hidden or destroyed while being modal.
518
519 2006-05-25  Miguel de Icaza  <miguel@novell.com>
520
521         * Theme.cs: Use Tangoified messagebox icons. 
522
523         (GetSizedResourceImage): Also cope with width = 0 and do not
524         trigger a warning in that case (0 means "give me your icon from
525         the resouce, no special size needed).
526
527 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
528
529         * Application.cs: Leave runloop if the the main modal form is 
530           hidden (fixes #78484)
531
532 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
533
534         * BindingContext.cs : reject null datasource in Contains() and
535           Item[].
536         * CurrencyManager.cs : check data_member validity when data_source
537           is dataset. When it is late binding, the initial position is -1.
538
539 2006-05-24  Jackson Harper  <jackson@ximian.com>
540
541         * TreeNodeCollection.cs: Dont't recalculate the visible order on
542         inserted nodes that aren't visible.  This changes the
543         max_visible_order which confuses scrollbar settings.
544         - Use the enumerator to get the prev node instead of duplicating
545         code.
546         * TreeView.cs: Use new method for setting scrollbar values
547         - Don't set the bounds every time the scrollbar is updated
548         - When updating below the root node use an invalidate instead of a
549         refresh to prevent the child controls (scrollbars) from being
550         refreshed. (UpdateBelow still needs to be reworked anyways).
551         - Reenable SetBottom now that visible orders are set correctly,
552         added some debug code incase we ever get bad values there again.
553         - Set the scrollbar max to 2 less then the max value, this
554         compensates for the max value being one above the node count, and
555         for scrollbars adding one extra "notch".
556         - When drawing image nodes if there is an imagelist we draw the
557         first image in the list if the supplied image index is out of the
558         image list's bounds.
559         
560 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
561
562         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
563           we receive a size change from the WM (Fixes #78503)
564
565 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
566
567         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
568           rectangle (Fixes #78501)
569
570 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
571
572         * ButtonBase.cs: 
573           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
574             as a bitfield.
575           - Fixed MouseMove to no longer switch pressed state unless the left
576             mouse button is pressed. Atsushi provided the original patch (#78485)
577           
578 2006-05-24  Jackson Harper  <jackson@ximian.com>
579
580         * ScrollBar.cs: New internal methods that allow us to change a
581         couple values on the scrollbar (the most common case is maximum
582         and large change) without getting multiple invalidates.
583
584 2006-05-24  Chris Toshok  <toshok@ximian.com>
585
586         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
587         (Edit): save off the original state in oldState, and set
588         grid.is_editing to true.
589         (OnKeyDown): abort editing if escape is pressed.  also, call
590         NextState if space is pressed.
591         (OnMouseDown): call NextState.
592         (NextState): factor out shared code from OnKeyDown and OnMouseDown
593         here.  Also, only invalidate the row header once (on the initial
594         is_changing switch) to save on redraws.
595
596 2006-05-24  Chris Toshok  <toshok@ximian.com>
597
598         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
599         if the value in the cell is different than it was before.  This
600         keeps us from triggering a layout when we move around a datarid
601         with a highlighted cell.
602         (Edit): suspend layout when creating/positining the text box, and
603         resume passing false so we don't ever actually re-layout.
604         (ReleaseHostedControl): same.
605         (EnsureTextBox): reformat slightly, and set WordWrap to false.
606
607         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
608         control-key sequences should go to the datagrid - remove that
609         lock.  Also, modify the conditions under which we move between
610         cells when moving the cursor within a cell, and remove the "this"
611         and "base" from field accesses.  We weren't even consistent, given
612         they all were in the base class.
613
614 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
615
616         * Binding.cs : (.ctor)
617           An obvious NRE fix for BindingTest.CtorNullTest().
618
619 2006-05-23  Chris Toshok  <toshok@ximian.com>
620
621         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
622         them between lines.  This fixes some quirks editing cells in the
623         datagrid.
624
625 2006-05-23  Jackson Harper  <jackson@ximian.com>
626
627         * TreeView.cs: Use begin/end update when doing expand/collapse all
628         so that we don't get flicker on the scrollbar.
629
630 2006-05-23  Jackson Harper  <jackson@ximian.com>
631
632         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
633         treenode calculations to be independant of the painting code. To
634         do this nodes track a visible order which is calculated by the
635         treeview.
636         - Call new methods for expanding/collapsing nodes.  These methods
637         use scrollwindow so we don't have to update everything below the
638         node.
639         * TreeView.cs: Refactored drawing and scrolling code.  We don't
640         need to update nodes when drawing anymore or calculate scrollbar
641         stuff.
642         - Added new methods for expanding/collapsing nodes. These methods
643         use ScrollWindow so as to not have to redraw all the nodes below.
644         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
645         we add/remove nodes or sort.
646         - Handle removing the selected and the top node properly.
647
648 2006-05-23  Chris Toshok  <toshok@ximian.com>
649
650         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
651         maybe this should actually happen in the datagrid code?
652         (EndEdit): no need to invalidate anything, given that
653         ReleaseHostedControl causes the datagrid to relayout, which
654         invalidates everything anyway.
655
656         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
657         in SetCurrentCell).
658         (set_SelectionBackColor): call InvalidateSelection instead of
659         Refresh.
660         (set_SelectionForeColor): same.
661         (BeginEdit): Flesh this out a bit.
662         (CancelEditing): only do any of this if we're editing/adding.
663         (EndEdit): same.
664         (OnMouseDown): there's no need to cancel editing here, it's done
665         in SetCurrentCell.
666         (SetCurrentCell): only invalidate the current row header if it's a
667         different row than the new one.
668         (ShiftSelection): fix this to work like MS does.
669         (ResetSelection): factor out the invalidation of selected_rows to
670         InvalidateSelection.
671         (SetDataSource): cancel any editing that's going on.
672
673         * DataGridColumnStyle.cs
674         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
675         call the non-interface version.
676
677         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
678         header rectangle with the clip rectangle so we don't redraw the
679         entire header for just a small area.  Gets rid of the last flicker
680         when horizontally scrolling.
681         (DataGridPaintRow): same.
682
683 2006-05-23  Mike Kestner  <mkestner@novell.com>
684
685         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
686         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
687         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
688         Critical bug report.
689
690 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
691
692         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
693           and this fixes #78493
694
695 2006-05-23  Miguel de Icaza  <miguel@novell.com>
696
697         * Theme.cs (GetSizedResourceImage): Scale images if the proper
698         size is not found.  
699         
700         * FileDialog.cs: Do not change the background for the side bar as
701         it wont work nicely with the theme, and also reduces the artifacts
702         in rendering the icons (which I want to fix too).
703
704         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
705         resources, not resgen resources. 
706
707         (PlatformDefaultHandler): Pull images using the new API.
708
709 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
710
711         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
712           a reference to the hwnd and will not remove it unless there are
713           no pending exposures (fixes #78341)
714         * XplatUI.cs: Improved debug
715
716 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
717
718         * MenuAPI.cs : don't handle OnClick event when it was not the left
719           button. Fixed bug #78487.
720
721 2006-05-23  Mike Kestner  <mkestner@novell.com>
722
723         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
724         prefer submenus to the top menu for item lookup, to avoid popping down
725         top-row items.
726
727 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
728
729         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
730           Graphics.FillRectangle as the visual results are really bad (even
731           on win). We now draw perfect arrows (and perfect shadows when the
732           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
733           Pen.DashPattern to draw the dots of each line.
734
735 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
736
737         * FileDialog.cs: Update the filename combobox when navigating through
738           the ListView with the cursor keys. Fixes part 7 of bug #78446.
739
740 2006-05-22  Mike Kestner  <mkestner@novell.com>
741
742         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
743         Fixes #78463.
744
745 2006-05-22  Mike Kestner  <mkestner@novell.com>
746
747         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
748         requests. Fix a misspelled parameter and a copy paste exception error
749         in Select.
750
751 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
752
753         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
754           to get the same width/height (5/13) on X11 as the default font has on
755           win32. This means that our DefaultFont emSize is smaller than the 
756           the MS SWF equivalent (even thought the width/height stays the same)
757
758 2006-05-20  Jackson Harper  <jackson@ximian.com>
759
760         * MdiClient.cs:
761         * MdiWindowManager.cs:
762         * InternalWindowManager.cs: Make sure to use the border width from
763         the theme.
764
765 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
766
767         * PrintDialog.cs: Implements printer details
768
769 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
770
771         * FileDialog.cs: Added focus handling for PopupButtonPanel.
772           Fixes part 1 and 2 of bug #78446
773
774 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
775
776         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
777           instead of sticking to the first ever calculated value
778
779 2006-05-19  Mike Kestner  <mkestner@novell.com>
780
781         * ComboBox.cs: fix mouse motion selection to use MousePosition and
782         PointToClient, since Capture is set. Fixes #78344.
783
784 2006-05-19  Mike Kestner  <mkestner@novell.com>
785
786         * ListView.cs: match MS behavior in Details view where items are not
787         drawn if Columns.Count == 0. 
788         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
789         Use a separate pen to draw the check, since changing the width affects
790         the box as well.  Fixes #78454.
791
792 2006-05-18  Miguel de Icaza  <miguel@novell.com>
793
794         * ListView.cs: ArgumentOutOfRangeException, single versions of the
795         exception should throw the name of the invalid argument.
796
797         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
798         there are no files listed. 
799
800 2006-05-18  Jackson Harper  <jackson@ximian.com>
801
802         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
803         up.
804
805 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
806
807         * Control.cs: Brought back our old UpdateZOrder method as a private
808           function and switched our calls from UpdateZOrder to the new one.
809           This fixes the Paint.Net canvas disappearing bug.
810
811 2006-05-18  Jackson Harper  <jackson@ximian.com>
812
813         * Theme.cs:
814         * ThemeWin32Classic.cs:
815         * InternalWindowManager.cs: Move the drawing into the theme,
816         expose everything the theme should need from the window manager.
817
818 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
819
820         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
821           from the call to NativeWindow to avoid walking up the parent chain
822           further than needed (speeds up setting cursors and avoids setting
823           the wrong cursor if a parent has another cursor defined)
824         * Cursor.cs: When loading an icon as cursor, MS uses the center of
825           the icon as hotspot, not what's contained as hotspot in the icon
826           file. This fixes the perceived drawing offset seen with Paint.Net
827         
828 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
829
830         * XplatUIX11.cs: 
831           - Store the calculated rectangle in Hwnd object and use it when 
832             setting the client size
833           - Force Toolwindows to always be type Dock, to ensure they're on top
834
835 2006-05-18  Mike Kestner  <mkestner@novell.com>
836
837         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
838         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
839         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
840         Substantial refactoring to remove confusing nested classes. Coding
841         standard and Get+Set->property refactorings.  Shift to index based
842         highlighting in ComboListBox instead of constantly using IndexOf and
843         Items[]. Add invalidations on resize for DropDownList to fix ugliness
844         in FileDialog growth.  Draw borders manually since Simple mode needs
845         to look like two independent controls.  Make listbox border
846         conditional to DropDownStyle.  Improved OwnerDraw support.
847
848 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
849
850         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
851         Don't set the disposed graphics to null, so we can throw the "right"
852         exception if the graphics is reused later (added a flag to avoid 
853         double disposing). Some behaviours are different under 2.0 and are
854         filled under bug #78448.
855
856 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
857
858         * Control.cs: When double-buffering is enabled, we need to reset
859           our graphics context between paint calls. Otherwise, any 
860           transformations and other alterations on the context will 
861           become cumulative (#77734)
862
863 2006-05-18  Mike Kestner  <mkestner@novell.com>
864
865         * ListView.cs: do focused item selection like MS on clicks. 
866         Rework focus handling for ItemControl so LostFocus invalidates as
867         well.
868         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
869         the ListView ItemControl has focus.
870
871 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
872
873         * XplatUIX11.cs: If client_window ends up being width or height zero
874           due to border settings, move it off window inside whole_window (#78433)
875
876 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
877
878         * Mime.cs: Shrink the mime file cache correctly.
879
880 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
881
882         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
883
884 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
885
886         * XplatUIX11.cs (AddExpose): More sanity checks
887
888 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
889
890         * XplatUIX11.cs:
891           - AddExpose: Don't add expose ranges outside the size of our
892             window
893           - Cast opacity values to Int32 to avoid crashes with certain
894             values
895           - Added disabled code paths that protect against illegal cross-
896             thread painting (Developers.exe)
897
898 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
899
900         * ProgressBar.cs: Invalidate the control when it's resized
901           since block size is based on control size. (#78388)
902
903 2006-05-16  Miguel de Icaza  <miguel@novell.com>
904
905         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
906         of setting the incoming argument to the "reset" value, we set the
907         this.datamember to string.empty (before we were invalidating the
908         incoming data).   
909
910         Fixes 78420
911
912 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
913
914         * Form.cs: Only apply transparency settings after the form
915           is created. (Fixes #77800)
916
917 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
918
919         * ApplicationContext.cs: Grab the HandleDestroyed event so
920           we know when to fire OnMainFormClosed 
921
922 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
923
924         * Application.cs: Introduced sub-class to allow tracking of
925           threads and centralized triggering of the event mess for
926           ThreadExit, AppExit, etc..  (#76156)
927
928 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
929
930         * MimeIcon.cs:
931           - Do not return a null icon index value for a mime subclass.
932             Instead try the main mime type class too.
933           - Seems that some newer distributions don't have a link to some
934             gnome default icons anymore. So check the default gnome dir too.
935           
936
937 2006-05-16  Jackson Harper  <jackson@ximian.com>
938
939         * MdiClient.cs: Don't paint the parent background image if we have
940         our own background image.
941
942 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
943
944         * Control.cs:
945           - PerformLayout: Do not shrink space filled by DockStyle.Fill
946             controls, all filled controls are supposed to overlap (#78080)
947           - UpdateZOrder is supposed to update the control's z-order in the
948             parent's z-order chain. Fixed to behave like that
949           - BringToFront: Removed obsolete code
950           - SendToBack: Simplyfied
951           - SetChildIndex: Trigger layout calculations when Z-order changes
952             since layout is done by z-order
953
954 2006-05-16  Chris Toshok  <toshok@ximian.com>
955
956         [ fixes bug #78410 ]
957         * DataGrid.cs (set_AlternatingBackColor): use
958         grid_drawing.InvalidateCells instead of Refresh().
959         (set_BackColor): call grid_drawing.InvalidateCells.
960         (set_BackgroundColor): use Invalidate instead of Refresh.
961
962         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
963         invalidate the cell area.
964
965 2006-05-15  Chris Toshok  <toshok@ximian.com>
966
967         [ fixes bug #78011 ]
968         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
969         on to DataGridPaintRow.
970         (DataGridPaintRow): take a clip argument, and only draw the cells
971         which intersect it.  same with the not_usedarea.
972
973         * Theme.cs (DataGridPaintRow) add @clip parameter.
974
975         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
976         XplatUI.ScrollWindow.
977         (ScrollToRow): same.
978
979         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
980         with last column which was causing a gray swath to appear with the
981         XplatUI.ScrollWindow code.
982
983 2006-05-15  Chris Toshok  <toshok@ximian.com>
984
985         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
986         use XplatUI.ScrollWindow.
987         (VerticalScrollEvent): use XplatUI.ScrollWindow.
988
989 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
990
991         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
992
993 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
994
995         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
996           file since there are no equivalent X11 cursors
997
998 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
999
1000         * MonthCalendar.cs : DateTimePicker should reflect selected date
1001           on mouse*up*, not mouse*down*. Fixed originally reported part of
1002           bug #76474.
1003
1004 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1005
1006         * TabControl.cs : When argument index is equal or more than tab
1007           count, just ignore. Fixed bug #78395.
1008
1009 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1010
1011         * Control.cs: Dispose all child controls when control is diposed (#78394)
1012
1013 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1014
1015         * ColorDialog.cs: Finally it is possible to select the color with
1016           the text boxes
1017
1018 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1019
1020         * PrintDialog.cs: Fix typo
1021
1022 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1023
1024         * PrintDialog.cs: PrintDialog is not resizable
1025         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1026           color. Made some ToolBar drawing methods protected virtual.
1027
1028 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1029
1030         * PrintDialog.cs: Implementation of the PrintDialog
1031
1032 2006-05-12  Chris Toshok  <toshok@ximian.com>
1033
1034         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1035         thumb, instead use MoveThumb.  This has the side effect of making
1036         most of the other thumb moving machinery use MoveThumb as well.
1037         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1038         need to actually invalidate the rectangle where the new thumb will
1039         go.
1040         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1041         We force an Update() after, so it's not as fast as it could be,
1042         but at least there's zero flicker and no droppings.
1043         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1044         (UpdateThumbPos): add another argument (dirty), which says whether
1045         or not to calculate/add dirty regions which we later invalidate.
1046         For cases where we know we're going to use MoveThumb, we pass
1047         false for this.  Otherwise, pass true.
1048
1049 2006-05-12  Jackson Harper  <jackson@ximian.com>
1050
1051         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1052         the status bar.
1053         
1054 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1055
1056         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1057           and GetClipRegion methods and UserClipWontExposeParent property.
1058         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1059           overriding UserClipWontExposeParent property, setting to false, since
1060           Win32 handles the required expose messages to draw our clipped parent
1061           areas internally
1062         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1063           PaintEventStart to set the user clip region if set.
1064         * Control.cs: 
1065           - Now internally tracking the Region for the control since we need to
1066             store it if the handle is not yet created and only set it when it
1067             becomes created. Before setting the region forced handle creation
1068           - Added code to draw the parents underneath a user-clipped region
1069         * Hwnd.cs: Added UserClip property
1070
1071 2006-05-12  Chris Toshok  <toshok@ximian.com>
1072
1073         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1074         (set_Maximum): same.
1075         (set_Minimum): same.
1076         (set_SmallChange): same.
1077         (OnMouseUpSB): remove the call to refresh when releasing the
1078         thumb.  We shouldn't need it.
1079         
1080 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1081
1082         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1083         AutoSize set to None, we do not need to relayout everything, we
1084         just need to invalidate the current region.
1085
1086         (Draw): Do not draw the entire ClientArea, just redraw the
1087         clip area being passed.
1088
1089         * MdiClient.cs: Make MdiClient constructor with the Form argument
1090         internal. 
1091
1092 2006-05-12  Jackson Harper  <jackson@ximian.com>
1093
1094         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1095         parents background image,  but strangely not their own.
1096         - (DrawStatusBarPanel): Take into account horizontal alignment
1097         when drawing the strings and icons.
1098
1099 2006-05-12  Mike Kestner  <mkestner@novell.com>
1100
1101         * ListBox.cs: avoid invalidations for focus when the collection is
1102         empty. 
1103
1104 2006-05-12  Chris Toshok  <toshok@ximian.com>
1105
1106         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1107         invalidate the entire thumb area.  Call InvalidateDirty which
1108         limits the redraw to the thumb itself and surrounding pixels.
1109
1110         * XplatUIX11.cs (ScrollWindow): optimize copying.
1111         
1112 2006-05-12  Chris Toshok  <toshok@ximian.com>
1113
1114         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1115         Figure out the positioning/layout in a single pass instead of
1116         multiple recursive invocations.  Speeds up the initial display of
1117         the data grid.  Also, make many things private that were
1118         originally public but unused outside this class.
1119
1120 2006-05-11  Jackson Harper  <jackson@ximian.com>
1121
1122         * MdiClient.cs: Improved layout code.
1123
1124 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1125
1126         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1127           not SelectedObject.
1128
1129 2006-05-11  Chris Toshok  <toshok@ximian.com>
1130
1131         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1132         union of that will always be {0,0,width,height}.
1133
1134 2006-05-11  Jackson Harper  <jackson@ximian.com>
1135
1136         * Form.cs: Match MS's DefaultSize for forms (they must have
1137         changed the size in sp2).
1138
1139 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1140
1141         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1142
1143 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1144
1145         * TextControl.cs : Fixed bug #78109. This incorrect position
1146           comparison caused crash on automatic line split.
1147         * TextBoxBase.cs : reduce duplicate code.
1148
1149 2006-05-10  Jackson Harper  <jackson@ximian.com>
1150
1151         * MdiClient.cs: Active form is only sent to the back when using
1152         the Next form functionality, when a form is clicked the current
1153         active shouldn't be sent to the back.
1154         - Layout the mdi windows when the container is first made visible.
1155         * Form.cs: Give the MdiClient a ref to the containing form when we
1156         create it.
1157         
1158 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1159
1160         * LinkLabel.cs : link_font could be uninitialized, so populate one
1161           before actual use. Fixed bug #78340.
1162
1163 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1164
1165         * XplatUIX11.cs : clipboard format native value is IntPtr.
1166           Fixed bug #78283.
1167
1168 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1169
1170         * Control.cs: 
1171           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1172             which is passed up the parent chain by DefWndProc
1173           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1174             to DefWndProc (#77956)
1175         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1176
1177 2006-05-10  Jackson Harper  <jackson@ximian.com>
1178
1179         * MdiClient.cs: We need to remove the controls from the mdi
1180         collection, when we close the window.
1181         * MdiWindowManager.cs: Special handling of closing mdi windows.
1182         * InternalWindowManager.cs: Make the close method virtual so the
1183         mdi window manager can handle it specially.
1184
1185 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1186
1187         * DataGrid.cs:
1188           - Recalculate grid when the data source has changed
1189           - Matches styles provided by user from all data sources types
1190         * DataGridTableStyle.cs: For columns that provided by the user set the
1191         with the preferred value is there was unassigned.
1192         * CurrencyManager.cs: throw OnItemChanged event
1193
1194 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1195
1196         * PictureBox.cs: Don't animate until handle is created. Start animation
1197           when handle is created.
1198
1199 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1200
1201         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1202           current codebase.
1203         * XEventQueue.cs: We don't need to provide the extra info
1204
1205 2006-05-10  Jackson Harper  <jackson@ximian.com>
1206
1207         * MdiClient.cs: If the mdi clients parent form has a background
1208         image set, we draw that background image for the mdi area's
1209         background.
1210
1211 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1212
1213         * TextBoxBase.cs: Set IBeam cursor (#78347)
1214
1215 2006-05-10  Mike Kestner  <mkestner@novell.com>
1216
1217         * ToolBar.cs: fix some text padding issues with ButtonSize
1218         calculation. Update the default size to match MS documentation.
1219         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1220         button size. Fixes #78296.
1221
1222 2006-05-10  Mike Kestner  <mkestner@novell.com>
1223
1224         * ListBox.cs: use is_visible for scrollbar positioning in case the
1225         control isn't on screen yet.  Fix off by one with Right vs Width
1226         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1227         
1228 2006-05-10  Jackson Harper  <jackson@ximian.com>
1229
1230         * X11Dnd.cs: Drop to a control with another control on top of it.
1231         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1232         be modified in click handlers. TODO: Look for similar problems in
1233         other controls.
1234
1235 2006-05-09  Jackson Harper  <jackson@ximian.com>
1236
1237         * Form.cs: Window managers need the old window state when setting
1238         window state now.
1239         * InternalWindowManager.cs: Allow the base mdi window manager to
1240         handle more of the MDI only stuff (like maximize buttons).
1241         * MdiWindowManager.cs: Fix some snafus in changing the window
1242         state.  Add all the menu functionality, for both popup and
1243         maximized menus.
1244         * MdiClient.cs: When a new form is selected the currently
1245         activated form is sent to the back, this matches MS.
1246         - Implement a new method to activate the next mdi child window.
1247
1248 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1249
1250         * Control.cs: 
1251           - Added new InternalCapture method to allow controls to prevent
1252             the capture behaviour on the click handlers
1253           - Switched to use InternalCapture
1254         * ComboBox.cs:
1255           - Using InternalCapture to prevent mouse captures from being released
1256             on mouse button release (Fixes #78100)
1257         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1258           returns Form borders if a caption is present. (Fixes #78310)
1259
1260 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1261
1262         * TreeNode.cs: Changed serialization .ctor to not require every field
1263           to be present. (#78265)
1264         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1265
1266 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1267
1268         * MimeIcon.cs: for is faster than foreach for strings.
1269
1270 2006-05-05  Mike Kestner  <mkestner@novell.com>
1271
1272         * CheckedListBox.cs: update check handling code to not use selected.
1273         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1274         behavior for visual feedback, motion response, shift/ctrl handling,
1275         and properly deal with all 4 selection modes. Updates to bounds
1276         handling logic.  Add scroll wheel support. [Fixes #77842]
1277
1278 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1279
1280         * ListView.cs:
1281           - Moved adding of Implicit controls into .ctor. That way, subsequent
1282             creation of the controls will not cause them to think they are 
1283             toplevel windows (fixes #78200 header problem)
1284           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1285           - Switched visibility setting of header control to use internal field
1286             to avoid triggering handle creation
1287           - Now checking if handle is created before causing a refresh when items
1288             are added (This makes us now match handle creation time with MS)
1289         * Splitter.cs: Removed loading of private splitter cursor, switched to
1290           Cursors version now that that is loading the right ones
1291         * Cursors.cs: Load proper splitter cursors from resources
1292         * Cursor.cs: Added second method of loading resource cursors for the 
1293           VS.Net users amongst us
1294
1295 2006-05-05  Mike Kestner  <mkestner@novell.com>
1296
1297         * ListView.cs: give header_control a minimum size based on the
1298         ListView size.
1299
1300 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1301
1302         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1303           window seems to do that with metacity, so set that type. (#78120)
1304
1305 2006-05-05  Mike Kestner  <mkestner@novell.com>
1306
1307         * ListViewItem.cs: fix Details mode checkbox layout bug.
1308         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1309         at the end of the header, if it exists. [Fixes for #78200]
1310
1311 2006-05-04  Jackson Harper  <jackson@ximian.com>
1312
1313         * MdiClient.cs: Add a helper property to get the container form.
1314         * MdiWindowManager.cs: We have to make sure to use the menu origin
1315         when drawing the icons and buttons, this fixes maximized window
1316         icons/buttons on win32.
1317         * InternalWindowManager.cs: Reset the restore captions when a
1318         window goes from Maximized to Minimized and vice versa. Move the
1319         DrawMaximizedButtons into the MdiWindowManager source, tool
1320         windows can't be maximized. NOTE: This could use a little
1321         refactoring if time ever permits.
1322         
1323 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1324
1325         * TextBox.cs: Add MWFCategoryAttributes
1326         * TextBoxBase.cs: Add MWFCategoryAttributes
1327         * Form.cs: Add MWFCategoryAttributes
1328
1329 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1330
1331         * Control.cs: Add MWFCategoryAttributes
1332         * ScrollableControl.cs: Add MWFCategoryAttributes
1333
1334 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1335
1336         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1337           Divider is true. Fix a little glitch in PropertyToolBar
1338           drawing code
1339
1340 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1341
1342         * Control.cs:
1343           - Dispose: Call base.Dispose, this causes the disposed event
1344             to be fired (and probably other, more important stuff)
1345           - SetVisibleCore: Set is_visible to true after creating the
1346             window so that the window still gets created invisible (if
1347             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1348             to generate a WM_ACTIVE message
1349         * Form.cs: Call Dispose when we want to destroy the window, instead of
1350           just destroying the handle (Dispose will do that for us)
1351         * XplatUIX11.cs:
1352           - RootWindow also needs a queue, so we can properly process the
1353             property change events from RootWindow (like Activate)
1354           - Generatic synthetic WM_ACTIVE message when the active window is
1355             being destroyed
1356
1357 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1358
1359         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1360           bounds are changed
1361
1362 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1363
1364         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1365           for determining width and height (image might not be assigned if
1366           we're drawing an imagelist)
1367
1368 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1369
1370         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1371         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1372           height from system
1373         * Theme.cs: No longer returns hardcoded menu height, instead calls
1374           new driver method
1375         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1376           on MS (# 78257)
1377
1378 2006-05-01  Mike Kestner  <mkestner@novell.com>
1379
1380         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1381
1382 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1383
1384         * TextBoxBase.cs: Removed Fixme
1385         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1386
1387 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1388
1389         * XplatUIX11.cs:
1390           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1391             the rectangle relative to the parent, considering borders. We
1392             don't really want that.
1393           - ScrollWindow: Fixed warning to be more understandable
1394         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1395           scrollbars and scroll only the visible area
1396         * RichTextBox.cs: Removed debug output
1397
1398 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1399
1400         * NumericUpDown.cs (Text): Just use base
1401         * UpDownBase.cs: Ensure txtView is created before using it
1402
1403 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1404
1405         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1406           casting to IntPtr to avoid 64bit overflow errors
1407
1408 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1409
1410         * Control.cs:
1411           - AllowDrop: Don't force handle creation.
1412           - CreateHandle: Added call to tell driver if we're allowed to drop
1413
1414 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1415
1416         * FileDialog.cs: Remember the last directory not only for the
1417           current instance but also for new FileDialog instances.
1418
1419 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1420         
1421         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1422           broke sending async messages
1423
1424 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1425
1426         * XplatUIX11.cs:
1427           - ScrollWindow: Fixed method. We finally generate expose events again
1428             for scrolled areas. This was causing 'garbage' when scrolling
1429             textbox and other controls that used ScrollWindow
1430           - Switched from using the regular queue for paint events to the MS 
1431             model of 'generating' paint events when the queue is empty.
1432             We use the new XQueueEvent.Paint subclass to store which windows
1433             need painting.
1434           - AddExpose now takes the x/y/width/height of the exposed area
1435             and inserts the window into the paint queue if not already there
1436           - InvalidateWholeWindow: Switched to use new AddExpose method
1437           - UpdateMessageQueue: Added which queue to monitor for paint events
1438           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1439             the unlikely case nothing above handles it. We reset the expose
1440             pending states to get them off the queue.
1441           - GetMessage: Now pulls a paint event if no other events are in the
1442             queue
1443           - Invalidate: Switched to new AddExpose method
1444           - PeekMessage: Updated to understand pending paint events
1445           - UpdateWindow: Fixed logic bug. We were only updating if the window
1446             didn't need updating. Also switched to sending WM_PAINT directly,
1447             like MS does.
1448         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1449           and random access Remove(). The random access is needed to handle
1450           UpdateWindow() where a WM_PAINT is sent directly without accessing
1451           the queue.
1452         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1453           allow for better feedback when scrolling. Scrollbars are small and
1454           the immediate update should make it 'feel' more responsive without
1455           slowing things down. ScrollBar still needs it's invaliate logic
1456           updated to not always invalidate the whole bar on certain changes.
1457
1458 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1459
1460         * Control.cs:
1461         (BackColor): if the control does not support a transparent background,
1462         return the default backcolor when the parent backcolor is transparent.
1463
1464 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1465
1466         * Application.cs: Updated to new StartLoop/GetMessage API
1467         * RichTextBox.cs: Provide some output on RTF parsing errors
1468         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1469           new queue_id argument to GetMessage and PeekMessage to allow faster
1470           handling of per-thread queues in drivers.
1471         * Hwnd.cs: Added Queue tracking and property
1472         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1473         * XEventQueue.cs: Added thread trackingA
1474         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1475         * XplatUIX11.cs:
1476           - Implemented new per-thread queue
1477           - GetMessage: Fixed return/break behaviour on several cases. We were
1478             returning stale messages in some cases, instead of just processing
1479             the next message
1480
1481 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1482
1483         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1484
1485 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1486
1487         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1488           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1489
1490 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1491
1492         * PropertyGridView.cs: Fix drop down width.
1493
1494 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1495
1496         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1497           a mess in DrawToolBar, so I removed one of them.
1498
1499 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1500
1501         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1502           needed (clip). Otherwise we get artifacts.
1503
1504 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1505
1506         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1507           dimension is fixed
1508         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1509           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1510         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1511           if it matches the scale base font (avoids unneeded scaling)
1512
1513 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1514
1515         * X11DesktopColors.cs: One gtk_init_check should be enough
1516
1517 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1518
1519         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1520           match MS behaviour
1521
1522 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1523
1524         * TextBoxBase.cs: 
1525           - Generate OnTextChanged for Backspace even if we're only deleting
1526             the current selection
1527           - When setting the Text property, only select all text if the
1528             control does not have focus when it is being set. Otherwise
1529             just place the cursor at the beginning of the control
1530
1531 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1532
1533         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1534           Added a little helper to draw PropertyGrid ToolBar with a different
1535           border and a different BackColor.
1536         * PropertyGrid.cs: Some background parts didn't get painted with the
1537           correct background color. Added a class that helps us to draw the
1538           correct border for PropertyGridView and a class that helps us to
1539           draw ToolBars with a different backcolor
1540         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1541
1542 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1543
1544         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1545         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1546
1547 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1548
1549         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1550           into the palette entries. Also, since we're working on a copy
1551           we needed to copy the palette back onto the bitmap.
1552         * Cursor.cs: Same fix as XplatUIWin32.cs.
1553
1554 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1555
1556         * ImageListStreamer.cs: Need to read the var (or we're off)
1557
1558 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1559
1560         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1561           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1562           TextBoxBase.cs: Unused var fixes
1563         * AxHost.cs: Small 2.0 fix
1564         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1565           as it seems that is what at least Metacity expects. This will make
1566           icons show up on 64bit platforms. We still have some 64bit size
1567           issues, though, since the startup app window size still won't match.
1568
1569 2006-04-25  Mike Kestner  <mkestner@novell.com>
1570
1571         * *.cs: cleanup newly reported exception var unused warnings.
1572
1573 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1574
1575         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1576           ms
1577
1578 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1579
1580         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1581           image. The image position is always the same, no matter if the
1582           button is pressed or not.
1583
1584 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1585
1586         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1587           selection and set the correct filename for SaveFileDialog.
1588           Patch by Emery Conrad.
1589
1590 2006-04-24  Mike Kestner  <mkestner@novell.com>
1591
1592         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1593         check for item.X outside the ClientRect instead of item.Y. Fixes
1594         #78151.
1595
1596 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1597
1598         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1599         trust that value blindly and do some sanity check. Fixes bug #77814.
1600
1601 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1602
1603         * ImageListStreamer.cs: save the mask as a 1bpp image.
1604
1605 2006-04-21  Mike Kestner  <mkestner@novell.com>
1606
1607         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1608         pass Checked and Indeterminate to the Theme Engine. Improve
1609         encapsulation with ListBox.
1610         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1611         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1612         nested types.  Move all CheckState functionality to CheckedListBox.
1613         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1614         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1615         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1616         single base list. Fix scrollbar sizing and placement to mirror MS.
1617         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1618         used.
1619         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1620         for CheckedListBox by using new DrawItemState info.  Center the
1621         checkboxes on the items. Use new StringFormat property.
1622
1623 2006-04-18  Jackson Harper  <jackson@ximian.com>
1624
1625         * Form.cs: MdiChildren don't do default locations the same way as
1626         regular forms.  This prevents a crash when trying to position the
1627         mdi windows.
1628
1629 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1630
1631         * PropertyGridTextBox.cs: Formatting, copyright
1632         * PropertiesTab.cs: Formatting
1633         * PropertyGrid.cs: Formatting
1634         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1635           click toggling of values
1636           
1637 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1638
1639         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1640         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1641           every time a control is created
1642         * Application.cs: Removed obsolete EnableRTLMirroring method
1643
1644 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1645
1646         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1647         SelectedIndex to -1. Fixes bug #78121.
1648
1649 2006-04-17  Jackson Harper  <jackson@ximian.com>
1650
1651         * Binding.cs: Handle null values for Current and BindingContext.
1652         This occurs when binding is a little delayed.
1653         * CurrencyManager.cs: return null for Current when there are no
1654         items in the list.
1655         - Hookup to the listchanged event on the DataView and update
1656         bindings when the list is changed.  This fixes late binding of
1657         controls.
1658
1659 2006-04-17  Jackson Harper  <jackson@ximian.com>
1660
1661         * X11Dnd.cs:
1662         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1663         Ringenbach.
1664
1665 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1666
1667         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1668           place
1669         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1670           with the correct ButtonState
1671
1672 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1673
1674         * XplatUIX11.cs: Improved distinguishing between window types to
1675           tell the WM a type closer to what the app wants (Fixes #78107)
1676
1677 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1678
1679         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1680           GrabHandle
1681
1682 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1683
1684         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1685           drawing code to reflect the size grip changes
1686
1687 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1688
1689         * ImageListStreamer.cs: fix handling of the mask that follows the main
1690         bitmap when deserializing and serialize it properly. The generated mask
1691         should better be a 1bpp image, but I'll do that later.
1692
1693 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1694
1695         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1696           path doesn't fit into some of our Current.Places
1697
1698 2006-04-13  Jackson Harper  <jackson@ximian.com>
1699
1700         * ComboBox.cs: Use borders instead of drawing our own decorations,
1701         try to obey correct rules for heights.
1702         * Theme.cs:
1703         * ThemeNice.cs:
1704         * ThemeClearLooks.cs:
1705         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1706         this is now handled by borders.
1707         - Remove unused DrawListBoxDecorationSize method.
1708         
1709 2006-04-13  Mike Kestner  <mkestner@novell.com>
1710
1711         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1712         reported by Alex.
1713
1714 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1715
1716         * ThemeWin32Classic.cs: 
1717           - Fixed CPDrawStringDisabled
1718           - Corrected drawing of disabled menu items
1719           - Fixed drawing of disabled radio buttons (bug #78095)
1720           - Draw check in a disabled CheckBox with color ControlDark 
1721
1722 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1723
1724         * Form.cs: Use the provided width when calculating the menu size;
1725           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1726           and ClientSize.Width won't be updated yet
1727         * Application.cs: Use Visible instead of Show() to make form visible,
1728           this way we create the handle later and menusize is considered
1729
1730 2006-04-12  Mike Kestner  <mkestner@novell.com>
1731
1732         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1733         reporting.
1734
1735 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1736
1737         * TextBox.cs: Implemented context menu
1738
1739 2006-04-12  Mike Kestner  <mkestner@novell.com>
1740
1741         * ListView.cs: implement box selection. fixes #77838.
1742         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1743
1744 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1745
1746         * XplatUIX11.cs: Added setting of window type when transient window
1747           is created (metacity would move it otherwise)
1748         * X11Structs.cs: Added WINDOW_TYPE atoms
1749         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1750           background (the control is Opaque but still wants transparent
1751           backgrounds)
1752
1753 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1754
1755         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1756           that set Opaque but don't mean it (like all ButtonBase-derived
1757           controls) to still draw their background
1758         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1759           the background
1760
1761 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1762
1763         * Control.cs (PaintControlBackground): Set the graphics object
1764           on our PaintEvent to null to prevent it from being disposed
1765           when the PaintEvent gets disposed
1766
1767 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1768
1769         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1770         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1771
1772 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1773
1774         * Control.cs: 
1775           - Added transparency check to BackColor property. Transparent
1776             backgrounds are only allowed if the control styles permit it
1777           - Added recursive painting of parent control background and
1778             foreground if a control with a transparent backcolor is drawn
1779             (Thanks to Tim Ringenback for providing his 'hack' as a base
1780              for this patch) Fixes #77985 and #78026.
1781           - Added Opaque style check before calling OnPaintBackground, no
1782             need to draw the background if the control is opaque
1783           - Removed ControlAccessibleObject owner variable (inherited from
1784             base, no need to define again)
1785           - Added some documentation links explaining the drawing events
1786             and styles
1787
1788 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1789
1790         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1791           that the affected control is the located at the left border of our
1792           parent (Fixes #77936)
1793
1794 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1795
1796         * TextBoxBase.cs: When rendering disabled or readonly controls,
1797           draw the background with 'Control' instead of 'Window' color as
1798           long as the user hasn't specifically set a color
1799
1800 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1801
1802         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1803           since that won't be updated if the user types text (only if it's
1804           programatically set)
1805
1806 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1807
1808         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1809           layout changes do to app-triggered resizes will have the proper
1810           display rectangle for layout
1811
1812 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1813
1814         * ThemeWin32Classic.cs:
1815           - Make use of the SystemBrushes and SystemPens wherever possible
1816           - Corrected some highlight colors
1817           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1818             drawing
1819         * Theme.cs: Added Empty field to CPColor struct
1820
1821 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1822
1823         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1824           is displayed when calculating the display rectangle. Thanks to Mike
1825           for teaching me the err of my ways.
1826
1827 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1828
1829         * ScrollableControl.cs:
1830           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1831             (instead of 0,0) and we now return the real width/height instead of
1832             just the clientrectangle, adjusted for padding. The rectangle is
1833             now cached and created by the new CalculateDisplayRectangle method.
1834           - Created new CalculateDisplayRectange method, which basically does
1835             what get_DisplayRectangle() did originally, but now using the 
1836             right edge instead of DisplayRectangle to determine the size of
1837             our scrollbars
1838           - get_Canvas(): Fixed it to properly calculate canvas for 
1839             right/bottom controls which seem to be placed to the right/bottom
1840             of any controls that have a fixed location
1841           - Removed TODO that's taken care of
1842           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1843             and SetDisplayRectLocation according to new MSDN2 docs
1844           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1845             event when that is called, this is added for compatibility
1846           - ScrollControlIntoView(): Implemented.
1847           - Switched scrollbars to be implicit, they shouldn't be selectable
1848         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1849           call it when the active control is set/changed
1850         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1851         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1852           implicit_control variable (used for native Win32 message generation)
1853         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1854           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1855         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1856         * XplatUIStructs.cs: Added ScrollBarCommands enum
1857
1858 2006-04-10  Jackson Harper  <jackson@ximian.com>
1859
1860         * ButtonBase.cs:
1861         * CheckedListBox.cs:
1862         * ComboBox.cs:
1863         * DataGrid.cs:
1864         * DataGridView.cs:
1865         * Form.cs:
1866         * GroupBox.cs:
1867         * ListBox.cs:
1868         * PrintPreviewControl.cs:
1869         * ProgressBar.cs:
1870         * PropertyGrid.cs:
1871         * Splitter.cs:
1872         * StatusBar.cs:
1873         * TrackBar.cs:
1874         * UpDownBase.cs: Fixup base event overrides.
1875         
1876 2006-04-06  Mike Kestner  <mkestner@novell.com>
1877
1878         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1879         all user-initiated value changes to min <= value <= max-thumbsz+1.
1880         (set_Value): check for vert/horiz when calculating new thumb position.
1881         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1882         like MS does.
1883         (OnMouseMoveSB): refactor the thumb dragging code and refine
1884         invalidation logic to reduce flicker.
1885         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1886         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1887         (UpdateThumbPosition): small code readability cleanup
1888
1889 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1890
1891         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1892           different
1893
1894 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1895
1896         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1897
1898 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1899
1900         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1901         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1902           This dramatically reduces the number of Pen.Dispose calls. 
1903           Where possible call ResPool methods only once instead of calling it
1904           over and over again (for example for the same color).
1905
1906 2006-04-06  Mike Kestner  <mkestner@novell.com>
1907
1908         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1909         Also remove an unused private field on the collection. Fixes #77972.
1910
1911 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1912
1913         * ThemeNice.cs: Added ToolBar drawing code
1914
1915 2006-04-06  Mike Kestner  <mkestner@novell.com>
1916
1917         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1918         I'm assuming that means we need to look up the toplevel for the
1919         provided control. Fixes the crash trace in #77911 but exposes another
1920         crash in some strange reflection usage in NDocGui.
1921
1922 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1923
1924         * ThemeNice.cs: Gave it a little silver touch and added Images
1925           method
1926         * FontDialog.cs: FontDialog is not resizable
1927         * FileDialg.cs: Added SizeGripStyle.Show
1928
1929 2006-04-05  Jackson Harper  <jackson@ximian.com>
1930
1931         * KeyboardLayouts.cs: Remove warning.
1932
1933 2006-04-05  Jackson Harper  <jackson@ximian.com>
1934
1935         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1936         all of our controls instead of Paint +=.
1937         * ListBox.cs:
1938         * ListView.cs:
1939         * MenuAPI.cs:
1940         * MessageBox.cs:
1941         * NotifyIcon.cs:
1942         * ProgressBar.cs:
1943         * ScrollBar.cs:
1944         * Splitter.cs:
1945         * StatusBar.cs:
1946         * TabControl.cs:
1947         * TextBoxBase.cs:
1948         * ToolBar.cs:
1949         * TrackBar.cs:
1950         * UpDownBase.cs:
1951         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1952         use OnPaintInternal. Remove Width/Height and Visible checks in
1953         paint handler, this is done at a higher level now.
1954         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1955         * PaintEventArgs.cs: Add a handled flag so controls that don't
1956         want anymore painting after OnPaintInternal can make sure OnPaint
1957         isn't called.
1958
1959 2006-04-05  Mike Kestner  <mkestner@novell.com>
1960
1961         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1962         state of the form, so that we don't process events when Modal dialogs
1963         are up. Fixes #77922.
1964
1965 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1966
1967         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1968           checking is done.
1969
1970 2006-04-05  Mike Kestner  <mkestner@novell.com>
1971
1972         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1973
1974 2006-04-05  Mike Kestner  <mkestner@novell.com>
1975
1976         * ListView.cs (HeaderMouseMove): null guarding for the over column
1977         when setting up the drag_to_index.  Fixes #78015.
1978
1979 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1980
1981         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1982           in the taskbar. Transient windows seem to accomplish that.
1983
1984 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1985
1986         * Form.cs:
1987           - Re-enabled CreateParams.X/Y code for FormStartPosition
1988           - Added code for manual placement when creating the Control
1989           - Incomplete patch to treat MDI forms differently when
1990             setting the ClientSizeCore. (Still need to figure out handling
1991             x/y coords there)
1992         * XplatUIX11.cs:
1993           - When we're explicitly setting the X/Y position of a non-Child
1994             window, let the WM know. Metacity really wants this.
1995
1996 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1997
1998         * ThemeNice.cs: Added CPDrawButton
1999
2000 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2001
2002         * ThemeNice.cs: Changed the color for focused buttons and activated
2003           the arrows for small scroll buttons.
2004
2005 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2006
2007         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2008           anymore. Changed some method modifiers to protected (virtual)
2009         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2010           changes
2011         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2012           Updated drawing of menus, buttons and progressbars; added
2013           CPDrawBorder3D 
2014
2015 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2016
2017         * ImageListStreamer.cs: implemented serialization/deserialization
2018         of the images.
2019
2020 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2021
2022         * ThemeWin32Classic.cs:
2023           - Removed all the DrawFrameControl stuff; CPDrawButton,
2024             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2025             inside the methods
2026           - Updated and corrected the drawing code of CPDrawButton,
2027             CPDrawCheckBox and CPDrawRadioButton to better match ms
2028           - Updated theme checkbox and radiobutton code to use the CP*
2029             methods
2030
2031 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2032
2033         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2034           bug is fixed
2035
2036 2006-03-31  Jackson Harper  <jackson@ximian.com>
2037
2038         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2039         sometimes.
2040         * UpDownBase.cs: Don't CreateGraphics manually, use a
2041         Refresh. Ideally we would invalidate the correct areas here.
2042
2043 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2044
2045         * XplatUIX11.cs: 
2046           - We now track the mapping state of windows. If a window (or 
2047             one of it's parents) is not mapped we no longer permit
2048             WM_PAINT messages to be generated since we'd otherwise get 
2049             lots of BadMatch X errors. Jackson did all the work figuring
2050             out the problem.
2051           - Destroying the caret if the window it's contained in is 
2052             destroyed. Can't use regular DestroyCaret method since it
2053             might fall into a drawing function (trying to remove the
2054             caret) and with that generate new BadMatch errors. Again,
2055             Jackson tracked this down.
2056           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2057             make sure we send the messages to all windows. (The old code
2058             would send the WM_DESTROY to the window, and then all child
2059             windows would be 'gone' because the WM_DESTROY handle lookup
2060             would no longer find the destroyed window)
2061         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2062         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2063
2064 2006-03-31  Jackson Harper  <jackson@ximian.com>
2065
2066         * ScrollableControl.cs: Dont recalc if we are not visible.
2067
2068 2006-03-31  Mike Kestner  <mkestner@novell.com>
2069
2070         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2071         the visibility branch.
2072
2073 2006-03-31  Jackson Harper  <jackson@ximian.com>
2074
2075         * ScrollBar.cs: Cap values when incrementing/decrementing.
2076
2077 2006-03-31  Mike Kestner  <mkestner@novell.com>
2078
2079         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2080         * ToolTip.cs: guard against timer expirations with no active control.
2081         Not sure why it happened.
2082
2083 2006-03-31  Mike Kestner  <mkestner@novell.com>
2084
2085         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2086         text.
2087         * ToolTip.cs: Position the tooltip based on where the cursor is at
2088         popup time, not at MouseEnter time.  Add a Down state so that we don't
2089         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2090         positioning offset. Lookup DisplaySize at positioning time, since it
2091         can theoretically change during invocation.
2092         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2093         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2094
2095 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2096
2097         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2098           Fixes behaviour when the Text property of the box is String.Empty
2099
2100 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2101
2102         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2103           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2104           a window)
2105
2106 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2107
2108         * FileDialog.cs: Visual enhancement for the popup buttons in 
2109           PopupButtonPanel
2110
2111 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2112
2113         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2114           code
2115
2116 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2117
2118         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2119           highlighted menu items to match ms
2120
2121 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2122
2123         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2124
2125 2006-03-30  Mike Kestner  <mkestner@novell.com>
2126
2127         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2128         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2129         go active to account for HotLight to Selected transition.
2130         * MenuItem.cs: add internal Selected prop. Fill out the Status
2131         property by calculating it from item info. Add HotLight,
2132         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2133
2134 2006-03-30  Mike Kestner  <mkestner@novell.com>
2135
2136         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2137
2138 2006-03-29  Jackson Harper  <jackson@ximian.com>
2139
2140         * Form.cs: Implement TODO.
2141
2142 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2143
2144         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2145           missing proper dialog setup in the constructor
2146
2147 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2148
2149         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2150         * Control.cs:
2151           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2152           - Fixed ResetBindings and removed TODO
2153           - Added check for cross-thread calls to get_Handle()
2154           - Added Marshaller attribute for set_Font to satisfy class status
2155         * FontDialog.cs: Removed TODOs that seemed implemented
2156         * UpDownBase.cs: Removed unneeded TODO and Fixme
2157         * MessageBox.cs: Implemented support for Default button and removed TODO
2158         * FileDialog.cs: Removed obsolete TODO
2159         * DomainUpDown.cs: Removed obsolete TODO
2160         * ButtonBase.cs: Removed obsolete TODO
2161         * XplatUIWin32.cs: Removed obsolete TODO
2162         * Form.cs:
2163           - Removed obsolete TODO
2164           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2165             internal status updates
2166           - Making sure the active control is selected when the control is created
2167         * CurrencyManager.cs: Removed obsolete TODO
2168
2169 2006-03-29  Mike Kestner  <mkestner@novell.com>
2170
2171         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2172         of PrintPreviewDialog and RichTextBox.
2173
2174 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2175
2176         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2177           DarkDark, Light and LightLight colors for a specific color
2178         * ThemeWin32Classic.cs:
2179           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2180             Appearance = Button 
2181           - Make use of the new ResPool helper CPColor
2182           - Draw ProgressBar and StatusBar with correct 3D borders
2183
2184 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2185
2186         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2187
2188 2006-03-28  Mike Kestner  <mkestner@novell.com>
2189
2190         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2191         calculating col/row counts.
2192
2193 2006-03-28  Mike Kestner  <mkestner@novell.com>
2194
2195         * ColumnHeader.cs:
2196         * ListView.cs:
2197         * ListViewItem.cs:
2198         * Menu.cs: 
2199         switch to explicit interface method implementation for some methods
2200         corcompare identifies as inconsistent with MS.
2201
2202 2006-03-28  Mike Kestner  <mkestner@novell.com>
2203
2204         * MainMenu.cs: 
2205         * Menu.cs:
2206         add a few missing methods from the class status output.
2207
2208 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2209
2210         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2211           correct.
2212
2213 2006-03-28  Mike Kestner  <mkestner@novell.com>
2214
2215         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2216
2217 2006-03-27  Mike Kestner  <mkestner@novell.com>
2218
2219         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2220         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2221
2222 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2223
2224         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2225
2226 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2227
2228         * ThemeWin32Classic.cs:
2229           - GroupBox: Inserted a little gap between the text and the lines
2230             on the right side
2231           - Made the code in CPDrawBorder3D more readable
2232           - Corrected the drawing location of the up and down arrows in 
2233             CPDrawScrollButton
2234
2235 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2236
2237         * ControlPaint.cs: Corrected line widths in DrawBorder for
2238           ButtonBorderStyle Inset and Outset
2239
2240 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2241
2242         * ThemeWin32Classic.cs:
2243           - Rewrote the totally broken CPDrawBorder3D method. That was
2244             one of the main problems for the terrific ThemeWin32Classic
2245             look
2246           - Updated and corrected Button drawing
2247           - Correct the dimensions of the SizeGrip to match ms ones
2248           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2249         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2250           Border3DStyle.Sunken to match ms.
2251
2252 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2253
2254         * ThemeWin32Classic.cs: First small part of the "de-uglify
2255           ThemeWin32Classic" effort, SizeGrip
2256
2257 2006-03-24  Jackson Harper  <jackson@ximian.com>
2258
2259         * XplatUIX11.cs: Give a max idle time of one second, this matches
2260         MS and forces an Idle event every second when there are no other
2261         events in the queue.
2262
2263 2006-03-24  Mike Kestner  <mkestner@novell.com>
2264
2265         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2266         * ListView.Item.cs: fix layout issues with null image lists and images
2267         smaller than checkbox size.
2268         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2269         mode like MS does.  It's weird, but consistent.  ;-)
2270         Fixes #77890.
2271
2272 2006-03-24  Mike Kestner  <mkestner@novell.com>
2273
2274         * ListView.cs: Scroll wheel support for the item control.  Fixes
2275         #77839.
2276
2277 2006-03-23  Jackson Harper  <jackson@ximian.com>
2278
2279         * ScrollableControl.cs: Special case negative sized areas, not
2280         zero.
2281         * MonthCalendar.cs: Save the rect of the clicked date so we can
2282         use it for invalidation.
2283         - Try to cut down on the number of invalidates
2284         - Invalidate the rect the mouse is over and was over when moving
2285         the mouse, so we get the focus box following the cursor.
2286
2287 2006-03-23  Mike Kestner  <mkestner@novell.com>
2288
2289         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2290         focus rectangle drawing. Fixes #77835.
2291
2292 2006-03-23  Mike Kestner  <mkestner@novell.com>
2293
2294         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2295         the if and else if and reverting back to the original == check on the
2296         None conditional.
2297
2298 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2299
2300         * FontDialog.cs: Update the example panel if the selected index of
2301           the fontListBox changes.
2302
2303 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2304
2305         * FileDialog.cs: Make FileDialog remember which directory it was in
2306           last in the same execution.
2307
2308 2006-03-22  Mike Kestner  <mkestner@novell.com>
2309
2310         * FileDialog.cs: make the DropDownMenu on the toolbar display
2311         RadioChecks since they are mutually exclusive and that's what MS does.
2312
2313 2006-03-22  Mike Kestner  <mkestner@novell.com>
2314
2315         * Theme.cs: add Color param to CPDrawMenuGlyph.
2316         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2317         checks and radio marks and arrows are visible on highlighted items.
2318         * ControlPaint.cs: update to use new Theme signature.
2319
2320 2006-03-22  Mike Kestner  <mkestner@novell.com>
2321
2322         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2323         is active. Fixes #77870.
2324
2325 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2326
2327         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2328           to be focused/selected after startup
2329
2330 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2331
2332         * ColorDialog.cs: 
2333           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2334             CustomColors and ShowHelp properties
2335           - Some internal rewrites to get better results when using the
2336             ColorMatrix
2337
2338 2006-03-22  Mike Kestner  <mkestner@novell.com>
2339
2340         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2341         HoverSelection.  Fixes #77836.
2342
2343 2006-03-22  Mike Kestner  <mkestner@novell.com>
2344
2345         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2346         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2347         1, not 0.  Update ButtonSize based on a pixel count of the win32
2348         control.  Adjust the toolbar size/location for new button size.
2349
2350 2006-03-22  Jackson Harper  <jackson@ximian.com>
2351
2352         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2353         true.
2354         * ScrollBar.cs: When doing increments and decrements we need to
2355         set the Value property so that ValueChanged gets raised. A
2356         possible optimization here would be to make an internal SetValue
2357         that doesn't invalidate immediately.
2358         * ToolTip.cs: Tooltips get added to their container (when
2359         supplied) so they get disposed when the container is disposed.
2360         - Don't create tooltips for String.Empty. This prevents all these
2361         little 2-3 pixel windows from showing up when running nunit-gui
2362         and driving me mad.
2363         * Form.cs: Don't set topmost when setting the owner if the handles
2364         haven't been created yet.  The topmost set will happen when the
2365         handles are created.
2366
2367 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2368
2369         * XplatUIX11.cs:
2370           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2371           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2372             visible (to allow them to recalculate their sizes)
2373
2374 2006-03-21  Mike Kestner  <mkestner@novell.com>
2375
2376         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2377         methods. Removed a ton of redundant code.  Still not really happy with
2378         the border rendering, but I think that's mainly because of the
2379         ControlDarkDark being black instead of a dark grey. Depending on how 
2380         close we want to be, we might want to revisit those color choices.
2381         Among the new features added during the refactor were DropDownArrow
2382         pressed rendering, Disabled image rendering.  Proper flat appearance
2383         boundary rendering.  Removed the Divider and Wrapping dividers since I
2384         can't figure out any combination of themes and conditions to make the
2385         MS control draw a horizontal line on a toolbar despite what the
2386         Divider property docs indicate.
2387         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2388         conditions and incorrect layout.  Updated to coding standard.
2389         * ToolBarButton.cs: refactored layout and positioning code from
2390         ToolBar to here.  Invalidate wherever possible instead of forcing
2391         redraws of the whole toolbar. 
2392         (Known remaining issues: explicit ButtonSize smaller than provided
2393         images.)
2394
2395 2006-03-21  Mike Kestner  <mkestner@novell.com>
2396
2397         * ContextMenu.cs (Show): use the position parameter instead of just
2398         showing at the MousePosition.
2399
2400 2006-03-21  Jackson Harper  <jackson@ximian.com>
2401
2402         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2403         control handle this.
2404         * TreeNodeCollection.cs: If we are clearing the root node we need
2405         to reset top_node so calcs can still happen.
2406         * ThemeWin32Classic.cs: This is a Flags so we need to check
2407         properly.
2408         
2409 2006-03-21  Jackson Harper  <jackson@ximian.com>
2410
2411         * DataGrid.cs: Create columns when the binding context has been
2412         changed.
2413         * X11Structs.cs: Keysyms are uints.
2414         - Add size to fix build.
2415
2416 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2417
2418         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2419           XplatUIOSX.cs: 
2420           - Added ResetMouseHover method to allow controls to retrigger
2421             hovering if they need it more than once
2422           - Implemented MouseHoverTime and MouseHoverSize properties
2423         * Timer.cs: Start() must reset the interval
2424         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2425           properties
2426
2427 2006-03-21  Jackson Harper  <jackson@ximian.com>
2428
2429         * X11Keyboard.cs: improved layout detection. Move the nonchar
2430         tables into this file.
2431         * KeyboardLayouts.cs: Move the tables into resource files.
2432
2433 2006-03-21  Mike Kestner  <mkestner@novell.com>
2434
2435         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2436
2437 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2438
2439         * Mime.cs: Various speed optimizations. Looking up mime types
2440           is now 2 times faster than before
2441
2442 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2443
2444         * CreateParams.cs: Added internal menu field
2445         * Control.cs: 
2446           - Switched call order for UpdateBounds; now we always call
2447             the one that also takes ClientSize, and we're calculating the 
2448             client size via driver method in the others. The previous
2449             method of tracking client size by difference wasn't working
2450             for forms where even the starting client size wouldn't match
2451             the overall form size (due to borders) (Part of fix for #77729)
2452           - CreateParams(): Do not use parent.Handle unless the handle is
2453             already created. Causes havoc with Nexxia and throws off our
2454             creation of controls
2455         * XplatUIX11.cs:
2456           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2457           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2458             method (consolidates code)
2459           - Changed RequestNCRecalc to use new PerformNCCalc method
2460           - Added calls to RequestNCRecalc when menus and borders are changed
2461             to allow app to set NC size. (Part of fix for #77729) This matches
2462             when MS send a WM_NCRECALC on Win32 windows.
2463           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2464             (Part of fix for #77729). This matches what MS does, they also
2465             send that message when the form is made visible.
2466           - XException.GetMessage: Improved usability of X errors by including
2467             a translation of the window into Hwnd and Control class
2468           - Improved debug info for window creation, reparenting and destruction
2469           - Created helper method WindowIsMapped() [Currently not used]
2470         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2471         * Form.cs:
2472           - CreateParams: Now setting our menu on the new internal menu field
2473           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2474             avoid calculating the same property twice
2475         * Hwnd.cs:
2476           - Improved usability of ToString() for debugging purposes
2477           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2478             determine the height of the menu, instead of just the font. This
2479             required to also create a graphics context and to keep a bmp 
2480             around (for performance reasons)
2481
2482 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2483
2484         * MenuAPI.cs: Added OnMouseUp method
2485         * Form.cs:
2486           - Now remembering the requested client size, avoids size errors
2487           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2488             instead of base if the menu is active. This is required due to
2489             control now capturing and releasing on down/up and it would
2490             prematurely release our menu capture
2491
2492 2006-03-17  Jackson Harper  <jackson@ximian.com>
2493
2494         * KeyboardLayouts.cs: Add the czech layouts.
2495
2496 2006-03-16  Jackson Harper  <jackson@ximian.com>
2497
2498         * Control.cs: Use the viewport space when sizing not the controls
2499         client size, so things like ScrollableControl that effect the
2500         viewport size (when scrollbars are added) are computed correctly.
2501         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2502         of ManagerEntrys.
2503         - Handle creating BindingManagers for null data sources.
2504         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2505         source, otherwise when rows are added they are added to the 'fake'
2506         datasource and we will crash when trying to set the position in
2507         those rows.
2508         - Use Implicit scrollbars on the datagrid so they arent
2509         selectable.
2510         
2511 2006-03-16  Jackson Harper  <jackson@ximian.com>
2512
2513         * Binding.cs:
2514         * InternalWindowManager.cs:
2515         * MdiWindowManager.cs:
2516         * X11Keyboard.cs: I really want Mike to love me again (fix
2517         compiler warnings).
2518
2519 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2520
2521         * DataGrid.cs:
2522           - OnMouseDown: Switch to editing mode when clicking on the cell
2523                          even if we're clicking on the cell that's currently 
2524                          selected
2525           - ProcessGridKey: Left/Right now wrap like MS.Net does
2526           - ProcessGridKey: Tab now knows to add a new row when tab is
2527                             pressed in the cell of the last column of the 
2528                             last row
2529           - ProcessGridKey: Enter now adds another row  if pressed in the last
2530                             row and selectes the new row, same column cell
2531           - ProcessGridKey: Home/End navigate columns, not rows, like 
2532                             originally implemented
2533           - Broke ProcessKeyPreview code out into an extra Internal method
2534             so it can be called from the edit code
2535         * DataGridTextBox.cs (ProcessKeyMessage):
2536           - Switched to accept Tab keypresses
2537           - Added F2 handling to allow jumping to the end of the edited cell
2538           - Added logic to allow moving caret left/right inside edited cell
2539             and making the edited cell jump when the caret hits cell borders
2540           - Tab and Enter are now passed to the datagrid after being handled
2541         * TextBoxBase.cs:
2542           - Removed capture code now that Control handles it
2543           - set_SelectionStart now ensures caret is visible
2544
2545 2006-03-16  Jackson Harper  <jackson@ximian.com>
2546
2547         * TrackBar.cs: Debackwards the increment/decrement for handling
2548         mouse clicks on the bar with vertical trackbars.
2549         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2550         bottom to match MS.
2551
2552 2006-03-16  Mike Kestner  <mkestner@novell.com>
2553
2554         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2555         consistent with the MS control. Fix a bug in
2556         SelectedListViewItemCollection.Clear that was pissing me off for the
2557         better part of a day because the collection was being altered
2558         underneath us as we walked the list.
2559
2560 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2561
2562         * Control.cs: Not sure how we could miss this so long, but it seems
2563           that MS.Net has Capture set all the way from before calling 
2564           OnMouseDown through sending the mouse events until after
2565           OnMouseUp. This will fix DataGrid's selection being set to end
2566           at the location of the MouseUp.
2567
2568 2006-03-15  Jackson Harper  <jackson@ximian.com>
2569
2570         * BindingContext.cs: Check the binding after its added so that it
2571           can initialize the binding managers and hookup to events.
2572         * Binding.cs: Data members seem to sometimes include rows/cols in
2573           the format Row.Column we now take this into account.
2574           - Hookup to the position changed event so we can update the
2575           control when the position has changed in the data set.
2576         * CurrencyManager.cs: Take into account the row/col naming
2577           convention when creating dataset tables.
2578         * BindingContext.cs: Using a newer better way of storing
2579           datasource/datamember pairs.  Hopefully this better matches MS for
2580           looking up binding managers.
2581
2582
2583 2006-03-15  Jackson Harper  <jackson@ximian.com>
2584
2585         * BindingContext.cs: The currency manager needs the data member
2586         name, if the member is a data set we use the name to find the
2587         correct table.
2588         * CurrencyManager.cs: When creating the list prefer an IList over
2589         an IListSource.
2590         - Attempt to create a DataTable from a DataSet (TODO: might need
2591         some better error checking here, although MS doesn't seem to have much)
2592         - If we have a DataTable create a view and use it as our list.
2593
2594 2006-03-15  Mike Kestner  <mkestner@novell.com>
2595
2596         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2597         keyboard navigation. Support Up/Down/Left/Right selection correctly
2598         for all 4 View modes.
2599         * ListViewItem.cs: add internal row/col fields for icon layouts.
2600
2601 2006-03-15  Jackson Harper  <jackson@ximian.com>
2602
2603         * TabControl.cs: Redraw the tabs when we resize so their newly
2604         calculated sizes are drawn on screen.
2605         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2606         composite characters.
2607         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2608         - filter events so that composite characters can be created
2609         patches by peter
2610         * X11Structs.cs: Add XIMProperties enum.
2611
2612 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2613
2614         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2615           unless it's created
2616
2617 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2618
2619         * Control.cs (PerformLayout): We don't need to consider visiblity
2620           for anchoring, only for docking. This fixes 'whacky' alignment
2621           in listbox and other controls that use implicit scrollbars after
2622           the previous PerformLayout patch
2623         * ListBox.cs: Switched to use implicit scrollbars
2624           
2625 2006-03-14  Mike Kestner  <mkestner@novell.com>
2626
2627         * ToolBar.cs: 
2628         * VScrollBar.cs:
2629         - chain up the "new event" overrides to base and use
2630         OnEvent to raise them.  Part of fix for bug #76509.
2631
2632 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2633
2634         * FileDialog.cs: Do not select an item in the parent directory
2635           on backspace
2636
2637 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2638
2639         * Control.cs (PerformLayout): It would seem that we considered
2640           invisible windows for our layout. Not quite the right thing
2641           to do. Now we don't any longer, thereby fixing bug #76889.
2642
2643 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2644
2645         * Control.cs (CanFocus): I goofed. A control can have focus 
2646           even though it's not selectable. Made it match MS docs.
2647
2648 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2649
2650         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2651           center by default (fixes #76895)
2652         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2653           all uses of Border3DSides.All with the explicit ORd together
2654           Left|Right|Top|Bottom because I assume that nobody was aware 
2655           that All also implies a center fill. Most places I checked had
2656           a fill right above.
2657         * ProgressBarStyle.cs: Added
2658
2659 2006-03-13  Mike Kestner  <mkestner@novell.com>
2660
2661         * ListView.cs: fix breakage in drag shadow header positioning 
2662         from Peter's csc compilation fix.
2663
2664 2006-03-13  Mike Kestner  <mkestner@novell.com>
2665
2666         * ListView.cs: fix NRE produced by backspacing twice in a focused
2667         FileDialog.
2668
2669 2006-03-13  Mike Kestner  <mkestner@novell.com>
2670
2671         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2672
2673 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2674
2675         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2676           be changed
2677         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2678           the allowed size before making programmatic size changes
2679
2680 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2681
2682         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2683           set, metacity is broken and will still use the emty sizes in 
2684           the struct. (Fix for #77089)
2685
2686 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2687
2688         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2689           WindowExStyles and marked both enums as Flags
2690         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2691           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2692           to match WindowStyles split
2693         * XplatUIX11.cs:
2694           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2695           - Updated to match WindowStyles split
2696         * XplatUIWin32.cs:
2697           - Fixed FosterParent creation, was using ExStyle on the Style field
2698             (This should help with Popup focus issues)
2699           - Updated to match WindowStyles split
2700
2701 2006-03-13  Jackson Harper  <jackson@ximian.com>
2702
2703         * MdiWindowManager.cs: Use the system menu height. Fixes some
2704         strange sizing issues.
2705
2706 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2707
2708         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2709         * TextBoxBase.cs:
2710           - Scroll to caret after inserting text (#77672)
2711           - Make scroll range one pixel higher, fixes off-by-one error (and
2712             makes underlines visible on the last line)
2713
2714 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2715
2716         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2717           the keyboard state from being stuck with keys in 'pressed' state when
2718           focus is switched away via keyboard
2719         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2720           reset the keyboard if no X11 KeyUp events are expected to come
2721         * X11Structs.cs: Switched type of Visible to bool to match driver
2722
2723 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2724
2725         * TextControl.cs:
2726           - Switched caret to be just 1 pixel wide, matches MS and looks less
2727             clunky
2728           - Moved caret display 1 pixel down from the top of the control
2729             to improve view
2730           - InsertCharAtCharet: Update the selection start if moving the caret
2731             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2732           - No longer always creating the caret when the caret methods are
2733             called. Only the actual ShowCaret/HideCaret will do that now
2734           - Only setting caret visible if the owner control has focus
2735           - UpdateView: Added invalidation-shortcut logic for center and right 
2736             aligned text. Previously we'd update all according to the left
2737             logic which caused drawing errors. Also fixed height of invalidated
2738             areas, now properly invalidating the whole area (was off-by-one)
2739           - owner_HandleCreated: Always generate the document when the
2740             handle is created; this ensures that 
2741         * TextBoxBase.cs:
2742           - Fixed situation where caret would disappear under the right
2743             window border, also improved scrolling behaviour on left-
2744             aligned textboxes
2745           - Fixed right-aligned textboxes to have a border to the
2746             right instead of the caret being under the right border
2747         * XplatUIX11.cs:
2748           - Switched from 'nested' to simple visible/not visible tracking 
2749             for caret (part of fix for #77671)
2750           - No longer passing through translated FocusIn/FocusOut messages
2751             since we were notifying too often and the wrong windows. Instead
2752             we just notify our focussed window of receiving or loosing focus
2753         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2754           counting for caret to simple visible yes/no behaviour (part of 
2755           fix for #77671)
2756
2757 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2758
2759         * Mime.cs: Remove debug code...
2760
2761 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2762
2763         * MimeGenerated.cs: Removed
2764         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2765           and subclasses) from /usr/(local/)share/mime and
2766           $HOME/.local/share/mime.
2767
2768 2006-03-10  Jackson Harper  <jackson@ximian.com>
2769
2770         * MdiWindowManager.cs: Recalc the NC area when a window is
2771         maximized/restored so that the menu area is drawn on forms that
2772         don't have a menu.
2773
2774 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2775
2776         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2777           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2778           us to force a WM_NCCALCRESIZE message being sent. This is needed
2779           for MDI maximizing.
2780
2781 2006-03-10  Jackson Harper  <jackson@ximian.com>
2782
2783         * Form.cs: We need to use the ActiveMenu when calculating menu
2784         height.
2785         - Fix nullref when the window manager hasn't been created yet.
2786         * Control.cs: Fix nullref when we try to bring a control to the
2787         front that has no parent.
2788         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2789         height.
2790         - Add a dummy item to the maximized menu so it always has the
2791         correct height. Otherwise when there are no menus we don't get our
2792         icon and buttons.
2793         
2794
2795 2006-03-10  Jackson Harper  <jackson@ximian.com>
2796
2797         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2798         stuff.
2799         * Form.cs: Make the window_state internal so the window managers
2800         can track it.
2801         - When an MDI child is maximized let its window manager create the
2802         main menu (so it can add its icon).
2803         - Notify the window managers of state changes
2804         - Let the window manager paint its buttons and handle button
2805         clicks on the menu when it is maximized.
2806         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2807         window manager, since tool windows don't use it, only mdi windows.
2808         - Tell the main form that we don't want it to handle NCPAINT
2809         itself to avoid extra painting.
2810         - Handle clicks on a maximized windows menu.
2811         - Handle window state changes
2812         - Handle minimize/maximize clicks correctly by setting the window state.
2813         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2814         when clicking on the forms icon).
2815         - New method to create a forms maximized menu. This is its normal
2816         menu + an icon.
2817         - Handle window state changes.
2818         - Handle sizing of maximized windows.  Maximized windows are just
2819         drawn bigger then the parent visible area. All controls are still
2820         there, they are just outside the visible area (this matches windows).
2821         * MdiClient.cs: No scrollbars when a child window is maximized.
2822         - Let the children windows figure out how big they should be when
2823         sizing maximized windows.
2824         - Implement a version of ArrangeIconicWindows somewhat similar to
2825         Windows version.  There are some little differences, but I don't
2826         think any app will rely on the layout of minimized mdi windows.
2827
2828 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2829
2830         * Padding.cs: Several fixes to allow compiling with csc 2.0
2831
2832 2006-03-09  Jackson Harper  <jackson@ximian.com>
2833
2834         * Menu.cs:
2835         * MenuItem.cs: Cheap hack so we can add items to the list without
2836         the events being raised.  This allows adding mdi items during
2837         drawing. TODO: Should probably find a better time to add the items.
2838
2839 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2840
2841         * ThemeWin32Classic.cs:
2842           - CheckBox_DrawText: Added logic to not wrap if not enough space
2843             is available (Fix for bug #77727)
2844           - RadioButton_DrawText: Added logic not to wrap if not enough
2845             space is available (Fix for bug #77727). Also removed some
2846             duplicate code, DrawString always drawing the regular text
2847             before hitting the if statement.
2848
2849 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2850
2851         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2852
2853 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2854
2855         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2856         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2857           methods. Moved the new 2.0 properties into alphabetical order with
2858           other properties and added MonoTODO tags
2859
2860 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2861
2862         * AutoScaleMode.cs: Added. Fix build.
2863
2864 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2865
2866         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2867           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2868           and was requiring premature handle creation for calls from above
2869         * Form.cs, Control.cs: Removed handle arguments from calls to
2870           CalculateClientRect()
2871
2872 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2873
2874         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2875           drag_column.column_rect is MarshalByRef and can't be used that way
2876
2877 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2878
2879         * AxHost.cs: Added deserialization constructor for 
2880           AxHost+State (fixes 77743)
2881
2882 2006-03-09  Mike Kestner  <mkestner@novell.com>
2883
2884         * ListView.cs: 
2885         - Added column drag reordering for details view.
2886         - fixed behavior when mouse is dragged off column and
2887         AllowColumnReorder is false.
2888         * ColumnHeader.cs: clone the format too in Clone.
2889         * Theme.cs: add DrawListViewHeaderDragDetails method.
2890         * ThemeWin32Classic.cs:
2891         - impl new method for drawing drag column shadows and targets.
2892         - support column offset for details mode in DrawListViewItem.
2893
2894 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2895
2896         * TextControl.cs: Reset the char_count when the document is cleared
2897           (Fixes bug reported on mono-winforms mailing list)
2898
2899 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2900
2901         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2902           of calling base we simply process the key ourselves, since both
2903           DefWindowProc and the handled method would set m.Result. 
2904           (Fixes #77732)
2905
2906 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2907
2908         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2909           method also moves the window; instead implemented a copy of
2910           Control.ScaleCore (Part of fix for #77456)
2911         * TextBoxBase.cs: 
2912           - Created new CreateGraphicsInternal method to allow providing
2913             a graphics context when no handle is created without triggering
2914             handle creation. (Part of fix for #77456)
2915           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2916         * TextControl.cs: 
2917           - Switched Constructor to require TextBoxBase instead of Control (to
2918             allow uncast access to CreateGraphicsInternal)
2919           - Safeguarded use of owner.Handle property. No longer accessing it
2920             unless the handle is already created.
2921           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2922           - Now triggering a recalc when owning control becomes visible
2923         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2924           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2925           premature handle creation (Part of fix for #77456)
2926         * Control.cs:
2927           - We now only destroy our double-buffering buffers when the
2928             control is resized or disposed, but not when visibility
2929             changes. (The code even re-created them twice every time)
2930           - Now requiring a redraw of the buffer on visibility changes
2931             (fixes bug 77654 part 2)
2932           - Not passing OnParentVisibleChanged up unless the control
2933             is visible
2934           - CanFocus: Fixed to match MS documentation
2935           - Focus: Fixed to return actual focus state and to check if
2936             setting focus is legal before setting it
2937
2938 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2939
2940         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2941           when to draw focus rectangle by looking at parent focus and
2942           selected state instead. This fixes TabPages on Linux sometimes
2943           having none or multiple focus rectangles.
2944         * XplatUIX11.cs (SetFocus): 
2945           - Don't set the focus if the same window already has focus
2946           - Use SendMessage instead of PostMessage (like it's Win32
2947             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2948             to match MS behaviour
2949         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2950           are not selectable.
2951
2952 2006-03-07  Jackson Harper  <jackson@ximian.com>
2953
2954         * PictureBox.cs: Revert line I accidently committed last week.
2955
2956 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2957
2958         * Control.cs: 
2959           - Added new IsRecreating and ParentIsRecreating properties to
2960             allow testing if RecreateHandle has been called on ourselves
2961             or one of our parents
2962           - WndProc(WM_DESTROY): If our control handle is being recreated
2963             we immediately need to create the handle when receiving the
2964             destroy, that way our child windows find a valid parent handle
2965             when they themselves are being recreated upon WM_DESTROY receipt
2966             (fix for bug #77654 part 1)
2967         * XplatUIX11.cs:
2968           - DestroyWindow: WM_DESTROY must be sent to our own window before
2969             notifying any child windows. MS documents that child windows
2970             are still valid when WM_DESTROY is received. (Control now relies on
2971             this behaviour)
2972           - Added some fine-grain debug options
2973
2974 2006-03-06  Jackson Harper  <jackson@ximian.com>
2975
2976         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2977         box and base calculations off this.
2978         * MdiChildContext.cs:
2979         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2980         anymore.
2981         
2982 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2983
2984         * Splitter.cs: In situations where the affected control is added
2985           to the parent's control list after the splitter, we would not
2986           populate affected. Now we try populating it on mousedown, if
2987           it's not already set, and force it to be re-set whenever our
2988           parent changes.
2989
2990 2006-03-03  Matt Hargett  <matt@use.net>
2991
2992         * Control.cs: implement Control.Padding
2993         * Padding.cs: -Padding.All returns -1 when constructing with the
2994         implicit default ctor
2995         -Padding.ToString() matches MS.NET
2996         * ContainerControl.cs: implement
2997         ContainerControl.AutoScaleDimensions
2998         * ListControl.cs: implement ListControl.FormattingEnabled
2999         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3000         * ButtonBase.cs:
3001         * TabPage.cs: Implement UseVisualStyleBackColor.
3002         * PictureBox.cs: Implement PictureBox.InitialImage.
3003
3004 2006-03-03  Mike Kestner  <mkestner@novell.com>
3005
3006         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3007         event declarations to proxy to base event.
3008         * ListViewItem.cs: update to use ItemControl.
3009         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3010         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3011         column header label rendering for 0 width columns.
3012
3013 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3014
3015         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3016           that causes the control to be created. Fixes #77476.
3017
3018 2006-03-02  Jackson Harper  <jackson@ximian.com>
3019
3020         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3021         expose_pending.
3022
3023 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3024
3025         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3026           passed in for the EventArgs (fixes #77690)
3027
3028 2006-03-01  Jackson Harper  <jackson@ximian.com>
3029
3030         * ScrollBar.cs: Refresh afterbeing resized.
3031
3032 2006-02-28  Mike Kestner  <mkestner@novell.com>
3033
3034         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3035         Clean up a tracker compile warning.
3036         * MenuItem.cs: add internal PerformPopup method.
3037         [Fixes #77457]
3038
3039 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3040
3041         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3042           implicit expose) when the text is set to null
3043
3044 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3045
3046         * RichTextBox.cs (FlushText): When newline is true, we always
3047           need to split the line, even if no text is on it and we may
3048           never eat newlines. (Fixes #77669)
3049
3050 2006-02-28  Mike Kestner  <mkestner@novell.com>
3051
3052         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3053         and set Selected instead.
3054         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3055         collections.
3056
3057 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3058
3059         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3060
3061 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3062
3063         * FontDialog.cs:
3064           - Got rid of the panel. All controls are now directly added to
3065             the dialog form
3066           - It is now possible to set a font with the Font property
3067           - MinSize and MaxSize property do now what they should
3068           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3069           - Searching and selecting a font with the font textbox works now,
3070             the same applies to the style and size textbox
3071           - Draw the correct 3D border in the example panel
3072           - Fixed a little mem leak (unused fonts didn't get disposed)
3073           - Many other internal updates/rewrites...
3074           - Fix typo
3075
3076 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3077
3078         * TextControl.cs: 
3079           - InsertRTFFromStream: Added 'number of characters inserted' argument
3080           - set_SelectedRTF: Now using the number of characters to calculate
3081             the new location for the selection and cursor (x/y cannot be used
3082             due to potentially already wrapped text)
3083
3084 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3085
3086         * TextControl.cs: Added property and implemented means to allow 
3087           disabling recalculation of a document (can be used to speed up
3088           multiple inserts and is needed to make RTF inserts predictable, see
3089           bug #77659)
3090         * RichTextBox.cs: Using the new NoRecalc property of Document to
3091           keep x/y insert locations predictable. Also makes it faster inserting
3092           large chunks of RTF
3093
3094 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3095
3096         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3097           it's easier for a child control to handle the other messages without
3098           having to duplicate the special functionality
3099         * TextBoxBase.cs
3100           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3101             code to handle processing the key ourselves, in order to get 
3102             access to the result of KeyEventArgs.Handled. We now only call 
3103             ProcessKey if they key hasn't been handled already. Fixes #77526.
3104           - set_Text: If null or empty string is given, just clear the 
3105             document. Fixes part of #77526
3106
3107 2006-02-27  Jackson Harper  <jackson@ximian.com>
3108
3109         * SizeGrip.cs: Paint the background color before painting the grip
3110         so things look right.
3111         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3112
3113 2006-02-27  Mike Kestner  <mkestner@novell.com>
3114
3115         * ListView.cs:
3116           - Restructure layout and invalidation model to remove a ton of
3117           flicker from the control and speed up performance in general.
3118           - Add manual column resize, flickers like crazy, but I already have
3119           some ideas on how I'll fix that. (#76822)
3120           - Merge the three Icon-based views into a single layout method.
3121           - Move item selection interaction logic from the item since 
3122           interaction with the collections is more appropriate to the view.
3123           - Deselection on non-item clicks.
3124         * ListViewItem.cs:
3125           - Encapsulate most of the layout. Add some internal props to trigger
3126           layout.  Move to a model where Items invalidate themselves instead
3127           of just invalidating the whole control every time something changes.
3128           - Invalidate on Text/Caption changes.
3129           - switch to an offset based layout model to avoid having to absolute
3130           position every element on item moves.
3131           - correct checkbox layout to conform to MS layout.
3132         * ThemeWin32Classic.cs:
3133           - refactor some column header drawing code.
3134           - fix string justification for column headers (#76821)
3135           - make SmallIcon labels top justified for compat with MS impl.
3136         * ThemeClearlooks.cs:
3137           - adjust to new ListViewItem internal checkbox bounds api.
3138
3139 2006-02-27  Jackson Harper  <jackson@ximian.com>
3140
3141         * Control.cs:  Change where implicit controls fall in the zorder.
3142         They are now on top of all children.
3143         - Synced AddImplicit code with Add
3144         - Removed unused enumerator.
3145         * SizeGrip.cs: Remove the TODO as its been TODONE.
3146
3147 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3148
3149         * TextControl.cs(Insert): Combine the last lines unless the insertion
3150           string ends with \n\n, otherwise we leave one line too many (Fixes
3151           something I noticed with the testapp for #77526; the bug itself was
3152           already fixed in the previous checkin)
3153
3154 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3155
3156         * RichTextBox.cs:
3157           - SelectionColor and SelectionFont methods no longer set absolute
3158             styles. Instead, the keep font or color respectively (This 
3159             resolves a long-standing FIXME in the code)
3160           - When flushing RTF text, the insert code now considers text trailing
3161             behind the insertion point (Fixes the bug where when replacing
3162             the selected text via SelectedRTF the remainder of the line behind 
3163             the selection would stay on the first insertion line)
3164         * TextBoxBase.cs:
3165           - AppendText now updates the selection points after inserting text
3166           - AppendText now ensures that the last tag (sometimes 0-length) of
3167             the document is used for the style information (Fixes part of 
3168             bug #77220)
3169         * TextControl.cs:
3170           - Created new FontDefiniton class to allow describing partial style
3171             changes
3172           - StreamLine() now takes a lines argument, to allow it to decide
3173             whether an encountered zero-length tag is the last in the document
3174             (which must be kept to not loose the font/color contained in it,
3175             for later appends)
3176           - Created Combine() and Split() methods for Marker structs, to 
3177             support marker updates due to reformatted documents (soft line
3178             wraps)
3179           - Implemented Document.CaretTag setter
3180           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3181             of the last line (Not the cause, but also exposed by bug #77220)
3182           - Added LineTag argument to InsertString method, to allow callers
3183             to force a certain tag to be used (required to force use of the
3184             trailing zero-length tag of a document)
3185           - Now updating markers in Combine(), to avoid stale tag markers
3186           - Added some method descriptions to aid maintenance
3187           - Implemented new FormatText concept, allowing additive/subtractive
3188             formatting by only specifying the components that are to be 
3189             changed. This was needed for resolving the RTB.SelectedColor/
3190             RTB.SelectedFont fixmes
3191           - Added Break() support method to allow breaking up linetags (used
3192             for partial formatting)
3193           - Added GenerateTextFormat() method. It is used for partial 
3194             formatting and allows to generate a full font/color from given
3195             attributes and an existing tag.
3196
3197 2006-02-26  Jackson Harper  <jackson@ximian.com>
3198
3199         * XplatUIX11.cs:  Use the correct caption height.
3200         - Translate hittest coordinates to screen coords to match MS.
3201         * XplatUIWin32.cs: When we create MDI windows we need to reset
3202         some of the style flags, so we get a nice blank window, and can
3203         draw all the decorations ourselves.
3204         - Set a clipping rectangle on the non client paint event, the
3205         window manager drawing code needs one.
3206         * Form.cs: The window manager needs to know when the window state
3207         has been updated.
3208         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3209         don't need to factor in border and title sizes in these
3210         methods. TODO: Remove the args and fix the call points.
3211         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3212         properly.
3213         - Let the driver set the cursors.
3214         - Improve active window handling
3215         - Correct sizes for title bars and buttons.
3216         - Match MS drawing better
3217         * MdiWindowManager.cs: We don't need to handle border style
3218         updates specially anymore.
3219         - Check for scrollbars when windows are done moving
3220         - Handle Active properly.
3221         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3222         correctly. I am spewing the exception though, so we don't hide the
3223         bugs.
3224         
3225 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3226
3227         * DataGridViewRowPostPaintEventArgs.cs,
3228           DataGridViewCellPaintingEventArgs.cs,
3229           DataGridViewRowCollection.cs,
3230           DataGridViewRowPrePaintEventArgs.cs,
3231           DataGridViewCell.cs: Clear a few warnings and implement a few
3232           exceptions that should be thrown.
3233
3234 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3235
3236         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3237           'inheriting' our parent's (non-default) cursor. (Part of
3238            the fix for #77479)
3239
3240 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3241
3242         * XplatUIX11.cs: Fixed cast to make csc happy
3243
3244 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3245
3246         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3247           it's for the client area (part of fix for #77479 and needed
3248           for MDI window cursor handling)
3249         * XplatUIX11.cs
3250           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3251             the appropriate default cursors and also passing the message
3252             up the parent chain 
3253           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3254             for non-client areas
3255
3256 2006-02-15  Jackson Harper  <jackson@ximian.com>
3257
3258         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3259         is a real MDI window
3260
3261 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3262
3263         * X11DesktopColors.cs: Instead of checking the desktop session
3264           string for "KDE" check if it starts with "KDE"
3265
3266 2006-02-10  Jackson Harper  <jackson@ximian.com>
3267
3268         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3269         systems).
3270
3271 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3272
3273         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3274           errors
3275         * ColorDialog.cs:
3276           - Got rid of the panel. All controls are now directly added to
3277             the dialog form
3278           - Changed to mono coding style
3279
3280 2006-02-10  Jackson Harper  <jackson@ximian.com>
3281
3282         * InternalWindowManager.cs: We don't need the set visibility to
3283         false hack anymore now that peter has written beautiful shutdown
3284         code.
3285
3286 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3287
3288         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3289           where already explicitly destroyed
3290
3291 2006-02-10  Jackson Harper  <jackson@ximian.com>
3292
3293         * MdiClient.cs: Handle the case where windows are too high or to
3294         the left and we need scrollbars.
3295
3296 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3297
3298         * MimeIcon.cs: Added some icons
3299         * FileDialog.cs:
3300           - Fixed bug #77477
3301           - Got rid of the panel. All controls are now directly added to
3302             the dialog form
3303           - Changed to mono coding style
3304           - On Linux "My Computer" and "My Network" will now show some
3305             more usefull information. A new class, MasterMount, gathers
3306             this information from /proc/mount. Updated MWFFileView to make
3307             use of this information
3308           - Fixed a bug that caused FileDialog to crash when
3309             ".recently_used" file had a zero size
3310           - FilterIndex does now what it should
3311           - Some Refactoring
3312         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3313             FileDialog changes
3314
3315 2006-02-09  Jackson Harper  <jackson@ximian.com>
3316
3317         * ComboBox.cs: Don't touch if null.
3318
3319 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3320
3321         * Cursor.cs: 64bit safeness fix
3322         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3323
3324 2006-02-09  Jackson Harper  <jackson@ximian.com>
3325
3326         * Form.cs: If a form is made into an MDI form update the styles so
3327         all the props can get set correctly.
3328         - Kill the mdi_container when we dont need it anymore.
3329         * InternalWindowManager.cs: Add missing NOT
3330
3331 2006-02-08  Jackson Harper  <jackson@ximian.com>
3332
3333         * InternalWindowManager.cs: Respek clipping when drawing MDi
3334         decorations.
3335
3336 2006-02-08  Jackson Harper  <jackson@ximian.com>
3337
3338         * Hwnd.cs: Add bits to track non client expose events.
3339         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3340         gives us a proper invalid rect and will allow for some nice
3341         optimizations with NC client drawing
3342         - MDI windows are children windows, so move their style handling
3343         into the child window block.
3344         * InternalWindowManager.cs: Remove a state reset that was
3345         getting invoked at the wrong time. Fixes managed windows getting
3346         into a 'stuck' captured state.
3347
3348 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3349
3350         * TextControl.cs (Document.ctor): Now initializing 
3351           selection_anchor. Fixes #77493
3352
3353 2006-02-07  Jackson Harper  <jackson@ximian.com>
3354
3355         * TrackBar.cs: The increment/decrements were backwards.
3356
3357 2006-02-07  Mike Kestner  <mkestner@novell.com>
3358
3359         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3360         to the instance itself.
3361
3362 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3363
3364         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3365           on ulongs and pointers, the size differs between 32bit and 64bit
3366           systems. 
3367
3368 2006-02-07  Mike Kestner  <mkestner@novell.com>
3369
3370         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3371         for 64 bit platforms to work around a metacity bug. 
3372
3373 2006-02-07  Jackson Harper  <jackson@ximian.com>
3374
3375         * TrackBar.cs: Process the input keys we need, and hookup to
3376         KeyDown instead of using WndProc, so we get key messages.
3377
3378 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3379
3380         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3381           machine we're on. 
3382         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3383           we need to translate the XdndVersion atoms array before sending it
3384
3385 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3386
3387         * XplatUIX11.cs: 
3388           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3389             number of bits for the property, not the number of bytes. The
3390             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3391             but would not crash since it specified 8 bits instead of 4 bits)
3392           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3393             defined as XID -> long in the C headers)
3394           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3395             references since those are now IntPtr to begin with
3396           - Switched all Atom.XXX 'int' casts to IntPtr casts
3397           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3398           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3399           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3400         * X11Structs.cs:
3401           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3402           - Changed atom in HoverStruct to be IntPtr
3403         * X11DnD.cs:
3404           - Removed local DllImports, switched code to use those from XplatUIX11
3405           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3406
3407 2006-02-06  Mike Kestner  <mkestner@novell.com>
3408
3409         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3410         method signatures in the import region.  There may still be some
3411         lingering struct marshaling issues, as I didn't drill down into those.
3412         Yet.
3413
3414 2006-02-06  Jackson Harper  <jackson@ximian.com>
3415
3416         * ComboBox.cs: Dont manually set the top_item, this is computed
3417         when the scrollbar position is set.
3418
3419 2006-02-06  Mike Kestner  <mkestner@novell.com>
3420
3421         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3422         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3423         usage of Atom needs to be mapped to IntPtr for example.  And there are
3424         likely other int/long issues to be addressed.
3425
3426 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3427
3428         * FileDialog.cs: One more...
3429
3430 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3431
3432         * FileDialog.cs: Next try
3433
3434 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3435
3436         * FileDialog.cs: First part of fix for #77464
3437
3438 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3439
3440         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3441           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3442           AcceptButton border drawing.
3443
3444 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3445
3446         * Form.cs: Moved positioning of form after auto scaling is applied,
3447           otherwise it would possibly use wrong form size.
3448
3449 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3450
3451         * Control.cs (RecreateHandle): No need to re-create any child
3452           controls, the child windows will get destroyed automatically by
3453           the windowing system or driver, and re-created when the handle
3454           is being accessed the first time. Fixes #77456
3455         * Form.cs: No longer setting the form to closing if the handle is 
3456           being recreated. This seems like the right thing to do, don't
3457           have a bug or testcase for this, though.
3458
3459 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3460
3461         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3462           controls to avoid unwanted side effects
3463
3464 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3465
3466         * Control.cs: 
3467           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3468             control. Fixes #77416.
3469           - DefaultSize is 0,0 for control
3470         * TextBoxBase.cs: 
3471           - DefaultSize is 100, 20
3472           - SetBoundsCore: Now enforcing the height, no matter if the provided
3473             height is more or less than the preferred one, as long as AutoSize
3474             is on
3475         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3476
3477 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3478
3479         * Control.cs:
3480           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3481             call unless both performLayout is true *and* we have a pending
3482             layout change
3483           - ResumeLayout: MS does not completely nest Suspend and Resume,
3484             they bottom out at 0, fixed our code to match that.
3485           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3486             SetBoundsCore, we were updating even when we shouldn't. This fixes
3487             swf-anchors mis-anchoring when resizing the app fast and lots.
3488           - UpdateDistances: Now only setting the left and top distance if 
3489             we have a parent and are not suspended, this is based on
3490             a suggestion by Don Edvaldson in bug #77355.
3491           - OnVisibleChanged: Fixed logic when to create the control. We may
3492             not create the control if we have no parent or if it's not visible;
3493             switched to using Visible property instead of is_visible field 
3494             since the property also considers parent states. This fixes a bug
3495             when starting Paint.Net
3496
3497 2006-02-02  Jackson Harper  <jackson@ximian.com>
3498
3499         * Form.cs: If the forms handle hasn't been created yet don't call
3500         into xplatui to make it top most, just set the topmost flag on the
3501         form in CreateParams
3502         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3503
3504 2006-02-01  Jackson Harper  <jackson@ximian.com>
3505
3506         * ScrollableControl.cs: Refactored the Recalculate method a
3507         little, this wasn't handling all the variants of bottom and right
3508         bars needed to be added and added/removed based on their
3509         counterparts being added/removed (which changes the drawable
3510         size). Also we special case client widths and heights of 0 and
3511         don't add the scrollbar for those.
3512
3513 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3514
3515         * XplatUIX11.cs: 
3516           - Added method to get AbsoluteGeometry(); currently unused, but might
3517             be used in the future, if we try again to figure out toplevel
3518             coordinates with some more crappy window managers
3519           - Added FrameExtents() method to retrieve the WM set decoration size
3520           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3521             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3522         * Hwnd.cs: 
3523           - Added whacky_wm tracking var for metacity
3524           - Added logic to have default menu height if the actual menu height
3525             has not yet been calculated (part of fix for #77426)
3526         * Form.cs: Keep track whether client size has been set and re-set 
3527           it if a menu is added/removed afterwards (Fixes #77426)
3528
3529 2006-01-31  Jackson Harper  <jackson@ximian.com>
3530
3531         * Control.cs: When a new Site is set on the component attempt to
3532         pull the AmbientProperties from it.
3533
3534 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3535
3536         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3537           in the background of the owning form. Fixes #77332
3538
3539 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3540
3541         * MimeIcon.cs: Fix for #77409
3542
3543 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3544
3545         * XplatUIX11GTK.cs: Initial import
3546
3547 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3548
3549         * FixedSizeTextBox: fixes class signature
3550
3551 2006-01-30  Jackson Harper  <jackson@ximian.com>
3552
3553         * FixedSizeTextBox.cs: New internal class that represents a
3554         textBox that will not be scaled.
3555         * TreeView.cs:
3556         * ComboBox.cs:
3557         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3558         standard TextBox.
3559                 
3560 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3561
3562         * XplatUIX11.cs: Retrieve default screen number instead of
3563           assuming 0. Attempted fix for #77318
3564
3565 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3566
3567         * XplatUIWin32.cs: 
3568           - GetWindowPos: When a window is parented by FosterParent, use 
3569             the desktop instead of FosterParent as the base to get coordinates
3570           - CreateWindow: Don't make FosterParent the parent window for Popups
3571             if we don't want a taskbar entry, Popups automatically don't get one
3572         * Hwnd.cs: Need to call remove to actually remove the key from the
3573           hash table
3574
3575 2006-01-30  Mike Kestner  <mkestner@novell.com>
3576
3577         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3578
3579 2006-01-30  Jackson Harper  <jackson@ximian.com>
3580
3581         * TreeView.cs:
3582         * TreeNode.cs: Raise events no matter how the treenode is
3583         checked. Patch by Don Edvalson.
3584
3585 2006-01-30  Jackson Harper  <jackson@ximian.com>
3586
3587         * TreeNode.cs: Signature fix.
3588
3589 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3590
3591         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3592
3593 2006-01-20  Mike Kestner  <mkestner@novell.com>
3594
3595         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3596         event forwarding when menus are active.
3597         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3598         Most of the patch is pdb's with a little rework.
3599
3600 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3601
3602         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3603           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3604           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3605         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3606         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3607           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3608           the PaintWindowDecorations method
3609         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3610         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3611         * MenuAPI.cs: Made tracker window invisible
3612         * XplatUIWin32.cs:
3613           - Removed GetMenuDC and ReleaseMenuDC methods
3614           - Implemented the client=false path for PaintEventStart and
3615             PaintEventEnd
3616
3617 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3618
3619         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3620         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3621           styles
3622         * Form.cs: 
3623           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3624             the style
3625           - CreateParams: Reworked the styles to match MS look'n'feel,
3626             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3627             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3628
3629 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3630
3631         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3632           window is not mapped, since otherwise every form that's being 
3633           created is considered minimized, which is wrong.
3634         * Form.cs: Catching the exception and returning our internal value
3635           instead
3636
3637 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3638
3639         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3640           SetWindowMinMax() to have means to tell the driver about the minimum,
3641           maximum and maximized state window sizes. (Part of the fix for #76485)
3642         * Form.cs:
3643           - Implemented tracking of minimum and maximum window size, now calling
3644             new SetWindowMinMax() driver method to tell the driver (Part of the
3645             fix for #76485)
3646           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3647             (Completes fix for #76485)
3648           - Calling new SetWindowMinMax driver method when the handle for a 
3649             form is created, to make sure the driver knows about it even if
3650             the values have been set before the window was created
3651           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3652             to avoid messing up our anchoring calculations (partial fix
3653             for #77355)
3654         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3655         * XplatUIX11.cs:
3656           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3657           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3658             (and presumably other freedesktop.org compliant WMs). Left the
3659             assumption unmapped=minimized, needed for SetVisible to work.
3660           - Now setting the window state when creating windows
3661           - Fixed SetVisible to consider/set the window state when mapping
3662             a Form. We cannot set the state before it's mapped, and we cannot
3663             use Form.WindowState once it's mapped (since it would ask the
3664             driver and get 'normal'. Therefore, we grab the state before
3665             mapping, map, and then set state.
3666           - Implmemented SetWindowMinMax method; Metacity does not seem to
3667             honor the ZoomHints, though.
3668         * XplatUIWin32.cs:
3669           - Removed MINMAXINFO (moved to XplatUIStructs)
3670           - Added SetWindowMinMax stub (on Win32 the only way to set that
3671             information is in response to the WM_GETMINMAXINFO message, which
3672             is handled in Form.cs)
3673           - Added logic to SetVisible to set the proper window state when a 
3674             form is made visible (fixes #75720)
3675
3676 2006-01-26  Jackson Harper  <jackson@ximian.com>
3677
3678         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3679         same way we handle them with Invoke.
3680
3681 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3682
3683         * Form.cs:
3684           - Added tracking of window state so CreateParams can return
3685             the appropriate style
3686           - Moved setting of WS_CAPTION style in CreateParams to allow
3687             styles without caption
3688         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3689           control if the TextBox property is accessed. Fixes #77345
3690         * Control.cs:
3691           - get_Created: now uses is_disposed and is_created to determine
3692             return value (suggested by Jackson)
3693           - CreateHandle: No longer exits if the handle is being recreated
3694           - RecreateHandle: If the handle is not yet created call the 
3695             appropriate method to create either control or handle. If the
3696             control is already created CreateHandle will simply exit instead
3697             of just creating the handle
3698         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3699           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3700           is called.
3701         * XplatUIX11.cs: 
3702           - When DestroyWindow is called, instead of waiting for the 
3703             DestroyNotification from X11, we directly post it to the WndProc
3704             and immediately dispose the hwnd object.
3705             Same applies to DestroyChildWindows, and this obsoletes the
3706             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3707             child windows before our own, to avoid X11 errors.
3708           - Removed the direct sending of WM_PAINT on UpdateWindow
3709         * XplatUIWin32.cs:
3710           - Reworked DoEvents and GetMessage to allow access to internal queue
3711             even when trying non-blocking access to the queue.  Fixes #77335. 
3712             Based on a patch suggestion by Don Edvalson. The new private
3713             GetMessage can now also be used as a backend for a PeekMessage
3714             frontend version.
3715         * XplatUI.cs: Improved debug output for CreateWindow
3716
3717 2006-01-25  Jackson Harper  <jackson@ximian.com>
3718
3719         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3720
3721 2006-01-24  Jackson Harper  <jackson@ximian.com>
3722
3723         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3724         when we have a MaxDropItems lower then the selected index.
3725
3726 2006-01-24  Jackson Harper  <jackson@ximian.com>
3727
3728         * Control.cs: Don't allow selection of non visible controls, allow
3729         selection of controls without parents.
3730
3731 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3732
3733         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3734         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3735
3736 2006-01-23  Jackson Harper  <jackson@ximian.com>
3737
3738         * UpDownBase.cs: Make the textbox handle all the selection and
3739         tabbing. This fixes tabing to updown controls.
3740
3741 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3742
3743         * TextBoxBase.cs: fixes exception thown the object was null
3744
3745 2006-01-23  Jackson Harper  <jackson@ximian.com>
3746
3747         * ButtonBase.cs: Just use the base CreateParams. They set
3748         visibility and enabled correctly.
3749         * ComboBox.cs:
3750         * TrackBar.cs:
3751         * MonthCalendar.cs: Lets let the base set as much of the
3752         createparams as possible so we don't have duplicate code all over
3753         the place.
3754
3755 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3756
3757         * ThemeGtk.cs: Added TrackBar and some experimental code to
3758           get double buffering back
3759
3760 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3761
3762         * DataGrid.cs: Allows row number set internally higher than the last
3763         when creating a new row. Restores the editing functionality.
3764
3765 2006-01-20  Mike Kestner  <mkestner@novell.com>
3766
3767         * MimeIcon.cs: delay Image creation until the icons are accessed
3768         instead of creating 190 scaled images on GnomeHandler startup.
3769
3770 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3771
3772         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3773           first call base before processing the event. Fixes #77279
3774
3775 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3776
3777         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3778           that the stride for the GDI bitmap would match the stride of
3779           a DIB or a Cursor.
3780
3781 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3782
3783         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3784
3785 2006-01-19  Jackson Harper  <jackson@ximian.com>
3786
3787         * ComboBox.cs: Hookup the text controls keydown event so we get
3788         those when the text control has the focus.
3789
3790 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3791
3792         * Label.cs: Now using the base events instead of defining new ones;
3793           this allows us to just call the base properties without having to
3794           duplicate all base property logic 
3795
3796 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3797
3798         * Label.cs: A label by default is not a tabstop (Fixes one of our
3799           failing nunit tests)
3800
3801 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3802
3803         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3804         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3805
3806 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3807
3808         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3809           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3810           This fixes #77218
3811         * XplatUIWin32.cs: 
3812           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3813             constructor creates images that can't be saved. Part of the fix
3814             for #76103
3815           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3816           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3817             bug fix for handling window state in forms properly)
3818
3819 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3820
3821         * ThemeGtk.cs: Simplify ScrollBar drawing
3822
3823 2006-01-18  Jackson Harper  <jackson@ximian.com>
3824
3825         * Splitter.cs: Set the default dock style for the splitter control
3826         in the constructor.
3827
3828 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3829
3830         * ThemeGtk.cs: Corrected StateType and ShadowType for
3831           gtk_paint_box
3832
3833 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3834
3835         * Control.cs: Make use of Theme.DoubleBufferingSupported
3836         * ThemeGtk.cs:
3837           - Added drawing for flat style buttons
3838           - Added ScrollBar drawing
3839
3840 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3841
3842         * ThemeClearlooks.cs: Removed some unneeded code.
3843         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3844
3845 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3846
3847         * LinkLabel.cs: We need to update the hover drawing when
3848           leaving the control as well.
3849
3850 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3851
3852         * DataGrid.cs: Clicking on non empty areas in the columns
3853            area was giving an exception
3854
3855 2006-01-17  Jackson Harper  <jackson@ximian.com>
3856
3857         * ThemeWin32Classic.cs:
3858         * ListView.cs: Do not draw/clip the headers when the header style
3859         is None.
3860
3861 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3862
3863         * DataGrid.cs: Fixes 77260
3864         
3865 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3866
3867         * DataGrid.cs: Clicking on a column on a empty grid was giving
3868           an exception
3869
3870 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3871
3872         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3873           or any keypress will crash the grid.
3874
3875 2006-01-17  Mike Kestner  <mkestner@novell.com>
3876
3877         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3878         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3879         invisible/previously-visible items.
3880         [Fixes #76909]
3881
3882 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3883
3884         * ThemeClearlooks.cs:
3885         - Added CL_Draw_Button method; now other theme controls that are 
3886           not derived from button or do not have a button can draw buttons
3887           too
3888         - Updated ComboBox drawing
3889         - Beautified RadioButton drawing
3890         - Corrected drawing of bottom and left tabs
3891         - Beautified DateTimePicker and MonthCalendar
3892         - Added CPDrawButton and CPDrawRadioButton
3893
3894 2006-01-16  Jackson Harper  <jackson@ximian.com>
3895
3896         * ComboBox.cs: Set the initial value of the scrollbar to the
3897         current index. Reduce the numbers of refreshs and IndexOfs called.
3898
3899 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3900
3901         * FileDialog.cs: When the file listview is focused hitting the
3902           backspace key moves the fileview to the parent directory
3903
3904 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3905
3906         * Form.cs: 
3907           - Added RecreateHandle call when changing taskbar visibility to 
3908             trigger reparenting in Win32 driver (Fixes #75719)
3909           - If a window has minimize or maximize buttons, it cannot have
3910             a help button
3911         * XplatUIWin32.cs:
3912           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3913             the toplevel form with FosterParent (A toolwindow not on the
3914             taskbar) (Fixes #75719)
3915           - Made FosterParent a toolwindow
3916
3917 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3918
3919         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3920
3921 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3922
3923         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3924           is currently over that control, make sure that tooltip_window.Text
3925           gets updated
3926
3927 2006-01-13  Mike Kestner  <mkestner@novell.com>
3928
3929         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3930
3931 2006-01-13  Jackson Harper  <jackson@ximian.com>
3932
3933         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3934         value passed.  Also redraw the selected node when we recieve
3935         focus, so tabbing between trees works correctly.
3936
3937 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3938
3939         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3940           ~/.gconf/%gconf-tree.xml, so use
3941           .gconf/desktop/gnome/interface/%gconf.xml
3942
3943 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3944
3945         * TextControl.cs: Draw text in gray if control is disabled
3946
3947 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3948
3949         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3950           make sure it's always visible. Fixes #76680.
3951
3952 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3953
3954         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3955
3956 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3957
3958         * PageSetupDialog.cs: Added.
3959         * PrintDialog.cs: Attributes.
3960         * PrintPreviewControl.cs: Updates.
3961         * PrintPreviewDialog.cs: Updates.
3962         
3963 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3964
3965         * Control.cs: Undid my selection check fix, since it's not needed
3966         * TextBoxBase.cs:
3967           - Now considering the presence of hscroll/vscroll when sizing
3968             vscroll/hscroll respectively. Fixed bug #77077
3969           - Added Left/Up/Down/Right to IsInputKey list to prevent
3970             ContainerControl from stealing them. This fixes what I broke
3971             with my last checkin.
3972
3973 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3974
3975         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3976           I finally understand how the property can be set without a setter :-)
3977
3978 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3979
3980         * Application.cs:
3981           - Switched RunLoop to use static Message.Create to create a 
3982             Message object
3983           - Added PreProcessMessage call in runloop for keyboard events; this
3984             is part of the fix for #77219, I overlooked this originally in the
3985             MSDN doc for PreProcessMessage
3986         * Control.cs:
3987           - Removed call to PreProcessMessage from handling of keyboard 
3988             messages; it's supposed to be done in the message pump
3989           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3990             per MSDN documentation.
3991           - IsInputChar: All chars are input chars by default; removed the 
3992             parent calling chain, MS does not document that
3993           - PreProcessMessage: If IsInputChar is true, we want to return false
3994             to allow dispatching of the message
3995           - When selecting the next control, now also check that we're not
3996             selecting ourselves again and therefore return a false positive.
3997         * TextBoxBase.cs:
3998           - Tried to match return values for IsInputKey and ProcessDialogKey
3999             to what MS returns; moved processing of our special keys outside
4000             ProcessDialogKey since MS does not seem to return true on those.
4001           - Moved code that previously was in ProcessDialogKey into new private
4002             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4003           - Reworked handling of WM_CHAR to not have to duplicate code from
4004             Control.cs anymore, instead we simply call down to base.
4005            
4006 2006-01-12  Jackson Harper  <jackson@ximian.com>
4007
4008         * ComboBox.cs: We always need to refresh the text area when
4009         EndUpdate is called. Fixes the combobox in the file dialog.
4010         * Control.cs: Don't create the creator_thread until the controls
4011         handle is created.  Also in InvokeRequired we check if the
4012         creator_thread is null. This gives the effect of InvokeRequired
4013         returning true if the controls handle is not created yet, and
4014         matches MS.
4015
4016 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4017
4018         * XplatUI.cs:
4019           - Added StartLoop() driver method. This is used to allow drivers to
4020             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4021             loop for a particular thread
4022           - Added EndLoop() driver method. This is called once the message
4023             pump for the thread is shut down
4024           - Added SupportsTransparency method to allow the driver to indicate
4025             opacity support for windows
4026         * Form.cs:
4027           - Removed TODO attribute, completed AllowTransparency property
4028           - Added documented logic to Opacity
4029         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4030           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4031           versions of CompatibleTextRendering
4032         * X11Structs.cs: Added opacity atom to our atom enumeration
4033         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4034           of a form might be set before it's reparented by the WM, and we need
4035           the opacity value without calling up to Form)
4036         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4037           SupportsTransparency() driver methods
4038         * Application.cs: Now calling StartLoop and EndLoop driver methods
4039         * XplatUIX11.cs:
4040           - Added opacity atom registration
4041           - Added StartLoop()/EndLoop() methods. They're empty right now but
4042             will need to get implemented when we switch to a per-thread queue
4043           - Implemented SupportsTransparency() method
4044           - Implemented SetWindowTransparency() method
4045           - Added support for setting the opacity value when a window is
4046             reparented (since the opacity needs to be set on the WM frame)
4047         * XplatUIOSX.cs, XplatUIWin32.cs:
4048           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4049
4050 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4051
4052         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4053
4054 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4055
4056         * FileDialog.cs: Added ToolTip for MWFFileView
4057         * MimeIcon.cs: Rewrote GnomeHandler.
4058           - Get currently used gnome icon theme from
4059             ($HOME)/.gconf/%gconf-tree.xml
4060           - Make use of inherited icon themes
4061           - Support SVG icon themes like Tango via librsvg
4062
4063 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4064
4065         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4066         builds. 
4067         
4068         * Application.cs: Move the use_compatible_text_rendering outside
4069         the NET_2_0 define.  If we ever need to use the
4070         use_compatible_text_rendering on the individual controls they will
4071         access the variable from the common shared code paths.
4072
4073 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4074
4075         * XplatUI.cs:
4076           - Added more granular debug options
4077           - Added method to print both window text and id
4078           - Switched debug output to use new Window() debug method
4079           - Added IsEnabled() driver method
4080           - Added EnableWindow() driver method
4081         * Form.cs:
4082           - Removed end_modal; no longer needed, new loop handles termination
4083             via 'closing' variable
4084           - If form is modal, setting DialogResult will now initiate loop
4085             termination via 'closing' variable
4086           - Added support for is_enabled/WS_DISABLED to CreateParams
4087           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4088             does all the work
4089           - Removed code that's now in RunLoop from ShowDialog()
4090           - Added various documented sanity checks to ShowDialog()
4091           - Added handling of WM_DESTROY message; we set 'closing' on getting
4092             the message to indicate the message pump to terminate
4093           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4094             send by the Application.ExitThread method. (We send the message
4095             to destroy the window after all other events have been
4096             processed through the queue, instead of destroying the handle 
4097             directly)
4098           - Moved code from Close() method to WM_CLOSE handler; added logic
4099             to only send close-related events if the form is not displayed
4100             modal
4101         * Splitter.cs (..ctor): Fixed typo in resource name
4102         * Control.cs:
4103           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4104             brush now
4105           - set_Cursor: Now only setting calling into XplatUI if the handle for
4106             the control is already created; this avoids implict handle creation
4107             or crashes if it's not created
4108           - set_Enabled: Now setting the enabled state via the new driver method
4109             instead of just tracking it
4110           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4111           - CreateControl: Reordered event firing and method calls to more
4112             closely fire events in the order MS does. Now setting the
4113             enabled state in the driver when creating the control.
4114           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4115             match MS order
4116         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4117           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4118         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4119         * Hwnd.cs:
4120           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4121           - Added EnabledHwnd property to easily allow a driver to find the
4122             handle of the first enabled window in the parent chain (this is
4123             used by drivers to pass up input events of disabled windows)
4124         * XplatUIDriver.cs: Added IsEnabled() method
4125         * Application.cs:
4126           - Removed crude and obsolete exiting tracking variable
4127           - Removed internal ModalRun(); replaced by RunLoop()
4128           - Implemented private CloseForms() method to allow closing all 
4129             windows owned by a particular (or all) threads
4130           - Exit() now properly closes all windows without forcing the message
4131             pump to quit
4132           - Removed obsolete InternalExit() method
4133           - Changed Run() methods to use new RunLoop() message pump
4134           - Implemented new RunLoop() method for both modal and non-modal forms
4135         * CommonDialog.cs:
4136           - get_CreateParams: Added setting of WS_DISABLED
4137           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4138             invoked via Form.ShowDialog()
4139         * NativeWindow.cs: We don't remove the window from the collection when
4140           the handle is destroyed; there might still be messages for it in the
4141           queue (mainly the resulting WM_DESTROY); instead it will be removed
4142           when Control calls InvalidateHandle in the WM_DESTROY handler
4143         * XplatUIX11.cs:
4144           - CreateWindow: Added logic to handle the WS_DISABLED window style
4145           - EnableWindow: Implemented based on Hwnd.Enabled
4146           - GetMessage: Reset PostQuitState so the method can be called again
4147           - Implemented support for disabled windows (passing messages to the
4148             first enabled parent) in handling all input messages
4149           - Added optimizations for handling Expose events
4150           - Implemeted new driver method IsEnabled()
4151           - Now always resetting paint pending tracking vars when we start paint
4152           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4153         * XplatUIOSX.cs: Added IsEnabled method stub
4154         * XplatUIWin32.cs: Implemented new IsEnabled() method
4155
4156 2006-01-11  Jackson Harper  <jackson@ximian.com>
4157
4158         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4159         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4160         variables a little.
4161         * ColorDialog.cs: Clear out the old form before adding the new
4162         panel.  
4163
4164 2006-01-11  Jackson Harper  <jackson@ximian.com>
4165
4166         * X11Dnd.cs: Make sure to add all the text formats when adding
4167         strings to the data object.
4168         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4169         do some redrawing too.  Also change the UpdateNode to an
4170         UpdateBelow so the newly added node gets painted.
4171         
4172 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4173
4174         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4175         LinkLabel.cs, PropertyGrid.cs: Implement the
4176         UseCompatibleTextRendering property for 2.x
4177
4178         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4179
4180 2006-01-11  Jackson Harper  <jackson@ximian.com>
4181
4182         * TreeView.cs: Use the property for setting the selected node so
4183         the correct events get raised.
4184         * TreeNode.cs: Update the tree when the fore/back colours of a
4185         node are set.
4186
4187 2006-01-10  Jackson Harper  <jackson@ximian.com>
4188
4189         * TreeView.cs: Allow setting SelectedNode to null.
4190
4191 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4192
4193         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4194
4195 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4196
4197         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4198
4199 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4200
4201         * PrintDialog.cs: Added attributes and set default property values.
4202
4203 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4204
4205         * PrintControllerWithStatusDialog.cs: 
4206         Added PrintControllerWithStatusDialog.
4207
4208 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4209
4210         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4211         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4212
4213 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4214
4215         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4216
4217 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4218
4219         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4220         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4221
4222 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4223
4224         * MimeIcon.cs: Added internal class SVGUtil.
4225
4226 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4227
4228         * FileDialog.cs: Don't crash if there are two files with the
4229           same name but different locations.
4230
4231 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4232
4233         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4234         dates across multiple month grids. Used to not highlight entire 
4235         month, but does now.
4236         
4237 2006-01-06  Jackson Harper  <jackson@ximian.com>
4238
4239         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4240         message loop. Change timer intervals to numbers that seem more
4241         natural.
4242
4243 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4244
4245         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4246           object for location info since screen object is now implemented.
4247
4248 2006-01-05  Jackson Harper  <jackson@ximian.com>
4249
4250         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4251         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4252         AsyncMethodResult, this is because we ALWAYS want the
4253         ManualResetEvent to get set.
4254         * Control.cs: When disposing use an async invoke to call shutdown
4255         code, so that thigns don't block on the finalizer thread.  Also
4256         check if we even have a message loop before trying to send
4257         messages, if we don't then don't bother sending messages.
4258         - No more weak references for async methods
4259         * XplatUIDriver.cs: No more weak references for async methods.
4260
4261 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4262
4263         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4264           returns two FontFamily with the same name
4265
4266 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4267
4268         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4269           drawing disabled text. Instead using the ColorGrayText color
4270
4271 2006-01-04  Jackson Harper  <jackson@ximian.com>
4272
4273         * TreeNode.cs: redraw the node when its image index is changed.
4274
4275 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4276
4277         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4278           time I checked there are no others like it.
4279
4280 2006-01-04  Jackson Harper  <jackson@ximian.com>
4281
4282         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4283         this gives the behavoir I was looking for.
4284         * Control.cs: Special case Invoking EventHandlers, this matches MS
4285         and fixes part of bug #76326.
4286
4287 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4288
4289         * ThemeClearlooks.cs, FileDialog.cs:
4290           - Reflect the latest Theme class changes
4291           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4292             with DateTime
4293             
4294 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4295
4296         * Theme.cs: Cache UI resource images and resize them if needed
4297
4298 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4299
4300         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4301           is called. This fixes the crash in Nexxia when setting the font
4302           attributes in the chat. [However, RTF needs a look-over to make sure
4303           that all SelectionXXX methods handle the special case that selection
4304           is empty and therefore the change must be applied to all text starting
4305           at the cursor/selection start]
4306
4307 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4308
4309         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4310           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4311         * X11Keyboard.cs: Switched to new way of calling PostMessage
4312
4313 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4314
4315         * Theme.cs: Added theme interface for images to allow the theme to
4316           control what images are used for things like FileDialog, MessageBox
4317           icons, etc.
4318         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4319
4320 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4321
4322         * FileDialog.cs:
4323           - Removed some dead code
4324           - Opening a recently used file does work now
4325           - Small UI enhancements
4326           - Refactoring
4327
4328 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4329
4330         * FileDialog.cs: Forgot too add __MonoCS__
4331
4332 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4333
4334         * FileDialog.cs: We are able to read recently used files now let's
4335           go on and write them.
4336
4337 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4338
4339         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4340           button
4341         * MimeIcon.cs: Do a check for the top level media type also
4342
4343 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4344
4345         * ThemeClearlooks.cs:
4346           - Added CPDrawStringDisabled
4347           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4348             some chars if the text doesn't fit into text_rect
4349           - DrawListViewItem: If View = View.LargeIcon center the image;
4350             rewrote the drawing of ListViewItem.Text if View = 
4351             View.LargeIcon
4352
4353 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4354
4355         * MimeIcon.cs: Use default KDE icon theme if there is no
4356           "48x48" directory for the current icon theme, fixes #77114
4357         * Mime.cs: Disable not working and actually not used code. 
4358         * ThemeWin32Classic.cs:
4359           - Replace "new SolidBrush" in GetControlBackBrush and
4360             GetControlForeBrush with ResPool.GetSolidBrush
4361           - Changed DrawListViewItem from private to protected virtual
4362         * FileDialog.cs:
4363           - Added form.MaximizeBox = true
4364           - Don't throw an exception if there is a broken symbolic link
4365
4366 2005-12-23  Jackson Harper  <jackson@ximian.com>
4367
4368         * TabControl.cs: Give the panels focus, keyboard navigation is
4369         fixed so this works correctly now.
4370         - We need these key events also.
4371         * ToolBar.cs: Remove some of the poor mans double buffering.
4372         
4373 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4374
4375         * ComboBox.cs: The internal TextBox now returns the focus.
4376
4377 2005-12-23  Jackson Harper  <jackson@ximian.com>
4378
4379         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4380
4381 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4382
4383         * Control.cs: Removed debug code
4384         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4385           implicit children
4386
4387 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4388
4389         * Control.cs: When creating the control, update the Z-order after
4390           all it's children are created, too. (Fixes nexxia not showing
4391           picturebox bug)
4392
4393 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4394
4395         * Control.cs: Do not update the anchoring distances if layout is
4396           suspended, instead do it once layout is resumed
4397
4398 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4399
4400         * Control.cs: 
4401           - After many hours of debugging, for both Jackson and
4402             myself, it turns out that it helps to set the parent of a control
4403             if you want to actually see it onscreen. In the spirit of that
4404             discovery, we're now setting the parent of the control and
4405             it's children when the control's handle is created. This fix
4406             will make Lutz Roeder's Reflector run happily. 
4407           - now just creating the handle instead of the whole control when
4408             getting a graphics context for the control.
4409
4410 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4411
4412         * ScrollableControl.cs: When calculating the canvas, don't consider
4413           the scrollbar widths. Instead, predict if horizontal scrollbar
4414           will affect canvas when deciding on vertical display and vice versa.
4415
4416 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4417
4418         * RichTextBox.cs: Set default RTF font for documents that don't
4419           have a font table (Fixes #77076)
4420
4421 2005-12-22  Jackson Harper  <jackson@ximian.com>
4422
4423         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4424         clipboard. This prevents a NullRef in that case.
4425         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4426         clipboard. PRIMARY is for the currently selected text only. (We
4427         should implement PRIMARY at some point.
4428
4429 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4430
4431         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4432           a Unicode function with a structure that was defined in Ansi way.
4433           This fixes #76942.
4434
4435 2005-12-21  Jackson Harper  <jackson@ximian.com>
4436
4437         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4438         on. Because thats how it rolls. (and this avoids it using ambient
4439         colours).
4440         * ThemeWin32Classic.cs: Use the proper back color for filling.
4441         * Menu.cs: Use the system menu bar color for drawing menu
4442         bars. Using the window back color will bring ambient colours into
4443         the picture.
4444
4445 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4446
4447         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4448           Bitmaps were created and not disposed.
4449
4450 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4451
4452         * Control.cs (CreateControl): Don't do anything if the control is
4453           already created, otherwise we'd fire the OnCreated event more than
4454           once
4455
4456 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4457
4458         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4459           will always match. Instead return -1. Fixes #76464.
4460
4461 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4462
4463         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4464           neither the beginning nor the end of the line (Fixes bug #76479)
4465
4466 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4467
4468         * Control.cs:
4469           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4470             where handle is invalid
4471           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4472             instead of slower linear search
4473         * NativeWindow.cs: Don't remove the window from the hashtable until
4474           after the driver has destroyed it (since the driver might use
4475           Control.FromHandle to lookup the control object
4476         * Hwnd.cs: Added DestroyPending property to track if a window is 
4477           already destroyed as far as the driver is concerned and only hasn't
4478           yet notified the control
4479         * XplatUIX11.cs:
4480           - Activate(): Check if the window is still valid before using the 
4481             handle
4482           - Implemented DestroyChildWindow() method to mark child windows as
4483             destroyed when a window is destroyed. This prevents situations 
4484             where we might call an X method based on queued events for a
4485             window that already has been destroyed but we haven't yet pulled
4486             the destroy method from the queue.
4487           - Added a call to the new DestroyChildWindow() method to the drivers
4488             DestroyWindow code. Also now marking the destroyed window itself
4489             as pending
4490
4491 2005-12-20  Jackson Harper  <jackson@ximian.com>
4492
4493         * StatusBar.cs:
4494         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4495         anymore. Just do them when needed, also track the rects of panels
4496         so that we can optimize refreshing more in the future.
4497
4498 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4499
4500         * ColorDialog.cs: Fixed focus drawing in small color controls
4501
4502 2005-12-19  Jackson Harper  <jackson@ximian.com>
4503
4504         * InternalWindowManager.cs:
4505         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4506         moving windows works properly.
4507
4508 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4509
4510         * Control.cs: 
4511           - Removed call to InitLayout() from SetBoundsCore(); doc says
4512             it's only called when a control is added to a container
4513           - Split InitLayout logic, moved to separate UpdateDistances() method
4514             since we need to perform those calculations more often than just
4515             when adding the control to a container. (Needed to fix #77022)
4516           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4517           - Reduced the OnBindingContextChanged events count, don't send them
4518             unless the control is created, we still aren't totally matching
4519             MS, but I can't quite figure out some of their rules
4520
4521 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4522
4523         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4524           stripes
4525
4526 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4527
4528         * ThemeClearlooks.cs:
4529           - Updated ProgressBar drawing
4530           - Corrected drawing of ScrollBars and scroll buttons
4531           - Some temporary fixes for minor pixel artefacts
4532
4533 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4534
4535         * Control.cs:
4536           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4537             cause events to be sent in the same order as MS does.
4538           - Added ChangeParent() method to trigger various OnXXXChanged events
4539             that need to be fired when a parent changes (This is a reworking
4540             of the patch from r54254, with the X11 errors fixed)
4541           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4542             since on MS we get OnLayoutChanged events when calling Clear()
4543           - Changed Enabled property to consider parent state as well, if a
4544             parent is not enabled, the control will not be either
4545           - Changed Parent property to simply call Controls.Add() since that
4546             now does all the work required, this way we avoid code duplication
4547           - Threw in a few OnBindingsContextChanged calls to try and match
4548             when MS sends them. We seem to send a few too many, though.
4549           - Added call to CreateControl when adding the control to a parent.
4550             We were never calling CreateControl. Still needs some work, in
4551             some places we treat HandleCreated and ControlCreated as equal, 
4552             which is wrong
4553           - Removed obsolete commented out code from UpdateZOrder()
4554
4555 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4556
4557         * ThemeClearlooks.cs: Updated TrackBar drawing.
4558
4559 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4560
4561         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4562
4563 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4564
4565         * FileDialog.cs: Add the Help button and the open readonly
4566           checkbox only if needed
4567
4568 2005-12-16  Jackson Harper  <jackson@ximian.com>
4569
4570         * Control.cs: Make sure we have an active menu before trying to
4571         process commands on it. Prevents menu-less forms from crashing
4572         when Alt is pressed.
4573         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4574         Dieter Bremes.
4575         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4576         2.0 build.
4577
4578 2005-12-16  Jackson Harper  <jackson@ximian.com>
4579
4580         * InternalWindowManager.cs: Don't translate tool windows screen
4581         coordinates. This fixes windows 'bouncing' around when being moved.
4582
4583 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4584
4585         * TextBoxBase.cs:
4586           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4587             not quite MS compatible, MS uses that number only for single line
4588             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4589             the limit at 2GB)
4590           - Now enforcing the MaxLength limit when entering characters
4591           - Added argument to internal Paste() method to track if it's called
4592             from programatically or via keyboard, since keyboard driven pastes
4593             need to enforce max-length
4594           - Added logic to Paste to only paste as many chars as MaxLength 
4595             allows
4596         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4597         * TextControl.cs:
4598           - Added Length property to return number of characters in document
4599           - Added private CharCount property which only tracks actual chars
4600             in the document (no linefeeds) and fires event when CharCount
4601             changes
4602           - Added tracking of character count to all methods that alter it
4603           - Added LengthChanged event to allow applications to subscribe
4604             to any changes to the document
4605
4606 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4607
4608         * TextBox.cs: 
4609           - Removed local password_char field (moved to TextBoxBase)
4610           - Now setting the document's password var when password is
4611             set
4612         * TextBoxBase.cs:
4613           - Added password_char field (needed here so MultiLine can
4614             access it)
4615           - Added logic to MultiLine property setter to set the document's
4616             variable when password display is allowed
4617           - Removed debug code and made some debug code conditional
4618         * TextControl.cs:
4619           - Added RecalculatePasswordLine() method to handle special password
4620             char only lines
4621           - Added PasswordChar property, also added related tracking vars
4622           - Draw() method now uses local text var for grabbing text to draw,
4623             this var is set to line.text unless we're doing password display,
4624             then it is set to the pre-generated all-password-chars line
4625           - Added calling RecalculatePasswordLine() method for password lines
4626
4627 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4628
4629         * Hwnd.cs: 
4630           - Added Reparented property to allow tracking of Window Manager
4631             reparenting actions (which affect X/Y calculations of toplevel 
4632             windows)
4633           - Made ToString() print window handles in hex
4634         * XplatUIX11.cs:
4635           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4636             determine if X/Y needs offsetting
4637           - AddConfigureNotify(): Fixed offset calculations
4638           - Now adds ReparentNotify messages into the queue
4639           - Now processes ReparentNotify messages and causes a 
4640             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4641             is reparented (as most likely it's X/Y coordinates are changed
4642             due to that)
4643
4644 2005-12-14  Jackson Harper  <jackson@ximian.com>
4645
4646         * XplatUIX11.cs: Tool windows still need to respek focus.
4647
4648 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4649
4650         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4651           have a working release
4652
4653 2005-12-13  Jackson Harper  <jackson@ximian.com>
4654
4655         * Form.cs: Update styles after setting the border style regardless
4656         of whether or not the window is using a window manager.
4657
4658 2005-12-13  Jackson Harper  <jackson@ximian.com>
4659
4660         * Form.cs: We now hook into an internal window manager instead of just an
4661         MDI subsystem, this is so we can have properly behaving tool windows.
4662         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4663         * InternalWindowManager.cs: New internal class that acts as a
4664         window manager for tool windows and as a base for mdi windows.
4665         * MdiWindowManager.cs: New class that acts as a window manager for
4666         mdi windows.
4667
4668 2005-12-12  Jackson Harper  <jackson@ximian.com>
4669
4670         * Control.cs: Updates so we match behavoir for for implicit
4671         controls. Fixes explosions in MDI.
4672
4673 2005-12-12  Jackson Harper  <jackson@ximian.com>
4674
4675         * Control.cs: Implement Invalidate (Region).
4676
4677 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4678
4679         * Control.cs: 
4680           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4681             the same events as MS does. MS fires events for each property 
4682             except, for unknown reasons, Cursor, when the control is reparented. 
4683             I can't seem to totally match add/remove since MS also fires some 
4684             VisibleChanged events, which makes no sense. Consolidated the
4685             parenting code into a separate method so it can be called from
4686             both Add and Remove. set_Parent no longer needs any special logic
4687             as it calls the parent's add method which implicitly fires
4688             all events
4689           - Removed some obsolete code and debug output
4690           - Enabled state is inherited from parents, if this is enabled
4691
4692 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4693
4694         * Form.cs: Removed commented out code
4695
4696 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4697
4698         * Control.cs:
4699           - Added internal version of Invoke, with additional argument 
4700             indicating if we're calling it from a Dispose() handler. That
4701             way we can avoid BeginInvoke throwing an exception if we're
4702             calling for an already destroyed window.
4703           - Added a dispose argument to BeginInvokeInternal, and made the
4704             check if a valid window handle chain exists conditional on
4705             it not being a dispose call
4706           - Removed code in DestroyHandle to destroy our children. Since we
4707             now handle the WM_DESTROY message we will catch all our children
4708             being destroyed.
4709           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4710         * Form.cs:
4711           - Added a field to track the application context of the form.
4712           - No need to set closing variable as response to WM_CLOSE, instead
4713             we destroy the window. We also call PostQuitMessage if the form
4714             has an application context (which makes it the main app form,
4715             which, when closed terminates the app)
4716         * XplatUI.cs:
4717           - Dropped Exit() method, it's naming was confusing
4718           - Added PostQuitMessage() which causes GetMessage to return false
4719             once the message queue is empty
4720         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4721           PostQuitMessage()
4722         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4723           no longer a valid XplatUI method, but left it in since it's used
4724           internally. Added empty PostQuitMessage() method.
4725         * MenuAPI.cs: Replaced call to Exit() with call to
4726           PostQuitMessage, even though this is probably no longer needed.
4727         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4728         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4729         * Application.cs:
4730           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4731           - Removed old debug code that would call XplatUI for exception
4732             display, enabled standard exception handling (Still not enabled
4733             though, until NativeWindow's ExternalExceptionHandler define
4734             is removed
4735         * NativeWindow.cs:
4736           - Added internal method to allow control to update NativeWindow
4737             after a window has been destroyed
4738           - Added handling of already destroyed windows when calling i
4739             DestroyWindow
4740           - Added removal of handle from list on ReleaseHandle
4741         * XplatUIX11.cs:
4742           - Dropped GetMessageResult var and related code
4743           - Added PostQuitState to field to track if PostQuitMessage has been
4744             called
4745           - Dropped Exit() method
4746           - Added PostQuitMessage() method
4747           - GetMessage now will return false if PostQuitState is set and no
4748             more messages are in the queue.
4749           - Expose handler will no longer generate WM_PAINT messages if we are
4750             in PostQuitState since it's very likely any windows have already
4751             been destroyed, and since Hwnd won't get updated until we have
4752             processed the DestroyNotify we'd be causing X errors.
4753         
4754 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4755
4756         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4757           Thanks to Mike for pointing out the err of my ways.
4758
4759 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4760
4761         * Control.cs(PreProcessMessage): Moved menu handling back, but
4762           after all other key handling, to match MS (who handles Menu in
4763           DefWndProc)
4764         * Menu.cs (WndProc): Removed my brainfart
4765
4766 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4767
4768         * Control.cs(PreProcessMessage): Removed special menu handling 
4769         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4770
4771 2005-12-07  Mike Kestner  <mkestner@novell.com>
4772
4773         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4774         state according in tracker.
4775         * Menu.cs : promote tracker field to base class and provide a tracker
4776         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4777         has a tracker. Unparent items that are removed from the collection.
4778         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4779         * Theme*.cs: add always_show_hotkeys field to support configurability
4780         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4781         pressed.
4782
4783 2005-12-07  Jackson Harper  <jackson@ximian.com>
4784
4785         * MdiChildContext.cs: Use Control.ResetCursor.
4786         * Control.cs: ResetCursor needs to set the property so that the
4787         correct XplatUI call gets made.
4788
4789 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4790
4791         * Control.cs: More fixes to make our key events match MS. We
4792           were not setting the modifier state on KeyData, and we were
4793           not generating any events when Alt was pressed with a key
4794           since handling of WM_SYSxxx was missing for the OnKey methods.
4795
4796 2005-12-07  Jackson Harper  <jackson@ximian.com>
4797
4798         * MdiChildContext.cs: reenable the sizing code.
4799         - When the mouse leaves a window reset its cursor.
4800
4801 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4802
4803         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4804
4805 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4806
4807         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4808           widths of Fixed3D borders
4809
4810 2005-12-07  Jackson Harper  <jackson@ximian.com>
4811
4812         * MdiClient.cs: Fix warnings. Earn Mike's love.
4813
4814 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4815
4816         * ThemeClearlooks.cs:
4817           - Adjusted mouse over button color
4818           - Added first parts of CheckBox drawing
4819           - Added correct color for selected text background
4820           - Fixed ComboBox drawing
4821           - Added CPDrawBorder3D and CPDrawBorder
4822
4823 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4824
4825         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4826
4827 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4828
4829         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4830           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4831           alert users via sound. We could add an enum arg with different
4832           types of alerts in the future
4833
4834 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4835
4836         * Control.cs: Fix behaviour problems pointed out by Mike
4837
4838 2005-12-05  Mike Kestner  <mkestner@novell.com>
4839
4840         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4841         prop setters.  Calls parent.Refresh for now, but could be maybe be
4842         optimized with an internal method on StatusBar at some point.
4843         [Fixes #76513]
4844
4845 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4846
4847         * RichTextBox.cs: Implemented get_SelectionColor
4848
4849 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4850
4851         * ThemeClearlooks.cs:
4852           - Removed dead code
4853           - Draw black button border only if button is Form.AcceptButton
4854           - Draw correct button color for pressed RadioButton if the mouse 
4855             has entered the button
4856           - Updated ProgressBar drawing!
4857           - Updated CPDrawSizeGrip drawing
4858           - Updated StatusBarPanel drawing
4859
4860 2005-12-05  Mike Kestner  <mkestner@novell.com>
4861
4862         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4863         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4864
4865 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4866
4867         * ThemeClearlooks.cs: Initial check-in, activate with
4868           export MONO_THEME=clearlooks
4869         * ThemeEngine.cs: Added ThemeClearlooks
4870
4871 2005-12-03  Mike Kestner  <mkestner@novell.com>
4872
4873         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4874         [Fixes #76897]
4875
4876 2005-12-02  Jackson Harper  <jackson@ximian.com>
4877
4878         * Form.cs: If the child form has no menu the default main menu is
4879         used as the active menu.
4880
4881 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4882
4883         * ListBox.cs: Check if any items exist before trying to resolve 
4884           coordinates into items
4885
4886 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4887
4888         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4889           as the second color for the background hatch
4890
4891 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4892
4893         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4894         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4895           sure that what we pass to FormatText is always 1-based. Fixes #76885
4896
4897 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4898
4899         * NumericUpDown.cs (EndInit): When we are done initializing,
4900         reflect any updates on the UI.
4901
4902 2005-12-02  Jackson Harper  <jackson@ximian.com>
4903
4904         * ImplicitHScrollBar.cs:
4905         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4906         their container controls.
4907         * TreeView.cs: Use the new implicit scrollbars.
4908
4909 2005-12-02  Jackson Harper  <jackson@ximian.com>
4910
4911         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4912         can play with it.
4913         * TreeNodeCollection.cs: If we remove the topnode we need to
4914         update topnode to the next node in line.
4915         - When clearing nodes go through the same process as removing
4916         them, so they get depareneted and checked if they are top node.
4917
4918 2005-12-01  Jackson Harper  <jackson@ximian.com>
4919
4920         * TreeView.cs: When imagelists are used the image area is
4921         selectable as well as the text.
4922         - If there are no selected nodes select the first one.
4923         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4924         so don't do it more then we need to.
4925
4926 2005-12-01  Jackson Harper  <jackson@ximian.com>
4927
4928         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4929         that arrows can be scaled.
4930
4931 2005-12-01  Jackson Harper  <jackson@ximian.com>
4932
4933         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4934         fail. Patch by Dieter Bremes
4935
4936 2005-11-30  Jackson Harper  <jackson@ximian.com>
4937
4938         * Form.cs: Property is 2.0 only
4939         * PrintDialog.cs: Signature fix.
4940
4941 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4942
4943         * TextControl.cs: 
4944           - No longer artificially moves text 2 pixels down (now that we have
4945             borders this is no longer needed)
4946           - Added calcs for left, hanging and right indent
4947
4948 2005-11-23  Mike Kestner  <mkestner@novell.com>
4949
4950         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4951
4952 2005-11-30  Jackson Harper  <jackson@ximian.com>
4953
4954         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4955         get cloned as part of CloneMenu ().
4956         * Menu.cs: Make sure the parent of the items get set correctly
4957         when they are added.  And the owners are notified of the changes.
4958         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4959         we can change the menu being displayed/handled by the form without
4960         changing the menu assosciated with the form.
4961         - Don't let Mdi children draw/handle menus.
4962         
4963 2005-11-30  Jackson Harper  <jackson@ximian.com>
4964
4965         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4966         a MenuChanged event. Just to make the API a little more
4967         consistent.
4968         * MainMenu.cs:
4969         * MenuItem.cs: Use the new OnMenuChanged
4970         * MdiChildContext.cs: Handle menu merging.
4971         * Form.cs: Implement MergedMenu.
4972         
4973 2005-11-30  Jackson Harper  <jackson@ximian.com>
4974
4975         * Menu.cs: We were misusing Add. Add goes behind the specified
4976         index according to the docs, and does not replace the specified
4977         index. So I added an Insert method.
4978
4979 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4980
4981         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4982           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4983           is for Jackson
4984         * RichTextBox.cs: Added calls to base for DnD events
4985
4986 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4987
4988         * TextControl.cs:
4989           - Fixed drag-selection related crash; style fixes
4990           - Implemented undo class
4991             o Implemented method to capture document state for specified
4992               range in document tree
4993             o Implemented method to restore captured document state
4994             o Implemented cursor tracking
4995             o Implemented basic undo stack
4996           - Added undo cursor tracking to methods altering cursor location
4997           - Added undo tracking to selection deletion (still missing
4998             other text-altering hookups)
4999         * RichTextBox.cs:
5000           - Added SelectionLength property
5001           - Implemented CanPaste()
5002           - Implemented Paste()
5003           - Added missing protected methods
5004           - Fixed RTF->Document conversion; now uses font index 0 and color 
5005             index 0 as the default font for the parsed text
5006           - Fixed RTF<->Document font size translation
5007           - Fixed RTF generation, now properly handles cross-tag boundaries
5008             for single line selection
5009           - No longer always appends blank line to generated RTF
5010           - Removed TODOs
5011           - Added missing attributes
5012           - Hooked up undo-related methods
5013         * TextBoxBase.cs:
5014           - Implemented Copy()
5015           - Implemented Paste()
5016           - Implemented Cut()
5017           - Fixed caret mis-behaviour on backspace across line-boundaries
5018
5019 2005-11-29  Jackson Harper  <jackson@ximian.com>
5020
5021         * MdiClient.cs: Add a method for activating mdi children. Very
5022         basic right now. I imagine someday it might need more girth.
5023         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5024         children windows names are added to the menu item.
5025         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5026         mdilist. This happens regardless of whether or not there are any
5027         mdi windows to see in the list, and according to my tests happens
5028         before the items are even added. Also happens if there isn't even
5029         an mdi client to get windows from.
5030
5031 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5032
5033         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5034         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5035
5036 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5037
5038         * DataGridTableStyle.cs:
5039           - Create always the styles for the missing columns even if they are
5040             provided by the user (not default table style)
5041         * DataGrid.cs:
5042           - Fixes bug 76770
5043           - Fixes SetDataBinding (always re-attach source)
5044           - Fixes SetNewDataSource (only clear styles if they are not for 
5045             this source)
5046          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5047             and remove properly
5048
5049 2005-11-29  Jackson Harper  <jackson@ximian.com>
5050
5051         * FileDialog.cs: Implement missing bits, remove some dead
5052         code.
5053         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5054         creation of the panel so that the options set on the dialog are
5055         seen when the panel is created.
5056         * TreeView.cs: raise a click when items are clicked.
5057         
5058 2005-11-29  Jackson Harper  <jackson@ximian.com>
5059
5060         * MdiClient.cs: Pass some signature methods through to base.
5061
5062 2005-11-28  Jackson Harper  <jackson@ximian.com>
5063
5064         * ListView.cs: Raise the click event when items are clicked.
5065
5066 2005-11-28  Jackson Harper  <jackson@ximian.com>
5067
5068         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5069         a nullref.
5070
5071 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5072
5073         * ThemeNice.cs: - Removed 1 pixel bitmaps
5074           - Use SmoothingMode.AntiAlias where it makes sense
5075             (ScrollButton arrow for example)
5076           - Enhanced Button focus drawing
5077           - Fixed ComboBox drawing (no artefacts anymore, focus
5078             rectangle is back again, reduced size of ComboButton, etc.)
5079           - Fixed RadioButton focus drawing for Appearence.Button
5080           - Slight ScrollButton redesign
5081           - Some LinearGradientBrush size fixes
5082           - GroupBoxes have now rounded edges
5083           - Fixed StatusBar drawing
5084
5085 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5086
5087         * ThemeNice.cs: - Remove dead code
5088           - use correct background colors for menus, etc.
5089           - Fake pixel drawing with 1 pixel bitmaps
5090
5091 2005-11-24  Jackson Harper  <jackson@ximian.com>
5092
5093         * MdiClient.cs: Size the scrollbars when resizing the window.
5094         - Resize the maximized windows when the client is resized
5095         * Form.cs: Make the child context available
5096         
5097 2005-11-23  Jackson Harper  <jackson@ximian.com>
5098
5099         * MdiChildContext.cs: Don't size windows if they are maximized.
5100
5101 2005-11-23  Mike Kestner  <mkestner@novell.com>
5102
5103         * ContextMenu.cs: use MenuTracker.
5104         * Control.cs: remove menu handle usage.
5105         * Form.cs: remove menu handle usage.
5106         * Hwnd.cs: remove menu handle usage.
5107         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5108         motion and clicks to the new Tracker handlers.
5109         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5110         and handle usage.
5111         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5112         Killed the MENU and MENUITEM data types and associated collections
5113         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5114         MenuTracker class that exposes the leftovers from the old MenuAPI
5115         static methods. Restructured Capture handling so that only one grab is
5116         done for the entire menu hierarchy instead of handing off grabs to
5117         submenus. Tracker now has an invisible control to Capture when active.
5118         * MenuItem.cs: add sizing accessors, kill Create
5119         and handle usage.
5120         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5121         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5122         MENU(ITEM). remove menu handle usage, use Menu directly.
5123         * XplatUIDriver.cs: remove menu handle usage.
5124         * XplatUIOSX.cs: remove menu handle usage.
5125         * XplatUIWin32.cs: remove menu handle usage.
5126         * XplatUIX11.cs: remove menu handle usage.
5127
5128 2005-11-22  Jackson Harper  <jackson@ximian.com>
5129
5130         * Hwnd.cs: Don't compute the menu size for
5131         DefaultClientRectangle.
5132         - Reenable menu sizes being computed for GetClienRectangle.
5133         * Form.cs: Remove comment of trechery
5134         
5135 2005-11-22  Jackson Harper  <jackson@ximian.com>
5136
5137         * Hwnd.cs: The adjustments for the menu bar are made when it is
5138         attached to the form.
5139
5140 2005-11-19  Jackson Harper  <jackson@ximian.com>
5141
5142         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5143         (just like on windows).
5144
5145 2005-11-19  Jackson Harper  <jackson@ximian.com>
5146
5147         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5148         use real buttons anymore because they are in non client area. The
5149         one TODO here is that I need to somehow invalidate a section of
5150         the non client area.
5151
5152 2005-11-18  Jackson Harper  <jackson@ximian.com>
5153
5154         * Control.cs: Put the enum check back in now that MDI doesnt have
5155         to use this to set border styles.
5156         * Form.cs: Only set mdi child windows borders if the handle has
5157         been created.
5158         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5159         this directly on to the driver.
5160         - Get the move start position before adjusting for the titlebar
5161         height, this fixes the windows "skipping" when they are first
5162         moved.
5163
5164 2005-11-18  Jackson Harper  <jackson@ximian.com>
5165
5166         * XplatUIX11.cs: Just compute the mdi borders separately as they
5167         don't totally match up with normal form borders.
5168
5169 2005-11-18  Jackson Harper  <jackson@ximian.com>
5170
5171         * Control.cs: Set WS_ styles for borders, so that the driver does
5172         not have to retrieve the control instance to figure out what kind
5173         of borders it should have.
5174         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5175         driver can know its an mdi child easily.
5176         * XplatUIX11.cs: Get the border styles and whether the window is
5177         MDI from the Styles and ExStyles params instead of having to get a
5178         control. This prevents a chicken and egg problem.       
5179
5180 2005-11-18  Jackson Harper  <jackson@ximian.com>
5181
5182         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5183
5184 2005-11-18  Jackson Harper  <jackson@ximian.com>
5185
5186         * MdiClient.cs: Calculate when to add and remove scrollbars
5187         correctly.
5188         * MdiChildContext.cs: Adjust the y position to take the titlebar
5189         into account.
5190         - No height for FormBorderStyle.None
5191
5192 2005-11-18  Jackson Harper  <jackson@ximian.com>
5193
5194         * Control.cs: Allow non enum values to be used for
5195         InternalBorderStyle.  MDI does this to set a special border style.
5196         - New utility methods for converting points to/from client coords
5197         - Add the newly created control to the Controls collection before
5198         updating its style. This way UpdateStyle can walk the control
5199         heirarchy to find the control if needed.
5200         so I don't need to create a new Point object all the time.
5201         * Form.cs: Let MDI windows handle their border styles.
5202         - Set styles on MDI windows so the correct title style is derived.
5203         * MdiChildContext.cs: Move all the painting and window handling
5204         into the non client area.
5205         - Use correct sizing and put correct buttons on frames based on
5206         the FormBorderStyle.
5207         - Notify the mdi client about scrolling
5208         - Need to handle the buttons ourselves now, because they are all
5209         in non client areas and we can't add controls there.
5210         * MdiClient.cs: Halfway to scrolling, this implementation is
5211         somewhat broken though, we need to check to make sure other
5212         windows aren't causing scrolling before removing the bars. Also
5213         the bars need to be drawn on top, maybe I can switch implicit
5214         controls to be on top.
5215         * Hwnd.cs: caption_height and tool_caption_height are now
5216         properties of an hwnd, this way they can be set by the driver
5217         based on the type of window they are.  In X11 the window manager
5218         handles the decorations so caption_height is zero unless its an
5219         MDI window.
5220         - Add 3 pixel borders for MDI windows (0xFFFF).
5221         - Get rid of some code duplication, have DefaultClientRectanle
5222         just call GetClientRectangle.
5223         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5224         Hwnd now.
5225         - Set border styles differently for mdi windows.
5226         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5227         Hwnd now.
5228         
5229 2005-11-15  Mike Kestner  <mkestner@novell.com>
5230
5231         * Menu.cs: when adding an item to the collection, if item is already 
5232         parented, remove it from the parent.
5233
5234 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5235
5236         * X11DesktopColors.cs: Added KDE support
5237
5238 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5239
5240         * XplatUIWin32.cs: 
5241           - Clipboard methods now can translate Rtf format
5242           - No longer removes clipboard contents whenever a new format is added
5243             to allow placing multiple formats on the clipboard
5244         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5245           will place all formats contained in it onto the clipboard. Also
5246           now cleans the clipboard before placing a new object onto it
5247         * RichTextBox.cs:
5248           - Implemented set_Rtf
5249           - Implemented set_SelectedRtf
5250           - Created InsertRTFFromStream() method to allow single code base
5251             for all properties and methods that insert RTF into document
5252           - Removed debug output
5253         * TextControl.cs:
5254           - Fixed Delete(int) to fix up line numbers
5255           - Fixed ReplaceSelection to combine start and end line
5256           - Fixed serious DeleteChars bug that would leave the document tree
5257             broken
5258           - Improved DumpTree with several logic checks to detect broken
5259             document trees
5260           - Removed debug lines
5261           - Fixed Caret.WordForward/WordBack moving code, now always also 
5262             updates caret.tag (fixes crash when word-selecting across tag
5263             boundaries via keyboard)
5264           - Added Insert() method for inserting multiline text into documents
5265           - Fixed DeleteChars() calculation errors that would cause a broken
5266             tag chain with multiple tag lines
5267           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5268           - Split() no longer moves caret if split is at caret location
5269           - ReplaceSelection() now updates the cursor and re-displays it
5270           - ReplaceSelection() now uses new Insert() method to avoid code
5271             duplication
5272           - FormatText() can now handle formatting partial lines
5273         * TextBoxBase.cs:
5274           - Append now uses new TextControl.Insert() method (this avoids 
5275             duplicate code)
5276           - Implemented Ctrl-X (Cut) (
5277           - Implemented Ctrl-C (Copy)
5278           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5279             regeneration when pasting text; roundtripping Copy&Paste within
5280             edit control still fails due to some calculation bugs in GenerateRTF)
5281           - The Delete key will now remove the current selection if it is visible
5282         * TextBox.cs: Removed debug lines
5283         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5284           driver to be initialized and can't therefore be done via a static ctor)
5285
5286 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5287
5288         * TextControl.cs: Added backend code for finding char arrays and strings
5289         * TextBoxBase.cs:
5290           - Added mouse wheel scroll support
5291           - Added support for VScroll and HScroll events
5292         * RichTextBox.cs:
5293           - Implemented all seven Find() variants
5294           - Implemented GetCharFromPosition()
5295           - Implemented GetCharIndexFromPosition()
5296           - Implemented GetLineFromIndex()
5297           - Implemented GetPositionFromCharIndex();
5298           - Implemented SaveFile for PlainText and UnicodeText
5299           - Fixed set_Font, now setting a new font applies that font to
5300             the whole document
5301           - Implemented generic Document to RTF converter
5302           - Implemented SaveFile for RichText format (still missing unicode
5303             conversion for non-ansi chars)
5304           - Implemented get_Rtf
5305           - Implemented get_SelectedRtf
5306
5307 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5308
5309         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5310           to allow any captures to be released before triggering OnClick. This
5311           way a click handler may capture the mouse without interference.
5312         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5313           This way we send them even though X may not allow a grab (if the window
5314           isn't visible, for example)
5315
5316 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5317
5318         * DataGridViewRowEventArgs.cs: DataGridView implementation
5319         * DataGridViewElement.cs: DataGridView implementation
5320         * DataGridViewComboBoxCell.cs: DataGridView implementation
5321         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5322         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5323         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5324         * ImageLayout.cs: DataGridView implementation
5325         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5326         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5327         * DataGridViewSelectionMode.cs: DataGridView implementation
5328         * IDataGridViewEditingControl.cs: DataGridView implementation
5329         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5330         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5331         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5332         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5333         * DataGridViewColumnSortMode.cs: DataGridView implementation
5334         * DataGridView.cs: DataGridView implementation
5335         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5336         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5337         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5338         * Padding.cs: DataGridView implementation
5339         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5340         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5341         * DataGridViewRowEventHandler.cs: DataGridView implementation
5342         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5343         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5344         * DataGridViewButtonCell.cs: DataGridView implementation
5345         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5346         * DataGridViewEditMode.cs: DataGridView implementation
5347         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5348         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5349         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5350         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5351         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5352         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5353         * DataGridViewCellEventHandler.cs: DataGridView implementation
5354         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5355         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5356         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5357         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5358         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5359         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5360         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5361         * QuestionEventArgs.cs: DataGridView implementation
5362         * IDataGridViewEditingCell.cs: DataGridView implementation
5363         * DataGridViewTriState.cs: DataGridView implementation
5364         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5365         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5366         * DataGridViewColumnCollection.cs: DataGridView implementation
5367         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5368         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5369         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5370         * DataGridViewColumn.cs: DataGridView implementation
5371         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5372         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5373         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5374         * DataGridViewRow.cs: DataGridView implementation
5375         * DataGridViewImageCellLayout.cs: DataGridView implementation
5376         * DataGridViewImageCell.cs: DataGridView implementation
5377         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5378         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5379         * DataGridViewHeaderCell.cs: DataGridView implementation
5380         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5381         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5382         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5383         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5384         * QuestionEventHandler.cs: DataGridView implementation
5385         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5386         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5387         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5388         * DataGridViewCell.cs: DataGridView implementation
5389         * DataGridViewCellEventArgs.cs: DataGridView implementation
5390         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5391         * DataGridViewCellStyle.cs: DataGridView implementation
5392         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5393         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5394         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5395         * TextFormatFlags.cs: DataGridView implementation
5396         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5397         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5398         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5399         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5400         * DataGridViewButtonColumn.cs: DataGridView implementation
5401         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5402         * HandledMouseEventArgs.cs: DataGridView implementation
5403         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5404         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5405         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5406         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5407         * DataGridViewRowCollection.cs: DataGridView implementation
5408         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5409         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5410         * DataGridViewHitTestType.cs: DataGridView implementation
5411         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5412         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5413         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5414         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5415         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5416         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5417         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5418         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5419         * DataGridViewContentAlignment.cs: DataGridView implementation
5420         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5421         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5422         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5423         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5424         * DataGridViewPaintParts.cs: DataGridView implementation
5425         * DataGridViewCellCollection.cs: DataGridView implementation
5426         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5427         * DataGridViewImageColumn.cs: DataGridView implementation
5428         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5429         * DataGridViewElementStates.cs: DataGridView implementation
5430         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5431         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5432         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5433         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5434         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5435         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5436         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5437         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5438         * DataGridViewTextBoxCell.cs: DataGridView implementation
5439         * DataGridViewBand.cs: DataGridView implementation
5440         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5441         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5442         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5443         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5444         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5445         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5446         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5447         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5448         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5449         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5450         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5451
5452 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5453
5454         * ThemeWin32Classic.cs: 
5455           - Draw the outside focus rectangle around buttons
5456           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5457             doesn't use end caps for every dash of a line anymore. This
5458             workaround ignores the forecolor.
5459
5460 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5461
5462         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5463           endian safe.
5464
5465 2005-11-07  Jackson Harper  <jackson@ximian.com>
5466
5467         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5468
5469 2005-11-07  Jackson Harper  <jackson@ximian.com>
5470
5471         * ScrollableControl.cs: Calculate the maximum and change vars
5472         (more) correctly so that scrollbars appear as a sensible size.
5473
5474 2005-11-04  Jackson Harper  <jackson@ximian.com>
5475
5476         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5477         collection.
5478         * TreeView.cs: When the tree is sorted null out the top_node so
5479         that it is recalculated.
5480         - Use dotted lines instead of dashed lines to match MS better.
5481
5482 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5483
5484         * ListView.cs: 
5485           - Implements key search for items. Useful when browsing files with FileDialog
5486           - When changing view mode or when clear the items reset scrollbar positions
5487
5488 2005-11-04  Jackson Harper  <jackson@ximian.com>
5489
5490         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5491         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5492         as to what the method may do as there is no real way of creating a
5493         derived CurrencyManager and calling the method. 
5494
5495 2005-11-03  Jackson Harper  <jackson@ximian.com>
5496
5497         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5498         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5499         method which seems to just be used internally to refresh the tabs.
5500
5501 2005-11-03  Jackson Harper  <jackson@ximian.com>
5502
5503         * TabControl.cs: Implement the remove method. Fix some broken
5504         comments.
5505
5506 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5507
5508         * DateTimePicker.cs:
5509           - Added missing DateTimePickerAccessibleObject class
5510           - Added missing events
5511           - Added OnFontChanged method
5512         * Form.cs: Added missing attributes
5513         * TreeView.cs: Added missing attributes
5514
5515 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5516
5517         * GridItemCollection.cs: Fix signatures
5518
5519 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5520
5521         * XplatUI.cs: Updated build rev/date
5522         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5523           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5524         * Application.cs: Trigger context-specific ExitThread events
5525
5526 2005-11-03  Jackson Harper  <jackson@ximian.com>
5527
5528         * Menu.cs:
5529         * MainMenu.cs:
5530         * GridTableStylesCollection.cs:
5531         * Timer.cs:
5532         * TabPage.cs:
5533         * HelpProvider.cs:
5534         * StatusBar.cs:
5535         * MonthCalendar.cs: Signature fixes
5536
5537 2005-11-03  Jackson Harper  <jackson@ximian.com>
5538
5539         * TreeNodeCollection.cs: Remove should not be virtual.
5540         * TreeView.cs: Implement the last of the missing methods.
5541
5542 2005-11-03  Jackson Harper  <jackson@ximian.com>
5543
5544         * TreeNodeConverter.cs: Implement to get off my class-status back.
5545
5546 2005-11-03  Jackson Harper  <jackson@ximian.com>
5547
5548         * TreeView.cs: Hookup the bits for drag and drop.
5549         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5550         that nodes can be moved from tree to tree easily this just causes
5551         all sorts of problems.
5552         * TreeNodeCollection: Don't need to give treenodes an index and
5553         treeview anymore when they are added, these are computed on the
5554         fly. Also make sure to remove a node before its added.
5555
5556 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5557
5558         * TextControl.cs:
5559           - Added CaretSelection enum
5560           - Added comparison methods to Marker struct, makes selection code
5561             more readable
5562           - Added SelectionStart and SelectionEnd as 'moveable' location for
5563             the CaretDirection enum and handler
5564           - Added selection_prev variable to track optimized invalidation for
5565             word and line selection
5566           - Added SelectionVisible property (returns true if there is a valid 
5567             selection)
5568           - Switched CaretHasFocus to only display the caret if there is no
5569             visible selection
5570           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5571             using the direct character index; should be much faster
5572           - Added various conditional debug statements
5573           - Fixed invalidation calculation for selection ranges
5574           - Added ExpandSelection() method to support word and line selection
5575           - Switched SetSelectionToCaret to use new Marker compare overloads
5576           - Added central IsWordSeparator() method to determine word 
5577             separators/whitespace and FindWordSeparator() to streamline common
5578             usage of IsWordSeparator()
5579         * TextBoxBase.cs:
5580           - Removed unneeded grabbed variable, it was just mirroring
5581             Control.Capture
5582           - No longer firing OnTextChanged event when Text setter is called,
5583             since the base will fire the event for us
5584           - Added handling of Ctrl-Up/Down selection
5585           - Added handling of Shift-Cursorkey selection
5586           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5587             words
5588           - Added handling of Shift and Ctrl-Shift-Home/End selection
5589           - Removed some debug output
5590           - Added handling for single/double/tripple-click to place caret/
5591             select word/select line respectively (Fixes bug #76031)
5592           - Added support for drag expansion of word/line selection
5593         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5594           current selection
5595
5596 2005-11-02  Jackson Harper  <jackson@ximian.com>
5597
5598         * X11Dnd.cs: If the drag is going to and from a MWF window just
5599         copy the data instead of sending it out through the X Selection
5600         mechanism.
5601
5602 2005-11-02  Jackson Harper  <jackson@ximian.com>
5603
5604         * X11Dnd.cs:
5605         * XplatUIX11.cs: When in a drag we don't want motion notify
5606         messages to get passed on to the other controls. This prevents
5607         mouse move messages from showing up in the drag source.
5608
5609 2005-11-02  Jackson Harper  <jackson@ximian.com>
5610
5611         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5612         the correct button is release to end a drag.
5613         * XplatUIX11.cs: Make the button state internal so the drag system
5614         can access it.  Dragging needs to know about all button releases,
5615         not just left button.
5616
5617 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5618
5619         * Form.cs (Icon): If the icon is null, reset the icon to the
5620         default value. 
5621
5622         * Cursor.cs: When writing the AND-mask bitmap do not include the
5623         number of colors, but hardcode those to two (black and white),
5624         fixes the loading of color cursors (Paint Dot Net).
5625
5626         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5627         turn off autoscaling.
5628
5629         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5630
5631 2005-11-02  Jackson Harper  <jackson@ximian.com>
5632
5633         * X11Dnd.cs: Make sure to send a status message if the pointer
5634         enters a control that can not accept a drop, otherwise the cursor
5635         isn't updated correctly. Also tried to compress the lines of code
5636         a bit.
5637
5638 2005-11-02  Jackson Harper  <jackson@ximian.com>
5639
5640         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5641         set actions correctly.  This isn't perfect as XDND and win32 have
5642         some differences on how you allow actions. I'll clear this up by
5643         adding a path for drag from MWF to MWF windows.
5644         * XplatUIX11.cs: Hook into the dnd system.
5645
5646 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5647
5648         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5649         previously shown but they are no longer need it. Very obvious when 
5650         browsing files with FileDialog.
5651
5652 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5653
5654         * Control.cs: We always need to call OnPaintBackground. We pretty much
5655           ignore AllPaintingInWmPaint and always do the painting there, whether 
5656           it's set or not, since we always ignore the WM_ERASEBKGND message 
5657           (which we don't generate on X11). This fixes #76616.
5658         * Panel.cs: Removed unneeded background painting. This happens properly
5659           in Control.cs already
5660
5661 2005-10-31  Mike Kestner  <mkestner@novell.com>
5662
5663         * Menu.cs: Add items to collection before setting their index.
5664         * MenuItem.cs : add range checking with ArgumentException like MS.
5665         [Fixes #76510]
5666
5667 2005-10-31  Jackson Harper  <jackson@ximian.com>
5668
5669         * ListBox.cs: Invalidate if the area is visible at all not just
5670         contained in the visible rect. Fixes unselection of semi visible
5671         items.
5672
5673 2005-10-31  Jackson Harper  <jackson@ximian.com>
5674
5675         * Control.cs: Consistently name the dnd methods. Make them
5676         internal so we can override them to match some MS behavoir
5677         internally.
5678         * Win32DnD.cs: Use the new consistent names.
5679
5680 2005-10-31  Jackson Harper  <jackson@ximian.com>
5681
5682         * TreeView.cs: Don't draw the selected node when we lose focus.
5683
5684 2005-10-31  Jackson Harper  <jackson@ximian.com>
5685
5686         * X11Dnd.cs: We still need to reset the state even though a full
5687         reset isn't being done, otherwise status's still get sent all over
5688         the place.
5689
5690 2005-10-31  Jackson Harper  <jackson@ximian.com>
5691
5692         * Control.cs: Make the dnd_aware flag internal so the dnd
5693         subsystem can check it. Catch exceptions thrown in dnd handlers to
5694         match MS behavoir.
5695         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5696         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5697         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5698         flags to reduce the number of dnd enters/status's sent.
5699
5700 2005-10-31  Jackson Harper  <jackson@ximian.com>
5701
5702         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5703
5704 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5705
5706         * PictureBox.cs: Fixes 76512
5707
5708 2005-10-28  Jackson Harper  <jackson@ximian.com>
5709
5710         * X11Dnd.cs: Early implementation to support winforms being a drag
5711         source for data on X11. Also restructured the converters so they
5712         can go both ways now.
5713         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5714         
5715 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5716
5717         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5718           clipboard requests
5719
5720 2005-10-27  Jackson Harper  <jackson@ximian.com>
5721
5722         * TreeNode.cs: Implement serialization so my DnD examples will work.
5723
5724 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5725
5726         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5727           TreeView.cs: Don't dispose objects that are not owned.
5728           
5729 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5730
5731         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5732           should retrieve the current cursor and report that, but XplatUI
5733           doesn't (yet) have an interface for that (and I'm not sure I even
5734           can, on X11)
5735         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5736           until any message loop processing is done (and the WM_SETCURSOR
5737           replaces the cursor to the proper one)
5738         * XplatUIX11.cs: 
5739           - Fixed override behaviour, we can't set the cursor globally on X11, 
5740             just for our windows.
5741           - Invalidating the System.Drawing X11 display handle when we are
5742             shutting down
5743         * Control.cs: Fix to make csc happy
5744
5745 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5746
5747         * TextBoxBase.cs: 
5748           - get_Text: Add last line (without trailing newline) to returned
5749             value (Fixes 76212)
5750           - get_TextLength: Count last line in returned length
5751           - ToString: Call Text property instead of duplicating code
5752
5753 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5754
5755         * ImageList.cs: Dispose ImageAttributes objects.
5756
5757 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5758
5759         * ImageList.cs: Use attribute constructors with less arguments where
5760           possible.
5761
5762 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5763
5764         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5765           Use typeof instead of strings when assembly is referenced. Added
5766           some more comments.
5767
5768 2005-10-21  Jackson Harper  <jackson@ximian.com>
5769
5770         * ListView.cs: Raise a double click event. Also tried to somewhat
5771         fix when the selectedindexchanged event is raised. Its still
5772         broken though.
5773
5774 2005-10-21  Jackson Harper  <jackson@ximian.com>
5775
5776         * TreeView.cs: New method to invalidate the plus minus area of a
5777         node without invalidating the whole node (maybe this can be used
5778         in some more places).
5779         * TreeNodeCollection.cs: When adding to an empty node we need to
5780         invalidate its plus minus area so the little block shows up.
5781         
5782 2005-10-21  Jackson Harper  <jackson@ximian.com>
5783
5784         * TreeView.cs: Make sure that when we invalidate a node the bounds
5785         are big enough to cover the selected box and the focus
5786         rectangle. Use a different colour for the lines connecting nodes
5787         so they show up with all themes.
5788
5789 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5790
5791         * NativeWindow.cs: Don't call anything that could call into the driver,
5792           we might be on a different thread.
5793
5794 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5795
5796         * Control.cs(Dispose): Since Dispose might run on a different thread,
5797           make sure that we call methods that could call into the driver via
5798           invoke, to avoid thread issues
5799
5800 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5801
5802         * XplatUI.cs: Removed finalizer
5803         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5804           not allowing to be called on the finalizer thread.
5805
5806 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5807
5808         * ImageList.cs:
5809           - Reverted r51889 and r51891.
5810           - Added ImageListItem class that stores unmodified image items and image
5811             properties required to create list images until handle is created.
5812           - Added AddItem and moved image creation logic to AddItemInternal.
5813           - Added CreateHandle method that creates images based on unmodified items.
5814           - Added DestroyHandle that changes state to store unmodified items.
5815           - Add and AddStrip methods no more create handle.
5816           - ReduceColorDepth has no return value.
5817           - Dispose destroys handle.
5818           - Modified other methods to reflect the above changes.
5819           - Implemented key support.
5820           - Added profile 2.0 members and attributes.
5821           - Added private Reset and ShouldSerialize methods that provide the same
5822             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5823             them as they are private.
5824           - Added some more comments about implementation details.
5825
5826 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5827
5828         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5829
5830 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5831
5832         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5833
5834 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5835
5836         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5837         * DataGridColumnStyle.cs: Remove debug message
5838
5839 2005-10-20  Jackson Harper  <jackson@ximian.com>
5840
5841         * TreeView.cs: We can always get input keys regardless of whether
5842         or not editing is enabled. They are used for navigation.
5843
5844 2005-10-20  Jackson Harper  <jackson@ximian.com>
5845
5846         * TreeNode.cs: Use the viewport rect for determining if a node
5847         needs to be moved for visibility. Don't use Begin/End edit. This
5848         calls a full refresh when its done.
5849         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5850         rect property internal so the treenodes can see it. When clicking
5851         on a node we need to ensure that its visible because it might just
5852         be partly visible when clicked.
5853
5854 2005-10-20  Jackson Harper  <jackson@ximian.com>
5855
5856         * TreeNodeCollection.cs: Remove debug code.
5857
5858 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5859
5860         * Datagrid.cs: Implements column sorting in Datagrid
5861         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5862
5863 2005-10-20  Jackson Harper  <jackson@ximian.com>
5864
5865         * TreeNodeCollection.cs: Remove items properly. Update the correct
5866         area after removing them.
5867
5868 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5869
5870         * Datagrid.cs: Should not call base.OnPaintBackground
5871
5872 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5873
5874         * XplatUIX11.cs (GetMessage):
5875           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5876             window instead of client window
5877           - Now properly calculates NC_xBUTTONUP message coordinates
5878           - ScreenToMenu now properly calculates it's coordinates of whole 
5879             window, since menus are in the whole window, not in the client
5880             window
5881           - Added WholeToScreen coordinate translation method
5882
5883 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5884
5885         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5886           want to return a message, loop back to the beginning of the function
5887           and grab the next real message to process instead.
5888
5889 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5890
5891         * Splitter.cs: Properly set limits if no filler control is used
5892
5893 2005-10-19  Jackson Harper  <jackson@ximian.com>
5894
5895         * ColorDialog.cs: Don't show the help button if it is not enabled
5896         instead of disabling it (this is what MS does). Don't create the
5897         panel until the dialog is run, otherwise the vars (such as
5898         ShowHelp) are not set yet.
5899
5900 2005-10-19  Jackson Harper  <jackson@ximian.com>
5901
5902         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5903         are reduced when adding nodes.
5904         * TreeNode.cs:
5905         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5906         tree.
5907         
5908 2005-10-19  Jackson Harper  <jackson@ximian.com>
5909
5910         * FolderBrowserDialog.cs: End editing our treeview so the window
5911         actually gets refreshed.
5912
5913 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5914
5915         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5916           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5917           inside of WM_PAINT
5918
5919 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5920
5921         * MenuAPI.cs: Returns after Hidding window
5922         * XplatUIX11.cs: Added TODO found while debugging menu issues
5923
5924 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5925
5926         * XplatUIX11.cs: Do not re-map the whole window when it's size
5927           becomes non-zero unless it's supposed to be actually visible
5928
5929 2005-10-18  Jackson Harper  <jackson@ximian.com>
5930
5931         * TreeView.cs: We don't need to keep a count anymore.
5932         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5933         use the Grow method.
5934
5935 2005-10-18  Jackson Harper  <jackson@ximian.com>
5936
5937         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5938         implement it manually here.
5939
5940 2005-10-18  Jackson Harper  <jackson@ximian.com>
5941
5942         * ImageList.cs: Dont kill the list when the colour depth is
5943         changed, just change the colour depth of all the images.
5944         - Same goes for setting the image size. Just resize them all
5945         instead of killing the list softly.
5946
5947 2005-10-18  Jackson Harper  <jackson@ximian.com>
5948
5949         * Control.cs: Don't invalidate empty rectangles.
5950
5951 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5952
5953         * ListViewItem.cs:
5954           - Adds checked item to the Checked/Item lists (where empty before)
5955           - Do not add items to the Selected lists if they are already present
5956         * ListView.cs:
5957           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5958           - When deleting items make sure that we delete them for the Selected
5959           and Checked list also.
5960
5961 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5962
5963         * Label.cs: Dispose objects no longer used
5964         * ThemeWin32Classic.cs: Dispose objects no longer used
5965
5966 2005-10-18  Jackson Harper  <jackson@ximian.com>
5967
5968         * TabControl.cs: Don't refresh the whole control when the tabs are
5969         scrolled, we just need to refresh the tab area.
5970
5971 2005-10-17  Jackson Harper  <jackson@ximian.com>
5972
5973         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5974         after handle when we need it.
5975
5976 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5977
5978         * Control.cs: When the parent size changes, recalculate anchor 
5979           positions. Partial fix for #76462
5980
5981 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5982
5983         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5984           drawn. Fixes #76462
5985
5986 2005-10-17  Jackson Harper  <jackson@ximian.com>
5987
5988         * MonthCalendar.cs: Don't create the numeric up down until our
5989         handle is created. Otherwise our handle is created in the
5990         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5991         yet.
5992
5993 2005-10-17  Jackson Harper  <jackson@ximian.com>
5994
5995         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5996         correctly.
5997
5998 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5999         * TreeNode.cs : small logical fix (was using local var instead of field)
6000         
6001 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6002
6003         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6004
6005 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6006
6007         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6008
6009 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6010
6011         * Control.cs: 
6012           - Re-implemented anchoring code. My first version was really broken.
6013             This fixes bug #76033. Unlike the previous implementation we will
6014             no longer have round errors since all numbers are calculated from
6015             scratch every time. Removed various anchor-related obsolete vars.
6016           - InitLayout no longer causes layout event firing and layout to be 
6017             performed
6018
6019 2005-10-16  Jackson Harper  <jackson@ximian.com>
6020
6021         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6022         which was broken).
6023
6024 2005-10-16  Jackson Harper  <jackson@ximian.com>
6025
6026         * TabControl.cs: Remove debug code.
6027
6028 2005-10-16  Jackson Harper  <jackson@ximian.com>
6029
6030         * XEventQueue.cs: Increase the default queue size (very simple
6031         apps needed to grow the queue).
6032         * Hwnd.cs: No finalizer so we don't need to suppress
6033         finalization. Compute the invalid area manually so a new rectangle
6034         does not newto be created.
6035         * ScrollableControl.cs: Don't set any params (otherwise visibility
6036         isn't set correctly).
6037         * MdiChildContext.cs: New constructor takes the mdi parent so it
6038         doesn't have to be computed and avoids a crash on windows. Draw
6039         the window icon properly, and allow the text to be seen.
6040         * Form.cs: Use new MdiChildContext constructor. Make sure the
6041         child context isn't null in wndproc.
6042         * TabControl.cs: Don't set focus, this is muddling keyboard
6043         behavoir. Expand the tab rows when a window size increase will
6044         allow extra tabs to be seen. Don't allow tabs smaller than the
6045         width of a window to be scrolled out of view.
6046         * TreeNode.cs:
6047         * TreeView.cs: Use measure string to calculate a nodes width, the
6048         width is cached and only updated when the text or the font is
6049         changed. Don't check for expand/collapse clicks on the first level
6050         nodes if root lines are disabled.
6051         
6052 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6053
6054         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6055
6056 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6057
6058         * DataGridBoolColumn.cs: fixes warning
6059
6060 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6061
6062         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6063         to match more to match more precisely the MS Net behavior
6064
6065 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6066
6067         * Hwnd.cs: Added field to track if window is mapped
6068         * XplatUIX11.cs: 
6069           - Unmap windows if they become 0-size, re-map when 
6070             they are >0 again; fixes #76035
6071           - Re-set our error handler after initializing X11Desktop
6072             to override any error handlers Gtk or whatever was called
6073             may have set.
6074
6075 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6076
6077         * CheckedListBox.cs: Removed unused vars
6078         * ListView.cs: Fixed signatures
6079         * RichTextBox.cs: Removed unused vars
6080         * TextBoxBase.cs: Removed unused vars
6081         * XplatUIWin32.cs: Removed unused vars
6082         * XplatUIX11.cs: Removed unused vars
6083         * XplatUI.cs: Updated version and date to latest published
6084
6085 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6086
6087         * Cursor.cs: Added private .ctor to work around a bug in
6088           resourceset (Thanks to Geoff Norton for the help on this)
6089         * SplitterEventArgs.cs: Made fields accessible so we don't
6090           waste boatloads of objects and can reuse the same one
6091           in Splitter
6092         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6093           any captions and borders when generating screen coordinates
6094         * Splitter.cs: Reimplemented control, now fully complete, uses
6095           rubberband drawing, supports and obeys all properties, has
6096           proper cursors
6097
6098 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6099
6100         * Form.cs (Form): Setup default values for autoscale and
6101         autoscale_base_size;  Make these instance variables, not static
6102         variables. 
6103
6104         (OnLoad): on the first load, adjust the size of the form.
6105
6106 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6107
6108         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6109           width argument to DrawReversibleRectangle()
6110         * XplatUIWin32.cs, XplatUIX11.cs: 
6111           - Implemented width for DrawReversibleRectangle()
6112           - Added logic to DrawReversibleRectangle that recognizes a zero
6113             width or height and only draws a line in that situation
6114         
6115 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6116
6117         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6118         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6119         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6120           method (it uses our FosterParent window to get a graphics context)
6121
6122 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6123
6124         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6125           and SetWindowBackground methods
6126         * Control.cs:
6127           - Setting proper ControlStyles
6128           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6129             EraseWindowBackground, instead we draw the window background
6130             ourselves in PaintControlBackground. This behaviour is
6131             required to match MS, where, when OnPaintBackground is not
6132             called, the background is not drawn.
6133           - Removed unneeded Refresh() in set_Text
6134         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6135         * XplatUIX11.cs:
6136           - Created DeriveStyles method to translate from CreateParams to
6137             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6138             matches FormBorderStyle enum values)
6139           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6140             style calculations into single DeriveStyles method
6141           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6142             from redrawing the whole window on any resize or expose.
6143           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6144             all styles were applied to our whole/client window appropriately
6145           - Removed EraseWindowBackground() and SetWindowBackground() methods
6146           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6147             no longer clear/redraw the background through X
6148           - Removed handling of erase_pending bit, we have no use for it (or
6149             so it seems)
6150         * XplatUIOSX.cs:
6151           - Removed generation and handling of WM_ERASEBKGND message
6152           - Removed EraseWindowBackground() and SetWindowBackground() methods
6153           - Removed handling of hwnd.ErasePending flag
6154         * XplatUIWin32.cs:
6155           - Removed EraseWindowBackground() and SetWindowBackground() methods
6156           - We no longer call EraseWindowBackground on PaintEventStart, we 
6157             ignore the fErase flag, erasing is handled in Control in the
6158             background handler
6159         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6160           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6161           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6162           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6163           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6164           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6165           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6166
6167 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6168
6169         * PropertyGrids.cs: Get sub properties
6170         * PropertyGridView.cs: Fix drawing code
6171
6172 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6173
6174         * ListBox.cs: Fixes 76383
6175
6176 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6177
6178         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6179         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6180         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6181
6182
6183 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6184
6185         * ComboBox.cs: Fixes border drawing
6186
6187 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6188
6189         * MimeIcon.cs: Ignore errors if the file can not be read.
6190
6191 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6192
6193         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6194          - Fixed border calculations
6195          - Fixed horizontal scrolling in single column listboxes
6196          - Fixed drawing issues
6197
6198 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6199
6200         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6201           FormBorderStyle enum
6202         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6203           code to determine FormBorderStyles from CreateParams
6204         * Form.cs:
6205           - Fixed bug where we'd set the wrong window styles if we were
6206             not creating an MDI window
6207           - Added call to XplatUI.SetBorderStyle when form borders are set
6208         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6209         * Hwnd.cs:
6210           - Removed obsolete edge style
6211           - Switched from BorderStyle to FormBorderStyle
6212         
6213 2005-10-10  Jackson Harper  <jackson@ximian.com>
6214
6215         * Form.cs: Use the property to get the window handle instead of
6216         accessing it directly. Prevents a null reference exception.
6217
6218 2005-10-10  Jackson Harper  <jackson@ximian.com>
6219
6220         * TreeView.cs: Don't adjust the rect given to DrawString now that
6221         our libgdiplus draws correctly.
6222
6223 2005-10-08  Jackson Harper  <jackson@ximian.com>
6224
6225         * TreeView.cs: Don't try to find the clicked on node if there are
6226         no nodes in the tree.
6227
6228 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6229
6230         * RichTextBox.cs:
6231
6232           restore
6233
6234 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6235
6236         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6237           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6238           ErrorProvider.cs:
6239           Use ResPool for brushes and dispose System.Drawing objects that
6240           are not used anymore.
6241
6242 2005-10-07  Jackson Harper  <jackson@ximian.com>
6243
6244         * MdiChildContext.cs: Use the new borders instead of drawing them
6245         ourselves.
6246
6247 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6248
6249         * Calling UpdateBounds after changing the window's BorderStyle 
6250         since the style can change the ClientSize
6251
6252 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6253
6254         * Control.cs: Made PaintControlBackground virtual
6255         * Panel.cs: Overriding PaintControlBackground instead of using paint
6256           event; paint event method was interfering with 'real' users of the
6257           event.
6258
6259 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6260
6261         * ThemeWin32Classic.cs: remove border drawing since it is handled
6262         by the base control class now and was causing double border drawing.
6263
6264 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6265
6266         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6267           but it does seem to match MS behaviour. This fixes bug #75324
6268
6269 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6270
6271         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6272           somewhat hackish looking
6273
6274 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6275
6276         * TextBoxBase.cs:
6277           - We now accept Enter even if AcceptEnter is false, if the containing
6278             form does not have an AcceptButton configured (fixes bug #76355)
6279           - Calculations are now fixed to no longer use Width/Height, but
6280             ClientSize.Width/Height, since we now support borders (this was
6281             a result of fixing borders and therefore bug #76166)
6282           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6283             true (fixes bug #76354)
6284         
6285 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6286
6287         * Control.cs: 
6288           - Defaulting BorderStyle and setting it in XplatUI when our window 
6289             is created
6290           - Added enum check to InternalBorderStyle setter
6291         * XplatUIX11.cs: 
6292           - Added drawing of window borders
6293           - Now properly calculates WM decorations offset for toplevel 
6294             windows (fixes bug #74763)
6295         * XplatUIWin32.cs: 
6296           - Implemented BorderStyles for windows (we're letting win32 draw 
6297             the border for us)
6298           - Fixed the signature for SetWindowLong
6299         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6300           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6301           setting borders
6302         * UpDownBase.cs: Remove drawing of borders, this is handled by
6303           the driver, outside the client area
6304         * ListView.cs: Removed bogus border calculations. The control should
6305           be oblivious to borders, since those are not part of the client
6306           area. 
6307         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6308         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6309           drawing code
6310
6311 2005-10-06  Jackson Harper  <jackson@ximian.com>
6312
6313         * MdiChildContext.cs: Clear out the old virtual position remove
6314         all the unneeded calls to CreateGraphics.
6315
6316 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6317
6318         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6319
6320 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6321
6322         * Form.cs: 
6323           - Added loading and setting of our new default icon
6324           - Only set icon if window is already created
6325
6326 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6327
6328         * Label.cs:
6329           - Do not explicitly set the foreground and background colors, to
6330             allow inheriting from parents (fixes #76302)
6331           - Use Control's InternalBorderStyle property to deal with borders
6332
6333 2005-10-06  Jackson Harper  <jackson@ximian.com>
6334
6335         * MdiChildContext.cs: Use the new xplatui function to draw a
6336         reversible rect.
6337
6338 2005-10-06  Jackson Harper  <jackson@ximian.com>
6339
6340         * Form.cs: Add the parent before creating the child context cause
6341         we need the parent when setting up the child.
6342
6343 2005-10-06  Jackson Harper  <jackson@ximian.com>
6344
6345         * FolderBrowserDialog.cs: redo the tree population code so a
6346         second thread isn't used. Should be a lot faster and more stable
6347         now.
6348
6349 2005-10-05  Jackson Harper  <jackson@ximian.com>
6350
6351         * TreeView.cs: There are no expand/collapse boxes if the node has
6352         no children.
6353
6354 2005-10-05  Jackson Harper  <jackson@ximian.com>
6355
6356         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6357
6358 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6359
6360         * FileDialog.cs: Fix InitialDirectory
6361
6362 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6363
6364         * ComboBox.cs:
6365                 - Fixes changing between styles
6366                 - Fixes simple mode
6367                 - Fixes last item crashing when navigating with keyboard
6368
6369 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6370
6371         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6372
6373 2005-10-05  Jackson Harper  <jackson@ximian.com>
6374
6375         * TreeView.cs: If updating the root node do a full refresh.
6376         * TreeNode.cs: The root node should be expanded by default. Also
6377         added a utility prop to tell if we are the root node.
6378         * TreeNodeCollection.cs: Only refresh if the node we are being
6379         added to is expanded. Also added a comment on a potential
6380         optimization.
6381         
6382 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6383
6384         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6385           in dispose method. Fixes #76330
6386
6387 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6388
6389         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6390
6391                 - Implements vertical and horizontal scrolling using XplatUI
6392                 - Fixes keyboard navagation
6393                 - Fixes EnsureVisible
6394                 - Drawing fixes
6395                 - Handles and draws focus properly
6396
6397
6398 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6399
6400         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6401           Create handle. NET_2_0: Destroy handle when value is null.
6402
6403 2005-10-03  Jackson Harper  <jackson@ximian.com>
6404
6405         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6406         revert and a new patch to prevent the thumb from refreshing so
6407         much.
6408
6409 2005-10-02  Jackson Harper  <jackson@ximian.com>
6410
6411         * ScrollBar.cs: Don't update position if it hasn't actually
6412         changed. This occurs when you hold down the increment/decrement
6413         buttons and the thumb gets to the max/min.
6414
6415 2005-10-01  Jackson Harper  <jackson@ximian.com>
6416
6417         * Form.cs:
6418         * MdiChildContext.cs:
6419         * MdiClient.cs: Implement ActiveMdiChild in Form.
6420
6421 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6422
6423         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6424
6425 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6426
6427         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6428           be found
6429
6430 2005-09-30  Jackson Harper  <jackson@ximian.com>
6431
6432         * ListBox.cs: Don't do a full refresh unless some data has
6433         actually changed.
6434
6435 2005-09-30  Jackson Harper  <jackson@ximian.com>
6436
6437         * TreeView.cs: Make sure that the checkboxes size is factored in
6438         even when not visible.
6439
6440 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6441
6442         * FileDialog.cs: Fix Jordi's build break
6443
6444 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6445
6446         * FileDialog.cs: 
6447                 - Use standard the Windows colours for the combobox as espected
6448                 - Dispose objects that use resouces when no longer need them
6449
6450 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6451
6452         * X11DesktopColors.cs: Initial incomplete implementation
6453         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6454
6455 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6456
6457         * Theme.cs: 
6458           - Switched Theme color names to match the names defined in 
6459             System.Drawing.KnownColors. Life's hard enough, no need to make 
6460             it harder.
6461           - Added setters to all theme color properties so themes can set
6462             their color schemes. The setters also propagate the color changes
6463             to System.Drawing.KnownColors via reflection
6464         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6465           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6466           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6467           use the new, more logical theme color names
6468         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6469           post-NT colors
6470         * ThemeWin32Classic.cs:
6471           - Removed code to set the old classic Windows colors. Instead it
6472             now relies on the colors returned by System.Drawing.KnownColors
6473             which will be either modern static colors (Unix) or colors
6474             read from the user's configuration (Win32)
6475           - Updated to use the new, more logical theme color names
6476           - Switched DataGrid drawing code to use only Theme colors instead of
6477             a mix of System.Drawing.KnownColors and Theme colors
6478           - DrawFrameControl(): Removed code that fills the button area, the
6479             fill would overwrite any previous fill done by a control. This
6480             fixes bug #75338 
6481           - Added DrawReversibleRectangle() stub
6482         * ScrollableControl.cs: Set visible state to false when scrollbars
6483           are removed (pdn fix)
6484         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6485           DrawReversibleRectangle() method to allow drawing primitive 
6486           'rubber bands'
6487         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6488
6489 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6490
6491         * ImageList.cs: Add(Icon): Create handle.
6492
6493 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6494
6495         * ListView.cs:
6496         * ThemeWin32Classic.cs:
6497                 - Fixes detail mode
6498                 - Sets clippings
6499                 - Issues with drawing
6500
6501 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6502
6503         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6504           source has to be the ImageList.
6505
6506 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6507
6508         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6509
6510 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6511
6512         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6513
6514 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6515
6516         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6517
6518 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6519         * GridItem.cs: Fixed TODOs
6520         * GridItemCollection.cs: Added ICollection interface
6521
6522 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6523
6524         * ImageList.cs: Resize icons when needed.
6525
6526 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6527
6528         * ListViewItem.cs
6529                 - Fixes GetBounds and returns on screen rects
6530         * ListView.cs:
6531                 - Fixes vertical and horzintal scrolling of items
6532         * ThemeWin32Classic.cs:
6533                 - Fixes drawing
6534                 
6535 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6536
6537         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6538
6539 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6540
6541         * ImageList.cs: Added comments about handle creation. Moved Handle,
6542           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6543           Handle is created in Add methods.
6544
6545 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6546          
6547         * DataGridDrawingLogic.cs: 
6548                 - Takes rows into account on Colum calculations
6549                 - Returns the column when clickig
6550         * DataGrid.cs:
6551                 - Fixes default HitTestInfo values
6552                 - Fixes HitTestInfo.ToString
6553                 - Fixes ResetBackColor          
6554         
6555 2005-09-28  Jackson Harper  <jackson@ximian.com>
6556
6557         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6558         sizing or cursor changes). Also added some temp code to draw the
6559         titlebars text (Makes dev a little easier).
6560
6561 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6562
6563         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6564
6565 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6566          
6567         * ListBox.cs: Fixes bug 76253
6568
6569 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6570
6571         * ImageList.cs: Added comments about the current implementation. Added
6572           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6573           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6574           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6575           with Bitmap.LockBits for better performance. Revised the whole file to
6576           match MS.NET behaviour and provide better performance. Non-public
6577           interface members are calling public members even when they throw
6578           NotSupportedException for better maintainability. Moved ColorDepth,
6579           ImageSize, ImageStream and TransparentColor implementations to
6580           ImageCollection for better performance as these properties are not used
6581           by ImageList.
6582         * ImageListStreamer.cs: Added a new internal constructor that takes an
6583           ImageList.ImageCollection and serializes Images based on
6584           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6585           match ImageList property name.
6586
6587 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6588
6589         * ListBox.cs: Fixes IndexFromPoint for last item
6590
6591 2005-09-27  Jackson Harper  <jackson@ximian.com>
6592
6593         * Form.cs: Set the position of new mdi children correctly.
6594
6595 2005-09-27  Jackson Harper  <jackson@ximian.com>
6596
6597         * MdiClient.cs: New mdi children need to be added to the back of
6598         the controls collection so the zorder is set correctly. Also add a
6599         count of all the child windows that have been created.
6600
6601 2005-09-27  Jackson Harper  <jackson@ximian.com>
6602
6603         * Form.cs (CreateParams): Setup MDI forms correctly.
6604
6605 2005-09-27  Jackson Harper  <jackson@ximian.com>
6606
6607         * MdiChildContext.cs:
6608         * MonthCalendar.cs:
6609         * UpDownBase.cs:
6610         * ListBox.cs:
6611         * ListView.cs:
6612         * TextBoxBase.cs:
6613         * TreeView.cs:
6614         * ScrollableControl.cs:
6615         * ComboBox.cs: Add implicit controls using the new implict control
6616         functionality in ControlCollection. Also try to block multiple
6617         control add in a suspend/resume layout to save some cycles.
6618         
6619 2005-09-27  Jackson Harper  <jackson@ximian.com>
6620
6621         * Control.cs: Add functionality to the controls collection to add
6622         'implicit controls' these are controls that are created by the
6623         containing control but should not be exposed to the user. Such as
6624         scrollbars in the treeview.
6625         * Form.cs: The list var of the ControlsCollection is no longer
6626         available because of the potential of implicit controls getting
6627         ignored by someone accessing the list directly.
6628
6629 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6630
6631         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6632           loose it's parent. (Fixed bug introduced in r49103 when we added
6633           setting the child parent to null on Remove)
6634
6635 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6636
6637         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6638         * Splitter.cs: Added missing attributes for BorderStyle property.
6639         * TextBoxBase.cs: Marked Calculate* methods internal.
6640         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6641         MS.NET.
6642
6643 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6644          
6645         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6646
6647 2005-09-25  Jackson Harper  <jackson@ximian.com>
6648
6649         * TreeView.cs: Update the node bounds correctly regardless of
6650         whether the node is visible.
6651
6652 2005-09-25  Jackson Harper  <jackson@ximian.com>
6653
6654         * ImageList.cs: Don't dispose the image after it is added to the
6655         image list. Only reformat images that need to be resized.
6656
6657 2005-09-25  Jackson Harper  <jackson@ximian.com>
6658
6659         * ImageList.cs: Don't set the format when changing the image.
6660
6661 2005-09-25  Jackson Harper  <jackson@ximian.com>
6662
6663         * TreeView.cs: We can't just assume the node has a font. Use the
6664         treeviews font if no node font is available.
6665
6666 2005-09-25  Jackson Harper  <jackson@ximian.com>
6667
6668         * TreeView.cs: Allow the scrollbars to be reset with negative
6669         values.
6670         - Don't add scrollbars to negative sized windows.
6671
6672 2005-09-23  Jackson Harper  <jackson@ximian.com>
6673
6674         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6675         old Mono.Posix. Also remove some stray code that shouldn't have
6676         been committed.
6677
6678 2005-09-23  Jackson Harper  <jackson@ximian.com>
6679
6680         * TreeView.cs: Attempt at proper sizing of the horizontal
6681         scrollbar. Also don't resize the scrollbars unless they are
6682         visible.
6683
6684 2005-09-23  Jackson Harper  <jackson@ximian.com>
6685
6686         * TreeView.cs: We don't need to expand the invalid area when the
6687         selection changes, as this is all drawn in the node's bounding
6688         box. The area needs to be expanded (previous typo was contracting
6689         it) when the focus rect moves.
6690
6691 2005-09-23  Jackson Harper  <jackson@ximian.com>
6692
6693         * TreeView.cs: Display the selection box under the correct
6694         circumstances. We were rendering white text with no selection box
6695         before.
6696
6697 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6698
6699         * TextControl.cs(Split): Now updates selection start/end if it points 
6700           into a line that's being split. Fixes a FIXME and bug #75258
6701
6702 2005-09-23  Jackson Harper  <jackson@ximian.com>
6703
6704         * Binding.cs:
6705         * ListControl.cs: Don't use the path when retrieving binding
6706         managers from the binding context. My bat sense tells me that the
6707         path is only used on insertion.
6708
6709 2005-09-22  Jackson Harper  <jackson@ximian.com>
6710
6711         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6712
6713 2005-09-22  Jackson Harper  <jackson@ximian.com>
6714
6715         * Splitter.cs: There are special cursors used for splitting.
6716         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6717
6718 2005-09-22  Jackson Harper  <jackson@ximian.com>
6719
6720         * Splitter.cs: Change the cursor appropriately when the splitter
6721         is moused over, so the user actually knows there is a splitter
6722         there.
6723
6724 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6725
6726        * Label.cs : Fix ToString method to give same output as MS.NET
6727
6728 2005-09-22  Jackson Harper  <jackson@ximian.com>
6729
6730         * TreeView.cs: Create the scrollbars when the handle is created
6731         and add them right away, just make them invisble. Also account for
6732         the window being shrunk vertically to the point that the vert
6733         scrollbar needs to be added.
6734         - Remove some 0.5 adjustments to get around anti aliasing issues.
6735         
6736 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6737          
6738         * MainMenu.cs: Fixes default value
6739         * MenuItem.cs: Fixes default value
6740
6741 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6742
6743         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6744
6745 2005-09-21  Jackson Harper  <jackson@ximian.com>
6746
6747         * Control.cs: Don't try to set the border style on the window if
6748         it hasn't been created. When the window is created the border
6749         style will be used.
6750
6751 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6752
6753         * Control.cs (Update): Don't call XplatUI if we don't have a
6754           window handle yet
6755
6756 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6757
6758         * ContainerControl.cs: Instead of throwing an exception, print
6759           a one-time warning about Validate not being implemented
6760         * XplatUIWin32.cs: Removed debug output
6761
6762 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6763
6764         * Control.cs: Only set XplatUI background if we expect the windowing
6765           system to handle the background. This stops controls that draw their
6766           own background from flickering
6767
6768         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6769           creation. This allows, amongst other things, using MWF X11 windows 
6770           with OpenGL.
6771
6772 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6773
6774         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6775           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6776           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6777           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6778           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6779           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6780           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6781           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6782           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6783           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6784           GridColumnStylesCollection.cs, 
6785           IDataGridColumnStyleEditingNotificationService.cs,
6786           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6787           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6788           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6789           TreeNodeCollection.cs, AmbientProperties.cs, 
6790           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6791           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6792           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6793           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6794           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6795           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6796           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6797           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6798           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6799           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6800           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6801           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6802           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6803           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6804           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6805           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6806           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6807           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6808           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6809           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6810           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6811           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6812           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6813           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6814           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6815           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6816           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6817           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6818           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6819           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6820           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6821           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6822           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6823           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6824           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6825           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6826           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6827
6828 2005-09-21  Jackson Harper  <jackson@ximian.com>
6829
6830         * TreeNode.cs: Call Before/After Expand not Collapse when
6831         expanding.
6832
6833 2005-09-20  Jackson Harper  <jackson@ximian.com>
6834         
6835         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6836
6837 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6838          
6839         * ListViewItem.cs:
6840                 - Fixes bug 76120
6841                 - Fixes proper storing of subitems
6842                 - Fixes not updated items
6843
6844 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6845
6846         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6847           things if our window handle isn't created yet. Also disabled 
6848           debug for TextBoxBase
6849
6850 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6851
6852         * MenuAPI.cs: Remove filtering of events to allow menu usage
6853
6854 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6855
6856         * Cursor.cs: Allow null to be passed to Cursor.Current.
6857
6858 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6859
6860         * ThemeWin32Classic.cs:
6861           - Change some private methods/fields to protected virtual so that 
6862             they can be accessed and overriden in derived classes
6863           - First refactoring of some methods. Derived themes now don't 
6864             need to duplicate the complete code from ThemeWin32Classic
6865         * ThemeNice.cs:
6866           - Added nice StatusBar
6867           - Derive from ThemeWin32Classic and not Theme
6868           - Removed duplicate ThemeWin32Classic code
6869
6870 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6871
6872         * Control.cs (ControlCollection.Add): If the value null is passed
6873         the control is ignored. 
6874
6875         Optimize this loop.
6876
6877 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6878
6879         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6880           PostQuitMessage state.
6881         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6882
6883 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6884
6885         * Application.cs: Our constructor will never get called, move 
6886           initialization to fields; fixes bug #75933
6887
6888 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6889
6890         * FileDialog.cs :
6891                 - Allow files to be selected properly using file name
6892                 combo box.
6893                 - Add ability to change diretory (absolute / relative)
6894                 using file name combo box.
6895
6896 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6897          
6898         * ListBox.cs: 
6899                 - Fixes Multicolumn listboxes item wrong calculations
6900                 - Allows to click when only one item is in the listbox
6901                 - Fixes crash when no items using keyboard navigation
6902
6903 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6904
6905         * ComboBox.cs: Reverted almost everything from the latest patch which
6906           broke ComboBox
6907
6908 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6909         
6910         * ToolTip.cs:
6911                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6912         * ComboBox.cs:
6913                 - When DropDownStyle is Simple, it does not show scrollbar 
6914                 to the last item of the list.
6915                 - When DropDownStyle is Simple, it crashed when the list was 
6916                 scrolled down with the down cursor key.
6917                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6918                 selected item was not shown.
6919                 - The position of the selected item was not preserved when 
6920                 the next dropdown happened.
6921         * ThemeWin32Classic.cs:
6922                 - Items were wrapped at the right end.
6923         * CheckedListBox.cs:
6924                 - Fixed Add method
6925         * ListBox.cs:
6926                 - Items should be fully shown.
6927                 - When resizing and vertical scrollbar disappeared, the item 
6928                 of index 0 should be on the top of the list.
6929                 - GetItemRectangle should consider the size of ver. scrollbar
6930         * StatusBar.cs:
6931                 - SizingGrip area should not be allocated when it is not 
6932                 displayed.
6933                 - Now it reflects MinWidth of the containing panel and 
6934                 fixed a crash that happens when its width becomes so small.
6935
6936 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6937
6938         * CheckedListBox.cs: Fixes bug 76028
6939         * ListBox.cs: Fixes bug 76028
6940
6941 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6942
6943         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6944         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6945
6946 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6947
6948         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6949
6950 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6951
6952         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6953
6954 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6955
6956         * IRootGridEntry.cs: Added
6957         * PropertyGridCommands.cs: Added
6958         * PropertiesTab.cs: Added missing methods and property
6959         * PropertyGridView.cs: Made class internal
6960         * PropertyGridTextBox.cs: Made class internal
6961
6962 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6963
6964         * MimeIcon.cs: Try to check some other environment variables
6965           if "DESKTOP_SESSION" returns "default"
6966
6967 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6968
6969         * ThemeNice.cs: Corrected background colors (e.g. menus)
6970         * ColorDialog.cs: Use correct background colors for controls
6971
6972 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6973
6974         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6975
6976 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6977
6978         * RichTextBox.cs: Added initial implementation
6979         * lang.cs: Removed. Was accidentally checked in long time ago
6980         * TODO: Removed. Contents were obsolete
6981
6982 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6983                                                                                 
6984         * PropertiesTab.cs : Added
6985
6986 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6987                                                                                 
6988         * PropertyGrid.cs : Update
6989         * PropertyGridView.cs : Update
6990         * System.Windows.Forms.resx : Added images and strings
6991
6992 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6993
6994         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6995  
6996 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6997
6998         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6999           a busy loop right after the Ungrab the X11 display is otherwise 
7000           blocked
7001
7002 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7003
7004         * ThemeWin32Classic.cs: Optimise the use of clipping
7005
7006 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7007
7008         * DataGrid.cs: fixes recursion bug
7009
7010 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7011
7012         * ThemeNice.cs: 
7013           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7014           - Cleanup
7015
7016 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7017
7018         * ThemeNice.cs: Draw nice ProgressBars
7019
7020 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7021
7022         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7023
7024         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7025         bug finder.
7026
7027 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7028
7029         * ThemeNice.cs:
7030           - Added nicer menu drawing
7031           - Updated DrawTab
7032           - some refactoring
7033
7034 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7035
7036         * CreateParams.cs (ToString): Made output match MS
7037         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7038             handle is already created (to avoid forcing window creation)
7039         * XplatUIX11.cs: Set window text to caption after creating window,
7040           in case Text was set before window was created
7041         * Form.cs: Use this.Text instead of a static string as caption
7042
7043 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7044
7045         * NotifyIcon.cs: Don't set the window to visible; this screws
7046           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7047           OnPaint without a bitmap)
7048         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7049           happen very often anyway; we could add the check to the WM_PAINT 
7050           event generation code
7051
7052 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7053
7054         * NotifyIcon.cs: Fill the icon area with a background color, to 
7055           avoid 'residue' when transparent icons are drawn
7056         * XplatUIX11.cs:
7057           - Handle whole_window == client_window when destroying windows
7058           - SystrayAdd(): Set client_window to whole_window value to
7059             get mouse and other events passed to NotifyIcon
7060
7061 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7062
7063         * Form.cs: Set proper default for Opacity property
7064         * NotifyIcon.cs:
7065           - ShowSystray(): Don't bother creating telling the OS
7066             about the systray item if no icon is provided
7067           - Now handles WM_NCPAINT message to deal with whole/client window
7068             split
7069           - Create window as visible to not get caught by Expose optimization
7070         * Hwnd.cs: Removed debug message
7071         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7072           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7073             PaintEventStart/End to use new client argument
7074         * TextBoxBase.cs:
7075           - Commented out debug messages
7076           - Switched PaintEventStart/End to use new client argument
7077         * XplatUI.cs: Added client window bool to PaintEventStart()/
7078           PaintEventEnd() calls, to support drawing in non-client areas
7079         * XplatUIDriver.cs: 
7080           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7081             calls, to support drawing in non-client areas
7082           - Added conditional compile to allow using MWF BeginInvoke 
7083             on MS runtime
7084         * XplatUIX11.cs:
7085           - Added some conditional debug output
7086           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7087             whole/client window split
7088           - Implemented handling of client argument to PaintEventStart()/End()
7089         * Control.cs:
7090           - Throw exception if BeginInvoke() is called and the window handle
7091             or one of the window's parent handles is not created
7092           - Added conditional compile to allow using MWF BeginInvoke on
7093             MS runtime
7094           - get_Parent(): Only sets parent if handle is created. This avoids
7095             forcing window handle creation when parent is set.
7096           - Now fires Layout and Parent changed events in proper order
7097           - Switched to use Handle instead of window.Handle for Z-Order setting,
7098             the get_Parent() patch above causes us to possibly get null for 'window'
7099           - Implemented handling of client argument to PaintEventStart()/End()
7100           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7101             default handling)
7102           - Now sends a Refresh() to all child windows when Refresh() is called
7103
7104 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7105
7106         * Form.cs: Added (non-functional) Opacity property
7107         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7108
7109 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7110         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7111           use export MONO_THEME=nice to activate it.
7112           Currently supported controls:
7113           - Button
7114           - ComboBox
7115           - ScrollBar
7116           - TabControl (TabAlignment.Top only, other will follow)
7117         * ThemeEngine.cs: Add theme nice
7118         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7119           if enabled
7120
7121 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7122
7123         * Splitter.cs: Resize docked control and its neighbor.
7124
7125 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7126         -- Making Windows with Menus layout correctly --
7127         * Form.cs : The first leg of the fix
7128                 Menu setter - adjust Client Size as needed to make space for the menu
7129                 SetClientSizeCore - doesn't call base version to be able to pass the 
7130                         menu handle to XplatUI.CalculateWindowRect
7131         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7132         * XplatUIX11.cs: The critical second leg of the fix
7133                 GetWindowPos needs to use a recalculated client_rect
7134                 so that resizing the window doesn't break layout of child controls. 
7135                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7136                 Lots of \t\n killed
7137
7138 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7139
7140         * Label.cs: Now properly recalculates width and height on Font and Text
7141           changes if AutoSize is set
7142
7143 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7144         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7145
7146 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7147
7148         * ImageList.cs: Makes ToString method compatible with MS
7149
7150 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7151
7152         * MenuAPI.cs: fixes bug 75716
7153
7154 2005-08-11 Umadevi S <sumadevi@novell.com>
7155         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7156
7157 2005-08-11 Umadevi S <sumadevi@novell.com>
7158         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7159
7160 2005-08-10  Umadevi S <sumadevi@novell.com>
7161         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7162
7163 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7164
7165         * Menu.cs: fixes bug 75700
7166         * MenuAPI.cs: fixes navigation issues
7167
7168 2005-08-09  Umadevi S <sumadevi@novell.com>
7169         * CheckedListBox.cs - simple fix for GetItemChecked.
7170
7171 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7172
7173         * ComboBox.cs: Serveral fixes
7174         * ListBox.cs: Serveral fixes
7175
7176 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7177
7178         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7179         * ListBox.cs: Fixes FindString methods
7180
7181 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7182
7183         * DataGrid.cs: fixes bugs exposed by new tests
7184
7185 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7186
7187         * Mime.cs: Compile Mono assembly references only if compiling
7188           with Mono (Allows to build with VS.Net again)
7189
7190 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7191
7192         * Control.cs (PaintControlBackground): Draw background image
7193         corrrectly.
7194         (CheckForIllegalCrossThreadCalls): Stubbed.
7195         
7196         * Form.cs (OnCreateControl): Center when should be centered.
7197         
7198         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7199
7200 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7201
7202         * Binding.cs: Binding to properties should be case unsensitive
7203
7204 2005-07-18 vlindos@nucleusys.com
7205
7206         * DataGrid.cs: fixes setmember order
7207
7208 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7209
7210         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7211         * FileDialog.cs: FileDialog is now resizable and uses the new
7212           MimeIconEngine
7213
7214 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7215
7216         * DataGridTextBoxColumn.cs: default value
7217         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7218         * GridTableStylesCollection.cs: fixes checking MappingName
7219         * DataGridDrawingLogic.cs: fixes drawing logic issues
7220         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7221         * DataGrid.cs: fixes    
7222
7223 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7224
7225         * MimeGenerated.cs: Use case sensitive comparer for
7226           NameValueCollections
7227
7228 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7229
7230         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7231         * ThemeWin32Classic.cs: bug fixes, code refactoring
7232         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7233         * DataGrid.cs: bug fixes, code refactoring
7234         * DataGridTextBox.cs: bug fixes, code refactoring
7235         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7236         * Theme.cs:  bug fixes, code refactoring
7237
7238 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7239
7240         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7241           and other text box usage
7242
7243 2005-07-01  Jackson Harper  <jackson@ximian.com>
7244
7245         * TabControl.cs: Make sure the bottom of the tab covers the pages
7246         border.
7247
7248 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7249
7250         * Form.cs (ShowDialog): Assign owner of the dialog
7251         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7252           might have been moved to a tag with different height
7253
7254 2005-06-30  Jackson Harper  <jackson@ximian.com>
7255
7256         * Form.cs: Don't create an infinite loop when setting focus
7257         * MenuItem.cs: Don't dirty the parents if we don't have any
7258
7259 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7260
7261         * LibSupport.cs: Rename
7262
7263 2005-06-29  Peter Bartok  <pbartok@novell.com>
7264
7265         * TextBoxBase.cs: Re-align caret after deleting a character
7266         * TextControl.cs:
7267           - DeleteChars(): Ensure that tag covers the provided position
7268           - StreamLine(): Drop reference for dropped tag
7269
7270 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7271
7272         * TextControl.cs: 
7273           - Selections now work properly, anchoring at the initial location
7274             and properly extending in either direction (SetSelectionToCaret(),
7275             SetSelectionStart() and SetSelectionEnd())
7276           - No longer redraws the whole control on selection change, now
7277             calculates delta between previous and new selection and only
7278             invalidates/redraws that area
7279           - Fixed FindPos() math off-by-one errors
7280           - Changed DeleteChars() to verify the provided tag covers the
7281             provided position, selections may have a tag that doesn't cover
7282             the position if the selection is at a tag border
7283           - Fixed off-by-one errors in DeleteChars()
7284           - Added missing streamlining check in DeleteChars() to remove
7285             zero-length tags
7286           - Implemented Invalidate() method, now properly calculates exposures
7287             between two given lines/positions
7288           - Implemented SetSelection()
7289           - Obsoleted and removed FixupSelection()
7290           - Improved RecalculateDocument() logic, removing code duplication
7291
7292 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7293
7294         * LibSupport.cs: changes to match different input/output arguments.
7295
7296 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7297
7298         * LibSupport.cs: added libsupport.so init routine.
7299
7300 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7301         
7302         * ControlBindingsCollection.cs
7303                 - Throws an exception on null datasource when adding
7304                 - Checks for duplicated bindings when adding
7305
7306 2005-06-28  Jackson Harper  <jackson@ximian.com>
7307
7308         * TreeView.cs (OnKeyDown): Support left and right properly
7309         (navigates as well as expanding and collapsing.
7310         - Add support for Multiply, this expands all the selected nodes
7311         children.
7312         - Fix some tabbing.
7313
7314 2005-06-28  Jackson Harper  <jackson@ximian.com>
7315
7316         * TreeView.cs: Implement keyboard navigation, currently supports,
7317         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7318         support for toggling checkboxes with the space bar.
7319
7320 2005-06-28  Jackson Harper  <jackson@ximian.com>
7321
7322         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7323         tree.
7324
7325 2005-06-28  Jackson Harper  <jackson@ximian.com>
7326
7327         * TreeView.cs: Add missing event.
7328
7329 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7330
7331         * TextControl.cs:
7332           - Made line ending size configurable (now allows for counting 
7333             lineendings as \n or \r\n)
7334           - Added margin to viewport to keep caret visible on right side
7335           - Fixed translation routines for line/pos to documentpos to consider
7336             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7337           - Fixed some line-endings to be unix style
7338           - Fixed Document.FormatText to perform it's calculations 1-based
7339           - Added descriptions for a few methods that might otherwise get 
7340             used wrong
7341           - Added NOTE section with some basic conventions to remember at 
7342             the top of the file
7343           - Major fixup for RichTextBox selection drawing:
7344             * Fixed crashes when multiple tags on a single line were selected
7345             * fixed selection box drawing not overlaying text
7346             * fixed bogus offset calculation for tags not starting at index 1
7347             * Switched behaviour from using multiple Substrings of a 
7348               StringBuilder.ToString() to using multiple 
7349               StringBuilder.ToString(start, length) statements, hoping this is
7350               faster (kept original version commented out in the code, in case
7351               original version was faster)
7352         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7353           alignment != Left
7354         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7355           call it as well
7356
7357 2005-06-27  Jackson Harper  <jackson@ximian.com>
7358
7359         * TabControl.cs: Move to the left and right with the arrow
7360         keys. These keys don't cycle beyond first and last like
7361         tab. Refresh all the tabs when scrolling them to the left or
7362         right.
7363
7364 2005-06-27  Jackson Harper  <jackson@ximian.com>
7365
7366         * TabControl.cs:
7367           - ToString: Added method
7368           - CreateParams: Remove TODO and comment
7369           - OnKeyDown: Cycle through bounds properly.
7370           - SelectedIndex: Scroll to the right or left if we need to
7371           display the newly selected tab.
7372
7373 2005-06-23  Jackson Harper  <jackson@ximian.com>
7374
7375         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7376         set.
7377
7378 2005-06-23  Jackson Harper  <jackson@ximian.com>
7379
7380         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7381         CTRL-SHIFT-TAB, and HOME, END are there any others?
7382
7383 2005-06-23  Jackson Harper  <jackson@ximian.com>
7384
7385         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7386
7387 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7388         
7389         * DataGridTextBoxColumn.cs: fixes and enhancements
7390         * ThemeWin32Classic.cs: fixes and enhancements
7391         * DataGridBoolColumn.cs:  fixes and enhancements
7392         * DataGridDrawingLogic.cs:  fixes and enhancements
7393         * CurrencyManager.cs: fixes and enhancements
7394         * DataGrid.cs: fixes and enhancements
7395         * DataGridColumnStyle.cs:  fixes and enhancements
7396
7397 2005-06-22  Jackson Harper  <jackson@ximian.com>
7398
7399         * TabControl.cs: Add some missing methods that just call into the
7400         base. Make the TabPageCollection's IList interface behave in the
7401         same manner as the MS implementation.
7402
7403 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7404
7405         * TextControl.cs: Added sanity check
7406         * TextBoxBase.cs: 
7407           - Fixed wrapping behaviour, don't set wrap on single line controls
7408             (this fixes the breakage of colordialog introduced in an earlier
7409              checkin)
7410           - Added rudimentary support for autoscrolling right-aligned controls
7411             (still needs fixing, also, center alignment scroll is missing)
7412
7413 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7414         
7415         * ScrollBar.cs: Fixes thumbpos on Maximum values
7416
7417 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7418         
7419         * PropertyGridView.cs: Pass context information to UITypeEditors 
7420
7421 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7422
7423         * TextBoxBase.cs:
7424           - Now calling PositionCaret with absolute space coordinates
7425           - Enabled vertical scrolling
7426           - Better tracking of scrollbar changes, tied into WidthChange
7427             event
7428           - Improved cursor tracking
7429           - Removed debug output
7430         * TextControl.cs:
7431           - PositionCaret coordinates are now works in absolute space, not 
7432             the canvas
7433           - Improved tracking of document size
7434           - Added events for width and height changes
7435
7436 2005-06-21  Peter Bartok  <pbartok@novell.com>
7437
7438         * Form.cs: Set focus to active control when form is activated
7439         * TextControl.cs: 
7440           - Added word-wrap functionality to RecalculateLine() 
7441           - Added some short function descriptions for VS.Net to aid in
7442             writing dependent controls
7443           - Added Caret property, returning the current coords of the caret
7444           - Added ViewPortWidth and ViewPortHeight properties
7445           - Added Wrap property
7446           - Added CaretMoved event
7447           - Removed some old debug code
7448           - Split() can now create soft splits
7449           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7450           - Added method to format existing text
7451           - Fixed size/alignment calculations to use viewport
7452           - RecalculateDocument now can handle changing line-numbers while
7453             calculating lines
7454
7455         * TextBox.cs:
7456           - Added some wrap logic, we don't wrap if alignment is not left
7457           - Added casts for scrollbar var, base class switched types to
7458             also support RichTextBoxA
7459           - Implemented handling of scrollbar visibility flags
7460
7461         * TextBoxBase.cs:
7462           - Switched scrollbars type to RichTextBoxScrollBars to support
7463             RichTextBox
7464           - Added tracking of canvas width/height
7465           - Switched scrollbars to be not selectable (to keep focus on text)
7466           - Added central CalculateDocument() method to handle all redraw
7467             requirements
7468           - Added ReadOnly support
7469           - Added WordWrap support
7470           - Fixed handling of Enter key (we now treat it as a DialogKey)
7471           - Fixed caret positioning when h or v scroll is not zero
7472           - Fixed placing/generation of vertical scrollbar
7473           - Added CalculateScrollBars() method to allow updating scrollbar
7474             limits and visibility
7475           - Fixed handling of horizontal scroll
7476           - Added handling of vertical scroll
7477           - Implemented auto-'jump' when caret moves to close to a left or
7478             right border and there is text to be scrolled into view (currently
7479             there's the potential for a stack overflow, until a bug in
7480             scrollbar is fixed)
7481
7482 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7483         
7484         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7485
7486 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7487
7488         * Mime.cs:
7489         - added inodes.
7490         - return application/x-zerosize for files with size zero
7491           (if no extension pattern matches).
7492         - check matches collection for strings too.
7493         - return only the first mime type if the name value
7494           collection has more than one mime type.
7495
7496 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7497         
7498         * PropertyGrid.cs: Cleaned up some TODOs
7499         * PropertyGridView.cs: Added support for UITypeEditors
7500
7501 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7502         
7503         * DataGrid.cs: clears cached value
7504
7505 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7506
7507         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7508         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7509         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7510         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7511         
7512 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7513
7514         * ThemeWin32Classic.cs: fixes colour
7515
7516 2005-06-15  Peter Bartok  <pbartok@novell.com>
7517
7518         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7519         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7520         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7521         * Control.cs: Added some MWFCategory and MWFDescription attributes
7522         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7523
7524 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7525
7526         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7527         usage
7528
7529 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7530
7531         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7532         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7533         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7534         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7535         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7536         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7537
7538 2005-06-13  Jackson Harper  <jackson@ximian.com>
7539
7540         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7541         isn't printed when the user enables dropping. (X11 does accept
7542         drops).
7543         
7544 2005-06-13  Jackson Harper  <jackson@ximian.com>
7545
7546         * TreeView.cs: Remove some TODOS.
7547
7548 2005-06-13  Jackson Harper  <jackson@ximian.com>
7549
7550         * Form.cs: Hook into the mdi framework.
7551         * MdiClient.cs: Use the base control collections add method so
7552         parents get setup correctly. Set the default back colour and dock
7553         style.
7554         * MdiChildContext.cs: New class, this bad actor handles an
7555         instance of an MDI window. Right now there is only basic
7556         support. You can drag, close, and resize windows. Minimize and
7557         Maximize are partially implemented.
7558
7559 2005-06-13  Jackson Harper  <jackson@ximian.com>
7560
7561         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7562         freaky when both vals are negative. NOTE: There are probably other
7563         places in XplatUIX11 that this needs to be done.
7564
7565 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7566
7567         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7568         * DataGridColumnStyle.cs: fixes signature
7569
7570 2005-06-12  Jackson Harper  <jackson@ximian.com>
7571
7572         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7573         windows.
7574
7575 2005-06-11  Jackson Harper  <jackson@ximian.com>
7576
7577         * StatusBarPanel.cs: Signature cleanups. Implement
7578         BeginInit/EndInit.
7579
7580 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7581
7582         * DataGridTextBoxColumn.cs: Honors aligment
7583         * GridColumnStylesCollection.cs: Contains is case unsensitive
7584         * GridTableStylesCollection.cs: several fixes
7585         * DataGridTableStyle.cs: default column creation
7586         * DataGridDrawingLogic.cs: fixes
7587         * CurrencyManager.cs: ListName property
7588         * DataGrid.cs: multiple styles support
7589         * DataGridColumnStyle.cs: fixes
7590         
7591
7592 2005-06-10  Peter Bartok  <pbartok@novell.com>
7593
7594         * Control.cs(Select): Moved SetFocus call to avoid potential
7595           loops if controls change the active control when getting focus
7596         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7597           the up/down buttons
7598
7599 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7600
7601         * ImageListConverter.cs: Implemented
7602
7603 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7604
7605         * MonthCalendar.cs: Wired in NumericUpDown control for year
7606
7607 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7608
7609         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7610           DoubleClick events, since they are not meant to be fired.
7611
7612 2005-06-09  Peter Bartok  <pbartok@novell.com>
7613
7614         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7615           Jonathan's standalone controls into MWF, implemented missing
7616           events, attributes and methods; added xxxAccessible classes
7617         * AccessibleObject.cs: Made fields internal so other classes
7618           can change them if needed
7619
7620 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7621
7622         * UpDownBase.cs: Complete implementation
7623         * NumericUpDown.cs: Complete implementation
7624         * DomainUpDown.cs: Complete implementation
7625
7626 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7627
7628         * DataGridTextBoxColumn.cs: drawing fixes
7629         * DataGridCell.cs: fixes ToString method to match MSNet
7630         * DataGridTableStyle.cs: fixes
7631         * DataGridBoolColumn.cs: fixes, drawing
7632         * DataGridDrawingLogic.cs: fixes, new methods
7633         * DataGridTextBox.cs: Keyboard and fixes
7634         * DataGrid.cs:
7635                 - Keyboard navigation
7636                 - Scrolling fixes
7637                 - Row selection (single, multiple, deletion, etc)
7638                 - Lots of fixes
7639         
7640 2005-06-07  Jackson Harper  <jackson@ximian.com>
7641
7642         * ThemeWin32Classic.cs: Clear the background area when drawing
7643         buttons.
7644
7645 2005-06-06  Peter Bartok  <pbartok@novell.com>
7646
7647         * ImageListStreamer.cs: Fixed signature for GetData
7648         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7649         * ComboBox.cs:
7650           - Added missing ChildAccessibleObject class
7651           - Added missing OnXXXFocus overrides, switched to using those
7652             instead of the event handler
7653         * Control.cs:
7654           - Added Parent property for ControlAccessibleObject
7655           - Fixed signatures
7656           - Fixed attributes
7657           - Added ResetBindings()
7658         * ListBindingConverter.cs: Implemented some methods
7659         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7660         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7661         * ContainerControl.cs: Fixed signature, now subscribing to the
7662           ControlRemoved event instead of overriding the handler, LAMESPEC
7663         * CurrencyManager.cs: Added missing attribute
7664         * MonthCalendar.cs: Added missing properties
7665
7666 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7667
7668         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7669         
7670 2005-06-06  Gaurav Vaish and Ankit Jain
7671
7672         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7673         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7674         
7675 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7676
7677         * Control.cs: fixes CreateParams Width / Height.
7678
7679 2005-06-05  Peter Bartok  <pbartok@novell.com>
7680
7681         * Win32DnD.cs: Removed compilation warnings
7682
7683 2005-06-05  Peter Bartok  <pbartok@novell.com>
7684
7685         * Control.cs (CreateParams): Since we don't know if one of the
7686           properties we use is overridden, lets make sure if we fail accessing
7687           we continue with a backup plan
7688
7689 2005-06-05  Peter Bartok  <pbartok@novell.com>
7690
7691         * Win32DnD.cs:
7692           - Removed debug output
7693           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7694             struct
7695           - Plugged resource leak
7696         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7697           MS size
7698
7699 2005-06-05  Peter Bartok  <pbartok@novell.com>
7700
7701         * XplatUIWin32.cs: Removed DnD code
7702         * Win32DnD.cs: Implemented drop source and drop target functionality
7703
7704 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7705
7706         * UpDownBase.cs: remove duplicate addition of event, enable some code
7707         that was commented out.
7708         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7709         Validate input when a key is pressed. It works fine now for every
7710         combination of Hexadecimal. Only missing some drawing love when sharing
7711         space with other controls.
7712
7713 2005-06-04  Peter Bartok  <pbartok@novell.com>
7714
7715         * Control.cs:
7716           - We need to pass a window for DragDrop, so enable callback events
7717           - Added DnD callback events when being a DragSource
7718         * XplatUI.cs (StartDrag): Added window handle argument
7719         * XplatUIDriver.cs (StartDrag): Added window handle argument
7720         * QueryContinueDragEventArgs: Made fields internally accessible so
7721           drivers can set them
7722         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7723           can set them
7724
7725 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7726
7727         * DataGridTextBoxColumn.cs: column text editing
7728         * DataGridTableStyle.cs: Respect columns styles created by the user
7729         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7730         * DataGridBoolColumn.cs: bool column editing
7731         * DataGrid.cs: fixes to scrolling, properties, etc
7732         * DataGridTextBox.cs: handle keyboard
7733         * DataGridColumnStyle.cs: fixes
7734
7735 2005-06-02  Jackson Harper  <jackson@ximian.com>
7736
7737         * ImageListStreamer.cs: Somewhat broken implementation of
7738         GetObjectData. The RLE needs some work to match MS properly.
7739
7740 2005-06-02  Jackson Harper  <jackson@ximian.com>
7741
7742         * X11Dnd.cs: Attempting to keep at least one file in MWF
7743         monostyled.
7744
7745 2005-06-02  Peter Bartok  <pbartok@novell.com>
7746
7747         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7748           that way
7749
7750 2005-06-02  Peter Bartok  <pbartok@novell.com>
7751
7752         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7753         * XplatUI.cs: Added DoDragDrop() method
7754         * XplatUIDriver.cs: Added DoDragDrop() method
7755
7756 2005-06-02  Jackson Harper  <jackson@ximian.com>
7757
7758         * Splitter.cs: Implement BorderStyle.
7759
7760 2005-06-02  Jackson Harper  <jackson@ximian.com>
7761
7762         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7763         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7764         X11 using XDND.
7765
7766 2005-06-02  Peter Bartok  <pbartok@novell.com>
7767
7768         * DataObject.cs:
7769           - Added Data setter
7770           - Fixed broken insertion code for SetData, now also
7771             overwrites any existing entry of the same format name
7772         * Hwnd.cs: Added list of pointers that automatically gets
7773           freed when the window is disposed
7774         * XplatUI.cs: Call driver initialization method when loading
7775           a driver
7776         * Control.cs:
7777           - OnDragLeave takes EventArgs, not DragEventArgs
7778           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7779             supported
7780           - Forces style update when drop state changes
7781         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7782           not perfect since we cannot (yet) call the IDataObject.GetData()
7783           method, we keep getting 0x80004005 error, dunno why)
7784
7785 2005-06-02  Peter Bartok  <pbartok@novell.com>
7786
7787         * DragEventArgs.cs: Make fields internal so we can cache the
7788           object and re-set the fields from XplatUI
7789
7790 2005-06-02  Jackson Harper  <jackson@ximian.com>
7791
7792         * Control.cs: Add some internal methods so the DnD subsystem can
7793         raise DnD events. Also call into the driver when AllowDrop is set.
7794         * XplatUI.cs:
7795         * XplatUIDriver.cs: New method for setting whether or not a window
7796         is allowed to accept drag and drop messages.
7797                 
7798 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7799         
7800         * ScrollBar.cs: Make sure that values sent in Scroll events
7801         are always between Maximum and Minimum.
7802
7803 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7804
7805         * Menu.cs: Call MenuChanged when menuitem visibility has been
7806         changed.
7807         * MenuItem.cs: Rebuild menu when item is (not) visible.
7808         * MainMenu.cs: MainMenu has special MenuChanged.
7809         * Theme.cs: Caption and FrameBorderSize are not fixed.
7810         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7811         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7812         * XplatUIX11.cs,
7813         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7814         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7815
7816 2005-05-30  Jackson Harper  <jackson@ximian.com>
7817
7818         * DataFormat.cs: We can't statically initialize this stuff because
7819         it calls into the xplatui and could create a loop. So we lazy init
7820         it.
7821
7822 2005-05-28  Jackson Harper  <jackson@ximian.com>
7823
7824         * Control.cs: Proper implementation of Product(Name/Version).
7825
7826 2005-05-27  Jackson Harper  <jackson@ximian.com>
7827
7828         * DataObject.cs: Dont crash if no data is found.
7829
7830 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7831         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7832                 as per status page, guessing it should be set to true
7833
7834 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7835
7836         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7837         * DataGridTableStyle.cs: set proper formatting text, def header text
7838         * ThemeWin32Classic.cs: new themable paramaters
7839         * DataGridBoolColumn.cs: paint check box, get data, fixes
7840         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7841         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7842         * DataGridColumnStyle.cs: fixes
7843         * Theme.cs: new themable paramaters
7844                 
7845 2005-05-26  Peter Bartok  <pbartok@novell.com>
7846
7847         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7848
7849 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7850         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7851
7852 2005-05-24  Peter Bartok  <pbartok@novell.com>
7853
7854         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7855           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7856           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7857           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7858           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7859           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7860           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7861           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7862           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7863           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7864           missing attributes, etc
7865         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7866
7867 2005-05-24  Peter Bartok  <pbartok@novell.com>
7868
7869         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7870           when user tries to get help
7871         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7872           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7873           to suppress warnings
7874         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7875           avoid unreachable code warning
7876
7877 2005-05-20  Peter Bartok  <pbartok@novell.com>
7878
7879         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7880
7881 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7882
7883         * DataGridTextBoxColumn.cs: Basic painting methods
7884         * DataGridTableStyle.cs: Set table style in the column
7885         * ThemeWin32Classic.cs: Use Theme for colors
7886         * DataGridDrawingLogic.cs: Implement more drawing
7887         * DataGrid.cs: drawing, theming, enhacements, fixes
7888         * DataGridColumnStyle.cs: fixes, drawing
7889         * Theme.cs: theming for Datagrid
7890
7891 2005-05-20  Peter Bartok  <pbartok@novell.com>
7892
7893         * Cursor.cs: Implemented GetObjectData() method
7894
7895 2005-05-20  Peter Bartok  <pbartok@novell.com>
7896
7897         * Cursors.cs: Added setting of cursor name
7898         * Cursor.cs:
7899           - Implemented constructors
7900           - Implemented Draw and DrawStretched
7901           - Implemented Current property
7902           - Implemented == and != operators
7903           - Implemented Dispose()
7904           - Implemented ToString
7905           - Added missing attributes
7906         * XplatUIX11.cs:
7907           - Added missing reset for OverrideCursor when DoEvents is called
7908           - Fixed creation of cursor, logic was wrong
7909         * XplatUIWin32.cs:
7910           - Added missing reset for OverrideCursor when DoEvents is called
7911           - Fixed creation of cursor, bit arrays were swapped
7912         * Clipboard.cs: Removed obsolete MonoTODO attribute
7913
7914 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7915
7916         * ComboBox.cs: fixes OnSelectedItemChanged
7917         * ControlBindingsCollection.cs: fixes item range check
7918
7919 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7920
7921         * UpDownBase.cs:
7922                 - Calc preferred height properly
7923                 - Implement missing properties
7924                 
7925         * NumericUpDown.cs: Implement missing events
7926
7927 2005-05-19  Jackson Harper  <jackson@ximian.com>
7928
7929         * TabControl.cs: New method that resizes the tab pages before
7930         redrawing them. This as needed as the control is double buffered
7931         and sizing will not be recalculated unless ResizeTabPages is
7932         called.
7933         * TabPage.cs: Set base.Text instead of Text in the constructor so
7934         that UpdateOwner does not get called. Use the new Redraw method of
7935         TabControl instead of Refresh so the sizing is recalculated.
7936         * ThemeWin32Classic.cs: Draw the text for button tabs.
7937
7938 2005-05-19  Jackson Harper  <jackson@ximian.com>
7939
7940         * Control.cs: Paint control background images. Fix typo where
7941         PaintControlBackground was not getting called correctly.
7942
7943 2005-05-19  Peter Bartok  <pbartok@novell.com>
7944
7945         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7946           I can investigate, apparently I broke FileDialog
7947
7948 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7949
7950         * AxHost.cs: Some simple properties.
7951         * Control.cs: window must be accessible after ctor.
7952         * Form.cs: Added TransparencyKey property.
7953         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7954         * XplatUIWin32.cs: SetBorderStyle implemented.
7955
7956 2005-05-18  Peter Bartok  <pbartok@novell.com>
7957
7958         * DataObject.cs: Entries are not global but particular to the
7959           DataObject, now it behaves that way
7960         * XplatUIWin32.cs: Implemented Clipboard methods
7961         * Clipboard.cs: Implemented
7962         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7963         * XplatUIOSX.cs: Updated to final clipboard prototypes
7964         * XplatUIX11.cs: Implemented Clipboard methods
7965         * XplatUIDriver.cs: Updated to final clipboard prototypes
7966         * XplatUIStructs.cs:
7967           - Added BITMAPINFOHEADER struct
7968           - Added ClipboardFormats enum
7969         * X11Structs.cs:
7970           - Added ClipboardStruct
7971           - Added Atom enum items for clipboard types
7972           - Fixed atom types for Selection event structures
7973         * DataFormats.cs:
7974           - Added internal properties and methods for drivers to enumerate
7975             all known formats
7976           - Switched initialization method to allow drivers to assign their
7977             own IDs even for the MS predefined clipboard IDs
7978         * XplatUI.cs: Updated to final clipboard interface
7979
7980 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7981         * PropertyGridView.cs: Fixed compiler warnings.
7982
7983 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7984         * PropertyGrid.cs: Added some event calls
7985         * PropertyGridView.cs: Change drawing code to use double buffering
7986         * PropertyGridTextBox.cs: Changed Text property name
7987         * GridItem.cs: Added Bounds property.
7988         * GridEntry.cs: Added Bounds property.
7989
7990 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7991
7992         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7993         since GetType() may not return the correct type if the object is
7994         a remoting proxy.
7995
7996 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7997
7998         * TreeNodeCollection.cs: fixes get/set item ranges
7999         
8000 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8001
8002         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8003                 
8004 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8005
8006         * ComboBox.cs: Fix item range comparation
8007         * ListView.cs: Fix item range comparation
8008
8009 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8010
8011         * FontDialog.cs:
8012           - Clear example panel when OnPaint is called
8013           - Better solution for displaying the example panel text
8014           - Select default indexes in the ListBoxes
8015
8016 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8017
8018         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8019
8020 2005-05-11  Peter Bartok  <pbartok@novell.com>
8021
8022         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8023         * SelectionRangeConverter.cs: Implemented
8024         * PropertyGrid.cs: Fixed attribute value
8025         * Control.cs:
8026           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8027           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8028         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8029           that's common to all drivers. First methods to go there are
8030           Sebastien Pouliot's CAS Stack Propagation helper methods
8031         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8032           Sebastien Pouliot for CAS Stack Propagation
8033
8034 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8035
8036         * OSXStructs.cs:
8037           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8038
8039 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8040
8041         * DataGridTextBoxColumn.cs: fixed some members
8042         * GridColumnStylesCollection.cs: indexed column is case insensitive
8043         * DataGridTableStyle.cs: fixes
8044         * ThemeWin32Classic.cs: add new theme parameter
8045         * Theme.cs: add new theme parameter
8046         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8047         * DataGrid.cs: fixes, new internal properties, etc.
8048         * DataGridColumnStyle.cs: allows to set grid value
8049         *
8050
8051 2005-05-10  Peter Bartok  <pbartok@novell.com>
8052
8053         * AccessibleObject.cs:
8054           - Removed MonoTODO attribute on help, method is correct
8055           - Fixed Bounds property
8056         * AxHost.cs: Moved MonoTODO
8057         * ButtonBase.cs: Now setting AccessibleObject properties
8058         * RadioButton.cs: Setting proper AccessibleObject role
8059         * CheckBox.cs: Setting proper AccessibleObject role
8060         * ControlBindingsCollection.cs: Added properties, methods and attributes
8061         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8062           userdefined DataFormats.Format items as well
8063         * ListControl.cs: Removed data_member from the public eye
8064         * OpenFileDialog.cs:
8065           - Made class sealed
8066           - Added missing attributes
8067         * SaveFileDialog.cs: Added missing attributes
8068         * ImageListStreamer.cs: Fixed code that caused warnings
8069         * LinkLabel.cs: Removed unreachable code
8070         * TreeView.cs: Fixed code that caused warnings
8071         * PropertyGridView.cs: Fixed code that caused warnings
8072         * GridColumnStylesCollection.cs: Added missing attributes
8073         * GridTableStylesCollection: Added missing attribute
8074         * PropertyManager: Added .ctor
8075         * SecurityIDType: Added
8076         * DataObject.cs: Implemented class
8077         * LinkArea.cs: Added missing attribute
8078
8079 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8080
8081         * RadioButton.cs: call base method to allow to fire OnClick event
8082         * UpDownBase.cs: OnMouseUp call base method
8083         * CheckedListBox.cs: call base method before returning
8084         * TrackBar.cs: call base method before returning
8085         
8086
8087 2005-05-10  Peter Bartok  <pbartok@novell.com>
8088
8089         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8090           for messages
8091
8092 2005-05-10  Peter Bartok  <pbartok@novell.com>
8093
8094         * DataFormats.cs: Implemented
8095         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8096           XplatUIX11.cs: Added Clipboard APIs
8097         * XplatUIWin32.cs: Implemented Clipboard APIs
8098         * FolderBrowserDialog.cs: Added missing event, attributes
8099
8100 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8101
8102         * CheckBox.cs: call base method to allow to fire OnClick event
8103
8104 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8105
8106         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8107
8108 2005-05-06  Peter Bartok  <pbartok@novell.com>
8109
8110         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8111         * Screen.cs: Implemented
8112         * HelpNavigator.cs: Added
8113         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8114           property
8115         * HelpProvider.cs: Implemented all we can do until we have a CHM
8116           help library (which means that "What's This" does work now)
8117
8118 2005-05-06  Jackson Harper  <jackson@ximian.com>
8119
8120         * XplatUIX11.cs: Fix waking up the main loop.
8121                 
8122 2005-05-05  Peter Bartok  <pbartok@novell.com>
8123
8124         * XplatUI.cs: Updated revision
8125         * Form.cs: Removed enless loop
8126         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8127         * Label.cs (OnPaint): Added call to base.OnPaint()
8128         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8129         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8130         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8131         * AxHost.cs: Added
8132         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8133         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8134           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8135           reuse of ToolTipWindow by other controls
8136         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8137         * XplatUIX11.cs: Now clipping drawing area (experimental)
8138         * PictureBox.cs: Moved base.OnPaint() call to end of method
8139         * Theme.cs: Fixed ToolTip abstracts to match new format
8140         * ErrorProvider.cs: Implemented
8141
8142 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8143
8144         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8145         * LinkLabel.cs:
8146                 - Adds cursors
8147                 - Handles focus
8148                 - Implements LinkBehavior
8149                 - Fixes many issues
8150
8151 2005-05-03  Jackson Harper  <jackson@ximian.com>
8152
8153         * ListView.cs: Calculate the scrollbar positioning on resize and
8154         paint, so they get put in the correct place.
8155
8156 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8157
8158         * ColorDialogs.cs: The small color panels are now handled by
8159           SmallColorControl. This fixes drawing of the focus rectangle
8160           and adds a 3D border.
8161
8162 2005-05-03  Peter Bartok  <pbartok@novell.com>
8163
8164         * Control.cs: Modified version of Jonathan Chamber's fix for
8165           double-buffering
8166
8167 2005-05-03  Jackson Harper  <jackson@ximian.com>
8168
8169         * ListView.cs: Remove redraw variable. Control now handles whether
8170         or not a redraw needs to be done, and will only raise the paint
8171         event if redrawing is needed.
8172
8173 2005-05-03  Jackson Harper  <jackson@ximian.com>
8174
8175         * Splitter.cs: No decorations for the splitter form. Cache the
8176         hatch brush.
8177
8178 2005-05-03  Jackson Harper  <jackson@ximian.com>
8179
8180         * TreeView.cs: Use dashed lines to connect nodes. Use the
8181         ControlPaint method for drawing the focus rect instead of doing
8182         that in treeview.
8183
8184 2005-05-02  Peter Bartok  <pbartok@novell.com>
8185
8186         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8187
8188 2005-04-29  Jackson Harper  <jackson@ximian.com>
8189
8190         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8191         entire image buffer. Just clear the clipping rectangle.
8192
8193 2005-04-29  Jackson Harper  <jackson@ximian.com>
8194
8195         * ThemeWin32Classic.cs: Don't draw list view items that are
8196         outside the clipping rectangle.
8197
8198 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8199
8200         * ListBox.cs: added horizontal item scroll
8201
8202 2005-04-29  Jackson Harper  <jackson@ximian.com>
8203
8204         * ThemeWin32Classic.cs: Remove some old debug code that was
8205         causing flicker with the new double buffering code.
8206
8207 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8208
8209         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8210         behave like combobox and comboboxlist (still not sure if this is
8211         correct though).
8212
8213 2005-04-28  Jackson Harper  <jackson@ximian.com>
8214
8215         * ThemeWin32Classic.cs: Don't fill the middle of progress
8216         bars. This fills areas outside of the clip bounds that don't need
8217         to be filled.
8218
8219 2005-04-28  Jackson Harper  <jackson@ximian.com>
8220
8221         * Control.cs: Don't expose functionality to touch the image buffers.
8222         * ProgressBar.cs:
8223         * ListView.cs: We do not need to (and no longer can) manipulate
8224         the image buffers directly. All of this is handled by Control.
8225
8226 2005-04-28  Peter Bartok  <pbartok@novell.com>
8227
8228         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8229           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8230           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8231
8232 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8233
8234         * Combobox:
8235                 - Adjust control's height for non-simple comboboxes (bug fix)
8236                 - Remove dead code
8237         * MenuAPI.cs: remove unused var
8238         * ScrollBar.cs: remove unsed var
8239                  
8240         * ListBox.cs: unselect items when clearing
8241
8242 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8243
8244         * ListControl.cs: honors OnPositionChanged and default Selected Item
8245         * ListBox.cs: unselect items when clearing
8246
8247 2005-04-27  Jackson Harper  <jackson@ximian.com>
8248
8249         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8250         if a "correct" keyboard is not found. This will make us not crash,
8251         but might give some users bad keyboard layouts...seems to be the
8252         same thing rewind does.
8253
8254 2005-04-27  Jackson Harper  <jackson@ximian.com>
8255
8256         * BindingManagerBase.cs: Attach the current/position changed
8257         handlers to their respective events.
8258
8259 2005-04-27  Jackson Harper  <jackson@ximian.com>
8260
8261         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8262         not just a blit.
8263         * ThemeWin32Classic.cs: Don't fill the background for picture
8264         boxes. This could overright user drawing.
8265         * ComboBox.cs: Just fill the clipping rect not the entire client
8266         rect when drawing the background. This prevents pieces of the
8267         image buffer from getting overwritten and is theoretically faster.
8268
8269 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8270
8271         * ComboBox.cs: Databinding support fixes, fire missing events
8272         * ListControl.cs: implement missing methods and properties, fixes
8273         * ThemeWin32Classic.cs: Databiding support on Drawing
8274         * CheckedListBox.cs: Databinding support fixes, fire missing events
8275         * ListBox.cs: Databinding support fixes, fire missing events
8276         
8277 2005-04-25  Peter Bartok  <pbartok@novell.com>
8278
8279         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8280
8281 2005-04-25  Jackson Harper  <jackson@ximian.com>
8282
8283         * TreeView.cs: Use the horizontal scrollbars height not width when
8284         determining how much of the client area is available.
8285
8286 2005-04-25  Jackson Harper  <jackson@ximian.com>
8287
8288         * Control.cs: Double buffering is handled differently now. As per
8289         the spec, the extra buffer is created in the WM_PAINT message and
8290         passed down to the control's drawing code.
8291         * GroupBox.cs:
8292         * Label.cs:
8293         * CheckBox.cs:
8294         * ProgressBar.cs:
8295         * RadioButton.cs:
8296         * ColorDialog.cs:
8297         * ComboBox.cs:
8298         * PropertyGridView.cs:
8299         * UpDownBase.cs:
8300         * MessageBox.cs:
8301         * MenuAPI.cs:
8302         * ListView.cs:
8303         * ButtonBase.cs:
8304         * SizeGrip.cs:
8305         * ScrollBar.cs:
8306         * ListBox.cs:
8307         * TrackBar.cs:
8308         * ToolBar.cs:
8309         * PictureBox.cs:
8310         * DateTimePicker.cs:
8311         * StatusBar.cs:
8312         * TreeView.cs: Update to new double buffering system.
8313         * MonthCalendar.cs: Uncomment block, as Capture is now
8314         working. Update to new double buffering
8315         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8316         * PaintEventArgs.cs: New internal method allows us to set the
8317         graphics object. This is used for double buffering.
8318         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8319         rectangle. The internal paint_area var has been removed from
8320         StatusBar. The clipping rect should be used instead.
8321         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8322         * TabPage.cs: The RefreshTabs method was removed, so just call the
8323         tab controls Refresh method now.
8324         * TabControl.cs: Update to new double buffering. Make sure the
8325         handle is created before sizing the tab pages, otherwise we will
8326         get stuck in a loop.
8327
8328 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8329
8330         * LinkLabel.cs: Fix typo, bug #74719; patch
8331           from Borja Sanchez Zamorano
8332
8333 2005-04-22  Jackson Harper  <jackson@ximian.com>
8334
8335         * TreeNode.cs: Implement Handle stuff.
8336         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8337
8338 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8339
8340         * DataGridTextBoxColumn.cs: call base constructors, fixes
8341         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8342         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8343         * DataGridTableStyle.cs: implements create default column styles
8344         * DataGridBoolColumn.cs: which types can handle
8345         * DataGrid.cs: missing methods, fixes, new functionality
8346         * DataGridColumnStyle.cs: fixes
8347
8348 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8349         * FolderBrowserDialog.cs:
8350         - Use a thread to fill the TreeView
8351         - Adjusted some sizes
8352
8353 2005-04-19  Peter Bartok  <pbartok@novell.com>
8354
8355         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8356           property. Fixes #74360.
8357
8358 2005-04-19  Jackson Harper  <jackson@ximian.com>
8359
8360         * XEventQueue.cs: Lock when getting the lockqueue size.
8361         * PictureBox.cs: Call base OnPaint
8362         
8363 2005-04-19  Peter Bartok  <pbartok@novell.com>
8364
8365         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8366           messages were no longer being processed (this broke BeginInvoke)
8367
8368           
8369 2005-04-18  Jackson Harper  <jackson@ximian.com>
8370
8371         * TreeView.cs: buglet that caused node images to get drawn
8372         regardless of whether or not they were in the clipping rectangle.
8373
8374 2005-04-18  Jackson Harper  <jackson@ximian.com>
8375
8376         * CurrencyManager.cs: There are four rules for GetItemProperties:
8377         - If the type is an array use the element type of the array
8378         - If the type is a typed list, use the type
8379         - If the list contains an Item property that is not an object, use
8380         that property
8381         - use the first element of the list if there are any elements in
8382         the list.
8383         
8384 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8385
8386         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8387         click. This handles offsets for scrolling properly and reduces
8388         memory. Also fixed GetNode to not offset now that TopNode works
8389         properly.
8390         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8391         
8392 2005-04-17  Jackson Harper  <jackson@ximian.com>
8393
8394         * CursorConverter.cs: Initial implementation.
8395
8396 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8397
8398         * ListControl.cs: work towards complex data binding support on ListControl
8399         * CurrencyManager.cs: work towards complex data binding support on ListControl
8400         * ListBox.cs: work towards complex data binding support on ListControl
8401
8402
8403 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8404
8405         * GridTableStylesCollection.cs: fixes name and constructor
8406         * DataGridTableStyle.cs: fixes
8407         * DataGridBoolColumn.cs: fixes names and constructors
8408         * DataGrid.cs: define methods and properties. Some init implementations
8409         * DataGridCell.cs: define methods and properties. Some init implementations
8410         * GridTablesFactory.cs: Define methods and properties
8411
8412 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8413
8414         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8415         graphics port changes.  We still want the coordinates in global screen
8416         coordinates.
8417
8418 2005-04-14  Jackson Harper  <jackson@ximian.com>
8419
8420         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8421         check plus minus or checkbox clicks unless those features are enabled.
8422
8423 2005-04-14  Jackson Harper  <jackson@ximian.com>
8424
8425         * TreeView.cs: Add methods for setting the top and bottom visible
8426         nodes. TreeNode::EnsureVisible uses these methods.
8427         * TreeNode.cs: Implement EnsureVisible
8428
8429 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8430
8431         * Form.cs: Pospone menu assignation if the window has not been created yet
8432         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8433         size and position
8434
8435 2005-04-12  Jackson Harper  <jackson@ximian.com>
8436
8437         * TreeView.cs: Set the TopNode properly when scrolling
8438         occurs. This has the added benifit of reducing the amount of
8439         walking that needs to be done when drawing. Also removed an old
8440         misleading TODO.
8441         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8442         
8443 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8444
8445         * Timer.cs: fixes interval setting when the timer is already enabled
8446         
8447 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8448
8449         * FolderBrowserDialog.cs: First approach
8450
8451 2005-04-09  Peter Bartok  <pbartok@novell.com>
8452
8453         * FolderBrowserDialog: Added
8454
8455 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8456
8457         * LinkLabel.cs: move drawing code into the theme
8458         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8459         * Theme.cs: define DrawLinkLabel method
8460
8461 2005-04-05  Jackson Harper  <jackson@ximian.com>
8462
8463         * BindingContext.cs: Use weak references so these bad actors don't
8464         stay alive longer then they need to.
8465
8466 2005-04-05  Jackson Harper  <jackson@ximian.com>
8467
8468         * ListControl.cs: Basic implementation of complex databinding.
8469         * ComboBox.cs:
8470         * ListBox.cs: Add calls to ListControl databinding methods.
8471
8472 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8473
8474         * FileDialog.cs:
8475           - Don't change PopupButtonState to Normal when the
8476             PopupButton gets pressed several times.
8477           - Renamed ButtonPanel to PopupButtonPanel
8478
8479 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8480
8481         * ColorDialog.cs: Use cached objects instead of creating them
8482         * LinkLabel.cs: Use cached objects instead of creating them
8483         * Splitter.cs: Use cached objects instead of creating them
8484         * FontDialog.cs: Use cached objects instead of creating them
8485         * PropertyGridView.cs: Use cached objects instead of creating them
8486         * MessageBox.cs: Use cached objects instead of creating them
8487         * FileDialog.cs: Use cached objects instead of creating them
8488         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8489         * TreeView.cs: Use cached objects instead of creating them
8490         
8491 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8492
8493         * Control.cs: use Equals to compare the font since no == op
8494         * ScrollBar.cs: use Equals to compare the font since no == op
8495
8496 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8497
8498         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8499
8500 2005-04-01  Jackson Harper  <jackson@ximian.com>
8501
8502         * Binding.cs: Implement IsBinding.
8503         * BindingManagerBase.cs:
8504         * PropertyManager.cs:
8505         * CurrencyManager.cs: Add IsSuspended property.
8506
8507 2005-04-01  Jackson Harper  <jackson@ximian.com>
8508
8509         * Binding.cs: Had some IsAssignableFrom calls backwards.
8510
8511 2005-04-01  Jackson Harper  <jackson@ximian.com>
8512
8513         * Binding.cs: Handle null data members when pulling data.
8514         * PropertyManager.cs: Handle the data member being a property that
8515         does not exist.
8516
8517 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8518
8519         * DataGridTextBoxColumn.cs: fixes signature
8520         * DataGrid.cs: calls right constructor
8521
8522 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8523
8524         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8525         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8526         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8527         * DataGridTableStyle.cs: implements DataGridTableStyle
8528         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8529         * DataGridTextBox.cs: implements DataGridTextBox
8530         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8531
8532 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8533
8534         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8535
8536 2005-03-29  Peter Bartok  <pbartok@novell.com>
8537
8538         * Application.cs:
8539           - Properly implemented CompanyName property
8540           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8541             returns a path that includes CompanyName, ProductName and
8542             Version (fixes bug #70330)
8543
8544 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8545
8546         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8547           fixes bug #72588.
8548
8549 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8550
8551         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8552         
8553           - Added ReadOnly CheckBox
8554           - Further refactoring: moved some code from Open-/SaveFileDialog
8555             to FileDialog
8556
8557 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8558
8559         * OpenFileDialog.cs: Fixed CheckFileExists
8560         * FileDialog.cs:
8561           Moved FileView and DirComboBox outside FileDialog class.
8562           They can now be used outside FileDialog
8563
8564 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8565
8566         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8567         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8568
8569 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8570
8571         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8572           - Added missing CreatePrompt property in SaveDialog
8573           - Overall SaveDialog handling should be better now
8574           - Added non standard ShowHiddenFiles property
8575           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8576           - Added InitialDirectory and RestoreDirectory support
8577
8578 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8579
8580         * FileDialog.cs: Made dirComboBox usable
8581
8582 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8583
8584         * FileDialog.cs: Added Filter support (case sensitiv)
8585
8586 2005-03-24  Jackson Harper  <jackson@ximian.com>
8587
8588         * TabControl.cs: Need a couple more pixels for the lines.
8589
8590 2005-03-23  Jackson Harper  <jackson@ximian.com>
8591
8592         * TabControl.cs: Give the tab page focus when it is selected.
8593
8594 2005-03-23  Jackson Harper  <jackson@ximian.com>
8595
8596         * TabControl.cs: Account for the drawing of tabs borders when
8597         invalidating. If the slider was clicked dont do click detection on
8598         the tabs.
8599
8600 2005-03-23  Jackson Harper  <jackson@ximian.com>
8601
8602         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8603
8604 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8605
8606         * CategoryGridEntry.cs: Added
8607         * GridItem.cs: Added helper properties
8608         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8609         * GridEntry.cs: Updated code for collection
8610         * PropertyGrid.cs: Cleaned up some formatting
8611         * PropertyGridView.cs: Added drop down functionality for enums.
8612         * GridItemCollection.cs: Added enumerator logic
8613         * PropertyGridEntry.cs: Added
8614
8615 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8616
8617         * FileDialog.cs:
8618           - Removed unnecessary commented code
8619           - Fixed handling for entering the filename manually in the combobox
8620
8621 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8622
8623         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8624
8625 2005-03-18  Peter Bartok  <pbartok@novell.com>
8626
8627         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8628           them being touching the border
8629
8630 2005-03-18  Peter Bartok  <pbartok@novell.com>
8631
8632         * TextControl.cs: Quick hack to center text better
8633
8634 2005-03-18  Peter Bartok  <pbartok@novell.com>
8635
8636         * ControlPaint.cs:
8637           - Don't throw NotImplemented exceptions, just print a notice once
8638             instead (requested by Miguel). This makes running existing SWF
8639             apps a bit easier
8640         * Control.cs:
8641           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8642           - Added context menu trigger on right click
8643         * Panel.cs: Trigger invalidate on resize
8644         * StatusBar.cs:
8645           - Removed old double-buffer drawing
8646           - Added ResizeRedraw style to force proper update of statusbar
8647         * ListView.cs:
8648           - Removed debug output
8649         * ThemeWin32Classic.cs:
8650           - Fixed drawing of status bar, now draws Text property if there
8651             are no defined panels
8652
8653 2005-03-18  Jackson Harper  <jackson@ximian.com>
8654
8655         * ImageList.cs: When the image stream is set pull all the images
8656         from it.
8657         * ImageListStreamer.cs: Implement reading image list streams.
8658
8659 2005-03-18  Peter Bartok  <pbartok@novell.com>
8660
8661         * ThemeWin32Classic.cs (DrawPictureBox):
8662           - Fixed calculations for centered drawing
8663           - Fixed drawing for normal mode, not scaling the image on normal
8664
8665 2005-03-18  Peter Bartok  <pbartok@novell.com>
8666
8667         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8668           textbox
8669         * FileDialog.cs:
8670           - Made Open/Save button the accept button for FileDialog
8671           - Tied the cancel button to the IButtonControl cancel button
8672           - Save/Open now properly builds the pathname
8673           - Now handles user-entered text
8674           - Preventing crash on right-click if no item is selected
8675           - Fixed Text property, now uses contents of textbox
8676           - Fixed SelectedText property, now just returns the text part that
8677             is selected in the text box
8678
8679 2005-03-18  Jackson Harper  <jackson@ximian.com>
8680
8681         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8682         rect, make sure to de-adjust the interior rect after drawing the
8683         tab text.
8684
8685 2005-03-18  Peter Bartok  <pbartok@novell.com>
8686
8687         * MenuAPI.cs: Remove menu *before* executing selected action to
8688           prevent the menu from 'hanging around'
8689           
8690 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8691
8692         * XplatUIOSX.cs: Implemented WorkingArea property
8693
8694 2005-03-17  Peter Bartok  <pbartok@novell.com>
8695
8696         * XplatUIX11.cs: Fixed menu coord calculations
8697         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8698           for calculating offsets
8699
8700 2005-03-17  Peter Bartok  <pbartok@novell.com>
8701
8702         * Hwnd.cs: Do not consider menu presence for default client
8703           rectangle location/size
8704         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8705           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8706           translation functions
8707         * FileDialog.cs: Fixed (what I presume is a) typo
8708
8709 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8710
8711         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8712           X access (avoids X-Async errors)
8713
8714 2005-03-16  Jackson Harper  <jackson@ximian.com>
8715
8716         * TabControl.cs: Raise the SelectedIndexChanged event.
8717
8718 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8719
8720         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8721           - Removed vertical ToolBar and replaced it with a custom panel
8722             (desktop and home button already work)
8723           - Added Help button (some controls get resized or relocated then)
8724           - Draw correct text depending on Open or Save.
8725           - Fixed some typos...
8726
8727 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8728
8729         * ScrollBar.cs:
8730           - Only change Maximum and Minimum when need it (bug fix)
8731
8732 2005-03-15  Peter Bartok  <pbartok@novell.com>
8733
8734         * Form.cs: Use Handle for icon, to trigger creation if
8735           the window does not yet exist
8736         * Control.cs:
8737           - CanSelect: Slight performance improvement
8738           - Focus(): Preventing possible recursion
8739           - Invalidate(): Removed ControlStyle based clear flag setting
8740           - WM_PAINT: fixed logic for calling OnPaintBackground
8741           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8742             EraseWindowBackground if the control doesn't paint background
8743         * XplatUIWin32.cs:
8744           - Moved EraseWindowBackground() method to internal methods
8745           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8746             is sent via SendMessage on BeginPaint call on Win32
8747         * XplatUIX11.cs:
8748           - Added EraseWindowBackground() method
8749           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8750             PaintEventStart, which more closely matches Win32 behaviour
8751           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8752           - Fixed SetFocus() to properly deal with client and whole windows
8753         * Hwnd.cs: Added ErasePending property
8754         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8755         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8756
8757 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8758
8759         * XplatUIOSX.cs:
8760           - Fix hard loop when timers exist.
8761           - Fix bugs with middle and right click for 3 button mice.
8762
8763 2005-03-11  Peter Bartok  <pbartok@novell.com>
8764
8765         * XplatUIX11.cs:
8766           - get_WorkingArea: Need to call X directly, GetWindowPos only
8767             returns cached data now
8768           - Added sanity check to GetWindowPos hwnd usage
8769
8770 2005-03-11  Jackson Harper  <jackson@ximian.com>
8771
8772         * BindingManagerBase.cs: This method isn't used anymore as
8773         PullData now updates the data in the control.
8774
8775 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8776
8777         * Form.cs: fixes menu drawing on X11
8778         * MenuAPI.cs:  fixes menu drawing on X11
8779
8780 2005-03-11  Peter Bartok  <pbartok@novell.com>
8781
8782         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8783           from Jonathan Gilbert; should fix bug #73606
8784         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8785           in Screen coordinates. Thanks, Jordi.
8786         * Form.cs: Added missing attribute
8787
8788 2005-03-11  Peter Bartok  <pbartok@novell.com>
8789
8790         * Form.cs:
8791           - Rudimentary Mdi support
8792           - Removed outdated FormParent code
8793           - Implemented lots of missing properties and methods, still missing
8794             transparency support
8795           - Added missing attributes
8796           - Implemented support for MaximumBounds
8797           - Added firing of various events
8798         * XplatUI.cs: Added SetIcon() method
8799         * XplatUIDriver.cs: Added SetIcon() abstract
8800         * XplatUIOSX.cs: Stubbed out SetIcon() method
8801         * XplatUIX11.cs:
8802           - Implemented SetIcon() support
8803           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8804           - Switched to unix line endings
8805         * XplatUIWin32.cs:
8806           - Made POINT internal so for can access it as part of MINMAX
8807           - Implemented SetIcon() support
8808           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8809             native Mdi support again, might have to go managed)
8810         * Control.cs: Now fires the StyleChanged event
8811         * MdiClient.cs: Added; still mostly empty
8812
8813 2005-03-10  Peter Bartok  <pbartok@novell.com>
8814
8815         * SaveFileDialog.cs: Added emtpy file
8816
8817 2005-03-08  Peter Bartok  <pbartok@novell.com>
8818
8819         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8820           in turn triggers OnCreateContro) when creating a handle for the
8821           first time.
8822         * TextControl.cs: Fixed endless loop in certain cases when
8823           replacing the current selection
8824
8825 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8826
8827         * ScrollBar.cs:
8828           - Honors NewValue changes in Scroll events allowing apps to change it
8829           - Adds First and Last Scroll events
8830           - Fixes Thumb events
8831
8832 2005-03-07  Peter Bartok  <pbartok@novell.com>
8833
8834         * Hwnd.cs: Added DefaultClientRectangle property
8835         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8836           more detailed debug information
8837         * XplatUIX11.cs:
8838           - Fixed size-change feedback loop, where we would pull an old size
8839             off the queue and mistakenly change our window's size to an
8840             earlier value
8841           - Now compressing ConfigureNotify events, to reduce looping and
8842             redraw issues
8843         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8844           is called
8845
8846 2005-03-07  Jackson Harper  <jackson@ximian.com>
8847
8848         * Binding.cs: Push data pushes from data -> property. Check if the
8849         property is readonly when attempting to set it.
8850
8851 2005-03-07  Jackson Harper  <jackson@ximian.com>
8852
8853         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8854         instead of IsSubclassOf. Pulling data now sets the value on the
8855         control.
8856         * PropertyManager.cs:
8857         * CurrencyManager.cs: Just need to pull data when updating now,
8858         because PullData will set the value on the control.
8859
8860 2005-03-04  Jackson Harper  <jackson@ximian.com>
8861
8862         * Binding.cs: Implement data type parsing and converting on pulled
8863         data. TODO: Are there more ways the data can be converted?
8864
8865 2005-03-04  Jackson Harper  <jackson@ximian.com>
8866
8867         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8868         controls Validating method so we can repull the data when the
8869         control loses focus.
8870
8871 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8872
8873         * ColumnHeader.cs:
8874           - Fixes null string format
8875           
8876         * ListView.cs:
8877           - Adds enum type checks
8878           - Fixes redrawing and recalc need after changing some properties
8879           - Fixes on focus_item set after the event
8880           - Fixes adding columns after the control has been created
8881           
8882         * ThemeWin32Classic.cs:
8883           - Fixes CheckBox focus rectangle
8884           - Fixes ColumnHeader drawing
8885
8886
8887 2005-03-03  Jackson Harper  <jackson@ximian.com>
8888
8889         * Binding.cs: Bind to <Property>Changed events so we can detect
8890         when properties are changed and update the data.
8891
8892 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8893
8894         * ImageList.cs:
8895           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8896           - Fixes ImageList constructor with ImageList container
8897           - Fixes image scaling (wrong parameters at DrawImage)
8898
8899 2005-02-02  Jackson Harper  <jackson@ximian.com>
8900
8901         * Binding.cs: Make property searches case-insensitive. Eliminate
8902         some duplicated code.
8903
8904 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8905
8906         * ComboBox.cs:
8907                 - Handle focus event
8908                 - Fix scrollbar events
8909                 - Discard highlighted item if remove it
8910                 - Fixes SelectedItem with strings
8911
8912 2005-03-01  Peter Bartok  <pbartok@novell.com>
8913
8914         * Control.cs:
8915           - Fixed Visible property, now follows (once again) parent chain
8916             to return false if any control in the chain is visible=false
8917           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8918           - Fixed several places where is_visible instead of Visible was used
8919           - Implemented FIXME related to focus selection when setting focused
8920             control to be invisible
8921
8922         * XplatUIWin32.cs: Now using proper method to find out if window is
8923           visible. Thanks to Jordi for pointing it out
8924
8925 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8926
8927         * ComboBox.cs: show/hide scrollbar instead of creating it
8928
8929 2005-02-27  Jackson Harper  <jackson@ximian.com>
8930
8931         * CurrencyManager.cs: Add PositionChanged stuff.
8932
8933 2005-02-27  Peter Bartok  <pbartok@novell.com>
8934
8935         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8936         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8937         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8938         * XplatUIX11.cs:
8939           - Implemented GetMenuDC()
8940           - Implemented GetMenuOrigin()
8941           - Implemented ReleaseMenuDC()
8942           - Implemented generation of WM_NCPAINT message
8943           - Implemented generation and handling of WM_NCCALCSIZE message
8944         * Form.cs: Added debug helper message for Jordi's menu work
8945         * Hwnd.cs:
8946           - Modified ClientRect property; added setter, fixed getter to handle
8947             setting of ClientRect
8948           - Added MenuOrigin property
8949
8950 2005-02-26  Peter Bartok  <pbartok@novell.com>
8951
8952         * XplatUIX11.cs:
8953           - Destroys the caret if a window that's being destroyed contains it
8954           - Ignores expose events coming from the X11 queue for windows that
8955             already are destroyed
8956           - Now uses the proper variable for handling DestroyNotify, before we
8957             marked the wrong window as destroyed
8958           - Improved/added some debug output
8959
8960 2005-02-26  Peter Bartok  <pbartok@novell.com>
8961
8962         * X11Keyboard.cs: Fixes to work on 64bit systems
8963
8964 2005-02-26  Peter Bartok  <pbartok@novell.com>
8965
8966         * Control.cs:
8967           - Now calling OnHandleDestroyed from DestroyHandle()
8968             instead of Dispose()
8969           - Removed bogus call to controls.Remove() from DestroyHandle()
8970
8971 2005-02-26  Peter Bartok  <pbartok@novell.com>
8972
8973         * Control.cs: Properly destroy child windows when our handle is
8974           destroyed
8975
8976 2005-02-25  Peter Bartok  <pbartok@novell.com>
8977
8978         * XplatUI.cs:
8979           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8980           - Alphabetized Static Methods and Subclasses
8981
8982         * XplatUIX11.cs:
8983           - Added XException class to allow custom handling of X11 exceptions
8984           - Created custom X11 error handler, tied into XException class
8985           - Added support for MONO_XEXCEPTIONS env var to allow the user
8986             to either throw an exception on X errors or continue running
8987             after displaying the error
8988           - Added handling of DestroyNotify message
8989           - Added handler for CreateNotify message (still disabled)
8990           - Improved (tried to at least) Where method to provide file and lineno
8991         * X11Structs.cs:
8992           - Added XErrorHandler delegate
8993           - Added XRequest enumeration (to suppor translation of errors)
8994
8995 2005-02-25  Jackson Harper  <jackson@ximian.com>
8996
8997         * PropertyManager.cs: Implement editing features
8998         * CurrencyManager.cs:
8999         * Binding.cs: First attempt at UpdateIsBinding
9000         * BindingManagerBase.cs: Call UpdateIsBinding before
9001         pushing/pulling data.
9002
9003 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9004
9005         * MenuAPI.cs: Respect disabled items
9006         * ThemeWin32Classic.cs
9007                 - Caches ImageAttributes creation for DrawImageDisabled
9008                 - Fixes vertical menu line drawing
9009                 - Draws disabled arrows in disable menu items
9010
9011 2005-02-24  Peter Bartok  <pbartok@novell.com>
9012
9013         * Hwnd.cs:
9014           - Added UserData property to allow associating arbitrary objects
9015             with the handle
9016           - Fixed leak; now removing Hwnd references from static windows array
9017         * XplatUIWin32.cs:
9018           - Fixed Graphics leak in PaintEventEnd
9019           - Removed usage of HandleData, switched over to Hwnd class
9020         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9021
9022 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9023
9024         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9025         * ScrollBar.cs: Fixes bug
9026         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9027          keyboard navigation enhancements
9028
9029 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9030
9031         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9032         * GroupBox.cs: Add control styles
9033         * Label.cs: Add control styles
9034         * UpDownBase.cs: Add control styles
9035         * ListBox.cs: Add control styles
9036         * XplatUIWin32.cs: Fixes wrong parameter order
9037
9038
9039 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9040
9041         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9042
9043 2005-02-23  Jackson Harper  <jackson@ximian.com>
9044
9045         * PropertyManager.cs: Implement property binding. This doesn't
9046         seem to work yet though as (I think) there are some bugs in
9047         System.ComponentModel.PropertyDescriptor.
9048         * BindingContext.cs: Use new PropertyManager constructor.
9049
9050 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9051
9052         * ProgressBar.cs: use clip region in ProgressBar
9053         * ThemeWin32Classic.cs: use clip region in ProgressBar
9054
9055 2004-02-22  Jackson Harper  <jackson@ximian.com>
9056
9057         * BindingsCollection.cs: Remove some debug code.
9058
9059 2005-02-22  Jackson Harper  <jackson@ximian.com>
9060
9061         * BindingContext.cs:
9062         * ControlBindingsCollection.cs:
9063         * CurrencyManager.cs:
9064         * Binding.cs:
9065         * BindingManagerBase.cs: Initial implementation
9066         * BindingsCollection.cs: Add an internal contains method that the
9067         BindingManagerBase uses to ensure bindings aren't added twice to
9068         the collection.
9069         * PropertyManager.cs: Stubbed out.
9070         * Control.cs:
9071         * ContainerControl.cs: Hook up databinding
9072         
9073 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9074
9075         * XplatUIOSX.cs:
9076           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9077           Fixed Invalidate/Update chain.
9078           Fixed tons of other minor bugs (this is almost a complete rewrite).
9079
9080 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9081
9082         * ComboBox.cs: do subcontrol creation when the control is created
9083
9084 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9085
9086         * Label.cs: fixes image drawing (image and imagelist)
9087         * ThemeWin32Classic.cs: cache brushes
9088         
9089 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9090
9091         * Form.cs: Move menu drawing code to Theme class
9092         * ComboBox.cs: Move ComboBox drawing code to Theme class
9093         * MenuItem.cs: Move menu drawing code to Theme class
9094         * MenuAPI.cs: Move menu drawing code to Theme class
9095         * ThemeWin32Classic.cs: New methods
9096         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9097         * ListBox.cs: Move Listbox drawing code to Theme class
9098         * Theme.cs: New methods
9099
9100 2005-02-20  Peter Bartok  <pbartok@novell.com>
9101
9102         * Control.cs:
9103           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9104             only process mnemonics on those)
9105           - Fixed event sequence for key handling; first calling
9106             ProcessKeyEventArgs now
9107         * TextBoxBase.cs:
9108           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9109             for processing non-character keys
9110           - Fixed WM_CHAR to generate proper event sequence before processing
9111         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9112           generation
9113
9114 2005-02-19  Peter Bartok  <pbartok@novell.com>
9115
9116         * UserControl.cs: Added TextChanged event; added attributes
9117         * SizeGrip.cs: Implemented resizing and optional display of grip
9118         * Form.cs: Fixed attribute
9119         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9120           Changed meaning of ScrollWindow bool argument; instead of the
9121           clear attribute (which will be true usually anyway), it gives the
9122           option of moving child controls as well.
9123         * XplatUIX11.cs:
9124           - Changed to match new ScrollWindow argument
9125           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9126             now handles the implicit parent window a WM puts around us
9127         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9128           to work)
9129         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9130         * TreeView.cs: Adjusted to new ScrollWindow arguments
9131
9132 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9133
9134         * Form.cs: Menu integration with non-client area
9135         * MenuItem.cs: Menu integration with non-client area
9136         * MenuAPI.cs: Menu integration with non-client area
9137
9138 2005-02-18  Peter Bartok  <pbartok@novell.com>
9139
9140         * MethodInvoker.cs: Added
9141         * MdiLayout.cs: Added
9142         * SendKeys.cs: Started implementation
9143         * ErrorIconAlignment.cs: Added
9144
9145 2005-02-18  Peter Bartok  <pbartok@novell.com>
9146
9147         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9148         * Form.cs: Added handling for Menu-related Non-client messages
9149
9150 2005-02-17  Peter Bartok  <pbartok@novell.com>
9151
9152         * UpDownBase.cs: Fixed typo, compilation errors
9153         * DomainUpDown.cs: Fixed attribute value
9154
9155 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9156
9157         * UpDownBase.cs: Attach entry events.
9158         Propagate events.
9159         Add ForeColor property, Focused, InterceptArrowKeys (interception
9160         does not work yet).
9161
9162 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9163
9164         * Form.cs:
9165                 - Redraw non client are on Setmenu
9166                 - Calc proper menu starting point
9167
9168 2005-02-17  Peter Bartok  <pbartok@novell.com>
9169
9170         * Application.cs: Fixed message_filter check
9171
9172 2005-02-17  Peter Bartok  <pbartok@novell.com>
9173
9174         * Application.cs: Now calls registered message filters
9175         * DockStyle.cs: Fixed attribute
9176         * Form.cs: Fixed attribute
9177         * Menu.cs: Fixed attribute
9178         * ToolTip.cs: Fixed attribute
9179         * TreeNode.cs: Added missing attributes and arranged in regions
9180         * PropertyGrid.cs: Fixed signatures
9181         * TreeNodeCollection.cs: Added attributes
9182         * Splitter.cs: Added missing attributes; arranged into regions
9183         * TabPage.cs: Added missing attributes; arranged into regions
9184         * TextBoxBase.cs: Added missing attributes
9185         * TextBox.cs: Added missing attributes
9186         * ArrangeDirection.cs: Added missing attributes
9187         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9188         * ToolBarButton.cs: Fixed attributes
9189         * AnchorStyles.cs: Fixed attribute
9190         * TrackBar.cs: Fixed attributes
9191         * TabControl.cs: Added missing attributes and arranged into regions
9192         * ToolBar.cs: Fixed attribute
9193         * StatusBar.cs: Fixed signature, organized into regions and added
9194           attributes
9195         * StatusBarPanel.cs: Fixed attributes
9196         * ContentsResizedEventArgs.cs: Implemented
9197         * ContentsResizedEventHandler.cs: Implemented
9198         * DateBoldEventArgs.cs: Implemented
9199         * DateBoldEventHandler.cs: Implemented
9200         * UpDownEventArgs.cs: Implemented
9201         * UpDownEventHandler.cs: Implemented
9202         
9203 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9204
9205         * Form.cs: first Menu NC refactoring
9206         * MenuAPI.cs: first Menu NC refactoring
9207         
9208 2005-02-16  Peter Bartok  <pbartok@novell.com>
9209
9210         * ImeMode.cs: Added missing attributes
9211         * Menu.cs: Fixed attribute
9212         * GroupBox.cs: Fixed attribute
9213         * Label.cs: Fixed attribute
9214         * ColorDialog.cs (RunDialog): Removed TODO attribute
9215         * ComboBox.cs: Fixed attributes
9216         * ListControl.cs: Added missing attributes
9217         * PropertyGrid.cs: Fixed attributes
9218         * Control.cs: Fixed attributes
9219         * ListViewItem.cs: Added TypeConverter attribute
9220         * NotifyIcon.cs: Fixed attributes
9221         * ListView.cs: Fixed attributes
9222         * ButtonBase.cs: Fixed attribute
9223         * ImageList.cs: Added missing attributes
9224         * ContainerControl.cs: Fixed signature
9225         * CheckedListBox.cs: Fixed attribute; added missing attributes
9226         * Panel.cs: Fixed attributes
9227         * PropertyTabChangedEventArgs.cs: Added missing attribute
9228         * PropertyValueChangedEventArgs.cs: Added missing attribute
9229         * Binding.cs: Fixed attribute
9230         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9231         * ListBox.cs: Fixed attribute; added missing attributes;
9232         * ScrollableControl.cs: Added missing attributes
9233         * PictureBox.cs: Added missing attributes; implemented missing property
9234         * DateTimePicker.cs: Added missing attributes
9235         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9236         * MonthCalendar.cs: Fixed attributes
9237         * StatusBarPanel.cs: Added missing attributes
9238         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9239
9240 2005-02-16  Peter Bartok  <pbartok@novell.com>
9241
9242         * TextBoxBase.cs: The previous method to enforce height yet remember
9243           the requested high was less than ideal, this is an attempt to do
9244           it better.
9245         * Control.cs: Added comment about possible problem
9246         * Copyright: Updated format
9247         * GridItemType.cs: Fixed swapped values
9248
9249 2005-02-15  Jackson Harper  <jackson@ximian.com>
9250
9251         * BaseCollection.cs: Use property so we never access an
9252         uninitialized list. Also initialize the list in the property.
9253
9254 2005-02-15  Peter Bartok  <pbartok@novell.com>
9255
9256         * GroupBox.cs (ProcessMnemonic): Implemented
9257         * Label.cs (ProcessMnemonic): Implemented
9258         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9259           hotkeys
9260
9261 2005-02-15  Peter Bartok  <pbartok@novell.com>
9262
9263         * RadioButton.cs (ProcessMnemonic): Implemented
9264         * CheckBox.cs (ProcessMnemonic): Implemented
9265         * Control.cs:
9266           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9267             handling
9268           - Added internal method to allow calling ProcessMnemonic from other
9269             controls
9270         * ContainerControl.cs:
9271           - Started support for handling validation chain handling
9272           - Implemented ProcessMnemonic support
9273           - Added Select() call to Active, to make sure the active control
9274             receives focus
9275         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9276           FormParent rewrite)
9277         * ThemeWin32Classic.cs:
9278           - DrawCheckBox(): Fixed stringformat to show hotkeys
9279           - DrawRadioButton(): Fixed stringformat to show hotkeys
9280         * CommonDialog.cs: Removed WndProc override, not needed
9281
9282 2005-02-14  Peter Bartok  <pbartok@novell.com>
9283
9284         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9285           missed those in the rewrite
9286
9287 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9288
9289         * NumericUpDown.cs (Increment, ToString): Add.
9290         (DecimalPlaces): implement.
9291         
9292         Add attributes.
9293         
9294         * UpDownBase.cs: Add the designer attributes.
9295
9296 2005-02-13  Peter Bartok  <pbartok@novell.com>
9297
9298         * Panel.cs: Removed border_style, now in Control
9299         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9300           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9301
9302 2005-02-13  Peter Bartok  <pbartok@novell.com>
9303
9304         * MouseButtons.cs: Added missing attributes
9305         * XplatUIStructs.cs: Added enumeration for title styles
9306         * LeftRightAlignment.cs: Added missing attributes
9307         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9308           it compatible with Graphics.FromHwnd()
9309         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9310         * Keys.cs: Added missing attributes
9311         * SelectionRange.cs: Added missing attributes
9312         * SelectionRangeConverter.cs: Added
9313         * XplatUI.cs:
9314           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9315             ReleaseMenuDC methods
9316           - Renamed ReleaseWindow to UngrabWindow
9317           - Added proper startup notice to allow version identification
9318         * Form.cs:
9319           - Added missing attributes
9320           - Removed FormParent concept
9321         * Label.cs: Removed border_style field, now in Control
9322         * RadioButton.cs: Now properly selects RadioButton when focus is
9323           received
9324         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9325         * Control.cs:
9326           - Added missing attributes
9327           - Added borderstyle handling
9328           - Removed FormParent concept support
9329           - Fixed calls to XplatUI to match changed APIs
9330           - Fixed bug that would case us to use disposed Graphics objects
9331           - Removed unneeded internal methods
9332           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9333           - SelectNextControl(): Fixed to properly check common parents
9334         * TextBoxBase.cs: Removed border_style field (now in Control)
9335         * MessageBox.cs:
9336           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9337             fixed calculations for form size
9338           - Added support for localized strings and icons
9339           - Improved form size calculations, added border
9340         * ListView.cs: Removed border_style field (now in Control)
9341         * X11Structs.cs: Moved several structs from X11 driver here
9342         * X11Keyboard.cs: Changed debug message
9343         * Application.cs: Removed FormParent concept support
9344         * CommonDialog.cs:
9345           - Resetting end_modal flag
9346           - Removed FormParent concept support
9347         * NativeWindow.cs: Removed FormParent concept support
9348         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9349           Client area and Non-Client whole window to allow support for WM_NC
9350           messages
9351         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9352           prevent using it until it supports Hwnd as per Geoff Norton's request
9353         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9354         * PictureBox.cs: Removed border_style field, now in Control
9355         * XplatUIWin32.cs: Added new driver methods
9356
9357 2005-02-12  Peter Bartok  <pbartok@novell.com>
9358
9359         * OpacityConverter.cs: Implemented
9360         * Hwnd.cs: Internal class to support drivers that need to emulate
9361           client area/non-client area window behaviour
9362
9363 2005-02-11  Peter Bartok  <pbartok@novell.com>
9364
9365         * KeysConverter.cs: Implemented
9366
9367 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9368
9369         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9370         * LinkLabel: Added missing attributes
9371         * MainMenu.cs: fixes ToString
9372         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9373         * ListBox.cs: fixes event position
9374         * TrackBar.cs: adds missing attributes and events
9375         
9376 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9377
9378         * MenuItem.cs: Use SystemInformation and bug fixes
9379         * MenuAPI.cs: Use SystemInformation and bug fixes
9380
9381 2005-02-09  Jackson Harper  <jackson@ximian.com>
9382
9383         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9384         their keystate otherwise things like VK_MENU get stuck "on".
9385
9386 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9387
9388         * ListBox.cs: Fixes AddRange bug
9389         
9390 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9391
9392         * ProgressBar.cs
9393                 - Add missing attributes
9394                 - Add missing method
9395                 
9396         * CheckedListBox.cs: Added missing attributes
9397                 - Add missing attributes
9398                 - Remove extra method
9399         
9400         * ComboBox.cs: Added missing attributes
9401         * VScrollBar.cs: Added missing attributes
9402         * ScrollBar.cs:  Added missing attributes
9403         * ListBox.cs: Fixes signature, add missing consts
9404         * LinkArea.cs:   Added missing attributes
9405         
9406
9407 2005-02-08  Peter Bartok  <pbartok@novell.com>
9408
9409         * Menu.cs: Added missing attributes
9410         * MainMenu.cs: Added missing attributes
9411         * GroupBox.cs: Added missing attributes
9412         * Label.cs: Added missing attributes
9413         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9414         * ColorDialog.cs:
9415           - Added Instance and Options properties
9416           - Added missing attributes
9417         * Cursor.cs: Made Serializable
9418         * NotifyIcon: Added missing attributes
9419         * MenuItem.cs: Added missing attributes
9420         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9421         * Panel.cs: Added Missing attributes
9422         * MonthCalendar.cs: Fixed CreateParams
9423
9424 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9425         
9426         * LinkLabel.cs:
9427                 - Fixes signature
9428                 - Fixes issues with links
9429                 - Adds the class attributes
9430
9431 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9432         
9433         * ComboBox.cs:
9434                 - Fixes button when no items available in dropdown
9435                 - Fixes repainting problems
9436                 - Adds the class attributes
9437                 
9438 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9439
9440         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9441         the current theme.  Cache these on startup.
9442
9443 2005-02-07  Jackson Harper  <jackson@ximian.com>
9444
9445         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9446         the scrollbar buttons when they are depressed.
9447
9448 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9449
9450         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9451         Get the display size from the main displayid.  We currently dont
9452         support multiple display configurations.
9453
9454 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9455
9456         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9457
9458 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9459
9460         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9461
9462 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9463
9464         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9465
9466 2005-02-04  Jackson Harper  <jackson@ximian.com>
9467
9468         * ThemeWin32Classic.cs: Respect the clipping rect when
9469         drawing. Only fill the intersection of clips and rects so there
9470         isn't a lot of large fills.
9471         * ScrollBar.cs: Pass the correct clipping rect to the theme
9472         engine. Remove some debug code.
9473
9474 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9475         
9476         * DateTimePicker.cs:
9477                 - Fixed crash on DateTime.Parse, use Constructor instead
9478
9479 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9480         
9481         * MenuItem.cs:
9482         * MenuAPI.cs:
9483                 - Owner draw support (MeasureItem and DrawItem)
9484
9485 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9486         
9487         *  Menu.cs:
9488                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9489                 - Fixes MenuItems.Add range
9490         * MenuItem.cs:
9491                 - MergeMenu and Clone and CloneMenu functions
9492
9493 2005-02-03  Jackson Harper  <jackson@ximian.com>
9494
9495         * ScrollBar.cs: Make abstract
9496         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9497         is abstract.
9498
9499 2005-02-03  Jackson Harper  <jackson@ximian.com>
9500
9501         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9502         all the unneeded refreshes and uses invalidates with properly
9503         computed rects.
9504
9505 2005-02-03  Peter Bartok  <pbartok@novell.com>
9506
9507         * ComponentModel.cs: Added
9508         * IDataGridEditingService.cs: Added
9509         * Timer.cs: Added missing attributes
9510         * ToolTip.cs: Added missing attributes
9511
9512 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9513
9514         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9515
9516 2005-02-03  Peter Bartok  <pbartok@novell.com>
9517
9518         * ListBox.cs: Added missing attributes
9519
9520 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9521         
9522         * ListBox.cs:
9523                 - Fixes font height after font change
9524                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9525                 
9526 2005-02-02  Peter Bartok  <pbartok@novell.com>
9527
9528         * HandleData.cs: Introduced static methods to allow class
9529           to be more self-contained and track it's own HandleData objects
9530         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9531           HandleData to use new static methods
9532
9533 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9534
9535         * Combobox.cs:
9536                 - Fixes default size and PreferredHeight
9537                 - Missing events
9538                 - ObjectCollection.Insert implementation
9539                 
9540         * ListControl.cs
9541                 - Fixes signature
9542         * ListBox.cs:
9543                 - Several fixes
9544                 - ObjectCollection.Insert implementation
9545                 - No selection after clean
9546                 - Small fixes
9547
9548 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9549
9550         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9551
9552 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9553
9554         * Combobox.cs:
9555                 - Caches ItemHeight calculation for OwnerDrawVariable
9556                 - Handles dropdown properly
9557                 - Fixes several minor bugs
9558
9559 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9560
9561         * ListBox.cs:
9562                 - Fixes 71946 and 71950
9563                 - Fixes changing Multicolumn on the fly
9564                 - Fixes keyboard navigation on Multicolumn listboxes
9565
9566 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9567         
9568         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9569         crash reporter log.
9570
9571 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9572
9573         * XplatUIOSX.cs: Allow applications to actually exit.
9574
9575 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9576
9577         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9578         their parent at creation time rather than lazily later.  Fixes a major
9579         regression we were experiencing.
9580
9581 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9582
9583         * ThemeWin32Classic.cs: more date time picker painting fixes
9584         * DateTimePicker.cs: more monthcalendar drop down fixes
9585         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9586
9587 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9588
9589         * ScrollBar.cs:
9590                 - When moving the thumb going outside the control should stop the moving
9591                 - Adds the firing of missing events
9592                 - Fixes no button show if Size is not specified
9593                 - End / Home keys for keyboard navigation
9594
9595 2005-01-30  Peter Bartok  <pbartok@novell.com>
9596
9597         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9598           sanity check to prevent theoretical loop
9599         * XplatUIWin32.cs (SetVisible): Removed debug output
9600         * XplatUIX11.cs (SystrayChange): Added sanity check
9601         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9602         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9603           behaviour, valid until the X11 client window rewrite is done
9604         * TextBox.cs (ctor): Setting proper default foreground and background
9605           colors
9606
9607 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9608
9609         * Theme: Added DrawDateTimePicker to interface
9610         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9611         * DateTimePicker.cs: Created (still needs keys and painting code)
9612         * DateTimePickerFormat.cs: added
9613         * MonthCalendar.cs: fixed CreateParams for popup window mode
9614           
9615 2005-01-29  Peter Bartok  <pbartok@novell.com>
9616
9617         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9618           this should also the calculations for ligher/darker
9619         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9620
9621 2005-01-29  Peter Bartok  <pbartok@novell.com>
9622
9623         * ArrangeDirection.cs: Added
9624         * ArrangeStartingPositon.cs: Added
9625         * SystemInformation.cs: Implemented
9626         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9627           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9628           used by SystemInformation class
9629         * X11Strucs.cs: Added XSizeHints structure
9630         * MenuAPI.cs:
9631           - Fixed CreateParams to make sure the menu window is always visible
9632           - TrackPopupMenu: Added check to make sure we don't draw the
9633             menu offscreen
9634
9635 2005-01-29  Peter Bartok  <pbartok@novell.com>
9636
9637         * HandleData.cs: Added method for altering invalid area
9638         * TextBoxBase.cs: Implemented TextLength
9639
9640 2005-01-28  Peter Bartok  <pbartok@novell.com>
9641
9642         * XplatUIX11.cs: Improvement over last patch, not sending
9643           the WM_PAINT directly anymore, instead we scroll any pending
9644           exposed areas and let the system pick out the WM_PAINT later
9645
9646 2005-01-28  Peter Bartok  <pbartok@novell.com>
9647
9648         * SWF.csproj: Deleted, no longer used. Instead,
9649           Managed.Windows.Forms/SWF.csproj should be used
9650         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9651           directly, to avoid a potential race condition with the next
9652           scroll
9653
9654 2005-01-28  Peter Bartok  <pbartok@novell.com>
9655
9656         * XplatUI.cs: Made class internal
9657
9658 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9659
9660         * CheckedListBox.cs:
9661                 - Draw focus
9662                 - Fixed Drawing
9663                 - Missing methods and events
9664
9665 2005-01-27  Peter Bartok  <pbartok@novell.com>
9666
9667         * Application.cs (Run): Don't use form if we don't have one
9668
9669 2005-01-27  Peter Bartok  <pbartok@novell.com>
9670
9671         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9672
9673 2005-01-27  Peter Bartok  <pbartok@novell.com>
9674
9675         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9676         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9677         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9678         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9679         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9680         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9681         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9682         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9683         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9684         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9685         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9686         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9687
9688 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9689
9690         * Combobox.cs:
9691                 - Draw focus on Simple Combobox
9692                 - Fixes drawing issues
9693                 - fixes 71834
9694
9695 2005-01-27  Peter Bartok  <pbartok@novell.com>
9696
9697         * Form.cs:
9698           - Place window in default location, instead of hardcoded 0/0
9699           - Send initial LocationChanged event
9700         * Control.cs:
9701           - UpdateBounds after creation to find out where the WM placed us
9702           - Make sure that if the ParentForm changes location the Form
9703             is notified
9704         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9705             to the root, but to whatever the WM placed around us.
9706             Translate to root coordinates before returning toplevel
9707             coordinates
9708         * XplatUIWin32.cs: Removed debug output
9709         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9710           flag to GetWindowPos, to allow translation of coordinates on X11
9711
9712 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9713
9714         * ListBox.cs: connect LostFocus Event
9715
9716 2005-01-27  Peter Bartok  <pbartok@novell.com>
9717
9718         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9719           XplatUIX11.cs: Extended the Systray API
9720         * Form.cs: Removed debug output
9721         * Application.cs: Fixed focus assignment, always need to call
9722           XplatUI.Activate() since Form.Activate() has rules that may
9723           prevent activation
9724         * NotifyIcon.cs: Should be complete now
9725         * ToolTip.cs: Worked around possible timer bug
9726
9727 2005-01-27  Jackson Harper  <jackson@ximian.com>
9728
9729         * TabControl.cs:
9730         - Only invalidate the effected tabs when the
9731         selected index changes. This reduces drawing and gets rid of some
9732         flicker.
9733         - Only refresh if the tabs need to be shifted, otherwise only
9734         invalidate the slider button.
9735         - On windows the tabs are not filled to right if the slider is
9736         visible.
9737         
9738 2005-01-27  Jackson Harper  <jackson@ximian.com>
9739
9740         * TabControl.cs: Only refresh on mouseup if we are showing the
9741         slider. Also only invalidate the button whose state has changed.
9742
9743 2005-01-26  Peter Bartok  <pbartok@novell.com>
9744
9745         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9746         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9747           and SystrayRemove() methods
9748         * XplatUIOSX.cs: Stubbed Systray methods
9749         * XplatUIX11.cs:
9750           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9751             methods
9752           - Fixed broken XChangeProperty calls (marshalling messed up things)
9753         * X11Structs.cs: Added enums and structs required for Size hinting
9754         * NotifyIcon.cs: Added & implemented
9755
9756 2005-01-26  Jackson Harper  <jackson@ximian.com>
9757
9758         * TabControl.cs: Space vertically layed out tabs properly.
9759
9760 2005-01-26  Peter Bartok  <pbartok@novell.com>
9761
9762         * Form.cs (CreateClientParams): Always set the location to 0,0
9763           since we're a child window.
9764
9765         * Control.cs (SetVisibleCore): Always explicitly setting the location
9766           of a toplevel window, apparently X11 doesn't like to move windows
9767           while they're not mapped.
9768
9769 2005-01-26  Jackson Harper  <jackson@ximian.com>
9770
9771         * TabControl.cs: Implement FillToRight size mode with vertically
9772         rendered tabs.
9773
9774 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9775
9776         * ControlPaint.cs, ThemeWin32Classic.cs
9777                 - Fixes DrawFocusRectangle
9778
9779 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9780
9781         * MenuAPI.cs:
9782                 - MenuBar tracking only starts when item is first clicked
9783                 - Fixes menu hidding for multiple subitems
9784                 - Unselect item in MenuBar when item Executed
9785                 - Fixes bug 71495
9786
9787 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9788
9789         * ListControl.cs:
9790                 - IsInputKey for ListBox
9791         * ListBox.cs:
9792                 - Focus item
9793                 - Shift and Control item selection
9794                 - Implement SelectionMode.MultiExtended
9795                 - Fixes RightToLeft
9796         * ComboBox.cs:
9797                 - IsInputKey implemented
9798                 - Do not generate OnTextChangedEdit on internal txt changes
9799                 
9800 2005-01-23  Peter Bartok  <pbartok@novell.com>
9801
9802         * AccessibleObject.cs: Partially implemented Select()
9803         * MonthCalendar.cs: Added missing attributes and events
9804         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9805           form can properly override CreateParams.
9806         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9807           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9808           Control performs Invalidate & Update
9809         * NativeWindow (CreateHandle): Added special handling for Form
9810           and Form.FormParent classes to allow overriding of From.CreateParams
9811         * Control.cs:
9812           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9813             name 'owner'
9814           - ControlNativeWindow: Added Owner property
9815           - Removed usage of Refresh() on property changes, changed into
9816             Invalidate(), we need to wait until the queue is processed for
9817             updates, direct calls might cause problems if not all vars for
9818             Paint are initialized
9819           - Added call to UpdateStyles() when creating the window, to set any
9820             styles that CreateWindow might have ignored.
9821           - Added support for Form CreateParent overrides to UpdateStyles()
9822         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9823           CreateParams are now properly overridable
9824         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9825           CreateParams are now properly overridable
9826
9827 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9828
9829         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9830         OnTextBoxChanged.
9831
9832         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9833         recursive invocation that I have not figured out yet.
9834
9835         Reset the timer when not using (it was accumulating).
9836
9837
9838         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9839         user has made changes that require validation.
9840
9841         Reset changing to avoid loops.
9842
9843 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9844
9845         * NumericUpDown.cs: Display value at startup.
9846
9847         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9848         ValidateEditText.
9849
9850         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9851         filled in.  Added some basic parsing of text.
9852
9853         Still missing the OnXXX method overrides, and figuring out the
9854         events that must be emitted.
9855
9856         * UpDownBase.cs: Handle UserEdit on the Text property.
9857         
9858 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9859
9860         * ComboBox.cs:
9861           - Fixes IntegralHeight
9862           - ToString method
9863
9864 2005-01-21  Jackson Harper  <jackson@ximian.com>
9865
9866         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9867         is set so that the page visibility is updated and the tabs are
9868         sized correctly.
9869
9870 2005-01-21  Jackson Harper  <jackson@ximian.com>
9871
9872         * TabControl.cs: Use cliping rectangle for blitting. Give the
9873         theme the clipping rect so we can do clipping while
9874         drawing. Remove some debug code.
9875
9876 2005-01-21  Jackson Harper  <jackson@ximian.com>
9877
9878         * TabPage.cs: Add a new method so tab pages can force the tab
9879         control to recalculate the tab page sizes.
9880         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9881         sizes.
9882
9883 2005-01-20  Jackson Harper  <jackson@ximian.com>
9884
9885         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9886
9887 2005-01-20  Jackson Harper  <jackson@ximian.com>
9888
9889         * TreeView.cs: Set the bounds for nodes properly. They were
9890         getting screwed up when checkboxes were not enabled, but images
9891         were.
9892
9893 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9894
9895         * ListBox.cs:
9896                 - Owner draw support
9897                 - Fixes
9898                 
9899 2005-01-20  Jackson Harper  <jackson@ximian.com>
9900
9901         * XplatUIStructs.cs: More misc keys
9902         * X11Keyboard.cs: Ignore some control keys.
9903
9904 2005-01-20  Jackson Harper  <jackson@ximian.com>
9905
9906         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9907         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9908
9909 2005-01-19  Peter Bartok  <pbartok@novell.com>
9910
9911         * Control.cs: Un-selecting the control when it is loosing focus
9912
9913 2005-01-19  Jackson Harper  <jackson@ximian.com>
9914
9915         * TreeView.cs: Hook up to the text controls leave event so we can
9916         end editing when the users clicks outside the text box.
9917         
9918 2005-01-19  Jackson Harper  <jackson@ximian.com>
9919
9920         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9921         get set in the conversion array.
9922
9923 2005-01-19  Peter Bartok  <pbartok@novell.com>
9924
9925         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9926           focus is properly set
9927         * Button.cs:
9928           - Added missing attributes
9929           - removed styles, those are already set in the base class
9930         * ButtonBase.cs:
9931           - Added missing attributes
9932           - Added clip window styles
9933         * CheckBox.cs: Added missing attributes
9934         * CommonDialog.cs:
9935           - FormParentWindow.CreateParams: Added required clip styles
9936         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9937           also filters modifier keys
9938         * MessageBox.cs:
9939           - Added assignment of Accept and Cancel button to enable Enter
9940             and Esc keys in MessageBox dialogs
9941           - FormParentWindow.CreateParams: Added required clip styles
9942         * RadioButton.cs: Added missing attributes
9943         * TextControl.cs: No longer draws selection if control does not
9944           have focus
9945         * TextBoxBase.cs:
9946           - Now draws simple rectangle around test area to make it obvious
9947             there's a control. This is a hack until we properly support borders
9948           - A few simple fixes to support selections better, now erases selected
9949             text when typing, and resets selection when using movement keys
9950
9951 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9952
9953         * UpDownBase.cs: Added some new properties.
9954
9955         * DomainUpDown.cs: Implement a lot to get my test working.
9956
9957 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9958
9959         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9960
9961 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9962
9963         * OSXStructs (WindowAttributes): Fixed csc complaints
9964
9965 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9966
9967         * XplayUIOSX.cs:
9968           OSXStructs.cs: Initial refactor to move enums and consts into
9969           OSXStructs and use them in the driver for greater readability.
9970
9971 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9972
9973         * XplatUIOSX.cs: Initial support for Standard Cursors.
9974         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9975
9976 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9977
9978         * ComboBox.cs: ability to change style when the ctrl is already
9979         created, missing methods and events, bug fixes, signature fixes
9980
9981 2005-01-19  Peter Bartok  <pbartok@novell.com>
9982
9983         * Cursors.cs (ctor): Added ctor to fix signature
9984
9985 2005-01-18  Peter Bartok  <pbartok@novell.com>
9986
9987         * Button.cs: Implemented DoubleClick event
9988         * ButtonBase.cs:
9989           - Fixed keyboard handling to behave like MS, where the press of
9990             Spacebar is equivalent to a mousedown, and the key release is
9991             equivalent to mouseup. Now a spacebar push will give the same
9992             visual feedback like a mouse click.
9993           - Added missing attributes
9994           - Added ImeModeChanged event
9995           - Added support for generating DoubleClick event for derived classes
9996         * CheckBox.cs:
9997           - Implemented DoubleClick event
9998           - Added missing attributes
9999         * CommonDialog.cs: Added missing attribute
10000         * ContextMenu.cs: Added missing attributes
10001         * RadioButton.cs:
10002           - AutoChecked buttons do not allow to be unselected when clicked
10003             (otherwise we might end up with no selected buttons in a group)
10004           - Added missing attributes
10005           - Implemented DoubleClickEvent
10006         * ThreadExceptionDialog.cs: Enabled TextBox code
10007
10008 2005-01-18  Peter Bartok  <pbartok@novell.com>
10009
10010         * Form.cs: Removed debug output
10011         * Button.cs: Added support for DoubleClick method
10012
10013 2005-01-18  Peter Bartok  <pbartok@novell.com>
10014
10015         * Form.cs:
10016           - Added method to parent window that allows triggering size
10017             calculations when a menu is added/removed
10018           - set_Menu: Cleaned up mess from early days of Form and Control,
10019             now properly triggers a recalc when a menu is added/removed
10020           - Added case to select form itself as focused form if no child
10021             controls exist
10022           - Added PerformLayout call when showing dialog, to ensure properly
10023             placed controls
10024         * Control.cs:
10025           - Select(): Made internal so Form can access it
10026           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10027             status
10028         * Application.cs (Run): Removed hack and calls PerformLayout instead
10029           to trigger calculation when Form becomes visible
10030
10031 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10032
10033         * ComboBox.cs: fixes for ownerdraw
10034
10035 2005-01-18  Peter Bartok  <pbartok@novell.com>
10036
10037         * TextControl.cs:
10038           - Sentinel is no longer static, each Document gets it's own, this
10039             avoids locking or alternatively overwrite problems when more
10040             than one text control is used simultaneously.
10041           - Switched to use Hilight and HilightText brushes for text selection
10042
10043         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10044
10045 2005-01-18  Peter Bartok  <pbartok@novell.com>
10046
10047         * Control.cs:
10048           - Hooked up the following events:
10049                 o ControlAdded
10050                 o ControlRemoved
10051                 o HandleDestroyed
10052                 o ImeModeChanged
10053                 o ParentChanged
10054                 o TabStopChanged
10055                 o Invalidated
10056                 o SystemColorsChanged
10057                 o ParentFontChanged
10058                 o Move
10059           - Removed debug output
10060           - Added a call to the current theme's ResetDefaults when a color change
10061             is detected
10062         * Form.cs: Now setting the proper ImeMode
10063         * Theme.cs: Defined a method to force recreation of cached resources
10064           and rereading of system defaults (ResetDefaults())
10065         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10066
10067 2005-01-17  Peter Bartok  <pbartok@novell.com>
10068
10069         * Control.cs: Added missing attributes
10070
10071 2005-01-17  Jackson Harper  <jackson@ximian.com>
10072
10073         * TreeNode.cs: Implement editing. Add missing properties selected
10074         and visible.
10075         * TreeView.cs: Implement node editing. Also some fixes to use
10076         Invalidate (invalid area) instead of Refresh when selecting.
10077
10078 2005-01-17  Peter Bartok  <pbartok@novell.com>
10079
10080         * Control.cs:
10081           - Implemented InvokeGotFocus() method
10082           - Implemented InvokeLostFocus() method
10083           - Implemented InvokePaint() method
10084           - Implemented InvokePaintBackground() method
10085           - Implemented InvokeClick() method
10086           - Implemented FindForm() method
10087           - Implemented RectangleToClient() method
10088           - Implemented ClientToRectangle() method
10089           - Implemented ResetBackColor() method
10090           - Implemented ResetCursor() method
10091           - Implemented ResetFont() method
10092           - Implemented ResteForeColor() method
10093           - Implemented ResetImeMode() method
10094           - Implemented ResetLeftToRight() method
10095           - Implemented ResetText() method
10096           - Implemented Scale() methods
10097           - Implemented ScaleCore() method
10098           - Implemented Update() method
10099           - Removed unused variables
10100           - Stubbed AccessibilityNotifyClients and
10101             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10102             with those yet)
10103           - Now setting proper default for RightToLeft property
10104           - Fixed bug in SetClientSizeCore that would cause windows to get
10105             really big
10106           - Now sending Click/DoubleClick events
10107           - Now selecting controls when left mouse button is clicked on
10108             selectable control
10109         * AccessibleEvents.cs: Added
10110         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10111         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10112         * XplatUIWin32.cs: Implemented UpdateWindow() method
10113         * XplatUIX11.cs: Implemented UpdateWindow() method
10114         * Form.cs: Removed stray semicolon causing CS0162 warning
10115         * ThemeWin32Classic.cs: Fixed unused variable warnings
10116         * ScrollableControl.cs: Now calls base method for ScaleCore
10117         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10118           style to avoid interference with internal click handler (which is
10119           different than standard Control click handling)
10120         * RadioButton.cs:
10121           - Now unchecks all sibling radio buttons when control is
10122             selected (Fixes #68756)
10123           - Removed internal tabstop variable, using the one inherited from
10124             Control
10125
10126 2005-01-17  Jackson Harper  <jackson@ximian.com>
10127
10128         * NavigateEventArgs.cs: Fix base type.
10129         * LinkLabel.cs: Sig fix
10130         
10131 2005-01-17  Jackson Harper  <jackson@ximian.com>
10132
10133         * TreeView.cs: Only invalidate the effected nodes bounds when
10134         selecting nodes.
10135
10136 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10137
10138         * XplatUIWin32.cs: fixes Win32 marshaling
10139         * XplatUIX11.cs: fixes method signature
10140
10141 2005-01-17  Peter Bartok  <pbartok@novell.com>
10142
10143         * XplatUIX11.cs: Clean up resources when we no longer need them
10144
10145 2005-01-17  Peter Bartok  <pbartok@novell.com>
10146
10147         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10148           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10149           and DestroyCursor() methods.
10150         * Cursor.cs: Partially implemented, now supports standard cursors;
10151           still contains some debug code
10152         * Cursors.cs: Implemented class
10153         * Control.cs:
10154           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10155             appropriate cursor
10156           - Implemented Cursor property
10157           - Replaced break; with return; more straightforwar and possibly
10158             faster
10159           - Now properly setting the result for WM_HELP
10160         * X11Structs.cs: Added CursorFontShape enum
10161         * XplatUIStructs.cs:
10162           - Added StdCursor enum (to support DefineStdCursor() method)
10163           - Added HitTest enum (to support sending WM_SETCURSOR message)
10164         * XplatUIX11.cs:
10165           - Now sends the WM_SETCURSOR message
10166           - Implemented new cursor methods
10167         * XplatUIOSX.cs: Stubbed new cursor methods
10168         * XplatUIWin32.cs:
10169           - Implemented new cursor methods
10170           - Added GetSystemMetrics function and associated enumeration
10171
10172 2005-01-15  Peter Bartok  <pbartok@novell.com>
10173
10174         * Control.cs:
10175           - WndProc(): Now handles EnableNotifyMessage
10176           - SelectNextControl(): Fixed bug where if no child or sibling
10177             controls exist we looped endlessly
10178
10179 2005-01-14  Jackson Harper  <jackson@ximian.com>
10180
10181         * TreeView.cs: Recalculate the tab pages when a new one is added
10182         so that the proper bounding rects are created.
10183
10184 2005-01-14  Jackson Harper  <jackson@ximian.com>
10185
10186         * TreeView.cs: Draw a gray box instead of a grip in the lower
10187         right hand corner when there are both horizontal and vertical
10188         scroll bars.
10189
10190 2005-01-14  Jackson Harper  <jackson@ximian.com>
10191
10192         * Control.cs: When erasing backgrounds use FromHwnd instead of
10193         FromHdc when there is a NULL wparam. This occurs on the X driver.
10194         * XplatUIX11.cs: Set the wparam to NULL.
10195
10196 2005-01-13  Jackson Harper  <jackson@ximian.com>
10197
10198         * PictureBox.cs: Implement missing methods (except ToString, need
10199         to test that on windows) and events. When visibility is changed we
10200         need to redraw the image because the buffers are killed. When size
10201         is changed refresh if the sizemode needs it.
10202
10203 2005-01-13  Peter Bartok  <pbartok@novell.com>
10204
10205         * Control.cs (SelectNextControl): Was using wrong method to select
10206           a control
10207
10208 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10209
10210         * ComboBox.cs: fixes dropstyle
10211
10212 2005-01-13  Peter Bartok  <pbartok@novell.com>
10213
10214         * Form.cs:
10215           - Implemented Select() override
10216           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10217           - Now sets keyboard focus on startup
10218         * Control.cs (SelectNextControl): Now properly handles directed=true
10219         * TextBoxBase.cs:
10220           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10221           - Added (really bad) focus rectangle (mostly for testing)
10222         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10223           to enforce redraw on focus changes
10224         * ContainerControl.cs:
10225           - Fixed detection of Shift-Tab key presses
10226           - Fixed traversal with arrow keys
10227         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10228           gonna keep this or if it's complete yet
10229         
10230 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10231
10232         * ComboBox.cs: missing properties, fixes
10233
10234 2005-01-13  Peter Bartok  <pbartok@novell.com>
10235
10236         * Panel.cs (ctor): Setting Selectable window style to off
10237         * Splitter.cs (ctor): Setting Selectable window style to off
10238         * GroupBox.cs (ctor): Setting Selectable window style to off
10239         * Label.cs (ctor): Setting Selectable window style to off
10240
10241 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10242
10243         * UpDownBase.cs (InitTimer): If the timer has been already
10244         created, enable it.
10245
10246         Use a TextBox instead of a Label.
10247
10248 2005-01-12  Jackson Harper  <jackson@ximian.com>
10249
10250         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10251         draw the connecting node lines (when ShowLines is true).
10252         * TreeNode.cs: The nodes index can now be updated. This is used
10253         when a node collection is sorted.
10254         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10255         insert or an existing unsorted node collection can be sorted.
10256         
10257 2005-01-12  Peter Bartok  <pbartok@novell.com>
10258
10259         * ContainerControl.cs: Implemented ProcessDialogKeys()
10260
10261 2005-01-12  Peter Bartok  <pbartok@novell.com>
10262
10263         * Control.cs:
10264           - Implemented SelectNextControl() method
10265           - Several focus related bug fixes
10266           - Fixed Docking calculations to match MS documentation and
10267             behaviour
10268
10269 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10270
10271         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10272         bug fixes
10273
10274 2005-01-12  Peter Bartok  <pbartok@novell.com>
10275
10276         * Control.cs:
10277           - Fixed broken Contains() method
10278           - Implemented GetNextControl() method. Finally. This is the pre-
10279             requisite for focus handling.
10280
10281 2005-01-12  Peter Bartok  <pbartok@novell.com>
10282
10283         * OSXStrucs.cs: Added
10284
10285 2005-01-12  Peter Bartok  <pbartok@novell.com>
10286
10287         * XplatUIWin32.cs:
10288           - Removed PeekMessageFlags
10289           - Implemented SetWindowStyle() method
10290         * XplatUIStructs.cs: Added PeekMessageFlags
10291         * X11Structs: Added missing border_width field to XWindowChanges struct
10292         * XplatUIX11.cs:
10293           - PeekMessage: Now throws exception if flags which are not yet
10294             supported are passed
10295           - Implemented SetWindowStyle() method
10296           - Fixed SetZOrder to handle AfterHwnd properly
10297         * XplatUI.cs: Added SetWindowStyle() method
10298         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10299         * Control.cs:
10300           - Implemented UpdateStyles() method
10301           - Implemented UpdateZOrder() method
10302         * XplatUIOSX.cs: Added SetWindowStyle() stub
10303
10304 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10305
10306         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10307         button mouse).
10308
10309
10310 2005-01-11  Jackson Harper  <jackson@ximian.com>
10311
10312         * TreeView.cs: Still need to draw lines to siblings even if out of
10313         the current node is out of the clip.
10314
10315 2005-01-11  Jackson Harper  <jackson@ximian.com>
10316
10317         * TreeView.cs: When setting the hbar/vbar/grip position use
10318         SetBounds so that perform layout is only called once. Also suspend
10319         and resume layout so layout is only done once for all controls.
10320         - Removed some debug fluff
10321         * SizeGrip.cs: Call base implmentation in overriding methods.
10322         - When visibility is changed the drawing buffers are killed so we
10323         need to redraw.
10324
10325 2005-01-11  Jackson Harper  <jackson@ximian.com>
10326
10327         * TreeView.cs: Calculate the open node count while drawing. This
10328         saves us an entire tree traversal for every paint operation. Use
10329         a member var for the open node count so less vars are passed around.
10330
10331 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10332
10333         * MonthCalendar.cs:
10334         - fixed selection to use mousemove, not mouse polling on timer
10335         * ThemeWin32Classic.cs
10336         - removed redundant unused variable "no_more_content"
10337         
10338 2005-01-11  Peter Bartok  <pbartok@novell.com>
10339
10340         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10341           are pending, so it now calls PeekMessage instead of GetMessage;
10342           implemented a incomplete version of PeekMessage
10343         
10344 2005-01-11  Peter Bartok  <pbartok@novell.com>
10345
10346         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10347           I18n issues
10348         * TextBoxBase.cs: Added sending of TextChanged event
10349
10350 2005-01-10  Jackson Harper  <jackson@ximian.com>
10351
10352         * TreeView.cs: Try not to draw outside the clipping rectangle on
10353         each node element.
10354
10355 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10356
10357         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10358
10359 2005-01-10  Jackson Harper  <jackson@ximian.com>
10360
10361         * TreeView.cs:
10362         - Implement fast scrolling. Now only the newly
10363         exposed nodes are drawn and the old image is moved using the
10364         XplatUI::ScrollWindow method.
10365         - Factor in height of nodes when calculating whether or not the
10366         node is in the clipping rect.
10367
10368 2005-01-10  Jackson Harper  <jackson@ximian.com>
10369
10370         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10371
10372 2005-01-10  Peter Bartok  <pbartok@novell.com>
10373
10374         * Application.cs: Added temporary hack to resolve all our resize
10375           required issues on startup. This will get fixed properly at
10376           some point in the future
10377
10378 2005-01-10  Jackson Harper  <jackson@ximian.com>
10379
10380         * SizeGrip.cs: New internal class that is used as a sizing
10381         grip control...hence the name.
10382
10383 2005-01-10  Peter Bartok  <pbartok@novell.com>
10384
10385         * Control.cs: Implemented proper TabIndex handling, now assigning
10386           a tabindex when a control is added to a container
10387         * GroupBox.cs (ctor): Now sets the Container style bit, required
10388           for Control.GetNextControl()
10389
10390 2005-01-09  Jackson Harper  <jackson@ximian.com>
10391
10392         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10393
10394 2005-01-09  Peter Bartok <pbartok@novell.com>
10395
10396         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10397           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10398           an overload for ScrollWindow to allow only scrolling a rectangle
10399
10400 2005-01-09  Peter Bartok <pbartok@novell.com>
10401
10402         * Form.cs:
10403           - Implemented SetDesktopBounds method
10404           - Implemented SetDesktopLocation method
10405
10406 2005-01-08  Jackson Harper  <jackson@ximian.com>
10407
10408         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10409         the node count has changed, this removes to VScroll::Refresh calls
10410         when drawing.
10411
10412 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10413
10414         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10415
10416 2005-01-07  Jackson Harper  <jackson@ximian.com>
10417
10418         * TreeNode.cs: Just update the single node when it is
10419         checked. Don't refresh after toggling, the Expand/Collapse already
10420         handles this.
10421         * TreeView.cs: Respect clipping a little more when drawing. Try
10422         not to redraw things that don't need to be redrawn. Just hide the
10423         scrollbars when they are no longer needed instead of removing
10424         them, so they don't have to be created again and again.
10425         
10426 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10427
10428         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10429         coordinates to window space to place the caret properly, FIXED.
10430         Implement GetWindowState & SetWindowState
10431
10432 2005-01-06  Peter Bartok <pbartok@novell.com>
10433
10434         * Form.cs:
10435           - Implemented ClientSize property
10436           - Implemented DesktopBounds property
10437           - Implemented DesktopLocation property
10438           - Implemented IsRestrictedWindow property
10439           - Implemented Size property
10440           - Implemented TopLevel property
10441           - Implemented FormWindowState property
10442         * Control.cs:
10443           - Implemented GetTopLevel() method
10444           - Implemented SetTopLevel() method
10445         * X11Structs.cs (Atom):
10446           - Added AnyPropertyType definition
10447           - Added MapState definiton and updated XWindowAttribute struct
10448         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10449         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10450         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10451         * XplatUIWin32.cs:
10452           - Implemented GetWindowState() and SetWindowState() methods
10453           - Fixed Win32GetWindowLong return type
10454         * XplatUIX11.cs:
10455           - Introduced central function for sending NET_WM messages
10456           - Implemented GetWindowState() and SetWindowState() methods
10457         * TextBoxBase.cs (set_Lines):
10458           - Now uses Foreground color for text added via Text property (Duh!)
10459           - Added code to remember programmatically requested size (fixes
10460             behaviour when Multiline is set after Size)
10461           - Added AutoSize logic
10462
10463 2005-01-06  Jackson Harper  <jackson@ximian.com>
10464
10465         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10466
10467 2005-01-06  Jackson Harper  <jackson@ximian.com>
10468
10469         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10470         set to less then 0.
10471
10472 2005-01-06  Jackson Harper  <jackson@ximian.com>
10473
10474         * ScrollableControl.cs: Lazy init the scrollbars.
10475         
10476 2005-01-06  Jackson Harper  <jackson@ximian.com>
10477
10478         * Theme.cs: Speed up getting pens and solid brushes, by using
10479         their ARGB as a hash instead of tostring and not calling Contains.
10480
10481 2005-01-06  Peter Bartok <pbartok@novell.com>
10482
10483         * Form.cs:
10484           - Implemented OnActivated and OnDeactivate event trigger
10485           - Implemented Activate() method
10486           - Fixed ShowDialog() to activate the form that was active before
10487             the dialog was shown
10488         * XplatUIX11.cs:
10489           - Added global active_window var that tracks the currently active
10490             X11 window
10491           - Now always grabs Property changes from the root window to always
10492             catch changes on the active window property
10493           - Added code to PropertyNotify handler to send Active/Inactive
10494             messages when state changes. This puts X11 and Win32 en par on
10495             WM_ACTIVATE notifications (except for double notifications when
10496             the user clicks away from our modal window to another one of our
10497             windows)
10498
10499 2005-01-05  Jackson Harper  <jackson@ximian.com>
10500
10501         * ImageList.cs: Implment ctor
10502
10503 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10504
10505         * XplatUIOSX.cs: Implement Activate/SetTopmost
10506
10507 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10508
10509         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10510
10511 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10512
10513         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10514
10515 2005-01-05  Peter Bartok <pbartok@novell.com>
10516
10517         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10518           XplatUIOSX.cs: Added GetActive method to return the currently
10519           active window for the application (or null, if none is active)
10520         * Form.cs:
10521           - Implemented ActiveForm
10522           - Commented out owner assignment for modal dialogs (causes problems
10523             on Win32, since the owner will be disabled)
10524           - Reworked some Active/Focus handling (still incomplete)
10525         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10526           (causes problems on Win32, since the owner will be disabled)
10527         * IWin32Window: Added ComVisible attribute
10528
10529 2005-01-05  Peter Bartok <pbartok@novell.com>
10530
10531         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10532           required XplatUI functions.
10533
10534 2005-01-05  Peter Bartok <pbartok@novell.com>
10535
10536         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10537           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10538           to implement focus and activation handling; still incomplete and
10539           with debug output
10540
10541 2005-01-04  Peter Bartok <pbartok@novell.com>
10542
10543         * TextBoxBase.cs: Changed access level for Document property to
10544           match switch to internal for TextControl
10545
10546 2005-01-04  Peter Bartok <pbartok@novell.com>
10547
10548         * AccessibleObject: Added ComVisible attribute
10549
10550 2005-01-04  Jackson Harper  <jackson@ximian.com>
10551
10552         * X11Keyboard.cs: Remove unneeded var.
10553
10554 2005-01-04  Jackson Harper  <jackson@ximian.com>
10555
10556         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10557         but PAINT.
10558         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10559         ClientMessage. This makes apps exit cleanly (more often).
10560         
10561 2005-01-04  Jackson Harper  <jackson@ximian.com>
10562
10563         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10564         handling focus, return correct colors and fonts,
10565         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10566         handle selection, horizontal scrolling, and mouse interaction.
10567
10568 2005-01-04  Peter Bartok <pbartok@novell.com>
10569
10570         * ICommandExecutor.cs: Added
10571         * IDataGridColumnStyleEditingNotificationService.cs: Added
10572         * IFeatureSupport.cs: Added
10573         * IFileReaderService.cs: Added
10574         * IDataObject.cs: Added ComVisible attribute
10575         * AmbientProperties.cs: Added
10576         * BaseCollection.cs: Added missing attributes
10577         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10578         * BaseCollection.cs: Added missing attributes
10579         * Binding.cs: Added TypeConverter attribute
10580         * BindingContext.cs: Added DefaultEvent attribute
10581         * BindingsCollection.cs: Added DefaultEvent attribute
10582         * Button.cs: Added DefaultValue attribute
10583         * DragEventArgs.cs: Added ComVisible attribute
10584         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10585         * KeyEventArgs.cs: Added ComVisible attribute
10586         * KeyPressEventArgs.cs: Added ComVisible attribute
10587         * MouseEventArgs.cs: Added ComVisible attribute
10588         * NavigateEventArgs.cs: Added
10589         * NavigateEventHandler.cs: Added
10590         * FeatureSupport.cs: Added
10591         * OSFeature.cs: Added
10592         * Theme.cs: Added abstract Version property to support OSFeature
10593         * ThemeWin32Classic.cs: Added Version property to
10594           support OSFeature.Themes
10595         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10596           the proper styles to avoid background drawing are set, also doesn't
10597           match MS signature
10598         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10599         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10600         * ScrollEventArgs.cs: Added ComVisible attribute
10601         * SplitterEventArgs.cs: Added ComVisible attribute
10602         * AccessibleSelection.cs: Added Flags attribute
10603         * Appearance.cs: Added ComVisible attribute
10604         * Border3DSide.cs: Added ComVisible attribute
10605         * Border3DStyle.cs: Added ComVisible attribute
10606         * BorderStyle.cs: Added ComVisible attribute
10607         * DragAction.cs: Added ComVisible attribute
10608         * ErrorBlinkStyle.cs: Added
10609         * ScrollEventType.cs: Added ComVisible attribute
10610         * AnchorStyles.cs: Added Editor attribute
10611         * DockStyle.cs: Added Editor attribute
10612         * HorizontalAlignment.cs: Added ComVisible attribute
10613         * HelpEventArgs.cs: Added ComVisible attribute
10614         * PaintEventArgs.cs: Added IDisposable
10615
10616 2005-01-04  Peter Bartok <pbartok@novell.com>
10617
10618         * TextControl.cs: Switched Line, LineTag and Document classes to
10619           internal
10620
10621 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10622
10623         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10624         Simple mode, fixes, IntegralHeight, etc.
10625
10626 2005-01-04  Peter Bartok <pbartok@novell.com>
10627
10628         * TextBoxBase.cs: Using proper font variable now
10629
10630 2005-01-04  Peter Bartok <pbartok@novell.com>
10631
10632         * Form.cs (ShowDialog): Set parent to owner, if provided
10633         * GroupBox.cs: Removed unused vars
10634         * TextControl.cs:
10635           - Added GetHashCode() for Document and LineTag classes
10636           - Removed unused variables
10637           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10638             to allow translation between continuous char position and line/pos
10639         * CheckBox.cs: Removed vars that are provided by base class
10640         * RadioButton.cs: Removed vars that are provided by base class, added
10641           new keyword where required
10642         * LinkLabel.cs: Added new keyword where required
10643         * Control.cs (WndProc): Removed unused variable
10644         * TextBoxBase.cs:
10645           - Finished SelectionLength property
10646           - Implemented SelectionStart property
10647           - Implemented Text property
10648           - Removed unused vars
10649         * MessageBox.cs: Added new keyword where required
10650         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10651           WndProc signature
10652         * MenuAPI.cs: Added new keyword where required
10653         * ButtonBase.cs: Removed vars that are provided by base class, added
10654           new keyword where required
10655         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10656           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10657           into this)
10658         * Application.cs (Run): Now triggers the ThreadExit event
10659         * CommonDialog.cs: Added new keyword where required; now properly sets
10660           parent (owner) for dialog
10661         * XplatUIX11.cs: Commented out unused vars
10662         * StatusBar.cs: Fixed signature for Text property
10663         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10664
10665 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10666
10667         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10668         TrackBar.cs, MonthCalendar.cs: remove unused vars
10669
10670 2005-01-03  Jackson Harper  <jackson@ximian.com>
10671
10672         * ThemeWin32Classic.cs:
10673         * X11Keyboard.cs: Remove unused vars.
10674
10675 2005-01-03  Peter Bartok  <pbartok@novell.com>
10676
10677         * TextBox.cs:
10678           - set_Text: Tied into TextControl
10679           - set_TextAlignment: Tied into TextControl
10680         * TextControl.cs:
10681           - Added alignment properties and implemented alignment handling
10682             and drawing (still has a bug, not generating proper expose events)
10683           - Added new Line() constructor to allow passing the line alignment
10684           - Fixed selection setting, properly handling end<start now
10685           - Added aligment considerations to RecalculateDocument()
10686         * TextBoxBase.cs:
10687           - Now properly enforces control height for single line controls
10688           - Added support for CharacterCasing
10689           - Added IsInputKey override
10690           - Fixed Keys.Enter logic
10691           - Added SetBoundsCore override
10692           - Fixed mouse selection handling
10693
10694 2005-01-03  Jackson Harper  <jackson@ximian.com>
10695
10696         * TreeView.cs:
10697           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10698           - Checkboxes are always aligned to the bottom of the node,
10699           regardless of item height.
10700           - Use the node bounds to draw the text so we can center it when
10701           the item height is greater then the font height.
10702           - Node::Bounds are only the text part of the node.
10703         * TreeNode.cs: New method to combine collapsing and unchecking all
10704           nodes recursively.
10705
10706 2005-01-02  Jackson Harper  <jackson@ximian.com>
10707
10708         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10709         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10710         tree when a check is changed. TODO: Only refresh the checked node.
10711
10712 2004-12-30  Jackson Harper  <jackson@ximian.com>
10713
10714         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10715         * TreeNode.cs: When collapsing make sure to never collapse the
10716         root node.
10717
10718 2004-12-29  Jackson Harper  <jackson@ximian.com>
10719
10720         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10721         
10722 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10723
10724         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10725
10726 2004-12-28  Peter Bartok  <pbartok@novell.com>
10727
10728         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10729           not yet assigned
10730
10731 2004-12-28  Peter Bartok  <pbartok@novell.com>
10732
10733         * Control.cs (WndProc): Added WM_HELP handler, now generates
10734           HelpRequested event
10735         * Form.cs: Added HelpButton property and required support code
10736         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10737
10738 2004-12-28  Peter Bartok  <pbartok@novell.com>
10739
10740         * CommonDialog.cs:
10741           - Made DialogForm.owner variable internal
10742           - Added check to ensure owner form is set before setting
10743             owner properties in CreateParams
10744
10745 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10746
10747         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10748           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10749           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10750           system to support borderless/titleless windows (implements menus).
10751           Fix GetWindowPos.  Implement initial background color support for
10752           views.
10753
10754 2004-12-28  Peter Bartok  <pbartok@novell.com>
10755
10756         * Form.cs (get_CreateParams): Make sure we have an owner before using
10757           the owner variable. Implement proper default if no owner exists
10758
10759 2004-12-28  Peter Bartok  <pbartok@novell.com>
10760
10761         * In preparation for making Managed.Windows.Forms the default build target
10762           for System.Windows.Forms, the following stubbed files were added.
10763           Dialogs are currently being implemented by contributors and are only
10764           short-term place holders.
10765         * ColorDialog.cs: Initial check-in (minmal stub)
10766         * DataGrid.cs: Initial check-in (minimal stub)
10767         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10768         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10769         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10770         * FontDialog.cs: Initial check-in (minimal stub)
10771         * FileDialog.cs: Initial check-in (minimal stub)
10772         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10773         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10774         * OpenFileDialog: Initial check-in (minimal stub)
10775         * IComponentEditorPageSite.cs: Initial check-in
10776         * Splitter.cs: Initial check-in (for Jackson)
10777         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10778         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10779         * TextBox.cs: Initial check-in; still needs some wiring to
10780           TextControl backend
10781         * Form.cs: Implemented ControlBox property
10782         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10783         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10784         * TextControl.cs: Added selection functionality; added todo header
10785         * TextBoxBase.cs:
10786           - Implemented Lines property
10787           - Implemented TextHeight property
10788           - Implemented SelectedText property
10789           - Implemented SelectionLength property
10790           - Implemented SelectAll method
10791           - Implemented ToString method
10792           - Removed and cleaned up some debug code
10793           - Implemented (still buggy) mouse text selection
10794
10795 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10796
10797         * ComboBox.cs: Complete DropDownList implementation, fixes.
10798
10799 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10800
10801         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10802         * ComboBoxStyle.cs: ComboBoxStyle enum
10803         * ComboBox.cs: Initial work on ComboBox control
10804
10805 2004-12-21  Peter Bartok  <pbartok@novell.com>
10806
10807         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10808           forward so that anything that creates a window gets the default,
10809           also no longer uses Visible property in CreateParams to avoid
10810           walking up the parent chain and possibly get the wrong visible
10811           status. Fixed IsVisible to no longer walk up to the parent.
10812
10813 2004-12-21  Peter Bartok  <pbartok@novell.com>
10814
10815         * Form.cs (ShowDialog): Unset modality for the proper window
10816  
10817 2004-12-20  Peter Bartok  <pbartok@novell.com>
10818
10819         * CommonDialog.cs: Initial check-in
10820
10821 2004-12-20  Peter Bartok  <pbartok@novell.com>
10822
10823         * Control.cs (Visible): Now uses the parent window instead of the
10824           client area window for the property
10825
10826         * Form.cs
10827           - ShowDialog(): Now uses the proper window for modality
10828           - The default visibility state for the form parent is now false. This
10829             will prevent the user from seeing all the changes to the form and
10830             its controls before the application hits Application.Run()
10831           - Removed some stale commented out code
10832
10833         * NativeWindow.cs:
10834           - Added FindWindow() method to have a method to check for existence
10835             of a window handle
10836           - Added ability to override default exception handling (for example
10837             when debugging with VS.Net; to do this the ExternalExceptionHandler
10838             define must be set
10839           - Removed some useless debug output
10840
10841         * XplatUIX11.cs:
10842           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10843             not working as expected
10844           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10845             property to allow switching back to the modal window if focus is
10846             given to another one of our windows (Application Modal)
10847           - Now only sets override_redirect if we create a window
10848             without WS_CAPTION
10849           - Moved EventMask selection before mapping of newly created window
10850             so we can catch the map event as well
10851           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10852           - Added various Atom related DllImports
10853           - Implemented Exit() method
10854           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10855             in the CreateParams
10856
10857         * MessageBox.cs: Now properly deals with the FormParent window by
10858           providing an override the FormParent CreateParams property to
10859           set as POPUP instead of OVERLAPPED window.
10860
10861 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10862
10863         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10864         Minor code cleanup.
10865
10866 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10867         
10868         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10869
10870 2004-12-18  Peter Bartok  <pbartok@novell.com>
10871
10872         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10873           implementing SetModal() method
10874
10875 2004-12-18  Peter Bartok  <pbartok@novell.com>
10876
10877         * X11Structs.cs (XGCValues): Fixed type of function element
10878         * XplatUI.cs: Added ScrollWindow() method
10879         * XplatUIDriver.cs: Added ScrollWindow() abstract
10880         * XplatUIWin32.cs: Implemented ScrollWindow() method
10881         * XplatUIX11.cs: Implemented ScrollWindow() method
10882         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10883
10884 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10885
10886         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10887         Some more keyboard support (INCOMPLETE)
10888
10889 2004-12-17  Peter Bartok  <pbartok@novell.com>
10890
10891         * TextControl.cs:
10892         - Added color attribute to line tags.
10893         - Added color argument to all functions dealing with tags
10894         - Added color argument support to various functions
10895         - Fixed miss-calculation of baseline/shift in certain circumstances
10896
10897         * TextBoxBase.cs: Added new color option to test code
10898
10899 2004-12-17  Jackson Harper  <jackson@ximian.com>
10900
10901         * TreeNode.cs:
10902         * MonthCalendar.cs: Signature fixes
10903
10904 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10905
10906         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10907         keyboard event moved it.  Create a new graphics context for each paint resolves this
10908
10909 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10910
10911         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10912         Make caret exist and go blink blink.  Initial keyboard support.
10913         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10914         works.
10915
10916 2004-12-17  Jackson Harper  <jackson@ximian.com>
10917
10918         * XplatUIStructs.cs: Updated set of virtual keycodes.
10919         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10920
10921 2004-12-17  Jackson Harper  <jackson@ximian.com>
10922
10923         * XplatUIX11.cs: Prune old keyboard code.
10924
10925 2004-12-17  Jackson Harper  <jackson@ximian.com>
10926
10927         * XplatUIX11.cs: When generating mouse wparams get the modifier
10928         keys from the ModifierKeys property.
10929
10930 2004-12-17  Jackson Harper  <jackson@ximian.com>
10931
10932         * X11Keyboard.cs: Send up/down input when generating
10933         messages. Remove some unused vars.
10934
10935 2004-12-17  Jackson Harper  <jackson@ximian.com>
10936
10937         * TabControl.cs:
10938         * TreeView.cs: get rid of warnings.
10939
10940 2004-12-17  Jackson Harper  <jackson@ximian.com>
10941
10942         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10943
10944 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10945
10946         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10947           CheckedListBox.cs: Implementation
10948
10949 2004-12-17  Peter Bartok  <pbartok@novell.com>
10950
10951         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10952
10953 2004-12-16  Peter Bartok  <pbartok@novell.com>
10954
10955         * TextControl.cs:
10956           - InsertCharAtCaret(): Fixed start pos fixup
10957           - CaretLine_get: No longer derives the line from the tag, the tag
10958             could be stale if lines in the document have been added or deleted
10959           - RebalanceAfterDelete(): Fixed bug in balancing code
10960           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10961           - Line.Streamline(): Now can also elminate leading empty tags
10962           - DumpTree(): Added a few more tests and prevented exception on
10963             uninitialized data
10964           - Added Debug section for Combining lines
10965           - Delete(): Now copies all remaining properties of a line
10966           
10967         * TextBoxBase.cs:
10968           - Left mousebutton now sets the caret (and middle button still acts
10969             as formatting tester, which must go away soon)
10970           - Added Debug section for Deleting/Combining lines
10971           - Fixed calculations for UpdateView after Combining lines
10972
10973 2004-12-16  Peter Bartok  <pbartok@novell.com>
10974
10975         * TextControl.cs: Now properly aligns text on a baseline, using the
10976           new XplatUI.GetFontMetrics() method. Simplified several calculations
10977         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10978           defined
10979
10980 2004-12-16  Peter Bartok  <pbartok@novell.com>
10981
10982         * XplatUI.cs: Added GetFontMetrics() method
10983         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10984         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10985           into libgdiplus, our private GetFontMetrics function
10986         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10987         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10988
10989 2004-12-16  Jackson Harper  <jackson@ximain.com>
10990
10991         * XplatUIStruct.cs: Add enum for dead keys
10992         * X11Keyboard.cs: Map and unmap dead keys.
10993
10994 2004-12-16  Jackson Harper  <jackson@ximian.com>
10995
10996         * X11Keyboard.cs: Detect and use the num lock mask.
10997
10998 2004-12-16  Peter Bartok  <pbartok@novell.com>
10999
11000         * Control.cs (CreateGraphics): Added check to make sure the
11001           handle of the window exists before calling Graphics.FromHwnd()
11002
11003 2004-12-16  Peter Bartok  <pbartok@novell.com>
11004
11005         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11006           contains a lot of code that's not supposed to be there for the
11007           real thing, but required for developing/testing the textbox
11008           backend.
11009
11010 2004-12-16  Peter Bartok  <pbartok@novell.com>
11011
11012         * TextControl.cs:
11013         - Fixed Streamline method
11014         - Added FindTag method to Line
11015         - Added DumpTree method for debugging
11016         - Added DecrementLines() method for deleting lines
11017         - Fixed UpdateView to update the cursor to end-of-line on single-line
11018           updates
11019         - Added PositionCaret() method
11020         - Fixed MoveCaret(LineDown) to move into the last line, too
11021         - Added InsertChar overload
11022         - Fixed InsertChar tag offset calculations
11023         - Added DeleteChar() method
11024         - Added Combine() method for folding lines
11025         - Fixed Delete() method, no longer allocates wasted Line object and
11026           now copies all properties when swapping nodes
11027         - Delete() method now updates document line counter
11028
11029 2004-12-15  Jackson Harper  <jackson@ximian.com>
11030
11031         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11032         * X11Keyboard.cs: Expose the currently selected modifier keys
11033         through a property.
11034
11035 2004-12-15  Peter Bartok  <pbartok@novell.com>
11036
11037         * TextControl.cs: Initial check-in. Still incomplete
11038
11039 2004-12-15  Jackson Harper  <jackson@ximian.com>
11040
11041         * TreeNode.cs:
11042         * TreeView.cs: Fix build on csc (second time today ;-))
11043
11044 2004-12-15  Jackson Harper  <jackson@ximian.com>
11045
11046         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11047         is calculated and use this for click testing.
11048         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11049
11050 2004-12-15  Jackson Harper  <jackson@ximian.com>
11051
11052         * TreeView.cs: Pass the nodes image index to the image list when
11053         drawing that image.
11054
11055 2004-12-15  Jackson Harper  <jackson@ximian.com>
11056
11057         * X11Keyboard.cs: Set messages hwnd.
11058         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11059         post_message calls.
11060
11061 2004-12-15  Jackson Harper  <jackson@ximian.com>
11062
11063         * X11Keyboard.cs: Fix to compile with csc.
11064         
11065 2004-12-15  Jackson Harper  <jackson@ximian.com>
11066
11067         * X11Structs.cs: Add key mask values
11068         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11069         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11070         down/up foo into WM_CHAR foo
11071         * KeyboardLayouts.cs: Common keyboard layouts
11072         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11073         post messages into the main queue.
11074
11075 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11076
11077         * Button.cs: implement ProcessMnemonic
11078         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11079           brushes everytime
11080         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11081         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11082
11083 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11084         
11085         * MonthCalendar.cs: Implemented click-hold for next/previous month
11086           and date selection
11087           
11088 2004-12-11  Peter Bartok  <pbartok@novell.com>
11089
11090         * X11Structs.cs:
11091           - Added XKeyboardState (moved from XplatUIX11.cs)
11092           - Added XCreateGC related enums and structures
11093           - Added GXFunction for XSetFunction
11094
11095         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11096
11097         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11098           CaretVisible() calls
11099
11100         * ToolTip.cs: Added code to prevent stealing focus from app windows
11101
11102         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11103           DestroyCaret, SetCaretPos and CaretVisible)
11104
11105         * XplatUIX11.cs:
11106           - Added implementation for caret functions
11107           - Moved hover variables into a struct, to make it a bit easier
11108             on the eyes and to debug
11109           - Removed XKeyboardState (moved to XplatUIX11.cs)
11110           - Moved Keyboard properties into the properties region
11111
11112         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11113           call to get a graphics context for our control
11114
11115         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11116
11117         * TreeView.cs: Fixed bug. No matter what color was set it would always
11118           return SystemColors.Window
11119
11120         * XplatUIWin32.cs: Implemented caret overrides
11121
11122 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11123
11124         * ListBox.cs: fire events, implement missing methods and properties,
11125         sorting.
11126
11127 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11128
11129         * MonthCalendar.cs: invalidation bug fixing
11130         * ThemeWin32Classic.cs: paint fixing
11131
11132 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11133
11134         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11135         prepare the CGContextRef there now.
11136
11137 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11138
11139         * MonthCalendar.cs:
11140           - optimisationL only invalidate areas that have changed
11141         * ThemeWin32Classic.cs:
11142           - only paint parts that intersect with clip_area
11143
11144 2004-12-09  Peter Bartok  <pbartok@novell.com>
11145
11146         * Application.cs: Undid changes from r37004 which cause problems
11147         on X11
11148
11149 2004-12-09  Ravindra  <rkumar@novell.com>
11150
11151         * ToolBar.cs: Added support for displaying ContextMenu
11152         attached to a button on ToolBar.
11153         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11154         property.
11155
11156 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11157
11158         * Label.cs: autosize works in text change and removes unnecessary
11159         invalidate
11160
11161 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11162
11163         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11164         remove warnings
11165
11166 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11167
11168         * XplatUIOSX.cs: Added mouse move/click/grab support
11169         Remove some debugging WriteLines not needed anymore.
11170         Add window resizing/positioning.
11171         Fix visibility on reparenting.
11172
11173 2004-12-08  Peter Bartok  <pbartok@novell.com>
11174
11175         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11176
11177 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11178
11179         * XplatUIOSX.cs: Initial checkin
11180         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11181
11182 2004-12-03  Ravindra <rkumar@novell.com>
11183
11184         * ListView.cs: Added some keybindings and fixed scrolling.
11185         ScrollBars listen to ValueChanged event instead of Scroll
11186         Event. This would let us take care of all changes being
11187         done in the scrollbars' values programmatically or manually.
11188         * ListView.cs (CanMultiselect): Added a check for shift key.
11189         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11190         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11191         of ListViewSubItemCollection as well.
11192
11193 2004-12-06  Peter Bartok <pbartok@novell.com>
11194
11195         * Control.cs (Parent): Added check and exception to prevent
11196         circular parenting
11197
11198 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11199
11200         * ListBox.cs: implemented clipping, selection single and multiple,
11201         bug fixing
11202
11203 2004-12-03  Ravindra <rkumar@novell.com>
11204
11205         * ListView.cs (ListView_KeyDown):
11206         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11207         when CTRL key is pressed.
11208         * ListViewItem.cs (Selected): Fixed setting the property.
11209
11210 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11211
11212         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11213
11214         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11215         MinimizeBox, ShowInTaskbar, TopMost properties.
11216
11217         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11218         will be implemented).
11219
11220 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11221
11222         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11223
11224         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11225         tests.
11226         
11227         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11228         
11229         * TreeView.cs: BackColor is Colors.Window.
11230
11231 2004-12-01  Jackson Harper  <jackson@ximian.com>
11232
11233         * TreeView.cs: When resizing the tree if the user is making it
11234         smaller we don't get expose events, so we need to handle adding
11235         the horizontal scrollbar in the size changed handler as well as
11236         the expose handler.
11237
11238 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11239
11240         * DrawItemState.cs: fixes wrong enum values
11241
11242 2004-12-01  Jackson Harper  <jackson@ximian.com>
11243
11244         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11245
11246 2004-12-01  Jackson Harper  <jackson@ximian.com>
11247
11248         * NodeLabelEditEventArgs.cs:
11249         * NodeLabelEditEventHandler.cs:
11250         * OpenTreeNodeEnumerator.cs:
11251         * TreeNode.cs:
11252         * TreeNodeCollection.cs:
11253         * TreeView.cs:
11254         * TreeViewAction.cs:
11255         * TreeViewCancelEventArgs.cs:
11256         * TreeViewCancelEventHandler.cs:
11257         * TreeViewEventArgs.cs:
11258         * TreeViewEventHandler.cs: Initial implementation.
11259
11260 2004-12-01  Ravindra <rkumar@novell.com>
11261
11262         * ListView.cs (CalculateListView): Fixed scrolling related
11263         calculations. Also, removed some debug statements from other
11264         places.
11265         * ListViewItem.cs: Changed access to 'selected' instance variable
11266         from private to internal.
11267         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11268
11269 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11270
11271         * ThemeWin32Classic.cs: remove cache of brush and pens for
11272         specific controls and use the global system, fixes scrollbutton
11273         bugs (for small sizes, disabled, etc)
11274         
11275         * ScrollBar.cs: does not show the thumb for very small controls
11276         (as MS) and allow smaller buttons that the regular size
11277
11278 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11279
11280         * UpDownBase.cs: Add abstract methods for the interface.
11281         Add new virtual methods (need to be hooked up to TextEntry when it
11282         exists).
11283         Add override methods for most features.
11284         Computes the size, forces the height of the text entry.
11285
11286         * NumericUpDown.cs: Put here the current testing code.
11287
11288         * Set eol-style property on all files that do not have mixed line
11289         endings, to minimize the future problems.  There are still a few
11290         files with mixed endings, and someone should choose whether they
11291         want to move it or not.
11292
11293 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11294
11295         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11296         System.Colors
11297         
11298 2004-11-30  Ravindra <rkumar@novell.com>
11299
11300         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11301         drawing and replaced use of SystemColors by theme colors.
11302         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11303         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11304         same ListViewItem is being added more than once.
11305
11306 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11307
11308         * MonthCalendar.cs:
11309           - ControlStyles love to make the control not flicker
11310           
11311 2004-11-30  Peter Bartok  <pbartok@novell.com>
11312
11313         * CharacterCasing.cs: Added
11314
11315 2004-11-29  Peter Bartok  <pbartok@novell.com>
11316
11317         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11318           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11319           I am removing these files as they conflict with already completed
11320           work. While it is fantastic to get contributions to MWF, I
11321           respectfully ask that everyone please coordinate their contributions
11322           through mono-winforms-list or #mono-winforms at this time. We're
11323           explicitly avoiding stubbing and don't want controls that don't have
11324           their basic functionality implemented in svn. Please also see
11325           http://www.mono-project.com/contributing/winforms.html
11326
11327
11328 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11329
11330         * Application.cs (ModalRun): Don't hang after exit.
11331
11332         * Theme.cs: New TreeViewDefaultSize property.
11333
11334         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11335         with less hardcoded SystemColors constant.
11336         Implemented TreeViewDefaultSize.
11337
11338         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11339         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11340
11341
11342 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11343
11344         * MonthCalendar.cs:
11345           - Fix NextMonthDate and PrevMonthDate click moving calendar
11346
11347 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11348
11349         * MonthCalendar.cs:
11350           - Fix usage of ScrollChange Property when scrolling months
11351
11352 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11353
11354         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11355          - Fixes menu destroying
11356          - Support adding and removing items on already created menus
11357
11358 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11359
11360         * MonthCalendar.cs:
11361           - Re-worked all bolded dates handling to match win32
11362         * ThemeWin32Classic.cs:
11363           - Fixed rendering with bolded dates
11364
11365 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11366
11367         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11368         - Horizontal scroolbar
11369         - Multicolumn
11370         - Fixes
11371
11372
11373 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11374
11375         * MonthCalendar.cs:
11376           - Fix Usage of MaxSelectionCount from SelectionRange
11377           - Fixed Shift + Cursor Selection
11378           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11379           - Fixed normal cursor selection to be compat with win32
11380           - Fixed Shift + Mouse Click selection
11381
11382 2004-11-24  Peter Bartok <pbartok@novell.com>
11383
11384         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11385         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11386         * XplatUIX11.cs:
11387           - CreatedKeyBoardMsg now updates keystate with Alt key
11388           - Added workaround for timer crash to CheckTimers, Jackson will
11389             develop a proper fix and check in later
11390           - Implemented DispatchMessage
11391           - Removed calling the native window proc from GetMessage (call
11392             now moved to DispatchMessage)
11393
11394         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11395           the keydata (Fixes bug #69831)
11396
11397         * XplatUIWin32.cs:
11398           - (DispatchMessage): Switched to return IntPtr
11399           - Added DllImport for SetFocus
11400
11401 2004-11-24  Ravindra <rkumar@novell.com>
11402
11403         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11404         background drawing.
11405         * ListViewItem.cs: Fixed various properties, calculations
11406         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11407         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11408         and some internal properties. Fixed MouseDown handler and Paint
11409         method.
11410
11411 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11412
11413         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11414
11415 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11416
11417         * ContainerControl.cs: correct accidental check in of local changes
11418
11419 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11420
11421         * ThemeWin32Classic.cs:
11422                 - Fixed Drawing Last month in grid (sometimes not showing)
11423         * MonthCalendar.cs:
11424                 - Fixed title width calculation bug (makeing title small)
11425
11426 2004-11-23  Peter Bartok <pbartok@novell.com>
11427
11428         * XplatUIX11.cs:
11429           - Added generation of WM_MOUSEHOVER event
11430           - Added missing assignment of async_method atom
11431           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11432
11433 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11434
11435         * ThemeWin32Classic.cs:
11436                 - Fixed Drawing of today circle when showtodaycircle not set
11437                 - fixed drawing of first and last month in the grid (gay dates)
11438         * MonthCalendar.cs:
11439                 - Fixed Drawing of today circle
11440                 - Fixed drawing of grady dates
11441                 - Fixed HitTest for today link when ShowToday set to false
11442                 - Fixed DefaultSize to obey ShowToday
11443
11444 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11445
11446         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11447         * System.Windows.Forms/Theme.cs
11448         * MonthCalendar.cs: added for MonthCalendar
11449         * SelectionRange.cs: added for MonthCalendar
11450         * Day.cs: added for MonthCalendar: added for MonthCalendar
11451         * DateRangeEventArgs.cs: added for MonthCalendar
11452         * DateRangeEventHandler.cs: added for MonthCalendar
11453
11454 2004-11-22  Ravindra <rkumar@novell.com>
11455
11456         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11457         property.
11458
11459 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11460
11461         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11462         event handler.
11463         
11464         * NumericUpDown.cs: Added new implementation.
11465         * UpDownBase.cs: Added new implementation.
11466
11467         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11468         implementations.
11469         
11470         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11471         implementations.
11472
11473         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11474         methods.
11475
11476 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11477
11478         * Timer.cs  (Dispose): Should call the base dispose when
11479         overriding.
11480
11481 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11482
11483         * ScrollBar.cs: updates thumb position when max, min or increment
11484         is changed
11485
11486 2004-11-21  Ravindra <rkumar@novell.com>
11487
11488         * ListView.cs: Implemented item selection, activation and
11489         column header style. Fixed properties to do a redraw, if
11490         required. Added support for MouseHover, DoubleClick, KeyDown
11491         and KeyUp event handling and some minor fixes.
11492         * ListViewItem.cs: Fixed constructor.
11493         * ThemeWin32Classic.cs: Improved drawing for ListView.
11494
11495 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11496
11497         * ThemeWin32Classic.cs: initial listbox drawing code
11498         * DrawMode.cs: new enumerator
11499         * ListControl.cs: stubbed class
11500         * ListBox.cs: initial implementation
11501         * Theme.cs: new methods definitions
11502         * SelectionMode.cs: new enumerator
11503
11504 2004-11-17  Peter Bartok  <pbartok@novell.com>
11505
11506         * XplatUIWin32.cs: Added double-click events to the class style
11507         * Control.cs (WndProc):
11508           - Added handling of click-count to MouseDown/ MouseUp events.
11509           - Added handling of middle and right mouse buttons
11510           - Removed old debug code
11511
11512 2004-11-17  Jackson Harper  <jackson@ximian.com>
11513
11514         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11515
11516 2004-11-17  Ravindra <rkumar@novell.com>
11517
11518         * ListView.cs: Added event handling for MouseMove/Up/Down.
11519         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11520         * ThemeWin32Classic.cs: We need to clear the graphics context and
11521         draw column header in a proper state.
11522
11523
11524 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11525
11526         *  Menu.cs: fixes signature
11527
11528 2004-11-16  Peter Bartok  <pbartok@novell.com>
11529
11530         * XplatUIX11.cs (GetMessage): Implemented generation of
11531           double click mouse messages
11532
11533 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11534
11535         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11536         not by menu
11537
11538 2004-11-11  Peter Bartok  <pbartok@novell.com>
11539
11540         * HandleData.cs: Added Visible property
11541         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11542           HandleData
11543         * XplatUIX11.cs: Removed old debug leftovers
11544         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11545         * Control.cs (WndProc): Removed old debug leftovers,
11546           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11547           needed WM_SIZE handling
11548
11549 2004-11-11  Jackson Harper  <jackson@ximian.com>
11550
11551         * OwnerDrawPropertyBag.cs:
11552         * TreeViewImageIndexConverter.cs: Initial implementation
11553
11554 2004-11-10  Jackson Harper  <jackson@ximian.com>
11555
11556         * ThemeWin32Classic.cs:
11557         * TabControl.cs: instead of moving tabs by the slider pos just
11558         start drawing at the tab that is offset by the slider. This way
11559         scrolling always moves by exactly one tab.
11560
11561 2004-11-10  Jackson Harper  <jackson@ximian.com>
11562
11563         * TabControl.cs: You can only scroll left when the slider has
11564         already ben moved right.
11565         
11566 2004-11-10  Jackson Harper  <jackson@ximian.com>
11567
11568         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11569         the clip area.
11570         
11571 2004-11-10  Jackson Harper  <jackson@ximian.com>
11572
11573         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11574         clip area.
11575         
11576 2004-11-09  Jackson Harper  <jackson@ximian.com>
11577
11578         * TabControl.cs (CalcXPos): New helper method so we can determine
11579         the proper place to start drawing vertical tabs.
11580         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11581         
11582 2004-11-09  Jackson Harper  <jackson@ximian.com>
11583
11584         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11585         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11586         and Bottom, left and right are illegal values for this and
11587         multiline is enabled when the alignment is set to left or right.
11588         (DrawTab): Each alignment block should draw the text itself now
11589         because Left requires special love. Also add rendering for Left
11590         aligned tabs.
11591         
11592 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11593
11594         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11595         does not destroy the windows, removes debugging messages
11596
11597 2004-11-09  jba  <jba-mono@optusnet.com.au>
11598
11599         * ThemeWin32Classic.cs
11600         (DrawButtonBase): Fix verticle text rect clipping in windows
11601         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11602         rendering and incorrect text rect clipping
11603         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11604         rendering and incorrect text rect clipping
11605         
11606 2004-11-08  Jackson Harper  <jackson@ximian.com>
11607
11608         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11609         bottom when they are bottom aligned so the bottoms of the tabs get
11610         displayed.
11611         * TabControl.cs (DropRow): Move rows up instead of down when the
11612         tab control is bottom aligned.
11613
11614 2004-11-08 13:59  pbartok
11615
11616         * XplatUIX11.cs:
11617           - Added handling for various window styles
11618           - Added handling for popup windows
11619           - Added SetTopmost handling
11620
11621 2004-11-08 13:55  pbartok
11622
11623         * XplatUIWin32.cs:
11624           - Added argument to SetTopmost method
11625           - Fixed broken ClientToScreen function
11626
11627 2004-11-08 13:53  pbartok
11628
11629         * XplatUIStructs.cs:
11630           - Added missing WS_EX styles
11631
11632 2004-11-08 13:53  pbartok
11633
11634         * XplatUI.cs, XplatUIDriver.cs:
11635           - Added argument to SetTopmost
11636
11637 2004-11-08 13:52  pbartok
11638
11639         * X11Structs.cs:
11640           - Added XSetWindowAttributes structure
11641           - Improved XWindowAttributes structure
11642           - Added SetWindowValuemask enum
11643           - Added window creation arguments enum
11644           - Added gravity enum
11645           - Added Motif hints structure
11646           - Added various Motif flags and enums
11647           - Added PropertyMode enum for property functions
11648
11649 2004-11-08 13:50  pbartok
11650
11651         * Form.cs:
11652           - Fixed arguments for updated SetTopmost method
11653
11654 2004-11-08 13:49  pbartok
11655
11656         * ToolTip.cs:
11657           - Fixed arguments for updated SetTopmost function
11658           - Fixed usage of PointToClient
11659
11660 2004-11-08 13:44  pbartok
11661
11662         * MenuAPI.cs:
11663           - Added Clipping of children and siblings
11664
11665 2004-11-08 13:41  pbartok
11666
11667         * MainMenu.cs:
11668           - Removed SetMenuBarWindow call. We do this in Form.cs
11669
11670 2004-11-08 13:40  jackson
11671
11672         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11673           scrolling jimmi in the correct location with bottom aligned tabs
11674
11675 2004-11-08 13:36  pbartok
11676
11677         * ContainerControl.cs:
11678           - Implemented BindingContext
11679           - Implemented ParentForm
11680
11681 2004-11-08 12:46  jackson
11682
11683         * TabControl.cs: Put bottom rendered tabs in the right location
11684
11685 2004-11-08 07:15  jordi
11686
11687         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11688           removes dead code
11689
11690 2004-11-05 17:30  jackson
11691
11692         * TabControl.cs: When selected tabs are expanded make sure they
11693           don't go beyond the edges of the tab control
11694
11695 2004-11-05 14:57  jackson
11696
11697         * TabControl.cs: Reset show_slider so if the control is resized to
11698           a size where it is no longer needed it's not displayed anymore
11699
11700 2004-11-05 13:16  jackson
11701
11702         * TabControl.cs: Make tab pages non visible when added to the
11703           control
11704
11705 2004-11-05 12:42  jackson
11706
11707         * TabControl.cs: Implement SizeMode.FillToRight
11708
11709 2004-11-05 12:16  jackson
11710
11711         * Control.cs: Do not call CreateHandle if the handle is already
11712           created
11713
11714 2004-11-05 11:46  jackson
11715
11716         * TabControl.cs: Remove superflous call to CalcTabRows
11717
11718 2004-11-05 09:07  jackson
11719
11720         * XplatUIX11.cs: Update for Mono.Posix changes
11721
11722 2004-11-05 07:00  ravindra
11723
11724         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11725           scrolling.
11726
11727 2004-11-04 22:47  jba
11728
11729         * ThemeWin32Classic.cs:
11730           - Fix Button rendering for FlatStyle = Flat or Popup
11731           - Fix RadioButton and CheckBox rendering when Appearance = Button
11732             (normal and flatstyle).
11733           - Correct outer rectangle color when drawing focus rectangle
11734           - Adjust button bounds to be 1 px smaller when focused
11735           - Make button not draw sunken 3d border when pushed (windows compat)
11736           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11737           - Offset the text in RadioButton and Checkbox when being rendered as
11738           a button.
11739           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11740           radiobuttons
11741           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11742           - Fixed disabled text rendering for normally rendered radiobuttons
11743
11744 2004-11-04 10:26  jackson
11745
11746         * TabControl.cs: Recalculate tab rows when resizing
11747
11748 2004-11-04 07:47  jordi
11749
11750         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11751           collection completion, drawing issues, missing features
11752
11753 2004-11-04 05:03  ravindra
11754
11755         * ScrollBar.cs:
11756                 - We need to recalculate the Thumb area when
11757                 LargeChange/maximum/minimum values are changed.
11758           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11759                 than minimum. This is required to handle the case if large_change is
11760                 more than max, and use LargeChange property instead of large_change
11761                 variable.
11762           - We return max+1 when large_change is more than max, like MS does.
11763
11764 2004-11-04 04:29  ravindra
11765
11766         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11767                 - Changed default value signatures (prefixed all with ListView).
11768                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11769                 ListView.
11770           - Fixed calculations for ListViewItem and implemented Clone()
11771           method.
11772
11773 2004-11-04 04:26  ravindra
11774
11775         * Theme.cs, ThemeWin32Classic.cs:
11776                 - Changed default ListView values signatures (prefixed all with
11777                 ListView).
11778           - Fixed default size values for VScrollBar and HScrollBar.
11779                 - Fixed DrawListViewItem method.
11780
11781 2004-11-04 04:05  ravindra
11782
11783         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11784
11785 2004-11-04 04:04  ravindra
11786
11787         * ImageList.cs: Implemented the missing overload for Draw method.
11788
11789 2004-11-03 19:29  jackson
11790
11791         * TabControl.cs: Handle dropping rows on selection properly
11792
11793 2004-11-03 11:59  jackson
11794
11795         * TabControl.cs: remove debug code
11796
11797 2004-11-03 11:52  jackson
11798
11799         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11800           the scrolly widgerywoo
11801
11802 2004-11-02 13:52  jackson
11803
11804         * TabControl.cs: Resize the tab pages and tabs when the tab control
11805           is resized
11806
11807 2004-11-02 13:40  jackson
11808
11809         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11810           selected tab to the bottom
11811
11812 2004-11-02 13:39  jackson
11813
11814         * TabPage.cs: Store the tab pages row
11815
11816 2004-11-02 12:33  jordi
11817
11818         * MenuItem.cs: fixes handle creation
11819
11820 2004-11-02 11:42  jackson
11821
11822         * TabControl.cs: signature fix
11823
11824 2004-11-02 08:56  jackson
11825
11826         * TabControl.cs: Calculate whether the tab is on an edge properly.
11827           Remove top secret debugging code
11828
11829 2004-11-01 19:57  jackson
11830
11831         * TabControl.cs: Add click handling, and proper sizing
11832
11833 2004-11-01 19:47  jackson
11834
11835         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11836           tab controls
11837
11838 2004-11-01 19:39  jackson
11839
11840         * TabPage.cs: add internal property to store the bounds of a tab
11841           page
11842
11843 2004-10-30 04:23  ravindra
11844
11845         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11846           values.
11847
11848 2004-10-30 04:21  ravindra
11849
11850         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11851           fixed calculations.
11852
11853 2004-10-30 03:06  pbartok
11854
11855         * XplatUIX11.cs:
11856           - Removed extension of DllImported libs
11857
11858 2004-10-29 09:55  jordi
11859
11860         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11861           navigation, itemcollection completion, menu fixes
11862
11863 2004-10-27 22:58  pbartok
11864
11865         * XplatUIX11.cs:
11866           - Now throws a nice error message when no X display could be opened
11867
11868 2004-10-26 13:51  jordi
11869
11870         * ListView.cs: removes warning
11871
11872 2004-10-26 03:55  ravindra
11873
11874         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11875           ThemeWin32Classic.cs: Some formatting for my last checkins.
11876
11877 2004-10-26 03:36  ravindra
11878
11879         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11880           control and default values.
11881
11882 2004-10-26 03:35  ravindra
11883
11884         * Theme.cs: Added some default values for ListView control.
11885
11886 2004-10-26 03:33  ravindra
11887
11888         * ToolBar.cs: ToolBar should use the user specified button size, if
11889           there is any. Added a size_specified flag for the same.
11890
11891 2004-10-26 03:33  ravindra
11892
11893         * ColumnHeader.cs: Added some internal members and calculations for
11894           ColumnHeader.
11895
11896 2004-10-26 03:32  ravindra
11897
11898         * ListViewItem.cs: Calculations for ListViewItem.
11899
11900 2004-10-26 03:31  ravindra
11901
11902         * ListView.cs: Added some internal members and calculations for
11903           ListView.
11904
11905 2004-10-22 13:31  jordi
11906
11907         * MenuAPI.cs: speedup menus drawing
11908
11909 2004-10-22 13:16  jackson
11910
11911         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11912           expose event
11913
11914 2004-10-22 11:49  jackson
11915
11916         * Control.cs: oops
11917
11918 2004-10-22 11:41  jackson
11919
11920         * Control.cs: Check to see if the window should have its background
11921           repainted by X when drawing.
11922
11923 2004-10-22 11:31  jackson
11924
11925         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11926           clear is true, this way we do not get flicker from X repainting the
11927           background
11928
11929 2004-10-22 11:28  jackson
11930
11931         * XEventQueue.cs: Queue properly
11932
11933 2004-10-21 09:38  jackson
11934
11935         * XEventQueue.cs: Fix access modifier
11936
11937 2004-10-21 09:36  jackson
11938
11939         * XEventQueue.cs: Don't loose messages
11940
11941 2004-10-21 09:22  jackson
11942
11943         * XEventQueue.cs: Don't loose messages
11944
11945 2004-10-20 04:15  jordi
11946
11947         * BootMode.cs: enum need it by SystemInfo
11948
11949 2004-10-19 21:58  pbartok
11950
11951         * XplatUIWin32.cs:
11952           - Small sanity check
11953
11954 2004-10-19 21:56  pbartok
11955
11956         * Form.cs:
11957           - Added private FormParentWindow class which acts as the container
11958             for our form and as the non-client area where menus are drawn
11959           - Added/Moved required tie-ins to Jordi's menus
11960           - Fixed/Implemented the FormStartPosition functionality
11961
11962 2004-10-19 21:52  pbartok
11963
11964         * Control.cs:
11965           - Removed unneeded locals
11966           - Added code to all size and location properties to understand and
11967             deal with the parent container of Form
11968
11969 2004-10-19 21:33  pbartok
11970
11971         * Application.cs:
11972           - Fixed to deal with new Form subclasses for menus
11973
11974 2004-10-19 17:48  jackson
11975
11976         * XEventQueue.cs: commit correct version of file
11977
11978 2004-10-19 16:50  jackson
11979
11980         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11981
11982 2004-10-19 16:15  jordi
11983
11984         * MenuAPI.cs: MenuBarCalcSize returns the height
11985
11986 2004-10-19 08:31  pbartok
11987
11988         * Control.cs:
11989           - Added missing call to PreProcessMessage before calling OnXXXKey
11990           methods
11991
11992 2004-10-19 00:04  ravindra
11993
11994         * ToolTip.cs: Fixed constructor.
11995
11996 2004-10-18 09:31  jordi
11997
11998         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11999
12000 2004-10-18 09:26  jordi
12001
12002         * MenuItem.cs: fixes MenuItem class signature
12003
12004 2004-10-18 08:56  jordi
12005
12006         * MenuAPI.cs: prevents windows from showing in the taskbar
12007
12008 2004-10-18 00:28  ravindra
12009
12010         * ToolTip.cs: Suppressed a warning message.
12011
12012 2004-10-18 00:27  ravindra
12013
12014         * Control.cs: Default value of visible property must be true.
12015
12016 2004-10-17 23:19  pbartok
12017
12018         * ToolTip.cs:
12019           - Complete implementation
12020
12021 2004-10-17 23:19  pbartok
12022
12023         * XplatUIX11.cs:
12024           - Added EnableWindow method
12025           - Added SetModal stub
12026           - Added generation of WM_ACTIVATE message (still needs testing)
12027           - Added SetTopMost stub
12028           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12029
12030 2004-10-17 23:17  pbartok
12031
12032         * XplatUIWin32.cs:
12033           - Removed VirtualKeys to XplatUIStructs
12034           - Implemented SetTopMost method
12035           - Implemented EnableWindow method
12036           - Bugfix in ScreenToClient()
12037           - Bugfixes in ClientToScreen()
12038
12039 2004-10-17 22:51  pbartok
12040
12041         * XplatUIStructs.cs:
12042           - Added WS_EX styles to WindowStyles enumeration
12043
12044 2004-10-17 22:50  pbartok
12045
12046         * XplatUI.cs, XplatUIDriver.cs:
12047           - Added method for enabling/disabling windows
12048           - Added method for setting window modality
12049           - Added method for setting topmost window
12050
12051 2004-10-17 22:49  pbartok
12052
12053         * ThemeWin32Classic.cs:
12054           - Added ToolTip drawing code
12055
12056 2004-10-17 22:49  pbartok
12057
12058         * Theme.cs:
12059           - Added ToolTip abstracts
12060
12061 2004-10-17 22:47  pbartok
12062
12063         * Form.cs:
12064           - Fixed Form.ControlCollection to handle owner relations
12065           - Added Owner/OwnedForms handling
12066           - Implemented Z-Ordering for owned forms
12067           - Removed unneeded private overload of ShowDialog
12068           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12069             so I hope)
12070           - Fixed Close(), had wrong default
12071           - Added firing of OnLoad event
12072           - Added some commented out debug code for Ownership handling
12073
12074 2004-10-17 22:16  pbartok
12075
12076         * Control.cs:
12077           - Fixed/implemented flat list of controls
12078
12079 2004-10-17 22:14  pbartok
12080
12081         * Application.cs:
12082           - Added code to simulate modal dialogs on Win32
12083
12084 2004-10-17 16:11  jordi
12085
12086         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12087           mouse event
12088
12089 2004-10-17 13:39  jordi
12090
12091         * MenuAPI.cs: menu drawing fixes
12092
12093 2004-10-15 09:10  ravindra
12094
12095         * StructFormat.cs: General Enum.
12096
12097 2004-10-15 09:09  ravindra
12098
12099         * SizeGripStyle.cs: Enum for Form.
12100
12101 2004-10-15 09:08  ravindra
12102
12103         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12104           in Theme for ListView.
12105
12106 2004-10-15 09:06  ravindra
12107
12108         * ColumnHeader.cs: Flushing some formatting changes.
12109
12110 2004-10-15 09:05  ravindra
12111
12112         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12113           style.
12114
12115 2004-10-15 09:03  ravindra
12116
12117         * ListView.cs: Implemented Paint method and fixed coding style.
12118
12119 2004-10-15 07:34  jordi
12120
12121         * MenuAPI.cs: fix for X11
12122
12123 2004-10-15 07:32  ravindra
12124
12125         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12126                 - Renamed Paint() method to Draw() for clarity. Also, moved
12127                 DrawImage() to OnPaint().
12128
12129 2004-10-15 07:25  ravindra
12130
12131         * CheckBox.cs, RadioButton.cs:
12132                 - Removed Redraw (), we get it from ButtonBase.
12133                 - Implemented Paint (), to do class specific painting.
12134
12135 2004-10-15 07:16  ravindra
12136
12137         * ButtonBase.cs:
12138                 - Redraw () is not virtual now.
12139                 - Added an internal virtual method Paint (), so that
12140                 derived classes can do their painting on their own.
12141                 - Modified OnPaint () to call Paint ().
12142
12143 2004-10-15 06:43  jordi
12144
12145         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12146           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12147
12148 2004-10-15 00:30  ravindra
12149
12150         * MessageBox.cs:
12151                 - MessageBox on windows does not have min/max buttons.
12152                 This change in CreateParams fixes this on Windows. We
12153                 still need to implement this windowstyle behavior in
12154                 our X11 driver.
12155
12156 2004-10-14 05:14  ravindra
12157
12158         * ToolBar.cs:
12159                 - Changed Redraw () to do a Refresh () always.
12160                 - Fixed the MouseMove event handling when mouse is pressed,
12161                 ie drag event handling.
12162                 - Replaced the usage of ToolBarButton.Pressed property to
12163                 ToolBarButton.pressed internal variable.
12164
12165 2004-10-14 05:10  ravindra
12166
12167         * ToolBarButton.cs:
12168                 - Added an internal member 'inside' to handle mouse move
12169                 with mouse pressed ie mouse drag event.
12170                 - Changed 'Pressed' property to return true only when
12171                 'inside' and 'pressed' are both true.
12172                 - Some coding style love.
12173
12174 2004-10-14 00:17  ravindra
12175
12176         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12177           public method.
12178
12179 2004-10-14 00:15  ravindra
12180
12181         * ButtonBase.cs: Redraw () related improvements.
12182
12183 2004-10-14 00:14  ravindra
12184
12185         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12186           removed unnecessary calls to Button.Show () method.
12187
12188 2004-10-13 17:50  pbartok
12189
12190         * XplatUIX11.cs:
12191           - Formatting fix
12192           - Removed destroying of window until we solve the problem of X
12193             destroying the window before us on shutdown
12194
12195 2004-10-13 16:32  pbartok
12196
12197         * ButtonBase.cs:
12198           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12199
12200 2004-10-13 14:18  pbartok
12201
12202         * XplatUIX11.cs:
12203           - Added code to destroy the X window
12204
12205 2004-10-13 14:18  pbartok
12206
12207         * XplatUIWin32.cs:
12208           - Added code to destroy a window
12209
12210 2004-10-13 14:12  pbartok
12211
12212         * ButtonBase.cs:
12213           - Added the Redraw on Resize that got dropped in the last rev
12214
12215 2004-10-13 09:06  pbartok
12216
12217         * ThemeWin32Classic.cs:
12218           - Path from John BouAntoun:
12219             * Fix check rendering (centre correctly for normal style, offset
12220               correctly for FlatStyle).
12221             * Fix border color usage (use backcolor) for FlatStyle.Popup
12222             * Use checkbox.Capture instead of checkbox.is_pressed when
12223               rendering flatstyle states.
12224
12225 2004-10-12 21:48  pbartok
12226
12227         * ThemeWin32Classic.cs:
12228           - Removed all occurences of SystemColors and replaced them with the
12229             matching theme color
12230
12231 2004-10-12 21:41  pbartok
12232
12233         * ThemeWin32Classic.cs:
12234           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12235             him using the function for flatstyle drawing
12236           - Changed functions to use the new version of CPDrawBorder3D
12237
12238 2004-10-12 21:15  pbartok
12239
12240         * ControlPaint.cs:
12241           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12242             match MS documentation. They need to return defined colors if the
12243             passed color matches the configured control color. Thanks to John
12244             BouAntoun for pointing this out.
12245
12246 2004-10-12 20:57  pbartok
12247
12248         * Control.cs:
12249           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12250             color is changed
12251
12252 2004-10-12 20:46  pbartok
12253
12254         * CheckBox.cs:
12255           - Fix from John BouAntoun: Now properly sets the Appearance property
12256
12257 2004-10-12 20:45  pbartok
12258
12259         * ThemeWin32Classic.cs:
12260           - Fixes from John BouAntoun: now handles forecolors and backcolors
12261             for flatstyle rendered controls much better; It also fixes normal
12262             checkbox rendering when pushed or disabled.
12263
12264 2004-10-08 02:50  jordi
12265
12266         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12267           work
12268
12269 2004-10-07 08:56  jordi
12270
12271         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12272
12273 2004-10-06 03:59  jordi
12274
12275         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12276           XplatUIWin32.cs: removes warnings from compilation
12277
12278 2004-10-05 12:23  jackson
12279
12280         * RadioButton.cs: Fix ctor
12281
12282 2004-10-05 11:10  pbartok
12283
12284         * MessageBox.cs:
12285           - Partial implementation by Benjamin Dasnois
12286
12287 2004-10-05 10:15  jackson
12288
12289         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12290           by John BouAntoun
12291
12292 2004-10-05 03:07  ravindra
12293
12294         * ToolBar.cs:
12295                 - Removed a private method, Draw ().
12296                 - Fixed the ButtonDropDown event handling.
12297                 - Fixed MouseMove event handling.
12298
12299 2004-10-05 03:04  ravindra
12300
12301         * ThemeWin32Classic.cs:
12302                 - Added DrawListView method and ListViewDefaultSize property.
12303                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12304                 - Changed DOS style CRLF to Unix format (dos2unix).
12305
12306 2004-10-05 03:03  ravindra
12307
12308         * Theme.cs:
12309                 - Added DrawListView method and ListViewDefaultSize property.
12310
12311 2004-10-05 02:42  ravindra
12312
12313         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12314           clicks on DropDown arrow.
12315
12316 2004-10-04 22:56  jackson
12317
12318         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12319           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12320           Control handle the buffers, derived classes should not have to
12321           CreateBuffers themselves.
12322
12323 2004-10-04 21:20  jackson
12324
12325         * StatusBar.cs: The control handles resizing the buffers now.
12326
12327 2004-10-04 21:18  jackson
12328
12329         * Control.cs: When resizing the buffers should be invalidated. This
12330           should be handled in Control not in derived classes.
12331
12332 2004-10-04 14:45  jackson
12333
12334         * TabPage.cs: oops
12335
12336 2004-10-04 02:14  pbartok
12337
12338         * LeftRightAlignment.cs:
12339           - Initial check-in
12340
12341 2004-10-04 01:09  jordi
12342
12343         * ThemeWin32Classic.cs: fixes right button position causing right
12344           button not showing on horizontal scrollbars
12345
12346 2004-10-02 13:12  pbartok
12347
12348         * XplatUIX11.cs:
12349           - Simplified the Invalidate method by using an X call instead of
12350             generating the expose ourselves
12351           - Added an expose when the window background is changed
12352           - Implemented ClientToScreen method
12353
12354 2004-10-02 13:08  pbartok
12355
12356         * XplatUIWin32.cs:
12357           - Added Win32EnableWindow method (test for implementing modal
12358           dialogs)
12359           - Added ClientToScreen method and imports
12360
12361 2004-10-02 13:07  pbartok
12362
12363         * XplatUI.cs, XplatUIDriver.cs:
12364           - Added ClientToScreen coordinate translation method
12365
12366 2004-10-02 13:06  pbartok
12367
12368         * KeyPressEventArgs.cs:
12369           - Fixed access level for constructor
12370
12371 2004-10-02 13:06  pbartok
12372
12373         * NativeWindow.cs:
12374           - Changed access level for the window_collection hash table
12375
12376 2004-10-02 13:05  pbartok
12377
12378         * Form.cs:
12379           - Added KeyPreview property
12380           - Added Menu property (still incomplete, pending Jordi's menu work)
12381           - Implemented ProcessCmdKey
12382           - Implemented ProcessDialogKey
12383           - Implemented ProcessKeyPreview
12384
12385 2004-10-02 13:02  pbartok
12386
12387         * Control.cs:
12388           - Added private method to get the Control object from the window
12389           handle
12390           - Implemented ContextMenu property
12391           - Implemented PointToScreen
12392           - Implemented PreProcessMessage
12393           - Implemented IsInputChar
12394           - Implemented IsInputKey
12395           - Implemented ProcessCmdKey
12396           - Completed ProcessKeyEventArgs
12397           - Fixed message loop to call the proper chain of functions on key
12398           events
12399           - Implemented ProcessDialogChar
12400           - Implemented ProcessDialogKey
12401           - Implemented ProcessKeyMessage
12402           - Implemented ProcessKeyPreview
12403           - Added RaiseDragEvent stub (MS internal method)
12404           - Added RaiseKeyEvent stub (MS internal method)
12405           - Added RaiseMouseEvent stub (MS Internal method)
12406           - Added RaisePaintEvent stub (MS Internal method)
12407           - Added ResetMouseEventArgs stub (MS Internal method)
12408           - Implemented RtlTranslateAlignment
12409           - Implemented RtlTranslateContent
12410           - Implemented RtlTranslateHorizontal
12411           - Implemented RtlTranslateLeftRight
12412           - Added generation of KeyPress event
12413
12414 2004-10-02 05:57  ravindra
12415
12416         * ListViewItem.cs: Added attributes.
12417
12418 2004-10-02 05:32  ravindra
12419
12420         * ListView.cs: Added attributes.
12421
12422 2004-10-01 11:53  jackson
12423
12424         * Form.cs: Implement the Close method so work on MessageBox can
12425           continue.
12426
12427 2004-09-30 14:06  pbartok
12428
12429         * XplatUIX11.cs:
12430           - Bug fixes
12431
12432 2004-09-30 11:34  jackson
12433
12434         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12435
12436 2004-09-30 07:26  ravindra
12437
12438         * ListViewItemConverter.cs: Converter for ListViewItem.
12439
12440 2004-09-30 07:26  ravindra
12441
12442         * SortOrder.cs: Enum for ListView control.
12443
12444 2004-09-30 07:25  ravindra
12445
12446         * ColumnHeader.cs: Supporting class for ListView control.
12447
12448 2004-09-30 07:24  ravindra
12449
12450         * ListView.cs, ListViewItem.cs: Initial implementation.
12451
12452 2004-09-30 07:20  ravindra
12453
12454         * ItemActivation.cs: Enum for ListView Control.
12455
12456 2004-09-29 20:29  pbartok
12457
12458         * XplatUIX11.cs:
12459           - Added lookup of pixel value for background color; tries to get a
12460             color 'close' to the requested color, it avoids having to create a
12461             colormap.  Depending on the display this could mean the used color
12462             is slightly off the desired color. Might have to change it to a more
12463             resource intensive colormap approach, but it will work as a
12464           workaround to avoid red screens.
12465
12466 2004-09-29 14:27  jackson
12467
12468         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12469
12470 2004-09-28 12:44  pbartok
12471
12472         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12473           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12474           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12475           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12476           TrackBar.cs, VScrollBar.cs:
12477           - Streamlined Theme interfaces:
12478             * Each DrawXXX method for a control now is passed the object for
12479               the control to be drawn in order to allow accessing any state the
12480               theme might require
12481
12482             * ControlPaint methods for the theme now have a CP prefix to avoid
12483               name clashes with the Draw methods for controls
12484
12485             * Every control now retrieves it's DefaultSize from the current
12486             theme
12487
12488 2004-09-28 12:17  jackson
12489
12490         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12491           drawing
12492
12493 2004-09-24 14:57  jackson
12494
12495         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12496           Gives us a nice little performance boost.
12497
12498 2004-09-24 12:02  jackson
12499
12500         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12501           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12502           Control and supporting classes. Initial checkin
12503
12504 2004-09-23 13:08  jackson
12505
12506         * Form.cs: Temp build fixage
12507
12508 2004-09-23 01:39  ravindra
12509
12510         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12511           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12512           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12513           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12514           EventHandlers needed by ListView Control.
12515
12516 2004-09-22 14:12  pbartok
12517
12518         * ScrollableControl.cs:
12519           - Implemented DockPadding property
12520           - Implemented AutoScroll property
12521           - Implemented AutoScrollMargin property
12522           - Implemented AutoScrollMinSize property
12523           - Implemented AutoScrollPosition property
12524           - Implemented DisplayRectangle property (still incomplete)
12525           - Implemented CreateParams property
12526           - Implemented HScroll property
12527           - Implemented VScroll property
12528           - Implemented OnVisibleChanged property
12529
12530 2004-09-22 14:09  pbartok
12531
12532         * Form.cs:
12533           - Added Form.ControllCollection class
12534           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12535             RemoveOwnedForm (still incomplete, missing on-top and common
12536             minimize/maximize behaviour)
12537           - Added StartPosition property (still incomplete, does not use when
12538             creating the form)
12539           - Added ShowDialog() methods (still incomplete, missing forcing the
12540             dialog modal)
12541
12542 2004-09-22 14:05  pbartok
12543
12544         * Application.cs:
12545           - Added message loop for modal dialogs
12546
12547 2004-09-22 14:02  pbartok
12548
12549         * GroupBox.cs:
12550           - Fixed wrong types for events
12551
12552 2004-09-22 14:00  pbartok
12553
12554         * Shortcut.cs, FormWindowState.cs:
12555           - Fixed wrong values
12556
12557 2004-09-22 12:01  jackson
12558
12559         * Control.cs: Text is never null
12560
12561 2004-09-20 22:14  pbartok
12562
12563         * XplatUIWin32.cs:
12564           - Fixed accessibility level for Idle handler
12565
12566 2004-09-20 18:54  jackson
12567
12568         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12569           XplatUIX11.cs: New message loop that uses poll so we don't get a
12570           busy loop
12571
12572 2004-09-17 10:43  pbartok
12573
12574         * ScrollBar.cs:
12575           - Fixed behaviour of arrow buttons. Now properly behaves like
12576             Buttons (and like Microsoft's scrollbar arrow buttons)
12577
12578 2004-09-17 10:14  pbartok
12579
12580         * ScrollBar.cs:
12581           - Added missing release of keyboard/mouse capture
12582
12583 2004-09-17 06:18  jordi
12584
12585         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12586           Theme.cs: Very early menu support
12587
12588 2004-09-16 17:45  pbartok
12589
12590         * XplatUIWin32.cs:
12591           - Fixed sending a window to the front
12592           - Added overload for SetWindowPos to avoid casting
12593
12594 2004-09-16 17:44  pbartok
12595
12596         * Control.cs:
12597           - Added SendToBack and BringToFront methods
12598
12599 2004-09-16 07:00  ravindra
12600
12601         * Copyright: Added Novell URL.
12602
12603 2004-09-16 07:00  ravindra
12604
12605         * ToolBar.cs: Invalidate should be done before redrawing.
12606
12607 2004-09-15 21:19  ravindra
12608
12609         * ColumnHeaderStyle.cs: Enum for ListView Control.
12610
12611 2004-09-15 21:18  ravindra
12612
12613         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12614           ListView Control.
12615
12616 2004-09-13 18:26  jackson
12617
12618         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12619           properly
12620
12621 2004-09-13 18:13  jackson
12622
12623         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12624           a second thread and post messages into the main threads message
12625           queue. This makes timing much more consistent. Both win2K and XP
12626           have a minimum timer value of 15 milliseconds, so we now do this
12627           too.
12628
12629 2004-09-13 15:18  pbartok
12630
12631         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12632           XplatUIX11.cs:
12633           - Added Z-Ordering methods
12634
12635 2004-09-13 10:56  pbartok
12636
12637         * Form.cs:
12638           - Fixed #region names
12639           - Moved properties and methods into their proper #regions
12640
12641 2004-09-13 10:51  pbartok
12642
12643         * Form.cs:
12644           - Added Accept and CancelButton properties
12645           - Added ProcessDialogKey() method
12646
12647 2004-09-13 08:18  pbartok
12648
12649         * IWindowTarget.cs:
12650           - Initial check-in
12651
12652 2004-09-10 21:50  pbartok
12653
12654         * Control.cs:
12655           - Added DoDragDrop() [incomplete]
12656           - Properly implemented 'Visible' handling
12657           - Added SetVisibleCore()
12658           - Implemented FindChildAtPoint()
12659           - Implemented GetContainerControl()
12660           - Implemented Hide()
12661
12662 2004-09-10 19:28  pbartok
12663
12664         * Control.cs:
12665           - Moved methods into their appropriate #regions
12666           - Reordered methods within regions alphabetically
12667
12668 2004-09-10 18:57  pbartok
12669
12670         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12671           - Added method to retrieve text from window
12672
12673 2004-09-10 18:56  pbartok
12674
12675         * Control.cs:
12676           - Moved some internal functions into the internal region
12677           - Implemented FontHeight
12678           - Implemented RenderRightToLeft
12679           - Implemented ResizeRedraw
12680           - Implemented ShowFocusCues
12681           - Implemented ShowKeyboardCues
12682           - Implemented FromChildHandle
12683           - Implemented FromHandle
12684           - Implemented IsMnemonic
12685           - Implemented ReflectMessage
12686           - All public and protected Static Methods are now complete
12687
12688 2004-09-10 16:54  pbartok
12689
12690         * Control.cs:
12691           - Implemented remaining missing public instance properties
12692           - Alphabetized some out of order properties
12693
12694 2004-09-10 05:51  ravindra
12695
12696         * PictureBox.cs: Added a check for null image.
12697
12698 2004-09-10 00:59  jordi
12699
12700         * GroupBox.cs: remove cvs tag
12701
12702 2004-09-09 05:25  ravindra
12703
12704         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12705
12706 2004-09-09 05:23  ravindra
12707
12708         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12709           parent redraw.
12710
12711 2004-09-09 02:28  pbartok
12712
12713         * ThemeWin32Classic.cs:
12714           - Improve disabled string look
12715
12716 2004-09-09 01:15  jordi
12717
12718         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12719           args and handler
12720
12721 2004-09-08 23:56  ravindra
12722
12723         * ItemBoundsPortion.cs: It's enum, not a class!
12724
12725 2004-09-08 23:47  ravindra
12726
12727         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12728           Enums for Form.
12729
12730 2004-09-08 21:13  ravindra
12731
12732         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12733           ListView control.
12734
12735 2004-09-08 21:03  ravindra
12736
12737         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12738           avoid crash.
12739
12740 2004-09-08 21:01  ravindra
12741
12742         * ScrollableControl.cs: Removed unreachable code.
12743
12744 2004-09-08 06:45  jordi
12745
12746         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12747
12748 2004-09-08 01:00  jackson
12749
12750         * XplatUIX11.cs: Only run the timers when updating the message
12751           queue. This effectively gives X messages a higher priority then
12752           timer messages. Timers still need love though
12753
12754 2004-09-07 14:01  jackson
12755
12756         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12757           this for us and the handle is no longer valid.
12758
12759 2004-09-07 13:59  jackson
12760
12761         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12762           loop that manages to not crash. TODO: Add poll and cleanup timers
12763
12764 2004-09-07 11:12  jordi
12765
12766         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12767
12768 2004-09-07 03:40  jordi
12769
12770         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12771           fixes, methods, multiple links
12772
12773 2004-09-06 06:55  jordi
12774
12775         * Control.cs: Caches ClientRectangle rectangle value
12776
12777 2004-09-05 02:03  jordi
12778
12779         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12780           certain situations
12781
12782 2004-09-04 11:10  jordi
12783
12784         * Label.cs: Refresh when font changed
12785
12786 2004-09-02 16:24  pbartok
12787
12788         * Control.cs:
12789           - Added sanity check to creation of double buffer bitmap
12790
12791 2004-09-02 16:24  pbartok
12792
12793         * ButtonBase.cs:
12794           - Fixed selection of text color
12795           - Fixed handling of resize event; now properly recreates double
12796             buffering bitmap
12797           - Added missing assignment of TextAlignment
12798           - Added proper default for TextAlignment
12799
12800 2004-09-02 14:26  pbartok
12801
12802         * RadioButton.cs:
12803           - Added missing RadioButton.RadioButtonAccessibleObject class
12804
12805 2004-09-02 14:26  pbartok
12806
12807         * Control.cs:
12808           - Added missing Control.ControlAccessibleObject class
12809           - Started to implement Select()ion mechanisms, still very incomplete
12810
12811 2004-09-02 14:25  pbartok
12812
12813         * AccessibleObject.cs:
12814           - Added missing methods
12815
12816 2004-09-02 14:23  pbartok
12817
12818         * AccessibleNavigation.cs, AccessibleSelection.cs:
12819           - Initial check-in
12820
12821 2004-09-02 10:32  jordi
12822
12823         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12824           pool for pens, brushes, and hatchbruses
12825
12826 2004-09-01 15:30  jackson
12827
12828         * StatusBar.cs: Fix typo
12829
12830 2004-09-01 14:44  pbartok
12831
12832         * RadioButton.cs:
12833           - Fixed state
12834
12835 2004-09-01 14:39  pbartok
12836
12837         * Button.cs, RadioButton.cs:
12838           - Functional initial check-in
12839
12840 2004-09-01 14:01  pbartok
12841
12842         * CheckBox.cs:
12843           - Added missing default
12844           - Added missing region mark
12845
12846 2004-09-01 09:10  jordi
12847
12848         * Label.cs: fixes method signatures, new methods, events, fixes
12849           autosize
12850
12851 2004-09-01 07:19  jordi
12852
12853         * Control.cs: Init string variables with an empty object
12854
12855 2004-09-01 04:20  jordi
12856
12857         * Control.cs: fires OnFontChanged event
12858
12859 2004-08-31 20:07  pbartok
12860
12861         * ButtonBase.cs:
12862           - Enabled display of strings
12863
12864 2004-08-31 20:05  pbartok
12865
12866         * Form.cs:
12867           - Added (partial) implementation of DialogResult; rest needs to be
12868             implemented when the modal loop code is done
12869
12870 2004-08-31 19:55  pbartok
12871
12872         * CheckBox.cs:
12873           - Fixed to match the removal of the needs_redraw concept
12874
12875 2004-08-31 19:55  pbartok
12876
12877         * ButtonBase.cs:
12878           - Removed the rather odd split between 'needs redraw' and redrawing
12879           - Now handles the events that require regeneration (ambient
12880             properties and size)
12881
12882 2004-08-31 19:41  pbartok
12883
12884         * Control.cs:
12885           - Added firing of BackColorChanged event
12886           - Added TopLevelControl property
12887           - Fixed handling of WM_ERASEBKGRND message
12888
12889 2004-08-31 12:49  pbartok
12890
12891         * ButtonBase.cs:
12892           - Removed debug
12893           - Minor fixes
12894
12895 2004-08-31 12:48  pbartok
12896
12897         * CheckBox.cs:
12898           - Finished (famous last words)
12899
12900 2004-08-31 04:35  jordi
12901
12902         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12903           scrolling bugs, adds new methods
12904
12905 2004-08-30 14:42  pbartok
12906
12907         * CheckBox.cs:
12908           - Implemented CheckBox drawing code
12909
12910 2004-08-30 14:42  pbartok
12911
12912         * ButtonBase.cs:
12913           - Made Redraw() and CheckRedraw() virtual
12914           - Improved mouse up/down/move logic to properly track buttons
12915
12916 2004-08-30 09:44  pbartok
12917
12918         * CheckBox.cs:
12919           - Updated to fix broken build. Not complete yet.
12920
12921 2004-08-30 09:28  pbartok
12922
12923         * CheckState.cs:
12924           - Initial checkin
12925
12926 2004-08-30 09:17  pbartok
12927
12928         * Appearance.cs:
12929           - Initial check-in
12930
12931 2004-08-27 16:12  ravindra
12932
12933         * ToolBarButton.cs: Added TypeConverter attribute.
12934
12935 2004-08-27 16:07  ravindra
12936
12937         * ImageIndexConverter.cs: Implemented.
12938
12939 2004-08-27 14:17  pbartok
12940
12941         * Control.cs:
12942           - Removed unneeded stack vars
12943           - First attempt to fix sizing issues when layout is suspended
12944
12945 2004-08-25 15:35  jordi
12946
12947         * ScrollBar.cs: more fixes to scrollbar
12948
12949 2004-08-25 14:04  ravindra
12950
12951         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12952           Added the missing divider code and grip for ToolBar Control.
12953
12954 2004-08-25 13:20  pbartok
12955
12956         * Control.cs:
12957           - Control now properly passes the ambient background color to child
12958             controls
12959
12960 2004-08-25 13:20  jordi
12961
12962         * ScrollBar.cs: small bug fix regarding bar position
12963
12964 2004-08-25 12:33  pbartok
12965
12966         * Timer.cs:
12967           - Now only calls SetTimer or KillTimer if the enabled state has
12968           changed
12969
12970 2004-08-25 12:33  pbartok
12971
12972         * XplatUIWin32.cs:
12973           - Fixed timer handling, now seems to work
12974           - Improved error message for window creation
12975
12976 2004-08-25 12:32  pbartok
12977
12978         * Control.cs:
12979           - Fixed generation of MouseUp message
12980
12981 2004-08-25 12:29  jordi
12982
12983         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12984           and fixes for progressbar
12985
12986 2004-08-24 18:43  ravindra
12987
12988         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12989           in ToolBar control.
12990
12991 2004-08-24 17:15  pbartok
12992
12993         * Panel.cs:
12994           - Added #region
12995           - Added missing events
12996           - Alphabetized
12997
12998 2004-08-24 17:14  pbartok
12999
13000         * StatusBar.cs, PictureBox.cs:
13001           - Now uses Control's CreateParams
13002
13003 2004-08-24 16:36  pbartok
13004
13005         * XplatUIX11.cs:
13006           - Fixed background color handling
13007           - Fixed sending of enter/leave events on a grab
13008
13009 2004-08-24 16:35  pbartok
13010
13011         * X11Structs.cs:
13012           - Refined definitions for CrossingEvent
13013
13014 2004-08-24 12:37  jordi
13015
13016         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13017           formmating, methods signature, and adds missing events
13018
13019 2004-08-24 12:24  jordi
13020
13021         * Control.cs: fire OnEnabledChanged event
13022
13023 2004-08-24 11:17  pbartok
13024
13025         * XplatUIWin32.cs:
13026           - Implemented SetTimer() and KillTimer()
13027
13028 2004-08-24 11:16  pbartok
13029
13030         * XplatUIX11.cs:
13031           - Now uses Remove instead of Add to kill the timer
13032
13033 2004-08-24 10:16  jackson
13034
13035         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13036           picture boxes in the theme now. Draw picture box borders and obey
13037           sizing modes
13038
13039 2004-08-24 05:49  jackson
13040
13041         * Timer.cs: Remove top secret debugging code
13042
13043 2004-08-24 05:34  jackson
13044
13045         * PictureBox.cs: Temp hack to make picture boxes draw their full
13046           image
13047
13048 2004-08-24 05:29  jackson
13049
13050         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13051           XplatUIX11.cs: Move timers to the driver level. On X they are
13052           queued by the driver and checked on idle.
13053
13054 2004-08-24 01:07  jackson
13055
13056         * XplatUIX11.cs: Use a queue for async messages instead of passing
13057           them as ClientMessages since that was totally broken. Also simply
13058           check for events and return an idle message if none are found. This
13059           gives us an idle handler, and prevents deadlocking when no messages
13060           are in the queue.
13061
13062 2004-08-23 18:19  ravindra
13063
13064         * XplatUIWin32.cs: Removed the unwanted destructor.
13065
13066 2004-08-23 17:27  pbartok
13067
13068         * ButtonBase.cs:
13069           - Finishing touches. Works now, just needs some optimizations.
13070
13071 2004-08-23 16:53  jordi
13072
13073         * ScrollBar.cs: small fix
13074
13075 2004-08-23 16:45  pbartok
13076
13077         * Application.cs:
13078           - Removed debug output
13079           - Simplifications
13080
13081 2004-08-23 16:43  jordi
13082
13083         * ScrollBar.cs: [no log message]
13084
13085 2004-08-23 16:10  pbartok
13086
13087         * Form.cs:
13088           - Fixed handling of WM_CLOSE message
13089           - Removed debug output
13090
13091 2004-08-23 16:09  pbartok
13092
13093         * Application.cs:
13094           - Added handling of Idle event
13095           - Added handling of form closing
13096           - Fixed reporting of MessageLoop property
13097           - Removed some unneeded code, should provide a bit of a speedup
13098
13099 2004-08-23 15:22  pbartok
13100
13101         * Control.cs:
13102           - Added InitLayout() method
13103           - Added code to properly perform layout when Anchor or Dock property
13104             is changed
13105           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13106             LAMESPEC, tried to do it in a way that makes sense
13107
13108 2004-08-23 14:10  jordi
13109
13110         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13111           properties and methods
13112
13113 2004-08-23 13:55  pbartok
13114
13115         * Control.cs:
13116           - Properly fixed Jordi's last fix
13117           - Now uses Cursor's Position property instead of calling XplatUI
13118           directly
13119
13120 2004-08-23 13:44  jordi
13121
13122         * PaintEventHandler.cs: Adding missing attribute
13123
13124 2004-08-23 13:39  pbartok
13125
13126         * Cursor.cs:
13127           - Implemented Position property
13128
13129 2004-08-23 13:39  pbartok
13130
13131         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13132           - Added method to move mouse cursor
13133
13134 2004-08-23 13:39  pbartok
13135
13136         * XplatUIX11.cs:
13137           - Fixed setting of background color
13138           - Added method to move mouse cursor
13139
13140 2004-08-23 13:16  jordi
13141
13142         * Control.cs: avoids null exception
13143
13144 2004-08-22 17:46  jackson
13145
13146         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13147           PictureBox
13148
13149 2004-08-22 17:40  jackson
13150
13151         * XplatUIX11.cs: Add some missing locks
13152
13153 2004-08-22 15:10  pbartok
13154
13155         * Control.cs, Form.cs:
13156           - Removed OverlappedWindow style from Control, instead it's default
13157             now is child
13158           - Made form windows OverlappedWindow by default
13159
13160 2004-08-22 13:34  jackson
13161
13162         * ScrollBar.cs: Update the position through the Value property so
13163           the OnValueChanged event is raised.
13164
13165 2004-08-22 12:04  pbartok
13166
13167         * SWF.csproj:
13168           - Added Cursor.cs and UserControl.cs
13169
13170 2004-08-22 12:03  pbartok
13171
13172         * Cursor.cs:
13173           - Started implementation, not usable yet
13174
13175 2004-08-22 12:00  pbartok
13176
13177         * UserControl.cs:
13178           - Implemented UserControl (complete)
13179
13180 2004-08-21 19:20  ravindra
13181
13182         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13183
13184 2004-08-21 18:49  ravindra
13185
13186         * ToolBar.cs: Probably this completes the missing attributes in
13187           toolbar control.
13188
13189 2004-08-21 18:03  ravindra
13190
13191         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13192           Fixed toolbar control signatures.
13193
13194 2004-08-21 16:32  pbartok
13195
13196         * LinkLabel.cs:
13197           - Signature Fixes
13198
13199 2004-08-21 16:30  pbartok
13200
13201         * Label.cs:
13202           - Signature fixes
13203
13204 2004-08-21 16:19  pbartok
13205
13206         * Control.cs, Label.cs:
13207           - Signature fixes
13208
13209 2004-08-21 15:57  pbartok
13210
13211         * ButtonBase.cs:
13212           - Added loads of debug output for development
13213           - Fixed typo in method name
13214
13215 2004-08-21 15:52  pbartok
13216
13217         * ToolBarButtonClickEventArgs.cs:
13218           - Added missing base class
13219
13220 2004-08-21 14:53  pbartok
13221
13222         * Control.cs:
13223           - Updated to match new GrabWindow signature
13224
13225 2004-08-21 14:51  pbartok
13226
13227         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13228           - Added method to get default display size
13229
13230 2004-08-21 14:23  pbartok
13231
13232         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13233           - Added method to query current grab state
13234           - Added argument to allow confining a grab to a window
13235
13236 2004-08-21 14:22  pbartok
13237
13238         * Keys.cs:
13239           - Added [Flags] attribute so that modifiers can be used in bitwise
13240           ops
13241
13242 2004-08-21 14:21  pbartok
13243
13244         * TrackBar.cs, ScrollBar.cs:
13245           - Replaced direct XplatUI calls with their Control counterpart
13246
13247 2004-08-21 13:32  pbartok
13248
13249         * Control.cs:
13250           - Implemented Created property
13251
13252 2004-08-21 13:28  pbartok
13253
13254         * Control.cs:
13255           - Implemented ContainsFocus
13256
13257 2004-08-21 13:26  pbartok
13258
13259         * Control.cs:
13260           - Implemented CausesValidation
13261
13262 2004-08-21 13:21  pbartok
13263
13264         * Control.cs:
13265           - Implemented CanFocus
13266           - Implemented CanSelect
13267           - Implemented Capture
13268
13269 2004-08-21 12:35  pbartok
13270
13271         * XplatUIWin32.cs:
13272           - Fixed bug with Async message handling
13273           - Implemented getting the ModifierKeys
13274
13275 2004-08-21 12:32  jackson
13276
13277         * AsyncMethodResult.cs: Make sure we have the mutex before we
13278           release it. Fixes BeginInvoke on windows
13279
13280 2004-08-21 11:31  pbartok
13281
13282         * XplatUIWin32.cs, XplatUIX11.cs:
13283           - Drivers now return proper mouse state
13284
13285 2004-08-21 10:54  jackson
13286
13287         * Control.cs: Implement EndInvoke
13288
13289 2004-08-21 10:48  jackson
13290
13291         * Timer.cs: Remove unneeded finalizer
13292
13293 2004-08-20 19:52  ravindra
13294
13295         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13296           in mouse event handling in the ToolBar control.
13297
13298 2004-08-20 19:50  ravindra
13299
13300         * ImageList.cs: Changed draw method to use the arguments passed in
13301           to draw the image.
13302
13303 2004-08-20 18:58  pbartok
13304
13305         * XplatUIStructs.cs:
13306           - Added private message for async communication
13307
13308 2004-08-20 17:38  ravindra
13309
13310         * Control.cs: Made RightToLeft property virtual and removed a
13311           Console.WriteLine.
13312
13313 2004-08-20 14:39  jordi
13314
13315         * ThemeGtk.cs: use style_attach
13316
13317 2004-08-20 14:39  pbartok
13318
13319         * XplatUIWin32.cs:
13320           - Added jackson's Async code from X11 to Win32
13321
13322 2004-08-20 14:09  pbartok
13323
13324         * SWF.csproj:
13325           - Added all new files
13326
13327 2004-08-20 14:09  pbartok
13328
13329         * Control.cs:
13330           - Added call to set window background color
13331
13332 2004-08-20 14:03  pbartok
13333
13334         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13335           - Added method for setting the window background
13336
13337 2004-08-20 14:02  pbartok
13338
13339         * XplatUIWin32.cs:
13340           - Added method for setting the background color
13341           - Added handling for erasing the window background
13342
13343 2004-08-20 13:45  jordi
13344
13345         * TrackBar.cs: fixes timer, new properties and methods
13346
13347 2004-08-20 13:34  jackson
13348
13349         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13350           correct thread
13351
13352 2004-08-20 13:22  jackson
13353
13354         * Timer.cs: Timer Tick events are now handed through Controls Async
13355           mechanism so the callbacks are executed in the same thread as X
13356
13357 2004-08-20 13:19  jackson
13358
13359         * XplatUIDriver.cs: Expose functionality to send async messages
13360           through the driver
13361
13362 2004-08-20 13:18  jackson
13363
13364         * Control.cs: Implement Begininvoke
13365
13366 2004-08-20 13:14  jackson
13367
13368         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13369           messages through the driver
13370
13371 2004-08-20 13:12  jackson
13372
13373         * XplatUIX11.cs: Lock before all X operations. Also added Async
13374           method functionality through XSendEvent
13375
13376 2004-08-20 13:11  jackson
13377
13378         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13379           This will screw up on 64 bit systems)
13380
13381 2004-08-20 13:10  jackson
13382
13383         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13384           Async messages through X/Win32
13385
13386 2004-08-19 19:39  pbartok
13387
13388         * XplatUIX11.cs:
13389           - Updated code to match new HandleData.DeviceContext type
13390
13391 2004-08-19 19:38  pbartok
13392
13393         * HandleData.cs:
13394           - Made DeviceContext a generic object to allow usage from various
13395           drivers
13396           - Added support for queueing Windows messages
13397
13398 2004-08-19 19:37  pbartok
13399
13400         * XplatUIWin32.cs:
13401           - Added generation of MouseEnter, MouseLeave and MouseHover events
13402           - Added cleanup on EndPaint
13403
13404 2004-08-19 19:17  pbartok
13405
13406         * Control.cs:
13407           - Added handling of WM_MOUSEHOVER
13408           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13409           code
13410
13411 2004-08-19 18:55  jordi
13412
13413         * ThemeGtk.cs: fixes button order
13414
13415 2004-08-19 18:12  jordi
13416
13417         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13418
13419 2004-08-19 17:09  pbartok
13420
13421         * Control.cs:
13422           - Added Right property
13423           - Added RightToLeft property
13424
13425 2004-08-19 16:27  jordi
13426
13427         * ThemeGtk.cs: experimental GTK theme support
13428
13429 2004-08-19 16:26  jordi
13430
13431         * ITheme.cs, Theme.cs: move themes from an interface to a class
13432
13433 2004-08-19 16:25  jordi
13434
13435         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13436           theme enhancaments
13437
13438 2004-08-19 16:04  pbartok
13439
13440         * XplatUIX11.cs:
13441           - Added colormap basics
13442           - Added a way to re-initialize with a different display handle
13443           - Fixed setting of the window background color
13444           - Added various X11 imports related to colors and colormaps
13445
13446 2004-08-19 15:51  pbartok
13447
13448         * X11Structs.cs:
13449           - Removed packing hints (Paolo suggested this a while back)
13450           - fixed colormap type
13451           - Added default Atom types
13452           - Added Screen and color structs and enums
13453
13454 2004-08-19 15:39  pbartok
13455
13456         * ImageList.cs:
13457           - Added missing Draw() method
13458           - Added missing RecreateHandle event
13459
13460 2004-08-19 15:30  pbartok
13461
13462         * Form.cs:
13463           - Added handling of WM_CLOSE
13464
13465 2004-08-18 13:16  jordi
13466
13467         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13468           a table
13469
13470 2004-08-18 09:56  jordi
13471
13472         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13473
13474 2004-08-17 15:31  ravindra
13475
13476         * SWF.csproj: Updated project.
13477
13478 2004-08-17 15:25  pbartok
13479
13480         * Control.cs:
13481           - Drawing improvement; don't call UpdateBounds if we are not visible
13482             (or have been minimized)
13483
13484 2004-08-17 15:24  pbartok
13485
13486         * XplatUIWin32.cs:
13487           - Finished IsVisible
13488           - Added Win32GetWindowPlacement
13489
13490 2004-08-17 15:08  jackson
13491
13492         * Panel.cs: Initial checkin of the Panel
13493
13494 2004-08-17 14:25  pbartok
13495
13496         * Control.cs:
13497           - Fixed broken handling of default window sizes
13498
13499 2004-08-17 13:29  jackson
13500
13501         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13502           has a large startup time.
13503
13504 2004-08-17 10:25  jackson
13505
13506         * HandleData.cs: union areas properly
13507
13508 2004-08-17 10:12  jackson
13509
13510         * HandleData.cs: union areas properly
13511
13512 2004-08-16 20:00  ravindra
13513
13514         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13515
13516 2004-08-16 18:48  ravindra
13517
13518         * ToolBar.cs: Added attributes.
13519
13520 2004-08-16 17:17  ravindra
13521
13522         * SWF.csproj: Updated project.
13523
13524 2004-08-16 17:16  jackson
13525
13526         * XplatUIX11.cs: Check for more expose events before sending a
13527           WM_PAINT so they can all be grouped together. This makes dragging a
13528           window across another window redraw in a sane way.
13529
13530 2004-08-16 15:47  pbartok
13531
13532         * Control.cs:
13533           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13534             support OnMouseEnter/Leave()
13535           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13536             exposure handling
13537
13538 2004-08-16 15:46  pbartok
13539
13540         * XplatUIStructs.cs, XplatUIX11.cs:
13541           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13542           OnMouseEnter/Leave()
13543
13544 2004-08-16 15:34  jackson
13545
13546         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13547           sure messages get the message field set to WM_NULL if they are not
13548           handled.
13549
13550 2004-08-16 15:24  jackson
13551
13552         * HandleData.cs: HandleData is used for storing message information
13553           for window handles
13554
13555 2004-08-15 17:23  ravindra
13556
13557         * ColorDepth.cs: Added attribute.
13558
13559 2004-08-15 17:23  ravindra
13560
13561         * SWF.csproj: Updated project for ToolBar Control.
13562
13563 2004-08-15 17:20  ravindra
13564
13565         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13566           control and also dos2unix format.
13567
13568 2004-08-15 17:13  ravindra
13569
13570         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13571           ToolBarButtonClickEventArgs.cs,
13572           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13573           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13574
13575 2004-08-15 15:31  pbartok
13576
13577         * ButtonBase.cs:
13578           - First (mostly) working version
13579
13580 2004-08-13 16:15  pbartok
13581
13582         * Control.cs:
13583           - Fixed Anchor default
13584
13585 2004-08-13 15:43  pbartok
13586
13587         * Control.cs:
13588           - Changed GetCursorPos signature
13589
13590 2004-08-13 15:42  pbartok
13591
13592         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13593           - Changed signature for GetCursorPos
13594
13595 2004-08-13 15:25  pbartok
13596
13597         * XplatUIX11.cs:
13598           - Cleanup
13599           - Fixed resizing/exposure handling
13600
13601 2004-08-13 15:22  jordi
13602
13603         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13604           with tickposition
13605
13606 2004-08-13 14:55  jordi
13607
13608         * TrackBar.cs: change from wndproc to events
13609
13610 2004-08-13 13:00  jordi
13611
13612         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13613           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13614
13615 2004-08-13 12:53  pbartok
13616
13617         * XplatUIWin32.cs:
13618           - Changed GetWindowPos to also provide client area size
13619           - Fixed broken prototypes for several win32 functions
13620
13621 2004-08-13 12:53  pbartok
13622
13623         * XplatUI.cs, XplatUIDriver.cs:
13624           - Changed GetWindowPos to also provide client area size
13625
13626 2004-08-13 12:52  pbartok
13627
13628         * XplatUIX11.cs:
13629           - Added generation of WM_POSCHANGED
13630           - Changed GetWindowPos to also provide client area size
13631
13632 2004-08-13 12:52  pbartok
13633
13634         * Control.cs:
13635           - Added Dispose() and destructor
13636           - Fixed resizing and bounds calculation
13637           - Fixed Layout
13638           - Added memory savings for invisible windows
13639
13640 2004-08-13 12:46  jordi
13641
13642         * TrackBar.cs: adds timer and grap window
13643
13644 2004-08-13 10:25  jackson
13645
13646         * Timer.cs: SWF Timer
13647
13648 2004-08-12 16:59  pbartok
13649
13650         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13651           - Implemented method to get current mouse position
13652
13653 2004-08-12 14:29  jordi
13654
13655         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13656           enhancement, fix mouse problems, highli thumb, etc
13657
13658 2004-08-12 13:31  pbartok
13659
13660         * Control.cs:
13661           - Fixed Anchoring bugs
13662
13663 2004-08-12 13:01  jackson
13664
13665         * StatusBar.cs: Don't forget things
13666
13667 2004-08-12 12:54  jackson
13668
13669         * ThemeWin32Classic.cs: Handle owner draw status bars
13670
13671 2004-08-12 12:54  jackson
13672
13673         * StatusBar.cs: Implement missing properties, events, and methods.
13674           Handle mouse clicking
13675
13676 2004-08-12 10:19  jackson
13677
13678         * StatusBarPanelClickEventArgs.cs,
13679           StatusBarPanelClickEventHandler.cs: Classes for handling status
13680           bar panel click events
13681
13682 2004-08-12 10:10  jackson
13683
13684         * Control.cs: Add missing properties
13685
13686 2004-08-12 09:46  pbartok
13687
13688         * BindingsManagerBase.cs:
13689           - Name changed to BindingManagerBase.cs
13690
13691 2004-08-12 09:25  jordi
13692
13693         * ScrollableControl.cs: calls ctrlbase instead of exeception
13694
13695 2004-08-11 16:28  pbartok
13696
13697         * InputLanguageChangingEventArgs.cs:
13698           - Never check in before compiling. Fixes the last check-in
13699
13700 2004-08-11 16:26  pbartok
13701
13702         * InputLanguageChangingEventArgs.cs:
13703           - More signature fixes
13704
13705 2004-08-11 16:20  pbartok
13706
13707         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13708           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13709           ImageListStreamer.cs, InputLanguage.cs,
13710           InputLanguageChangedEventArgs.cs,
13711           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13712           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13713           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13714           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13715           - Signature fixes
13716
13717 2004-08-11 16:16  pbartok
13718
13719         * Application.cs:
13720           - Fixed Signature
13721           - Added .Net 1.1 method
13722
13723 2004-08-11 15:25  pbartok
13724
13725         * SWF.csproj:
13726           - Fixed BindingManagerBase.cs filename
13727
13728 2004-08-11 15:22  pbartok
13729
13730         * BindingManagerBase.cs:
13731           - Was checked in with wrong filename
13732
13733 2004-08-11 14:50  pbartok
13734
13735         * SWF.csproj:
13736           - Updated
13737
13738 2004-08-11 13:41  jordi
13739
13740         * XplatUIWin32.cs: Fixes ClientRect
13741
13742 2004-08-11 13:19  pbartok
13743
13744         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13745           XplatUIX11.cs:
13746           - We had SetWindowPos and MoveWindow to set window positions and
13747             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13748             keep SetWindowPos as matching counterpart
13749           - Added some X11 sanity checking
13750
13751 2004-08-11 12:59  pbartok
13752
13753         * Control.cs:
13754           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13755             (It seems that SetBounds is just a front for SetBoundsCore and
13756              SetBoundsCore updates the underlying window system and
13757              UpdateBounds is responsible for updating the variables associated
13758              with the Control and sending the events)
13759           - Major cleanup of Size handling; we now have two sizes, client_size
13760             and bounds. Bounds defines the window with decorations, client_size
13761             without them.
13762
13763 2004-08-11 12:55  pbartok
13764
13765         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13766           - Added method to calculate difference between decorated window and
13767             raw client area
13768
13769 2004-08-11 12:54  pbartok
13770
13771         * Label.cs:
13772           - Forcing redraw on resize
13773
13774 2004-08-11 11:43  pbartok
13775
13776         * ImageList.cs:
13777           - Removed disposing of the actual images when the list is disposed
13778
13779 2004-08-11 09:13  pbartok
13780
13781         * Control.cs:
13782           - Now properly reparents windows
13783
13784 2004-08-11 08:37  pbartok
13785
13786         * Control.cs:
13787           - Duh!
13788
13789 2004-08-11 07:47  pbartok
13790
13791         * Control.cs:
13792           - Rewrote the collection stuff. Might not be as fast now, not
13793             keeping the number of children around and accessible directly, but
13794             it's more straightforward
13795
13796 2004-08-11 07:44  pbartok
13797
13798         * AccessibleObject.cs:
13799           - Fixed to match ControlCollection rewrite
13800
13801 2004-08-11 07:43  pbartok
13802
13803         * ImageList.cs:
13804           - Added missing creation of the collection list
13805
13806 2004-08-10 20:08  jackson
13807
13808         * StatusBar.cs: Get the paint message from WndProc
13809
13810 2004-08-10 19:31  jackson
13811
13812         * ThemeWin32Classic.cs: Create Brushes as little as possible
13813
13814 2004-08-10 19:20  jackson
13815
13816         * UICues.cs: Add Flags attribute
13817
13818 2004-08-10 19:19  jackson
13819
13820         * StatusBarPanel.cs: Signature cleanup
13821
13822 2004-08-10 19:10  jackson
13823
13824         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13825           Initial implementation of status bar item drawing
13826
13827 2004-08-10 17:27  jordi
13828
13829         * TrackBar.cs: add missing methods, properties, and restructure to
13830           hide extra ones
13831
13832 2004-08-10 16:24  jackson
13833
13834         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13835           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13836           attribute
13837
13838 2004-08-10 13:21  jordi
13839
13840         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13841           enhancements and standarize on win colors defaults
13842
13843 2004-08-10 12:52  jackson
13844
13845         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13846           ThemeWin32Classic.cs: Implement DrawItem functionality
13847
13848 2004-08-10 12:47  jordi
13849
13850         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13851
13852 2004-08-10 12:32  jordi
13853
13854         * Control.cs: throw ontextchange event
13855
13856 2004-08-10 11:43  pbartok
13857
13858         * Control.cs:
13859           - Added more to the still unfinished Dock/Anchor layout code
13860
13861 2004-08-10 11:39  pbartok
13862
13863         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13864           - Added GetWindowPos method
13865
13866 2004-08-10 11:36  pbartok
13867
13868         * XplatUIWin32.cs:
13869           - Implemented several methods
13870
13871 2004-08-10 09:47  jackson
13872
13873         * TrackBar.cs: Allow control to handle buffering
13874
13875 2004-08-10 09:41  jackson
13876
13877         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13878
13879 2004-08-10 09:24  jackson
13880
13881         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13882
13883 2004-08-10 09:09  jackson
13884
13885         * StatusBar.cs: Let Control handle all the buffering.
13886
13887 2004-08-10 09:08  jackson
13888
13889         * Control.cs: Control will now handle the buffering code, so each
13890           control does not have to implement this.
13891
13892 2004-08-10 08:34  jackson
13893
13894         * XplatUIDriver.cs: Use default colors from the theme
13895
13896 2004-08-09 17:12  pbartok
13897
13898         * ImageList.cs:
13899           - Fixed several bugs Ravindra pointed out
13900
13901 2004-08-09 16:11  pbartok
13902
13903         * Control.cs:
13904           - Added incomplete dock layout code
13905           - Added support for mouse wheel
13906
13907 2004-08-09 16:09  pbartok
13908
13909         * XplatUIX11.cs:
13910           - Added handling for middle and right mousebutton
13911           - Added handling for mouse wheel
13912           - Added handling for key state and mouse state and position
13913           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13914           messages
13915
13916 2004-08-09 15:40  jackson
13917
13918         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13919           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13920           checkin
13921
13922 2004-08-09 15:37  jackson
13923
13924         * StatusBar.cs: Initial implementation of StatusBar
13925
13926 2004-08-09 15:36  jackson
13927
13928         * ITheme.cs: Add support for drawing status bar and getting status
13929           bar item sizes
13930
13931 2004-08-09 15:35  pbartok
13932
13933         * MouseButtons.cs:
13934           - Fixed values
13935
13936 2004-08-09 15:34  jackson
13937
13938         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13939           status bar item sizes
13940
13941 2004-08-09 15:21  jackson
13942
13943         * ThemeWin32Classic.cs: Use known colors for default control
13944           colours
13945
13946 2004-08-09 15:12  jackson
13947
13948         * ThemeWin32Classic.cs: Make the default font static, it is static
13949           in control so this doesn't change functionality and creating fonts
13950           is sloooooow.
13951
13952 2004-08-09 14:56  pbartok
13953
13954         * X11Structs.cs:
13955           - Added GrabMode enum
13956
13957 2004-08-09 14:55  pbartok
13958
13959         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13960           - Removed Run method, was only required for initial development
13961
13962 2004-08-09 14:51  pbartok
13963
13964         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13965           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13966           capture
13967
13968 2004-08-09 13:48  pbartok
13969
13970         * XplatUIX11.cs:
13971           - Fixed default sizing for child windows
13972
13973 2004-08-09 12:56  pbartok
13974
13975         * XplatUIX11.cs:
13976           - Added generation of WM_DESTROY message
13977           - Added handling of window manager induced shutdown
13978
13979 2004-08-09 11:31  jackson
13980
13981         * ThemeWin32Classic.cs: New names for control properties
13982
13983 2004-08-09 11:25  jackson
13984
13985         * Control.cs: Use new color names
13986
13987 2004-08-09 11:02  jackson
13988
13989         * XplatUI.cs: Get default window properties from the theme
13990
13991 2004-08-09 11:01  jackson
13992
13993         * ITheme.cs: The theme engine now controls default window
13994           properties
13995
13996 2004-08-09 11:00  jackson
13997
13998         * ThemeWin32Classic.cs: Add default window color properties
13999
14000 2004-08-09 10:17  jackson
14001
14002         * ThemeWin32Classic.cs: Use correct default back color
14003
14004 2004-08-09 10:05  jackson
14005
14006         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14007           the theme now.
14008
14009 2004-08-09 09:56  jackson
14010
14011         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14012
14013 2004-08-09 09:54  jackson
14014
14015         * Control.cs: Get default properties from the theme.
14016
14017 2004-08-09 09:53  jackson
14018
14019         * ITheme.cs: Themes now handle default control properties
14020
14021 2004-08-09 09:53  jackson
14022
14023         * ThemeWin32Classic.cs: Themes now handle default control
14024           properties so coloring will be consistent
14025
14026 2004-08-08 16:54  jordi
14027
14028         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14029
14030 2004-08-08 15:08  jordi
14031
14032         * XplatUIX11.cs: fixes keyboard crash
14033
14034 2004-08-08 13:47  jordi
14035
14036         * Label.cs: add cvs header info
14037
14038 2004-08-08 12:09  jackson
14039
14040         * ThemeWin32Classic.cs: Add pen_buttonface
14041
14042 2004-08-08 11:52  jordi
14043
14044         * Label.cs, LinkLabel.cs: [no log message]
14045
14046 2004-08-08 11:34  jordi
14047
14048         * ThemeWin32Classic.cs: Use Windows Standard Colours
14049
14050 2004-08-07 17:32  jordi
14051
14052         * TrackBar.cs: throw exceptions of invalid enums values
14053
14054 2004-08-07 17:31  jordi
14055
14056         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14057           draw method name
14058
14059 2004-08-07 16:56  jackson
14060
14061         * HorizontalAlignment.cs: Initial checkin
14062
14063 2004-08-07 13:16  jordi
14064
14065         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14066           methods
14067
14068 2004-08-07 13:05  jordi
14069
14070         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14071           GetSysColor defines
14072
14073 2004-08-06 18:01  pbartok
14074
14075         * ThemeWin32Classic.cs:
14076           - Fixed some rounding issues with float/int
14077
14078 2004-08-06 18:00  jackson
14079
14080         * DockStyle.cs, AnchorStyles.cs:
14081
14082                   Add flags and serializable attributes.
14083
14084 2004-08-06 17:46  pbartok
14085
14086         * XplatUIX11.cs:
14087           - Implemented GetParent
14088
14089 2004-08-06 17:18  pbartok
14090
14091         * TrackBar.cs:
14092           - Fixed some rounding issues with float/int
14093
14094 2004-08-06 17:17  pbartok
14095
14096         * X11Structs.cs, XplatUIX11.cs:
14097           - Fixed Refresh and Invalidate
14098
14099 2004-08-06 15:30  pbartok
14100
14101         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14102           - Fixed recursive loop when resizing
14103           - Improved/fixed redrawing on expose messages
14104
14105 2004-08-06 09:53  jordi
14106
14107         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14108           keyboard navigation
14109
14110 2004-08-06 08:02  pbartok
14111
14112         * X11Structs.cs, XplatUIX11.cs:
14113           - Fixed reparenting
14114           - Fixed window border creation
14115
14116 2004-08-05 15:38  pbartok
14117
14118         * XplatUIX11.cs:
14119           - Attempted fix for reparenting problems
14120
14121 2004-08-04 15:14  pbartok
14122
14123         * Control.cs:
14124           - Fixed Invalidation bug (calculated wrong client area)
14125           - Added ClientSize setter
14126
14127 2004-08-04 15:13  pbartok
14128
14129         * Form.cs:
14130           - Added AutoScale properties
14131
14132 2004-08-04 15:13  pbartok
14133
14134         * SWF.csproj:
14135           - Added latest files
14136
14137 2004-08-04 14:11  pbartok
14138
14139         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14140           XplatUIX11.cs:
14141           - Added Invalidate handling
14142
14143 2004-08-03 17:09  jordi
14144
14145         * XplatUIDriver.cs: fixes spelling mistake
14146
14147 2004-07-27 09:53  jordi
14148
14149         * TrackBar.cs: fixes trackbar events, def classname, methods
14150           signature
14151
14152 2004-07-27 09:29  jordi
14153
14154         * ScrollBar.cs: fixes scrollbar events
14155
14156 2004-07-27 04:38  jordi
14157
14158         * Control.cs: changes to be able to run winforms samples
14159
14160 2004-07-26 11:42  jordi
14161
14162         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14163           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14164
14165 2004-07-26 05:41  jordi
14166
14167         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14168           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14169           implementation
14170
14171 2004-07-22 09:22  jordi
14172
14173         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14174           check link overlapping, implement events, and fixes
14175
14176 2004-07-21 10:28  jordi
14177
14178         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14179
14180 2004-07-21 10:19  jordi
14181
14182         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14183           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14184           LinkLabelLinkClickedEventArgs.cs,
14185           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14186           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14187           implementation
14188
14189 2004-07-19 13:09  jordi
14190
14191         * Control.cs, Label.cs: label control re-written: added missing
14192           functionlity, events, and properties
14193
14194 2004-07-19 10:49  jordi
14195
14196         * Control.cs: fixes SetBounds logic
14197
14198 2004-07-19 01:29  jordi
14199
14200         * Control.cs: Call RefreshWindow only if the window has created
14201
14202 2004-07-15 14:05  pbartok
14203
14204         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14205           - Implemented ImageList and ImageList.ImageCollection classes
14206           - Added ColorDepth enumeration
14207           - Updated SWF VS.Net project
14208
14209 2004-07-15 11:06  jordi
14210
14211         * XplatUIStructs.cs: added MsgButons enum
14212
14213 2004-07-15 11:03  jordi
14214
14215         * Control.cs: added basic mouse handeling events
14216
14217 2004-07-15 03:38  jordi
14218
14219         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14220           Vertical TrackBar control implementation
14221
14222 2004-07-13 09:33  jordi
14223
14224         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14225
14226 2004-07-13 09:31  jordi
14227
14228         * Control.cs, Form.cs: commit: new properties and fixes form size
14229           problems
14230
14231 2004-07-09 14:13  miguel
14232
14233         * ProgressBar.cs: Spelling
14234
14235 2004-07-09 11:25  pbartok
14236
14237         * ProgressBar.cs:
14238           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14239           faster
14240
14241 2004-07-09 11:17  miguel
14242
14243         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14244
14245                 * ProgressBar.cs: Fixed spelling for `block'
14246
14247                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14248                 style guidelines.
14249
14250                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14251
14252 2004-07-08 23:21  pbartok
14253
14254         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14255           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14256           BaseCollection.cs, Binding.cs, BindingContext.cs,
14257           BindingMemberInfo.cs, BindingsCollection.cs,
14258           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14259           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14260           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14261           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14262           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14263           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14264           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14265           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14266           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14267           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14268           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14269           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14270           InputLanguageChangedEventArgs.cs,
14271           InputLanguageChangedEventHandler.cs,
14272           InputLanguageChangingEventArgs.cs,
14273           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14274           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14275           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14276           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14277           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14278           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14279           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14280           QueryAccessibilityHelpEventArgs.cs,
14281           QueryAccessibilityHelpEventHandler.cs,
14282           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14283           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14284           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14285           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14286           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14287           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14288           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14289           XplatUIX11.cs, lang.cs:
14290           - Initial check-in
14291