2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
2
3         * XplatUIX11.cs: 
4           - Store the calculated rectangle in Hwnd object and use it when 
5             setting the client size
6           - Force Toolwindows to always be type Dock, to ensure they're on top
7
8 2006-05-18  Mike Kestner  <mkestner@novell.com>
9
10         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
11         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
12         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
13         Substantial refactoring to remove confusing nested classes. Coding
14         standard and Get+Set->property refactorings.  Shift to index based
15         highlighting in ComboListBox instead of constantly using IndexOf and
16         Items[]. Add invalidations on resize for DropDownList to fix ugliness
17         in FileDialog growth.  Draw borders manually since Simple mode needs
18         to look like two independent controls.  Make listbox border
19         conditional to DropDownStyle.  Improved OwnerDraw support.
20
21 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
22
23         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
24         Don't set the disposed graphics to null, so we can throw the "right"
25         exception if the graphics is reused later (added a flag to avoid 
26         double disposing). Some behaviours are different under 2.0 and are
27         filled under bug #78448.
28
29 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
30
31         * Control.cs: When double-buffering is enabled, we need to reset
32           our graphics context between paint calls. Otherwise, any 
33           transformations and other alterations on the context will 
34           become cumulative (#77734)
35
36 2006-05-18  Mike Kestner  <mkestner@novell.com>
37
38         * ListView.cs: do focused item selection like MS on clicks. 
39         Rework focus handling for ItemControl so LostFocus invalidates as
40         well.
41         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
42         the ListView ItemControl has focus.
43
44 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
45
46         * XplatUIX11.cs: If client_window ends up being width or height zero
47           due to border settings, move it off window inside whole_window (#78433)
48
49 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
50
51         * Mime.cs: Shrink the mime file cache correctly.
52
53 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
54
55         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
56
57 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
58
59         * XplatUIX11.cs (AddExpose): More sanity checks
60
61 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
62
63         * XplatUIX11.cs:
64           - AddExpose: Don't add expose ranges outside the size of our
65             window
66           - Cast opacity values to Int32 to avoid crashes with certain
67             values
68           - Added disabled code paths that protect against illegal cross-
69             thread painting (Developers.exe)
70
71 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
72
73         * ProgressBar.cs: Invalidate the control when it's resized
74           since block size is based on control size. (#78388)
75
76 2006-05-16  Miguel de Icaza  <miguel@novell.com>
77
78         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
79         of setting the incoming argument to the "reset" value, we set the
80         this.datamember to string.empty (before we were invalidating the
81         incoming data).   
82
83         Fixes 78420
84
85 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
86
87         * Form.cs: Only apply transparency settings after the form
88           is created. (Fixes #77800)
89
90 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
91
92         * ApplicationContext.cs: Grab the HandleDestroyed event so
93           we know when to fire OnMainFormClosed 
94
95 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
96
97         * Application.cs: Introduced sub-class to allow tracking of
98           threads and centralized triggering of the event mess for
99           ThreadExit, AppExit, etc..  (#76156)
100
101 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
102
103         * MimeIcon.cs:
104           - Do not return a null icon index value for a mime subclass.
105             Instead try the main mime type class too.
106           - Seems that some newer distributions don't have a link to some
107             gnome default icons anymore. So check the default gnome dir too.
108           
109
110 2006-05-16  Jackson Harper  <jackson@ximian.com>
111
112         * MdiClient.cs: Don't paint the parent background image if we have
113         our own background image.
114
115 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
116
117         * Control.cs:
118           - PerformLayout: Do not shrink space filled by DockStyle.Fill
119             controls, all filled controls are supposed to overlap (#78080)
120           - UpdateZOrder is supposed to update the control's z-order in the
121             parent's z-order chain. Fixed to behave like that
122           - BringToFront: Removed obsolete code
123           - SendToBack: Simplyfied
124           - SetChildIndex: Trigger layout calculations when Z-order changes
125             since layout is done by z-order
126
127 2006-05-16  Chris Toshok  <toshok@ximian.com>
128
129         [ fixes bug #78410 ]
130         * DataGrid.cs (set_AlternatingBackColor): use
131         grid_drawing.InvalidateCells instead of Refresh().
132         (set_BackColor): call grid_drawing.InvalidateCells.
133         (set_BackgroundColor): use Invalidate instead of Refresh.
134
135         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
136         invalidate the cell area.
137
138 2006-05-15  Chris Toshok  <toshok@ximian.com>
139
140         [ fixes bug #78011 ]
141         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
142         on to DataGridPaintRow.
143         (DataGridPaintRow): take a clip argument, and only draw the cells
144         which intersect it.  same with the not_usedarea.
145
146         * Theme.cs (DataGridPaintRow) add @clip parameter.
147
148         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
149         XplatUI.ScrollWindow.
150         (ScrollToRow): same.
151
152         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
153         with last column which was causing a gray swath to appear with the
154         XplatUI.ScrollWindow code.
155
156 2006-05-15  Chris Toshok  <toshok@ximian.com>
157
158         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
159         use XplatUI.ScrollWindow.
160         (VerticalScrollEvent): use XplatUI.ScrollWindow.
161
162 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
163
164         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
165
166 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
167
168         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
169           file since there are no equivalent X11 cursors
170
171 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
172
173         * MonthCalendar.cs : DateTimePicker should reflect selected date
174           on mouse*up*, not mouse*down*. Fixed originally reported part of
175           bug #76474.
176
177 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
178
179         * TabControl.cs : When argument index is equal or more than tab
180           count, just ignore. Fixed bug #78395.
181
182 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
183
184         * Control.cs: Dispose all child controls when control is diposed (#78394)
185
186 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
187
188         * ColorDialog.cs: Finally it is possible to select the color with
189           the text boxes
190
191 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
192
193         * PrintDialog.cs: Fix typo
194
195 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
196
197         * PrintDialog.cs: PrintDialog is not resizable
198         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
199           color. Made some ToolBar drawing methods protected virtual.
200
201 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
202
203         * PrintDialog.cs: Implementation of the PrintDialog
204
205 2006-05-12  Chris Toshok  <toshok@ximian.com>
206
207         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
208         thumb, instead use MoveThumb.  This has the side effect of making
209         most of the other thumb moving machinery use MoveThumb as well.
210         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
211         need to actually invalidate the rectangle where the new thumb will
212         go.
213         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
214         We force an Update() after, so it's not as fast as it could be,
215         but at least there's zero flicker and no droppings.
216         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
217         (UpdateThumbPos): add another argument (dirty), which says whether
218         or not to calculate/add dirty regions which we later invalidate.
219         For cases where we know we're going to use MoveThumb, we pass
220         false for this.  Otherwise, pass true.
221
222 2006-05-12  Jackson Harper  <jackson@ximian.com>
223
224         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
225         the status bar.
226         
227 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
228
229         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
230           and GetClipRegion methods and UserClipWontExposeParent property.
231         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
232           overriding UserClipWontExposeParent property, setting to false, since
233           Win32 handles the required expose messages to draw our clipped parent
234           areas internally
235         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
236           PaintEventStart to set the user clip region if set.
237         * Control.cs: 
238           - Now internally tracking the Region for the control since we need to
239             store it if the handle is not yet created and only set it when it
240             becomes created. Before setting the region forced handle creation
241           - Added code to draw the parents underneath a user-clipped region
242         * Hwnd.cs: Added UserClip property
243
244 2006-05-12  Chris Toshok  <toshok@ximian.com>
245
246         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
247         (set_Maximum): same.
248         (set_Minimum): same.
249         (set_SmallChange): same.
250         (OnMouseUpSB): remove the call to refresh when releasing the
251         thumb.  We shouldn't need it.
252         
253 2006-05-12  Miguel de Icaza  <miguel@novell.com>
254
255         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
256         AutoSize set to None, we do not need to relayout everything, we
257         just need to invalidate the current region.
258
259         (Draw): Do not draw the entire ClientArea, just redraw the
260         clip area being passed.
261
262         * MdiClient.cs: Make MdiClient constructor with the Form argument
263         internal. 
264
265 2006-05-12  Jackson Harper  <jackson@ximian.com>
266
267         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
268         parents background image,  but strangely not their own.
269         - (DrawStatusBarPanel): Take into account horizontal alignment
270         when drawing the strings and icons.
271
272 2006-05-12  Mike Kestner  <mkestner@novell.com>
273
274         * ListBox.cs: avoid invalidations for focus when the collection is
275         empty. 
276
277 2006-05-12  Chris Toshok  <toshok@ximian.com>
278
279         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
280         invalidate the entire thumb area.  Call InvalidateDirty which
281         limits the redraw to the thumb itself and surrounding pixels.
282
283         * XplatUIX11.cs (ScrollWindow): optimize copying.
284         
285 2006-05-12  Chris Toshok  <toshok@ximian.com>
286
287         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
288         Figure out the positioning/layout in a single pass instead of
289         multiple recursive invocations.  Speeds up the initial display of
290         the data grid.  Also, make many things private that were
291         originally public but unused outside this class.
292
293 2006-05-11  Jackson Harper  <jackson@ximian.com>
294
295         * MdiClient.cs: Improved layout code.
296
297 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
298
299         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
300           not SelectedObject.
301
302 2006-05-11  Chris Toshok  <toshok@ximian.com>
303
304         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
305         union of that will always be {0,0,width,height}.
306
307 2006-05-11  Jackson Harper  <jackson@ximian.com>
308
309         * Form.cs: Match MS's DefaultSize for forms (they must have
310         changed the size in sp2).
311
312 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
313
314         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
315
316 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
317
318         * TextControl.cs : Fixed bug #78109. This incorrect position
319           comparison caused crash on automatic line split.
320         * TextBoxBase.cs : reduce duplicate code.
321
322 2006-05-10  Jackson Harper  <jackson@ximian.com>
323
324         * MdiClient.cs: Active form is only sent to the back when using
325         the Next form functionality, when a form is clicked the current
326         active shouldn't be sent to the back.
327         - Layout the mdi windows when the container is first made visible.
328         * Form.cs: Give the MdiClient a ref to the containing form when we
329         create it.
330         
331 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
332
333         * LinkLabel.cs : link_font could be uninitialized, so populate one
334           before actual use. Fixed bug #78340.
335
336 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
337
338         * XplatUIX11.cs : clipboard format native value is IntPtr.
339           Fixed bug #78283.
340
341 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
342
343         * Control.cs: 
344           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
345             which is passed up the parent chain by DefWndProc
346           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
347             to DefWndProc (#77956)
348         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
349
350 2006-05-10  Jackson Harper  <jackson@ximian.com>
351
352         * MdiClient.cs: We need to remove the controls from the mdi
353         collection, when we close the window.
354         * MdiWindowManager.cs: Special handling of closing mdi windows.
355         * InternalWindowManager.cs: Make the close method virtual so the
356         mdi window manager can handle it specially.
357
358 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
359
360         * DataGrid.cs:
361           - Recalculate grid when the data source has changed
362           - Matches styles provided by user from all data sources types
363         * DataGridTableStyle.cs: For columns that provided by the user set the
364         with the preferred value is there was unassigned.
365         * CurrencyManager.cs: throw OnItemChanged event
366
367 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
368
369         * PictureBox.cs: Don't animate until handle is created. Start animation
370           when handle is created.
371
372 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
373
374         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
375           current codebase.
376         * XEventQueue.cs: We don't need to provide the extra info
377
378 2006-05-10  Jackson Harper  <jackson@ximian.com>
379
380         * MdiClient.cs: If the mdi clients parent form has a background
381         image set, we draw that background image for the mdi area's
382         background.
383
384 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
385
386         * TextBoxBase.cs: Set IBeam cursor (#78347)
387
388 2006-05-10  Mike Kestner  <mkestner@novell.com>
389
390         * ToolBar.cs: fix some text padding issues with ButtonSize
391         calculation. Update the default size to match MS documentation.
392         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
393         button size. Fixes #78296.
394
395 2006-05-10  Mike Kestner  <mkestner@novell.com>
396
397         * ListBox.cs: use is_visible for scrollbar positioning in case the
398         control isn't on screen yet.  Fix off by one with Right vs Width
399         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
400         
401 2006-05-10  Jackson Harper  <jackson@ximian.com>
402
403         * X11Dnd.cs: Drop to a control with another control on top of it.
404         * ToolBar.cs: Work on a copy of the buttons list, so that it can
405         be modified in click handlers. TODO: Look for similar problems in
406         other controls.
407
408 2006-05-09  Jackson Harper  <jackson@ximian.com>
409
410         * Form.cs: Window managers need the old window state when setting
411         window state now.
412         * InternalWindowManager.cs: Allow the base mdi window manager to
413         handle more of the MDI only stuff (like maximize buttons).
414         * MdiWindowManager.cs: Fix some snafus in changing the window
415         state.  Add all the menu functionality, for both popup and
416         maximized menus.
417         * MdiClient.cs: When a new form is selected the currently
418         activated form is sent to the back, this matches MS.
419         - Implement a new method to activate the next mdi child window.
420
421 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
422
423         * Control.cs: 
424           - Added new InternalCapture method to allow controls to prevent
425             the capture behaviour on the click handlers
426           - Switched to use InternalCapture
427         * ComboBox.cs:
428           - Using InternalCapture to prevent mouse captures from being released
429             on mouse button release (Fixes #78100)
430         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
431           returns Form borders if a caption is present. (Fixes #78310)
432
433 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
434
435         * TreeNode.cs: Changed serialization .ctor to not require every field
436           to be present. (#78265)
437         * OwnerDrawPropertyBag.cs: Added serialization .ctor
438
439 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
440
441         * MimeIcon.cs: for is faster than foreach for strings.
442
443 2006-05-05  Mike Kestner  <mkestner@novell.com>
444
445         * CheckedListBox.cs: update check handling code to not use selected.
446         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
447         behavior for visual feedback, motion response, shift/ctrl handling,
448         and properly deal with all 4 selection modes. Updates to bounds
449         handling logic.  Add scroll wheel support. [Fixes #77842]
450
451 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
452
453         * ListView.cs:
454           - Moved adding of Implicit controls into .ctor. That way, subsequent
455             creation of the controls will not cause them to think they are 
456             toplevel windows (fixes #78200 header problem)
457           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
458           - Switched visibility setting of header control to use internal field
459             to avoid triggering handle creation
460           - Now checking if handle is created before causing a refresh when items
461             are added (This makes us now match handle creation time with MS)
462         * Splitter.cs: Removed loading of private splitter cursor, switched to
463           Cursors version now that that is loading the right ones
464         * Cursors.cs: Load proper splitter cursors from resources
465         * Cursor.cs: Added second method of loading resource cursors for the 
466           VS.Net users amongst us
467
468 2006-05-05  Mike Kestner  <mkestner@novell.com>
469
470         * ListView.cs: give header_control a minimum size based on the
471         ListView size.
472
473 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
474
475         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
476           window seems to do that with metacity, so set that type. (#78120)
477
478 2006-05-05  Mike Kestner  <mkestner@novell.com>
479
480         * ListViewItem.cs: fix Details mode checkbox layout bug.
481         * ThemeWin32Classic.cs: draw a ListView column header for unused space
482         at the end of the header, if it exists. [Fixes for #78200]
483
484 2006-05-04  Jackson Harper  <jackson@ximian.com>
485
486         * MdiClient.cs: Add a helper property to get the container form.
487         * MdiWindowManager.cs: We have to make sure to use the menu origin
488         when drawing the icons and buttons, this fixes maximized window
489         icons/buttons on win32.
490         * InternalWindowManager.cs: Reset the restore captions when a
491         window goes from Maximized to Minimized and vice versa. Move the
492         DrawMaximizedButtons into the MdiWindowManager source, tool
493         windows can't be maximized. NOTE: This could use a little
494         refactoring if time ever permits.
495         
496 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
497
498         * TextBox.cs: Add MWFCategoryAttributes
499         * TextBoxBase.cs: Add MWFCategoryAttributes
500         * Form.cs: Add MWFCategoryAttributes
501
502 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
503
504         * Control.cs: Add MWFCategoryAttributes
505         * ScrollableControl.cs: Add MWFCategoryAttributes
506
507 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
508
509         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
510           Divider is true. Fix a little glitch in PropertyToolBar
511           drawing code
512
513 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
514
515         * Control.cs:
516           - Dispose: Call base.Dispose, this causes the disposed event
517             to be fired (and probably other, more important stuff)
518           - SetVisibleCore: Set is_visible to true after creating the
519             window so that the window still gets created invisible (if
520             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
521             to generate a WM_ACTIVE message
522         * Form.cs: Call Dispose when we want to destroy the window, instead of
523           just destroying the handle (Dispose will do that for us)
524         * XplatUIX11.cs:
525           - RootWindow also needs a queue, so we can properly process the
526             property change events from RootWindow (like Activate)
527           - Generatic synthetic WM_ACTIVE message when the active window is
528             being destroyed
529
530 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
531
532         * LinkLabel.cs: Trigger a recalc of our label dimensions when
533           bounds are changed
534
535 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
536
537         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
538           for determining width and height (image might not be assigned if
539           we're drawing an imagelist)
540
541 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
542
543         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
544         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
545           height from system
546         * Theme.cs: No longer returns hardcoded menu height, instead calls
547           new driver method
548         * Form.cs (OnLoad): Scaling happens before triggering Load events 
549           on MS (# 78257)
550
551 2006-05-01  Mike Kestner  <mkestner@novell.com>
552
553         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
554
555 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
556
557         * TextBoxBase.cs: Removed Fixme
558         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
559
560 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
561
562         * XplatUIX11.cs:
563           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
564             the rectangle relative to the parent, considering borders. We
565             don't really want that.
566           - ScrollWindow: Fixed warning to be more understandable
567         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
568           scrollbars and scroll only the visible area
569         * RichTextBox.cs: Removed debug output
570
571 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
572
573         * NumericUpDown.cs (Text): Just use base
574         * UpDownBase.cs: Ensure txtView is created before using it
575
576 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
577
578         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
579           casting to IntPtr to avoid 64bit overflow errors
580
581 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
582
583         * Control.cs:
584           - AllowDrop: Don't force handle creation.
585           - CreateHandle: Added call to tell driver if we're allowed to drop
586
587 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
588
589         * FileDialog.cs: Remember the last directory not only for the
590           current instance but also for new FileDialog instances.
591
592 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
593         
594         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
595           broke sending async messages
596
597 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
598
599         * XplatUIX11.cs:
600           - ScrollWindow: Fixed method. We finally generate expose events again
601             for scrolled areas. This was causing 'garbage' when scrolling
602             textbox and other controls that used ScrollWindow
603           - Switched from using the regular queue for paint events to the MS 
604             model of 'generating' paint events when the queue is empty.
605             We use the new XQueueEvent.Paint subclass to store which windows
606             need painting.
607           - AddExpose now takes the x/y/width/height of the exposed area
608             and inserts the window into the paint queue if not already there
609           - InvalidateWholeWindow: Switched to use new AddExpose method
610           - UpdateMessageQueue: Added which queue to monitor for paint events
611           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
612             the unlikely case nothing above handles it. We reset the expose
613             pending states to get them off the queue.
614           - GetMessage: Now pulls a paint event if no other events are in the
615             queue
616           - Invalidate: Switched to new AddExpose method
617           - PeekMessage: Updated to understand pending paint events
618           - UpdateWindow: Fixed logic bug. We were only updating if the window
619             didn't need updating. Also switched to sending WM_PAINT directly,
620             like MS does.
621         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
622           and random access Remove(). The random access is needed to handle
623           UpdateWindow() where a WM_PAINT is sent directly without accessing
624           the queue.
625         * ScrollBar.cs: Added Update() calls to cause immediate updates to
626           allow for better feedback when scrolling. Scrollbars are small and
627           the immediate update should make it 'feel' more responsive without
628           slowing things down. ScrollBar still needs it's invaliate logic
629           updated to not always invalidate the whole bar on certain changes.
630
631 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
632
633         * Control.cs:
634         (BackColor): if the control does not support a transparent background,
635         return the default backcolor when the parent backcolor is transparent.
636
637 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
638
639         * Application.cs: Updated to new StartLoop/GetMessage API
640         * RichTextBox.cs: Provide some output on RTF parsing errors
641         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
642           new queue_id argument to GetMessage and PeekMessage to allow faster
643           handling of per-thread queues in drivers.
644         * Hwnd.cs: Added Queue tracking and property
645         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
646         * XEventQueue.cs: Added thread trackingA
647         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
648         * XplatUIX11.cs:
649           - Implemented new per-thread queue
650           - GetMessage: Fixed return/break behaviour on several cases. We were
651             returning stale messages in some cases, instead of just processing
652             the next message
653
654 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
655
656         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
657
658 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
659
660         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
661           fixed off-by-one comparisons between Width/Height and Right/Bottom.
662
663 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
664
665         * PropertyGridView.cs: Fix drop down width.
666
667 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
668
669         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
670           a mess in DrawToolBar, so I removed one of them.
671
672 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
673
674         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
675           needed (clip). Otherwise we get artifacts.
676
677 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
678
679         * FixedSizeTextBox.cs: Added constructor to allow specifying which
680           dimension is fixed
681         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
682           and switched FixedSizeTextBox to only be fixed vertical (#78116)
683         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
684           if it matches the scale base font (avoids unneeded scaling)
685
686 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
687
688         * X11DesktopColors.cs: One gtk_init_check should be enough
689
690 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
691
692         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
693           match MS behaviour
694
695 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
696
697         * TextBoxBase.cs: 
698           - Generate OnTextChanged for Backspace even if we're only deleting
699             the current selection
700           - When setting the Text property, only select all text if the
701             control does not have focus when it is being set. Otherwise
702             just place the cursor at the beginning of the control
703
704 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
705
706         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
707           Added a little helper to draw PropertyGrid ToolBar with a different
708           border and a different BackColor.
709         * PropertyGrid.cs: Some background parts didn't get painted with the
710           correct background color. Added a class that helps us to draw the
711           correct border for PropertyGridView and a class that helps us to
712           draw ToolBars with a different backcolor
713         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
714
715 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
716
717         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
718         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
719
720 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
721
722         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
723           into the palette entries. Also, since we're working on a copy
724           we needed to copy the palette back onto the bitmap.
725         * Cursor.cs: Same fix as XplatUIWin32.cs.
726
727 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
728
729         * ImageListStreamer.cs: Need to read the var (or we're off)
730
731 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
732
733         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
734           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
735           TextBoxBase.cs: Unused var fixes
736         * AxHost.cs: Small 2.0 fix
737         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
738           as it seems that is what at least Metacity expects. This will make
739           icons show up on 64bit platforms. We still have some 64bit size
740           issues, though, since the startup app window size still won't match.
741
742 2006-04-25  Mike Kestner  <mkestner@novell.com>
743
744         * *.cs: cleanup newly reported exception var unused warnings.
745
746 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
747
748         * ThemeWin32Classic.cs: Button image alignment now matches exactly
749           ms
750
751 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
752
753         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
754           image. The image position is always the same, no matter if the
755           button is pressed or not.
756
757 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
758
759         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
760           selection and set the correct filename for SaveFileDialog.
761           Patch by Emery Conrad.
762
763 2006-04-24  Mike Kestner  <mkestner@novell.com>
764
765         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
766         check for item.X outside the ClientRect instead of item.Y. Fixes
767         #78151.
768
769 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
770
771         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
772         trust that value blindly and do some sanity check. Fixes bug #77814.
773
774 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
775
776         * ImageListStreamer.cs: save the mask as a 1bpp image.
777
778 2006-04-21  Mike Kestner  <mkestner@novell.com>
779
780         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
781         pass Checked and Indeterminate to the Theme Engine. Improve
782         encapsulation with ListBox.
783         * ListBox.cs: Keep a StringFormat instead of calculating it every item
784         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
785         nested types.  Move all CheckState functionality to CheckedListBox.
786         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
787         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
788         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
789         single base list. Fix scrollbar sizing and placement to mirror MS.
790         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
791         used.
792         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
793         for CheckedListBox by using new DrawItemState info.  Center the
794         checkboxes on the items. Use new StringFormat property.
795
796 2006-04-18  Jackson Harper  <jackson@ximian.com>
797
798         * Form.cs: MdiChildren don't do default locations the same way as
799         regular forms.  This prevents a crash when trying to position the
800         mdi windows.
801
802 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
803
804         * PropertyGridTextBox.cs: Formatting, copyright
805         * PropertiesTab.cs: Formatting
806         * PropertyGrid.cs: Formatting
807         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
808           click toggling of values
809           
810 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
811
812         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
813         * Control.cs (.ctor): verify_thread_handle is static, don't reset
814           every time a control is created
815         * Application.cs: Removed obsolete EnableRTLMirroring method
816
817 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
818
819         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
820         SelectedIndex to -1. Fixes bug #78121.
821
822 2006-04-17  Jackson Harper  <jackson@ximian.com>
823
824         * Binding.cs: Handle null values for Current and BindingContext.
825         This occurs when binding is a little delayed.
826         * CurrencyManager.cs: return null for Current when there are no
827         items in the list.
828         - Hookup to the listchanged event on the DataView and update
829         bindings when the list is changed.  This fixes late binding of
830         controls.
831
832 2006-04-17  Jackson Harper  <jackson@ximian.com>
833
834         * X11Dnd.cs:
835         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
836         Ringenbach.
837
838 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
839
840         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
841           place
842         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
843           with the correct ButtonState
844
845 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
846
847         * XplatUIX11.cs: Improved distinguishing between window types to
848           tell the WM a type closer to what the app wants (Fixes #78107)
849
850 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
851
852         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
853           GrabHandle
854
855 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
856
857         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
858           drawing code to reflect the size grip changes
859
860 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
861
862         * ImageListStreamer.cs: fix handling of the mask that follows the main
863         bitmap when deserializing and serialize it properly. The generated mask
864         should better be a 1bpp image, but I'll do that later.
865
866 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
867
868         * FileDialog.cs: Show something in the DirComboBox on *nix if the
869           path doesn't fit into some of our Current.Places
870
871 2006-04-13  Jackson Harper  <jackson@ximian.com>
872
873         * ComboBox.cs: Use borders instead of drawing our own decorations,
874         try to obey correct rules for heights.
875         * Theme.cs:
876         * ThemeNice.cs:
877         * ThemeClearLooks.cs:
878         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
879         this is now handled by borders.
880         - Remove unused DrawListBoxDecorationSize method.
881         
882 2006-04-13  Mike Kestner  <mkestner@novell.com>
883
884         * MenuAPI.cs: null guarding for the disbled click check fixes crash
885         reported by Alex.
886
887 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
888
889         * ThemeWin32Classic.cs: 
890           - Fixed CPDrawStringDisabled
891           - Corrected drawing of disabled menu items
892           - Fixed drawing of disabled radio buttons (bug #78095)
893           - Draw check in a disabled CheckBox with color ControlDark 
894
895 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
896
897         * Form.cs: Use the provided width when calculating the menu size;
898           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
899           and ClientSize.Width won't be updated yet
900         * Application.cs: Use Visible instead of Show() to make form visible,
901           this way we create the handle later and menusize is considered
902
903 2006-04-12  Mike Kestner  <mkestner@novell.com>
904
905         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
906         reporting.
907
908 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
909
910         * TextBox.cs: Implemented context menu
911
912 2006-04-12  Mike Kestner  <mkestner@novell.com>
913
914         * ListView.cs: implement box selection. fixes #77838.
915         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
916
917 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
918
919         * XplatUIX11.cs: Added setting of window type when transient window
920           is created (metacity would move it otherwise)
921         * X11Structs.cs: Added WINDOW_TYPE atoms
922         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
923           background (the control is Opaque but still wants transparent
924           backgrounds)
925
926 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
927
928         * Control.cs: Added OnPaintBackgroundInternal to allow controls
929           that set Opaque but don't mean it (like all ButtonBase-derived
930           controls) to still draw their background
931         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
932           the background
933
934 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
935
936         * Control.cs (PaintControlBackground): Set the graphics object
937           on our PaintEvent to null to prevent it from being disposed
938           when the PaintEvent gets disposed
939
940 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
941
942         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
943         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
944
945 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
946
947         * Control.cs: 
948           - Added transparency check to BackColor property. Transparent
949             backgrounds are only allowed if the control styles permit it
950           - Added recursive painting of parent control background and
951             foreground if a control with a transparent backcolor is drawn
952             (Thanks to Tim Ringenback for providing his 'hack' as a base
953              for this patch) Fixes #77985 and #78026.
954           - Added Opaque style check before calling OnPaintBackground, no
955             need to draw the background if the control is opaque
956           - Removed ControlAccessibleObject owner variable (inherited from
957             base, no need to define again)
958           - Added some documentation links explaining the drawing events
959             and styles
960
961 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
962
963         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
964           that the affected control is the located at the left border of our
965           parent (Fixes #77936)
966
967 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
968
969         * TextBoxBase.cs: When rendering disabled or readonly controls,
970           draw the background with 'Control' instead of 'Window' color as
971           long as the user hasn't specifically set a color
972
973 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
974
975         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
976           since that won't be updated if the user types text (only if it's
977           programatically set)
978
979 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
980
981         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
982           layout changes do to app-triggered resizes will have the proper
983           display rectangle for layout
984
985 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
986
987         * ThemeWin32Classic.cs:
988           - Make use of the SystemBrushes and SystemPens wherever possible
989           - Corrected some highlight colors
990           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
991             drawing
992         * Theme.cs: Added Empty field to CPColor struct
993
994 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
995
996         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
997           is displayed when calculating the display rectangle. Thanks to Mike
998           for teaching me the err of my ways.
999
1000 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1001
1002         * ScrollableControl.cs:
1003           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1004             (instead of 0,0) and we now return the real width/height instead of
1005             just the clientrectangle, adjusted for padding. The rectangle is
1006             now cached and created by the new CalculateDisplayRectangle method.
1007           - Created new CalculateDisplayRectange method, which basically does
1008             what get_DisplayRectangle() did originally, but now using the 
1009             right edge instead of DisplayRectangle to determine the size of
1010             our scrollbars
1011           - get_Canvas(): Fixed it to properly calculate canvas for 
1012             right/bottom controls which seem to be placed to the right/bottom
1013             of any controls that have a fixed location
1014           - Removed TODO that's taken care of
1015           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1016             and SetDisplayRectLocation according to new MSDN2 docs
1017           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1018             event when that is called, this is added for compatibility
1019           - ScrollControlIntoView(): Implemented.
1020           - Switched scrollbars to be implicit, they shouldn't be selectable
1021         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1022           call it when the active control is set/changed
1023         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1024         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1025           implicit_control variable (used for native Win32 message generation)
1026         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1027           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1028         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1029         * XplatUIStructs.cs: Added ScrollBarCommands enum
1030
1031 2006-04-10  Jackson Harper  <jackson@ximian.com>
1032
1033         * ButtonBase.cs:
1034         * CheckedListBox.cs:
1035         * ComboBox.cs:
1036         * DataGrid.cs:
1037         * DataGridView.cs:
1038         * Form.cs:
1039         * GroupBox.cs:
1040         * ListBox.cs:
1041         * PrintPreviewControl.cs:
1042         * ProgressBar.cs:
1043         * PropertyGrid.cs:
1044         * Splitter.cs:
1045         * StatusBar.cs:
1046         * TrackBar.cs:
1047         * UpDownBase.cs: Fixup base event overrides.
1048         
1049 2006-04-06  Mike Kestner  <mkestner@novell.com>
1050
1051         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1052         all user-initiated value changes to min <= value <= max-thumbsz+1.
1053         (set_Value): check for vert/horiz when calculating new thumb position.
1054         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1055         like MS does.
1056         (OnMouseMoveSB): refactor the thumb dragging code and refine
1057         invalidation logic to reduce flicker.
1058         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1059         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1060         (UpdateThumbPosition): small code readability cleanup
1061
1062 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1063
1064         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1065           different
1066
1067 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1068
1069         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1070
1071 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1072
1073         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1074         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1075           This dramatically reduces the number of Pen.Dispose calls. 
1076           Where possible call ResPool methods only once instead of calling it
1077           over and over again (for example for the same color).
1078
1079 2006-04-06  Mike Kestner  <mkestner@novell.com>
1080
1081         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1082         Also remove an unused private field on the collection. Fixes #77972.
1083
1084 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1085
1086         * ThemeNice.cs: Added ToolBar drawing code
1087
1088 2006-04-06  Mike Kestner  <mkestner@novell.com>
1089
1090         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1091         I'm assuming that means we need to look up the toplevel for the
1092         provided control. Fixes the crash trace in #77911 but exposes another
1093         crash in some strange reflection usage in NDocGui.
1094
1095 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1096
1097         * ThemeNice.cs: Gave it a little silver touch and added Images
1098           method
1099         * FontDialog.cs: FontDialog is not resizable
1100         * FileDialg.cs: Added SizeGripStyle.Show
1101
1102 2006-04-05  Jackson Harper  <jackson@ximian.com>
1103
1104         * KeyboardLayouts.cs: Remove warning.
1105
1106 2006-04-05  Jackson Harper  <jackson@ximian.com>
1107
1108         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1109         all of our controls instead of Paint +=.
1110         * ListBox.cs:
1111         * ListView.cs:
1112         * MenuAPI.cs:
1113         * MessageBox.cs:
1114         * NotifyIcon.cs:
1115         * ProgressBar.cs:
1116         * ScrollBar.cs:
1117         * Splitter.cs:
1118         * StatusBar.cs:
1119         * TabControl.cs:
1120         * TextBoxBase.cs:
1121         * ToolBar.cs:
1122         * TrackBar.cs:
1123         * UpDownBase.cs:
1124         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1125         use OnPaintInternal. Remove Width/Height and Visible checks in
1126         paint handler, this is done at a higher level now.
1127         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1128         * PaintEventArgs.cs: Add a handled flag so controls that don't
1129         want anymore painting after OnPaintInternal can make sure OnPaint
1130         isn't called.
1131
1132 2006-04-05  Mike Kestner  <mkestner@novell.com>
1133
1134         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1135         state of the form, so that we don't process events when Modal dialogs
1136         are up. Fixes #77922.
1137
1138 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1139
1140         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1141           checking is done.
1142
1143 2006-04-05  Mike Kestner  <mkestner@novell.com>
1144
1145         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1146
1147 2006-04-05  Mike Kestner  <mkestner@novell.com>
1148
1149         * ListView.cs (HeaderMouseMove): null guarding for the over column
1150         when setting up the drag_to_index.  Fixes #78015.
1151
1152 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1153
1154         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1155           in the taskbar. Transient windows seem to accomplish that.
1156
1157 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1158
1159         * Form.cs:
1160           - Re-enabled CreateParams.X/Y code for FormStartPosition
1161           - Added code for manual placement when creating the Control
1162           - Incomplete patch to treat MDI forms differently when
1163             setting the ClientSizeCore. (Still need to figure out handling
1164             x/y coords there)
1165         * XplatUIX11.cs:
1166           - When we're explicitly setting the X/Y position of a non-Child
1167             window, let the WM know. Metacity really wants this.
1168
1169 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1170
1171         * ThemeNice.cs: Added CPDrawButton
1172
1173 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1174
1175         * ThemeNice.cs: Changed the color for focused buttons and activated
1176           the arrows for small scroll buttons.
1177
1178 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1179
1180         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1181           anymore. Changed some method modifiers to protected (virtual)
1182         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1183           changes
1184         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1185           Updated drawing of menus, buttons and progressbars; added
1186           CPDrawBorder3D 
1187
1188 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1189
1190         * ImageListStreamer.cs: implemented serialization/deserialization
1191         of the images.
1192
1193 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1194
1195         * ThemeWin32Classic.cs:
1196           - Removed all the DrawFrameControl stuff; CPDrawButton,
1197             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1198             inside the methods
1199           - Updated and corrected the drawing code of CPDrawButton,
1200             CPDrawCheckBox and CPDrawRadioButton to better match ms
1201           - Updated theme checkbox and radiobutton code to use the CP*
1202             methods
1203
1204 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1205
1206         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1207           bug is fixed
1208
1209 2006-03-31  Jackson Harper  <jackson@ximian.com>
1210
1211         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1212         sometimes.
1213         * UpDownBase.cs: Don't CreateGraphics manually, use a
1214         Refresh. Ideally we would invalidate the correct areas here.
1215
1216 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1217
1218         * XplatUIX11.cs: 
1219           - We now track the mapping state of windows. If a window (or 
1220             one of it's parents) is not mapped we no longer permit
1221             WM_PAINT messages to be generated since we'd otherwise get 
1222             lots of BadMatch X errors. Jackson did all the work figuring
1223             out the problem.
1224           - Destroying the caret if the window it's contained in is 
1225             destroyed. Can't use regular DestroyCaret method since it
1226             might fall into a drawing function (trying to remove the
1227             caret) and with that generate new BadMatch errors. Again,
1228             Jackson tracked this down.
1229           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1230             make sure we send the messages to all windows. (The old code
1231             would send the WM_DESTROY to the window, and then all child
1232             windows would be 'gone' because the WM_DESTROY handle lookup
1233             would no longer find the destroyed window)
1234         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1235         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1236
1237 2006-03-31  Jackson Harper  <jackson@ximian.com>
1238
1239         * ScrollableControl.cs: Dont recalc if we are not visible.
1240
1241 2006-03-31  Mike Kestner  <mkestner@novell.com>
1242
1243         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1244         the visibility branch.
1245
1246 2006-03-31  Jackson Harper  <jackson@ximian.com>
1247
1248         * ScrollBar.cs: Cap values when incrementing/decrementing.
1249
1250 2006-03-31  Mike Kestner  <mkestner@novell.com>
1251
1252         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1253         * ToolTip.cs: guard against timer expirations with no active control.
1254         Not sure why it happened.
1255
1256 2006-03-31  Mike Kestner  <mkestner@novell.com>
1257
1258         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1259         text.
1260         * ToolTip.cs: Position the tooltip based on where the cursor is at
1261         popup time, not at MouseEnter time.  Add a Down state so that we don't
1262         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1263         positioning offset. Lookup DisplaySize at positioning time, since it
1264         can theoretically change during invocation.
1265         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1266         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1267
1268 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1269
1270         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1271           Fixes behaviour when the Text property of the box is String.Empty
1272
1273 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1274
1275         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1276           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1277           a window)
1278
1279 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1280
1281         * FileDialog.cs: Visual enhancement for the popup buttons in 
1282           PopupButtonPanel
1283
1284 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1285
1286         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1287           code
1288
1289 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1290
1291         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1292           highlighted menu items to match ms
1293
1294 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1295
1296         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1297
1298 2006-03-30  Mike Kestner  <mkestner@novell.com>
1299
1300         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1301         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1302         go active to account for HotLight to Selected transition.
1303         * MenuItem.cs: add internal Selected prop. Fill out the Status
1304         property by calculating it from item info. Add HotLight,
1305         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1306
1307 2006-03-30  Mike Kestner  <mkestner@novell.com>
1308
1309         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1310
1311 2006-03-29  Jackson Harper  <jackson@ximian.com>
1312
1313         * Form.cs: Implement TODO.
1314
1315 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1316
1317         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1318           missing proper dialog setup in the constructor
1319
1320 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1321
1322         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1323         * Control.cs:
1324           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1325           - Fixed ResetBindings and removed TODO
1326           - Added check for cross-thread calls to get_Handle()
1327           - Added Marshaller attribute for set_Font to satisfy class status
1328         * FontDialog.cs: Removed TODOs that seemed implemented
1329         * UpDownBase.cs: Removed unneeded TODO and Fixme
1330         * MessageBox.cs: Implemented support for Default button and removed TODO
1331         * FileDialog.cs: Removed obsolete TODO
1332         * DomainUpDown.cs: Removed obsolete TODO
1333         * ButtonBase.cs: Removed obsolete TODO
1334         * XplatUIWin32.cs: Removed obsolete TODO
1335         * Form.cs:
1336           - Removed obsolete TODO
1337           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1338             internal status updates
1339           - Making sure the active control is selected when the control is created
1340         * CurrencyManager.cs: Removed obsolete TODO
1341
1342 2006-03-29  Mike Kestner  <mkestner@novell.com>
1343
1344         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1345         of PrintPreviewDialog and RichTextBox.
1346
1347 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1348
1349         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1350           DarkDark, Light and LightLight colors for a specific color
1351         * ThemeWin32Classic.cs:
1352           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1353             Appearance = Button 
1354           - Make use of the new ResPool helper CPColor
1355           - Draw ProgressBar and StatusBar with correct 3D borders
1356
1357 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1358
1359         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1360
1361 2006-03-28  Mike Kestner  <mkestner@novell.com>
1362
1363         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1364         calculating col/row counts.
1365
1366 2006-03-28  Mike Kestner  <mkestner@novell.com>
1367
1368         * ColumnHeader.cs:
1369         * ListView.cs:
1370         * ListViewItem.cs:
1371         * Menu.cs: 
1372         switch to explicit interface method implementation for some methods
1373         corcompare identifies as inconsistent with MS.
1374
1375 2006-03-28  Mike Kestner  <mkestner@novell.com>
1376
1377         * MainMenu.cs: 
1378         * Menu.cs:
1379         add a few missing methods from the class status output.
1380
1381 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1382
1383         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1384           correct.
1385
1386 2006-03-28  Mike Kestner  <mkestner@novell.com>
1387
1388         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1389
1390 2006-03-27  Mike Kestner  <mkestner@novell.com>
1391
1392         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1393         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1394
1395 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1396
1397         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1398
1399 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1400
1401         * ThemeWin32Classic.cs:
1402           - GroupBox: Inserted a little gap between the text and the lines
1403             on the right side
1404           - Made the code in CPDrawBorder3D more readable
1405           - Corrected the drawing location of the up and down arrows in 
1406             CPDrawScrollButton
1407
1408 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1409
1410         * ControlPaint.cs: Corrected line widths in DrawBorder for
1411           ButtonBorderStyle Inset and Outset
1412
1413 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1414
1415         * ThemeWin32Classic.cs:
1416           - Rewrote the totally broken CPDrawBorder3D method. That was
1417             one of the main problems for the terrific ThemeWin32Classic
1418             look
1419           - Updated and corrected Button drawing
1420           - Correct the dimensions of the SizeGrip to match ms ones
1421           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1422         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1423           Border3DStyle.Sunken to match ms.
1424
1425 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1426
1427         * ThemeWin32Classic.cs: First small part of the "de-uglify
1428           ThemeWin32Classic" effort, SizeGrip
1429
1430 2006-03-24  Jackson Harper  <jackson@ximian.com>
1431
1432         * XplatUIX11.cs: Give a max idle time of one second, this matches
1433         MS and forces an Idle event every second when there are no other
1434         events in the queue.
1435
1436 2006-03-24  Mike Kestner  <mkestner@novell.com>
1437
1438         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1439         * ListView.Item.cs: fix layout issues with null image lists and images
1440         smaller than checkbox size.
1441         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1442         mode like MS does.  It's weird, but consistent.  ;-)
1443         Fixes #77890.
1444
1445 2006-03-24  Mike Kestner  <mkestner@novell.com>
1446
1447         * ListView.cs: Scroll wheel support for the item control.  Fixes
1448         #77839.
1449
1450 2006-03-23  Jackson Harper  <jackson@ximian.com>
1451
1452         * ScrollableControl.cs: Special case negative sized areas, not
1453         zero.
1454         * MonthCalendar.cs: Save the rect of the clicked date so we can
1455         use it for invalidation.
1456         - Try to cut down on the number of invalidates
1457         - Invalidate the rect the mouse is over and was over when moving
1458         the mouse, so we get the focus box following the cursor.
1459
1460 2006-03-23  Mike Kestner  <mkestner@novell.com>
1461
1462         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1463         focus rectangle drawing. Fixes #77835.
1464
1465 2006-03-23  Mike Kestner  <mkestner@novell.com>
1466
1467         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1468         the if and else if and reverting back to the original == check on the
1469         None conditional.
1470
1471 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1472
1473         * FontDialog.cs: Update the example panel if the selected index of
1474           the fontListBox changes.
1475
1476 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1477
1478         * FileDialog.cs: Make FileDialog remember which directory it was in
1479           last in the same execution.
1480
1481 2006-03-22  Mike Kestner  <mkestner@novell.com>
1482
1483         * FileDialog.cs: make the DropDownMenu on the toolbar display
1484         RadioChecks since they are mutually exclusive and that's what MS does.
1485
1486 2006-03-22  Mike Kestner  <mkestner@novell.com>
1487
1488         * Theme.cs: add Color param to CPDrawMenuGlyph.
1489         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1490         checks and radio marks and arrows are visible on highlighted items.
1491         * ControlPaint.cs: update to use new Theme signature.
1492
1493 2006-03-22  Mike Kestner  <mkestner@novell.com>
1494
1495         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1496         is active. Fixes #77870.
1497
1498 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1499
1500         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1501           to be focused/selected after startup
1502
1503 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1504
1505         * ColorDialog.cs: 
1506           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1507             CustomColors and ShowHelp properties
1508           - Some internal rewrites to get better results when using the
1509             ColorMatrix
1510
1511 2006-03-22  Mike Kestner  <mkestner@novell.com>
1512
1513         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1514         HoverSelection.  Fixes #77836.
1515
1516 2006-03-22  Mike Kestner  <mkestner@novell.com>
1517
1518         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1519         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1520         1, not 0.  Update ButtonSize based on a pixel count of the win32
1521         control.  Adjust the toolbar size/location for new button size.
1522
1523 2006-03-22  Jackson Harper  <jackson@ximian.com>
1524
1525         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1526         true.
1527         * ScrollBar.cs: When doing increments and decrements we need to
1528         set the Value property so that ValueChanged gets raised. A
1529         possible optimization here would be to make an internal SetValue
1530         that doesn't invalidate immediately.
1531         * ToolTip.cs: Tooltips get added to their container (when
1532         supplied) so they get disposed when the container is disposed.
1533         - Don't create tooltips for String.Empty. This prevents all these
1534         little 2-3 pixel windows from showing up when running nunit-gui
1535         and driving me mad.
1536         * Form.cs: Don't set topmost when setting the owner if the handles
1537         haven't been created yet.  The topmost set will happen when the
1538         handles are created.
1539
1540 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1541
1542         * XplatUIX11.cs:
1543           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1544           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1545             visible (to allow them to recalculate their sizes)
1546
1547 2006-03-21  Mike Kestner  <mkestner@novell.com>
1548
1549         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1550         methods. Removed a ton of redundant code.  Still not really happy with
1551         the border rendering, but I think that's mainly because of the
1552         ControlDarkDark being black instead of a dark grey. Depending on how 
1553         close we want to be, we might want to revisit those color choices.
1554         Among the new features added during the refactor were DropDownArrow
1555         pressed rendering, Disabled image rendering.  Proper flat appearance
1556         boundary rendering.  Removed the Divider and Wrapping dividers since I
1557         can't figure out any combination of themes and conditions to make the
1558         MS control draw a horizontal line on a toolbar despite what the
1559         Divider property docs indicate.
1560         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1561         conditions and incorrect layout.  Updated to coding standard.
1562         * ToolBarButton.cs: refactored layout and positioning code from
1563         ToolBar to here.  Invalidate wherever possible instead of forcing
1564         redraws of the whole toolbar. 
1565         (Known remaining issues: explicit ButtonSize smaller than provided
1566         images.)
1567
1568 2006-03-21  Mike Kestner  <mkestner@novell.com>
1569
1570         * ContextMenu.cs (Show): use the position parameter instead of just
1571         showing at the MousePosition.
1572
1573 2006-03-21  Jackson Harper  <jackson@ximian.com>
1574
1575         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1576         control handle this.
1577         * TreeNodeCollection.cs: If we are clearing the root node we need
1578         to reset top_node so calcs can still happen.
1579         * ThemeWin32Classic.cs: This is a Flags so we need to check
1580         properly.
1581         
1582 2006-03-21  Jackson Harper  <jackson@ximian.com>
1583
1584         * DataGrid.cs: Create columns when the binding context has been
1585         changed.
1586         * X11Structs.cs: Keysyms are uints.
1587         - Add size to fix build.
1588
1589 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1590
1591         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1592           XplatUIOSX.cs: 
1593           - Added ResetMouseHover method to allow controls to retrigger
1594             hovering if they need it more than once
1595           - Implemented MouseHoverTime and MouseHoverSize properties
1596         * Timer.cs: Start() must reset the interval
1597         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1598           properties
1599
1600 2006-03-21  Jackson Harper  <jackson@ximian.com>
1601
1602         * X11Keyboard.cs: improved layout detection. Move the nonchar
1603         tables into this file.
1604         * KeyboardLayouts.cs: Move the tables into resource files.
1605
1606 2006-03-21  Mike Kestner  <mkestner@novell.com>
1607
1608         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1609
1610 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1611
1612         * Mime.cs: Various speed optimizations. Looking up mime types
1613           is now 2 times faster than before
1614
1615 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1616
1617         * CreateParams.cs: Added internal menu field
1618         * Control.cs: 
1619           - Switched call order for UpdateBounds; now we always call
1620             the one that also takes ClientSize, and we're calculating the 
1621             client size via driver method in the others. The previous
1622             method of tracking client size by difference wasn't working
1623             for forms where even the starting client size wouldn't match
1624             the overall form size (due to borders) (Part of fix for #77729)
1625           - CreateParams(): Do not use parent.Handle unless the handle is
1626             already created. Causes havoc with Nexxia and throws off our
1627             creation of controls
1628         * XplatUIX11.cs:
1629           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1630           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1631             method (consolidates code)
1632           - Changed RequestNCRecalc to use new PerformNCCalc method
1633           - Added calls to RequestNCRecalc when menus and borders are changed
1634             to allow app to set NC size. (Part of fix for #77729) This matches
1635             when MS send a WM_NCRECALC on Win32 windows.
1636           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1637             (Part of fix for #77729). This matches what MS does, they also
1638             send that message when the form is made visible.
1639           - XException.GetMessage: Improved usability of X errors by including
1640             a translation of the window into Hwnd and Control class
1641           - Improved debug info for window creation, reparenting and destruction
1642           - Created helper method WindowIsMapped() [Currently not used]
1643         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1644         * Form.cs:
1645           - CreateParams: Now setting our menu on the new internal menu field
1646           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1647             avoid calculating the same property twice
1648         * Hwnd.cs:
1649           - Improved usability of ToString() for debugging purposes
1650           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1651             determine the height of the menu, instead of just the font. This
1652             required to also create a graphics context and to keep a bmp 
1653             around (for performance reasons)
1654
1655 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
1656
1657         * MenuAPI.cs: Added OnMouseUp method
1658         * Form.cs:
1659           - Now remembering the requested client size, avoids size errors
1660           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1661             instead of base if the menu is active. This is required due to
1662             control now capturing and releasing on down/up and it would
1663             prematurely release our menu capture
1664
1665 2006-03-17  Jackson Harper  <jackson@ximian.com>
1666
1667         * KeyboardLayouts.cs: Add the czech layouts.
1668
1669 2006-03-16  Jackson Harper  <jackson@ximian.com>
1670
1671         * Control.cs: Use the viewport space when sizing not the controls
1672         client size, so things like ScrollableControl that effect the
1673         viewport size (when scrollbars are added) are computed correctly.
1674         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1675         of ManagerEntrys.
1676         - Handle creating BindingManagers for null data sources.
1677         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1678         source, otherwise when rows are added they are added to the 'fake'
1679         datasource and we will crash when trying to set the position in
1680         those rows.
1681         - Use Implicit scrollbars on the datagrid so they arent
1682         selectable.
1683         
1684 2006-03-16  Jackson Harper  <jackson@ximian.com>
1685
1686         * Binding.cs:
1687         * InternalWindowManager.cs:
1688         * MdiWindowManager.cs:
1689         * X11Keyboard.cs: I really want Mike to love me again (fix
1690         compiler warnings).
1691
1692 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
1693
1694         * DataGrid.cs:
1695           - OnMouseDown: Switch to editing mode when clicking on the cell
1696                          even if we're clicking on the cell that's currently 
1697                          selected
1698           - ProcessGridKey: Left/Right now wrap like MS.Net does
1699           - ProcessGridKey: Tab now knows to add a new row when tab is
1700                             pressed in the cell of the last column of the 
1701                             last row
1702           - ProcessGridKey: Enter now adds another row  if pressed in the last
1703                             row and selectes the new row, same column cell
1704           - ProcessGridKey: Home/End navigate columns, not rows, like 
1705                             originally implemented
1706           - Broke ProcessKeyPreview code out into an extra Internal method
1707             so it can be called from the edit code
1708         * DataGridTextBox.cs (ProcessKeyMessage):
1709           - Switched to accept Tab keypresses
1710           - Added F2 handling to allow jumping to the end of the edited cell
1711           - Added logic to allow moving caret left/right inside edited cell
1712             and making the edited cell jump when the caret hits cell borders
1713           - Tab and Enter are now passed to the datagrid after being handled
1714         * TextBoxBase.cs:
1715           - Removed capture code now that Control handles it
1716           - set_SelectionStart now ensures caret is visible
1717
1718 2006-03-16  Jackson Harper  <jackson@ximian.com>
1719
1720         * TrackBar.cs: Debackwards the increment/decrement for handling
1721         mouse clicks on the bar with vertical trackbars.
1722         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1723         bottom to match MS.
1724
1725 2006-03-16  Mike Kestner  <mkestner@novell.com>
1726
1727         * ListView.cs: make shift/ctrl keyboard and mouse selection 
1728         consistent with the MS control. Fix a bug in
1729         SelectedListViewItemCollection.Clear that was pissing me off for the
1730         better part of a day because the collection was being altered
1731         underneath us as we walked the list.
1732
1733 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
1734
1735         * Control.cs: Not sure how we could miss this so long, but it seems
1736           that MS.Net has Capture set all the way from before calling 
1737           OnMouseDown through sending the mouse events until after
1738           OnMouseUp. This will fix DataGrid's selection being set to end
1739           at the location of the MouseUp.
1740
1741 2006-03-15  Jackson Harper  <jackson@ximian.com>
1742
1743         * BindingContext.cs: Check the binding after its added so that it
1744           can initialize the binding managers and hookup to events.
1745         * Binding.cs: Data members seem to sometimes include rows/cols in
1746           the format Row.Column we now take this into account.
1747           - Hookup to the position changed event so we can update the
1748           control when the position has changed in the data set.
1749         * CurrencyManager.cs: Take into account the row/col naming
1750           convention when creating dataset tables.
1751         * BindingContext.cs: Using a newer better way of storing
1752           datasource/datamember pairs.  Hopefully this better matches MS for
1753           looking up binding managers.
1754
1755
1756 2006-03-15  Jackson Harper  <jackson@ximian.com>
1757
1758         * BindingContext.cs: The currency manager needs the data member
1759         name, if the member is a data set we use the name to find the
1760         correct table.
1761         * CurrencyManager.cs: When creating the list prefer an IList over
1762         an IListSource.
1763         - Attempt to create a DataTable from a DataSet (TODO: might need
1764         some better error checking here, although MS doesn't seem to have much)
1765         - If we have a DataTable create a view and use it as our list.
1766
1767 2006-03-15  Mike Kestner  <mkestner@novell.com>
1768
1769         * ListView.cs: keep a matrix of the icon mode layout to facilitate
1770         keyboard navigation. Support Up/Down/Left/Right selection correctly
1771         for all 4 View modes.
1772         * ListViewItem.cs: add internal row/col fields for icon layouts.
1773
1774 2006-03-15  Jackson Harper  <jackson@ximian.com>
1775
1776         * TabControl.cs: Redraw the tabs when we resize so their newly
1777         calculated sizes are drawn on screen.
1778         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
1779         composite characters.
1780         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1781         - filter events so that composite characters can be created
1782         patches by peter
1783         * X11Structs.cs: Add XIMProperties enum.
1784
1785 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1786
1787         * Control.cs (BringToFront, SendToBack): Don't use window or handle
1788           unless it's created
1789
1790 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1791
1792         * Control.cs (PerformLayout): We don't need to consider visiblity
1793           for anchoring, only for docking. This fixes 'whacky' alignment
1794           in listbox and other controls that use implicit scrollbars after
1795           the previous PerformLayout patch
1796         * ListBox.cs: Switched to use implicit scrollbars
1797           
1798 2006-03-14  Mike Kestner  <mkestner@novell.com>
1799
1800         * ToolBar.cs: 
1801         * VScrollBar.cs:
1802         - chain up the "new event" overrides to base and use
1803         OnEvent to raise them.  Part of fix for bug #76509.
1804
1805 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
1806
1807         * FileDialog.cs: Do not select an item in the parent directory
1808           on backspace
1809
1810 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1811
1812         * Control.cs (PerformLayout): It would seem that we considered
1813           invisible windows for our layout. Not quite the right thing
1814           to do. Now we don't any longer, thereby fixing bug #76889.
1815
1816 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1817
1818         * Control.cs (CanFocus): I goofed. A control can have focus 
1819           even though it's not selectable. Made it match MS docs.
1820
1821 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1822
1823         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1824           center by default (fixes #76895)
1825         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
1826           all uses of Border3DSides.All with the explicit ORd together
1827           Left|Right|Top|Bottom because I assume that nobody was aware 
1828           that All also implies a center fill. Most places I checked had
1829           a fill right above.
1830         * ProgressBarStyle.cs: Added
1831
1832 2006-03-13  Mike Kestner  <mkestner@novell.com>
1833
1834         * ListView.cs: fix breakage in drag shadow header positioning 
1835         from Peter's csc compilation fix.
1836
1837 2006-03-13  Mike Kestner  <mkestner@novell.com>
1838
1839         * ListView.cs: fix NRE produced by backspacing twice in a focused
1840         FileDialog.
1841
1842 2006-03-13  Mike Kestner  <mkestner@novell.com>
1843
1844         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1845
1846 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1847
1848         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1849           be changed
1850         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1851           the allowed size before making programmatic size changes
1852
1853 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
1854
1855         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
1856           set, metacity is broken and will still use the emty sizes in 
1857           the struct. (Fix for #77089)
1858
1859 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1860
1861         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
1862           WindowExStyles and marked both enums as Flags
1863         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
1864           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
1865           to match WindowStyles split
1866         * XplatUIX11.cs:
1867           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
1868           - Updated to match WindowStyles split
1869         * XplatUIWin32.cs:
1870           - Fixed FosterParent creation, was using ExStyle on the Style field
1871             (This should help with Popup focus issues)
1872           - Updated to match WindowStyles split
1873
1874 2006-03-13  Jackson Harper  <jackson@ximian.com>
1875
1876         * MdiWindowManager.cs: Use the system menu height. Fixes some
1877         strange sizing issues.
1878
1879 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1880
1881         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
1882         * TextBoxBase.cs:
1883           - Scroll to caret after inserting text (#77672)
1884           - Make scroll range one pixel higher, fixes off-by-one error (and
1885             makes underlines visible on the last line)
1886
1887 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
1888
1889         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
1890           the keyboard state from being stuck with keys in 'pressed' state when
1891           focus is switched away via keyboard
1892         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
1893           reset the keyboard if no X11 KeyUp events are expected to come
1894         * X11Structs.cs: Switched type of Visible to bool to match driver
1895
1896 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1897
1898         * TextControl.cs:
1899           - Switched caret to be just 1 pixel wide, matches MS and looks less
1900             clunky
1901           - Moved caret display 1 pixel down from the top of the control
1902             to improve view
1903           - InsertCharAtCharet: Update the selection start if moving the caret
1904             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
1905           - No longer always creating the caret when the caret methods are
1906             called. Only the actual ShowCaret/HideCaret will do that now
1907           - Only setting caret visible if the owner control has focus
1908           - UpdateView: Added invalidation-shortcut logic for center and right 
1909             aligned text. Previously we'd update all according to the left
1910             logic which caused drawing errors. Also fixed height of invalidated
1911             areas, now properly invalidating the whole area (was off-by-one)
1912           - owner_HandleCreated: Always generate the document when the
1913             handle is created; this ensures that 
1914         * TextBoxBase.cs:
1915           - Fixed situation where caret would disappear under the right
1916             window border, also improved scrolling behaviour on left-
1917             aligned textboxes
1918           - Fixed right-aligned textboxes to have a border to the
1919             right instead of the caret being under the right border
1920         * XplatUIX11.cs:
1921           - Switched from 'nested' to simple visible/not visible tracking 
1922             for caret (part of fix for #77671)
1923           - No longer passing through translated FocusIn/FocusOut messages
1924             since we were notifying too often and the wrong windows. Instead
1925             we just notify our focussed window of receiving or loosing focus
1926         * XplatUIWin32.cs: Switched from 'nested' show/hide 
1927           counting for caret to simple visible yes/no behaviour (part of 
1928           fix for #77671)
1929
1930 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1931
1932         * Mime.cs: Remove debug code...
1933
1934 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1935
1936         * MimeGenerated.cs: Removed
1937         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
1938           and subclasses) from /usr/(local/)share/mime and
1939           $HOME/.local/share/mime.
1940
1941 2006-03-10  Jackson Harper  <jackson@ximian.com>
1942
1943         * MdiWindowManager.cs: Recalc the NC area when a window is
1944         maximized/restored so that the menu area is drawn on forms that
1945         don't have a menu.
1946
1947 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1948
1949         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1950           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
1951           us to force a WM_NCCALCRESIZE message being sent. This is needed
1952           for MDI maximizing.
1953
1954 2006-03-10  Jackson Harper  <jackson@ximian.com>
1955
1956         * Form.cs: We need to use the ActiveMenu when calculating menu
1957         height.
1958         - Fix nullref when the window manager hasn't been created yet.
1959         * Control.cs: Fix nullref when we try to bring a control to the
1960         front that has no parent.
1961         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
1962         height.
1963         - Add a dummy item to the maximized menu so it always has the
1964         correct height. Otherwise when there are no menus we don't get our
1965         icon and buttons.
1966         
1967
1968 2006-03-10  Jackson Harper  <jackson@ximian.com>
1969
1970         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
1971         stuff.
1972         * Form.cs: Make the window_state internal so the window managers
1973         can track it.
1974         - When an MDI child is maximized let its window manager create the
1975         main menu (so it can add its icon).
1976         - Notify the window managers of state changes
1977         - Let the window manager paint its buttons and handle button
1978         clicks on the menu when it is maximized.
1979         * InternalWindowManager.cs: Move the prev_bounds into the mdi
1980         window manager, since tool windows don't use it, only mdi windows.
1981         - Tell the main form that we don't want it to handle NCPAINT
1982         itself to avoid extra painting.
1983         - Handle clicks on a maximized windows menu.
1984         - Handle window state changes
1985         - Handle minimize/maximize clicks correctly by setting the window state.
1986         * MdiWindowManager.cs: Add an icon menu that (the menu you get
1987         when clicking on the forms icon).
1988         - New method to create a forms maximized menu. This is its normal
1989         menu + an icon.
1990         - Handle window state changes.
1991         - Handle sizing of maximized windows.  Maximized windows are just
1992         drawn bigger then the parent visible area. All controls are still
1993         there, they are just outside the visible area (this matches windows).
1994         * MdiClient.cs: No scrollbars when a child window is maximized.
1995         - Let the children windows figure out how big they should be when
1996         sizing maximized windows.
1997         - Implement a version of ArrangeIconicWindows somewhat similar to
1998         Windows version.  There are some little differences, but I don't
1999         think any app will rely on the layout of minimized mdi windows.
2000
2001 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2002
2003         * Padding.cs: Several fixes to allow compiling with csc 2.0
2004
2005 2006-03-09  Jackson Harper  <jackson@ximian.com>
2006
2007         * Menu.cs:
2008         * MenuItem.cs: Cheap hack so we can add items to the list without
2009         the events being raised.  This allows adding mdi items during
2010         drawing. TODO: Should probably find a better time to add the items.
2011
2012 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2013
2014         * ThemeWin32Classic.cs:
2015           - CheckBox_DrawText: Added logic to not wrap if not enough space
2016             is available (Fix for bug #77727)
2017           - RadioButton_DrawText: Added logic not to wrap if not enough
2018             space is available (Fix for bug #77727). Also removed some
2019             duplicate code, DrawString always drawing the regular text
2020             before hitting the if statement.
2021
2022 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2023
2024         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2025
2026 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2027
2028         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2029         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2030           methods. Moved the new 2.0 properties into alphabetical order with
2031           other properties and added MonoTODO tags
2032
2033 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2034
2035         * AutoScaleMode.cs: Added. Fix build.
2036
2037 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2038
2039         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2040           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2041           and was requiring premature handle creation for calls from above
2042         * Form.cs, Control.cs: Removed handle arguments from calls to
2043           CalculateClientRect()
2044
2045 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2046
2047         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2048           drag_column.column_rect is MarshalByRef and can't be used that way
2049
2050 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2051
2052         * AxHost.cs: Added deserialization constructor for 
2053           AxHost+State (fixes 77743)
2054
2055 2006-03-09  Mike Kestner  <mkestner@novell.com>
2056
2057         * ListView.cs: 
2058         - Added column drag reordering for details view.
2059         - fixed behavior when mouse is dragged off column and
2060         AllowColumnReorder is false.
2061         * ColumnHeader.cs: clone the format too in Clone.
2062         * Theme.cs: add DrawListViewHeaderDragDetails method.
2063         * ThemeWin32Classic.cs:
2064         - impl new method for drawing drag column shadows and targets.
2065         - support column offset for details mode in DrawListViewItem.
2066
2067 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2068
2069         * TextControl.cs: Reset the char_count when the document is cleared
2070           (Fixes bug reported on mono-winforms mailing list)
2071
2072 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2073
2074         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2075           of calling base we simply process the key ourselves, since both
2076           DefWindowProc and the handled method would set m.Result. 
2077           (Fixes #77732)
2078
2079 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2080
2081         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2082           method also moves the window; instead implemented a copy of
2083           Control.ScaleCore (Part of fix for #77456)
2084         * TextBoxBase.cs: 
2085           - Created new CreateGraphicsInternal method to allow providing
2086             a graphics context when no handle is created without triggering
2087             handle creation. (Part of fix for #77456)
2088           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2089         * TextControl.cs: 
2090           - Switched Constructor to require TextBoxBase instead of Control (to
2091             allow uncast access to CreateGraphicsInternal)
2092           - Safeguarded use of owner.Handle property. No longer accessing it
2093             unless the handle is already created.
2094           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2095           - Now triggering a recalc when owning control becomes visible
2096         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2097           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2098           premature handle creation (Part of fix for #77456)
2099         * Control.cs:
2100           - We now only destroy our double-buffering buffers when the
2101             control is resized or disposed, but not when visibility
2102             changes. (The code even re-created them twice every time)
2103           - Now requiring a redraw of the buffer on visibility changes
2104             (fixes bug 77654 part 2)
2105           - Not passing OnParentVisibleChanged up unless the control
2106             is visible
2107           - CanFocus: Fixed to match MS documentation
2108           - Focus: Fixed to return actual focus state and to check if
2109             setting focus is legal before setting it
2110
2111 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2112
2113         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2114           when to draw focus rectangle by looking at parent focus and
2115           selected state instead. This fixes TabPages on Linux sometimes
2116           having none or multiple focus rectangles.
2117         * XplatUIX11.cs (SetFocus): 
2118           - Don't set the focus if the same window already has focus
2119           - Use SendMessage instead of PostMessage (like it's Win32
2120             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2121             to match MS behaviour
2122         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2123           are not selectable.
2124
2125 2006-03-07  Jackson Harper  <jackson@ximian.com>
2126
2127         * PictureBox.cs: Revert line I accidently committed last week.
2128
2129 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2130
2131         * Control.cs: 
2132           - Added new IsRecreating and ParentIsRecreating properties to
2133             allow testing if RecreateHandle has been called on ourselves
2134             or one of our parents
2135           - WndProc(WM_DESTROY): If our control handle is being recreated
2136             we immediately need to create the handle when receiving the
2137             destroy, that way our child windows find a valid parent handle
2138             when they themselves are being recreated upon WM_DESTROY receipt
2139             (fix for bug #77654 part 1)
2140         * XplatUIX11.cs:
2141           - DestroyWindow: WM_DESTROY must be sent to our own window before
2142             notifying any child windows. MS documents that child windows
2143             are still valid when WM_DESTROY is received. (Control now relies on
2144             this behaviour)
2145           - Added some fine-grain debug options
2146
2147 2006-03-06  Jackson Harper  <jackson@ximian.com>
2148
2149         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2150         box and base calculations off this.
2151         * MdiChildContext.cs:
2152         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2153         anymore.
2154         
2155 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2156
2157         * Splitter.cs: In situations where the affected control is added
2158           to the parent's control list after the splitter, we would not
2159           populate affected. Now we try populating it on mousedown, if
2160           it's not already set, and force it to be re-set whenever our
2161           parent changes.
2162
2163 2006-03-03  Matt Hargett  <matt@use.net>
2164
2165         * Control.cs: implement Control.Padding
2166         * Padding.cs: -Padding.All returns -1 when constructing with the
2167         implicit default ctor
2168         -Padding.ToString() matches MS.NET
2169         * ContainerControl.cs: implement
2170         ContainerControl.AutoScaleDimensions
2171         * ListControl.cs: implement ListControl.FormattingEnabled
2172         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2173         * ButtonBase.cs:
2174         * TabPage.cs: Implement UseVisualStyleBackColor.
2175         * PictureBox.cs: Implement PictureBox.InitialImage.
2176
2177 2006-03-03  Mike Kestner  <mkestner@novell.com>
2178
2179         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2180         event declarations to proxy to base event.
2181         * ListViewItem.cs: update to use ItemControl.
2182         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2183         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2184         column header label rendering for 0 width columns.
2185
2186 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2187
2188         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2189           that causes the control to be created. Fixes #77476.
2190
2191 2006-03-02  Jackson Harper  <jackson@ximian.com>
2192
2193         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2194         expose_pending.
2195
2196 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2197
2198         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2199           passed in for the EventArgs (fixes #77690)
2200
2201 2006-03-01  Jackson Harper  <jackson@ximian.com>
2202
2203         * ScrollBar.cs: Refresh afterbeing resized.
2204
2205 2006-02-28  Mike Kestner  <mkestner@novell.com>
2206
2207         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2208         Clean up a tracker compile warning.
2209         * MenuItem.cs: add internal PerformPopup method.
2210         [Fixes #77457]
2211
2212 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2213
2214         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2215           implicit expose) when the text is set to null
2216
2217 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2218
2219         * RichTextBox.cs (FlushText): When newline is true, we always
2220           need to split the line, even if no text is on it and we may
2221           never eat newlines. (Fixes #77669)
2222
2223 2006-02-28  Mike Kestner  <mkestner@novell.com>
2224
2225         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2226         and set Selected instead.
2227         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2228         collections.
2229
2230 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2231
2232         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2233
2234 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2235
2236         * FontDialog.cs:
2237           - Got rid of the panel. All controls are now directly added to
2238             the dialog form
2239           - It is now possible to set a font with the Font property
2240           - MinSize and MaxSize property do now what they should
2241           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2242           - Searching and selecting a font with the font textbox works now,
2243             the same applies to the style and size textbox
2244           - Draw the correct 3D border in the example panel
2245           - Fixed a little mem leak (unused fonts didn't get disposed)
2246           - Many other internal updates/rewrites...
2247           - Fix typo
2248
2249 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2250
2251         * TextControl.cs: 
2252           - InsertRTFFromStream: Added 'number of characters inserted' argument
2253           - set_SelectedRTF: Now using the number of characters to calculate
2254             the new location for the selection and cursor (x/y cannot be used
2255             due to potentially already wrapped text)
2256
2257 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2258
2259         * TextControl.cs: Added property and implemented means to allow 
2260           disabling recalculation of a document (can be used to speed up
2261           multiple inserts and is needed to make RTF inserts predictable, see
2262           bug #77659)
2263         * RichTextBox.cs: Using the new NoRecalc property of Document to
2264           keep x/y insert locations predictable. Also makes it faster inserting
2265           large chunks of RTF
2266
2267 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2268
2269         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2270           it's easier for a child control to handle the other messages without
2271           having to duplicate the special functionality
2272         * TextBoxBase.cs
2273           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2274             code to handle processing the key ourselves, in order to get 
2275             access to the result of KeyEventArgs.Handled. We now only call 
2276             ProcessKey if they key hasn't been handled already. Fixes #77526.
2277           - set_Text: If null or empty string is given, just clear the 
2278             document. Fixes part of #77526
2279
2280 2006-02-27  Jackson Harper  <jackson@ximian.com>
2281
2282         * SizeGrip.cs: Paint the background color before painting the grip
2283         so things look right.
2284         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2285
2286 2006-02-27  Mike Kestner  <mkestner@novell.com>
2287
2288         * ListView.cs:
2289           - Restructure layout and invalidation model to remove a ton of
2290           flicker from the control and speed up performance in general.
2291           - Add manual column resize, flickers like crazy, but I already have
2292           some ideas on how I'll fix that. (#76822)
2293           - Merge the three Icon-based views into a single layout method.
2294           - Move item selection interaction logic from the item since 
2295           interaction with the collections is more appropriate to the view.
2296           - Deselection on non-item clicks.
2297         * ListViewItem.cs:
2298           - Encapsulate most of the layout. Add some internal props to trigger
2299           layout.  Move to a model where Items invalidate themselves instead
2300           of just invalidating the whole control every time something changes.
2301           - Invalidate on Text/Caption changes.
2302           - switch to an offset based layout model to avoid having to absolute
2303           position every element on item moves.
2304           - correct checkbox layout to conform to MS layout.
2305         * ThemeWin32Classic.cs:
2306           - refactor some column header drawing code.
2307           - fix string justification for column headers (#76821)
2308           - make SmallIcon labels top justified for compat with MS impl.
2309         * ThemeClearlooks.cs:
2310           - adjust to new ListViewItem internal checkbox bounds api.
2311
2312 2006-02-27  Jackson Harper  <jackson@ximian.com>
2313
2314         * Control.cs:  Change where implicit controls fall in the zorder.
2315         They are now on top of all children.
2316         - Synced AddImplicit code with Add
2317         - Removed unused enumerator.
2318         * SizeGrip.cs: Remove the TODO as its been TODONE.
2319
2320 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2321
2322         * TextControl.cs(Insert): Combine the last lines unless the insertion
2323           string ends with \n\n, otherwise we leave one line too many (Fixes
2324           something I noticed with the testapp for #77526; the bug itself was
2325           already fixed in the previous checkin)
2326
2327 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2328
2329         * RichTextBox.cs:
2330           - SelectionColor and SelectionFont methods no longer set absolute
2331             styles. Instead, the keep font or color respectively (This 
2332             resolves a long-standing FIXME in the code)
2333           - When flushing RTF text, the insert code now considers text trailing
2334             behind the insertion point (Fixes the bug where when replacing
2335             the selected text via SelectedRTF the remainder of the line behind 
2336             the selection would stay on the first insertion line)
2337         * TextBoxBase.cs:
2338           - AppendText now updates the selection points after inserting text
2339           - AppendText now ensures that the last tag (sometimes 0-length) of
2340             the document is used for the style information (Fixes part of 
2341             bug #77220)
2342         * TextControl.cs:
2343           - Created new FontDefiniton class to allow describing partial style
2344             changes
2345           - StreamLine() now takes a lines argument, to allow it to decide
2346             whether an encountered zero-length tag is the last in the document
2347             (which must be kept to not loose the font/color contained in it,
2348             for later appends)
2349           - Created Combine() and Split() methods for Marker structs, to 
2350             support marker updates due to reformatted documents (soft line
2351             wraps)
2352           - Implemented Document.CaretTag setter
2353           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2354             of the last line (Not the cause, but also exposed by bug #77220)
2355           - Added LineTag argument to InsertString method, to allow callers
2356             to force a certain tag to be used (required to force use of the
2357             trailing zero-length tag of a document)
2358           - Now updating markers in Combine(), to avoid stale tag markers
2359           - Added some method descriptions to aid maintenance
2360           - Implemented new FormatText concept, allowing additive/subtractive
2361             formatting by only specifying the components that are to be 
2362             changed. This was needed for resolving the RTB.SelectedColor/
2363             RTB.SelectedFont fixmes
2364           - Added Break() support method to allow breaking up linetags (used
2365             for partial formatting)
2366           - Added GenerateTextFormat() method. It is used for partial 
2367             formatting and allows to generate a full font/color from given
2368             attributes and an existing tag.
2369
2370 2006-02-26  Jackson Harper  <jackson@ximian.com>
2371
2372         * XplatUIX11.cs:  Use the correct caption height.
2373         - Translate hittest coordinates to screen coords to match MS.
2374         * XplatUIWin32.cs: When we create MDI windows we need to reset
2375         some of the style flags, so we get a nice blank window, and can
2376         draw all the decorations ourselves.
2377         - Set a clipping rectangle on the non client paint event, the
2378         window manager drawing code needs one.
2379         * Form.cs: The window manager needs to know when the window state
2380         has been updated.
2381         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2382         don't need to factor in border and title sizes in these
2383         methods. TODO: Remove the args and fix the call points.
2384         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2385         properly.
2386         - Let the driver set the cursors.
2387         - Improve active window handling
2388         - Correct sizes for title bars and buttons.
2389         - Match MS drawing better
2390         * MdiWindowManager.cs: We don't need to handle border style
2391         updates specially anymore.
2392         - Check for scrollbars when windows are done moving
2393         - Handle Active properly.
2394         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2395         correctly. I am spewing the exception though, so we don't hide the
2396         bugs.
2397         
2398 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2399
2400         * DataGridViewRowPostPaintEventArgs.cs,
2401           DataGridViewCellPaintingEventArgs.cs,
2402           DataGridViewRowCollection.cs,
2403           DataGridViewRowPrePaintEventArgs.cs,
2404           DataGridViewCell.cs: Clear a few warnings and implement a few
2405           exceptions that should be thrown.
2406
2407 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2408
2409         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2410           'inheriting' our parent's (non-default) cursor. (Part of
2411            the fix for #77479)
2412
2413 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2414
2415         * XplatUIX11.cs: Fixed cast to make csc happy
2416
2417 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2418
2419         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2420           it's for the client area (part of fix for #77479 and needed
2421           for MDI window cursor handling)
2422         * XplatUIX11.cs
2423           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2424             the appropriate default cursors and also passing the message
2425             up the parent chain 
2426           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2427             for non-client areas
2428
2429 2006-02-15  Jackson Harper  <jackson@ximian.com>
2430
2431         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2432         is a real MDI window
2433
2434 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2435
2436         * X11DesktopColors.cs: Instead of checking the desktop session
2437           string for "KDE" check if it starts with "KDE"
2438
2439 2006-02-10  Jackson Harper  <jackson@ximian.com>
2440
2441         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2442         systems).
2443
2444 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2445
2446         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2447           errors
2448         * ColorDialog.cs:
2449           - Got rid of the panel. All controls are now directly added to
2450             the dialog form
2451           - Changed to mono coding style
2452
2453 2006-02-10  Jackson Harper  <jackson@ximian.com>
2454
2455         * InternalWindowManager.cs: We don't need the set visibility to
2456         false hack anymore now that peter has written beautiful shutdown
2457         code.
2458
2459 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2460
2461         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2462           where already explicitly destroyed
2463
2464 2006-02-10  Jackson Harper  <jackson@ximian.com>
2465
2466         * MdiClient.cs: Handle the case where windows are too high or to
2467         the left and we need scrollbars.
2468
2469 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2470
2471         * MimeIcon.cs: Added some icons
2472         * FileDialog.cs:
2473           - Fixed bug #77477
2474           - Got rid of the panel. All controls are now directly added to
2475             the dialog form
2476           - Changed to mono coding style
2477           - On Linux "My Computer" and "My Network" will now show some
2478             more usefull information. A new class, MasterMount, gathers
2479             this information from /proc/mount. Updated MWFFileView to make
2480             use of this information
2481           - Fixed a bug that caused FileDialog to crash when
2482             ".recently_used" file had a zero size
2483           - FilterIndex does now what it should
2484           - Some Refactoring
2485         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2486             FileDialog changes
2487
2488 2006-02-09  Jackson Harper  <jackson@ximian.com>
2489
2490         * ComboBox.cs: Don't touch if null.
2491
2492 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2493
2494         * Cursor.cs: 64bit safeness fix
2495         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2496
2497 2006-02-09  Jackson Harper  <jackson@ximian.com>
2498
2499         * Form.cs: If a form is made into an MDI form update the styles so
2500         all the props can get set correctly.
2501         - Kill the mdi_container when we dont need it anymore.
2502         * InternalWindowManager.cs: Add missing NOT
2503
2504 2006-02-08  Jackson Harper  <jackson@ximian.com>
2505
2506         * InternalWindowManager.cs: Respek clipping when drawing MDi
2507         decorations.
2508
2509 2006-02-08  Jackson Harper  <jackson@ximian.com>
2510
2511         * Hwnd.cs: Add bits to track non client expose events.
2512         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2513         gives us a proper invalid rect and will allow for some nice
2514         optimizations with NC client drawing
2515         - MDI windows are children windows, so move their style handling
2516         into the child window block.
2517         * InternalWindowManager.cs: Remove a state reset that was
2518         getting invoked at the wrong time. Fixes managed windows getting
2519         into a 'stuck' captured state.
2520
2521 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2522
2523         * TextControl.cs (Document.ctor): Now initializing 
2524           selection_anchor. Fixes #77493
2525
2526 2006-02-07  Jackson Harper  <jackson@ximian.com>
2527
2528         * TrackBar.cs: The increment/decrements were backwards.
2529
2530 2006-02-07  Mike Kestner  <mkestner@novell.com>
2531
2532         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2533         to the instance itself.
2534
2535 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2536
2537         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2538           on ulongs and pointers, the size differs between 32bit and 64bit
2539           systems. 
2540
2541 2006-02-07  Mike Kestner  <mkestner@novell.com>
2542
2543         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2544         for 64 bit platforms to work around a metacity bug. 
2545
2546 2006-02-07  Jackson Harper  <jackson@ximian.com>
2547
2548         * TrackBar.cs: Process the input keys we need, and hookup to
2549         KeyDown instead of using WndProc, so we get key messages.
2550
2551 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2552
2553         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2554           machine we're on. 
2555         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2556           we need to translate the XdndVersion atoms array before sending it
2557
2558 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2559
2560         * XplatUIX11.cs: 
2561           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2562             number of bits for the property, not the number of bytes. The
2563             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2564             but would not crash since it specified 8 bits instead of 4 bits)
2565           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2566             defined as XID -> long in the C headers)
2567           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2568             references since those are now IntPtr to begin with
2569           - Switched all Atom.XXX 'int' casts to IntPtr casts
2570           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2571           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2572           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2573         * X11Structs.cs:
2574           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2575           - Changed atom in HoverStruct to be IntPtr
2576         * X11DnD.cs:
2577           - Removed local DllImports, switched code to use those from XplatUIX11
2578           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2579
2580 2006-02-06  Mike Kestner  <mkestner@novell.com>
2581
2582         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2583         method signatures in the import region.  There may still be some
2584         lingering struct marshaling issues, as I didn't drill down into those.
2585         Yet.
2586
2587 2006-02-06  Jackson Harper  <jackson@ximian.com>
2588
2589         * ComboBox.cs: Dont manually set the top_item, this is computed
2590         when the scrollbar position is set.
2591
2592 2006-02-06  Mike Kestner  <mkestner@novell.com>
2593
2594         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2595         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2596         usage of Atom needs to be mapped to IntPtr for example.  And there are
2597         likely other int/long issues to be addressed.
2598
2599 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2600
2601         * FileDialog.cs: One more...
2602
2603 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2604
2605         * FileDialog.cs: Next try
2606
2607 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2608
2609         * FileDialog.cs: First part of fix for #77464
2610
2611 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2612
2613         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2614           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2615           AcceptButton border drawing.
2616
2617 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2618
2619         * Form.cs: Moved positioning of form after auto scaling is applied,
2620           otherwise it would possibly use wrong form size.
2621
2622 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2623
2624         * Control.cs (RecreateHandle): No need to re-create any child
2625           controls, the child windows will get destroyed automatically by
2626           the windowing system or driver, and re-created when the handle
2627           is being accessed the first time. Fixes #77456
2628         * Form.cs: No longer setting the form to closing if the handle is 
2629           being recreated. This seems like the right thing to do, don't
2630           have a bug or testcase for this, though.
2631
2632 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2633
2634         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2635           controls to avoid unwanted side effects
2636
2637 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2638
2639         * Control.cs: 
2640           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2641             control. Fixes #77416.
2642           - DefaultSize is 0,0 for control
2643         * TextBoxBase.cs: 
2644           - DefaultSize is 100, 20
2645           - SetBoundsCore: Now enforcing the height, no matter if the provided
2646             height is more or less than the preferred one, as long as AutoSize
2647             is on
2648         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2649
2650 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2651
2652         * Control.cs:
2653           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2654             call unless both performLayout is true *and* we have a pending
2655             layout change
2656           - ResumeLayout: MS does not completely nest Suspend and Resume,
2657             they bottom out at 0, fixed our code to match that.
2658           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2659             SetBoundsCore, we were updating even when we shouldn't. This fixes
2660             swf-anchors mis-anchoring when resizing the app fast and lots.
2661           - UpdateDistances: Now only setting the left and top distance if 
2662             we have a parent and are not suspended, this is based on
2663             a suggestion by Don Edvaldson in bug #77355.
2664           - OnVisibleChanged: Fixed logic when to create the control. We may
2665             not create the control if we have no parent or if it's not visible;
2666             switched to using Visible property instead of is_visible field 
2667             since the property also considers parent states. This fixes a bug
2668             when starting Paint.Net
2669
2670 2006-02-02  Jackson Harper  <jackson@ximian.com>
2671
2672         * Form.cs: If the forms handle hasn't been created yet don't call
2673         into xplatui to make it top most, just set the topmost flag on the
2674         form in CreateParams
2675         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2676
2677 2006-02-01  Jackson Harper  <jackson@ximian.com>
2678
2679         * ScrollableControl.cs: Refactored the Recalculate method a
2680         little, this wasn't handling all the variants of bottom and right
2681         bars needed to be added and added/removed based on their
2682         counterparts being added/removed (which changes the drawable
2683         size). Also we special case client widths and heights of 0 and
2684         don't add the scrollbar for those.
2685
2686 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
2687
2688         * XplatUIX11.cs: 
2689           - Added method to get AbsoluteGeometry(); currently unused, but might
2690             be used in the future, if we try again to figure out toplevel
2691             coordinates with some more crappy window managers
2692           - Added FrameExtents() method to retrieve the WM set decoration size
2693           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
2694             to deal with at least KDE, FVWM and metacity (Fixes #77092)
2695         * Hwnd.cs: 
2696           - Added whacky_wm tracking var for metacity
2697           - Added logic to have default menu height if the actual menu height
2698             has not yet been calculated (part of fix for #77426)
2699         * Form.cs: Keep track whether client size has been set and re-set 
2700           it if a menu is added/removed afterwards (Fixes #77426)
2701
2702 2006-01-31  Jackson Harper  <jackson@ximian.com>
2703
2704         * Control.cs: When a new Site is set on the component attempt to
2705         pull the AmbientProperties from it.
2706
2707 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
2708
2709         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2710           in the background of the owning form. Fixes #77332
2711
2712 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2713
2714         * MimeIcon.cs: Fix for #77409
2715
2716 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2717
2718         * XplatUIX11GTK.cs: Initial import
2719
2720 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
2721
2722         * FixedSizeTextBox: fixes class signature
2723
2724 2006-01-30  Jackson Harper  <jackson@ximian.com>
2725
2726         * FixedSizeTextBox.cs: New internal class that represents a
2727         textBox that will not be scaled.
2728         * TreeView.cs:
2729         * ComboBox.cs:
2730         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2731         standard TextBox.
2732                 
2733 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
2734
2735         * XplatUIX11.cs: Retrieve default screen number instead of
2736           assuming 0. Attempted fix for #77318
2737
2738 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
2739
2740         * XplatUIWin32.cs: 
2741           - GetWindowPos: When a window is parented by FosterParent, use 
2742             the desktop instead of FosterParent as the base to get coordinates
2743           - CreateWindow: Don't make FosterParent the parent window for Popups
2744             if we don't want a taskbar entry, Popups automatically don't get one
2745         * Hwnd.cs: Need to call remove to actually remove the key from the
2746           hash table
2747
2748 2006-01-30  Mike Kestner  <mkestner@novell.com>
2749
2750         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2751
2752 2006-01-30  Jackson Harper  <jackson@ximian.com>
2753
2754         * TreeView.cs:
2755         * TreeNode.cs: Raise events no matter how the treenode is
2756         checked. Patch by Don Edvalson.
2757
2758 2006-01-30  Jackson Harper  <jackson@ximian.com>
2759
2760         * TreeNode.cs: Signature fix.
2761
2762 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
2763
2764         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2765
2766 2006-01-20  Mike Kestner  <mkestner@novell.com>
2767
2768         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2769         event forwarding when menus are active.
2770         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
2771         Most of the patch is pdb's with a little rework.
2772
2773 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2774
2775         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
2776           Removed GetMenuDC and ReleaseMenuDC methods; replaced
2777           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2778         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2779         * InternalWindowManager.cs: Added use of PaintEventStart/End to
2780           handling of WM_NCPAINT message, now passing the PaintEventArgs to
2781           the PaintWindowDecorations method
2782         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2783         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2784         * MenuAPI.cs: Made tracker window invisible
2785         * XplatUIWin32.cs:
2786           - Removed GetMenuDC and ReleaseMenuDC methods
2787           - Implemented the client=false path for PaintEventStart and
2788             PaintEventEnd
2789
2790 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2791
2792         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2793         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2794           styles
2795         * Form.cs: 
2796           - MaximizeBox, MinimizeBox: Recreate the handle when setting
2797             the style
2798           - CreateParams: Reworked the styles to match MS look'n'feel,
2799             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2800             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2801
2802 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2803
2804         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
2805           window is not mapped, since otherwise every form that's being 
2806           created is considered minimized, which is wrong.
2807         * Form.cs: Catching the exception and returning our internal value
2808           instead
2809
2810 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2811
2812         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2813           SetWindowMinMax() to have means to tell the driver about the minimum,
2814           maximum and maximized state window sizes. (Part of the fix for #76485)
2815         * Form.cs:
2816           - Implemented tracking of minimum and maximum window size, now calling
2817             new SetWindowMinMax() driver method to tell the driver (Part of the
2818             fix for #76485)
2819           - Finished handling of WM_GETMINMAXINFO method, now setting all values
2820             (Completes fix for #76485)
2821           - Calling new SetWindowMinMax driver method when the handle for a 
2822             form is created, to make sure the driver knows about it even if
2823             the values have been set before the window was created
2824           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2825             to avoid messing up our anchoring calculations (partial fix
2826             for #77355)
2827         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2828         * XplatUIX11.cs:
2829           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2830           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
2831             (and presumably other freedesktop.org compliant WMs). Left the
2832             assumption unmapped=minimized, needed for SetVisible to work.
2833           - Now setting the window state when creating windows
2834           - Fixed SetVisible to consider/set the window state when mapping
2835             a Form. We cannot set the state before it's mapped, and we cannot
2836             use Form.WindowState once it's mapped (since it would ask the
2837             driver and get 'normal'. Therefore, we grab the state before
2838             mapping, map, and then set state.
2839           - Implmemented SetWindowMinMax method; Metacity does not seem to
2840             honor the ZoomHints, though.
2841         * XplatUIWin32.cs:
2842           - Removed MINMAXINFO (moved to XplatUIStructs)
2843           - Added SetWindowMinMax stub (on Win32 the only way to set that
2844             information is in response to the WM_GETMINMAXINFO message, which
2845             is handled in Form.cs)
2846           - Added logic to SetVisible to set the proper window state when a 
2847             form is made visible (fixes #75720)
2848
2849 2006-01-26  Jackson Harper  <jackson@ximian.com>
2850
2851         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2852         same way we handle them with Invoke.
2853
2854 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
2855
2856         * Form.cs:
2857           - Added tracking of window state so CreateParams can return
2858             the appropriate style
2859           - Moved setting of WS_CAPTION style in CreateParams to allow
2860             styles without caption
2861         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
2862           control if the TextBox property is accessed. Fixes #77345
2863         * Control.cs:
2864           - get_Created: now uses is_disposed and is_created to determine
2865             return value (suggested by Jackson)
2866           - CreateHandle: No longer exits if the handle is being recreated
2867           - RecreateHandle: If the handle is not yet created call the 
2868             appropriate method to create either control or handle. If the
2869             control is already created CreateHandle will simply exit instead
2870             of just creating the handle
2871         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
2872           now SendMessage WM_DESTROY directly to the control when DestroyWindow
2873           is called.
2874         * XplatUIX11.cs: 
2875           - When DestroyWindow is called, instead of waiting for the 
2876             DestroyNotification from X11, we directly post it to the WndProc
2877             and immediately dispose the hwnd object.
2878             Same applies to DestroyChildWindows, and this obsoletes the
2879             expose_pending tracking. Contrary to Win32 behaviour we destroy our
2880             child windows before our own, to avoid X11 errors.
2881           - Removed the direct sending of WM_PAINT on UpdateWindow
2882         * XplatUIWin32.cs:
2883           - Reworked DoEvents and GetMessage to allow access to internal queue
2884             even when trying non-blocking access to the queue.  Fixes #77335. 
2885             Based on a patch suggestion by Don Edvalson. The new private
2886             GetMessage can now also be used as a backend for a PeekMessage
2887             frontend version.
2888         * XplatUI.cs: Improved debug output for CreateWindow
2889
2890 2006-01-25  Jackson Harper  <jackson@ximian.com>
2891
2892         * Help.cs: Allow param to be null. Patch by Don Edvalson.
2893
2894 2006-01-24  Jackson Harper  <jackson@ximian.com>
2895
2896         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
2897         when we have a MaxDropItems lower then the selected index.
2898
2899 2006-01-24  Jackson Harper  <jackson@ximian.com>
2900
2901         * Control.cs: Don't allow selection of non visible controls, allow
2902         selection of controls without parents.
2903
2904 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2905
2906         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
2907         * DataGridDrawingLogic.cs: Add editing row only when is necessary
2908
2909 2006-01-23  Jackson Harper  <jackson@ximian.com>
2910
2911         * UpDownBase.cs: Make the textbox handle all the selection and
2912         tabbing. This fixes tabing to updown controls.
2913
2914 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2915
2916         * TextBoxBase.cs: fixes exception thown the object was null
2917
2918 2006-01-23  Jackson Harper  <jackson@ximian.com>
2919
2920         * ButtonBase.cs: Just use the base CreateParams. They set
2921         visibility and enabled correctly.
2922         * ComboBox.cs:
2923         * TrackBar.cs:
2924         * MonthCalendar.cs: Lets let the base set as much of the
2925         createparams as possible so we don't have duplicate code all over
2926         the place.
2927
2928 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
2929
2930         * ThemeGtk.cs: Added TrackBar and some experimental code to
2931           get double buffering back
2932
2933 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
2934
2935         * DataGrid.cs: Allows row number set internally higher than the last
2936         when creating a new row. Restores the editing functionality.
2937
2938 2006-01-20  Mike Kestner  <mkestner@novell.com>
2939
2940         * MimeIcon.cs: delay Image creation until the icons are accessed
2941         instead of creating 190 scaled images on GnomeHandler startup.
2942
2943 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
2944
2945         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
2946           first call base before processing the event. Fixes #77279
2947
2948 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
2949
2950         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
2951           that the stride for the GDI bitmap would match the stride of
2952           a DIB or a Cursor.
2953
2954 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
2955
2956         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
2957
2958 2006-01-19  Jackson Harper  <jackson@ximian.com>
2959
2960         * ComboBox.cs: Hookup the text controls keydown event so we get
2961         those when the text control has the focus.
2962
2963 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
2964
2965         * Label.cs: Now using the base events instead of defining new ones;
2966           this allows us to just call the base properties without having to
2967           duplicate all base property logic 
2968
2969 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
2970
2971         * Label.cs: A label by default is not a tabstop (Fixes one of our
2972           failing nunit tests)
2973
2974 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
2975
2976         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
2977         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
2978
2979 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
2980
2981         * Cursor.cs: Reimplemented creating cursor bitmaps without using
2982           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
2983           This fixes #77218
2984         * XplatUIWin32.cs: 
2985           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
2986             constructor creates images that can't be saved. Part of the fix
2987             for #76103
2988           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
2989           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
2990             bug fix for handling window state in forms properly)
2991
2992 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
2993
2994         * ThemeGtk.cs: Simplify ScrollBar drawing
2995
2996 2006-01-18  Jackson Harper  <jackson@ximian.com>
2997
2998         * Splitter.cs: Set the default dock style for the splitter control
2999         in the constructor.
3000
3001 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3002
3003         * ThemeGtk.cs: Corrected StateType and ShadowType for
3004           gtk_paint_box
3005
3006 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3007
3008         * Control.cs: Make use of Theme.DoubleBufferingSupported
3009         * ThemeGtk.cs:
3010           - Added drawing for flat style buttons
3011           - Added ScrollBar drawing
3012
3013 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3014
3015         * ThemeClearlooks.cs: Removed some unneeded code.
3016         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3017
3018 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3019
3020         * LinkLabel.cs: We need to update the hover drawing when
3021           leaving the control as well.
3022
3023 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3024
3025         * DataGrid.cs: Clicking on non empty areas in the columns
3026            area was giving an exception
3027
3028 2006-01-17  Jackson Harper  <jackson@ximian.com>
3029
3030         * ThemeWin32Classic.cs:
3031         * ListView.cs: Do not draw/clip the headers when the header style
3032         is None.
3033
3034 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3035
3036         * DataGrid.cs: Fixes 77260
3037         
3038 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3039
3040         * DataGrid.cs: Clicking on a column on a empty grid was giving
3041           an exception
3042
3043 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3044
3045         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3046           or any keypress will crash the grid.
3047
3048 2006-01-17  Mike Kestner  <mkestner@novell.com>
3049
3050         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3051         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3052         invisible/previously-visible items.
3053         [Fixes #76909]
3054
3055 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3056
3057         * ThemeClearlooks.cs:
3058         - Added CL_Draw_Button method; now other theme controls that are 
3059           not derived from button or do not have a button can draw buttons
3060           too
3061         - Updated ComboBox drawing
3062         - Beautified RadioButton drawing
3063         - Corrected drawing of bottom and left tabs
3064         - Beautified DateTimePicker and MonthCalendar
3065         - Added CPDrawButton and CPDrawRadioButton
3066
3067 2006-01-16  Jackson Harper  <jackson@ximian.com>
3068
3069         * ComboBox.cs: Set the initial value of the scrollbar to the
3070         current index. Reduce the numbers of refreshs and IndexOfs called.
3071
3072 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3073
3074         * FileDialog.cs: When the file listview is focused hitting the
3075           backspace key moves the fileview to the parent directory
3076
3077 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3078
3079         * Form.cs: 
3080           - Added RecreateHandle call when changing taskbar visibility to 
3081             trigger reparenting in Win32 driver (Fixes #75719)
3082           - If a window has minimize or maximize buttons, it cannot have
3083             a help button
3084         * XplatUIWin32.cs:
3085           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3086             the toplevel form with FosterParent (A toolwindow not on the
3087             taskbar) (Fixes #75719)
3088           - Made FosterParent a toolwindow
3089
3090 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3091
3092         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3093
3094 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3095
3096         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3097           is currently over that control, make sure that tooltip_window.Text
3098           gets updated
3099
3100 2006-01-13  Mike Kestner  <mkestner@novell.com>
3101
3102         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3103
3104 2006-01-13  Jackson Harper  <jackson@ximian.com>
3105
3106         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3107         value passed.  Also redraw the selected node when we recieve
3108         focus, so tabbing between trees works correctly.
3109
3110 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3111
3112         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3113           ~/.gconf/%gconf-tree.xml, so use
3114           .gconf/desktop/gnome/interface/%gconf.xml
3115
3116 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3117
3118         * TextControl.cs: Draw text in gray if control is disabled
3119
3120 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3121
3122         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3123           make sure it's always visible. Fixes #76680.
3124
3125 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3126
3127         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3128
3129 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3130
3131         * PageSetupDialog.cs: Added.
3132         * PrintDialog.cs: Attributes.
3133         * PrintPreviewControl.cs: Updates.
3134         * PrintPreviewDialog.cs: Updates.
3135         
3136 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3137
3138         * Control.cs: Undid my selection check fix, since it's not needed
3139         * TextBoxBase.cs:
3140           - Now considering the presence of hscroll/vscroll when sizing
3141             vscroll/hscroll respectively. Fixed bug #77077
3142           - Added Left/Up/Down/Right to IsInputKey list to prevent
3143             ContainerControl from stealing them. This fixes what I broke
3144             with my last checkin.
3145
3146 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3147
3148         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3149           I finally understand how the property can be set without a setter :-)
3150
3151 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3152
3153         * Application.cs:
3154           - Switched RunLoop to use static Message.Create to create a 
3155             Message object
3156           - Added PreProcessMessage call in runloop for keyboard events; this
3157             is part of the fix for #77219, I overlooked this originally in the
3158             MSDN doc for PreProcessMessage
3159         * Control.cs:
3160           - Removed call to PreProcessMessage from handling of keyboard 
3161             messages; it's supposed to be done in the message pump
3162           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3163             per MSDN documentation.
3164           - IsInputChar: All chars are input chars by default; removed the 
3165             parent calling chain, MS does not document that
3166           - PreProcessMessage: If IsInputChar is true, we want to return false
3167             to allow dispatching of the message
3168           - When selecting the next control, now also check that we're not
3169             selecting ourselves again and therefore return a false positive.
3170         * TextBoxBase.cs:
3171           - Tried to match return values for IsInputKey and ProcessDialogKey
3172             to what MS returns; moved processing of our special keys outside
3173             ProcessDialogKey since MS does not seem to return true on those.
3174           - Moved code that previously was in ProcessDialogKey into new private
3175             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3176           - Reworked handling of WM_CHAR to not have to duplicate code from
3177             Control.cs anymore, instead we simply call down to base.
3178            
3179 2006-01-12  Jackson Harper  <jackson@ximian.com>
3180
3181         * ComboBox.cs: We always need to refresh the text area when
3182         EndUpdate is called. Fixes the combobox in the file dialog.
3183         * Control.cs: Don't create the creator_thread until the controls
3184         handle is created.  Also in InvokeRequired we check if the
3185         creator_thread is null. This gives the effect of InvokeRequired
3186         returning true if the controls handle is not created yet, and
3187         matches MS.
3188
3189 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3190
3191         * XplatUI.cs:
3192           - Added StartLoop() driver method. This is used to allow drivers to
3193             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3194             loop for a particular thread
3195           - Added EndLoop() driver method. This is called once the message
3196             pump for the thread is shut down
3197           - Added SupportsTransparency method to allow the driver to indicate
3198             opacity support for windows
3199         * Form.cs:
3200           - Removed TODO attribute, completed AllowTransparency property
3201           - Added documented logic to Opacity
3202         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3203           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3204           versions of CompatibleTextRendering
3205         * X11Structs.cs: Added opacity atom to our atom enumeration
3206         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3207           of a form might be set before it's reparented by the WM, and we need
3208           the opacity value without calling up to Form)
3209         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3210           SupportsTransparency() driver methods
3211         * Application.cs: Now calling StartLoop and EndLoop driver methods
3212         * XplatUIX11.cs:
3213           - Added opacity atom registration
3214           - Added StartLoop()/EndLoop() methods. They're empty right now but
3215             will need to get implemented when we switch to a per-thread queue
3216           - Implemented SupportsTransparency() method
3217           - Implemented SetWindowTransparency() method
3218           - Added support for setting the opacity value when a window is
3219             reparented (since the opacity needs to be set on the WM frame)
3220         * XplatUIOSX.cs, XplatUIWin32.cs:
3221           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3222
3223 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3224
3225         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3226
3227 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3228
3229         * FileDialog.cs: Added ToolTip for MWFFileView
3230         * MimeIcon.cs: Rewrote GnomeHandler.
3231           - Get currently used gnome icon theme from
3232             ($HOME)/.gconf/%gconf-tree.xml
3233           - Make use of inherited icon themes
3234           - Support SVG icon themes like Tango via librsvg
3235
3236 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3237
3238         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3239         builds. 
3240         
3241         * Application.cs: Move the use_compatible_text_rendering outside
3242         the NET_2_0 define.  If we ever need to use the
3243         use_compatible_text_rendering on the individual controls they will
3244         access the variable from the common shared code paths.
3245
3246 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3247
3248         * XplatUI.cs:
3249           - Added more granular debug options
3250           - Added method to print both window text and id
3251           - Switched debug output to use new Window() debug method
3252           - Added IsEnabled() driver method
3253           - Added EnableWindow() driver method
3254         * Form.cs:
3255           - Removed end_modal; no longer needed, new loop handles termination
3256             via 'closing' variable
3257           - If form is modal, setting DialogResult will now initiate loop
3258             termination via 'closing' variable
3259           - Added support for is_enabled/WS_DISABLED to CreateParams
3260           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3261             does all the work
3262           - Removed code that's now in RunLoop from ShowDialog()
3263           - Added various documented sanity checks to ShowDialog()
3264           - Added handling of WM_DESTROY message; we set 'closing' on getting
3265             the message to indicate the message pump to terminate
3266           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3267             send by the Application.ExitThread method. (We send the message
3268             to destroy the window after all other events have been
3269             processed through the queue, instead of destroying the handle 
3270             directly)
3271           - Moved code from Close() method to WM_CLOSE handler; added logic
3272             to only send close-related events if the form is not displayed
3273             modal
3274         * Splitter.cs (..ctor): Fixed typo in resource name
3275         * Control.cs:
3276           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3277             brush now
3278           - set_Cursor: Now only setting calling into XplatUI if the handle for
3279             the control is already created; this avoids implict handle creation
3280             or crashes if it's not created
3281           - set_Enabled: Now setting the enabled state via the new driver method
3282             instead of just tracking it
3283           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3284           - CreateControl: Reordered event firing and method calls to more
3285             closely fire events in the order MS does. Now setting the
3286             enabled state in the driver when creating the control.
3287           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3288             match MS order
3289         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3290           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3291         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3292         * Hwnd.cs:
3293           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3294           - Added EnabledHwnd property to easily allow a driver to find the
3295             handle of the first enabled window in the parent chain (this is
3296             used by drivers to pass up input events of disabled windows)
3297         * XplatUIDriver.cs: Added IsEnabled() method
3298         * Application.cs:
3299           - Removed crude and obsolete exiting tracking variable
3300           - Removed internal ModalRun(); replaced by RunLoop()
3301           - Implemented private CloseForms() method to allow closing all 
3302             windows owned by a particular (or all) threads
3303           - Exit() now properly closes all windows without forcing the message
3304             pump to quit
3305           - Removed obsolete InternalExit() method
3306           - Changed Run() methods to use new RunLoop() message pump
3307           - Implemented new RunLoop() method for both modal and non-modal forms
3308         * CommonDialog.cs:
3309           - get_CreateParams: Added setting of WS_DISABLED
3310           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3311             invoked via Form.ShowDialog()
3312         * NativeWindow.cs: We don't remove the window from the collection when
3313           the handle is destroyed; there might still be messages for it in the
3314           queue (mainly the resulting WM_DESTROY); instead it will be removed
3315           when Control calls InvalidateHandle in the WM_DESTROY handler
3316         * XplatUIX11.cs:
3317           - CreateWindow: Added logic to handle the WS_DISABLED window style
3318           - EnableWindow: Implemented based on Hwnd.Enabled
3319           - GetMessage: Reset PostQuitState so the method can be called again
3320           - Implemented support for disabled windows (passing messages to the
3321             first enabled parent) in handling all input messages
3322           - Added optimizations for handling Expose events
3323           - Implemeted new driver method IsEnabled()
3324           - Now always resetting paint pending tracking vars when we start paint
3325           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3326         * XplatUIOSX.cs: Added IsEnabled method stub
3327         * XplatUIWin32.cs: Implemented new IsEnabled() method
3328
3329 2006-01-11  Jackson Harper  <jackson@ximian.com>
3330
3331         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3332         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3333         variables a little.
3334         * ColorDialog.cs: Clear out the old form before adding the new
3335         panel.  
3336
3337 2006-01-11  Jackson Harper  <jackson@ximian.com>
3338
3339         * X11Dnd.cs: Make sure to add all the text formats when adding
3340         strings to the data object.
3341         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3342         do some redrawing too.  Also change the UpdateNode to an
3343         UpdateBelow so the newly added node gets painted.
3344         
3345 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3346
3347         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3348         LinkLabel.cs, PropertyGrid.cs: Implement the
3349         UseCompatibleTextRendering property for 2.x
3350
3351         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3352
3353 2006-01-11  Jackson Harper  <jackson@ximian.com>
3354
3355         * TreeView.cs: Use the property for setting the selected node so
3356         the correct events get raised.
3357         * TreeNode.cs: Update the tree when the fore/back colours of a
3358         node are set.
3359
3360 2006-01-10  Jackson Harper  <jackson@ximian.com>
3361
3362         * TreeView.cs: Allow setting SelectedNode to null.
3363
3364 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3365
3366         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3367
3368 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3369
3370         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3371
3372 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3373
3374         * PrintDialog.cs: Added attributes and set default property values.
3375
3376 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3377
3378         * PrintControllerWithStatusDialog.cs: 
3379         Added PrintControllerWithStatusDialog.
3380
3381 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3382
3383         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3384         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3385
3386 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3387
3388         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3389
3390 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3391
3392         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3393         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3394
3395 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3396
3397         * MimeIcon.cs: Added internal class SVGUtil.
3398
3399 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3400
3401         * FileDialog.cs: Don't crash if there are two files with the
3402           same name but different locations.
3403
3404 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3405
3406         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3407         dates across multiple month grids. Used to not highlight entire 
3408         month, but does now.
3409         
3410 2006-01-06  Jackson Harper  <jackson@ximian.com>
3411
3412         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3413         message loop. Change timer intervals to numbers that seem more
3414         natural.
3415
3416 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3417
3418         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3419           object for location info since screen object is now implemented.
3420
3421 2006-01-05  Jackson Harper  <jackson@ximian.com>
3422
3423         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3424         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3425         AsyncMethodResult, this is because we ALWAYS want the
3426         ManualResetEvent to get set.
3427         * Control.cs: When disposing use an async invoke to call shutdown
3428         code, so that thigns don't block on the finalizer thread.  Also
3429         check if we even have a message loop before trying to send
3430         messages, if we don't then don't bother sending messages.
3431         - No more weak references for async methods
3432         * XplatUIDriver.cs: No more weak references for async methods.
3433
3434 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3435
3436         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3437           returns two FontFamily with the same name
3438
3439 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3440
3441         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3442           drawing disabled text. Instead using the ColorGrayText color
3443
3444 2006-01-04  Jackson Harper  <jackson@ximian.com>
3445
3446         * TreeNode.cs: redraw the node when its image index is changed.
3447
3448 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3449
3450         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3451           time I checked there are no others like it.
3452
3453 2006-01-04  Jackson Harper  <jackson@ximian.com>
3454
3455         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3456         this gives the behavoir I was looking for.
3457         * Control.cs: Special case Invoking EventHandlers, this matches MS
3458         and fixes part of bug #76326.
3459
3460 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3461
3462         * ThemeClearlooks.cs, FileDialog.cs:
3463           - Reflect the latest Theme class changes
3464           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3465             with DateTime
3466             
3467 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3468
3469         * Theme.cs: Cache UI resource images and resize them if needed
3470
3471 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3472
3473         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3474           is called. This fixes the crash in Nexxia when setting the font
3475           attributes in the chat. [However, RTF needs a look-over to make sure
3476           that all SelectionXXX methods handle the special case that selection
3477           is empty and therefore the change must be applied to all text starting
3478           at the cursor/selection start]
3479
3480 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3481
3482         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3483           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3484         * X11Keyboard.cs: Switched to new way of calling PostMessage
3485
3486 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3487
3488         * Theme.cs: Added theme interface for images to allow the theme to
3489           control what images are used for things like FileDialog, MessageBox
3490           icons, etc.
3491         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3492
3493 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3494
3495         * FileDialog.cs:
3496           - Removed some dead code
3497           - Opening a recently used file does work now
3498           - Small UI enhancements
3499           - Refactoring
3500
3501 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3502
3503         * FileDialog.cs: Forgot too add __MonoCS__
3504
3505 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3506
3507         * FileDialog.cs: We are able to read recently used files now let's
3508           go on and write them.
3509
3510 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3511
3512         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3513           button
3514         * MimeIcon.cs: Do a check for the top level media type also
3515
3516 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3517
3518         * ThemeClearlooks.cs:
3519           - Added CPDrawStringDisabled
3520           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3521             some chars if the text doesn't fit into text_rect
3522           - DrawListViewItem: If View = View.LargeIcon center the image;
3523             rewrote the drawing of ListViewItem.Text if View = 
3524             View.LargeIcon
3525
3526 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3527
3528         * MimeIcon.cs: Use default KDE icon theme if there is no
3529           "48x48" directory for the current icon theme, fixes #77114
3530         * Mime.cs: Disable not working and actually not used code. 
3531         * ThemeWin32Classic.cs:
3532           - Replace "new SolidBrush" in GetControlBackBrush and
3533             GetControlForeBrush with ResPool.GetSolidBrush
3534           - Changed DrawListViewItem from private to protected virtual
3535         * FileDialog.cs:
3536           - Added form.MaximizeBox = true
3537           - Don't throw an exception if there is a broken symbolic link
3538
3539 2005-12-23  Jackson Harper  <jackson@ximian.com>
3540
3541         * TabControl.cs: Give the panels focus, keyboard navigation is
3542         fixed so this works correctly now.
3543         - We need these key events also.
3544         * ToolBar.cs: Remove some of the poor mans double buffering.
3545         
3546 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3547
3548         * ComboBox.cs: The internal TextBox now returns the focus.
3549
3550 2005-12-23  Jackson Harper  <jackson@ximian.com>
3551
3552         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3553
3554 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3555
3556         * Control.cs: Removed debug code
3557         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3558           implicit children
3559
3560 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3561
3562         * Control.cs: When creating the control, update the Z-order after
3563           all it's children are created, too. (Fixes nexxia not showing
3564           picturebox bug)
3565
3566 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3567
3568         * Control.cs: Do not update the anchoring distances if layout is
3569           suspended, instead do it once layout is resumed
3570
3571 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3572
3573         * Control.cs: 
3574           - After many hours of debugging, for both Jackson and
3575             myself, it turns out that it helps to set the parent of a control
3576             if you want to actually see it onscreen. In the spirit of that
3577             discovery, we're now setting the parent of the control and
3578             it's children when the control's handle is created. This fix
3579             will make Lutz Roeder's Reflector run happily. 
3580           - now just creating the handle instead of the whole control when
3581             getting a graphics context for the control.
3582
3583 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3584
3585         * ScrollableControl.cs: When calculating the canvas, don't consider
3586           the scrollbar widths. Instead, predict if horizontal scrollbar
3587           will affect canvas when deciding on vertical display and vice versa.
3588
3589 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3590
3591         * RichTextBox.cs: Set default RTF font for documents that don't
3592           have a font table (Fixes #77076)
3593
3594 2005-12-22  Jackson Harper  <jackson@ximian.com>
3595
3596         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3597         clipboard. This prevents a NullRef in that case.
3598         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3599         clipboard. PRIMARY is for the currently selected text only. (We
3600         should implement PRIMARY at some point.
3601
3602 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3603
3604         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3605           a Unicode function with a structure that was defined in Ansi way.
3606           This fixes #76942.
3607
3608 2005-12-21  Jackson Harper  <jackson@ximian.com>
3609
3610         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3611         on. Because thats how it rolls. (and this avoids it using ambient
3612         colours).
3613         * ThemeWin32Classic.cs: Use the proper back color for filling.
3614         * Menu.cs: Use the system menu bar color for drawing menu
3615         bars. Using the window back color will bring ambient colours into
3616         the picture.
3617
3618 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3619
3620         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3621           Bitmaps were created and not disposed.
3622
3623 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3624
3625         * Control.cs (CreateControl): Don't do anything if the control is
3626           already created, otherwise we'd fire the OnCreated event more than
3627           once
3628
3629 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3630
3631         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3632           will always match. Instead return -1. Fixes #76464.
3633
3634 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3635
3636         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3637           neither the beginning nor the end of the line (Fixes bug #76479)
3638
3639 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3640
3641         * Control.cs:
3642           - ControlNativeWindow.ControlFromHandle(): Now handling situation
3643             where handle is invalid
3644           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3645             instead of slower linear search
3646         * NativeWindow.cs: Don't remove the window from the hashtable until
3647           after the driver has destroyed it (since the driver might use
3648           Control.FromHandle to lookup the control object
3649         * Hwnd.cs: Added DestroyPending property to track if a window is 
3650           already destroyed as far as the driver is concerned and only hasn't
3651           yet notified the control
3652         * XplatUIX11.cs:
3653           - Activate(): Check if the window is still valid before using the 
3654             handle
3655           - Implemented DestroyChildWindow() method to mark child windows as
3656             destroyed when a window is destroyed. This prevents situations 
3657             where we might call an X method based on queued events for a
3658             window that already has been destroyed but we haven't yet pulled
3659             the destroy method from the queue.
3660           - Added a call to the new DestroyChildWindow() method to the drivers
3661             DestroyWindow code. Also now marking the destroyed window itself
3662             as pending
3663
3664 2005-12-20  Jackson Harper  <jackson@ximian.com>
3665
3666         * StatusBar.cs:
3667         * StatusBarPanel.cs: Don't calculate panel sizes on draw
3668         anymore. Just do them when needed, also track the rects of panels
3669         so that we can optimize refreshing more in the future.
3670
3671 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
3672
3673         * ColorDialog.cs: Fixed focus drawing in small color controls
3674
3675 2005-12-19  Jackson Harper  <jackson@ximian.com>
3676
3677         * InternalWindowManager.cs:
3678         * MdiWindowManager.cs: Cleanup some coordinate system changes so
3679         moving windows works properly.
3680
3681 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
3682
3683         * Control.cs: 
3684           - Removed call to InitLayout() from SetBoundsCore(); doc says
3685             it's only called when a control is added to a container
3686           - Split InitLayout logic, moved to separate UpdateDistances() method
3687             since we need to perform those calculations more often than just
3688             when adding the control to a container. (Needed to fix #77022)
3689           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3690           - Reduced the OnBindingContextChanged events count, don't send them
3691             unless the control is created, we still aren't totally matching
3692             MS, but I can't quite figure out some of their rules
3693
3694 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3695
3696         * ThemeClearlooks.cs: Corrected distance between ProgressBar
3697           stripes
3698
3699 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3700
3701         * ThemeClearlooks.cs:
3702           - Updated ProgressBar drawing
3703           - Corrected drawing of ScrollBars and scroll buttons
3704           - Some temporary fixes for minor pixel artefacts
3705
3706 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
3707
3708         * Control.cs:
3709           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3710             cause events to be sent in the same order as MS does.
3711           - Added ChangeParent() method to trigger various OnXXXChanged events
3712             that need to be fired when a parent changes (This is a reworking
3713             of the patch from r54254, with the X11 errors fixed)
3714           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3715             since on MS we get OnLayoutChanged events when calling Clear()
3716           - Changed Enabled property to consider parent state as well, if a
3717             parent is not enabled, the control will not be either
3718           - Changed Parent property to simply call Controls.Add() since that
3719             now does all the work required, this way we avoid code duplication
3720           - Threw in a few OnBindingsContextChanged calls to try and match
3721             when MS sends them. We seem to send a few too many, though.
3722           - Added call to CreateControl when adding the control to a parent.
3723             We were never calling CreateControl. Still needs some work, in
3724             some places we treat HandleCreated and ControlCreated as equal, 
3725             which is wrong
3726           - Removed obsolete commented out code from UpdateZOrder()
3727
3728 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3729
3730         * ThemeClearlooks.cs: Updated TrackBar drawing.
3731
3732 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3733
3734         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3735
3736 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3737
3738         * FileDialog.cs: Add the Help button and the open readonly
3739           checkbox only if needed
3740
3741 2005-12-16  Jackson Harper  <jackson@ximian.com>
3742
3743         * Control.cs: Make sure we have an active menu before trying to
3744         process commands on it. Prevents menu-less forms from crashing
3745         when Alt is pressed.
3746         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3747         Dieter Bremes.
3748         * RichTextBox.cs: Expand statement to help out gmcs and fix the
3749         2.0 build.
3750
3751 2005-12-16  Jackson Harper  <jackson@ximian.com>
3752
3753         * InternalWindowManager.cs: Don't translate tool windows screen
3754         coordinates. This fixes windows 'bouncing' around when being moved.
3755
3756 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3757
3758         * TextBoxBase.cs:
3759           - MaxLength now treats 2^31-1 equal to unlimited length (this is
3760             not quite MS compatible, MS uses that number only for single line
3761             and 2^32-1 for multi-line, but I figure it won't hurt keeping
3762             the limit at 2GB)
3763           - Now enforcing the MaxLength limit when entering characters
3764           - Added argument to internal Paste() method to track if it's called
3765             from programatically or via keyboard, since keyboard driven pastes
3766             need to enforce max-length
3767           - Added logic to Paste to only paste as many chars as MaxLength 
3768             allows
3769         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3770         * TextControl.cs:
3771           - Added Length property to return number of characters in document
3772           - Added private CharCount property which only tracks actual chars
3773             in the document (no linefeeds) and fires event when CharCount
3774             changes
3775           - Added tracking of character count to all methods that alter it
3776           - Added LengthChanged event to allow applications to subscribe
3777             to any changes to the document
3778
3779 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3780
3781         * TextBox.cs: 
3782           - Removed local password_char field (moved to TextBoxBase)
3783           - Now setting the document's password var when password is
3784             set
3785         * TextBoxBase.cs:
3786           - Added password_char field (needed here so MultiLine can
3787             access it)
3788           - Added logic to MultiLine property setter to set the document's
3789             variable when password display is allowed
3790           - Removed debug code and made some debug code conditional
3791         * TextControl.cs:
3792           - Added RecalculatePasswordLine() method to handle special password
3793             char only lines
3794           - Added PasswordChar property, also added related tracking vars
3795           - Draw() method now uses local text var for grabbing text to draw,
3796             this var is set to line.text unless we're doing password display,
3797             then it is set to the pre-generated all-password-chars line
3798           - Added calling RecalculatePasswordLine() method for password lines
3799
3800 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3801
3802         * Hwnd.cs: 
3803           - Added Reparented property to allow tracking of Window Manager
3804             reparenting actions (which affect X/Y calculations of toplevel 
3805             windows)
3806           - Made ToString() print window handles in hex
3807         * XplatUIX11.cs:
3808           - AddConfigureNotify(): Now uses reparented state off Hwnd to
3809             determine if X/Y needs offsetting
3810           - AddConfigureNotify(): Fixed offset calculations
3811           - Now adds ReparentNotify messages into the queue
3812           - Now processes ReparentNotify messages and causes a 
3813             WM_WINDOWPOSCHANGED message to be sent upstream if a window
3814             is reparented (as most likely it's X/Y coordinates are changed
3815             due to that)
3816
3817 2005-12-14  Jackson Harper  <jackson@ximian.com>
3818
3819         * XplatUIX11.cs: Tool windows still need to respek focus.
3820
3821 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3822
3823         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3824           have a working release
3825
3826 2005-12-13  Jackson Harper  <jackson@ximian.com>
3827
3828         * Form.cs: Update styles after setting the border style regardless
3829         of whether or not the window is using a window manager.
3830
3831 2005-12-13  Jackson Harper  <jackson@ximian.com>
3832
3833         * Form.cs: We now hook into an internal window manager instead of just an
3834         MDI subsystem, this is so we can have properly behaving tool windows.
3835         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3836         * InternalWindowManager.cs: New internal class that acts as a
3837         window manager for tool windows and as a base for mdi windows.
3838         * MdiWindowManager.cs: New class that acts as a window manager for
3839         mdi windows.
3840
3841 2005-12-12  Jackson Harper  <jackson@ximian.com>
3842
3843         * Control.cs: Updates so we match behavoir for for implicit
3844         controls. Fixes explosions in MDI.
3845
3846 2005-12-12  Jackson Harper  <jackson@ximian.com>
3847
3848         * Control.cs: Implement Invalidate (Region).
3849
3850 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
3851
3852         * Control.cs: 
3853           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
3854             the same events as MS does. MS fires events for each property 
3855             except, for unknown reasons, Cursor, when the control is reparented. 
3856             I can't seem to totally match add/remove since MS also fires some 
3857             VisibleChanged events, which makes no sense. Consolidated the
3858             parenting code into a separate method so it can be called from
3859             both Add and Remove. set_Parent no longer needs any special logic
3860             as it calls the parent's add method which implicitly fires
3861             all events
3862           - Removed some obsolete code and debug output
3863           - Enabled state is inherited from parents, if this is enabled
3864
3865 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
3866
3867         * Form.cs: Removed commented out code
3868
3869 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
3870
3871         * Control.cs:
3872           - Added internal version of Invoke, with additional argument 
3873             indicating if we're calling it from a Dispose() handler. That
3874             way we can avoid BeginInvoke throwing an exception if we're
3875             calling for an already destroyed window.
3876           - Added a dispose argument to BeginInvokeInternal, and made the
3877             check if a valid window handle chain exists conditional on
3878             it not being a dispose call
3879           - Removed code in DestroyHandle to destroy our children. Since we
3880             now handle the WM_DESTROY message we will catch all our children
3881             being destroyed.
3882           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
3883         * Form.cs:
3884           - Added a field to track the application context of the form.
3885           - No need to set closing variable as response to WM_CLOSE, instead
3886             we destroy the window. We also call PostQuitMessage if the form
3887             has an application context (which makes it the main app form,
3888             which, when closed terminates the app)
3889         * XplatUI.cs:
3890           - Dropped Exit() method, it's naming was confusing
3891           - Added PostQuitMessage() which causes GetMessage to return false
3892             once the message queue is empty
3893         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
3894           PostQuitMessage()
3895         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
3896           no longer a valid XplatUI method, but left it in since it's used
3897           internally. Added empty PostQuitMessage() method.
3898         * MenuAPI.cs: Replaced call to Exit() with call to
3899           PostQuitMessage, even though this is probably no longer needed.
3900         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
3901         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
3902         * Application.cs:
3903           - Replaced call to XplatUI.Exit() with PostQuitMessage()
3904           - Removed old debug code that would call XplatUI for exception
3905             display, enabled standard exception handling (Still not enabled
3906             though, until NativeWindow's ExternalExceptionHandler define
3907             is removed
3908         * NativeWindow.cs:
3909           - Added internal method to allow control to update NativeWindow
3910             after a window has been destroyed
3911           - Added handling of already destroyed windows when calling i
3912             DestroyWindow
3913           - Added removal of handle from list on ReleaseHandle
3914         * XplatUIX11.cs:
3915           - Dropped GetMessageResult var and related code
3916           - Added PostQuitState to field to track if PostQuitMessage has been
3917             called
3918           - Dropped Exit() method
3919           - Added PostQuitMessage() method
3920           - GetMessage now will return false if PostQuitState is set and no
3921             more messages are in the queue.
3922           - Expose handler will no longer generate WM_PAINT messages if we are
3923             in PostQuitState since it's very likely any windows have already
3924             been destroyed, and since Hwnd won't get updated until we have
3925             processed the DestroyNotify we'd be causing X errors.
3926         
3927 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3928
3929         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
3930           Thanks to Mike for pointing out the err of my ways.
3931
3932 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3933
3934         * Control.cs(PreProcessMessage): Moved menu handling back, but
3935           after all other key handling, to match MS (who handles Menu in
3936           DefWndProc)
3937         * Menu.cs (WndProc): Removed my brainfart
3938
3939 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3940
3941         * Control.cs(PreProcessMessage): Removed special menu handling 
3942         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
3943
3944 2005-12-07  Mike Kestner  <mkestner@novell.com>
3945
3946         * Control.cs : special case SYSKEYUP so that we can adjust keynav
3947         state according in tracker.
3948         * Menu.cs : promote tracker field to base class and provide a tracker
3949         lookup capability.  Add/Remove shortcuts dynamically if the top menu
3950         has a tracker. Unparent items that are removed from the collection.
3951         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
3952         * Theme*.cs: add always_show_hotkeys field to support configurability
3953         of mnemonic display.  win32 doesn't show mnemonics until Alt is
3954         pressed.
3955
3956 2005-12-07  Jackson Harper  <jackson@ximian.com>
3957
3958         * MdiChildContext.cs: Use Control.ResetCursor.
3959         * Control.cs: ResetCursor needs to set the property so that the
3960         correct XplatUI call gets made.
3961
3962 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3963
3964         * Control.cs: More fixes to make our key events match MS. We
3965           were not setting the modifier state on KeyData, and we were
3966           not generating any events when Alt was pressed with a key
3967           since handling of WM_SYSxxx was missing for the OnKey methods.
3968
3969 2005-12-07  Jackson Harper  <jackson@ximian.com>
3970
3971         * MdiChildContext.cs: reenable the sizing code.
3972         - When the mouse leaves a window reset its cursor.
3973
3974 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
3975
3976         * ThemeClearlooks.cs: Reflect latest Hwnd changes
3977
3978 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3979
3980         * Hwnd.cs: Now using the theme 3d bordersize to calculate
3981           widths of Fixed3D borders
3982
3983 2005-12-07  Jackson Harper  <jackson@ximian.com>
3984
3985         * MdiClient.cs: Fix warnings. Earn Mike's love.
3986
3987 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
3988
3989         * ThemeClearlooks.cs:
3990           - Adjusted mouse over button color
3991           - Added first parts of CheckBox drawing
3992           - Added correct color for selected text background
3993           - Fixed ComboBox drawing
3994           - Added CPDrawBorder3D and CPDrawBorder
3995
3996 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
3997
3998         * XplatUIX11.cs: Added call to XBell for AudibleAlert
3999
4000 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4001
4002         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4003           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4004           alert users via sound. We could add an enum arg with different
4005           types of alerts in the future
4006
4007 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4008
4009         * Control.cs: Fix behaviour problems pointed out by Mike
4010
4011 2005-12-05  Mike Kestner  <mkestner@novell.com>
4012
4013         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4014         prop setters.  Calls parent.Refresh for now, but could be maybe be
4015         optimized with an internal method on StatusBar at some point.
4016         [Fixes #76513]
4017
4018 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4019
4020         * RichTextBox.cs: Implemented get_SelectionColor
4021
4022 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4023
4024         * ThemeClearlooks.cs:
4025           - Removed dead code
4026           - Draw black button border only if button is Form.AcceptButton
4027           - Draw correct button color for pressed RadioButton if the mouse 
4028             has entered the button
4029           - Updated ProgressBar drawing!
4030           - Updated CPDrawSizeGrip drawing
4031           - Updated StatusBarPanel drawing
4032
4033 2005-12-05  Mike Kestner  <mkestner@novell.com>
4034
4035         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4036         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4037
4038 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4039
4040         * ThemeClearlooks.cs: Initial check-in, activate with
4041           export MONO_THEME=clearlooks
4042         * ThemeEngine.cs: Added ThemeClearlooks
4043
4044 2005-12-03  Mike Kestner  <mkestner@novell.com>
4045
4046         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4047         [Fixes #76897]
4048
4049 2005-12-02  Jackson Harper  <jackson@ximian.com>
4050
4051         * Form.cs: If the child form has no menu the default main menu is
4052         used as the active menu.
4053
4054 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4055
4056         * ListBox.cs: Check if any items exist before trying to resolve 
4057           coordinates into items
4058
4059 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4060
4061         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4062           as the second color for the background hatch
4063
4064 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4065
4066         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4067         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4068           sure that what we pass to FormatText is always 1-based. Fixes #76885
4069
4070 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4071
4072         * NumericUpDown.cs (EndInit): When we are done initializing,
4073         reflect any updates on the UI.
4074
4075 2005-12-02  Jackson Harper  <jackson@ximian.com>
4076
4077         * ImplicitHScrollBar.cs:
4078         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4079         their container controls.
4080         * TreeView.cs: Use the new implicit scrollbars.
4081
4082 2005-12-02  Jackson Harper  <jackson@ximian.com>
4083
4084         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4085         can play with it.
4086         * TreeNodeCollection.cs: If we remove the topnode we need to
4087         update topnode to the next node in line.
4088         - When clearing nodes go through the same process as removing
4089         them, so they get depareneted and checked if they are top node.
4090
4091 2005-12-01  Jackson Harper  <jackson@ximian.com>
4092
4093         * TreeView.cs: When imagelists are used the image area is
4094         selectable as well as the text.
4095         - If there are no selected nodes select the first one.
4096         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4097         so don't do it more then we need to.
4098
4099 2005-12-01  Jackson Harper  <jackson@ximian.com>
4100
4101         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4102         that arrows can be scaled.
4103
4104 2005-12-01  Jackson Harper  <jackson@ximian.com>
4105
4106         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4107         fail. Patch by Dieter Bremes
4108
4109 2005-11-30  Jackson Harper  <jackson@ximian.com>
4110
4111         * Form.cs: Property is 2.0 only
4112         * PrintDialog.cs: Signature fix.
4113
4114 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4115
4116         * TextControl.cs: 
4117           - No longer artificially moves text 2 pixels down (now that we have
4118             borders this is no longer needed)
4119           - Added calcs for left, hanging and right indent
4120
4121 2005-11-23  Mike Kestner  <mkestner@novell.com>
4122
4123         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4124
4125 2005-11-30  Jackson Harper  <jackson@ximian.com>
4126
4127         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4128         get cloned as part of CloneMenu ().
4129         * Menu.cs: Make sure the parent of the items get set correctly
4130         when they are added.  And the owners are notified of the changes.
4131         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4132         we can change the menu being displayed/handled by the form without
4133         changing the menu assosciated with the form.
4134         - Don't let Mdi children draw/handle menus.
4135         
4136 2005-11-30  Jackson Harper  <jackson@ximian.com>
4137
4138         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4139         a MenuChanged event. Just to make the API a little more
4140         consistent.
4141         * MainMenu.cs:
4142         * MenuItem.cs: Use the new OnMenuChanged
4143         * MdiChildContext.cs: Handle menu merging.
4144         * Form.cs: Implement MergedMenu.
4145         
4146 2005-11-30  Jackson Harper  <jackson@ximian.com>
4147
4148         * Menu.cs: We were misusing Add. Add goes behind the specified
4149         index according to the docs, and does not replace the specified
4150         index. So I added an Insert method.
4151
4152 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4153
4154         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4155           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4156           is for Jackson
4157         * RichTextBox.cs: Added calls to base for DnD events
4158
4159 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4160
4161         * TextControl.cs:
4162           - Fixed drag-selection related crash; style fixes
4163           - Implemented undo class
4164             o Implemented method to capture document state for specified
4165               range in document tree
4166             o Implemented method to restore captured document state
4167             o Implemented cursor tracking
4168             o Implemented basic undo stack
4169           - Added undo cursor tracking to methods altering cursor location
4170           - Added undo tracking to selection deletion (still missing
4171             other text-altering hookups)
4172         * RichTextBox.cs:
4173           - Added SelectionLength property
4174           - Implemented CanPaste()
4175           - Implemented Paste()
4176           - Added missing protected methods
4177           - Fixed RTF->Document conversion; now uses font index 0 and color 
4178             index 0 as the default font for the parsed text
4179           - Fixed RTF<->Document font size translation
4180           - Fixed RTF generation, now properly handles cross-tag boundaries
4181             for single line selection
4182           - No longer always appends blank line to generated RTF
4183           - Removed TODOs
4184           - Added missing attributes
4185           - Hooked up undo-related methods
4186         * TextBoxBase.cs:
4187           - Implemented Copy()
4188           - Implemented Paste()
4189           - Implemented Cut()
4190           - Fixed caret mis-behaviour on backspace across line-boundaries
4191
4192 2005-11-29  Jackson Harper  <jackson@ximian.com>
4193
4194         * MdiClient.cs: Add a method for activating mdi children. Very
4195         basic right now. I imagine someday it might need more girth.
4196         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4197         children windows names are added to the menu item.
4198         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4199         mdilist. This happens regardless of whether or not there are any
4200         mdi windows to see in the list, and according to my tests happens
4201         before the items are even added. Also happens if there isn't even
4202         an mdi client to get windows from.
4203
4204 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4205
4206         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4207         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4208
4209 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4210
4211         * DataGridTableStyle.cs:
4212           - Create always the styles for the missing columns even if they are
4213             provided by the user (not default table style)
4214         * DataGrid.cs:
4215           - Fixes bug 76770
4216           - Fixes SetDataBinding (always re-attach source)
4217           - Fixes SetNewDataSource (only clear styles if they are not for 
4218             this source)
4219          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4220             and remove properly
4221
4222 2005-11-29  Jackson Harper  <jackson@ximian.com>
4223
4224         * FileDialog.cs: Implement missing bits, remove some dead
4225         code.
4226         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4227         creation of the panel so that the options set on the dialog are
4228         seen when the panel is created.
4229         * TreeView.cs: raise a click when items are clicked.
4230         
4231 2005-11-29  Jackson Harper  <jackson@ximian.com>
4232
4233         * MdiClient.cs: Pass some signature methods through to base.
4234
4235 2005-11-28  Jackson Harper  <jackson@ximian.com>
4236
4237         * ListView.cs: Raise the click event when items are clicked.
4238
4239 2005-11-28  Jackson Harper  <jackson@ximian.com>
4240
4241         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4242         a nullref.
4243
4244 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4245
4246         * ThemeNice.cs: - Removed 1 pixel bitmaps
4247           - Use SmoothingMode.AntiAlias where it makes sense
4248             (ScrollButton arrow for example)
4249           - Enhanced Button focus drawing
4250           - Fixed ComboBox drawing (no artefacts anymore, focus
4251             rectangle is back again, reduced size of ComboButton, etc.)
4252           - Fixed RadioButton focus drawing for Appearence.Button
4253           - Slight ScrollButton redesign
4254           - Some LinearGradientBrush size fixes
4255           - GroupBoxes have now rounded edges
4256           - Fixed StatusBar drawing
4257
4258 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4259
4260         * ThemeNice.cs: - Remove dead code
4261           - use correct background colors for menus, etc.
4262           - Fake pixel drawing with 1 pixel bitmaps
4263
4264 2005-11-24  Jackson Harper  <jackson@ximian.com>
4265
4266         * MdiClient.cs: Size the scrollbars when resizing the window.
4267         - Resize the maximized windows when the client is resized
4268         * Form.cs: Make the child context available
4269         
4270 2005-11-23  Jackson Harper  <jackson@ximian.com>
4271
4272         * MdiChildContext.cs: Don't size windows if they are maximized.
4273
4274 2005-11-23  Mike Kestner  <mkestner@novell.com>
4275
4276         * ContextMenu.cs: use MenuTracker.
4277         * Control.cs: remove menu handle usage.
4278         * Form.cs: remove menu handle usage.
4279         * Hwnd.cs: remove menu handle usage.
4280         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4281         motion and clicks to the new Tracker handlers.
4282         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4283         and handle usage.
4284         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4285         Killed the MENU and MENUITEM data types and associated collections
4286         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4287         MenuTracker class that exposes the leftovers from the old MenuAPI
4288         static methods. Restructured Capture handling so that only one grab is
4289         done for the entire menu hierarchy instead of handing off grabs to
4290         submenus. Tracker now has an invisible control to Capture when active.
4291         * MenuItem.cs: add sizing accessors, kill Create
4292         and handle usage.
4293         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4294         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4295         MENU(ITEM). remove menu handle usage, use Menu directly.
4296         * XplatUIDriver.cs: remove menu handle usage.
4297         * XplatUIOSX.cs: remove menu handle usage.
4298         * XplatUIWin32.cs: remove menu handle usage.
4299         * XplatUIX11.cs: remove menu handle usage.
4300
4301 2005-11-22  Jackson Harper  <jackson@ximian.com>
4302
4303         * Hwnd.cs: Don't compute the menu size for
4304         DefaultClientRectangle.
4305         - Reenable menu sizes being computed for GetClienRectangle.
4306         * Form.cs: Remove comment of trechery
4307         
4308 2005-11-22  Jackson Harper  <jackson@ximian.com>
4309
4310         * Hwnd.cs: The adjustments for the menu bar are made when it is
4311         attached to the form.
4312
4313 2005-11-19  Jackson Harper  <jackson@ximian.com>
4314
4315         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4316         (just like on windows).
4317
4318 2005-11-19  Jackson Harper  <jackson@ximian.com>
4319
4320         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4321         use real buttons anymore because they are in non client area. The
4322         one TODO here is that I need to somehow invalidate a section of
4323         the non client area.
4324
4325 2005-11-18  Jackson Harper  <jackson@ximian.com>
4326
4327         * Control.cs: Put the enum check back in now that MDI doesnt have
4328         to use this to set border styles.
4329         * Form.cs: Only set mdi child windows borders if the handle has
4330         been created.
4331         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4332         this directly on to the driver.
4333         - Get the move start position before adjusting for the titlebar
4334         height, this fixes the windows "skipping" when they are first
4335         moved.
4336
4337 2005-11-18  Jackson Harper  <jackson@ximian.com>
4338
4339         * XplatUIX11.cs: Just compute the mdi borders separately as they
4340         don't totally match up with normal form borders.
4341
4342 2005-11-18  Jackson Harper  <jackson@ximian.com>
4343
4344         * Control.cs: Set WS_ styles for borders, so that the driver does
4345         not have to retrieve the control instance to figure out what kind
4346         of borders it should have.
4347         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4348         driver can know its an mdi child easily.
4349         * XplatUIX11.cs: Get the border styles and whether the window is
4350         MDI from the Styles and ExStyles params instead of having to get a
4351         control. This prevents a chicken and egg problem.       
4352
4353 2005-11-18  Jackson Harper  <jackson@ximian.com>
4354
4355         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4356
4357 2005-11-18  Jackson Harper  <jackson@ximian.com>
4358
4359         * MdiClient.cs: Calculate when to add and remove scrollbars
4360         correctly.
4361         * MdiChildContext.cs: Adjust the y position to take the titlebar
4362         into account.
4363         - No height for FormBorderStyle.None
4364
4365 2005-11-18  Jackson Harper  <jackson@ximian.com>
4366
4367         * Control.cs: Allow non enum values to be used for
4368         InternalBorderStyle.  MDI does this to set a special border style.
4369         - New utility methods for converting points to/from client coords
4370         - Add the newly created control to the Controls collection before
4371         updating its style. This way UpdateStyle can walk the control
4372         heirarchy to find the control if needed.
4373         so I don't need to create a new Point object all the time.
4374         * Form.cs: Let MDI windows handle their border styles.
4375         - Set styles on MDI windows so the correct title style is derived.
4376         * MdiChildContext.cs: Move all the painting and window handling
4377         into the non client area.
4378         - Use correct sizing and put correct buttons on frames based on
4379         the FormBorderStyle.
4380         - Notify the mdi client about scrolling
4381         - Need to handle the buttons ourselves now, because they are all
4382         in non client areas and we can't add controls there.
4383         * MdiClient.cs: Halfway to scrolling, this implementation is
4384         somewhat broken though, we need to check to make sure other
4385         windows aren't causing scrolling before removing the bars. Also
4386         the bars need to be drawn on top, maybe I can switch implicit
4387         controls to be on top.
4388         * Hwnd.cs: caption_height and tool_caption_height are now
4389         properties of an hwnd, this way they can be set by the driver
4390         based on the type of window they are.  In X11 the window manager
4391         handles the decorations so caption_height is zero unless its an
4392         MDI window.
4393         - Add 3 pixel borders for MDI windows (0xFFFF).
4394         - Get rid of some code duplication, have DefaultClientRectanle
4395         just call GetClientRectangle.
4396         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4397         Hwnd now.
4398         - Set border styles differently for mdi windows.
4399         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4400         Hwnd now.
4401         
4402 2005-11-15  Mike Kestner  <mkestner@novell.com>
4403
4404         * Menu.cs: when adding an item to the collection, if item is already 
4405         parented, remove it from the parent.
4406
4407 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4408
4409         * X11DesktopColors.cs: Added KDE support
4410
4411 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4412
4413         * XplatUIWin32.cs: 
4414           - Clipboard methods now can translate Rtf format
4415           - No longer removes clipboard contents whenever a new format is added
4416             to allow placing multiple formats on the clipboard
4417         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4418           will place all formats contained in it onto the clipboard. Also
4419           now cleans the clipboard before placing a new object onto it
4420         * RichTextBox.cs:
4421           - Implemented set_Rtf
4422           - Implemented set_SelectedRtf
4423           - Created InsertRTFFromStream() method to allow single code base
4424             for all properties and methods that insert RTF into document
4425           - Removed debug output
4426         * TextControl.cs:
4427           - Fixed Delete(int) to fix up line numbers
4428           - Fixed ReplaceSelection to combine start and end line
4429           - Fixed serious DeleteChars bug that would leave the document tree
4430             broken
4431           - Improved DumpTree with several logic checks to detect broken
4432             document trees
4433           - Removed debug lines
4434           - Fixed Caret.WordForward/WordBack moving code, now always also 
4435             updates caret.tag (fixes crash when word-selecting across tag
4436             boundaries via keyboard)
4437           - Added Insert() method for inserting multiline text into documents
4438           - Fixed DeleteChars() calculation errors that would cause a broken
4439             tag chain with multiple tag lines
4440           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4441           - Split() no longer moves caret if split is at caret location
4442           - ReplaceSelection() now updates the cursor and re-displays it
4443           - ReplaceSelection() now uses new Insert() method to avoid code
4444             duplication
4445           - FormatText() can now handle formatting partial lines
4446         * TextBoxBase.cs:
4447           - Append now uses new TextControl.Insert() method (this avoids 
4448             duplicate code)
4449           - Implemented Ctrl-X (Cut) (
4450           - Implemented Ctrl-C (Copy)
4451           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4452             regeneration when pasting text; roundtripping Copy&Paste within
4453             edit control still fails due to some calculation bugs in GenerateRTF)
4454           - The Delete key will now remove the current selection if it is visible
4455         * TextBox.cs: Removed debug lines
4456         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4457           driver to be initialized and can't therefore be done via a static ctor)
4458
4459 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4460
4461         * TextControl.cs: Added backend code for finding char arrays and strings
4462         * TextBoxBase.cs:
4463           - Added mouse wheel scroll support
4464           - Added support for VScroll and HScroll events
4465         * RichTextBox.cs:
4466           - Implemented all seven Find() variants
4467           - Implemented GetCharFromPosition()
4468           - Implemented GetCharIndexFromPosition()
4469           - Implemented GetLineFromIndex()
4470           - Implemented GetPositionFromCharIndex();
4471           - Implemented SaveFile for PlainText and UnicodeText
4472           - Fixed set_Font, now setting a new font applies that font to
4473             the whole document
4474           - Implemented generic Document to RTF converter
4475           - Implemented SaveFile for RichText format (still missing unicode
4476             conversion for non-ansi chars)
4477           - Implemented get_Rtf
4478           - Implemented get_SelectedRtf
4479
4480 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4481
4482         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4483           to allow any captures to be released before triggering OnClick. This
4484           way a click handler may capture the mouse without interference.
4485         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4486           This way we send them even though X may not allow a grab (if the window
4487           isn't visible, for example)
4488
4489 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4490
4491         * DataGridViewRowEventArgs.cs: DataGridView implementation
4492         * DataGridViewElement.cs: DataGridView implementation
4493         * DataGridViewComboBoxCell.cs: DataGridView implementation
4494         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4495         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4496         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4497         * ImageLayout.cs: DataGridView implementation
4498         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4499         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4500         * DataGridViewSelectionMode.cs: DataGridView implementation
4501         * IDataGridViewEditingControl.cs: DataGridView implementation
4502         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4503         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4504         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4505         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4506         * DataGridViewColumnSortMode.cs: DataGridView implementation
4507         * DataGridView.cs: DataGridView implementation
4508         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4509         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4510         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4511         * Padding.cs: DataGridView implementation
4512         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4513         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4514         * DataGridViewRowEventHandler.cs: DataGridView implementation
4515         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4516         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4517         * DataGridViewButtonCell.cs: DataGridView implementation
4518         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4519         * DataGridViewEditMode.cs: DataGridView implementation
4520         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4521         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4522         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4523         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4524         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4525         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4526         * DataGridViewCellEventHandler.cs: DataGridView implementation
4527         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4528         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4529         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4530         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4531         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4532         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4533         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4534         * QuestionEventArgs.cs: DataGridView implementation
4535         * IDataGridViewEditingCell.cs: DataGridView implementation
4536         * DataGridViewTriState.cs: DataGridView implementation
4537         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4538         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4539         * DataGridViewColumnCollection.cs: DataGridView implementation
4540         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4541         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4542         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4543         * DataGridViewColumn.cs: DataGridView implementation
4544         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4545         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4546         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4547         * DataGridViewRow.cs: DataGridView implementation
4548         * DataGridViewImageCellLayout.cs: DataGridView implementation
4549         * DataGridViewImageCell.cs: DataGridView implementation
4550         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4551         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4552         * DataGridViewHeaderCell.cs: DataGridView implementation
4553         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4554         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4555         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4556         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4557         * QuestionEventHandler.cs: DataGridView implementation
4558         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4559         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4560         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4561         * DataGridViewCell.cs: DataGridView implementation
4562         * DataGridViewCellEventArgs.cs: DataGridView implementation
4563         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4564         * DataGridViewCellStyle.cs: DataGridView implementation
4565         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4566         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4567         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4568         * TextFormatFlags.cs: DataGridView implementation
4569         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4570         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4571         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4572         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4573         * DataGridViewButtonColumn.cs: DataGridView implementation
4574         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4575         * HandledMouseEventArgs.cs: DataGridView implementation
4576         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4577         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4578         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4579         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4580         * DataGridViewRowCollection.cs: DataGridView implementation
4581         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4582         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4583         * DataGridViewHitTestType.cs: DataGridView implementation
4584         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4585         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4586         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4587         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4588         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4589         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4590         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4591         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4592         * DataGridViewContentAlignment.cs: DataGridView implementation
4593         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4594         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4595         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4596         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4597         * DataGridViewPaintParts.cs: DataGridView implementation
4598         * DataGridViewCellCollection.cs: DataGridView implementation
4599         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4600         * DataGridViewImageColumn.cs: DataGridView implementation
4601         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4602         * DataGridViewElementStates.cs: DataGridView implementation
4603         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4604         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4605         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4606         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4607         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4608         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4609         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4610         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4611         * DataGridViewTextBoxCell.cs: DataGridView implementation
4612         * DataGridViewBand.cs: DataGridView implementation
4613         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4614         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4615         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4616         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4617         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4618         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4619         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4620         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4621         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4622         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4623         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4624
4625 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4626
4627         * ThemeWin32Classic.cs: 
4628           - Draw the outside focus rectangle around buttons
4629           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4630             doesn't use end caps for every dash of a line anymore. This
4631             workaround ignores the forecolor.
4632
4633 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4634
4635         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4636           endian safe.
4637
4638 2005-11-07  Jackson Harper  <jackson@ximian.com>
4639
4640         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4641
4642 2005-11-07  Jackson Harper  <jackson@ximian.com>
4643
4644         * ScrollableControl.cs: Calculate the maximum and change vars
4645         (more) correctly so that scrollbars appear as a sensible size.
4646
4647 2005-11-04  Jackson Harper  <jackson@ximian.com>
4648
4649         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4650         collection.
4651         * TreeView.cs: When the tree is sorted null out the top_node so
4652         that it is recalculated.
4653         - Use dotted lines instead of dashed lines to match MS better.
4654
4655 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
4656
4657         * ListView.cs: 
4658           - Implements key search for items. Useful when browsing files with FileDialog
4659           - When changing view mode or when clear the items reset scrollbar positions
4660
4661 2005-11-04  Jackson Harper  <jackson@ximian.com>
4662
4663         * CurrencyManager.cs: Implement the MetaDataChanged event, the
4664         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4665         as to what the method may do as there is no real way of creating a
4666         derived CurrencyManager and calling the method. 
4667
4668 2005-11-03  Jackson Harper  <jackson@ximian.com>
4669
4670         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4671         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4672         method which seems to just be used internally to refresh the tabs.
4673
4674 2005-11-03  Jackson Harper  <jackson@ximian.com>
4675
4676         * TabControl.cs: Implement the remove method. Fix some broken
4677         comments.
4678
4679 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4680
4681         * DateTimePicker.cs:
4682           - Added missing DateTimePickerAccessibleObject class
4683           - Added missing events
4684           - Added OnFontChanged method
4685         * Form.cs: Added missing attributes
4686         * TreeView.cs: Added missing attributes
4687
4688 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
4689
4690         * GridItemCollection.cs: Fix signatures
4691
4692 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4693
4694         * XplatUI.cs: Updated build rev/date
4695         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
4696           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4697         * Application.cs: Trigger context-specific ExitThread events
4698
4699 2005-11-03  Jackson Harper  <jackson@ximian.com>
4700
4701         * Menu.cs:
4702         * MainMenu.cs:
4703         * GridTableStylesCollection.cs:
4704         * Timer.cs:
4705         * TabPage.cs:
4706         * HelpProvider.cs:
4707         * StatusBar.cs:
4708         * MonthCalendar.cs: Signature fixes
4709
4710 2005-11-03  Jackson Harper  <jackson@ximian.com>
4711
4712         * TreeNodeCollection.cs: Remove should not be virtual.
4713         * TreeView.cs: Implement the last of the missing methods.
4714
4715 2005-11-03  Jackson Harper  <jackson@ximian.com>
4716
4717         * TreeNodeConverter.cs: Implement to get off my class-status back.
4718
4719 2005-11-03  Jackson Harper  <jackson@ximian.com>
4720
4721         * TreeView.cs: Hookup the bits for drag and drop.
4722         * TreeNode.cs: Don't cache the tree_view or index anymore, now
4723         that nodes can be moved from tree to tree easily this just causes
4724         all sorts of problems.
4725         * TreeNodeCollection: Don't need to give treenodes an index and
4726         treeview anymore when they are added, these are computed on the
4727         fly. Also make sure to remove a node before its added.
4728
4729 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4730
4731         * TextControl.cs:
4732           - Added CaretSelection enum
4733           - Added comparison methods to Marker struct, makes selection code
4734             more readable
4735           - Added SelectionStart and SelectionEnd as 'moveable' location for
4736             the CaretDirection enum and handler
4737           - Added selection_prev variable to track optimized invalidation for
4738             word and line selection
4739           - Added SelectionVisible property (returns true if there is a valid 
4740             selection)
4741           - Switched CaretHasFocus to only display the caret if there is no
4742             visible selection
4743           - Avoiding StringBuilder.ToString to retrieve a single char, instead
4744             using the direct character index; should be much faster
4745           - Added various conditional debug statements
4746           - Fixed invalidation calculation for selection ranges
4747           - Added ExpandSelection() method to support word and line selection
4748           - Switched SetSelectionToCaret to use new Marker compare overloads
4749           - Added central IsWordSeparator() method to determine word 
4750             separators/whitespace and FindWordSeparator() to streamline common
4751             usage of IsWordSeparator()
4752         * TextBoxBase.cs:
4753           - Removed unneeded grabbed variable, it was just mirroring
4754             Control.Capture
4755           - No longer firing OnTextChanged event when Text setter is called,
4756             since the base will fire the event for us
4757           - Added handling of Ctrl-Up/Down selection
4758           - Added handling of Shift-Cursorkey selection
4759           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4760             words
4761           - Added handling of Shift and Ctrl-Shift-Home/End selection
4762           - Removed some debug output
4763           - Added handling for single/double/tripple-click to place caret/
4764             select word/select line respectively (Fixes bug #76031)
4765           - Added support for drag expansion of word/line selection
4766         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4767           current selection
4768
4769 2005-11-02  Jackson Harper  <jackson@ximian.com>
4770
4771         * X11Dnd.cs: If the drag is going to and from a MWF window just
4772         copy the data instead of sending it out through the X Selection
4773         mechanism.
4774
4775 2005-11-02  Jackson Harper  <jackson@ximian.com>
4776
4777         * X11Dnd.cs:
4778         * XplatUIX11.cs: When in a drag we don't want motion notify
4779         messages to get passed on to the other controls. This prevents
4780         mouse move messages from showing up in the drag source.
4781
4782 2005-11-02  Jackson Harper  <jackson@ximian.com>
4783
4784         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
4785         the correct button is release to end a drag.
4786         * XplatUIX11.cs: Make the button state internal so the drag system
4787         can access it.  Dragging needs to know about all button releases,
4788         not just left button.
4789
4790 2005-11-02  Miguel de Icaza  <miguel@novell.com>
4791
4792         * Form.cs (Icon): If the icon is null, reset the icon to the
4793         default value. 
4794
4795         * Cursor.cs: When writing the AND-mask bitmap do not include the
4796         number of colors, but hardcode those to two (black and white),
4797         fixes the loading of color cursors (Paint Dot Net).
4798
4799         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4800         turn off autoscaling.
4801
4802         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4803
4804 2005-11-02  Jackson Harper  <jackson@ximian.com>
4805
4806         * X11Dnd.cs: Make sure to send a status message if the pointer
4807         enters a control that can not accept a drop, otherwise the cursor
4808         isn't updated correctly. Also tried to compress the lines of code
4809         a bit.
4810
4811 2005-11-02  Jackson Harper  <jackson@ximian.com>
4812
4813         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4814         set actions correctly.  This isn't perfect as XDND and win32 have
4815         some differences on how you allow actions. I'll clear this up by
4816         adding a path for drag from MWF to MWF windows.
4817         * XplatUIX11.cs: Hook into the dnd system.
4818
4819 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
4820
4821         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4822         previously shown but they are no longer need it. Very obvious when 
4823         browsing files with FileDialog.
4824
4825 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
4826
4827         * Control.cs: We always need to call OnPaintBackground. We pretty much
4828           ignore AllPaintingInWmPaint and always do the painting there, whether 
4829           it's set or not, since we always ignore the WM_ERASEBKGND message 
4830           (which we don't generate on X11). This fixes #76616.
4831         * Panel.cs: Removed unneeded background painting. This happens properly
4832           in Control.cs already
4833
4834 2005-10-31  Mike Kestner  <mkestner@novell.com>
4835
4836         * Menu.cs: Add items to collection before setting their index.
4837         * MenuItem.cs : add range checking with ArgumentException like MS.
4838         [Fixes #76510]
4839
4840 2005-10-31  Jackson Harper  <jackson@ximian.com>
4841
4842         * ListBox.cs: Invalidate if the area is visible at all not just
4843         contained in the visible rect. Fixes unselection of semi visible
4844         items.
4845
4846 2005-10-31  Jackson Harper  <jackson@ximian.com>
4847
4848         * Control.cs: Consistently name the dnd methods. Make them
4849         internal so we can override them to match some MS behavoir
4850         internally.
4851         * Win32DnD.cs: Use the new consistent names.
4852
4853 2005-10-31  Jackson Harper  <jackson@ximian.com>
4854
4855         * TreeView.cs: Don't draw the selected node when we lose focus.
4856
4857 2005-10-31  Jackson Harper  <jackson@ximian.com>
4858
4859         * X11Dnd.cs: We still need to reset the state even though a full
4860         reset isn't being done, otherwise status's still get sent all over
4861         the place.
4862
4863 2005-10-31  Jackson Harper  <jackson@ximian.com>
4864
4865         * Control.cs: Make the dnd_aware flag internal so the dnd
4866         subsystem can check it. Catch exceptions thrown in dnd handlers to
4867         match MS behavoir.
4868         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
4869         * X11Dnd.cs: Handle null data in the converters. Set the XDND
4870         version when sending a XdndEnter. Use the control/hwnd dnd_aware
4871         flags to reduce the number of dnd enters/status's sent.
4872
4873 2005-10-31  Jackson Harper  <jackson@ximian.com>
4874
4875         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
4876
4877 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
4878
4879         * PictureBox.cs: Fixes 76512
4880
4881 2005-10-28  Jackson Harper  <jackson@ximian.com>
4882
4883         * X11Dnd.cs: Early implementation to support winforms being a drag
4884         source for data on X11. Also restructured the converters so they
4885         can go both ways now.
4886         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
4887         
4888 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
4889
4890         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
4891           clipboard requests
4892
4893 2005-10-27  Jackson Harper  <jackson@ximian.com>
4894
4895         * TreeNode.cs: Implement serialization so my DnD examples will work.
4896
4897 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
4898
4899         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
4900           TreeView.cs: Don't dispose objects that are not owned.
4901           
4902 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
4903
4904         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
4905           should retrieve the current cursor and report that, but XplatUI
4906           doesn't (yet) have an interface for that (and I'm not sure I even
4907           can, on X11)
4908         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
4909           until any message loop processing is done (and the WM_SETCURSOR
4910           replaces the cursor to the proper one)
4911         * XplatUIX11.cs: 
4912           - Fixed override behaviour, we can't set the cursor globally on X11, 
4913             just for our windows.
4914           - Invalidating the System.Drawing X11 display handle when we are
4915             shutting down
4916         * Control.cs: Fix to make csc happy
4917
4918 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
4919
4920         * TextBoxBase.cs: 
4921           - get_Text: Add last line (without trailing newline) to returned
4922             value (Fixes 76212)
4923           - get_TextLength: Count last line in returned length
4924           - ToString: Call Text property instead of duplicating code
4925
4926 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
4927
4928         * ImageList.cs: Dispose ImageAttributes objects.
4929
4930 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4931
4932         * ImageList.cs: Use attribute constructors with less arguments where
4933           possible.
4934
4935 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4936
4937         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
4938           Use typeof instead of strings when assembly is referenced. Added
4939           some more comments.
4940
4941 2005-10-21  Jackson Harper  <jackson@ximian.com>
4942
4943         * ListView.cs: Raise a double click event. Also tried to somewhat
4944         fix when the selectedindexchanged event is raised. Its still
4945         broken though.
4946
4947 2005-10-21  Jackson Harper  <jackson@ximian.com>
4948
4949         * TreeView.cs: New method to invalidate the plus minus area of a
4950         node without invalidating the whole node (maybe this can be used
4951         in some more places).
4952         * TreeNodeCollection.cs: When adding to an empty node we need to
4953         invalidate its plus minus area so the little block shows up.
4954         
4955 2005-10-21  Jackson Harper  <jackson@ximian.com>
4956
4957         * TreeView.cs: Make sure that when we invalidate a node the bounds
4958         are big enough to cover the selected box and the focus
4959         rectangle. Use a different colour for the lines connecting nodes
4960         so they show up with all themes.
4961
4962 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
4963
4964         * NativeWindow.cs: Don't call anything that could call into the driver,
4965           we might be on a different thread.
4966
4967 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
4968
4969         * Control.cs(Dispose): Since Dispose might run on a different thread,
4970           make sure that we call methods that could call into the driver via
4971           invoke, to avoid thread issues
4972
4973 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
4974
4975         * XplatUI.cs: Removed finalizer
4976         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
4977           not allowing to be called on the finalizer thread.
4978
4979 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
4980
4981         * ImageList.cs:
4982           - Reverted r51889 and r51891.
4983           - Added ImageListItem class that stores unmodified image items and image
4984             properties required to create list images until handle is created.
4985           - Added AddItem and moved image creation logic to AddItemInternal.
4986           - Added CreateHandle method that creates images based on unmodified items.
4987           - Added DestroyHandle that changes state to store unmodified items.
4988           - Add and AddStrip methods no more create handle.
4989           - ReduceColorDepth has no return value.
4990           - Dispose destroys handle.
4991           - Modified other methods to reflect the above changes.
4992           - Implemented key support.
4993           - Added profile 2.0 members and attributes.
4994           - Added private Reset and ShouldSerialize methods that provide the same
4995             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
4996             them as they are private.
4997           - Added some more comments about implementation details.
4998
4999 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5000
5001         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5002
5003 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5004
5005         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5006
5007 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5008
5009         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5010         * DataGridColumnStyle.cs: Remove debug message
5011
5012 2005-10-20  Jackson Harper  <jackson@ximian.com>
5013
5014         * TreeView.cs: We can always get input keys regardless of whether
5015         or not editing is enabled. They are used for navigation.
5016
5017 2005-10-20  Jackson Harper  <jackson@ximian.com>
5018
5019         * TreeNode.cs: Use the viewport rect for determining if a node
5020         needs to be moved for visibility. Don't use Begin/End edit. This
5021         calls a full refresh when its done.
5022         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5023         rect property internal so the treenodes can see it. When clicking
5024         on a node we need to ensure that its visible because it might just
5025         be partly visible when clicked.
5026
5027 2005-10-20  Jackson Harper  <jackson@ximian.com>
5028
5029         * TreeNodeCollection.cs: Remove debug code.
5030
5031 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5032
5033         * Datagrid.cs: Implements column sorting in Datagrid
5034         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5035
5036 2005-10-20  Jackson Harper  <jackson@ximian.com>
5037
5038         * TreeNodeCollection.cs: Remove items properly. Update the correct
5039         area after removing them.
5040
5041 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5042
5043         * Datagrid.cs: Should not call base.OnPaintBackground
5044
5045 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5046
5047         * XplatUIX11.cs (GetMessage):
5048           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5049             window instead of client window
5050           - Now properly calculates NC_xBUTTONUP message coordinates
5051           - ScreenToMenu now properly calculates it's coordinates of whole 
5052             window, since menus are in the whole window, not in the client
5053             window
5054           - Added WholeToScreen coordinate translation method
5055
5056 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5057
5058         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5059           want to return a message, loop back to the beginning of the function
5060           and grab the next real message to process instead.
5061
5062 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5063
5064         * Splitter.cs: Properly set limits if no filler control is used
5065
5066 2005-10-19  Jackson Harper  <jackson@ximian.com>
5067
5068         * ColorDialog.cs: Don't show the help button if it is not enabled
5069         instead of disabling it (this is what MS does). Don't create the
5070         panel until the dialog is run, otherwise the vars (such as
5071         ShowHelp) are not set yet.
5072
5073 2005-10-19  Jackson Harper  <jackson@ximian.com>
5074
5075         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5076         are reduced when adding nodes.
5077         * TreeNode.cs:
5078         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5079         tree.
5080         
5081 2005-10-19  Jackson Harper  <jackson@ximian.com>
5082
5083         * FolderBrowserDialog.cs: End editing our treeview so the window
5084         actually gets refreshed.
5085
5086 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5087
5088         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5089           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5090           inside of WM_PAINT
5091
5092 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5093
5094         * MenuAPI.cs: Returns after Hidding window
5095         * XplatUIX11.cs: Added TODO found while debugging menu issues
5096
5097 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5098
5099         * XplatUIX11.cs: Do not re-map the whole window when it's size
5100           becomes non-zero unless it's supposed to be actually visible
5101
5102 2005-10-18  Jackson Harper  <jackson@ximian.com>
5103
5104         * TreeView.cs: We don't need to keep a count anymore.
5105         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5106         use the Grow method.
5107
5108 2005-10-18  Jackson Harper  <jackson@ximian.com>
5109
5110         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5111         implement it manually here.
5112
5113 2005-10-18  Jackson Harper  <jackson@ximian.com>
5114
5115         * ImageList.cs: Dont kill the list when the colour depth is
5116         changed, just change the colour depth of all the images.
5117         - Same goes for setting the image size. Just resize them all
5118         instead of killing the list softly.
5119
5120 2005-10-18  Jackson Harper  <jackson@ximian.com>
5121
5122         * Control.cs: Don't invalidate empty rectangles.
5123
5124 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5125
5126         * ListViewItem.cs:
5127           - Adds checked item to the Checked/Item lists (where empty before)
5128           - Do not add items to the Selected lists if they are already present
5129         * ListView.cs:
5130           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5131           - When deleting items make sure that we delete them for the Selected
5132           and Checked list also.
5133
5134 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5135
5136         * Label.cs: Dispose objects no longer used
5137         * ThemeWin32Classic.cs: Dispose objects no longer used
5138
5139 2005-10-18  Jackson Harper  <jackson@ximian.com>
5140
5141         * TabControl.cs: Don't refresh the whole control when the tabs are
5142         scrolled, we just need to refresh the tab area.
5143
5144 2005-10-17  Jackson Harper  <jackson@ximian.com>
5145
5146         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5147         after handle when we need it.
5148
5149 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5150
5151         * Control.cs: When the parent size changes, recalculate anchor 
5152           positions. Partial fix for #76462
5153
5154 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5155
5156         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5157           drawn. Fixes #76462
5158
5159 2005-10-17  Jackson Harper  <jackson@ximian.com>
5160
5161         * MonthCalendar.cs: Don't create the numeric up down until our
5162         handle is created. Otherwise our handle is created in the
5163         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5164         yet.
5165
5166 2005-10-17  Jackson Harper  <jackson@ximian.com>
5167
5168         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5169         correctly.
5170
5171 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5172         * TreeNode.cs : small logical fix (was using local var instead of field)
5173         
5174 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5175
5176         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5177
5178 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5179
5180         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5181
5182 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5183
5184         * Control.cs: 
5185           - Re-implemented anchoring code. My first version was really broken.
5186             This fixes bug #76033. Unlike the previous implementation we will
5187             no longer have round errors since all numbers are calculated from
5188             scratch every time. Removed various anchor-related obsolete vars.
5189           - InitLayout no longer causes layout event firing and layout to be 
5190             performed
5191
5192 2005-10-16  Jackson Harper  <jackson@ximian.com>
5193
5194         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5195         which was broken).
5196
5197 2005-10-16  Jackson Harper  <jackson@ximian.com>
5198
5199         * TabControl.cs: Remove debug code.
5200
5201 2005-10-16  Jackson Harper  <jackson@ximian.com>
5202
5203         * XEventQueue.cs: Increase the default queue size (very simple
5204         apps needed to grow the queue).
5205         * Hwnd.cs: No finalizer so we don't need to suppress
5206         finalization. Compute the invalid area manually so a new rectangle
5207         does not newto be created.
5208         * ScrollableControl.cs: Don't set any params (otherwise visibility
5209         isn't set correctly).
5210         * MdiChildContext.cs: New constructor takes the mdi parent so it
5211         doesn't have to be computed and avoids a crash on windows. Draw
5212         the window icon properly, and allow the text to be seen.
5213         * Form.cs: Use new MdiChildContext constructor. Make sure the
5214         child context isn't null in wndproc.
5215         * TabControl.cs: Don't set focus, this is muddling keyboard
5216         behavoir. Expand the tab rows when a window size increase will
5217         allow extra tabs to be seen. Don't allow tabs smaller than the
5218         width of a window to be scrolled out of view.
5219         * TreeNode.cs:
5220         * TreeView.cs: Use measure string to calculate a nodes width, the
5221         width is cached and only updated when the text or the font is
5222         changed. Don't check for expand/collapse clicks on the first level
5223         nodes if root lines are disabled.
5224         
5225 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5226
5227         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5228
5229 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5230
5231         * DataGridBoolColumn.cs: fixes warning
5232
5233 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5234
5235         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5236         to match more to match more precisely the MS Net behavior
5237
5238 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5239
5240         * Hwnd.cs: Added field to track if window is mapped
5241         * XplatUIX11.cs: 
5242           - Unmap windows if they become 0-size, re-map when 
5243             they are >0 again; fixes #76035
5244           - Re-set our error handler after initializing X11Desktop
5245             to override any error handlers Gtk or whatever was called
5246             may have set.
5247
5248 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5249
5250         * CheckedListBox.cs: Removed unused vars
5251         * ListView.cs: Fixed signatures
5252         * RichTextBox.cs: Removed unused vars
5253         * TextBoxBase.cs: Removed unused vars
5254         * XplatUIWin32.cs: Removed unused vars
5255         * XplatUIX11.cs: Removed unused vars
5256         * XplatUI.cs: Updated version and date to latest published
5257
5258 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5259
5260         * Cursor.cs: Added private .ctor to work around a bug in
5261           resourceset (Thanks to Geoff Norton for the help on this)
5262         * SplitterEventArgs.cs: Made fields accessible so we don't
5263           waste boatloads of objects and can reuse the same one
5264           in Splitter
5265         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5266           any captions and borders when generating screen coordinates
5267         * Splitter.cs: Reimplemented control, now fully complete, uses
5268           rubberband drawing, supports and obeys all properties, has
5269           proper cursors
5270
5271 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5272
5273         * Form.cs (Form): Setup default values for autoscale and
5274         autoscale_base_size;  Make these instance variables, not static
5275         variables. 
5276
5277         (OnLoad): on the first load, adjust the size of the form.
5278
5279 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5280
5281         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5282           width argument to DrawReversibleRectangle()
5283         * XplatUIWin32.cs, XplatUIX11.cs: 
5284           - Implemented width for DrawReversibleRectangle()
5285           - Added logic to DrawReversibleRectangle that recognizes a zero
5286             width or height and only draws a line in that situation
5287         
5288 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5289
5290         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5291         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5292         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5293           method (it uses our FosterParent window to get a graphics context)
5294
5295 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5296
5297         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5298           and SetWindowBackground methods
5299         * Control.cs:
5300           - Setting proper ControlStyles
5301           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5302             EraseWindowBackground, instead we draw the window background
5303             ourselves in PaintControlBackground. This behaviour is
5304             required to match MS, where, when OnPaintBackground is not
5305             called, the background is not drawn.
5306           - Removed unneeded Refresh() in set_Text
5307         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5308         * XplatUIX11.cs:
5309           - Created DeriveStyles method to translate from CreateParams to
5310             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5311             matches FormBorderStyle enum values)
5312           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5313             style calculations into single DeriveStyles method
5314           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5315             from redrawing the whole window on any resize or expose.
5316           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5317             all styles were applied to our whole/client window appropriately
5318           - Removed EraseWindowBackground() and SetWindowBackground() methods
5319           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5320             no longer clear/redraw the background through X
5321           - Removed handling of erase_pending bit, we have no use for it (or
5322             so it seems)
5323         * XplatUIOSX.cs:
5324           - Removed generation and handling of WM_ERASEBKGND message
5325           - Removed EraseWindowBackground() and SetWindowBackground() methods
5326           - Removed handling of hwnd.ErasePending flag
5327         * XplatUIWin32.cs:
5328           - Removed EraseWindowBackground() and SetWindowBackground() methods
5329           - We no longer call EraseWindowBackground on PaintEventStart, we 
5330             ignore the fErase flag, erasing is handled in Control in the
5331             background handler
5332         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5333           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5334           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5335           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5336           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5337           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5338           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5339
5340 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5341
5342         * PropertyGrids.cs: Get sub properties
5343         * PropertyGridView.cs: Fix drawing code
5344
5345 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5346
5347         * ListBox.cs: Fixes 76383
5348
5349 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5350
5351         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5352         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5353         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5354
5355
5356 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5357
5358         * ComboBox.cs: Fixes border drawing
5359
5360 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5361
5362         * MimeIcon.cs: Ignore errors if the file can not be read.
5363
5364 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5365
5366         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5367          - Fixed border calculations
5368          - Fixed horizontal scrolling in single column listboxes
5369          - Fixed drawing issues
5370
5371 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5372
5373         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5374           FormBorderStyle enum
5375         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5376           code to determine FormBorderStyles from CreateParams
5377         * Form.cs:
5378           - Fixed bug where we'd set the wrong window styles if we were
5379             not creating an MDI window
5380           - Added call to XplatUI.SetBorderStyle when form borders are set
5381         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5382         * Hwnd.cs:
5383           - Removed obsolete edge style
5384           - Switched from BorderStyle to FormBorderStyle
5385         
5386 2005-10-10  Jackson Harper  <jackson@ximian.com>
5387
5388         * Form.cs: Use the property to get the window handle instead of
5389         accessing it directly. Prevents a null reference exception.
5390
5391 2005-10-10  Jackson Harper  <jackson@ximian.com>
5392
5393         * TreeView.cs: Don't adjust the rect given to DrawString now that
5394         our libgdiplus draws correctly.
5395
5396 2005-10-08  Jackson Harper  <jackson@ximian.com>
5397
5398         * TreeView.cs: Don't try to find the clicked on node if there are
5399         no nodes in the tree.
5400
5401 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5402
5403         * RichTextBox.cs:
5404
5405           restore
5406
5407 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5408
5409         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5410           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5411           ErrorProvider.cs:
5412           Use ResPool for brushes and dispose System.Drawing objects that
5413           are not used anymore.
5414
5415 2005-10-07  Jackson Harper  <jackson@ximian.com>
5416
5417         * MdiChildContext.cs: Use the new borders instead of drawing them
5418         ourselves.
5419
5420 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5421
5422         * Calling UpdateBounds after changing the window's BorderStyle 
5423         since the style can change the ClientSize
5424
5425 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5426
5427         * Control.cs: Made PaintControlBackground virtual
5428         * Panel.cs: Overriding PaintControlBackground instead of using paint
5429           event; paint event method was interfering with 'real' users of the
5430           event.
5431
5432 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5433
5434         * ThemeWin32Classic.cs: remove border drawing since it is handled
5435         by the base control class now and was causing double border drawing.
5436
5437 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5438
5439         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5440           but it does seem to match MS behaviour. This fixes bug #75324
5441
5442 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5443
5444         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5445           somewhat hackish looking
5446
5447 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5448
5449         * TextBoxBase.cs:
5450           - We now accept Enter even if AcceptEnter is false, if the containing
5451             form does not have an AcceptButton configured (fixes bug #76355)
5452           - Calculations are now fixed to no longer use Width/Height, but
5453             ClientSize.Width/Height, since we now support borders (this was
5454             a result of fixing borders and therefore bug #76166)
5455           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5456             true (fixes bug #76354)
5457         
5458 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5459
5460         * Control.cs: 
5461           - Defaulting BorderStyle and setting it in XplatUI when our window 
5462             is created
5463           - Added enum check to InternalBorderStyle setter
5464         * XplatUIX11.cs: 
5465           - Added drawing of window borders
5466           - Now properly calculates WM decorations offset for toplevel 
5467             windows (fixes bug #74763)
5468         * XplatUIWin32.cs: 
5469           - Implemented BorderStyles for windows (we're letting win32 draw 
5470             the border for us)
5471           - Fixed the signature for SetWindowLong
5472         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5473           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5474           setting borders
5475         * UpDownBase.cs: Remove drawing of borders, this is handled by
5476           the driver, outside the client area
5477         * ListView.cs: Removed bogus border calculations. The control should
5478           be oblivious to borders, since those are not part of the client
5479           area. 
5480         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5481         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5482           drawing code
5483
5484 2005-10-06  Jackson Harper  <jackson@ximian.com>
5485
5486         * MdiChildContext.cs: Clear out the old virtual position remove
5487         all the unneeded calls to CreateGraphics.
5488
5489 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5490
5491         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5492
5493 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5494
5495         * Form.cs: 
5496           - Added loading and setting of our new default icon
5497           - Only set icon if window is already created
5498
5499 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5500
5501         * Label.cs:
5502           - Do not explicitly set the foreground and background colors, to
5503             allow inheriting from parents (fixes #76302)
5504           - Use Control's InternalBorderStyle property to deal with borders
5505
5506 2005-10-06  Jackson Harper  <jackson@ximian.com>
5507
5508         * MdiChildContext.cs: Use the new xplatui function to draw a
5509         reversible rect.
5510
5511 2005-10-06  Jackson Harper  <jackson@ximian.com>
5512
5513         * Form.cs: Add the parent before creating the child context cause
5514         we need the parent when setting up the child.
5515
5516 2005-10-06  Jackson Harper  <jackson@ximian.com>
5517
5518         * FolderBrowserDialog.cs: redo the tree population code so a
5519         second thread isn't used. Should be a lot faster and more stable
5520         now.
5521
5522 2005-10-05  Jackson Harper  <jackson@ximian.com>
5523
5524         * TreeView.cs: There are no expand/collapse boxes if the node has
5525         no children.
5526
5527 2005-10-05  Jackson Harper  <jackson@ximian.com>
5528
5529         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5530
5531 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5532
5533         * FileDialog.cs: Fix InitialDirectory
5534
5535 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5536
5537         * ComboBox.cs:
5538                 - Fixes changing between styles
5539                 - Fixes simple mode
5540                 - Fixes last item crashing when navigating with keyboard
5541
5542 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5543
5544         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5545
5546 2005-10-05  Jackson Harper  <jackson@ximian.com>
5547
5548         * TreeView.cs: If updating the root node do a full refresh.
5549         * TreeNode.cs: The root node should be expanded by default. Also
5550         added a utility prop to tell if we are the root node.
5551         * TreeNodeCollection.cs: Only refresh if the node we are being
5552         added to is expanded. Also added a comment on a potential
5553         optimization.
5554         
5555 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5556
5557         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5558           in dispose method. Fixes #76330
5559
5560 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5561
5562         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5563
5564                 - Implements vertical and horizontal scrolling using XplatUI
5565                 - Fixes keyboard navagation
5566                 - Fixes EnsureVisible
5567                 - Drawing fixes
5568                 - Handles and draws focus properly
5569
5570
5571 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5572
5573         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5574           Create handle. NET_2_0: Destroy handle when value is null.
5575
5576 2005-10-03  Jackson Harper  <jackson@ximian.com>
5577
5578         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5579         revert and a new patch to prevent the thumb from refreshing so
5580         much.
5581
5582 2005-10-02  Jackson Harper  <jackson@ximian.com>
5583
5584         * ScrollBar.cs: Don't update position if it hasn't actually
5585         changed. This occurs when you hold down the increment/decrement
5586         buttons and the thumb gets to the max/min.
5587
5588 2005-10-01  Jackson Harper  <jackson@ximian.com>
5589
5590         * Form.cs:
5591         * MdiChildContext.cs:
5592         * MdiClient.cs: Implement ActiveMdiChild in Form.
5593
5594 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5595
5596         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5597
5598 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5599
5600         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5601           be found
5602
5603 2005-09-30  Jackson Harper  <jackson@ximian.com>
5604
5605         * ListBox.cs: Don't do a full refresh unless some data has
5606         actually changed.
5607
5608 2005-09-30  Jackson Harper  <jackson@ximian.com>
5609
5610         * TreeView.cs: Make sure that the checkboxes size is factored in
5611         even when not visible.
5612
5613 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5614
5615         * FileDialog.cs: Fix Jordi's build break
5616
5617 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5618
5619         * FileDialog.cs: 
5620                 - Use standard the Windows colours for the combobox as espected
5621                 - Dispose objects that use resouces when no longer need them
5622
5623 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5624
5625         * X11DesktopColors.cs: Initial incomplete implementation
5626         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5627
5628 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5629
5630         * Theme.cs: 
5631           - Switched Theme color names to match the names defined in 
5632             System.Drawing.KnownColors. Life's hard enough, no need to make 
5633             it harder.
5634           - Added setters to all theme color properties so themes can set
5635             their color schemes. The setters also propagate the color changes
5636             to System.Drawing.KnownColors via reflection
5637         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5638           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5639           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5640           use the new, more logical theme color names
5641         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5642           post-NT colors
5643         * ThemeWin32Classic.cs:
5644           - Removed code to set the old classic Windows colors. Instead it
5645             now relies on the colors returned by System.Drawing.KnownColors
5646             which will be either modern static colors (Unix) or colors
5647             read from the user's configuration (Win32)
5648           - Updated to use the new, more logical theme color names
5649           - Switched DataGrid drawing code to use only Theme colors instead of
5650             a mix of System.Drawing.KnownColors and Theme colors
5651           - DrawFrameControl(): Removed code that fills the button area, the
5652             fill would overwrite any previous fill done by a control. This
5653             fixes bug #75338 
5654           - Added DrawReversibleRectangle() stub
5655         * ScrollableControl.cs: Set visible state to false when scrollbars
5656           are removed (pdn fix)
5657         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
5658           DrawReversibleRectangle() method to allow drawing primitive 
5659           'rubber bands'
5660         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5661
5662 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5663
5664         * ImageList.cs: Add(Icon): Create handle.
5665
5666 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5667
5668         * ListView.cs:
5669         * ThemeWin32Classic.cs:
5670                 - Fixes detail mode
5671                 - Sets clippings
5672                 - Issues with drawing
5673
5674 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5675
5676         * ImageList.cs: Moved RecreateHandle back to ImageList as event
5677           source has to be the ImageList.
5678
5679 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5680
5681         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5682
5683 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5684
5685         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5686
5687 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5688
5689         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5690
5691 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
5692         * GridItem.cs: Fixed TODOs
5693         * GridItemCollection.cs: Added ICollection interface
5694
5695 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5696
5697         * ImageList.cs: Resize icons when needed.
5698
5699 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
5700
5701         * ListViewItem.cs
5702                 - Fixes GetBounds and returns on screen rects
5703         * ListView.cs:
5704                 - Fixes vertical and horzintal scrolling of items
5705         * ThemeWin32Classic.cs:
5706                 - Fixes drawing
5707                 
5708 2005-09-29  Raja R Harinath  <harinath@gmail.com>
5709
5710         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5711
5712 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
5713
5714         * ImageList.cs: Added comments about handle creation. Moved Handle,
5715           HandleCreated and OnRecreateHandle implementations to ImageCollection.
5716           Handle is created in Add methods.
5717
5718 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5719          
5720         * DataGridDrawingLogic.cs: 
5721                 - Takes rows into account on Colum calculations
5722                 - Returns the column when clickig
5723         * DataGrid.cs:
5724                 - Fixes default HitTestInfo values
5725                 - Fixes HitTestInfo.ToString
5726                 - Fixes ResetBackColor          
5727         
5728 2005-09-28  Jackson Harper  <jackson@ximian.com>
5729
5730         * MdiChildContext.cs: Obey rules for fixed sized windows (no
5731         sizing or cursor changes). Also added some temp code to draw the
5732         titlebars text (Makes dev a little easier).
5733
5734 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5735
5736         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5737
5738 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5739          
5740         * ListBox.cs: Fixes bug 76253
5741
5742 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5743
5744         * ImageList.cs: Added comments about the current implementation. Added
5745           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5746           Format32bppArgb to preserve transparency and can use Graphics.FromImage
5747           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5748           with Bitmap.LockBits for better performance. Revised the whole file to
5749           match MS.NET behaviour and provide better performance. Non-public
5750           interface members are calling public members even when they throw
5751           NotSupportedException for better maintainability. Moved ColorDepth,
5752           ImageSize, ImageStream and TransparentColor implementations to
5753           ImageCollection for better performance as these properties are not used
5754           by ImageList.
5755         * ImageListStreamer.cs: Added a new internal constructor that takes an
5756           ImageList.ImageCollection and serializes Images based on
5757           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5758           match ImageList property name.
5759
5760 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
5761
5762         * ListBox.cs: Fixes IndexFromPoint for last item
5763
5764 2005-09-27  Jackson Harper  <jackson@ximian.com>
5765
5766         * Form.cs: Set the position of new mdi children correctly.
5767
5768 2005-09-27  Jackson Harper  <jackson@ximian.com>
5769
5770         * MdiClient.cs: New mdi children need to be added to the back of
5771         the controls collection so the zorder is set correctly. Also add a
5772         count of all the child windows that have been created.
5773
5774 2005-09-27  Jackson Harper  <jackson@ximian.com>
5775
5776         * Form.cs (CreateParams): Setup MDI forms correctly.
5777
5778 2005-09-27  Jackson Harper  <jackson@ximian.com>
5779
5780         * MdiChildContext.cs:
5781         * MonthCalendar.cs:
5782         * UpDownBase.cs:
5783         * ListBox.cs:
5784         * ListView.cs:
5785         * TextBoxBase.cs:
5786         * TreeView.cs:
5787         * ScrollableControl.cs:
5788         * ComboBox.cs: Add implicit controls using the new implict control
5789         functionality in ControlCollection. Also try to block multiple
5790         control add in a suspend/resume layout to save some cycles.
5791         
5792 2005-09-27  Jackson Harper  <jackson@ximian.com>
5793
5794         * Control.cs: Add functionality to the controls collection to add
5795         'implicit controls' these are controls that are created by the
5796         containing control but should not be exposed to the user. Such as
5797         scrollbars in the treeview.
5798         * Form.cs: The list var of the ControlsCollection is no longer
5799         available because of the potential of implicit controls getting
5800         ignored by someone accessing the list directly.
5801
5802 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
5803
5804         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5805           loose it's parent. (Fixed bug introduced in r49103 when we added
5806           setting the child parent to null on Remove)
5807
5808 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
5809
5810         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5811         * Splitter.cs: Added missing attributes for BorderStyle property.
5812         * TextBoxBase.cs: Marked Calculate* methods internal.
5813         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5814         MS.NET.
5815
5816 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
5817          
5818         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5819
5820 2005-09-25  Jackson Harper  <jackson@ximian.com>
5821
5822         * TreeView.cs: Update the node bounds correctly regardless of
5823         whether the node is visible.
5824
5825 2005-09-25  Jackson Harper  <jackson@ximian.com>
5826
5827         * ImageList.cs: Don't dispose the image after it is added to the
5828         image list. Only reformat images that need to be resized.
5829
5830 2005-09-25  Jackson Harper  <jackson@ximian.com>
5831
5832         * ImageList.cs: Don't set the format when changing the image.
5833
5834 2005-09-25  Jackson Harper  <jackson@ximian.com>
5835
5836         * TreeView.cs: We can't just assume the node has a font. Use the
5837         treeviews font if no node font is available.
5838
5839 2005-09-25  Jackson Harper  <jackson@ximian.com>
5840
5841         * TreeView.cs: Allow the scrollbars to be reset with negative
5842         values.
5843         - Don't add scrollbars to negative sized windows.
5844
5845 2005-09-23  Jackson Harper  <jackson@ximian.com>
5846
5847         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5848         old Mono.Posix. Also remove some stray code that shouldn't have
5849         been committed.
5850
5851 2005-09-23  Jackson Harper  <jackson@ximian.com>
5852
5853         * TreeView.cs: Attempt at proper sizing of the horizontal
5854         scrollbar. Also don't resize the scrollbars unless they are
5855         visible.
5856
5857 2005-09-23  Jackson Harper  <jackson@ximian.com>
5858
5859         * TreeView.cs: We don't need to expand the invalid area when the
5860         selection changes, as this is all drawn in the node's bounding
5861         box. The area needs to be expanded (previous typo was contracting
5862         it) when the focus rect moves.
5863
5864 2005-09-23  Jackson Harper  <jackson@ximian.com>
5865
5866         * TreeView.cs: Display the selection box under the correct
5867         circumstances. We were rendering white text with no selection box
5868         before.
5869
5870 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
5871
5872         * TextControl.cs(Split): Now updates selection start/end if it points 
5873           into a line that's being split. Fixes a FIXME and bug #75258
5874
5875 2005-09-23  Jackson Harper  <jackson@ximian.com>
5876
5877         * Binding.cs:
5878         * ListControl.cs: Don't use the path when retrieving binding
5879         managers from the binding context. My bat sense tells me that the
5880         path is only used on insertion.
5881
5882 2005-09-22  Jackson Harper  <jackson@ximian.com>
5883
5884         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
5885
5886 2005-09-22  Jackson Harper  <jackson@ximian.com>
5887
5888         * Splitter.cs: There are special cursors used for splitting.
5889         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
5890
5891 2005-09-22  Jackson Harper  <jackson@ximian.com>
5892
5893         * Splitter.cs: Change the cursor appropriately when the splitter
5894         is moused over, so the user actually knows there is a splitter
5895         there.
5896
5897 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5898
5899        * Label.cs : Fix ToString method to give same output as MS.NET
5900
5901 2005-09-22  Jackson Harper  <jackson@ximian.com>
5902
5903         * TreeView.cs: Create the scrollbars when the handle is created
5904         and add them right away, just make them invisble. Also account for
5905         the window being shrunk vertically to the point that the vert
5906         scrollbar needs to be added.
5907         - Remove some 0.5 adjustments to get around anti aliasing issues.
5908         
5909 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
5910          
5911         * MainMenu.cs: Fixes default value
5912         * MenuItem.cs: Fixes default value
5913
5914 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
5915
5916         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
5917
5918 2005-09-21  Jackson Harper  <jackson@ximian.com>
5919
5920         * Control.cs: Don't try to set the border style on the window if
5921         it hasn't been created. When the window is created the border
5922         style will be used.
5923
5924 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5925
5926         * Control.cs (Update): Don't call XplatUI if we don't have a
5927           window handle yet
5928
5929 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5930
5931         * ContainerControl.cs: Instead of throwing an exception, print
5932           a one-time warning about Validate not being implemented
5933         * XplatUIWin32.cs: Removed debug output
5934
5935 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5936
5937         * Control.cs: Only set XplatUI background if we expect the windowing
5938           system to handle the background. This stops controls that draw their
5939           own background from flickering
5940
5941         * XplatUIX11.cs: Support custom visuals and colormaps for window 
5942           creation. This allows, amongst other things, using MWF X11 windows 
5943           with OpenGL.
5944
5945 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5946
5947         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
5948           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
5949           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
5950           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
5951           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
5952           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
5953           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
5954           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
5955           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
5956           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
5957           GridColumnStylesCollection.cs, 
5958           IDataGridColumnStyleEditingNotificationService.cs,
5959           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
5960           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
5961           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
5962           TreeNodeCollection.cs, AmbientProperties.cs, 
5963           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
5964           DataObject.cs, ErrorProvider.cs, Splitter.cs,
5965           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
5966           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
5967           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
5968           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
5969           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
5970           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
5971           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
5972           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
5973           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
5974           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
5975           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
5976           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
5977           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
5978           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
5979           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
5980           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
5981           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
5982           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
5983           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
5984           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
5985           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
5986           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
5987           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
5988           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
5989           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
5990           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
5991           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
5992           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
5993           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
5994           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
5995           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
5996           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
5997           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
5998           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
5999           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6000
6001 2005-09-21  Jackson Harper  <jackson@ximian.com>
6002
6003         * TreeNode.cs: Call Before/After Expand not Collapse when
6004         expanding.
6005
6006 2005-09-20  Jackson Harper  <jackson@ximian.com>
6007         
6008         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6009
6010 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6011          
6012         * ListViewItem.cs:
6013                 - Fixes bug 76120
6014                 - Fixes proper storing of subitems
6015                 - Fixes not updated items
6016
6017 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6018
6019         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6020           things if our window handle isn't created yet. Also disabled 
6021           debug for TextBoxBase
6022
6023 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6024
6025         * MenuAPI.cs: Remove filtering of events to allow menu usage
6026
6027 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6028
6029         * Cursor.cs: Allow null to be passed to Cursor.Current.
6030
6031 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6032
6033         * ThemeWin32Classic.cs:
6034           - Change some private methods/fields to protected virtual so that 
6035             they can be accessed and overriden in derived classes
6036           - First refactoring of some methods. Derived themes now don't 
6037             need to duplicate the complete code from ThemeWin32Classic
6038         * ThemeNice.cs:
6039           - Added nice StatusBar
6040           - Derive from ThemeWin32Classic and not Theme
6041           - Removed duplicate ThemeWin32Classic code
6042
6043 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6044
6045         * Control.cs (ControlCollection.Add): If the value null is passed
6046         the control is ignored. 
6047
6048         Optimize this loop.
6049
6050 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6051
6052         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6053           PostQuitMessage state.
6054         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6055
6056 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6057
6058         * Application.cs: Our constructor will never get called, move 
6059           initialization to fields; fixes bug #75933
6060
6061 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6062
6063         * FileDialog.cs :
6064                 - Allow files to be selected properly using file name
6065                 combo box.
6066                 - Add ability to change diretory (absolute / relative)
6067                 using file name combo box.
6068
6069 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6070          
6071         * ListBox.cs: 
6072                 - Fixes Multicolumn listboxes item wrong calculations
6073                 - Allows to click when only one item is in the listbox
6074                 - Fixes crash when no items using keyboard navigation
6075
6076 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6077
6078         * ComboBox.cs: Reverted almost everything from the latest patch which
6079           broke ComboBox
6080
6081 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6082         
6083         * ToolTip.cs:
6084                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6085         * ComboBox.cs:
6086                 - When DropDownStyle is Simple, it does not show scrollbar 
6087                 to the last item of the list.
6088                 - When DropDownStyle is Simple, it crashed when the list was 
6089                 scrolled down with the down cursor key.
6090                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6091                 selected item was not shown.
6092                 - The position of the selected item was not preserved when 
6093                 the next dropdown happened.
6094         * ThemeWin32Classic.cs:
6095                 - Items were wrapped at the right end.
6096         * CheckedListBox.cs:
6097                 - Fixed Add method
6098         * ListBox.cs:
6099                 - Items should be fully shown.
6100                 - When resizing and vertical scrollbar disappeared, the item 
6101                 of index 0 should be on the top of the list.
6102                 - GetItemRectangle should consider the size of ver. scrollbar
6103         * StatusBar.cs:
6104                 - SizingGrip area should not be allocated when it is not 
6105                 displayed.
6106                 - Now it reflects MinWidth of the containing panel and 
6107                 fixed a crash that happens when its width becomes so small.
6108
6109 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6110
6111         * CheckedListBox.cs: Fixes bug 76028
6112         * ListBox.cs: Fixes bug 76028
6113
6114 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6115
6116         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6117         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6118
6119 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6120
6121         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6122
6123 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6124
6125         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6126
6127 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6128
6129         * IRootGridEntry.cs: Added
6130         * PropertyGridCommands.cs: Added
6131         * PropertiesTab.cs: Added missing methods and property
6132         * PropertyGridView.cs: Made class internal
6133         * PropertyGridTextBox.cs: Made class internal
6134
6135 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6136
6137         * MimeIcon.cs: Try to check some other environment variables
6138           if "DESKTOP_SESSION" returns "default"
6139
6140 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6141
6142         * ThemeNice.cs: Corrected background colors (e.g. menus)
6143         * ColorDialog.cs: Use correct background colors for controls
6144
6145 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6146
6147         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6148
6149 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6150
6151         * RichTextBox.cs: Added initial implementation
6152         * lang.cs: Removed. Was accidentally checked in long time ago
6153         * TODO: Removed. Contents were obsolete
6154
6155 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6156                                                                                 
6157         * PropertiesTab.cs : Added
6158
6159 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6160                                                                                 
6161         * PropertyGrid.cs : Update
6162         * PropertyGridView.cs : Update
6163         * System.Windows.Forms.resx : Added images and strings
6164
6165 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6166
6167         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6168  
6169 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6170
6171         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6172           a busy loop right after the Ungrab the X11 display is otherwise 
6173           blocked
6174
6175 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6176
6177         * ThemeWin32Classic.cs: Optimise the use of clipping
6178
6179 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6180
6181         * DataGrid.cs: fixes recursion bug
6182
6183 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6184
6185         * ThemeNice.cs: 
6186           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6187           - Cleanup
6188
6189 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6190
6191         * ThemeNice.cs: Draw nice ProgressBars
6192
6193 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6194
6195         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6196
6197         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6198         bug finder.
6199
6200 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6201
6202         * ThemeNice.cs:
6203           - Added nicer menu drawing
6204           - Updated DrawTab
6205           - some refactoring
6206
6207 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6208
6209         * CreateParams.cs (ToString): Made output match MS
6210         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6211             handle is already created (to avoid forcing window creation)
6212         * XplatUIX11.cs: Set window text to caption after creating window,
6213           in case Text was set before window was created
6214         * Form.cs: Use this.Text instead of a static string as caption
6215
6216 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6217
6218         * NotifyIcon.cs: Don't set the window to visible; this screws
6219           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6220           OnPaint without a bitmap)
6221         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6222           happen very often anyway; we could add the check to the WM_PAINT 
6223           event generation code
6224
6225 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6226
6227         * NotifyIcon.cs: Fill the icon area with a background color, to 
6228           avoid 'residue' when transparent icons are drawn
6229         * XplatUIX11.cs:
6230           - Handle whole_window == client_window when destroying windows
6231           - SystrayAdd(): Set client_window to whole_window value to
6232             get mouse and other events passed to NotifyIcon
6233
6234 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6235
6236         * Form.cs: Set proper default for Opacity property
6237         * NotifyIcon.cs:
6238           - ShowSystray(): Don't bother creating telling the OS
6239             about the systray item if no icon is provided
6240           - Now handles WM_NCPAINT message to deal with whole/client window
6241             split
6242           - Create window as visible to not get caught by Expose optimization
6243         * Hwnd.cs: Removed debug message
6244         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6245           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6246             PaintEventStart/End to use new client argument
6247         * TextBoxBase.cs:
6248           - Commented out debug messages
6249           - Switched PaintEventStart/End to use new client argument
6250         * XplatUI.cs: Added client window bool to PaintEventStart()/
6251           PaintEventEnd() calls, to support drawing in non-client areas
6252         * XplatUIDriver.cs: 
6253           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6254             calls, to support drawing in non-client areas
6255           - Added conditional compile to allow using MWF BeginInvoke 
6256             on MS runtime
6257         * XplatUIX11.cs:
6258           - Added some conditional debug output
6259           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6260             whole/client window split
6261           - Implemented handling of client argument to PaintEventStart()/End()
6262         * Control.cs:
6263           - Throw exception if BeginInvoke() is called and the window handle
6264             or one of the window's parent handles is not created
6265           - Added conditional compile to allow using MWF BeginInvoke on
6266             MS runtime
6267           - get_Parent(): Only sets parent if handle is created. This avoids
6268             forcing window handle creation when parent is set.
6269           - Now fires Layout and Parent changed events in proper order
6270           - Switched to use Handle instead of window.Handle for Z-Order setting,
6271             the get_Parent() patch above causes us to possibly get null for 'window'
6272           - Implemented handling of client argument to PaintEventStart()/End()
6273           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6274             default handling)
6275           - Now sends a Refresh() to all child windows when Refresh() is called
6276
6277 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6278
6279         * Form.cs: Added (non-functional) Opacity property
6280         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6281
6282 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6283         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6284           use export MONO_THEME=nice to activate it.
6285           Currently supported controls:
6286           - Button
6287           - ComboBox
6288           - ScrollBar
6289           - TabControl (TabAlignment.Top only, other will follow)
6290         * ThemeEngine.cs: Add theme nice
6291         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6292           if enabled
6293
6294 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6295
6296         * Splitter.cs: Resize docked control and its neighbor.
6297
6298 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6299         -- Making Windows with Menus layout correctly --
6300         * Form.cs : The first leg of the fix
6301                 Menu setter - adjust Client Size as needed to make space for the menu
6302                 SetClientSizeCore - doesn't call base version to be able to pass the 
6303                         menu handle to XplatUI.CalculateWindowRect
6304         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6305         * XplatUIX11.cs: The critical second leg of the fix
6306                 GetWindowPos needs to use a recalculated client_rect
6307                 so that resizing the window doesn't break layout of child controls. 
6308                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6309                 Lots of \t\n killed
6310
6311 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6312
6313         * Label.cs: Now properly recalculates width and height on Font and Text
6314           changes if AutoSize is set
6315
6316 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6317         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6318
6319 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6320
6321         * ImageList.cs: Makes ToString method compatible with MS
6322
6323 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6324
6325         * MenuAPI.cs: fixes bug 75716
6326
6327 2005-08-11 Umadevi S <sumadevi@novell.com>
6328         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6329
6330 2005-08-11 Umadevi S <sumadevi@novell.com>
6331         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6332
6333 2005-08-10  Umadevi S <sumadevi@novell.com>
6334         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6335
6336 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6337
6338         * Menu.cs: fixes bug 75700
6339         * MenuAPI.cs: fixes navigation issues
6340
6341 2005-08-09  Umadevi S <sumadevi@novell.com>
6342         * CheckedListBox.cs - simple fix for GetItemChecked.
6343
6344 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6345
6346         * ComboBox.cs: Serveral fixes
6347         * ListBox.cs: Serveral fixes
6348
6349 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6350
6351         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6352         * ListBox.cs: Fixes FindString methods
6353
6354 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6355
6356         * DataGrid.cs: fixes bugs exposed by new tests
6357
6358 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6359
6360         * Mime.cs: Compile Mono assembly references only if compiling
6361           with Mono (Allows to build with VS.Net again)
6362
6363 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6364
6365         * Control.cs (PaintControlBackground): Draw background image
6366         corrrectly.
6367         (CheckForIllegalCrossThreadCalls): Stubbed.
6368         
6369         * Form.cs (OnCreateControl): Center when should be centered.
6370         
6371         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6372
6373 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6374
6375         * Binding.cs: Binding to properties should be case unsensitive
6376
6377 2005-07-18 vlindos@nucleusys.com
6378
6379         * DataGrid.cs: fixes setmember order
6380
6381 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6382
6383         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6384         * FileDialog.cs: FileDialog is now resizable and uses the new
6385           MimeIconEngine
6386
6387 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6388
6389         * DataGridTextBoxColumn.cs: default value
6390         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6391         * GridTableStylesCollection.cs: fixes checking MappingName
6392         * DataGridDrawingLogic.cs: fixes drawing logic issues
6393         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6394         * DataGrid.cs: fixes    
6395
6396 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6397
6398         * MimeGenerated.cs: Use case sensitive comparer for
6399           NameValueCollections
6400
6401 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6402
6403         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6404         * ThemeWin32Classic.cs: bug fixes, code refactoring
6405         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6406         * DataGrid.cs: bug fixes, code refactoring
6407         * DataGridTextBox.cs: bug fixes, code refactoring
6408         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6409         * Theme.cs:  bug fixes, code refactoring
6410
6411 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6412
6413         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6414           and other text box usage
6415
6416 2005-07-01  Jackson Harper  <jackson@ximian.com>
6417
6418         * TabControl.cs: Make sure the bottom of the tab covers the pages
6419         border.
6420
6421 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6422
6423         * Form.cs (ShowDialog): Assign owner of the dialog
6424         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6425           might have been moved to a tag with different height
6426
6427 2005-06-30  Jackson Harper  <jackson@ximian.com>
6428
6429         * Form.cs: Don't create an infinite loop when setting focus
6430         * MenuItem.cs: Don't dirty the parents if we don't have any
6431
6432 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6433
6434         * LibSupport.cs: Rename
6435
6436 2005-06-29  Peter Bartok  <pbartok@novell.com>
6437
6438         * TextBoxBase.cs: Re-align caret after deleting a character
6439         * TextControl.cs:
6440           - DeleteChars(): Ensure that tag covers the provided position
6441           - StreamLine(): Drop reference for dropped tag
6442
6443 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6444
6445         * TextControl.cs: 
6446           - Selections now work properly, anchoring at the initial location
6447             and properly extending in either direction (SetSelectionToCaret(),
6448             SetSelectionStart() and SetSelectionEnd())
6449           - No longer redraws the whole control on selection change, now
6450             calculates delta between previous and new selection and only
6451             invalidates/redraws that area
6452           - Fixed FindPos() math off-by-one errors
6453           - Changed DeleteChars() to verify the provided tag covers the
6454             provided position, selections may have a tag that doesn't cover
6455             the position if the selection is at a tag border
6456           - Fixed off-by-one errors in DeleteChars()
6457           - Added missing streamlining check in DeleteChars() to remove
6458             zero-length tags
6459           - Implemented Invalidate() method, now properly calculates exposures
6460             between two given lines/positions
6461           - Implemented SetSelection()
6462           - Obsoleted and removed FixupSelection()
6463           - Improved RecalculateDocument() logic, removing code duplication
6464
6465 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6466
6467         * LibSupport.cs: changes to match different input/output arguments.
6468
6469 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6470
6471         * LibSupport.cs: added libsupport.so init routine.
6472
6473 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6474         
6475         * ControlBindingsCollection.cs
6476                 - Throws an exception on null datasource when adding
6477                 - Checks for duplicated bindings when adding
6478
6479 2005-06-28  Jackson Harper  <jackson@ximian.com>
6480
6481         * TreeView.cs (OnKeyDown): Support left and right properly
6482         (navigates as well as expanding and collapsing.
6483         - Add support for Multiply, this expands all the selected nodes
6484         children.
6485         - Fix some tabbing.
6486
6487 2005-06-28  Jackson Harper  <jackson@ximian.com>
6488
6489         * TreeView.cs: Implement keyboard navigation, currently supports,
6490         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6491         support for toggling checkboxes with the space bar.
6492
6493 2005-06-28  Jackson Harper  <jackson@ximian.com>
6494
6495         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6496         tree.
6497
6498 2005-06-28  Jackson Harper  <jackson@ximian.com>
6499
6500         * TreeView.cs: Add missing event.
6501
6502 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6503
6504         * TextControl.cs:
6505           - Made line ending size configurable (now allows for counting 
6506             lineendings as \n or \r\n)
6507           - Added margin to viewport to keep caret visible on right side
6508           - Fixed translation routines for line/pos to documentpos to consider
6509             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6510           - Fixed some line-endings to be unix style
6511           - Fixed Document.FormatText to perform it's calculations 1-based
6512           - Added descriptions for a few methods that might otherwise get 
6513             used wrong
6514           - Added NOTE section with some basic conventions to remember at 
6515             the top of the file
6516           - Major fixup for RichTextBox selection drawing:
6517             * Fixed crashes when multiple tags on a single line were selected
6518             * fixed selection box drawing not overlaying text
6519             * fixed bogus offset calculation for tags not starting at index 1
6520             * Switched behaviour from using multiple Substrings of a 
6521               StringBuilder.ToString() to using multiple 
6522               StringBuilder.ToString(start, length) statements, hoping this is
6523               faster (kept original version commented out in the code, in case
6524               original version was faster)
6525         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6526           alignment != Left
6527         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6528           call it as well
6529
6530 2005-06-27  Jackson Harper  <jackson@ximian.com>
6531
6532         * TabControl.cs: Move to the left and right with the arrow
6533         keys. These keys don't cycle beyond first and last like
6534         tab. Refresh all the tabs when scrolling them to the left or
6535         right.
6536
6537 2005-06-27  Jackson Harper  <jackson@ximian.com>
6538
6539         * TabControl.cs:
6540           - ToString: Added method
6541           - CreateParams: Remove TODO and comment
6542           - OnKeyDown: Cycle through bounds properly.
6543           - SelectedIndex: Scroll to the right or left if we need to
6544           display the newly selected tab.
6545
6546 2005-06-23  Jackson Harper  <jackson@ximian.com>
6547
6548         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6549         set.
6550
6551 2005-06-23  Jackson Harper  <jackson@ximian.com>
6552
6553         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6554         CTRL-SHIFT-TAB, and HOME, END are there any others?
6555
6556 2005-06-23  Jackson Harper  <jackson@ximian.com>
6557
6558         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6559
6560 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6561         
6562         * DataGridTextBoxColumn.cs: fixes and enhancements
6563         * ThemeWin32Classic.cs: fixes and enhancements
6564         * DataGridBoolColumn.cs:  fixes and enhancements
6565         * DataGridDrawingLogic.cs:  fixes and enhancements
6566         * CurrencyManager.cs: fixes and enhancements
6567         * DataGrid.cs: fixes and enhancements
6568         * DataGridColumnStyle.cs:  fixes and enhancements
6569
6570 2005-06-22  Jackson Harper  <jackson@ximian.com>
6571
6572         * TabControl.cs: Add some missing methods that just call into the
6573         base. Make the TabPageCollection's IList interface behave in the
6574         same manner as the MS implementation.
6575
6576 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6577
6578         * TextControl.cs: Added sanity check
6579         * TextBoxBase.cs: 
6580           - Fixed wrapping behaviour, don't set wrap on single line controls
6581             (this fixes the breakage of colordialog introduced in an earlier
6582              checkin)
6583           - Added rudimentary support for autoscrolling right-aligned controls
6584             (still needs fixing, also, center alignment scroll is missing)
6585
6586 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6587         
6588         * ScrollBar.cs: Fixes thumbpos on Maximum values
6589
6590 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6591         
6592         * PropertyGridView.cs: Pass context information to UITypeEditors 
6593
6594 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6595
6596         * TextBoxBase.cs:
6597           - Now calling PositionCaret with absolute space coordinates
6598           - Enabled vertical scrolling
6599           - Better tracking of scrollbar changes, tied into WidthChange
6600             event
6601           - Improved cursor tracking
6602           - Removed debug output
6603         * TextControl.cs:
6604           - PositionCaret coordinates are now works in absolute space, not 
6605             the canvas
6606           - Improved tracking of document size
6607           - Added events for width and height changes
6608
6609 2005-06-21  Peter Bartok  <pbartok@novell.com>
6610
6611         * Form.cs: Set focus to active control when form is activated
6612         * TextControl.cs: 
6613           - Added word-wrap functionality to RecalculateLine() 
6614           - Added some short function descriptions for VS.Net to aid in
6615             writing dependent controls
6616           - Added Caret property, returning the current coords of the caret
6617           - Added ViewPortWidth and ViewPortHeight properties
6618           - Added Wrap property
6619           - Added CaretMoved event
6620           - Removed some old debug code
6621           - Split() can now create soft splits
6622           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6623           - Added method to format existing text
6624           - Fixed size/alignment calculations to use viewport
6625           - RecalculateDocument now can handle changing line-numbers while
6626             calculating lines
6627
6628         * TextBox.cs:
6629           - Added some wrap logic, we don't wrap if alignment is not left
6630           - Added casts for scrollbar var, base class switched types to
6631             also support RichTextBoxA
6632           - Implemented handling of scrollbar visibility flags
6633
6634         * TextBoxBase.cs:
6635           - Switched scrollbars type to RichTextBoxScrollBars to support
6636             RichTextBox
6637           - Added tracking of canvas width/height
6638           - Switched scrollbars to be not selectable (to keep focus on text)
6639           - Added central CalculateDocument() method to handle all redraw
6640             requirements
6641           - Added ReadOnly support
6642           - Added WordWrap support
6643           - Fixed handling of Enter key (we now treat it as a DialogKey)
6644           - Fixed caret positioning when h or v scroll is not zero
6645           - Fixed placing/generation of vertical scrollbar
6646           - Added CalculateScrollBars() method to allow updating scrollbar
6647             limits and visibility
6648           - Fixed handling of horizontal scroll
6649           - Added handling of vertical scroll
6650           - Implemented auto-'jump' when caret moves to close to a left or
6651             right border and there is text to be scrolled into view (currently
6652             there's the potential for a stack overflow, until a bug in
6653             scrollbar is fixed)
6654
6655 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
6656         
6657         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6658
6659 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
6660
6661         * Mime.cs:
6662         - added inodes.
6663         - return application/x-zerosize for files with size zero
6664           (if no extension pattern matches).
6665         - check matches collection for strings too.
6666         - return only the first mime type if the name value
6667           collection has more than one mime type.
6668
6669 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
6670         
6671         * PropertyGrid.cs: Cleaned up some TODOs
6672         * PropertyGridView.cs: Added support for UITypeEditors
6673
6674 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6675         
6676         * DataGrid.cs: clears cached value
6677
6678 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6679
6680         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6681         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6682         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6683         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6684         
6685 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
6686
6687         * ThemeWin32Classic.cs: fixes colour
6688
6689 2005-06-15  Peter Bartok  <pbartok@novell.com>
6690
6691         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6692         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6693         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6694         * Control.cs: Added some MWFCategory and MWFDescription attributes
6695         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6696
6697 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
6698
6699         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6700         usage
6701
6702 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
6703
6704         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6705         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6706         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6707         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6708         * DataGrid.cs: default datagrid settings for Default Styles, fixes
6709         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6710
6711 2005-06-13  Jackson Harper  <jackson@ximian.com>
6712
6713         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6714         isn't printed when the user enables dropping. (X11 does accept
6715         drops).
6716         
6717 2005-06-13  Jackson Harper  <jackson@ximian.com>
6718
6719         * TreeView.cs: Remove some TODOS.
6720
6721 2005-06-13  Jackson Harper  <jackson@ximian.com>
6722
6723         * Form.cs: Hook into the mdi framework.
6724         * MdiClient.cs: Use the base control collections add method so
6725         parents get setup correctly. Set the default back colour and dock
6726         style.
6727         * MdiChildContext.cs: New class, this bad actor handles an
6728         instance of an MDI window. Right now there is only basic
6729         support. You can drag, close, and resize windows. Minimize and
6730         Maximize are partially implemented.
6731
6732 2005-06-13  Jackson Harper  <jackson@ximian.com>
6733
6734         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6735         freaky when both vals are negative. NOTE: There are probably other
6736         places in XplatUIX11 that this needs to be done.
6737
6738 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
6739
6740         * DataGrid.cs: implement missing methods, move KeyboardNavigation
6741         * DataGridColumnStyle.cs: fixes signature
6742
6743 2005-06-12  Jackson Harper  <jackson@ximian.com>
6744
6745         * XplatUIX11.cs: Use sizing cursors similar to the ones on
6746         windows.
6747
6748 2005-06-11  Jackson Harper  <jackson@ximian.com>
6749
6750         * StatusBarPanel.cs: Signature cleanups. Implement
6751         BeginInit/EndInit.
6752
6753 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
6754
6755         * DataGridTextBoxColumn.cs: Honors aligment
6756         * GridColumnStylesCollection.cs: Contains is case unsensitive
6757         * GridTableStylesCollection.cs: several fixes
6758         * DataGridTableStyle.cs: default column creation
6759         * DataGridDrawingLogic.cs: fixes
6760         * CurrencyManager.cs: ListName property
6761         * DataGrid.cs: multiple styles support
6762         * DataGridColumnStyle.cs: fixes
6763         
6764
6765 2005-06-10  Peter Bartok  <pbartok@novell.com>
6766
6767         * Control.cs(Select): Moved SetFocus call to avoid potential
6768           loops if controls change the active control when getting focus
6769         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6770           the up/down buttons
6771
6772 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
6773
6774         * ImageListConverter.cs: Implemented
6775
6776 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6777
6778         * MonthCalendar.cs: Wired in NumericUpDown control for year
6779
6780 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6781
6782         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6783           DoubleClick events, since they are not meant to be fired.
6784
6785 2005-06-09  Peter Bartok  <pbartok@novell.com>
6786
6787         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6788           Jonathan's standalone controls into MWF, implemented missing
6789           events, attributes and methods; added xxxAccessible classes
6790         * AccessibleObject.cs: Made fields internal so other classes
6791           can change them if needed
6792
6793 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
6794
6795         * UpDownBase.cs: Complete implementation
6796         * NumericUpDown.cs: Complete implementation
6797         * DomainUpDown.cs: Complete implementation
6798
6799 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
6800
6801         * DataGridTextBoxColumn.cs: drawing fixes
6802         * DataGridCell.cs: fixes ToString method to match MSNet
6803         * DataGridTableStyle.cs: fixes
6804         * DataGridBoolColumn.cs: fixes, drawing
6805         * DataGridDrawingLogic.cs: fixes, new methods
6806         * DataGridTextBox.cs: Keyboard and fixes
6807         * DataGrid.cs:
6808                 - Keyboard navigation
6809                 - Scrolling fixes
6810                 - Row selection (single, multiple, deletion, etc)
6811                 - Lots of fixes
6812         
6813 2005-06-07  Jackson Harper  <jackson@ximian.com>
6814
6815         * ThemeWin32Classic.cs: Clear the background area when drawing
6816         buttons.
6817
6818 2005-06-06  Peter Bartok  <pbartok@novell.com>
6819
6820         * ImageListStreamer.cs: Fixed signature for GetData
6821         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6822         * ComboBox.cs:
6823           - Added missing ChildAccessibleObject class
6824           - Added missing OnXXXFocus overrides, switched to using those
6825             instead of the event handler
6826         * Control.cs:
6827           - Added Parent property for ControlAccessibleObject
6828           - Fixed signatures
6829           - Fixed attributes
6830           - Added ResetBindings()
6831         * ListBindingConverter.cs: Implemented some methods
6832         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6833         * ImageList.cs: Implemented basic handle scheme, removed TODOs
6834         * ContainerControl.cs: Fixed signature, now subscribing to the
6835           ControlRemoved event instead of overriding the handler, LAMESPEC
6836         * CurrencyManager.cs: Added missing attribute
6837         * MonthCalendar.cs: Added missing properties
6838
6839 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6840
6841         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6842         
6843 2005-06-06  Gaurav Vaish and Ankit Jain
6844
6845         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6846         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6847         
6848 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6849
6850         * Control.cs: fixes CreateParams Width / Height.
6851
6852 2005-06-05  Peter Bartok  <pbartok@novell.com>
6853
6854         * Win32DnD.cs: Removed compilation warnings
6855
6856 2005-06-05  Peter Bartok  <pbartok@novell.com>
6857
6858         * Control.cs (CreateParams): Since we don't know if one of the
6859           properties we use is overridden, lets make sure if we fail accessing
6860           we continue with a backup plan
6861
6862 2005-06-05  Peter Bartok  <pbartok@novell.com>
6863
6864         * Win32DnD.cs:
6865           - Removed debug output
6866           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
6867             struct
6868           - Plugged resource leak
6869         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
6870           MS size
6871
6872 2005-06-05  Peter Bartok  <pbartok@novell.com>
6873
6874         * XplatUIWin32.cs: Removed DnD code
6875         * Win32DnD.cs: Implemented drop source and drop target functionality
6876
6877 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6878
6879         * UpDownBase.cs: remove duplicate addition of event, enable some code
6880         that was commented out.
6881         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
6882         Validate input when a key is pressed. It works fine now for every
6883         combination of Hexadecimal. Only missing some drawing love when sharing
6884         space with other controls.
6885
6886 2005-06-04  Peter Bartok  <pbartok@novell.com>
6887
6888         * Control.cs:
6889           - We need to pass a window for DragDrop, so enable callback events
6890           - Added DnD callback events when being a DragSource
6891         * XplatUI.cs (StartDrag): Added window handle argument
6892         * XplatUIDriver.cs (StartDrag): Added window handle argument
6893         * QueryContinueDragEventArgs: Made fields internally accessible so
6894           drivers can set them
6895         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
6896           can set them
6897
6898 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
6899
6900         * DataGridTextBoxColumn.cs: column text editing
6901         * DataGridTableStyle.cs: Respect columns styles created by the user
6902         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
6903         * DataGridBoolColumn.cs: bool column editing
6904         * DataGrid.cs: fixes to scrolling, properties, etc
6905         * DataGridTextBox.cs: handle keyboard
6906         * DataGridColumnStyle.cs: fixes
6907
6908 2005-06-02  Jackson Harper  <jackson@ximian.com>
6909
6910         * ImageListStreamer.cs: Somewhat broken implementation of
6911         GetObjectData. The RLE needs some work to match MS properly.
6912
6913 2005-06-02  Jackson Harper  <jackson@ximian.com>
6914
6915         * X11Dnd.cs: Attempting to keep at least one file in MWF
6916         monostyled.
6917
6918 2005-06-02  Peter Bartok  <pbartok@novell.com>
6919
6920         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
6921           that way
6922
6923 2005-06-02  Peter Bartok  <pbartok@novell.com>
6924
6925         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
6926         * XplatUI.cs: Added DoDragDrop() method
6927         * XplatUIDriver.cs: Added DoDragDrop() method
6928
6929 2005-06-02  Jackson Harper  <jackson@ximian.com>
6930
6931         * Splitter.cs: Implement BorderStyle.
6932
6933 2005-06-02  Jackson Harper  <jackson@ximian.com>
6934
6935         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
6936         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
6937         X11 using XDND.
6938
6939 2005-06-02  Peter Bartok  <pbartok@novell.com>
6940
6941         * DataObject.cs:
6942           - Added Data setter
6943           - Fixed broken insertion code for SetData, now also
6944             overwrites any existing entry of the same format name
6945         * Hwnd.cs: Added list of pointers that automatically gets
6946           freed when the window is disposed
6947         * XplatUI.cs: Call driver initialization method when loading
6948           a driver
6949         * Control.cs:
6950           - OnDragLeave takes EventArgs, not DragEventArgs
6951           - Added setting of WS_EX_ACCEPTFILES style when dropping is
6952             supported
6953           - Forces style update when drop state changes
6954         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
6955           not perfect since we cannot (yet) call the IDataObject.GetData()
6956           method, we keep getting 0x80004005 error, dunno why)
6957
6958 2005-06-02  Peter Bartok  <pbartok@novell.com>
6959
6960         * DragEventArgs.cs: Make fields internal so we can cache the
6961           object and re-set the fields from XplatUI
6962
6963 2005-06-02  Jackson Harper  <jackson@ximian.com>
6964
6965         * Control.cs: Add some internal methods so the DnD subsystem can
6966         raise DnD events. Also call into the driver when AllowDrop is set.
6967         * XplatUI.cs:
6968         * XplatUIDriver.cs: New method for setting whether or not a window
6969         is allowed to accept drag and drop messages.
6970                 
6971 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
6972         
6973         * ScrollBar.cs: Make sure that values sent in Scroll events
6974         are always between Maximum and Minimum.
6975
6976 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
6977
6978         * Menu.cs: Call MenuChanged when menuitem visibility has been
6979         changed.
6980         * MenuItem.cs: Rebuild menu when item is (not) visible.
6981         * MainMenu.cs: MainMenu has special MenuChanged.
6982         * Theme.cs: Caption and FrameBorderSize are not fixed.
6983         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
6984         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
6985         * XplatUIX11.cs,
6986         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
6987         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
6988
6989 2005-05-30  Jackson Harper  <jackson@ximian.com>
6990
6991         * DataFormat.cs: We can't statically initialize this stuff because
6992         it calls into the xplatui and could create a loop. So we lazy init
6993         it.
6994
6995 2005-05-28  Jackson Harper  <jackson@ximian.com>
6996
6997         * Control.cs: Proper implementation of Product(Name/Version).
6998
6999 2005-05-27  Jackson Harper  <jackson@ximian.com>
7000
7001         * DataObject.cs: Dont crash if no data is found.
7002
7003 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7004         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7005                 as per status page, guessing it should be set to true
7006
7007 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7008
7009         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7010         * DataGridTableStyle.cs: set proper formatting text, def header text
7011         * ThemeWin32Classic.cs: new themable paramaters
7012         * DataGridBoolColumn.cs: paint check box, get data, fixes
7013         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7014         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7015         * DataGridColumnStyle.cs: fixes
7016         * Theme.cs: new themable paramaters
7017                 
7018 2005-05-26  Peter Bartok  <pbartok@novell.com>
7019
7020         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7021
7022 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7023         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7024
7025 2005-05-24  Peter Bartok  <pbartok@novell.com>
7026
7027         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7028           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7029           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7030           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7031           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7032           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7033           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7034           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7035           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7036           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7037           missing attributes, etc
7038         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7039
7040 2005-05-24  Peter Bartok  <pbartok@novell.com>
7041
7042         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7043           when user tries to get help
7044         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7045           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7046           to suppress warnings
7047         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7048           avoid unreachable code warning
7049
7050 2005-05-20  Peter Bartok  <pbartok@novell.com>
7051
7052         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7053
7054 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7055
7056         * DataGridTextBoxColumn.cs: Basic painting methods
7057         * DataGridTableStyle.cs: Set table style in the column
7058         * ThemeWin32Classic.cs: Use Theme for colors
7059         * DataGridDrawingLogic.cs: Implement more drawing
7060         * DataGrid.cs: drawing, theming, enhacements, fixes
7061         * DataGridColumnStyle.cs: fixes, drawing
7062         * Theme.cs: theming for Datagrid
7063
7064 2005-05-20  Peter Bartok  <pbartok@novell.com>
7065
7066         * Cursor.cs: Implemented GetObjectData() method
7067
7068 2005-05-20  Peter Bartok  <pbartok@novell.com>
7069
7070         * Cursors.cs: Added setting of cursor name
7071         * Cursor.cs:
7072           - Implemented constructors
7073           - Implemented Draw and DrawStretched
7074           - Implemented Current property
7075           - Implemented == and != operators
7076           - Implemented Dispose()
7077           - Implemented ToString
7078           - Added missing attributes
7079         * XplatUIX11.cs:
7080           - Added missing reset for OverrideCursor when DoEvents is called
7081           - Fixed creation of cursor, logic was wrong
7082         * XplatUIWin32.cs:
7083           - Added missing reset for OverrideCursor when DoEvents is called
7084           - Fixed creation of cursor, bit arrays were swapped
7085         * Clipboard.cs: Removed obsolete MonoTODO attribute
7086
7087 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7088
7089         * ComboBox.cs: fixes OnSelectedItemChanged
7090         * ControlBindingsCollection.cs: fixes item range check
7091
7092 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7093
7094         * UpDownBase.cs:
7095                 - Calc preferred height properly
7096                 - Implement missing properties
7097                 
7098         * NumericUpDown.cs: Implement missing events
7099
7100 2005-05-19  Jackson Harper  <jackson@ximian.com>
7101
7102         * TabControl.cs: New method that resizes the tab pages before
7103         redrawing them. This as needed as the control is double buffered
7104         and sizing will not be recalculated unless ResizeTabPages is
7105         called.
7106         * TabPage.cs: Set base.Text instead of Text in the constructor so
7107         that UpdateOwner does not get called. Use the new Redraw method of
7108         TabControl instead of Refresh so the sizing is recalculated.
7109         * ThemeWin32Classic.cs: Draw the text for button tabs.
7110
7111 2005-05-19  Jackson Harper  <jackson@ximian.com>
7112
7113         * Control.cs: Paint control background images. Fix typo where
7114         PaintControlBackground was not getting called correctly.
7115
7116 2005-05-19  Peter Bartok  <pbartok@novell.com>
7117
7118         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7119           I can investigate, apparently I broke FileDialog
7120
7121 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7122
7123         * AxHost.cs: Some simple properties.
7124         * Control.cs: window must be accessible after ctor.
7125         * Form.cs: Added TransparencyKey property.
7126         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7127         * XplatUIWin32.cs: SetBorderStyle implemented.
7128
7129 2005-05-18  Peter Bartok  <pbartok@novell.com>
7130
7131         * DataObject.cs: Entries are not global but particular to the
7132           DataObject, now it behaves that way
7133         * XplatUIWin32.cs: Implemented Clipboard methods
7134         * Clipboard.cs: Implemented
7135         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7136         * XplatUIOSX.cs: Updated to final clipboard prototypes
7137         * XplatUIX11.cs: Implemented Clipboard methods
7138         * XplatUIDriver.cs: Updated to final clipboard prototypes
7139         * XplatUIStructs.cs:
7140           - Added BITMAPINFOHEADER struct
7141           - Added ClipboardFormats enum
7142         * X11Structs.cs:
7143           - Added ClipboardStruct
7144           - Added Atom enum items for clipboard types
7145           - Fixed atom types for Selection event structures
7146         * DataFormats.cs:
7147           - Added internal properties and methods for drivers to enumerate
7148             all known formats
7149           - Switched initialization method to allow drivers to assign their
7150             own IDs even for the MS predefined clipboard IDs
7151         * XplatUI.cs: Updated to final clipboard interface
7152
7153 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7154         * PropertyGridView.cs: Fixed compiler warnings.
7155
7156 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7157         * PropertyGrid.cs: Added some event calls
7158         * PropertyGridView.cs: Change drawing code to use double buffering
7159         * PropertyGridTextBox.cs: Changed Text property name
7160         * GridItem.cs: Added Bounds property.
7161         * GridEntry.cs: Added Bounds property.
7162
7163 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7164
7165         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7166         since GetType() may not return the correct type if the object is
7167         a remoting proxy.
7168
7169 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7170
7171         * TreeNodeCollection.cs: fixes get/set item ranges
7172         
7173 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7174
7175         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7176                 
7177 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7178
7179         * ComboBox.cs: Fix item range comparation
7180         * ListView.cs: Fix item range comparation
7181
7182 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7183
7184         * FontDialog.cs:
7185           - Clear example panel when OnPaint is called
7186           - Better solution for displaying the example panel text
7187           - Select default indexes in the ListBoxes
7188
7189 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7190
7191         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7192
7193 2005-05-11  Peter Bartok  <pbartok@novell.com>
7194
7195         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7196         * SelectionRangeConverter.cs: Implemented
7197         * PropertyGrid.cs: Fixed attribute value
7198         * Control.cs:
7199           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7200           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7201         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7202           that's common to all drivers. First methods to go there are
7203           Sebastien Pouliot's CAS Stack Propagation helper methods
7204         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7205           Sebastien Pouliot for CAS Stack Propagation
7206
7207 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7208
7209         * OSXStructs.cs:
7210           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7211
7212 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7213
7214         * DataGridTextBoxColumn.cs: fixed some members
7215         * GridColumnStylesCollection.cs: indexed column is case insensitive
7216         * DataGridTableStyle.cs: fixes
7217         * ThemeWin32Classic.cs: add new theme parameter
7218         * Theme.cs: add new theme parameter
7219         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7220         * DataGrid.cs: fixes, new internal properties, etc.
7221         * DataGridColumnStyle.cs: allows to set grid value
7222         *
7223
7224 2005-05-10  Peter Bartok  <pbartok@novell.com>
7225
7226         * AccessibleObject.cs:
7227           - Removed MonoTODO attribute on help, method is correct
7228           - Fixed Bounds property
7229         * AxHost.cs: Moved MonoTODO
7230         * ButtonBase.cs: Now setting AccessibleObject properties
7231         * RadioButton.cs: Setting proper AccessibleObject role
7232         * CheckBox.cs: Setting proper AccessibleObject role
7233         * ControlBindingsCollection.cs: Added properties, methods and attributes
7234         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7235           userdefined DataFormats.Format items as well
7236         * ListControl.cs: Removed data_member from the public eye
7237         * OpenFileDialog.cs:
7238           - Made class sealed
7239           - Added missing attributes
7240         * SaveFileDialog.cs: Added missing attributes
7241         * ImageListStreamer.cs: Fixed code that caused warnings
7242         * LinkLabel.cs: Removed unreachable code
7243         * TreeView.cs: Fixed code that caused warnings
7244         * PropertyGridView.cs: Fixed code that caused warnings
7245         * GridColumnStylesCollection.cs: Added missing attributes
7246         * GridTableStylesCollection: Added missing attribute
7247         * PropertyManager: Added .ctor
7248         * SecurityIDType: Added
7249         * DataObject.cs: Implemented class
7250         * LinkArea.cs: Added missing attribute
7251
7252 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7253
7254         * RadioButton.cs: call base method to allow to fire OnClick event
7255         * UpDownBase.cs: OnMouseUp call base method
7256         * CheckedListBox.cs: call base method before returning
7257         * TrackBar.cs: call base method before returning
7258         
7259
7260 2005-05-10  Peter Bartok  <pbartok@novell.com>
7261
7262         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7263           for messages
7264
7265 2005-05-10  Peter Bartok  <pbartok@novell.com>
7266
7267         * DataFormats.cs: Implemented
7268         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7269           XplatUIX11.cs: Added Clipboard APIs
7270         * XplatUIWin32.cs: Implemented Clipboard APIs
7271         * FolderBrowserDialog.cs: Added missing event, attributes
7272
7273 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7274
7275         * CheckBox.cs: call base method to allow to fire OnClick event
7276
7277 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7278
7279         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7280
7281 2005-05-06  Peter Bartok  <pbartok@novell.com>
7282
7283         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7284         * Screen.cs: Implemented
7285         * HelpNavigator.cs: Added
7286         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7287           property
7288         * HelpProvider.cs: Implemented all we can do until we have a CHM
7289           help library (which means that "What's This" does work now)
7290
7291 2005-05-06  Jackson Harper  <jackson@ximian.com>
7292
7293         * XplatUIX11.cs: Fix waking up the main loop.
7294                 
7295 2005-05-05  Peter Bartok  <pbartok@novell.com>
7296
7297         * XplatUI.cs: Updated revision
7298         * Form.cs: Removed enless loop
7299         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7300         * Label.cs (OnPaint): Added call to base.OnPaint()
7301         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7302         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7303         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7304         * AxHost.cs: Added
7305         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7306         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7307           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7308           reuse of ToolTipWindow by other controls
7309         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7310         * XplatUIX11.cs: Now clipping drawing area (experimental)
7311         * PictureBox.cs: Moved base.OnPaint() call to end of method
7312         * Theme.cs: Fixed ToolTip abstracts to match new format
7313         * ErrorProvider.cs: Implemented
7314
7315 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7316
7317         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7318         * LinkLabel.cs:
7319                 - Adds cursors
7320                 - Handles focus
7321                 - Implements LinkBehavior
7322                 - Fixes many issues
7323
7324 2005-05-03  Jackson Harper  <jackson@ximian.com>
7325
7326         * ListView.cs: Calculate the scrollbar positioning on resize and
7327         paint, so they get put in the correct place.
7328
7329 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7330
7331         * ColorDialogs.cs: The small color panels are now handled by
7332           SmallColorControl. This fixes drawing of the focus rectangle
7333           and adds a 3D border.
7334
7335 2005-05-03  Peter Bartok  <pbartok@novell.com>
7336
7337         * Control.cs: Modified version of Jonathan Chamber's fix for
7338           double-buffering
7339
7340 2005-05-03  Jackson Harper  <jackson@ximian.com>
7341
7342         * ListView.cs: Remove redraw variable. Control now handles whether
7343         or not a redraw needs to be done, and will only raise the paint
7344         event if redrawing is needed.
7345
7346 2005-05-03  Jackson Harper  <jackson@ximian.com>
7347
7348         * Splitter.cs: No decorations for the splitter form. Cache the
7349         hatch brush.
7350
7351 2005-05-03  Jackson Harper  <jackson@ximian.com>
7352
7353         * TreeView.cs: Use dashed lines to connect nodes. Use the
7354         ControlPaint method for drawing the focus rect instead of doing
7355         that in treeview.
7356
7357 2005-05-02  Peter Bartok  <pbartok@novell.com>
7358
7359         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7360
7361 2005-04-29  Jackson Harper  <jackson@ximian.com>
7362
7363         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7364         entire image buffer. Just clear the clipping rectangle.
7365
7366 2005-04-29  Jackson Harper  <jackson@ximian.com>
7367
7368         * ThemeWin32Classic.cs: Don't draw list view items that are
7369         outside the clipping rectangle.
7370
7371 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7372
7373         * ListBox.cs: added horizontal item scroll
7374
7375 2005-04-29  Jackson Harper  <jackson@ximian.com>
7376
7377         * ThemeWin32Classic.cs: Remove some old debug code that was
7378         causing flicker with the new double buffering code.
7379
7380 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7381
7382         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7383         behave like combobox and comboboxlist (still not sure if this is
7384         correct though).
7385
7386 2005-04-28  Jackson Harper  <jackson@ximian.com>
7387
7388         * ThemeWin32Classic.cs: Don't fill the middle of progress
7389         bars. This fills areas outside of the clip bounds that don't need
7390         to be filled.
7391
7392 2005-04-28  Jackson Harper  <jackson@ximian.com>
7393
7394         * Control.cs: Don't expose functionality to touch the image buffers.
7395         * ProgressBar.cs:
7396         * ListView.cs: We do not need to (and no longer can) manipulate
7397         the image buffers directly. All of this is handled by Control.
7398
7399 2005-04-28  Peter Bartok  <pbartok@novell.com>
7400
7401         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7402           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7403           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7404
7405 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7406
7407         * Combobox:
7408                 - Adjust control's height for non-simple comboboxes (bug fix)
7409                 - Remove dead code
7410         * MenuAPI.cs: remove unused var
7411         * ScrollBar.cs: remove unsed var
7412                  
7413         * ListBox.cs: unselect items when clearing
7414
7415 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7416
7417         * ListControl.cs: honors OnPositionChanged and default Selected Item
7418         * ListBox.cs: unselect items when clearing
7419
7420 2005-04-27  Jackson Harper  <jackson@ximian.com>
7421
7422         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7423         if a "correct" keyboard is not found. This will make us not crash,
7424         but might give some users bad keyboard layouts...seems to be the
7425         same thing rewind does.
7426
7427 2005-04-27  Jackson Harper  <jackson@ximian.com>
7428
7429         * BindingManagerBase.cs: Attach the current/position changed
7430         handlers to their respective events.
7431
7432 2005-04-27  Jackson Harper  <jackson@ximian.com>
7433
7434         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7435         not just a blit.
7436         * ThemeWin32Classic.cs: Don't fill the background for picture
7437         boxes. This could overright user drawing.
7438         * ComboBox.cs: Just fill the clipping rect not the entire client
7439         rect when drawing the background. This prevents pieces of the
7440         image buffer from getting overwritten and is theoretically faster.
7441
7442 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7443
7444         * ComboBox.cs: Databinding support fixes, fire missing events
7445         * ListControl.cs: implement missing methods and properties, fixes
7446         * ThemeWin32Classic.cs: Databiding support on Drawing
7447         * CheckedListBox.cs: Databinding support fixes, fire missing events
7448         * ListBox.cs: Databinding support fixes, fire missing events
7449         
7450 2005-04-25  Peter Bartok  <pbartok@novell.com>
7451
7452         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7453
7454 2005-04-25  Jackson Harper  <jackson@ximian.com>
7455
7456         * TreeView.cs: Use the horizontal scrollbars height not width when
7457         determining how much of the client area is available.
7458
7459 2005-04-25  Jackson Harper  <jackson@ximian.com>
7460
7461         * Control.cs: Double buffering is handled differently now. As per
7462         the spec, the extra buffer is created in the WM_PAINT message and
7463         passed down to the control's drawing code.
7464         * GroupBox.cs:
7465         * Label.cs:
7466         * CheckBox.cs:
7467         * ProgressBar.cs:
7468         * RadioButton.cs:
7469         * ColorDialog.cs:
7470         * ComboBox.cs:
7471         * PropertyGridView.cs:
7472         * UpDownBase.cs:
7473         * MessageBox.cs:
7474         * MenuAPI.cs:
7475         * ListView.cs:
7476         * ButtonBase.cs:
7477         * SizeGrip.cs:
7478         * ScrollBar.cs:
7479         * ListBox.cs:
7480         * TrackBar.cs:
7481         * ToolBar.cs:
7482         * PictureBox.cs:
7483         * DateTimePicker.cs:
7484         * StatusBar.cs:
7485         * TreeView.cs: Update to new double buffering system.
7486         * MonthCalendar.cs: Uncomment block, as Capture is now
7487         working. Update to new double buffering
7488         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7489         * PaintEventArgs.cs: New internal method allows us to set the
7490         graphics object. This is used for double buffering.
7491         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7492         rectangle. The internal paint_area var has been removed from
7493         StatusBar. The clipping rect should be used instead.
7494         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7495         * TabPage.cs: The RefreshTabs method was removed, so just call the
7496         tab controls Refresh method now.
7497         * TabControl.cs: Update to new double buffering. Make sure the
7498         handle is created before sizing the tab pages, otherwise we will
7499         get stuck in a loop.
7500
7501 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7502
7503         * LinkLabel.cs: Fix typo, bug #74719; patch
7504           from Borja Sanchez Zamorano
7505
7506 2005-04-22  Jackson Harper  <jackson@ximian.com>
7507
7508         * TreeNode.cs: Implement Handle stuff.
7509         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7510
7511 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7512
7513         * DataGridTextBoxColumn.cs: call base constructors, fixes
7514         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7515         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7516         * DataGridTableStyle.cs: implements create default column styles
7517         * DataGridBoolColumn.cs: which types can handle
7518         * DataGrid.cs: missing methods, fixes, new functionality
7519         * DataGridColumnStyle.cs: fixes
7520
7521 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7522         * FolderBrowserDialog.cs:
7523         - Use a thread to fill the TreeView
7524         - Adjusted some sizes
7525
7526 2005-04-19  Peter Bartok  <pbartok@novell.com>
7527
7528         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7529           property. Fixes #74360.
7530
7531 2005-04-19  Jackson Harper  <jackson@ximian.com>
7532
7533         * XEventQueue.cs: Lock when getting the lockqueue size.
7534         * PictureBox.cs: Call base OnPaint
7535         
7536 2005-04-19  Peter Bartok  <pbartok@novell.com>
7537
7538         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7539           messages were no longer being processed (this broke BeginInvoke)
7540
7541           
7542 2005-04-18  Jackson Harper  <jackson@ximian.com>
7543
7544         * TreeView.cs: buglet that caused node images to get drawn
7545         regardless of whether or not they were in the clipping rectangle.
7546
7547 2005-04-18  Jackson Harper  <jackson@ximian.com>
7548
7549         * CurrencyManager.cs: There are four rules for GetItemProperties:
7550         - If the type is an array use the element type of the array
7551         - If the type is a typed list, use the type
7552         - If the list contains an Item property that is not an object, use
7553         that property
7554         - use the first element of the list if there are any elements in
7555         the list.
7556         
7557 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7558
7559         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7560         click. This handles offsets for scrolling properly and reduces
7561         memory. Also fixed GetNode to not offset now that TopNode works
7562         properly.
7563         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7564         
7565 2005-04-17  Jackson Harper  <jackson@ximian.com>
7566
7567         * CursorConverter.cs: Initial implementation.
7568
7569 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7570
7571         * ListControl.cs: work towards complex data binding support on ListControl
7572         * CurrencyManager.cs: work towards complex data binding support on ListControl
7573         * ListBox.cs: work towards complex data binding support on ListControl
7574
7575
7576 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7577
7578         * GridTableStylesCollection.cs: fixes name and constructor
7579         * DataGridTableStyle.cs: fixes
7580         * DataGridBoolColumn.cs: fixes names and constructors
7581         * DataGrid.cs: define methods and properties. Some init implementations
7582         * DataGridCell.cs: define methods and properties. Some init implementations
7583         * GridTablesFactory.cs: Define methods and properties
7584
7585 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7586
7587         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7588         graphics port changes.  We still want the coordinates in global screen
7589         coordinates.
7590
7591 2005-04-14  Jackson Harper  <jackson@ximian.com>
7592
7593         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7594         check plus minus or checkbox clicks unless those features are enabled.
7595
7596 2005-04-14  Jackson Harper  <jackson@ximian.com>
7597
7598         * TreeView.cs: Add methods for setting the top and bottom visible
7599         nodes. TreeNode::EnsureVisible uses these methods.
7600         * TreeNode.cs: Implement EnsureVisible
7601
7602 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7603
7604         * Form.cs: Pospone menu assignation if the window has not been created yet
7605         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7606         size and position
7607
7608 2005-04-12  Jackson Harper  <jackson@ximian.com>
7609
7610         * TreeView.cs: Set the TopNode properly when scrolling
7611         occurs. This has the added benifit of reducing the amount of
7612         walking that needs to be done when drawing. Also removed an old
7613         misleading TODO.
7614         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7615         
7616 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7617
7618         * Timer.cs: fixes interval setting when the timer is already enabled
7619         
7620 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7621
7622         * FolderBrowserDialog.cs: First approach
7623
7624 2005-04-09  Peter Bartok  <pbartok@novell.com>
7625
7626         * FolderBrowserDialog: Added
7627
7628 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7629
7630         * LinkLabel.cs: move drawing code into the theme
7631         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7632         * Theme.cs: define DrawLinkLabel method
7633
7634 2005-04-05  Jackson Harper  <jackson@ximian.com>
7635
7636         * BindingContext.cs: Use weak references so these bad actors don't
7637         stay alive longer then they need to.
7638
7639 2005-04-05  Jackson Harper  <jackson@ximian.com>
7640
7641         * ListControl.cs: Basic implementation of complex databinding.
7642         * ComboBox.cs:
7643         * ListBox.cs: Add calls to ListControl databinding methods.
7644
7645 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
7646
7647         * FileDialog.cs:
7648           - Don't change PopupButtonState to Normal when the
7649             PopupButton gets pressed several times.
7650           - Renamed ButtonPanel to PopupButtonPanel
7651
7652 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
7653
7654         * ColorDialog.cs: Use cached objects instead of creating them
7655         * LinkLabel.cs: Use cached objects instead of creating them
7656         * Splitter.cs: Use cached objects instead of creating them
7657         * FontDialog.cs: Use cached objects instead of creating them
7658         * PropertyGridView.cs: Use cached objects instead of creating them
7659         * MessageBox.cs: Use cached objects instead of creating them
7660         * FileDialog.cs: Use cached objects instead of creating them
7661         * ThemeWin32Classic.cs: Use cached objects instead of creating them
7662         * TreeView.cs: Use cached objects instead of creating them
7663         
7664 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
7665
7666         * Control.cs: use Equals to compare the font since no == op
7667         * ScrollBar.cs: use Equals to compare the font since no == op
7668
7669 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
7670
7671         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7672
7673 2005-04-01  Jackson Harper  <jackson@ximian.com>
7674
7675         * Binding.cs: Implement IsBinding.
7676         * BindingManagerBase.cs:
7677         * PropertyManager.cs:
7678         * CurrencyManager.cs: Add IsSuspended property.
7679
7680 2005-04-01  Jackson Harper  <jackson@ximian.com>
7681
7682         * Binding.cs: Had some IsAssignableFrom calls backwards.
7683
7684 2005-04-01  Jackson Harper  <jackson@ximian.com>
7685
7686         * Binding.cs: Handle null data members when pulling data.
7687         * PropertyManager.cs: Handle the data member being a property that
7688         does not exist.
7689
7690 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7691
7692         * DataGridTextBoxColumn.cs: fixes signature
7693         * DataGrid.cs: calls right constructor
7694
7695 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7696
7697         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7698         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7699         * GridTableStylesCollection.cs: implements GridTableStylesCollection
7700         * DataGridTableStyle.cs: implements DataGridTableStyle
7701         * DataGridBoolColumn.cs: implements DataGridBoolColumn
7702         * DataGridTextBox.cs: implements DataGridTextBox
7703         * DataGridColumnStyle.cs: implements DataGridColumnStyle
7704
7705 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
7706
7707         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7708
7709 2005-03-29  Peter Bartok  <pbartok@novell.com>
7710
7711         * Application.cs:
7712           - Properly implemented CompanyName property
7713           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7714             returns a path that includes CompanyName, ProductName and
7715             Version (fixes bug #70330)
7716
7717 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
7718
7719         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7720           fixes bug #72588.
7721
7722 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7723
7724         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7725         
7726           - Added ReadOnly CheckBox
7727           - Further refactoring: moved some code from Open-/SaveFileDialog
7728             to FileDialog
7729
7730 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7731
7732         * OpenFileDialog.cs: Fixed CheckFileExists
7733         * FileDialog.cs:
7734           Moved FileView and DirComboBox outside FileDialog class.
7735           They can now be used outside FileDialog
7736
7737 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7738
7739         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7740         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7741
7742 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7743
7744         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7745           - Added missing CreatePrompt property in SaveDialog
7746           - Overall SaveDialog handling should be better now
7747           - Added non standard ShowHiddenFiles property
7748           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7749           - Added InitialDirectory and RestoreDirectory support
7750
7751 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
7752
7753         * FileDialog.cs: Made dirComboBox usable
7754
7755 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
7756
7757         * FileDialog.cs: Added Filter support (case sensitiv)
7758
7759 2005-03-24  Jackson Harper  <jackson@ximian.com>
7760
7761         * TabControl.cs: Need a couple more pixels for the lines.
7762
7763 2005-03-23  Jackson Harper  <jackson@ximian.com>
7764
7765         * TabControl.cs: Give the tab page focus when it is selected.
7766
7767 2005-03-23  Jackson Harper  <jackson@ximian.com>
7768
7769         * TabControl.cs: Account for the drawing of tabs borders when
7770         invalidating. If the slider was clicked dont do click detection on
7771         the tabs.
7772
7773 2005-03-23  Jackson Harper  <jackson@ximian.com>
7774
7775         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7776
7777 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
7778
7779         * CategoryGridEntry.cs: Added
7780         * GridItem.cs: Added helper properties
7781         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7782         * GridEntry.cs: Updated code for collection
7783         * PropertyGrid.cs: Cleaned up some formatting
7784         * PropertyGridView.cs: Added drop down functionality for enums.
7785         * GridItemCollection.cs: Added enumerator logic
7786         * PropertyGridEntry.cs: Added
7787
7788 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7789
7790         * FileDialog.cs:
7791           - Removed unnecessary commented code
7792           - Fixed handling for entering the filename manually in the combobox
7793
7794 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7795
7796         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7797
7798 2005-03-18  Peter Bartok  <pbartok@novell.com>
7799
7800         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7801           them being touching the border
7802
7803 2005-03-18  Peter Bartok  <pbartok@novell.com>
7804
7805         * TextControl.cs: Quick hack to center text better
7806
7807 2005-03-18  Peter Bartok  <pbartok@novell.com>
7808
7809         * ControlPaint.cs:
7810           - Don't throw NotImplemented exceptions, just print a notice once
7811             instead (requested by Miguel). This makes running existing SWF
7812             apps a bit easier
7813         * Control.cs:
7814           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7815           - Added context menu trigger on right click
7816         * Panel.cs: Trigger invalidate on resize
7817         * StatusBar.cs:
7818           - Removed old double-buffer drawing
7819           - Added ResizeRedraw style to force proper update of statusbar
7820         * ListView.cs:
7821           - Removed debug output
7822         * ThemeWin32Classic.cs:
7823           - Fixed drawing of status bar, now draws Text property if there
7824             are no defined panels
7825
7826 2005-03-18  Jackson Harper  <jackson@ximian.com>
7827
7828         * ImageList.cs: When the image stream is set pull all the images
7829         from it.
7830         * ImageListStreamer.cs: Implement reading image list streams.
7831
7832 2005-03-18  Peter Bartok  <pbartok@novell.com>
7833
7834         * ThemeWin32Classic.cs (DrawPictureBox):
7835           - Fixed calculations for centered drawing
7836           - Fixed drawing for normal mode, not scaling the image on normal
7837
7838 2005-03-18  Peter Bartok  <pbartok@novell.com>
7839
7840         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7841           textbox
7842         * FileDialog.cs:
7843           - Made Open/Save button the accept button for FileDialog
7844           - Tied the cancel button to the IButtonControl cancel button
7845           - Save/Open now properly builds the pathname
7846           - Now handles user-entered text
7847           - Preventing crash on right-click if no item is selected
7848           - Fixed Text property, now uses contents of textbox
7849           - Fixed SelectedText property, now just returns the text part that
7850             is selected in the text box
7851
7852 2005-03-18  Jackson Harper  <jackson@ximian.com>
7853
7854         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7855         rect, make sure to de-adjust the interior rect after drawing the
7856         tab text.
7857
7858 2005-03-18  Peter Bartok  <pbartok@novell.com>
7859
7860         * MenuAPI.cs: Remove menu *before* executing selected action to
7861           prevent the menu from 'hanging around'
7862           
7863 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
7864
7865         * XplatUIOSX.cs: Implemented WorkingArea property
7866
7867 2005-03-17  Peter Bartok  <pbartok@novell.com>
7868
7869         * XplatUIX11.cs: Fixed menu coord calculations
7870         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
7871           for calculating offsets
7872
7873 2005-03-17  Peter Bartok  <pbartok@novell.com>
7874
7875         * Hwnd.cs: Do not consider menu presence for default client
7876           rectangle location/size
7877         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7878           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
7879           translation functions
7880         * FileDialog.cs: Fixed (what I presume is a) typo
7881
7882 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
7883
7884         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
7885           X access (avoids X-Async errors)
7886
7887 2005-03-16  Jackson Harper  <jackson@ximian.com>
7888
7889         * TabControl.cs: Raise the SelectedIndexChanged event.
7890
7891 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
7892
7893         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7894           - Removed vertical ToolBar and replaced it with a custom panel
7895             (desktop and home button already work)
7896           - Added Help button (some controls get resized or relocated then)
7897           - Draw correct text depending on Open or Save.
7898           - Fixed some typos...
7899
7900 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
7901
7902         * ScrollBar.cs:
7903           - Only change Maximum and Minimum when need it (bug fix)
7904
7905 2005-03-15  Peter Bartok  <pbartok@novell.com>
7906
7907         * Form.cs: Use Handle for icon, to trigger creation if
7908           the window does not yet exist
7909         * Control.cs:
7910           - CanSelect: Slight performance improvement
7911           - Focus(): Preventing possible recursion
7912           - Invalidate(): Removed ControlStyle based clear flag setting
7913           - WM_PAINT: fixed logic for calling OnPaintBackground
7914           - WM_ERASEBKGND: Fixed logic, added call to new driver method
7915             EraseWindowBackground if the control doesn't paint background
7916         * XplatUIWin32.cs:
7917           - Moved EraseWindowBackground() method to internal methods
7918           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
7919             is sent via SendMessage on BeginPaint call on Win32
7920         * XplatUIX11.cs:
7921           - Added EraseWindowBackground() method
7922           - No longer sends WM_ERASEBKGND on .Expose, but on call to
7923             PaintEventStart, which more closely matches Win32 behaviour
7924           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
7925           - Fixed SetFocus() to properly deal with client and whole windows
7926         * Hwnd.cs: Added ErasePending property
7927         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
7928         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
7929
7930 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
7931
7932         * XplatUIOSX.cs:
7933           - Fix hard loop when timers exist.
7934           - Fix bugs with middle and right click for 3 button mice.
7935
7936 2005-03-11  Peter Bartok  <pbartok@novell.com>
7937
7938         * XplatUIX11.cs:
7939           - get_WorkingArea: Need to call X directly, GetWindowPos only
7940             returns cached data now
7941           - Added sanity check to GetWindowPos hwnd usage
7942
7943 2005-03-11  Jackson Harper  <jackson@ximian.com>
7944
7945         * BindingManagerBase.cs: This method isn't used anymore as
7946         PullData now updates the data in the control.
7947
7948 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
7949
7950         * Form.cs: fixes menu drawing on X11
7951         * MenuAPI.cs:  fixes menu drawing on X11
7952
7953 2005-03-11  Peter Bartok  <pbartok@novell.com>
7954
7955         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
7956           from Jonathan Gilbert; should fix bug #73606
7957         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
7958           in Screen coordinates. Thanks, Jordi.
7959         * Form.cs: Added missing attribute
7960
7961 2005-03-11  Peter Bartok  <pbartok@novell.com>
7962
7963         * Form.cs:
7964           - Rudimentary Mdi support
7965           - Removed outdated FormParent code
7966           - Implemented lots of missing properties and methods, still missing
7967             transparency support
7968           - Added missing attributes
7969           - Implemented support for MaximumBounds
7970           - Added firing of various events
7971         * XplatUI.cs: Added SetIcon() method
7972         * XplatUIDriver.cs: Added SetIcon() abstract
7973         * XplatUIOSX.cs: Stubbed out SetIcon() method
7974         * XplatUIX11.cs:
7975           - Implemented SetIcon() support
7976           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
7977           - Switched to unix line endings
7978         * XplatUIWin32.cs:
7979           - Made POINT internal so for can access it as part of MINMAX
7980           - Implemented SetIcon() support
7981           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
7982             native Mdi support again, might have to go managed)
7983         * Control.cs: Now fires the StyleChanged event
7984         * MdiClient.cs: Added; still mostly empty
7985
7986 2005-03-10  Peter Bartok  <pbartok@novell.com>
7987
7988         * SaveFileDialog.cs: Added emtpy file
7989
7990 2005-03-08  Peter Bartok  <pbartok@novell.com>
7991
7992         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
7993           in turn triggers OnCreateContro) when creating a handle for the
7994           first time.
7995         * TextControl.cs: Fixed endless loop in certain cases when
7996           replacing the current selection
7997
7998 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
7999
8000         * ScrollBar.cs:
8001           - Honors NewValue changes in Scroll events allowing apps to change it
8002           - Adds First and Last Scroll events
8003           - Fixes Thumb events
8004
8005 2005-03-07  Peter Bartok  <pbartok@novell.com>
8006
8007         * Hwnd.cs: Added DefaultClientRectangle property
8008         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8009           more detailed debug information
8010         * XplatUIX11.cs:
8011           - Fixed size-change feedback loop, where we would pull an old size
8012             off the queue and mistakenly change our window's size to an
8013             earlier value
8014           - Now compressing ConfigureNotify events, to reduce looping and
8015             redraw issues
8016         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8017           is called
8018
8019 2005-03-07  Jackson Harper  <jackson@ximian.com>
8020
8021         * Binding.cs: Push data pushes from data -> property. Check if the
8022         property is readonly when attempting to set it.
8023
8024 2005-03-07  Jackson Harper  <jackson@ximian.com>
8025
8026         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8027         instead of IsSubclassOf. Pulling data now sets the value on the
8028         control.
8029         * PropertyManager.cs:
8030         * CurrencyManager.cs: Just need to pull data when updating now,
8031         because PullData will set the value on the control.
8032
8033 2005-03-04  Jackson Harper  <jackson@ximian.com>
8034
8035         * Binding.cs: Implement data type parsing and converting on pulled
8036         data. TODO: Are there more ways the data can be converted?
8037
8038 2005-03-04  Jackson Harper  <jackson@ximian.com>
8039
8040         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8041         controls Validating method so we can repull the data when the
8042         control loses focus.
8043
8044 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8045
8046         * ColumnHeader.cs:
8047           - Fixes null string format
8048           
8049         * ListView.cs:
8050           - Adds enum type checks
8051           - Fixes redrawing and recalc need after changing some properties
8052           - Fixes on focus_item set after the event
8053           - Fixes adding columns after the control has been created
8054           
8055         * ThemeWin32Classic.cs:
8056           - Fixes CheckBox focus rectangle
8057           - Fixes ColumnHeader drawing
8058
8059
8060 2005-03-03  Jackson Harper  <jackson@ximian.com>
8061
8062         * Binding.cs: Bind to <Property>Changed events so we can detect
8063         when properties are changed and update the data.
8064
8065 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8066
8067         * ImageList.cs:
8068           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8069           - Fixes ImageList constructor with ImageList container
8070           - Fixes image scaling (wrong parameters at DrawImage)
8071
8072 2005-02-02  Jackson Harper  <jackson@ximian.com>
8073
8074         * Binding.cs: Make property searches case-insensitive. Eliminate
8075         some duplicated code.
8076
8077 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8078
8079         * ComboBox.cs:
8080                 - Handle focus event
8081                 - Fix scrollbar events
8082                 - Discard highlighted item if remove it
8083                 - Fixes SelectedItem with strings
8084
8085 2005-03-01  Peter Bartok  <pbartok@novell.com>
8086
8087         * Control.cs:
8088           - Fixed Visible property, now follows (once again) parent chain
8089             to return false if any control in the chain is visible=false
8090           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8091           - Fixed several places where is_visible instead of Visible was used
8092           - Implemented FIXME related to focus selection when setting focused
8093             control to be invisible
8094
8095         * XplatUIWin32.cs: Now using proper method to find out if window is
8096           visible. Thanks to Jordi for pointing it out
8097
8098 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8099
8100         * ComboBox.cs: show/hide scrollbar instead of creating it
8101
8102 2005-02-27  Jackson Harper  <jackson@ximian.com>
8103
8104         * CurrencyManager.cs: Add PositionChanged stuff.
8105
8106 2005-02-27  Peter Bartok  <pbartok@novell.com>
8107
8108         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8109         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8110         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8111         * XplatUIX11.cs:
8112           - Implemented GetMenuDC()
8113           - Implemented GetMenuOrigin()
8114           - Implemented ReleaseMenuDC()
8115           - Implemented generation of WM_NCPAINT message
8116           - Implemented generation and handling of WM_NCCALCSIZE message
8117         * Form.cs: Added debug helper message for Jordi's menu work
8118         * Hwnd.cs:
8119           - Modified ClientRect property; added setter, fixed getter to handle
8120             setting of ClientRect
8121           - Added MenuOrigin property
8122
8123 2005-02-26  Peter Bartok  <pbartok@novell.com>
8124
8125         * XplatUIX11.cs:
8126           - Destroys the caret if a window that's being destroyed contains it
8127           - Ignores expose events coming from the X11 queue for windows that
8128             already are destroyed
8129           - Now uses the proper variable for handling DestroyNotify, before we
8130             marked the wrong window as destroyed
8131           - Improved/added some debug output
8132
8133 2005-02-26  Peter Bartok  <pbartok@novell.com>
8134
8135         * X11Keyboard.cs: Fixes to work on 64bit systems
8136
8137 2005-02-26  Peter Bartok  <pbartok@novell.com>
8138
8139         * Control.cs:
8140           - Now calling OnHandleDestroyed from DestroyHandle()
8141             instead of Dispose()
8142           - Removed bogus call to controls.Remove() from DestroyHandle()
8143
8144 2005-02-26  Peter Bartok  <pbartok@novell.com>
8145
8146         * Control.cs: Properly destroy child windows when our handle is
8147           destroyed
8148
8149 2005-02-25  Peter Bartok  <pbartok@novell.com>
8150
8151         * XplatUI.cs:
8152           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8153           - Alphabetized Static Methods and Subclasses
8154
8155         * XplatUIX11.cs:
8156           - Added XException class to allow custom handling of X11 exceptions
8157           - Created custom X11 error handler, tied into XException class
8158           - Added support for MONO_XEXCEPTIONS env var to allow the user
8159             to either throw an exception on X errors or continue running
8160             after displaying the error
8161           - Added handling of DestroyNotify message
8162           - Added handler for CreateNotify message (still disabled)
8163           - Improved (tried to at least) Where method to provide file and lineno
8164         * X11Structs.cs:
8165           - Added XErrorHandler delegate
8166           - Added XRequest enumeration (to suppor translation of errors)
8167
8168 2005-02-25  Jackson Harper  <jackson@ximian.com>
8169
8170         * PropertyManager.cs: Implement editing features
8171         * CurrencyManager.cs:
8172         * Binding.cs: First attempt at UpdateIsBinding
8173         * BindingManagerBase.cs: Call UpdateIsBinding before
8174         pushing/pulling data.
8175
8176 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8177
8178         * MenuAPI.cs: Respect disabled items
8179         * ThemeWin32Classic.cs
8180                 - Caches ImageAttributes creation for DrawImageDisabled
8181                 - Fixes vertical menu line drawing
8182                 - Draws disabled arrows in disable menu items
8183
8184 2005-02-24  Peter Bartok  <pbartok@novell.com>
8185
8186         * Hwnd.cs:
8187           - Added UserData property to allow associating arbitrary objects
8188             with the handle
8189           - Fixed leak; now removing Hwnd references from static windows array
8190         * XplatUIWin32.cs:
8191           - Fixed Graphics leak in PaintEventEnd
8192           - Removed usage of HandleData, switched over to Hwnd class
8193         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8194
8195 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8196
8197         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8198         * ScrollBar.cs: Fixes bug
8199         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8200          keyboard navigation enhancements
8201
8202 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8203
8204         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8205         * GroupBox.cs: Add control styles
8206         * Label.cs: Add control styles
8207         * UpDownBase.cs: Add control styles
8208         * ListBox.cs: Add control styles
8209         * XplatUIWin32.cs: Fixes wrong parameter order
8210
8211
8212 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8213
8214         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8215
8216 2005-02-23  Jackson Harper  <jackson@ximian.com>
8217
8218         * PropertyManager.cs: Implement property binding. This doesn't
8219         seem to work yet though as (I think) there are some bugs in
8220         System.ComponentModel.PropertyDescriptor.
8221         * BindingContext.cs: Use new PropertyManager constructor.
8222
8223 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8224
8225         * ProgressBar.cs: use clip region in ProgressBar
8226         * ThemeWin32Classic.cs: use clip region in ProgressBar
8227
8228 2004-02-22  Jackson Harper  <jackson@ximian.com>
8229
8230         * BindingsCollection.cs: Remove some debug code.
8231
8232 2005-02-22  Jackson Harper  <jackson@ximian.com>
8233
8234         * BindingContext.cs:
8235         * ControlBindingsCollection.cs:
8236         * CurrencyManager.cs:
8237         * Binding.cs:
8238         * BindingManagerBase.cs: Initial implementation
8239         * BindingsCollection.cs: Add an internal contains method that the
8240         BindingManagerBase uses to ensure bindings aren't added twice to
8241         the collection.
8242         * PropertyManager.cs: Stubbed out.
8243         * Control.cs:
8244         * ContainerControl.cs: Hook up databinding
8245         
8246 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8247
8248         * XplatUIOSX.cs:
8249           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8250           Fixed Invalidate/Update chain.
8251           Fixed tons of other minor bugs (this is almost a complete rewrite).
8252
8253 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8254
8255         * ComboBox.cs: do subcontrol creation when the control is created
8256
8257 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8258
8259         * Label.cs: fixes image drawing (image and imagelist)
8260         * ThemeWin32Classic.cs: cache brushes
8261         
8262 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8263
8264         * Form.cs: Move menu drawing code to Theme class
8265         * ComboBox.cs: Move ComboBox drawing code to Theme class
8266         * MenuItem.cs: Move menu drawing code to Theme class
8267         * MenuAPI.cs: Move menu drawing code to Theme class
8268         * ThemeWin32Classic.cs: New methods
8269         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8270         * ListBox.cs: Move Listbox drawing code to Theme class
8271         * Theme.cs: New methods
8272
8273 2005-02-20  Peter Bartok  <pbartok@novell.com>
8274
8275         * Control.cs:
8276           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8277             only process mnemonics on those)
8278           - Fixed event sequence for key handling; first calling
8279             ProcessKeyEventArgs now
8280         * TextBoxBase.cs:
8281           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8282             for processing non-character keys
8283           - Fixed WM_CHAR to generate proper event sequence before processing
8284         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8285           generation
8286
8287 2005-02-19  Peter Bartok  <pbartok@novell.com>
8288
8289         * UserControl.cs: Added TextChanged event; added attributes
8290         * SizeGrip.cs: Implemented resizing and optional display of grip
8291         * Form.cs: Fixed attribute
8292         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8293           Changed meaning of ScrollWindow bool argument; instead of the
8294           clear attribute (which will be true usually anyway), it gives the
8295           option of moving child controls as well.
8296         * XplatUIX11.cs:
8297           - Changed to match new ScrollWindow argument
8298           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8299             now handles the implicit parent window a WM puts around us
8300         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8301           to work)
8302         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8303         * TreeView.cs: Adjusted to new ScrollWindow arguments
8304
8305 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8306
8307         * Form.cs: Menu integration with non-client area
8308         * MenuItem.cs: Menu integration with non-client area
8309         * MenuAPI.cs: Menu integration with non-client area
8310
8311 2005-02-18  Peter Bartok  <pbartok@novell.com>
8312
8313         * MethodInvoker.cs: Added
8314         * MdiLayout.cs: Added
8315         * SendKeys.cs: Started implementation
8316         * ErrorIconAlignment.cs: Added
8317
8318 2005-02-18  Peter Bartok  <pbartok@novell.com>
8319
8320         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8321         * Form.cs: Added handling for Menu-related Non-client messages
8322
8323 2005-02-17  Peter Bartok  <pbartok@novell.com>
8324
8325         * UpDownBase.cs: Fixed typo, compilation errors
8326         * DomainUpDown.cs: Fixed attribute value
8327
8328 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8329
8330         * UpDownBase.cs: Attach entry events.
8331         Propagate events.
8332         Add ForeColor property, Focused, InterceptArrowKeys (interception
8333         does not work yet).
8334
8335 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8336
8337         * Form.cs:
8338                 - Redraw non client are on Setmenu
8339                 - Calc proper menu starting point
8340
8341 2005-02-17  Peter Bartok  <pbartok@novell.com>
8342
8343         * Application.cs: Fixed message_filter check
8344
8345 2005-02-17  Peter Bartok  <pbartok@novell.com>
8346
8347         * Application.cs: Now calls registered message filters
8348         * DockStyle.cs: Fixed attribute
8349         * Form.cs: Fixed attribute
8350         * Menu.cs: Fixed attribute
8351         * ToolTip.cs: Fixed attribute
8352         * TreeNode.cs: Added missing attributes and arranged in regions
8353         * PropertyGrid.cs: Fixed signatures
8354         * TreeNodeCollection.cs: Added attributes
8355         * Splitter.cs: Added missing attributes; arranged into regions
8356         * TabPage.cs: Added missing attributes; arranged into regions
8357         * TextBoxBase.cs: Added missing attributes
8358         * TextBox.cs: Added missing attributes
8359         * ArrangeDirection.cs: Added missing attributes
8360         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8361         * ToolBarButton.cs: Fixed attributes
8362         * AnchorStyles.cs: Fixed attribute
8363         * TrackBar.cs: Fixed attributes
8364         * TabControl.cs: Added missing attributes and arranged into regions
8365         * ToolBar.cs: Fixed attribute
8366         * StatusBar.cs: Fixed signature, organized into regions and added
8367           attributes
8368         * StatusBarPanel.cs: Fixed attributes
8369         * ContentsResizedEventArgs.cs: Implemented
8370         * ContentsResizedEventHandler.cs: Implemented
8371         * DateBoldEventArgs.cs: Implemented
8372         * DateBoldEventHandler.cs: Implemented
8373         * UpDownEventArgs.cs: Implemented
8374         * UpDownEventHandler.cs: Implemented
8375         
8376 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8377
8378         * Form.cs: first Menu NC refactoring
8379         * MenuAPI.cs: first Menu NC refactoring
8380         
8381 2005-02-16  Peter Bartok  <pbartok@novell.com>
8382
8383         * ImeMode.cs: Added missing attributes
8384         * Menu.cs: Fixed attribute
8385         * GroupBox.cs: Fixed attribute
8386         * Label.cs: Fixed attribute
8387         * ColorDialog.cs (RunDialog): Removed TODO attribute
8388         * ComboBox.cs: Fixed attributes
8389         * ListControl.cs: Added missing attributes
8390         * PropertyGrid.cs: Fixed attributes
8391         * Control.cs: Fixed attributes
8392         * ListViewItem.cs: Added TypeConverter attribute
8393         * NotifyIcon.cs: Fixed attributes
8394         * ListView.cs: Fixed attributes
8395         * ButtonBase.cs: Fixed attribute
8396         * ImageList.cs: Added missing attributes
8397         * ContainerControl.cs: Fixed signature
8398         * CheckedListBox.cs: Fixed attribute; added missing attributes
8399         * Panel.cs: Fixed attributes
8400         * PropertyTabChangedEventArgs.cs: Added missing attribute
8401         * PropertyValueChangedEventArgs.cs: Added missing attribute
8402         * Binding.cs: Fixed attribute
8403         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8404         * ListBox.cs: Fixed attribute; added missing attributes;
8405         * ScrollableControl.cs: Added missing attributes
8406         * PictureBox.cs: Added missing attributes; implemented missing property
8407         * DateTimePicker.cs: Added missing attributes
8408         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8409         * MonthCalendar.cs: Fixed attributes
8410         * StatusBarPanel.cs: Added missing attributes
8411         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8412
8413 2005-02-16  Peter Bartok  <pbartok@novell.com>
8414
8415         * TextBoxBase.cs: The previous method to enforce height yet remember
8416           the requested high was less than ideal, this is an attempt to do
8417           it better.
8418         * Control.cs: Added comment about possible problem
8419         * Copyright: Updated format
8420         * GridItemType.cs: Fixed swapped values
8421
8422 2005-02-15  Jackson Harper  <jackson@ximian.com>
8423
8424         * BaseCollection.cs: Use property so we never access an
8425         uninitialized list. Also initialize the list in the property.
8426
8427 2005-02-15  Peter Bartok  <pbartok@novell.com>
8428
8429         * GroupBox.cs (ProcessMnemonic): Implemented
8430         * Label.cs (ProcessMnemonic): Implemented
8431         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8432           hotkeys
8433
8434 2005-02-15  Peter Bartok  <pbartok@novell.com>
8435
8436         * RadioButton.cs (ProcessMnemonic): Implemented
8437         * CheckBox.cs (ProcessMnemonic): Implemented
8438         * Control.cs:
8439           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8440             handling
8441           - Added internal method to allow calling ProcessMnemonic from other
8442             controls
8443         * ContainerControl.cs:
8444           - Started support for handling validation chain handling
8445           - Implemented ProcessMnemonic support
8446           - Added Select() call to Active, to make sure the active control
8447             receives focus
8448         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8449           FormParent rewrite)
8450         * ThemeWin32Classic.cs:
8451           - DrawCheckBox(): Fixed stringformat to show hotkeys
8452           - DrawRadioButton(): Fixed stringformat to show hotkeys
8453         * CommonDialog.cs: Removed WndProc override, not needed
8454
8455 2005-02-14  Peter Bartok  <pbartok@novell.com>
8456
8457         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8458           missed those in the rewrite
8459
8460 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8461
8462         * NumericUpDown.cs (Increment, ToString): Add.
8463         (DecimalPlaces): implement.
8464         
8465         Add attributes.
8466         
8467         * UpDownBase.cs: Add the designer attributes.
8468
8469 2005-02-13  Peter Bartok  <pbartok@novell.com>
8470
8471         * Panel.cs: Removed border_style, now in Control
8472         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8473           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8474
8475 2005-02-13  Peter Bartok  <pbartok@novell.com>
8476
8477         * MouseButtons.cs: Added missing attributes
8478         * XplatUIStructs.cs: Added enumeration for title styles
8479         * LeftRightAlignment.cs: Added missing attributes
8480         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8481           it compatible with Graphics.FromHwnd()
8482         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8483         * Keys.cs: Added missing attributes
8484         * SelectionRange.cs: Added missing attributes
8485         * SelectionRangeConverter.cs: Added
8486         * XplatUI.cs:
8487           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8488             ReleaseMenuDC methods
8489           - Renamed ReleaseWindow to UngrabWindow
8490           - Added proper startup notice to allow version identification
8491         * Form.cs:
8492           - Added missing attributes
8493           - Removed FormParent concept
8494         * Label.cs: Removed border_style field, now in Control
8495         * RadioButton.cs: Now properly selects RadioButton when focus is
8496           received
8497         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8498         * Control.cs:
8499           - Added missing attributes
8500           - Added borderstyle handling
8501           - Removed FormParent concept support
8502           - Fixed calls to XplatUI to match changed APIs
8503           - Fixed bug that would case us to use disposed Graphics objects
8504           - Removed unneeded internal methods
8505           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8506           - SelectNextControl(): Fixed to properly check common parents
8507         * TextBoxBase.cs: Removed border_style field (now in Control)
8508         * MessageBox.cs:
8509           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8510             fixed calculations for form size
8511           - Added support for localized strings and icons
8512           - Improved form size calculations, added border
8513         * ListView.cs: Removed border_style field (now in Control)
8514         * X11Structs.cs: Moved several structs from X11 driver here
8515         * X11Keyboard.cs: Changed debug message
8516         * Application.cs: Removed FormParent concept support
8517         * CommonDialog.cs:
8518           - Resetting end_modal flag
8519           - Removed FormParent concept support
8520         * NativeWindow.cs: Removed FormParent concept support
8521         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8522           Client area and Non-Client whole window to allow support for WM_NC
8523           messages
8524         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8525           prevent using it until it supports Hwnd as per Geoff Norton's request
8526         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8527         * PictureBox.cs: Removed border_style field, now in Control
8528         * XplatUIWin32.cs: Added new driver methods
8529
8530 2005-02-12  Peter Bartok  <pbartok@novell.com>
8531
8532         * OpacityConverter.cs: Implemented
8533         * Hwnd.cs: Internal class to support drivers that need to emulate
8534           client area/non-client area window behaviour
8535
8536 2005-02-11  Peter Bartok  <pbartok@novell.com>
8537
8538         * KeysConverter.cs: Implemented
8539
8540 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8541
8542         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8543         * LinkLabel: Added missing attributes
8544         * MainMenu.cs: fixes ToString
8545         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8546         * ListBox.cs: fixes event position
8547         * TrackBar.cs: adds missing attributes and events
8548         
8549 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8550
8551         * MenuItem.cs: Use SystemInformation and bug fixes
8552         * MenuAPI.cs: Use SystemInformation and bug fixes
8553
8554 2005-02-09  Jackson Harper  <jackson@ximian.com>
8555
8556         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8557         their keystate otherwise things like VK_MENU get stuck "on".
8558
8559 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8560
8561         * ListBox.cs: Fixes AddRange bug
8562         
8563 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8564
8565         * ProgressBar.cs
8566                 - Add missing attributes
8567                 - Add missing method
8568                 
8569         * CheckedListBox.cs: Added missing attributes
8570                 - Add missing attributes
8571                 - Remove extra method
8572         
8573         * ComboBox.cs: Added missing attributes
8574         * VScrollBar.cs: Added missing attributes
8575         * ScrollBar.cs:  Added missing attributes
8576         * ListBox.cs: Fixes signature, add missing consts
8577         * LinkArea.cs:   Added missing attributes
8578         
8579
8580 2005-02-08  Peter Bartok  <pbartok@novell.com>
8581
8582         * Menu.cs: Added missing attributes
8583         * MainMenu.cs: Added missing attributes
8584         * GroupBox.cs: Added missing attributes
8585         * Label.cs: Added missing attributes
8586         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8587         * ColorDialog.cs:
8588           - Added Instance and Options properties
8589           - Added missing attributes
8590         * Cursor.cs: Made Serializable
8591         * NotifyIcon: Added missing attributes
8592         * MenuItem.cs: Added missing attributes
8593         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8594         * Panel.cs: Added Missing attributes
8595         * MonthCalendar.cs: Fixed CreateParams
8596
8597 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8598         
8599         * LinkLabel.cs:
8600                 - Fixes signature
8601                 - Fixes issues with links
8602                 - Adds the class attributes
8603
8604 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8605         
8606         * ComboBox.cs:
8607                 - Fixes button when no items available in dropdown
8608                 - Fixes repainting problems
8609                 - Adds the class attributes
8610                 
8611 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8612
8613         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8614         the current theme.  Cache these on startup.
8615
8616 2005-02-07  Jackson Harper  <jackson@ximian.com>
8617
8618         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8619         the scrollbar buttons when they are depressed.
8620
8621 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8622
8623         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8624         Get the display size from the main displayid.  We currently dont
8625         support multiple display configurations.
8626
8627 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8628
8629         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8630
8631 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8632
8633         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8634
8635 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8636
8637         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8638
8639 2005-02-04  Jackson Harper  <jackson@ximian.com>
8640
8641         * ThemeWin32Classic.cs: Respect the clipping rect when
8642         drawing. Only fill the intersection of clips and rects so there
8643         isn't a lot of large fills.
8644         * ScrollBar.cs: Pass the correct clipping rect to the theme
8645         engine. Remove some debug code.
8646
8647 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
8648         
8649         * DateTimePicker.cs:
8650                 - Fixed crash on DateTime.Parse, use Constructor instead
8651
8652 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8653         
8654         * MenuItem.cs:
8655         * MenuAPI.cs:
8656                 - Owner draw support (MeasureItem and DrawItem)
8657
8658 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8659         
8660         *  Menu.cs:
8661                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8662                 - Fixes MenuItems.Add range
8663         * MenuItem.cs:
8664                 - MergeMenu and Clone and CloneMenu functions
8665
8666 2005-02-03  Jackson Harper  <jackson@ximian.com>
8667
8668         * ScrollBar.cs: Make abstract
8669         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8670         is abstract.
8671
8672 2005-02-03  Jackson Harper  <jackson@ximian.com>
8673
8674         * ScrollBar.cs: First part of my scrollbar fixups. This removes
8675         all the unneeded refreshes and uses invalidates with properly
8676         computed rects.
8677
8678 2005-02-03  Peter Bartok  <pbartok@novell.com>
8679
8680         * ComponentModel.cs: Added
8681         * IDataGridEditingService.cs: Added
8682         * Timer.cs: Added missing attributes
8683         * ToolTip.cs: Added missing attributes
8684
8685 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8686
8687         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8688
8689 2005-02-03  Peter Bartok  <pbartok@novell.com>
8690
8691         * ListBox.cs: Added missing attributes
8692
8693 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
8694         
8695         * ListBox.cs:
8696                 - Fixes font height after font change
8697                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8698                 
8699 2005-02-02  Peter Bartok  <pbartok@novell.com>
8700
8701         * HandleData.cs: Introduced static methods to allow class
8702           to be more self-contained and track it's own HandleData objects
8703         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8704           HandleData to use new static methods
8705
8706 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
8707
8708         * Combobox.cs:
8709                 - Fixes default size and PreferredHeight
8710                 - Missing events
8711                 - ObjectCollection.Insert implementation
8712                 
8713         * ListControl.cs
8714                 - Fixes signature
8715         * ListBox.cs:
8716                 - Several fixes
8717                 - ObjectCollection.Insert implementation
8718                 - No selection after clean
8719                 - Small fixes
8720
8721 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8722
8723         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8724
8725 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
8726
8727         * Combobox.cs:
8728                 - Caches ItemHeight calculation for OwnerDrawVariable
8729                 - Handles dropdown properly
8730                 - Fixes several minor bugs
8731
8732 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8733
8734         * ListBox.cs:
8735                 - Fixes 71946 and 71950
8736                 - Fixes changing Multicolumn on the fly
8737                 - Fixes keyboard navigation on Multicolumn listboxes
8738
8739 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8740         
8741         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8742         crash reporter log.
8743
8744 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8745
8746         * XplatUIOSX.cs: Allow applications to actually exit.
8747
8748 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8749
8750         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
8751         their parent at creation time rather than lazily later.  Fixes a major
8752         regression we were experiencing.
8753
8754 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8755
8756         * ThemeWin32Classic.cs: more date time picker painting fixes
8757         * DateTimePicker.cs: more monthcalendar drop down fixes
8758         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8759
8760 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8761
8762         * ScrollBar.cs:
8763                 - When moving the thumb going outside the control should stop the moving
8764                 - Adds the firing of missing events
8765                 - Fixes no button show if Size is not specified
8766                 - End / Home keys for keyboard navigation
8767
8768 2005-01-30  Peter Bartok  <pbartok@novell.com>
8769
8770         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8771           sanity check to prevent theoretical loop
8772         * XplatUIWin32.cs (SetVisible): Removed debug output
8773         * XplatUIX11.cs (SystrayChange): Added sanity check
8774         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8775         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8776           behaviour, valid until the X11 client window rewrite is done
8777         * TextBox.cs (ctor): Setting proper default foreground and background
8778           colors
8779
8780 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
8781
8782         * Theme: Added DrawDateTimePicker to interface
8783         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8784         * DateTimePicker.cs: Created (still needs keys and painting code)
8785         * DateTimePickerFormat.cs: added
8786         * MonthCalendar.cs: fixed CreateParams for popup window mode
8787           
8788 2005-01-29  Peter Bartok  <pbartok@novell.com>
8789
8790         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8791           this should also the calculations for ligher/darker
8792         * Theme.cs: Fixed defaults for ScrollBar widths/heights
8793
8794 2005-01-29  Peter Bartok  <pbartok@novell.com>
8795
8796         * ArrangeDirection.cs: Added
8797         * ArrangeStartingPositon.cs: Added
8798         * SystemInformation.cs: Implemented
8799         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8800           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8801           used by SystemInformation class
8802         * X11Strucs.cs: Added XSizeHints structure
8803         * MenuAPI.cs:
8804           - Fixed CreateParams to make sure the menu window is always visible
8805           - TrackPopupMenu: Added check to make sure we don't draw the
8806             menu offscreen
8807
8808 2005-01-29  Peter Bartok  <pbartok@novell.com>
8809
8810         * HandleData.cs: Added method for altering invalid area
8811         * TextBoxBase.cs: Implemented TextLength
8812
8813 2005-01-28  Peter Bartok  <pbartok@novell.com>
8814
8815         * XplatUIX11.cs: Improvement over last patch, not sending
8816           the WM_PAINT directly anymore, instead we scroll any pending
8817           exposed areas and let the system pick out the WM_PAINT later
8818
8819 2005-01-28  Peter Bartok  <pbartok@novell.com>
8820
8821         * SWF.csproj: Deleted, no longer used. Instead,
8822           Managed.Windows.Forms/SWF.csproj should be used
8823         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8824           directly, to avoid a potential race condition with the next
8825           scroll
8826
8827 2005-01-28  Peter Bartok  <pbartok@novell.com>
8828
8829         * XplatUI.cs: Made class internal
8830
8831 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
8832
8833         * CheckedListBox.cs:
8834                 - Draw focus
8835                 - Fixed Drawing
8836                 - Missing methods and events
8837
8838 2005-01-27  Peter Bartok  <pbartok@novell.com>
8839
8840         * Application.cs (Run): Don't use form if we don't have one
8841
8842 2005-01-27  Peter Bartok  <pbartok@novell.com>
8843
8844         * TextBoxBase.cs (get_Lines): Fixed index off by one error
8845
8846 2005-01-27  Peter Bartok  <pbartok@novell.com>
8847
8848         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8849         * GridItem.cs: Added; Patch by Jonathan S. Chambers
8850         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8851         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8852         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8853         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8854         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8855         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8856         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8857         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8858         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8859         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8860
8861 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8862
8863         * Combobox.cs:
8864                 - Draw focus on Simple Combobox
8865                 - Fixes drawing issues
8866                 - fixes 71834
8867
8868 2005-01-27  Peter Bartok  <pbartok@novell.com>
8869
8870         * Form.cs:
8871           - Place window in default location, instead of hardcoded 0/0
8872           - Send initial LocationChanged event
8873         * Control.cs:
8874           - UpdateBounds after creation to find out where the WM placed us
8875           - Make sure that if the ParentForm changes location the Form
8876             is notified
8877         * XplatUIX11.cs: XGetGeometry will not return the coords relative
8878             to the root, but to whatever the WM placed around us.
8879             Translate to root coordinates before returning toplevel
8880             coordinates
8881         * XplatUIWin32.cs: Removed debug output
8882         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
8883           flag to GetWindowPos, to allow translation of coordinates on X11
8884
8885 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8886
8887         * ListBox.cs: connect LostFocus Event
8888
8889 2005-01-27  Peter Bartok  <pbartok@novell.com>
8890
8891         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8892           XplatUIX11.cs: Extended the Systray API
8893         * Form.cs: Removed debug output
8894         * Application.cs: Fixed focus assignment, always need to call
8895           XplatUI.Activate() since Form.Activate() has rules that may
8896           prevent activation
8897         * NotifyIcon.cs: Should be complete now
8898         * ToolTip.cs: Worked around possible timer bug
8899
8900 2005-01-27  Jackson Harper  <jackson@ximian.com>
8901
8902         * TabControl.cs:
8903         - Only invalidate the effected tabs when the
8904         selected index changes. This reduces drawing and gets rid of some
8905         flicker.
8906         - Only refresh if the tabs need to be shifted, otherwise only
8907         invalidate the slider button.
8908         - On windows the tabs are not filled to right if the slider is
8909         visible.
8910         
8911 2005-01-27  Jackson Harper  <jackson@ximian.com>
8912
8913         * TabControl.cs: Only refresh on mouseup if we are showing the
8914         slider. Also only invalidate the button whose state has changed.
8915
8916 2005-01-26  Peter Bartok  <pbartok@novell.com>
8917
8918         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
8919         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
8920           and SystrayRemove() methods
8921         * XplatUIOSX.cs: Stubbed Systray methods
8922         * XplatUIX11.cs:
8923           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
8924             methods
8925           - Fixed broken XChangeProperty calls (marshalling messed up things)
8926         * X11Structs.cs: Added enums and structs required for Size hinting
8927         * NotifyIcon.cs: Added & implemented
8928
8929 2005-01-26  Jackson Harper  <jackson@ximian.com>
8930
8931         * TabControl.cs: Space vertically layed out tabs properly.
8932
8933 2005-01-26  Peter Bartok  <pbartok@novell.com>
8934
8935         * Form.cs (CreateClientParams): Always set the location to 0,0
8936           since we're a child window.
8937
8938         * Control.cs (SetVisibleCore): Always explicitly setting the location
8939           of a toplevel window, apparently X11 doesn't like to move windows
8940           while they're not mapped.
8941
8942 2005-01-26  Jackson Harper  <jackson@ximian.com>
8943
8944         * TabControl.cs: Implement FillToRight size mode with vertically
8945         rendered tabs.
8946
8947 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8948
8949         * ControlPaint.cs, ThemeWin32Classic.cs
8950                 - Fixes DrawFocusRectangle
8951
8952 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8953
8954         * MenuAPI.cs:
8955                 - MenuBar tracking only starts when item is first clicked
8956                 - Fixes menu hidding for multiple subitems
8957                 - Unselect item in MenuBar when item Executed
8958                 - Fixes bug 71495
8959
8960 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
8961
8962         * ListControl.cs:
8963                 - IsInputKey for ListBox
8964         * ListBox.cs:
8965                 - Focus item
8966                 - Shift and Control item selection
8967                 - Implement SelectionMode.MultiExtended
8968                 - Fixes RightToLeft
8969         * ComboBox.cs:
8970                 - IsInputKey implemented
8971                 - Do not generate OnTextChangedEdit on internal txt changes
8972                 
8973 2005-01-23  Peter Bartok  <pbartok@novell.com>
8974
8975         * AccessibleObject.cs: Partially implemented Select()
8976         * MonthCalendar.cs: Added missing attributes and events
8977         * Form.cs: Fixed CreateParams behaviour, now controls derived from
8978           form can properly override CreateParams.
8979         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8980           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
8981           Control performs Invalidate & Update
8982         * NativeWindow (CreateHandle): Added special handling for Form
8983           and Form.FormParent classes to allow overriding of From.CreateParams
8984         * Control.cs:
8985           - ControlNativeWindow: Renamed 'control' variable to more intuitive
8986             name 'owner'
8987           - ControlNativeWindow: Added Owner property
8988           - Removed usage of Refresh() on property changes, changed into
8989             Invalidate(), we need to wait until the queue is processed for
8990             updates, direct calls might cause problems if not all vars for
8991             Paint are initialized
8992           - Added call to UpdateStyles() when creating the window, to set any
8993             styles that CreateWindow might have ignored.
8994           - Added support for Form CreateParent overrides to UpdateStyles()
8995         * MessageBox.cs: Removed no longer needed FormParent override stuff,
8996           CreateParams are now properly overridable
8997         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
8998           CreateParams are now properly overridable
8999
9000 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9001
9002         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9003         OnTextBoxChanged.
9004
9005         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9006         recursive invocation that I have not figured out yet.
9007
9008         Reset the timer when not using (it was accumulating).
9009
9010
9011         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9012         user has made changes that require validation.
9013
9014         Reset changing to avoid loops.
9015
9016 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9017
9018         * NumericUpDown.cs: Display value at startup.
9019
9020         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9021         ValidateEditText.
9022
9023         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9024         filled in.  Added some basic parsing of text.
9025
9026         Still missing the OnXXX method overrides, and figuring out the
9027         events that must be emitted.
9028
9029         * UpDownBase.cs: Handle UserEdit on the Text property.
9030         
9031 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9032
9033         * ComboBox.cs:
9034           - Fixes IntegralHeight
9035           - ToString method
9036
9037 2005-01-21  Jackson Harper  <jackson@ximian.com>
9038
9039         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9040         is set so that the page visibility is updated and the tabs are
9041         sized correctly.
9042
9043 2005-01-21  Jackson Harper  <jackson@ximian.com>
9044
9045         * TabControl.cs: Use cliping rectangle for blitting. Give the
9046         theme the clipping rect so we can do clipping while
9047         drawing. Remove some debug code.
9048
9049 2005-01-21  Jackson Harper  <jackson@ximian.com>
9050
9051         * TabPage.cs: Add a new method so tab pages can force the tab
9052         control to recalculate the tab page sizes.
9053         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9054         sizes.
9055
9056 2005-01-20  Jackson Harper  <jackson@ximian.com>
9057
9058         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9059
9060 2005-01-20  Jackson Harper  <jackson@ximian.com>
9061
9062         * TreeView.cs: Set the bounds for nodes properly. They were
9063         getting screwed up when checkboxes were not enabled, but images
9064         were.
9065
9066 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9067
9068         * ListBox.cs:
9069                 - Owner draw support
9070                 - Fixes
9071                 
9072 2005-01-20  Jackson Harper  <jackson@ximian.com>
9073
9074         * XplatUIStructs.cs: More misc keys
9075         * X11Keyboard.cs: Ignore some control keys.
9076
9077 2005-01-20  Jackson Harper  <jackson@ximian.com>
9078
9079         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9080         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9081
9082 2005-01-19  Peter Bartok  <pbartok@novell.com>
9083
9084         * Control.cs: Un-selecting the control when it is loosing focus
9085
9086 2005-01-19  Jackson Harper  <jackson@ximian.com>
9087
9088         * TreeView.cs: Hook up to the text controls leave event so we can
9089         end editing when the users clicks outside the text box.
9090         
9091 2005-01-19  Jackson Harper  <jackson@ximian.com>
9092
9093         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9094         get set in the conversion array.
9095
9096 2005-01-19  Peter Bartok  <pbartok@novell.com>
9097
9098         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9099           focus is properly set
9100         * Button.cs:
9101           - Added missing attributes
9102           - removed styles, those are already set in the base class
9103         * ButtonBase.cs:
9104           - Added missing attributes
9105           - Added clip window styles
9106         * CheckBox.cs: Added missing attributes
9107         * CommonDialog.cs:
9108           - FormParentWindow.CreateParams: Added required clip styles
9109         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9110           also filters modifier keys
9111         * MessageBox.cs:
9112           - Added assignment of Accept and Cancel button to enable Enter
9113             and Esc keys in MessageBox dialogs
9114           - FormParentWindow.CreateParams: Added required clip styles
9115         * RadioButton.cs: Added missing attributes
9116         * TextControl.cs: No longer draws selection if control does not
9117           have focus
9118         * TextBoxBase.cs:
9119           - Now draws simple rectangle around test area to make it obvious
9120             there's a control. This is a hack until we properly support borders
9121           - A few simple fixes to support selections better, now erases selected
9122             text when typing, and resets selection when using movement keys
9123
9124 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9125
9126         * UpDownBase.cs: Added some new properties.
9127
9128         * DomainUpDown.cs: Implement a lot to get my test working.
9129
9130 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9131
9132         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9133
9134 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9135
9136         * OSXStructs (WindowAttributes): Fixed csc complaints
9137
9138 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9139
9140         * XplayUIOSX.cs:
9141           OSXStructs.cs: Initial refactor to move enums and consts into
9142           OSXStructs and use them in the driver for greater readability.
9143
9144 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9145
9146         * XplatUIOSX.cs: Initial support for Standard Cursors.
9147         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9148
9149 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9150
9151         * ComboBox.cs: ability to change style when the ctrl is already
9152         created, missing methods and events, bug fixes, signature fixes
9153
9154 2005-01-19  Peter Bartok  <pbartok@novell.com>
9155
9156         * Cursors.cs (ctor): Added ctor to fix signature
9157
9158 2005-01-18  Peter Bartok  <pbartok@novell.com>
9159
9160         * Button.cs: Implemented DoubleClick event
9161         * ButtonBase.cs:
9162           - Fixed keyboard handling to behave like MS, where the press of
9163             Spacebar is equivalent to a mousedown, and the key release is
9164             equivalent to mouseup. Now a spacebar push will give the same
9165             visual feedback like a mouse click.
9166           - Added missing attributes
9167           - Added ImeModeChanged event
9168           - Added support for generating DoubleClick event for derived classes
9169         * CheckBox.cs:
9170           - Implemented DoubleClick event
9171           - Added missing attributes
9172         * CommonDialog.cs: Added missing attribute
9173         * ContextMenu.cs: Added missing attributes
9174         * RadioButton.cs:
9175           - AutoChecked buttons do not allow to be unselected when clicked
9176             (otherwise we might end up with no selected buttons in a group)
9177           - Added missing attributes
9178           - Implemented DoubleClickEvent
9179         * ThreadExceptionDialog.cs: Enabled TextBox code
9180
9181 2005-01-18  Peter Bartok  <pbartok@novell.com>
9182
9183         * Form.cs: Removed debug output
9184         * Button.cs: Added support for DoubleClick method
9185
9186 2005-01-18  Peter Bartok  <pbartok@novell.com>
9187
9188         * Form.cs:
9189           - Added method to parent window that allows triggering size
9190             calculations when a menu is added/removed
9191           - set_Menu: Cleaned up mess from early days of Form and Control,
9192             now properly triggers a recalc when a menu is added/removed
9193           - Added case to select form itself as focused form if no child
9194             controls exist
9195           - Added PerformLayout call when showing dialog, to ensure properly
9196             placed controls
9197         * Control.cs:
9198           - Select(): Made internal so Form can access it
9199           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9200             status
9201         * Application.cs (Run): Removed hack and calls PerformLayout instead
9202           to trigger calculation when Form becomes visible
9203
9204 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9205
9206         * ComboBox.cs: fixes for ownerdraw
9207
9208 2005-01-18  Peter Bartok  <pbartok@novell.com>
9209
9210         * TextControl.cs:
9211           - Sentinel is no longer static, each Document gets it's own, this
9212             avoids locking or alternatively overwrite problems when more
9213             than one text control is used simultaneously.
9214           - Switched to use Hilight and HilightText brushes for text selection
9215
9216         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9217
9218 2005-01-18  Peter Bartok  <pbartok@novell.com>
9219
9220         * Control.cs:
9221           - Hooked up the following events:
9222                 o ControlAdded
9223                 o ControlRemoved
9224                 o HandleDestroyed
9225                 o ImeModeChanged
9226                 o ParentChanged
9227                 o TabStopChanged
9228                 o Invalidated
9229                 o SystemColorsChanged
9230                 o ParentFontChanged
9231                 o Move
9232           - Removed debug output
9233           - Added a call to the current theme's ResetDefaults when a color change
9234             is detected
9235         * Form.cs: Now setting the proper ImeMode
9236         * Theme.cs: Defined a method to force recreation of cached resources
9237           and rereading of system defaults (ResetDefaults())
9238         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9239
9240 2005-01-17  Peter Bartok  <pbartok@novell.com>
9241
9242         * Control.cs: Added missing attributes
9243
9244 2005-01-17  Jackson Harper  <jackson@ximian.com>
9245
9246         * TreeNode.cs: Implement editing. Add missing properties selected
9247         and visible.
9248         * TreeView.cs: Implement node editing. Also some fixes to use
9249         Invalidate (invalid area) instead of Refresh when selecting.
9250
9251 2005-01-17  Peter Bartok  <pbartok@novell.com>
9252
9253         * Control.cs:
9254           - Implemented InvokeGotFocus() method
9255           - Implemented InvokeLostFocus() method
9256           - Implemented InvokePaint() method
9257           - Implemented InvokePaintBackground() method
9258           - Implemented InvokeClick() method
9259           - Implemented FindForm() method
9260           - Implemented RectangleToClient() method
9261           - Implemented ClientToRectangle() method
9262           - Implemented ResetBackColor() method
9263           - Implemented ResetCursor() method
9264           - Implemented ResetFont() method
9265           - Implemented ResteForeColor() method
9266           - Implemented ResetImeMode() method
9267           - Implemented ResetLeftToRight() method
9268           - Implemented ResetText() method
9269           - Implemented Scale() methods
9270           - Implemented ScaleCore() method
9271           - Implemented Update() method
9272           - Removed unused variables
9273           - Stubbed AccessibilityNotifyClients and
9274             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9275             with those yet)
9276           - Now setting proper default for RightToLeft property
9277           - Fixed bug in SetClientSizeCore that would cause windows to get
9278             really big
9279           - Now sending Click/DoubleClick events
9280           - Now selecting controls when left mouse button is clicked on
9281             selectable control
9282         * AccessibleEvents.cs: Added
9283         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9284         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9285         * XplatUIWin32.cs: Implemented UpdateWindow() method
9286         * XplatUIX11.cs: Implemented UpdateWindow() method
9287         * Form.cs: Removed stray semicolon causing CS0162 warning
9288         * ThemeWin32Classic.cs: Fixed unused variable warnings
9289         * ScrollableControl.cs: Now calls base method for ScaleCore
9290         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9291           style to avoid interference with internal click handler (which is
9292           different than standard Control click handling)
9293         * RadioButton.cs:
9294           - Now unchecks all sibling radio buttons when control is
9295             selected (Fixes #68756)
9296           - Removed internal tabstop variable, using the one inherited from
9297             Control
9298
9299 2005-01-17  Jackson Harper  <jackson@ximian.com>
9300
9301         * NavigateEventArgs.cs: Fix base type.
9302         * LinkLabel.cs: Sig fix
9303         
9304 2005-01-17  Jackson Harper  <jackson@ximian.com>
9305
9306         * TreeView.cs: Only invalidate the effected nodes bounds when
9307         selecting nodes.
9308
9309 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9310
9311         * XplatUIWin32.cs: fixes Win32 marshaling
9312         * XplatUIX11.cs: fixes method signature
9313
9314 2005-01-17  Peter Bartok  <pbartok@novell.com>
9315
9316         * XplatUIX11.cs: Clean up resources when we no longer need them
9317
9318 2005-01-17  Peter Bartok  <pbartok@novell.com>
9319
9320         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9321           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9322           and DestroyCursor() methods.
9323         * Cursor.cs: Partially implemented, now supports standard cursors;
9324           still contains some debug code
9325         * Cursors.cs: Implemented class
9326         * Control.cs:
9327           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9328             appropriate cursor
9329           - Implemented Cursor property
9330           - Replaced break; with return; more straightforwar and possibly
9331             faster
9332           - Now properly setting the result for WM_HELP
9333         * X11Structs.cs: Added CursorFontShape enum
9334         * XplatUIStructs.cs:
9335           - Added StdCursor enum (to support DefineStdCursor() method)
9336           - Added HitTest enum (to support sending WM_SETCURSOR message)
9337         * XplatUIX11.cs:
9338           - Now sends the WM_SETCURSOR message
9339           - Implemented new cursor methods
9340         * XplatUIOSX.cs: Stubbed new cursor methods
9341         * XplatUIWin32.cs:
9342           - Implemented new cursor methods
9343           - Added GetSystemMetrics function and associated enumeration
9344
9345 2005-01-15  Peter Bartok  <pbartok@novell.com>
9346
9347         * Control.cs:
9348           - WndProc(): Now handles EnableNotifyMessage
9349           - SelectNextControl(): Fixed bug where if no child or sibling
9350             controls exist we looped endlessly
9351
9352 2005-01-14  Jackson Harper  <jackson@ximian.com>
9353
9354         * TreeView.cs: Recalculate the tab pages when a new one is added
9355         so that the proper bounding rects are created.
9356
9357 2005-01-14  Jackson Harper  <jackson@ximian.com>
9358
9359         * TreeView.cs: Draw a gray box instead of a grip in the lower
9360         right hand corner when there are both horizontal and vertical
9361         scroll bars.
9362
9363 2005-01-14  Jackson Harper  <jackson@ximian.com>
9364
9365         * Control.cs: When erasing backgrounds use FromHwnd instead of
9366         FromHdc when there is a NULL wparam. This occurs on the X driver.
9367         * XplatUIX11.cs: Set the wparam to NULL.
9368
9369 2005-01-13  Jackson Harper  <jackson@ximian.com>
9370
9371         * PictureBox.cs: Implement missing methods (except ToString, need
9372         to test that on windows) and events. When visibility is changed we
9373         need to redraw the image because the buffers are killed. When size
9374         is changed refresh if the sizemode needs it.
9375
9376 2005-01-13  Peter Bartok  <pbartok@novell.com>
9377
9378         * Control.cs (SelectNextControl): Was using wrong method to select
9379           a control
9380
9381 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9382
9383         * ComboBox.cs: fixes dropstyle
9384
9385 2005-01-13  Peter Bartok  <pbartok@novell.com>
9386
9387         * Form.cs:
9388           - Implemented Select() override
9389           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9390           - Now sets keyboard focus on startup
9391         * Control.cs (SelectNextControl): Now properly handles directed=true
9392         * TextBoxBase.cs:
9393           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9394           - Added (really bad) focus rectangle (mostly for testing)
9395         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9396           to enforce redraw on focus changes
9397         * ContainerControl.cs:
9398           - Fixed detection of Shift-Tab key presses
9399           - Fixed traversal with arrow keys
9400         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9401           gonna keep this or if it's complete yet
9402         
9403 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9404
9405         * ComboBox.cs: missing properties, fixes
9406
9407 2005-01-13  Peter Bartok  <pbartok@novell.com>
9408
9409         * Panel.cs (ctor): Setting Selectable window style to off
9410         * Splitter.cs (ctor): Setting Selectable window style to off
9411         * GroupBox.cs (ctor): Setting Selectable window style to off
9412         * Label.cs (ctor): Setting Selectable window style to off
9413
9414 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9415
9416         * UpDownBase.cs (InitTimer): If the timer has been already
9417         created, enable it.
9418
9419         Use a TextBox instead of a Label.
9420
9421 2005-01-12  Jackson Harper  <jackson@ximian.com>
9422
9423         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9424         draw the connecting node lines (when ShowLines is true).
9425         * TreeNode.cs: The nodes index can now be updated. This is used
9426         when a node collection is sorted.
9427         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9428         insert or an existing unsorted node collection can be sorted.
9429         
9430 2005-01-12  Peter Bartok  <pbartok@novell.com>
9431
9432         * ContainerControl.cs: Implemented ProcessDialogKeys()
9433
9434 2005-01-12  Peter Bartok  <pbartok@novell.com>
9435
9436         * Control.cs:
9437           - Implemented SelectNextControl() method
9438           - Several focus related bug fixes
9439           - Fixed Docking calculations to match MS documentation and
9440             behaviour
9441
9442 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9443
9444         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9445         bug fixes
9446
9447 2005-01-12  Peter Bartok  <pbartok@novell.com>
9448
9449         * Control.cs:
9450           - Fixed broken Contains() method
9451           - Implemented GetNextControl() method. Finally. This is the pre-
9452             requisite for focus handling.
9453
9454 2005-01-12  Peter Bartok  <pbartok@novell.com>
9455
9456         * OSXStrucs.cs: Added
9457
9458 2005-01-12  Peter Bartok  <pbartok@novell.com>
9459
9460         * XplatUIWin32.cs:
9461           - Removed PeekMessageFlags
9462           - Implemented SetWindowStyle() method
9463         * XplatUIStructs.cs: Added PeekMessageFlags
9464         * X11Structs: Added missing border_width field to XWindowChanges struct
9465         * XplatUIX11.cs:
9466           - PeekMessage: Now throws exception if flags which are not yet
9467             supported are passed
9468           - Implemented SetWindowStyle() method
9469           - Fixed SetZOrder to handle AfterHwnd properly
9470         * XplatUI.cs: Added SetWindowStyle() method
9471         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9472         * Control.cs:
9473           - Implemented UpdateStyles() method
9474           - Implemented UpdateZOrder() method
9475         * XplatUIOSX.cs: Added SetWindowStyle() stub
9476
9477 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9478
9479         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9480         button mouse).
9481
9482
9483 2005-01-11  Jackson Harper  <jackson@ximian.com>
9484
9485         * TreeView.cs: Still need to draw lines to siblings even if out of
9486         the current node is out of the clip.
9487
9488 2005-01-11  Jackson Harper  <jackson@ximian.com>
9489
9490         * TreeView.cs: When setting the hbar/vbar/grip position use
9491         SetBounds so that perform layout is only called once. Also suspend
9492         and resume layout so layout is only done once for all controls.
9493         - Removed some debug fluff
9494         * SizeGrip.cs: Call base implmentation in overriding methods.
9495         - When visibility is changed the drawing buffers are killed so we
9496         need to redraw.
9497
9498 2005-01-11  Jackson Harper  <jackson@ximian.com>
9499
9500         * TreeView.cs: Calculate the open node count while drawing. This
9501         saves us an entire tree traversal for every paint operation. Use
9502         a member var for the open node count so less vars are passed around.
9503
9504 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9505
9506         * MonthCalendar.cs:
9507         - fixed selection to use mousemove, not mouse polling on timer
9508         * ThemeWin32Classic.cs
9509         - removed redundant unused variable "no_more_content"
9510         
9511 2005-01-11  Peter Bartok  <pbartok@novell.com>
9512
9513         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9514           are pending, so it now calls PeekMessage instead of GetMessage;
9515           implemented a incomplete version of PeekMessage
9516         
9517 2005-01-11  Peter Bartok  <pbartok@novell.com>
9518
9519         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9520           I18n issues
9521         * TextBoxBase.cs: Added sending of TextChanged event
9522
9523 2005-01-10  Jackson Harper  <jackson@ximian.com>
9524
9525         * TreeView.cs: Try not to draw outside the clipping rectangle on
9526         each node element.
9527
9528 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9529
9530         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9531
9532 2005-01-10  Jackson Harper  <jackson@ximian.com>
9533
9534         * TreeView.cs:
9535         - Implement fast scrolling. Now only the newly
9536         exposed nodes are drawn and the old image is moved using the
9537         XplatUI::ScrollWindow method.
9538         - Factor in height of nodes when calculating whether or not the
9539         node is in the clipping rect.
9540
9541 2005-01-10  Jackson Harper  <jackson@ximian.com>
9542
9543         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9544
9545 2005-01-10  Peter Bartok  <pbartok@novell.com>
9546
9547         * Application.cs: Added temporary hack to resolve all our resize
9548           required issues on startup. This will get fixed properly at
9549           some point in the future
9550
9551 2005-01-10  Jackson Harper  <jackson@ximian.com>
9552
9553         * SizeGrip.cs: New internal class that is used as a sizing
9554         grip control...hence the name.
9555
9556 2005-01-10  Peter Bartok  <pbartok@novell.com>
9557
9558         * Control.cs: Implemented proper TabIndex handling, now assigning
9559           a tabindex when a control is added to a container
9560         * GroupBox.cs (ctor): Now sets the Container style bit, required
9561           for Control.GetNextControl()
9562
9563 2005-01-09  Jackson Harper  <jackson@ximian.com>
9564
9565         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9566
9567 2005-01-09  Peter Bartok <pbartok@novell.com>
9568
9569         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9570           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9571           an overload for ScrollWindow to allow only scrolling a rectangle
9572
9573 2005-01-09  Peter Bartok <pbartok@novell.com>
9574
9575         * Form.cs:
9576           - Implemented SetDesktopBounds method
9577           - Implemented SetDesktopLocation method
9578
9579 2005-01-08  Jackson Harper  <jackson@ximian.com>
9580
9581         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9582         the node count has changed, this removes to VScroll::Refresh calls
9583         when drawing.
9584
9585 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9586
9587         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9588
9589 2005-01-07  Jackson Harper  <jackson@ximian.com>
9590
9591         * TreeNode.cs: Just update the single node when it is
9592         checked. Don't refresh after toggling, the Expand/Collapse already
9593         handles this.
9594         * TreeView.cs: Respect clipping a little more when drawing. Try
9595         not to redraw things that don't need to be redrawn. Just hide the
9596         scrollbars when they are no longer needed instead of removing
9597         them, so they don't have to be created again and again.
9598         
9599 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9600
9601         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9602         coordinates to window space to place the caret properly, FIXED.
9603         Implement GetWindowState & SetWindowState
9604
9605 2005-01-06  Peter Bartok <pbartok@novell.com>
9606
9607         * Form.cs:
9608           - Implemented ClientSize property
9609           - Implemented DesktopBounds property
9610           - Implemented DesktopLocation property
9611           - Implemented IsRestrictedWindow property
9612           - Implemented Size property
9613           - Implemented TopLevel property
9614           - Implemented FormWindowState property
9615         * Control.cs:
9616           - Implemented GetTopLevel() method
9617           - Implemented SetTopLevel() method
9618         * X11Structs.cs (Atom):
9619           - Added AnyPropertyType definition
9620           - Added MapState definiton and updated XWindowAttribute struct
9621         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9622         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9623         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9624         * XplatUIWin32.cs:
9625           - Implemented GetWindowState() and SetWindowState() methods
9626           - Fixed Win32GetWindowLong return type
9627         * XplatUIX11.cs:
9628           - Introduced central function for sending NET_WM messages
9629           - Implemented GetWindowState() and SetWindowState() methods
9630         * TextBoxBase.cs (set_Lines):
9631           - Now uses Foreground color for text added via Text property (Duh!)
9632           - Added code to remember programmatically requested size (fixes
9633             behaviour when Multiline is set after Size)
9634           - Added AutoSize logic
9635
9636 2005-01-06  Jackson Harper  <jackson@ximian.com>
9637
9638         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9639
9640 2005-01-06  Jackson Harper  <jackson@ximian.com>
9641
9642         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9643         set to less then 0.
9644
9645 2005-01-06  Jackson Harper  <jackson@ximian.com>
9646
9647         * ScrollableControl.cs: Lazy init the scrollbars.
9648         
9649 2005-01-06  Jackson Harper  <jackson@ximian.com>
9650
9651         * Theme.cs: Speed up getting pens and solid brushes, by using
9652         their ARGB as a hash instead of tostring and not calling Contains.
9653
9654 2005-01-06  Peter Bartok <pbartok@novell.com>
9655
9656         * Form.cs:
9657           - Implemented OnActivated and OnDeactivate event trigger
9658           - Implemented Activate() method
9659           - Fixed ShowDialog() to activate the form that was active before
9660             the dialog was shown
9661         * XplatUIX11.cs:
9662           - Added global active_window var that tracks the currently active
9663             X11 window
9664           - Now always grabs Property changes from the root window to always
9665             catch changes on the active window property
9666           - Added code to PropertyNotify handler to send Active/Inactive
9667             messages when state changes. This puts X11 and Win32 en par on
9668             WM_ACTIVATE notifications (except for double notifications when
9669             the user clicks away from our modal window to another one of our
9670             windows)
9671
9672 2005-01-05  Jackson Harper  <jackson@ximian.com>
9673
9674         * ImageList.cs: Implment ctor
9675
9676 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9677
9678         * XplatUIOSX.cs: Implement Activate/SetTopmost
9679
9680 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9681
9682         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9683
9684 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9685
9686         * XplatUIOSX.cs: Implement GetActive/SetFocus.
9687
9688 2005-01-05  Peter Bartok <pbartok@novell.com>
9689
9690         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9691           XplatUIOSX.cs: Added GetActive method to return the currently
9692           active window for the application (or null, if none is active)
9693         * Form.cs:
9694           - Implemented ActiveForm
9695           - Commented out owner assignment for modal dialogs (causes problems
9696             on Win32, since the owner will be disabled)
9697           - Reworked some Active/Focus handling (still incomplete)
9698         * CommonDialog.cs: Commented out owner assignment for modal dialogs
9699           (causes problems on Win32, since the owner will be disabled)
9700         * IWin32Window: Added ComVisible attribute
9701
9702 2005-01-05  Peter Bartok <pbartok@novell.com>
9703
9704         * ToolTip.cs (WndProc): Enable setting focus now that we have the
9705           required XplatUI functions.
9706
9707 2005-01-05  Peter Bartok <pbartok@novell.com>
9708
9709         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9710           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9711           to implement focus and activation handling; still incomplete and
9712           with debug output
9713
9714 2005-01-04  Peter Bartok <pbartok@novell.com>
9715
9716         * TextBoxBase.cs: Changed access level for Document property to
9717           match switch to internal for TextControl
9718
9719 2005-01-04  Peter Bartok <pbartok@novell.com>
9720
9721         * AccessibleObject: Added ComVisible attribute
9722
9723 2005-01-04  Jackson Harper  <jackson@ximian.com>
9724
9725         * X11Keyboard.cs: Remove unneeded var.
9726
9727 2005-01-04  Jackson Harper  <jackson@ximian.com>
9728
9729         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9730         but PAINT.
9731         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9732         ClientMessage. This makes apps exit cleanly (more often).
9733         
9734 2005-01-04  Jackson Harper  <jackson@ximian.com>
9735
9736         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9737         handling focus, return correct colors and fonts,
9738         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9739         handle selection, horizontal scrolling, and mouse interaction.
9740
9741 2005-01-04  Peter Bartok <pbartok@novell.com>
9742
9743         * ICommandExecutor.cs: Added
9744         * IDataGridColumnStyleEditingNotificationService.cs: Added
9745         * IFeatureSupport.cs: Added
9746         * IFileReaderService.cs: Added
9747         * IDataObject.cs: Added ComVisible attribute
9748         * AmbientProperties.cs: Added
9749         * BaseCollection.cs: Added missing attributes
9750         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9751         * BaseCollection.cs: Added missing attributes
9752         * Binding.cs: Added TypeConverter attribute
9753         * BindingContext.cs: Added DefaultEvent attribute
9754         * BindingsCollection.cs: Added DefaultEvent attribute
9755         * Button.cs: Added DefaultValue attribute
9756         * DragEventArgs.cs: Added ComVisible attribute
9757         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9758         * KeyEventArgs.cs: Added ComVisible attribute
9759         * KeyPressEventArgs.cs: Added ComVisible attribute
9760         * MouseEventArgs.cs: Added ComVisible attribute
9761         * NavigateEventArgs.cs: Added
9762         * NavigateEventHandler.cs: Added
9763         * FeatureSupport.cs: Added
9764         * OSFeature.cs: Added
9765         * Theme.cs: Added abstract Version property to support OSFeature
9766         * ThemeWin32Classic.cs: Added Version property to
9767           support OSFeature.Themes
9768         * ProgressBar.cs: Removed OnPaintBackground override, not required since
9769           the proper styles to avoid background drawing are set, also doesn't
9770           match MS signature
9771         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9772         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9773         * ScrollEventArgs.cs: Added ComVisible attribute
9774         * SplitterEventArgs.cs: Added ComVisible attribute
9775         * AccessibleSelection.cs: Added Flags attribute
9776         * Appearance.cs: Added ComVisible attribute
9777         * Border3DSide.cs: Added ComVisible attribute
9778         * Border3DStyle.cs: Added ComVisible attribute
9779         * BorderStyle.cs: Added ComVisible attribute
9780         * DragAction.cs: Added ComVisible attribute
9781         * ErrorBlinkStyle.cs: Added
9782         * ScrollEventType.cs: Added ComVisible attribute
9783         * AnchorStyles.cs: Added Editor attribute
9784         * DockStyle.cs: Added Editor attribute
9785         * HorizontalAlignment.cs: Added ComVisible attribute
9786         * HelpEventArgs.cs: Added ComVisible attribute
9787         * PaintEventArgs.cs: Added IDisposable
9788
9789 2005-01-04  Peter Bartok <pbartok@novell.com>
9790
9791         * TextControl.cs: Switched Line, LineTag and Document classes to
9792           internal
9793
9794 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9795
9796         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9797         Simple mode, fixes, IntegralHeight, etc.
9798
9799 2005-01-04  Peter Bartok <pbartok@novell.com>
9800
9801         * TextBoxBase.cs: Using proper font variable now
9802
9803 2005-01-04  Peter Bartok <pbartok@novell.com>
9804
9805         * Form.cs (ShowDialog): Set parent to owner, if provided
9806         * GroupBox.cs: Removed unused vars
9807         * TextControl.cs:
9808           - Added GetHashCode() for Document and LineTag classes
9809           - Removed unused variables
9810           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9811             to allow translation between continuous char position and line/pos
9812         * CheckBox.cs: Removed vars that are provided by base class
9813         * RadioButton.cs: Removed vars that are provided by base class, added
9814           new keyword where required
9815         * LinkLabel.cs: Added new keyword where required
9816         * Control.cs (WndProc): Removed unused variable
9817         * TextBoxBase.cs:
9818           - Finished SelectionLength property
9819           - Implemented SelectionStart property
9820           - Implemented Text property
9821           - Removed unused vars
9822         * MessageBox.cs: Added new keyword where required
9823         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9824           WndProc signature
9825         * MenuAPI.cs: Added new keyword where required
9826         * ButtonBase.cs: Removed vars that are provided by base class, added
9827           new keyword where required
9828         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9829           argument to double, to allow compiling with csc 2.0 (Atsushi ran
9830           into this)
9831         * Application.cs (Run): Now triggers the ThreadExit event
9832         * CommonDialog.cs: Added new keyword where required; now properly sets
9833           parent (owner) for dialog
9834         * XplatUIX11.cs: Commented out unused vars
9835         * StatusBar.cs: Fixed signature for Text property
9836         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9837
9838 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9839
9840         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9841         TrackBar.cs, MonthCalendar.cs: remove unused vars
9842
9843 2005-01-03  Jackson Harper  <jackson@ximian.com>
9844
9845         * ThemeWin32Classic.cs:
9846         * X11Keyboard.cs: Remove unused vars.
9847
9848 2005-01-03  Peter Bartok  <pbartok@novell.com>
9849
9850         * TextBox.cs:
9851           - set_Text: Tied into TextControl
9852           - set_TextAlignment: Tied into TextControl
9853         * TextControl.cs:
9854           - Added alignment properties and implemented alignment handling
9855             and drawing (still has a bug, not generating proper expose events)
9856           - Added new Line() constructor to allow passing the line alignment
9857           - Fixed selection setting, properly handling end<start now
9858           - Added aligment considerations to RecalculateDocument()
9859         * TextBoxBase.cs:
9860           - Now properly enforces control height for single line controls
9861           - Added support for CharacterCasing
9862           - Added IsInputKey override
9863           - Fixed Keys.Enter logic
9864           - Added SetBoundsCore override
9865           - Fixed mouse selection handling
9866
9867 2005-01-03  Jackson Harper  <jackson@ximian.com>
9868
9869         * TreeView.cs:
9870           - Collapse and uncheck all nodes when CheckBoxes is disabled.
9871           - Checkboxes are always aligned to the bottom of the node,
9872           regardless of item height.
9873           - Use the node bounds to draw the text so we can center it when
9874           the item height is greater then the font height.
9875           - Node::Bounds are only the text part of the node.
9876         * TreeNode.cs: New method to combine collapsing and unchecking all
9877           nodes recursively.
9878
9879 2005-01-02  Jackson Harper  <jackson@ximian.com>
9880
9881         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
9882         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
9883         tree when a check is changed. TODO: Only refresh the checked node.
9884
9885 2004-12-30  Jackson Harper  <jackson@ximian.com>
9886
9887         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
9888         * TreeNode.cs: When collapsing make sure to never collapse the
9889         root node.
9890
9891 2004-12-29  Jackson Harper  <jackson@ximian.com>
9892
9893         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
9894         
9895 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
9896
9897         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
9898
9899 2004-12-28  Peter Bartok  <pbartok@novell.com>
9900
9901         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
9902           not yet assigned
9903
9904 2004-12-28  Peter Bartok  <pbartok@novell.com>
9905
9906         * Control.cs (WndProc): Added WM_HELP handler, now generates
9907           HelpRequested event
9908         * Form.cs: Added HelpButton property and required support code
9909         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
9910
9911 2004-12-28  Peter Bartok  <pbartok@novell.com>
9912
9913         * CommonDialog.cs:
9914           - Made DialogForm.owner variable internal
9915           - Added check to ensure owner form is set before setting
9916             owner properties in CreateParams
9917
9918 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
9919
9920         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
9921           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
9922           GetCursorPos.  Fix major visibility issues.  Rework the windowing
9923           system to support borderless/titleless windows (implements menus).
9924           Fix GetWindowPos.  Implement initial background color support for
9925           views.
9926
9927 2004-12-28  Peter Bartok  <pbartok@novell.com>
9928
9929         * Form.cs (get_CreateParams): Make sure we have an owner before using
9930           the owner variable. Implement proper default if no owner exists
9931
9932 2004-12-28  Peter Bartok  <pbartok@novell.com>
9933
9934         * In preparation for making Managed.Windows.Forms the default build target
9935           for System.Windows.Forms, the following stubbed files were added.
9936           Dialogs are currently being implemented by contributors and are only
9937           short-term place holders.
9938         * ColorDialog.cs: Initial check-in (minmal stub)
9939         * DataGrid.cs: Initial check-in (minimal stub)
9940         * DataGridLineStyle.cs: Initial check-in (minimal stub)
9941         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
9942         * DataGridTableStyle.cs: Initial check-in (minimal stub)
9943         * FontDialog.cs: Initial check-in (minimal stub)
9944         * FileDialog.cs: Initial check-in (minimal stub)
9945         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
9946         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
9947         * OpenFileDialog: Initial check-in (minimal stub)
9948         * IComponentEditorPageSite.cs: Initial check-in
9949         * Splitter.cs: Initial check-in (for Jackson)
9950         * SplitterEventArgs.cs: Initial check-in (for Jackson)
9951         * SplitterEventHandler.cs: Initial check-in (for Jackson)
9952         * TextBox.cs: Initial check-in; still needs some wiring to
9953           TextControl backend
9954         * Form.cs: Implemented ControlBox property
9955         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
9956         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
9957         * TextControl.cs: Added selection functionality; added todo header
9958         * TextBoxBase.cs:
9959           - Implemented Lines property
9960           - Implemented TextHeight property
9961           - Implemented SelectedText property
9962           - Implemented SelectionLength property
9963           - Implemented SelectAll method
9964           - Implemented ToString method
9965           - Removed and cleaned up some debug code
9966           - Implemented (still buggy) mouse text selection
9967
9968 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
9969
9970         * ComboBox.cs: Complete DropDownList implementation, fixes.
9971
9972 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
9973
9974         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
9975         * ComboBoxStyle.cs: ComboBoxStyle enum
9976         * ComboBox.cs: Initial work on ComboBox control
9977
9978 2004-12-21  Peter Bartok  <pbartok@novell.com>
9979
9980         * Control.cs (ctor, CreateParams): Moved setting of is_visible
9981           forward so that anything that creates a window gets the default,
9982           also no longer uses Visible property in CreateParams to avoid
9983           walking up the parent chain and possibly get the wrong visible
9984           status. Fixed IsVisible to no longer walk up to the parent.
9985
9986 2004-12-21  Peter Bartok  <pbartok@novell.com>
9987
9988         * Form.cs (ShowDialog): Unset modality for the proper window
9989  
9990 2004-12-20  Peter Bartok  <pbartok@novell.com>
9991
9992         * CommonDialog.cs: Initial check-in
9993
9994 2004-12-20  Peter Bartok  <pbartok@novell.com>
9995
9996         * Control.cs (Visible): Now uses the parent window instead of the
9997           client area window for the property
9998
9999         * Form.cs
10000           - ShowDialog(): Now uses the proper window for modality
10001           - The default visibility state for the form parent is now false. This
10002             will prevent the user from seeing all the changes to the form and
10003             its controls before the application hits Application.Run()
10004           - Removed some stale commented out code
10005
10006         * NativeWindow.cs:
10007           - Added FindWindow() method to have a method to check for existence
10008             of a window handle
10009           - Added ability to override default exception handling (for example
10010             when debugging with VS.Net; to do this the ExternalExceptionHandler
10011             define must be set
10012           - Removed some useless debug output
10013
10014         * XplatUIX11.cs:
10015           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10016             not working as expected
10017           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10018             property to allow switching back to the modal window if focus is
10019             given to another one of our windows (Application Modal)
10020           - Now only sets override_redirect if we create a window
10021             without WS_CAPTION
10022           - Moved EventMask selection before mapping of newly created window
10023             so we can catch the map event as well
10024           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10025           - Added various Atom related DllImports
10026           - Implemented Exit() method
10027           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10028             in the CreateParams
10029
10030         * MessageBox.cs: Now properly deals with the FormParent window by
10031           providing an override the FormParent CreateParams property to
10032           set as POPUP instead of OVERLAPPED window.
10033
10034 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10035
10036         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10037         Minor code cleanup.
10038
10039 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10040         
10041         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10042
10043 2004-12-18  Peter Bartok  <pbartok@novell.com>
10044
10045         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10046           implementing SetModal() method
10047
10048 2004-12-18  Peter Bartok  <pbartok@novell.com>
10049
10050         * X11Structs.cs (XGCValues): Fixed type of function element
10051         * XplatUI.cs: Added ScrollWindow() method
10052         * XplatUIDriver.cs: Added ScrollWindow() abstract
10053         * XplatUIWin32.cs: Implemented ScrollWindow() method
10054         * XplatUIX11.cs: Implemented ScrollWindow() method
10055         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10056
10057 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10058
10059         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10060         Some more keyboard support (INCOMPLETE)
10061
10062 2004-12-17  Peter Bartok  <pbartok@novell.com>
10063
10064         * TextControl.cs:
10065         - Added color attribute to line tags.
10066         - Added color argument to all functions dealing with tags
10067         - Added color argument support to various functions
10068         - Fixed miss-calculation of baseline/shift in certain circumstances
10069
10070         * TextBoxBase.cs: Added new color option to test code
10071
10072 2004-12-17  Jackson Harper  <jackson@ximian.com>
10073
10074         * TreeNode.cs:
10075         * MonthCalendar.cs: Signature fixes
10076
10077 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10078
10079         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10080         keyboard event moved it.  Create a new graphics context for each paint resolves this
10081
10082 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10083
10084         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10085         Make caret exist and go blink blink.  Initial keyboard support.
10086         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10087         works.
10088
10089 2004-12-17  Jackson Harper  <jackson@ximian.com>
10090
10091         * XplatUIStructs.cs: Updated set of virtual keycodes.
10092         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10093
10094 2004-12-17  Jackson Harper  <jackson@ximian.com>
10095
10096         * XplatUIX11.cs: Prune old keyboard code.
10097
10098 2004-12-17  Jackson Harper  <jackson@ximian.com>
10099
10100         * XplatUIX11.cs: When generating mouse wparams get the modifier
10101         keys from the ModifierKeys property.
10102
10103 2004-12-17  Jackson Harper  <jackson@ximian.com>
10104
10105         * X11Keyboard.cs: Send up/down input when generating
10106         messages. Remove some unused vars.
10107
10108 2004-12-17  Jackson Harper  <jackson@ximian.com>
10109
10110         * TabControl.cs:
10111         * TreeView.cs: get rid of warnings.
10112
10113 2004-12-17  Jackson Harper  <jackson@ximian.com>
10114
10115         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10116
10117 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10118
10119         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10120           CheckedListBox.cs: Implementation
10121
10122 2004-12-17  Peter Bartok  <pbartok@novell.com>
10123
10124         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10125
10126 2004-12-16  Peter Bartok  <pbartok@novell.com>
10127
10128         * TextControl.cs:
10129           - InsertCharAtCaret(): Fixed start pos fixup
10130           - CaretLine_get: No longer derives the line from the tag, the tag
10131             could be stale if lines in the document have been added or deleted
10132           - RebalanceAfterDelete(): Fixed bug in balancing code
10133           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10134           - Line.Streamline(): Now can also elminate leading empty tags
10135           - DumpTree(): Added a few more tests and prevented exception on
10136             uninitialized data
10137           - Added Debug section for Combining lines
10138           - Delete(): Now copies all remaining properties of a line
10139           
10140         * TextBoxBase.cs:
10141           - Left mousebutton now sets the caret (and middle button still acts
10142             as formatting tester, which must go away soon)
10143           - Added Debug section for Deleting/Combining lines
10144           - Fixed calculations for UpdateView after Combining lines
10145
10146 2004-12-16  Peter Bartok  <pbartok@novell.com>
10147
10148         * TextControl.cs: Now properly aligns text on a baseline, using the
10149           new XplatUI.GetFontMetrics() method. Simplified several calculations
10150         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10151           defined
10152
10153 2004-12-16  Peter Bartok  <pbartok@novell.com>
10154
10155         * XplatUI.cs: Added GetFontMetrics() method
10156         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10157         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10158           into libgdiplus, our private GetFontMetrics function
10159         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10160         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10161
10162 2004-12-16  Jackson Harper  <jackson@ximain.com>
10163
10164         * XplatUIStruct.cs: Add enum for dead keys
10165         * X11Keyboard.cs: Map and unmap dead keys.
10166
10167 2004-12-16  Jackson Harper  <jackson@ximian.com>
10168
10169         * X11Keyboard.cs: Detect and use the num lock mask.
10170
10171 2004-12-16  Peter Bartok  <pbartok@novell.com>
10172
10173         * Control.cs (CreateGraphics): Added check to make sure the
10174           handle of the window exists before calling Graphics.FromHwnd()
10175
10176 2004-12-16  Peter Bartok  <pbartok@novell.com>
10177
10178         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10179           contains a lot of code that's not supposed to be there for the
10180           real thing, but required for developing/testing the textbox
10181           backend.
10182
10183 2004-12-16  Peter Bartok  <pbartok@novell.com>
10184
10185         * TextControl.cs:
10186         - Fixed Streamline method
10187         - Added FindTag method to Line
10188         - Added DumpTree method for debugging
10189         - Added DecrementLines() method for deleting lines
10190         - Fixed UpdateView to update the cursor to end-of-line on single-line
10191           updates
10192         - Added PositionCaret() method
10193         - Fixed MoveCaret(LineDown) to move into the last line, too
10194         - Added InsertChar overload
10195         - Fixed InsertChar tag offset calculations
10196         - Added DeleteChar() method
10197         - Added Combine() method for folding lines
10198         - Fixed Delete() method, no longer allocates wasted Line object and
10199           now copies all properties when swapping nodes
10200         - Delete() method now updates document line counter
10201
10202 2004-12-15  Jackson Harper  <jackson@ximian.com>
10203
10204         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10205         * X11Keyboard.cs: Expose the currently selected modifier keys
10206         through a property.
10207
10208 2004-12-15  Peter Bartok  <pbartok@novell.com>
10209
10210         * TextControl.cs: Initial check-in. Still incomplete
10211
10212 2004-12-15  Jackson Harper  <jackson@ximian.com>
10213
10214         * TreeNode.cs:
10215         * TreeView.cs: Fix build on csc (second time today ;-))
10216
10217 2004-12-15  Jackson Harper  <jackson@ximian.com>
10218
10219         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10220         is calculated and use this for click testing.
10221         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10222
10223 2004-12-15  Jackson Harper  <jackson@ximian.com>
10224
10225         * TreeView.cs: Pass the nodes image index to the image list when
10226         drawing that image.
10227
10228 2004-12-15  Jackson Harper  <jackson@ximian.com>
10229
10230         * X11Keyboard.cs: Set messages hwnd.
10231         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10232         post_message calls.
10233
10234 2004-12-15  Jackson Harper  <jackson@ximian.com>
10235
10236         * X11Keyboard.cs: Fix to compile with csc.
10237         
10238 2004-12-15  Jackson Harper  <jackson@ximian.com>
10239
10240         * X11Structs.cs: Add key mask values
10241         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10242         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10243         down/up foo into WM_CHAR foo
10244         * KeyboardLayouts.cs: Common keyboard layouts
10245         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10246         post messages into the main queue.
10247
10248 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10249
10250         * Button.cs: implement ProcessMnemonic
10251         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10252           brushes everytime
10253         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10254         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10255
10256 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10257         
10258         * MonthCalendar.cs: Implemented click-hold for next/previous month
10259           and date selection
10260           
10261 2004-12-11  Peter Bartok  <pbartok@novell.com>
10262
10263         * X11Structs.cs:
10264           - Added XKeyboardState (moved from XplatUIX11.cs)
10265           - Added XCreateGC related enums and structures
10266           - Added GXFunction for XSetFunction
10267
10268         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10269
10270         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10271           CaretVisible() calls
10272
10273         * ToolTip.cs: Added code to prevent stealing focus from app windows
10274
10275         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10276           DestroyCaret, SetCaretPos and CaretVisible)
10277
10278         * XplatUIX11.cs:
10279           - Added implementation for caret functions
10280           - Moved hover variables into a struct, to make it a bit easier
10281             on the eyes and to debug
10282           - Removed XKeyboardState (moved to XplatUIX11.cs)
10283           - Moved Keyboard properties into the properties region
10284
10285         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10286           call to get a graphics context for our control
10287
10288         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10289
10290         * TreeView.cs: Fixed bug. No matter what color was set it would always
10291           return SystemColors.Window
10292
10293         * XplatUIWin32.cs: Implemented caret overrides
10294
10295 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10296
10297         * ListBox.cs: fire events, implement missing methods and properties,
10298         sorting.
10299
10300 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10301
10302         * MonthCalendar.cs: invalidation bug fixing
10303         * ThemeWin32Classic.cs: paint fixing
10304
10305 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10306
10307         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10308         prepare the CGContextRef there now.
10309
10310 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10311
10312         * MonthCalendar.cs:
10313           - optimisationL only invalidate areas that have changed
10314         * ThemeWin32Classic.cs:
10315           - only paint parts that intersect with clip_area
10316
10317 2004-12-09  Peter Bartok  <pbartok@novell.com>
10318
10319         * Application.cs: Undid changes from r37004 which cause problems
10320         on X11
10321
10322 2004-12-09  Ravindra  <rkumar@novell.com>
10323
10324         * ToolBar.cs: Added support for displaying ContextMenu
10325         attached to a button on ToolBar.
10326         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10327         property.
10328
10329 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10330
10331         * Label.cs: autosize works in text change and removes unnecessary
10332         invalidate
10333
10334 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10335
10336         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10337         remove warnings
10338
10339 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10340
10341         * XplatUIOSX.cs: Added mouse move/click/grab support
10342         Remove some debugging WriteLines not needed anymore.
10343         Add window resizing/positioning.
10344         Fix visibility on reparenting.
10345
10346 2004-12-08  Peter Bartok  <pbartok@novell.com>
10347
10348         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10349
10350 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10351
10352         * XplatUIOSX.cs: Initial checkin
10353         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10354
10355 2004-12-03  Ravindra <rkumar@novell.com>
10356
10357         * ListView.cs: Added some keybindings and fixed scrolling.
10358         ScrollBars listen to ValueChanged event instead of Scroll
10359         Event. This would let us take care of all changes being
10360         done in the scrollbars' values programmatically or manually.
10361         * ListView.cs (CanMultiselect): Added a check for shift key.
10362         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10363         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10364         of ListViewSubItemCollection as well.
10365
10366 2004-12-06  Peter Bartok <pbartok@novell.com>
10367
10368         * Control.cs (Parent): Added check and exception to prevent
10369         circular parenting
10370
10371 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10372
10373         * ListBox.cs: implemented clipping, selection single and multiple,
10374         bug fixing
10375
10376 2004-12-03  Ravindra <rkumar@novell.com>
10377
10378         * ListView.cs (ListView_KeyDown):
10379         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10380         when CTRL key is pressed.
10381         * ListViewItem.cs (Selected): Fixed setting the property.
10382
10383 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10384
10385         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10386
10387         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10388         MinimizeBox, ShowInTaskbar, TopMost properties.
10389
10390         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10391         will be implemented).
10392
10393 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10394
10395         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10396
10397         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10398         tests.
10399         
10400         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10401         
10402         * TreeView.cs: BackColor is Colors.Window.
10403
10404 2004-12-01  Jackson Harper  <jackson@ximian.com>
10405
10406         * TreeView.cs: When resizing the tree if the user is making it
10407         smaller we don't get expose events, so we need to handle adding
10408         the horizontal scrollbar in the size changed handler as well as
10409         the expose handler.
10410
10411 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10412
10413         * DrawItemState.cs: fixes wrong enum values
10414
10415 2004-12-01  Jackson Harper  <jackson@ximian.com>
10416
10417         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10418
10419 2004-12-01  Jackson Harper  <jackson@ximian.com>
10420
10421         * NodeLabelEditEventArgs.cs:
10422         * NodeLabelEditEventHandler.cs:
10423         * OpenTreeNodeEnumerator.cs:
10424         * TreeNode.cs:
10425         * TreeNodeCollection.cs:
10426         * TreeView.cs:
10427         * TreeViewAction.cs:
10428         * TreeViewCancelEventArgs.cs:
10429         * TreeViewCancelEventHandler.cs:
10430         * TreeViewEventArgs.cs:
10431         * TreeViewEventHandler.cs: Initial implementation.
10432
10433 2004-12-01  Ravindra <rkumar@novell.com>
10434
10435         * ListView.cs (CalculateListView): Fixed scrolling related
10436         calculations. Also, removed some debug statements from other
10437         places.
10438         * ListViewItem.cs: Changed access to 'selected' instance variable
10439         from private to internal.
10440         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10441
10442 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10443
10444         * ThemeWin32Classic.cs: remove cache of brush and pens for
10445         specific controls and use the global system, fixes scrollbutton
10446         bugs (for small sizes, disabled, etc)
10447         
10448         * ScrollBar.cs: does not show the thumb for very small controls
10449         (as MS) and allow smaller buttons that the regular size
10450
10451 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10452
10453         * UpDownBase.cs: Add abstract methods for the interface.
10454         Add new virtual methods (need to be hooked up to TextEntry when it
10455         exists).
10456         Add override methods for most features.
10457         Computes the size, forces the height of the text entry.
10458
10459         * NumericUpDown.cs: Put here the current testing code.
10460
10461         * Set eol-style property on all files that do not have mixed line
10462         endings, to minimize the future problems.  There are still a few
10463         files with mixed endings, and someone should choose whether they
10464         want to move it or not.
10465
10466 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10467
10468         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10469         System.Colors
10470         
10471 2004-11-30  Ravindra <rkumar@novell.com>
10472
10473         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10474         drawing and replaced use of SystemColors by theme colors.
10475         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10476         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10477         same ListViewItem is being added more than once.
10478
10479 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10480
10481         * MonthCalendar.cs:
10482           - ControlStyles love to make the control not flicker
10483           
10484 2004-11-30  Peter Bartok  <pbartok@novell.com>
10485
10486         * CharacterCasing.cs: Added
10487
10488 2004-11-29  Peter Bartok  <pbartok@novell.com>
10489
10490         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10491           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10492           I am removing these files as they conflict with already completed
10493           work. While it is fantastic to get contributions to MWF, I
10494           respectfully ask that everyone please coordinate their contributions
10495           through mono-winforms-list or #mono-winforms at this time. We're
10496           explicitly avoiding stubbing and don't want controls that don't have
10497           their basic functionality implemented in svn. Please also see
10498           http://www.mono-project.com/contributing/winforms.html
10499
10500
10501 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10502
10503         * Application.cs (ModalRun): Don't hang after exit.
10504
10505         * Theme.cs: New TreeViewDefaultSize property.
10506
10507         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10508         with less hardcoded SystemColors constant.
10509         Implemented TreeViewDefaultSize.
10510
10511         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10512         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10513
10514
10515 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10516
10517         * MonthCalendar.cs:
10518           - Fix NextMonthDate and PrevMonthDate click moving calendar
10519
10520 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10521
10522         * MonthCalendar.cs:
10523           - Fix usage of ScrollChange Property when scrolling months
10524
10525 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10526
10527         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10528          - Fixes menu destroying
10529          - Support adding and removing items on already created menus
10530
10531 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10532
10533         * MonthCalendar.cs:
10534           - Re-worked all bolded dates handling to match win32
10535         * ThemeWin32Classic.cs:
10536           - Fixed rendering with bolded dates
10537
10538 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10539
10540         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10541         - Horizontal scroolbar
10542         - Multicolumn
10543         - Fixes
10544
10545
10546 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10547
10548         * MonthCalendar.cs:
10549           - Fix Usage of MaxSelectionCount from SelectionRange
10550           - Fixed Shift + Cursor Selection
10551           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10552           - Fixed normal cursor selection to be compat with win32
10553           - Fixed Shift + Mouse Click selection
10554
10555 2004-11-24  Peter Bartok <pbartok@novell.com>
10556
10557         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10558         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10559         * XplatUIX11.cs:
10560           - CreatedKeyBoardMsg now updates keystate with Alt key
10561           - Added workaround for timer crash to CheckTimers, Jackson will
10562             develop a proper fix and check in later
10563           - Implemented DispatchMessage
10564           - Removed calling the native window proc from GetMessage (call
10565             now moved to DispatchMessage)
10566
10567         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10568           the keydata (Fixes bug #69831)
10569
10570         * XplatUIWin32.cs:
10571           - (DispatchMessage): Switched to return IntPtr
10572           - Added DllImport for SetFocus
10573
10574 2004-11-24  Ravindra <rkumar@novell.com>
10575
10576         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10577         background drawing.
10578         * ListViewItem.cs: Fixed various properties, calculations
10579         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10580         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10581         and some internal properties. Fixed MouseDown handler and Paint
10582         method.
10583
10584 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10585
10586         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10587
10588 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10589
10590         * ContainerControl.cs: correct accidental check in of local changes
10591
10592 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10593
10594         * ThemeWin32Classic.cs:
10595                 - Fixed Drawing Last month in grid (sometimes not showing)
10596         * MonthCalendar.cs:
10597                 - Fixed title width calculation bug (makeing title small)
10598
10599 2004-11-23  Peter Bartok <pbartok@novell.com>
10600
10601         * XplatUIX11.cs:
10602           - Added generation of WM_MOUSEHOVER event
10603           - Added missing assignment of async_method atom
10604           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10605
10606 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10607
10608         * ThemeWin32Classic.cs:
10609                 - Fixed Drawing of today circle when showtodaycircle not set
10610                 - fixed drawing of first and last month in the grid (gay dates)
10611         * MonthCalendar.cs:
10612                 - Fixed Drawing of today circle
10613                 - Fixed drawing of grady dates
10614                 - Fixed HitTest for today link when ShowToday set to false
10615                 - Fixed DefaultSize to obey ShowToday
10616
10617 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10618
10619         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10620         * System.Windows.Forms/Theme.cs
10621         * MonthCalendar.cs: added for MonthCalendar
10622         * SelectionRange.cs: added for MonthCalendar
10623         * Day.cs: added for MonthCalendar: added for MonthCalendar
10624         * DateRangeEventArgs.cs: added for MonthCalendar
10625         * DateRangeEventHandler.cs: added for MonthCalendar
10626
10627 2004-11-22  Ravindra <rkumar@novell.com>
10628
10629         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10630         property.
10631
10632 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10633
10634         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10635         event handler.
10636         
10637         * NumericUpDown.cs: Added new implementation.
10638         * UpDownBase.cs: Added new implementation.
10639
10640         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10641         implementations.
10642         
10643         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10644         implementations.
10645
10646         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10647         methods.
10648
10649 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
10650
10651         * Timer.cs  (Dispose): Should call the base dispose when
10652         overriding.
10653
10654 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10655
10656         * ScrollBar.cs: updates thumb position when max, min or increment
10657         is changed
10658
10659 2004-11-21  Ravindra <rkumar@novell.com>
10660
10661         * ListView.cs: Implemented item selection, activation and
10662         column header style. Fixed properties to do a redraw, if
10663         required. Added support for MouseHover, DoubleClick, KeyDown
10664         and KeyUp event handling and some minor fixes.
10665         * ListViewItem.cs: Fixed constructor.
10666         * ThemeWin32Classic.cs: Improved drawing for ListView.
10667
10668 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10669
10670         * ThemeWin32Classic.cs: initial listbox drawing code
10671         * DrawMode.cs: new enumerator
10672         * ListControl.cs: stubbed class
10673         * ListBox.cs: initial implementation
10674         * Theme.cs: new methods definitions
10675         * SelectionMode.cs: new enumerator
10676
10677 2004-11-17  Peter Bartok  <pbartok@novell.com>
10678
10679         * XplatUIWin32.cs: Added double-click events to the class style
10680         * Control.cs (WndProc):
10681           - Added handling of click-count to MouseDown/ MouseUp events.
10682           - Added handling of middle and right mouse buttons
10683           - Removed old debug code
10684
10685 2004-11-17  Jackson Harper  <jackson@ximian.com>
10686
10687         * XplatUIX11.cs: Use the new Mono.Unix namespace.
10688
10689 2004-11-17  Ravindra <rkumar@novell.com>
10690
10691         * ListView.cs: Added event handling for MouseMove/Up/Down.
10692         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10693         * ThemeWin32Classic.cs: We need to clear the graphics context and
10694         draw column header in a proper state.
10695
10696
10697 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
10698
10699         *  Menu.cs: fixes signature
10700
10701 2004-11-16  Peter Bartok  <pbartok@novell.com>
10702
10703         * XplatUIX11.cs (GetMessage): Implemented generation of
10704           double click mouse messages
10705
10706 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
10707
10708         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10709         not by menu
10710
10711 2004-11-11  Peter Bartok  <pbartok@novell.com>
10712
10713         * HandleData.cs: Added Visible property
10714         * XplatUIX11.cs (IsVisible): Now uses Visible property from
10715           HandleData
10716         * XplatUIX11.cs: Removed old debug leftovers
10717         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10718         * Control.cs (WndProc): Removed old debug leftovers,
10719           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10720           needed WM_SIZE handling
10721
10722 2004-11-11  Jackson Harper  <jackson@ximian.com>
10723
10724         * OwnerDrawPropertyBag.cs:
10725         * TreeViewImageIndexConverter.cs: Initial implementation
10726
10727 2004-11-10  Jackson Harper  <jackson@ximian.com>
10728
10729         * ThemeWin32Classic.cs:
10730         * TabControl.cs: instead of moving tabs by the slider pos just
10731         start drawing at the tab that is offset by the slider. This way
10732         scrolling always moves by exactly one tab.
10733
10734 2004-11-10  Jackson Harper  <jackson@ximian.com>
10735
10736         * TabControl.cs: You can only scroll left when the slider has
10737         already ben moved right.
10738         
10739 2004-11-10  Jackson Harper  <jackson@ximian.com>
10740
10741         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10742         the clip area.
10743         
10744 2004-11-10  Jackson Harper  <jackson@ximian.com>
10745
10746         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10747         clip area.
10748         
10749 2004-11-09  Jackson Harper  <jackson@ximian.com>
10750
10751         * TabControl.cs (CalcXPos): New helper method so we can determine
10752         the proper place to start drawing vertical tabs.
10753         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10754         
10755 2004-11-09  Jackson Harper  <jackson@ximian.com>
10756
10757         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10758         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10759         and Bottom, left and right are illegal values for this and
10760         multiline is enabled when the alignment is set to left or right.
10761         (DrawTab): Each alignment block should draw the text itself now
10762         because Left requires special love. Also add rendering for Left
10763         aligned tabs.
10764         
10765 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
10766
10767         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10768         does not destroy the windows, removes debugging messages
10769
10770 2004-11-09  jba  <jba-mono@optusnet.com.au>
10771
10772         * ThemeWin32Classic.cs
10773         (DrawButtonBase): Fix verticle text rect clipping in windows
10774         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10775         rendering and incorrect text rect clipping
10776         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10777         rendering and incorrect text rect clipping
10778         
10779 2004-11-08  Jackson Harper  <jackson@ximian.com>
10780
10781         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10782         bottom when they are bottom aligned so the bottoms of the tabs get
10783         displayed.
10784         * TabControl.cs (DropRow): Move rows up instead of down when the
10785         tab control is bottom aligned.
10786
10787 2004-11-08 13:59  pbartok
10788
10789         * XplatUIX11.cs:
10790           - Added handling for various window styles
10791           - Added handling for popup windows
10792           - Added SetTopmost handling
10793
10794 2004-11-08 13:55  pbartok
10795
10796         * XplatUIWin32.cs:
10797           - Added argument to SetTopmost method
10798           - Fixed broken ClientToScreen function
10799
10800 2004-11-08 13:53  pbartok
10801
10802         * XplatUIStructs.cs:
10803           - Added missing WS_EX styles
10804
10805 2004-11-08 13:53  pbartok
10806
10807         * XplatUI.cs, XplatUIDriver.cs:
10808           - Added argument to SetTopmost
10809
10810 2004-11-08 13:52  pbartok
10811
10812         * X11Structs.cs:
10813           - Added XSetWindowAttributes structure
10814           - Improved XWindowAttributes structure
10815           - Added SetWindowValuemask enum
10816           - Added window creation arguments enum
10817           - Added gravity enum
10818           - Added Motif hints structure
10819           - Added various Motif flags and enums
10820           - Added PropertyMode enum for property functions
10821
10822 2004-11-08 13:50  pbartok
10823
10824         * Form.cs:
10825           - Fixed arguments for updated SetTopmost method
10826
10827 2004-11-08 13:49  pbartok
10828
10829         * ToolTip.cs:
10830           - Fixed arguments for updated SetTopmost function
10831           - Fixed usage of PointToClient
10832
10833 2004-11-08 13:44  pbartok
10834
10835         * MenuAPI.cs:
10836           - Added Clipping of children and siblings
10837
10838 2004-11-08 13:41  pbartok
10839
10840         * MainMenu.cs:
10841           - Removed SetMenuBarWindow call. We do this in Form.cs
10842
10843 2004-11-08 13:40  jackson
10844
10845         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10846           scrolling jimmi in the correct location with bottom aligned tabs
10847
10848 2004-11-08 13:36  pbartok
10849
10850         * ContainerControl.cs:
10851           - Implemented BindingContext
10852           - Implemented ParentForm
10853
10854 2004-11-08 12:46  jackson
10855
10856         * TabControl.cs: Put bottom rendered tabs in the right location
10857
10858 2004-11-08 07:15  jordi
10859
10860         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10861           removes dead code
10862
10863 2004-11-05 17:30  jackson
10864
10865         * TabControl.cs: When selected tabs are expanded make sure they
10866           don't go beyond the edges of the tab control
10867
10868 2004-11-05 14:57  jackson
10869
10870         * TabControl.cs: Reset show_slider so if the control is resized to
10871           a size where it is no longer needed it's not displayed anymore
10872
10873 2004-11-05 13:16  jackson
10874
10875         * TabControl.cs: Make tab pages non visible when added to the
10876           control
10877
10878 2004-11-05 12:42  jackson
10879
10880         * TabControl.cs: Implement SizeMode.FillToRight
10881
10882 2004-11-05 12:16  jackson
10883
10884         * Control.cs: Do not call CreateHandle if the handle is already
10885           created
10886
10887 2004-11-05 11:46  jackson
10888
10889         * TabControl.cs: Remove superflous call to CalcTabRows
10890
10891 2004-11-05 09:07  jackson
10892
10893         * XplatUIX11.cs: Update for Mono.Posix changes
10894
10895 2004-11-05 07:00  ravindra
10896
10897         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
10898           scrolling.
10899
10900 2004-11-04 22:47  jba
10901
10902         * ThemeWin32Classic.cs:
10903           - Fix Button rendering for FlatStyle = Flat or Popup
10904           - Fix RadioButton and CheckBox rendering when Appearance = Button
10905             (normal and flatstyle).
10906           - Correct outer rectangle color when drawing focus rectangle
10907           - Adjust button bounds to be 1 px smaller when focused
10908           - Make button not draw sunken 3d border when pushed (windows compat)
10909           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
10910           - Offset the text in RadioButton and Checkbox when being rendered as
10911           a button.
10912           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
10913           radiobuttons
10914           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
10915           - Fixed disabled text rendering for normally rendered radiobuttons
10916
10917 2004-11-04 10:26  jackson
10918
10919         * TabControl.cs: Recalculate tab rows when resizing
10920
10921 2004-11-04 07:47  jordi
10922
10923         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
10924           collection completion, drawing issues, missing features
10925
10926 2004-11-04 05:03  ravindra
10927
10928         * ScrollBar.cs:
10929                 - We need to recalculate the Thumb area when
10930                 LargeChange/maximum/minimum values are changed.
10931           - We set the 'pos' in UpdatePos() method to minimum, if it's less
10932                 than minimum. This is required to handle the case if large_change is
10933                 more than max, and use LargeChange property instead of large_change
10934                 variable.
10935           - We return max+1 when large_change is more than max, like MS does.
10936
10937 2004-11-04 04:29  ravindra
10938
10939         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
10940                 - Changed default value signatures (prefixed all with ListView).
10941                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
10942                 ListView.
10943           - Fixed calculations for ListViewItem and implemented Clone()
10944           method.
10945
10946 2004-11-04 04:26  ravindra
10947
10948         * Theme.cs, ThemeWin32Classic.cs:
10949                 - Changed default ListView values signatures (prefixed all with
10950                 ListView).
10951           - Fixed default size values for VScrollBar and HScrollBar.
10952                 - Fixed DrawListViewItem method.
10953
10954 2004-11-04 04:05  ravindra
10955
10956         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
10957
10958 2004-11-04 04:04  ravindra
10959
10960         * ImageList.cs: Implemented the missing overload for Draw method.
10961
10962 2004-11-03 19:29  jackson
10963
10964         * TabControl.cs: Handle dropping rows on selection properly
10965
10966 2004-11-03 11:59  jackson
10967
10968         * TabControl.cs: remove debug code
10969
10970 2004-11-03 11:52  jackson
10971
10972         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
10973           the scrolly widgerywoo
10974
10975 2004-11-02 13:52  jackson
10976
10977         * TabControl.cs: Resize the tab pages and tabs when the tab control
10978           is resized
10979
10980 2004-11-02 13:40  jackson
10981
10982         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
10983           selected tab to the bottom
10984
10985 2004-11-02 13:39  jackson
10986
10987         * TabPage.cs: Store the tab pages row
10988
10989 2004-11-02 12:33  jordi
10990
10991         * MenuItem.cs: fixes handle creation
10992
10993 2004-11-02 11:42  jackson
10994
10995         * TabControl.cs: signature fix
10996
10997 2004-11-02 08:56  jackson
10998
10999         * TabControl.cs: Calculate whether the tab is on an edge properly.
11000           Remove top secret debugging code
11001
11002 2004-11-01 19:57  jackson
11003
11004         * TabControl.cs: Add click handling, and proper sizing
11005
11006 2004-11-01 19:47  jackson
11007
11008         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11009           tab controls
11010
11011 2004-11-01 19:39  jackson
11012
11013         * TabPage.cs: add internal property to store the bounds of a tab
11014           page
11015
11016 2004-10-30 04:23  ravindra
11017
11018         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11019           values.
11020
11021 2004-10-30 04:21  ravindra
11022
11023         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11024           fixed calculations.
11025
11026 2004-10-30 03:06  pbartok
11027
11028         * XplatUIX11.cs:
11029           - Removed extension of DllImported libs
11030
11031 2004-10-29 09:55  jordi
11032
11033         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11034           navigation, itemcollection completion, menu fixes
11035
11036 2004-10-27 22:58  pbartok
11037
11038         * XplatUIX11.cs:
11039           - Now throws a nice error message when no X display could be opened
11040
11041 2004-10-26 13:51  jordi
11042
11043         * ListView.cs: removes warning
11044
11045 2004-10-26 03:55  ravindra
11046
11047         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11048           ThemeWin32Classic.cs: Some formatting for my last checkins.
11049
11050 2004-10-26 03:36  ravindra
11051
11052         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11053           control and default values.
11054
11055 2004-10-26 03:35  ravindra
11056
11057         * Theme.cs: Added some default values for ListView control.
11058
11059 2004-10-26 03:33  ravindra
11060
11061         * ToolBar.cs: ToolBar should use the user specified button size, if
11062           there is any. Added a size_specified flag for the same.
11063
11064 2004-10-26 03:33  ravindra
11065
11066         * ColumnHeader.cs: Added some internal members and calculations for
11067           ColumnHeader.
11068
11069 2004-10-26 03:32  ravindra
11070
11071         * ListViewItem.cs: Calculations for ListViewItem.
11072
11073 2004-10-26 03:31  ravindra
11074
11075         * ListView.cs: Added some internal members and calculations for
11076           ListView.
11077
11078 2004-10-22 13:31  jordi
11079
11080         * MenuAPI.cs: speedup menus drawing
11081
11082 2004-10-22 13:16  jackson
11083
11084         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11085           expose event
11086
11087 2004-10-22 11:49  jackson
11088
11089         * Control.cs: oops
11090
11091 2004-10-22 11:41  jackson
11092
11093         * Control.cs: Check to see if the window should have its background
11094           repainted by X when drawing.
11095
11096 2004-10-22 11:31  jackson
11097
11098         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11099           clear is true, this way we do not get flicker from X repainting the
11100           background
11101
11102 2004-10-22 11:28  jackson
11103
11104         * XEventQueue.cs: Queue properly
11105
11106 2004-10-21 09:38  jackson
11107
11108         * XEventQueue.cs: Fix access modifier
11109
11110 2004-10-21 09:36  jackson
11111
11112         * XEventQueue.cs: Don't loose messages
11113
11114 2004-10-21 09:22  jackson
11115
11116         * XEventQueue.cs: Don't loose messages
11117
11118 2004-10-20 04:15  jordi
11119
11120         * BootMode.cs: enum need it by SystemInfo
11121
11122 2004-10-19 21:58  pbartok
11123
11124         * XplatUIWin32.cs:
11125           - Small sanity check
11126
11127 2004-10-19 21:56  pbartok
11128
11129         * Form.cs:
11130           - Added private FormParentWindow class which acts as the container
11131             for our form and as the non-client area where menus are drawn
11132           - Added/Moved required tie-ins to Jordi's menus
11133           - Fixed/Implemented the FormStartPosition functionality
11134
11135 2004-10-19 21:52  pbartok
11136
11137         * Control.cs:
11138           - Removed unneeded locals
11139           - Added code to all size and location properties to understand and
11140             deal with the parent container of Form
11141
11142 2004-10-19 21:33  pbartok
11143
11144         * Application.cs:
11145           - Fixed to deal with new Form subclasses for menus
11146
11147 2004-10-19 17:48  jackson
11148
11149         * XEventQueue.cs: commit correct version of file
11150
11151 2004-10-19 16:50  jackson
11152
11153         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11154
11155 2004-10-19 16:15  jordi
11156
11157         * MenuAPI.cs: MenuBarCalcSize returns the height
11158
11159 2004-10-19 08:31  pbartok
11160
11161         * Control.cs:
11162           - Added missing call to PreProcessMessage before calling OnXXXKey
11163           methods
11164
11165 2004-10-19 00:04  ravindra
11166
11167         * ToolTip.cs: Fixed constructor.
11168
11169 2004-10-18 09:31  jordi
11170
11171         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11172
11173 2004-10-18 09:26  jordi
11174
11175         * MenuItem.cs: fixes MenuItem class signature
11176
11177 2004-10-18 08:56  jordi
11178
11179         * MenuAPI.cs: prevents windows from showing in the taskbar
11180
11181 2004-10-18 00:28  ravindra
11182
11183         * ToolTip.cs: Suppressed a warning message.
11184
11185 2004-10-18 00:27  ravindra
11186
11187         * Control.cs: Default value of visible property must be true.
11188
11189 2004-10-17 23:19  pbartok
11190
11191         * ToolTip.cs:
11192           - Complete implementation
11193
11194 2004-10-17 23:19  pbartok
11195
11196         * XplatUIX11.cs:
11197           - Added EnableWindow method
11198           - Added SetModal stub
11199           - Added generation of WM_ACTIVATE message (still needs testing)
11200           - Added SetTopMost stub
11201           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11202
11203 2004-10-17 23:17  pbartok
11204
11205         * XplatUIWin32.cs:
11206           - Removed VirtualKeys to XplatUIStructs
11207           - Implemented SetTopMost method
11208           - Implemented EnableWindow method
11209           - Bugfix in ScreenToClient()
11210           - Bugfixes in ClientToScreen()
11211
11212 2004-10-17 22:51  pbartok
11213
11214         * XplatUIStructs.cs:
11215           - Added WS_EX styles to WindowStyles enumeration
11216
11217 2004-10-17 22:50  pbartok
11218
11219         * XplatUI.cs, XplatUIDriver.cs:
11220           - Added method for enabling/disabling windows
11221           - Added method for setting window modality
11222           - Added method for setting topmost window
11223
11224 2004-10-17 22:49  pbartok
11225
11226         * ThemeWin32Classic.cs:
11227           - Added ToolTip drawing code
11228
11229 2004-10-17 22:49  pbartok
11230
11231         * Theme.cs:
11232           - Added ToolTip abstracts
11233
11234 2004-10-17 22:47  pbartok
11235
11236         * Form.cs:
11237           - Fixed Form.ControlCollection to handle owner relations
11238           - Added Owner/OwnedForms handling
11239           - Implemented Z-Ordering for owned forms
11240           - Removed unneeded private overload of ShowDialog
11241           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11242             so I hope)
11243           - Fixed Close(), had wrong default
11244           - Added firing of OnLoad event
11245           - Added some commented out debug code for Ownership handling
11246
11247 2004-10-17 22:16  pbartok
11248
11249         * Control.cs:
11250           - Fixed/implemented flat list of controls
11251
11252 2004-10-17 22:14  pbartok
11253
11254         * Application.cs:
11255           - Added code to simulate modal dialogs on Win32
11256
11257 2004-10-17 16:11  jordi
11258
11259         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11260           mouse event
11261
11262 2004-10-17 13:39  jordi
11263
11264         * MenuAPI.cs: menu drawing fixes
11265
11266 2004-10-15 09:10  ravindra
11267
11268         * StructFormat.cs: General Enum.
11269
11270 2004-10-15 09:09  ravindra
11271
11272         * SizeGripStyle.cs: Enum for Form.
11273
11274 2004-10-15 09:08  ravindra
11275
11276         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11277           in Theme for ListView.
11278
11279 2004-10-15 09:06  ravindra
11280
11281         * ColumnHeader.cs: Flushing some formatting changes.
11282
11283 2004-10-15 09:05  ravindra
11284
11285         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11286           style.
11287
11288 2004-10-15 09:03  ravindra
11289
11290         * ListView.cs: Implemented Paint method and fixed coding style.
11291
11292 2004-10-15 07:34  jordi
11293
11294         * MenuAPI.cs: fix for X11
11295
11296 2004-10-15 07:32  ravindra
11297
11298         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11299                 - Renamed Paint() method to Draw() for clarity. Also, moved
11300                 DrawImage() to OnPaint().
11301
11302 2004-10-15 07:25  ravindra
11303
11304         * CheckBox.cs, RadioButton.cs:
11305                 - Removed Redraw (), we get it from ButtonBase.
11306                 - Implemented Paint (), to do class specific painting.
11307
11308 2004-10-15 07:16  ravindra
11309
11310         * ButtonBase.cs:
11311                 - Redraw () is not virtual now.
11312                 - Added an internal virtual method Paint (), so that
11313                 derived classes can do their painting on their own.
11314                 - Modified OnPaint () to call Paint ().
11315
11316 2004-10-15 06:43  jordi
11317
11318         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11319           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11320
11321 2004-10-15 00:30  ravindra
11322
11323         * MessageBox.cs:
11324                 - MessageBox on windows does not have min/max buttons.
11325                 This change in CreateParams fixes this on Windows. We
11326                 still need to implement this windowstyle behavior in
11327                 our X11 driver.
11328
11329 2004-10-14 05:14  ravindra
11330
11331         * ToolBar.cs:
11332                 - Changed Redraw () to do a Refresh () always.
11333                 - Fixed the MouseMove event handling when mouse is pressed,
11334                 ie drag event handling.
11335                 - Replaced the usage of ToolBarButton.Pressed property to
11336                 ToolBarButton.pressed internal variable.
11337
11338 2004-10-14 05:10  ravindra
11339
11340         * ToolBarButton.cs:
11341                 - Added an internal member 'inside' to handle mouse move
11342                 with mouse pressed ie mouse drag event.
11343                 - Changed 'Pressed' property to return true only when
11344                 'inside' and 'pressed' are both true.
11345                 - Some coding style love.
11346
11347 2004-10-14 00:17  ravindra
11348
11349         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11350           public method.
11351
11352 2004-10-14 00:15  ravindra
11353
11354         * ButtonBase.cs: Redraw () related improvements.
11355
11356 2004-10-14 00:14  ravindra
11357
11358         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11359           removed unnecessary calls to Button.Show () method.
11360
11361 2004-10-13 17:50  pbartok
11362
11363         * XplatUIX11.cs:
11364           - Formatting fix
11365           - Removed destroying of window until we solve the problem of X
11366             destroying the window before us on shutdown
11367
11368 2004-10-13 16:32  pbartok
11369
11370         * ButtonBase.cs:
11371           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11372
11373 2004-10-13 14:18  pbartok
11374
11375         * XplatUIX11.cs:
11376           - Added code to destroy the X window
11377
11378 2004-10-13 14:18  pbartok
11379
11380         * XplatUIWin32.cs:
11381           - Added code to destroy a window
11382
11383 2004-10-13 14:12  pbartok
11384
11385         * ButtonBase.cs:
11386           - Added the Redraw on Resize that got dropped in the last rev
11387
11388 2004-10-13 09:06  pbartok
11389
11390         * ThemeWin32Classic.cs:
11391           - Path from John BouAntoun:
11392             * Fix check rendering (centre correctly for normal style, offset
11393               correctly for FlatStyle).
11394             * Fix border color usage (use backcolor) for FlatStyle.Popup
11395             * Use checkbox.Capture instead of checkbox.is_pressed when
11396               rendering flatstyle states.
11397
11398 2004-10-12 21:48  pbartok
11399
11400         * ThemeWin32Classic.cs:
11401           - Removed all occurences of SystemColors and replaced them with the
11402             matching theme color
11403
11404 2004-10-12 21:41  pbartok
11405
11406         * ThemeWin32Classic.cs:
11407           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11408             him using the function for flatstyle drawing
11409           - Changed functions to use the new version of CPDrawBorder3D
11410
11411 2004-10-12 21:15  pbartok
11412
11413         * ControlPaint.cs:
11414           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11415             match MS documentation. They need to return defined colors if the
11416             passed color matches the configured control color. Thanks to John
11417             BouAntoun for pointing this out.
11418
11419 2004-10-12 20:57  pbartok
11420
11421         * Control.cs:
11422           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11423             color is changed
11424
11425 2004-10-12 20:46  pbartok
11426
11427         * CheckBox.cs:
11428           - Fix from John BouAntoun: Now properly sets the Appearance property
11429
11430 2004-10-12 20:45  pbartok
11431
11432         * ThemeWin32Classic.cs:
11433           - Fixes from John BouAntoun: now handles forecolors and backcolors
11434             for flatstyle rendered controls much better; It also fixes normal
11435             checkbox rendering when pushed or disabled.
11436
11437 2004-10-08 02:50  jordi
11438
11439         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11440           work
11441
11442 2004-10-07 08:56  jordi
11443
11444         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11445
11446 2004-10-06 03:59  jordi
11447
11448         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11449           XplatUIWin32.cs: removes warnings from compilation
11450
11451 2004-10-05 12:23  jackson
11452
11453         * RadioButton.cs: Fix ctor
11454
11455 2004-10-05 11:10  pbartok
11456
11457         * MessageBox.cs:
11458           - Partial implementation by Benjamin Dasnois
11459
11460 2004-10-05 10:15  jackson
11461
11462         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11463           by John BouAntoun
11464
11465 2004-10-05 03:07  ravindra
11466
11467         * ToolBar.cs:
11468                 - Removed a private method, Draw ().
11469                 - Fixed the ButtonDropDown event handling.
11470                 - Fixed MouseMove event handling.
11471
11472 2004-10-05 03:04  ravindra
11473
11474         * ThemeWin32Classic.cs:
11475                 - Added DrawListView method and ListViewDefaultSize property.
11476                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11477                 - Changed DOS style CRLF to Unix format (dos2unix).
11478
11479 2004-10-05 03:03  ravindra
11480
11481         * Theme.cs:
11482                 - Added DrawListView method and ListViewDefaultSize property.
11483
11484 2004-10-05 02:42  ravindra
11485
11486         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11487           clicks on DropDown arrow.
11488
11489 2004-10-04 22:56  jackson
11490
11491         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11492           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11493           Control handle the buffers, derived classes should not have to
11494           CreateBuffers themselves.
11495
11496 2004-10-04 21:20  jackson
11497
11498         * StatusBar.cs: The control handles resizing the buffers now.
11499
11500 2004-10-04 21:18  jackson
11501
11502         * Control.cs: When resizing the buffers should be invalidated. This
11503           should be handled in Control not in derived classes.
11504
11505 2004-10-04 14:45  jackson
11506
11507         * TabPage.cs: oops
11508
11509 2004-10-04 02:14  pbartok
11510
11511         * LeftRightAlignment.cs:
11512           - Initial check-in
11513
11514 2004-10-04 01:09  jordi
11515
11516         * ThemeWin32Classic.cs: fixes right button position causing right
11517           button not showing on horizontal scrollbars
11518
11519 2004-10-02 13:12  pbartok
11520
11521         * XplatUIX11.cs:
11522           - Simplified the Invalidate method by using an X call instead of
11523             generating the expose ourselves
11524           - Added an expose when the window background is changed
11525           - Implemented ClientToScreen method
11526
11527 2004-10-02 13:08  pbartok
11528
11529         * XplatUIWin32.cs:
11530           - Added Win32EnableWindow method (test for implementing modal
11531           dialogs)
11532           - Added ClientToScreen method and imports
11533
11534 2004-10-02 13:07  pbartok
11535
11536         * XplatUI.cs, XplatUIDriver.cs:
11537           - Added ClientToScreen coordinate translation method
11538
11539 2004-10-02 13:06  pbartok
11540
11541         * KeyPressEventArgs.cs:
11542           - Fixed access level for constructor
11543
11544 2004-10-02 13:06  pbartok
11545
11546         * NativeWindow.cs:
11547           - Changed access level for the window_collection hash table
11548
11549 2004-10-02 13:05  pbartok
11550
11551         * Form.cs:
11552           - Added KeyPreview property
11553           - Added Menu property (still incomplete, pending Jordi's menu work)
11554           - Implemented ProcessCmdKey
11555           - Implemented ProcessDialogKey
11556           - Implemented ProcessKeyPreview
11557
11558 2004-10-02 13:02  pbartok
11559
11560         * Control.cs:
11561           - Added private method to get the Control object from the window
11562           handle
11563           - Implemented ContextMenu property
11564           - Implemented PointToScreen
11565           - Implemented PreProcessMessage
11566           - Implemented IsInputChar
11567           - Implemented IsInputKey
11568           - Implemented ProcessCmdKey
11569           - Completed ProcessKeyEventArgs
11570           - Fixed message loop to call the proper chain of functions on key
11571           events
11572           - Implemented ProcessDialogChar
11573           - Implemented ProcessDialogKey
11574           - Implemented ProcessKeyMessage
11575           - Implemented ProcessKeyPreview
11576           - Added RaiseDragEvent stub (MS internal method)
11577           - Added RaiseKeyEvent stub (MS internal method)
11578           - Added RaiseMouseEvent stub (MS Internal method)
11579           - Added RaisePaintEvent stub (MS Internal method)
11580           - Added ResetMouseEventArgs stub (MS Internal method)
11581           - Implemented RtlTranslateAlignment
11582           - Implemented RtlTranslateContent
11583           - Implemented RtlTranslateHorizontal
11584           - Implemented RtlTranslateLeftRight
11585           - Added generation of KeyPress event
11586
11587 2004-10-02 05:57  ravindra
11588
11589         * ListViewItem.cs: Added attributes.
11590
11591 2004-10-02 05:32  ravindra
11592
11593         * ListView.cs: Added attributes.
11594
11595 2004-10-01 11:53  jackson
11596
11597         * Form.cs: Implement the Close method so work on MessageBox can
11598           continue.
11599
11600 2004-09-30 14:06  pbartok
11601
11602         * XplatUIX11.cs:
11603           - Bug fixes
11604
11605 2004-09-30 11:34  jackson
11606
11607         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11608
11609 2004-09-30 07:26  ravindra
11610
11611         * ListViewItemConverter.cs: Converter for ListViewItem.
11612
11613 2004-09-30 07:26  ravindra
11614
11615         * SortOrder.cs: Enum for ListView control.
11616
11617 2004-09-30 07:25  ravindra
11618
11619         * ColumnHeader.cs: Supporting class for ListView control.
11620
11621 2004-09-30 07:24  ravindra
11622
11623         * ListView.cs, ListViewItem.cs: Initial implementation.
11624
11625 2004-09-30 07:20  ravindra
11626
11627         * ItemActivation.cs: Enum for ListView Control.
11628
11629 2004-09-29 20:29  pbartok
11630
11631         * XplatUIX11.cs:
11632           - Added lookup of pixel value for background color; tries to get a
11633             color 'close' to the requested color, it avoids having to create a
11634             colormap.  Depending on the display this could mean the used color
11635             is slightly off the desired color. Might have to change it to a more
11636             resource intensive colormap approach, but it will work as a
11637           workaround to avoid red screens.
11638
11639 2004-09-29 14:27  jackson
11640
11641         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11642
11643 2004-09-28 12:44  pbartok
11644
11645         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11646           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11647           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11648           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11649           TrackBar.cs, VScrollBar.cs:
11650           - Streamlined Theme interfaces:
11651             * Each DrawXXX method for a control now is passed the object for
11652               the control to be drawn in order to allow accessing any state the
11653               theme might require
11654
11655             * ControlPaint methods for the theme now have a CP prefix to avoid
11656               name clashes with the Draw methods for controls
11657
11658             * Every control now retrieves it's DefaultSize from the current
11659             theme
11660
11661 2004-09-28 12:17  jackson
11662
11663         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11664           drawing
11665
11666 2004-09-24 14:57  jackson
11667
11668         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11669           Gives us a nice little performance boost.
11670
11671 2004-09-24 12:02  jackson
11672
11673         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11674           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11675           Control and supporting classes. Initial checkin
11676
11677 2004-09-23 13:08  jackson
11678
11679         * Form.cs: Temp build fixage
11680
11681 2004-09-23 01:39  ravindra
11682
11683         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11684           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11685           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11686           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11687           EventHandlers needed by ListView Control.
11688
11689 2004-09-22 14:12  pbartok
11690
11691         * ScrollableControl.cs:
11692           - Implemented DockPadding property
11693           - Implemented AutoScroll property
11694           - Implemented AutoScrollMargin property
11695           - Implemented AutoScrollMinSize property
11696           - Implemented AutoScrollPosition property
11697           - Implemented DisplayRectangle property (still incomplete)
11698           - Implemented CreateParams property
11699           - Implemented HScroll property
11700           - Implemented VScroll property
11701           - Implemented OnVisibleChanged property
11702
11703 2004-09-22 14:09  pbartok
11704
11705         * Form.cs:
11706           - Added Form.ControllCollection class
11707           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11708             RemoveOwnedForm (still incomplete, missing on-top and common
11709             minimize/maximize behaviour)
11710           - Added StartPosition property (still incomplete, does not use when
11711             creating the form)
11712           - Added ShowDialog() methods (still incomplete, missing forcing the
11713             dialog modal)
11714
11715 2004-09-22 14:05  pbartok
11716
11717         * Application.cs:
11718           - Added message loop for modal dialogs
11719
11720 2004-09-22 14:02  pbartok
11721
11722         * GroupBox.cs:
11723           - Fixed wrong types for events
11724
11725 2004-09-22 14:00  pbartok
11726
11727         * Shortcut.cs, FormWindowState.cs:
11728           - Fixed wrong values
11729
11730 2004-09-22 12:01  jackson
11731
11732         * Control.cs: Text is never null
11733
11734 2004-09-20 22:14  pbartok
11735
11736         * XplatUIWin32.cs:
11737           - Fixed accessibility level for Idle handler
11738
11739 2004-09-20 18:54  jackson
11740
11741         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11742           XplatUIX11.cs: New message loop that uses poll so we don't get a
11743           busy loop
11744
11745 2004-09-17 10:43  pbartok
11746
11747         * ScrollBar.cs:
11748           - Fixed behaviour of arrow buttons. Now properly behaves like
11749             Buttons (and like Microsoft's scrollbar arrow buttons)
11750
11751 2004-09-17 10:14  pbartok
11752
11753         * ScrollBar.cs:
11754           - Added missing release of keyboard/mouse capture
11755
11756 2004-09-17 06:18  jordi
11757
11758         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11759           Theme.cs: Very early menu support
11760
11761 2004-09-16 17:45  pbartok
11762
11763         * XplatUIWin32.cs:
11764           - Fixed sending a window to the front
11765           - Added overload for SetWindowPos to avoid casting
11766
11767 2004-09-16 17:44  pbartok
11768
11769         * Control.cs:
11770           - Added SendToBack and BringToFront methods
11771
11772 2004-09-16 07:00  ravindra
11773
11774         * Copyright: Added Novell URL.
11775
11776 2004-09-16 07:00  ravindra
11777
11778         * ToolBar.cs: Invalidate should be done before redrawing.
11779
11780 2004-09-15 21:19  ravindra
11781
11782         * ColumnHeaderStyle.cs: Enum for ListView Control.
11783
11784 2004-09-15 21:18  ravindra
11785
11786         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11787           ListView Control.
11788
11789 2004-09-13 18:26  jackson
11790
11791         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11792           properly
11793
11794 2004-09-13 18:13  jackson
11795
11796         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11797           a second thread and post messages into the main threads message
11798           queue. This makes timing much more consistent. Both win2K and XP
11799           have a minimum timer value of 15 milliseconds, so we now do this
11800           too.
11801
11802 2004-09-13 15:18  pbartok
11803
11804         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11805           XplatUIX11.cs:
11806           - Added Z-Ordering methods
11807
11808 2004-09-13 10:56  pbartok
11809
11810         * Form.cs:
11811           - Fixed #region names
11812           - Moved properties and methods into their proper #regions
11813
11814 2004-09-13 10:51  pbartok
11815
11816         * Form.cs:
11817           - Added Accept and CancelButton properties
11818           - Added ProcessDialogKey() method
11819
11820 2004-09-13 08:18  pbartok
11821
11822         * IWindowTarget.cs:
11823           - Initial check-in
11824
11825 2004-09-10 21:50  pbartok
11826
11827         * Control.cs:
11828           - Added DoDragDrop() [incomplete]
11829           - Properly implemented 'Visible' handling
11830           - Added SetVisibleCore()
11831           - Implemented FindChildAtPoint()
11832           - Implemented GetContainerControl()
11833           - Implemented Hide()
11834
11835 2004-09-10 19:28  pbartok
11836
11837         * Control.cs:
11838           - Moved methods into their appropriate #regions
11839           - Reordered methods within regions alphabetically
11840
11841 2004-09-10 18:57  pbartok
11842
11843         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11844           - Added method to retrieve text from window
11845
11846 2004-09-10 18:56  pbartok
11847
11848         * Control.cs:
11849           - Moved some internal functions into the internal region
11850           - Implemented FontHeight
11851           - Implemented RenderRightToLeft
11852           - Implemented ResizeRedraw
11853           - Implemented ShowFocusCues
11854           - Implemented ShowKeyboardCues
11855           - Implemented FromChildHandle
11856           - Implemented FromHandle
11857           - Implemented IsMnemonic
11858           - Implemented ReflectMessage
11859           - All public and protected Static Methods are now complete
11860
11861 2004-09-10 16:54  pbartok
11862
11863         * Control.cs:
11864           - Implemented remaining missing public instance properties
11865           - Alphabetized some out of order properties
11866
11867 2004-09-10 05:51  ravindra
11868
11869         * PictureBox.cs: Added a check for null image.
11870
11871 2004-09-10 00:59  jordi
11872
11873         * GroupBox.cs: remove cvs tag
11874
11875 2004-09-09 05:25  ravindra
11876
11877         * ToolBar.cs: Make redraw accessible from ToolBarButton.
11878
11879 2004-09-09 05:23  ravindra
11880
11881         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
11882           parent redraw.
11883
11884 2004-09-09 02:28  pbartok
11885
11886         * ThemeWin32Classic.cs:
11887           - Improve disabled string look
11888
11889 2004-09-09 01:15  jordi
11890
11891         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
11892           args and handler
11893
11894 2004-09-08 23:56  ravindra
11895
11896         * ItemBoundsPortion.cs: It's enum, not a class!
11897
11898 2004-09-08 23:47  ravindra
11899
11900         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
11901           Enums for Form.
11902
11903 2004-09-08 21:13  ravindra
11904
11905         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
11906           ListView control.
11907
11908 2004-09-08 21:03  ravindra
11909
11910         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
11911           avoid crash.
11912
11913 2004-09-08 21:01  ravindra
11914
11915         * ScrollableControl.cs: Removed unreachable code.
11916
11917 2004-09-08 06:45  jordi
11918
11919         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
11920
11921 2004-09-08 01:00  jackson
11922
11923         * XplatUIX11.cs: Only run the timers when updating the message
11924           queue. This effectively gives X messages a higher priority then
11925           timer messages. Timers still need love though
11926
11927 2004-09-07 14:01  jackson
11928
11929         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
11930           this for us and the handle is no longer valid.
11931
11932 2004-09-07 13:59  jackson
11933
11934         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
11935           loop that manages to not crash. TODO: Add poll and cleanup timers
11936
11937 2004-09-07 11:12  jordi
11938
11939         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
11940
11941 2004-09-07 03:40  jordi
11942
11943         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
11944           fixes, methods, multiple links
11945
11946 2004-09-06 06:55  jordi
11947
11948         * Control.cs: Caches ClientRectangle rectangle value
11949
11950 2004-09-05 02:03  jordi
11951
11952         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
11953           certain situations
11954
11955 2004-09-04 11:10  jordi
11956
11957         * Label.cs: Refresh when font changed
11958
11959 2004-09-02 16:24  pbartok
11960
11961         * Control.cs:
11962           - Added sanity check to creation of double buffer bitmap
11963
11964 2004-09-02 16:24  pbartok
11965
11966         * ButtonBase.cs:
11967           - Fixed selection of text color
11968           - Fixed handling of resize event; now properly recreates double
11969             buffering bitmap
11970           - Added missing assignment of TextAlignment
11971           - Added proper default for TextAlignment
11972
11973 2004-09-02 14:26  pbartok
11974
11975         * RadioButton.cs:
11976           - Added missing RadioButton.RadioButtonAccessibleObject class
11977
11978 2004-09-02 14:26  pbartok
11979
11980         * Control.cs:
11981           - Added missing Control.ControlAccessibleObject class
11982           - Started to implement Select()ion mechanisms, still very incomplete
11983
11984 2004-09-02 14:25  pbartok
11985
11986         * AccessibleObject.cs:
11987           - Added missing methods
11988
11989 2004-09-02 14:23  pbartok
11990
11991         * AccessibleNavigation.cs, AccessibleSelection.cs:
11992           - Initial check-in
11993
11994 2004-09-02 10:32  jordi
11995
11996         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
11997           pool for pens, brushes, and hatchbruses
11998
11999 2004-09-01 15:30  jackson
12000
12001         * StatusBar.cs: Fix typo
12002
12003 2004-09-01 14:44  pbartok
12004
12005         * RadioButton.cs:
12006           - Fixed state
12007
12008 2004-09-01 14:39  pbartok
12009
12010         * Button.cs, RadioButton.cs:
12011           - Functional initial check-in
12012
12013 2004-09-01 14:01  pbartok
12014
12015         * CheckBox.cs:
12016           - Added missing default
12017           - Added missing region mark
12018
12019 2004-09-01 09:10  jordi
12020
12021         * Label.cs: fixes method signatures, new methods, events, fixes
12022           autosize
12023
12024 2004-09-01 07:19  jordi
12025
12026         * Control.cs: Init string variables with an empty object
12027
12028 2004-09-01 04:20  jordi
12029
12030         * Control.cs: fires OnFontChanged event
12031
12032 2004-08-31 20:07  pbartok
12033
12034         * ButtonBase.cs:
12035           - Enabled display of strings
12036
12037 2004-08-31 20:05  pbartok
12038
12039         * Form.cs:
12040           - Added (partial) implementation of DialogResult; rest needs to be
12041             implemented when the modal loop code is done
12042
12043 2004-08-31 19:55  pbartok
12044
12045         * CheckBox.cs:
12046           - Fixed to match the removal of the needs_redraw concept
12047
12048 2004-08-31 19:55  pbartok
12049
12050         * ButtonBase.cs:
12051           - Removed the rather odd split between 'needs redraw' and redrawing
12052           - Now handles the events that require regeneration (ambient
12053             properties and size)
12054
12055 2004-08-31 19:41  pbartok
12056
12057         * Control.cs:
12058           - Added firing of BackColorChanged event
12059           - Added TopLevelControl property
12060           - Fixed handling of WM_ERASEBKGRND message
12061
12062 2004-08-31 12:49  pbartok
12063
12064         * ButtonBase.cs:
12065           - Removed debug
12066           - Minor fixes
12067
12068 2004-08-31 12:48  pbartok
12069
12070         * CheckBox.cs:
12071           - Finished (famous last words)
12072
12073 2004-08-31 04:35  jordi
12074
12075         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12076           scrolling bugs, adds new methods
12077
12078 2004-08-30 14:42  pbartok
12079
12080         * CheckBox.cs:
12081           - Implemented CheckBox drawing code
12082
12083 2004-08-30 14:42  pbartok
12084
12085         * ButtonBase.cs:
12086           - Made Redraw() and CheckRedraw() virtual
12087           - Improved mouse up/down/move logic to properly track buttons
12088
12089 2004-08-30 09:44  pbartok
12090
12091         * CheckBox.cs:
12092           - Updated to fix broken build. Not complete yet.
12093
12094 2004-08-30 09:28  pbartok
12095
12096         * CheckState.cs:
12097           - Initial checkin
12098
12099 2004-08-30 09:17  pbartok
12100
12101         * Appearance.cs:
12102           - Initial check-in
12103
12104 2004-08-27 16:12  ravindra
12105
12106         * ToolBarButton.cs: Added TypeConverter attribute.
12107
12108 2004-08-27 16:07  ravindra
12109
12110         * ImageIndexConverter.cs: Implemented.
12111
12112 2004-08-27 14:17  pbartok
12113
12114         * Control.cs:
12115           - Removed unneeded stack vars
12116           - First attempt to fix sizing issues when layout is suspended
12117
12118 2004-08-25 15:35  jordi
12119
12120         * ScrollBar.cs: more fixes to scrollbar
12121
12122 2004-08-25 14:04  ravindra
12123
12124         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12125           Added the missing divider code and grip for ToolBar Control.
12126
12127 2004-08-25 13:20  pbartok
12128
12129         * Control.cs:
12130           - Control now properly passes the ambient background color to child
12131             controls
12132
12133 2004-08-25 13:20  jordi
12134
12135         * ScrollBar.cs: small bug fix regarding bar position
12136
12137 2004-08-25 12:33  pbartok
12138
12139         * Timer.cs:
12140           - Now only calls SetTimer or KillTimer if the enabled state has
12141           changed
12142
12143 2004-08-25 12:33  pbartok
12144
12145         * XplatUIWin32.cs:
12146           - Fixed timer handling, now seems to work
12147           - Improved error message for window creation
12148
12149 2004-08-25 12:32  pbartok
12150
12151         * Control.cs:
12152           - Fixed generation of MouseUp message
12153
12154 2004-08-25 12:29  jordi
12155
12156         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12157           and fixes for progressbar
12158
12159 2004-08-24 18:43  ravindra
12160
12161         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12162           in ToolBar control.
12163
12164 2004-08-24 17:15  pbartok
12165
12166         * Panel.cs:
12167           - Added #region
12168           - Added missing events
12169           - Alphabetized
12170
12171 2004-08-24 17:14  pbartok
12172
12173         * StatusBar.cs, PictureBox.cs:
12174           - Now uses Control's CreateParams
12175
12176 2004-08-24 16:36  pbartok
12177
12178         * XplatUIX11.cs:
12179           - Fixed background color handling
12180           - Fixed sending of enter/leave events on a grab
12181
12182 2004-08-24 16:35  pbartok
12183
12184         * X11Structs.cs:
12185           - Refined definitions for CrossingEvent
12186
12187 2004-08-24 12:37  jordi
12188
12189         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12190           formmating, methods signature, and adds missing events
12191
12192 2004-08-24 12:24  jordi
12193
12194         * Control.cs: fire OnEnabledChanged event
12195
12196 2004-08-24 11:17  pbartok
12197
12198         * XplatUIWin32.cs:
12199           - Implemented SetTimer() and KillTimer()
12200
12201 2004-08-24 11:16  pbartok
12202
12203         * XplatUIX11.cs:
12204           - Now uses Remove instead of Add to kill the timer
12205
12206 2004-08-24 10:16  jackson
12207
12208         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12209           picture boxes in the theme now. Draw picture box borders and obey
12210           sizing modes
12211
12212 2004-08-24 05:49  jackson
12213
12214         * Timer.cs: Remove top secret debugging code
12215
12216 2004-08-24 05:34  jackson
12217
12218         * PictureBox.cs: Temp hack to make picture boxes draw their full
12219           image
12220
12221 2004-08-24 05:29  jackson
12222
12223         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12224           XplatUIX11.cs: Move timers to the driver level. On X they are
12225           queued by the driver and checked on idle.
12226
12227 2004-08-24 01:07  jackson
12228
12229         * XplatUIX11.cs: Use a queue for async messages instead of passing
12230           them as ClientMessages since that was totally broken. Also simply
12231           check for events and return an idle message if none are found. This
12232           gives us an idle handler, and prevents deadlocking when no messages
12233           are in the queue.
12234
12235 2004-08-23 18:19  ravindra
12236
12237         * XplatUIWin32.cs: Removed the unwanted destructor.
12238
12239 2004-08-23 17:27  pbartok
12240
12241         * ButtonBase.cs:
12242           - Finishing touches. Works now, just needs some optimizations.
12243
12244 2004-08-23 16:53  jordi
12245
12246         * ScrollBar.cs: small fix
12247
12248 2004-08-23 16:45  pbartok
12249
12250         * Application.cs:
12251           - Removed debug output
12252           - Simplifications
12253
12254 2004-08-23 16:43  jordi
12255
12256         * ScrollBar.cs: [no log message]
12257
12258 2004-08-23 16:10  pbartok
12259
12260         * Form.cs:
12261           - Fixed handling of WM_CLOSE message
12262           - Removed debug output
12263
12264 2004-08-23 16:09  pbartok
12265
12266         * Application.cs:
12267           - Added handling of Idle event
12268           - Added handling of form closing
12269           - Fixed reporting of MessageLoop property
12270           - Removed some unneeded code, should provide a bit of a speedup
12271
12272 2004-08-23 15:22  pbartok
12273
12274         * Control.cs:
12275           - Added InitLayout() method
12276           - Added code to properly perform layout when Anchor or Dock property
12277             is changed
12278           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12279             LAMESPEC, tried to do it in a way that makes sense
12280
12281 2004-08-23 14:10  jordi
12282
12283         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12284           properties and methods
12285
12286 2004-08-23 13:55  pbartok
12287
12288         * Control.cs:
12289           - Properly fixed Jordi's last fix
12290           - Now uses Cursor's Position property instead of calling XplatUI
12291           directly
12292
12293 2004-08-23 13:44  jordi
12294
12295         * PaintEventHandler.cs: Adding missing attribute
12296
12297 2004-08-23 13:39  pbartok
12298
12299         * Cursor.cs:
12300           - Implemented Position property
12301
12302 2004-08-23 13:39  pbartok
12303
12304         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12305           - Added method to move mouse cursor
12306
12307 2004-08-23 13:39  pbartok
12308
12309         * XplatUIX11.cs:
12310           - Fixed setting of background color
12311           - Added method to move mouse cursor
12312
12313 2004-08-23 13:16  jordi
12314
12315         * Control.cs: avoids null exception
12316
12317 2004-08-22 17:46  jackson
12318
12319         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12320           PictureBox
12321
12322 2004-08-22 17:40  jackson
12323
12324         * XplatUIX11.cs: Add some missing locks
12325
12326 2004-08-22 15:10  pbartok
12327
12328         * Control.cs, Form.cs:
12329           - Removed OverlappedWindow style from Control, instead it's default
12330             now is child
12331           - Made form windows OverlappedWindow by default
12332
12333 2004-08-22 13:34  jackson
12334
12335         * ScrollBar.cs: Update the position through the Value property so
12336           the OnValueChanged event is raised.
12337
12338 2004-08-22 12:04  pbartok
12339
12340         * SWF.csproj:
12341           - Added Cursor.cs and UserControl.cs
12342
12343 2004-08-22 12:03  pbartok
12344
12345         * Cursor.cs:
12346           - Started implementation, not usable yet
12347
12348 2004-08-22 12:00  pbartok
12349
12350         * UserControl.cs:
12351           - Implemented UserControl (complete)
12352
12353 2004-08-21 19:20  ravindra
12354
12355         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12356
12357 2004-08-21 18:49  ravindra
12358
12359         * ToolBar.cs: Probably this completes the missing attributes in
12360           toolbar control.
12361
12362 2004-08-21 18:03  ravindra
12363
12364         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12365           Fixed toolbar control signatures.
12366
12367 2004-08-21 16:32  pbartok
12368
12369         * LinkLabel.cs:
12370           - Signature Fixes
12371
12372 2004-08-21 16:30  pbartok
12373
12374         * Label.cs:
12375           - Signature fixes
12376
12377 2004-08-21 16:19  pbartok
12378
12379         * Control.cs, Label.cs:
12380           - Signature fixes
12381
12382 2004-08-21 15:57  pbartok
12383
12384         * ButtonBase.cs:
12385           - Added loads of debug output for development
12386           - Fixed typo in method name
12387
12388 2004-08-21 15:52  pbartok
12389
12390         * ToolBarButtonClickEventArgs.cs:
12391           - Added missing base class
12392
12393 2004-08-21 14:53  pbartok
12394
12395         * Control.cs:
12396           - Updated to match new GrabWindow signature
12397
12398 2004-08-21 14:51  pbartok
12399
12400         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12401           - Added method to get default display size
12402
12403 2004-08-21 14:23  pbartok
12404
12405         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12406           - Added method to query current grab state
12407           - Added argument to allow confining a grab to a window
12408
12409 2004-08-21 14:22  pbartok
12410
12411         * Keys.cs:
12412           - Added [Flags] attribute so that modifiers can be used in bitwise
12413           ops
12414
12415 2004-08-21 14:21  pbartok
12416
12417         * TrackBar.cs, ScrollBar.cs:
12418           - Replaced direct XplatUI calls with their Control counterpart
12419
12420 2004-08-21 13:32  pbartok
12421
12422         * Control.cs:
12423           - Implemented Created property
12424
12425 2004-08-21 13:28  pbartok
12426
12427         * Control.cs:
12428           - Implemented ContainsFocus
12429
12430 2004-08-21 13:26  pbartok
12431
12432         * Control.cs:
12433           - Implemented CausesValidation
12434
12435 2004-08-21 13:21  pbartok
12436
12437         * Control.cs:
12438           - Implemented CanFocus
12439           - Implemented CanSelect
12440           - Implemented Capture
12441
12442 2004-08-21 12:35  pbartok
12443
12444         * XplatUIWin32.cs:
12445           - Fixed bug with Async message handling
12446           - Implemented getting the ModifierKeys
12447
12448 2004-08-21 12:32  jackson
12449
12450         * AsyncMethodResult.cs: Make sure we have the mutex before we
12451           release it. Fixes BeginInvoke on windows
12452
12453 2004-08-21 11:31  pbartok
12454
12455         * XplatUIWin32.cs, XplatUIX11.cs:
12456           - Drivers now return proper mouse state
12457
12458 2004-08-21 10:54  jackson
12459
12460         * Control.cs: Implement EndInvoke
12461
12462 2004-08-21 10:48  jackson
12463
12464         * Timer.cs: Remove unneeded finalizer
12465
12466 2004-08-20 19:52  ravindra
12467
12468         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12469           in mouse event handling in the ToolBar control.
12470
12471 2004-08-20 19:50  ravindra
12472
12473         * ImageList.cs: Changed draw method to use the arguments passed in
12474           to draw the image.
12475
12476 2004-08-20 18:58  pbartok
12477
12478         * XplatUIStructs.cs:
12479           - Added private message for async communication
12480
12481 2004-08-20 17:38  ravindra
12482
12483         * Control.cs: Made RightToLeft property virtual and removed a
12484           Console.WriteLine.
12485
12486 2004-08-20 14:39  jordi
12487
12488         * ThemeGtk.cs: use style_attach
12489
12490 2004-08-20 14:39  pbartok
12491
12492         * XplatUIWin32.cs:
12493           - Added jackson's Async code from X11 to Win32
12494
12495 2004-08-20 14:09  pbartok
12496
12497         * SWF.csproj:
12498           - Added all new files
12499
12500 2004-08-20 14:09  pbartok
12501
12502         * Control.cs:
12503           - Added call to set window background color
12504
12505 2004-08-20 14:03  pbartok
12506
12507         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12508           - Added method for setting the window background
12509
12510 2004-08-20 14:02  pbartok
12511
12512         * XplatUIWin32.cs:
12513           - Added method for setting the background color
12514           - Added handling for erasing the window background
12515
12516 2004-08-20 13:45  jordi
12517
12518         * TrackBar.cs: fixes timer, new properties and methods
12519
12520 2004-08-20 13:34  jackson
12521
12522         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12523           correct thread
12524
12525 2004-08-20 13:22  jackson
12526
12527         * Timer.cs: Timer Tick events are now handed through Controls Async
12528           mechanism so the callbacks are executed in the same thread as X
12529
12530 2004-08-20 13:19  jackson
12531
12532         * XplatUIDriver.cs: Expose functionality to send async messages
12533           through the driver
12534
12535 2004-08-20 13:18  jackson
12536
12537         * Control.cs: Implement Begininvoke
12538
12539 2004-08-20 13:14  jackson
12540
12541         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12542           messages through the driver
12543
12544 2004-08-20 13:12  jackson
12545
12546         * XplatUIX11.cs: Lock before all X operations. Also added Async
12547           method functionality through XSendEvent
12548
12549 2004-08-20 13:11  jackson
12550
12551         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12552           This will screw up on 64 bit systems)
12553
12554 2004-08-20 13:10  jackson
12555
12556         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12557           Async messages through X/Win32
12558
12559 2004-08-19 19:39  pbartok
12560
12561         * XplatUIX11.cs:
12562           - Updated code to match new HandleData.DeviceContext type
12563
12564 2004-08-19 19:38  pbartok
12565
12566         * HandleData.cs:
12567           - Made DeviceContext a generic object to allow usage from various
12568           drivers
12569           - Added support for queueing Windows messages
12570
12571 2004-08-19 19:37  pbartok
12572
12573         * XplatUIWin32.cs:
12574           - Added generation of MouseEnter, MouseLeave and MouseHover events
12575           - Added cleanup on EndPaint
12576
12577 2004-08-19 19:17  pbartok
12578
12579         * Control.cs:
12580           - Added handling of WM_MOUSEHOVER
12581           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12582           code
12583
12584 2004-08-19 18:55  jordi
12585
12586         * ThemeGtk.cs: fixes button order
12587
12588 2004-08-19 18:12  jordi
12589
12590         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12591
12592 2004-08-19 17:09  pbartok
12593
12594         * Control.cs:
12595           - Added Right property
12596           - Added RightToLeft property
12597
12598 2004-08-19 16:27  jordi
12599
12600         * ThemeGtk.cs: experimental GTK theme support
12601
12602 2004-08-19 16:26  jordi
12603
12604         * ITheme.cs, Theme.cs: move themes from an interface to a class
12605
12606 2004-08-19 16:25  jordi
12607
12608         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12609           theme enhancaments
12610
12611 2004-08-19 16:04  pbartok
12612
12613         * XplatUIX11.cs:
12614           - Added colormap basics
12615           - Added a way to re-initialize with a different display handle
12616           - Fixed setting of the window background color
12617           - Added various X11 imports related to colors and colormaps
12618
12619 2004-08-19 15:51  pbartok
12620
12621         * X11Structs.cs:
12622           - Removed packing hints (Paolo suggested this a while back)
12623           - fixed colormap type
12624           - Added default Atom types
12625           - Added Screen and color structs and enums
12626
12627 2004-08-19 15:39  pbartok
12628
12629         * ImageList.cs:
12630           - Added missing Draw() method
12631           - Added missing RecreateHandle event
12632
12633 2004-08-19 15:30  pbartok
12634
12635         * Form.cs:
12636           - Added handling of WM_CLOSE
12637
12638 2004-08-18 13:16  jordi
12639
12640         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12641           a table
12642
12643 2004-08-18 09:56  jordi
12644
12645         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12646
12647 2004-08-17 15:31  ravindra
12648
12649         * SWF.csproj: Updated project.
12650
12651 2004-08-17 15:25  pbartok
12652
12653         * Control.cs:
12654           - Drawing improvement; don't call UpdateBounds if we are not visible
12655             (or have been minimized)
12656
12657 2004-08-17 15:24  pbartok
12658
12659         * XplatUIWin32.cs:
12660           - Finished IsVisible
12661           - Added Win32GetWindowPlacement
12662
12663 2004-08-17 15:08  jackson
12664
12665         * Panel.cs: Initial checkin of the Panel
12666
12667 2004-08-17 14:25  pbartok
12668
12669         * Control.cs:
12670           - Fixed broken handling of default window sizes
12671
12672 2004-08-17 13:29  jackson
12673
12674         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12675           has a large startup time.
12676
12677 2004-08-17 10:25  jackson
12678
12679         * HandleData.cs: union areas properly
12680
12681 2004-08-17 10:12  jackson
12682
12683         * HandleData.cs: union areas properly
12684
12685 2004-08-16 20:00  ravindra
12686
12687         * ToolBar.cs, ToolBarButton.cs: Added attributes.
12688
12689 2004-08-16 18:48  ravindra
12690
12691         * ToolBar.cs: Added attributes.
12692
12693 2004-08-16 17:17  ravindra
12694
12695         * SWF.csproj: Updated project.
12696
12697 2004-08-16 17:16  jackson
12698
12699         * XplatUIX11.cs: Check for more expose events before sending a
12700           WM_PAINT so they can all be grouped together. This makes dragging a
12701           window across another window redraw in a sane way.
12702
12703 2004-08-16 15:47  pbartok
12704
12705         * Control.cs:
12706           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12707             support OnMouseEnter/Leave()
12708           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12709             exposure handling
12710
12711 2004-08-16 15:46  pbartok
12712
12713         * XplatUIStructs.cs, XplatUIX11.cs:
12714           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12715           OnMouseEnter/Leave()
12716
12717 2004-08-16 15:34  jackson
12718
12719         * XplatUIX11.cs: Group multiple expose events in HandleData, make
12720           sure messages get the message field set to WM_NULL if they are not
12721           handled.
12722
12723 2004-08-16 15:24  jackson
12724
12725         * HandleData.cs: HandleData is used for storing message information
12726           for window handles
12727
12728 2004-08-15 17:23  ravindra
12729
12730         * ColorDepth.cs: Added attribute.
12731
12732 2004-08-15 17:23  ravindra
12733
12734         * SWF.csproj: Updated project for ToolBar Control.
12735
12736 2004-08-15 17:20  ravindra
12737
12738         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12739           control and also dos2unix format.
12740
12741 2004-08-15 17:13  ravindra
12742
12743         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12744           ToolBarButtonClickEventArgs.cs,
12745           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12746           ToolBarTextAlign.cs: First Implementation of ToolBar control.
12747
12748 2004-08-15 15:31  pbartok
12749
12750         * ButtonBase.cs:
12751           - First (mostly) working version
12752
12753 2004-08-13 16:15  pbartok
12754
12755         * Control.cs:
12756           - Fixed Anchor default
12757
12758 2004-08-13 15:43  pbartok
12759
12760         * Control.cs:
12761           - Changed GetCursorPos signature
12762
12763 2004-08-13 15:42  pbartok
12764
12765         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12766           - Changed signature for GetCursorPos
12767
12768 2004-08-13 15:25  pbartok
12769
12770         * XplatUIX11.cs:
12771           - Cleanup
12772           - Fixed resizing/exposure handling
12773
12774 2004-08-13 15:22  jordi
12775
12776         * ThemeWin32Classic.cs: removes redundant code and fixes issues
12777           with tickposition
12778
12779 2004-08-13 14:55  jordi
12780
12781         * TrackBar.cs: change from wndproc to events
12782
12783 2004-08-13 13:00  jordi
12784
12785         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12786           XplatUIX11.cs: implements PointToClient (ScreenToClient)
12787
12788 2004-08-13 12:53  pbartok
12789
12790         * XplatUIWin32.cs:
12791           - Changed GetWindowPos to also provide client area size
12792           - Fixed broken prototypes for several win32 functions
12793
12794 2004-08-13 12:53  pbartok
12795
12796         * XplatUI.cs, XplatUIDriver.cs:
12797           - Changed GetWindowPos to also provide client area size
12798
12799 2004-08-13 12:52  pbartok
12800
12801         * XplatUIX11.cs:
12802           - Added generation of WM_POSCHANGED
12803           - Changed GetWindowPos to also provide client area size
12804
12805 2004-08-13 12:52  pbartok
12806
12807         * Control.cs:
12808           - Added Dispose() and destructor
12809           - Fixed resizing and bounds calculation
12810           - Fixed Layout
12811           - Added memory savings for invisible windows
12812
12813 2004-08-13 12:46  jordi
12814
12815         * TrackBar.cs: adds timer and grap window
12816
12817 2004-08-13 10:25  jackson
12818
12819         * Timer.cs: SWF Timer
12820
12821 2004-08-12 16:59  pbartok
12822
12823         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12824           - Implemented method to get current mouse position
12825
12826 2004-08-12 14:29  jordi
12827
12828         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12829           enhancement, fix mouse problems, highli thumb, etc
12830
12831 2004-08-12 13:31  pbartok
12832
12833         * Control.cs:
12834           - Fixed Anchoring bugs
12835
12836 2004-08-12 13:01  jackson
12837
12838         * StatusBar.cs: Don't forget things
12839
12840 2004-08-12 12:54  jackson
12841
12842         * ThemeWin32Classic.cs: Handle owner draw status bars
12843
12844 2004-08-12 12:54  jackson
12845
12846         * StatusBar.cs: Implement missing properties, events, and methods.
12847           Handle mouse clicking
12848
12849 2004-08-12 10:19  jackson
12850
12851         * StatusBarPanelClickEventArgs.cs,
12852           StatusBarPanelClickEventHandler.cs: Classes for handling status
12853           bar panel click events
12854
12855 2004-08-12 10:10  jackson
12856
12857         * Control.cs: Add missing properties
12858
12859 2004-08-12 09:46  pbartok
12860
12861         * BindingsManagerBase.cs:
12862           - Name changed to BindingManagerBase.cs
12863
12864 2004-08-12 09:25  jordi
12865
12866         * ScrollableControl.cs: calls ctrlbase instead of exeception
12867
12868 2004-08-11 16:28  pbartok
12869
12870         * InputLanguageChangingEventArgs.cs:
12871           - Never check in before compiling. Fixes the last check-in
12872
12873 2004-08-11 16:26  pbartok
12874
12875         * InputLanguageChangingEventArgs.cs:
12876           - More signature fixes
12877
12878 2004-08-11 16:20  pbartok
12879
12880         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
12881           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
12882           ImageListStreamer.cs, InputLanguage.cs,
12883           InputLanguageChangedEventArgs.cs,
12884           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
12885           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
12886           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
12887           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12888           - Signature fixes
12889
12890 2004-08-11 16:16  pbartok
12891
12892         * Application.cs:
12893           - Fixed Signature
12894           - Added .Net 1.1 method
12895
12896 2004-08-11 15:25  pbartok
12897
12898         * SWF.csproj:
12899           - Fixed BindingManagerBase.cs filename
12900
12901 2004-08-11 15:22  pbartok
12902
12903         * BindingManagerBase.cs:
12904           - Was checked in with wrong filename
12905
12906 2004-08-11 14:50  pbartok
12907
12908         * SWF.csproj:
12909           - Updated
12910
12911 2004-08-11 13:41  jordi
12912
12913         * XplatUIWin32.cs: Fixes ClientRect
12914
12915 2004-08-11 13:19  pbartok
12916
12917         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12918           XplatUIX11.cs:
12919           - We had SetWindowPos and MoveWindow to set window positions and
12920             size, removed MoveWindow. We have GetWindowPos, so it made sense to
12921             keep SetWindowPos as matching counterpart
12922           - Added some X11 sanity checking
12923
12924 2004-08-11 12:59  pbartok
12925
12926         * Control.cs:
12927           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
12928             (It seems that SetBounds is just a front for SetBoundsCore and
12929              SetBoundsCore updates the underlying window system and
12930              UpdateBounds is responsible for updating the variables associated
12931              with the Control and sending the events)
12932           - Major cleanup of Size handling; we now have two sizes, client_size
12933             and bounds. Bounds defines the window with decorations, client_size
12934             without them.
12935
12936 2004-08-11 12:55  pbartok
12937
12938         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12939           - Added method to calculate difference between decorated window and
12940             raw client area
12941
12942 2004-08-11 12:54  pbartok
12943
12944         * Label.cs:
12945           - Forcing redraw on resize
12946
12947 2004-08-11 11:43  pbartok
12948
12949         * ImageList.cs:
12950           - Removed disposing of the actual images when the list is disposed
12951
12952 2004-08-11 09:13  pbartok
12953
12954         * Control.cs:
12955           - Now properly reparents windows
12956
12957 2004-08-11 08:37  pbartok
12958
12959         * Control.cs:
12960           - Duh!
12961
12962 2004-08-11 07:47  pbartok
12963
12964         * Control.cs:
12965           - Rewrote the collection stuff. Might not be as fast now, not
12966             keeping the number of children around and accessible directly, but
12967             it's more straightforward
12968
12969 2004-08-11 07:44  pbartok
12970
12971         * AccessibleObject.cs:
12972           - Fixed to match ControlCollection rewrite
12973
12974 2004-08-11 07:43  pbartok
12975
12976         * ImageList.cs:
12977           - Added missing creation of the collection list
12978
12979 2004-08-10 20:08  jackson
12980
12981         * StatusBar.cs: Get the paint message from WndProc
12982
12983 2004-08-10 19:31  jackson
12984
12985         * ThemeWin32Classic.cs: Create Brushes as little as possible
12986
12987 2004-08-10 19:20  jackson
12988
12989         * UICues.cs: Add Flags attribute
12990
12991 2004-08-10 19:19  jackson
12992
12993         * StatusBarPanel.cs: Signature cleanup
12994
12995 2004-08-10 19:10  jackson
12996
12997         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
12998           Initial implementation of status bar item drawing
12999
13000 2004-08-10 17:27  jordi
13001
13002         * TrackBar.cs: add missing methods, properties, and restructure to
13003           hide extra ones
13004
13005 2004-08-10 16:24  jackson
13006
13007         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13008           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13009           attribute
13010
13011 2004-08-10 13:21  jordi
13012
13013         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13014           enhancements and standarize on win colors defaults
13015
13016 2004-08-10 12:52  jackson
13017
13018         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13019           ThemeWin32Classic.cs: Implement DrawItem functionality
13020
13021 2004-08-10 12:47  jordi
13022
13023         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13024
13025 2004-08-10 12:32  jordi
13026
13027         * Control.cs: throw ontextchange event
13028
13029 2004-08-10 11:43  pbartok
13030
13031         * Control.cs:
13032           - Added more to the still unfinished Dock/Anchor layout code
13033
13034 2004-08-10 11:39  pbartok
13035
13036         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13037           - Added GetWindowPos method
13038
13039 2004-08-10 11:36  pbartok
13040
13041         * XplatUIWin32.cs:
13042           - Implemented several methods
13043
13044 2004-08-10 09:47  jackson
13045
13046         * TrackBar.cs: Allow control to handle buffering
13047
13048 2004-08-10 09:41  jackson
13049
13050         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13051
13052 2004-08-10 09:24  jackson
13053
13054         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13055
13056 2004-08-10 09:09  jackson
13057
13058         * StatusBar.cs: Let Control handle all the buffering.
13059
13060 2004-08-10 09:08  jackson
13061
13062         * Control.cs: Control will now handle the buffering code, so each
13063           control does not have to implement this.
13064
13065 2004-08-10 08:34  jackson
13066
13067         * XplatUIDriver.cs: Use default colors from the theme
13068
13069 2004-08-09 17:12  pbartok
13070
13071         * ImageList.cs:
13072           - Fixed several bugs Ravindra pointed out
13073
13074 2004-08-09 16:11  pbartok
13075
13076         * Control.cs:
13077           - Added incomplete dock layout code
13078           - Added support for mouse wheel
13079
13080 2004-08-09 16:09  pbartok
13081
13082         * XplatUIX11.cs:
13083           - Added handling for middle and right mousebutton
13084           - Added handling for mouse wheel
13085           - Added handling for key state and mouse state and position
13086           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13087           messages
13088
13089 2004-08-09 15:40  jackson
13090
13091         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13092           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13093           checkin
13094
13095 2004-08-09 15:37  jackson
13096
13097         * StatusBar.cs: Initial implementation of StatusBar
13098
13099 2004-08-09 15:36  jackson
13100
13101         * ITheme.cs: Add support for drawing status bar and getting status
13102           bar item sizes
13103
13104 2004-08-09 15:35  pbartok
13105
13106         * MouseButtons.cs:
13107           - Fixed values
13108
13109 2004-08-09 15:34  jackson
13110
13111         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13112           status bar item sizes
13113
13114 2004-08-09 15:21  jackson
13115
13116         * ThemeWin32Classic.cs: Use known colors for default control
13117           colours
13118
13119 2004-08-09 15:12  jackson
13120
13121         * ThemeWin32Classic.cs: Make the default font static, it is static
13122           in control so this doesn't change functionality and creating fonts
13123           is sloooooow.
13124
13125 2004-08-09 14:56  pbartok
13126
13127         * X11Structs.cs:
13128           - Added GrabMode enum
13129
13130 2004-08-09 14:55  pbartok
13131
13132         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13133           - Removed Run method, was only required for initial development
13134
13135 2004-08-09 14:51  pbartok
13136
13137         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13138           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13139           capture
13140
13141 2004-08-09 13:48  pbartok
13142
13143         * XplatUIX11.cs:
13144           - Fixed default sizing for child windows
13145
13146 2004-08-09 12:56  pbartok
13147
13148         * XplatUIX11.cs:
13149           - Added generation of WM_DESTROY message
13150           - Added handling of window manager induced shutdown
13151
13152 2004-08-09 11:31  jackson
13153
13154         * ThemeWin32Classic.cs: New names for control properties
13155
13156 2004-08-09 11:25  jackson
13157
13158         * Control.cs: Use new color names
13159
13160 2004-08-09 11:02  jackson
13161
13162         * XplatUI.cs: Get default window properties from the theme
13163
13164 2004-08-09 11:01  jackson
13165
13166         * ITheme.cs: The theme engine now controls default window
13167           properties
13168
13169 2004-08-09 11:00  jackson
13170
13171         * ThemeWin32Classic.cs: Add default window color properties
13172
13173 2004-08-09 10:17  jackson
13174
13175         * ThemeWin32Classic.cs: Use correct default back color
13176
13177 2004-08-09 10:05  jackson
13178
13179         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13180           the theme now.
13181
13182 2004-08-09 09:56  jackson
13183
13184         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13185
13186 2004-08-09 09:54  jackson
13187
13188         * Control.cs: Get default properties from the theme.
13189
13190 2004-08-09 09:53  jackson
13191
13192         * ITheme.cs: Themes now handle default control properties
13193
13194 2004-08-09 09:53  jackson
13195
13196         * ThemeWin32Classic.cs: Themes now handle default control
13197           properties so coloring will be consistent
13198
13199 2004-08-08 16:54  jordi
13200
13201         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13202
13203 2004-08-08 15:08  jordi
13204
13205         * XplatUIX11.cs: fixes keyboard crash
13206
13207 2004-08-08 13:47  jordi
13208
13209         * Label.cs: add cvs header info
13210
13211 2004-08-08 12:09  jackson
13212
13213         * ThemeWin32Classic.cs: Add pen_buttonface
13214
13215 2004-08-08 11:52  jordi
13216
13217         * Label.cs, LinkLabel.cs: [no log message]
13218
13219 2004-08-08 11:34  jordi
13220
13221         * ThemeWin32Classic.cs: Use Windows Standard Colours
13222
13223 2004-08-07 17:32  jordi
13224
13225         * TrackBar.cs: throw exceptions of invalid enums values
13226
13227 2004-08-07 17:31  jordi
13228
13229         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13230           draw method name
13231
13232 2004-08-07 16:56  jackson
13233
13234         * HorizontalAlignment.cs: Initial checkin
13235
13236 2004-08-07 13:16  jordi
13237
13238         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13239           methods
13240
13241 2004-08-07 13:05  jordi
13242
13243         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13244           GetSysColor defines
13245
13246 2004-08-06 18:01  pbartok
13247
13248         * ThemeWin32Classic.cs:
13249           - Fixed some rounding issues with float/int
13250
13251 2004-08-06 18:00  jackson
13252
13253         * DockStyle.cs, AnchorStyles.cs:
13254
13255                   Add flags and serializable attributes.
13256
13257 2004-08-06 17:46  pbartok
13258
13259         * XplatUIX11.cs:
13260           - Implemented GetParent
13261
13262 2004-08-06 17:18  pbartok
13263
13264         * TrackBar.cs:
13265           - Fixed some rounding issues with float/int
13266
13267 2004-08-06 17:17  pbartok
13268
13269         * X11Structs.cs, XplatUIX11.cs:
13270           - Fixed Refresh and Invalidate
13271
13272 2004-08-06 15:30  pbartok
13273
13274         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13275           - Fixed recursive loop when resizing
13276           - Improved/fixed redrawing on expose messages
13277
13278 2004-08-06 09:53  jordi
13279
13280         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13281           keyboard navigation
13282
13283 2004-08-06 08:02  pbartok
13284
13285         * X11Structs.cs, XplatUIX11.cs:
13286           - Fixed reparenting
13287           - Fixed window border creation
13288
13289 2004-08-05 15:38  pbartok
13290
13291         * XplatUIX11.cs:
13292           - Attempted fix for reparenting problems
13293
13294 2004-08-04 15:14  pbartok
13295
13296         * Control.cs:
13297           - Fixed Invalidation bug (calculated wrong client area)
13298           - Added ClientSize setter
13299
13300 2004-08-04 15:13  pbartok
13301
13302         * Form.cs:
13303           - Added AutoScale properties
13304
13305 2004-08-04 15:13  pbartok
13306
13307         * SWF.csproj:
13308           - Added latest files
13309
13310 2004-08-04 14:11  pbartok
13311
13312         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13313           XplatUIX11.cs:
13314           - Added Invalidate handling
13315
13316 2004-08-03 17:09  jordi
13317
13318         * XplatUIDriver.cs: fixes spelling mistake
13319
13320 2004-07-27 09:53  jordi
13321
13322         * TrackBar.cs: fixes trackbar events, def classname, methods
13323           signature
13324
13325 2004-07-27 09:29  jordi
13326
13327         * ScrollBar.cs: fixes scrollbar events
13328
13329 2004-07-27 04:38  jordi
13330
13331         * Control.cs: changes to be able to run winforms samples
13332
13333 2004-07-26 11:42  jordi
13334
13335         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13336           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13337
13338 2004-07-26 05:41  jordi
13339
13340         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13341           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13342           implementation
13343
13344 2004-07-22 09:22  jordi
13345
13346         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13347           check link overlapping, implement events, and fixes
13348
13349 2004-07-21 10:28  jordi
13350
13351         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13352
13353 2004-07-21 10:19  jordi
13354
13355         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13356           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13357           LinkLabelLinkClickedEventArgs.cs,
13358           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13359           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13360           implementation
13361
13362 2004-07-19 13:09  jordi
13363
13364         * Control.cs, Label.cs: label control re-written: added missing
13365           functionlity, events, and properties
13366
13367 2004-07-19 10:49  jordi
13368
13369         * Control.cs: fixes SetBounds logic
13370
13371 2004-07-19 01:29  jordi
13372
13373         * Control.cs: Call RefreshWindow only if the window has created
13374
13375 2004-07-15 14:05  pbartok
13376
13377         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13378           - Implemented ImageList and ImageList.ImageCollection classes
13379           - Added ColorDepth enumeration
13380           - Updated SWF VS.Net project
13381
13382 2004-07-15 11:06  jordi
13383
13384         * XplatUIStructs.cs: added MsgButons enum
13385
13386 2004-07-15 11:03  jordi
13387
13388         * Control.cs: added basic mouse handeling events
13389
13390 2004-07-15 03:38  jordi
13391
13392         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13393           Vertical TrackBar control implementation
13394
13395 2004-07-13 09:33  jordi
13396
13397         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13398
13399 2004-07-13 09:31  jordi
13400
13401         * Control.cs, Form.cs: commit: new properties and fixes form size
13402           problems
13403
13404 2004-07-09 14:13  miguel
13405
13406         * ProgressBar.cs: Spelling
13407
13408 2004-07-09 11:25  pbartok
13409
13410         * ProgressBar.cs:
13411           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13412           faster
13413
13414 2004-07-09 11:17  miguel
13415
13416         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13417
13418                 * ProgressBar.cs: Fixed spelling for `block'
13419
13420                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13421                 style guidelines.
13422
13423                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13424
13425 2004-07-08 23:21  pbartok
13426
13427         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13428           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13429           BaseCollection.cs, Binding.cs, BindingContext.cs,
13430           BindingMemberInfo.cs, BindingsCollection.cs,
13431           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13432           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13433           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13434           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13435           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13436           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13437           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13438           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13439           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13440           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13441           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13442           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13443           InputLanguageChangedEventArgs.cs,
13444           InputLanguageChangedEventHandler.cs,
13445           InputLanguageChangingEventArgs.cs,
13446           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13447           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13448           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13449           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13450           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13451           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13452           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13453           QueryAccessibilityHelpEventArgs.cs,
13454           QueryAccessibilityHelpEventHandler.cs,
13455           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13456           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13457           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13458           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13459           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13460           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13461           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13462           XplatUIX11.cs, lang.cs:
13463           - Initial check-in
13464