2006-10-11 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-10-11  Chris Toshok  <toshok@ximian.com>
2
3         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
4         atoms in _NET_WM_STATE here if the window is maximized.  We need
5         to do this because we're *replacing* the existing _NET_WM_STATE
6         property, so those atoms will be lost otherwise, and any further
7         call to GetWindowState will return Normal for a window which is
8         actually maximized.  Fixes #79338.
9
10 2006-10-11  Jackson Harper  <jackson@ximian.com>
11
12         * TextControl.cs: Special case for setting selection end to
13         selection start, we basically kill the anchor.
14         - some todo comments.
15
16 2006-10-11  Chris Toshok  <toshok@ximian.com>
17
18         * Control.cs: switch to using an "invalid_region" to track which
19         parts of the image buffer need updating.  This is more code than
20         the simple fix from r66532.  That version just attempted to always
21         fill the entire buffer on redraw, which turns out to be
22         inefficient when invalidating small rectangles.  This version
23         simply adds the invalid rectangle to the invalid region.  When we
24         get any WM_PAINT message we see if it can be filled using the
25         image buffer, and if it can't (if the paint event's clip rectangle
26         is visible in the invalid region) we first fill the image buffer.
27         So, the image buffer is still a cache, we just fill it lazily.
28
29         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
30         need it any longer.
31
32 2006-10-11  Chris Toshok  <toshok@ximian.com>
33
34         * XplatUIX11.cs (SetWindowPos): we need to update both position as
35         well as size after calling XMoveResizeWindow.  This keeps us from
36         ignoring future SetWindowPos calls.  Fixes the disappearing
37         DateTimePicker in the ToolBarDockExample from bug #72499.
38
39 2006-10-11  Chris Toshok  <toshok@ximian.com>
40
41         * TextBoxBase.cs: reorder things a bit when it comes to
42         resizing-causing-recalculation.  we were recalculating the
43         document when our position was changed, which shouldn't happen.
44         We only care about size changes.  Clear up some more redundant
45         recalculation calls while I'm at it.  This makes the toolbar dock
46         example snappy when you're just dragging toolbars around (since it
47         causes a relayout whenever you move one.)
48
49 2006-10-11  Chris Toshok  <toshok@ximian.com>
50
51         * ToolBarButton.cs (get_Rectangle): this only returns
52         Rectangle.Empty if Visible == false, or Parent == null.
53         Parent.Visible doesn't matter.
54
55 2006-10-10  Chris Toshok  <toshok@ximian.com>
56
57         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
58         by .net 1.1, so switch to an internal method instead.
59
60 2006-10-10  Chris Toshok  <toshok@ximian.com>
61
62         * Control.cs (WM_PAINT): when a control is double buffered we draw
63         initially to the ImageBuffer and then copy from there.  But when a
64         parent control which has child controls is double buffered, the
65         initial drawing doesn't encompass the entire ClientRectangle of
66         the parent control, so we end up with uninitialized bits (this is
67         easily seen by dragging the top toolbar in
68         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
69         manually set the ClipRectangle of the paint_event (only the one we
70         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
71         of the nastiness in bug #72499.
72
73         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
74         which we use in Control.cs's WM_PAINT handling.
75
76 2006-10-10  Jackson Harper  <jackson@ximian.com>
77
78         * TextBoxBase.cs: Finish off the autoscrolling stuff.
79
80 2006-10-10  Chris Toshok  <toshok@ximian.com>
81
82         * Cursor.cs: Apply a slightly different patch to the one suggested
83         in #79609.
84
85 2006-10-10  Jackson Harper  <jackson@ximian.com>
86
87         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
88         not the parent form.
89         * TextControl.cs: use difference in old line count vs new count to
90         calculate how many lines were added, this takes into account soft
91         line breaks properly.
92
93 2006-10-10  Chris Toshok  <toshok@ximian.com>
94
95         * LinkLabel.cs: don't call MeasureCharacterRanges against a
96         rectangle located at 0,0 and the size of the text.  Use
97         ClientRectangle instead.  This fixes rendering of non-left aligned
98         link labels.
99
100 2006-10-10  Jackson Harper  <jackson@ximian.com>
101
102         * TextBoxBase.cs: When we set the selection start position the
103         caret.
104         * TextControl.cs: Need to update the caret when we decrement it to
105         zero.
106         - Make sure that the selection_visible flag gets reset to false if
107         the selection isn't visible.  Before this you could get it set to
108         visible by changing the selection start, then changing the end to
109         equal the start.
110
111 2006-10-09  Jackson Harper  <jackson@ximian.com>
112
113         * TreeView.cs: Don't update scrollbars when we aren't visible.
114         * TreeNodeCollection.cs: Only need to update scrollbars if being
115         added to an expanded visible node or the root node.
116
117 2006-10-09  Chris Toshok  <toshok@ximian.com>
118
119         * XplatUIX11.cs (SendMessage): fix NRE.
120
121 2006-10-09  Jackson Harper  <jackson@ximian.com>
122
123         * TextBoxBase.cs: Implement horizontal autoscrolling.
124         * TextControl.cs: Add a movement types that allows moving forward
125         and backwards without wrapping.
126
127 2006-10-09  Mike Kestner  <mkestner@novell.com>
128
129         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
130         with focus "expansion" of labels.  Fixes #79532 and then some.
131         * ThemeWin32Classic.cs : add LineLimit to ListView label format
132         when wrapping.
133
134 2006-10-09  Jackson Harper  <jackson@ximian.com>
135
136         * TextBoxBase.cs: Set the default max values to MaxValue since
137         we use the scrollbar for autoscrolling and the default value is
138         100.  If we don't do this the caret won't keep up with typing
139         after about 18 characters.
140         * TextControl.cs: Make sure the selection is offset by the
141         viewport x.  This fixes selection when using auto scrolling.
142
143 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
144         
145         * Form.cs: The active control should be selected after the 
146         OnLoad so that any child control initialization that affects
147         the selection is done. Fixes #79406
148
149 2006-10-06  Chris Toshok  <toshok@ximian.com>
150
151         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
152         to have no evil effects.
153
154         - Stop selecting StructureNotifyMask on non-toplevel windows.
155
156           The only way children should be resized is by using the SWF api,
157           and we already send WM_WINDOWPOSCHANGED messages in those cases.
158           Toplevel windows can be interacted with via the window manager,
159           and so we keep the input mask there.
160
161           The other event StructureNotifyMask gives us (that we care
162           about) is DestroyNotify.  The code is already structured such
163           that it assumes we won't be getting a DestroyNotify event for
164           the window we pass to XDestroyWindow (which is what
165           StructureNotifyMask is supposed to guarantee.)  So, that code
166           shouldn't be affected by this either.
167
168         - Stop selecting VisibilityChangeMask altogether.
169
170           We weren't doing anything with the resulting events anyway.
171         
172         This vastly reduces the number of X requests and events we see
173         when resizing/laying out a large ui.
174
175 2006-10-06  Chris Toshok  <toshok@ximian.com>
176
177         * ScrollableControl.cs (DisplayRectangle): we need to take into
178         account the DockPadding regardless of whether or not auto_scroll
179         == true.  rework this slightly to this effect, and fix bug #79606,
180         and part of #72499 (you can now see the drag handles and drag
181         toolbars around).
182
183 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
184
185         * ListViewItem.cs: Collections of selected and checked items are now
186         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
187         we mark the collection "dirty".
188         * ListView.cs: Marked collections readonly. Modified UpdateSelection
189         to only clear SelectedItems when a new item is selected and MultiSelect
190         is enabled. CheckedItems and SelectedItems now subscribe to Changed
191         event of ListViewItemCollection, and mark its list dirty whenever
192         that event is fire. This allows us to return selected/checked items 
193         in the same order as they are in the Items collection. This matches
194         the MS behavior.
195
196 2006-10-06  Chris Toshok  <toshok@ximian.com>
197
198         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
199         right mouse clicks.  Fixes bug #79593.
200
201 2006-10-06  Chris Toshok  <toshok@ximian.com>
202
203         * Splitter.cs: doh, fix splitters that don't want to cancel the
204         movement when you drag them.  Also, impose the limits on the
205         values we send to the SplitterMovingEvent.  Fixes #79598.
206
207 2006-10-06  Jackson Harper  <jackson@ximian.com>
208
209         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
210         since we use this for auto scrolling also.
211
212 2006-10-05  Chris Toshok  <toshok@ximian.com>
213
214         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
215         beginning to think that most datagrid column types don't need this
216         method.  Fixes bug #79392.
217
218 2006-10-05  Chris Toshok  <toshok@ximian.com>
219
220         * DataGrid.cs: move back to a more lazy scheme for creating the
221         CurrencyManager, so we aren't updating it every time you set
222         either DataSource or DataMember.  Also, don't call
223         RecreateDataGridRows if the currency manager hasn't changed.
224
225 2006-10-05  Chris Toshok  <toshok@ximian.com>
226
227         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
228         emitted, SelectedIndex should already be updated.  Fixes bug
229         #78929.
230
231 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
232
233         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
234           ToolStripTextBox.cs: Initial commit.
235         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
236
237 2006-10-05  Jackson Harper  <jackson@ximian.com>
238
239         * TabControl.cs: We need to invalidate the tab control area when
240         new ones are added (duh).
241
242 2006-10-03  Chris Toshok  <toshok@ximian.com>
243
244         * Form.cs (ProcessDialogKey): if the focused control is in this
245         form and is a button, call its PerformClick method here.  Fixes
246         #79534.
247
248 2006-10-04  Jackson Harper  <jackson@ximian.com>
249
250         * TabPage.cs: Ignore setting of Visible, and add an internal
251         method for setting the controls visibility.  TabPage's Visible
252         property is a little strange on MS, this seems to make us
253         compatible, and fixes cases where people set all the tab pages to
254         visible.
255         * TabControl.cs: Use the new internal setting on tab pages
256         visibility.
257
258 2006-10-03  Mike Kestner  <mkestner@novell.com>
259
260         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
261
262 2006-10-03  Mike Kestner  <mkestner@novell.com>
263
264         * ListView.cs : use is_visible instead of Visible to check if 
265         scrollbars should be placed/sized.  Also some max_wrap_width
266         love for LargeIcon view.  [Fixes #79533]
267
268 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
269
270         * TextControl.cs :
271           Make set_TextAlign() do actually update the align. Fixed #78403.
272
273 2006-10-03  Chris Toshok  <toshok@ximian.com>
274
275         * DataGrid.cs: fix a crash when switching datasources if the
276         vertical scrollbar is at someplace other than Value = 0.  Also,
277         reduce the number of recalculation passes we do in SetDataSource
278         from 2 to 1.
279
280 2006-10-03  Jackson Harper  <jackson@ximian.com>
281
282         * TextBoxBase.cs: Move the if value the same bail check up, we
283         don't want to empty the document if it is already empty, this
284         seems to severly mess up the caret.  TODO: I should probably fix
285         the empty statement to update teh caret somehow.
286
287 2006-10-03  Chris Toshok  <toshok@ximian.com>
288
289         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
290         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
291         reflection, an internal row type, properties on said type, etc.)
292         will work with our datagrid.  Fixes #79531.
293
294 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
295
296         * FileDialog.cs: Don't crash if a path is not accessible
297           (System.UnauthorizedAccessException). Fixes #79569.
298         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
299           a ':' too. Return unknown icon for those paths/files.
300
301 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
302
303         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
304         GetContainerControl returns null.
305
306 2006-10-02  Chris Toshok  <toshok@ximian.com>
307
308         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
309         call to XGetWindowAttributes instead of "handle".  fixes an X
310         error using notifyicon after the NotifyIconWindow to Form base
311         class switch.
312
313 2006-10-02  Chris Toshok  <toshok@ximian.com>
314
315         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
316         server grab and looping we need to do to get down to the most
317         deeply nested child window.
318         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
319         QueryPointer again after the WarpPointer so we can generate a
320         proper (fake) MotionNotify event to be enqueued in the destination
321         window's queue.
322         (GetCursorPos): call QueryPointer.
323
324         Fixes #79556.
325
326 2006-10-02  Jackson Harper  <jackson@ximian.com>
327
328         * NotifyIcon.cs: Derive the notify icon from a form, so things
329         like FindForm work on it.
330         - Swallow the WM_CONTEXTMENU message, since that is generated on
331         mouse down, and context menu is a mouse up kinda guy.  I believe
332         the correct fix here is probably to make the notify icon entirely
333         NC area, but this seems to work fine for anyone not manipulating
334         WndProc.
335
336 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
337
338         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
339           ToolStripItemCollection.cs, ToolStripLabel.cs,
340           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
341           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
342           Initial implementation.
343         * TextRenderer.cs: Provide padding to MeasureText.
344
345 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
346
347         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
348         of ButtonBaseAccessibleObject. Fix bug #79552.
349
350 2006-10-02  Jackson Harper  <jackson@ximian.com>
351
352         * MdiWindowManager.cs: When maximizing use the containers client
353         rect, not it's bounds, so nc area is accounted correctly.
354         - Use the parent form's size for the menu position, since the
355         client isn't always the full form size.
356
357 2006-10-01  Chris Toshok  <toshok@ximian.com>
358
359         * ScrollableControl.cs: make sure neither right_edge or
360         bottom_edge are < 0, since they're used as LargeChange for the
361         horiz/vert scrollbars respectively.  Fixes #79539.
362
363 2006-10-01  Chris Toshok  <toshok@ximian.com>
364
365         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
366         the xplatuix11 code can cause us to destroy/recreate our handle.
367
368         * XplatUIX11.cs
369         (SystrayAdd):
370         - this code can be invoked many times for the same Hwnd.  Make
371           sure we only destroy the client window once (the first time this
372           method is called).  This fixes bug #79544.
373         - Remove the call to the improperly bound XSync.  why we had two
374           bindings to this, I will never know, but this call resulted in
375           events being discarded from the queue(!).
376         - correct a misunderstanding of _XEMBED_INFO - the second atom is
377           not our current state but the state we wish to be in.  So, 0 if
378           we don't want to be mapped.  Change it to 1.
379         (SystrayRemove): The XEMBED spec makes mention of the fact that
380         gtk doesn't support the reparent of client windows away from the
381         embedder.  Looking at gtksocket-x11.c seems to agree with this.
382         The only avenue we have for removing systray icons is to destroy
383         them.  We don't want the handle to go away for good, though, so
384         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
385         #79545.
386         
387 2006-10-01  Chris Toshok  <toshok@ximian.com>
388
389         * Form.cs (WndProc): inline the native_enabled variable usage into
390         the cases in which it's used.  Fixes #79536.
391
392 2006-09-29  Mike Kestner  <mkestner@novell.com>
393
394         * ListView.cs : toggle the selection state for ctrl clicks in 
395         multiselect mode. [Fixes #79417]
396
397 2006-09-29  Mike Kestner  <mkestner@novell.com>
398
399         * ListView.cs : kill CanMultiSelect and refactor the selection
400         code to support multiselection in the absence of mod keys. Steal
401         arrow/home/end keys by overriding InternalPreProcessMessage to
402         restore regressed keynav behavior.
403         [Fixes #79416]
404
405 2006-09-29  Jackson Harper  <jackson@ximian.com>
406
407         * MdiClient.cs: Repaint the titlebars when the active window is
408         changed.
409
410 2006-09-29  Chris Toshok  <toshok@ximian.com>
411
412         * Application.cs: when entering a runloop with a modal, make sure
413         the hwnd is enabled.  Fixes #79480.
414
415 2006-09-29  Chris Toshok  <toshok@ximian.com>
416
417         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
418         when ListManager.CanAddRows == false, bump us back one.
419
420         * DataGridColumnStyle.cs (ParentReadOnly): remove the
421         listmanager.CanAddRows check.  This makes ArrayLists uneditable
422         using a datagrid, which is not right.
423         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
424         is an IEditable, but call property_descriptor.SetValue regardless.
425         fixes #79435.
426
427 2006-09-29  Chris Toshok  <toshok@ximian.com>
428
429         * DataGridBoolColumn.cs: we need to test equality in the face of
430         possible null values (as is the case with the default NullValue).
431         This patch keeps us from crashing in that case.
432
433 2006-09-29  Jackson Harper  <jackson@ximian.com>
434
435         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
436         here, since it will get called for every node collection in the
437         tree. This is now done in the treeview once the sorting is
438         finished.
439         * TreeView.cs: Recalculate the visible order, and update the
440         scrollbars after sorting, set the top nope to the root so that the
441         recalc actually works.
442
443 2006-09-29  Chris Toshok  <toshok@ximian.com>
444
445         * LinkLabel.cs: more handling of the default link collection in
446         the face of LinkArea manipulation.  The default link collection
447         contains 1 element (start=0,length=-1).  If the user sets LinkArea
448         to anything and the links collection is the default, clear it.
449         Then only add the link if its nonempty.  Fixes #79518.
450
451 2006-09-29  Chris Toshok  <toshok@ximian.com>
452
453         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
454         piece correctly when we hit a '\n'.  Fixes #79517.
455
456 2006-09-29  Chris Toshok  <toshok@ximian.com>
457
458         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
459         change the binding of gdk_init_check to take two IntPtr's, and
460         pass IntPtr.Zero for both of them.  Fixes #79520.
461
462 2006-09-29  Mike Kestner  <mkestner@novell.com>
463
464         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
465         [Fixes #78779]
466
467 2006-09-28  Jackson Harper  <jackson@ximian.com>
468
469         * XplatUIX11.cs: When translating NC messages make sure we go from
470         whole window to screen, not client window to screen.
471         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
472         method doesn't exist
473         - Skip over controls that aren't forms when arranging.
474
475 2006-09-28  Jackson Harper  <jackson@ximian.com>
476
477         * XplatUIWin32.cs: Clip the rect to the parent window.
478         * XplatUIStructs.cs: Add clipping modes struct.
479         * InternalWindowManager.cs: New private method that factors title
480         bar heights in when calculating the pos of an NC mouse message.
481         - Use SendMessage to force a paint when the form's size is changed
482         instead of painting the decorations immediately.
483         - Don't let the NC button click messages get to DefWndProc,
484         because they will attempt to handle windowing themself, and this
485         messes up z-order (it will put them in front of the scrollbars).
486         * XplatUIX11.cs: Make sure that we don't reset window managers if
487         we already have one (ie the window is an MDI window).
488
489 2006-09-28  Chris Toshok  <toshok@ximian.com>
490
491         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
492         menu code really needs going over.
493
494 2006-09-27  Chris Toshok  <toshok@ximian.com>
495
496         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
497         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
498         window is maximizable.  So, we need to make sure that even if we
499         clear the border/wm frame of those functions, they're still
500         available (basically, we remove the decoration without removing
501         the function).  Half the fix for #79338.
502
503 2006-09-27  Chris Toshok  <toshok@ximian.com>
504
505         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
506         Fixes bug #79515.
507
508 2006-09-27  Chris Toshok  <toshok@ximian.com>
509
510         * Splitter.cs: reorder things a bit so that we don't actually
511         draw/move the splitter until after calling OnSplitterMoving.  This
512         lets users cancel/disallow the movement by explicitly setting
513         event.SplitX/SplitY.  Fixes #79372.
514
515 2006-09-27  Jackson Harper  <jackson@ximian.com>
516
517         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
518         because it is most likely on a window being destroyed, and that
519         will give us an X11 error.
520
521 2006-09-27  Chris Toshok  <toshok@ximian.com>
522
523         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
524         the dropdown button now toggles between showing and hiding the
525         dropdown.  Also, get rid of dropdown_form_showing and just use
526         dropdown_form.Visible.  We still don't do a grab, but I'll leave
527         that part to someone who has handled Capture-fu before.
528
529 2006-09-27  Chris Toshok  <toshok@ximian.com>
530
531         * DataGrid.cs: return false if alt isn't pressed when '0' is
532         pressed.  this keeps the '0' key from being swallowed, and fixes
533         bug #79350.
534
535 2006-09-27  Chris Toshok  <toshok@ximian.com>
536
537         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
538         Calling Refresh (in response to a scrollbar event) screws up the
539         scrollbar painting.  Fixes bug #78923.
540
541 2006-09-27  Chris Toshok  <toshok@ximian.com>
542
543         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
544         then insert into hashtable" blocks threadsafe.
545
546 2006-09-27  Chris Toshok  <toshok@ximian.com>
547
548         * MessageBox.cs (CreateParams): the styles should be |'ed with our
549         baseclass's, since otherwise the
550         ControlBox/MinimizeBox/MaximizeBox assignments above have no
551         effect.  This gets the close button back in messageboxes.
552
553 2006-09-27  Chris Toshok  <toshok@ximian.com>
554
555         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
556         flag, not just != 0.  this makes flags that are actually multiple
557         bits (like WS_CAPTION) work.  fixes bug #79508.
558
559 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
560
561         * PageSetupDialog.cs: add support for getting and settings the 
562         paper size, source and orientation.
563
564 2006-09-26  Chris Toshok  <toshok@ximian.com>
565
566         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
567         and caption == "", we need to remove the resize handles as well as
568         the title bar.
569
570         * Control.cs (set_Text): turns out that setting Text on a form
571         should change the WM styles on the window, since if ControlBox ==
572         false, the only way to get a window border is to have a non-""
573         Text property.  check winforms/forms/text.cs for an example.  so,
574         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
575         update both window styles and title.  This fixes a lot of dialogs
576         (including the preferences dialog in MonoCalendar.)
577
578 2006-09-26  Chris Toshok  <toshok@ximian.com>
579
580         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
581         control isn't a Form), call Win32ShowWindow to hide the window,
582         but don't update the control Visible property.  When we reparent
583         back to a parent control, call SetVisible in order for the
584         window's visibility to be reinstated.
585
586         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
587         the FosterParent.
588
589         * Control.cs (ControlCollection.Remove): remove that value.Hide()
590         call for good, since it breaks MonoCalendar (and other things I'm
591         sure.) Also, set all_controls to null *after* the owner calls,
592         which end up regenerating it.
593         (ChangeParent): allow new_parent to be == null, passing
594         IntPtr.Zero down to XplatUI.
595
596         this fixes #79294 the right way.
597
598 2006-09-26  Mike Kestner  <mkestner@novell.com>
599
600         * GridEntry.cs : internal SetParent method.
601         * PropertyGrid.cs : attach to property changed on the proper
602         target if we have a hierarchical grid with subobjects. Setup
603         GridItem.Parent for hierarchical items.
604         * PropertyGridView.cs : Set value on the correct target for
605         hierarchical grids. [Fixes #78903]
606
607 2006-09-26  Chris Toshok  <toshok@ximian.com>
608
609         * Control.cs (ChildNeedsRecreating): this should return true if
610         either we're being recreated and the child is in our list, or our
611         parent is waiting for our recreation.
612
613 2006-09-26  Chris Toshok  <toshok@ximian.com>
614
615         * Control.cs (ControlCollection.Remove): reinstate the
616         value.Hide() call as suggested in bug #79294.
617
618 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
619
620         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
621         coordinates (versus a relative move).
622
623 2006-09-26  Chris Toshok  <toshok@ximian.com>
624
625         * Control.cs: rework child recreation a little bit.  It turns out
626         that we race between the DestroyNotify the WM_DESTROY message.  If
627         the parent gets its DestroyNotify before the child gets the
628         WM_DESTROY message, the child ends up not recreating (since the
629         parent finishes its recreation on DestroyNotify, and the child
630         checks ParentIsRecreating.)
631
632         So, instead we store off a list of all the child controls which
633         need to be recreated when the parent control starts to recreate
634         itself.  Then, when child controls get their WM_DESTROY message we
635         check to see if they're in the parent's pending recreation list,
636         and if so, we recreate.  This removes all dependency on ordering
637         from the code and fixes the initial MonoCalendar upgrade dialog.
638         
639 2006-09-26  Jackson Harper  <jackson@ximian.com>
640
641         * TextControl.cs: Use the Line to get the length of the line,
642         since soft line breaks can change the end line.
643
644 2006-09-26  Chris Toshok  <toshok@ximian.com>
645
646         * Control.cs (ControlCollection.AddImplicit): don't add the
647         control again if it's already in one of our lists.  This keeps us
648         from adding controls over and over again for comboboxes when their
649         handle gets recreated (as the combobox adds implicit controls in
650         OnHandleCreated).  Fixes the X11 errors in bug #79480.
651
652 2006-09-26  Jackson Harper  <jackson@ximian.com>
653
654         * TextControl.cs: When deleting characters make sure that any
655         orphaned zero lengthed tags get deleted.
656         - Fix ToString for zero lengthed tags.
657
658 2006-09-25  Jackson Harper  <jackson@ximian.com>
659
660         * TextControl.cs: When getting a tag at the location there can be
661         multiple tags at the same spot, these are 0-lengthed tags that
662         appear when extra formatting has been stuck in a location.  We
663         need to pull out the last of these 0 lengthed tags.
664
665 2006-09-25  Jackson Harper  <jackson@ximian.com>
666
667         * TextControl.cs: Fix print out in debug method.
668         * TextBoxBase.cs: When text is set bail if we are setting to the
669         previous value.
670         
671 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
672
673         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
674           It is now possible to change the selected index in a FontXXXListBox
675           with the up and down arrow keys from the FontXXXTextBoxes.
676           Also, send the FontXXXTextBox mouse wheel event to the corresponding
677           FontXXXListBoxes to match ms.
678
679 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
680
681         * SystemInformation.cs: Return a clone of the theme's MenuFont because
682         anyone can dispose it, anytime. All other properties returns enums, 
683         structs or basic types so they don't need such tricks.
684
685 2006-09-22  Jackson Harper  <jackson@ximian.com>
686
687         * XplatUI.cs:
688         * XplatUIWin32.cs:
689         * Clipboard.cs:
690         * DataFormats.cs:
691         * XplatUIOSX.cs:
692         * XplatUIDriver.cs: Update interface to add a primary selection
693         flag, so the driver can use the primary selection buffer if
694         needed.
695         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
696
697         * RichTextBox.cs: We need to supply the data object to paste now
698         (so we can choose to supply CLIPBOARD or PRIMARY).
699         * TextBoxBase.cs: Supply data object to paste (see above).
700         - Middle click uses the primary selection data object.
701         
702 2006-09-21  Chris Toshok  <toshok@ximian.com>
703
704         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
705         of SetWMStyles.  It's still a rat's nest and is largely
706         order-dependent which I dislike immensely.  This also fixes the X
707         button disappearing from toplevel forms.
708
709 2006-09-21  Mike Kestner <mkestner@novell.com>
710
711         * ListBox.cs: move Jordi's click/dblclick raising code to the
712         mouse up handler.
713
714 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
715
716         * ListBox.cs: Fixes 79450
717
718 2006-09-21  Mike Kestner <mkestner@novell.com>
719
720         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
721         to deal with people updating the TreeNodeCollection after the tree
722         is disposed.  "Fixes" 79330.
723
724 2006-09-20  Jackson Harper <jackson@ximian.com>
725
726         * TextControl.cs: Push the cursor record onto the undo stack
727         before the delete action. This fixes 78651.
728
729 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
730
731         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
732         CreateParams. Fixes 79329.
733
734 2006-09-19  Chris Toshok  <toshok@ximian.com>
735
736         * XplatUIX11.cs: a couple of blanket code massage passes to clean
737         things up a bit.  First, get rid of the NetAtoms array (and the NA
738         enum), and just embed the atoms as static fields.  Also, add a
739         couple of functions (StyleSet and ExStyleSet) to clean up all the
740         bitmask testing of styles.
741
742         * X11Structs.cs: remove the NA enum, not needed anymore.
743         
744 2006-09-19  Chris Toshok  <toshok@ximian.com>
745
746         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
747         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
748         added cleanup to get MessageBox titles appearing again, which were
749         broken by my earlier fix for caption-less/ControlBox-less windows.
750
751 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
752
753         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
754           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
755           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
756           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
757           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
758           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
759           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
760           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
761           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
762           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
763           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
764             Inital import.
765         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
766           ToolStripButton.cs: Stubs needed for above.
767         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
768
769 2006-09-15  Chris Toshok  <toshok@ximian.com>
770
771         * XplatUIX11.cs:
772         - make the MessageQueues hashtable Synchronized.
773         
774         - SendMessage: if the Hwnd is owned by a different thread, use the
775         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
776         thread.  Fixes bug #79201.
777
778 2006-09-15  Chris Toshok  <toshok@ximian.com>
779
780         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
781         ControlBox == false, we disallow maximize/minimize/close.  If the
782         form Caption is "" we also disallow move (and get rid of the Title
783         decoration).  Unfortunately, regardless of how things are set,
784         we're stuck with the Title and WM menu.
785
786 2006-09-15  Chris Toshok  <toshok@ximian.com>
787
788         * Application.cs: add locking around the static message_filters
789         ArrayList, part of #79196.
790
791 2006-09-15  Chris Toshok  <toshok@ximian.com>
792
793         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
794         Form.ControlBox == false, the window has no titlebar nor resize
795         handles.  fixes bug #79368.
796
797 2006-09-15  Chris Toshok  <toshok@ximian.com>
798
799         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
800         >= 0.  Fixes bug #79370.
801
802 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
803         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
804         * Control.cs:
805             Add properties: LayoutEngine, Margin, DefaultMargin.
806             Add method: GetPreferredSize.
807             Move layout logic from PerformLayout to layout engines. 
808
809 2006-09-13  Chris Toshok  <toshok@ximian.com>
810
811         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
812         fix for #79326 broke #78718, so this change addresses that.
813
814         - in SendWMDestroyMessages remove the call to
815         CleanupCachedWindows, since we might be recreating the control and
816         need to maintain the references to right Hwnd handles.  Also, set
817         the zombie flag to true for each of the children in the hierarchy
818         instead of calling hwnd.Dispose.  This will cause GetMessage to
819         ignore all events for the window except for DestroyNotify.
820
821         - In GetMessage, ignore messages except for DestroyNotify for
822         zombie hwnds.
823         
824         * Control.cs: revert the is_recreating fix from the last
825         ChangeLog.  It's definitely "right", but it breaks switching from
826         an MDI form to a non-MDI form.  Will need to revisit that.
827
828         * Hwnd.cs: add a zombie flag, which means "the
829         client_window/whole_window handles are invalid, but we're waiting
830         for the DestroyNotify event to come in for them".  Set the flag to
831         false explicitly if setting WholeWindow/ClientWindow, and also
832         when Disposing.
833         
834 2006-09-13  Chris Toshok  <toshok@ximian.com>
835
836         * XplatUIX11.cs: rework window destruction slightly.
837
838         - when destroying the windows associated with a control, we don't
839         need 2 separate XDestroyWindow calls.  Just the one for the
840         whole_window (or for client_window if whole_window is somehow
841         IntPtr.Zero -- can this happen?) is enough.
842
843         - reworked SendWMDestroyMessages slightly, so we always dispose
844         the child control hwnd's after sending the messages.
845         
846         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
847         the two places it was used (one was even using hwnd.Handle and the
848         other hwnd.client_window.  ugh), adding another call in
849         SendWMDestroyMessages.  We need this new call because now the
850         DestroyNotify events in the queue will be ignored for the child
851         controls (as their hwnd's were disposed, and the window id's
852         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
853
854         - this fixes bug #79326.
855
856 2006-09-13  Chris Toshok  <toshok@ximian.com>
857
858         * Control.cs: don't always set is_recreating to false at the end
859         of RecreateHandle, since sometimes we're not done (and won't be
860         until WndProc handles the WM_DESTROY message).  Also, set
861         is_recreating to false in the WM_DESTROY handling code.  Part of
862         the fix for bug #79326.
863
864 2006-09-13  Miguel de Icaza  <miguel@novell.com>
865
866         * X11DesktopColors.cs: Start the droppage of debugging messages.
867
868         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
869
870 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
871
872         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
873
874 2006-09-12  Chris Toshok  <toshok@ximian.com>
875
876         * DataGrid.cs (get_ListManager): if the list_manager is null, try
877         to create it using SetDataSource.  Fixes bug #79151.
878
879 2006-09-11  Chris Toshok  <toshok@ximian.com>
880
881         * XEventQueue.cs: add a DispatchIdle property.
882
883         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
884         either the queue is null, or the queue has DispatchIdle set to
885         true.
886         (DoEvents): set queue.DispatchIdle to false around the
887         peek/translate/dispatch message loop in this method.  This keeps
888         Application.Doevents from emitting idle events.  Part of the fix
889         for #78823.
890
891 2006-09-11  Chris Toshok  <toshok@ximian.com>
892
893         * DataGrid.cs (set_DataSource): make this work for both the
894         winforms/datagrid test and ReportBuilder.  It seems as though when
895         we've created a ListManager (or maybe it's if we have a
896         BindingContext?), when we set the DataSource it clears the
897         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
898         #79333.
899
900 2006-09-11  Chris Toshok  <toshok@ximian.com>
901
902         * XplatUIX11.cs: deal with queue being null, which happens in all
903         the Clipboard functions.  Fixes one of the two problems mentioned
904         in #78612.
905
906 2006-09-11  Chris Toshok  <toshok@ximian.com>
907
908         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
909         button on various spots (including outside the menu) works closer
910         to MS, and doesn't crash.  Fixes #79343.
911
912 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
913
914         * ListView.cs: Do not initialize item_sorter in init. To match MS,
915         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
916         and the internal comparer is set. When a new ListViewItemSorter is set,
917         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
918         was specified. No further processing is necessary if SortOrder is set
919         to it's current value. If Sorting is modified to None, and View is
920         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
921         (either custom or our internal ItemComparer) to null, on 1.0 profile
922         only set item_sorter to null if its our internal IComparer. If Sorting
923         is modified to Ascending or Descending, then use our internal IComparer
924         if none is set, and if the current IComparer is our internal one then:
925         on 2.0 profile always replace it with one for new Sorting, and on 1.0
926         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
927         Enum.IsDefined to verify whether a valid View value is specified in
928         its setter. Automatically sort listview items when listview is
929         created. In Sort, do nothing if ListView is not yet created, or if
930         no item_sorter is set (no Sorting was set, Sorting was explicitly set
931         to None or ListViewItemSorter was set to null). Added Sort overload
932         taking a bool to indicate whether the ListView should be redrawn when
933         items are sorted (we use this in ListViewItemCollection to avoid double
934         redraws). Modified our internal IComparer to take the sort order into
935         account. In Add and AddRange methods of ListViewItemCollection, also
936         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
937         view), but use overload with noredraw option to avoid double redraw.
938         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
939         true when View is Tile, and do the same when attempting to set View to
940         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
941         for selected/checked indices, as it involves overhead when sorting is
942         done while these collections are not used all that often. Instead
943         we'll build the indices on demand. Modified IList implementation of
944         CheckedIndexCollection to use public methods if object is int.
945         Modified CheckedListViewItemCollection to hide checked items if
946         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
947         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
948         IList implementation in SelectedIndexCollection to use public methods
949         if object is int. Modified SelectedListViewItemCollection to hide
950         selected items if listview is not yet created.
951         * ListViewItem.cs: CheckedIndices list no longer needs to be
952         maintained separately (see ListView changes). Also clone font, fixes
953         test failure.
954
955 2006-09-11  Mike Kestner  <mkestner@novell.com>
956
957         * ComboBox.cs: if we are updating the contents of the currently
958         selected index, refresh the control or the textbox selection.
959         [Fixes #79066]
960
961 2006-09-11  Mike Kestner  <mkestner@novell.com>
962
963         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
964         the 'specified' logic has been moved there.  This seems like a bug 
965         in Control.cs, since our current SetBoundsCore completely ignores 
966         the specified parameter.  Peter's commit seems to indicate that is 
967         the way the MS control implementation works.  [Fixes #79325]
968
969 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
970
971         * XplatUI.cs: Set default_class_name to be composed
972         of current domain id. This allows MWF to be loaded in multiple
973         domains on Win32.
974
975 2006-09-09  Miguel de Icaza  <miguel@novell.com>
976
977         * X11Keyboard.cs: If we are unable to obtain the input method, do
978         not call CreateXic to create the input context.   Should fix
979         #78944/79276.
980
981 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
982
983         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
984           Simplified gnome support by adding more pinvokes to get the
985           icon for a file or mime type.
986
987 2006-09-08  Jackson Harper  <jackson@ximian.com>
988
989         * MenuAPI.cs: Deslect popup context menu items before closing the
990         window, so that you don't see the previously selected item
991         selected when you reopen the menu.
992         * TextControl.cs: Update the cursor position even if we don't have
993         focus.  This fixes typing in things like the ComboBox.  I'm not
994         totally sure we should always set the visibility if we don't have
995         focus, but couldn't find any corner cases where the cursor showed
996         up when it shouldn't.
997
998 2006-09-08  Chris Toshok  <toshok@ximian.com>
999
1000         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
1001         our arrays are length 256.  & 0xff before indexing.  Fixes the
1002         crash in bug #78077.
1003         
1004 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1005
1006         * ThemeWin32Classic.cs: 
1007         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
1008         is true. Handle that check box too.
1009
1010 2006-09-07  Chris Toshok  <toshok@ximian.com>
1011
1012         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
1013         79244.
1014
1015 2006-09-07  Chris Toshok  <toshok@ximian.com>
1016
1017         * Control.cs: in set_BackColor only do the work if
1018         background_color != value.
1019
1020         * XplatUIX11.cs: move the clearing of invalid areas (both client
1021         and nc) to the same block of code where we set (nc_)expose_pending
1022         to false.  That is, move it from PaintEventEnd to PaintEventStart,
1023         so things that cause invalidates from within OnPaint will trigger
1024         another call to OnPaint.  Fixes bug #79262.
1025
1026 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
1027
1028         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
1029         * FileDialog.cs: Fix typo
1030
1031 2006-09-07  Jackson Harper  <jackson@ximian.com>
1032
1033         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
1034         for tab pages if they have any.
1035
1036 2006-09-06  Mike Kestner  <mkestner@novell.com>
1037
1038         * Splitter.cs: use the "current" rect when finishing drag handle
1039         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
1040
1041 2006-09-06  Mike Kestner  <mkestner@novell.com>
1042
1043         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
1044         support offset splitters. [Fixes #79298]
1045
1046 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
1047
1048         * Mime.cs: Fixed a bug that could override the global mime type
1049           result.
1050
1051 2006-09-05  Jackson Harper  <jackson@ximian.com>
1052
1053         * TabControl.cs: Better calculation method for setting the slider
1054         pos. Prevents crashes on really wide tabs.
1055         - Draw Image on tab pages if an image list is used.
1056
1057 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1058
1059         * MonthCalendar.cs: When Font changes, the Size should be
1060         updated to fit the new font's space requirements.
1061
1062 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
1063
1064         * ListBox.cs: If the items are cleared with Items.Clear set
1065           top_index to 0.
1066
1067 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1068
1069         * MonthCalendar.cs: Handle arrow keys as input keys. Also
1070         fire DateChanged event instead of DateSelected event when
1071         the date was changed by keyboard interaction.
1072
1073 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1074
1075         * DateTimePicker.cs: Handle DateChanged for the associated
1076         month_calendar control, and set month_calendar.Font from 
1077         OnFontChanged method, as well as resize the height of the
1078         control when needed. Make PreferredHeight proportional.
1079
1080 2006-09-01  Chris Toshok  <toshok@ximian.com>
1081
1082         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
1083         properties.
1084
1085         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
1086
1087 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
1088
1089         * FileDialog.cs: Set ClientSize instead of window size, to allow space
1090           for decorations (Fixes #79219)
1091
1092 2006-09-01  Mike Kestner  <mkestner@novell.com>
1093
1094         * ComboBox.cs: first stab at sorting plus some selection handling
1095         fixes to bring us more in line with MS behavior.  Also switches back
1096         to index based selection.  Alternative patches for index-based 
1097         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
1098         and latency@gmx.de on bug 78848.  I assume they were similar to this
1099         code I've had simmering in my tree forever.
1100         [Fixes #78848]
1101
1102 2006-09-01  Chris Toshok  <toshok@ximian.com>
1103
1104         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
1105         when setting list position guard against ending up with a -1 index
1106         (the other part of the fix for #78812).  Should probably make sure
1107         we don't need the analogous fix in the ItemDeleted case.
1108
1109         * DataGrid.cs:
1110         - in SetDataSource, work around the fact that the way
1111         OnBindingContextChanged is invoked will cause us to re-enter this
1112         method.  I'll remove the hack once I investigate
1113         OnBindingContextChanged.
1114
1115         - fix the logic in set_DataSource and set_DataMember (basically
1116         what to do if the other of the two is null.)
1117         
1118         - in OnListManagerItemChanged, we need to take into account the
1119         edit row when deciding whether or not to call RecreateDataGridRows
1120         (part of the fix for #78812).
1121
1122 2006-09-01  Jackson Harper  <jackson@ximian.com>
1123
1124         * Splitter.cs: Don't do anything if there is no control to affect
1125         (prevents us from crashing in weird tet cases).
1126         * TreeView.cs: Bounding box for the mouse movement reverting
1127         focus/selection back to previously selected node.  This matches
1128         MS, and makes the tree a lot more useable.
1129         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
1130         use clipping so they are not drawn.  This fixes when the control
1131         is set to have a transparent background, or if it was over an
1132         image.
1133
1134 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
1135
1136         * MimeIcon.cs: Improved handling for reading default icons when
1137           using gnome (2.16 made it necessary). Check and read svg icons
1138           first, then 48x48 and then 32x32 icons.
1139
1140 2006-08-31  Chris Toshok  <toshok@ximian.com>
1141
1142         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
1143         visible.
1144
1145         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
1146         ProcessKeyPreview.  Fixes part of #77806.
1147
1148         * DataGrid.cs: big patch.
1149
1150         - revert the queueing up of DataSource/DataMember if inside
1151         BeginInit/EndInit calls.  That's not the way the datagrid achieves
1152         its delayed databinding.  Instead, call SetDataSource in
1153         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
1154         #78811.
1155
1156         - Also, it wasn't mentioned in #78811, but the test case exhibits
1157         behavior that was lacking in our datagrid implementation - Columns
1158         that have mapping names that don't exist in the datasource's
1159         properties aren't shown.  Yuck.  To fix this I added the bound
1160         field to the column style, and basically any calculation to figure
1161         out anything about columns uses a loop to find the bound columns.
1162         still need to investigate if I can cache an array of the bound
1163         columns or if the indices must be the same.
1164
1165         - When setting CurrentCell, we no longer abort if the cell being
1166         edited was in the add row.  This fixes the other part of #77806.
1167
1168         - The new code also fixes #78807.
1169         
1170         * ThemeWin32Classic.cs: perpetrate the same disgusting
1171         column.bound field hack, and only render bound fields.
1172
1173 2006-08-31  Chris Toshok  <toshok@ximian.com>
1174
1175         * DataGridColumnStyle.cs: add bound field.  this field is true if
1176         the datasource has a property corresponding to the mapping name.
1177
1178         * DataGridTableStyle.cs: set the bound field on the column styles
1179         depending on whether or not we have a column for that property.
1180
1181 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
1182
1183         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
1184           splitter control (fixes #79228)
1185
1186 2006-08-31  Chris Toshok  <toshok@ximian.com>
1187
1188         * DataGridColumnStyle.cs: we need to delay the assignment of
1189         property descriptor until the last possible moment due to the lazy
1190         databinding stuff in the datagrid.  Also, fix the exceptions
1191         thrown by CheckValidDataSource to match MS.
1192
1193 2006-08-31  Jackson Harper  <jackson@ximian.com>
1194
1195         * Form.cs: When activated select the active control, if there is
1196         no active control, we select the first control.
1197         * XplatUIX11.cs: If there is no focus control when we get a
1198         FocusIn event, find the toplevel form and activate it.  This
1199         occurs when you popup a window, it becomes the focus window, then
1200         you close that window, giving focus back to the main window.
1201
1202 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1203
1204         * MonthCalendar.cs: 
1205         * ThemeWin32Classic.cs: Cache Font in bold style, as well
1206         as StringFormat with Center alignments in MonthCalendar,
1207         instead of creating new ones when drawing the control. 
1208         Also, draw the month name in bold style.
1209
1210 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
1211
1212         * Control.cs:
1213           - PerformLayout(): It would seem MS performs the fill even if the 
1214             control is not visible (part of #79218 fix)
1215           - ResetBackColor(): Use the setter to reset the color, to allow
1216             overriders to catch the change.
1217         * Form.cs:
1218           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
1219           - CreateHandle(): dito (part of $79218 fix)
1220           - Don't set an icon if we have a dialog
1221         * ScrollableControl.cs:
1222           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
1223           - ScrollIntoView(): No need to scroll if control is already visible
1224             (resolves fixme and fixes #79218)
1225
1226 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1227
1228         * MonthCalendar.cs: Change proportions in SingleMonthSize
1229         to match the aspect of the original control.
1230
1231 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
1232
1233         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
1234           get updated when they get maximized.
1235
1236 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
1237
1238         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
1239
1240 2006-08-29  Chris Toshok  <toshok@ximian.com>
1241
1242         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1243
1244 2006-08-29  Jackson Harper  <jackson@ximian.com>
1245
1246         * TreeView.cs: Need to track selected node and highlighted node,
1247         they aren't always the same thing, when the mouse is down on a
1248         node it is hilighted, but not selected yet.
1249         - Do the HideSelection stuff right
1250         - Need to focus on rbutton mouse down. And redraw selection when
1251         right click is mouse upped.
1252
1253 2006-08-29  Mike Kestner  <mkestner@novell.com>
1254
1255         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1256         when SubItems.Count < Columns.Count.  [Fixes #79167]
1257
1258 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
1259
1260         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1261
1262 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
1263
1264         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1265           from X. Only send based on ConfigureNotify if we don't have the
1266           correct location in hwnd (if the window manager moved us)
1267
1268 2006-08-28  Mike Kestner  <mkestner@novell.com>
1269
1270         * ListView.cs: remove a TODO. 
1271         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1272         [Fixes ListView part of #79166]
1273
1274 2006-08-28  Mike Kestner  <mkestner@novell.com>
1275
1276         * ListView.cs: move wheel handler to parent since it is focused
1277         instead of the item_control now.  [Fixes #79177]
1278
1279 2006-08-28  Mike Kestner  <mkestner@novell.com>
1280
1281         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1282         when the control is focused. [Fixes #79171]
1283
1284 2006-08-28  Mike Kestner  <mkestner@novell.com>
1285
1286         * ListView.cs: size the item and header controls for empty and
1287         unscrollable views.
1288         * ThemeWin32Classic.cs: draw disabled backgrounds.
1289         [Fixes #79187]
1290
1291 2006-08-28  Chris Toshok  <toshok@ximian.com>
1292
1293         * Form.cs: remove unused "active_form" static field.
1294
1295         * Hwnd.cs: lock around accesses to static windows collection.
1296
1297         * Application.cs: lock threads in Exit ().
1298
1299 2006-08-28  Chris Toshok  <toshok@ximian.com>
1300
1301         * NativeWindow.cs: lock around accesses to window_collection.
1302         
1303 2006-08-28  Chris Toshok  <toshok@ximian.com>
1304
1305         * Control.cs: err, fix this the right way, by locking on controls
1306         when using it.  not by making it synchronized.
1307
1308 2006-08-28  Chris Toshok  <toshok@ximian.com>
1309
1310         * Control.cs: make the static "controls" field synchronized, as it
1311         gets updated from multiple threads.
1312
1313 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1314
1315         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
1316           Prevent other threads from exiting when calling thread sets quit state.
1317         * XEventQueue.cs: Added PostQuitState property
1318
1319 2006-08-27  Chris Toshok  <toshok@ximian.com>
1320
1321         * AsyncMethodData.cs: add a slot for the window handle.
1322
1323         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
1324         window (the destination control's window, not the foster window).
1325
1326         * Control.cs (BeginInvokeInternal): store the window's handle in
1327         the AsyncMethodData.
1328         
1329
1330 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1331
1332         * XplatUIX11.cs:
1333           - PostQuitMessage: Removed resetting S.D display handle, we might have
1334             another loop started after calling PostQuitMessage (Fixes #79119)
1335           - Created destructor to reset S.D handle
1336
1337 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
1338
1339         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
1340
1341 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1342
1343         * TextControl.cs (Insert): Update the caret position even if we don't
1344           have a handle yet, just don't call the driver in that case.
1345         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
1346           to the end of the new selection text (Fixes #79184)
1347
1348 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1349
1350         * Form.cs (Activate): Only activate if the handle is created)
1351         * Control.c:
1352           - Mark window as invisible when it's disposed
1353           - Check if window handle is created when setting window visible, 
1354             instead of relying just on the is_created variable
1355           - Check if object is disposed when creating the control (Fixes #79155)
1356
1357 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1358
1359         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
1360           when allowing layout again. Otherwise we re-generate the anchoring 
1361           distance to the border again and actually alter what the user wanted
1362           This is ugly, it'd be better if we used DisplayRectangle instead of
1363           ClientRectangle for Control.UpdateDistances, but that causes us to
1364           have other problems (initial anchoring positons would be wrong)
1365           (Fixes #78835)
1366
1367 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1368
1369         * Control.cs:
1370           - The size and location setters shouldn't go directly to 
1371             SetBoundsCore, but to SetBounds, which triggers layout on the
1372             parent, then calls SetBoundsCore. (Related to fix for #78835)
1373           - SetBounds: Moved actual location update code into this function
1374             from SetBoundsCore, to match MS. Added call to PerformLayout if
1375             we have a parent (to trigger resizing of anchored parents if the 
1376             child size has changed (see testcase for #78835) 
1377         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
1378           new control code
1379         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
1380
1381 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1382
1383         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
1384           System.Drawing when a toplevel window gets closed; there might
1385           be other toplevel windows belonging to the same app (Fixes #78052)
1386
1387 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
1388
1389         * FileDialog.cs: After reading FileDialog settings from mwf_config
1390           use Desktop prefix only if a real folder doesn't exist anymore.
1391         * FontDialog.cs: Added char sets.
1392           It is now possible to select the font, size or style with the
1393           textboxes.
1394
1395 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
1396
1397         * PrintPreviewDialog.cs: Use assembly name constants.
1398
1399 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1400
1401         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
1402           scrollbar from whacking it's buttons)
1403
1404 2006-08-24  Chris Toshok  <toshok@ximian.com>
1405
1406         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
1407         in this patch (aggregating setting Left/Top/Width/Height to
1408         setting Bounds on the scrollbars), but the crux of the fix is in
1409         Recalculate, where we scroll by the remaining scroll_position if
1410         we're hiding a scrollbar.  The 2*$5 reward in the comment is
1411         serious.
1412
1413 2006-08-24  Jackson Harper  <jackson@ximian.com>
1414
1415         * MdiClient.cs:
1416         * MdiWindowManager.cs: If the form is made a non-mdi window we
1417         need to remove the form closed event so that closing forms works
1418         correctly.
1419
1420 2006-08-24  Jackson Harper  <jackson@ximian.com>
1421
1422         * Control.cs: Make IsRecreating internal so that the driver can
1423         check it
1424         - Temporarily remove the Hide when controls are removed, its
1425         making a whole bunch of things not work because visibility isn't
1426         getting reset elsewhere correctly
1427         * Form.cs: Need to do a full handle recreation when the mdi parent
1428         is set.
1429         * XplatUIX11.cs: If we are recreating handles don't dispose the
1430         HWNDs.  What was happening is the handles were being recreated in
1431         SendWMDestroyMessages, but then flow continued on in that method
1432         and destroyed the new handles.
1433
1434 2006-08-23  Jackson Harper  <jackson@ximian.com>
1435
1436         * Form.cs: MdiClient is always at the back of the bus
1437         * Control.cs: When the order of items in the collection is changed
1438         we need to reset the all_controls array
1439         - do the same sorta setup thats done when adding a control when a
1440         control is set on the collection.
1441
1442 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1443
1444         * TextBoxBase.cs (get_Text): Return an empty array if our document
1445           is empty (fixes #79052)
1446
1447 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1448
1449         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
1450           on WM_SYSCHAR messages (fixes #79053)
1451
1452 2006-08-23  Chris Toshok  <toshok@ximian.com>
1453
1454         * DataGrid.cs: fix flickering when scrolling vertically.
1455
1456 2006-08-23  Chris Toshok  <toshok@ximian.com>
1457
1458         * DataGrid.cs (EndEdit): only invalidate the row header when we
1459         need to.
1460
1461 2006-08-23  Chris Toshok  <toshok@ximian.com>
1462
1463         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
1464         methods.  fixes the flicker when scrolling around.
1465
1466 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1467
1468         * FileDialog.cs: Making sure the control is created before we get a 
1469           chance to use it with BeginInvoke (Fixes #79096)
1470
1471 2006-08-23  Chris Toshok  <toshok@ximian.com>
1472
1473         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
1474         width to use when painting the rows.
1475
1476 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1477
1478         * TextBoxBase.cs:
1479           - Throw ArgumentException if a negative value is passed to SelectionLength
1480           - Update the selection end if start is moved. end needs to be always
1481             after start. (Fixes #79095)
1482           - Track selection length; MS keeps the selection length even if start
1483             is changed; reset on all other operations affection selection
1484
1485 2006-08-22  Jackson Harper  <jackson@ximian.com>
1486
1487         * TreeView.cs: Make sure both scrollbars get displayed and sized
1488         correctly when the other bar is visible.
1489         - Use the original clip rectangle for checking if the area between
1490         the two scrollbars is visible, not the viewport adjusted clipping
1491         rectangle.
1492
1493 2006-08-22  Jackson Harper  <jackson@ximian.com>
1494
1495         * Binding.cs: We don't use IsBinding because it requires the
1496         control to be created, which really shouldn't be necessary just to
1497         set a property on the control.
1498
1499 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500
1501         * ComboBox.cs: Some CB.ObjectCollection methods must throw
1502         ArgumentNullReferenceException when the argument is null.
1503
1504 2006-08-21  Jackson Harper  <jackson@ximian.com>
1505
1506         * Timer.cs: Track the thread that the timer is started in (NOT
1507         CREATED), this way messages for it will only be triggered on its
1508         queue.
1509         * XEventQueue.cs: Track the timers here, this makes timers per
1510         thread, like MS.
1511         * XplatUIX11.cs: The timers are moved to the XEventQueue.
1512
1513 2006-08-19  Chris Toshok  <toshok@ximian.com>
1514
1515         * XplatUIX11.cs: after further communication with pdb, we get the
1516         best of both worlds.  SetZOrder working for un-Mapped windows, and
1517         no X errors for un-mapped windows.
1518
1519 2006-08-19  Chris Toshok  <toshok@ximian.com>
1520
1521         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1522         as it was causing pdn toolbars to not have the correct stacking.
1523
1524 2006-08-18  Mike Kestner  <mkestner@novell.com> 
1525
1526         * ListView.cs : guard against negative ClientArea.Width in scrollbar
1527         calculation.  Not sure why control should ever be setting a negative
1528         width though.  Fixes #78931.
1529
1530 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1531
1532         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1533         null items in ObjectCollection class.
1534         * ListBox.cs.: Likewise.
1535
1536 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
1537
1538         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1539           as the base method in ThemeWin32Classic should work fine.
1540           Fixed bug #78607.
1541
1542 2006-08-18  Jackson Harper  <jackson@ximian.com>
1543
1544         * Binding.cs: When validating if the value entered doesn't convert
1545         properly reset to the old value.
1546         * RadioButton.cs: Don't fire click when we get focus.
1547
1548 2006-08-18  Jackson Harper  <jackson@ximian.com>
1549
1550         * FileDialog.cs: Paint the selection on the directory combobox the
1551         same way as on MS. 
1552
1553 2006-08-17  Jackson Harper  <jackson@ximian.com>
1554
1555         * ErrorProvider.cs: Don't allow the error control to be selected.
1556         * Control.cs: Don't send the SetFocus messages, the control
1557         activation will do this, and if we do it blindly here validation
1558         does not work.
1559
1560 2006-08-17  Jackson Harper  <jackson@ximian.com>
1561
1562         * Control.cs:
1563         * ContainerControl.cs: Make validation events fire in the correct
1564         order.  TODO: For some reason the first validation event is not
1565         getting fired.
1566
1567 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1568
1569         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
1570
1571 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1572
1573         * ComboBox.cs : implement scroll wheel support for popped-down
1574         state. Fixes #78945. 
1575
1576 2006-08-17  Jackson Harper  <jackson@ximian.com>
1577
1578         * TreeView.cs: Specify treeview actions (old patch that didn't get
1579         committed for some reason).
1580         - Don't let the mouse wheel scroll us too far.  Just want to make
1581         the bottom node visible, not scroll it all the ways to the top.
1582
1583 2006-08-17  Jackson Harper  <jackson@ximian.com>
1584
1585         * XplatUIX11.cs: Mouse wheel events go to the focused window.
1586
1587 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1588
1589         * ComboBox.cs : don't do mouseover selection in simple mode.
1590
1591 2006-08-16  Jackson Harper  <jackson@ximian.com>
1592
1593         * Form.cs: Fire the closing events for all the mdi child windows
1594         when a window is closed.  If the cancel args are set to true, the
1595         main window still gets the event fired, but it doesn't not close.
1596         * MdiWindowManager.cs: Do this closing cleanup in a Closed
1597         handler, instead of when the button is clicked, so cancelling the
1598         close works correctly.
1599         * ComboBox.cs: Send the mouse down to the scrollbar.
1600
1601 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1602
1603         * ListBox.cs: When passing 'null' to SelectedItem,
1604         set SelectedIndex to -1, to unselect items. This is the
1605         observed behaviour in .Net.
1606
1607 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
1608
1609         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
1610           MS flags saying there won't be any. (fixes #78800)
1611         * Control.cs (HandleClick): Made virtual
1612
1613 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
1614
1615         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
1616           cultures. Fixed bug #78399.
1617
1618 2006-08-16  Jackson Harper  <jackson@ximian.com>
1619
1620         * Form.cs: Use the MdiClients MdiChildren property to access
1621         MdiChildren instead of creating the array from the child controls.
1622         * MdiClient.cs: Maintain a separate array of the mdi children, so
1623         that insertion order is maintained when the Z-order is changed.
1624
1625 2006-08-16  Mike Kestner  <mkestner@novell.com> 
1626
1627         * ListView.cs : add an ItemComparer and default to it for sorting.
1628         Fixes #79076, but sorting needs a complete overhaul to be compat with
1629         MS.
1630
1631 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1632
1633         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
1634
1635 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1636
1637         * Hwnd.cs (Mapped): Properly traverse the tree
1638
1639 2006-08-15  Chris Toshok  <toshok@ximian.com>
1640
1641         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
1642         pass manager.Current.GetType() to ParseData.  It has to be the
1643         property type.  So, hold off doing the ParseData until we're in
1644         SetPropertyValue where we know the type.  This fixes the crash in
1645         #78821 but the textbox is still empty.
1646
1647 2006-08-15  Chris Toshok  <toshok@ximian.com>
1648
1649         * DataGrid.cs:
1650         - when we're scrolling, only call Edit() again if the
1651         current cell is still unobscured. Fixes bug #78927.
1652         - when handling mousedown on a cell, ensure the cell is visible
1653         before calling Edit.
1654         - remove the properties from DataGridRow, and remove the
1655         DataGridParentRow class altogether.
1656         
1657
1658 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1659
1660         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
1661           fire OnTextChanged by ourselves. There's no point calling base,
1662           we don't set the base value anywhere else. Fixes #78773.
1663
1664 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1665
1666         * ListBox.cs: Call CollectionChanged when modifying
1667         an item from Items indexer, to update the actual items
1668         in the list box.
1669
1670 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1671
1672         * PrintDialog.cs: Small fixes for focus and a pair of checks,
1673         to match .Net behaviour.
1674
1675 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1676
1677         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
1678
1679 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1680
1681         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
1682
1683 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1684
1685         * MessageBox.cs: Prevent potential NRE exception.
1686         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
1687
1688 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1689
1690         * MessageBox.cs: Calculate the owner of a messagebox, also make
1691           it topmost. Fixes #78753
1692
1693 2006-08-14  Chris Toshok  <toshok@ximian.com>
1694
1695         * XplatUIX11.cs: A couple of fixes so that metacity will let us
1696         programmatically move windows.  first, set the PPosition hint as
1697         well as the USPosition hint.  Second include some code from pdb
1698         that sets the window type to NORMAL when we set the transient for
1699         hint.  This is because, in the absence of a window type, metacity
1700         thinks any window with TransientFor set is a dialog, and refuses
1701         to let us move it programmatically.  fascists.
1702
1703 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1704
1705         * XplatUIX11.cs: When setting normal hints, take into consideration
1706           an different hints previously set so we don't delete them (fixes #78866)
1707
1708 2006-08-12  Chris Toshok  <toshok@ximian.com>
1709
1710         * ToolBarButton.cs: make Layout return a boolean, if something to
1711         do with the button's layout changed.
1712
1713         * ToolBar.cs:
1714         - add another parameter to Redraw, @force, which all existing
1715           calls set to true.
1716         - make the Layout function return a boolean which is true if the
1717           layout has actually changed.  Redraw now uses this (and @force)
1718           to determine when to invalidate.  At present the only place
1719           where @force can be false is the call from OnResize, when
1720           background_image == null.  So, resizing a toolbar when the
1721           layout doesn't change results in no drawing.
1722
1723 2006-08-12  Chris Toshok  <toshok@ximian.com>
1724
1725         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
1726         the VScrollBar and HScrollbar reversed.  oops.
1727
1728         * DataGrid.cs: fix the logic that assigns sizes to the implicit
1729         scrollbars.  we were assigning them twice (once in
1730         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
1731         therefore causing two scrollbar resizes (and redraws?) to happen
1732         per grid resize.
1733
1734 2006-08-12  Chris Toshok  <toshok@ximian.com>
1735
1736         * ToolBarButton.cs: redraw the entire button if the theme tells us
1737         to.
1738
1739         * Theme.cs: add ToolBarInvalidateEntireButton.
1740
1741         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
1742         buttons, just the border.
1743
1744         * ThemeNice.cs: redraw the entire toolbar button since we need to
1745         draw the highlight image.
1746
1747         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
1748         we need to redraw the entire button (not just the border).
1749
1750 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1751
1752         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
1753           for vertical bars. Fixes the mismatches shown by #78513
1754
1755 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
1756
1757         * FileDialog.cs: If a saved/remembered path doesn't exist
1758           anymore, fall back to "Desktop".
1759
1760 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1761
1762         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
1763           parent. It's apparently legal to not have one
1764         * XplatUIX11.cs:
1765           - SetZOrder: Don't try to set Z-Order on an unmapped window
1766           - CreateWindow: 0,0 are legal coordinates for a window. don't move
1767             it unless the coordinates are negative
1768
1769 2006-08-10  Mike Kestner  <mkestner@novell.com>
1770
1771         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
1772         when setting to null per msdn docs.  Fixes #78854.
1773
1774 2006-08-10  Chris Toshok  <toshok@ximian.com>
1775
1776         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1777         flickering by setting a clip rectangle on the Graphics when we
1778         need to redraw just a particular menuitem.  Also, rename "OnClick"
1779         to "OnMouseDown" to reflect what it actually is.
1780         
1781         * Form.cs: track the OnMouseDown change.
1782
1783 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
1784
1785         * CommonDialog.cs: Properly inherit the CreateParams from the form
1786           and only change what we need. Fixes #78865
1787
1788 2006-08-10  Chris Toshok  <toshok@ximian.com>
1789
1790         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1791         flickering in flat mode (and most of the flickering in general) by
1792         only invalidating the button border (and not the entire rectangle)
1793         when the state changes.  A couple of cases still flicker:
1794         ToggleButtons, and the dropdown arrow case when the user mouse
1795         ups.
1796
1797 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
1798
1799         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1800           for german keyboards. Numlock state shouldn't affect the behaviour
1801           of the Del key. Fixes bug #78291.
1802
1803 2006-08-10  Chris Toshok  <toshok@ximian.com>
1804
1805         * ListControl.cs: remove the items.Clear line from BindDataItems,
1806         as this is the first thing done by both subclasses in their
1807         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
1808         passed -1, refresh the list.  This gets databinding working when
1809         the datasource is set on the list before the datasource is
1810         populated (as in wf-apps/ReportBuilder.)
1811
1812         * ComboBox.cs: remove the argument to BindDataItems.  This call
1813         should really go away, and be initiated by the ListControl code.
1814
1815         * ListBox.cs: same.
1816
1817 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1818
1819         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1820           if no data is in the document when the control is displayed
1821
1822 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
1823
1824         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1825           yes (fixes #78806)
1826         * TextControl.cs: 
1827           - PositionCaret: Allow positioning of caret but don't call methods 
1828             requiring a handle if the window isn't created yet
1829           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1830           - owner_HandleCreated: Don't position the caret, just update it's 
1831             location. User might have already set a different position
1832
1833 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1834
1835         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1836           windows. Screws up the returned coordinates for child windows. 
1837           Fixes #78825. I'm hoping this doesn't break something, since the
1838           code was explicitly put in 8 months ago, but no bug was attached.
1839           Menus still seem to work properly.
1840
1841 2006-08-08  Chris Toshok  <toshok@ximian.com>
1842
1843         * DataGrid.cs: make BeginInit/EndInit actually do what they're
1844         supposed to do - delay data binding until the EndInit call.  Also,
1845         make the table style collection's CollectionChangeAction.Refresh
1846         work properly.
1847
1848         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1849         (with action = Refresh) when a consituent table's MappingName is
1850         changed.
1851
1852 2006-08-08  Chris Toshok  <toshok@ximian.com>
1853
1854         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1855         Invalidate, since changing the text can change the size of the all
1856         toolbar buttons.
1857
1858 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1859
1860         * Form.cs (AddOwnedForm): Still need to add the form to our listif
1861           we don't have it yet
1862
1863 2006-08-08  Chris Toshok  <toshok@ximian.com>
1864
1865         * PrintControllerWithStatusDialog.cs: don't .Close() the status
1866         dialog, as this causes X errors later on, since we actually
1867         destroy the window.  Instead, .Hide() it.
1868
1869 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1870
1871         * ComboBox.cs: Added focus reflection for popup window
1872         * XplatUIX11.cs: 
1873           - Removed transient setting for non-app windows for now, not sure it
1874             was needed
1875           - Fixed logic checking if we have captions when deciding 
1876             override_redirect, WS_CAPTION is two bits and a 0 check was not
1877             sufficient
1878           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1879             complicated
1880         * Form.cs: 
1881           - AddOwnedForm: Don't just add the form to the list, call the property
1882             to ensure the driver is informed about the ownership as well
1883           - CreateHandle: Set the TopMost status in the driver if we have an owner
1884         * XplatUI.cs: Fixed debug statement
1885
1886 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
1887         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1888           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1889           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
1890           TrackBarRenderer.cs: Make constructor private.
1891         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1892         * ProfessionalColorTable.cs: Make properties virtual.
1893
1894 2006-08-06  Duncan Mak  <duncan@novell.com>
1895
1896         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1897         is not changing.
1898
1899 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1900         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1901           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1902           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1903           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1904           Initial import of new 2.0 classes.
1905
1906 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1907         * Application.cs: Add 2.0 VisualStyles properties.
1908
1909 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1910         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1911           XplatUIX11.cs: Create property to allow access to existing private
1912           variable "themes_enabled"
1913
1914 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1915
1916         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1917         file size, as otherwise our class libraries fail using windows. Fixes
1918         bug #78759.
1919
1920 2006-08-04  Jackson Harper  <jackson@ximian.com>
1921
1922         * Form.cs:
1923         * XplatUIX11.cs: Move the toolwindow window manager creation into
1924         the X11 driver, this way on win32 we can let windows create/handle
1925         the toolwindows.
1926
1927 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1928
1929         * PrintDialog.cs: Remove some redundant checks, add some others,
1930         clean some code, and move the focus to the text boxes when the
1931         values are incorrect.
1932
1933 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
1934
1935         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1936
1937 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1938
1939         * NumericUpDown.cs: Setting the Minimum and Maximum is now
1940           handled correctly. Fixes bug #79001.
1941
1942 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943
1944         * PrintDialog.cs: The "Copies" numeric up down must have
1945         set the Minimum property to 1; only if the value is bigger
1946         than 1, activate "Collate" check box. This is the behaviour of .Net.
1947         Also modify the Document elements only if it is not null.
1948
1949 2006-08-03  Jackson Harper  <jackson@ximian.com>
1950
1951         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1952         length. (We have a larger array then actual node count).
1953                 
1954 2006-08-03  Jackson Harper  <jackson@ximian.com>
1955
1956         * ComboBox.cs: Don't show selection by default.
1957         - The SelectAll isn't needed here, since the focus code should do
1958         that
1959         - DDL style lists to manual selection drawing, so when they
1960         get/lose focus they have to invalidate.
1961
1962 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
1963
1964         * TextBoxBase.cs: Don't always show all selections by default.
1965
1966 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
1967         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1968           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1969           Fixed various typos.
1970
1971 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1972
1973         * Control.cs: Removing the controls in a ControlCollection with
1974           Clear now hides the controls as expected. Fixes bug #78804. 
1975
1976 2006-08-03  Jackson Harper  <jackson@ximian.com>
1977
1978         * Control.cs: Revert previous focus patch, it breaks reflector.
1979
1980 2006-08-03  Jackson Harper  <jackson@ximian.com>
1981
1982         * ComboBox.cs: Cleanup selection and focus with the combobox.
1983         This also eliminates some duplicated keyboard code, since now
1984         everything is handled by the main class.
1985         - Make list selection work on mouse up instead of down, to match
1986         MS.
1987
1988 2006-08-02  Jackson Harper  <jackson@ximian.com>
1989
1990         * Control.cs: Setting focus needs to go through the whole
1991         selection mechanism.
1992
1993 2006-08-02  Chris Toshok  <toshok@ximian.com>
1994
1995         * PrintPreviewDialog.cs: change MinimumSize to use
1996         base.MinimumSize so it works.
1997
1998 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
1999
2000         * TextControl.cs:
2001           - UpdateCaret: Added sanity check in case caret isn't defined yet
2002           - Line.Delete: Now updating selection and caret markers if we're
2003             transfering a node (Properly fixes #78323)
2004           - SetSelectionEnd: Added sanity check
2005         * TextBoxBase.cs: Removed broken attempt to fix #78323
2006
2007 2006-08-01  Chris Toshok  <toshok@ximian.com>
2008
2009         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
2010         Close() call is handled in Form, not here.
2011
2012 2006-08-01  Chris Toshok  <toshok@ximian.com>
2013
2014         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
2015         layout/rendering.
2016
2017         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
2018         for sizes < 100% zoom.  The code now aggressively attempts to keep
2019         from calling document.Print (), and tries not to use the scaling
2020         g.DrawImage whenever possible (it still does if you scale to >
2021         100%, since usually that involves huge images).
2022
2023         * PrintPreviewControl.cs: hook up the close button.
2024
2025 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
2026         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
2027           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
2028           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
2029           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
2030           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
2031           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
2032           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
2033           Removed [Serializable] for 2.0 Event Handlers.
2034
2035 2006-07-31  Jackson Harper  <jackson@ximian.com>
2036
2037         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
2038         * TextControl.cs: Uncomment out the body of this method.
2039
2040 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
2041
2042         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
2043           standard cursors.
2044
2045 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2046
2047         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
2048           that embed TextBox and need selections visible even if textbox is not
2049           focused to enforce that behaviour.
2050         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
2051           selection drawing
2052
2053 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2054
2055         * TextControl.cs:
2056           - Added new SetSelectionStart/SetSelectionEnd overloads
2057           - Fixed viewport width assignment to be accurate
2058           - Adjusted alignment line shift calculations to allow cursor on right
2059             aligned lines to be always visible at the right border (like MS)
2060         * TextBoxBase.cs:
2061           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
2062           - TextBoxBase_SizeChanged: recalculating canvas on size changes
2063           - CalculateScrollBars: Use ViewPort size instead of window size, to
2064             properly consider space occupied by the border and scrollbars 
2065             (Fixes #78661)
2066           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
2067             calculations; no longer leaves artifacts
2068           - CaretMoved: Adjusted window scrolling to match MS and fixed several
2069             calculation bugs (Still missing right/center align calculations)
2070
2071 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
2072
2073         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
2074           use of both scroll rect and clip rect, as they do the same.
2075
2076 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2077
2078         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
2079           in the event handler (fixes #78912)
2080
2081 2006-07-31  Chris Toshok  <toshok@ximian.com>
2082
2083         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
2084         grid.ListManager.Count, since grid.ListManager might be null.
2085         This of course begs the question "why are we drawing rows for a
2086         grid with no list manager (and therefor no rows)?"  Fixes the
2087         crash in bug #78929.
2088
2089 2006-07-31  Chris Toshok  <toshok@ximian.com>
2090
2091         * RelatedPropertyManager.cs: Don't always chain up to the parent
2092         ctor.  instead, call SetDataSource if the parent's position is !=
2093         -1.  Fixes the crash in #78822.
2094
2095 2006-07-31  Chris Toshok  <toshok@ximian.com>
2096
2097         * DataGrid.cs (get_ListManager): use field instead of property
2098         accessors for datasource and datamember.
2099         (RowsCount): make internal again.
2100         (OnMouseDown): end edits before resizing columns/rows.
2101         (OnMouseUp): restart edits after resizing columns/rows.
2102
2103 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
2104
2105         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
2106           This fixes the situation where the last set cursor is displayed
2107           whenever the mouse is over scrollbars.
2108
2109 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2110
2111         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
2112         Document properties, as well as initial values.
2113
2114 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
2115
2116         * XplatUIWin32.cs (SetBorderStyle): Setting both border
2117           and ClientEdge results in a 3-pixel border, which is
2118           wrong.
2119
2120 2006-07-28  Jackson Harper  <jackson@ximian.com>
2121
2122         * TreeNodeCollection.cs: Fix the clear method.
2123         - Fix the Shrink also
2124
2125 2006-07-27  Jackson Harper  <jackson@ximian.com>
2126
2127         * TreeView.cs: Make sure the visible order is computed when we
2128         attempt to size the scrollbars (for trees that mess with the
2129         scrolling when they shouldn't.
2130         - Make sure to give the scrollbars valid values.
2131
2132 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
2133
2134         * XplatUIX11.cs: Move motion compression code to where it
2135           has less performance impact
2136
2137 2006-07-26  Jackson Harper  <jackson@ximian.com>
2138
2139         * UpDownBase.cs: When the control is selected make the child
2140         controls non selectable, so that a click on them won't do a
2141         focus/unfocus cycle.
2142         - Don't give focus to the text box when the spinner is selected.
2143         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
2144
2145 2006-07-26  Chris Toshok  <toshok@ximian.com>
2146
2147         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
2148         satisfied with this solution.  If the bitmaps are small, we should
2149         just cache them in the PrintPreviewDialog and draw them here.
2150         Also, the layout is broken for the 2-up and 3-up cases.
2151
2152         * Theme.cs: add PrintPReviewControlPaint.
2153
2154         * PrintPreviewDialog.cs: first pass implementation.
2155
2156         * PrintPreviewControl.cs: first pass implementation.  No
2157         scrollbars yet.
2158
2159         * PrintDialog.cs: only validate fields if that particular portion
2160         of the UI is enabled.  Also, set the document's controller to a
2161         PrintControllerWithStatusDialog wrapping the document's print
2162         controller.
2163
2164         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
2165         bring up a SaveFileDialog (i hope we don't want to match the
2166         behavior of the crappy windows file entry) and set the
2167         PrinterSettings.PrintFileName accordingly.
2168
2169 2006-07-26  Jackson Harper  <jackson@ximian.com>
2170
2171         * ContainerControl.cs: Add a field that disables auto selecting
2172         the next control in a container when the container is activated.
2173         * UpDownBase.cs: Don't select the text box when the up down is
2174         selected.
2175
2176 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
2177
2178         * XEventQueue.cs: Added methods for peeking (used for compression
2179           of successive events)
2180         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
2181           mouse move events (fixes #78732)
2182
2183 2006-07-25  Jackson Harper  <jackson@ximian.com>
2184
2185         * UpDownBase.cs: Use an internal class for the textbox so that we
2186         can control focus.  the updown control should always have focus,
2187         if either the text area or the buttons are clicked.
2188         - Send the key messages to the textbox, since it never actually
2189         has focus
2190         - Activate and decativate the textbox caret.
2191
2192 2006-07-24  Jackson Harper  <jackson@ximian.com>
2193
2194         * Control.cs: Use the directed select when selecting a control,
2195         this way the container controls override will get called and the
2196         whole ActiveControl chain will get triggered.  TODO: probably need
2197         to make sure this gets done everywhere instead of the old
2198         Select(Control).
2199         * ContainerControl.cs: Implement the directed Select method to
2200         find and activate the correct child control.    
2201         
2202 2006-07-22  Mike Kestner  <mkestner@novell.com>
2203
2204         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
2205         menu handling code so that clicks without a grab work too.
2206         [Fixes #78914]
2207
2208 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
2209
2210         * FileDialog.cs: Enable the BackButton when dirstack has one element.
2211           Added some small optimizations.
2212
2213 2006-07-21  Matt Hargett  <matt@use.net>
2214
2215         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
2216
2217 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
2218
2219         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
2220           tests pass and match MS in some strange border cases.
2221
2222 2006-07-21  Chris Toshok  <toshok@ximian.com>
2223
2224         * ThemeWin32Classic.cs: handle drawing of the relation links and
2225         parent row buttons.
2226
2227         * Theme.cs: change args to DataGridPaintParentRow.
2228
2229         * DataGrid.cs: Don't use controls for the relation links and
2230         parent buttons, so we have to handle all their interactions in
2231         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
2232         when we're navigating through child tables, so we can reinstate
2233         selection, expanded state, current cell, etc.
2234
2235 2006-07-20  Chris Toshok  <toshok@ximian.com>
2236
2237         * ToolBar.cs: When we redraw a button, for whatever reason,
2238         there's no reason to redraw the entire toolbar.  Also, don't call
2239         Control.Refresh from within Redraw, as it's much heavier than
2240         Invalidate (which is really what we want).
2241
2242 2006-07-20  Chris Toshok  <toshok@ximian.com>
2243
2244         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2245         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2246         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2247         traces from within a debug IBindingList datasource
2248         (in mono/winforms/datagrid) for *days*, I've finally gotten things
2249         to work in a similar fashion.
2250
2251 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2252
2253         * ListBox.cs: Don't call Sort () when setting 
2254         the Sorted property to false (avoid an unnecessary sort).
2255
2256 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2257
2258         * ListControl.cs: DataSource should throw an ArgumentException
2259         instead of a normal exception when the argument is not of the 
2260         correct type.
2261
2262 2006-07-20  Mike Kestner  <mkestner@novell.com>
2263
2264         * Control.cs: add InternalPreProcessMessage to allow us to steal
2265         key events before MWF gets its paws on them.  Adapted from a
2266         suggestion by eno.
2267         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
2268         up/down/left/right navigation. Override the new internal control
2269         method to steal the events since they never make it to WndProc.
2270         * ToolBarButton.cs: don't worry about pushed when setting hilight
2271         since the drawing code prefers pushed to hilight. Invalidate on 
2272         Hilight changes. Fixes #78547 and #78525.
2273
2274 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2275
2276         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2277           the canvas size. Fixes #78868
2278
2279 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
2280
2281         * Splitter.cs: Track requested split position until first layout
2282           is performed. Fixes #78871
2283
2284 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2285
2286         * Application.cs: Removed code that forces 1.x for the version
2287           number if the version started with 0. Not sure why that code was
2288           there and I couldn't find any bugs that indicated we needed it.
2289           Fixes #78869
2290
2291 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
2292
2293         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2294           ResetDefaults(), just write some output to the console until it's
2295           implemented. Fixes bug #78907 for now. Eliminated two warnings.
2296
2297 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
2298
2299         * PropertyGridView.cs: set StartPosition of drop down forms
2300         so they appear in correct initial spot.  Fixes #78190.
2301
2302 2006-07-19  Mike Kestner  <mkestner@novell.com>
2303
2304         * ThemeWin32Classic.cs: use parent background color when drawing
2305         flat toolbars.  Restructure the conditionals to make sure non-flat
2306         non-Divider toolbars are filled too.  Fixes #78837.
2307
2308 2006-07-19  Mike Kestner  <mkestner@novell.com>
2309
2310         * ListBox.cs: Sort on collection changes even if the handle
2311         isn't created yet.  Fixes #78813.
2312
2313 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2314
2315         * ListControl.cs: DisplayMember should never be null,
2316         and now we assign String.Empty when null is passed to it (this
2317         is the .Net way).
2318
2319 2006-07-17  Mike Kestner  <mkestner@novell.com>
2320
2321         * ListViewItem.cs: restructure Font and subitem Font handling 
2322         to hold a specific font and refer back to owner on null.
2323         Fixes #78761.
2324
2325 2006-07-17  Mike Kestner  <mkestner@novell.com>
2326
2327         * ToolBar.cs: bandaid for side-effect of previous patch which was
2328         discarding explicit heights for non-AutoSize toolbars.  Need to
2329         extend my format tester to deal with AutoSize=false. Fixes #78864.
2330
2331 2006-07-15  Jackson Harper  <jackson@ximian.com>
2332
2333         * LabelEditTextBox.cs:
2334         * TreeView.cs: Use a new LabelEdit class for node editing, this
2335         class automatically 'closes' itself when it gets the enter key or
2336         loses focus.
2337         - Use the client rectangle when setting the trees scrollbars, so
2338         border style is taken into account.
2339         
2340 2006-07-14  Jackson Harper  <jackson@ximian.com>
2341
2342         * TreeNode.cs:
2343         * TreeView.cs: Make the editing work similar to MSs, firing the
2344         events correctly and ending edits correctly.
2345
2346 2006-07-14  Mike Kestner  <mkestner@novell.com>
2347
2348         * ToolBarButton.cs:
2349         * ToolBar.cs: layout restructuring and redraw enhancements to support
2350         formatting changes gracefully, like setting TextAlign, ImageList, 
2351         ButtonSize, and Appearance.  Handles explicit button sizing quirks
2352         of the MS controls.  Things like flat toolbars ignoring button size
2353         but becoming constant sized at the largest button's size.  Normal
2354         toolbars with an image set cannot be shrunk smaller than the image,
2355         but text can be clipped/ignored.
2356         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
2357         is zero.  Seems like DrawString should be smart enough to not put
2358         anything on screen though. Also trim labels and ellipsize at the char
2359         boundary, not word.
2360         Fixes #78711 and #78483.
2361
2362 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2363
2364         * FolderBrowserDialog.cs: Disable "New Folder" button and
2365           "New Folder" contextmenu menuitem if a folder like "My Computer"
2366           is selected.
2367
2368 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2369
2370         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
2371         * FolderBrowserDialog.cs:
2372           - Use MWFConfig to store and read size and position settings
2373           - Added code to create a new folder (button or context menu).
2374             Use TreeView labeledit to change the name of the new folder.
2375
2376 2006-07-14  Jackson Harper  <jackson@ximian.com>
2377
2378         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
2379         when the tree is scrolled we end editing.
2380
2381 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2382
2383         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
2384           Down arrows
2385
2386 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
2387
2388         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
2389         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
2390         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
2391         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
2392         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
2393         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
2394         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
2395         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
2396         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
2397         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
2398         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
2399         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
2400         ListViewItemSelectionChangedEventHandler.cs,
2401         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
2402         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
2403         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
2404         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
2405         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
2406         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
2407         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
2408         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
2409         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
2410         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
2411         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
2412         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
2413         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
2414         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
2415         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
2416         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
2417         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
2418         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
2419         WebBrowserNavigatingEventHandler.cs, 
2420         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2421
2422 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
2423
2424         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
2425         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
2426         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
2427         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
2428         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
2429         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
2430         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
2431         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
2432         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
2433         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
2434         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
2435         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
2436         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
2437         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
2438         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
2439         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
2440         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
2441         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
2442         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
2443         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
2444         ListViewItemStates.cs, MaskFormat.cs: Added
2445
2446 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
2447
2448         * PropertyGridView.cs: Fix keyboard navigation of drop down.
2449         Patch from eno for bug 78558.
2450         
2451 2006-07-13  Jackson Harper  <jackson@ximian.com>
2452
2453         * TreeView.cs: When an edit is finished make sure that the
2454         selected node is visible.
2455         - When setting the top/bottom use the scrollbars is_visible, so
2456         everything will be set correctly even if the tree isn't visible
2457         yet.
2458
2459 2006-07-13  Jackson Harper  <jackson@ximian.com>
2460
2461         * ComboBox.cs: Revert the item->index part of my previous patch.
2462         * TreeView.cs: Use LostFocus instead of Leave for detecting when
2463         the edit box has lost focus (duh).
2464         - Just make the edit box not visible when we get return, that will
2465         take the focus, which will call EndEdit
2466         * TreeNode.cs When we start editing, notify the treeview.
2467
2468 2006-07-12  Jackson Harper  <jackson@ximian.com>
2469
2470         * ComboBox.cs: Clear out old items before setting the item list.
2471         This prevents databound controls from having their items added
2472         twice.
2473         - Switch the combobox to use indices whereever possible instead of
2474         using Item's.  This allows usto navigate through lists that have
2475         more then one item with the same string value (ie a, b, b, a).
2476         - Scroll the listboxes scrollbar when a non visible item is
2477         highlighted
2478         - Allow keypress to cycle through all the possible values. For
2479         example if you have b1, b2, b3 and hold down the B key all the
2480         values will be cycled through.
2481         
2482 2006-07-12  Jackson Harper  <jackson@ximian.com>
2483
2484         * TextBoxBase.cs:
2485         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2486         this using the internal methods.
2487         * Control.cs: Add OnGotFocusInternal.  A new method that allows
2488         controls to "override" OnGotFocus and change focus behavior if
2489         needed.
2490         - Same thing for LostFocus
2491         * ComboBox.cs: Pass off focus to the text control properly.
2492
2493 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
2494
2495         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2496         * FolderBrowserDialog.cs: Almost a complete rewrite.
2497           - Better support for Environment.Specialfolders
2498           - Added support for MWFVFS
2499           - Made setting SelectedPath work
2500
2501 2006-07-12  Jackson Harper  <jackson@ximian.com>
2502
2503         * Control.cs: Optimze getting all the controls.
2504
2505 2006-07-11  Jackson Harper  <jackson@ximian.com>
2506
2507         * ContainerControl.cs: Override SETFOCUS in the container control,
2508         so that it is not selected on mouse click.
2509
2510 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
2511
2512         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
2513           Hopefully we will have a better way once all of focus is complete.
2514
2515 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
2516
2517         * ThemeWin32Classic.cs: Commented out some debug code and fixed
2518           a compile error with csc.
2519
2520 2006-07-11  Jackson Harper  <jackson@ximian.com>
2521
2522         * Control.cs: When hiding a control only select the next control
2523         if the current control was focused.
2524         - Don't handle enter/leave when setting/killing focus, this is
2525         done by the container control.
2526         - Remove is_selected, it's not needed anymore.
2527         - Add utility methods for selecting a child control, and for
2528         firing the Enter/Leave events.
2529         * ContainerControl.cs: When a control is activated fire the
2530         enter/leave events.
2531         - Don't wrap when processing the tab key, so that focus can be
2532         moved outside of the container.
2533         - Use the correct active control
2534
2535 2006-07-11  Jackson Harper  <jackson@ximian.com>
2536
2537         * ComboBox.cs: Remove some debug code that was blinding me.
2538         * UpDownBase.cs: These controls actually aren't implicit, they are
2539         visible to the user.
2540
2541 2006-07-10  Chris Toshok  <toshok@ximian.com>
2542
2543         * DataGrid.cs: move back to the is_adding boolean field.  god i
2544         hate this is_editing/is_adding/is_changing stuff.
2545
2546 2006-07-10  Chris Toshok  <toshok@ximian.com>
2547
2548         * DataGridTableStyle.cs: just check if the property type is bool.
2549         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2550         Don't use CanRenderType.
2551
2552         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2553         if our text == NullText.  Remove CanRenderType.
2554
2555         * DataGridBoolColumn.cs: nuke CanRenderType.
2556
2557         * DataGrid.cs: reenable some code to end the current edit inside
2558         of set_CurrentCell.  This fixes the other 1.1.16 regression.
2559         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
2560         Also, remove the visible_row_count arg from CalcRowHeaders, since
2561         we don't need to worry about the actual height of the area.
2562
2563 2006-07-10  Chris Toshok  <toshok@ximian.com>
2564
2565         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
2566         mode, just return.
2567
2568         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
2569         the real sense of the IsInEditOrNavigateMode property (true =
2570         navigate, false = edit).  Also, update OnKeyPress to reflect this.
2571
2572         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
2573         column style exists, we still need to set its property descriptor
2574         to match up with our list manager.
2575
2576 2006-07-10  Chris Toshok  <toshok@ximian.com>
2577
2578         * ThemeWin32Classic.cs: implement the new row/header painting
2579         approach.  The parent row painting will likely go away and
2580         replaced with label controls, but the rest seems to work ok (and
2581         efficiently).
2582
2583         * Theme.cs: change the way we draw datagrid rows.  we don't draw
2584         the row headers as a block now.  Instead we draw them in the
2585         normal draw-row loop.  Add some calls for drawing parent rows and
2586         relation rows.
2587
2588         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
2589         a default table style.  Set the defaults from ThemeEngine.Current,
2590         not SystemColors.  Fix lots of misc issues with property setters.
2591
2592         * DataGrid.cs: move loads of style information out of this class
2593         as it's being duplicated with DataGridTableStyle.  keep track of a
2594         special DataGridTableStyle for the properties we used to mirror
2595         here.  Switch all the style properties to access this table style
2596         instead of instance fields of this class.  Also add a internal
2597         class to represent parent rows (more needs to be stored here, like
2598         the selection state from the parent table, as well as the
2599         expansion state.)  Also, for datasources with relations, do the
2600         right thing for collapse/expand, and add support for the
2601         navigation/parent row buttons.
2602
2603         Lastly, fix the crash in the 1.1.16 build.
2604
2605         * GridTableStylesCollection.cs: make the explicit interface
2606         implementations call the class's methods as opposed to duplicating
2607         them.
2608
2609         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
2610         0 so the text doesn't jump around when we move the cursor.
2611
2612 2006-07-10  Jackson Harper  <jackson@ximian.com>
2613
2614         * TextBoxBase.cs:
2615         * ListBox.cs: Match MS's ToString (this makes debugging focus
2616         stuff infinitely easier).
2617
2618 2006-07-10  Jackson Harper  <jackson@ximian.com>
2619
2620         * Control.cs (SelectNextControl): When checking the control's
2621         parent use this instead of ctrl.parent so that null can be passed
2622         to SelectNextControl. (I have unit tests for this).
2623         - Remove unused var.
2624
2625 2006-07-10  Chris Toshok  <toshok@ximian.com>
2626
2627         * CurrencyManager.cs: correct one regression, the removal of the
2628         finalType field.  Also, add a MonoTODO on CanAddRows, implement
2629         Refresh() correctly, and fix some event emission in
2630         ListChangedHandler.
2631
2632 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2633
2634         * FileDialog.cs: Don't use brackets for new folders if they exist
2635           under *nix. Instead use -(number of existing folders +1).
2636
2637 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2638
2639         * FileDialog.cs:
2640           - Fixed really nasty bug #78771
2641           - Don't block the whole GUI when reading directories with a lot of
2642             entries. Use an other thread instead and call BeginInvoke to
2643             update the ListView in MWFFileView
2644
2645 2006-07-07  Chris Toshok  <toshok@ximian.com>
2646
2647         * Control.cs (Dispose): release any Capture when disposing.
2648
2649 2006-07-07  Chris Toshok  <toshok@ximian.com>
2650
2651         * LinkLabel.cs (Select): if we chain up to the parent, set
2652         focused_index to -1 so we'll search for the first available link
2653         the next time the user tabs into us.  Also, if the direction is
2654         backward and focused_index == -1, start the search from the last
2655         element.
2656
2657 2006-07-07  Chris Toshok  <toshok@ximian.com>
2658
2659         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
2660         is beyond the end of the text, don't do anything.
2661         (CreateLinkPieces): set our ControlStyles.Selectable based on
2662         whether or not we have any links.
2663         (Link.Invalidate): use a loop instead of foreach.
2664         (Link.set_Start): null out owner.sorted_links so it'll be
2665         recreated by CreateLinkPieces.
2666
2667 2006-07-06  Chris Toshok  <toshok@ximian.com>
2668
2669         * LinkLabel.cs: revert the SetStyle change.
2670
2671 2006-07-06  Chris Toshok  <toshok@ximian.com>
2672
2673         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
2674         (OnEnableChanged): s/Refresh/Invalidate
2675         (OnGotFocus): if we have a focused index already, refocus it (so
2676         if we mouse out/in to the window it'll focus the right link).
2677         (OnKeyDown): move the tab handling out of here.
2678         (OnLostFocus): don't set focused_index to -1, so we can refocus it
2679         when we lose focus.
2680         (OnMouseDown): don't Capture here - Control handles it.  Also,
2681         focus the active link.
2682         (OnMouseUp): don't deal with Capture.
2683         (OnPaintBackgroundInternal): remove.
2684         (OnTextAlignChanged): CreateLinkPieces before calling the
2685         superclass's method.
2686         (OnTextChanged): call CreateLinkPieces before calling superclass's
2687         method.
2688         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
2689         move around.
2690         (Select): implement this, moving the selection between different
2691         links, and call parent.SelectNextControl if we don't have another
2692         link to focus in the given direction.
2693         (CreateLinkPieces): call Invalidate instead of Refresh.
2694         
2695 2006-07-06  Chris Toshok  <toshok@ximian.com>
2696
2697         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
2698         new LinkLabel internals.
2699
2700         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
2701         over pieces looking for active/focused/etc links.  also, deal with
2702         runs of text (and links) with embedded \n's in them, and use
2703         MeasureCharacterRanges instead of MeasureString to figure out the
2704         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
2705         two-step.
2706
2707 2006-07-04  Jackson Harper  <jackson@ximian.com>
2708
2709         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
2710         XKB or key auto repeat, do it manually.  Without key auto repeat,
2711         when a key is held down we get key press, key release, key press,
2712         key release, ... with auto repeat we get key press, key press, key
2713         press ..., and then a release when the key is actually released.
2714
2715 2006-07-03  Jackson Harper  <jackson@ximian.com>
2716
2717         * TabControl.cs:
2718         * ThemeWin32Classic.cs: Tabs do not obey normal background color
2719         rules, they are always control color regardless of the background
2720         color.
2721
2722 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
2723
2724         * FileDialog.cs: Added internal class MWFConfig.
2725           Removed Registry support and replaced it with support for the new
2726           MWFConfig class. See MWFConfig comments for more information.
2727
2728 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
2729
2730         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
2731           rectangle. Added some patches from eno from bug #78490 and fixed
2732           the arrow position for small up and down CPDrawScrollButtons.
2733
2734 2006-06-30  Jackson Harper  <jackson@ximian.com>
2735
2736         * InternalWindowManager.cs: Remove some debug code.
2737         * Form.cs: When an MdiParent is set to null, the window is
2738         "detatched" and becomes a normal window.
2739         * MdiClient.cs: Don't bring the new child form to the front until
2740         it is activated (setting it as active does this), this makes the
2741         previously active forms titlebar get redrawn as inactive.
2742
2743 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
2744
2745         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
2746           with later controls
2747
2748 2006-06-29  Mike Kestner  <mkestner@novell.com>
2749
2750         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
2751         arrow in keynav state.  Fixes #78682.
2752
2753 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2754
2755         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
2756           order (fixes #78393)
2757
2758 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
2759
2760         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
2761           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
2762           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
2763           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
2764           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
2765           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
2766           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
2767           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2768           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2769           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2770           enumerations (FlagsAttribute, SerializableAttribute, added/removed
2771           values)
2772
2773 2006-06-28  Mike Kestner  <mkestner@novell.com>
2774
2775         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2776
2777 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2778
2779         * PropertyGrid.cs,
2780           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2781           item lines from other area (It also makes BackColor consistent and
2782           compatible with .NET). Fixed bug #78564.
2783
2784 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
2785
2786         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2787         Patch from Eno for #78555.
2788
2789 2006-06-27  Chris Toshok  <toshok@ximian.com>
2790
2791         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2792
2793         * DataGridColumnStyle.cs: same.
2794
2795         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2796         
2797         * DataGridDrawingLogic.cs: nuke.
2798
2799 2006-06-27  Chris Toshok  <toshok@ximian.com>
2800
2801         * DataGridTableStyle.cs: clean up the constructors, and build the
2802         list of child relations for this table.  I have no idea if this is
2803         where we should be doing it (it probably isn't), but since we're
2804         already iterating over the properties..
2805
2806         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
2807         struct and array for keeping track of row information, similar to
2808         what's shown in a hack on
2809         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2810
2811         * Theme.cs: be consistent about the naming of DataGrid methods,
2812         prefering ColumnWidths and RowHeights over columnsWidths and
2813         RowsHeights.
2814
2815         * ThemeWin32Classic.cs: same, and also add support for variable
2816         sized rows (and the +/- expansion icons for related rows).
2817
2818 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2819
2820         * TextBoxBase.cs: Applied Eno's patch from #78660
2821
2822 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2823
2824         * Form.cs (ScaleCore): We don't want to scale our form if it's
2825           state is minimized or maximized, but we still need to scale our
2826           child windows. Also, added try/finally block to ensure layout
2827           gets reset (Fixes #78697)
2828
2829 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2830
2831         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2832
2833 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2834
2835         * Form.cs: Fixed c+p error and added check to resize form if minimum
2836           size is bigger than current size (Fixes #78709)
2837
2838 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
2839
2840         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2841
2842 2006-06-26  Mike Kestner  <mkestner@novell.com>
2843
2844         * ComboBox.cs: only do Keypress handling in the combo when there  
2845         are items in the collection. Fixes #78710.
2846
2847 2006-06-26  Chris Toshok  <toshok@ximian.com>
2848
2849         * Binding.cs: make this work bi-directionally.  also, clear up
2850         other mixups between Push/Pull Data (e.g. we're supposed to pull
2851         data when validating).
2852
2853         * BindingManagerBase.cs: trim some fully qualified collection
2854         types.
2855
2856         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2857
2858 2006-06-23  Chris Toshok  <toshok@ximian.com>
2859
2860         * PropertyManager.cs: It appears (according to the unit tests)
2861         that PropertyManager doesn't use
2862         PropertyDescriptor.AddValueChanged to track propery value changes
2863         in its datasource, but uses the same scheme as Binding, where it
2864         looks for a <Property>Changed event and binds to it.
2865
2866         Also, according to the docs, IsSuspended always returns false for
2867         a property manager with a non-null datasource.
2868
2869 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
2870
2871         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2872           need to update the actual DialogResult. (Fixes #78613)
2873
2874 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
2875
2876         * Form.cs (ShowDialog): Release any captures before running the
2877           new message pump (fixes #78680)
2878
2879 2006-06-22  Mike Kestner  <mkestner@novell.com>
2880
2881         * ListView.cs: Layout column widths properly in details mode even 
2882         if HeaderStyle.None is set.  Fixes #78691.
2883
2884 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
2885
2886         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2887
2888 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
2889
2890         * Control.cs (ContainsFocus): Using new driver method to get focused
2891           window, instead of trying to use internal tracking var, which can
2892           recursion issues (Fixes #78685)
2893         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2894           XplatUIWin32.cs: Added GetFocus method to return focused window
2895
2896 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2897
2898         * ColorDialog.cs: when the mouse button is pressed inside the color
2899         matrix, don't let the cursor move out of it until the button is
2900         released, which is the behavior on windows. Changed 'colours' by
2901         'colors' to use the same word consistently.
2902
2903 2006-06-21  Chris Toshok  <toshok@ximian.com>
2904
2905         * DataGrid.cs: add in some basic navigation stuff (navigating to a
2906         child relation and back, using a stack).  Also, remove
2907         GetDataSource and the code that calls it - it's not needed.  Also,
2908         track CurrencyManager.ListName's removal.
2909
2910 2006-06-21  Chris Toshok  <toshok@ximian.com>
2911
2912         * CurrencyManager.cs: push some of the original type checking from
2913         BindingContext.CreateBindingManager to here, and remove some of
2914         the finalType stuff.  Need more tests to make sure I've got the
2915         ListName part right, and we might need more in SetDataSource.
2916
2917         * PropertyManager.cs: add a ctor that takes just the datasource,
2918         and no property name.  Make SetDataSource work with a null
2919         property_name, and make Current return the data_source if the
2920         property descriptor is null.  this makes 'string foo = "hi";
2921         BindingContext[foo].Current' return "hi" as it should.
2922
2923         * RelatedCurrencyManager.cs: make this code more generic - there's
2924         no reason the parent manager has to be CurrencyManager, and
2925         there's no reason to pass the DataRelation.  It suffices to use a
2926         BindingManagerBase and PropetyDescriptor.
2927
2928         * RelatedPropertyManager.cs: make a similar change here.
2929         
2930         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2931         flower I knew it could be.
2932
2933 2006-06-20  Chris Toshok  <toshok@ximian.com>
2934
2935         * PropertyManager.cs: the PropertyChangedHandler is invoked when
2936         data in the source has changed and we need to update the control,
2937         so s/PullData/PushData.
2938
2939         * CurrencyManager.cs: Refresh is meant to update the control from
2940         data in the datasource.  So, s/PullData/PushData.
2941
2942         * BindingContext.cs: add more ugliness (we weren't handling the
2943         case where data_source = DataTable and data_member = column_name).
2944
2945         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
2946         from the perspective of the datasource.  PullData pulls from the
2947         control, PushData pushes to the control.
2948
2949 2006-06-20  Chris Toshok  <toshok@ximian.com>
2950
2951         * BindingContext.cs: rewrite the CreateBindingManager code to
2952         handle navigation paths more or less properly.  This could
2953         definitely stand some more work, in particular to push the
2954         recursion up to the toplevel.  But that relies on fixes in other
2955         places (System.Data comes to mind).
2956
2957         Also, move to a flat hashtable (and encode the twolevel nature of
2958         the dictionary into the hash key).  This lets us implement the
2959         IEnumerable.GetEnumerator method.
2960
2961         * RelatedCurrencyManager.cs: new class.  Update our view based on
2962         our relation and our parent CurrencyManager's position.
2963
2964         * CurrencyManager.cs: split out some logic from the ctor into
2965         SetView, so it can be called from the new RelatedCurrencyManager
2966         subclass.
2967
2968         * RelatedPropertyManager.cs: new class.  Update our datasource
2969         based on the position of our parent CurrencyManager.
2970
2971         * PropertyManager.cs: split out some logic from the ctor into
2972         SetDataSource, so it can be called from the new RelatedDataSource
2973         subclass.  Also, make the Current getter return the value
2974         of the PropertyDescriptor, not the data_source.
2975
2976         * Binding.cs: no need to duplicate the string splitting code here.
2977
2978 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2979
2980         * Control.cs:
2981           - set_Enabled: OnEnabledChanged is not called if the inherited state 
2982             of the control is not altered, even though  we might be changing the
2983             internal state of the control (#78458)
2984           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
2985             OnEnabledChanged, to allow easy altering of any child window state
2986           - OnEnabledChanged: Added code to enable/disable driver window state
2987           - OnParentEnabledChanged: Instead of firing the event, call 
2988             OnEnabledChanged, which will fire the event and also a) set driver
2989             window state and pass the enabled state to any grandchildren (#78458)
2990
2991 2006-06-19  Jackson Harper  <jackson@ximian.com>
2992
2993         * InternalWindowManager.cs: We don't set the cursor explicitly
2994         thats done via the response to NCHITTESTs.
2995         - Don't need to adjust for titlebar heights anymore, the
2996         coordinates are coming in the correct coordinates now (see peters
2997         last patch).
2998
2999
3000 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
3001
3002         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
3003           being translated relative to whole window, instead of client window.
3004           That caused broken offsets on mouseclick (and caused gas for our
3005           InternalWindowManager)
3006
3007 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3008
3009         * TextControl.cs:
3010           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
3011           - Undo(): Added replay of cursor move on DeleteChars action; added
3012             calling Undo() again if a recorded cursor move is invalid (to
3013             ensure that some action is performed on Undo)
3014         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
3015
3016 2006-06-16  Jackson Harper  <jackson@ximian.com>
3017
3018         * MdiClient.cs: Instead of just sizing maximized windows when
3019         there is a resize we also have to adjust the Y of minimized
3020         windows, so they stay pinned to the bottom of the mdi container.
3021         - Eliminate separate tracking of the active control, we can just
3022         get this from the controls collection.
3023         - Paint the decorations for the newly activated titlebar so we get
3024         a pretty blue bar.
3025         * InternalWindowManager.cs:
3026         * ThemeWin32Classic.cs: Minimized windows get all three buttons
3027         even if they are a tool window.
3028         
3029 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3030
3031         * TextControl.cs (Undo): Handle non-existent cursor locations in the
3032           undo buffer, these can happen when text was deleted and the cursor
3033           was recorded first. Since we will also have a recorded cursor
3034           after the delete this is not an issue. (Fixes #78651)
3035
3036 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
3037
3038         * AccessibleObject.cs: Remove dependence on Control.is_selected;
3039           instead properly track control states internally (allows us to
3040           remove is_selected from Control)
3041
3042 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3043
3044         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
3045         whose width is not a multiple of 8.
3046
3047 2006-06-13  Jackson Harper  <jackson@ximian.com>
3048
3049         * MdiClient.cs:  Only maximize the next child if the current one
3050         is maximized.
3051
3052 2006-06-13  Chris Toshok  <toshok@ximian.com>
3053
3054         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
3055         modified.  Also, guard against grid or grid_drawing being null in
3056         Invalidate.
3057
3058         * DataGrid.cs: Reformat tons of getters/setters.  In the
3059         DataMember setter, just call SetNewDataSource instead of
3060         duplicating some of its functionality.  In SetNewDataSource, don't
3061         check ListManager for null, since the property getter creates the
3062         object if needed.
3063
3064         * DataGridTableStyle.cs: don't set TableStyle or call
3065         SetDataGridInternal on the column here, it's done in
3066         GridColumnStylesCollection.Add.
3067
3068         * GridColumnStylesCollection.cs: fix all the explicit interface
3069         implementations to just call our methods.  Nuke AddInternal() and
3070         move the body of it to Add().  Also, add a call to
3071         column.SetDataGridInternal to Add().
3072
3073         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
3074         base()+duplicate code.  Also, use the Format property instead of
3075         format to generate an Invalidate ala MS.  Lastly, create the
3076         textbox here, unconditionally.
3077         (set_Format): call Invalidate.
3078         (get_TextBox): no need to call EnsureTextBox.
3079         (Commit): remove the message box.
3080         (Edit) remove the call to EnsureTextBox.
3081         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
3082         (EnterNullValue): no need to check textbox for null.
3083         (HideEditBox): no need to check textbox for null.
3084         (SetDataGridInColumn): add the textbox to the grid's controls.
3085         (EnsureTextBox): nuke.
3086         
3087 2006-06-13  Jackson Harper  <jackson@ximian.com>
3088
3089         * MdiWindowManager.cs: Hook up to the maximized menus paint event
3090         and redraw the buttons when needed. Unhook when the window is
3091         unmaximized.
3092         * MainMenu.cs: Add an internal Paint event, the mdi window manager
3093         needs this so that it can redraw its buttons when the menu is
3094         repainted.
3095         * InternalWindowManager.cs:
3096         * Form.cs: The method order has changed for DrawMaximizedButtons,
3097         so that it can be a PaintEventHandler.
3098         
3099 2006-06-13  Jackson Harper  <jackson@ximian.com>
3100
3101         * MdiClient.cs: When we close a maximized mdi window, the next mdi
3102         window is activated and maximized, even if it wasn't before.
3103         - When  a new window is activated repaint the decorations of the
3104         old one, so that it no longer has the Active "look" (the blue
3105         titlebar).
3106         * InternalWindowManager.cs: Open up CreateButtons to base classes
3107         so they can recreate the buttons on state changes.
3108         - If a window is maximized give it all three buttons
3109         * MdiWindowManager.cs: Create the titlebar buttons when the state
3110         is changed, this is needed because a toolwindow will not have all
3111         three buttons until it is maximized.
3112
3113 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
3114
3115         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
3116           Fixed bug #78609.
3117
3118 2006-06-12  Jackson Harper  <jackson@ximian.com>
3119
3120         * KeysConverter.cs: Make sure we handle the Ctrl special case
3121         if its the only key.
3122         
3123 2006-06-12  Jackson Harper  <jackson@ximian.com>
3124
3125         * Theme.cs: Add a method to get the size of a managed window
3126         toolbar button.
3127         * InternalWindowManager.cs: Remove the ButtonSize property, this
3128         should be retrieved from the theme.
3129         * MdiWindowManager.cs: Get the button size from the theme
3130         * ThemeWin32Classic.cs: Make the method to get the managed window
3131         titlebar button size public.
3132         - Handle the different button sizes of maximized toolwindows
3133         (should match any maximized window).
3134         - Get the titlebar height from the theme, not the WM (which gets
3135         it from the theme).
3136
3137 2006-06-12  Jackson Harper  <jackson@ximian.com>
3138
3139         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
3140         event down to the mdi window manager.
3141         - Expose some extra stuff to base classes
3142         - Make sure to end the Capture on an NC Mouse up, so that we can
3143         get double clicks properly, and the sizing doens't stick.
3144         - When doing PointToClient contain it in the workable desktop
3145         area, this prevents windows from changing size when the cursor is
3146         pulled outside of the working area while sizing.
3147         * MdiWindowManager.cs: When we get a double click maximize the
3148         window.
3149         - Reset the cursor after handling mode changes.
3150
3151 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
3152
3153         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
3154           current desktop, instead of just assuming a 0, 0 origin. This
3155           is needed for our internal window manager, to know the top
3156           margin of the desktop
3157
3158 2006-06-12  Chris Toshok  <toshok@ximian.com>
3159
3160         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
3161         we need this to get rid of the selected background in the bool
3162         column.
3163         (CancelEditing): move the ConcedeFocus call to above the Abort
3164         call.  Also, set is_changing to false and invalidate the row
3165         header if we were changing before.
3166         (ProcessKeyPreviewInternal): remove, since noone outside this
3167         class calls it anymore.  Roll the code into ProcessKeyPreview.
3168         (EndEdit): remove the internal version.
3169         (InvalidateCurrentRowHeader): make private.
3170
3171         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
3172         Keys.Escape handling (and with it the last call to
3173         DataGrid.EndEdit from outside the class.)
3174
3175
3176 2006-06-12  Chris Toshok  <toshok@ximian.com>
3177
3178         * DataGridTextBox.cs (.ctor): isedit defaults to false.
3179         (OnKeyPress): set isedit to true.
3180         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
3181         already handled by the grid.
3182
3183         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
3184         right.  ugh.
3185         (set_DataSource): SetDataSource always returns true, so stop
3186         putting it in an if statement.
3187         (EndEdit): get rid of some {}'s
3188         (ProcessGridKey): return true in case Keys.Escape.
3189         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
3190         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
3191         PositionChanged, stopped connecting to CurrentChanged.
3192         (GetDataSource): simplify this a bunch.
3193         (SetDataSource): change return type from bool to void.
3194         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
3195         to this, and make sure we don't set ListManager.Position inside
3196         set_CurrentCell.
3197         (OnListManagerItemChanged): if we're passed an actual index,
3198         redraw that row.
3199
3200         * CurrencyManager.cs (set_Position): don't call PullData here.
3201
3202 2006-06-09  Jackson Harper  <jackson@ximian.com>
3203
3204         * TreeNode.cs:  Recalculate the visible order before doing the
3205         Expand/Collapse Below calls, because those calls generate an
3206         expose.
3207         - Reduce calls to the TreeView property, which is mildly expensive
3208         by using a local var.
3209         * Form.cs: Layout the MDI child windows when creating the parent
3210         form.
3211         - Don't use the internal constructor anymore
3212         * MdiClient.cs: use the parent form width/height (if available)
3213         when laying out the child windows, we do this because the
3214         mdiclient isn't docked yet when the initial layout is done.
3215         - Don't need an internal constructor anymore.
3216
3217 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3218
3219         * FileDialog.cs: handle access errors when trying to create a folder
3220         or changing to a directory. No need to initialize out parameters.
3221
3222 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3223
3224         * FileDialog.cs: Append a number when creating a new folder if the
3225           folder already exists (use parenthesis instead of square brackets)
3226
3227 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3228
3229         * FileDialog.cs:
3230           - Disabled registry support for windows and added better registry
3231             error checking for other systems (need to investigate why it
3232             works perfectly on my system)
3233           - If a folder already exist show an error MessageBox instead of
3234             trying to create an indexed name.
3235           - Fixed a non intentional typo.
3236
3237 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3238
3239         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
3240
3241 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3242
3243         * FileDialog.cs: When creating a new folder don't crash if the
3244           folder already exists.
3245
3246 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3247
3248         * FileDialog.cs: Allmost a complete rewrite.
3249           - added a "virtual" file system that handles the differences
3250             between unix and windows file systems (especially the directory
3251             structure). Moved most of the directory and file handling code
3252             into the vfs.
3253             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3254             UnixFileSystem and FSEntry.
3255           - Recently used folder/directory, size, location and used file names
3256             (file name ComboBox) are now stored in the registry and get read
3257             before the dialog shows up (fixes part 6 of bug #78446).
3258           - Creation of new folders/directories is now possible (context menu
3259             or ToolBar). Added TextEntryDialog for this that fills in the gap
3260             until ListView.LabelEdit works.
3261           - Fixed cursor handling (bug #78527) and focus handling for
3262             PopupButtonPanel
3263           - Various "Search in" ComboBox enhancements. The content of the
3264             dropdown listbox now almost matches ms.
3265           - Changed the behaviour when the user switches to SpecialFolder
3266             Recent to show the ListView in View.Details.
3267           - Beside using the ToolBar to change the View property of the
3268             file ListView it is now possible to use the context menu too.
3269
3270 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3271
3272         * ComboBox.cs: Don't create a new ObjectCollection when an item
3273           gets inserted. Just insert the item in the existing object_items
3274           ArrayList.
3275
3276 2006-06-08  Jackson Harper  <jackson@ximian.com>
3277
3278         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3279         that the treeview and root node checks are done also, this fixes a
3280         regression i caused in the unit tests.
3281
3282 2006-06-07  Wade Berrier <wberrier@novell.com> 
3283
3284         * RichTextBox.cs: More ISO8859-1 -> unicode
3285
3286 2006-06-07  Mike Kestner  <mkestner@novell.com>
3287
3288         * ComboBox.cs : use items to hold highlight/selection so that
3289         collection insertions don't require synchronization.
3290
3291 2006-06-07  Jackson Harper  <jackson@ximian.com>
3292
3293         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3294         routine.  We now always keep the sized edge at the cursor instead
3295         of computing movement and adjusting rects.  There is one buglet
3296         with this method though when the cursor is moved over area that
3297         the window can not expand too (such as the toolbars on the desktop).
3298
3299 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3300
3301         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
3302         here. Fixes crash on startup in AlbumSurfer.
3303
3304 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
3305
3306         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
3307           values
3308
3309 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3310
3311         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
3312         statement to avoid calling XNextEvent which will block if another thread
3313         took the event that we were expecting. Fixes bug #78605.
3314
3315 2006-06-07  Mike Kestner  <mkestner@novell.com>
3316
3317         * ListView.cs : isolated checkbox clicking from the selection logic.
3318         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
3319
3320 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3321
3322         * Form.cs: Check that the value passed to Form.DialogResult
3323         is a valid enum value.
3324
3325 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3326
3327         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
3328         Computer'. Clicking it in the network view goes to 'My Computer'.
3329         Added CIFS filesystem type. Display the mount point of filesystems.
3330         Avoid duplicate mount points (happens for me with CIFS);
3331
3332 2006-06-06  Jackson Harper  <jackson@ximian.com>
3333
3334         * InternalWindowManager.cs: Draw the maximized windows buttons
3335         when resizing.
3336
3337 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3338
3339         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
3340         all other dialogs. Fixes bug #78585.
3341
3342 2006-06-06  Mike Kestner  <mkestner@novell.com>
3343
3344         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
3345         Only invalidate checkbox on checkstate changes to avoid flicker.
3346         * ListBox.cs : avoid unselect/select when clicking selected item.
3347         avoid reselection flicker for already multiselected items.
3348         Fixes #78382.
3349
3350 2006-06-06  Jackson Harper  <jackson@ximian.com>
3351
3352         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
3353         the parent form so that the menu is removed if needed.
3354
3355 2006-06-06  Mike Kestner  <mkestner@novell.com>
3356
3357         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
3358         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
3359
3360 2006-06-06  Mike Kestner  <mkestner@novell.com>
3361
3362         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
3363
3364
3365 2006-06-06  Jackson Harper  <jackson@ximian.com>
3366
3367         * Control.cs: Use the property (instead of the field) to get the
3368         default cursor so it is instantiated correctly.
3369         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
3370         resizes so we need to manually repaint the window decorations here.
3371         - Set the titlebar button locations as soon as they are created,
3372         otherwise they are not set correctly on win32.
3373         
3374 2006-06-06  Chris Toshok  <toshok@ximian.com>
3375
3376         * CurrencyManager.cs (set_Position): call PullData before
3377         OnCurrentChanged.
3378         (AddNew): after calling IBindingList.AddNew, update our
3379         listposition, and call OnCurrentChanged/OnPositionChanged (without
3380         calling PullData).
3381         (OnCurrentChanged): remove the call to PullData from here.
3382         (OnItemChanged): remove the call to PushData from here.
3383         (OnPositionChanged): change the test from == null to != null to
3384         match the other methods.
3385         (ListChangedHandler): the grossest part of the patch.  Implement
3386         this such that it passes the unit tests in CurrencyManagerTest and
3387         the output more or less matches that of MS's implementation.
3388  
3389 2006-06-06  Mike Kestner  <mkestner@novell.com>
3390
3391         * ListView.cs : only update check state on single click.
3392         * ThemeWin32Classic.cs : fix focus drawing for details view without
3393         fullrowselect.  Fixes #78454.
3394         * XplatUIX11.cs : fix for double click emission.
3395
3396 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
3397
3398         * PropertyGridView.cs : Applied Atsushi's patch to fix
3399         font dialog bug  (#78197).
3400
3401 2006-06-05  Jackson Harper  <jackson@ximian.com>
3402
3403         * TreeNode.cs: Compute the next node for expanding/collapsing
3404         correctly. We now factor in nodes without a NextNode
3405         correctly. (Fixes somes cases in nunit-gui).
3406         * InternalWindowManager.cs: Set the bounds when updating the
3407         virtual position of a tool window.
3408         
3409 2006-06-05  Chris Toshok  <toshok@ximian.com>
3410
3411         * DataGrid.cs: rename cached_currencymgr to list_manager.
3412         (set_CurrentCell): move SetCurrentCell code here, and clean it up
3413         some.
3414         (CurrentRow, CurrentColumn): single accessors so we can make the
3415         cursor movement code a lot easier to understand.
3416         (CurrentRowIndex): implement this in terms of CurrentRow.
3417         (BeginEdit): clean this up a bit.
3418         (CancelEditing): sort out the is_editing/is_changing/is_adding
3419         stuff a little.
3420         (EndEdit): minor changes.
3421         (OnKeyDown): add a comment about a (most likely) unnecessary
3422         check.
3423         (OnMouseDown): cancel editing when we click on a row header.  And
3424         use the CurrentRow setter, not CurrentCell.
3425         (ProcessDialogKey): directly call ProcessGridKey.
3426         (UpdateSelectionAfterCursorMove): factor out this common block of
3427         code (it's used everywhere that we move the cursor by updating row
3428         or column).
3429         (ProcessGridKey): pretty substantial overhaul.  Use the
3430         CurrentRow/CurrentColumn properties to make the code a lot more
3431         readable.  Only use the CurrentCell property when we have to
3432         modify both row and column at once.  Tab behavior is still broken,
3433         and Delete is untested.
3434         (Select): if we have no selected rows, set selection_start to
3435         @row.
3436         (EditCurrentCell): rename EditCell this.  It was only ever invoked
3437         with CurrentCell as the arg, so drop the arg and rename it.
3438
3439         * DataGridColumnStyle.cs: clean up the constructors a little, and
3440         drop CommonConstructor().
3441
3442         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
3443         actually get notified when the user hits it.
3444         (ProcessKeyMessage): *substantially* simplify this method.
3445         There's no reason (that I can see) for the textbox to be making
3446         calls into the datagrid at all.  Remove all of them but the ones
3447         for Enter handling.  those will take some more work.
3448
3449         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
3450         calling HideEditBox.
3451         (HideEditBox): if we have an active textbox, render it invisible
3452         without causing a re-layout of the datagrid.
3453
3454 2006-06-05  Mike Kestner  <mkestner@novell.com>
3455
3456         * ListView.cs : fix NRE crasher when focuseditem is cleared by
3457         collection changes by resetting it to Items[0].  Fixes #78587.
3458
3459 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3460
3461         * MessageBox.cs: if the height of the text is larger than the icon_size,
3462         use that. Fixes bug #78575.
3463
3464 2006-06-05  Jackson Harper  <jackson@ximian.com>
3465
3466         * TreeView.cs: Fix line drawing when scrolling.  To do this each
3467         node is basically responsible for drawing its entire horizontal
3468         area.  When drawing a node it draws its parent node lines if
3469         needed.
3470         - Adjust the clip area to the viewport rectangle
3471         - Fix Left/Right key handling to match MS. (It expand/collapses
3472         and moves to parents/first child but does not move selection to
3473         sibling nodes).
3474         - Fix SetTop to work with new bound calculation code
3475         - When scrollbars are no longer needed we need to reset scrolling
3476         vars and recalculate the visible order so the redraw is correct
3477         * TreeNode.cs: We can't expand/collapse nodes with no children.
3478
3479 2006-06-03  John Luke  <john.luke@gmail.com> 
3480
3481         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
3482         so the colors work without dev packages
3483         
3484 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
3485
3486         * Control.cs 
3487           - Select: Implemented to just use activate. Seems to match MS 
3488             behaviour closest. Documented to only do actual control walking 
3489             based on it's parameters if in a container control so I moved 
3490             the code there.
3491           - Removed selection check logic from our internal Select() method
3492         * ContainerControl.cs:
3493           - Select: Moved selection logic from Control here, since MS documents
3494             that containers obey the bool arguments. No longer calling base
3495
3496 2006-06-02  Jackson Harper  <jackson@ximian.com>
3497
3498         * TreeView.cs: If the selected node isn't changed when we get
3499         focus update the previously selected node so that we see the
3500         selection box.
3501
3502 2006-06-02  Mike Kestner  <mkestner@novell.com>
3503
3504         * ComboBox.cs: restructure grab and general mouse event handling.
3505         Make the composite control raise mouse events like it was a single
3506         control for leaves/enters/motion/up/down events.  fix dropdown list
3507         coordinate mangling and refactor it into the scrollbar subclass to
3508         reduce code duplication.  Fixes #78282 #78361 and #78457.
3509
3510 2006-06-02  Mike Kestner  <mkestner@novell.com>
3511
3512         * ScrollBar.cs: remove Capture setting/clearing, as it happens
3513         automatically in the Control.WndProc.
3514
3515 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3516
3517         * FileDialog.cs: fix crash when running SharpChess, which sets the
3518         FilterIndex to 2 with only one Filter.
3519
3520 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3521
3522         * ToolBar.cs: add SizeSpecified property.
3523         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3524         try to figure out our real size, otherwise fallback to what the
3525         container says.
3526
3527 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3528
3529         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3530         * Control.cs (WndProc): MS always calls the DefWndProc to pass
3531           up the event
3532
3533 2006-06-01  Mike Kestner  <mkestner@novell.com>
3534
3535         * ListView.cs: revamp the focus management in ListView.  It still
3536         causes churn of LostFocus/GotFocus emissions on clicks, but it's
3537         better than not handling focus at all.  Will revisit when pdb feels
3538         the general focus handling is solid.  Fixes #78526.
3539
3540 2006-06-01  Jackson Harper  <jackson@ximian.com>
3541
3542         * TreeView.cs: Set the default border style in the constructor.
3543         - Move painting to use OnPaintInternal instead of capturing
3544         WM_PAINT, this is the correct way of doing things
3545         - UpdateBelow shouldn't invalidate the scrollbar area
3546         - Cap the top on update below in case the node was above the top
3547         of the viewport rectangle.
3548         - ExpandBelow and Collapse below need to obey Begin/End Update.
3549         * TreeNode.cs: Make is_expanded internal so the treenode
3550         collection can change it without firing the whole event chain.
3551         * TreeNodeCollection.cs: When clearing all the child nodes make
3552         sure to recalc the visible order.
3553         - Improve algo for remove the top node
3554
3555 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3556
3557         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
3558           SendMessage directly calling window procedures, which in turn might
3559           call SetFocus()
3560
3561 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
3562
3563         * Control.cs: Don't handle WM_SETFOCUS if the same window already
3564           has focus (works around X11 sending a FocusIn after our SetFocus)
3565         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
3566
3567 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
3568
3569         * Mime.cs: Fix for the NET_2_0 build.
3570           NameValueCollection needs StringComparer now.
3571
3572 2006-05-31  Chris Toshok  <toshok@ximian.com>
3573
3574         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
3575         return (via an out parameter) the starting X of the column.
3576         (UpdateVisibleColumn): track change to FromPixelToColumn.
3577         (HitTest): add a ColumnResize case here.
3578         (DrawResizeLine): new function, probably poorly named.
3579
3580         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
3581         only need to keep one reference.
3582         (set_ListManager): same.
3583         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
3584         Also, add support for HitTestType.ColumnResize.
3585         (OnMouseMove): add column resize behavior here, and change the
3586         cursor to the correct one as we move around the datagrid.
3587         (OnMouseUp): terminate the column resize if we're resizing.
3588         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
3589         for the current cell.
3590         (ConnectListManagerEvents): use cached_currencymgr.
3591         (DisconnectListManagerEvents): fill this in, using
3592         cached_currencymgr.
3593         (SetCurrentCell): remove cached_currencymgr_events handling.
3594         (SetDataMember): only call DisconnectListManagerEvents if
3595         cached_currencymgr is != null.
3596         (SetDataSource): same.
3597         (OnListManagerCurrentChanged): cached_currencymgr_events ->
3598         cached_currencymgr.
3599
3600 2006-05-31  Jackson Harper  <jackson@ximian.com>
3601
3602         * BindingManagerBase.cs: Remove somedebug code that creeped into
3603         SVN.
3604         * TreeNode.cs: We get the indent level dynamically right now, so
3605         don't track it as a member.
3606         * TreeNodeCollection.cs: Make sure all nodes added to the list
3607         have parents, treeviews/topnodes setup properly.
3608         - Don't attempt to track indent level.
3609
3610 2006-05-30  Jackson Harper  <jackson@ximian.com>
3611
3612         * BindingContext.cs: Create the currency manager tables here.
3613         This allows us to more easily create null tables (when bad data
3614         members are used), and more easily create related currency
3615         managers.
3616         * CurrencyManager.cs: All the table creation stuff is done by the
3617         binding context now.
3618         - Current should throw an exception if listposition is -1.
3619         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
3620         been bound yet.
3621
3622 2006-05-30  Mike Kestner  <mkestner@novell.com>
3623
3624         * ListView.cs: allow reexpansion of zero-width column headers.
3625         Fixes #78528.
3626
3627 2006-05-28  Chris Toshok  <toshok@ximian.com>
3628
3629         * CurrencyManager.cs (get_Current): after the late binding
3630         listposition = -1 fix, we need to guard against it here and return
3631         null, otherwise we raise an exception (which is swallowed
3632         elsewhere, and breaks datagrid databinding.)
3633
3634 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3635
3636         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
3637           than WM_SYSKEY, don't throw if get something unexpected (#78507)
3638
3639 2006-05-26  Jackson Harper  <jackson@ximian.com>
3640
3641         * ControlPaint.cs:
3642         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
3643         values, it's faster and it's all we care about (we don't care if
3644         the names aren't equal).
3645         * KeyboardLayouts.cs: Eliminate some dead code.
3646         - Lazy init things
3647         * X11Keyboard.cs: Lazy init keyboard detection.
3648         - Cleanup access modifiers a little.
3649
3650 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3651
3652         * XplatUIX11.cs: Once again, attempting to get layout just right.
3653
3654 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
3655
3656         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
3657           the sizes of each link section, that will result in sizes that
3658           match DrawString's layout (Fixes #78391)
3659
3660 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
3661
3662         * FileDialog.cs: If AddExtension property is true autocomplete the
3663           extensions in SaveFileDialog correctly. Fixes bug #78453.
3664           Set MyNetwork and MyComputer to "C:\" for windows. This should
3665           fix part 8 of bug #78446 for now.
3666
3667 2006-05-26  Chris Toshok  <toshok@ximian.com>
3668
3669         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
3670         invalidate the current row header if we need to, but presumably
3671         we'll invalidate the row corrsponding to the bounds or
3672         editingControl.
3673         (GridHScrolled): switch back to this method, as it's part of the
3674         public api.  *sigh*.
3675         (GridVScrolled): same.
3676         (OnMouseWheel): hack up something that more or less works.  Call
3677         GridHScrolled/GridVScrolled directly, instead of duplicating much
3678         of their code here.
3679         (EnsureCellVisibility): reinstate a bunch of this code, since we
3680         can't just set the scrollbar Value and expect to do all the work
3681         in the ValueChanged handler.  Also, Call Update() after scrolling
3682         in one direction so the other XplatX11.ScrollWindow call has the
3683         proper stuff in the proper places.
3684         (EditCell): set is_editing to true before calling .Edit.
3685
3686         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
3687         don't bother comparing first.
3688         (OnKeyPress): call grid.ColumnStartedEditing before calling
3689         base.OnKeyPress.  this will set is_changing and invalidate the row
3690         header if necessary.
3691         (ProcessKeyMessage): for WM_CHAR messages, call
3692         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
3693         and WM_KEYDOWN.
3694         
3695         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
3696         it's done in the DataGrid.
3697         (NextState): call grid.ColumnStartedEditing, which takes care of
3698         invalidating the row header (and setting is_changing).
3699
3700         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
3701         here.  it's done in the DataGrid.
3702
3703 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3704
3705         * Control.cs: allow changing the cursor when the mouse position is
3706         out of bounds but Capture is set.
3707         * LinkLabel.cs: handle the case when the mouse button is pressed on the
3708         linklabel but released somewhere else.
3709
3710 2006-05-25  Jackson Harper  <jackson@ximian.com>
3711
3712         * TreeView.cs: When we get focus if there is no selected node make
3713         it the top node
3714         - Remove some uneeded setup code from Draw.
3715         * TreeNodeCollection.cs: If the tree doesn't have a top node when
3716         a new node is inserted make the new node the top.
3717         * XplatUIX11.cs:
3718         * Timer.cs: Use Utc time so that no local time zone stuff needs to
3719         be used (should be faster).
3720         
3721 2006-05-25  Chris Toshok  <toshok@ximian.com>
3722
3723         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
3724         problem with the last commit.
3725
3726 2006-05-25  Chris Toshok  <toshok@ximian.com>
3727
3728         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
3729         need the invalidate call here, while scrolling right-to-left via
3730         the left arrow key (i.e. moving the editing cell while scrolling).
3731
3732         * DataGrid.cs (.ctor): remove the initialization of
3733         ctrl_pressed/shift_pressed.  We no longer track them using key
3734         up/down handlers, but by using Control.ModifierKeys.  Also, switch
3735         to using ValueChanged handlers on the scrollbars instead of
3736         Scrolled event handlers.  This simplifies a bunch of the scrolling
3737         code.
3738         (GridHValueChanged): rename from GridHScrolled, and change it to
3739         work with the new event args.
3740         (GridVValueChanged): same.
3741         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
3742         (OnMouseWheel): actually scroll the datagrid.  Don't change the
3743         selected cell.
3744         (ProcessGridKey): correct all the keyboard navigation stuff I
3745         could find.  Ctrl up/down/left/right/home/end work now.
3746         (EnsureCellVisibility): correct method name spelling.  Also,
3747         simplify this a touch by not explicitly calling the
3748         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
3749         scrollbar value.
3750         (OnKeyUpDG): no need for this method now.
3751         
3752 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3753
3754         * LinkLabel.cs: display the OverrideCursor when hovering the label.
3755         Fixes bug #78392.
3756
3757 2006-05-25  Chris Toshok  <toshok@ximian.com>
3758
3759         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
3760         r61019.
3761
3762 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3763
3764         * Application.cs: Moved setting of is_modal and closing to before
3765           we create the control, to allow the event handlers called as a
3766           result of creation affect closing. Also removed Gonzalo's previous
3767           change to setting DialogResult, the behaviour has been moved to 
3768           Form.ShowDialog()
3769         * Form.cs: 
3770           - ShowDialog(): Removed explicit creation of the form, let RunLoop
3771             handle it instead
3772           - ShowDialog(): If no dialog result is set, we need to return Cancel
3773           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3774             the close is cancelled
3775
3776 2006-05-25  Jackson Harper  <jackson@ximian.com>
3777
3778         * StatusBar.cs: We only need to update the sizes of the other
3779         panels when we have auto size contents.  Also we are only updating
3780         the contents of the panel, not the borders, so compensate for the
3781         border width (TODO: get this width from the theme somehow).
3782         * TreeView.cs: Scrollable is true by default
3783         - Use invalidate instead of refresh where needed
3784         - Factor the scrollable value into scrollbar updating
3785         - Update the scrollbars if the Scrollable property is altered
3786         - Update the selected node if its ImageIndex is changed
3787         - Handle null nodes in UpdateNode (mainly so we don't have to
3788         check if selected is null when updating it
3789         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3790         are factored into the visible count
3791         - Use VisibleCount for clarity in the code
3792         - When the font is changed we need to recurse through all the
3793         nodes and invalidate their sizes
3794         
3795 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3796
3797         * Application.cs: set the DialogResult to fixed when the main form is
3798         hidden or destroyed while being modal.
3799
3800 2006-05-25  Miguel de Icaza  <miguel@novell.com>
3801
3802         * Theme.cs: Use Tangoified messagebox icons. 
3803
3804         (GetSizedResourceImage): Also cope with width = 0 and do not
3805         trigger a warning in that case (0 means "give me your icon from
3806         the resouce, no special size needed).
3807
3808 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3809
3810         * Application.cs: Leave runloop if the the main modal form is 
3811           hidden (fixes #78484)
3812
3813 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
3814
3815         * BindingContext.cs : reject null datasource in Contains() and
3816           Item[].
3817         * CurrencyManager.cs : check data_member validity when data_source
3818           is dataset. When it is late binding, the initial position is -1.
3819
3820 2006-05-24  Jackson Harper  <jackson@ximian.com>
3821
3822         * TreeNodeCollection.cs: Dont't recalculate the visible order on
3823         inserted nodes that aren't visible.  This changes the
3824         max_visible_order which confuses scrollbar settings.
3825         - Use the enumerator to get the prev node instead of duplicating
3826         code.
3827         * TreeView.cs: Use new method for setting scrollbar values
3828         - Don't set the bounds every time the scrollbar is updated
3829         - When updating below the root node use an invalidate instead of a
3830         refresh to prevent the child controls (scrollbars) from being
3831         refreshed. (UpdateBelow still needs to be reworked anyways).
3832         - Reenable SetBottom now that visible orders are set correctly,
3833         added some debug code incase we ever get bad values there again.
3834         - Set the scrollbar max to 2 less then the max value, this
3835         compensates for the max value being one above the node count, and
3836         for scrollbars adding one extra "notch".
3837         - When drawing image nodes if there is an imagelist we draw the
3838         first image in the list if the supplied image index is out of the
3839         image list's bounds.
3840         
3841 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3842
3843         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
3844           we receive a size change from the WM (Fixes #78503)
3845
3846 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
3847
3848         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
3849           rectangle (Fixes #78501)
3850
3851 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3852
3853         * ButtonBase.cs: 
3854           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
3855             as a bitfield.
3856           - Fixed MouseMove to no longer switch pressed state unless the left
3857             mouse button is pressed. Atsushi provided the original patch (#78485)
3858           
3859 2006-05-24  Jackson Harper  <jackson@ximian.com>
3860
3861         * ScrollBar.cs: New internal methods that allow us to change a
3862         couple values on the scrollbar (the most common case is maximum
3863         and large change) without getting multiple invalidates.
3864
3865 2006-05-24  Chris Toshok  <toshok@ximian.com>
3866
3867         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3868         (Edit): save off the original state in oldState, and set
3869         grid.is_editing to true.
3870         (OnKeyDown): abort editing if escape is pressed.  also, call
3871         NextState if space is pressed.
3872         (OnMouseDown): call NextState.
3873         (NextState): factor out shared code from OnKeyDown and OnMouseDown
3874         here.  Also, only invalidate the row header once (on the initial
3875         is_changing switch) to save on redraws.
3876
3877 2006-05-24  Chris Toshok  <toshok@ximian.com>
3878
3879         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3880         if the value in the cell is different than it was before.  This
3881         keeps us from triggering a layout when we move around a datarid
3882         with a highlighted cell.
3883         (Edit): suspend layout when creating/positining the text box, and
3884         resume passing false so we don't ever actually re-layout.
3885         (ReleaseHostedControl): same.
3886         (EnsureTextBox): reformat slightly, and set WordWrap to false.
3887
3888         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3889         control-key sequences should go to the datagrid - remove that
3890         lock.  Also, modify the conditions under which we move between
3891         cells when moving the cursor within a cell, and remove the "this"
3892         and "base" from field accesses.  We weren't even consistent, given
3893         they all were in the base class.
3894
3895 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
3896
3897         * Binding.cs : (.ctor)
3898           An obvious NRE fix for BindingTest.CtorNullTest().
3899
3900 2006-05-23  Chris Toshok  <toshok@ximian.com>
3901
3902         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3903         them between lines.  This fixes some quirks editing cells in the
3904         datagrid.
3905
3906 2006-05-23  Jackson Harper  <jackson@ximian.com>
3907
3908         * TreeView.cs: Use begin/end update when doing expand/collapse all
3909         so that we don't get flicker on the scrollbar.
3910
3911 2006-05-23  Jackson Harper  <jackson@ximian.com>
3912
3913         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
3914         treenode calculations to be independant of the painting code. To
3915         do this nodes track a visible order which is calculated by the
3916         treeview.
3917         - Call new methods for expanding/collapsing nodes.  These methods
3918         use scrollwindow so we don't have to update everything below the
3919         node.
3920         * TreeView.cs: Refactored drawing and scrolling code.  We don't
3921         need to update nodes when drawing anymore or calculate scrollbar
3922         stuff.
3923         - Added new methods for expanding/collapsing nodes. These methods
3924         use ScrollWindow so as to not have to redraw all the nodes below.
3925         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3926         we add/remove nodes or sort.
3927         - Handle removing the selected and the top node properly.
3928
3929 2006-05-23  Chris Toshok  <toshok@ximian.com>
3930
3931         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3932         maybe this should actually happen in the datagrid code?
3933         (EndEdit): no need to invalidate anything, given that
3934         ReleaseHostedControl causes the datagrid to relayout, which
3935         invalidates everything anyway.
3936
3937         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3938         in SetCurrentCell).
3939         (set_SelectionBackColor): call InvalidateSelection instead of
3940         Refresh.
3941         (set_SelectionForeColor): same.
3942         (BeginEdit): Flesh this out a bit.
3943         (CancelEditing): only do any of this if we're editing/adding.
3944         (EndEdit): same.
3945         (OnMouseDown): there's no need to cancel editing here, it's done
3946         in SetCurrentCell.
3947         (SetCurrentCell): only invalidate the current row header if it's a
3948         different row than the new one.
3949         (ShiftSelection): fix this to work like MS does.
3950         (ResetSelection): factor out the invalidation of selected_rows to
3951         InvalidateSelection.
3952         (SetDataSource): cancel any editing that's going on.
3953
3954         * DataGridColumnStyle.cs
3955         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3956         call the non-interface version.
3957
3958         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3959         header rectangle with the clip rectangle so we don't redraw the
3960         entire header for just a small area.  Gets rid of the last flicker
3961         when horizontally scrolling.
3962         (DataGridPaintRow): same.
3963
3964 2006-05-23  Mike Kestner  <mkestner@novell.com>
3965
3966         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3967         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
3968         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
3969         Critical bug report.
3970
3971 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3972
3973         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3974           and this fixes #78493
3975
3976 2006-05-23  Miguel de Icaza  <miguel@novell.com>
3977
3978         * Theme.cs (GetSizedResourceImage): Scale images if the proper
3979         size is not found.  
3980         
3981         * FileDialog.cs: Do not change the background for the side bar as
3982         it wont work nicely with the theme, and also reduces the artifacts
3983         in rendering the icons (which I want to fix too).
3984
3985         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3986         resources, not resgen resources. 
3987
3988         (PlatformDefaultHandler): Pull images using the new API.
3989
3990 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3991
3992         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3993           a reference to the hwnd and will not remove it unless there are
3994           no pending exposures (fixes #78341)
3995         * XplatUI.cs: Improved debug
3996
3997 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
3998
3999         * MenuAPI.cs : don't handle OnClick event when it was not the left
4000           button. Fixed bug #78487.
4001
4002 2006-05-23  Mike Kestner  <mkestner@novell.com>
4003
4004         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
4005         prefer submenus to the top menu for item lookup, to avoid popping down
4006         top-row items.
4007
4008 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
4009
4010         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
4011           Graphics.FillRectangle as the visual results are really bad (even
4012           on win). We now draw perfect arrows (and perfect shadows when the
4013           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
4014           Pen.DashPattern to draw the dots of each line.
4015
4016 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
4017
4018         * FileDialog.cs: Update the filename combobox when navigating through
4019           the ListView with the cursor keys. Fixes part 7 of bug #78446.
4020
4021 2006-05-22  Mike Kestner  <mkestner@novell.com>
4022
4023         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
4024         Fixes #78463.
4025
4026 2006-05-22  Mike Kestner  <mkestner@novell.com>
4027
4028         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
4029         requests. Fix a misspelled parameter and a copy paste exception error
4030         in Select.
4031
4032 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
4033
4034         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
4035           to get the same width/height (5/13) on X11 as the default font has on
4036           win32. This means that our DefaultFont emSize is smaller than the 
4037           the MS SWF equivalent (even thought the width/height stays the same)
4038
4039 2006-05-20  Jackson Harper  <jackson@ximian.com>
4040
4041         * MdiClient.cs:
4042         * MdiWindowManager.cs:
4043         * InternalWindowManager.cs: Make sure to use the border width from
4044         the theme.
4045
4046 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
4047
4048         * PrintDialog.cs: Implements printer details
4049
4050 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
4051
4052         * FileDialog.cs: Added focus handling for PopupButtonPanel.
4053           Fixes part 1 and 2 of bug #78446
4054
4055 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
4056
4057         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
4058           instead of sticking to the first ever calculated value
4059
4060 2006-05-19  Mike Kestner  <mkestner@novell.com>
4061
4062         * ComboBox.cs: fix mouse motion selection to use MousePosition and
4063         PointToClient, since Capture is set. Fixes #78344.
4064
4065 2006-05-19  Mike Kestner  <mkestner@novell.com>
4066
4067         * ListView.cs: match MS behavior in Details view where items are not
4068         drawn if Columns.Count == 0. 
4069         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
4070         Use a separate pen to draw the check, since changing the width affects
4071         the box as well.  Fixes #78454.
4072
4073 2006-05-18  Miguel de Icaza  <miguel@novell.com>
4074
4075         * ListView.cs: ArgumentOutOfRangeException, single versions of the
4076         exception should throw the name of the invalid argument.
4077
4078         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
4079         there are no files listed. 
4080
4081 2006-05-18  Jackson Harper  <jackson@ximian.com>
4082
4083         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
4084         up.
4085
4086 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
4087
4088         * Control.cs: Brought back our old UpdateZOrder method as a private
4089           function and switched our calls from UpdateZOrder to the new one.
4090           This fixes the Paint.Net canvas disappearing bug.
4091
4092 2006-05-18  Jackson Harper  <jackson@ximian.com>
4093
4094         * Theme.cs:
4095         * ThemeWin32Classic.cs:
4096         * InternalWindowManager.cs: Move the drawing into the theme,
4097         expose everything the theme should need from the window manager.
4098
4099 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4100
4101         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
4102           from the call to NativeWindow to avoid walking up the parent chain
4103           further than needed (speeds up setting cursors and avoids setting
4104           the wrong cursor if a parent has another cursor defined)
4105         * Cursor.cs: When loading an icon as cursor, MS uses the center of
4106           the icon as hotspot, not what's contained as hotspot in the icon
4107           file. This fixes the perceived drawing offset seen with Paint.Net
4108         
4109 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
4110
4111         * XplatUIX11.cs: 
4112           - Store the calculated rectangle in Hwnd object and use it when 
4113             setting the client size
4114           - Force Toolwindows to always be type Dock, to ensure they're on top
4115
4116 2006-05-18  Mike Kestner  <mkestner@novell.com>
4117
4118         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
4119         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
4120         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
4121         Substantial refactoring to remove confusing nested classes. Coding
4122         standard and Get+Set->property refactorings.  Shift to index based
4123         highlighting in ComboListBox instead of constantly using IndexOf and
4124         Items[]. Add invalidations on resize for DropDownList to fix ugliness
4125         in FileDialog growth.  Draw borders manually since Simple mode needs
4126         to look like two independent controls.  Make listbox border
4127         conditional to DropDownStyle.  Improved OwnerDraw support.
4128
4129 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
4130
4131         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
4132         Don't set the disposed graphics to null, so we can throw the "right"
4133         exception if the graphics is reused later (added a flag to avoid 
4134         double disposing). Some behaviours are different under 2.0 and are
4135         filled under bug #78448.
4136
4137 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4138
4139         * Control.cs: When double-buffering is enabled, we need to reset
4140           our graphics context between paint calls. Otherwise, any 
4141           transformations and other alterations on the context will 
4142           become cumulative (#77734)
4143
4144 2006-05-18  Mike Kestner  <mkestner@novell.com>
4145
4146         * ListView.cs: do focused item selection like MS on clicks. 
4147         Rework focus handling for ItemControl so LostFocus invalidates as
4148         well.
4149         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
4150         the ListView ItemControl has focus.
4151
4152 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
4153
4154         * XplatUIX11.cs: If client_window ends up being width or height zero
4155           due to border settings, move it off window inside whole_window (#78433)
4156
4157 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4158
4159         * Mime.cs: Shrink the mime file cache correctly.
4160
4161 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4162
4163         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
4164
4165 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4166
4167         * XplatUIX11.cs (AddExpose): More sanity checks
4168
4169 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4170
4171         * XplatUIX11.cs:
4172           - AddExpose: Don't add expose ranges outside the size of our
4173             window
4174           - Cast opacity values to Int32 to avoid crashes with certain
4175             values
4176           - Added disabled code paths that protect against illegal cross-
4177             thread painting (Developers.exe)
4178
4179 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4180
4181         * ProgressBar.cs: Invalidate the control when it's resized
4182           since block size is based on control size. (#78388)
4183
4184 2006-05-16  Miguel de Icaza  <miguel@novell.com>
4185
4186         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
4187         of setting the incoming argument to the "reset" value, we set the
4188         this.datamember to string.empty (before we were invalidating the
4189         incoming data).   
4190
4191         Fixes 78420
4192
4193 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4194
4195         * Form.cs: Only apply transparency settings after the form
4196           is created. (Fixes #77800)
4197
4198 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4199
4200         * ApplicationContext.cs: Grab the HandleDestroyed event so
4201           we know when to fire OnMainFormClosed 
4202
4203 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4204
4205         * Application.cs: Introduced sub-class to allow tracking of
4206           threads and centralized triggering of the event mess for
4207           ThreadExit, AppExit, etc..  (#76156)
4208
4209 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
4210
4211         * MimeIcon.cs:
4212           - Do not return a null icon index value for a mime subclass.
4213             Instead try the main mime type class too.
4214           - Seems that some newer distributions don't have a link to some
4215             gnome default icons anymore. So check the default gnome dir too.
4216           
4217
4218 2006-05-16  Jackson Harper  <jackson@ximian.com>
4219
4220         * MdiClient.cs: Don't paint the parent background image if we have
4221         our own background image.
4222
4223 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4224
4225         * Control.cs:
4226           - PerformLayout: Do not shrink space filled by DockStyle.Fill
4227             controls, all filled controls are supposed to overlap (#78080)
4228           - UpdateZOrder is supposed to update the control's z-order in the
4229             parent's z-order chain. Fixed to behave like that
4230           - BringToFront: Removed obsolete code
4231           - SendToBack: Simplyfied
4232           - SetChildIndex: Trigger layout calculations when Z-order changes
4233             since layout is done by z-order
4234
4235 2006-05-16  Chris Toshok  <toshok@ximian.com>
4236
4237         [ fixes bug #78410 ]
4238         * DataGrid.cs (set_AlternatingBackColor): use
4239         grid_drawing.InvalidateCells instead of Refresh().
4240         (set_BackColor): call grid_drawing.InvalidateCells.
4241         (set_BackgroundColor): use Invalidate instead of Refresh.
4242
4243         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4244         invalidate the cell area.
4245
4246 2006-05-15  Chris Toshok  <toshok@ximian.com>
4247
4248         [ fixes bug #78011 ]
4249         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4250         on to DataGridPaintRow.
4251         (DataGridPaintRow): take a clip argument, and only draw the cells
4252         which intersect it.  same with the not_usedarea.
4253
4254         * Theme.cs (DataGridPaintRow) add @clip parameter.
4255
4256         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4257         XplatUI.ScrollWindow.
4258         (ScrollToRow): same.
4259
4260         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4261         with last column which was causing a gray swath to appear with the
4262         XplatUI.ScrollWindow code.
4263
4264 2006-05-15  Chris Toshok  <toshok@ximian.com>
4265
4266         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4267         use XplatUI.ScrollWindow.
4268         (VerticalScrollEvent): use XplatUI.ScrollWindow.
4269
4270 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
4271
4272         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4273
4274 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4275
4276         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4277           file since there are no equivalent X11 cursors
4278
4279 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4280
4281         * MonthCalendar.cs : DateTimePicker should reflect selected date
4282           on mouse*up*, not mouse*down*. Fixed originally reported part of
4283           bug #76474.
4284
4285 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4286
4287         * TabControl.cs : When argument index is equal or more than tab
4288           count, just ignore. Fixed bug #78395.
4289
4290 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4291
4292         * Control.cs: Dispose all child controls when control is diposed (#78394)
4293
4294 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4295
4296         * ColorDialog.cs: Finally it is possible to select the color with
4297           the text boxes
4298
4299 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4300
4301         * PrintDialog.cs: Fix typo
4302
4303 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4304
4305         * PrintDialog.cs: PrintDialog is not resizable
4306         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
4307           color. Made some ToolBar drawing methods protected virtual.
4308
4309 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
4310
4311         * PrintDialog.cs: Implementation of the PrintDialog
4312
4313 2006-05-12  Chris Toshok  <toshok@ximian.com>
4314
4315         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
4316         thumb, instead use MoveThumb.  This has the side effect of making
4317         most of the other thumb moving machinery use MoveThumb as well.
4318         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
4319         need to actually invalidate the rectangle where the new thumb will
4320         go.
4321         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
4322         We force an Update() after, so it's not as fast as it could be,
4323         but at least there's zero flicker and no droppings.
4324         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
4325         (UpdateThumbPos): add another argument (dirty), which says whether
4326         or not to calculate/add dirty regions which we later invalidate.
4327         For cases where we know we're going to use MoveThumb, we pass
4328         false for this.  Otherwise, pass true.
4329
4330 2006-05-12  Jackson Harper  <jackson@ximian.com>
4331
4332         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
4333         the status bar.
4334         
4335 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
4336
4337         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
4338           and GetClipRegion methods and UserClipWontExposeParent property.
4339         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
4340           overriding UserClipWontExposeParent property, setting to false, since
4341           Win32 handles the required expose messages to draw our clipped parent
4342           areas internally
4343         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
4344           PaintEventStart to set the user clip region if set.
4345         * Control.cs: 
4346           - Now internally tracking the Region for the control since we need to
4347             store it if the handle is not yet created and only set it when it
4348             becomes created. Before setting the region forced handle creation
4349           - Added code to draw the parents underneath a user-clipped region
4350         * Hwnd.cs: Added UserClip property
4351
4352 2006-05-12  Chris Toshok  <toshok@ximian.com>
4353
4354         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
4355         (set_Maximum): same.
4356         (set_Minimum): same.
4357         (set_SmallChange): same.
4358         (OnMouseUpSB): remove the call to refresh when releasing the
4359         thumb.  We shouldn't need it.
4360         
4361 2006-05-12  Miguel de Icaza  <miguel@novell.com>
4362
4363         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
4364         AutoSize set to None, we do not need to relayout everything, we
4365         just need to invalidate the current region.
4366
4367         (Draw): Do not draw the entire ClientArea, just redraw the
4368         clip area being passed.
4369
4370         * MdiClient.cs: Make MdiClient constructor with the Form argument
4371         internal. 
4372
4373 2006-05-12  Jackson Harper  <jackson@ximian.com>
4374
4375         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
4376         parents background image,  but strangely not their own.
4377         - (DrawStatusBarPanel): Take into account horizontal alignment
4378         when drawing the strings and icons.
4379
4380 2006-05-12  Mike Kestner  <mkestner@novell.com>
4381
4382         * ListBox.cs: avoid invalidations for focus when the collection is
4383         empty. 
4384
4385 2006-05-12  Chris Toshok  <toshok@ximian.com>
4386
4387         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
4388         invalidate the entire thumb area.  Call InvalidateDirty which
4389         limits the redraw to the thumb itself and surrounding pixels.
4390
4391         * XplatUIX11.cs (ScrollWindow): optimize copying.
4392         
4393 2006-05-12  Chris Toshok  <toshok@ximian.com>
4394
4395         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
4396         Figure out the positioning/layout in a single pass instead of
4397         multiple recursive invocations.  Speeds up the initial display of
4398         the data grid.  Also, make many things private that were
4399         originally public but unused outside this class.
4400
4401 2006-05-11  Jackson Harper  <jackson@ximian.com>
4402
4403         * MdiClient.cs: Improved layout code.
4404
4405 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
4406
4407         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
4408           not SelectedObject.
4409
4410 2006-05-11  Chris Toshok  <toshok@ximian.com>
4411
4412         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
4413         union of that will always be {0,0,width,height}.
4414
4415 2006-05-11  Jackson Harper  <jackson@ximian.com>
4416
4417         * Form.cs: Match MS's DefaultSize for forms (they must have
4418         changed the size in sp2).
4419
4420 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4421
4422         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
4423
4424 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4425
4426         * TextControl.cs : Fixed bug #78109. This incorrect position
4427           comparison caused crash on automatic line split.
4428         * TextBoxBase.cs : reduce duplicate code.
4429
4430 2006-05-10  Jackson Harper  <jackson@ximian.com>
4431
4432         * MdiClient.cs: Active form is only sent to the back when using
4433         the Next form functionality, when a form is clicked the current
4434         active shouldn't be sent to the back.
4435         - Layout the mdi windows when the container is first made visible.
4436         * Form.cs: Give the MdiClient a ref to the containing form when we
4437         create it.
4438         
4439 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4440
4441         * LinkLabel.cs : link_font could be uninitialized, so populate one
4442           before actual use. Fixed bug #78340.
4443
4444 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4445
4446         * XplatUIX11.cs : clipboard format native value is IntPtr.
4447           Fixed bug #78283.
4448
4449 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4450
4451         * Control.cs: 
4452           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
4453             which is passed up the parent chain by DefWndProc
4454           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
4455             to DefWndProc (#77956)
4456         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
4457
4458 2006-05-10  Jackson Harper  <jackson@ximian.com>
4459
4460         * MdiClient.cs: We need to remove the controls from the mdi
4461         collection, when we close the window.
4462         * MdiWindowManager.cs: Special handling of closing mdi windows.
4463         * InternalWindowManager.cs: Make the close method virtual so the
4464         mdi window manager can handle it specially.
4465
4466 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
4467
4468         * DataGrid.cs:
4469           - Recalculate grid when the data source has changed
4470           - Matches styles provided by user from all data sources types
4471         * DataGridTableStyle.cs: For columns that provided by the user set the
4472         with the preferred value is there was unassigned.
4473         * CurrencyManager.cs: throw OnItemChanged event
4474
4475 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
4476
4477         * PictureBox.cs: Don't animate until handle is created. Start animation
4478           when handle is created.
4479
4480 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4481
4482         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4483           current codebase.
4484         * XEventQueue.cs: We don't need to provide the extra info
4485
4486 2006-05-10  Jackson Harper  <jackson@ximian.com>
4487
4488         * MdiClient.cs: If the mdi clients parent form has a background
4489         image set, we draw that background image for the mdi area's
4490         background.
4491
4492 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4493
4494         * TextBoxBase.cs: Set IBeam cursor (#78347)
4495
4496 2006-05-10  Mike Kestner  <mkestner@novell.com>
4497
4498         * ToolBar.cs: fix some text padding issues with ButtonSize
4499         calculation. Update the default size to match MS documentation.
4500         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4501         button size. Fixes #78296.
4502
4503 2006-05-10  Mike Kestner  <mkestner@novell.com>
4504
4505         * ListBox.cs: use is_visible for scrollbar positioning in case the
4506         control isn't on screen yet.  Fix off by one with Right vs Width
4507         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4508         
4509 2006-05-10  Jackson Harper  <jackson@ximian.com>
4510
4511         * X11Dnd.cs: Drop to a control with another control on top of it.
4512         * ToolBar.cs: Work on a copy of the buttons list, so that it can
4513         be modified in click handlers. TODO: Look for similar problems in
4514         other controls.
4515
4516 2006-05-09  Jackson Harper  <jackson@ximian.com>
4517
4518         * Form.cs: Window managers need the old window state when setting
4519         window state now.
4520         * InternalWindowManager.cs: Allow the base mdi window manager to
4521         handle more of the MDI only stuff (like maximize buttons).
4522         * MdiWindowManager.cs: Fix some snafus in changing the window
4523         state.  Add all the menu functionality, for both popup and
4524         maximized menus.
4525         * MdiClient.cs: When a new form is selected the currently
4526         activated form is sent to the back, this matches MS.
4527         - Implement a new method to activate the next mdi child window.
4528
4529 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
4530
4531         * Control.cs: 
4532           - Added new InternalCapture method to allow controls to prevent
4533             the capture behaviour on the click handlers
4534           - Switched to use InternalCapture
4535         * ComboBox.cs:
4536           - Using InternalCapture to prevent mouse captures from being released
4537             on mouse button release (Fixes #78100)
4538         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4539           returns Form borders if a caption is present. (Fixes #78310)
4540
4541 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
4542
4543         * TreeNode.cs: Changed serialization .ctor to not require every field
4544           to be present. (#78265)
4545         * OwnerDrawPropertyBag.cs: Added serialization .ctor
4546
4547 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
4548
4549         * MimeIcon.cs: for is faster than foreach for strings.
4550
4551 2006-05-05  Mike Kestner  <mkestner@novell.com>
4552
4553         * CheckedListBox.cs: update check handling code to not use selected.
4554         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4555         behavior for visual feedback, motion response, shift/ctrl handling,
4556         and properly deal with all 4 selection modes. Updates to bounds
4557         handling logic.  Add scroll wheel support. [Fixes #77842]
4558
4559 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4560
4561         * ListView.cs:
4562           - Moved adding of Implicit controls into .ctor. That way, subsequent
4563             creation of the controls will not cause them to think they are 
4564             toplevel windows (fixes #78200 header problem)
4565           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
4566           - Switched visibility setting of header control to use internal field
4567             to avoid triggering handle creation
4568           - Now checking if handle is created before causing a refresh when items
4569             are added (This makes us now match handle creation time with MS)
4570         * Splitter.cs: Removed loading of private splitter cursor, switched to
4571           Cursors version now that that is loading the right ones
4572         * Cursors.cs: Load proper splitter cursors from resources
4573         * Cursor.cs: Added second method of loading resource cursors for the 
4574           VS.Net users amongst us
4575
4576 2006-05-05  Mike Kestner  <mkestner@novell.com>
4577
4578         * ListView.cs: give header_control a minimum size based on the
4579         ListView size.
4580
4581 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4582
4583         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
4584           window seems to do that with metacity, so set that type. (#78120)
4585
4586 2006-05-05  Mike Kestner  <mkestner@novell.com>
4587
4588         * ListViewItem.cs: fix Details mode checkbox layout bug.
4589         * ThemeWin32Classic.cs: draw a ListView column header for unused space
4590         at the end of the header, if it exists. [Fixes for #78200]
4591
4592 2006-05-04  Jackson Harper  <jackson@ximian.com>
4593
4594         * MdiClient.cs: Add a helper property to get the container form.
4595         * MdiWindowManager.cs: We have to make sure to use the menu origin
4596         when drawing the icons and buttons, this fixes maximized window
4597         icons/buttons on win32.
4598         * InternalWindowManager.cs: Reset the restore captions when a
4599         window goes from Maximized to Minimized and vice versa. Move the
4600         DrawMaximizedButtons into the MdiWindowManager source, tool
4601         windows can't be maximized. NOTE: This could use a little
4602         refactoring if time ever permits.
4603         
4604 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4605
4606         * TextBox.cs: Add MWFCategoryAttributes
4607         * TextBoxBase.cs: Add MWFCategoryAttributes
4608         * Form.cs: Add MWFCategoryAttributes
4609
4610 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4611
4612         * Control.cs: Add MWFCategoryAttributes
4613         * ScrollableControl.cs: Add MWFCategoryAttributes
4614
4615 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
4616
4617         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
4618           Divider is true. Fix a little glitch in PropertyToolBar
4619           drawing code
4620
4621 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
4622
4623         * Control.cs:
4624           - Dispose: Call base.Dispose, this causes the disposed event
4625             to be fired (and probably other, more important stuff)
4626           - SetVisibleCore: Set is_visible to true after creating the
4627             window so that the window still gets created invisible (if
4628             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
4629             to generate a WM_ACTIVE message
4630         * Form.cs: Call Dispose when we want to destroy the window, instead of
4631           just destroying the handle (Dispose will do that for us)
4632         * XplatUIX11.cs:
4633           - RootWindow also needs a queue, so we can properly process the
4634             property change events from RootWindow (like Activate)
4635           - Generatic synthetic WM_ACTIVE message when the active window is
4636             being destroyed
4637
4638 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4639
4640         * LinkLabel.cs: Trigger a recalc of our label dimensions when
4641           bounds are changed
4642
4643 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
4644
4645         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
4646           for determining width and height (image might not be assigned if
4647           we're drawing an imagelist)
4648
4649 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4650
4651         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
4652         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
4653           height from system
4654         * Theme.cs: No longer returns hardcoded menu height, instead calls
4655           new driver method
4656         * Form.cs (OnLoad): Scaling happens before triggering Load events 
4657           on MS (# 78257)
4658
4659 2006-05-01  Mike Kestner  <mkestner@novell.com>
4660
4661         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
4662
4663 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
4664
4665         * TextBoxBase.cs: Removed Fixme
4666         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
4667
4668 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
4669
4670         * XplatUIX11.cs:
4671           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
4672             the rectangle relative to the parent, considering borders. We
4673             don't really want that.
4674           - ScrollWindow: Fixed warning to be more understandable
4675         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
4676           scrollbars and scroll only the visible area
4677         * RichTextBox.cs: Removed debug output
4678
4679 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4680
4681         * NumericUpDown.cs (Text): Just use base
4682         * UpDownBase.cs: Ensure txtView is created before using it
4683
4684 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4685
4686         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
4687           casting to IntPtr to avoid 64bit overflow errors
4688
4689 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4690
4691         * Control.cs:
4692           - AllowDrop: Don't force handle creation.
4693           - CreateHandle: Added call to tell driver if we're allowed to drop
4694
4695 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4696
4697         * FileDialog.cs: Remember the last directory not only for the
4698           current instance but also for new FileDialog instances.
4699
4700 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4701         
4702         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
4703           broke sending async messages
4704
4705 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4706
4707         * XplatUIX11.cs:
4708           - ScrollWindow: Fixed method. We finally generate expose events again
4709             for scrolled areas. This was causing 'garbage' when scrolling
4710             textbox and other controls that used ScrollWindow
4711           - Switched from using the regular queue for paint events to the MS 
4712             model of 'generating' paint events when the queue is empty.
4713             We use the new XQueueEvent.Paint subclass to store which windows
4714             need painting.
4715           - AddExpose now takes the x/y/width/height of the exposed area
4716             and inserts the window into the paint queue if not already there
4717           - InvalidateWholeWindow: Switched to use new AddExpose method
4718           - UpdateMessageQueue: Added which queue to monitor for paint events
4719           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
4720             the unlikely case nothing above handles it. We reset the expose
4721             pending states to get them off the queue.
4722           - GetMessage: Now pulls a paint event if no other events are in the
4723             queue
4724           - Invalidate: Switched to new AddExpose method
4725           - PeekMessage: Updated to understand pending paint events
4726           - UpdateWindow: Fixed logic bug. We were only updating if the window
4727             didn't need updating. Also switched to sending WM_PAINT directly,
4728             like MS does.
4729         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
4730           and random access Remove(). The random access is needed to handle
4731           UpdateWindow() where a WM_PAINT is sent directly without accessing
4732           the queue.
4733         * ScrollBar.cs: Added Update() calls to cause immediate updates to
4734           allow for better feedback when scrolling. Scrollbars are small and
4735           the immediate update should make it 'feel' more responsive without
4736           slowing things down. ScrollBar still needs it's invaliate logic
4737           updated to not always invalidate the whole bar on certain changes.
4738
4739 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4740
4741         * Control.cs:
4742         (BackColor): if the control does not support a transparent background,
4743         return the default backcolor when the parent backcolor is transparent.
4744
4745 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
4746
4747         * Application.cs: Updated to new StartLoop/GetMessage API
4748         * RichTextBox.cs: Provide some output on RTF parsing errors
4749         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
4750           new queue_id argument to GetMessage and PeekMessage to allow faster
4751           handling of per-thread queues in drivers.
4752         * Hwnd.cs: Added Queue tracking and property
4753         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
4754         * XEventQueue.cs: Added thread trackingA
4755         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
4756         * XplatUIX11.cs:
4757           - Implemented new per-thread queue
4758           - GetMessage: Fixed return/break behaviour on several cases. We were
4759             returning stale messages in some cases, instead of just processing
4760             the next message
4761
4762 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4763
4764         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
4765
4766 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
4767
4768         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4769           fixed off-by-one comparisons between Width/Height and Right/Bottom.
4770
4771 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4772
4773         * PropertyGridView.cs: Fix drop down width.
4774
4775 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4776
4777         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4778           a mess in DrawToolBar, so I removed one of them.
4779
4780 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4781
4782         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4783           needed (clip). Otherwise we get artifacts.
4784
4785 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4786
4787         * FixedSizeTextBox.cs: Added constructor to allow specifying which
4788           dimension is fixed
4789         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4790           and switched FixedSizeTextBox to only be fixed vertical (#78116)
4791         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4792           if it matches the scale base font (avoids unneeded scaling)
4793
4794 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4795
4796         * X11DesktopColors.cs: One gtk_init_check should be enough
4797
4798 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
4799
4800         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4801           match MS behaviour
4802
4803 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4804
4805         * TextBoxBase.cs: 
4806           - Generate OnTextChanged for Backspace even if we're only deleting
4807             the current selection
4808           - When setting the Text property, only select all text if the
4809             control does not have focus when it is being set. Otherwise
4810             just place the cursor at the beginning of the control
4811
4812 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4813
4814         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4815           Added a little helper to draw PropertyGrid ToolBar with a different
4816           border and a different BackColor.
4817         * PropertyGrid.cs: Some background parts didn't get painted with the
4818           correct background color. Added a class that helps us to draw the
4819           correct border for PropertyGridView and a class that helps us to
4820           draw ToolBars with a different backcolor
4821         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4822
4823 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
4824
4825         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4826         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4827
4828 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4829
4830         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4831           into the palette entries. Also, since we're working on a copy
4832           we needed to copy the palette back onto the bitmap.
4833         * Cursor.cs: Same fix as XplatUIWin32.cs.
4834
4835 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
4836
4837         * ImageListStreamer.cs: Need to read the var (or we're off)
4838
4839 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4840
4841         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
4842           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4843           TextBoxBase.cs: Unused var fixes
4844         * AxHost.cs: Small 2.0 fix
4845         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
4846           as it seems that is what at least Metacity expects. This will make
4847           icons show up on 64bit platforms. We still have some 64bit size
4848           issues, though, since the startup app window size still won't match.
4849
4850 2006-04-25  Mike Kestner  <mkestner@novell.com>
4851
4852         * *.cs: cleanup newly reported exception var unused warnings.
4853
4854 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4855
4856         * ThemeWin32Classic.cs: Button image alignment now matches exactly
4857           ms
4858
4859 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4860
4861         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4862           image. The image position is always the same, no matter if the
4863           button is pressed or not.
4864
4865 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4866
4867         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4868           selection and set the correct filename for SaveFileDialog.
4869           Patch by Emery Conrad.
4870
4871 2006-04-24  Mike Kestner  <mkestner@novell.com>
4872
4873         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4874         check for item.X outside the ClientRect instead of item.Y. Fixes
4875         #78151.
4876
4877 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4878
4879         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4880         trust that value blindly and do some sanity check. Fixes bug #77814.
4881
4882 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4883
4884         * ImageListStreamer.cs: save the mask as a 1bpp image.
4885
4886 2006-04-21  Mike Kestner  <mkestner@novell.com>
4887
4888         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4889         pass Checked and Indeterminate to the Theme Engine. Improve
4890         encapsulation with ListBox.
4891         * ListBox.cs: Keep a StringFormat instead of calculating it every item
4892         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4893         nested types.  Move all CheckState functionality to CheckedListBox.
4894         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
4895         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
4896         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4897         single base list. Fix scrollbar sizing and placement to mirror MS.
4898         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4899         used.
4900         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4901         for CheckedListBox by using new DrawItemState info.  Center the
4902         checkboxes on the items. Use new StringFormat property.
4903
4904 2006-04-18  Jackson Harper  <jackson@ximian.com>
4905
4906         * Form.cs: MdiChildren don't do default locations the same way as
4907         regular forms.  This prevents a crash when trying to position the
4908         mdi windows.
4909
4910 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
4911
4912         * PropertyGridTextBox.cs: Formatting, copyright
4913         * PropertiesTab.cs: Formatting
4914         * PropertyGrid.cs: Formatting
4915         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
4916           click toggling of values
4917           
4918 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
4919
4920         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4921         * Control.cs (.ctor): verify_thread_handle is static, don't reset
4922           every time a control is created
4923         * Application.cs: Removed obsolete EnableRTLMirroring method
4924
4925 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
4926
4927         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4928         SelectedIndex to -1. Fixes bug #78121.
4929
4930 2006-04-17  Jackson Harper  <jackson@ximian.com>
4931
4932         * Binding.cs: Handle null values for Current and BindingContext.
4933         This occurs when binding is a little delayed.
4934         * CurrencyManager.cs: return null for Current when there are no
4935         items in the list.
4936         - Hookup to the listchanged event on the DataView and update
4937         bindings when the list is changed.  This fixes late binding of
4938         controls.
4939
4940 2006-04-17  Jackson Harper  <jackson@ximian.com>
4941
4942         * X11Dnd.cs:
4943         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4944         Ringenbach.
4945
4946 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
4947
4948         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4949           place
4950         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4951           with the correct ButtonState
4952
4953 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
4954
4955         * XplatUIX11.cs: Improved distinguishing between window types to
4956           tell the WM a type closer to what the app wants (Fixes #78107)
4957
4958 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4959
4960         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4961           GrabHandle
4962
4963 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4964
4965         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4966           drawing code to reflect the size grip changes
4967
4968 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4969
4970         * ImageListStreamer.cs: fix handling of the mask that follows the main
4971         bitmap when deserializing and serialize it properly. The generated mask
4972         should better be a 1bpp image, but I'll do that later.
4973
4974 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4975
4976         * FileDialog.cs: Show something in the DirComboBox on *nix if the
4977           path doesn't fit into some of our Current.Places
4978
4979 2006-04-13  Jackson Harper  <jackson@ximian.com>
4980
4981         * ComboBox.cs: Use borders instead of drawing our own decorations,
4982         try to obey correct rules for heights.
4983         * Theme.cs:
4984         * ThemeNice.cs:
4985         * ThemeClearLooks.cs:
4986         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4987         this is now handled by borders.
4988         - Remove unused DrawListBoxDecorationSize method.
4989         
4990 2006-04-13  Mike Kestner  <mkestner@novell.com>
4991
4992         * MenuAPI.cs: null guarding for the disbled click check fixes crash
4993         reported by Alex.
4994
4995 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4996
4997         * ThemeWin32Classic.cs: 
4998           - Fixed CPDrawStringDisabled
4999           - Corrected drawing of disabled menu items
5000           - Fixed drawing of disabled radio buttons (bug #78095)
5001           - Draw check in a disabled CheckBox with color ControlDark 
5002
5003 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5004
5005         * Form.cs: Use the provided width when calculating the menu size;
5006           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
5007           and ClientSize.Width won't be updated yet
5008         * Application.cs: Use Visible instead of Show() to make form visible,
5009           this way we create the handle later and menusize is considered
5010
5011 2006-04-12  Mike Kestner  <mkestner@novell.com>
5012
5013         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
5014         reporting.
5015
5016 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5017
5018         * TextBox.cs: Implemented context menu
5019
5020 2006-04-12  Mike Kestner  <mkestner@novell.com>
5021
5022         * ListView.cs: implement box selection. fixes #77838.
5023         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
5024
5025 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5026
5027         * XplatUIX11.cs: Added setting of window type when transient window
5028           is created (metacity would move it otherwise)
5029         * X11Structs.cs: Added WINDOW_TYPE atoms
5030         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
5031           background (the control is Opaque but still wants transparent
5032           backgrounds)
5033
5034 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5035
5036         * Control.cs: Added OnPaintBackgroundInternal to allow controls
5037           that set Opaque but don't mean it (like all ButtonBase-derived
5038           controls) to still draw their background
5039         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
5040           the background
5041
5042 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5043
5044         * Control.cs (PaintControlBackground): Set the graphics object
5045           on our PaintEvent to null to prevent it from being disposed
5046           when the PaintEvent gets disposed
5047
5048 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
5049
5050         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
5051         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
5052
5053 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5054
5055         * Control.cs: 
5056           - Added transparency check to BackColor property. Transparent
5057             backgrounds are only allowed if the control styles permit it
5058           - Added recursive painting of parent control background and
5059             foreground if a control with a transparent backcolor is drawn
5060             (Thanks to Tim Ringenback for providing his 'hack' as a base
5061              for this patch) Fixes #77985 and #78026.
5062           - Added Opaque style check before calling OnPaintBackground, no
5063             need to draw the background if the control is opaque
5064           - Removed ControlAccessibleObject owner variable (inherited from
5065             base, no need to define again)
5066           - Added some documentation links explaining the drawing events
5067             and styles
5068
5069 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5070
5071         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
5072           that the affected control is the located at the left border of our
5073           parent (Fixes #77936)
5074
5075 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5076
5077         * TextBoxBase.cs: When rendering disabled or readonly controls,
5078           draw the background with 'Control' instead of 'Window' color as
5079           long as the user hasn't specifically set a color
5080
5081 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5082
5083         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
5084           since that won't be updated if the user types text (only if it's
5085           programatically set)
5086
5087 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5088
5089         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
5090           layout changes do to app-triggered resizes will have the proper
5091           display rectangle for layout
5092
5093 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
5094
5095         * ThemeWin32Classic.cs:
5096           - Make use of the SystemBrushes and SystemPens wherever possible
5097           - Corrected some highlight colors
5098           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
5099             drawing
5100         * Theme.cs: Added Empty field to CPColor struct
5101
5102 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5103
5104         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
5105           is displayed when calculating the display rectangle. Thanks to Mike
5106           for teaching me the err of my ways.
5107
5108 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
5109
5110         * ScrollableControl.cs:
5111           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
5112             (instead of 0,0) and we now return the real width/height instead of
5113             just the clientrectangle, adjusted for padding. The rectangle is
5114             now cached and created by the new CalculateDisplayRectangle method.
5115           - Created new CalculateDisplayRectange method, which basically does
5116             what get_DisplayRectangle() did originally, but now using the 
5117             right edge instead of DisplayRectangle to determine the size of
5118             our scrollbars
5119           - get_Canvas(): Fixed it to properly calculate canvas for 
5120             right/bottom controls which seem to be placed to the right/bottom
5121             of any controls that have a fixed location
5122           - Removed TODO that's taken care of
5123           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
5124             and SetDisplayRectLocation according to new MSDN2 docs
5125           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
5126             event when that is called, this is added for compatibility
5127           - ScrollControlIntoView(): Implemented.
5128           - Switched scrollbars to be implicit, they shouldn't be selectable
5129         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
5130           call it when the active control is set/changed
5131         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
5132         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
5133           implicit_control variable (used for native Win32 message generation)
5134         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
5135           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
5136         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
5137         * XplatUIStructs.cs: Added ScrollBarCommands enum
5138
5139 2006-04-10  Jackson Harper  <jackson@ximian.com>
5140
5141         * ButtonBase.cs:
5142         * CheckedListBox.cs:
5143         * ComboBox.cs:
5144         * DataGrid.cs:
5145         * DataGridView.cs:
5146         * Form.cs:
5147         * GroupBox.cs:
5148         * ListBox.cs:
5149         * PrintPreviewControl.cs:
5150         * ProgressBar.cs:
5151         * PropertyGrid.cs:
5152         * Splitter.cs:
5153         * StatusBar.cs:
5154         * TrackBar.cs:
5155         * UpDownBase.cs: Fixup base event overrides.
5156         
5157 2006-04-06  Mike Kestner  <mkestner@novell.com>
5158
5159         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
5160         all user-initiated value changes to min <= value <= max-thumbsz+1.
5161         (set_Value): check for vert/horiz when calculating new thumb position.
5162         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
5163         like MS does.
5164         (OnMouseMoveSB): refactor the thumb dragging code and refine
5165         invalidation logic to reduce flicker.
5166         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
5167         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
5168         (UpdateThumbPosition): small code readability cleanup
5169
5170 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
5171
5172         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
5173           different
5174
5175 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5176
5177         * ThemeNice.cs: Use a better graphics effect when a button is pressed
5178
5179 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5180
5181         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
5182         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
5183           This dramatically reduces the number of Pen.Dispose calls. 
5184           Where possible call ResPool methods only once instead of calling it
5185           over and over again (for example for the same color).
5186
5187 2006-04-06  Mike Kestner  <mkestner@novell.com>
5188
5189         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
5190         Also remove an unused private field on the collection. Fixes #77972.
5191
5192 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5193
5194         * ThemeNice.cs: Added ToolBar drawing code
5195
5196 2006-04-06  Mike Kestner  <mkestner@novell.com>
5197
5198         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
5199         I'm assuming that means we need to look up the toplevel for the
5200         provided control. Fixes the crash trace in #77911 but exposes another
5201         crash in some strange reflection usage in NDocGui.
5202
5203 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5204
5205         * ThemeNice.cs: Gave it a little silver touch and added Images
5206           method
5207         * FontDialog.cs: FontDialog is not resizable
5208         * FileDialg.cs: Added SizeGripStyle.Show
5209
5210 2006-04-05  Jackson Harper  <jackson@ximian.com>
5211
5212         * KeyboardLayouts.cs: Remove warning.
5213
5214 2006-04-05  Jackson Harper  <jackson@ximian.com>
5215
5216         * Control.cs: Enable OnPaintInternal so we can use it for drawing
5217         all of our controls instead of Paint +=.
5218         * ListBox.cs:
5219         * ListView.cs:
5220         * MenuAPI.cs:
5221         * MessageBox.cs:
5222         * NotifyIcon.cs:
5223         * ProgressBar.cs:
5224         * ScrollBar.cs:
5225         * Splitter.cs:
5226         * StatusBar.cs:
5227         * TabControl.cs:
5228         * TextBoxBase.cs:
5229         * ToolBar.cs:
5230         * TrackBar.cs:
5231         * UpDownBase.cs:
5232         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
5233         use OnPaintInternal. Remove Width/Height and Visible checks in
5234         paint handler, this is done at a higher level now.
5235         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
5236         * PaintEventArgs.cs: Add a handled flag so controls that don't
5237         want anymore painting after OnPaintInternal can make sure OnPaint
5238         isn't called.
5239
5240 2006-04-05  Mike Kestner  <mkestner@novell.com>
5241
5242         * Form.cs: fix the menu WndProc hacks to respect the native enabled
5243         state of the form, so that we don't process events when Modal dialogs
5244         are up. Fixes #77922.
5245
5246 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
5247
5248         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5249           checking is done.
5250
5251 2006-04-05  Mike Kestner  <mkestner@novell.com>
5252
5253         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5254
5255 2006-04-05  Mike Kestner  <mkestner@novell.com>
5256
5257         * ListView.cs (HeaderMouseMove): null guarding for the over column
5258         when setting up the drag_to_index.  Fixes #78015.
5259
5260 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
5261
5262         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5263           in the taskbar. Transient windows seem to accomplish that.
5264
5265 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
5266
5267         * Form.cs:
5268           - Re-enabled CreateParams.X/Y code for FormStartPosition
5269           - Added code for manual placement when creating the Control
5270           - Incomplete patch to treat MDI forms differently when
5271             setting the ClientSizeCore. (Still need to figure out handling
5272             x/y coords there)
5273         * XplatUIX11.cs:
5274           - When we're explicitly setting the X/Y position of a non-Child
5275             window, let the WM know. Metacity really wants this.
5276
5277 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5278
5279         * ThemeNice.cs: Added CPDrawButton
5280
5281 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5282
5283         * ThemeNice.cs: Changed the color for focused buttons and activated
5284           the arrows for small scroll buttons.
5285
5286 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5287
5288         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5289           anymore. Changed some method modifiers to protected (virtual)
5290         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5291           changes
5292         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5293           Updated drawing of menus, buttons and progressbars; added
5294           CPDrawBorder3D 
5295
5296 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5297
5298         * ImageListStreamer.cs: implemented serialization/deserialization
5299         of the images.
5300
5301 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
5302
5303         * ThemeWin32Classic.cs:
5304           - Removed all the DrawFrameControl stuff; CPDrawButton,
5305             CPDrawCheckBox and CPDrawRadioButton are now handled directly
5306             inside the methods
5307           - Updated and corrected the drawing code of CPDrawButton,
5308             CPDrawCheckBox and CPDrawRadioButton to better match ms
5309           - Updated theme checkbox and radiobutton code to use the CP*
5310             methods
5311
5312 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5313
5314         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
5315           bug is fixed
5316
5317 2006-03-31  Jackson Harper  <jackson@ximian.com>
5318
5319         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
5320         sometimes.
5321         * UpDownBase.cs: Don't CreateGraphics manually, use a
5322         Refresh. Ideally we would invalidate the correct areas here.
5323
5324 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5325
5326         * XplatUIX11.cs: 
5327           - We now track the mapping state of windows. If a window (or 
5328             one of it's parents) is not mapped we no longer permit
5329             WM_PAINT messages to be generated since we'd otherwise get 
5330             lots of BadMatch X errors. Jackson did all the work figuring
5331             out the problem.
5332           - Destroying the caret if the window it's contained in is 
5333             destroyed. Can't use regular DestroyCaret method since it
5334             might fall into a drawing function (trying to remove the
5335             caret) and with that generate new BadMatch errors. Again,
5336             Jackson tracked this down.
5337           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
5338             make sure we send the messages to all windows. (The old code
5339             would send the WM_DESTROY to the window, and then all child
5340             windows would be 'gone' because the WM_DESTROY handle lookup
5341             would no longer find the destroyed window)
5342         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
5343         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
5344
5345 2006-03-31  Jackson Harper  <jackson@ximian.com>
5346
5347         * ScrollableControl.cs: Dont recalc if we are not visible.
5348
5349 2006-03-31  Mike Kestner  <mkestner@novell.com>
5350
5351         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
5352         the visibility branch.
5353
5354 2006-03-31  Jackson Harper  <jackson@ximian.com>
5355
5356         * ScrollBar.cs: Cap values when incrementing/decrementing.
5357
5358 2006-03-31  Mike Kestner  <mkestner@novell.com>
5359
5360         * MenuAPI.cs: setup menu.tracker for popup/context menus.
5361         * ToolTip.cs: guard against timer expirations with no active control.
5362         Not sure why it happened.
5363
5364 2006-03-31  Mike Kestner  <mkestner@novell.com>
5365
5366         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
5367         text.
5368         * ToolTip.cs: Position the tooltip based on where the cursor is at
5369         popup time, not at MouseEnter time.  Add a Down state so that we don't
5370         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
5371         positioning offset. Lookup DisplaySize at positioning time, since it
5372         can theoretically change during invocation.
5373         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
5374         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
5375
5376 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5377
5378         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
5379           Fixes behaviour when the Text property of the box is String.Empty
5380
5381 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
5382
5383         * XplatUIX11.cs: Only send mouseleave for our client windows, not
5384           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
5385           a window)
5386
5387 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5388
5389         * FileDialog.cs: Visual enhancement for the popup buttons in 
5390           PopupButtonPanel
5391
5392 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5393
5394         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
5395           code
5396
5397 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
5398
5399         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
5400           highlighted menu items to match ms
5401
5402 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
5403
5404         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
5405
5406 2006-03-30  Mike Kestner  <mkestner@novell.com>
5407
5408         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
5409         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
5410         go active to account for HotLight to Selected transition.
5411         * MenuItem.cs: add internal Selected prop. Fill out the Status
5412         property by calculating it from item info. Add HotLight,
5413         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
5414
5415 2006-03-30  Mike Kestner  <mkestner@novell.com>
5416
5417         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
5418
5419 2006-03-29  Jackson Harper  <jackson@ximian.com>
5420
5421         * Form.cs: Implement TODO.
5422
5423 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
5424
5425         * PrintPreviewDialog.cs: Implemented missing methods and events; still
5426           missing proper dialog setup in the constructor
5427
5428 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
5429
5430         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
5431         * Control.cs:
5432           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
5433           - Fixed ResetBindings and removed TODO
5434           - Added check for cross-thread calls to get_Handle()
5435           - Added Marshaller attribute for set_Font to satisfy class status
5436         * FontDialog.cs: Removed TODOs that seemed implemented
5437         * UpDownBase.cs: Removed unneeded TODO and Fixme
5438         * MessageBox.cs: Implemented support for Default button and removed TODO
5439         * FileDialog.cs: Removed obsolete TODO
5440         * DomainUpDown.cs: Removed obsolete TODO
5441         * ButtonBase.cs: Removed obsolete TODO
5442         * XplatUIWin32.cs: Removed obsolete TODO
5443         * Form.cs:
5444           - Removed obsolete TODO
5445           - Calling CheckAcceptButton when the acceptbutton is changed to allow
5446             internal status updates
5447           - Making sure the active control is selected when the control is created
5448         * CurrencyManager.cs: Removed obsolete TODO
5449
5450 2006-03-29  Mike Kestner  <mkestner@novell.com>
5451
5452         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
5453         of PrintPreviewDialog and RichTextBox.
5454
5455 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5456
5457         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
5458           DarkDark, Light and LightLight colors for a specific color
5459         * ThemeWin32Classic.cs:
5460           - Use Button drawing code to draw RadioButtons and CheckBoxes with
5461             Appearance = Button 
5462           - Make use of the new ResPool helper CPColor
5463           - Draw ProgressBar and StatusBar with correct 3D borders
5464
5465 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5466
5467         * ColorDialog.cs: Return selected color. Fixes bug #77940.
5468
5469 2006-03-28  Mike Kestner  <mkestner@novell.com>
5470
5471         * ListView.cs: fix Icon layout to plan for scrollbar widths when
5472         calculating col/row counts.
5473
5474 2006-03-28  Mike Kestner  <mkestner@novell.com>
5475
5476         * ColumnHeader.cs:
5477         * ListView.cs:
5478         * ListViewItem.cs:
5479         * Menu.cs: 
5480         switch to explicit interface method implementation for some methods
5481         corcompare identifies as inconsistent with MS.
5482
5483 2006-03-28  Mike Kestner  <mkestner@novell.com>
5484
5485         * MainMenu.cs: 
5486         * Menu.cs:
5487         add a few missing methods from the class status output.
5488
5489 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
5490
5491         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5492           correct.
5493
5494 2006-03-28  Mike Kestner  <mkestner@novell.com>
5495
5496         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5497
5498 2006-03-27  Mike Kestner  <mkestner@novell.com>
5499
5500         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5501         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5502
5503 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
5504
5505         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5506
5507 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5508
5509         * ThemeWin32Classic.cs:
5510           - GroupBox: Inserted a little gap between the text and the lines
5511             on the right side
5512           - Made the code in CPDrawBorder3D more readable
5513           - Corrected the drawing location of the up and down arrows in 
5514             CPDrawScrollButton
5515
5516 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5517
5518         * ControlPaint.cs: Corrected line widths in DrawBorder for
5519           ButtonBorderStyle Inset and Outset
5520
5521 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5522
5523         * ThemeWin32Classic.cs:
5524           - Rewrote the totally broken CPDrawBorder3D method. That was
5525             one of the main problems for the terrific ThemeWin32Classic
5526             look
5527           - Updated and corrected Button drawing
5528           - Correct the dimensions of the SizeGrip to match ms ones
5529           - Removed a small drawing glitch in DrawComboBoxEditDecorations
5530         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5531           Border3DStyle.Sunken to match ms.
5532
5533 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5534
5535         * ThemeWin32Classic.cs: First small part of the "de-uglify
5536           ThemeWin32Classic" effort, SizeGrip
5537
5538 2006-03-24  Jackson Harper  <jackson@ximian.com>
5539
5540         * XplatUIX11.cs: Give a max idle time of one second, this matches
5541         MS and forces an Idle event every second when there are no other
5542         events in the queue.
5543
5544 2006-03-24  Mike Kestner  <mkestner@novell.com>
5545
5546         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5547         * ListView.Item.cs: fix layout issues with null image lists and images
5548         smaller than checkbox size.
5549         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5550         mode like MS does.  It's weird, but consistent.  ;-)
5551         Fixes #77890.
5552
5553 2006-03-24  Mike Kestner  <mkestner@novell.com>
5554
5555         * ListView.cs: Scroll wheel support for the item control.  Fixes
5556         #77839.
5557
5558 2006-03-23  Jackson Harper  <jackson@ximian.com>
5559
5560         * ScrollableControl.cs: Special case negative sized areas, not
5561         zero.
5562         * MonthCalendar.cs: Save the rect of the clicked date so we can
5563         use it for invalidation.
5564         - Try to cut down on the number of invalidates
5565         - Invalidate the rect the mouse is over and was over when moving
5566         the mouse, so we get the focus box following the cursor.
5567
5568 2006-03-23  Mike Kestner  <mkestner@novell.com>
5569
5570         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
5571         focus rectangle drawing. Fixes #77835.
5572
5573 2006-03-23  Mike Kestner  <mkestner@novell.com>
5574
5575         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
5576         the if and else if and reverting back to the original == check on the
5577         None conditional.
5578
5579 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5580
5581         * FontDialog.cs: Update the example panel if the selected index of
5582           the fontListBox changes.
5583
5584 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5585
5586         * FileDialog.cs: Make FileDialog remember which directory it was in
5587           last in the same execution.
5588
5589 2006-03-22  Mike Kestner  <mkestner@novell.com>
5590
5591         * FileDialog.cs: make the DropDownMenu on the toolbar display
5592         RadioChecks since they are mutually exclusive and that's what MS does.
5593
5594 2006-03-22  Mike Kestner  <mkestner@novell.com>
5595
5596         * Theme.cs: add Color param to CPDrawMenuGlyph.
5597         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
5598         checks and radio marks and arrows are visible on highlighted items.
5599         * ControlPaint.cs: update to use new Theme signature.
5600
5601 2006-03-22  Mike Kestner  <mkestner@novell.com>
5602
5603         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
5604         is active. Fixes #77870.
5605
5606 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5607
5608         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
5609           to be focused/selected after startup
5610
5611 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5612
5613         * ColorDialog.cs: 
5614           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
5615             CustomColors and ShowHelp properties
5616           - Some internal rewrites to get better results when using the
5617             ColorMatrix
5618
5619 2006-03-22  Mike Kestner  <mkestner@novell.com>
5620
5621         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
5622         HoverSelection.  Fixes #77836.
5623
5624 2006-03-22  Mike Kestner  <mkestner@novell.com>
5625
5626         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
5627         ToggleButtons.  (De)Sensitize the Back button around a stack count of
5628         1, not 0.  Update ButtonSize based on a pixel count of the win32
5629         control.  Adjust the toolbar size/location for new button size.
5630
5631 2006-03-22  Jackson Harper  <jackson@ximian.com>
5632
5633         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
5634         true.
5635         * ScrollBar.cs: When doing increments and decrements we need to
5636         set the Value property so that ValueChanged gets raised. A
5637         possible optimization here would be to make an internal SetValue
5638         that doesn't invalidate immediately.
5639         * ToolTip.cs: Tooltips get added to their container (when
5640         supplied) so they get disposed when the container is disposed.
5641         - Don't create tooltips for String.Empty. This prevents all these
5642         little 2-3 pixel windows from showing up when running nunit-gui
5643         and driving me mad.
5644         * Form.cs: Don't set topmost when setting the owner if the handles
5645         haven't been created yet.  The topmost set will happen when the
5646         handles are created.
5647
5648 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
5649
5650         * XplatUIX11.cs:
5651           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
5652           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
5653             visible (to allow them to recalculate their sizes)
5654
5655 2006-03-21  Mike Kestner  <mkestner@novell.com>
5656
5657         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
5658         methods. Removed a ton of redundant code.  Still not really happy with
5659         the border rendering, but I think that's mainly because of the
5660         ControlDarkDark being black instead of a dark grey. Depending on how 
5661         close we want to be, we might want to revisit those color choices.
5662         Among the new features added during the refactor were DropDownArrow
5663         pressed rendering, Disabled image rendering.  Proper flat appearance
5664         boundary rendering.  Removed the Divider and Wrapping dividers since I
5665         can't figure out any combination of themes and conditions to make the
5666         MS control draw a horizontal line on a toolbar despite what the
5667         Divider property docs indicate.
5668         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
5669         conditions and incorrect layout.  Updated to coding standard.
5670         * ToolBarButton.cs: refactored layout and positioning code from
5671         ToolBar to here.  Invalidate wherever possible instead of forcing
5672         redraws of the whole toolbar. 
5673         (Known remaining issues: explicit ButtonSize smaller than provided
5674         images.)
5675
5676 2006-03-21  Mike Kestner  <mkestner@novell.com>
5677
5678         * ContextMenu.cs (Show): use the position parameter instead of just
5679         showing at the MousePosition.
5680
5681 2006-03-21  Jackson Harper  <jackson@ximian.com>
5682
5683         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
5684         control handle this.
5685         * TreeNodeCollection.cs: If we are clearing the root node we need
5686         to reset top_node so calcs can still happen.
5687         * ThemeWin32Classic.cs: This is a Flags so we need to check
5688         properly.
5689         
5690 2006-03-21  Jackson Harper  <jackson@ximian.com>
5691
5692         * DataGrid.cs: Create columns when the binding context has been
5693         changed.
5694         * X11Structs.cs: Keysyms are uints.
5695         - Add size to fix build.
5696
5697 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
5698
5699         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5700           XplatUIOSX.cs: 
5701           - Added ResetMouseHover method to allow controls to retrigger
5702             hovering if they need it more than once
5703           - Implemented MouseHoverTime and MouseHoverSize properties
5704         * Timer.cs: Start() must reset the interval
5705         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
5706           properties
5707
5708 2006-03-21  Jackson Harper  <jackson@ximian.com>
5709
5710         * X11Keyboard.cs: improved layout detection. Move the nonchar
5711         tables into this file.
5712         * KeyboardLayouts.cs: Move the tables into resource files.
5713
5714 2006-03-21  Mike Kestner  <mkestner@novell.com>
5715
5716         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
5717
5718 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
5719
5720         * Mime.cs: Various speed optimizations. Looking up mime types
5721           is now 2 times faster than before
5722
5723 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
5724
5725         * CreateParams.cs: Added internal menu field
5726         * Control.cs: 
5727           - Switched call order for UpdateBounds; now we always call
5728             the one that also takes ClientSize, and we're calculating the 
5729             client size via driver method in the others. The previous
5730             method of tracking client size by difference wasn't working
5731             for forms where even the starting client size wouldn't match
5732             the overall form size (due to borders) (Part of fix for #77729)
5733           - CreateParams(): Do not use parent.Handle unless the handle is
5734             already created. Causes havoc with Nexxia and throws off our
5735             creation of controls
5736         * XplatUIX11.cs:
5737           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
5738           - Switched handling of ConfigureNotify over to new PerformNCCalc 
5739             method (consolidates code)
5740           - Changed RequestNCRecalc to use new PerformNCCalc method
5741           - Added calls to RequestNCRecalc when menus and borders are changed
5742             to allow app to set NC size. (Part of fix for #77729) This matches
5743             when MS send a WM_NCRECALC on Win32 windows.
5744           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
5745             (Part of fix for #77729). This matches what MS does, they also
5746             send that message when the form is made visible.
5747           - XException.GetMessage: Improved usability of X errors by including
5748             a translation of the window into Hwnd and Control class
5749           - Improved debug info for window creation, reparenting and destruction
5750           - Created helper method WindowIsMapped() [Currently not used]
5751         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
5752         * Form.cs:
5753           - CreateParams: Now setting our menu on the new internal menu field
5754           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
5755             avoid calculating the same property twice
5756         * Hwnd.cs:
5757           - Improved usability of ToString() for debugging purposes
5758           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
5759             determine the height of the menu, instead of just the font. This
5760             required to also create a graphics context and to keep a bmp 
5761             around (for performance reasons)
5762
5763 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
5764
5765         * MenuAPI.cs: Added OnMouseUp method
5766         * Form.cs:
5767           - Now remembering the requested client size, avoids size errors
5768           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5769             instead of base if the menu is active. This is required due to
5770             control now capturing and releasing on down/up and it would
5771             prematurely release our menu capture
5772
5773 2006-03-17  Jackson Harper  <jackson@ximian.com>
5774
5775         * KeyboardLayouts.cs: Add the czech layouts.
5776
5777 2006-03-16  Jackson Harper  <jackson@ximian.com>
5778
5779         * Control.cs: Use the viewport space when sizing not the controls
5780         client size, so things like ScrollableControl that effect the
5781         viewport size (when scrollbars are added) are computed correctly.
5782         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5783         of ManagerEntrys.
5784         - Handle creating BindingManagers for null data sources.
5785         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5786         source, otherwise when rows are added they are added to the 'fake'
5787         datasource and we will crash when trying to set the position in
5788         those rows.
5789         - Use Implicit scrollbars on the datagrid so they arent
5790         selectable.
5791         
5792 2006-03-16  Jackson Harper  <jackson@ximian.com>
5793
5794         * Binding.cs:
5795         * InternalWindowManager.cs:
5796         * MdiWindowManager.cs:
5797         * X11Keyboard.cs: I really want Mike to love me again (fix
5798         compiler warnings).
5799
5800 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
5801
5802         * DataGrid.cs:
5803           - OnMouseDown: Switch to editing mode when clicking on the cell
5804                          even if we're clicking on the cell that's currently 
5805                          selected
5806           - ProcessGridKey: Left/Right now wrap like MS.Net does
5807           - ProcessGridKey: Tab now knows to add a new row when tab is
5808                             pressed in the cell of the last column of the 
5809                             last row
5810           - ProcessGridKey: Enter now adds another row  if pressed in the last
5811                             row and selectes the new row, same column cell
5812           - ProcessGridKey: Home/End navigate columns, not rows, like 
5813                             originally implemented
5814           - Broke ProcessKeyPreview code out into an extra Internal method
5815             so it can be called from the edit code
5816         * DataGridTextBox.cs (ProcessKeyMessage):
5817           - Switched to accept Tab keypresses
5818           - Added F2 handling to allow jumping to the end of the edited cell
5819           - Added logic to allow moving caret left/right inside edited cell
5820             and making the edited cell jump when the caret hits cell borders
5821           - Tab and Enter are now passed to the datagrid after being handled
5822         * TextBoxBase.cs:
5823           - Removed capture code now that Control handles it
5824           - set_SelectionStart now ensures caret is visible
5825
5826 2006-03-16  Jackson Harper  <jackson@ximian.com>
5827
5828         * TrackBar.cs: Debackwards the increment/decrement for handling
5829         mouse clicks on the bar with vertical trackbars.
5830         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5831         bottom to match MS.
5832
5833 2006-03-16  Mike Kestner  <mkestner@novell.com>
5834
5835         * ListView.cs: make shift/ctrl keyboard and mouse selection 
5836         consistent with the MS control. Fix a bug in
5837         SelectedListViewItemCollection.Clear that was pissing me off for the
5838         better part of a day because the collection was being altered
5839         underneath us as we walked the list.
5840
5841 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
5842
5843         * Control.cs: Not sure how we could miss this so long, but it seems
5844           that MS.Net has Capture set all the way from before calling 
5845           OnMouseDown through sending the mouse events until after
5846           OnMouseUp. This will fix DataGrid's selection being set to end
5847           at the location of the MouseUp.
5848
5849 2006-03-15  Jackson Harper  <jackson@ximian.com>
5850
5851         * BindingContext.cs: Check the binding after its added so that it
5852           can initialize the binding managers and hookup to events.
5853         * Binding.cs: Data members seem to sometimes include rows/cols in
5854           the format Row.Column we now take this into account.
5855           - Hookup to the position changed event so we can update the
5856           control when the position has changed in the data set.
5857         * CurrencyManager.cs: Take into account the row/col naming
5858           convention when creating dataset tables.
5859         * BindingContext.cs: Using a newer better way of storing
5860           datasource/datamember pairs.  Hopefully this better matches MS for
5861           looking up binding managers.
5862
5863
5864 2006-03-15  Jackson Harper  <jackson@ximian.com>
5865
5866         * BindingContext.cs: The currency manager needs the data member
5867         name, if the member is a data set we use the name to find the
5868         correct table.
5869         * CurrencyManager.cs: When creating the list prefer an IList over
5870         an IListSource.
5871         - Attempt to create a DataTable from a DataSet (TODO: might need
5872         some better error checking here, although MS doesn't seem to have much)
5873         - If we have a DataTable create a view and use it as our list.
5874
5875 2006-03-15  Mike Kestner  <mkestner@novell.com>
5876
5877         * ListView.cs: keep a matrix of the icon mode layout to facilitate
5878         keyboard navigation. Support Up/Down/Left/Right selection correctly
5879         for all 4 View modes.
5880         * ListViewItem.cs: add internal row/col fields for icon layouts.
5881
5882 2006-03-15  Jackson Harper  <jackson@ximian.com>
5883
5884         * TabControl.cs: Redraw the tabs when we resize so their newly
5885         calculated sizes are drawn on screen.
5886         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
5887         composite characters.
5888         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5889         - filter events so that composite characters can be created
5890         patches by peter
5891         * X11Structs.cs: Add XIMProperties enum.
5892
5893 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5894
5895         * Control.cs (BringToFront, SendToBack): Don't use window or handle
5896           unless it's created
5897
5898 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5899
5900         * Control.cs (PerformLayout): We don't need to consider visiblity
5901           for anchoring, only for docking. This fixes 'whacky' alignment
5902           in listbox and other controls that use implicit scrollbars after
5903           the previous PerformLayout patch
5904         * ListBox.cs: Switched to use implicit scrollbars
5905           
5906 2006-03-14  Mike Kestner  <mkestner@novell.com>
5907
5908         * ToolBar.cs: 
5909         * VScrollBar.cs:
5910         - chain up the "new event" overrides to base and use
5911         OnEvent to raise them.  Part of fix for bug #76509.
5912
5913 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
5914
5915         * FileDialog.cs: Do not select an item in the parent directory
5916           on backspace
5917
5918 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5919
5920         * Control.cs (PerformLayout): It would seem that we considered
5921           invisible windows for our layout. Not quite the right thing
5922           to do. Now we don't any longer, thereby fixing bug #76889.
5923
5924 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5925
5926         * Control.cs (CanFocus): I goofed. A control can have focus 
5927           even though it's not selectable. Made it match MS docs.
5928
5929 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5930
5931         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5932           center by default (fixes #76895)
5933         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
5934           all uses of Border3DSides.All with the explicit ORd together
5935           Left|Right|Top|Bottom because I assume that nobody was aware 
5936           that All also implies a center fill. Most places I checked had
5937           a fill right above.
5938         * ProgressBarStyle.cs: Added
5939
5940 2006-03-13  Mike Kestner  <mkestner@novell.com>
5941
5942         * ListView.cs: fix breakage in drag shadow header positioning 
5943         from Peter's csc compilation fix.
5944
5945 2006-03-13  Mike Kestner  <mkestner@novell.com>
5946
5947         * ListView.cs: fix NRE produced by backspacing twice in a focused
5948         FileDialog.
5949
5950 2006-03-13  Mike Kestner  <mkestner@novell.com>
5951
5952         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5953
5954 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5955
5956         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5957           be changed
5958         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5959           the allowed size before making programmatic size changes
5960
5961 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
5962
5963         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
5964           set, metacity is broken and will still use the emty sizes in 
5965           the struct. (Fix for #77089)
5966
5967 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5968
5969         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
5970           WindowExStyles and marked both enums as Flags
5971         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5972           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5973           to match WindowStyles split
5974         * XplatUIX11.cs:
5975           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5976           - Updated to match WindowStyles split
5977         * XplatUIWin32.cs:
5978           - Fixed FosterParent creation, was using ExStyle on the Style field
5979             (This should help with Popup focus issues)
5980           - Updated to match WindowStyles split
5981
5982 2006-03-13  Jackson Harper  <jackson@ximian.com>
5983
5984         * MdiWindowManager.cs: Use the system menu height. Fixes some
5985         strange sizing issues.
5986
5987 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5988
5989         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5990         * TextBoxBase.cs:
5991           - Scroll to caret after inserting text (#77672)
5992           - Make scroll range one pixel higher, fixes off-by-one error (and
5993             makes underlines visible on the last line)
5994
5995 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
5996
5997         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5998           the keyboard state from being stuck with keys in 'pressed' state when
5999           focus is switched away via keyboard
6000         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
6001           reset the keyboard if no X11 KeyUp events are expected to come
6002         * X11Structs.cs: Switched type of Visible to bool to match driver
6003
6004 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
6005
6006         * TextControl.cs:
6007           - Switched caret to be just 1 pixel wide, matches MS and looks less
6008             clunky
6009           - Moved caret display 1 pixel down from the top of the control
6010             to improve view
6011           - InsertCharAtCharet: Update the selection start if moving the caret
6012             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
6013           - No longer always creating the caret when the caret methods are
6014             called. Only the actual ShowCaret/HideCaret will do that now
6015           - Only setting caret visible if the owner control has focus
6016           - UpdateView: Added invalidation-shortcut logic for center and right 
6017             aligned text. Previously we'd update all according to the left
6018             logic which caused drawing errors. Also fixed height of invalidated
6019             areas, now properly invalidating the whole area (was off-by-one)
6020           - owner_HandleCreated: Always generate the document when the
6021             handle is created; this ensures that 
6022         * TextBoxBase.cs:
6023           - Fixed situation where caret would disappear under the right
6024             window border, also improved scrolling behaviour on left-
6025             aligned textboxes
6026           - Fixed right-aligned textboxes to have a border to the
6027             right instead of the caret being under the right border
6028         * XplatUIX11.cs:
6029           - Switched from 'nested' to simple visible/not visible tracking 
6030             for caret (part of fix for #77671)
6031           - No longer passing through translated FocusIn/FocusOut messages
6032             since we were notifying too often and the wrong windows. Instead
6033             we just notify our focussed window of receiving or loosing focus
6034         * XplatUIWin32.cs: Switched from 'nested' show/hide 
6035           counting for caret to simple visible yes/no behaviour (part of 
6036           fix for #77671)
6037
6038 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6039
6040         * Mime.cs: Remove debug code...
6041
6042 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6043
6044         * MimeGenerated.cs: Removed
6045         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
6046           and subclasses) from /usr/(local/)share/mime and
6047           $HOME/.local/share/mime.
6048
6049 2006-03-10  Jackson Harper  <jackson@ximian.com>
6050
6051         * MdiWindowManager.cs: Recalc the NC area when a window is
6052         maximized/restored so that the menu area is drawn on forms that
6053         don't have a menu.
6054
6055 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6056
6057         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6058           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
6059           us to force a WM_NCCALCRESIZE message being sent. This is needed
6060           for MDI maximizing.
6061
6062 2006-03-10  Jackson Harper  <jackson@ximian.com>
6063
6064         * Form.cs: We need to use the ActiveMenu when calculating menu
6065         height.
6066         - Fix nullref when the window manager hasn't been created yet.
6067         * Control.cs: Fix nullref when we try to bring a control to the
6068         front that has no parent.
6069         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
6070         height.
6071         - Add a dummy item to the maximized menu so it always has the
6072         correct height. Otherwise when there are no menus we don't get our
6073         icon and buttons.
6074         
6075
6076 2006-03-10  Jackson Harper  <jackson@ximian.com>
6077
6078         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
6079         stuff.
6080         * Form.cs: Make the window_state internal so the window managers
6081         can track it.
6082         - When an MDI child is maximized let its window manager create the
6083         main menu (so it can add its icon).
6084         - Notify the window managers of state changes
6085         - Let the window manager paint its buttons and handle button
6086         clicks on the menu when it is maximized.
6087         * InternalWindowManager.cs: Move the prev_bounds into the mdi
6088         window manager, since tool windows don't use it, only mdi windows.
6089         - Tell the main form that we don't want it to handle NCPAINT
6090         itself to avoid extra painting.
6091         - Handle clicks on a maximized windows menu.
6092         - Handle window state changes
6093         - Handle minimize/maximize clicks correctly by setting the window state.
6094         * MdiWindowManager.cs: Add an icon menu that (the menu you get
6095         when clicking on the forms icon).
6096         - New method to create a forms maximized menu. This is its normal
6097         menu + an icon.
6098         - Handle window state changes.
6099         - Handle sizing of maximized windows.  Maximized windows are just
6100         drawn bigger then the parent visible area. All controls are still
6101         there, they are just outside the visible area (this matches windows).
6102         * MdiClient.cs: No scrollbars when a child window is maximized.
6103         - Let the children windows figure out how big they should be when
6104         sizing maximized windows.
6105         - Implement a version of ArrangeIconicWindows somewhat similar to
6106         Windows version.  There are some little differences, but I don't
6107         think any app will rely on the layout of minimized mdi windows.
6108
6109 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6110
6111         * Padding.cs: Several fixes to allow compiling with csc 2.0
6112
6113 2006-03-09  Jackson Harper  <jackson@ximian.com>
6114
6115         * Menu.cs:
6116         * MenuItem.cs: Cheap hack so we can add items to the list without
6117         the events being raised.  This allows adding mdi items during
6118         drawing. TODO: Should probably find a better time to add the items.
6119
6120 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6121
6122         * ThemeWin32Classic.cs:
6123           - CheckBox_DrawText: Added logic to not wrap if not enough space
6124             is available (Fix for bug #77727)
6125           - RadioButton_DrawText: Added logic not to wrap if not enough
6126             space is available (Fix for bug #77727). Also removed some
6127             duplicate code, DrawString always drawing the regular text
6128             before hitting the if statement.
6129
6130 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
6131
6132         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
6133
6134 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6135
6136         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
6137         * ContainerControl.cs: Partial implementation of some 2.0 scaling
6138           methods. Moved the new 2.0 properties into alphabetical order with
6139           other properties and added MonoTODO tags
6140
6141 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6142
6143         * AutoScaleMode.cs: Added. Fix build.
6144
6145 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6146
6147         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6148           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
6149           and was requiring premature handle creation for calls from above
6150         * Form.cs, Control.cs: Removed handle arguments from calls to
6151           CalculateClientRect()
6152
6153 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6154
6155         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
6156           drag_column.column_rect is MarshalByRef and can't be used that way
6157
6158 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6159
6160         * AxHost.cs: Added deserialization constructor for 
6161           AxHost+State (fixes 77743)
6162
6163 2006-03-09  Mike Kestner  <mkestner@novell.com>
6164
6165         * ListView.cs: 
6166         - Added column drag reordering for details view.
6167         - fixed behavior when mouse is dragged off column and
6168         AllowColumnReorder is false.
6169         * ColumnHeader.cs: clone the format too in Clone.
6170         * Theme.cs: add DrawListViewHeaderDragDetails method.
6171         * ThemeWin32Classic.cs:
6172         - impl new method for drawing drag column shadows and targets.
6173         - support column offset for details mode in DrawListViewItem.
6174
6175 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6176
6177         * TextControl.cs: Reset the char_count when the document is cleared
6178           (Fixes bug reported on mono-winforms mailing list)
6179
6180 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6181
6182         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
6183           of calling base we simply process the key ourselves, since both
6184           DefWindowProc and the handled method would set m.Result. 
6185           (Fixes #77732)
6186
6187 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6188
6189         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
6190           method also moves the window; instead implemented a copy of
6191           Control.ScaleCore (Part of fix for #77456)
6192         * TextBoxBase.cs: 
6193           - Created new CreateGraphicsInternal method to allow providing
6194             a graphics context when no handle is created without triggering
6195             handle creation. (Part of fix for #77456)
6196           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6197         * TextControl.cs: 
6198           - Switched Constructor to require TextBoxBase instead of Control (to
6199             allow uncast access to CreateGraphicsInternal)
6200           - Safeguarded use of owner.Handle property. No longer accessing it
6201             unless the handle is already created.
6202           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6203           - Now triggering a recalc when owning control becomes visible
6204         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
6205           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
6206           premature handle creation (Part of fix for #77456)
6207         * Control.cs:
6208           - We now only destroy our double-buffering buffers when the
6209             control is resized or disposed, but not when visibility
6210             changes. (The code even re-created them twice every time)
6211           - Now requiring a redraw of the buffer on visibility changes
6212             (fixes bug 77654 part 2)
6213           - Not passing OnParentVisibleChanged up unless the control
6214             is visible
6215           - CanFocus: Fixed to match MS documentation
6216           - Focus: Fixed to return actual focus state and to check if
6217             setting focus is legal before setting it
6218
6219 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
6220
6221         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
6222           when to draw focus rectangle by looking at parent focus and
6223           selected state instead. This fixes TabPages on Linux sometimes
6224           having none or multiple focus rectangles.
6225         * XplatUIX11.cs (SetFocus): 
6226           - Don't set the focus if the same window already has focus
6227           - Use SendMessage instead of PostMessage (like it's Win32
6228             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
6229             to match MS behaviour
6230         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
6231           are not selectable.
6232
6233 2006-03-07  Jackson Harper  <jackson@ximian.com>
6234
6235         * PictureBox.cs: Revert line I accidently committed last week.
6236
6237 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
6238
6239         * Control.cs: 
6240           - Added new IsRecreating and ParentIsRecreating properties to
6241             allow testing if RecreateHandle has been called on ourselves
6242             or one of our parents
6243           - WndProc(WM_DESTROY): If our control handle is being recreated
6244             we immediately need to create the handle when receiving the
6245             destroy, that way our child windows find a valid parent handle
6246             when they themselves are being recreated upon WM_DESTROY receipt
6247             (fix for bug #77654 part 1)
6248         * XplatUIX11.cs:
6249           - DestroyWindow: WM_DESTROY must be sent to our own window before
6250             notifying any child windows. MS documents that child windows
6251             are still valid when WM_DESTROY is received. (Control now relies on
6252             this behaviour)
6253           - Added some fine-grain debug options
6254
6255 2006-03-06  Jackson Harper  <jackson@ximian.com>
6256
6257         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6258         box and base calculations off this.
6259         * MdiChildContext.cs:
6260         * MdiWindowManager.cs: Don't need to ensure scrollbars here
6261         anymore.
6262         
6263 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
6264
6265         * Splitter.cs: In situations where the affected control is added
6266           to the parent's control list after the splitter, we would not
6267           populate affected. Now we try populating it on mousedown, if
6268           it's not already set, and force it to be re-set whenever our
6269           parent changes.
6270
6271 2006-03-03  Matt Hargett  <matt@use.net>
6272
6273         * Control.cs: implement Control.Padding
6274         * Padding.cs: -Padding.All returns -1 when constructing with the
6275         implicit default ctor
6276         -Padding.ToString() matches MS.NET
6277         * ContainerControl.cs: implement
6278         ContainerControl.AutoScaleDimensions
6279         * ListControl.cs: implement ListControl.FormattingEnabled
6280         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6281         * ButtonBase.cs:
6282         * TabPage.cs: Implement UseVisualStyleBackColor.
6283         * PictureBox.cs: Implement PictureBox.InitialImage.
6284
6285 2006-03-03  Mike Kestner  <mkestner@novell.com>
6286
6287         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6288         event declarations to proxy to base event.
6289         * ListViewItem.cs: update to use ItemControl.
6290         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6291         * ThemeWin32Classic.cs: update to new ListView theme API and fix
6292         column header label rendering for 0 width columns.
6293
6294 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
6295
6296         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6297           that causes the control to be created. Fixes #77476.
6298
6299 2006-03-02  Jackson Harper  <jackson@ximian.com>
6300
6301         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
6302         expose_pending.
6303
6304 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
6305
6306         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
6307           passed in for the EventArgs (fixes #77690)
6308
6309 2006-03-01  Jackson Harper  <jackson@ximian.com>
6310
6311         * ScrollBar.cs: Refresh afterbeing resized.
6312
6313 2006-02-28  Mike Kestner  <mkestner@novell.com>
6314
6315         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
6316         Clean up a tracker compile warning.
6317         * MenuItem.cs: add internal PerformPopup method.
6318         [Fixes #77457]
6319
6320 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6321
6322         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
6323           implicit expose) when the text is set to null
6324
6325 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
6326
6327         * RichTextBox.cs (FlushText): When newline is true, we always
6328           need to split the line, even if no text is on it and we may
6329           never eat newlines. (Fixes #77669)
6330
6331 2006-02-28  Mike Kestner  <mkestner@novell.com>
6332
6333         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
6334         and set Selected instead.
6335         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
6336         collections.
6337
6338 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6339
6340         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
6341
6342 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
6343
6344         * FontDialog.cs:
6345           - Got rid of the panel. All controls are now directly added to
6346             the dialog form
6347           - It is now possible to set a font with the Font property
6348           - MinSize and MaxSize property do now what they should
6349           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
6350           - Searching and selecting a font with the font textbox works now,
6351             the same applies to the style and size textbox
6352           - Draw the correct 3D border in the example panel
6353           - Fixed a little mem leak (unused fonts didn't get disposed)
6354           - Many other internal updates/rewrites...
6355           - Fix typo
6356
6357 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6358
6359         * TextControl.cs: 
6360           - InsertRTFFromStream: Added 'number of characters inserted' argument
6361           - set_SelectedRTF: Now using the number of characters to calculate
6362             the new location for the selection and cursor (x/y cannot be used
6363             due to potentially already wrapped text)
6364
6365 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
6366
6367         * TextControl.cs: Added property and implemented means to allow 
6368           disabling recalculation of a document (can be used to speed up
6369           multiple inserts and is needed to make RTF inserts predictable, see
6370           bug #77659)
6371         * RichTextBox.cs: Using the new NoRecalc property of Document to
6372           keep x/y insert locations predictable. Also makes it faster inserting
6373           large chunks of RTF
6374
6375 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6376
6377         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
6378           it's easier for a child control to handle the other messages without
6379           having to duplicate the special functionality
6380         * TextBoxBase.cs
6381           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
6382             code to handle processing the key ourselves, in order to get 
6383             access to the result of KeyEventArgs.Handled. We now only call 
6384             ProcessKey if they key hasn't been handled already. Fixes #77526.
6385           - set_Text: If null or empty string is given, just clear the 
6386             document. Fixes part of #77526
6387
6388 2006-02-27  Jackson Harper  <jackson@ximian.com>
6389
6390         * SizeGrip.cs: Paint the background color before painting the grip
6391         so things look right.
6392         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
6393
6394 2006-02-27  Mike Kestner  <mkestner@novell.com>
6395
6396         * ListView.cs:
6397           - Restructure layout and invalidation model to remove a ton of
6398           flicker from the control and speed up performance in general.
6399           - Add manual column resize, flickers like crazy, but I already have
6400           some ideas on how I'll fix that. (#76822)
6401           - Merge the three Icon-based views into a single layout method.
6402           - Move item selection interaction logic from the item since 
6403           interaction with the collections is more appropriate to the view.
6404           - Deselection on non-item clicks.
6405         * ListViewItem.cs:
6406           - Encapsulate most of the layout. Add some internal props to trigger
6407           layout.  Move to a model where Items invalidate themselves instead
6408           of just invalidating the whole control every time something changes.
6409           - Invalidate on Text/Caption changes.
6410           - switch to an offset based layout model to avoid having to absolute
6411           position every element on item moves.
6412           - correct checkbox layout to conform to MS layout.
6413         * ThemeWin32Classic.cs:
6414           - refactor some column header drawing code.
6415           - fix string justification for column headers (#76821)
6416           - make SmallIcon labels top justified for compat with MS impl.
6417         * ThemeClearlooks.cs:
6418           - adjust to new ListViewItem internal checkbox bounds api.
6419
6420 2006-02-27  Jackson Harper  <jackson@ximian.com>
6421
6422         * Control.cs:  Change where implicit controls fall in the zorder.
6423         They are now on top of all children.
6424         - Synced AddImplicit code with Add
6425         - Removed unused enumerator.
6426         * SizeGrip.cs: Remove the TODO as its been TODONE.
6427
6428 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
6429
6430         * TextControl.cs(Insert): Combine the last lines unless the insertion
6431           string ends with \n\n, otherwise we leave one line too many (Fixes
6432           something I noticed with the testapp for #77526; the bug itself was
6433           already fixed in the previous checkin)
6434
6435 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
6436
6437         * RichTextBox.cs:
6438           - SelectionColor and SelectionFont methods no longer set absolute
6439             styles. Instead, the keep font or color respectively (This 
6440             resolves a long-standing FIXME in the code)
6441           - When flushing RTF text, the insert code now considers text trailing
6442             behind the insertion point (Fixes the bug where when replacing
6443             the selected text via SelectedRTF the remainder of the line behind 
6444             the selection would stay on the first insertion line)
6445         * TextBoxBase.cs:
6446           - AppendText now updates the selection points after inserting text
6447           - AppendText now ensures that the last tag (sometimes 0-length) of
6448             the document is used for the style information (Fixes part of 
6449             bug #77220)
6450         * TextControl.cs:
6451           - Created new FontDefiniton class to allow describing partial style
6452             changes
6453           - StreamLine() now takes a lines argument, to allow it to decide
6454             whether an encountered zero-length tag is the last in the document
6455             (which must be kept to not loose the font/color contained in it,
6456             for later appends)
6457           - Created Combine() and Split() methods for Marker structs, to 
6458             support marker updates due to reformatted documents (soft line
6459             wraps)
6460           - Implemented Document.CaretTag setter
6461           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
6462             of the last line (Not the cause, but also exposed by bug #77220)
6463           - Added LineTag argument to InsertString method, to allow callers
6464             to force a certain tag to be used (required to force use of the
6465             trailing zero-length tag of a document)
6466           - Now updating markers in Combine(), to avoid stale tag markers
6467           - Added some method descriptions to aid maintenance
6468           - Implemented new FormatText concept, allowing additive/subtractive
6469             formatting by only specifying the components that are to be 
6470             changed. This was needed for resolving the RTB.SelectedColor/
6471             RTB.SelectedFont fixmes
6472           - Added Break() support method to allow breaking up linetags (used
6473             for partial formatting)
6474           - Added GenerateTextFormat() method. It is used for partial 
6475             formatting and allows to generate a full font/color from given
6476             attributes and an existing tag.
6477
6478 2006-02-26  Jackson Harper  <jackson@ximian.com>
6479
6480         * XplatUIX11.cs:  Use the correct caption height.
6481         - Translate hittest coordinates to screen coords to match MS.
6482         * XplatUIWin32.cs: When we create MDI windows we need to reset
6483         some of the style flags, so we get a nice blank window, and can
6484         draw all the decorations ourselves.
6485         - Set a clipping rectangle on the non client paint event, the
6486         window manager drawing code needs one.
6487         * Form.cs: The window manager needs to know when the window state
6488         has been updated.
6489         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6490         don't need to factor in border and title sizes in these
6491         methods. TODO: Remove the args and fix the call points.
6492         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6493         properly.
6494         - Let the driver set the cursors.
6495         - Improve active window handling
6496         - Correct sizes for title bars and buttons.
6497         - Match MS drawing better
6498         * MdiWindowManager.cs: We don't need to handle border style
6499         updates specially anymore.
6500         - Check for scrollbars when windows are done moving
6501         - Handle Active properly.
6502         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6503         correctly. I am spewing the exception though, so we don't hide the
6504         bugs.
6505         
6506 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
6507
6508         * DataGridViewRowPostPaintEventArgs.cs,
6509           DataGridViewCellPaintingEventArgs.cs,
6510           DataGridViewRowCollection.cs,
6511           DataGridViewRowPrePaintEventArgs.cs,
6512           DataGridViewCell.cs: Clear a few warnings and implement a few
6513           exceptions that should be thrown.
6514
6515 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6516
6517         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6518           'inheriting' our parent's (non-default) cursor. (Part of
6519            the fix for #77479)
6520
6521 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
6522
6523         * XplatUIX11.cs: Fixed cast to make csc happy
6524
6525 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6526
6527         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6528           it's for the client area (part of fix for #77479 and needed
6529           for MDI window cursor handling)
6530         * XplatUIX11.cs
6531           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6532             the appropriate default cursors and also passing the message
6533             up the parent chain 
6534           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6535             for non-client areas
6536
6537 2006-02-15  Jackson Harper  <jackson@ximian.com>
6538
6539         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6540         is a real MDI window
6541
6542 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
6543
6544         * X11DesktopColors.cs: Instead of checking the desktop session
6545           string for "KDE" check if it starts with "KDE"
6546
6547 2006-02-10  Jackson Harper  <jackson@ximian.com>
6548
6549         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6550         systems).
6551
6552 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6553
6554         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
6555           errors
6556         * ColorDialog.cs:
6557           - Got rid of the panel. All controls are now directly added to
6558             the dialog form
6559           - Changed to mono coding style
6560
6561 2006-02-10  Jackson Harper  <jackson@ximian.com>
6562
6563         * InternalWindowManager.cs: We don't need the set visibility to
6564         false hack anymore now that peter has written beautiful shutdown
6565         code.
6566
6567 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
6568
6569         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
6570           where already explicitly destroyed
6571
6572 2006-02-10  Jackson Harper  <jackson@ximian.com>
6573
6574         * MdiClient.cs: Handle the case where windows are too high or to
6575         the left and we need scrollbars.
6576
6577 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6578
6579         * MimeIcon.cs: Added some icons
6580         * FileDialog.cs:
6581           - Fixed bug #77477
6582           - Got rid of the panel. All controls are now directly added to
6583             the dialog form
6584           - Changed to mono coding style
6585           - On Linux "My Computer" and "My Network" will now show some
6586             more usefull information. A new class, MasterMount, gathers
6587             this information from /proc/mount. Updated MWFFileView to make
6588             use of this information
6589           - Fixed a bug that caused FileDialog to crash when
6590             ".recently_used" file had a zero size
6591           - FilterIndex does now what it should
6592           - Some Refactoring
6593         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
6594             FileDialog changes
6595
6596 2006-02-09  Jackson Harper  <jackson@ximian.com>
6597
6598         * ComboBox.cs: Don't touch if null.
6599
6600 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
6601
6602         * Cursor.cs: 64bit safeness fix
6603         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
6604
6605 2006-02-09  Jackson Harper  <jackson@ximian.com>
6606
6607         * Form.cs: If a form is made into an MDI form update the styles so
6608         all the props can get set correctly.
6609         - Kill the mdi_container when we dont need it anymore.
6610         * InternalWindowManager.cs: Add missing NOT
6611
6612 2006-02-08  Jackson Harper  <jackson@ximian.com>
6613
6614         * InternalWindowManager.cs: Respek clipping when drawing MDi
6615         decorations.
6616
6617 2006-02-08  Jackson Harper  <jackson@ximian.com>
6618
6619         * Hwnd.cs: Add bits to track non client expose events.
6620         * XplatUIX11.cs: Track non client expose events on the hwnd. This
6621         gives us a proper invalid rect and will allow for some nice
6622         optimizations with NC client drawing
6623         - MDI windows are children windows, so move their style handling
6624         into the child window block.
6625         * InternalWindowManager.cs: Remove a state reset that was
6626         getting invoked at the wrong time. Fixes managed windows getting
6627         into a 'stuck' captured state.
6628
6629 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6630
6631         * TextControl.cs (Document.ctor): Now initializing 
6632           selection_anchor. Fixes #77493
6633
6634 2006-02-07  Jackson Harper  <jackson@ximian.com>
6635
6636         * TrackBar.cs: The increment/decrements were backwards.
6637
6638 2006-02-07  Mike Kestner  <mkestner@novell.com>
6639
6640         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
6641         to the instance itself.
6642
6643 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6644
6645         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
6646           on ulongs and pointers, the size differs between 32bit and 64bit
6647           systems. 
6648
6649 2006-02-07  Mike Kestner  <mkestner@novell.com>
6650
6651         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
6652         for 64 bit platforms to work around a metacity bug. 
6653
6654 2006-02-07  Jackson Harper  <jackson@ximian.com>
6655
6656         * TrackBar.cs: Process the input keys we need, and hookup to
6657         KeyDown instead of using WndProc, so we get key messages.
6658
6659 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
6660
6661         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
6662           machine we're on. 
6663         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
6664           we need to translate the XdndVersion atoms array before sending it
6665
6666 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
6667
6668         * XplatUIX11.cs: 
6669           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
6670             number of bits for the property, not the number of bytes. The
6671             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
6672             but would not crash since it specified 8 bits instead of 4 bits)
6673           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
6674             defined as XID -> long in the C headers)
6675           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
6676             references since those are now IntPtr to begin with
6677           - Switched all Atom.XXX 'int' casts to IntPtr casts
6678           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
6679           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
6680           - Added XChangeActivePointerGrab DllImport (for X11DnD)
6681         * X11Structs.cs:
6682           - Changed 'int' type for Atoms in XEvent structures to IntPtr
6683           - Changed atom in HoverStruct to be IntPtr
6684         * X11DnD.cs:
6685           - Removed local DllImports, switched code to use those from XplatUIX11
6686           - Removed/fixed casts related to the switch of Atom to be a IntPtr
6687
6688 2006-02-06  Mike Kestner  <mkestner@novell.com>
6689
6690         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
6691         method signatures in the import region.  There may still be some
6692         lingering struct marshaling issues, as I didn't drill down into those.
6693         Yet.
6694
6695 2006-02-06  Jackson Harper  <jackson@ximian.com>
6696
6697         * ComboBox.cs: Dont manually set the top_item, this is computed
6698         when the scrollbar position is set.
6699
6700 2006-02-06  Mike Kestner  <mkestner@novell.com>
6701
6702         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
6703         startup crashes on amd64.  There's other fixes needed.  All pinvoke
6704         usage of Atom needs to be mapped to IntPtr for example.  And there are
6705         likely other int/long issues to be addressed.
6706
6707 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
6708
6709         * FileDialog.cs: One more...
6710
6711 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6712
6713         * FileDialog.cs: Next try
6714
6715 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6716
6717         * FileDialog.cs: First part of fix for #77464
6718
6719 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6720
6721         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
6722           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
6723           AcceptButton border drawing.
6724
6725 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
6726
6727         * Form.cs: Moved positioning of form after auto scaling is applied,
6728           otherwise it would possibly use wrong form size.
6729
6730 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
6731
6732         * Control.cs (RecreateHandle): No need to re-create any child
6733           controls, the child windows will get destroyed automatically by
6734           the windowing system or driver, and re-created when the handle
6735           is being accessed the first time. Fixes #77456
6736         * Form.cs: No longer setting the form to closing if the handle is 
6737           being recreated. This seems like the right thing to do, don't
6738           have a bug or testcase for this, though.
6739
6740 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6741
6742         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
6743           controls to avoid unwanted side effects
6744
6745 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
6746
6747         * Control.cs: 
6748           - ScaleCore needs to scale the bounds, not the ClientSize of the 
6749             control. Fixes #77416.
6750           - DefaultSize is 0,0 for control
6751         * TextBoxBase.cs: 
6752           - DefaultSize is 100, 20
6753           - SetBoundsCore: Now enforcing the height, no matter if the provided
6754             height is more or less than the preferred one, as long as AutoSize
6755             is on
6756         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
6757
6758 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6759
6760         * Control.cs:
6761           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
6762             call unless both performLayout is true *and* we have a pending
6763             layout change
6764           - ResumeLayout: MS does not completely nest Suspend and Resume,
6765             they bottom out at 0, fixed our code to match that.
6766           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
6767             SetBoundsCore, we were updating even when we shouldn't. This fixes
6768             swf-anchors mis-anchoring when resizing the app fast and lots.
6769           - UpdateDistances: Now only setting the left and top distance if 
6770             we have a parent and are not suspended, this is based on
6771             a suggestion by Don Edvaldson in bug #77355.
6772           - OnVisibleChanged: Fixed logic when to create the control. We may
6773             not create the control if we have no parent or if it's not visible;
6774             switched to using Visible property instead of is_visible field 
6775             since the property also considers parent states. This fixes a bug
6776             when starting Paint.Net
6777
6778 2006-02-02  Jackson Harper  <jackson@ximian.com>
6779
6780         * Form.cs: If the forms handle hasn't been created yet don't call
6781         into xplatui to make it top most, just set the topmost flag on the
6782         form in CreateParams
6783         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6784
6785 2006-02-01  Jackson Harper  <jackson@ximian.com>
6786
6787         * ScrollableControl.cs: Refactored the Recalculate method a
6788         little, this wasn't handling all the variants of bottom and right
6789         bars needed to be added and added/removed based on their
6790         counterparts being added/removed (which changes the drawable
6791         size). Also we special case client widths and heights of 0 and
6792         don't add the scrollbar for those.
6793
6794 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
6795
6796         * XplatUIX11.cs: 
6797           - Added method to get AbsoluteGeometry(); currently unused, but might
6798             be used in the future, if we try again to figure out toplevel
6799             coordinates with some more crappy window managers
6800           - Added FrameExtents() method to retrieve the WM set decoration size
6801           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
6802             to deal with at least KDE, FVWM and metacity (Fixes #77092)
6803         * Hwnd.cs: 
6804           - Added whacky_wm tracking var for metacity
6805           - Added logic to have default menu height if the actual menu height
6806             has not yet been calculated (part of fix for #77426)
6807         * Form.cs: Keep track whether client size has been set and re-set 
6808           it if a menu is added/removed afterwards (Fixes #77426)
6809
6810 2006-01-31  Jackson Harper  <jackson@ximian.com>
6811
6812         * Control.cs: When a new Site is set on the component attempt to
6813         pull the AmbientProperties from it.
6814
6815 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
6816
6817         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6818           in the background of the owning form. Fixes #77332
6819
6820 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6821
6822         * MimeIcon.cs: Fix for #77409
6823
6824 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6825
6826         * XplatUIX11GTK.cs: Initial import
6827
6828 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
6829
6830         * FixedSizeTextBox: fixes class signature
6831
6832 2006-01-30  Jackson Harper  <jackson@ximian.com>
6833
6834         * FixedSizeTextBox.cs: New internal class that represents a
6835         textBox that will not be scaled.
6836         * TreeView.cs:
6837         * ComboBox.cs:
6838         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6839         standard TextBox.
6840                 
6841 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
6842
6843         * XplatUIX11.cs: Retrieve default screen number instead of
6844           assuming 0. Attempted fix for #77318
6845
6846 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
6847
6848         * XplatUIWin32.cs: 
6849           - GetWindowPos: When a window is parented by FosterParent, use 
6850             the desktop instead of FosterParent as the base to get coordinates
6851           - CreateWindow: Don't make FosterParent the parent window for Popups
6852             if we don't want a taskbar entry, Popups automatically don't get one
6853         * Hwnd.cs: Need to call remove to actually remove the key from the
6854           hash table
6855
6856 2006-01-30  Mike Kestner  <mkestner@novell.com>
6857
6858         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6859
6860 2006-01-30  Jackson Harper  <jackson@ximian.com>
6861
6862         * TreeView.cs:
6863         * TreeNode.cs: Raise events no matter how the treenode is
6864         checked. Patch by Don Edvalson.
6865
6866 2006-01-30  Jackson Harper  <jackson@ximian.com>
6867
6868         * TreeNode.cs: Signature fix.
6869
6870 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
6871
6872         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6873
6874 2006-01-20  Mike Kestner  <mkestner@novell.com>
6875
6876         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6877         event forwarding when menus are active.
6878         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
6879         Most of the patch is pdb's with a little rework.
6880
6881 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6882
6883         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
6884           Removed GetMenuDC and ReleaseMenuDC methods; replaced
6885           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6886         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6887         * InternalWindowManager.cs: Added use of PaintEventStart/End to
6888           handling of WM_NCPAINT message, now passing the PaintEventArgs to
6889           the PaintWindowDecorations method
6890         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6891         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6892         * MenuAPI.cs: Made tracker window invisible
6893         * XplatUIWin32.cs:
6894           - Removed GetMenuDC and ReleaseMenuDC methods
6895           - Implemented the client=false path for PaintEventStart and
6896             PaintEventEnd
6897
6898 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6899
6900         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6901         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6902           styles
6903         * Form.cs: 
6904           - MaximizeBox, MinimizeBox: Recreate the handle when setting
6905             the style
6906           - CreateParams: Reworked the styles to match MS look'n'feel,
6907             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6908             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6909
6910 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6911
6912         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
6913           window is not mapped, since otherwise every form that's being 
6914           created is considered minimized, which is wrong.
6915         * Form.cs: Catching the exception and returning our internal value
6916           instead
6917
6918 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6919
6920         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6921           SetWindowMinMax() to have means to tell the driver about the minimum,
6922           maximum and maximized state window sizes. (Part of the fix for #76485)
6923         * Form.cs:
6924           - Implemented tracking of minimum and maximum window size, now calling
6925             new SetWindowMinMax() driver method to tell the driver (Part of the
6926             fix for #76485)
6927           - Finished handling of WM_GETMINMAXINFO method, now setting all values
6928             (Completes fix for #76485)
6929           - Calling new SetWindowMinMax driver method when the handle for a 
6930             form is created, to make sure the driver knows about it even if
6931             the values have been set before the window was created
6932           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6933             to avoid messing up our anchoring calculations (partial fix
6934             for #77355)
6935         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6936         * XplatUIX11.cs:
6937           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6938           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
6939             (and presumably other freedesktop.org compliant WMs). Left the
6940             assumption unmapped=minimized, needed for SetVisible to work.
6941           - Now setting the window state when creating windows
6942           - Fixed SetVisible to consider/set the window state when mapping
6943             a Form. We cannot set the state before it's mapped, and we cannot
6944             use Form.WindowState once it's mapped (since it would ask the
6945             driver and get 'normal'. Therefore, we grab the state before
6946             mapping, map, and then set state.
6947           - Implmemented SetWindowMinMax method; Metacity does not seem to
6948             honor the ZoomHints, though.
6949         * XplatUIWin32.cs:
6950           - Removed MINMAXINFO (moved to XplatUIStructs)
6951           - Added SetWindowMinMax stub (on Win32 the only way to set that
6952             information is in response to the WM_GETMINMAXINFO message, which
6953             is handled in Form.cs)
6954           - Added logic to SetVisible to set the proper window state when a 
6955             form is made visible (fixes #75720)
6956
6957 2006-01-26  Jackson Harper  <jackson@ximian.com>
6958
6959         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6960         same way we handle them with Invoke.
6961
6962 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
6963
6964         * Form.cs:
6965           - Added tracking of window state so CreateParams can return
6966             the appropriate style
6967           - Moved setting of WS_CAPTION style in CreateParams to allow
6968             styles without caption
6969         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
6970           control if the TextBox property is accessed. Fixes #77345
6971         * Control.cs:
6972           - get_Created: now uses is_disposed and is_created to determine
6973             return value (suggested by Jackson)
6974           - CreateHandle: No longer exits if the handle is being recreated
6975           - RecreateHandle: If the handle is not yet created call the 
6976             appropriate method to create either control or handle. If the
6977             control is already created CreateHandle will simply exit instead
6978             of just creating the handle
6979         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6980           now SendMessage WM_DESTROY directly to the control when DestroyWindow
6981           is called.
6982         * XplatUIX11.cs: 
6983           - When DestroyWindow is called, instead of waiting for the 
6984             DestroyNotification from X11, we directly post it to the WndProc
6985             and immediately dispose the hwnd object.
6986             Same applies to DestroyChildWindows, and this obsoletes the
6987             expose_pending tracking. Contrary to Win32 behaviour we destroy our
6988             child windows before our own, to avoid X11 errors.
6989           - Removed the direct sending of WM_PAINT on UpdateWindow
6990         * XplatUIWin32.cs:
6991           - Reworked DoEvents and GetMessage to allow access to internal queue
6992             even when trying non-blocking access to the queue.  Fixes #77335. 
6993             Based on a patch suggestion by Don Edvalson. The new private
6994             GetMessage can now also be used as a backend for a PeekMessage
6995             frontend version.
6996         * XplatUI.cs: Improved debug output for CreateWindow
6997
6998 2006-01-25  Jackson Harper  <jackson@ximian.com>
6999
7000         * Help.cs: Allow param to be null. Patch by Don Edvalson.
7001
7002 2006-01-24  Jackson Harper  <jackson@ximian.com>
7003
7004         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
7005         when we have a MaxDropItems lower then the selected index.
7006
7007 2006-01-24  Jackson Harper  <jackson@ximian.com>
7008
7009         * Control.cs: Don't allow selection of non visible controls, allow
7010         selection of controls without parents.
7011
7012 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7013
7014         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
7015         * DataGridDrawingLogic.cs: Add editing row only when is necessary
7016
7017 2006-01-23  Jackson Harper  <jackson@ximian.com>
7018
7019         * UpDownBase.cs: Make the textbox handle all the selection and
7020         tabbing. This fixes tabing to updown controls.
7021
7022 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7023
7024         * TextBoxBase.cs: fixes exception thown the object was null
7025
7026 2006-01-23  Jackson Harper  <jackson@ximian.com>
7027
7028         * ButtonBase.cs: Just use the base CreateParams. They set
7029         visibility and enabled correctly.
7030         * ComboBox.cs:
7031         * TrackBar.cs:
7032         * MonthCalendar.cs: Lets let the base set as much of the
7033         createparams as possible so we don't have duplicate code all over
7034         the place.
7035
7036 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
7037
7038         * ThemeGtk.cs: Added TrackBar and some experimental code to
7039           get double buffering back
7040
7041 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
7042
7043         * DataGrid.cs: Allows row number set internally higher than the last
7044         when creating a new row. Restores the editing functionality.
7045
7046 2006-01-20  Mike Kestner  <mkestner@novell.com>
7047
7048         * MimeIcon.cs: delay Image creation until the icons are accessed
7049         instead of creating 190 scaled images on GnomeHandler startup.
7050
7051 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
7052
7053         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
7054           first call base before processing the event. Fixes #77279
7055
7056 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
7057
7058         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
7059           that the stride for the GDI bitmap would match the stride of
7060           a DIB or a Cursor.
7061
7062 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
7063
7064         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
7065
7066 2006-01-19  Jackson Harper  <jackson@ximian.com>
7067
7068         * ComboBox.cs: Hookup the text controls keydown event so we get
7069         those when the text control has the focus.
7070
7071 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7072
7073         * Label.cs: Now using the base events instead of defining new ones;
7074           this allows us to just call the base properties without having to
7075           duplicate all base property logic 
7076
7077 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7078
7079         * Label.cs: A label by default is not a tabstop (Fixes one of our
7080           failing nunit tests)
7081
7082 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7083
7084         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
7085         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
7086
7087 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7088
7089         * Cursor.cs: Reimplemented creating cursor bitmaps without using
7090           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
7091           This fixes #77218
7092         * XplatUIWin32.cs: 
7093           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
7094             constructor creates images that can't be saved. Part of the fix
7095             for #76103
7096           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
7097           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
7098             bug fix for handling window state in forms properly)
7099
7100 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7101
7102         * ThemeGtk.cs: Simplify ScrollBar drawing
7103
7104 2006-01-18  Jackson Harper  <jackson@ximian.com>
7105
7106         * Splitter.cs: Set the default dock style for the splitter control
7107         in the constructor.
7108
7109 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7110
7111         * ThemeGtk.cs: Corrected StateType and ShadowType for
7112           gtk_paint_box
7113
7114 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7115
7116         * Control.cs: Make use of Theme.DoubleBufferingSupported
7117         * ThemeGtk.cs:
7118           - Added drawing for flat style buttons
7119           - Added ScrollBar drawing
7120
7121 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7122
7123         * ThemeClearlooks.cs: Removed some unneeded code.
7124         * ThemeGtk.cs: First part of ThemeGtk enhancements.
7125
7126 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
7127
7128         * LinkLabel.cs: We need to update the hover drawing when
7129           leaving the control as well.
7130
7131 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
7132
7133         * DataGrid.cs: Clicking on non empty areas in the columns
7134            area was giving an exception
7135
7136 2006-01-17  Jackson Harper  <jackson@ximian.com>
7137
7138         * ThemeWin32Classic.cs:
7139         * ListView.cs: Do not draw/clip the headers when the header style
7140         is None.
7141
7142 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7143
7144         * DataGrid.cs: Fixes 77260
7145         
7146 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7147
7148         * DataGrid.cs: Clicking on a column on a empty grid was giving
7149           an exception
7150
7151 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
7152
7153         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
7154           or any keypress will crash the grid.
7155
7156 2006-01-17  Mike Kestner  <mkestner@novell.com>
7157
7158         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
7159         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
7160         invisible/previously-visible items.
7161         [Fixes #76909]
7162
7163 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
7164
7165         * ThemeClearlooks.cs:
7166         - Added CL_Draw_Button method; now other theme controls that are 
7167           not derived from button or do not have a button can draw buttons
7168           too
7169         - Updated ComboBox drawing
7170         - Beautified RadioButton drawing
7171         - Corrected drawing of bottom and left tabs
7172         - Beautified DateTimePicker and MonthCalendar
7173         - Added CPDrawButton and CPDrawRadioButton
7174
7175 2006-01-16  Jackson Harper  <jackson@ximian.com>
7176
7177         * ComboBox.cs: Set the initial value of the scrollbar to the
7178         current index. Reduce the numbers of refreshs and IndexOfs called.
7179
7180 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
7181
7182         * FileDialog.cs: When the file listview is focused hitting the
7183           backspace key moves the fileview to the parent directory
7184
7185 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7186
7187         * Form.cs: 
7188           - Added RecreateHandle call when changing taskbar visibility to 
7189             trigger reparenting in Win32 driver (Fixes #75719)
7190           - If a window has minimize or maximize buttons, it cannot have
7191             a help button
7192         * XplatUIWin32.cs:
7193           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
7194             the toplevel form with FosterParent (A toolwindow not on the
7195             taskbar) (Fixes #75719)
7196           - Made FosterParent a toolwindow
7197
7198 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7199
7200         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
7201
7202 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7203
7204         * ToolTip.cs: If SetToolTip is called from a control and the mouse
7205           is currently over that control, make sure that tooltip_window.Text
7206           gets updated
7207
7208 2006-01-13  Mike Kestner  <mkestner@novell.com>
7209
7210         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
7211
7212 2006-01-13  Jackson Harper  <jackson@ximian.com>
7213
7214         * TreeView.cs: On MS GetNodeAt never actually factors in the X
7215         value passed.  Also redraw the selected node when we recieve
7216         focus, so tabbing between trees works correctly.
7217
7218 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7219
7220         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
7221           ~/.gconf/%gconf-tree.xml, so use
7222           .gconf/desktop/gnome/interface/%gconf.xml
7223
7224 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7225
7226         * TextControl.cs: Draw text in gray if control is disabled
7227
7228 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7229
7230         * TreeView.cs: Draw the focus rectangle outside the highlight, to
7231           make sure it's always visible. Fixes #76680.
7232
7233 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7234
7235         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
7236
7237 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
7238
7239         * PageSetupDialog.cs: Added.
7240         * PrintDialog.cs: Attributes.
7241         * PrintPreviewControl.cs: Updates.
7242         * PrintPreviewDialog.cs: Updates.
7243         
7244 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7245
7246         * Control.cs: Undid my selection check fix, since it's not needed
7247         * TextBoxBase.cs:
7248           - Now considering the presence of hscroll/vscroll when sizing
7249             vscroll/hscroll respectively. Fixed bug #77077
7250           - Added Left/Up/Down/Right to IsInputKey list to prevent
7251             ContainerControl from stealing them. This fixes what I broke
7252             with my last checkin.
7253
7254 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
7255
7256         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7257           I finally understand how the property can be set without a setter :-)
7258
7259 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7260
7261         * Application.cs:
7262           - Switched RunLoop to use static Message.Create to create a 
7263             Message object
7264           - Added PreProcessMessage call in runloop for keyboard events; this
7265             is part of the fix for #77219, I overlooked this originally in the
7266             MSDN doc for PreProcessMessage
7267         * Control.cs:
7268           - Removed call to PreProcessMessage from handling of keyboard 
7269             messages; it's supposed to be done in the message pump
7270           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7271             per MSDN documentation.
7272           - IsInputChar: All chars are input chars by default; removed the 
7273             parent calling chain, MS does not document that
7274           - PreProcessMessage: If IsInputChar is true, we want to return false
7275             to allow dispatching of the message
7276           - When selecting the next control, now also check that we're not
7277             selecting ourselves again and therefore return a false positive.
7278         * TextBoxBase.cs:
7279           - Tried to match return values for IsInputKey and ProcessDialogKey
7280             to what MS returns; moved processing of our special keys outside
7281             ProcessDialogKey since MS does not seem to return true on those.
7282           - Moved code that previously was in ProcessDialogKey into new private
7283             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7284           - Reworked handling of WM_CHAR to not have to duplicate code from
7285             Control.cs anymore, instead we simply call down to base.
7286            
7287 2006-01-12  Jackson Harper  <jackson@ximian.com>
7288
7289         * ComboBox.cs: We always need to refresh the text area when
7290         EndUpdate is called. Fixes the combobox in the file dialog.
7291         * Control.cs: Don't create the creator_thread until the controls
7292         handle is created.  Also in InvokeRequired we check if the
7293         creator_thread is null. This gives the effect of InvokeRequired
7294         returning true if the controls handle is not created yet, and
7295         matches MS.
7296
7297 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7298
7299         * XplatUI.cs:
7300           - Added StartLoop() driver method. This is used to allow drivers to
7301             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
7302             loop for a particular thread
7303           - Added EndLoop() driver method. This is called once the message
7304             pump for the thread is shut down
7305           - Added SupportsTransparency method to allow the driver to indicate
7306             opacity support for windows
7307         * Form.cs:
7308           - Removed TODO attribute, completed AllowTransparency property
7309           - Added documented logic to Opacity
7310         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
7311           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
7312           versions of CompatibleTextRendering
7313         * X11Structs.cs: Added opacity atom to our atom enumeration
7314         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
7315           of a form might be set before it's reparented by the WM, and we need
7316           the opacity value without calling up to Form)
7317         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
7318           SupportsTransparency() driver methods
7319         * Application.cs: Now calling StartLoop and EndLoop driver methods
7320         * XplatUIX11.cs:
7321           - Added opacity atom registration
7322           - Added StartLoop()/EndLoop() methods. They're empty right now but
7323             will need to get implemented when we switch to a per-thread queue
7324           - Implemented SupportsTransparency() method
7325           - Implemented SetWindowTransparency() method
7326           - Added support for setting the opacity value when a window is
7327             reparented (since the opacity needs to be set on the WM frame)
7328         * XplatUIOSX.cs, XplatUIWin32.cs:
7329           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
7330
7331 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7332
7333         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
7334
7335 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7336
7337         * FileDialog.cs: Added ToolTip for MWFFileView
7338         * MimeIcon.cs: Rewrote GnomeHandler.
7339           - Get currently used gnome icon theme from
7340             ($HOME)/.gconf/%gconf-tree.xml
7341           - Make use of inherited icon themes
7342           - Support SVG icon themes like Tango via librsvg
7343
7344 2006-01-12  Miguel de Icaza  <miguel@novell.com>
7345
7346         Revert's Jackson's revert which broke 2.0 builds.   Fix both
7347         builds. 
7348         
7349         * Application.cs: Move the use_compatible_text_rendering outside
7350         the NET_2_0 define.  If we ever need to use the
7351         use_compatible_text_rendering on the individual controls they will
7352         access the variable from the common shared code paths.
7353
7354 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7355
7356         * XplatUI.cs:
7357           - Added more granular debug options
7358           - Added method to print both window text and id
7359           - Switched debug output to use new Window() debug method
7360           - Added IsEnabled() driver method
7361           - Added EnableWindow() driver method
7362         * Form.cs:
7363           - Removed end_modal; no longer needed, new loop handles termination
7364             via 'closing' variable
7365           - If form is modal, setting DialogResult will now initiate loop
7366             termination via 'closing' variable
7367           - Added support for is_enabled/WS_DISABLED to CreateParams
7368           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
7369             does all the work
7370           - Removed code that's now in RunLoop from ShowDialog()
7371           - Added various documented sanity checks to ShowDialog()
7372           - Added handling of WM_DESTROY message; we set 'closing' on getting
7373             the message to indicate the message pump to terminate
7374           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
7375             send by the Application.ExitThread method. (We send the message
7376             to destroy the window after all other events have been
7377             processed through the queue, instead of destroying the handle 
7378             directly)
7379           - Moved code from Close() method to WM_CLOSE handler; added logic
7380             to only send close-related events if the form is not displayed
7381             modal
7382         * Splitter.cs (..ctor): Fixed typo in resource name
7383         * Control.cs:
7384           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
7385             brush now
7386           - set_Cursor: Now only setting calling into XplatUI if the handle for
7387             the control is already created; this avoids implict handle creation
7388             or crashes if it's not created
7389           - set_Enabled: Now setting the enabled state via the new driver method
7390             instead of just tracking it
7391           - CreateParams: Added logic to set WS_DISABLED based on enabled state
7392           - CreateControl: Reordered event firing and method calls to more
7393             closely fire events in the order MS does. Now setting the
7394             enabled state in the driver when creating the control.
7395           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
7396             match MS order
7397         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
7398           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
7399         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
7400         * Hwnd.cs:
7401           - Added tracking of window enabled state (get_Enabled/set_Enabled)
7402           - Added EnabledHwnd property to easily allow a driver to find the
7403             handle of the first enabled window in the parent chain (this is
7404             used by drivers to pass up input events of disabled windows)
7405         * XplatUIDriver.cs: Added IsEnabled() method
7406         * Application.cs:
7407           - Removed crude and obsolete exiting tracking variable
7408           - Removed internal ModalRun(); replaced by RunLoop()
7409           - Implemented private CloseForms() method to allow closing all 
7410             windows owned by a particular (or all) threads
7411           - Exit() now properly closes all windows without forcing the message
7412             pump to quit
7413           - Removed obsolete InternalExit() method
7414           - Changed Run() methods to use new RunLoop() message pump
7415           - Implemented new RunLoop() method for both modal and non-modal forms
7416         * CommonDialog.cs:
7417           - get_CreateParams: Added setting of WS_DISABLED
7418           - Simplified ShowDialog(); now all the work is done in RunLoop(),
7419             invoked via Form.ShowDialog()
7420         * NativeWindow.cs: We don't remove the window from the collection when
7421           the handle is destroyed; there might still be messages for it in the
7422           queue (mainly the resulting WM_DESTROY); instead it will be removed
7423           when Control calls InvalidateHandle in the WM_DESTROY handler
7424         * XplatUIX11.cs:
7425           - CreateWindow: Added logic to handle the WS_DISABLED window style
7426           - EnableWindow: Implemented based on Hwnd.Enabled
7427           - GetMessage: Reset PostQuitState so the method can be called again
7428           - Implemented support for disabled windows (passing messages to the
7429             first enabled parent) in handling all input messages
7430           - Added optimizations for handling Expose events
7431           - Implemeted new driver method IsEnabled()
7432           - Now always resetting paint pending tracking vars when we start paint
7433           - Re-implemented UpdateWindow via just sending a WM_PAINT message
7434         * XplatUIOSX.cs: Added IsEnabled method stub
7435         * XplatUIWin32.cs: Implemented new IsEnabled() method
7436
7437 2006-01-11  Jackson Harper  <jackson@ximian.com>
7438
7439         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7440         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
7441         variables a little.
7442         * ColorDialog.cs: Clear out the old form before adding the new
7443         panel.  
7444
7445 2006-01-11  Jackson Harper  <jackson@ximian.com>
7446
7447         * X11Dnd.cs: Make sure to add all the text formats when adding
7448         strings to the data object.
7449         * TreeNodeCollection.cs: When adding to a sorted tree we need to
7450         do some redrawing too.  Also change the UpdateNode to an
7451         UpdateBelow so the newly added node gets painted.
7452         
7453 2006-01-11  Miguel de Icaza  <miguel@novell.com>
7454
7455         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7456         LinkLabel.cs, PropertyGrid.cs: Implement the
7457         UseCompatibleTextRendering property for 2.x
7458
7459         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
7460
7461 2006-01-11  Jackson Harper  <jackson@ximian.com>
7462
7463         * TreeView.cs: Use the property for setting the selected node so
7464         the correct events get raised.
7465         * TreeNode.cs: Update the tree when the fore/back colours of a
7466         node are set.
7467
7468 2006-01-10  Jackson Harper  <jackson@ximian.com>
7469
7470         * TreeView.cs: Allow setting SelectedNode to null.
7471
7472 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7473
7474         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
7475
7476 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7477
7478         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
7479
7480 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7481
7482         * PrintDialog.cs: Added attributes and set default property values.
7483
7484 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7485
7486         * PrintControllerWithStatusDialog.cs: 
7487         Added PrintControllerWithStatusDialog.
7488
7489 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7490
7491         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
7492         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7493
7494 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7495
7496         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7497
7498 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7499
7500         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7501         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7502
7503 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7504
7505         * MimeIcon.cs: Added internal class SVGUtil.
7506
7507 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7508
7509         * FileDialog.cs: Don't crash if there are two files with the
7510           same name but different locations.
7511
7512 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
7513
7514         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7515         dates across multiple month grids. Used to not highlight entire 
7516         month, but does now.
7517         
7518 2006-01-06  Jackson Harper  <jackson@ximian.com>
7519
7520         * MonthCalendar.cs: Removed DoEvents call to prevent a running
7521         message loop. Change timer intervals to numbers that seem more
7522         natural.
7523
7524 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
7525
7526         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7527           object for location info since screen object is now implemented.
7528
7529 2006-01-05  Jackson Harper  <jackson@ximian.com>
7530
7531         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7532         * AsyncMethodResult.cs: We no longer use a WeakReference for the
7533         AsyncMethodResult, this is because we ALWAYS want the
7534         ManualResetEvent to get set.
7535         * Control.cs: When disposing use an async invoke to call shutdown
7536         code, so that thigns don't block on the finalizer thread.  Also
7537         check if we even have a message loop before trying to send
7538         messages, if we don't then don't bother sending messages.
7539         - No more weak references for async methods
7540         * XplatUIDriver.cs: No more weak references for async methods.
7541
7542 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7543
7544         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7545           returns two FontFamily with the same name
7546
7547 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7548
7549         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
7550           drawing disabled text. Instead using the ColorGrayText color
7551
7552 2006-01-04  Jackson Harper  <jackson@ximian.com>
7553
7554         * TreeNode.cs: redraw the node when its image index is changed.
7555
7556 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7557
7558         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
7559           time I checked there are no others like it.
7560
7561 2006-01-04  Jackson Harper  <jackson@ximian.com>
7562
7563         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
7564         this gives the behavoir I was looking for.
7565         * Control.cs: Special case Invoking EventHandlers, this matches MS
7566         and fixes part of bug #76326.
7567
7568 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7569
7570         * ThemeClearlooks.cs, FileDialog.cs:
7571           - Reflect the latest Theme class changes
7572           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
7573             with DateTime
7574             
7575 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7576
7577         * Theme.cs: Cache UI resource images and resize them if needed
7578
7579 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7580
7581         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
7582           is called. This fixes the crash in Nexxia when setting the font
7583           attributes in the chat. [However, RTF needs a look-over to make sure
7584           that all SelectionXXX methods handle the special case that selection
7585           is empty and therefore the change must be applied to all text starting
7586           at the cursor/selection start]
7587
7588 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
7589
7590         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7591           XplatUIOSX.cs: Added SendMessage and PostMessage methods
7592         * X11Keyboard.cs: Switched to new way of calling PostMessage
7593
7594 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7595
7596         * Theme.cs: Added theme interface for images to allow the theme to
7597           control what images are used for things like FileDialog, MessageBox
7598           icons, etc.
7599         * MessageBox.cs: Now uses the new Theme icon/image interfaces
7600
7601 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
7602
7603         * FileDialog.cs:
7604           - Removed some dead code
7605           - Opening a recently used file does work now
7606           - Small UI enhancements
7607           - Refactoring
7608
7609 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7610
7611         * FileDialog.cs: Forgot too add __MonoCS__
7612
7613 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7614
7615         * FileDialog.cs: We are able to read recently used files now let's
7616           go on and write them.
7617
7618 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
7619
7620         * FileDialog.cs: Breathe some life into "last open"/"recently used"
7621           button
7622         * MimeIcon.cs: Do a check for the top level media type also
7623
7624 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7625
7626         * ThemeClearlooks.cs:
7627           - Added CPDrawStringDisabled
7628           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
7629             some chars if the text doesn't fit into text_rect
7630           - DrawListViewItem: If View = View.LargeIcon center the image;
7631             rewrote the drawing of ListViewItem.Text if View = 
7632             View.LargeIcon
7633
7634 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7635
7636         * MimeIcon.cs: Use default KDE icon theme if there is no
7637           "48x48" directory for the current icon theme, fixes #77114
7638         * Mime.cs: Disable not working and actually not used code. 
7639         * ThemeWin32Classic.cs:
7640           - Replace "new SolidBrush" in GetControlBackBrush and
7641             GetControlForeBrush with ResPool.GetSolidBrush
7642           - Changed DrawListViewItem from private to protected virtual
7643         * FileDialog.cs:
7644           - Added form.MaximizeBox = true
7645           - Don't throw an exception if there is a broken symbolic link
7646
7647 2005-12-23  Jackson Harper  <jackson@ximian.com>
7648
7649         * TabControl.cs: Give the panels focus, keyboard navigation is
7650         fixed so this works correctly now.
7651         - We need these key events also.
7652         * ToolBar.cs: Remove some of the poor mans double buffering.
7653         
7654 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
7655
7656         * ComboBox.cs: The internal TextBox now returns the focus.
7657
7658 2005-12-23  Jackson Harper  <jackson@ximian.com>
7659
7660         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
7661
7662 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7663
7664         * Control.cs: Removed debug code
7665         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
7666           implicit children
7667
7668 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
7669
7670         * Control.cs: When creating the control, update the Z-order after
7671           all it's children are created, too. (Fixes nexxia not showing
7672           picturebox bug)
7673
7674 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7675
7676         * Control.cs: Do not update the anchoring distances if layout is
7677           suspended, instead do it once layout is resumed
7678
7679 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
7680
7681         * Control.cs: 
7682           - After many hours of debugging, for both Jackson and
7683             myself, it turns out that it helps to set the parent of a control
7684             if you want to actually see it onscreen. In the spirit of that
7685             discovery, we're now setting the parent of the control and
7686             it's children when the control's handle is created. This fix
7687             will make Lutz Roeder's Reflector run happily. 
7688           - now just creating the handle instead of the whole control when
7689             getting a graphics context for the control.
7690
7691 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7692
7693         * ScrollableControl.cs: When calculating the canvas, don't consider
7694           the scrollbar widths. Instead, predict if horizontal scrollbar
7695           will affect canvas when deciding on vertical display and vice versa.
7696
7697 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7698
7699         * RichTextBox.cs: Set default RTF font for documents that don't
7700           have a font table (Fixes #77076)
7701
7702 2005-12-22  Jackson Harper  <jackson@ximian.com>
7703
7704         * TextBoxBase.cs: It's difficult to do, but you can have an empty
7705         clipboard. This prevents a NullRef in that case.
7706         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
7707         clipboard. PRIMARY is for the currently selected text only. (We
7708         should implement PRIMARY at some point.
7709
7710 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7711
7712         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
7713           a Unicode function with a structure that was defined in Ansi way.
7714           This fixes #76942.
7715
7716 2005-12-21  Jackson Harper  <jackson@ximian.com>
7717
7718         * StatusBar.cs: Statusbar handles its fore/back colours on it's
7719         on. Because thats how it rolls. (and this avoids it using ambient
7720         colours).
7721         * ThemeWin32Classic.cs: Use the proper back color for filling.
7722         * Menu.cs: Use the system menu bar color for drawing menu
7723         bars. Using the window back color will bring ambient colours into
7724         the picture.
7725
7726 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
7727
7728         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
7729           Bitmaps were created and not disposed.
7730
7731 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7732
7733         * Control.cs (CreateControl): Don't do anything if the control is
7734           already created, otherwise we'd fire the OnCreated event more than
7735           once
7736
7737 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7738
7739         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
7740           will always match. Instead return -1. Fixes #76464.
7741
7742 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7743
7744         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
7745           neither the beginning nor the end of the line (Fixes bug #76479)
7746
7747 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7748
7749         * Control.cs:
7750           - ControlNativeWindow.ControlFromHandle(): Now handling situation
7751             where handle is invalid
7752           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
7753             instead of slower linear search
7754         * NativeWindow.cs: Don't remove the window from the hashtable until
7755           after the driver has destroyed it (since the driver might use
7756           Control.FromHandle to lookup the control object
7757         * Hwnd.cs: Added DestroyPending property to track if a window is 
7758           already destroyed as far as the driver is concerned and only hasn't
7759           yet notified the control
7760         * XplatUIX11.cs:
7761           - Activate(): Check if the window is still valid before using the 
7762             handle
7763           - Implemented DestroyChildWindow() method to mark child windows as
7764             destroyed when a window is destroyed. This prevents situations 
7765             where we might call an X method based on queued events for a
7766             window that already has been destroyed but we haven't yet pulled
7767             the destroy method from the queue.
7768           - Added a call to the new DestroyChildWindow() method to the drivers
7769             DestroyWindow code. Also now marking the destroyed window itself
7770             as pending
7771
7772 2005-12-20  Jackson Harper  <jackson@ximian.com>
7773
7774         * StatusBar.cs:
7775         * StatusBarPanel.cs: Don't calculate panel sizes on draw
7776         anymore. Just do them when needed, also track the rects of panels
7777         so that we can optimize refreshing more in the future.
7778
7779 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
7780
7781         * ColorDialog.cs: Fixed focus drawing in small color controls
7782
7783 2005-12-19  Jackson Harper  <jackson@ximian.com>
7784
7785         * InternalWindowManager.cs:
7786         * MdiWindowManager.cs: Cleanup some coordinate system changes so
7787         moving windows works properly.
7788
7789 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
7790
7791         * Control.cs: 
7792           - Removed call to InitLayout() from SetBoundsCore(); doc says
7793             it's only called when a control is added to a container
7794           - Split InitLayout logic, moved to separate UpdateDistances() method
7795             since we need to perform those calculations more often than just
7796             when adding the control to a container. (Needed to fix #77022)
7797           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7798           - Reduced the OnBindingContextChanged events count, don't send them
7799             unless the control is created, we still aren't totally matching
7800             MS, but I can't quite figure out some of their rules
7801
7802 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7803
7804         * ThemeClearlooks.cs: Corrected distance between ProgressBar
7805           stripes
7806
7807 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7808
7809         * ThemeClearlooks.cs:
7810           - Updated ProgressBar drawing
7811           - Corrected drawing of ScrollBars and scroll buttons
7812           - Some temporary fixes for minor pixel artefacts
7813
7814 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
7815
7816         * Control.cs:
7817           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7818             cause events to be sent in the same order as MS does.
7819           - Added ChangeParent() method to trigger various OnXXXChanged events
7820             that need to be fired when a parent changes (This is a reworking
7821             of the patch from r54254, with the X11 errors fixed)
7822           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7823             since on MS we get OnLayoutChanged events when calling Clear()
7824           - Changed Enabled property to consider parent state as well, if a
7825             parent is not enabled, the control will not be either
7826           - Changed Parent property to simply call Controls.Add() since that
7827             now does all the work required, this way we avoid code duplication
7828           - Threw in a few OnBindingsContextChanged calls to try and match
7829             when MS sends them. We seem to send a few too many, though.
7830           - Added call to CreateControl when adding the control to a parent.
7831             We were never calling CreateControl. Still needs some work, in
7832             some places we treat HandleCreated and ControlCreated as equal, 
7833             which is wrong
7834           - Removed obsolete commented out code from UpdateZOrder()
7835
7836 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7837
7838         * ThemeClearlooks.cs: Updated TrackBar drawing.
7839
7840 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7841
7842         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7843
7844 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7845
7846         * FileDialog.cs: Add the Help button and the open readonly
7847           checkbox only if needed
7848
7849 2005-12-16  Jackson Harper  <jackson@ximian.com>
7850
7851         * Control.cs: Make sure we have an active menu before trying to
7852         process commands on it. Prevents menu-less forms from crashing
7853         when Alt is pressed.
7854         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7855         Dieter Bremes.
7856         * RichTextBox.cs: Expand statement to help out gmcs and fix the
7857         2.0 build.
7858
7859 2005-12-16  Jackson Harper  <jackson@ximian.com>
7860
7861         * InternalWindowManager.cs: Don't translate tool windows screen
7862         coordinates. This fixes windows 'bouncing' around when being moved.
7863
7864 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7865
7866         * TextBoxBase.cs:
7867           - MaxLength now treats 2^31-1 equal to unlimited length (this is
7868             not quite MS compatible, MS uses that number only for single line
7869             and 2^32-1 for multi-line, but I figure it won't hurt keeping
7870             the limit at 2GB)
7871           - Now enforcing the MaxLength limit when entering characters
7872           - Added argument to internal Paste() method to track if it's called
7873             from programatically or via keyboard, since keyboard driven pastes
7874             need to enforce max-length
7875           - Added logic to Paste to only paste as many chars as MaxLength 
7876             allows
7877         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7878         * TextControl.cs:
7879           - Added Length property to return number of characters in document
7880           - Added private CharCount property which only tracks actual chars
7881             in the document (no linefeeds) and fires event when CharCount
7882             changes
7883           - Added tracking of character count to all methods that alter it
7884           - Added LengthChanged event to allow applications to subscribe
7885             to any changes to the document
7886
7887 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7888
7889         * TextBox.cs: 
7890           - Removed local password_char field (moved to TextBoxBase)
7891           - Now setting the document's password var when password is
7892             set
7893         * TextBoxBase.cs:
7894           - Added password_char field (needed here so MultiLine can
7895             access it)
7896           - Added logic to MultiLine property setter to set the document's
7897             variable when password display is allowed
7898           - Removed debug code and made some debug code conditional
7899         * TextControl.cs:
7900           - Added RecalculatePasswordLine() method to handle special password
7901             char only lines
7902           - Added PasswordChar property, also added related tracking vars
7903           - Draw() method now uses local text var for grabbing text to draw,
7904             this var is set to line.text unless we're doing password display,
7905             then it is set to the pre-generated all-password-chars line
7906           - Added calling RecalculatePasswordLine() method for password lines
7907
7908 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7909
7910         * Hwnd.cs: 
7911           - Added Reparented property to allow tracking of Window Manager
7912             reparenting actions (which affect X/Y calculations of toplevel 
7913             windows)
7914           - Made ToString() print window handles in hex
7915         * XplatUIX11.cs:
7916           - AddConfigureNotify(): Now uses reparented state off Hwnd to
7917             determine if X/Y needs offsetting
7918           - AddConfigureNotify(): Fixed offset calculations
7919           - Now adds ReparentNotify messages into the queue
7920           - Now processes ReparentNotify messages and causes a 
7921             WM_WINDOWPOSCHANGED message to be sent upstream if a window
7922             is reparented (as most likely it's X/Y coordinates are changed
7923             due to that)
7924
7925 2005-12-14  Jackson Harper  <jackson@ximian.com>
7926
7927         * XplatUIX11.cs: Tool windows still need to respek focus.
7928
7929 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7930
7931         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7932           have a working release
7933
7934 2005-12-13  Jackson Harper  <jackson@ximian.com>
7935
7936         * Form.cs: Update styles after setting the border style regardless
7937         of whether or not the window is using a window manager.
7938
7939 2005-12-13  Jackson Harper  <jackson@ximian.com>
7940
7941         * Form.cs: We now hook into an internal window manager instead of just an
7942         MDI subsystem, this is so we can have properly behaving tool windows.
7943         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7944         * InternalWindowManager.cs: New internal class that acts as a
7945         window manager for tool windows and as a base for mdi windows.
7946         * MdiWindowManager.cs: New class that acts as a window manager for
7947         mdi windows.
7948
7949 2005-12-12  Jackson Harper  <jackson@ximian.com>
7950
7951         * Control.cs: Updates so we match behavoir for for implicit
7952         controls. Fixes explosions in MDI.
7953
7954 2005-12-12  Jackson Harper  <jackson@ximian.com>
7955
7956         * Control.cs: Implement Invalidate (Region).
7957
7958 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
7959
7960         * Control.cs: 
7961           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
7962             the same events as MS does. MS fires events for each property 
7963             except, for unknown reasons, Cursor, when the control is reparented. 
7964             I can't seem to totally match add/remove since MS also fires some 
7965             VisibleChanged events, which makes no sense. Consolidated the
7966             parenting code into a separate method so it can be called from
7967             both Add and Remove. set_Parent no longer needs any special logic
7968             as it calls the parent's add method which implicitly fires
7969             all events
7970           - Removed some obsolete code and debug output
7971           - Enabled state is inherited from parents, if this is enabled
7972
7973 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
7974
7975         * Form.cs: Removed commented out code
7976
7977 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
7978
7979         * Control.cs:
7980           - Added internal version of Invoke, with additional argument 
7981             indicating if we're calling it from a Dispose() handler. That
7982             way we can avoid BeginInvoke throwing an exception if we're
7983             calling for an already destroyed window.
7984           - Added a dispose argument to BeginInvokeInternal, and made the
7985             check if a valid window handle chain exists conditional on
7986             it not being a dispose call
7987           - Removed code in DestroyHandle to destroy our children. Since we
7988             now handle the WM_DESTROY message we will catch all our children
7989             being destroyed.
7990           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7991         * Form.cs:
7992           - Added a field to track the application context of the form.
7993           - No need to set closing variable as response to WM_CLOSE, instead
7994             we destroy the window. We also call PostQuitMessage if the form
7995             has an application context (which makes it the main app form,
7996             which, when closed terminates the app)
7997         * XplatUI.cs:
7998           - Dropped Exit() method, it's naming was confusing
7999           - Added PostQuitMessage() which causes GetMessage to return false
8000             once the message queue is empty
8001         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
8002           PostQuitMessage()
8003         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
8004           no longer a valid XplatUI method, but left it in since it's used
8005           internally. Added empty PostQuitMessage() method.
8006         * MenuAPI.cs: Replaced call to Exit() with call to
8007           PostQuitMessage, even though this is probably no longer needed.
8008         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
8009         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
8010         * Application.cs:
8011           - Replaced call to XplatUI.Exit() with PostQuitMessage()
8012           - Removed old debug code that would call XplatUI for exception
8013             display, enabled standard exception handling (Still not enabled
8014             though, until NativeWindow's ExternalExceptionHandler define
8015             is removed
8016         * NativeWindow.cs:
8017           - Added internal method to allow control to update NativeWindow
8018             after a window has been destroyed
8019           - Added handling of already destroyed windows when calling i
8020             DestroyWindow
8021           - Added removal of handle from list on ReleaseHandle
8022         * XplatUIX11.cs:
8023           - Dropped GetMessageResult var and related code
8024           - Added PostQuitState to field to track if PostQuitMessage has been
8025             called
8026           - Dropped Exit() method
8027           - Added PostQuitMessage() method
8028           - GetMessage now will return false if PostQuitState is set and no
8029             more messages are in the queue.
8030           - Expose handler will no longer generate WM_PAINT messages if we are
8031             in PostQuitState since it's very likely any windows have already
8032             been destroyed, and since Hwnd won't get updated until we have
8033             processed the DestroyNotify we'd be causing X errors.
8034         
8035 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8036
8037         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
8038           Thanks to Mike for pointing out the err of my ways.
8039
8040 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8041
8042         * Control.cs(PreProcessMessage): Moved menu handling back, but
8043           after all other key handling, to match MS (who handles Menu in
8044           DefWndProc)
8045         * Menu.cs (WndProc): Removed my brainfart
8046
8047 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8048
8049         * Control.cs(PreProcessMessage): Removed special menu handling 
8050         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
8051
8052 2005-12-07  Mike Kestner  <mkestner@novell.com>
8053
8054         * Control.cs : special case SYSKEYUP so that we can adjust keynav
8055         state according in tracker.
8056         * Menu.cs : promote tracker field to base class and provide a tracker
8057         lookup capability.  Add/Remove shortcuts dynamically if the top menu
8058         has a tracker. Unparent items that are removed from the collection.
8059         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
8060         * Theme*.cs: add always_show_hotkeys field to support configurability
8061         of mnemonic display.  win32 doesn't show mnemonics until Alt is
8062         pressed.
8063
8064 2005-12-07  Jackson Harper  <jackson@ximian.com>
8065
8066         * MdiChildContext.cs: Use Control.ResetCursor.
8067         * Control.cs: ResetCursor needs to set the property so that the
8068         correct XplatUI call gets made.
8069
8070 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8071
8072         * Control.cs: More fixes to make our key events match MS. We
8073           were not setting the modifier state on KeyData, and we were
8074           not generating any events when Alt was pressed with a key
8075           since handling of WM_SYSxxx was missing for the OnKey methods.
8076
8077 2005-12-07  Jackson Harper  <jackson@ximian.com>
8078
8079         * MdiChildContext.cs: reenable the sizing code.
8080         - When the mouse leaves a window reset its cursor.
8081
8082 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8083
8084         * ThemeClearlooks.cs: Reflect latest Hwnd changes
8085
8086 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8087
8088         * Hwnd.cs: Now using the theme 3d bordersize to calculate
8089           widths of Fixed3D borders
8090
8091 2005-12-07  Jackson Harper  <jackson@ximian.com>
8092
8093         * MdiClient.cs: Fix warnings. Earn Mike's love.
8094
8095 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8096
8097         * ThemeClearlooks.cs:
8098           - Adjusted mouse over button color
8099           - Added first parts of CheckBox drawing
8100           - Added correct color for selected text background
8101           - Fixed ComboBox drawing
8102           - Added CPDrawBorder3D and CPDrawBorder
8103
8104 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
8105
8106         * XplatUIX11.cs: Added call to XBell for AudibleAlert
8107
8108 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
8109
8110         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8111           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
8112           alert users via sound. We could add an enum arg with different
8113           types of alerts in the future
8114
8115 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
8116
8117         * Control.cs: Fix behaviour problems pointed out by Mike
8118
8119 2005-12-05  Mike Kestner  <mkestner@novell.com>
8120
8121         * StatusBarPanel.cs: add Invalidate method and hook it into all the
8122         prop setters.  Calls parent.Refresh for now, but could be maybe be
8123         optimized with an internal method on StatusBar at some point.
8124         [Fixes #76513]
8125
8126 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
8127
8128         * RichTextBox.cs: Implemented get_SelectionColor
8129
8130 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
8131
8132         * ThemeClearlooks.cs:
8133           - Removed dead code
8134           - Draw black button border only if button is Form.AcceptButton
8135           - Draw correct button color for pressed RadioButton if the mouse 
8136             has entered the button
8137           - Updated ProgressBar drawing!
8138           - Updated CPDrawSizeGrip drawing
8139           - Updated StatusBarPanel drawing
8140
8141 2005-12-05  Mike Kestner  <mkestner@novell.com>
8142
8143         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
8144         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
8145
8146 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
8147
8148         * ThemeClearlooks.cs: Initial check-in, activate with
8149           export MONO_THEME=clearlooks
8150         * ThemeEngine.cs: Added ThemeClearlooks
8151
8152 2005-12-03  Mike Kestner  <mkestner@novell.com>
8153
8154         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
8155         [Fixes #76897]
8156
8157 2005-12-02  Jackson Harper  <jackson@ximian.com>
8158
8159         * Form.cs: If the child form has no menu the default main menu is
8160         used as the active menu.
8161
8162 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
8163
8164         * ListBox.cs: Check if any items exist before trying to resolve 
8165           coordinates into items
8166
8167 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8168
8169         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
8170           as the second color for the background hatch
8171
8172 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8173
8174         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
8175         * RichTextBox.cs: FormatText position arguments are 1-based, now making
8176           sure that what we pass to FormatText is always 1-based. Fixes #76885
8177
8178 2005-11-29  Miguel de Icaza  <miguel@novell.com>
8179
8180         * NumericUpDown.cs (EndInit): When we are done initializing,
8181         reflect any updates on the UI.
8182
8183 2005-12-02  Jackson Harper  <jackson@ximian.com>
8184
8185         * ImplicitHScrollBar.cs:
8186         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
8187         their container controls.
8188         * TreeView.cs: Use the new implicit scrollbars.
8189
8190 2005-12-02  Jackson Harper  <jackson@ximian.com>
8191
8192         * TreeView.cs: Make top_node internal so the TreeNodeCollections
8193         can play with it.
8194         * TreeNodeCollection.cs: If we remove the topnode we need to
8195         update topnode to the next node in line.
8196         - When clearing nodes go through the same process as removing
8197         them, so they get depareneted and checked if they are top node.
8198
8199 2005-12-01  Jackson Harper  <jackson@ximian.com>
8200
8201         * TreeView.cs: When imagelists are used the image area is
8202         selectable as well as the text.
8203         - If there are no selected nodes select the first one.
8204         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
8205         so don't do it more then we need to.
8206
8207 2005-12-01  Jackson Harper  <jackson@ximian.com>
8208
8209         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
8210         that arrows can be scaled.
8211
8212 2005-12-01  Jackson Harper  <jackson@ximian.com>
8213
8214         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
8215         fail. Patch by Dieter Bremes
8216
8217 2005-11-30  Jackson Harper  <jackson@ximian.com>
8218
8219         * Form.cs: Property is 2.0 only
8220         * PrintDialog.cs: Signature fix.
8221
8222 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8223
8224         * TextControl.cs: 
8225           - No longer artificially moves text 2 pixels down (now that we have
8226             borders this is no longer needed)
8227           - Added calcs for left, hanging and right indent
8228
8229 2005-11-23  Mike Kestner  <mkestner@novell.com>
8230
8231         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
8232
8233 2005-11-30  Jackson Harper  <jackson@ximian.com>
8234
8235         * MdiChildContext.cs: Set the cloned menus forms, as these don't
8236         get cloned as part of CloneMenu ().
8237         * Menu.cs: Make sure the parent of the items get set correctly
8238         when they are added.  And the owners are notified of the changes.
8239         * Form.cs: Create an ActiveMenu property, so that when MDI is used
8240         we can change the menu being displayed/handled by the form without
8241         changing the menu assosciated with the form.
8242         - Don't let Mdi children draw/handle menus.
8243         
8244 2005-11-30  Jackson Harper  <jackson@ximian.com>
8245
8246         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8247         a MenuChanged event. Just to make the API a little more
8248         consistent.
8249         * MainMenu.cs:
8250         * MenuItem.cs: Use the new OnMenuChanged
8251         * MdiChildContext.cs: Handle menu merging.
8252         * Form.cs: Implement MergedMenu.
8253         
8254 2005-11-30  Jackson Harper  <jackson@ximian.com>
8255
8256         * Menu.cs: We were misusing Add. Add goes behind the specified
8257         index according to the docs, and does not replace the specified
8258         index. So I added an Insert method.
8259
8260 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8261
8262         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8263           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8264           is for Jackson
8265         * RichTextBox.cs: Added calls to base for DnD events
8266
8267 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
8268
8269         * TextControl.cs:
8270           - Fixed drag-selection related crash; style fixes
8271           - Implemented undo class
8272             o Implemented method to capture document state for specified
8273               range in document tree
8274             o Implemented method to restore captured document state
8275             o Implemented cursor tracking
8276             o Implemented basic undo stack
8277           - Added undo cursor tracking to methods altering cursor location
8278           - Added undo tracking to selection deletion (still missing
8279             other text-altering hookups)
8280         * RichTextBox.cs:
8281           - Added SelectionLength property
8282           - Implemented CanPaste()
8283           - Implemented Paste()
8284           - Added missing protected methods
8285           - Fixed RTF->Document conversion; now uses font index 0 and color 
8286             index 0 as the default font for the parsed text
8287           - Fixed RTF<->Document font size translation
8288           - Fixed RTF generation, now properly handles cross-tag boundaries
8289             for single line selection
8290           - No longer always appends blank line to generated RTF
8291           - Removed TODOs
8292           - Added missing attributes
8293           - Hooked up undo-related methods
8294         * TextBoxBase.cs:
8295           - Implemented Copy()
8296           - Implemented Paste()
8297           - Implemented Cut()
8298           - Fixed caret mis-behaviour on backspace across line-boundaries
8299
8300 2005-11-29  Jackson Harper  <jackson@ximian.com>
8301
8302         * MdiClient.cs: Add a method for activating mdi children. Very
8303         basic right now. I imagine someday it might need more girth.
8304         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
8305         children windows names are added to the menu item.
8306         * ThemeWin32Classic.cs: Draw the arrow if the item is an
8307         mdilist. This happens regardless of whether or not there are any
8308         mdi windows to see in the list, and according to my tests happens
8309         before the items are even added. Also happens if there isn't even
8310         an mdi client to get windows from.
8311
8312 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
8313
8314         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
8315         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
8316
8317 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
8318
8319         * DataGridTableStyle.cs:
8320           - Create always the styles for the missing columns even if they are
8321             provided by the user (not default table style)
8322         * DataGrid.cs:
8323           - Fixes bug 76770
8324           - Fixes SetDataBinding (always re-attach source)
8325           - Fixes SetNewDataSource (only clear styles if they are not for 
8326             this source)
8327          -  Expands OnTableStylesCollectionChanged to handle style refresh 
8328             and remove properly
8329
8330 2005-11-29  Jackson Harper  <jackson@ximian.com>
8331
8332         * FileDialog.cs: Implement missing bits, remove some dead
8333         code.
8334         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
8335         creation of the panel so that the options set on the dialog are
8336         seen when the panel is created.
8337         * TreeView.cs: raise a click when items are clicked.
8338         
8339 2005-11-29  Jackson Harper  <jackson@ximian.com>
8340
8341         * MdiClient.cs: Pass some signature methods through to base.
8342
8343 2005-11-28  Jackson Harper  <jackson@ximian.com>
8344
8345         * ListView.cs: Raise the click event when items are clicked.
8346
8347 2005-11-28  Jackson Harper  <jackson@ximian.com>
8348
8349         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
8350         a nullref.
8351
8352 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
8353
8354         * ThemeNice.cs: - Removed 1 pixel bitmaps
8355           - Use SmoothingMode.AntiAlias where it makes sense
8356             (ScrollButton arrow for example)
8357           - Enhanced Button focus drawing
8358           - Fixed ComboBox drawing (no artefacts anymore, focus
8359             rectangle is back again, reduced size of ComboButton, etc.)
8360           - Fixed RadioButton focus drawing for Appearence.Button
8361           - Slight ScrollButton redesign
8362           - Some LinearGradientBrush size fixes
8363           - GroupBoxes have now rounded edges
8364           - Fixed StatusBar drawing
8365
8366 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
8367
8368         * ThemeNice.cs: - Remove dead code
8369           - use correct background colors for menus, etc.
8370           - Fake pixel drawing with 1 pixel bitmaps
8371
8372 2005-11-24  Jackson Harper  <jackson@ximian.com>
8373
8374         * MdiClient.cs: Size the scrollbars when resizing the window.
8375         - Resize the maximized windows when the client is resized
8376         * Form.cs: Make the child context available
8377         
8378 2005-11-23  Jackson Harper  <jackson@ximian.com>
8379
8380         * MdiChildContext.cs: Don't size windows if they are maximized.
8381
8382 2005-11-23  Mike Kestner  <mkestner@novell.com>
8383
8384         * ContextMenu.cs: use MenuTracker.
8385         * Control.cs: remove menu handle usage.
8386         * Form.cs: remove menu handle usage.
8387         * Hwnd.cs: remove menu handle usage.
8388         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
8389         motion and clicks to the new Tracker handlers.
8390         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
8391         and handle usage.
8392         * MenuAPI.cs: refactored to combine popup and menubar event handling.
8393         Killed the MENU and MENUITEM data types and associated collections
8394         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
8395         MenuTracker class that exposes the leftovers from the old MenuAPI
8396         static methods. Restructured Capture handling so that only one grab is
8397         done for the entire menu hierarchy instead of handing off grabs to
8398         submenus. Tracker now has an invisible control to Capture when active.
8399         * MenuItem.cs: add sizing accessors, kill Create
8400         and handle usage.
8401         * Theme.cs: remove menu handle and MENU(ITEM) usage.
8402         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
8403         MENU(ITEM). remove menu handle usage, use Menu directly.
8404         * XplatUIDriver.cs: remove menu handle usage.
8405         * XplatUIOSX.cs: remove menu handle usage.
8406         * XplatUIWin32.cs: remove menu handle usage.
8407         * XplatUIX11.cs: remove menu handle usage.
8408
8409 2005-11-22  Jackson Harper  <jackson@ximian.com>
8410
8411         * Hwnd.cs: Don't compute the menu size for
8412         DefaultClientRectangle.
8413         - Reenable menu sizes being computed for GetClienRectangle.
8414         * Form.cs: Remove comment of trechery
8415         
8416 2005-11-22  Jackson Harper  <jackson@ximian.com>
8417
8418         * Hwnd.cs: The adjustments for the menu bar are made when it is
8419         attached to the form.
8420
8421 2005-11-19  Jackson Harper  <jackson@ximian.com>
8422
8423         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
8424         (just like on windows).
8425
8426 2005-11-19  Jackson Harper  <jackson@ximian.com>
8427
8428         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
8429         use real buttons anymore because they are in non client area. The
8430         one TODO here is that I need to somehow invalidate a section of
8431         the non client area.
8432
8433 2005-11-18  Jackson Harper  <jackson@ximian.com>
8434
8435         * Control.cs: Put the enum check back in now that MDI doesnt have
8436         to use this to set border styles.
8437         * Form.cs: Only set mdi child windows borders if the handle has
8438         been created.
8439         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
8440         this directly on to the driver.
8441         - Get the move start position before adjusting for the titlebar
8442         height, this fixes the windows "skipping" when they are first
8443         moved.
8444
8445 2005-11-18  Jackson Harper  <jackson@ximian.com>
8446
8447         * XplatUIX11.cs: Just compute the mdi borders separately as they
8448         don't totally match up with normal form borders.
8449
8450 2005-11-18  Jackson Harper  <jackson@ximian.com>
8451
8452         * Control.cs: Set WS_ styles for borders, so that the driver does
8453         not have to retrieve the control instance to figure out what kind
8454         of borders it should have.
8455         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
8456         driver can know its an mdi child easily.
8457         * XplatUIX11.cs: Get the border styles and whether the window is
8458         MDI from the Styles and ExStyles params instead of having to get a
8459         control. This prevents a chicken and egg problem.       
8460
8461 2005-11-18  Jackson Harper  <jackson@ximian.com>
8462
8463         * MdiClient.cs: Fix typo so scrollbars show up correctly.
8464
8465 2005-11-18  Jackson Harper  <jackson@ximian.com>
8466
8467         * MdiClient.cs: Calculate when to add and remove scrollbars
8468         correctly.
8469         * MdiChildContext.cs: Adjust the y position to take the titlebar
8470         into account.
8471         - No height for FormBorderStyle.None
8472
8473 2005-11-18  Jackson Harper  <jackson@ximian.com>
8474
8475         * Control.cs: Allow non enum values to be used for
8476         InternalBorderStyle.  MDI does this to set a special border style.
8477         - New utility methods for converting points to/from client coords
8478         - Add the newly created control to the Controls collection before
8479         updating its style. This way UpdateStyle can walk the control
8480         heirarchy to find the control if needed.
8481         so I don't need to create a new Point object all the time.
8482         * Form.cs: Let MDI windows handle their border styles.
8483         - Set styles on MDI windows so the correct title style is derived.
8484         * MdiChildContext.cs: Move all the painting and window handling
8485         into the non client area.
8486         - Use correct sizing and put correct buttons on frames based on
8487         the FormBorderStyle.
8488         - Notify the mdi client about scrolling
8489         - Need to handle the buttons ourselves now, because they are all
8490         in non client areas and we can't add controls there.
8491         * MdiClient.cs: Halfway to scrolling, this implementation is
8492         somewhat broken though, we need to check to make sure other
8493         windows aren't causing scrolling before removing the bars. Also
8494         the bars need to be drawn on top, maybe I can switch implicit
8495         controls to be on top.
8496         * Hwnd.cs: caption_height and tool_caption_height are now
8497         properties of an hwnd, this way they can be set by the driver
8498         based on the type of window they are.  In X11 the window manager
8499         handles the decorations so caption_height is zero unless its an
8500         MDI window.
8501         - Add 3 pixel borders for MDI windows (0xFFFF).
8502         - Get rid of some code duplication, have DefaultClientRectanle
8503         just call GetClientRectangle.
8504         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8505         Hwnd now.
8506         - Set border styles differently for mdi windows.
8507         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8508         Hwnd now.
8509         
8510 2005-11-15  Mike Kestner  <mkestner@novell.com>
8511
8512         * Menu.cs: when adding an item to the collection, if item is already 
8513         parented, remove it from the parent.
8514
8515 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
8516
8517         * X11DesktopColors.cs: Added KDE support
8518
8519 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
8520
8521         * XplatUIWin32.cs: 
8522           - Clipboard methods now can translate Rtf format
8523           - No longer removes clipboard contents whenever a new format is added
8524             to allow placing multiple formats on the clipboard
8525         * Clipboard.cs: Clipboard now supports getting a IDataObject and
8526           will place all formats contained in it onto the clipboard. Also
8527           now cleans the clipboard before placing a new object onto it
8528         * RichTextBox.cs:
8529           - Implemented set_Rtf
8530           - Implemented set_SelectedRtf
8531           - Created InsertRTFFromStream() method to allow single code base
8532             for all properties and methods that insert RTF into document
8533           - Removed debug output
8534         * TextControl.cs:
8535           - Fixed Delete(int) to fix up line numbers
8536           - Fixed ReplaceSelection to combine start and end line
8537           - Fixed serious DeleteChars bug that would leave the document tree
8538             broken
8539           - Improved DumpTree with several logic checks to detect broken
8540             document trees
8541           - Removed debug lines
8542           - Fixed Caret.WordForward/WordBack moving code, now always also 
8543             updates caret.tag (fixes crash when word-selecting across tag
8544             boundaries via keyboard)
8545           - Added Insert() method for inserting multiline text into documents
8546           - Fixed DeleteChars() calculation errors that would cause a broken
8547             tag chain with multiple tag lines
8548           - DeleteChars() no longer crashes on multi-tag lines if not all tags
8549           - Split() no longer moves caret if split is at caret location
8550           - ReplaceSelection() now updates the cursor and re-displays it
8551           - ReplaceSelection() now uses new Insert() method to avoid code
8552             duplication
8553           - FormatText() can now handle formatting partial lines
8554         * TextBoxBase.cs:
8555           - Append now uses new TextControl.Insert() method (this avoids 
8556             duplicate code)
8557           - Implemented Ctrl-X (Cut) (
8558           - Implemented Ctrl-C (Copy)
8559           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
8560             regeneration when pasting text; roundtripping Copy&Paste within
8561             edit control still fails due to some calculation bugs in GenerateRTF)
8562           - The Delete key will now remove the current selection if it is visible
8563         * TextBox.cs: Removed debug lines
8564         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
8565           driver to be initialized and can't therefore be done via a static ctor)
8566
8567 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
8568
8569         * TextControl.cs: Added backend code for finding char arrays and strings
8570         * TextBoxBase.cs:
8571           - Added mouse wheel scroll support
8572           - Added support for VScroll and HScroll events
8573         * RichTextBox.cs:
8574           - Implemented all seven Find() variants
8575           - Implemented GetCharFromPosition()
8576           - Implemented GetCharIndexFromPosition()
8577           - Implemented GetLineFromIndex()
8578           - Implemented GetPositionFromCharIndex();
8579           - Implemented SaveFile for PlainText and UnicodeText
8580           - Fixed set_Font, now setting a new font applies that font to
8581             the whole document
8582           - Implemented generic Document to RTF converter
8583           - Implemented SaveFile for RichText format (still missing unicode
8584             conversion for non-ansi chars)
8585           - Implemented get_Rtf
8586           - Implemented get_SelectedRtf
8587
8588 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
8589
8590         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
8591           to allow any captures to be released before triggering OnClick. This
8592           way a click handler may capture the mouse without interference.
8593         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
8594           This way we send them even though X may not allow a grab (if the window
8595           isn't visible, for example)
8596
8597 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
8598
8599         * DataGridViewRowEventArgs.cs: DataGridView implementation
8600         * DataGridViewElement.cs: DataGridView implementation
8601         * DataGridViewComboBoxCell.cs: DataGridView implementation
8602         * DataGridViewDataErrorContexts.cs: DataGridView implementation
8603         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
8604         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
8605         * ImageLayout.cs: DataGridView implementation
8606         * DataGridViewComboBoxColumn.cs: DataGridView implementation
8607         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
8608         * DataGridViewSelectionMode.cs: DataGridView implementation
8609         * IDataGridViewEditingControl.cs: DataGridView implementation
8610         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
8611         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
8612         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
8613         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
8614         * DataGridViewColumnSortMode.cs: DataGridView implementation
8615         * DataGridView.cs: DataGridView implementation
8616         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
8617         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
8618         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
8619         * Padding.cs: DataGridView implementation
8620         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
8621         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
8622         * DataGridViewRowEventHandler.cs: DataGridView implementation
8623         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
8624         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
8625         * DataGridViewButtonCell.cs: DataGridView implementation
8626         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
8627         * DataGridViewEditMode.cs: DataGridView implementation
8628         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
8629         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
8630         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
8631         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
8632         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
8633         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
8634         * DataGridViewCellEventHandler.cs: DataGridView implementation
8635         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
8636         * DataGridViewCellStyleConverter.cs: DataGridView implementation
8637         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
8638         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
8639         * DataGridViewColumnEventArgs.cs: DataGridView implementation
8640         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
8641         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
8642         * QuestionEventArgs.cs: DataGridView implementation
8643         * IDataGridViewEditingCell.cs: DataGridView implementation
8644         * DataGridViewTriState.cs: DataGridView implementation
8645         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
8646         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
8647         * DataGridViewColumnCollection.cs: DataGridView implementation
8648         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
8649         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
8650         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
8651         * DataGridViewColumn.cs: DataGridView implementation
8652         * DataGridViewCellBorderStyle.cs: DataGridView implementation
8653         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
8654         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
8655         * DataGridViewRow.cs: DataGridView implementation
8656         * DataGridViewImageCellLayout.cs: DataGridView implementation
8657         * DataGridViewImageCell.cs: DataGridView implementation
8658         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
8659         * DataGridViewCheckBoxCell.cs: DataGridView implementation
8660         * DataGridViewHeaderCell.cs: DataGridView implementation
8661         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
8662         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
8663         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
8664         * DataGridViewTextBoxColumn.cs: DataGridView implementation
8665         * QuestionEventHandler.cs: DataGridView implementation
8666         * DataGridViewCellStyleScopes.cs: DataGridView implementation
8667         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
8668         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
8669         * DataGridViewCell.cs: DataGridView implementation
8670         * DataGridViewCellEventArgs.cs: DataGridView implementation
8671         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
8672         * DataGridViewCellStyle.cs: DataGridView implementation
8673         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
8674         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
8675         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
8676         * TextFormatFlags.cs: DataGridView implementation
8677         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
8678         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
8679         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
8680         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
8681         * DataGridViewButtonColumn.cs: DataGridView implementation
8682         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
8683         * HandledMouseEventArgs.cs: DataGridView implementation
8684         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
8685         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
8686         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
8687         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
8688         * DataGridViewRowCollection.cs: DataGridView implementation
8689         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
8690         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
8691         * DataGridViewHitTestType.cs: DataGridView implementation
8692         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
8693         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
8694         * DataGridViewColumnEventHandler.cs: DataGridView implementation
8695         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
8696         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
8697         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
8698         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
8699         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
8700         * DataGridViewContentAlignment.cs: DataGridView implementation
8701         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
8702         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
8703         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
8704         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
8705         * DataGridViewPaintParts.cs: DataGridView implementation
8706         * DataGridViewCellCollection.cs: DataGridView implementation
8707         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
8708         * DataGridViewImageColumn.cs: DataGridView implementation
8709         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
8710         * DataGridViewElementStates.cs: DataGridView implementation
8711         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
8712         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
8713         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
8714         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
8715         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
8716         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
8717         * DataGridViewRowHeaderCell.cs: DataGridView implementation
8718         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
8719         * DataGridViewTextBoxCell.cs: DataGridView implementation
8720         * DataGridViewBand.cs: DataGridView implementation
8721         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
8722         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
8723         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
8724         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
8725         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
8726         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
8727         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
8728         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
8729         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
8730         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
8731         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
8732
8733 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
8734
8735         * ThemeWin32Classic.cs: 
8736           - Draw the outside focus rectangle around buttons
8737           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
8738             doesn't use end caps for every dash of a line anymore. This
8739             workaround ignores the forecolor.
8740
8741 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
8742
8743         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
8744           endian safe.
8745
8746 2005-11-07  Jackson Harper  <jackson@ximian.com>
8747
8748         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
8749
8750 2005-11-07  Jackson Harper  <jackson@ximian.com>
8751
8752         * ScrollableControl.cs: Calculate the maximum and change vars
8753         (more) correctly so that scrollbars appear as a sensible size.
8754
8755 2005-11-04  Jackson Harper  <jackson@ximian.com>
8756
8757         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
8758         collection.
8759         * TreeView.cs: When the tree is sorted null out the top_node so
8760         that it is recalculated.
8761         - Use dotted lines instead of dashed lines to match MS better.
8762
8763 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
8764
8765         * ListView.cs: 
8766           - Implements key search for items. Useful when browsing files with FileDialog
8767           - When changing view mode or when clear the items reset scrollbar positions
8768
8769 2005-11-04  Jackson Harper  <jackson@ximian.com>
8770
8771         * CurrencyManager.cs: Implement the MetaDataChanged event, the
8772         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8773         as to what the method may do as there is no real way of creating a
8774         derived CurrencyManager and calling the method. 
8775
8776 2005-11-03  Jackson Harper  <jackson@ximian.com>
8777
8778         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8779         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8780         method which seems to just be used internally to refresh the tabs.
8781
8782 2005-11-03  Jackson Harper  <jackson@ximian.com>
8783
8784         * TabControl.cs: Implement the remove method. Fix some broken
8785         comments.
8786
8787 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8788
8789         * DateTimePicker.cs:
8790           - Added missing DateTimePickerAccessibleObject class
8791           - Added missing events
8792           - Added OnFontChanged method
8793         * Form.cs: Added missing attributes
8794         * TreeView.cs: Added missing attributes
8795
8796 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
8797
8798         * GridItemCollection.cs: Fix signatures
8799
8800 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8801
8802         * XplatUI.cs: Updated build rev/date
8803         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
8804           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8805         * Application.cs: Trigger context-specific ExitThread events
8806
8807 2005-11-03  Jackson Harper  <jackson@ximian.com>
8808
8809         * Menu.cs:
8810         * MainMenu.cs:
8811         * GridTableStylesCollection.cs:
8812         * Timer.cs:
8813         * TabPage.cs:
8814         * HelpProvider.cs:
8815         * StatusBar.cs:
8816         * MonthCalendar.cs: Signature fixes
8817
8818 2005-11-03  Jackson Harper  <jackson@ximian.com>
8819
8820         * TreeNodeCollection.cs: Remove should not be virtual.
8821         * TreeView.cs: Implement the last of the missing methods.
8822
8823 2005-11-03  Jackson Harper  <jackson@ximian.com>
8824
8825         * TreeNodeConverter.cs: Implement to get off my class-status back.
8826
8827 2005-11-03  Jackson Harper  <jackson@ximian.com>
8828
8829         * TreeView.cs: Hookup the bits for drag and drop.
8830         * TreeNode.cs: Don't cache the tree_view or index anymore, now
8831         that nodes can be moved from tree to tree easily this just causes
8832         all sorts of problems.
8833         * TreeNodeCollection: Don't need to give treenodes an index and
8834         treeview anymore when they are added, these are computed on the
8835         fly. Also make sure to remove a node before its added.
8836
8837 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8838
8839         * TextControl.cs:
8840           - Added CaretSelection enum
8841           - Added comparison methods to Marker struct, makes selection code
8842             more readable
8843           - Added SelectionStart and SelectionEnd as 'moveable' location for
8844             the CaretDirection enum and handler
8845           - Added selection_prev variable to track optimized invalidation for
8846             word and line selection
8847           - Added SelectionVisible property (returns true if there is a valid 
8848             selection)
8849           - Switched CaretHasFocus to only display the caret if there is no
8850             visible selection
8851           - Avoiding StringBuilder.ToString to retrieve a single char, instead
8852             using the direct character index; should be much faster
8853           - Added various conditional debug statements
8854           - Fixed invalidation calculation for selection ranges
8855           - Added ExpandSelection() method to support word and line selection
8856           - Switched SetSelectionToCaret to use new Marker compare overloads
8857           - Added central IsWordSeparator() method to determine word 
8858             separators/whitespace and FindWordSeparator() to streamline common
8859             usage of IsWordSeparator()
8860         * TextBoxBase.cs:
8861           - Removed unneeded grabbed variable, it was just mirroring
8862             Control.Capture
8863           - No longer firing OnTextChanged event when Text setter is called,
8864             since the base will fire the event for us
8865           - Added handling of Ctrl-Up/Down selection
8866           - Added handling of Shift-Cursorkey selection
8867           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8868             words
8869           - Added handling of Shift and Ctrl-Shift-Home/End selection
8870           - Removed some debug output
8871           - Added handling for single/double/tripple-click to place caret/
8872             select word/select line respectively (Fixes bug #76031)
8873           - Added support for drag expansion of word/line selection
8874         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8875           current selection
8876
8877 2005-11-02  Jackson Harper  <jackson@ximian.com>
8878
8879         * X11Dnd.cs: If the drag is going to and from a MWF window just
8880         copy the data instead of sending it out through the X Selection
8881         mechanism.
8882
8883 2005-11-02  Jackson Harper  <jackson@ximian.com>
8884
8885         * X11Dnd.cs:
8886         * XplatUIX11.cs: When in a drag we don't want motion notify
8887         messages to get passed on to the other controls. This prevents
8888         mouse move messages from showing up in the drag source.
8889
8890 2005-11-02  Jackson Harper  <jackson@ximian.com>
8891
8892         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
8893         the correct button is release to end a drag.
8894         * XplatUIX11.cs: Make the button state internal so the drag system
8895         can access it.  Dragging needs to know about all button releases,
8896         not just left button.
8897
8898 2005-11-02  Miguel de Icaza  <miguel@novell.com>
8899
8900         * Form.cs (Icon): If the icon is null, reset the icon to the
8901         default value. 
8902
8903         * Cursor.cs: When writing the AND-mask bitmap do not include the
8904         number of colors, but hardcode those to two (black and white),
8905         fixes the loading of color cursors (Paint Dot Net).
8906
8907         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8908         turn off autoscaling.
8909
8910         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8911
8912 2005-11-02  Jackson Harper  <jackson@ximian.com>
8913
8914         * X11Dnd.cs: Make sure to send a status message if the pointer
8915         enters a control that can not accept a drop, otherwise the cursor
8916         isn't updated correctly. Also tried to compress the lines of code
8917         a bit.
8918
8919 2005-11-02  Jackson Harper  <jackson@ximian.com>
8920
8921         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8922         set actions correctly.  This isn't perfect as XDND and win32 have
8923         some differences on how you allow actions. I'll clear this up by
8924         adding a path for drag from MWF to MWF windows.
8925         * XplatUIX11.cs: Hook into the dnd system.
8926
8927 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
8928
8929         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8930         previously shown but they are no longer need it. Very obvious when 
8931         browsing files with FileDialog.
8932
8933 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
8934
8935         * Control.cs: We always need to call OnPaintBackground. We pretty much
8936           ignore AllPaintingInWmPaint and always do the painting there, whether 
8937           it's set or not, since we always ignore the WM_ERASEBKGND message 
8938           (which we don't generate on X11). This fixes #76616.
8939         * Panel.cs: Removed unneeded background painting. This happens properly
8940           in Control.cs already
8941
8942 2005-10-31  Mike Kestner  <mkestner@novell.com>
8943
8944         * Menu.cs: Add items to collection before setting their index.
8945         * MenuItem.cs : add range checking with ArgumentException like MS.
8946         [Fixes #76510]
8947
8948 2005-10-31  Jackson Harper  <jackson@ximian.com>
8949
8950         * ListBox.cs: Invalidate if the area is visible at all not just
8951         contained in the visible rect. Fixes unselection of semi visible
8952         items.
8953
8954 2005-10-31  Jackson Harper  <jackson@ximian.com>
8955
8956         * Control.cs: Consistently name the dnd methods. Make them
8957         internal so we can override them to match some MS behavoir
8958         internally.
8959         * Win32DnD.cs: Use the new consistent names.
8960
8961 2005-10-31  Jackson Harper  <jackson@ximian.com>
8962
8963         * TreeView.cs: Don't draw the selected node when we lose focus.
8964
8965 2005-10-31  Jackson Harper  <jackson@ximian.com>
8966
8967         * X11Dnd.cs: We still need to reset the state even though a full
8968         reset isn't being done, otherwise status's still get sent all over
8969         the place.
8970
8971 2005-10-31  Jackson Harper  <jackson@ximian.com>
8972
8973         * Control.cs: Make the dnd_aware flag internal so the dnd
8974         subsystem can check it. Catch exceptions thrown in dnd handlers to
8975         match MS behavoir.
8976         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8977         * X11Dnd.cs: Handle null data in the converters. Set the XDND
8978         version when sending a XdndEnter. Use the control/hwnd dnd_aware
8979         flags to reduce the number of dnd enters/status's sent.
8980
8981 2005-10-31  Jackson Harper  <jackson@ximian.com>
8982
8983         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8984
8985 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
8986
8987         * PictureBox.cs: Fixes 76512
8988
8989 2005-10-28  Jackson Harper  <jackson@ximian.com>
8990
8991         * X11Dnd.cs: Early implementation to support winforms being a drag
8992         source for data on X11. Also restructured the converters so they
8993         can go both ways now.
8994         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8995         
8996 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
8997
8998         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8999           clipboard requests
9000
9001 2005-10-27  Jackson Harper  <jackson@ximian.com>
9002
9003         * TreeNode.cs: Implement serialization so my DnD examples will work.
9004
9005 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
9006
9007         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
9008           TreeView.cs: Don't dispose objects that are not owned.
9009           
9010 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
9011
9012         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
9013           should retrieve the current cursor and report that, but XplatUI
9014           doesn't (yet) have an interface for that (and I'm not sure I even
9015           can, on X11)
9016         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
9017           until any message loop processing is done (and the WM_SETCURSOR
9018           replaces the cursor to the proper one)
9019         * XplatUIX11.cs: 
9020           - Fixed override behaviour, we can't set the cursor globally on X11, 
9021             just for our windows.
9022           - Invalidating the System.Drawing X11 display handle when we are
9023             shutting down
9024         * Control.cs: Fix to make csc happy
9025
9026 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
9027
9028         * TextBoxBase.cs: 
9029           - get_Text: Add last line (without trailing newline) to returned
9030             value (Fixes 76212)
9031           - get_TextLength: Count last line in returned length
9032           - ToString: Call Text property instead of duplicating code
9033
9034 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
9035
9036         * ImageList.cs: Dispose ImageAttributes objects.
9037
9038 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9039
9040         * ImageList.cs: Use attribute constructors with less arguments where
9041           possible.
9042
9043 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9044
9045         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
9046           Use typeof instead of strings when assembly is referenced. Added
9047           some more comments.
9048
9049 2005-10-21  Jackson Harper  <jackson@ximian.com>
9050
9051         * ListView.cs: Raise a double click event. Also tried to somewhat
9052         fix when the selectedindexchanged event is raised. Its still
9053         broken though.
9054
9055 2005-10-21  Jackson Harper  <jackson@ximian.com>
9056
9057         * TreeView.cs: New method to invalidate the plus minus area of a
9058         node without invalidating the whole node (maybe this can be used
9059         in some more places).
9060         * TreeNodeCollection.cs: When adding to an empty node we need to
9061         invalidate its plus minus area so the little block shows up.
9062         
9063 2005-10-21  Jackson Harper  <jackson@ximian.com>
9064
9065         * TreeView.cs: Make sure that when we invalidate a node the bounds
9066         are big enough to cover the selected box and the focus
9067         rectangle. Use a different colour for the lines connecting nodes
9068         so they show up with all themes.
9069
9070 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9071
9072         * NativeWindow.cs: Don't call anything that could call into the driver,
9073           we might be on a different thread.
9074
9075 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
9076
9077         * Control.cs(Dispose): Since Dispose might run on a different thread,
9078           make sure that we call methods that could call into the driver via
9079           invoke, to avoid thread issues
9080
9081 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9082
9083         * XplatUI.cs: Removed finalizer
9084         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
9085           not allowing to be called on the finalizer thread.
9086
9087 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
9088
9089         * ImageList.cs:
9090           - Reverted r51889 and r51891.
9091           - Added ImageListItem class that stores unmodified image items and image
9092             properties required to create list images until handle is created.
9093           - Added AddItem and moved image creation logic to AddItemInternal.
9094           - Added CreateHandle method that creates images based on unmodified items.
9095           - Added DestroyHandle that changes state to store unmodified items.
9096           - Add and AddStrip methods no more create handle.
9097           - ReduceColorDepth has no return value.
9098           - Dispose destroys handle.
9099           - Modified other methods to reflect the above changes.
9100           - Implemented key support.
9101           - Added profile 2.0 members and attributes.
9102           - Added private Reset and ShouldSerialize methods that provide the same
9103             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
9104             them as they are private.
9105           - Added some more comments about implementation details.
9106
9107 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9108
9109         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
9110
9111 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9112
9113         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
9114
9115 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9116
9117         * DataGridDrawingLogic.cs: Fixes column hit calcultation
9118         * DataGridColumnStyle.cs: Remove debug message
9119
9120 2005-10-20  Jackson Harper  <jackson@ximian.com>
9121
9122         * TreeView.cs: We can always get input keys regardless of whether
9123         or not editing is enabled. They are used for navigation.
9124
9125 2005-10-20  Jackson Harper  <jackson@ximian.com>
9126
9127         * TreeNode.cs: Use the viewport rect for determining if a node
9128         needs to be moved for visibility. Don't use Begin/End edit. This
9129         calls a full refresh when its done.
9130         * TreeView.cs: New SetBottom works correctly.  Make the viewport
9131         rect property internal so the treenodes can see it. When clicking
9132         on a node we need to ensure that its visible because it might just
9133         be partly visible when clicked.
9134
9135 2005-10-20  Jackson Harper  <jackson@ximian.com>
9136
9137         * TreeNodeCollection.cs: Remove debug code.
9138
9139 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9140
9141         * Datagrid.cs: Implements column sorting in Datagrid
9142         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
9143
9144 2005-10-20  Jackson Harper  <jackson@ximian.com>
9145
9146         * TreeNodeCollection.cs: Remove items properly. Update the correct
9147         area after removing them.
9148
9149 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9150
9151         * Datagrid.cs: Should not call base.OnPaintBackground
9152
9153 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9154
9155         * XplatUIX11.cs (GetMessage):
9156           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
9157             window instead of client window
9158           - Now properly calculates NC_xBUTTONUP message coordinates
9159           - ScreenToMenu now properly calculates it's coordinates of whole 
9160             window, since menus are in the whole window, not in the client
9161             window
9162           - Added WholeToScreen coordinate translation method
9163
9164 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
9165
9166         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
9167           want to return a message, loop back to the beginning of the function
9168           and grab the next real message to process instead.
9169
9170 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9171
9172         * Splitter.cs: Properly set limits if no filler control is used
9173
9174 2005-10-19  Jackson Harper  <jackson@ximian.com>
9175
9176         * ColorDialog.cs: Don't show the help button if it is not enabled
9177         instead of disabling it (this is what MS does). Don't create the
9178         panel until the dialog is run, otherwise the vars (such as
9179         ShowHelp) are not set yet.
9180
9181 2005-10-19  Jackson Harper  <jackson@ximian.com>
9182
9183         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
9184         are reduced when adding nodes.
9185         * TreeNode.cs:
9186         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
9187         tree.
9188         
9189 2005-10-19  Jackson Harper  <jackson@ximian.com>
9190
9191         * FolderBrowserDialog.cs: End editing our treeview so the window
9192         actually gets refreshed.
9193
9194 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9195
9196         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
9197           Obsoleted handling of WM_ERASEBKGND, now always draws our background
9198           inside of WM_PAINT
9199
9200 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9201
9202         * MenuAPI.cs: Returns after Hidding window
9203         * XplatUIX11.cs: Added TODO found while debugging menu issues
9204
9205 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9206
9207         * XplatUIX11.cs: Do not re-map the whole window when it's size
9208           becomes non-zero unless it's supposed to be actually visible
9209
9210 2005-10-18  Jackson Harper  <jackson@ximian.com>
9211
9212         * TreeView.cs: We don't need to keep a count anymore.
9213         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
9214         use the Grow method.
9215
9216 2005-10-18  Jackson Harper  <jackson@ximian.com>
9217
9218         * TreeNodeCollection.cs: Insert is not supported on arrays, so
9219         implement it manually here.
9220
9221 2005-10-18  Jackson Harper  <jackson@ximian.com>
9222
9223         * ImageList.cs: Dont kill the list when the colour depth is
9224         changed, just change the colour depth of all the images.
9225         - Same goes for setting the image size. Just resize them all
9226         instead of killing the list softly.
9227
9228 2005-10-18  Jackson Harper  <jackson@ximian.com>
9229
9230         * Control.cs: Don't invalidate empty rectangles.
9231
9232 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9233
9234         * ListViewItem.cs:
9235           - Adds checked item to the Checked/Item lists (where empty before)
9236           - Do not add items to the Selected lists if they are already present
9237         * ListView.cs:
9238           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
9239           - When deleting items make sure that we delete them for the Selected
9240           and Checked list also.
9241
9242 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9243
9244         * Label.cs: Dispose objects no longer used
9245         * ThemeWin32Classic.cs: Dispose objects no longer used
9246
9247 2005-10-18  Jackson Harper  <jackson@ximian.com>
9248
9249         * TabControl.cs: Don't refresh the whole control when the tabs are
9250         scrolled, we just need to refresh the tab area.
9251
9252 2005-10-17  Jackson Harper  <jackson@ximian.com>
9253
9254         * XplatUIX11.cs: Compress code a little bit. Only calculate the
9255         after handle when we need it.
9256
9257 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9258
9259         * Control.cs: When the parent size changes, recalculate anchor 
9260           positions. Partial fix for #76462
9261
9262 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9263
9264         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
9265           drawn. Fixes #76462
9266
9267 2005-10-17  Jackson Harper  <jackson@ximian.com>
9268
9269         * MonthCalendar.cs: Don't create the numeric up down until our
9270         handle is created. Otherwise our handle is created in the
9271         constructor and we don't know if we are a WS_CHILD or WS_POPUP
9272         yet.
9273
9274 2005-10-17  Jackson Harper  <jackson@ximian.com>
9275
9276         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9277         correctly.
9278
9279 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9280         * TreeNode.cs : small logical fix (was using local var instead of field)
9281         
9282 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9283
9284         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9285
9286 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9287
9288         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9289
9290 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
9291
9292         * Control.cs: 
9293           - Re-implemented anchoring code. My first version was really broken.
9294             This fixes bug #76033. Unlike the previous implementation we will
9295             no longer have round errors since all numbers are calculated from
9296             scratch every time. Removed various anchor-related obsolete vars.
9297           - InitLayout no longer causes layout event firing and layout to be 
9298             performed
9299
9300 2005-10-16  Jackson Harper  <jackson@ximian.com>
9301
9302         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
9303         which was broken).
9304
9305 2005-10-16  Jackson Harper  <jackson@ximian.com>
9306
9307         * TabControl.cs: Remove debug code.
9308
9309 2005-10-16  Jackson Harper  <jackson@ximian.com>
9310
9311         * XEventQueue.cs: Increase the default queue size (very simple
9312         apps needed to grow the queue).
9313         * Hwnd.cs: No finalizer so we don't need to suppress
9314         finalization. Compute the invalid area manually so a new rectangle
9315         does not newto be created.
9316         * ScrollableControl.cs: Don't set any params (otherwise visibility
9317         isn't set correctly).
9318         * MdiChildContext.cs: New constructor takes the mdi parent so it
9319         doesn't have to be computed and avoids a crash on windows. Draw
9320         the window icon properly, and allow the text to be seen.
9321         * Form.cs: Use new MdiChildContext constructor. Make sure the
9322         child context isn't null in wndproc.
9323         * TabControl.cs: Don't set focus, this is muddling keyboard
9324         behavoir. Expand the tab rows when a window size increase will
9325         allow extra tabs to be seen. Don't allow tabs smaller than the
9326         width of a window to be scrolled out of view.
9327         * TreeNode.cs:
9328         * TreeView.cs: Use measure string to calculate a nodes width, the
9329         width is cached and only updated when the text or the font is
9330         changed. Don't check for expand/collapse clicks on the first level
9331         nodes if root lines are disabled.
9332         
9333 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
9334
9335         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
9336
9337 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9338
9339         * DataGridBoolColumn.cs: fixes warning
9340
9341 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9342
9343         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
9344         to match more to match more precisely the MS Net behavior
9345
9346 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9347
9348         * Hwnd.cs: Added field to track if window is mapped
9349         * XplatUIX11.cs: 
9350           - Unmap windows if they become 0-size, re-map when 
9351             they are >0 again; fixes #76035
9352           - Re-set our error handler after initializing X11Desktop
9353             to override any error handlers Gtk or whatever was called
9354             may have set.
9355
9356 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9357
9358         * CheckedListBox.cs: Removed unused vars
9359         * ListView.cs: Fixed signatures
9360         * RichTextBox.cs: Removed unused vars
9361         * TextBoxBase.cs: Removed unused vars
9362         * XplatUIWin32.cs: Removed unused vars
9363         * XplatUIX11.cs: Removed unused vars
9364         * XplatUI.cs: Updated version and date to latest published
9365
9366 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9367
9368         * Cursor.cs: Added private .ctor to work around a bug in
9369           resourceset (Thanks to Geoff Norton for the help on this)
9370         * SplitterEventArgs.cs: Made fields accessible so we don't
9371           waste boatloads of objects and can reuse the same one
9372           in Splitter
9373         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
9374           any captions and borders when generating screen coordinates
9375         * Splitter.cs: Reimplemented control, now fully complete, uses
9376           rubberband drawing, supports and obeys all properties, has
9377           proper cursors
9378
9379 2005-10-13  Miguel de Icaza  <miguel@novell.com>
9380
9381         * Form.cs (Form): Setup default values for autoscale and
9382         autoscale_base_size;  Make these instance variables, not static
9383         variables. 
9384
9385         (OnLoad): on the first load, adjust the size of the form.
9386
9387 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9388
9389         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
9390           width argument to DrawReversibleRectangle()
9391         * XplatUIWin32.cs, XplatUIX11.cs: 
9392           - Implemented width for DrawReversibleRectangle()
9393           - Added logic to DrawReversibleRectangle that recognizes a zero
9394             width or height and only draws a line in that situation
9395         
9396 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
9397
9398         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
9399         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
9400         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
9401           method (it uses our FosterParent window to get a graphics context)
9402
9403 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
9404
9405         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
9406           and SetWindowBackground methods
9407         * Control.cs:
9408           - Setting proper ControlStyles
9409           - We no longer call XplatUI.SetWindowBackground and XplatUI.
9410             EraseWindowBackground, instead we draw the window background
9411             ourselves in PaintControlBackground. This behaviour is
9412             required to match MS, where, when OnPaintBackground is not
9413             called, the background is not drawn.
9414           - Removed unneeded Refresh() in set_Text
9415         * Hwnd.cs: Dropped the ErasePending support. No longer needed
9416         * XplatUIX11.cs:
9417           - Created DeriveStyles method to translate from CreateParams to
9418             FormBorderStyle and TitleStyle, also handles BorderStyle (which
9419             matches FormBorderStyle enum values)
9420           - Consolidated SetHwndStyles and CalculateWindowRect border/title
9421             style calculations into single DeriveStyles method
9422           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
9423             from redrawing the whole window on any resize or expose.
9424           - Fixed CreateWindow usage of SetWindowValuemask. Before not
9425             all styles were applied to our whole/client window appropriately
9426           - Removed EraseWindowBackground() and SetWindowBackground() methods
9427           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
9428             no longer clear/redraw the background through X
9429           - Removed handling of erase_pending bit, we have no use for it (or
9430             so it seems)
9431         * XplatUIOSX.cs:
9432           - Removed generation and handling of WM_ERASEBKGND message
9433           - Removed EraseWindowBackground() and SetWindowBackground() methods
9434           - Removed handling of hwnd.ErasePending flag
9435         * XplatUIWin32.cs:
9436           - Removed EraseWindowBackground() and SetWindowBackground() methods
9437           - We no longer call EraseWindowBackground on PaintEventStart, we 
9438             ignore the fErase flag, erasing is handled in Control in the
9439             background handler
9440         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
9441           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
9442           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
9443           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
9444           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
9445           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
9446           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
9447
9448 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
9449
9450         * PropertyGrids.cs: Get sub properties
9451         * PropertyGridView.cs: Fix drawing code
9452
9453 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9454
9455         * ListBox.cs: Fixes 76383
9456
9457 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9458
9459         * DataGridTextBoxColumn.cs: Sets location and size before attachment
9460         * ThemeWin32Classic.cs: Fixes border drawing and calculations
9461         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
9462
9463
9464 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9465
9466         * ComboBox.cs: Fixes border drawing
9467
9468 2005-10-10  Miguel de Icaza  <miguel@novell.com>
9469
9470         * MimeIcon.cs: Ignore errors if the file can not be read.
9471
9472 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9473
9474         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
9475          - Fixed border calculations
9476          - Fixed horizontal scrolling in single column listboxes
9477          - Fixed drawing issues
9478
9479 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
9480
9481         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
9482           FormBorderStyle enum
9483         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
9484           code to determine FormBorderStyles from CreateParams
9485         * Form.cs:
9486           - Fixed bug where we'd set the wrong window styles if we were
9487             not creating an MDI window
9488           - Added call to XplatUI.SetBorderStyle when form borders are set
9489         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9490         * Hwnd.cs:
9491           - Removed obsolete edge style
9492           - Switched from BorderStyle to FormBorderStyle
9493         
9494 2005-10-10  Jackson Harper  <jackson@ximian.com>
9495
9496         * Form.cs: Use the property to get the window handle instead of
9497         accessing it directly. Prevents a null reference exception.
9498
9499 2005-10-10  Jackson Harper  <jackson@ximian.com>
9500
9501         * TreeView.cs: Don't adjust the rect given to DrawString now that
9502         our libgdiplus draws correctly.
9503
9504 2005-10-08  Jackson Harper  <jackson@ximian.com>
9505
9506         * TreeView.cs: Don't try to find the clicked on node if there are
9507         no nodes in the tree.
9508
9509 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9510
9511         * RichTextBox.cs:
9512
9513           restore
9514
9515 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9516
9517         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9518           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9519           ErrorProvider.cs:
9520           Use ResPool for brushes and dispose System.Drawing objects that
9521           are not used anymore.
9522
9523 2005-10-07  Jackson Harper  <jackson@ximian.com>
9524
9525         * MdiChildContext.cs: Use the new borders instead of drawing them
9526         ourselves.
9527
9528 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9529
9530         * Calling UpdateBounds after changing the window's BorderStyle 
9531         since the style can change the ClientSize
9532
9533 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9534
9535         * Control.cs: Made PaintControlBackground virtual
9536         * Panel.cs: Overriding PaintControlBackground instead of using paint
9537           event; paint event method was interfering with 'real' users of the
9538           event.
9539
9540 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9541
9542         * ThemeWin32Classic.cs: remove border drawing since it is handled
9543         by the base control class now and was causing double border drawing.
9544
9545 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9546
9547         * Panel.cs: Redraw our background on paint. Not a pretty solution,
9548           but it does seem to match MS behaviour. This fixes bug #75324
9549
9550 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9551
9552         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9553           somewhat hackish looking
9554
9555 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9556
9557         * TextBoxBase.cs:
9558           - We now accept Enter even if AcceptEnter is false, if the containing
9559             form does not have an AcceptButton configured (fixes bug #76355)
9560           - Calculations are now fixed to no longer use Width/Height, but
9561             ClientSize.Width/Height, since we now support borders (this was
9562             a result of fixing borders and therefore bug #76166)
9563           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
9564             true (fixes bug #76354)
9565         
9566 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9567
9568         * Control.cs: 
9569           - Defaulting BorderStyle and setting it in XplatUI when our window 
9570             is created
9571           - Added enum check to InternalBorderStyle setter
9572         * XplatUIX11.cs: 
9573           - Added drawing of window borders
9574           - Now properly calculates WM decorations offset for toplevel 
9575             windows (fixes bug #74763)
9576         * XplatUIWin32.cs: 
9577           - Implemented BorderStyles for windows (we're letting win32 draw 
9578             the border for us)
9579           - Fixed the signature for SetWindowLong
9580         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
9581           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
9582           setting borders
9583         * UpDownBase.cs: Remove drawing of borders, this is handled by
9584           the driver, outside the client area
9585         * ListView.cs: Removed bogus border calculations. The control should
9586           be oblivious to borders, since those are not part of the client
9587           area. 
9588         * X11DesktopColors.cs: Commented out (currently) unneeded variables
9589         * ThemeWin32Classic.cs: Removed border calculations from ListView 
9590           drawing code
9591
9592 2005-10-06  Jackson Harper  <jackson@ximian.com>
9593
9594         * MdiChildContext.cs: Clear out the old virtual position remove
9595         all the unneeded calls to CreateGraphics.
9596
9597 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9598
9599         * TextControl.cs: Use proper color for highlighted text; fixes #76350
9600
9601 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9602
9603         * Form.cs: 
9604           - Added loading and setting of our new default icon
9605           - Only set icon if window is already created
9606
9607 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9608
9609         * Label.cs:
9610           - Do not explicitly set the foreground and background colors, to
9611             allow inheriting from parents (fixes #76302)
9612           - Use Control's InternalBorderStyle property to deal with borders
9613
9614 2005-10-06  Jackson Harper  <jackson@ximian.com>
9615
9616         * MdiChildContext.cs: Use the new xplatui function to draw a
9617         reversible rect.
9618
9619 2005-10-06  Jackson Harper  <jackson@ximian.com>
9620
9621         * Form.cs: Add the parent before creating the child context cause
9622         we need the parent when setting up the child.
9623
9624 2005-10-06  Jackson Harper  <jackson@ximian.com>
9625
9626         * FolderBrowserDialog.cs: redo the tree population code so a
9627         second thread isn't used. Should be a lot faster and more stable
9628         now.
9629
9630 2005-10-05  Jackson Harper  <jackson@ximian.com>
9631
9632         * TreeView.cs: There are no expand/collapse boxes if the node has
9633         no children.
9634
9635 2005-10-05  Jackson Harper  <jackson@ximian.com>
9636
9637         * X11DesktopColors.cs: Get menu colours for the gtk theme.
9638
9639 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
9640
9641         * FileDialog.cs: Fix InitialDirectory
9642
9643 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9644
9645         * ComboBox.cs:
9646                 - Fixes changing between styles
9647                 - Fixes simple mode
9648                 - Fixes last item crashing when navigating with keyboard
9649
9650 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9651
9652         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
9653
9654 2005-10-05  Jackson Harper  <jackson@ximian.com>
9655
9656         * TreeView.cs: If updating the root node do a full refresh.
9657         * TreeNode.cs: The root node should be expanded by default. Also
9658         added a utility prop to tell if we are the root node.
9659         * TreeNodeCollection.cs: Only refresh if the node we are being
9660         added to is expanded. Also added a comment on a potential
9661         optimization.
9662         
9663 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
9664
9665         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
9666           in dispose method. Fixes #76330
9667
9668 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
9669
9670         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
9671
9672                 - Implements vertical and horizontal scrolling using XplatUI
9673                 - Fixes keyboard navagation
9674                 - Fixes EnsureVisible
9675                 - Drawing fixes
9676                 - Handles and draws focus properly
9677
9678
9679 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
9680
9681         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
9682           Create handle. NET_2_0: Destroy handle when value is null.
9683
9684 2005-10-03  Jackson Harper  <jackson@ximian.com>
9685
9686         * ScrollBar.cs: My last scrollbar patch was broken. This is a
9687         revert and a new patch to prevent the thumb from refreshing so
9688         much.
9689
9690 2005-10-02  Jackson Harper  <jackson@ximian.com>
9691
9692         * ScrollBar.cs: Don't update position if it hasn't actually
9693         changed. This occurs when you hold down the increment/decrement
9694         buttons and the thumb gets to the max/min.
9695
9696 2005-10-01  Jackson Harper  <jackson@ximian.com>
9697
9698         * Form.cs:
9699         * MdiChildContext.cs:
9700         * MdiClient.cs: Implement ActiveMdiChild in Form.
9701
9702 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
9703
9704         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
9705
9706 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
9707
9708         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
9709           be found
9710
9711 2005-09-30  Jackson Harper  <jackson@ximian.com>
9712
9713         * ListBox.cs: Don't do a full refresh unless some data has
9714         actually changed.
9715
9716 2005-09-30  Jackson Harper  <jackson@ximian.com>
9717
9718         * TreeView.cs: Make sure that the checkboxes size is factored in
9719         even when not visible.
9720
9721 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9722
9723         * FileDialog.cs: Fix Jordi's build break
9724
9725 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9726
9727         * FileDialog.cs: 
9728                 - Use standard the Windows colours for the combobox as espected
9729                 - Dispose objects that use resouces when no longer need them
9730
9731 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9732
9733         * X11DesktopColors.cs: Initial incomplete implementation
9734         * XplatUIX11.cs: Added call to initialize X11DesktopColors
9735
9736 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
9737
9738         * Theme.cs: 
9739           - Switched Theme color names to match the names defined in 
9740             System.Drawing.KnownColors. Life's hard enough, no need to make 
9741             it harder.
9742           - Added setters to all theme color properties so themes can set
9743             their color schemes. The setters also propagate the color changes
9744             to System.Drawing.KnownColors via reflection
9745         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
9746           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
9747           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
9748           use the new, more logical theme color names
9749         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
9750           post-NT colors
9751         * ThemeWin32Classic.cs:
9752           - Removed code to set the old classic Windows colors. Instead it
9753             now relies on the colors returned by System.Drawing.KnownColors
9754             which will be either modern static colors (Unix) or colors
9755             read from the user's configuration (Win32)
9756           - Updated to use the new, more logical theme color names
9757           - Switched DataGrid drawing code to use only Theme colors instead of
9758             a mix of System.Drawing.KnownColors and Theme colors
9759           - DrawFrameControl(): Removed code that fills the button area, the
9760             fill would overwrite any previous fill done by a control. This
9761             fixes bug #75338 
9762           - Added DrawReversibleRectangle() stub
9763         * ScrollableControl.cs: Set visible state to false when scrollbars
9764           are removed (pdn fix)
9765         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
9766           DrawReversibleRectangle() method to allow drawing primitive 
9767           'rubber bands'
9768         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9769
9770 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9771
9772         * ImageList.cs: Add(Icon): Create handle.
9773
9774 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9775
9776         * ListView.cs:
9777         * ThemeWin32Classic.cs:
9778                 - Fixes detail mode
9779                 - Sets clippings
9780                 - Issues with drawing
9781
9782 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9783
9784         * ImageList.cs: Moved RecreateHandle back to ImageList as event
9785           source has to be the ImageList.
9786
9787 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9788
9789         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9790
9791 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9792
9793         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9794
9795 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9796
9797         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9798
9799 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
9800         * GridItem.cs: Fixed TODOs
9801         * GridItemCollection.cs: Added ICollection interface
9802
9803 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9804
9805         * ImageList.cs: Resize icons when needed.
9806
9807 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
9808
9809         * ListViewItem.cs
9810                 - Fixes GetBounds and returns on screen rects
9811         * ListView.cs:
9812                 - Fixes vertical and horzintal scrolling of items
9813         * ThemeWin32Classic.cs:
9814                 - Fixes drawing
9815                 
9816 2005-09-29  Raja R Harinath  <harinath@gmail.com>
9817
9818         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9819
9820 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
9821
9822         * ImageList.cs: Added comments about handle creation. Moved Handle,
9823           HandleCreated and OnRecreateHandle implementations to ImageCollection.
9824           Handle is created in Add methods.
9825
9826 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9827          
9828         * DataGridDrawingLogic.cs: 
9829                 - Takes rows into account on Colum calculations
9830                 - Returns the column when clickig
9831         * DataGrid.cs:
9832                 - Fixes default HitTestInfo values
9833                 - Fixes HitTestInfo.ToString
9834                 - Fixes ResetBackColor          
9835         
9836 2005-09-28  Jackson Harper  <jackson@ximian.com>
9837
9838         * MdiChildContext.cs: Obey rules for fixed sized windows (no
9839         sizing or cursor changes). Also added some temp code to draw the
9840         titlebars text (Makes dev a little easier).
9841
9842 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9843
9844         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9845
9846 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9847          
9848         * ListBox.cs: Fixes bug 76253
9849
9850 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9851
9852         * ImageList.cs: Added comments about the current implementation. Added
9853           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9854           Format32bppArgb to preserve transparency and can use Graphics.FromImage
9855           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9856           with Bitmap.LockBits for better performance. Revised the whole file to
9857           match MS.NET behaviour and provide better performance. Non-public
9858           interface members are calling public members even when they throw
9859           NotSupportedException for better maintainability. Moved ColorDepth,
9860           ImageSize, ImageStream and TransparentColor implementations to
9861           ImageCollection for better performance as these properties are not used
9862           by ImageList.
9863         * ImageListStreamer.cs: Added a new internal constructor that takes an
9864           ImageList.ImageCollection and serializes Images based on
9865           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9866           match ImageList property name.
9867
9868 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
9869
9870         * ListBox.cs: Fixes IndexFromPoint for last item
9871
9872 2005-09-27  Jackson Harper  <jackson@ximian.com>
9873
9874         * Form.cs: Set the position of new mdi children correctly.
9875
9876 2005-09-27  Jackson Harper  <jackson@ximian.com>
9877
9878         * MdiClient.cs: New mdi children need to be added to the back of
9879         the controls collection so the zorder is set correctly. Also add a
9880         count of all the child windows that have been created.
9881
9882 2005-09-27  Jackson Harper  <jackson@ximian.com>
9883
9884         * Form.cs (CreateParams): Setup MDI forms correctly.
9885
9886 2005-09-27  Jackson Harper  <jackson@ximian.com>
9887
9888         * MdiChildContext.cs:
9889         * MonthCalendar.cs:
9890         * UpDownBase.cs:
9891         * ListBox.cs:
9892         * ListView.cs:
9893         * TextBoxBase.cs:
9894         * TreeView.cs:
9895         * ScrollableControl.cs:
9896         * ComboBox.cs: Add implicit controls using the new implict control
9897         functionality in ControlCollection. Also try to block multiple
9898         control add in a suspend/resume layout to save some cycles.
9899         
9900 2005-09-27  Jackson Harper  <jackson@ximian.com>
9901
9902         * Control.cs: Add functionality to the controls collection to add
9903         'implicit controls' these are controls that are created by the
9904         containing control but should not be exposed to the user. Such as
9905         scrollbars in the treeview.
9906         * Form.cs: The list var of the ControlsCollection is no longer
9907         available because of the potential of implicit controls getting
9908         ignored by someone accessing the list directly.
9909
9910 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
9911
9912         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9913           loose it's parent. (Fixed bug introduced in r49103 when we added
9914           setting the child parent to null on Remove)
9915
9916 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
9917
9918         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9919         * Splitter.cs: Added missing attributes for BorderStyle property.
9920         * TextBoxBase.cs: Marked Calculate* methods internal.
9921         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9922         MS.NET.
9923
9924 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
9925          
9926         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9927
9928 2005-09-25  Jackson Harper  <jackson@ximian.com>
9929
9930         * TreeView.cs: Update the node bounds correctly regardless of
9931         whether the node is visible.
9932
9933 2005-09-25  Jackson Harper  <jackson@ximian.com>
9934
9935         * ImageList.cs: Don't dispose the image after it is added to the
9936         image list. Only reformat images that need to be resized.
9937
9938 2005-09-25  Jackson Harper  <jackson@ximian.com>
9939
9940         * ImageList.cs: Don't set the format when changing the image.
9941
9942 2005-09-25  Jackson Harper  <jackson@ximian.com>
9943
9944         * TreeView.cs: We can't just assume the node has a font. Use the
9945         treeviews font if no node font is available.
9946
9947 2005-09-25  Jackson Harper  <jackson@ximian.com>
9948
9949         * TreeView.cs: Allow the scrollbars to be reset with negative
9950         values.
9951         - Don't add scrollbars to negative sized windows.
9952
9953 2005-09-23  Jackson Harper  <jackson@ximian.com>
9954
9955         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9956         old Mono.Posix. Also remove some stray code that shouldn't have
9957         been committed.
9958
9959 2005-09-23  Jackson Harper  <jackson@ximian.com>
9960
9961         * TreeView.cs: Attempt at proper sizing of the horizontal
9962         scrollbar. Also don't resize the scrollbars unless they are
9963         visible.
9964
9965 2005-09-23  Jackson Harper  <jackson@ximian.com>
9966
9967         * TreeView.cs: We don't need to expand the invalid area when the
9968         selection changes, as this is all drawn in the node's bounding
9969         box. The area needs to be expanded (previous typo was contracting
9970         it) when the focus rect moves.
9971
9972 2005-09-23  Jackson Harper  <jackson@ximian.com>
9973
9974         * TreeView.cs: Display the selection box under the correct
9975         circumstances. We were rendering white text with no selection box
9976         before.
9977
9978 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
9979
9980         * TextControl.cs(Split): Now updates selection start/end if it points 
9981           into a line that's being split. Fixes a FIXME and bug #75258
9982
9983 2005-09-23  Jackson Harper  <jackson@ximian.com>
9984
9985         * Binding.cs:
9986         * ListControl.cs: Don't use the path when retrieving binding
9987         managers from the binding context. My bat sense tells me that the
9988         path is only used on insertion.
9989
9990 2005-09-22  Jackson Harper  <jackson@ximian.com>
9991
9992         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9993
9994 2005-09-22  Jackson Harper  <jackson@ximian.com>
9995
9996         * Splitter.cs: There are special cursors used for splitting.
9997         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9998
9999 2005-09-22  Jackson Harper  <jackson@ximian.com>
10000
10001         * Splitter.cs: Change the cursor appropriately when the splitter
10002         is moused over, so the user actually knows there is a splitter
10003         there.
10004
10005 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10006
10007        * Label.cs : Fix ToString method to give same output as MS.NET
10008
10009 2005-09-22  Jackson Harper  <jackson@ximian.com>
10010
10011         * TreeView.cs: Create the scrollbars when the handle is created
10012         and add them right away, just make them invisble. Also account for
10013         the window being shrunk vertically to the point that the vert
10014         scrollbar needs to be added.
10015         - Remove some 0.5 adjustments to get around anti aliasing issues.
10016         
10017 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
10018          
10019         * MainMenu.cs: Fixes default value
10020         * MenuItem.cs: Fixes default value
10021
10022 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
10023
10024         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
10025
10026 2005-09-21  Jackson Harper  <jackson@ximian.com>
10027
10028         * Control.cs: Don't try to set the border style on the window if
10029         it hasn't been created. When the window is created the border
10030         style will be used.
10031
10032 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10033
10034         * Control.cs (Update): Don't call XplatUI if we don't have a
10035           window handle yet
10036
10037 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10038
10039         * ContainerControl.cs: Instead of throwing an exception, print
10040           a one-time warning about Validate not being implemented
10041         * XplatUIWin32.cs: Removed debug output
10042
10043 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10044
10045         * Control.cs: Only set XplatUI background if we expect the windowing
10046           system to handle the background. This stops controls that draw their
10047           own background from flickering
10048
10049         * XplatUIX11.cs: Support custom visuals and colormaps for window 
10050           creation. This allows, amongst other things, using MWF X11 windows 
10051           with OpenGL.
10052
10053 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10054
10055         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
10056           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
10057           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
10058           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
10059           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
10060           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
10061           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
10062           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
10063           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
10064           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
10065           GridColumnStylesCollection.cs, 
10066           IDataGridColumnStyleEditingNotificationService.cs,
10067           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
10068           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
10069           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
10070           TreeNodeCollection.cs, AmbientProperties.cs, 
10071           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10072           DataObject.cs, ErrorProvider.cs, Splitter.cs,
10073           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
10074           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
10075           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
10076           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
10077           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
10078           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
10079           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
10080           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
10081           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
10082           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
10083           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
10084           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
10085           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
10086           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
10087           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
10088           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
10089           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
10090           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
10091           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
10092           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
10093           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
10094           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
10095           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
10096           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
10097           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
10098           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
10099           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
10100           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
10101           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
10102           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
10103           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
10104           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
10105           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
10106           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
10107           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
10108
10109 2005-09-21  Jackson Harper  <jackson@ximian.com>
10110
10111         * TreeNode.cs: Call Before/After Expand not Collapse when
10112         expanding.
10113
10114 2005-09-20  Jackson Harper  <jackson@ximian.com>
10115         
10116         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
10117
10118 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
10119          
10120         * ListViewItem.cs:
10121                 - Fixes bug 76120
10122                 - Fixes proper storing of subitems
10123                 - Fixes not updated items
10124
10125 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
10126
10127         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
10128           things if our window handle isn't created yet. Also disabled 
10129           debug for TextBoxBase
10130
10131 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
10132
10133         * MenuAPI.cs: Remove filtering of events to allow menu usage
10134
10135 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10136
10137         * Cursor.cs: Allow null to be passed to Cursor.Current.
10138
10139 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
10140
10141         * ThemeWin32Classic.cs:
10142           - Change some private methods/fields to protected virtual so that 
10143             they can be accessed and overriden in derived classes
10144           - First refactoring of some methods. Derived themes now don't 
10145             need to duplicate the complete code from ThemeWin32Classic
10146         * ThemeNice.cs:
10147           - Added nice StatusBar
10148           - Derive from ThemeWin32Classic and not Theme
10149           - Removed duplicate ThemeWin32Classic code
10150
10151 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10152
10153         * Control.cs (ControlCollection.Add): If the value null is passed
10154         the control is ignored. 
10155
10156         Optimize this loop.
10157
10158 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
10159
10160         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
10161           PostQuitMessage state.
10162         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
10163
10164 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
10165
10166         * Application.cs: Our constructor will never get called, move 
10167           initialization to fields; fixes bug #75933
10168
10169 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10170
10171         * FileDialog.cs :
10172                 - Allow files to be selected properly using file name
10173                 combo box.
10174                 - Add ability to change diretory (absolute / relative)
10175                 using file name combo box.
10176
10177 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
10178          
10179         * ListBox.cs: 
10180                 - Fixes Multicolumn listboxes item wrong calculations
10181                 - Allows to click when only one item is in the listbox
10182                 - Fixes crash when no items using keyboard navigation
10183
10184 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
10185
10186         * ComboBox.cs: Reverted almost everything from the latest patch which
10187           broke ComboBox
10188
10189 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
10190         
10191         * ToolTip.cs:
10192                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
10193         * ComboBox.cs:
10194                 - When DropDownStyle is Simple, it does not show scrollbar 
10195                 to the last item of the list.
10196                 - When DropDownStyle is Simple, it crashed when the list was 
10197                 scrolled down with the down cursor key.
10198                 - Fixed a bug that when DropDownStyle is DropDownList, the 
10199                 selected item was not shown.
10200                 - The position of the selected item was not preserved when 
10201                 the next dropdown happened.
10202         * ThemeWin32Classic.cs:
10203                 - Items were wrapped at the right end.
10204         * CheckedListBox.cs:
10205                 - Fixed Add method
10206         * ListBox.cs:
10207                 - Items should be fully shown.
10208                 - When resizing and vertical scrollbar disappeared, the item 
10209                 of index 0 should be on the top of the list.
10210                 - GetItemRectangle should consider the size of ver. scrollbar
10211         * StatusBar.cs:
10212                 - SizingGrip area should not be allocated when it is not 
10213                 displayed.
10214                 - Now it reflects MinWidth of the containing panel and 
10215                 fixed a crash that happens when its width becomes so small.
10216
10217 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10218
10219         * CheckedListBox.cs: Fixes bug 76028
10220         * ListBox.cs: Fixes bug 76028
10221
10222 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10223
10224         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
10225         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
10226
10227 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
10228
10229         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
10230
10231 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10232
10233         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
10234
10235 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10236
10237         * IRootGridEntry.cs: Added
10238         * PropertyGridCommands.cs: Added
10239         * PropertiesTab.cs: Added missing methods and property
10240         * PropertyGridView.cs: Made class internal
10241         * PropertyGridTextBox.cs: Made class internal
10242
10243 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10244
10245         * MimeIcon.cs: Try to check some other environment variables
10246           if "DESKTOP_SESSION" returns "default"
10247
10248 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10249
10250         * ThemeNice.cs: Corrected background colors (e.g. menus)
10251         * ColorDialog.cs: Use correct background colors for controls
10252
10253 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10254
10255         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10256
10257 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
10258
10259         * RichTextBox.cs: Added initial implementation
10260         * lang.cs: Removed. Was accidentally checked in long time ago
10261         * TODO: Removed. Contents were obsolete
10262
10263 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10264                                                                                 
10265         * PropertiesTab.cs : Added
10266
10267 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10268                                                                                 
10269         * PropertyGrid.cs : Update
10270         * PropertyGridView.cs : Update
10271         * System.Windows.Forms.resx : Added images and strings
10272
10273 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
10274
10275         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10276  
10277 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
10278
10279         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10280           a busy loop right after the Ungrab the X11 display is otherwise 
10281           blocked
10282
10283 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
10284
10285         * ThemeWin32Classic.cs: Optimise the use of clipping
10286
10287 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
10288
10289         * DataGrid.cs: fixes recursion bug
10290
10291 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
10292
10293         * ThemeNice.cs: 
10294           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10295           - Cleanup
10296
10297 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
10298
10299         * ThemeNice.cs: Draw nice ProgressBars
10300
10301 2005-09-01  Miguel de Icaza  <miguel@novell.com>
10302
10303         * VScrollBar.cs: Another buglet found by Aaron's tool. 
10304
10305         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
10306         bug finder.
10307
10308 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
10309
10310         * ThemeNice.cs:
10311           - Added nicer menu drawing
10312           - Updated DrawTab
10313           - some refactoring
10314
10315 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10316
10317         * CreateParams.cs (ToString): Made output match MS
10318         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
10319             handle is already created (to avoid forcing window creation)
10320         * XplatUIX11.cs: Set window text to caption after creating window,
10321           in case Text was set before window was created
10322         * Form.cs: Use this.Text instead of a static string as caption
10323
10324 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10325
10326         * NotifyIcon.cs: Don't set the window to visible; this screws
10327           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
10328           OnPaint without a bitmap)
10329         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
10330           happen very often anyway; we could add the check to the WM_PAINT 
10331           event generation code
10332
10333 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10334
10335         * NotifyIcon.cs: Fill the icon area with a background color, to 
10336           avoid 'residue' when transparent icons are drawn
10337         * XplatUIX11.cs:
10338           - Handle whole_window == client_window when destroying windows
10339           - SystrayAdd(): Set client_window to whole_window value to
10340             get mouse and other events passed to NotifyIcon
10341
10342 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10343
10344         * Form.cs: Set proper default for Opacity property
10345         * NotifyIcon.cs:
10346           - ShowSystray(): Don't bother creating telling the OS
10347             about the systray item if no icon is provided
10348           - Now handles WM_NCPAINT message to deal with whole/client window
10349             split
10350           - Create window as visible to not get caught by Expose optimization
10351         * Hwnd.cs: Removed debug message
10352         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
10353           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
10354             PaintEventStart/End to use new client argument
10355         * TextBoxBase.cs:
10356           - Commented out debug messages
10357           - Switched PaintEventStart/End to use new client argument
10358         * XplatUI.cs: Added client window bool to PaintEventStart()/
10359           PaintEventEnd() calls, to support drawing in non-client areas
10360         * XplatUIDriver.cs: 
10361           - Added client window bool to PaintEventStart()/PaintEventEnd() 
10362             calls, to support drawing in non-client areas
10363           - Added conditional compile to allow using MWF BeginInvoke 
10364             on MS runtime
10365         * XplatUIX11.cs:
10366           - Added some conditional debug output
10367           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
10368             whole/client window split
10369           - Implemented handling of client argument to PaintEventStart()/End()
10370         * Control.cs:
10371           - Throw exception if BeginInvoke() is called and the window handle
10372             or one of the window's parent handles is not created
10373           - Added conditional compile to allow using MWF BeginInvoke on
10374             MS runtime
10375           - get_Parent(): Only sets parent if handle is created. This avoids
10376             forcing window handle creation when parent is set.
10377           - Now fires Layout and Parent changed events in proper order
10378           - Switched to use Handle instead of window.Handle for Z-Order setting,
10379             the get_Parent() patch above causes us to possibly get null for 'window'
10380           - Implemented handling of client argument to PaintEventStart()/End()
10381           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
10382             default handling)
10383           - Now sends a Refresh() to all child windows when Refresh() is called
10384
10385 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10386
10387         * Form.cs: Added (non-functional) Opacity property
10388         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
10389
10390 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
10391         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
10392           use export MONO_THEME=nice to activate it.
10393           Currently supported controls:
10394           - Button
10395           - ComboBox
10396           - ScrollBar
10397           - TabControl (TabAlignment.Top only, other will follow)
10398         * ThemeEngine.cs: Add theme nice
10399         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
10400           if enabled
10401
10402 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
10403
10404         * Splitter.cs: Resize docked control and its neighbor.
10405
10406 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10407         -- Making Windows with Menus layout correctly --
10408         * Form.cs : The first leg of the fix
10409                 Menu setter - adjust Client Size as needed to make space for the menu
10410                 SetClientSizeCore - doesn't call base version to be able to pass the 
10411                         menu handle to XplatUI.CalculateWindowRect
10412         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
10413         * XplatUIX11.cs: The critical second leg of the fix
10414                 GetWindowPos needs to use a recalculated client_rect
10415                 so that resizing the window doesn't break layout of child controls. 
10416                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
10417                 Lots of \t\n killed
10418
10419 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10420
10421         * Label.cs: Now properly recalculates width and height on Font and Text
10422           changes if AutoSize is set
10423
10424 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10425         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
10426
10427 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
10428
10429         * ImageList.cs: Makes ToString method compatible with MS
10430
10431 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
10432
10433         * MenuAPI.cs: fixes bug 75716
10434
10435 2005-08-11 Umadevi S <sumadevi@novell.com>
10436         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
10437
10438 2005-08-11 Umadevi S <sumadevi@novell.com>
10439         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
10440
10441 2005-08-10  Umadevi S <sumadevi@novell.com>
10442         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
10443
10444 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
10445
10446         * Menu.cs: fixes bug 75700
10447         * MenuAPI.cs: fixes navigation issues
10448
10449 2005-08-09  Umadevi S <sumadevi@novell.com>
10450         * CheckedListBox.cs - simple fix for GetItemChecked.
10451
10452 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
10453
10454         * ComboBox.cs: Serveral fixes
10455         * ListBox.cs: Serveral fixes
10456
10457 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10458
10459         * ComboBox.cs: Fixes FindString methods and GetItemHeight
10460         * ListBox.cs: Fixes FindString methods
10461
10462 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10463
10464         * DataGrid.cs: fixes bugs exposed by new tests
10465
10466 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
10467
10468         * Mime.cs: Compile Mono assembly references only if compiling
10469           with Mono (Allows to build with VS.Net again)
10470
10471 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
10472
10473         * Control.cs (PaintControlBackground): Draw background image
10474         corrrectly.
10475         (CheckForIllegalCrossThreadCalls): Stubbed.
10476         
10477         * Form.cs (OnCreateControl): Center when should be centered.
10478         
10479         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
10480
10481 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
10482
10483         * Binding.cs: Binding to properties should be case unsensitive
10484
10485 2005-07-18 vlindos@nucleusys.com
10486
10487         * DataGrid.cs: fixes setmember order
10488
10489 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
10490
10491         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10492         * FileDialog.cs: FileDialog is now resizable and uses the new
10493           MimeIconEngine
10494
10495 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
10496
10497         * DataGridTextBoxColumn.cs: default value
10498         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10499         * GridTableStylesCollection.cs: fixes checking MappingName
10500         * DataGridDrawingLogic.cs: fixes drawing logic issues
10501         * DataSourceHelper.cs: rewritten to make compatible with more data sources
10502         * DataGrid.cs: fixes    
10503
10504 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
10505
10506         * MimeGenerated.cs: Use case sensitive comparer for
10507           NameValueCollections
10508
10509 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
10510
10511         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
10512         * ThemeWin32Classic.cs: bug fixes, code refactoring
10513         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
10514         * DataGrid.cs: bug fixes, code refactoring
10515         * DataGridTextBox.cs: bug fixes, code refactoring
10516         * DataGridColumnStyle.cs:  bug fixes, code refactoring
10517         * Theme.cs:  bug fixes, code refactoring
10518
10519 2005-07-01  Peter Bartok  <pbartok@novell.com> 
10520
10521         * TextControl.cs: Quick fix for the reported crash on ColorDialog
10522           and other text box usage
10523
10524 2005-07-01  Jackson Harper  <jackson@ximian.com>
10525
10526         * TabControl.cs: Make sure the bottom of the tab covers the pages
10527         border.
10528
10529 2005-06-30  Peter Bartok  <pbartok@novell.com> 
10530
10531         * Form.cs (ShowDialog): Assign owner of the dialog
10532         * TextBoxBase.cs: Always refresh caret size when deleting, caret
10533           might have been moved to a tag with different height
10534
10535 2005-06-30  Jackson Harper  <jackson@ximian.com>
10536
10537         * Form.cs: Don't create an infinite loop when setting focus
10538         * MenuItem.cs: Don't dirty the parents if we don't have any
10539
10540 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
10541
10542         * LibSupport.cs: Rename
10543
10544 2005-06-29  Peter Bartok  <pbartok@novell.com>
10545
10546         * TextBoxBase.cs: Re-align caret after deleting a character
10547         * TextControl.cs:
10548           - DeleteChars(): Ensure that tag covers the provided position
10549           - StreamLine(): Drop reference for dropped tag
10550
10551 2005-06-29  Peter Bartok  <pbartok@novell.com> 
10552
10553         * TextControl.cs: 
10554           - Selections now work properly, anchoring at the initial location
10555             and properly extending in either direction (SetSelectionToCaret(),
10556             SetSelectionStart() and SetSelectionEnd())
10557           - No longer redraws the whole control on selection change, now
10558             calculates delta between previous and new selection and only
10559             invalidates/redraws that area
10560           - Fixed FindPos() math off-by-one errors
10561           - Changed DeleteChars() to verify the provided tag covers the
10562             provided position, selections may have a tag that doesn't cover
10563             the position if the selection is at a tag border
10564           - Fixed off-by-one errors in DeleteChars()
10565           - Added missing streamlining check in DeleteChars() to remove
10566             zero-length tags
10567           - Implemented Invalidate() method, now properly calculates exposures
10568             between two given lines/positions
10569           - Implemented SetSelection()
10570           - Obsoleted and removed FixupSelection()
10571           - Improved RecalculateDocument() logic, removing code duplication
10572
10573 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10574
10575         * LibSupport.cs: changes to match different input/output arguments.
10576
10577 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10578
10579         * LibSupport.cs: added libsupport.so init routine.
10580
10581 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
10582         
10583         * ControlBindingsCollection.cs
10584                 - Throws an exception on null datasource when adding
10585                 - Checks for duplicated bindings when adding
10586
10587 2005-06-28  Jackson Harper  <jackson@ximian.com>
10588
10589         * TreeView.cs (OnKeyDown): Support left and right properly
10590         (navigates as well as expanding and collapsing.
10591         - Add support for Multiply, this expands all the selected nodes
10592         children.
10593         - Fix some tabbing.
10594
10595 2005-06-28  Jackson Harper  <jackson@ximian.com>
10596
10597         * TreeView.cs: Implement keyboard navigation, currently supports,
10598         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
10599         support for toggling checkboxes with the space bar.
10600
10601 2005-06-28  Jackson Harper  <jackson@ximian.com>
10602
10603         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
10604         tree.
10605
10606 2005-06-28  Jackson Harper  <jackson@ximian.com>
10607
10608         * TreeView.cs: Add missing event.
10609
10610 2005-06-27  Peter Bartok  <pbartok@novell.com> 
10611
10612         * TextControl.cs:
10613           - Made line ending size configurable (now allows for counting 
10614             lineendings as \n or \r\n)
10615           - Added margin to viewport to keep caret visible on right side
10616           - Fixed translation routines for line/pos to documentpos to consider
10617             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
10618           - Fixed some line-endings to be unix style
10619           - Fixed Document.FormatText to perform it's calculations 1-based
10620           - Added descriptions for a few methods that might otherwise get 
10621             used wrong
10622           - Added NOTE section with some basic conventions to remember at 
10623             the top of the file
10624           - Major fixup for RichTextBox selection drawing:
10625             * Fixed crashes when multiple tags on a single line were selected
10626             * fixed selection box drawing not overlaying text
10627             * fixed bogus offset calculation for tags not starting at index 1
10628             * Switched behaviour from using multiple Substrings of a 
10629               StringBuilder.ToString() to using multiple 
10630               StringBuilder.ToString(start, length) statements, hoping this is
10631               faster (kept original version commented out in the code, in case
10632               original version was faster)
10633         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
10634           alignment != Left
10635         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
10636           call it as well
10637
10638 2005-06-27  Jackson Harper  <jackson@ximian.com>
10639
10640         * TabControl.cs: Move to the left and right with the arrow
10641         keys. These keys don't cycle beyond first and last like
10642         tab. Refresh all the tabs when scrolling them to the left or
10643         right.
10644
10645 2005-06-27  Jackson Harper  <jackson@ximian.com>
10646
10647         * TabControl.cs:
10648           - ToString: Added method
10649           - CreateParams: Remove TODO and comment
10650           - OnKeyDown: Cycle through bounds properly.
10651           - SelectedIndex: Scroll to the right or left if we need to
10652           display the newly selected tab.
10653
10654 2005-06-23  Jackson Harper  <jackson@ximian.com>
10655
10656         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
10657         set.
10658
10659 2005-06-23  Jackson Harper  <jackson@ximian.com>
10660
10661         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
10662         CTRL-SHIFT-TAB, and HOME, END are there any others?
10663
10664 2005-06-23  Jackson Harper  <jackson@ximian.com>
10665
10666         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
10667
10668 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10669         
10670         * DataGridTextBoxColumn.cs: fixes and enhancements
10671         * ThemeWin32Classic.cs: fixes and enhancements
10672         * DataGridBoolColumn.cs:  fixes and enhancements
10673         * DataGridDrawingLogic.cs:  fixes and enhancements
10674         * CurrencyManager.cs: fixes and enhancements
10675         * DataGrid.cs: fixes and enhancements
10676         * DataGridColumnStyle.cs:  fixes and enhancements
10677
10678 2005-06-22  Jackson Harper  <jackson@ximian.com>
10679
10680         * TabControl.cs: Add some missing methods that just call into the
10681         base. Make the TabPageCollection's IList interface behave in the
10682         same manner as the MS implementation.
10683
10684 2005-06-22  Peter Bartok  <pbartok@novell.com> 
10685
10686         * TextControl.cs: Added sanity check
10687         * TextBoxBase.cs: 
10688           - Fixed wrapping behaviour, don't set wrap on single line controls
10689             (this fixes the breakage of colordialog introduced in an earlier
10690              checkin)
10691           - Added rudimentary support for autoscrolling right-aligned controls
10692             (still needs fixing, also, center alignment scroll is missing)
10693
10694 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10695         
10696         * ScrollBar.cs: Fixes thumbpos on Maximum values
10697
10698 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
10699         
10700         * PropertyGridView.cs: Pass context information to UITypeEditors 
10701
10702 2005-06-21  Peter Bartok  <pbartok@novell.com> 
10703
10704         * TextBoxBase.cs:
10705           - Now calling PositionCaret with absolute space coordinates
10706           - Enabled vertical scrolling
10707           - Better tracking of scrollbar changes, tied into WidthChange
10708             event
10709           - Improved cursor tracking
10710           - Removed debug output
10711         * TextControl.cs:
10712           - PositionCaret coordinates are now works in absolute space, not 
10713             the canvas
10714           - Improved tracking of document size
10715           - Added events for width and height changes
10716
10717 2005-06-21  Peter Bartok  <pbartok@novell.com>
10718
10719         * Form.cs: Set focus to active control when form is activated
10720         * TextControl.cs: 
10721           - Added word-wrap functionality to RecalculateLine() 
10722           - Added some short function descriptions for VS.Net to aid in
10723             writing dependent controls
10724           - Added Caret property, returning the current coords of the caret
10725           - Added ViewPortWidth and ViewPortHeight properties
10726           - Added Wrap property
10727           - Added CaretMoved event
10728           - Removed some old debug code
10729           - Split() can now create soft splits
10730           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
10731           - Added method to format existing text
10732           - Fixed size/alignment calculations to use viewport
10733           - RecalculateDocument now can handle changing line-numbers while
10734             calculating lines
10735
10736         * TextBox.cs:
10737           - Added some wrap logic, we don't wrap if alignment is not left
10738           - Added casts for scrollbar var, base class switched types to
10739             also support RichTextBoxA
10740           - Implemented handling of scrollbar visibility flags
10741
10742         * TextBoxBase.cs:
10743           - Switched scrollbars type to RichTextBoxScrollBars to support
10744             RichTextBox
10745           - Added tracking of canvas width/height
10746           - Switched scrollbars to be not selectable (to keep focus on text)
10747           - Added central CalculateDocument() method to handle all redraw
10748             requirements
10749           - Added ReadOnly support
10750           - Added WordWrap support
10751           - Fixed handling of Enter key (we now treat it as a DialogKey)
10752           - Fixed caret positioning when h or v scroll is not zero
10753           - Fixed placing/generation of vertical scrollbar
10754           - Added CalculateScrollBars() method to allow updating scrollbar
10755             limits and visibility
10756           - Fixed handling of horizontal scroll
10757           - Added handling of vertical scroll
10758           - Implemented auto-'jump' when caret moves to close to a left or
10759             right border and there is text to be scrolled into view (currently
10760             there's the potential for a stack overflow, until a bug in
10761             scrollbar is fixed)
10762
10763 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
10764         
10765         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
10766
10767 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
10768
10769         * Mime.cs:
10770         - added inodes.
10771         - return application/x-zerosize for files with size zero
10772           (if no extension pattern matches).
10773         - check matches collection for strings too.
10774         - return only the first mime type if the name value
10775           collection has more than one mime type.
10776
10777 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
10778         
10779         * PropertyGrid.cs: Cleaned up some TODOs
10780         * PropertyGridView.cs: Added support for UITypeEditors
10781
10782 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10783         
10784         * DataGrid.cs: clears cached value
10785
10786 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10787
10788         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10789         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10790         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10791         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10792         
10793 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
10794
10795         * ThemeWin32Classic.cs: fixes colour
10796
10797 2005-06-15  Peter Bartok  <pbartok@novell.com>
10798
10799         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10800         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10801         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10802         * Control.cs: Added some MWFCategory and MWFDescription attributes
10803         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10804
10805 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
10806
10807         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10808         usage
10809
10810 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
10811
10812         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10813         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10814         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10815         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10816         * DataGrid.cs: default datagrid settings for Default Styles, fixes
10817         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10818
10819 2005-06-13  Jackson Harper  <jackson@ximian.com>
10820
10821         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10822         isn't printed when the user enables dropping. (X11 does accept
10823         drops).
10824         
10825 2005-06-13  Jackson Harper  <jackson@ximian.com>
10826
10827         * TreeView.cs: Remove some TODOS.
10828
10829 2005-06-13  Jackson Harper  <jackson@ximian.com>
10830
10831         * Form.cs: Hook into the mdi framework.
10832         * MdiClient.cs: Use the base control collections add method so
10833         parents get setup correctly. Set the default back colour and dock
10834         style.
10835         * MdiChildContext.cs: New class, this bad actor handles an
10836         instance of an MDI window. Right now there is only basic
10837         support. You can drag, close, and resize windows. Minimize and
10838         Maximize are partially implemented.
10839
10840 2005-06-13  Jackson Harper  <jackson@ximian.com>
10841
10842         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10843         freaky when both vals are negative. NOTE: There are probably other
10844         places in XplatUIX11 that this needs to be done.
10845
10846 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
10847
10848         * DataGrid.cs: implement missing methods, move KeyboardNavigation
10849         * DataGridColumnStyle.cs: fixes signature
10850
10851 2005-06-12  Jackson Harper  <jackson@ximian.com>
10852
10853         * XplatUIX11.cs: Use sizing cursors similar to the ones on
10854         windows.
10855
10856 2005-06-11  Jackson Harper  <jackson@ximian.com>
10857
10858         * StatusBarPanel.cs: Signature cleanups. Implement
10859         BeginInit/EndInit.
10860
10861 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
10862
10863         * DataGridTextBoxColumn.cs: Honors aligment
10864         * GridColumnStylesCollection.cs: Contains is case unsensitive
10865         * GridTableStylesCollection.cs: several fixes
10866         * DataGridTableStyle.cs: default column creation
10867         * DataGridDrawingLogic.cs: fixes
10868         * CurrencyManager.cs: ListName property
10869         * DataGrid.cs: multiple styles support
10870         * DataGridColumnStyle.cs: fixes
10871         
10872
10873 2005-06-10  Peter Bartok  <pbartok@novell.com>
10874
10875         * Control.cs(Select): Moved SetFocus call to avoid potential
10876           loops if controls change the active control when getting focus
10877         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10878           the up/down buttons
10879
10880 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
10881
10882         * ImageListConverter.cs: Implemented
10883
10884 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10885
10886         * MonthCalendar.cs: Wired in NumericUpDown control for year
10887
10888 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10889
10890         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10891           DoubleClick events, since they are not meant to be fired.
10892
10893 2005-06-09  Peter Bartok  <pbartok@novell.com>
10894
10895         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10896           Jonathan's standalone controls into MWF, implemented missing
10897           events, attributes and methods; added xxxAccessible classes
10898         * AccessibleObject.cs: Made fields internal so other classes
10899           can change them if needed
10900
10901 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
10902
10903         * UpDownBase.cs: Complete implementation
10904         * NumericUpDown.cs: Complete implementation
10905         * DomainUpDown.cs: Complete implementation
10906
10907 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
10908
10909         * DataGridTextBoxColumn.cs: drawing fixes
10910         * DataGridCell.cs: fixes ToString method to match MSNet
10911         * DataGridTableStyle.cs: fixes
10912         * DataGridBoolColumn.cs: fixes, drawing
10913         * DataGridDrawingLogic.cs: fixes, new methods
10914         * DataGridTextBox.cs: Keyboard and fixes
10915         * DataGrid.cs:
10916                 - Keyboard navigation
10917                 - Scrolling fixes
10918                 - Row selection (single, multiple, deletion, etc)
10919                 - Lots of fixes
10920         
10921 2005-06-07  Jackson Harper  <jackson@ximian.com>
10922
10923         * ThemeWin32Classic.cs: Clear the background area when drawing
10924         buttons.
10925
10926 2005-06-06  Peter Bartok  <pbartok@novell.com>
10927
10928         * ImageListStreamer.cs: Fixed signature for GetData
10929         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10930         * ComboBox.cs:
10931           - Added missing ChildAccessibleObject class
10932           - Added missing OnXXXFocus overrides, switched to using those
10933             instead of the event handler
10934         * Control.cs:
10935           - Added Parent property for ControlAccessibleObject
10936           - Fixed signatures
10937           - Fixed attributes
10938           - Added ResetBindings()
10939         * ListBindingConverter.cs: Implemented some methods
10940         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10941         * ImageList.cs: Implemented basic handle scheme, removed TODOs
10942         * ContainerControl.cs: Fixed signature, now subscribing to the
10943           ControlRemoved event instead of overriding the handler, LAMESPEC
10944         * CurrencyManager.cs: Added missing attribute
10945         * MonthCalendar.cs: Added missing properties
10946
10947 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10948
10949         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10950         
10951 2005-06-06  Gaurav Vaish and Ankit Jain
10952
10953         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10954         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10955         
10956 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10957
10958         * Control.cs: fixes CreateParams Width / Height.
10959
10960 2005-06-05  Peter Bartok  <pbartok@novell.com>
10961
10962         * Win32DnD.cs: Removed compilation warnings
10963
10964 2005-06-05  Peter Bartok  <pbartok@novell.com>
10965
10966         * Control.cs (CreateParams): Since we don't know if one of the
10967           properties we use is overridden, lets make sure if we fail accessing
10968           we continue with a backup plan
10969
10970 2005-06-05  Peter Bartok  <pbartok@novell.com>
10971
10972         * Win32DnD.cs:
10973           - Removed debug output
10974           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10975             struct
10976           - Plugged resource leak
10977         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10978           MS size
10979
10980 2005-06-05  Peter Bartok  <pbartok@novell.com>
10981
10982         * XplatUIWin32.cs: Removed DnD code
10983         * Win32DnD.cs: Implemented drop source and drop target functionality
10984
10985 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10986
10987         * UpDownBase.cs: remove duplicate addition of event, enable some code
10988         that was commented out.
10989         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10990         Validate input when a key is pressed. It works fine now for every
10991         combination of Hexadecimal. Only missing some drawing love when sharing
10992         space with other controls.
10993
10994 2005-06-04  Peter Bartok  <pbartok@novell.com>
10995
10996         * Control.cs:
10997           - We need to pass a window for DragDrop, so enable callback events
10998           - Added DnD callback events when being a DragSource
10999         * XplatUI.cs (StartDrag): Added window handle argument
11000         * XplatUIDriver.cs (StartDrag): Added window handle argument
11001         * QueryContinueDragEventArgs: Made fields internally accessible so
11002           drivers can set them
11003         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
11004           can set them
11005
11006 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
11007
11008         * DataGridTextBoxColumn.cs: column text editing
11009         * DataGridTableStyle.cs: Respect columns styles created by the user
11010         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
11011         * DataGridBoolColumn.cs: bool column editing
11012         * DataGrid.cs: fixes to scrolling, properties, etc
11013         * DataGridTextBox.cs: handle keyboard
11014         * DataGridColumnStyle.cs: fixes
11015
11016 2005-06-02  Jackson Harper  <jackson@ximian.com>
11017
11018         * ImageListStreamer.cs: Somewhat broken implementation of
11019         GetObjectData. The RLE needs some work to match MS properly.
11020
11021 2005-06-02  Jackson Harper  <jackson@ximian.com>
11022
11023         * X11Dnd.cs: Attempting to keep at least one file in MWF
11024         monostyled.
11025
11026 2005-06-02  Peter Bartok  <pbartok@novell.com>
11027
11028         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
11029           that way
11030
11031 2005-06-02  Peter Bartok  <pbartok@novell.com>
11032
11033         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
11034         * XplatUI.cs: Added DoDragDrop() method
11035         * XplatUIDriver.cs: Added DoDragDrop() method
11036
11037 2005-06-02  Jackson Harper  <jackson@ximian.com>
11038
11039         * Splitter.cs: Implement BorderStyle.
11040
11041 2005-06-02  Jackson Harper  <jackson@ximian.com>
11042
11043         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
11044         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
11045         X11 using XDND.
11046
11047 2005-06-02  Peter Bartok  <pbartok@novell.com>
11048
11049         * DataObject.cs:
11050           - Added Data setter
11051           - Fixed broken insertion code for SetData, now also
11052             overwrites any existing entry of the same format name
11053         * Hwnd.cs: Added list of pointers that automatically gets
11054           freed when the window is disposed
11055         * XplatUI.cs: Call driver initialization method when loading
11056           a driver
11057         * Control.cs:
11058           - OnDragLeave takes EventArgs, not DragEventArgs
11059           - Added setting of WS_EX_ACCEPTFILES style when dropping is
11060             supported
11061           - Forces style update when drop state changes
11062         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
11063           not perfect since we cannot (yet) call the IDataObject.GetData()
11064           method, we keep getting 0x80004005 error, dunno why)
11065
11066 2005-06-02  Peter Bartok  <pbartok@novell.com>
11067
11068         * DragEventArgs.cs: Make fields internal so we can cache the
11069           object and re-set the fields from XplatUI
11070
11071 2005-06-02  Jackson Harper  <jackson@ximian.com>
11072
11073         * Control.cs: Add some internal methods so the DnD subsystem can
11074         raise DnD events. Also call into the driver when AllowDrop is set.
11075         * XplatUI.cs:
11076         * XplatUIDriver.cs: New method for setting whether or not a window
11077         is allowed to accept drag and drop messages.
11078                 
11079 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
11080         
11081         * ScrollBar.cs: Make sure that values sent in Scroll events
11082         are always between Maximum and Minimum.
11083
11084 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
11085
11086         * Menu.cs: Call MenuChanged when menuitem visibility has been
11087         changed.
11088         * MenuItem.cs: Rebuild menu when item is (not) visible.
11089         * MainMenu.cs: MainMenu has special MenuChanged.
11090         * Theme.cs: Caption and FrameBorderSize are not fixed.
11091         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
11092         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
11093         * XplatUIX11.cs,
11094         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
11095         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
11096
11097 2005-05-30  Jackson Harper  <jackson@ximian.com>
11098
11099         * DataFormat.cs: We can't statically initialize this stuff because
11100         it calls into the xplatui and could create a loop. So we lazy init
11101         it.
11102
11103 2005-05-28  Jackson Harper  <jackson@ximian.com>
11104
11105         * Control.cs: Proper implementation of Product(Name/Version).
11106
11107 2005-05-27  Jackson Harper  <jackson@ximian.com>
11108
11109         * DataObject.cs: Dont crash if no data is found.
11110
11111 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
11112         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
11113                 as per status page, guessing it should be set to true
11114
11115 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
11116
11117         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
11118         * DataGridTableStyle.cs: set proper formatting text, def header text
11119         * ThemeWin32Classic.cs: new themable paramaters
11120         * DataGridBoolColumn.cs: paint check box, get data, fixes
11121         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
11122         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
11123         * DataGridColumnStyle.cs: fixes
11124         * Theme.cs: new themable paramaters
11125                 
11126 2005-05-26  Peter Bartok  <pbartok@novell.com>
11127
11128         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
11129
11130 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11131         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
11132
11133 2005-05-24  Peter Bartok  <pbartok@novell.com>
11134
11135         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
11136           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
11137           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
11138           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
11139           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
11140           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
11141           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
11142           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
11143           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
11144           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
11145           missing attributes, etc
11146         * DataGridPreferredColumnWidthTypeConverter.cs: Added
11147
11148 2005-05-24  Peter Bartok  <pbartok@novell.com>
11149
11150         * Help.cs: Added, implemented trivial functions, throws up MessageBox
11151           when user tries to get help
11152         * DataObject.cs, DataFormats.cs, LinkArea.cs,
11153           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
11154           to suppress warnings
11155         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
11156           avoid unreachable code warning
11157
11158 2005-05-20  Peter Bartok  <pbartok@novell.com>
11159
11160         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
11161
11162 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11163
11164         * DataGridTextBoxColumn.cs: Basic painting methods
11165         * DataGridTableStyle.cs: Set table style in the column
11166         * ThemeWin32Classic.cs: Use Theme for colors
11167         * DataGridDrawingLogic.cs: Implement more drawing
11168         * DataGrid.cs: drawing, theming, enhacements, fixes
11169         * DataGridColumnStyle.cs: fixes, drawing
11170         * Theme.cs: theming for Datagrid
11171
11172 2005-05-20  Peter Bartok  <pbartok@novell.com>
11173
11174         * Cursor.cs: Implemented GetObjectData() method
11175
11176 2005-05-20  Peter Bartok  <pbartok@novell.com>
11177
11178         * Cursors.cs: Added setting of cursor name
11179         * Cursor.cs:
11180           - Implemented constructors
11181           - Implemented Draw and DrawStretched
11182           - Implemented Current property
11183           - Implemented == and != operators
11184           - Implemented Dispose()
11185           - Implemented ToString
11186           - Added missing attributes
11187         * XplatUIX11.cs:
11188           - Added missing reset for OverrideCursor when DoEvents is called
11189           - Fixed creation of cursor, logic was wrong
11190         * XplatUIWin32.cs:
11191           - Added missing reset for OverrideCursor when DoEvents is called
11192           - Fixed creation of cursor, bit arrays were swapped
11193         * Clipboard.cs: Removed obsolete MonoTODO attribute
11194
11195 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11196
11197         * ComboBox.cs: fixes OnSelectedItemChanged
11198         * ControlBindingsCollection.cs: fixes item range check
11199
11200 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11201
11202         * UpDownBase.cs:
11203                 - Calc preferred height properly
11204                 - Implement missing properties
11205                 
11206         * NumericUpDown.cs: Implement missing events
11207
11208 2005-05-19  Jackson Harper  <jackson@ximian.com>
11209
11210         * TabControl.cs: New method that resizes the tab pages before
11211         redrawing them. This as needed as the control is double buffered
11212         and sizing will not be recalculated unless ResizeTabPages is
11213         called.
11214         * TabPage.cs: Set base.Text instead of Text in the constructor so
11215         that UpdateOwner does not get called. Use the new Redraw method of
11216         TabControl instead of Refresh so the sizing is recalculated.
11217         * ThemeWin32Classic.cs: Draw the text for button tabs.
11218
11219 2005-05-19  Jackson Harper  <jackson@ximian.com>
11220
11221         * Control.cs: Paint control background images. Fix typo where
11222         PaintControlBackground was not getting called correctly.
11223
11224 2005-05-19  Peter Bartok  <pbartok@novell.com>
11225
11226         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
11227           I can investigate, apparently I broke FileDialog
11228
11229 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
11230
11231         * AxHost.cs: Some simple properties.
11232         * Control.cs: window must be accessible after ctor.
11233         * Form.cs: Added TransparencyKey property.
11234         * TextBoxBase.cs: Implemented Clear. Text property can be null.
11235         * XplatUIWin32.cs: SetBorderStyle implemented.
11236
11237 2005-05-18  Peter Bartok  <pbartok@novell.com>
11238
11239         * DataObject.cs: Entries are not global but particular to the
11240           DataObject, now it behaves that way
11241         * XplatUIWin32.cs: Implemented Clipboard methods
11242         * Clipboard.cs: Implemented
11243         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11244         * XplatUIOSX.cs: Updated to final clipboard prototypes
11245         * XplatUIX11.cs: Implemented Clipboard methods
11246         * XplatUIDriver.cs: Updated to final clipboard prototypes
11247         * XplatUIStructs.cs:
11248           - Added BITMAPINFOHEADER struct
11249           - Added ClipboardFormats enum
11250         * X11Structs.cs:
11251           - Added ClipboardStruct
11252           - Added Atom enum items for clipboard types
11253           - Fixed atom types for Selection event structures
11254         * DataFormats.cs:
11255           - Added internal properties and methods for drivers to enumerate
11256             all known formats
11257           - Switched initialization method to allow drivers to assign their
11258             own IDs even for the MS predefined clipboard IDs
11259         * XplatUI.cs: Updated to final clipboard interface
11260
11261 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11262         * PropertyGridView.cs: Fixed compiler warnings.
11263
11264 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11265         * PropertyGrid.cs: Added some event calls
11266         * PropertyGridView.cs: Change drawing code to use double buffering
11267         * PropertyGridTextBox.cs: Changed Text property name
11268         * GridItem.cs: Added Bounds property.
11269         * GridEntry.cs: Added Bounds property.
11270
11271 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
11272
11273         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11274         since GetType() may not return the correct type if the object is
11275         a remoting proxy.
11276
11277 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
11278
11279         * TreeNodeCollection.cs: fixes get/set item ranges
11280         
11281 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11282
11283         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11284                 
11285 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11286
11287         * ComboBox.cs: Fix item range comparation
11288         * ListView.cs: Fix item range comparation
11289
11290 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11291
11292         * FontDialog.cs:
11293           - Clear example panel when OnPaint is called
11294           - Better solution for displaying the example panel text
11295           - Select default indexes in the ListBoxes
11296
11297 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11298
11299         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
11300
11301 2005-05-11  Peter Bartok  <pbartok@novell.com>
11302
11303         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
11304         * SelectionRangeConverter.cs: Implemented
11305         * PropertyGrid.cs: Fixed attribute value
11306         * Control.cs:
11307           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
11308           - Added Sebastien Pouliot's CAS Stack Propagation fixes
11309         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
11310           that's common to all drivers. First methods to go there are
11311           Sebastien Pouliot's CAS Stack Propagation helper methods
11312         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
11313           Sebastien Pouliot for CAS Stack Propagation
11314
11315 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11316
11317         * OSXStructs.cs:
11318           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
11319
11320 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
11321
11322         * DataGridTextBoxColumn.cs: fixed some members
11323         * GridColumnStylesCollection.cs: indexed column is case insensitive
11324         * DataGridTableStyle.cs: fixes
11325         * ThemeWin32Classic.cs: add new theme parameter
11326         * Theme.cs: add new theme parameter
11327         * DataGridDrawingLogic.cs: Datagrid's drawing logic
11328         * DataGrid.cs: fixes, new internal properties, etc.
11329         * DataGridColumnStyle.cs: allows to set grid value
11330         *
11331
11332 2005-05-10  Peter Bartok  <pbartok@novell.com>
11333
11334         * AccessibleObject.cs:
11335           - Removed MonoTODO attribute on help, method is correct
11336           - Fixed Bounds property
11337         * AxHost.cs: Moved MonoTODO
11338         * ButtonBase.cs: Now setting AccessibleObject properties
11339         * RadioButton.cs: Setting proper AccessibleObject role
11340         * CheckBox.cs: Setting proper AccessibleObject role
11341         * ControlBindingsCollection.cs: Added properties, methods and attributes
11342         * DataFormats.cs: Fixed awkward internal API, and changed to enable
11343           userdefined DataFormats.Format items as well
11344         * ListControl.cs: Removed data_member from the public eye
11345         * OpenFileDialog.cs:
11346           - Made class sealed
11347           - Added missing attributes
11348         * SaveFileDialog.cs: Added missing attributes
11349         * ImageListStreamer.cs: Fixed code that caused warnings
11350         * LinkLabel.cs: Removed unreachable code
11351         * TreeView.cs: Fixed code that caused warnings
11352         * PropertyGridView.cs: Fixed code that caused warnings
11353         * GridColumnStylesCollection.cs: Added missing attributes
11354         * GridTableStylesCollection: Added missing attribute
11355         * PropertyManager: Added .ctor
11356         * SecurityIDType: Added
11357         * DataObject.cs: Implemented class
11358         * LinkArea.cs: Added missing attribute
11359
11360 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
11361
11362         * RadioButton.cs: call base method to allow to fire OnClick event
11363         * UpDownBase.cs: OnMouseUp call base method
11364         * CheckedListBox.cs: call base method before returning
11365         * TrackBar.cs: call base method before returning
11366         
11367
11368 2005-05-10  Peter Bartok  <pbartok@novell.com>
11369
11370         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
11371           for messages
11372
11373 2005-05-10  Peter Bartok  <pbartok@novell.com>
11374
11375         * DataFormats.cs: Implemented
11376         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
11377           XplatUIX11.cs: Added Clipboard APIs
11378         * XplatUIWin32.cs: Implemented Clipboard APIs
11379         * FolderBrowserDialog.cs: Added missing event, attributes
11380
11381 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
11382
11383         * CheckBox.cs: call base method to allow to fire OnClick event
11384
11385 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
11386
11387         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
11388
11389 2005-05-06  Peter Bartok  <pbartok@novell.com>
11390
11391         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
11392         * Screen.cs: Implemented
11393         * HelpNavigator.cs: Added
11394         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
11395           property
11396         * HelpProvider.cs: Implemented all we can do until we have a CHM
11397           help library (which means that "What's This" does work now)
11398
11399 2005-05-06  Jackson Harper  <jackson@ximian.com>
11400
11401         * XplatUIX11.cs: Fix waking up the main loop.
11402                 
11403 2005-05-05  Peter Bartok  <pbartok@novell.com>
11404
11405         * XplatUI.cs: Updated revision
11406         * Form.cs: Removed enless loop
11407         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
11408         * Label.cs (OnPaint): Added call to base.OnPaint()
11409         * ToolTip.cs: Made ToolTipWindow reusable for other controls
11410         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
11411         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
11412         * AxHost.cs: Added
11413         * ButtonBase.cs: Moved base.OnPaint() call to end of method
11414         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
11415           to ToolTip.ToolTipWindow for drawing and size methods; this allows
11416           reuse of ToolTipWindow by other controls
11417         * SizeGrip.cs: Moved base.OnPaint() call to end of method
11418         * XplatUIX11.cs: Now clipping drawing area (experimental)
11419         * PictureBox.cs: Moved base.OnPaint() call to end of method
11420         * Theme.cs: Fixed ToolTip abstracts to match new format
11421         * ErrorProvider.cs: Implemented
11422
11423 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
11424
11425         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
11426         * LinkLabel.cs:
11427                 - Adds cursors
11428                 - Handles focus
11429                 - Implements LinkBehavior
11430                 - Fixes many issues
11431
11432 2005-05-03  Jackson Harper  <jackson@ximian.com>
11433
11434         * ListView.cs: Calculate the scrollbar positioning on resize and
11435         paint, so they get put in the correct place.
11436
11437 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11438
11439         * ColorDialogs.cs: The small color panels are now handled by
11440           SmallColorControl. This fixes drawing of the focus rectangle
11441           and adds a 3D border.
11442
11443 2005-05-03  Peter Bartok  <pbartok@novell.com>
11444
11445         * Control.cs: Modified version of Jonathan Chamber's fix for
11446           double-buffering
11447
11448 2005-05-03  Jackson Harper  <jackson@ximian.com>
11449
11450         * ListView.cs: Remove redraw variable. Control now handles whether
11451         or not a redraw needs to be done, and will only raise the paint
11452         event if redrawing is needed.
11453
11454 2005-05-03  Jackson Harper  <jackson@ximian.com>
11455
11456         * Splitter.cs: No decorations for the splitter form. Cache the
11457         hatch brush.
11458
11459 2005-05-03  Jackson Harper  <jackson@ximian.com>
11460
11461         * TreeView.cs: Use dashed lines to connect nodes. Use the
11462         ControlPaint method for drawing the focus rect instead of doing
11463         that in treeview.
11464
11465 2005-05-02  Peter Bartok  <pbartok@novell.com>
11466
11467         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
11468
11469 2005-04-29  Jackson Harper  <jackson@ximian.com>
11470
11471         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
11472         entire image buffer. Just clear the clipping rectangle.
11473
11474 2005-04-29  Jackson Harper  <jackson@ximian.com>
11475
11476         * ThemeWin32Classic.cs: Don't draw list view items that are
11477         outside the clipping rectangle.
11478
11479 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
11480
11481         * ListBox.cs: added horizontal item scroll
11482
11483 2005-04-29  Jackson Harper  <jackson@ximian.com>
11484
11485         * ThemeWin32Classic.cs: Remove some old debug code that was
11486         causing flicker with the new double buffering code.
11487
11488 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
11489
11490         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11491         behave like combobox and comboboxlist (still not sure if this is
11492         correct though).
11493
11494 2005-04-28  Jackson Harper  <jackson@ximian.com>
11495
11496         * ThemeWin32Classic.cs: Don't fill the middle of progress
11497         bars. This fills areas outside of the clip bounds that don't need
11498         to be filled.
11499
11500 2005-04-28  Jackson Harper  <jackson@ximian.com>
11501
11502         * Control.cs: Don't expose functionality to touch the image buffers.
11503         * ProgressBar.cs:
11504         * ListView.cs: We do not need to (and no longer can) manipulate
11505         the image buffers directly. All of this is handled by Control.
11506
11507 2005-04-28  Peter Bartok  <pbartok@novell.com>
11508
11509         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11510           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11511           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11512
11513 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11514
11515         * Combobox:
11516                 - Adjust control's height for non-simple comboboxes (bug fix)
11517                 - Remove dead code
11518         * MenuAPI.cs: remove unused var
11519         * ScrollBar.cs: remove unsed var
11520                  
11521         * ListBox.cs: unselect items when clearing
11522
11523 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11524
11525         * ListControl.cs: honors OnPositionChanged and default Selected Item
11526         * ListBox.cs: unselect items when clearing
11527
11528 2005-04-27  Jackson Harper  <jackson@ximian.com>
11529
11530         * X11Keyboard.cs: Initialize a default keyboard and give a warning
11531         if a "correct" keyboard is not found. This will make us not crash,
11532         but might give some users bad keyboard layouts...seems to be the
11533         same thing rewind does.
11534
11535 2005-04-27  Jackson Harper  <jackson@ximian.com>
11536
11537         * BindingManagerBase.cs: Attach the current/position changed
11538         handlers to their respective events.
11539
11540 2005-04-27  Jackson Harper  <jackson@ximian.com>
11541
11542         * Control.cs: Make sure that the first WM_PAINT does a full draw,
11543         not just a blit.
11544         * ThemeWin32Classic.cs: Don't fill the background for picture
11545         boxes. This could overright user drawing.
11546         * ComboBox.cs: Just fill the clipping rect not the entire client
11547         rect when drawing the background. This prevents pieces of the
11548         image buffer from getting overwritten and is theoretically faster.
11549
11550 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
11551
11552         * ComboBox.cs: Databinding support fixes, fire missing events
11553         * ListControl.cs: implement missing methods and properties, fixes
11554         * ThemeWin32Classic.cs: Databiding support on Drawing
11555         * CheckedListBox.cs: Databinding support fixes, fire missing events
11556         * ListBox.cs: Databinding support fixes, fire missing events
11557         
11558 2005-04-25  Peter Bartok  <pbartok@novell.com>
11559
11560         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
11561
11562 2005-04-25  Jackson Harper  <jackson@ximian.com>
11563
11564         * TreeView.cs: Use the horizontal scrollbars height not width when
11565         determining how much of the client area is available.
11566
11567 2005-04-25  Jackson Harper  <jackson@ximian.com>
11568
11569         * Control.cs: Double buffering is handled differently now. As per
11570         the spec, the extra buffer is created in the WM_PAINT message and
11571         passed down to the control's drawing code.
11572         * GroupBox.cs:
11573         * Label.cs:
11574         * CheckBox.cs:
11575         * ProgressBar.cs:
11576         * RadioButton.cs:
11577         * ColorDialog.cs:
11578         * ComboBox.cs:
11579         * PropertyGridView.cs:
11580         * UpDownBase.cs:
11581         * MessageBox.cs:
11582         * MenuAPI.cs:
11583         * ListView.cs:
11584         * ButtonBase.cs:
11585         * SizeGrip.cs:
11586         * ScrollBar.cs:
11587         * ListBox.cs:
11588         * TrackBar.cs:
11589         * ToolBar.cs:
11590         * PictureBox.cs:
11591         * DateTimePicker.cs:
11592         * StatusBar.cs:
11593         * TreeView.cs: Update to new double buffering system.
11594         * MonthCalendar.cs: Uncomment block, as Capture is now
11595         working. Update to new double buffering
11596         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
11597         * PaintEventArgs.cs: New internal method allows us to set the
11598         graphics object. This is used for double buffering.
11599         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
11600         rectangle. The internal paint_area var has been removed from
11601         StatusBar. The clipping rect should be used instead.
11602         * Theme.cs: Give the PictureBox drawing method a clipping rect.
11603         * TabPage.cs: The RefreshTabs method was removed, so just call the
11604         tab controls Refresh method now.
11605         * TabControl.cs: Update to new double buffering. Make sure the
11606         handle is created before sizing the tab pages, otherwise we will
11607         get stuck in a loop.
11608
11609 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
11610
11611         * LinkLabel.cs: Fix typo, bug #74719; patch
11612           from Borja Sanchez Zamorano
11613
11614 2005-04-22  Jackson Harper  <jackson@ximian.com>
11615
11616         * TreeNode.cs: Implement Handle stuff.
11617         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
11618
11619 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
11620
11621         * DataGridTextBoxColumn.cs: call base constructors, fixes
11622         * GridColumnStylesCollection.cs: missing events, methods, and functionality
11623         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
11624         * DataGridTableStyle.cs: implements create default column styles
11625         * DataGridBoolColumn.cs: which types can handle
11626         * DataGrid.cs: missing methods, fixes, new functionality
11627         * DataGridColumnStyle.cs: fixes
11628
11629 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
11630         * FolderBrowserDialog.cs:
11631         - Use a thread to fill the TreeView
11632         - Adjusted some sizes
11633
11634 2005-04-19  Peter Bartok  <pbartok@novell.com>
11635
11636         * LinkLabel.cs: (Re-)create the pieces when setting the Text
11637           property. Fixes #74360.
11638
11639 2005-04-19  Jackson Harper  <jackson@ximian.com>
11640
11641         * XEventQueue.cs: Lock when getting the lockqueue size.
11642         * PictureBox.cs: Call base OnPaint
11643         
11644 2005-04-19  Peter Bartok  <pbartok@novell.com>
11645
11646         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
11647           messages were no longer being processed (this broke BeginInvoke)
11648
11649           
11650 2005-04-18  Jackson Harper  <jackson@ximian.com>
11651
11652         * TreeView.cs: buglet that caused node images to get drawn
11653         regardless of whether or not they were in the clipping rectangle.
11654
11655 2005-04-18  Jackson Harper  <jackson@ximian.com>
11656
11657         * CurrencyManager.cs: There are four rules for GetItemProperties:
11658         - If the type is an array use the element type of the array
11659         - If the type is a typed list, use the type
11660         - If the list contains an Item property that is not an object, use
11661         that property
11662         - use the first element of the list if there are any elements in
11663         the list.
11664         
11665 2005-04-17  Jackson Harper  <jackson@ximian.oom>
11666
11667         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
11668         click. This handles offsets for scrolling properly and reduces
11669         memory. Also fixed GetNode to not offset now that TopNode works
11670         properly.
11671         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
11672         
11673 2005-04-17  Jackson Harper  <jackson@ximian.com>
11674
11675         * CursorConverter.cs: Initial implementation.
11676
11677 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11678
11679         * ListControl.cs: work towards complex data binding support on ListControl
11680         * CurrencyManager.cs: work towards complex data binding support on ListControl
11681         * ListBox.cs: work towards complex data binding support on ListControl
11682
11683
11684 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11685
11686         * GridTableStylesCollection.cs: fixes name and constructor
11687         * DataGridTableStyle.cs: fixes
11688         * DataGridBoolColumn.cs: fixes names and constructors
11689         * DataGrid.cs: define methods and properties. Some init implementations
11690         * DataGridCell.cs: define methods and properties. Some init implementations
11691         * GridTablesFactory.cs: Define methods and properties
11692
11693 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
11694
11695         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
11696         graphics port changes.  We still want the coordinates in global screen
11697         coordinates.
11698
11699 2005-04-14  Jackson Harper  <jackson@ximian.com>
11700
11701         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
11702         check plus minus or checkbox clicks unless those features are enabled.
11703
11704 2005-04-14  Jackson Harper  <jackson@ximian.com>
11705
11706         * TreeView.cs: Add methods for setting the top and bottom visible
11707         nodes. TreeNode::EnsureVisible uses these methods.
11708         * TreeNode.cs: Implement EnsureVisible
11709
11710 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
11711
11712         * Form.cs: Pospone menu assignation if the window has not been created yet
11713         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
11714         size and position
11715
11716 2005-04-12  Jackson Harper  <jackson@ximian.com>
11717
11718         * TreeView.cs: Set the TopNode properly when scrolling
11719         occurs. This has the added benifit of reducing the amount of
11720         walking that needs to be done when drawing. Also removed an old
11721         misleading TODO.
11722         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
11723         
11724 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
11725
11726         * Timer.cs: fixes interval setting when the timer is already enabled
11727         
11728 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
11729
11730         * FolderBrowserDialog.cs: First approach
11731
11732 2005-04-09  Peter Bartok  <pbartok@novell.com>
11733
11734         * FolderBrowserDialog: Added
11735
11736 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
11737
11738         * LinkLabel.cs: move drawing code into the theme
11739         * ThemeWin32Classic.cs: drawing code and painting background bugfix
11740         * Theme.cs: define DrawLinkLabel method
11741
11742 2005-04-05  Jackson Harper  <jackson@ximian.com>
11743
11744         * BindingContext.cs: Use weak references so these bad actors don't
11745         stay alive longer then they need to.
11746
11747 2005-04-05  Jackson Harper  <jackson@ximian.com>
11748
11749         * ListControl.cs: Basic implementation of complex databinding.
11750         * ComboBox.cs:
11751         * ListBox.cs: Add calls to ListControl databinding methods.
11752
11753 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
11754
11755         * FileDialog.cs:
11756           - Don't change PopupButtonState to Normal when the
11757             PopupButton gets pressed several times.
11758           - Renamed ButtonPanel to PopupButtonPanel
11759
11760 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
11761
11762         * ColorDialog.cs: Use cached objects instead of creating them
11763         * LinkLabel.cs: Use cached objects instead of creating them
11764         * Splitter.cs: Use cached objects instead of creating them
11765         * FontDialog.cs: Use cached objects instead of creating them
11766         * PropertyGridView.cs: Use cached objects instead of creating them
11767         * MessageBox.cs: Use cached objects instead of creating them
11768         * FileDialog.cs: Use cached objects instead of creating them
11769         * ThemeWin32Classic.cs: Use cached objects instead of creating them
11770         * TreeView.cs: Use cached objects instead of creating them
11771         
11772 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
11773
11774         * Control.cs: use Equals to compare the font since no == op
11775         * ScrollBar.cs: use Equals to compare the font since no == op
11776
11777 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
11778
11779         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11780
11781 2005-04-01  Jackson Harper  <jackson@ximian.com>
11782
11783         * Binding.cs: Implement IsBinding.
11784         * BindingManagerBase.cs:
11785         * PropertyManager.cs:
11786         * CurrencyManager.cs: Add IsSuspended property.
11787
11788 2005-04-01  Jackson Harper  <jackson@ximian.com>
11789
11790         * Binding.cs: Had some IsAssignableFrom calls backwards.
11791
11792 2005-04-01  Jackson Harper  <jackson@ximian.com>
11793
11794         * Binding.cs: Handle null data members when pulling data.
11795         * PropertyManager.cs: Handle the data member being a property that
11796         does not exist.
11797
11798 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11799
11800         * DataGridTextBoxColumn.cs: fixes signature
11801         * DataGrid.cs: calls right constructor
11802
11803 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11804
11805         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11806         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11807         * GridTableStylesCollection.cs: implements GridTableStylesCollection
11808         * DataGridTableStyle.cs: implements DataGridTableStyle
11809         * DataGridBoolColumn.cs: implements DataGridBoolColumn
11810         * DataGridTextBox.cs: implements DataGridTextBox
11811         * DataGridColumnStyle.cs: implements DataGridColumnStyle
11812
11813 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
11814
11815         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11816
11817 2005-03-29  Peter Bartok  <pbartok@novell.com>
11818
11819         * Application.cs:
11820           - Properly implemented CompanyName property
11821           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11822             returns a path that includes CompanyName, ProductName and
11823             Version (fixes bug #70330)
11824
11825 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
11826
11827         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11828           fixes bug #72588.
11829
11830 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11831
11832         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11833         
11834           - Added ReadOnly CheckBox
11835           - Further refactoring: moved some code from Open-/SaveFileDialog
11836             to FileDialog
11837
11838 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11839
11840         * OpenFileDialog.cs: Fixed CheckFileExists
11841         * FileDialog.cs:
11842           Moved FileView and DirComboBox outside FileDialog class.
11843           They can now be used outside FileDialog
11844
11845 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11846
11847         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11848         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11849
11850 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11851
11852         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11853           - Added missing CreatePrompt property in SaveDialog
11854           - Overall SaveDialog handling should be better now
11855           - Added non standard ShowHiddenFiles property
11856           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11857           - Added InitialDirectory and RestoreDirectory support
11858
11859 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
11860
11861         * FileDialog.cs: Made dirComboBox usable
11862
11863 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
11864
11865         * FileDialog.cs: Added Filter support (case sensitiv)
11866
11867 2005-03-24  Jackson Harper  <jackson@ximian.com>
11868
11869         * TabControl.cs: Need a couple more pixels for the lines.
11870
11871 2005-03-23  Jackson Harper  <jackson@ximian.com>
11872
11873         * TabControl.cs: Give the tab page focus when it is selected.
11874
11875 2005-03-23  Jackson Harper  <jackson@ximian.com>
11876
11877         * TabControl.cs: Account for the drawing of tabs borders when
11878         invalidating. If the slider was clicked dont do click detection on
11879         the tabs.
11880
11881 2005-03-23  Jackson Harper  <jackson@ximian.com>
11882
11883         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11884
11885 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
11886
11887         * CategoryGridEntry.cs: Added
11888         * GridItem.cs: Added helper properties
11889         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11890         * GridEntry.cs: Updated code for collection
11891         * PropertyGrid.cs: Cleaned up some formatting
11892         * PropertyGridView.cs: Added drop down functionality for enums.
11893         * GridItemCollection.cs: Added enumerator logic
11894         * PropertyGridEntry.cs: Added
11895
11896 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11897
11898         * FileDialog.cs:
11899           - Removed unnecessary commented code
11900           - Fixed handling for entering the filename manually in the combobox
11901
11902 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11903
11904         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11905
11906 2005-03-18  Peter Bartok  <pbartok@novell.com>
11907
11908         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11909           them being touching the border
11910
11911 2005-03-18  Peter Bartok  <pbartok@novell.com>
11912
11913         * TextControl.cs: Quick hack to center text better
11914
11915 2005-03-18  Peter Bartok  <pbartok@novell.com>
11916
11917         * ControlPaint.cs:
11918           - Don't throw NotImplemented exceptions, just print a notice once
11919             instead (requested by Miguel). This makes running existing SWF
11920             apps a bit easier
11921         * Control.cs:
11922           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11923           - Added context menu trigger on right click
11924         * Panel.cs: Trigger invalidate on resize
11925         * StatusBar.cs:
11926           - Removed old double-buffer drawing
11927           - Added ResizeRedraw style to force proper update of statusbar
11928         * ListView.cs:
11929           - Removed debug output
11930         * ThemeWin32Classic.cs:
11931           - Fixed drawing of status bar, now draws Text property if there
11932             are no defined panels
11933
11934 2005-03-18  Jackson Harper  <jackson@ximian.com>
11935
11936         * ImageList.cs: When the image stream is set pull all the images
11937         from it.
11938         * ImageListStreamer.cs: Implement reading image list streams.
11939
11940 2005-03-18  Peter Bartok  <pbartok@novell.com>
11941
11942         * ThemeWin32Classic.cs (DrawPictureBox):
11943           - Fixed calculations for centered drawing
11944           - Fixed drawing for normal mode, not scaling the image on normal
11945
11946 2005-03-18  Peter Bartok  <pbartok@novell.com>
11947
11948         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11949           textbox
11950         * FileDialog.cs:
11951           - Made Open/Save button the accept button for FileDialog
11952           - Tied the cancel button to the IButtonControl cancel button
11953           - Save/Open now properly builds the pathname
11954           - Now handles user-entered text
11955           - Preventing crash on right-click if no item is selected
11956           - Fixed Text property, now uses contents of textbox
11957           - Fixed SelectedText property, now just returns the text part that
11958             is selected in the text box
11959
11960 2005-03-18  Jackson Harper  <jackson@ximian.com>
11961
11962         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11963         rect, make sure to de-adjust the interior rect after drawing the
11964         tab text.
11965
11966 2005-03-18  Peter Bartok  <pbartok@novell.com>
11967
11968         * MenuAPI.cs: Remove menu *before* executing selected action to
11969           prevent the menu from 'hanging around'
11970           
11971 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
11972
11973         * XplatUIOSX.cs: Implemented WorkingArea property
11974
11975 2005-03-17  Peter Bartok  <pbartok@novell.com>
11976
11977         * XplatUIX11.cs: Fixed menu coord calculations
11978         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11979           for calculating offsets
11980
11981 2005-03-17  Peter Bartok  <pbartok@novell.com>
11982
11983         * Hwnd.cs: Do not consider menu presence for default client
11984           rectangle location/size
11985         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11986           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11987           translation functions
11988         * FileDialog.cs: Fixed (what I presume is a) typo
11989
11990 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
11991
11992         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11993           X access (avoids X-Async errors)
11994
11995 2005-03-16  Jackson Harper  <jackson@ximian.com>
11996
11997         * TabControl.cs: Raise the SelectedIndexChanged event.
11998
11999 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
12000
12001         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12002           - Removed vertical ToolBar and replaced it with a custom panel
12003             (desktop and home button already work)
12004           - Added Help button (some controls get resized or relocated then)
12005           - Draw correct text depending on Open or Save.
12006           - Fixed some typos...
12007
12008 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
12009
12010         * ScrollBar.cs:
12011           - Only change Maximum and Minimum when need it (bug fix)
12012
12013 2005-03-15  Peter Bartok  <pbartok@novell.com>
12014
12015         * Form.cs: Use Handle for icon, to trigger creation if
12016           the window does not yet exist
12017         * Control.cs:
12018           - CanSelect: Slight performance improvement
12019           - Focus(): Preventing possible recursion
12020           - Invalidate(): Removed ControlStyle based clear flag setting
12021           - WM_PAINT: fixed logic for calling OnPaintBackground
12022           - WM_ERASEBKGND: Fixed logic, added call to new driver method
12023             EraseWindowBackground if the control doesn't paint background
12024         * XplatUIWin32.cs:
12025           - Moved EraseWindowBackground() method to internal methods
12026           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
12027             is sent via SendMessage on BeginPaint call on Win32
12028         * XplatUIX11.cs:
12029           - Added EraseWindowBackground() method
12030           - No longer sends WM_ERASEBKGND on .Expose, but on call to
12031             PaintEventStart, which more closely matches Win32 behaviour
12032           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
12033           - Fixed SetFocus() to properly deal with client and whole windows
12034         * Hwnd.cs: Added ErasePending property
12035         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
12036         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
12037
12038 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
12039
12040         * XplatUIOSX.cs:
12041           - Fix hard loop when timers exist.
12042           - Fix bugs with middle and right click for 3 button mice.
12043
12044 2005-03-11  Peter Bartok  <pbartok@novell.com>
12045
12046         * XplatUIX11.cs:
12047           - get_WorkingArea: Need to call X directly, GetWindowPos only
12048             returns cached data now
12049           - Added sanity check to GetWindowPos hwnd usage
12050
12051 2005-03-11  Jackson Harper  <jackson@ximian.com>
12052
12053         * BindingManagerBase.cs: This method isn't used anymore as
12054         PullData now updates the data in the control.
12055
12056 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
12057
12058         * Form.cs: fixes menu drawing on X11
12059         * MenuAPI.cs:  fixes menu drawing on X11
12060
12061 2005-03-11  Peter Bartok  <pbartok@novell.com>
12062
12063         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
12064           from Jonathan Gilbert; should fix bug #73606
12065         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
12066           in Screen coordinates. Thanks, Jordi.
12067         * Form.cs: Added missing attribute
12068
12069 2005-03-11  Peter Bartok  <pbartok@novell.com>
12070
12071         * Form.cs:
12072           - Rudimentary Mdi support
12073           - Removed outdated FormParent code
12074           - Implemented lots of missing properties and methods, still missing
12075             transparency support
12076           - Added missing attributes
12077           - Implemented support for MaximumBounds
12078           - Added firing of various events
12079         * XplatUI.cs: Added SetIcon() method
12080         * XplatUIDriver.cs: Added SetIcon() abstract
12081         * XplatUIOSX.cs: Stubbed out SetIcon() method
12082         * XplatUIX11.cs:
12083           - Implemented SetIcon() support
12084           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
12085           - Switched to unix line endings
12086         * XplatUIWin32.cs:
12087           - Made POINT internal so for can access it as part of MINMAX
12088           - Implemented SetIcon() support
12089           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
12090             native Mdi support again, might have to go managed)
12091         * Control.cs: Now fires the StyleChanged event
12092         * MdiClient.cs: Added; still mostly empty
12093
12094 2005-03-10  Peter Bartok  <pbartok@novell.com>
12095
12096         * SaveFileDialog.cs: Added emtpy file
12097
12098 2005-03-08  Peter Bartok  <pbartok@novell.com>
12099
12100         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
12101           in turn triggers OnCreateContro) when creating a handle for the
12102           first time.
12103         * TextControl.cs: Fixed endless loop in certain cases when
12104           replacing the current selection
12105
12106 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
12107
12108         * ScrollBar.cs:
12109           - Honors NewValue changes in Scroll events allowing apps to change it
12110           - Adds First and Last Scroll events
12111           - Fixes Thumb events
12112
12113 2005-03-07  Peter Bartok  <pbartok@novell.com>
12114
12115         * Hwnd.cs: Added DefaultClientRectangle property
12116         * XplatUI.cs: Now using the X11 driver Where() method, which provides
12117           more detailed debug information
12118         * XplatUIX11.cs:
12119           - Fixed size-change feedback loop, where we would pull an old size
12120             off the queue and mistakenly change our window's size to an
12121             earlier value
12122           - Now compressing ConfigureNotify events, to reduce looping and
12123             redraw issues
12124         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
12125           is called
12126
12127 2005-03-07  Jackson Harper  <jackson@ximian.com>
12128
12129         * Binding.cs: Push data pushes from data -> property. Check if the
12130         property is readonly when attempting to set it.
12131
12132 2005-03-07  Jackson Harper  <jackson@ximian.com>
12133
12134         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
12135         instead of IsSubclassOf. Pulling data now sets the value on the
12136         control.
12137         * PropertyManager.cs:
12138         * CurrencyManager.cs: Just need to pull data when updating now,
12139         because PullData will set the value on the control.
12140
12141 2005-03-04  Jackson Harper  <jackson@ximian.com>
12142
12143         * Binding.cs: Implement data type parsing and converting on pulled
12144         data. TODO: Are there more ways the data can be converted?
12145
12146 2005-03-04  Jackson Harper  <jackson@ximian.com>
12147
12148         * Binding.cs: Support <Property>IsNull checks. Also bind to the
12149         controls Validating method so we can repull the data when the
12150         control loses focus.
12151
12152 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
12153
12154         * ColumnHeader.cs:
12155           - Fixes null string format
12156           
12157         * ListView.cs:
12158           - Adds enum type checks
12159           - Fixes redrawing and recalc need after changing some properties
12160           - Fixes on focus_item set after the event
12161           - Fixes adding columns after the control has been created
12162           
12163         * ThemeWin32Classic.cs:
12164           - Fixes CheckBox focus rectangle
12165           - Fixes ColumnHeader drawing
12166
12167
12168 2005-03-03  Jackson Harper  <jackson@ximian.com>
12169
12170         * Binding.cs: Bind to <Property>Changed events so we can detect
12171         when properties are changed and update the data.
12172
12173 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
12174
12175         * ImageList.cs:
12176           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
12177           - Fixes ImageList constructor with ImageList container
12178           - Fixes image scaling (wrong parameters at DrawImage)
12179
12180 2005-02-02  Jackson Harper  <jackson@ximian.com>
12181
12182         * Binding.cs: Make property searches case-insensitive. Eliminate
12183         some duplicated code.
12184
12185 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
12186
12187         * ComboBox.cs:
12188                 - Handle focus event
12189                 - Fix scrollbar events
12190                 - Discard highlighted item if remove it
12191                 - Fixes SelectedItem with strings
12192
12193 2005-03-01  Peter Bartok  <pbartok@novell.com>
12194
12195         * Control.cs:
12196           - Fixed Visible property, now follows (once again) parent chain
12197             to return false if any control in the chain is visible=false
12198           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
12199           - Fixed several places where is_visible instead of Visible was used
12200           - Implemented FIXME related to focus selection when setting focused
12201             control to be invisible
12202
12203         * XplatUIWin32.cs: Now using proper method to find out if window is
12204           visible. Thanks to Jordi for pointing it out
12205
12206 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
12207
12208         * ComboBox.cs: show/hide scrollbar instead of creating it
12209
12210 2005-02-27  Jackson Harper  <jackson@ximian.com>
12211
12212         * CurrencyManager.cs: Add PositionChanged stuff.
12213
12214 2005-02-27  Peter Bartok  <pbartok@novell.com>
12215
12216         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
12217         * XplatUIOSX.cs: Added GetMenuOrigin() stub
12218         * XplatUIWin32.cs: Implemented GetMenuOrigin()
12219         * XplatUIX11.cs:
12220           - Implemented GetMenuDC()
12221           - Implemented GetMenuOrigin()
12222           - Implemented ReleaseMenuDC()
12223           - Implemented generation of WM_NCPAINT message
12224           - Implemented generation and handling of WM_NCCALCSIZE message
12225         * Form.cs: Added debug helper message for Jordi's menu work
12226         * Hwnd.cs:
12227           - Modified ClientRect property; added setter, fixed getter to handle
12228             setting of ClientRect
12229           - Added MenuOrigin property
12230
12231 2005-02-26  Peter Bartok  <pbartok@novell.com>
12232
12233         * XplatUIX11.cs:
12234           - Destroys the caret if a window that's being destroyed contains it
12235           - Ignores expose events coming from the X11 queue for windows that
12236             already are destroyed
12237           - Now uses the proper variable for handling DestroyNotify, before we
12238             marked the wrong window as destroyed
12239           - Improved/added some debug output
12240
12241 2005-02-26  Peter Bartok  <pbartok@novell.com>
12242
12243         * X11Keyboard.cs: Fixes to work on 64bit systems
12244
12245 2005-02-26  Peter Bartok  <pbartok@novell.com>
12246
12247         * Control.cs:
12248           - Now calling OnHandleDestroyed from DestroyHandle()
12249             instead of Dispose()
12250           - Removed bogus call to controls.Remove() from DestroyHandle()
12251
12252 2005-02-26  Peter Bartok  <pbartok@novell.com>
12253
12254         * Control.cs: Properly destroy child windows when our handle is
12255           destroyed
12256
12257 2005-02-25  Peter Bartok  <pbartok@novell.com>
12258
12259         * XplatUI.cs:
12260           - Added 'DriverDebug' define to allow tracing XplatUI API calls
12261           - Alphabetized Static Methods and Subclasses
12262
12263         * XplatUIX11.cs:
12264           - Added XException class to allow custom handling of X11 exceptions
12265           - Created custom X11 error handler, tied into XException class
12266           - Added support for MONO_XEXCEPTIONS env var to allow the user
12267             to either throw an exception on X errors or continue running
12268             after displaying the error
12269           - Added handling of DestroyNotify message
12270           - Added handler for CreateNotify message (still disabled)
12271           - Improved (tried to at least) Where method to provide file and lineno
12272         * X11Structs.cs:
12273           - Added XErrorHandler delegate
12274           - Added XRequest enumeration (to suppor translation of errors)
12275
12276 2005-02-25  Jackson Harper  <jackson@ximian.com>
12277
12278         * PropertyManager.cs: Implement editing features
12279         * CurrencyManager.cs:
12280         * Binding.cs: First attempt at UpdateIsBinding
12281         * BindingManagerBase.cs: Call UpdateIsBinding before
12282         pushing/pulling data.
12283
12284 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
12285
12286         * MenuAPI.cs: Respect disabled items
12287         * ThemeWin32Classic.cs
12288                 - Caches ImageAttributes creation for DrawImageDisabled
12289                 - Fixes vertical menu line drawing
12290                 - Draws disabled arrows in disable menu items
12291
12292 2005-02-24  Peter Bartok  <pbartok@novell.com>
12293
12294         * Hwnd.cs:
12295           - Added UserData property to allow associating arbitrary objects
12296             with the handle
12297           - Fixed leak; now removing Hwnd references from static windows array
12298         * XplatUIWin32.cs:
12299           - Fixed Graphics leak in PaintEventEnd
12300           - Removed usage of HandleData, switched over to Hwnd class
12301         * HandleData.cs: Removed, obsoleted by Hwnd.cs
12302
12303 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12304
12305         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
12306         * ScrollBar.cs: Fixes bug
12307         * TrackBar.cs: removes death code, clipping, mimize refreshes,
12308          keyboard navigation enhancements
12309
12310 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12311
12312         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
12313         * GroupBox.cs: Add control styles
12314         * Label.cs: Add control styles
12315         * UpDownBase.cs: Add control styles
12316         * ListBox.cs: Add control styles
12317         * XplatUIWin32.cs: Fixes wrong parameter order
12318
12319
12320 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
12321
12322         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
12323
12324 2005-02-23  Jackson Harper  <jackson@ximian.com>
12325
12326         * PropertyManager.cs: Implement property binding. This doesn't
12327         seem to work yet though as (I think) there are some bugs in
12328         System.ComponentModel.PropertyDescriptor.
12329         * BindingContext.cs: Use new PropertyManager constructor.
12330
12331 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
12332
12333         * ProgressBar.cs: use clip region in ProgressBar
12334         * ThemeWin32Classic.cs: use clip region in ProgressBar
12335
12336 2004-02-22  Jackson Harper  <jackson@ximian.com>
12337
12338         * BindingsCollection.cs: Remove some debug code.
12339
12340 2005-02-22  Jackson Harper  <jackson@ximian.com>
12341
12342         * BindingContext.cs:
12343         * ControlBindingsCollection.cs:
12344         * CurrencyManager.cs:
12345         * Binding.cs:
12346         * BindingManagerBase.cs: Initial implementation
12347         * BindingsCollection.cs: Add an internal contains method that the
12348         BindingManagerBase uses to ensure bindings aren't added twice to
12349         the collection.
12350         * PropertyManager.cs: Stubbed out.
12351         * Control.cs:
12352         * ContainerControl.cs: Hook up databinding
12353         
12354 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
12355
12356         * XplatUIOSX.cs:
12357           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
12358           Fixed Invalidate/Update chain.
12359           Fixed tons of other minor bugs (this is almost a complete rewrite).
12360
12361 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
12362
12363         * ComboBox.cs: do subcontrol creation when the control is created
12364
12365 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12366
12367         * Label.cs: fixes image drawing (image and imagelist)
12368         * ThemeWin32Classic.cs: cache brushes
12369         
12370 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12371
12372         * Form.cs: Move menu drawing code to Theme class
12373         * ComboBox.cs: Move ComboBox drawing code to Theme class
12374         * MenuItem.cs: Move menu drawing code to Theme class
12375         * MenuAPI.cs: Move menu drawing code to Theme class
12376         * ThemeWin32Classic.cs: New methods
12377         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
12378         * ListBox.cs: Move Listbox drawing code to Theme class
12379         * Theme.cs: New methods
12380
12381 2005-02-20  Peter Bartok  <pbartok@novell.com>
12382
12383         * Control.cs:
12384           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
12385             only process mnemonics on those)
12386           - Fixed event sequence for key handling; first calling
12387             ProcessKeyEventArgs now
12388         * TextBoxBase.cs:
12389           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
12390             for processing non-character keys
12391           - Fixed WM_CHAR to generate proper event sequence before processing
12392         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
12393           generation
12394
12395 2005-02-19  Peter Bartok  <pbartok@novell.com>
12396
12397         * UserControl.cs: Added TextChanged event; added attributes
12398         * SizeGrip.cs: Implemented resizing and optional display of grip
12399         * Form.cs: Fixed attribute
12400         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12401           Changed meaning of ScrollWindow bool argument; instead of the
12402           clear attribute (which will be true usually anyway), it gives the
12403           option of moving child controls as well.
12404         * XplatUIX11.cs:
12405           - Changed to match new ScrollWindow argument
12406           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
12407             now handles the implicit parent window a WM puts around us
12408         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
12409           to work)
12410         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
12411         * TreeView.cs: Adjusted to new ScrollWindow arguments
12412
12413 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12414
12415         * Form.cs: Menu integration with non-client area
12416         * MenuItem.cs: Menu integration with non-client area
12417         * MenuAPI.cs: Menu integration with non-client area
12418
12419 2005-02-18  Peter Bartok  <pbartok@novell.com>
12420
12421         * MethodInvoker.cs: Added
12422         * MdiLayout.cs: Added
12423         * SendKeys.cs: Started implementation
12424         * ErrorIconAlignment.cs: Added
12425
12426 2005-02-18  Peter Bartok  <pbartok@novell.com>
12427
12428         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
12429         * Form.cs: Added handling for Menu-related Non-client messages
12430
12431 2005-02-17  Peter Bartok  <pbartok@novell.com>
12432
12433         * UpDownBase.cs: Fixed typo, compilation errors
12434         * DomainUpDown.cs: Fixed attribute value
12435
12436 2005-02-16  Miguel de Icaza  <miguel@novell.com>
12437
12438         * UpDownBase.cs: Attach entry events.
12439         Propagate events.
12440         Add ForeColor property, Focused, InterceptArrowKeys (interception
12441         does not work yet).
12442
12443 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
12444
12445         * Form.cs:
12446                 - Redraw non client are on Setmenu
12447                 - Calc proper menu starting point
12448
12449 2005-02-17  Peter Bartok  <pbartok@novell.com>
12450
12451         * Application.cs: Fixed message_filter check
12452
12453 2005-02-17  Peter Bartok  <pbartok@novell.com>
12454
12455         * Application.cs: Now calls registered message filters
12456         * DockStyle.cs: Fixed attribute
12457         * Form.cs: Fixed attribute
12458         * Menu.cs: Fixed attribute
12459         * ToolTip.cs: Fixed attribute
12460         * TreeNode.cs: Added missing attributes and arranged in regions
12461         * PropertyGrid.cs: Fixed signatures
12462         * TreeNodeCollection.cs: Added attributes
12463         * Splitter.cs: Added missing attributes; arranged into regions
12464         * TabPage.cs: Added missing attributes; arranged into regions
12465         * TextBoxBase.cs: Added missing attributes
12466         * TextBox.cs: Added missing attributes
12467         * ArrangeDirection.cs: Added missing attributes
12468         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
12469         * ToolBarButton.cs: Fixed attributes
12470         * AnchorStyles.cs: Fixed attribute
12471         * TrackBar.cs: Fixed attributes
12472         * TabControl.cs: Added missing attributes and arranged into regions
12473         * ToolBar.cs: Fixed attribute
12474         * StatusBar.cs: Fixed signature, organized into regions and added
12475           attributes
12476         * StatusBarPanel.cs: Fixed attributes
12477         * ContentsResizedEventArgs.cs: Implemented
12478         * ContentsResizedEventHandler.cs: Implemented
12479         * DateBoldEventArgs.cs: Implemented
12480         * DateBoldEventHandler.cs: Implemented
12481         * UpDownEventArgs.cs: Implemented
12482         * UpDownEventHandler.cs: Implemented
12483         
12484 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
12485
12486         * Form.cs: first Menu NC refactoring
12487         * MenuAPI.cs: first Menu NC refactoring
12488         
12489 2005-02-16  Peter Bartok  <pbartok@novell.com>
12490
12491         * ImeMode.cs: Added missing attributes
12492         * Menu.cs: Fixed attribute
12493         * GroupBox.cs: Fixed attribute
12494         * Label.cs: Fixed attribute
12495         * ColorDialog.cs (RunDialog): Removed TODO attribute
12496         * ComboBox.cs: Fixed attributes
12497         * ListControl.cs: Added missing attributes
12498         * PropertyGrid.cs: Fixed attributes
12499         * Control.cs: Fixed attributes
12500         * ListViewItem.cs: Added TypeConverter attribute
12501         * NotifyIcon.cs: Fixed attributes
12502         * ListView.cs: Fixed attributes
12503         * ButtonBase.cs: Fixed attribute
12504         * ImageList.cs: Added missing attributes
12505         * ContainerControl.cs: Fixed signature
12506         * CheckedListBox.cs: Fixed attribute; added missing attributes
12507         * Panel.cs: Fixed attributes
12508         * PropertyTabChangedEventArgs.cs: Added missing attribute
12509         * PropertyValueChangedEventArgs.cs: Added missing attribute
12510         * Binding.cs: Fixed attribute
12511         * ListViewItemConverter: Implemented ListViewSubItemConverter class
12512         * ListBox.cs: Fixed attribute; added missing attributes;
12513         * ScrollableControl.cs: Added missing attributes
12514         * PictureBox.cs: Added missing attributes; implemented missing property
12515         * DateTimePicker.cs: Added missing attributes
12516         * Theme.cs (ToolWindowCaptionHeight): Fixed type
12517         * MonthCalendar.cs: Fixed attributes
12518         * StatusBarPanel.cs: Added missing attributes
12519         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12520
12521 2005-02-16  Peter Bartok  <pbartok@novell.com>
12522
12523         * TextBoxBase.cs: The previous method to enforce height yet remember
12524           the requested high was less than ideal, this is an attempt to do
12525           it better.
12526         * Control.cs: Added comment about possible problem
12527         * Copyright: Updated format
12528         * GridItemType.cs: Fixed swapped values
12529
12530 2005-02-15  Jackson Harper  <jackson@ximian.com>
12531
12532         * BaseCollection.cs: Use property so we never access an
12533         uninitialized list. Also initialize the list in the property.
12534
12535 2005-02-15  Peter Bartok  <pbartok@novell.com>
12536
12537         * GroupBox.cs (ProcessMnemonic): Implemented
12538         * Label.cs (ProcessMnemonic): Implemented
12539         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12540           hotkeys
12541
12542 2005-02-15  Peter Bartok  <pbartok@novell.com>
12543
12544         * RadioButton.cs (ProcessMnemonic): Implemented
12545         * CheckBox.cs (ProcessMnemonic): Implemented
12546         * Control.cs:
12547           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12548             handling
12549           - Added internal method to allow calling ProcessMnemonic from other
12550             controls
12551         * ContainerControl.cs:
12552           - Started support for handling validation chain handling
12553           - Implemented ProcessMnemonic support
12554           - Added Select() call to Active, to make sure the active control
12555             receives focus
12556         * Form.cs: Setting toplevel flag for Forms (this was lost in the
12557           FormParent rewrite)
12558         * ThemeWin32Classic.cs:
12559           - DrawCheckBox(): Fixed stringformat to show hotkeys
12560           - DrawRadioButton(): Fixed stringformat to show hotkeys
12561         * CommonDialog.cs: Removed WndProc override, not needed
12562
12563 2005-02-14  Peter Bartok  <pbartok@novell.com>
12564
12565         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
12566           missed those in the rewrite
12567
12568 2005-02-14  Miguel de Icaza  <miguel@novell.com>
12569
12570         * NumericUpDown.cs (Increment, ToString): Add.
12571         (DecimalPlaces): implement.
12572         
12573         Add attributes.
12574         
12575         * UpDownBase.cs: Add the designer attributes.
12576
12577 2005-02-13  Peter Bartok  <pbartok@novell.com>
12578
12579         * Panel.cs: Removed border_style, now in Control
12580         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
12581           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
12582
12583 2005-02-13  Peter Bartok  <pbartok@novell.com>
12584
12585         * MouseButtons.cs: Added missing attributes
12586         * XplatUIStructs.cs: Added enumeration for title styles
12587         * LeftRightAlignment.cs: Added missing attributes
12588         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
12589           it compatible with Graphics.FromHwnd()
12590         * SelectedGridItemChangedEventArgs.cs: Fixed property type
12591         * Keys.cs: Added missing attributes
12592         * SelectionRange.cs: Added missing attributes
12593         * SelectionRangeConverter.cs: Added
12594         * XplatUI.cs:
12595           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
12596             ReleaseMenuDC methods
12597           - Renamed ReleaseWindow to UngrabWindow
12598           - Added proper startup notice to allow version identification
12599         * Form.cs:
12600           - Added missing attributes
12601           - Removed FormParent concept
12602         * Label.cs: Removed border_style field, now in Control
12603         * RadioButton.cs: Now properly selects RadioButton when focus is
12604           received
12605         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
12606         * Control.cs:
12607           - Added missing attributes
12608           - Added borderstyle handling
12609           - Removed FormParent concept support
12610           - Fixed calls to XplatUI to match changed APIs
12611           - Fixed bug that would case us to use disposed Graphics objects
12612           - Removed unneeded internal methods
12613           - PerformLayout(): Fixed to handle DockStyle.Fill properly
12614           - SelectNextControl(): Fixed to properly check common parents
12615         * TextBoxBase.cs: Removed border_style field (now in Control)
12616         * MessageBox.cs:
12617           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
12618             fixed calculations for form size
12619           - Added support for localized strings and icons
12620           - Improved form size calculations, added border
12621         * ListView.cs: Removed border_style field (now in Control)
12622         * X11Structs.cs: Moved several structs from X11 driver here
12623         * X11Keyboard.cs: Changed debug message
12624         * Application.cs: Removed FormParent concept support
12625         * CommonDialog.cs:
12626           - Resetting end_modal flag
12627           - Removed FormParent concept support
12628         * NativeWindow.cs: Removed FormParent concept support
12629         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
12630           Client area and Non-Client whole window to allow support for WM_NC
12631           messages
12632         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
12633           prevent using it until it supports Hwnd as per Geoff Norton's request
12634         * ToolBar.cs: Fixed drawing, was not doing proper drawing
12635         * PictureBox.cs: Removed border_style field, now in Control
12636         * XplatUIWin32.cs: Added new driver methods
12637
12638 2005-02-12  Peter Bartok  <pbartok@novell.com>
12639
12640         * OpacityConverter.cs: Implemented
12641         * Hwnd.cs: Internal class to support drivers that need to emulate
12642           client area/non-client area window behaviour
12643
12644 2005-02-11  Peter Bartok  <pbartok@novell.com>
12645
12646         * KeysConverter.cs: Implemented
12647
12648 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
12649
12650         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
12651         * LinkLabel: Added missing attributes
12652         * MainMenu.cs: fixes ToString
12653         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
12654         * ListBox.cs: fixes event position
12655         * TrackBar.cs: adds missing attributes and events
12656         
12657 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
12658
12659         * MenuItem.cs: Use SystemInformation and bug fixes
12660         * MenuAPI.cs: Use SystemInformation and bug fixes
12661
12662 2005-02-09  Jackson Harper  <jackson@ximian.com>
12663
12664         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
12665         their keystate otherwise things like VK_MENU get stuck "on".
12666
12667 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
12668
12669         * ListBox.cs: Fixes AddRange bug
12670         
12671 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
12672
12673         * ProgressBar.cs
12674                 - Add missing attributes
12675                 - Add missing method
12676                 
12677         * CheckedListBox.cs: Added missing attributes
12678                 - Add missing attributes
12679                 - Remove extra method
12680         
12681         * ComboBox.cs: Added missing attributes
12682         * VScrollBar.cs: Added missing attributes
12683         * ScrollBar.cs:  Added missing attributes
12684         * ListBox.cs: Fixes signature, add missing consts
12685         * LinkArea.cs:   Added missing attributes
12686         
12687
12688 2005-02-08  Peter Bartok  <pbartok@novell.com>
12689
12690         * Menu.cs: Added missing attributes
12691         * MainMenu.cs: Added missing attributes
12692         * GroupBox.cs: Added missing attributes
12693         * Label.cs: Added missing attributes
12694         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
12695         * ColorDialog.cs:
12696           - Added Instance and Options properties
12697           - Added missing attributes
12698         * Cursor.cs: Made Serializable
12699         * NotifyIcon: Added missing attributes
12700         * MenuItem.cs: Added missing attributes
12701         * TextBoxBase.cs: Implemented AppendText() and Select() methods
12702         * Panel.cs: Added Missing attributes
12703         * MonthCalendar.cs: Fixed CreateParams
12704
12705 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12706         
12707         * LinkLabel.cs:
12708                 - Fixes signature
12709                 - Fixes issues with links
12710                 - Adds the class attributes
12711
12712 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12713         
12714         * ComboBox.cs:
12715                 - Fixes button when no items available in dropdown
12716                 - Fixes repainting problems
12717                 - Adds the class attributes
12718                 
12719 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12720
12721         * XplatUIOSX.cs: Detect the menu bar and title bar height from
12722         the current theme.  Cache these on startup.
12723
12724 2005-02-07  Jackson Harper  <jackson@ximian.com>
12725
12726         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
12727         the scrollbar buttons when they are depressed.
12728
12729 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12730
12731         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
12732         Get the display size from the main displayid.  We currently dont
12733         support multiple display configurations.
12734
12735 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12736
12737         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
12738
12739 2005-02-07  Miguel de Icaza  <miguel@novell.com>
12740
12741         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
12742
12743 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12744
12745         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
12746
12747 2005-02-04  Jackson Harper  <jackson@ximian.com>
12748
12749         * ThemeWin32Classic.cs: Respect the clipping rect when
12750         drawing. Only fill the intersection of clips and rects so there
12751         isn't a lot of large fills.
12752         * ScrollBar.cs: Pass the correct clipping rect to the theme
12753         engine. Remove some debug code.
12754
12755 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
12756         
12757         * DateTimePicker.cs:
12758                 - Fixed crash on DateTime.Parse, use Constructor instead
12759
12760 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12761         
12762         * MenuItem.cs:
12763         * MenuAPI.cs:
12764                 - Owner draw support (MeasureItem and DrawItem)
12765
12766 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12767         
12768         *  Menu.cs:
12769                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12770                 - Fixes MenuItems.Add range
12771         * MenuItem.cs:
12772                 - MergeMenu and Clone and CloneMenu functions
12773
12774 2005-02-03  Jackson Harper  <jackson@ximian.com>
12775
12776         * ScrollBar.cs: Make abstract
12777         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12778         is abstract.
12779
12780 2005-02-03  Jackson Harper  <jackson@ximian.com>
12781
12782         * ScrollBar.cs: First part of my scrollbar fixups. This removes
12783         all the unneeded refreshes and uses invalidates with properly
12784         computed rects.
12785
12786 2005-02-03  Peter Bartok  <pbartok@novell.com>
12787
12788         * ComponentModel.cs: Added
12789         * IDataGridEditingService.cs: Added
12790         * Timer.cs: Added missing attributes
12791         * ToolTip.cs: Added missing attributes
12792
12793 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12794
12795         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12796
12797 2005-02-03  Peter Bartok  <pbartok@novell.com>
12798
12799         * ListBox.cs: Added missing attributes
12800
12801 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
12802         
12803         * ListBox.cs:
12804                 - Fixes font height after font change
12805                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12806                 
12807 2005-02-02  Peter Bartok  <pbartok@novell.com>
12808
12809         * HandleData.cs: Introduced static methods to allow class
12810           to be more self-contained and track it's own HandleData objects
12811         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12812           HandleData to use new static methods
12813
12814 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
12815
12816         * Combobox.cs:
12817                 - Fixes default size and PreferredHeight
12818                 - Missing events
12819                 - ObjectCollection.Insert implementation
12820                 
12821         * ListControl.cs
12822                 - Fixes signature
12823         * ListBox.cs:
12824                 - Several fixes
12825                 - ObjectCollection.Insert implementation
12826                 - No selection after clean
12827                 - Small fixes
12828
12829 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12830
12831         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12832
12833 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
12834
12835         * Combobox.cs:
12836                 - Caches ItemHeight calculation for OwnerDrawVariable
12837                 - Handles dropdown properly
12838                 - Fixes several minor bugs
12839
12840 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12841
12842         * ListBox.cs:
12843                 - Fixes 71946 and 71950
12844                 - Fixes changing Multicolumn on the fly
12845                 - Fixes keyboard navigation on Multicolumn listboxes
12846
12847 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12848         
12849         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12850         crash reporter log.
12851
12852 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12853
12854         * XplatUIOSX.cs: Allow applications to actually exit.
12855
12856 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12857
12858         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
12859         their parent at creation time rather than lazily later.  Fixes a major
12860         regression we were experiencing.
12861
12862 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12863
12864         * ThemeWin32Classic.cs: more date time picker painting fixes
12865         * DateTimePicker.cs: more monthcalendar drop down fixes
12866         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12867
12868 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12869
12870         * ScrollBar.cs:
12871                 - When moving the thumb going outside the control should stop the moving
12872                 - Adds the firing of missing events
12873                 - Fixes no button show if Size is not specified
12874                 - End / Home keys for keyboard navigation
12875
12876 2005-01-30  Peter Bartok  <pbartok@novell.com>
12877
12878         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12879           sanity check to prevent theoretical loop
12880         * XplatUIWin32.cs (SetVisible): Removed debug output
12881         * XplatUIX11.cs (SystrayChange): Added sanity check
12882         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12883         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12884           behaviour, valid until the X11 client window rewrite is done
12885         * TextBox.cs (ctor): Setting proper default foreground and background
12886           colors
12887
12888 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
12889
12890         * Theme: Added DrawDateTimePicker to interface
12891         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12892         * DateTimePicker.cs: Created (still needs keys and painting code)
12893         * DateTimePickerFormat.cs: added
12894         * MonthCalendar.cs: fixed CreateParams for popup window mode
12895           
12896 2005-01-29  Peter Bartok  <pbartok@novell.com>
12897
12898         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12899           this should also the calculations for ligher/darker
12900         * Theme.cs: Fixed defaults for ScrollBar widths/heights
12901
12902 2005-01-29  Peter Bartok  <pbartok@novell.com>
12903
12904         * ArrangeDirection.cs: Added
12905         * ArrangeStartingPositon.cs: Added
12906         * SystemInformation.cs: Implemented
12907         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12908           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12909           used by SystemInformation class
12910         * X11Strucs.cs: Added XSizeHints structure
12911         * MenuAPI.cs:
12912           - Fixed CreateParams to make sure the menu window is always visible
12913           - TrackPopupMenu: Added check to make sure we don't draw the
12914             menu offscreen
12915
12916 2005-01-29  Peter Bartok  <pbartok@novell.com>
12917
12918         * HandleData.cs: Added method for altering invalid area
12919         * TextBoxBase.cs: Implemented TextLength
12920
12921 2005-01-28  Peter Bartok  <pbartok@novell.com>
12922
12923         * XplatUIX11.cs: Improvement over last patch, not sending
12924           the WM_PAINT directly anymore, instead we scroll any pending
12925           exposed areas and let the system pick out the WM_PAINT later
12926
12927 2005-01-28  Peter Bartok  <pbartok@novell.com>
12928
12929         * SWF.csproj: Deleted, no longer used. Instead,
12930           Managed.Windows.Forms/SWF.csproj should be used
12931         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12932           directly, to avoid a potential race condition with the next
12933           scroll
12934
12935 2005-01-28  Peter Bartok  <pbartok@novell.com>
12936
12937         * XplatUI.cs: Made class internal
12938
12939 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
12940
12941         * CheckedListBox.cs:
12942                 - Draw focus
12943                 - Fixed Drawing
12944                 - Missing methods and events
12945
12946 2005-01-27  Peter Bartok  <pbartok@novell.com>
12947
12948         * Application.cs (Run): Don't use form if we don't have one
12949
12950 2005-01-27  Peter Bartok  <pbartok@novell.com>
12951
12952         * TextBoxBase.cs (get_Lines): Fixed index off by one error
12953
12954 2005-01-27  Peter Bartok  <pbartok@novell.com>
12955
12956         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12957         * GridItem.cs: Added; Patch by Jonathan S. Chambers
12958         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12959         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12960         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12961         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12962         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12963         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12964         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12965         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12966         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12967         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12968
12969 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12970
12971         * Combobox.cs:
12972                 - Draw focus on Simple Combobox
12973                 - Fixes drawing issues
12974                 - fixes 71834
12975
12976 2005-01-27  Peter Bartok  <pbartok@novell.com>
12977
12978         * Form.cs:
12979           - Place window in default location, instead of hardcoded 0/0
12980           - Send initial LocationChanged event
12981         * Control.cs:
12982           - UpdateBounds after creation to find out where the WM placed us
12983           - Make sure that if the ParentForm changes location the Form
12984             is notified
12985         * XplatUIX11.cs: XGetGeometry will not return the coords relative
12986             to the root, but to whatever the WM placed around us.
12987             Translate to root coordinates before returning toplevel
12988             coordinates
12989         * XplatUIWin32.cs: Removed debug output
12990         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12991           flag to GetWindowPos, to allow translation of coordinates on X11
12992
12993 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12994
12995         * ListBox.cs: connect LostFocus Event
12996
12997 2005-01-27  Peter Bartok  <pbartok@novell.com>
12998
12999         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13000           XplatUIX11.cs: Extended the Systray API
13001         * Form.cs: Removed debug output
13002         * Application.cs: Fixed focus assignment, always need to call
13003           XplatUI.Activate() since Form.Activate() has rules that may
13004           prevent activation
13005         * NotifyIcon.cs: Should be complete now
13006         * ToolTip.cs: Worked around possible timer bug
13007
13008 2005-01-27  Jackson Harper  <jackson@ximian.com>
13009
13010         * TabControl.cs:
13011         - Only invalidate the effected tabs when the
13012         selected index changes. This reduces drawing and gets rid of some
13013         flicker.
13014         - Only refresh if the tabs need to be shifted, otherwise only
13015         invalidate the slider button.
13016         - On windows the tabs are not filled to right if the slider is
13017         visible.
13018         
13019 2005-01-27  Jackson Harper  <jackson@ximian.com>
13020
13021         * TabControl.cs: Only refresh on mouseup if we are showing the
13022         slider. Also only invalidate the button whose state has changed.
13023
13024 2005-01-26  Peter Bartok  <pbartok@novell.com>
13025
13026         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
13027         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
13028           and SystrayRemove() methods
13029         * XplatUIOSX.cs: Stubbed Systray methods
13030         * XplatUIX11.cs:
13031           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
13032             methods
13033           - Fixed broken XChangeProperty calls (marshalling messed up things)
13034         * X11Structs.cs: Added enums and structs required for Size hinting
13035         * NotifyIcon.cs: Added & implemented
13036
13037 2005-01-26  Jackson Harper  <jackson@ximian.com>
13038
13039         * TabControl.cs: Space vertically layed out tabs properly.
13040
13041 2005-01-26  Peter Bartok  <pbartok@novell.com>
13042
13043         * Form.cs (CreateClientParams): Always set the location to 0,0
13044           since we're a child window.
13045
13046         * Control.cs (SetVisibleCore): Always explicitly setting the location
13047           of a toplevel window, apparently X11 doesn't like to move windows
13048           while they're not mapped.
13049
13050 2005-01-26  Jackson Harper  <jackson@ximian.com>
13051
13052         * TabControl.cs: Implement FillToRight size mode with vertically
13053         rendered tabs.
13054
13055 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13056
13057         * ControlPaint.cs, ThemeWin32Classic.cs
13058                 - Fixes DrawFocusRectangle
13059
13060 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13061
13062         * MenuAPI.cs:
13063                 - MenuBar tracking only starts when item is first clicked
13064                 - Fixes menu hidding for multiple subitems
13065                 - Unselect item in MenuBar when item Executed
13066                 - Fixes bug 71495
13067
13068 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
13069
13070         * ListControl.cs:
13071                 - IsInputKey for ListBox
13072         * ListBox.cs:
13073                 - Focus item
13074                 - Shift and Control item selection
13075                 - Implement SelectionMode.MultiExtended
13076                 - Fixes RightToLeft
13077         * ComboBox.cs:
13078                 - IsInputKey implemented
13079                 - Do not generate OnTextChangedEdit on internal txt changes
13080                 
13081 2005-01-23  Peter Bartok  <pbartok@novell.com>
13082
13083         * AccessibleObject.cs: Partially implemented Select()
13084         * MonthCalendar.cs: Added missing attributes and events
13085         * Form.cs: Fixed CreateParams behaviour, now controls derived from
13086           form can properly override CreateParams.
13087         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13088           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
13089           Control performs Invalidate & Update
13090         * NativeWindow (CreateHandle): Added special handling for Form
13091           and Form.FormParent classes to allow overriding of From.CreateParams
13092         * Control.cs:
13093           - ControlNativeWindow: Renamed 'control' variable to more intuitive
13094             name 'owner'
13095           - ControlNativeWindow: Added Owner property
13096           - Removed usage of Refresh() on property changes, changed into
13097             Invalidate(), we need to wait until the queue is processed for
13098             updates, direct calls might cause problems if not all vars for
13099             Paint are initialized
13100           - Added call to UpdateStyles() when creating the window, to set any
13101             styles that CreateWindow might have ignored.
13102           - Added support for Form CreateParent overrides to UpdateStyles()
13103         * MessageBox.cs: Removed no longer needed FormParent override stuff,
13104           CreateParams are now properly overridable
13105         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
13106           CreateParams are now properly overridable
13107
13108 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
13109
13110         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
13111         OnTextBoxChanged.
13112
13113         Capture LostFocus and OnTextBoxChanged.  The later introduces a
13114         recursive invocation that I have not figured out yet.
13115
13116         Reset the timer when not using (it was accumulating).
13117
13118
13119         (OnTextBoxChanged): Set UserEdit to true here to track whether the
13120         user has made changes that require validation.
13121
13122         Reset changing to avoid loops.
13123
13124 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
13125
13126         * NumericUpDown.cs: Display value at startup.
13127
13128         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
13129         ValidateEditText.
13130
13131         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
13132         filled in.  Added some basic parsing of text.
13133
13134         Still missing the OnXXX method overrides, and figuring out the
13135         events that must be emitted.
13136
13137         * UpDownBase.cs: Handle UserEdit on the Text property.
13138         
13139 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
13140
13141         * ComboBox.cs:
13142           - Fixes IntegralHeight
13143           - ToString method
13144
13145 2005-01-21  Jackson Harper  <jackson@ximian.com>
13146
13147         * TabControl.cs: Set the SelectedIndex property when SelectedTab
13148         is set so that the page visibility is updated and the tabs are
13149         sized correctly.
13150
13151 2005-01-21  Jackson Harper  <jackson@ximian.com>
13152
13153         * TabControl.cs: Use cliping rectangle for blitting. Give the
13154         theme the clipping rect so we can do clipping while
13155         drawing. Remove some debug code.
13156
13157 2005-01-21  Jackson Harper  <jackson@ximian.com>
13158
13159         * TabPage.cs: Add a new method so tab pages can force the tab
13160         control to recalculate the tab page sizes.
13161         * TabControl.cs: UpdateOwner needs to make the tab control recalc
13162         sizes.
13163
13164 2005-01-20  Jackson Harper  <jackson@ximian.com>
13165
13166         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
13167
13168 2005-01-20  Jackson Harper  <jackson@ximian.com>
13169
13170         * TreeView.cs: Set the bounds for nodes properly. They were
13171         getting screwed up when checkboxes were not enabled, but images
13172         were.
13173
13174 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
13175
13176         * ListBox.cs:
13177                 - Owner draw support
13178                 - Fixes
13179                 
13180 2005-01-20  Jackson Harper  <jackson@ximian.com>
13181
13182         * XplatUIStructs.cs: More misc keys
13183         * X11Keyboard.cs: Ignore some control keys.
13184
13185 2005-01-20  Jackson Harper  <jackson@ximian.com>
13186
13187         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
13188         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
13189
13190 2005-01-19  Peter Bartok  <pbartok@novell.com>
13191
13192         * Control.cs: Un-selecting the control when it is loosing focus
13193
13194 2005-01-19  Jackson Harper  <jackson@ximian.com>
13195
13196         * TreeView.cs: Hook up to the text controls leave event so we can
13197         end editing when the users clicks outside the text box.
13198         
13199 2005-01-19  Jackson Harper  <jackson@ximian.com>
13200
13201         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
13202         get set in the conversion array.
13203
13204 2005-01-19  Peter Bartok  <pbartok@novell.com>
13205
13206         * Application.cs (ModalRun): Added a call to CreateControl to ensure
13207           focus is properly set
13208         * Button.cs:
13209           - Added missing attributes
13210           - removed styles, those are already set in the base class
13211         * ButtonBase.cs:
13212           - Added missing attributes
13213           - Added clip window styles
13214         * CheckBox.cs: Added missing attributes
13215         * CommonDialog.cs:
13216           - FormParentWindow.CreateParams: Added required clip styles
13217         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
13218           also filters modifier keys
13219         * MessageBox.cs:
13220           - Added assignment of Accept and Cancel button to enable Enter
13221             and Esc keys in MessageBox dialogs
13222           - FormParentWindow.CreateParams: Added required clip styles
13223         * RadioButton.cs: Added missing attributes
13224         * TextControl.cs: No longer draws selection if control does not
13225           have focus
13226         * TextBoxBase.cs:
13227           - Now draws simple rectangle around test area to make it obvious
13228             there's a control. This is a hack until we properly support borders
13229           - A few simple fixes to support selections better, now erases selected
13230             text when typing, and resets selection when using movement keys
13231
13232 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
13233
13234         * UpDownBase.cs: Added some new properties.
13235
13236         * DomainUpDown.cs: Implement a lot to get my test working.
13237
13238 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13239
13240         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13241
13242 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13243
13244         * OSXStructs (WindowAttributes): Fixed csc complaints
13245
13246 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13247
13248         * XplayUIOSX.cs:
13249           OSXStructs.cs: Initial refactor to move enums and consts into
13250           OSXStructs and use them in the driver for greater readability.
13251
13252 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13253
13254         * XplatUIOSX.cs: Initial support for Standard Cursors.
13255         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13256
13257 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
13258
13259         * ComboBox.cs: ability to change style when the ctrl is already
13260         created, missing methods and events, bug fixes, signature fixes
13261
13262 2005-01-19  Peter Bartok  <pbartok@novell.com>
13263
13264         * Cursors.cs (ctor): Added ctor to fix signature
13265
13266 2005-01-18  Peter Bartok  <pbartok@novell.com>
13267
13268         * Button.cs: Implemented DoubleClick event
13269         * ButtonBase.cs:
13270           - Fixed keyboard handling to behave like MS, where the press of
13271             Spacebar is equivalent to a mousedown, and the key release is
13272             equivalent to mouseup. Now a spacebar push will give the same
13273             visual feedback like a mouse click.
13274           - Added missing attributes
13275           - Added ImeModeChanged event
13276           - Added support for generating DoubleClick event for derived classes
13277         * CheckBox.cs:
13278           - Implemented DoubleClick event
13279           - Added missing attributes
13280         * CommonDialog.cs: Added missing attribute
13281         * ContextMenu.cs: Added missing attributes
13282         * RadioButton.cs:
13283           - AutoChecked buttons do not allow to be unselected when clicked
13284             (otherwise we might end up with no selected buttons in a group)
13285           - Added missing attributes
13286           - Implemented DoubleClickEvent
13287         * ThreadExceptionDialog.cs: Enabled TextBox code
13288
13289 2005-01-18  Peter Bartok  <pbartok@novell.com>
13290
13291         * Form.cs: Removed debug output
13292         * Button.cs: Added support for DoubleClick method
13293
13294 2005-01-18  Peter Bartok  <pbartok@novell.com>
13295
13296         * Form.cs:
13297           - Added method to parent window that allows triggering size
13298             calculations when a menu is added/removed
13299           - set_Menu: Cleaned up mess from early days of Form and Control,
13300             now properly triggers a recalc when a menu is added/removed
13301           - Added case to select form itself as focused form if no child
13302             controls exist
13303           - Added PerformLayout call when showing dialog, to ensure properly
13304             placed controls
13305         * Control.cs:
13306           - Select(): Made internal so Form can access it
13307           - Focus(): Only call Xplat layer if required (avoids loop), and sets
13308             status
13309         * Application.cs (Run): Removed hack and calls PerformLayout instead
13310           to trigger calculation when Form becomes visible
13311
13312 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
13313
13314         * ComboBox.cs: fixes for ownerdraw
13315
13316 2005-01-18  Peter Bartok  <pbartok@novell.com>
13317
13318         * TextControl.cs:
13319           - Sentinel is no longer static, each Document gets it's own, this
13320             avoids locking or alternatively overwrite problems when more
13321             than one text control is used simultaneously.
13322           - Switched to use Hilight and HilightText brushes for text selection
13323
13324         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
13325
13326 2005-01-18  Peter Bartok  <pbartok@novell.com>
13327
13328         * Control.cs:
13329           - Hooked up the following events:
13330                 o ControlAdded
13331                 o ControlRemoved
13332                 o HandleDestroyed
13333                 o ImeModeChanged
13334                 o ParentChanged
13335                 o TabStopChanged
13336                 o Invalidated
13337                 o SystemColorsChanged
13338                 o ParentFontChanged
13339                 o Move
13340           - Removed debug output
13341           - Added a call to the current theme's ResetDefaults when a color change
13342             is detected
13343         * Form.cs: Now setting the proper ImeMode
13344         * Theme.cs: Defined a method to force recreation of cached resources
13345           and rereading of system defaults (ResetDefaults())
13346         * ThemeWin32Classic.cs: Added ResetDefaults() stub
13347
13348 2005-01-17  Peter Bartok  <pbartok@novell.com>
13349
13350         * Control.cs: Added missing attributes
13351
13352 2005-01-17  Jackson Harper  <jackson@ximian.com>
13353
13354         * TreeNode.cs: Implement editing. Add missing properties selected
13355         and visible.
13356         * TreeView.cs: Implement node editing. Also some fixes to use
13357         Invalidate (invalid area) instead of Refresh when selecting.
13358
13359 2005-01-17  Peter Bartok  <pbartok@novell.com>
13360
13361         * Control.cs:
13362           - Implemented InvokeGotFocus() method
13363           - Implemented InvokeLostFocus() method
13364           - Implemented InvokePaint() method
13365           - Implemented InvokePaintBackground() method
13366           - Implemented InvokeClick() method
13367           - Implemented FindForm() method
13368           - Implemented RectangleToClient() method
13369           - Implemented ClientToRectangle() method
13370           - Implemented ResetBackColor() method
13371           - Implemented ResetCursor() method
13372           - Implemented ResetFont() method
13373           - Implemented ResteForeColor() method
13374           - Implemented ResetImeMode() method
13375           - Implemented ResetLeftToRight() method
13376           - Implemented ResetText() method
13377           - Implemented Scale() methods
13378           - Implemented ScaleCore() method
13379           - Implemented Update() method
13380           - Removed unused variables
13381           - Stubbed AccessibilityNotifyClients and
13382             ControlAccessibleObject.NotifyClients() methods (dunno what to do
13383             with those yet)
13384           - Now setting proper default for RightToLeft property
13385           - Fixed bug in SetClientSizeCore that would cause windows to get
13386             really big
13387           - Now sending Click/DoubleClick events
13388           - Now selecting controls when left mouse button is clicked on
13389             selectable control
13390         * AccessibleEvents.cs: Added
13391         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
13392         * XplatUIOSX.cs: Stubbed UpdateWindow() method
13393         * XplatUIWin32.cs: Implemented UpdateWindow() method
13394         * XplatUIX11.cs: Implemented UpdateWindow() method
13395         * Form.cs: Removed stray semicolon causing CS0162 warning
13396         * ThemeWin32Classic.cs: Fixed unused variable warnings
13397         * ScrollableControl.cs: Now calls base method for ScaleCore
13398         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
13399           style to avoid interference with internal click handler (which is
13400           different than standard Control click handling)
13401         * RadioButton.cs:
13402           - Now unchecks all sibling radio buttons when control is
13403             selected (Fixes #68756)
13404           - Removed internal tabstop variable, using the one inherited from
13405             Control
13406
13407 2005-01-17  Jackson Harper  <jackson@ximian.com>
13408
13409         * NavigateEventArgs.cs: Fix base type.
13410         * LinkLabel.cs: Sig fix
13411         
13412 2005-01-17  Jackson Harper  <jackson@ximian.com>
13413
13414         * TreeView.cs: Only invalidate the effected nodes bounds when
13415         selecting nodes.
13416
13417 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13418
13419         * XplatUIWin32.cs: fixes Win32 marshaling
13420         * XplatUIX11.cs: fixes method signature
13421
13422 2005-01-17  Peter Bartok  <pbartok@novell.com>
13423
13424         * XplatUIX11.cs: Clean up resources when we no longer need them
13425
13426 2005-01-17  Peter Bartok  <pbartok@novell.com>
13427
13428         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
13429           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
13430           and DestroyCursor() methods.
13431         * Cursor.cs: Partially implemented, now supports standard cursors;
13432           still contains some debug code
13433         * Cursors.cs: Implemented class
13434         * Control.cs:
13435           - WndProc(): Added handling of WM_SETCURSOR message, setting the
13436             appropriate cursor
13437           - Implemented Cursor property
13438           - Replaced break; with return; more straightforwar and possibly
13439             faster
13440           - Now properly setting the result for WM_HELP
13441         * X11Structs.cs: Added CursorFontShape enum
13442         * XplatUIStructs.cs:
13443           - Added StdCursor enum (to support DefineStdCursor() method)
13444           - Added HitTest enum (to support sending WM_SETCURSOR message)
13445         * XplatUIX11.cs:
13446           - Now sends the WM_SETCURSOR message
13447           - Implemented new cursor methods
13448         * XplatUIOSX.cs: Stubbed new cursor methods
13449         * XplatUIWin32.cs:
13450           - Implemented new cursor methods
13451           - Added GetSystemMetrics function and associated enumeration
13452
13453 2005-01-15  Peter Bartok  <pbartok@novell.com>
13454
13455         * Control.cs:
13456           - WndProc(): Now handles EnableNotifyMessage
13457           - SelectNextControl(): Fixed bug where if no child or sibling
13458             controls exist we looped endlessly
13459
13460 2005-01-14  Jackson Harper  <jackson@ximian.com>
13461
13462         * TreeView.cs: Recalculate the tab pages when a new one is added
13463         so that the proper bounding rects are created.
13464
13465 2005-01-14  Jackson Harper  <jackson@ximian.com>
13466
13467         * TreeView.cs: Draw a gray box instead of a grip in the lower
13468         right hand corner when there are both horizontal and vertical
13469         scroll bars.
13470
13471 2005-01-14  Jackson Harper  <jackson@ximian.com>
13472
13473         * Control.cs: When erasing backgrounds use FromHwnd instead of
13474         FromHdc when there is a NULL wparam. This occurs on the X driver.
13475         * XplatUIX11.cs: Set the wparam to NULL.
13476
13477 2005-01-13  Jackson Harper  <jackson@ximian.com>
13478
13479         * PictureBox.cs: Implement missing methods (except ToString, need
13480         to test that on windows) and events. When visibility is changed we
13481         need to redraw the image because the buffers are killed. When size
13482         is changed refresh if the sizemode needs it.
13483
13484 2005-01-13  Peter Bartok  <pbartok@novell.com>
13485
13486         * Control.cs (SelectNextControl): Was using wrong method to select
13487           a control
13488
13489 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13490
13491         * ComboBox.cs: fixes dropstyle
13492
13493 2005-01-13  Peter Bartok  <pbartok@novell.com>
13494
13495         * Form.cs:
13496           - Implemented Select() override
13497           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13498           - Now sets keyboard focus on startup
13499         * Control.cs (SelectNextControl): Now properly handles directed=true
13500         * TextBoxBase.cs:
13501           - WndProc: Now passes tab key on to base if AcceptTabChar=false
13502           - Added (really bad) focus rectangle (mostly for testing)
13503         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13504           to enforce redraw on focus changes
13505         * ContainerControl.cs:
13506           - Fixed detection of Shift-Tab key presses
13507           - Fixed traversal with arrow keys
13508         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13509           gonna keep this or if it's complete yet
13510         
13511 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13512
13513         * ComboBox.cs: missing properties, fixes
13514
13515 2005-01-13  Peter Bartok  <pbartok@novell.com>
13516
13517         * Panel.cs (ctor): Setting Selectable window style to off
13518         * Splitter.cs (ctor): Setting Selectable window style to off
13519         * GroupBox.cs (ctor): Setting Selectable window style to off
13520         * Label.cs (ctor): Setting Selectable window style to off
13521
13522 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
13523
13524         * UpDownBase.cs (InitTimer): If the timer has been already
13525         created, enable it.
13526
13527         Use a TextBox instead of a Label.
13528
13529 2005-01-12  Jackson Harper  <jackson@ximian.com>
13530
13531         * TreeView.cs: Refresh the tree after sorting the nodes. Always
13532         draw the connecting node lines (when ShowLines is true).
13533         * TreeNode.cs: The nodes index can now be updated. This is used
13534         when a node collection is sorted.
13535         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13536         insert or an existing unsorted node collection can be sorted.
13537         
13538 2005-01-12  Peter Bartok  <pbartok@novell.com>
13539
13540         * ContainerControl.cs: Implemented ProcessDialogKeys()
13541
13542 2005-01-12  Peter Bartok  <pbartok@novell.com>
13543
13544         * Control.cs:
13545           - Implemented SelectNextControl() method
13546           - Several focus related bug fixes
13547           - Fixed Docking calculations to match MS documentation and
13548             behaviour
13549
13550 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
13551
13552         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13553         bug fixes
13554
13555 2005-01-12  Peter Bartok  <pbartok@novell.com>
13556
13557         * Control.cs:
13558           - Fixed broken Contains() method
13559           - Implemented GetNextControl() method. Finally. This is the pre-
13560             requisite for focus handling.
13561
13562 2005-01-12  Peter Bartok  <pbartok@novell.com>
13563
13564         * OSXStrucs.cs: Added
13565
13566 2005-01-12  Peter Bartok  <pbartok@novell.com>
13567
13568         * XplatUIWin32.cs:
13569           - Removed PeekMessageFlags
13570           - Implemented SetWindowStyle() method
13571         * XplatUIStructs.cs: Added PeekMessageFlags
13572         * X11Structs: Added missing border_width field to XWindowChanges struct
13573         * XplatUIX11.cs:
13574           - PeekMessage: Now throws exception if flags which are not yet
13575             supported are passed
13576           - Implemented SetWindowStyle() method
13577           - Fixed SetZOrder to handle AfterHwnd properly
13578         * XplatUI.cs: Added SetWindowStyle() method
13579         * XplatUIDriver.cs: Added SetWindowStyle() abstract
13580         * Control.cs:
13581           - Implemented UpdateStyles() method
13582           - Implemented UpdateZOrder() method
13583         * XplatUIOSX.cs: Added SetWindowStyle() stub
13584
13585 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
13586
13587         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
13588         button mouse).
13589
13590
13591 2005-01-11  Jackson Harper  <jackson@ximian.com>
13592
13593         * TreeView.cs: Still need to draw lines to siblings even if out of
13594         the current node is out of the clip.
13595
13596 2005-01-11  Jackson Harper  <jackson@ximian.com>
13597
13598         * TreeView.cs: When setting the hbar/vbar/grip position use
13599         SetBounds so that perform layout is only called once. Also suspend
13600         and resume layout so layout is only done once for all controls.
13601         - Removed some debug fluff
13602         * SizeGrip.cs: Call base implmentation in overriding methods.
13603         - When visibility is changed the drawing buffers are killed so we
13604         need to redraw.
13605
13606 2005-01-11  Jackson Harper  <jackson@ximian.com>
13607
13608         * TreeView.cs: Calculate the open node count while drawing. This
13609         saves us an entire tree traversal for every paint operation. Use
13610         a member var for the open node count so less vars are passed around.
13611
13612 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
13613
13614         * MonthCalendar.cs:
13615         - fixed selection to use mousemove, not mouse polling on timer
13616         * ThemeWin32Classic.cs
13617         - removed redundant unused variable "no_more_content"
13618         
13619 2005-01-11  Peter Bartok  <pbartok@novell.com>
13620
13621         * XplatUIX11.cs (DoEvents): Needs to return when no more events
13622           are pending, so it now calls PeekMessage instead of GetMessage;
13623           implemented a incomplete version of PeekMessage
13624         
13625 2005-01-11  Peter Bartok  <pbartok@novell.com>
13626
13627         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
13628           I18n issues
13629         * TextBoxBase.cs: Added sending of TextChanged event
13630
13631 2005-01-10  Jackson Harper  <jackson@ximian.com>
13632
13633         * TreeView.cs: Try not to draw outside the clipping rectangle on
13634         each node element.
13635
13636 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
13637
13638         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
13639
13640 2005-01-10  Jackson Harper  <jackson@ximian.com>
13641
13642         * TreeView.cs:
13643         - Implement fast scrolling. Now only the newly
13644         exposed nodes are drawn and the old image is moved using the
13645         XplatUI::ScrollWindow method.
13646         - Factor in height of nodes when calculating whether or not the
13647         node is in the clipping rect.
13648
13649 2005-01-10  Jackson Harper  <jackson@ximian.com>
13650
13651         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
13652
13653 2005-01-10  Peter Bartok  <pbartok@novell.com>
13654
13655         * Application.cs: Added temporary hack to resolve all our resize
13656           required issues on startup. This will get fixed properly at
13657           some point in the future
13658
13659 2005-01-10  Jackson Harper  <jackson@ximian.com>
13660
13661         * SizeGrip.cs: New internal class that is used as a sizing
13662         grip control...hence the name.
13663
13664 2005-01-10  Peter Bartok  <pbartok@novell.com>
13665
13666         * Control.cs: Implemented proper TabIndex handling, now assigning
13667           a tabindex when a control is added to a container
13668         * GroupBox.cs (ctor): Now sets the Container style bit, required
13669           for Control.GetNextControl()
13670
13671 2005-01-09  Jackson Harper  <jackson@ximian.com>
13672
13673         * TextBoxBase.cs: Clear window when scrolling (fixes build).
13674
13675 2005-01-09  Peter Bartok <pbartok@novell.com>
13676
13677         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13678           XplatUIX11.cs: Added ability to control ScrollWindow expose and
13679           an overload for ScrollWindow to allow only scrolling a rectangle
13680
13681 2005-01-09  Peter Bartok <pbartok@novell.com>
13682
13683         * Form.cs:
13684           - Implemented SetDesktopBounds method
13685           - Implemented SetDesktopLocation method
13686
13687 2005-01-08  Jackson Harper  <jackson@ximian.com>
13688
13689         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
13690         the node count has changed, this removes to VScroll::Refresh calls
13691         when drawing.
13692
13693 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
13694
13695         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
13696
13697 2005-01-07  Jackson Harper  <jackson@ximian.com>
13698
13699         * TreeNode.cs: Just update the single node when it is
13700         checked. Don't refresh after toggling, the Expand/Collapse already
13701         handles this.
13702         * TreeView.cs: Respect clipping a little more when drawing. Try
13703         not to redraw things that don't need to be redrawn. Just hide the
13704         scrollbars when they are no longer needed instead of removing
13705         them, so they don't have to be created again and again.
13706         
13707 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
13708
13709         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
13710         coordinates to window space to place the caret properly, FIXED.
13711         Implement GetWindowState & SetWindowState
13712
13713 2005-01-06  Peter Bartok <pbartok@novell.com>
13714
13715         * Form.cs:
13716           - Implemented ClientSize property
13717           - Implemented DesktopBounds property
13718           - Implemented DesktopLocation property
13719           - Implemented IsRestrictedWindow property
13720           - Implemented Size property
13721           - Implemented TopLevel property
13722           - Implemented FormWindowState property
13723         * Control.cs:
13724           - Implemented GetTopLevel() method
13725           - Implemented SetTopLevel() method
13726         * X11Structs.cs (Atom):
13727           - Added AnyPropertyType definition
13728           - Added MapState definiton and updated XWindowAttribute struct
13729         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
13730         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
13731         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
13732         * XplatUIWin32.cs:
13733           - Implemented GetWindowState() and SetWindowState() methods
13734           - Fixed Win32GetWindowLong return type
13735         * XplatUIX11.cs:
13736           - Introduced central function for sending NET_WM messages
13737           - Implemented GetWindowState() and SetWindowState() methods
13738         * TextBoxBase.cs (set_Lines):
13739           - Now uses Foreground color for text added via Text property (Duh!)
13740           - Added code to remember programmatically requested size (fixes
13741             behaviour when Multiline is set after Size)
13742           - Added AutoSize logic
13743
13744 2005-01-06  Jackson Harper  <jackson@ximian.com>
13745
13746         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
13747
13748 2005-01-06  Jackson Harper  <jackson@ximian.com>
13749
13750         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
13751         set to less then 0.
13752
13753 2005-01-06  Jackson Harper  <jackson@ximian.com>
13754
13755         * ScrollableControl.cs: Lazy init the scrollbars.
13756         
13757 2005-01-06  Jackson Harper  <jackson@ximian.com>
13758
13759         * Theme.cs: Speed up getting pens and solid brushes, by using
13760         their ARGB as a hash instead of tostring and not calling Contains.
13761
13762 2005-01-06  Peter Bartok <pbartok@novell.com>
13763
13764         * Form.cs:
13765           - Implemented OnActivated and OnDeactivate event trigger
13766           - Implemented Activate() method
13767           - Fixed ShowDialog() to activate the form that was active before
13768             the dialog was shown
13769         * XplatUIX11.cs:
13770           - Added global active_window var that tracks the currently active
13771             X11 window
13772           - Now always grabs Property changes from the root window to always
13773             catch changes on the active window property
13774           - Added code to PropertyNotify handler to send Active/Inactive
13775             messages when state changes. This puts X11 and Win32 en par on
13776             WM_ACTIVATE notifications (except for double notifications when
13777             the user clicks away from our modal window to another one of our
13778             windows)
13779
13780 2005-01-05  Jackson Harper  <jackson@ximian.com>
13781
13782         * ImageList.cs: Implment ctor
13783
13784 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13785
13786         * XplatUIOSX.cs: Implement Activate/SetTopmost
13787
13788 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13789
13790         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13791
13792 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13793
13794         * XplatUIOSX.cs: Implement GetActive/SetFocus.
13795
13796 2005-01-05  Peter Bartok <pbartok@novell.com>
13797
13798         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13799           XplatUIOSX.cs: Added GetActive method to return the currently
13800           active window for the application (or null, if none is active)
13801         * Form.cs:
13802           - Implemented ActiveForm
13803           - Commented out owner assignment for modal dialogs (causes problems
13804             on Win32, since the owner will be disabled)
13805           - Reworked some Active/Focus handling (still incomplete)
13806         * CommonDialog.cs: Commented out owner assignment for modal dialogs
13807           (causes problems on Win32, since the owner will be disabled)
13808         * IWin32Window: Added ComVisible attribute
13809
13810 2005-01-05  Peter Bartok <pbartok@novell.com>
13811
13812         * ToolTip.cs (WndProc): Enable setting focus now that we have the
13813           required XplatUI functions.
13814
13815 2005-01-05  Peter Bartok <pbartok@novell.com>
13816
13817         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13818           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13819           to implement focus and activation handling; still incomplete and
13820           with debug output
13821
13822 2005-01-04  Peter Bartok <pbartok@novell.com>
13823
13824         * TextBoxBase.cs: Changed access level for Document property to
13825           match switch to internal for TextControl
13826
13827 2005-01-04  Peter Bartok <pbartok@novell.com>
13828
13829         * AccessibleObject: Added ComVisible attribute
13830
13831 2005-01-04  Jackson Harper  <jackson@ximian.com>
13832
13833         * X11Keyboard.cs: Remove unneeded var.
13834
13835 2005-01-04  Jackson Harper  <jackson@ximian.com>
13836
13837         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13838         but PAINT.
13839         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13840         ClientMessage. This makes apps exit cleanly (more often).
13841         
13842 2005-01-04  Jackson Harper  <jackson@ximian.com>
13843
13844         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13845         handling focus, return correct colors and fonts,
13846         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13847         handle selection, horizontal scrolling, and mouse interaction.
13848
13849 2005-01-04  Peter Bartok <pbartok@novell.com>
13850
13851         * ICommandExecutor.cs: Added
13852         * IDataGridColumnStyleEditingNotificationService.cs: Added
13853         * IFeatureSupport.cs: Added
13854         * IFileReaderService.cs: Added
13855         * IDataObject.cs: Added ComVisible attribute
13856         * AmbientProperties.cs: Added
13857         * BaseCollection.cs: Added missing attributes
13858         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13859         * BaseCollection.cs: Added missing attributes
13860         * Binding.cs: Added TypeConverter attribute
13861         * BindingContext.cs: Added DefaultEvent attribute
13862         * BindingsCollection.cs: Added DefaultEvent attribute
13863         * Button.cs: Added DefaultValue attribute
13864         * DragEventArgs.cs: Added ComVisible attribute
13865         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13866         * KeyEventArgs.cs: Added ComVisible attribute
13867         * KeyPressEventArgs.cs: Added ComVisible attribute
13868         * MouseEventArgs.cs: Added ComVisible attribute
13869         * NavigateEventArgs.cs: Added
13870         * NavigateEventHandler.cs: Added
13871         * FeatureSupport.cs: Added
13872         * OSFeature.cs: Added
13873         * Theme.cs: Added abstract Version property to support OSFeature
13874         * ThemeWin32Classic.cs: Added Version property to
13875           support OSFeature.Themes
13876         * ProgressBar.cs: Removed OnPaintBackground override, not required since
13877           the proper styles to avoid background drawing are set, also doesn't
13878           match MS signature
13879         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13880         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13881         * ScrollEventArgs.cs: Added ComVisible attribute
13882         * SplitterEventArgs.cs: Added ComVisible attribute
13883         * AccessibleSelection.cs: Added Flags attribute
13884         * Appearance.cs: Added ComVisible attribute
13885         * Border3DSide.cs: Added ComVisible attribute
13886         * Border3DStyle.cs: Added ComVisible attribute
13887         * BorderStyle.cs: Added ComVisible attribute
13888         * DragAction.cs: Added ComVisible attribute
13889         * ErrorBlinkStyle.cs: Added
13890         * ScrollEventType.cs: Added ComVisible attribute
13891         * AnchorStyles.cs: Added Editor attribute
13892         * DockStyle.cs: Added Editor attribute
13893         * HorizontalAlignment.cs: Added ComVisible attribute
13894         * HelpEventArgs.cs: Added ComVisible attribute
13895         * PaintEventArgs.cs: Added IDisposable
13896
13897 2005-01-04  Peter Bartok <pbartok@novell.com>
13898
13899         * TextControl.cs: Switched Line, LineTag and Document classes to
13900           internal
13901
13902 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13903
13904         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13905         Simple mode, fixes, IntegralHeight, etc.
13906
13907 2005-01-04  Peter Bartok <pbartok@novell.com>
13908
13909         * TextBoxBase.cs: Using proper font variable now
13910
13911 2005-01-04  Peter Bartok <pbartok@novell.com>
13912
13913         * Form.cs (ShowDialog): Set parent to owner, if provided
13914         * GroupBox.cs: Removed unused vars
13915         * TextControl.cs:
13916           - Added GetHashCode() for Document and LineTag classes
13917           - Removed unused variables
13918           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13919             to allow translation between continuous char position and line/pos
13920         * CheckBox.cs: Removed vars that are provided by base class
13921         * RadioButton.cs: Removed vars that are provided by base class, added
13922           new keyword where required
13923         * LinkLabel.cs: Added new keyword where required
13924         * Control.cs (WndProc): Removed unused variable
13925         * TextBoxBase.cs:
13926           - Finished SelectionLength property
13927           - Implemented SelectionStart property
13928           - Implemented Text property
13929           - Removed unused vars
13930         * MessageBox.cs: Added new keyword where required
13931         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13932           WndProc signature
13933         * MenuAPI.cs: Added new keyword where required
13934         * ButtonBase.cs: Removed vars that are provided by base class, added
13935           new keyword where required
13936         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13937           argument to double, to allow compiling with csc 2.0 (Atsushi ran
13938           into this)
13939         * Application.cs (Run): Now triggers the ThreadExit event
13940         * CommonDialog.cs: Added new keyword where required; now properly sets
13941           parent (owner) for dialog
13942         * XplatUIX11.cs: Commented out unused vars
13943         * StatusBar.cs: Fixed signature for Text property
13944         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13945
13946 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13947
13948         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13949         TrackBar.cs, MonthCalendar.cs: remove unused vars
13950
13951 2005-01-03  Jackson Harper  <jackson@ximian.com>
13952
13953         * ThemeWin32Classic.cs:
13954         * X11Keyboard.cs: Remove unused vars.
13955
13956 2005-01-03  Peter Bartok  <pbartok@novell.com>
13957
13958         * TextBox.cs:
13959           - set_Text: Tied into TextControl
13960           - set_TextAlignment: Tied into TextControl
13961         * TextControl.cs:
13962           - Added alignment properties and implemented alignment handling
13963             and drawing (still has a bug, not generating proper expose events)
13964           - Added new Line() constructor to allow passing the line alignment
13965           - Fixed selection setting, properly handling end<start now
13966           - Added aligment considerations to RecalculateDocument()
13967         * TextBoxBase.cs:
13968           - Now properly enforces control height for single line controls
13969           - Added support for CharacterCasing
13970           - Added IsInputKey override
13971           - Fixed Keys.Enter logic
13972           - Added SetBoundsCore override
13973           - Fixed mouse selection handling
13974
13975 2005-01-03  Jackson Harper  <jackson@ximian.com>
13976
13977         * TreeView.cs:
13978           - Collapse and uncheck all nodes when CheckBoxes is disabled.
13979           - Checkboxes are always aligned to the bottom of the node,
13980           regardless of item height.
13981           - Use the node bounds to draw the text so we can center it when
13982           the item height is greater then the font height.
13983           - Node::Bounds are only the text part of the node.
13984         * TreeNode.cs: New method to combine collapsing and unchecking all
13985           nodes recursively.
13986
13987 2005-01-02  Jackson Harper  <jackson@ximian.com>
13988
13989         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13990         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13991         tree when a check is changed. TODO: Only refresh the checked node.
13992
13993 2004-12-30  Jackson Harper  <jackson@ximian.com>
13994
13995         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13996         * TreeNode.cs: When collapsing make sure to never collapse the
13997         root node.
13998
13999 2004-12-29  Jackson Harper  <jackson@ximian.com>
14000
14001         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
14002         
14003 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
14004
14005         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
14006
14007 2004-12-28  Peter Bartok  <pbartok@novell.com>
14008
14009         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
14010           not yet assigned
14011
14012 2004-12-28  Peter Bartok  <pbartok@novell.com>
14013
14014         * Control.cs (WndProc): Added WM_HELP handler, now generates
14015           HelpRequested event
14016         * Form.cs: Added HelpButton property and required support code
14017         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
14018
14019 2004-12-28  Peter Bartok  <pbartok@novell.com>
14020
14021         * CommonDialog.cs:
14022           - Made DialogForm.owner variable internal
14023           - Added check to ensure owner form is set before setting
14024             owner properties in CreateParams
14025
14026 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
14027
14028         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
14029           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
14030           GetCursorPos.  Fix major visibility issues.  Rework the windowing
14031           system to support borderless/titleless windows (implements menus).
14032           Fix GetWindowPos.  Implement initial background color support for
14033           views.
14034
14035 2004-12-28  Peter Bartok  <pbartok@novell.com>
14036
14037         * Form.cs (get_CreateParams): Make sure we have an owner before using
14038           the owner variable. Implement proper default if no owner exists
14039
14040 2004-12-28  Peter Bartok  <pbartok@novell.com>
14041
14042         * In preparation for making Managed.Windows.Forms the default build target
14043           for System.Windows.Forms, the following stubbed files were added.
14044           Dialogs are currently being implemented by contributors and are only
14045           short-term place holders.
14046         * ColorDialog.cs: Initial check-in (minmal stub)
14047         * DataGrid.cs: Initial check-in (minimal stub)
14048         * DataGridLineStyle.cs: Initial check-in (minimal stub)
14049         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
14050         * DataGridTableStyle.cs: Initial check-in (minimal stub)
14051         * FontDialog.cs: Initial check-in (minimal stub)
14052         * FileDialog.cs: Initial check-in (minimal stub)
14053         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
14054         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
14055         * OpenFileDialog: Initial check-in (minimal stub)
14056         * IComponentEditorPageSite.cs: Initial check-in
14057         * Splitter.cs: Initial check-in (for Jackson)
14058         * SplitterEventArgs.cs: Initial check-in (for Jackson)
14059         * SplitterEventHandler.cs: Initial check-in (for Jackson)
14060         * TextBox.cs: Initial check-in; still needs some wiring to
14061           TextControl backend
14062         * Form.cs: Implemented ControlBox property
14063         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
14064         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
14065         * TextControl.cs: Added selection functionality; added todo header
14066         * TextBoxBase.cs:
14067           - Implemented Lines property
14068           - Implemented TextHeight property
14069           - Implemented SelectedText property
14070           - Implemented SelectionLength property
14071           - Implemented SelectAll method
14072           - Implemented ToString method
14073           - Removed and cleaned up some debug code
14074           - Implemented (still buggy) mouse text selection
14075
14076 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
14077
14078         * ComboBox.cs: Complete DropDownList implementation, fixes.
14079
14080 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
14081
14082         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
14083         * ComboBoxStyle.cs: ComboBoxStyle enum
14084         * ComboBox.cs: Initial work on ComboBox control
14085
14086 2004-12-21  Peter Bartok  <pbartok@novell.com>
14087
14088         * Control.cs (ctor, CreateParams): Moved setting of is_visible
14089           forward so that anything that creates a window gets the default,
14090           also no longer uses Visible property in CreateParams to avoid
14091           walking up the parent chain and possibly get the wrong visible
14092           status. Fixed IsVisible to no longer walk up to the parent.
14093
14094 2004-12-21  Peter Bartok  <pbartok@novell.com>
14095
14096         * Form.cs (ShowDialog): Unset modality for the proper window
14097  
14098 2004-12-20  Peter Bartok  <pbartok@novell.com>
14099
14100         * CommonDialog.cs: Initial check-in
14101
14102 2004-12-20  Peter Bartok  <pbartok@novell.com>
14103
14104         * Control.cs (Visible): Now uses the parent window instead of the
14105           client area window for the property
14106
14107         * Form.cs
14108           - ShowDialog(): Now uses the proper window for modality
14109           - The default visibility state for the form parent is now false. This
14110             will prevent the user from seeing all the changes to the form and
14111             its controls before the application hits Application.Run()
14112           - Removed some stale commented out code
14113
14114         * NativeWindow.cs:
14115           - Added FindWindow() method to have a method to check for existence
14116             of a window handle
14117           - Added ability to override default exception handling (for example
14118             when debugging with VS.Net; to do this the ExternalExceptionHandler
14119             define must be set
14120           - Removed some useless debug output
14121
14122         * XplatUIX11.cs:
14123           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
14124             not working as expected
14125           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
14126             property to allow switching back to the modal window if focus is
14127             given to another one of our windows (Application Modal)
14128           - Now only sets override_redirect if we create a window
14129             without WS_CAPTION
14130           - Moved EventMask selection before mapping of newly created window
14131             so we can catch the map event as well
14132           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
14133           - Added various Atom related DllImports
14134           - Implemented Exit() method
14135           - .ctor() : No longer shows window if WS_VISIBLE is not defined
14136             in the CreateParams
14137
14138         * MessageBox.cs: Now properly deals with the FormParent window by
14139           providing an override the FormParent CreateParams property to
14140           set as POPUP instead of OVERLAPPED window.
14141
14142 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14143
14144         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
14145         Minor code cleanup.
14146
14147 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14148         
14149         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
14150
14151 2004-12-18  Peter Bartok  <pbartok@novell.com>
14152
14153         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
14154           implementing SetModal() method
14155
14156 2004-12-18  Peter Bartok  <pbartok@novell.com>
14157
14158         * X11Structs.cs (XGCValues): Fixed type of function element
14159         * XplatUI.cs: Added ScrollWindow() method
14160         * XplatUIDriver.cs: Added ScrollWindow() abstract
14161         * XplatUIWin32.cs: Implemented ScrollWindow() method
14162         * XplatUIX11.cs: Implemented ScrollWindow() method
14163         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
14164
14165 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14166
14167         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
14168         Some more keyboard support (INCOMPLETE)
14169
14170 2004-12-17  Peter Bartok  <pbartok@novell.com>
14171
14172         * TextControl.cs:
14173         - Added color attribute to line tags.
14174         - Added color argument to all functions dealing with tags
14175         - Added color argument support to various functions
14176         - Fixed miss-calculation of baseline/shift in certain circumstances
14177
14178         * TextBoxBase.cs: Added new color option to test code
14179
14180 2004-12-17  Jackson Harper  <jackson@ximian.com>
14181
14182         * TreeNode.cs:
14183         * MonthCalendar.cs: Signature fixes
14184
14185 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14186
14187         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
14188         keyboard event moved it.  Create a new graphics context for each paint resolves this
14189
14190 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14191
14192         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
14193         Make caret exist and go blink blink.  Initial keyboard support.
14194         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
14195         works.
14196
14197 2004-12-17  Jackson Harper  <jackson@ximian.com>
14198
14199         * XplatUIStructs.cs: Updated set of virtual keycodes.
14200         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
14201
14202 2004-12-17  Jackson Harper  <jackson@ximian.com>
14203
14204         * XplatUIX11.cs: Prune old keyboard code.
14205
14206 2004-12-17  Jackson Harper  <jackson@ximian.com>
14207
14208         * XplatUIX11.cs: When generating mouse wparams get the modifier
14209         keys from the ModifierKeys property.
14210
14211 2004-12-17  Jackson Harper  <jackson@ximian.com>
14212
14213         * X11Keyboard.cs: Send up/down input when generating
14214         messages. Remove some unused vars.
14215
14216 2004-12-17  Jackson Harper  <jackson@ximian.com>
14217
14218         * TabControl.cs:
14219         * TreeView.cs: get rid of warnings.
14220
14221 2004-12-17  Jackson Harper  <jackson@ximian.com>
14222
14223         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
14224
14225 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
14226
14227         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
14228           CheckedListBox.cs: Implementation
14229
14230 2004-12-17  Peter Bartok  <pbartok@novell.com>
14231
14232         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
14233
14234 2004-12-16  Peter Bartok  <pbartok@novell.com>
14235
14236         * TextControl.cs:
14237           - InsertCharAtCaret(): Fixed start pos fixup
14238           - CaretLine_get: No longer derives the line from the tag, the tag
14239             could be stale if lines in the document have been added or deleted
14240           - RebalanceAfterDelete(): Fixed bug in balancing code
14241           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14242           - Line.Streamline(): Now can also elminate leading empty tags
14243           - DumpTree(): Added a few more tests and prevented exception on
14244             uninitialized data
14245           - Added Debug section for Combining lines
14246           - Delete(): Now copies all remaining properties of a line
14247           
14248         * TextBoxBase.cs:
14249           - Left mousebutton now sets the caret (and middle button still acts
14250             as formatting tester, which must go away soon)
14251           - Added Debug section for Deleting/Combining lines
14252           - Fixed calculations for UpdateView after Combining lines
14253
14254 2004-12-16  Peter Bartok  <pbartok@novell.com>
14255
14256         * TextControl.cs: Now properly aligns text on a baseline, using the
14257           new XplatUI.GetFontMetrics() method. Simplified several calculations
14258         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14259           defined
14260
14261 2004-12-16  Peter Bartok  <pbartok@novell.com>
14262
14263         * XplatUI.cs: Added GetFontMetrics() method
14264         * XplatUIDriver.cs: Added GetFontMetrics() abstract
14265         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14266           into libgdiplus, our private GetFontMetrics function
14267         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14268         * XplatUIWin32.cs: Implemented GetFontMetrics() method
14269
14270 2004-12-16  Jackson Harper  <jackson@ximain.com>
14271
14272         * XplatUIStruct.cs: Add enum for dead keys
14273         * X11Keyboard.cs: Map and unmap dead keys.
14274
14275 2004-12-16  Jackson Harper  <jackson@ximian.com>
14276
14277         * X11Keyboard.cs: Detect and use the num lock mask.
14278
14279 2004-12-16  Peter Bartok  <pbartok@novell.com>
14280
14281         * Control.cs (CreateGraphics): Added check to make sure the
14282           handle of the window exists before calling Graphics.FromHwnd()
14283
14284 2004-12-16  Peter Bartok  <pbartok@novell.com>
14285
14286         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14287           contains a lot of code that's not supposed to be there for the
14288           real thing, but required for developing/testing the textbox
14289           backend.
14290
14291 2004-12-16  Peter Bartok  <pbartok@novell.com>
14292
14293         * TextControl.cs:
14294         - Fixed Streamline method
14295         - Added FindTag method to Line
14296         - Added DumpTree method for debugging
14297         - Added DecrementLines() method for deleting lines
14298         - Fixed UpdateView to update the cursor to end-of-line on single-line
14299           updates
14300         - Added PositionCaret() method
14301         - Fixed MoveCaret(LineDown) to move into the last line, too
14302         - Added InsertChar overload
14303         - Fixed InsertChar tag offset calculations
14304         - Added DeleteChar() method
14305         - Added Combine() method for folding lines
14306         - Fixed Delete() method, no longer allocates wasted Line object and
14307           now copies all properties when swapping nodes
14308         - Delete() method now updates document line counter
14309
14310 2004-12-15  Jackson Harper  <jackson@ximian.com>
14311
14312         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
14313         * X11Keyboard.cs: Expose the currently selected modifier keys
14314         through a property.
14315
14316 2004-12-15  Peter Bartok  <pbartok@novell.com>
14317
14318         * TextControl.cs: Initial check-in. Still incomplete
14319
14320 2004-12-15  Jackson Harper  <jackson@ximian.com>
14321
14322         * TreeNode.cs:
14323         * TreeView.cs: Fix build on csc (second time today ;-))
14324
14325 2004-12-15  Jackson Harper  <jackson@ximian.com>
14326
14327         * TreeView.cs: Store the treenodes plus/minus box bounds when it
14328         is calculated and use this for click testing.
14329         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
14330
14331 2004-12-15  Jackson Harper  <jackson@ximian.com>
14332
14333         * TreeView.cs: Pass the nodes image index to the image list when
14334         drawing that image.
14335
14336 2004-12-15  Jackson Harper  <jackson@ximian.com>
14337
14338         * X11Keyboard.cs: Set messages hwnd.
14339         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
14340         post_message calls.
14341
14342 2004-12-15  Jackson Harper  <jackson@ximian.com>
14343
14344         * X11Keyboard.cs: Fix to compile with csc.
14345         
14346 2004-12-15  Jackson Harper  <jackson@ximian.com>
14347
14348         * X11Structs.cs: Add key mask values
14349         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
14350         * X11Keyboard.cs: New file - Extrapolates and interpolates key
14351         down/up foo into WM_CHAR foo
14352         * KeyboardLayouts.cs: Common keyboard layouts
14353         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
14354         post messages into the main queue.
14355
14356 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
14357
14358         * Button.cs: implement ProcessMnemonic
14359         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
14360           brushes everytime
14361         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
14362         * ButtonBase.cs: Show HotkeyPrefix (not the &)
14363
14364 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
14365         
14366         * MonthCalendar.cs: Implemented click-hold for next/previous month
14367           and date selection
14368           
14369 2004-12-11  Peter Bartok  <pbartok@novell.com>
14370
14371         * X11Structs.cs:
14372           - Added XKeyboardState (moved from XplatUIX11.cs)
14373           - Added XCreateGC related enums and structures
14374           - Added GXFunction for XSetFunction
14375
14376         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
14377
14378         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
14379           CaretVisible() calls
14380
14381         * ToolTip.cs: Added code to prevent stealing focus from app windows
14382
14383         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
14384           DestroyCaret, SetCaretPos and CaretVisible)
14385
14386         * XplatUIX11.cs:
14387           - Added implementation for caret functions
14388           - Moved hover variables into a struct, to make it a bit easier
14389             on the eyes and to debug
14390           - Removed XKeyboardState (moved to XplatUIX11.cs)
14391           - Moved Keyboard properties into the properties region
14392
14393         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
14394           call to get a graphics context for our control
14395
14396         * XplatUIOSX.cs: Added empty overrides for the new caret functions
14397
14398         * TreeView.cs: Fixed bug. No matter what color was set it would always
14399           return SystemColors.Window
14400
14401         * XplatUIWin32.cs: Implemented caret overrides
14402
14403 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
14404
14405         * ListBox.cs: fire events, implement missing methods and properties,
14406         sorting.
14407
14408 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
14409
14410         * MonthCalendar.cs: invalidation bug fixing
14411         * ThemeWin32Classic.cs: paint fixing
14412
14413 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
14414
14415         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
14416         prepare the CGContextRef there now.
14417
14418 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
14419
14420         * MonthCalendar.cs:
14421           - optimisationL only invalidate areas that have changed
14422         * ThemeWin32Classic.cs:
14423           - only paint parts that intersect with clip_area
14424
14425 2004-12-09  Peter Bartok  <pbartok@novell.com>
14426
14427         * Application.cs: Undid changes from r37004 which cause problems
14428         on X11
14429
14430 2004-12-09  Ravindra  <rkumar@novell.com>
14431
14432         * ToolBar.cs: Added support for displaying ContextMenu
14433         attached to a button on ToolBar.
14434         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
14435         property.
14436
14437 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14438
14439         * Label.cs: autosize works in text change and removes unnecessary
14440         invalidate
14441
14442 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14443
14444         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14445         remove warnings
14446
14447 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
14448
14449         * XplatUIOSX.cs: Added mouse move/click/grab support
14450         Remove some debugging WriteLines not needed anymore.
14451         Add window resizing/positioning.
14452         Fix visibility on reparenting.
14453
14454 2004-12-08  Peter Bartok  <pbartok@novell.com>
14455
14456         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
14457
14458 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
14459
14460         * XplatUIOSX.cs: Initial checkin
14461         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
14462
14463 2004-12-03  Ravindra <rkumar@novell.com>
14464
14465         * ListView.cs: Added some keybindings and fixed scrolling.
14466         ScrollBars listen to ValueChanged event instead of Scroll
14467         Event. This would let us take care of all changes being
14468         done in the scrollbars' values programmatically or manually.
14469         * ListView.cs (CanMultiselect): Added a check for shift key.
14470         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
14471         * ListViewItem.cs (Clone): Fixed. We need to make a copy
14472         of ListViewSubItemCollection as well.
14473
14474 2004-12-06  Peter Bartok <pbartok@novell.com>
14475
14476         * Control.cs (Parent): Added check and exception to prevent
14477         circular parenting
14478
14479 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
14480
14481         * ListBox.cs: implemented clipping, selection single and multiple,
14482         bug fixing
14483
14484 2004-12-03  Ravindra <rkumar@novell.com>
14485
14486         * ListView.cs (ListView_KeyDown):
14487         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14488         when CTRL key is pressed.
14489         * ListViewItem.cs (Selected): Fixed setting the property.
14490
14491 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14492
14493         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14494
14495         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14496         MinimizeBox, ShowInTaskbar, TopMost properties.
14497
14498         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14499         will be implemented).
14500
14501 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14502
14503         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14504
14505         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14506         tests.
14507         
14508         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14509         
14510         * TreeView.cs: BackColor is Colors.Window.
14511
14512 2004-12-01  Jackson Harper  <jackson@ximian.com>
14513
14514         * TreeView.cs: When resizing the tree if the user is making it
14515         smaller we don't get expose events, so we need to handle adding
14516         the horizontal scrollbar in the size changed handler as well as
14517         the expose handler.
14518
14519 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
14520
14521         * DrawItemState.cs: fixes wrong enum values
14522
14523 2004-12-01  Jackson Harper  <jackson@ximian.com>
14524
14525         * TreeView.cs: Resize the hbar as well as the vbar on resize.
14526
14527 2004-12-01  Jackson Harper  <jackson@ximian.com>
14528
14529         * NodeLabelEditEventArgs.cs:
14530         * NodeLabelEditEventHandler.cs:
14531         * OpenTreeNodeEnumerator.cs:
14532         * TreeNode.cs:
14533         * TreeNodeCollection.cs:
14534         * TreeView.cs:
14535         * TreeViewAction.cs:
14536         * TreeViewCancelEventArgs.cs:
14537         * TreeViewCancelEventHandler.cs:
14538         * TreeViewEventArgs.cs:
14539         * TreeViewEventHandler.cs: Initial implementation.
14540
14541 2004-12-01  Ravindra <rkumar@novell.com>
14542
14543         * ListView.cs (CalculateListView): Fixed scrolling related
14544         calculations. Also, removed some debug statements from other
14545         places.
14546         * ListViewItem.cs: Changed access to 'selected' instance variable
14547         from private to internal.
14548         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14549
14550 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
14551
14552         * ThemeWin32Classic.cs: remove cache of brush and pens for
14553         specific controls and use the global system, fixes scrollbutton
14554         bugs (for small sizes, disabled, etc)
14555         
14556         * ScrollBar.cs: does not show the thumb for very small controls
14557         (as MS) and allow smaller buttons that the regular size
14558
14559 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
14560
14561         * UpDownBase.cs: Add abstract methods for the interface.
14562         Add new virtual methods (need to be hooked up to TextEntry when it
14563         exists).
14564         Add override methods for most features.
14565         Computes the size, forces the height of the text entry.
14566
14567         * NumericUpDown.cs: Put here the current testing code.
14568
14569         * Set eol-style property on all files that do not have mixed line
14570         endings, to minimize the future problems.  There are still a few
14571         files with mixed endings, and someone should choose whether they
14572         want to move it or not.
14573
14574 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
14575
14576         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
14577         System.Colors
14578         
14579 2004-11-30  Ravindra <rkumar@novell.com>
14580
14581         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
14582         drawing and replaced use of SystemColors by theme colors.
14583         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
14584         * ListView.cs (ListViewItemCollection.Add): Throw exception when
14585         same ListViewItem is being added more than once.
14586
14587 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
14588
14589         * MonthCalendar.cs:
14590           - ControlStyles love to make the control not flicker
14591           
14592 2004-11-30  Peter Bartok  <pbartok@novell.com>
14593
14594         * CharacterCasing.cs: Added
14595
14596 2004-11-29  Peter Bartok  <pbartok@novell.com>
14597
14598         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14599           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
14600           I am removing these files as they conflict with already completed
14601           work. While it is fantastic to get contributions to MWF, I
14602           respectfully ask that everyone please coordinate their contributions
14603           through mono-winforms-list or #mono-winforms at this time. We're
14604           explicitly avoiding stubbing and don't want controls that don't have
14605           their basic functionality implemented in svn. Please also see
14606           http://www.mono-project.com/contributing/winforms.html
14607
14608
14609 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
14610
14611         * Application.cs (ModalRun): Don't hang after exit.
14612
14613         * Theme.cs: New TreeViewDefaultSize property.
14614
14615         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
14616         with less hardcoded SystemColors constant.
14617         Implemented TreeViewDefaultSize.
14618
14619         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14620         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
14621
14622
14623 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
14624
14625         * MonthCalendar.cs:
14626           - Fix NextMonthDate and PrevMonthDate click moving calendar
14627
14628 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14629
14630         * MonthCalendar.cs:
14631           - Fix usage of ScrollChange Property when scrolling months
14632
14633 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
14634
14635         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
14636          - Fixes menu destroying
14637          - Support adding and removing items on already created menus
14638
14639 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14640
14641         * MonthCalendar.cs:
14642           - Re-worked all bolded dates handling to match win32
14643         * ThemeWin32Classic.cs:
14644           - Fixed rendering with bolded dates
14645
14646 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
14647
14648         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
14649         - Horizontal scroolbar
14650         - Multicolumn
14651         - Fixes
14652
14653
14654 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
14655
14656         * MonthCalendar.cs:
14657           - Fix Usage of MaxSelectionCount from SelectionRange
14658           - Fixed Shift + Cursor Selection
14659           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
14660           - Fixed normal cursor selection to be compat with win32
14661           - Fixed Shift + Mouse Click selection
14662
14663 2004-11-24  Peter Bartok <pbartok@novell.com>
14664
14665         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
14666         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
14667         * XplatUIX11.cs:
14668           - CreatedKeyBoardMsg now updates keystate with Alt key
14669           - Added workaround for timer crash to CheckTimers, Jackson will
14670             develop a proper fix and check in later
14671           - Implemented DispatchMessage
14672           - Removed calling the native window proc from GetMessage (call
14673             now moved to DispatchMessage)
14674
14675         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
14676           the keydata (Fixes bug #69831)
14677
14678         * XplatUIWin32.cs:
14679           - (DispatchMessage): Switched to return IntPtr
14680           - Added DllImport for SetFocus
14681
14682 2004-11-24  Ravindra <rkumar@novell.com>
14683
14684         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
14685         background drawing.
14686         * ListViewItem.cs: Fixed various properties, calculations
14687         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
14688         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
14689         and some internal properties. Fixed MouseDown handler and Paint
14690         method.
14691
14692 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14693
14694         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
14695
14696 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14697
14698         * ContainerControl.cs: correct accidental check in of local changes
14699
14700 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14701
14702         * ThemeWin32Classic.cs:
14703                 - Fixed Drawing Last month in grid (sometimes not showing)
14704         * MonthCalendar.cs:
14705                 - Fixed title width calculation bug (makeing title small)
14706
14707 2004-11-23  Peter Bartok <pbartok@novell.com>
14708
14709         * XplatUIX11.cs:
14710           - Added generation of WM_MOUSEHOVER event
14711           - Added missing assignment of async_method atom
14712           - Fixed WM_ERASEBKGND; now only redraws the exposed area
14713
14714 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14715
14716         * ThemeWin32Classic.cs:
14717                 - Fixed Drawing of today circle when showtodaycircle not set
14718                 - fixed drawing of first and last month in the grid (gay dates)
14719         * MonthCalendar.cs:
14720                 - Fixed Drawing of today circle
14721                 - Fixed drawing of grady dates
14722                 - Fixed HitTest for today link when ShowToday set to false
14723                 - Fixed DefaultSize to obey ShowToday
14724
14725 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14726
14727         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
14728         * System.Windows.Forms/Theme.cs
14729         * MonthCalendar.cs: added for MonthCalendar
14730         * SelectionRange.cs: added for MonthCalendar
14731         * Day.cs: added for MonthCalendar: added for MonthCalendar
14732         * DateRangeEventArgs.cs: added for MonthCalendar
14733         * DateRangeEventHandler.cs: added for MonthCalendar
14734
14735 2004-11-22  Ravindra <rkumar@novell.com>
14736
14737         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
14738         property.
14739
14740 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
14741
14742         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
14743         event handler.
14744         
14745         * NumericUpDown.cs: Added new implementation.
14746         * UpDownBase.cs: Added new implementation.
14747
14748         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
14749         implementations.
14750         
14751         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
14752         implementations.
14753
14754         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
14755         methods.
14756
14757 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
14758
14759         * Timer.cs  (Dispose): Should call the base dispose when
14760         overriding.
14761
14762 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14763
14764         * ScrollBar.cs: updates thumb position when max, min or increment
14765         is changed
14766
14767 2004-11-21  Ravindra <rkumar@novell.com>
14768
14769         * ListView.cs: Implemented item selection, activation and
14770         column header style. Fixed properties to do a redraw, if
14771         required. Added support for MouseHover, DoubleClick, KeyDown
14772         and KeyUp event handling and some minor fixes.
14773         * ListViewItem.cs: Fixed constructor.
14774         * ThemeWin32Classic.cs: Improved drawing for ListView.
14775
14776 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14777
14778         * ThemeWin32Classic.cs: initial listbox drawing code
14779         * DrawMode.cs: new enumerator
14780         * ListControl.cs: stubbed class
14781         * ListBox.cs: initial implementation
14782         * Theme.cs: new methods definitions
14783         * SelectionMode.cs: new enumerator
14784
14785 2004-11-17  Peter Bartok  <pbartok@novell.com>
14786
14787         * XplatUIWin32.cs: Added double-click events to the class style
14788         * Control.cs (WndProc):
14789           - Added handling of click-count to MouseDown/ MouseUp events.
14790           - Added handling of middle and right mouse buttons
14791           - Removed old debug code
14792
14793 2004-11-17  Jackson Harper  <jackson@ximian.com>
14794
14795         * XplatUIX11.cs: Use the new Mono.Unix namespace.
14796
14797 2004-11-17  Ravindra <rkumar@novell.com>
14798
14799         * ListView.cs: Added event handling for MouseMove/Up/Down.
14800         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14801         * ThemeWin32Classic.cs: We need to clear the graphics context and
14802         draw column header in a proper state.
14803
14804
14805 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
14806
14807         *  Menu.cs: fixes signature
14808
14809 2004-11-16  Peter Bartok  <pbartok@novell.com>
14810
14811         * XplatUIX11.cs (GetMessage): Implemented generation of
14812           double click mouse messages
14813
14814 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
14815
14816         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14817         not by menu
14818
14819 2004-11-11  Peter Bartok  <pbartok@novell.com>
14820
14821         * HandleData.cs: Added Visible property
14822         * XplatUIX11.cs (IsVisible): Now uses Visible property from
14823           HandleData
14824         * XplatUIX11.cs: Removed old debug leftovers
14825         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14826         * Control.cs (WndProc): Removed old debug leftovers,
14827           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14828           needed WM_SIZE handling
14829
14830 2004-11-11  Jackson Harper  <jackson@ximian.com>
14831
14832         * OwnerDrawPropertyBag.cs:
14833         * TreeViewImageIndexConverter.cs: Initial implementation
14834
14835 2004-11-10  Jackson Harper  <jackson@ximian.com>
14836
14837         * ThemeWin32Classic.cs:
14838         * TabControl.cs: instead of moving tabs by the slider pos just
14839         start drawing at the tab that is offset by the slider. This way
14840         scrolling always moves by exactly one tab.
14841
14842 2004-11-10  Jackson Harper  <jackson@ximian.com>
14843
14844         * TabControl.cs: You can only scroll left when the slider has
14845         already ben moved right.
14846         
14847 2004-11-10  Jackson Harper  <jackson@ximian.com>
14848
14849         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14850         the clip area.
14851         
14852 2004-11-10  Jackson Harper  <jackson@ximian.com>
14853
14854         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14855         clip area.
14856         
14857 2004-11-09  Jackson Harper  <jackson@ximian.com>
14858
14859         * TabControl.cs (CalcXPos): New helper method so we can determine
14860         the proper place to start drawing vertical tabs.
14861         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14862         
14863 2004-11-09  Jackson Harper  <jackson@ximian.com>
14864
14865         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14866         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14867         and Bottom, left and right are illegal values for this and
14868         multiline is enabled when the alignment is set to left or right.
14869         (DrawTab): Each alignment block should draw the text itself now
14870         because Left requires special love. Also add rendering for Left
14871         aligned tabs.
14872         
14873 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
14874
14875         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14876         does not destroy the windows, removes debugging messages
14877
14878 2004-11-09  jba  <jba-mono@optusnet.com.au>
14879
14880         * ThemeWin32Classic.cs
14881         (DrawButtonBase): Fix verticle text rect clipping in windows
14882         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14883         rendering and incorrect text rect clipping
14884         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14885         rendering and incorrect text rect clipping
14886         
14887 2004-11-08  Jackson Harper  <jackson@ximian.com>
14888
14889         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14890         bottom when they are bottom aligned so the bottoms of the tabs get
14891         displayed.
14892         * TabControl.cs (DropRow): Move rows up instead of down when the
14893         tab control is bottom aligned.
14894
14895 2004-11-08 13:59  pbartok
14896
14897         * XplatUIX11.cs:
14898           - Added handling for various window styles
14899           - Added handling for popup windows
14900           - Added SetTopmost handling
14901
14902 2004-11-08 13:55  pbartok
14903
14904         * XplatUIWin32.cs:
14905           - Added argument to SetTopmost method
14906           - Fixed broken ClientToScreen function
14907
14908 2004-11-08 13:53  pbartok
14909
14910         * XplatUIStructs.cs:
14911           - Added missing WS_EX styles
14912
14913 2004-11-08 13:53  pbartok
14914
14915         * XplatUI.cs, XplatUIDriver.cs:
14916           - Added argument to SetTopmost
14917
14918 2004-11-08 13:52  pbartok
14919
14920         * X11Structs.cs:
14921           - Added XSetWindowAttributes structure
14922           - Improved XWindowAttributes structure
14923           - Added SetWindowValuemask enum
14924           - Added window creation arguments enum
14925           - Added gravity enum
14926           - Added Motif hints structure
14927           - Added various Motif flags and enums
14928           - Added PropertyMode enum for property functions
14929
14930 2004-11-08 13:50  pbartok
14931
14932         * Form.cs:
14933           - Fixed arguments for updated SetTopmost method
14934
14935 2004-11-08 13:49  pbartok
14936
14937         * ToolTip.cs:
14938           - Fixed arguments for updated SetTopmost function
14939           - Fixed usage of PointToClient
14940
14941 2004-11-08 13:44  pbartok
14942
14943         * MenuAPI.cs:
14944           - Added Clipping of children and siblings
14945
14946 2004-11-08 13:41  pbartok
14947
14948         * MainMenu.cs:
14949           - Removed SetMenuBarWindow call. We do this in Form.cs
14950
14951 2004-11-08 13:40  jackson
14952
14953         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14954           scrolling jimmi in the correct location with bottom aligned tabs
14955
14956 2004-11-08 13:36  pbartok
14957
14958         * ContainerControl.cs:
14959           - Implemented BindingContext
14960           - Implemented ParentForm
14961
14962 2004-11-08 12:46  jackson
14963
14964         * TabControl.cs: Put bottom rendered tabs in the right location
14965
14966 2004-11-08 07:15  jordi
14967
14968         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14969           removes dead code
14970
14971 2004-11-05 17:30  jackson
14972
14973         * TabControl.cs: When selected tabs are expanded make sure they
14974           don't go beyond the edges of the tab control
14975
14976 2004-11-05 14:57  jackson
14977
14978         * TabControl.cs: Reset show_slider so if the control is resized to
14979           a size where it is no longer needed it's not displayed anymore
14980
14981 2004-11-05 13:16  jackson
14982
14983         * TabControl.cs: Make tab pages non visible when added to the
14984           control
14985
14986 2004-11-05 12:42  jackson
14987
14988         * TabControl.cs: Implement SizeMode.FillToRight
14989
14990 2004-11-05 12:16  jackson
14991
14992         * Control.cs: Do not call CreateHandle if the handle is already
14993           created
14994
14995 2004-11-05 11:46  jackson
14996
14997         * TabControl.cs: Remove superflous call to CalcTabRows
14998
14999 2004-11-05 09:07  jackson
15000
15001         * XplatUIX11.cs: Update for Mono.Posix changes
15002
15003 2004-11-05 07:00  ravindra
15004
15005         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
15006           scrolling.
15007
15008 2004-11-04 22:47  jba
15009
15010         * ThemeWin32Classic.cs:
15011           - Fix Button rendering for FlatStyle = Flat or Popup
15012           - Fix RadioButton and CheckBox rendering when Appearance = Button
15013             (normal and flatstyle).
15014           - Correct outer rectangle color when drawing focus rectangle
15015           - Adjust button bounds to be 1 px smaller when focused
15016           - Make button not draw sunken 3d border when pushed (windows compat)
15017           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
15018           - Offset the text in RadioButton and Checkbox when being rendered as
15019           a button.
15020           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
15021           radiobuttons
15022           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
15023           - Fixed disabled text rendering for normally rendered radiobuttons
15024
15025 2004-11-04 10:26  jackson
15026
15027         * TabControl.cs: Recalculate tab rows when resizing
15028
15029 2004-11-04 07:47  jordi
15030
15031         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
15032           collection completion, drawing issues, missing features
15033
15034 2004-11-04 05:03  ravindra
15035
15036         * ScrollBar.cs:
15037                 - We need to recalculate the Thumb area when
15038                 LargeChange/maximum/minimum values are changed.
15039           - We set the 'pos' in UpdatePos() method to minimum, if it's less
15040                 than minimum. This is required to handle the case if large_change is
15041                 more than max, and use LargeChange property instead of large_change
15042                 variable.
15043           - We return max+1 when large_change is more than max, like MS does.
15044
15045 2004-11-04 04:29  ravindra
15046
15047         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
15048                 - Changed default value signatures (prefixed all with ListView).
15049                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
15050                 ListView.
15051           - Fixed calculations for ListViewItem and implemented Clone()
15052           method.
15053
15054 2004-11-04 04:26  ravindra
15055
15056         * Theme.cs, ThemeWin32Classic.cs:
15057                 - Changed default ListView values signatures (prefixed all with
15058                 ListView).
15059           - Fixed default size values for VScrollBar and HScrollBar.
15060                 - Fixed DrawListViewItem method.
15061
15062 2004-11-04 04:05  ravindra
15063
15064         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
15065
15066 2004-11-04 04:04  ravindra
15067
15068         * ImageList.cs: Implemented the missing overload for Draw method.
15069
15070 2004-11-03 19:29  jackson
15071
15072         * TabControl.cs: Handle dropping rows on selection properly
15073
15074 2004-11-03 11:59  jackson
15075
15076         * TabControl.cs: remove debug code
15077
15078 2004-11-03 11:52  jackson
15079
15080         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
15081           the scrolly widgerywoo
15082
15083 2004-11-02 13:52  jackson
15084
15085         * TabControl.cs: Resize the tab pages and tabs when the tab control
15086           is resized
15087
15088 2004-11-02 13:40  jackson
15089
15090         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
15091           selected tab to the bottom
15092
15093 2004-11-02 13:39  jackson
15094
15095         * TabPage.cs: Store the tab pages row
15096
15097 2004-11-02 12:33  jordi
15098
15099         * MenuItem.cs: fixes handle creation
15100
15101 2004-11-02 11:42  jackson
15102
15103         * TabControl.cs: signature fix
15104
15105 2004-11-02 08:56  jackson
15106
15107         * TabControl.cs: Calculate whether the tab is on an edge properly.
15108           Remove top secret debugging code
15109
15110 2004-11-01 19:57  jackson
15111
15112         * TabControl.cs: Add click handling, and proper sizing
15113
15114 2004-11-01 19:47  jackson
15115
15116         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
15117           tab controls
15118
15119 2004-11-01 19:39  jackson
15120
15121         * TabPage.cs: add internal property to store the bounds of a tab
15122           page
15123
15124 2004-10-30 04:23  ravindra
15125
15126         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
15127           values.
15128
15129 2004-10-30 04:21  ravindra
15130
15131         * ListView.cs, ListViewItem.cs: Added support for scrolling and
15132           fixed calculations.
15133
15134 2004-10-30 03:06  pbartok
15135
15136         * XplatUIX11.cs:
15137           - Removed extension of DllImported libs
15138
15139 2004-10-29 09:55  jordi
15140
15141         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
15142           navigation, itemcollection completion, menu fixes
15143
15144 2004-10-27 22:58  pbartok
15145
15146         * XplatUIX11.cs:
15147           - Now throws a nice error message when no X display could be opened
15148
15149 2004-10-26 13:51  jordi
15150
15151         * ListView.cs: removes warning
15152
15153 2004-10-26 03:55  ravindra
15154
15155         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
15156           ThemeWin32Classic.cs: Some formatting for my last checkins.
15157
15158 2004-10-26 03:36  ravindra
15159
15160         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
15161           control and default values.
15162
15163 2004-10-26 03:35  ravindra
15164
15165         * Theme.cs: Added some default values for ListView control.
15166
15167 2004-10-26 03:33  ravindra
15168
15169         * ToolBar.cs: ToolBar should use the user specified button size, if
15170           there is any. Added a size_specified flag for the same.
15171
15172 2004-10-26 03:33  ravindra
15173
15174         * ColumnHeader.cs: Added some internal members and calculations for
15175           ColumnHeader.
15176
15177 2004-10-26 03:32  ravindra
15178
15179         * ListViewItem.cs: Calculations for ListViewItem.
15180
15181 2004-10-26 03:31  ravindra
15182
15183         * ListView.cs: Added some internal members and calculations for
15184           ListView.
15185
15186 2004-10-22 13:31  jordi
15187
15188         * MenuAPI.cs: speedup menus drawing
15189
15190 2004-10-22 13:16  jackson
15191
15192         * XplatUIX11.cs: Make sure to update exposed regions when adding an
15193           expose event
15194
15195 2004-10-22 11:49  jackson
15196
15197         * Control.cs: oops
15198
15199 2004-10-22 11:41  jackson
15200
15201         * Control.cs: Check to see if the window should have its background
15202           repainted by X when drawing.
15203
15204 2004-10-22 11:31  jackson
15205
15206         * XplatUIX11.cs: When invalidating areas only use XClearArea if
15207           clear is true, this way we do not get flicker from X repainting the
15208           background
15209
15210 2004-10-22 11:28  jackson
15211
15212         * XEventQueue.cs: Queue properly
15213
15214 2004-10-21 09:38  jackson
15215
15216         * XEventQueue.cs: Fix access modifier
15217
15218 2004-10-21 09:36  jackson
15219
15220         * XEventQueue.cs: Don't loose messages
15221
15222 2004-10-21 09:22  jackson
15223
15224         * XEventQueue.cs: Don't loose messages
15225
15226 2004-10-20 04:15  jordi
15227
15228         * BootMode.cs: enum need it by SystemInfo
15229
15230 2004-10-19 21:58  pbartok
15231
15232         * XplatUIWin32.cs:
15233           - Small sanity check
15234
15235 2004-10-19 21:56  pbartok
15236
15237         * Form.cs:
15238           - Added private FormParentWindow class which acts as the container
15239             for our form and as the non-client area where menus are drawn
15240           - Added/Moved required tie-ins to Jordi's menus
15241           - Fixed/Implemented the FormStartPosition functionality
15242
15243 2004-10-19 21:52  pbartok
15244
15245         * Control.cs:
15246           - Removed unneeded locals
15247           - Added code to all size and location properties to understand and
15248             deal with the parent container of Form
15249
15250 2004-10-19 21:33  pbartok
15251
15252         * Application.cs:
15253           - Fixed to deal with new Form subclasses for menus
15254
15255 2004-10-19 17:48  jackson
15256
15257         * XEventQueue.cs: commit correct version of file
15258
15259 2004-10-19 16:50  jackson
15260
15261         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15262
15263 2004-10-19 16:15  jordi
15264
15265         * MenuAPI.cs: MenuBarCalcSize returns the height
15266
15267 2004-10-19 08:31  pbartok
15268
15269         * Control.cs:
15270           - Added missing call to PreProcessMessage before calling OnXXXKey
15271           methods
15272
15273 2004-10-19 00:04  ravindra
15274
15275         * ToolTip.cs: Fixed constructor.
15276
15277 2004-10-18 09:31  jordi
15278
15279         * MenuAPI.cs: menuitems in menubars do not have shortcuts
15280
15281 2004-10-18 09:26  jordi
15282
15283         * MenuItem.cs: fixes MenuItem class signature
15284
15285 2004-10-18 08:56  jordi
15286
15287         * MenuAPI.cs: prevents windows from showing in the taskbar
15288
15289 2004-10-18 00:28  ravindra
15290
15291         * ToolTip.cs: Suppressed a warning message.
15292
15293 2004-10-18 00:27  ravindra
15294
15295         * Control.cs: Default value of visible property must be true.
15296
15297 2004-10-17 23:19  pbartok
15298
15299         * ToolTip.cs:
15300           - Complete implementation
15301
15302 2004-10-17 23:19  pbartok
15303
15304         * XplatUIX11.cs:
15305           - Added EnableWindow method
15306           - Added SetModal stub
15307           - Added generation of WM_ACTIVATE message (still needs testing)
15308           - Added SetTopMost stub
15309           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
15310
15311 2004-10-17 23:17  pbartok
15312
15313         * XplatUIWin32.cs:
15314           - Removed VirtualKeys to XplatUIStructs
15315           - Implemented SetTopMost method
15316           - Implemented EnableWindow method
15317           - Bugfix in ScreenToClient()
15318           - Bugfixes in ClientToScreen()
15319
15320 2004-10-17 22:51  pbartok
15321
15322         * XplatUIStructs.cs:
15323           - Added WS_EX styles to WindowStyles enumeration
15324
15325 2004-10-17 22:50  pbartok
15326
15327         * XplatUI.cs, XplatUIDriver.cs:
15328           - Added method for enabling/disabling windows
15329           - Added method for setting window modality
15330           - Added method for setting topmost window
15331
15332 2004-10-17 22:49  pbartok
15333
15334         * ThemeWin32Classic.cs:
15335           - Added ToolTip drawing code
15336
15337 2004-10-17 22:49  pbartok
15338
15339         * Theme.cs:
15340           - Added ToolTip abstracts
15341
15342 2004-10-17 22:47  pbartok
15343
15344         * Form.cs:
15345           - Fixed Form.ControlCollection to handle owner relations
15346           - Added Owner/OwnedForms handling
15347           - Implemented Z-Ordering for owned forms
15348           - Removed unneeded private overload of ShowDialog
15349           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
15350             so I hope)
15351           - Fixed Close(), had wrong default
15352           - Added firing of OnLoad event
15353           - Added some commented out debug code for Ownership handling
15354
15355 2004-10-17 22:16  pbartok
15356
15357         * Control.cs:
15358           - Fixed/implemented flat list of controls
15359
15360 2004-10-17 22:14  pbartok
15361
15362         * Application.cs:
15363           - Added code to simulate modal dialogs on Win32
15364
15365 2004-10-17 16:11  jordi
15366
15367         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
15368           mouse event
15369
15370 2004-10-17 13:39  jordi
15371
15372         * MenuAPI.cs: menu drawing fixes
15373
15374 2004-10-15 09:10  ravindra
15375
15376         * StructFormat.cs: General Enum.
15377
15378 2004-10-15 09:09  ravindra
15379
15380         * SizeGripStyle.cs: Enum for Form.
15381
15382 2004-10-15 09:08  ravindra
15383
15384         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
15385           in Theme for ListView.
15386
15387 2004-10-15 09:06  ravindra
15388
15389         * ColumnHeader.cs: Flushing some formatting changes.
15390
15391 2004-10-15 09:05  ravindra
15392
15393         * ListViewItem.cs: Implemented GetBounds method and fixed coding
15394           style.
15395
15396 2004-10-15 09:03  ravindra
15397
15398         * ListView.cs: Implemented Paint method and fixed coding style.
15399
15400 2004-10-15 07:34  jordi
15401
15402         * MenuAPI.cs: fix for X11
15403
15404 2004-10-15 07:32  ravindra
15405
15406         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
15407                 - Renamed Paint() method to Draw() for clarity. Also, moved
15408                 DrawImage() to OnPaint().
15409
15410 2004-10-15 07:25  ravindra
15411
15412         * CheckBox.cs, RadioButton.cs:
15413                 - Removed Redraw (), we get it from ButtonBase.
15414                 - Implemented Paint (), to do class specific painting.
15415
15416 2004-10-15 07:16  ravindra
15417
15418         * ButtonBase.cs:
15419                 - Redraw () is not virtual now.
15420                 - Added an internal virtual method Paint (), so that
15421                 derived classes can do their painting on their own.
15422                 - Modified OnPaint () to call Paint ().
15423
15424 2004-10-15 06:43  jordi
15425
15426         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
15427           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
15428
15429 2004-10-15 00:30  ravindra
15430
15431         * MessageBox.cs:
15432                 - MessageBox on windows does not have min/max buttons.
15433                 This change in CreateParams fixes this on Windows. We
15434                 still need to implement this windowstyle behavior in
15435                 our X11 driver.
15436
15437 2004-10-14 05:14  ravindra
15438
15439         * ToolBar.cs:
15440                 - Changed Redraw () to do a Refresh () always.
15441                 - Fixed the MouseMove event handling when mouse is pressed,
15442                 ie drag event handling.
15443                 - Replaced the usage of ToolBarButton.Pressed property to
15444                 ToolBarButton.pressed internal variable.
15445
15446 2004-10-14 05:10  ravindra
15447
15448         * ToolBarButton.cs:
15449                 - Added an internal member 'inside' to handle mouse move
15450                 with mouse pressed ie mouse drag event.
15451                 - Changed 'Pressed' property to return true only when
15452                 'inside' and 'pressed' are both true.
15453                 - Some coding style love.
15454
15455 2004-10-14 00:17  ravindra
15456
15457         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
15458           public method.
15459
15460 2004-10-14 00:15  ravindra
15461
15462         * ButtonBase.cs: Redraw () related improvements.
15463
15464 2004-10-14 00:14  ravindra
15465
15466         * MessageBox.cs: Moved InitFormSize () out of Paint method and
15467           removed unnecessary calls to Button.Show () method.
15468
15469 2004-10-13 17:50  pbartok
15470
15471         * XplatUIX11.cs:
15472           - Formatting fix
15473           - Removed destroying of window until we solve the problem of X
15474             destroying the window before us on shutdown
15475
15476 2004-10-13 16:32  pbartok
15477
15478         * ButtonBase.cs:
15479           - Now Redraws on MouseUp for FlatStyle Flat and Popup
15480
15481 2004-10-13 14:18  pbartok
15482
15483         * XplatUIX11.cs:
15484           - Added code to destroy the X window
15485
15486 2004-10-13 14:18  pbartok
15487
15488         * XplatUIWin32.cs:
15489           - Added code to destroy a window
15490
15491 2004-10-13 14:12  pbartok
15492
15493         * ButtonBase.cs:
15494           - Added the Redraw on Resize that got dropped in the last rev
15495
15496 2004-10-13 09:06  pbartok
15497
15498         * ThemeWin32Classic.cs:
15499           - Path from John BouAntoun:
15500             * Fix check rendering (centre correctly for normal style, offset
15501               correctly for FlatStyle).
15502             * Fix border color usage (use backcolor) for FlatStyle.Popup
15503             * Use checkbox.Capture instead of checkbox.is_pressed when
15504               rendering flatstyle states.
15505
15506 2004-10-12 21:48  pbartok
15507
15508         * ThemeWin32Classic.cs:
15509           - Removed all occurences of SystemColors and replaced them with the
15510             matching theme color
15511
15512 2004-10-12 21:41  pbartok
15513
15514         * ThemeWin32Classic.cs:
15515           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15516             him using the function for flatstyle drawing
15517           - Changed functions to use the new version of CPDrawBorder3D
15518
15519 2004-10-12 21:15  pbartok
15520
15521         * ControlPaint.cs:
15522           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15523             match MS documentation. They need to return defined colors if the
15524             passed color matches the configured control color. Thanks to John
15525             BouAntoun for pointing this out.
15526
15527 2004-10-12 20:57  pbartok
15528
15529         * Control.cs:
15530           - Fix from John BouAntoun: Raise ForeColorChanged event when text
15531             color is changed
15532
15533 2004-10-12 20:46  pbartok
15534
15535         * CheckBox.cs:
15536           - Fix from John BouAntoun: Now properly sets the Appearance property
15537
15538 2004-10-12 20:45  pbartok
15539
15540         * ThemeWin32Classic.cs:
15541           - Fixes from John BouAntoun: now handles forecolors and backcolors
15542             for flatstyle rendered controls much better; It also fixes normal
15543             checkbox rendering when pushed or disabled.
15544
15545 2004-10-08 02:50  jordi
15546
15547         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15548           work
15549
15550 2004-10-07 08:56  jordi
15551
15552         * ThemeWin32Classic.cs: Removes deletion of cached brushes
15553
15554 2004-10-06 03:59  jordi
15555
15556         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
15557           XplatUIWin32.cs: removes warnings from compilation
15558
15559 2004-10-05 12:23  jackson
15560
15561         * RadioButton.cs: Fix ctor
15562
15563 2004-10-05 11:10  pbartok
15564
15565         * MessageBox.cs:
15566           - Partial implementation by Benjamin Dasnois
15567
15568 2004-10-05 10:15  jackson
15569
15570         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
15571           by John BouAntoun
15572
15573 2004-10-05 03:07  ravindra
15574
15575         * ToolBar.cs:
15576                 - Removed a private method, Draw ().
15577                 - Fixed the ButtonDropDown event handling.
15578                 - Fixed MouseMove event handling.
15579
15580 2004-10-05 03:04  ravindra
15581
15582         * ThemeWin32Classic.cs:
15583                 - Added DrawListView method and ListViewDefaultSize property.
15584                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
15585                 - Changed DOS style CRLF to Unix format (dos2unix).
15586
15587 2004-10-05 03:03  ravindra
15588
15589         * Theme.cs:
15590                 - Added DrawListView method and ListViewDefaultSize property.
15591
15592 2004-10-05 02:42  ravindra
15593
15594         * ToolBarButton.cs: Added an internal member dd_pressed to handle
15595           clicks on DropDown arrow.
15596
15597 2004-10-04 22:56  jackson
15598
15599         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
15600           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
15601           Control handle the buffers, derived classes should not have to
15602           CreateBuffers themselves.
15603
15604 2004-10-04 21:20  jackson
15605
15606         * StatusBar.cs: The control handles resizing the buffers now.
15607
15608 2004-10-04 21:18  jackson
15609
15610         * Control.cs: When resizing the buffers should be invalidated. This
15611           should be handled in Control not in derived classes.
15612
15613 2004-10-04 14:45  jackson
15614
15615         * TabPage.cs: oops
15616
15617 2004-10-04 02:14  pbartok
15618
15619         * LeftRightAlignment.cs:
15620           - Initial check-in
15621
15622 2004-10-04 01:09  jordi
15623
15624         * ThemeWin32Classic.cs: fixes right button position causing right
15625           button not showing on horizontal scrollbars
15626
15627 2004-10-02 13:12  pbartok
15628
15629         * XplatUIX11.cs:
15630           - Simplified the Invalidate method by using an X call instead of
15631             generating the expose ourselves
15632           - Added an expose when the window background is changed
15633           - Implemented ClientToScreen method
15634
15635 2004-10-02 13:08  pbartok
15636
15637         * XplatUIWin32.cs:
15638           - Added Win32EnableWindow method (test for implementing modal
15639           dialogs)
15640           - Added ClientToScreen method and imports
15641
15642 2004-10-02 13:07  pbartok
15643
15644         * XplatUI.cs, XplatUIDriver.cs:
15645           - Added ClientToScreen coordinate translation method
15646
15647 2004-10-02 13:06  pbartok
15648
15649         * KeyPressEventArgs.cs:
15650           - Fixed access level for constructor
15651
15652 2004-10-02 13:06  pbartok
15653
15654         * NativeWindow.cs:
15655           - Changed access level for the window_collection hash table
15656
15657 2004-10-02 13:05  pbartok
15658
15659         * Form.cs:
15660           - Added KeyPreview property
15661           - Added Menu property (still incomplete, pending Jordi's menu work)
15662           - Implemented ProcessCmdKey
15663           - Implemented ProcessDialogKey
15664           - Implemented ProcessKeyPreview
15665
15666 2004-10-02 13:02  pbartok
15667
15668         * Control.cs:
15669           - Added private method to get the Control object from the window
15670           handle
15671           - Implemented ContextMenu property
15672           - Implemented PointToScreen
15673           - Implemented PreProcessMessage
15674           - Implemented IsInputChar
15675           - Implemented IsInputKey
15676           - Implemented ProcessCmdKey
15677           - Completed ProcessKeyEventArgs
15678           - Fixed message loop to call the proper chain of functions on key
15679           events
15680           - Implemented ProcessDialogChar
15681           - Implemented ProcessDialogKey
15682           - Implemented ProcessKeyMessage
15683           - Implemented ProcessKeyPreview
15684           - Added RaiseDragEvent stub (MS internal method)
15685           - Added RaiseKeyEvent stub (MS internal method)
15686           - Added RaiseMouseEvent stub (MS Internal method)
15687           - Added RaisePaintEvent stub (MS Internal method)
15688           - Added ResetMouseEventArgs stub (MS Internal method)
15689           - Implemented RtlTranslateAlignment
15690           - Implemented RtlTranslateContent
15691           - Implemented RtlTranslateHorizontal
15692           - Implemented RtlTranslateLeftRight
15693           - Added generation of KeyPress event
15694
15695 2004-10-02 05:57  ravindra
15696
15697         * ListViewItem.cs: Added attributes.
15698
15699 2004-10-02 05:32  ravindra
15700
15701         * ListView.cs: Added attributes.
15702
15703 2004-10-01 11:53  jackson
15704
15705         * Form.cs: Implement the Close method so work on MessageBox can
15706           continue.
15707
15708 2004-09-30 14:06  pbartok
15709
15710         * XplatUIX11.cs:
15711           - Bug fixes
15712
15713 2004-09-30 11:34  jackson
15714
15715         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
15716
15717 2004-09-30 07:26  ravindra
15718
15719         * ListViewItemConverter.cs: Converter for ListViewItem.
15720
15721 2004-09-30 07:26  ravindra
15722
15723         * SortOrder.cs: Enum for ListView control.
15724
15725 2004-09-30 07:25  ravindra
15726
15727         * ColumnHeader.cs: Supporting class for ListView control.
15728
15729 2004-09-30 07:24  ravindra
15730
15731         * ListView.cs, ListViewItem.cs: Initial implementation.
15732
15733 2004-09-30 07:20  ravindra
15734
15735         * ItemActivation.cs: Enum for ListView Control.
15736
15737 2004-09-29 20:29  pbartok
15738
15739         * XplatUIX11.cs:
15740           - Added lookup of pixel value for background color; tries to get a
15741             color 'close' to the requested color, it avoids having to create a
15742             colormap.  Depending on the display this could mean the used color
15743             is slightly off the desired color. Might have to change it to a more
15744             resource intensive colormap approach, but it will work as a
15745           workaround to avoid red screens.
15746
15747 2004-09-29 14:27  jackson
15748
15749         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
15750
15751 2004-09-28 12:44  pbartok
15752
15753         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
15754           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
15755           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
15756           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
15757           TrackBar.cs, VScrollBar.cs:
15758           - Streamlined Theme interfaces:
15759             * Each DrawXXX method for a control now is passed the object for
15760               the control to be drawn in order to allow accessing any state the
15761               theme might require
15762
15763             * ControlPaint methods for the theme now have a CP prefix to avoid
15764               name clashes with the Draw methods for controls
15765
15766             * Every control now retrieves it's DefaultSize from the current
15767             theme
15768
15769 2004-09-28 12:17  jackson
15770
15771         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15772           drawing
15773
15774 2004-09-24 14:57  jackson
15775
15776         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15777           Gives us a nice little performance boost.
15778
15779 2004-09-24 12:02  jackson
15780
15781         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15782           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15783           Control and supporting classes. Initial checkin
15784
15785 2004-09-23 13:08  jackson
15786
15787         * Form.cs: Temp build fixage
15788
15789 2004-09-23 01:39  ravindra
15790
15791         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15792           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15793           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15794           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15795           EventHandlers needed by ListView Control.
15796
15797 2004-09-22 14:12  pbartok
15798
15799         * ScrollableControl.cs:
15800           - Implemented DockPadding property
15801           - Implemented AutoScroll property
15802           - Implemented AutoScrollMargin property
15803           - Implemented AutoScrollMinSize property
15804           - Implemented AutoScrollPosition property
15805           - Implemented DisplayRectangle property (still incomplete)
15806           - Implemented CreateParams property
15807           - Implemented HScroll property
15808           - Implemented VScroll property
15809           - Implemented OnVisibleChanged property
15810
15811 2004-09-22 14:09  pbartok
15812
15813         * Form.cs:
15814           - Added Form.ControllCollection class
15815           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15816             RemoveOwnedForm (still incomplete, missing on-top and common
15817             minimize/maximize behaviour)
15818           - Added StartPosition property (still incomplete, does not use when
15819             creating the form)
15820           - Added ShowDialog() methods (still incomplete, missing forcing the
15821             dialog modal)
15822
15823 2004-09-22 14:05  pbartok
15824
15825         * Application.cs:
15826           - Added message loop for modal dialogs
15827
15828 2004-09-22 14:02  pbartok
15829
15830         * GroupBox.cs:
15831           - Fixed wrong types for events
15832
15833 2004-09-22 14:00  pbartok
15834
15835         * Shortcut.cs, FormWindowState.cs:
15836           - Fixed wrong values
15837
15838 2004-09-22 12:01  jackson
15839
15840         * Control.cs: Text is never null
15841
15842 2004-09-20 22:14  pbartok
15843
15844         * XplatUIWin32.cs:
15845           - Fixed accessibility level for Idle handler
15846
15847 2004-09-20 18:54  jackson
15848
15849         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15850           XplatUIX11.cs: New message loop that uses poll so we don't get a
15851           busy loop
15852
15853 2004-09-17 10:43  pbartok
15854
15855         * ScrollBar.cs:
15856           - Fixed behaviour of arrow buttons. Now properly behaves like
15857             Buttons (and like Microsoft's scrollbar arrow buttons)
15858
15859 2004-09-17 10:14  pbartok
15860
15861         * ScrollBar.cs:
15862           - Added missing release of keyboard/mouse capture
15863
15864 2004-09-17 06:18  jordi
15865
15866         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15867           Theme.cs: Very early menu support
15868
15869 2004-09-16 17:45  pbartok
15870
15871         * XplatUIWin32.cs:
15872           - Fixed sending a window to the front
15873           - Added overload for SetWindowPos to avoid casting
15874
15875 2004-09-16 17:44  pbartok
15876
15877         * Control.cs:
15878           - Added SendToBack and BringToFront methods
15879
15880 2004-09-16 07:00  ravindra
15881
15882         * Copyright: Added Novell URL.
15883
15884 2004-09-16 07:00  ravindra
15885
15886         * ToolBar.cs: Invalidate should be done before redrawing.
15887
15888 2004-09-15 21:19  ravindra
15889
15890         * ColumnHeaderStyle.cs: Enum for ListView Control.
15891
15892 2004-09-15 21:18  ravindra
15893
15894         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15895           ListView Control.
15896
15897 2004-09-13 18:26  jackson
15898
15899         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15900           properly
15901
15902 2004-09-13 18:13  jackson
15903
15904         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15905           a second thread and post messages into the main threads message
15906           queue. This makes timing much more consistent. Both win2K and XP
15907           have a minimum timer value of 15 milliseconds, so we now do this
15908           too.
15909
15910 2004-09-13 15:18  pbartok
15911
15912         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15913           XplatUIX11.cs:
15914           - Added Z-Ordering methods
15915
15916 2004-09-13 10:56  pbartok
15917
15918         * Form.cs:
15919           - Fixed #region names
15920           - Moved properties and methods into their proper #regions
15921
15922 2004-09-13 10:51  pbartok
15923
15924         * Form.cs:
15925           - Added Accept and CancelButton properties
15926           - Added ProcessDialogKey() method
15927
15928 2004-09-13 08:18  pbartok
15929
15930         * IWindowTarget.cs:
15931           - Initial check-in
15932
15933 2004-09-10 21:50  pbartok
15934
15935         * Control.cs:
15936           - Added DoDragDrop() [incomplete]
15937           - Properly implemented 'Visible' handling
15938           - Added SetVisibleCore()
15939           - Implemented FindChildAtPoint()
15940           - Implemented GetContainerControl()
15941           - Implemented Hide()
15942
15943 2004-09-10 19:28  pbartok
15944
15945         * Control.cs:
15946           - Moved methods into their appropriate #regions
15947           - Reordered methods within regions alphabetically
15948
15949 2004-09-10 18:57  pbartok
15950
15951         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15952           - Added method to retrieve text from window
15953
15954 2004-09-10 18:56  pbartok
15955
15956         * Control.cs:
15957           - Moved some internal functions into the internal region
15958           - Implemented FontHeight
15959           - Implemented RenderRightToLeft
15960           - Implemented ResizeRedraw
15961           - Implemented ShowFocusCues
15962           - Implemented ShowKeyboardCues
15963           - Implemented FromChildHandle
15964           - Implemented FromHandle
15965           - Implemented IsMnemonic
15966           - Implemented ReflectMessage
15967           - All public and protected Static Methods are now complete
15968
15969 2004-09-10 16:54  pbartok
15970
15971         * Control.cs:
15972           - Implemented remaining missing public instance properties
15973           - Alphabetized some out of order properties
15974
15975 2004-09-10 05:51  ravindra
15976
15977         * PictureBox.cs: Added a check for null image.
15978
15979 2004-09-10 00:59  jordi
15980
15981         * GroupBox.cs: remove cvs tag
15982
15983 2004-09-09 05:25  ravindra
15984
15985         * ToolBar.cs: Make redraw accessible from ToolBarButton.
15986
15987 2004-09-09 05:23  ravindra
15988
15989         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15990           parent redraw.
15991
15992 2004-09-09 02:28  pbartok
15993
15994         * ThemeWin32Classic.cs:
15995           - Improve disabled string look
15996
15997 2004-09-09 01:15  jordi
15998
15999         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
16000           args and handler
16001
16002 2004-09-08 23:56  ravindra
16003
16004         * ItemBoundsPortion.cs: It's enum, not a class!
16005
16006 2004-09-08 23:47  ravindra
16007
16008         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
16009           Enums for Form.
16010
16011 2004-09-08 21:13  ravindra
16012
16013         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
16014           ListView control.
16015
16016 2004-09-08 21:03  ravindra
16017
16018         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
16019           avoid crash.
16020
16021 2004-09-08 21:01  ravindra
16022
16023         * ScrollableControl.cs: Removed unreachable code.
16024
16025 2004-09-08 06:45  jordi
16026
16027         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
16028
16029 2004-09-08 01:00  jackson
16030
16031         * XplatUIX11.cs: Only run the timers when updating the message
16032           queue. This effectively gives X messages a higher priority then
16033           timer messages. Timers still need love though
16034
16035 2004-09-07 14:01  jackson
16036
16037         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
16038           this for us and the handle is no longer valid.
16039
16040 2004-09-07 13:59  jackson
16041
16042         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
16043           loop that manages to not crash. TODO: Add poll and cleanup timers
16044
16045 2004-09-07 11:12  jordi
16046
16047         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
16048
16049 2004-09-07 03:40  jordi
16050
16051         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
16052           fixes, methods, multiple links
16053
16054 2004-09-06 06:55  jordi
16055
16056         * Control.cs: Caches ClientRectangle rectangle value
16057
16058 2004-09-05 02:03  jordi
16059
16060         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
16061           certain situations
16062
16063 2004-09-04 11:10  jordi
16064
16065         * Label.cs: Refresh when font changed
16066
16067 2004-09-02 16:24  pbartok
16068
16069         * Control.cs:
16070           - Added sanity check to creation of double buffer bitmap
16071
16072 2004-09-02 16:24  pbartok
16073
16074         * ButtonBase.cs:
16075           - Fixed selection of text color
16076           - Fixed handling of resize event; now properly recreates double
16077             buffering bitmap
16078           - Added missing assignment of TextAlignment
16079           - Added proper default for TextAlignment
16080
16081 2004-09-02 14:26  pbartok
16082
16083         * RadioButton.cs:
16084           - Added missing RadioButton.RadioButtonAccessibleObject class
16085
16086 2004-09-02 14:26  pbartok
16087
16088         * Control.cs:
16089           - Added missing Control.ControlAccessibleObject class
16090           - Started to implement Select()ion mechanisms, still very incomplete
16091
16092 2004-09-02 14:25  pbartok
16093
16094         * AccessibleObject.cs:
16095           - Added missing methods
16096
16097 2004-09-02 14:23  pbartok
16098
16099         * AccessibleNavigation.cs, AccessibleSelection.cs:
16100           - Initial check-in
16101
16102 2004-09-02 10:32  jordi
16103
16104         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
16105           pool for pens, brushes, and hatchbruses
16106
16107 2004-09-01 15:30  jackson
16108
16109         * StatusBar.cs: Fix typo
16110
16111 2004-09-01 14:44  pbartok
16112
16113         * RadioButton.cs:
16114           - Fixed state
16115
16116 2004-09-01 14:39  pbartok
16117
16118         * Button.cs, RadioButton.cs:
16119           - Functional initial check-in
16120
16121 2004-09-01 14:01  pbartok
16122
16123         * CheckBox.cs:
16124           - Added missing default
16125           - Added missing region mark
16126
16127 2004-09-01 09:10  jordi
16128
16129         * Label.cs: fixes method signatures, new methods, events, fixes
16130           autosize
16131
16132 2004-09-01 07:19  jordi
16133
16134         * Control.cs: Init string variables with an empty object
16135
16136 2004-09-01 04:20  jordi
16137
16138         * Control.cs: fires OnFontChanged event
16139
16140 2004-08-31 20:07  pbartok
16141
16142         * ButtonBase.cs:
16143           - Enabled display of strings
16144
16145 2004-08-31 20:05  pbartok
16146
16147         * Form.cs:
16148           - Added (partial) implementation of DialogResult; rest needs to be
16149             implemented when the modal loop code is done
16150
16151 2004-08-31 19:55  pbartok
16152
16153         * CheckBox.cs:
16154           - Fixed to match the removal of the needs_redraw concept
16155
16156 2004-08-31 19:55  pbartok
16157
16158         * ButtonBase.cs:
16159           - Removed the rather odd split between 'needs redraw' and redrawing
16160           - Now handles the events that require regeneration (ambient
16161             properties and size)
16162
16163 2004-08-31 19:41  pbartok
16164
16165         * Control.cs:
16166           - Added firing of BackColorChanged event
16167           - Added TopLevelControl property
16168           - Fixed handling of WM_ERASEBKGRND message
16169
16170 2004-08-31 12:49  pbartok
16171
16172         * ButtonBase.cs:
16173           - Removed debug
16174           - Minor fixes
16175
16176 2004-08-31 12:48  pbartok
16177
16178         * CheckBox.cs:
16179           - Finished (famous last words)
16180
16181 2004-08-31 04:35  jordi
16182
16183         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
16184           scrolling bugs, adds new methods
16185
16186 2004-08-30 14:42  pbartok
16187
16188         * CheckBox.cs:
16189           - Implemented CheckBox drawing code
16190
16191 2004-08-30 14:42  pbartok
16192
16193         * ButtonBase.cs:
16194           - Made Redraw() and CheckRedraw() virtual
16195           - Improved mouse up/down/move logic to properly track buttons
16196
16197 2004-08-30 09:44  pbartok
16198
16199         * CheckBox.cs:
16200           - Updated to fix broken build. Not complete yet.
16201
16202 2004-08-30 09:28  pbartok
16203
16204         * CheckState.cs:
16205           - Initial checkin
16206
16207 2004-08-30 09:17  pbartok
16208
16209         * Appearance.cs:
16210           - Initial check-in
16211
16212 2004-08-27 16:12  ravindra
16213
16214         * ToolBarButton.cs: Added TypeConverter attribute.
16215
16216 2004-08-27 16:07  ravindra
16217
16218         * ImageIndexConverter.cs: Implemented.
16219
16220 2004-08-27 14:17  pbartok
16221
16222         * Control.cs:
16223           - Removed unneeded stack vars
16224           - First attempt to fix sizing issues when layout is suspended
16225
16226 2004-08-25 15:35  jordi
16227
16228         * ScrollBar.cs: more fixes to scrollbar
16229
16230 2004-08-25 14:04  ravindra
16231
16232         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
16233           Added the missing divider code and grip for ToolBar Control.
16234
16235 2004-08-25 13:20  pbartok
16236
16237         * Control.cs:
16238           - Control now properly passes the ambient background color to child
16239             controls
16240
16241 2004-08-25 13:20  jordi
16242
16243         * ScrollBar.cs: small bug fix regarding bar position
16244
16245 2004-08-25 12:33  pbartok
16246
16247         * Timer.cs:
16248           - Now only calls SetTimer or KillTimer if the enabled state has
16249           changed
16250
16251 2004-08-25 12:33  pbartok
16252
16253         * XplatUIWin32.cs:
16254           - Fixed timer handling, now seems to work
16255           - Improved error message for window creation
16256
16257 2004-08-25 12:32  pbartok
16258
16259         * Control.cs:
16260           - Fixed generation of MouseUp message
16261
16262 2004-08-25 12:29  jordi
16263
16264         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16265           and fixes for progressbar
16266
16267 2004-08-24 18:43  ravindra
16268
16269         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16270           in ToolBar control.
16271
16272 2004-08-24 17:15  pbartok
16273
16274         * Panel.cs:
16275           - Added #region
16276           - Added missing events
16277           - Alphabetized
16278
16279 2004-08-24 17:14  pbartok
16280
16281         * StatusBar.cs, PictureBox.cs:
16282           - Now uses Control's CreateParams
16283
16284 2004-08-24 16:36  pbartok
16285
16286         * XplatUIX11.cs:
16287           - Fixed background color handling
16288           - Fixed sending of enter/leave events on a grab
16289
16290 2004-08-24 16:35  pbartok
16291
16292         * X11Structs.cs:
16293           - Refined definitions for CrossingEvent
16294
16295 2004-08-24 12:37  jordi
16296
16297         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16298           formmating, methods signature, and adds missing events
16299
16300 2004-08-24 12:24  jordi
16301
16302         * Control.cs: fire OnEnabledChanged event
16303
16304 2004-08-24 11:17  pbartok
16305
16306         * XplatUIWin32.cs:
16307           - Implemented SetTimer() and KillTimer()
16308
16309 2004-08-24 11:16  pbartok
16310
16311         * XplatUIX11.cs:
16312           - Now uses Remove instead of Add to kill the timer
16313
16314 2004-08-24 10:16  jackson
16315
16316         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
16317           picture boxes in the theme now. Draw picture box borders and obey
16318           sizing modes
16319
16320 2004-08-24 05:49  jackson
16321
16322         * Timer.cs: Remove top secret debugging code
16323
16324 2004-08-24 05:34  jackson
16325
16326         * PictureBox.cs: Temp hack to make picture boxes draw their full
16327           image
16328
16329 2004-08-24 05:29  jackson
16330
16331         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16332           XplatUIX11.cs: Move timers to the driver level. On X they are
16333           queued by the driver and checked on idle.
16334
16335 2004-08-24 01:07  jackson
16336
16337         * XplatUIX11.cs: Use a queue for async messages instead of passing
16338           them as ClientMessages since that was totally broken. Also simply
16339           check for events and return an idle message if none are found. This
16340           gives us an idle handler, and prevents deadlocking when no messages
16341           are in the queue.
16342
16343 2004-08-23 18:19  ravindra
16344
16345         * XplatUIWin32.cs: Removed the unwanted destructor.
16346
16347 2004-08-23 17:27  pbartok
16348
16349         * ButtonBase.cs:
16350           - Finishing touches. Works now, just needs some optimizations.
16351
16352 2004-08-23 16:53  jordi
16353
16354         * ScrollBar.cs: small fix
16355
16356 2004-08-23 16:45  pbartok
16357
16358         * Application.cs:
16359           - Removed debug output
16360           - Simplifications
16361
16362 2004-08-23 16:43  jordi
16363
16364         * ScrollBar.cs: [no log message]
16365
16366 2004-08-23 16:10  pbartok
16367
16368         * Form.cs:
16369           - Fixed handling of WM_CLOSE message
16370           - Removed debug output
16371
16372 2004-08-23 16:09  pbartok
16373
16374         * Application.cs:
16375           - Added handling of Idle event
16376           - Added handling of form closing
16377           - Fixed reporting of MessageLoop property
16378           - Removed some unneeded code, should provide a bit of a speedup
16379
16380 2004-08-23 15:22  pbartok
16381
16382         * Control.cs:
16383           - Added InitLayout() method
16384           - Added code to properly perform layout when Anchor or Dock property
16385             is changed
16386           - Changed 'interpretation' of ResumeLayout. MS seems to have a
16387             LAMESPEC, tried to do it in a way that makes sense
16388
16389 2004-08-23 14:10  jordi
16390
16391         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
16392           properties and methods
16393
16394 2004-08-23 13:55  pbartok
16395
16396         * Control.cs:
16397           - Properly fixed Jordi's last fix
16398           - Now uses Cursor's Position property instead of calling XplatUI
16399           directly
16400
16401 2004-08-23 13:44  jordi
16402
16403         * PaintEventHandler.cs: Adding missing attribute
16404
16405 2004-08-23 13:39  pbartok
16406
16407         * Cursor.cs:
16408           - Implemented Position property
16409
16410 2004-08-23 13:39  pbartok
16411
16412         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16413           - Added method to move mouse cursor
16414
16415 2004-08-23 13:39  pbartok
16416
16417         * XplatUIX11.cs:
16418           - Fixed setting of background color
16419           - Added method to move mouse cursor
16420
16421 2004-08-23 13:16  jordi
16422
16423         * Control.cs: avoids null exception
16424
16425 2004-08-22 17:46  jackson
16426
16427         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
16428           PictureBox
16429
16430 2004-08-22 17:40  jackson
16431
16432         * XplatUIX11.cs: Add some missing locks
16433
16434 2004-08-22 15:10  pbartok
16435
16436         * Control.cs, Form.cs:
16437           - Removed OverlappedWindow style from Control, instead it's default
16438             now is child
16439           - Made form windows OverlappedWindow by default
16440
16441 2004-08-22 13:34  jackson
16442
16443         * ScrollBar.cs: Update the position through the Value property so
16444           the OnValueChanged event is raised.
16445
16446 2004-08-22 12:04  pbartok
16447
16448         * SWF.csproj:
16449           - Added Cursor.cs and UserControl.cs
16450
16451 2004-08-22 12:03  pbartok
16452
16453         * Cursor.cs:
16454           - Started implementation, not usable yet
16455
16456 2004-08-22 12:00  pbartok
16457
16458         * UserControl.cs:
16459           - Implemented UserControl (complete)
16460
16461 2004-08-21 19:20  ravindra
16462
16463         * ToolBar.cs: Correcting the formatting mess of VS.NET.
16464
16465 2004-08-21 18:49  ravindra
16466
16467         * ToolBar.cs: Probably this completes the missing attributes in
16468           toolbar control.
16469
16470 2004-08-21 18:03  ravindra
16471
16472         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
16473           Fixed toolbar control signatures.
16474
16475 2004-08-21 16:32  pbartok
16476
16477         * LinkLabel.cs:
16478           - Signature Fixes
16479
16480 2004-08-21 16:30  pbartok
16481
16482         * Label.cs:
16483           - Signature fixes
16484
16485 2004-08-21 16:19  pbartok
16486
16487         * Control.cs, Label.cs:
16488           - Signature fixes
16489
16490 2004-08-21 15:57  pbartok
16491
16492         * ButtonBase.cs:
16493           - Added loads of debug output for development
16494           - Fixed typo in method name
16495
16496 2004-08-21 15:52  pbartok
16497
16498         * ToolBarButtonClickEventArgs.cs:
16499           - Added missing base class
16500
16501 2004-08-21 14:53  pbartok
16502
16503         * Control.cs:
16504           - Updated to match new GrabWindow signature
16505
16506 2004-08-21 14:51  pbartok
16507
16508         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16509           - Added method to get default display size
16510
16511 2004-08-21 14:23  pbartok
16512
16513         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16514           - Added method to query current grab state
16515           - Added argument to allow confining a grab to a window
16516
16517 2004-08-21 14:22  pbartok
16518
16519         * Keys.cs:
16520           - Added [Flags] attribute so that modifiers can be used in bitwise
16521           ops
16522
16523 2004-08-21 14:21  pbartok
16524
16525         * TrackBar.cs, ScrollBar.cs:
16526           - Replaced direct XplatUI calls with their Control counterpart
16527
16528 2004-08-21 13:32  pbartok
16529
16530         * Control.cs:
16531           - Implemented Created property
16532
16533 2004-08-21 13:28  pbartok
16534
16535         * Control.cs:
16536           - Implemented ContainsFocus
16537
16538 2004-08-21 13:26  pbartok
16539
16540         * Control.cs:
16541           - Implemented CausesValidation
16542
16543 2004-08-21 13:21  pbartok
16544
16545         * Control.cs:
16546           - Implemented CanFocus
16547           - Implemented CanSelect
16548           - Implemented Capture
16549
16550 2004-08-21 12:35  pbartok
16551
16552         * XplatUIWin32.cs:
16553           - Fixed bug with Async message handling
16554           - Implemented getting the ModifierKeys
16555
16556 2004-08-21 12:32  jackson
16557
16558         * AsyncMethodResult.cs: Make sure we have the mutex before we
16559           release it. Fixes BeginInvoke on windows
16560
16561 2004-08-21 11:31  pbartok
16562
16563         * XplatUIWin32.cs, XplatUIX11.cs:
16564           - Drivers now return proper mouse state
16565
16566 2004-08-21 10:54  jackson
16567
16568         * Control.cs: Implement EndInvoke
16569
16570 2004-08-21 10:48  jackson
16571
16572         * Timer.cs: Remove unneeded finalizer
16573
16574 2004-08-20 19:52  ravindra
16575
16576         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
16577           in mouse event handling in the ToolBar control.
16578
16579 2004-08-20 19:50  ravindra
16580
16581         * ImageList.cs: Changed draw method to use the arguments passed in
16582           to draw the image.
16583
16584 2004-08-20 18:58  pbartok
16585
16586         * XplatUIStructs.cs:
16587           - Added private message for async communication
16588
16589 2004-08-20 17:38  ravindra
16590
16591         * Control.cs: Made RightToLeft property virtual and removed a
16592           Console.WriteLine.
16593
16594 2004-08-20 14:39  jordi
16595
16596         * ThemeGtk.cs: use style_attach
16597
16598 2004-08-20 14:39  pbartok
16599
16600         * XplatUIWin32.cs:
16601           - Added jackson's Async code from X11 to Win32
16602
16603 2004-08-20 14:09  pbartok
16604
16605         * SWF.csproj:
16606           - Added all new files
16607
16608 2004-08-20 14:09  pbartok
16609
16610         * Control.cs:
16611           - Added call to set window background color
16612
16613 2004-08-20 14:03  pbartok
16614
16615         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16616           - Added method for setting the window background
16617
16618 2004-08-20 14:02  pbartok
16619
16620         * XplatUIWin32.cs:
16621           - Added method for setting the background color
16622           - Added handling for erasing the window background
16623
16624 2004-08-20 13:45  jordi
16625
16626         * TrackBar.cs: fixes timer, new properties and methods
16627
16628 2004-08-20 13:34  jackson
16629
16630         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
16631           correct thread
16632
16633 2004-08-20 13:22  jackson
16634
16635         * Timer.cs: Timer Tick events are now handed through Controls Async
16636           mechanism so the callbacks are executed in the same thread as X
16637
16638 2004-08-20 13:19  jackson
16639
16640         * XplatUIDriver.cs: Expose functionality to send async messages
16641           through the driver
16642
16643 2004-08-20 13:18  jackson
16644
16645         * Control.cs: Implement Begininvoke
16646
16647 2004-08-20 13:14  jackson
16648
16649         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
16650           messages through the driver
16651
16652 2004-08-20 13:12  jackson
16653
16654         * XplatUIX11.cs: Lock before all X operations. Also added Async
16655           method functionality through XSendEvent
16656
16657 2004-08-20 13:11  jackson
16658
16659         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
16660           This will screw up on 64 bit systems)
16661
16662 2004-08-20 13:10  jackson
16663
16664         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
16665           Async messages through X/Win32
16666
16667 2004-08-19 19:39  pbartok
16668
16669         * XplatUIX11.cs:
16670           - Updated code to match new HandleData.DeviceContext type
16671
16672 2004-08-19 19:38  pbartok
16673
16674         * HandleData.cs:
16675           - Made DeviceContext a generic object to allow usage from various
16676           drivers
16677           - Added support for queueing Windows messages
16678
16679 2004-08-19 19:37  pbartok
16680
16681         * XplatUIWin32.cs:
16682           - Added generation of MouseEnter, MouseLeave and MouseHover events
16683           - Added cleanup on EndPaint
16684
16685 2004-08-19 19:17  pbartok
16686
16687         * Control.cs:
16688           - Added handling of WM_MOUSEHOVER
16689           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
16690           code
16691
16692 2004-08-19 18:55  jordi
16693
16694         * ThemeGtk.cs: fixes button order
16695
16696 2004-08-19 18:12  jordi
16697
16698         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
16699
16700 2004-08-19 17:09  pbartok
16701
16702         * Control.cs:
16703           - Added Right property
16704           - Added RightToLeft property
16705
16706 2004-08-19 16:27  jordi
16707
16708         * ThemeGtk.cs: experimental GTK theme support
16709
16710 2004-08-19 16:26  jordi
16711
16712         * ITheme.cs, Theme.cs: move themes from an interface to a class
16713
16714 2004-08-19 16:25  jordi
16715
16716         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
16717           theme enhancaments
16718
16719 2004-08-19 16:04  pbartok
16720
16721         * XplatUIX11.cs:
16722           - Added colormap basics
16723           - Added a way to re-initialize with a different display handle
16724           - Fixed setting of the window background color
16725           - Added various X11 imports related to colors and colormaps
16726
16727 2004-08-19 15:51  pbartok
16728
16729         * X11Structs.cs:
16730           - Removed packing hints (Paolo suggested this a while back)
16731           - fixed colormap type
16732           - Added default Atom types
16733           - Added Screen and color structs and enums
16734
16735 2004-08-19 15:39  pbartok
16736
16737         * ImageList.cs:
16738           - Added missing Draw() method
16739           - Added missing RecreateHandle event
16740
16741 2004-08-19 15:30  pbartok
16742
16743         * Form.cs:
16744           - Added handling of WM_CLOSE
16745
16746 2004-08-18 13:16  jordi
16747
16748         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
16749           a table
16750
16751 2004-08-18 09:56  jordi
16752
16753         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
16754
16755 2004-08-17 15:31  ravindra
16756
16757         * SWF.csproj: Updated project.
16758
16759 2004-08-17 15:25  pbartok
16760
16761         * Control.cs:
16762           - Drawing improvement; don't call UpdateBounds if we are not visible
16763             (or have been minimized)
16764
16765 2004-08-17 15:24  pbartok
16766
16767         * XplatUIWin32.cs:
16768           - Finished IsVisible
16769           - Added Win32GetWindowPlacement
16770
16771 2004-08-17 15:08  jackson
16772
16773         * Panel.cs: Initial checkin of the Panel
16774
16775 2004-08-17 14:25  pbartok
16776
16777         * Control.cs:
16778           - Fixed broken handling of default window sizes
16779
16780 2004-08-17 13:29  jackson
16781
16782         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16783           has a large startup time.
16784
16785 2004-08-17 10:25  jackson
16786
16787         * HandleData.cs: union areas properly
16788
16789 2004-08-17 10:12  jackson
16790
16791         * HandleData.cs: union areas properly
16792
16793 2004-08-16 20:00  ravindra
16794
16795         * ToolBar.cs, ToolBarButton.cs: Added attributes.
16796
16797 2004-08-16 18:48  ravindra
16798
16799         * ToolBar.cs: Added attributes.
16800
16801 2004-08-16 17:17  ravindra
16802
16803         * SWF.csproj: Updated project.
16804
16805 2004-08-16 17:16  jackson
16806
16807         * XplatUIX11.cs: Check for more expose events before sending a
16808           WM_PAINT so they can all be grouped together. This makes dragging a
16809           window across another window redraw in a sane way.
16810
16811 2004-08-16 15:47  pbartok
16812
16813         * Control.cs:
16814           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16815             support OnMouseEnter/Leave()
16816           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16817             exposure handling
16818
16819 2004-08-16 15:46  pbartok
16820
16821         * XplatUIStructs.cs, XplatUIX11.cs:
16822           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16823           OnMouseEnter/Leave()
16824
16825 2004-08-16 15:34  jackson
16826
16827         * XplatUIX11.cs: Group multiple expose events in HandleData, make
16828           sure messages get the message field set to WM_NULL if they are not
16829           handled.
16830
16831 2004-08-16 15:24  jackson
16832
16833         * HandleData.cs: HandleData is used for storing message information
16834           for window handles
16835
16836 2004-08-15 17:23  ravindra
16837
16838         * ColorDepth.cs: Added attribute.
16839
16840 2004-08-15 17:23  ravindra
16841
16842         * SWF.csproj: Updated project for ToolBar Control.
16843
16844 2004-08-15 17:20  ravindra
16845
16846         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16847           control and also dos2unix format.
16848
16849 2004-08-15 17:13  ravindra
16850
16851         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16852           ToolBarButtonClickEventArgs.cs,
16853           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16854           ToolBarTextAlign.cs: First Implementation of ToolBar control.
16855
16856 2004-08-15 15:31  pbartok
16857
16858         * ButtonBase.cs:
16859           - First (mostly) working version
16860
16861 2004-08-13 16:15  pbartok
16862
16863         * Control.cs:
16864           - Fixed Anchor default
16865
16866 2004-08-13 15:43  pbartok
16867
16868         * Control.cs:
16869           - Changed GetCursorPos signature
16870
16871 2004-08-13 15:42  pbartok
16872
16873         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16874           - Changed signature for GetCursorPos
16875
16876 2004-08-13 15:25  pbartok
16877
16878         * XplatUIX11.cs:
16879           - Cleanup
16880           - Fixed resizing/exposure handling
16881
16882 2004-08-13 15:22  jordi
16883
16884         * ThemeWin32Classic.cs: removes redundant code and fixes issues
16885           with tickposition
16886
16887 2004-08-13 14:55  jordi
16888
16889         * TrackBar.cs: change from wndproc to events
16890
16891 2004-08-13 13:00  jordi
16892
16893         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16894           XplatUIX11.cs: implements PointToClient (ScreenToClient)
16895
16896 2004-08-13 12:53  pbartok
16897
16898         * XplatUIWin32.cs:
16899           - Changed GetWindowPos to also provide client area size
16900           - Fixed broken prototypes for several win32 functions
16901
16902 2004-08-13 12:53  pbartok
16903
16904         * XplatUI.cs, XplatUIDriver.cs:
16905           - Changed GetWindowPos to also provide client area size
16906
16907 2004-08-13 12:52  pbartok
16908
16909         * XplatUIX11.cs:
16910           - Added generation of WM_POSCHANGED
16911           - Changed GetWindowPos to also provide client area size
16912
16913 2004-08-13 12:52  pbartok
16914
16915         * Control.cs:
16916           - Added Dispose() and destructor
16917           - Fixed resizing and bounds calculation
16918           - Fixed Layout
16919           - Added memory savings for invisible windows
16920
16921 2004-08-13 12:46  jordi
16922
16923         * TrackBar.cs: adds timer and grap window
16924
16925 2004-08-13 10:25  jackson
16926
16927         * Timer.cs: SWF Timer
16928
16929 2004-08-12 16:59  pbartok
16930
16931         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16932           - Implemented method to get current mouse position
16933
16934 2004-08-12 14:29  jordi
16935
16936         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16937           enhancement, fix mouse problems, highli thumb, etc
16938
16939 2004-08-12 13:31  pbartok
16940
16941         * Control.cs:
16942           - Fixed Anchoring bugs
16943
16944 2004-08-12 13:01  jackson
16945
16946         * StatusBar.cs: Don't forget things
16947
16948 2004-08-12 12:54  jackson
16949
16950         * ThemeWin32Classic.cs: Handle owner draw status bars
16951
16952 2004-08-12 12:54  jackson
16953
16954         * StatusBar.cs: Implement missing properties, events, and methods.
16955           Handle mouse clicking
16956
16957 2004-08-12 10:19  jackson
16958
16959         * StatusBarPanelClickEventArgs.cs,
16960           StatusBarPanelClickEventHandler.cs: Classes for handling status
16961           bar panel click events
16962
16963 2004-08-12 10:10  jackson
16964
16965         * Control.cs: Add missing properties
16966
16967 2004-08-12 09:46  pbartok
16968
16969         * BindingsManagerBase.cs:
16970           - Name changed to BindingManagerBase.cs
16971
16972 2004-08-12 09:25  jordi
16973
16974         * ScrollableControl.cs: calls ctrlbase instead of exeception
16975
16976 2004-08-11 16:28  pbartok
16977
16978         * InputLanguageChangingEventArgs.cs:
16979           - Never check in before compiling. Fixes the last check-in
16980
16981 2004-08-11 16:26  pbartok
16982
16983         * InputLanguageChangingEventArgs.cs:
16984           - More signature fixes
16985
16986 2004-08-11 16:20  pbartok
16987
16988         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16989           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16990           ImageListStreamer.cs, InputLanguage.cs,
16991           InputLanguageChangedEventArgs.cs,
16992           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16993           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16994           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16995           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16996           - Signature fixes
16997
16998 2004-08-11 16:16  pbartok
16999
17000         * Application.cs:
17001           - Fixed Signature
17002           - Added .Net 1.1 method
17003
17004 2004-08-11 15:25  pbartok
17005
17006         * SWF.csproj:
17007           - Fixed BindingManagerBase.cs filename
17008
17009 2004-08-11 15:22  pbartok
17010
17011         * BindingManagerBase.cs:
17012           - Was checked in with wrong filename
17013
17014 2004-08-11 14:50  pbartok
17015
17016         * SWF.csproj:
17017           - Updated
17018
17019 2004-08-11 13:41  jordi
17020
17021         * XplatUIWin32.cs: Fixes ClientRect
17022
17023 2004-08-11 13:19  pbartok
17024
17025         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17026           XplatUIX11.cs:
17027           - We had SetWindowPos and MoveWindow to set window positions and
17028             size, removed MoveWindow. We have GetWindowPos, so it made sense to
17029             keep SetWindowPos as matching counterpart
17030           - Added some X11 sanity checking
17031
17032 2004-08-11 12:59  pbartok
17033
17034         * Control.cs:
17035           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
17036             (It seems that SetBounds is just a front for SetBoundsCore and
17037              SetBoundsCore updates the underlying window system and
17038              UpdateBounds is responsible for updating the variables associated
17039              with the Control and sending the events)
17040           - Major cleanup of Size handling; we now have two sizes, client_size
17041             and bounds. Bounds defines the window with decorations, client_size
17042             without them.
17043
17044 2004-08-11 12:55  pbartok
17045
17046         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17047           - Added method to calculate difference between decorated window and
17048             raw client area
17049
17050 2004-08-11 12:54  pbartok
17051
17052         * Label.cs:
17053           - Forcing redraw on resize
17054
17055 2004-08-11 11:43  pbartok
17056
17057         * ImageList.cs:
17058           - Removed disposing of the actual images when the list is disposed
17059
17060 2004-08-11 09:13  pbartok
17061
17062         * Control.cs:
17063           - Now properly reparents windows
17064
17065 2004-08-11 08:37  pbartok
17066
17067         * Control.cs:
17068           - Duh!
17069
17070 2004-08-11 07:47  pbartok
17071
17072         * Control.cs:
17073           - Rewrote the collection stuff. Might not be as fast now, not
17074             keeping the number of children around and accessible directly, but
17075             it's more straightforward
17076
17077 2004-08-11 07:44  pbartok
17078
17079         * AccessibleObject.cs:
17080           - Fixed to match ControlCollection rewrite
17081
17082 2004-08-11 07:43  pbartok
17083
17084         * ImageList.cs:
17085           - Added missing creation of the collection list
17086
17087 2004-08-10 20:08  jackson
17088
17089         * StatusBar.cs: Get the paint message from WndProc
17090
17091 2004-08-10 19:31  jackson
17092
17093         * ThemeWin32Classic.cs: Create Brushes as little as possible
17094
17095 2004-08-10 19:20  jackson
17096
17097         * UICues.cs: Add Flags attribute
17098
17099 2004-08-10 19:19  jackson
17100
17101         * StatusBarPanel.cs: Signature cleanup
17102
17103 2004-08-10 19:10  jackson
17104
17105         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
17106           Initial implementation of status bar item drawing
17107
17108 2004-08-10 17:27  jordi
17109
17110         * TrackBar.cs: add missing methods, properties, and restructure to
17111           hide extra ones
17112
17113 2004-08-10 16:24  jackson
17114
17115         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
17116           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
17117           attribute
17118
17119 2004-08-10 13:21  jordi
17120
17121         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
17122           enhancements and standarize on win colors defaults
17123
17124 2004-08-10 12:52  jackson
17125
17126         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
17127           ThemeWin32Classic.cs: Implement DrawItem functionality
17128
17129 2004-08-10 12:47  jordi
17130
17131         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
17132
17133 2004-08-10 12:32  jordi
17134
17135         * Control.cs: throw ontextchange event
17136
17137 2004-08-10 11:43  pbartok
17138
17139         * Control.cs:
17140           - Added more to the still unfinished Dock/Anchor layout code
17141
17142 2004-08-10 11:39  pbartok
17143
17144         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17145           - Added GetWindowPos method
17146
17147 2004-08-10 11:36  pbartok
17148
17149         * XplatUIWin32.cs:
17150           - Implemented several methods
17151
17152 2004-08-10 09:47  jackson
17153
17154         * TrackBar.cs: Allow control to handle buffering
17155
17156 2004-08-10 09:41  jackson
17157
17158         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
17159
17160 2004-08-10 09:24  jackson
17161
17162         * Label.cs, LinkLabel.cs: Let Control handle buffering.
17163
17164 2004-08-10 09:09  jackson
17165
17166         * StatusBar.cs: Let Control handle all the buffering.
17167
17168 2004-08-10 09:08  jackson
17169
17170         * Control.cs: Control will now handle the buffering code, so each
17171           control does not have to implement this.
17172
17173 2004-08-10 08:34  jackson
17174
17175         * XplatUIDriver.cs: Use default colors from the theme
17176
17177 2004-08-09 17:12  pbartok
17178
17179         * ImageList.cs:
17180           - Fixed several bugs Ravindra pointed out
17181
17182 2004-08-09 16:11  pbartok
17183
17184         * Control.cs:
17185           - Added incomplete dock layout code
17186           - Added support for mouse wheel
17187
17188 2004-08-09 16:09  pbartok
17189
17190         * XplatUIX11.cs:
17191           - Added handling for middle and right mousebutton
17192           - Added handling for mouse wheel
17193           - Added handling for key state and mouse state and position
17194           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
17195           messages
17196
17197 2004-08-09 15:40  jackson
17198
17199         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
17200           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
17201           checkin
17202
17203 2004-08-09 15:37  jackson
17204
17205         * StatusBar.cs: Initial implementation of StatusBar
17206
17207 2004-08-09 15:36  jackson
17208
17209         * ITheme.cs: Add support for drawing status bar and getting status
17210           bar item sizes
17211
17212 2004-08-09 15:35  pbartok
17213
17214         * MouseButtons.cs:
17215           - Fixed values
17216
17217 2004-08-09 15:34  jackson
17218
17219         * ThemeWin32Classic.cs: Add support for drawing status bar and get
17220           status bar item sizes
17221
17222 2004-08-09 15:21  jackson
17223
17224         * ThemeWin32Classic.cs: Use known colors for default control
17225           colours
17226
17227 2004-08-09 15:12  jackson
17228
17229         * ThemeWin32Classic.cs: Make the default font static, it is static
17230           in control so this doesn't change functionality and creating fonts
17231           is sloooooow.
17232
17233 2004-08-09 14:56  pbartok
17234
17235         * X11Structs.cs:
17236           - Added GrabMode enum
17237
17238 2004-08-09 14:55  pbartok
17239
17240         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17241           - Removed Run method, was only required for initial development
17242
17243 2004-08-09 14:51  pbartok
17244
17245         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17246           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17247           capture
17248
17249 2004-08-09 13:48  pbartok
17250
17251         * XplatUIX11.cs:
17252           - Fixed default sizing for child windows
17253
17254 2004-08-09 12:56  pbartok
17255
17256         * XplatUIX11.cs:
17257           - Added generation of WM_DESTROY message
17258           - Added handling of window manager induced shutdown
17259
17260 2004-08-09 11:31  jackson
17261
17262         * ThemeWin32Classic.cs: New names for control properties
17263
17264 2004-08-09 11:25  jackson
17265
17266         * Control.cs: Use new color names
17267
17268 2004-08-09 11:02  jackson
17269
17270         * XplatUI.cs: Get default window properties from the theme
17271
17272 2004-08-09 11:01  jackson
17273
17274         * ITheme.cs: The theme engine now controls default window
17275           properties
17276
17277 2004-08-09 11:00  jackson
17278
17279         * ThemeWin32Classic.cs: Add default window color properties
17280
17281 2004-08-09 10:17  jackson
17282
17283         * ThemeWin32Classic.cs: Use correct default back color
17284
17285 2004-08-09 10:05  jackson
17286
17287         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17288           the theme now.
17289
17290 2004-08-09 09:56  jackson
17291
17292         * XplatUI.cs: Remove defaults, these are handled by the theme now.
17293
17294 2004-08-09 09:54  jackson
17295
17296         * Control.cs: Get default properties from the theme.
17297
17298 2004-08-09 09:53  jackson
17299
17300         * ITheme.cs: Themes now handle default control properties
17301
17302 2004-08-09 09:53  jackson
17303
17304         * ThemeWin32Classic.cs: Themes now handle default control
17305           properties so coloring will be consistent
17306
17307 2004-08-08 16:54  jordi
17308
17309         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
17310
17311 2004-08-08 15:08  jordi
17312
17313         * XplatUIX11.cs: fixes keyboard crash
17314
17315 2004-08-08 13:47  jordi
17316
17317         * Label.cs: add cvs header info
17318
17319 2004-08-08 12:09  jackson
17320
17321         * ThemeWin32Classic.cs: Add pen_buttonface
17322
17323 2004-08-08 11:52  jordi
17324
17325         * Label.cs, LinkLabel.cs: [no log message]
17326
17327 2004-08-08 11:34  jordi
17328
17329         * ThemeWin32Classic.cs: Use Windows Standard Colours
17330
17331 2004-08-07 17:32  jordi
17332
17333         * TrackBar.cs: throw exceptions of invalid enums values
17334
17335 2004-08-07 17:31  jordi
17336
17337         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
17338           draw method name
17339
17340 2004-08-07 16:56  jackson
17341
17342         * HorizontalAlignment.cs: Initial checkin
17343
17344 2004-08-07 13:16  jordi
17345
17346         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
17347           methods
17348
17349 2004-08-07 13:05  jordi
17350
17351         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
17352           GetSysColor defines
17353
17354 2004-08-06 18:01  pbartok
17355
17356         * ThemeWin32Classic.cs:
17357           - Fixed some rounding issues with float/int
17358
17359 2004-08-06 18:00  jackson
17360
17361         * DockStyle.cs, AnchorStyles.cs:
17362
17363                   Add flags and serializable attributes.
17364
17365 2004-08-06 17:46  pbartok
17366
17367         * XplatUIX11.cs:
17368           - Implemented GetParent
17369
17370 2004-08-06 17:18  pbartok
17371
17372         * TrackBar.cs:
17373           - Fixed some rounding issues with float/int
17374
17375 2004-08-06 17:17  pbartok
17376
17377         * X11Structs.cs, XplatUIX11.cs:
17378           - Fixed Refresh and Invalidate
17379
17380 2004-08-06 15:30  pbartok
17381
17382         * Control.cs, X11Structs.cs, XplatUIX11.cs:
17383           - Fixed recursive loop when resizing
17384           - Improved/fixed redrawing on expose messages
17385
17386 2004-08-06 09:53  jordi
17387
17388         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
17389           keyboard navigation
17390
17391 2004-08-06 08:02  pbartok
17392
17393         * X11Structs.cs, XplatUIX11.cs:
17394           - Fixed reparenting
17395           - Fixed window border creation
17396
17397 2004-08-05 15:38  pbartok
17398
17399         * XplatUIX11.cs:
17400           - Attempted fix for reparenting problems
17401
17402 2004-08-04 15:14  pbartok
17403
17404         * Control.cs:
17405           - Fixed Invalidation bug (calculated wrong client area)
17406           - Added ClientSize setter
17407
17408 2004-08-04 15:13  pbartok
17409
17410         * Form.cs:
17411           - Added AutoScale properties
17412
17413 2004-08-04 15:13  pbartok
17414
17415         * SWF.csproj:
17416           - Added latest files
17417
17418 2004-08-04 14:11  pbartok
17419
17420         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17421           XplatUIX11.cs:
17422           - Added Invalidate handling
17423
17424 2004-08-03 17:09  jordi
17425
17426         * XplatUIDriver.cs: fixes spelling mistake
17427
17428 2004-07-27 09:53  jordi
17429
17430         * TrackBar.cs: fixes trackbar events, def classname, methods
17431           signature
17432
17433 2004-07-27 09:29  jordi
17434
17435         * ScrollBar.cs: fixes scrollbar events
17436
17437 2004-07-27 04:38  jordi
17438
17439         * Control.cs: changes to be able to run winforms samples
17440
17441 2004-07-26 11:42  jordi
17442
17443         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
17444           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
17445
17446 2004-07-26 05:41  jordi
17447
17448         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
17449           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
17450           implementation
17451
17452 2004-07-22 09:22  jordi
17453
17454         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
17455           check link overlapping, implement events, and fixes
17456
17457 2004-07-21 10:28  jordi
17458
17459         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
17460
17461 2004-07-21 10:19  jordi
17462
17463         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
17464           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
17465           LinkLabelLinkClickedEventArgs.cs,
17466           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
17467           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
17468           implementation
17469
17470 2004-07-19 13:09  jordi
17471
17472         * Control.cs, Label.cs: label control re-written: added missing
17473           functionlity, events, and properties
17474
17475 2004-07-19 10:49  jordi
17476
17477         * Control.cs: fixes SetBounds logic
17478
17479 2004-07-19 01:29  jordi
17480
17481         * Control.cs: Call RefreshWindow only if the window has created
17482
17483 2004-07-15 14:05  pbartok
17484
17485         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17486           - Implemented ImageList and ImageList.ImageCollection classes
17487           - Added ColorDepth enumeration
17488           - Updated SWF VS.Net project
17489
17490 2004-07-15 11:06  jordi
17491
17492         * XplatUIStructs.cs: added MsgButons enum
17493
17494 2004-07-15 11:03  jordi
17495
17496         * Control.cs: added basic mouse handeling events
17497
17498 2004-07-15 03:38  jordi
17499
17500         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17501           Vertical TrackBar control implementation
17502
17503 2004-07-13 09:33  jordi
17504
17505         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17506
17507 2004-07-13 09:31  jordi
17508
17509         * Control.cs, Form.cs: commit: new properties and fixes form size
17510           problems
17511
17512 2004-07-09 14:13  miguel
17513
17514         * ProgressBar.cs: Spelling
17515
17516 2004-07-09 11:25  pbartok
17517
17518         * ProgressBar.cs:
17519           - Removed usage of Rectangle for drawing. Miguel pointed out it's
17520           faster
17521
17522 2004-07-09 11:17  miguel
17523
17524         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
17525
17526                 * ProgressBar.cs: Fixed spelling for `block'
17527
17528                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17529                 style guidelines.
17530
17531                 Avoid using the += on rect.X, that exposed a bug in the compiler.
17532
17533 2004-07-08 23:21  pbartok
17534
17535         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17536           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17537           BaseCollection.cs, Binding.cs, BindingContext.cs,
17538           BindingMemberInfo.cs, BindingsCollection.cs,
17539           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17540           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17541           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17542           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17543           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17544           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17545           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17546           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17547           FrameStyle.cs, GiveFeedbackEventArgs.cs,
17548           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17549           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17550           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17551           InputLanguageChangedEventArgs.cs,
17552           InputLanguageChangedEventHandler.cs,
17553           InputLanguageChangingEventArgs.cs,
17554           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17555           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
17556           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
17557           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
17558           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
17559           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
17560           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
17561           QueryAccessibilityHelpEventArgs.cs,
17562           QueryAccessibilityHelpEventHandler.cs,
17563           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
17564           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
17565           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
17566           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
17567           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
17568           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
17569           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
17570           XplatUIX11.cs, lang.cs:
17571           - Initial check-in
17572