2006-05-23 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
2
3         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
4           a reference to the hwnd and will not remove it unless there are
5           no pending exposures (fixes #78341)
6         * XplatUI.cs: Improved debug
7
8 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
9
10         * MenuAPI.cs : don't handle OnClick event when it was not the left
11           button. Fixed bug #78487.
12
13 2006-05-23  Mike Kestner  <mkestner@novell.com>
14
15         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
16         prefer submenus to the top menu for item lookup, to avoid popping down
17         top-row items.
18
19 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
20
21         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22           Graphics.FillRectangle as the visual results are really bad (even
23           on win). We now draw perfect arrows (and perfect shadows when the
24           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
25           Pen.DashPattern to draw the dots of each line.
26
27 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
28
29         * FileDialog.cs: Update the filename combobox when navigating through
30           the ListView with the cursor keys. Fixes part 7 of bug #78446.
31
32 2006-05-22  Mike Kestner  <mkestner@novell.com>
33
34         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
35         Fixes #78463.
36
37 2006-05-22  Mike Kestner  <mkestner@novell.com>
38
39         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
40         requests. Fix a misspelled parameter and a copy paste exception error
41         in Select.
42
43 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
44
45         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
46           to get the same width/height (5/13) on X11 as the default font has on
47           win32. This means that our DefaultFont emSize is smaller than the 
48           the MS SWF equivalent (even thought the width/height stays the same)
49
50 2006-05-20  Jackson Harper  <jackson@ximian.com>
51
52         * MdiClient.cs:
53         * MdiWindowManager.cs:
54         * InternalWindowManager.cs: Make sure to use the border width from
55         the theme.
56
57 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
58
59         * PrintDialog.cs: Implements printer details
60
61 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
62
63         * FileDialog.cs: Added focus handling for PopupButtonPanel.
64           Fixes part 1 and 2 of bug #78446
65
66 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
67
68         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
69           instead of sticking to the first ever calculated value
70
71 2006-05-19  Mike Kestner  <mkestner@novell.com>
72
73         * ComboBox.cs: fix mouse motion selection to use MousePosition and
74         PointToClient, since Capture is set. Fixes #78344.
75
76 2006-05-19  Mike Kestner  <mkestner@novell.com>
77
78         * ListView.cs: match MS behavior in Details view where items are not
79         drawn if Columns.Count == 0. 
80         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
81         Use a separate pen to draw the check, since changing the width affects
82         the box as well.  Fixes #78454.
83
84 2006-05-18  Miguel de Icaza  <miguel@novell.com>
85
86         * ListView.cs: ArgumentOutOfRangeException, single versions of the
87         exception should throw the name of the invalid argument.
88
89         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
90         there are no files listed. 
91
92 2006-05-18  Jackson Harper  <jackson@ximian.com>
93
94         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
95         up.
96
97 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
98
99         * Control.cs: Brought back our old UpdateZOrder method as a private
100           function and switched our calls from UpdateZOrder to the new one.
101           This fixes the Paint.Net canvas disappearing bug.
102
103 2006-05-18  Jackson Harper  <jackson@ximian.com>
104
105         * Theme.cs:
106         * ThemeWin32Classic.cs:
107         * InternalWindowManager.cs: Move the drawing into the theme,
108         expose everything the theme should need from the window manager.
109
110 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
111
112         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
113           from the call to NativeWindow to avoid walking up the parent chain
114           further than needed (speeds up setting cursors and avoids setting
115           the wrong cursor if a parent has another cursor defined)
116         * Cursor.cs: When loading an icon as cursor, MS uses the center of
117           the icon as hotspot, not what's contained as hotspot in the icon
118           file. This fixes the perceived drawing offset seen with Paint.Net
119         
120 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
121
122         * XplatUIX11.cs: 
123           - Store the calculated rectangle in Hwnd object and use it when 
124             setting the client size
125           - Force Toolwindows to always be type Dock, to ensure they're on top
126
127 2006-05-18  Mike Kestner  <mkestner@novell.com>
128
129         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
130         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
131         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
132         Substantial refactoring to remove confusing nested classes. Coding
133         standard and Get+Set->property refactorings.  Shift to index based
134         highlighting in ComboListBox instead of constantly using IndexOf and
135         Items[]. Add invalidations on resize for DropDownList to fix ugliness
136         in FileDialog growth.  Draw borders manually since Simple mode needs
137         to look like two independent controls.  Make listbox border
138         conditional to DropDownStyle.  Improved OwnerDraw support.
139
140 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
141
142         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
143         Don't set the disposed graphics to null, so we can throw the "right"
144         exception if the graphics is reused later (added a flag to avoid 
145         double disposing). Some behaviours are different under 2.0 and are
146         filled under bug #78448.
147
148 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
149
150         * Control.cs: When double-buffering is enabled, we need to reset
151           our graphics context between paint calls. Otherwise, any 
152           transformations and other alterations on the context will 
153           become cumulative (#77734)
154
155 2006-05-18  Mike Kestner  <mkestner@novell.com>
156
157         * ListView.cs: do focused item selection like MS on clicks. 
158         Rework focus handling for ItemControl so LostFocus invalidates as
159         well.
160         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
161         the ListView ItemControl has focus.
162
163 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
164
165         * XplatUIX11.cs: If client_window ends up being width or height zero
166           due to border settings, move it off window inside whole_window (#78433)
167
168 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
169
170         * Mime.cs: Shrink the mime file cache correctly.
171
172 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
173
174         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
175
176 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
177
178         * XplatUIX11.cs (AddExpose): More sanity checks
179
180 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
181
182         * XplatUIX11.cs:
183           - AddExpose: Don't add expose ranges outside the size of our
184             window
185           - Cast opacity values to Int32 to avoid crashes with certain
186             values
187           - Added disabled code paths that protect against illegal cross-
188             thread painting (Developers.exe)
189
190 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
191
192         * ProgressBar.cs: Invalidate the control when it's resized
193           since block size is based on control size. (#78388)
194
195 2006-05-16  Miguel de Icaza  <miguel@novell.com>
196
197         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
198         of setting the incoming argument to the "reset" value, we set the
199         this.datamember to string.empty (before we were invalidating the
200         incoming data).   
201
202         Fixes 78420
203
204 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
205
206         * Form.cs: Only apply transparency settings after the form
207           is created. (Fixes #77800)
208
209 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
210
211         * ApplicationContext.cs: Grab the HandleDestroyed event so
212           we know when to fire OnMainFormClosed 
213
214 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
215
216         * Application.cs: Introduced sub-class to allow tracking of
217           threads and centralized triggering of the event mess for
218           ThreadExit, AppExit, etc..  (#76156)
219
220 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
221
222         * MimeIcon.cs:
223           - Do not return a null icon index value for a mime subclass.
224             Instead try the main mime type class too.
225           - Seems that some newer distributions don't have a link to some
226             gnome default icons anymore. So check the default gnome dir too.
227           
228
229 2006-05-16  Jackson Harper  <jackson@ximian.com>
230
231         * MdiClient.cs: Don't paint the parent background image if we have
232         our own background image.
233
234 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
235
236         * Control.cs:
237           - PerformLayout: Do not shrink space filled by DockStyle.Fill
238             controls, all filled controls are supposed to overlap (#78080)
239           - UpdateZOrder is supposed to update the control's z-order in the
240             parent's z-order chain. Fixed to behave like that
241           - BringToFront: Removed obsolete code
242           - SendToBack: Simplyfied
243           - SetChildIndex: Trigger layout calculations when Z-order changes
244             since layout is done by z-order
245
246 2006-05-16  Chris Toshok  <toshok@ximian.com>
247
248         [ fixes bug #78410 ]
249         * DataGrid.cs (set_AlternatingBackColor): use
250         grid_drawing.InvalidateCells instead of Refresh().
251         (set_BackColor): call grid_drawing.InvalidateCells.
252         (set_BackgroundColor): use Invalidate instead of Refresh.
253
254         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
255         invalidate the cell area.
256
257 2006-05-15  Chris Toshok  <toshok@ximian.com>
258
259         [ fixes bug #78011 ]
260         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
261         on to DataGridPaintRow.
262         (DataGridPaintRow): take a clip argument, and only draw the cells
263         which intersect it.  same with the not_usedarea.
264
265         * Theme.cs (DataGridPaintRow) add @clip parameter.
266
267         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
268         XplatUI.ScrollWindow.
269         (ScrollToRow): same.
270
271         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
272         with last column which was causing a gray swath to appear with the
273         XplatUI.ScrollWindow code.
274
275 2006-05-15  Chris Toshok  <toshok@ximian.com>
276
277         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
278         use XplatUI.ScrollWindow.
279         (VerticalScrollEvent): use XplatUI.ScrollWindow.
280
281 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
282
283         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
284
285 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
286
287         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
288           file since there are no equivalent X11 cursors
289
290 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
291
292         * MonthCalendar.cs : DateTimePicker should reflect selected date
293           on mouse*up*, not mouse*down*. Fixed originally reported part of
294           bug #76474.
295
296 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
297
298         * TabControl.cs : When argument index is equal or more than tab
299           count, just ignore. Fixed bug #78395.
300
301 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
302
303         * Control.cs: Dispose all child controls when control is diposed (#78394)
304
305 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
306
307         * ColorDialog.cs: Finally it is possible to select the color with
308           the text boxes
309
310 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
311
312         * PrintDialog.cs: Fix typo
313
314 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
315
316         * PrintDialog.cs: PrintDialog is not resizable
317         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
318           color. Made some ToolBar drawing methods protected virtual.
319
320 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
321
322         * PrintDialog.cs: Implementation of the PrintDialog
323
324 2006-05-12  Chris Toshok  <toshok@ximian.com>
325
326         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
327         thumb, instead use MoveThumb.  This has the side effect of making
328         most of the other thumb moving machinery use MoveThumb as well.
329         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
330         need to actually invalidate the rectangle where the new thumb will
331         go.
332         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
333         We force an Update() after, so it's not as fast as it could be,
334         but at least there's zero flicker and no droppings.
335         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
336         (UpdateThumbPos): add another argument (dirty), which says whether
337         or not to calculate/add dirty regions which we later invalidate.
338         For cases where we know we're going to use MoveThumb, we pass
339         false for this.  Otherwise, pass true.
340
341 2006-05-12  Jackson Harper  <jackson@ximian.com>
342
343         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
344         the status bar.
345         
346 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
347
348         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
349           and GetClipRegion methods and UserClipWontExposeParent property.
350         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
351           overriding UserClipWontExposeParent property, setting to false, since
352           Win32 handles the required expose messages to draw our clipped parent
353           areas internally
354         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
355           PaintEventStart to set the user clip region if set.
356         * Control.cs: 
357           - Now internally tracking the Region for the control since we need to
358             store it if the handle is not yet created and only set it when it
359             becomes created. Before setting the region forced handle creation
360           - Added code to draw the parents underneath a user-clipped region
361         * Hwnd.cs: Added UserClip property
362
363 2006-05-12  Chris Toshok  <toshok@ximian.com>
364
365         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
366         (set_Maximum): same.
367         (set_Minimum): same.
368         (set_SmallChange): same.
369         (OnMouseUpSB): remove the call to refresh when releasing the
370         thumb.  We shouldn't need it.
371         
372 2006-05-12  Miguel de Icaza  <miguel@novell.com>
373
374         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
375         AutoSize set to None, we do not need to relayout everything, we
376         just need to invalidate the current region.
377
378         (Draw): Do not draw the entire ClientArea, just redraw the
379         clip area being passed.
380
381         * MdiClient.cs: Make MdiClient constructor with the Form argument
382         internal. 
383
384 2006-05-12  Jackson Harper  <jackson@ximian.com>
385
386         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
387         parents background image,  but strangely not their own.
388         - (DrawStatusBarPanel): Take into account horizontal alignment
389         when drawing the strings and icons.
390
391 2006-05-12  Mike Kestner  <mkestner@novell.com>
392
393         * ListBox.cs: avoid invalidations for focus when the collection is
394         empty. 
395
396 2006-05-12  Chris Toshok  <toshok@ximian.com>
397
398         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
399         invalidate the entire thumb area.  Call InvalidateDirty which
400         limits the redraw to the thumb itself and surrounding pixels.
401
402         * XplatUIX11.cs (ScrollWindow): optimize copying.
403         
404 2006-05-12  Chris Toshok  <toshok@ximian.com>
405
406         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
407         Figure out the positioning/layout in a single pass instead of
408         multiple recursive invocations.  Speeds up the initial display of
409         the data grid.  Also, make many things private that were
410         originally public but unused outside this class.
411
412 2006-05-11  Jackson Harper  <jackson@ximian.com>
413
414         * MdiClient.cs: Improved layout code.
415
416 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
417
418         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
419           not SelectedObject.
420
421 2006-05-11  Chris Toshok  <toshok@ximian.com>
422
423         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
424         union of that will always be {0,0,width,height}.
425
426 2006-05-11  Jackson Harper  <jackson@ximian.com>
427
428         * Form.cs: Match MS's DefaultSize for forms (they must have
429         changed the size in sp2).
430
431 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
432
433         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
434
435 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
436
437         * TextControl.cs : Fixed bug #78109. This incorrect position
438           comparison caused crash on automatic line split.
439         * TextBoxBase.cs : reduce duplicate code.
440
441 2006-05-10  Jackson Harper  <jackson@ximian.com>
442
443         * MdiClient.cs: Active form is only sent to the back when using
444         the Next form functionality, when a form is clicked the current
445         active shouldn't be sent to the back.
446         - Layout the mdi windows when the container is first made visible.
447         * Form.cs: Give the MdiClient a ref to the containing form when we
448         create it.
449         
450 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
451
452         * LinkLabel.cs : link_font could be uninitialized, so populate one
453           before actual use. Fixed bug #78340.
454
455 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
456
457         * XplatUIX11.cs : clipboard format native value is IntPtr.
458           Fixed bug #78283.
459
460 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
461
462         * Control.cs: 
463           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
464             which is passed up the parent chain by DefWndProc
465           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
466             to DefWndProc (#77956)
467         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
468
469 2006-05-10  Jackson Harper  <jackson@ximian.com>
470
471         * MdiClient.cs: We need to remove the controls from the mdi
472         collection, when we close the window.
473         * MdiWindowManager.cs: Special handling of closing mdi windows.
474         * InternalWindowManager.cs: Make the close method virtual so the
475         mdi window manager can handle it specially.
476
477 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
478
479         * DataGrid.cs:
480           - Recalculate grid when the data source has changed
481           - Matches styles provided by user from all data sources types
482         * DataGridTableStyle.cs: For columns that provided by the user set the
483         with the preferred value is there was unassigned.
484         * CurrencyManager.cs: throw OnItemChanged event
485
486 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
487
488         * PictureBox.cs: Don't animate until handle is created. Start animation
489           when handle is created.
490
491 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
492
493         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
494           current codebase.
495         * XEventQueue.cs: We don't need to provide the extra info
496
497 2006-05-10  Jackson Harper  <jackson@ximian.com>
498
499         * MdiClient.cs: If the mdi clients parent form has a background
500         image set, we draw that background image for the mdi area's
501         background.
502
503 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
504
505         * TextBoxBase.cs: Set IBeam cursor (#78347)
506
507 2006-05-10  Mike Kestner  <mkestner@novell.com>
508
509         * ToolBar.cs: fix some text padding issues with ButtonSize
510         calculation. Update the default size to match MS documentation.
511         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
512         button size. Fixes #78296.
513
514 2006-05-10  Mike Kestner  <mkestner@novell.com>
515
516         * ListBox.cs: use is_visible for scrollbar positioning in case the
517         control isn't on screen yet.  Fix off by one with Right vs Width
518         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
519         
520 2006-05-10  Jackson Harper  <jackson@ximian.com>
521
522         * X11Dnd.cs: Drop to a control with another control on top of it.
523         * ToolBar.cs: Work on a copy of the buttons list, so that it can
524         be modified in click handlers. TODO: Look for similar problems in
525         other controls.
526
527 2006-05-09  Jackson Harper  <jackson@ximian.com>
528
529         * Form.cs: Window managers need the old window state when setting
530         window state now.
531         * InternalWindowManager.cs: Allow the base mdi window manager to
532         handle more of the MDI only stuff (like maximize buttons).
533         * MdiWindowManager.cs: Fix some snafus in changing the window
534         state.  Add all the menu functionality, for both popup and
535         maximized menus.
536         * MdiClient.cs: When a new form is selected the currently
537         activated form is sent to the back, this matches MS.
538         - Implement a new method to activate the next mdi child window.
539
540 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
541
542         * Control.cs: 
543           - Added new InternalCapture method to allow controls to prevent
544             the capture behaviour on the click handlers
545           - Switched to use InternalCapture
546         * ComboBox.cs:
547           - Using InternalCapture to prevent mouse captures from being released
548             on mouse button release (Fixes #78100)
549         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
550           returns Form borders if a caption is present. (Fixes #78310)
551
552 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
553
554         * TreeNode.cs: Changed serialization .ctor to not require every field
555           to be present. (#78265)
556         * OwnerDrawPropertyBag.cs: Added serialization .ctor
557
558 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
559
560         * MimeIcon.cs: for is faster than foreach for strings.
561
562 2006-05-05  Mike Kestner  <mkestner@novell.com>
563
564         * CheckedListBox.cs: update check handling code to not use selected.
565         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
566         behavior for visual feedback, motion response, shift/ctrl handling,
567         and properly deal with all 4 selection modes. Updates to bounds
568         handling logic.  Add scroll wheel support. [Fixes #77842]
569
570 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
571
572         * ListView.cs:
573           - Moved adding of Implicit controls into .ctor. That way, subsequent
574             creation of the controls will not cause them to think they are 
575             toplevel windows (fixes #78200 header problem)
576           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
577           - Switched visibility setting of header control to use internal field
578             to avoid triggering handle creation
579           - Now checking if handle is created before causing a refresh when items
580             are added (This makes us now match handle creation time with MS)
581         * Splitter.cs: Removed loading of private splitter cursor, switched to
582           Cursors version now that that is loading the right ones
583         * Cursors.cs: Load proper splitter cursors from resources
584         * Cursor.cs: Added second method of loading resource cursors for the 
585           VS.Net users amongst us
586
587 2006-05-05  Mike Kestner  <mkestner@novell.com>
588
589         * ListView.cs: give header_control a minimum size based on the
590         ListView size.
591
592 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
593
594         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
595           window seems to do that with metacity, so set that type. (#78120)
596
597 2006-05-05  Mike Kestner  <mkestner@novell.com>
598
599         * ListViewItem.cs: fix Details mode checkbox layout bug.
600         * ThemeWin32Classic.cs: draw a ListView column header for unused space
601         at the end of the header, if it exists. [Fixes for #78200]
602
603 2006-05-04  Jackson Harper  <jackson@ximian.com>
604
605         * MdiClient.cs: Add a helper property to get the container form.
606         * MdiWindowManager.cs: We have to make sure to use the menu origin
607         when drawing the icons and buttons, this fixes maximized window
608         icons/buttons on win32.
609         * InternalWindowManager.cs: Reset the restore captions when a
610         window goes from Maximized to Minimized and vice versa. Move the
611         DrawMaximizedButtons into the MdiWindowManager source, tool
612         windows can't be maximized. NOTE: This could use a little
613         refactoring if time ever permits.
614         
615 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
616
617         * TextBox.cs: Add MWFCategoryAttributes
618         * TextBoxBase.cs: Add MWFCategoryAttributes
619         * Form.cs: Add MWFCategoryAttributes
620
621 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
622
623         * Control.cs: Add MWFCategoryAttributes
624         * ScrollableControl.cs: Add MWFCategoryAttributes
625
626 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
627
628         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
629           Divider is true. Fix a little glitch in PropertyToolBar
630           drawing code
631
632 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
633
634         * Control.cs:
635           - Dispose: Call base.Dispose, this causes the disposed event
636             to be fired (and probably other, more important stuff)
637           - SetVisibleCore: Set is_visible to true after creating the
638             window so that the window still gets created invisible (if
639             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
640             to generate a WM_ACTIVE message
641         * Form.cs: Call Dispose when we want to destroy the window, instead of
642           just destroying the handle (Dispose will do that for us)
643         * XplatUIX11.cs:
644           - RootWindow also needs a queue, so we can properly process the
645             property change events from RootWindow (like Activate)
646           - Generatic synthetic WM_ACTIVE message when the active window is
647             being destroyed
648
649 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
650
651         * LinkLabel.cs: Trigger a recalc of our label dimensions when
652           bounds are changed
653
654 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
655
656         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
657           for determining width and height (image might not be assigned if
658           we're drawing an imagelist)
659
660 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
661
662         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
663         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
664           height from system
665         * Theme.cs: No longer returns hardcoded menu height, instead calls
666           new driver method
667         * Form.cs (OnLoad): Scaling happens before triggering Load events 
668           on MS (# 78257)
669
670 2006-05-01  Mike Kestner  <mkestner@novell.com>
671
672         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
673
674 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
675
676         * TextBoxBase.cs: Removed Fixme
677         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
678
679 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
680
681         * XplatUIX11.cs:
682           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
683             the rectangle relative to the parent, considering borders. We
684             don't really want that.
685           - ScrollWindow: Fixed warning to be more understandable
686         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
687           scrollbars and scroll only the visible area
688         * RichTextBox.cs: Removed debug output
689
690 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
691
692         * NumericUpDown.cs (Text): Just use base
693         * UpDownBase.cs: Ensure txtView is created before using it
694
695 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
696
697         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
698           casting to IntPtr to avoid 64bit overflow errors
699
700 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
701
702         * Control.cs:
703           - AllowDrop: Don't force handle creation.
704           - CreateHandle: Added call to tell driver if we're allowed to drop
705
706 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
707
708         * FileDialog.cs: Remember the last directory not only for the
709           current instance but also for new FileDialog instances.
710
711 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
712         
713         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
714           broke sending async messages
715
716 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
717
718         * XplatUIX11.cs:
719           - ScrollWindow: Fixed method. We finally generate expose events again
720             for scrolled areas. This was causing 'garbage' when scrolling
721             textbox and other controls that used ScrollWindow
722           - Switched from using the regular queue for paint events to the MS 
723             model of 'generating' paint events when the queue is empty.
724             We use the new XQueueEvent.Paint subclass to store which windows
725             need painting.
726           - AddExpose now takes the x/y/width/height of the exposed area
727             and inserts the window into the paint queue if not already there
728           - InvalidateWholeWindow: Switched to use new AddExpose method
729           - UpdateMessageQueue: Added which queue to monitor for paint events
730           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
731             the unlikely case nothing above handles it. We reset the expose
732             pending states to get them off the queue.
733           - GetMessage: Now pulls a paint event if no other events are in the
734             queue
735           - Invalidate: Switched to new AddExpose method
736           - PeekMessage: Updated to understand pending paint events
737           - UpdateWindow: Fixed logic bug. We were only updating if the window
738             didn't need updating. Also switched to sending WM_PAINT directly,
739             like MS does.
740         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
741           and random access Remove(). The random access is needed to handle
742           UpdateWindow() where a WM_PAINT is sent directly without accessing
743           the queue.
744         * ScrollBar.cs: Added Update() calls to cause immediate updates to
745           allow for better feedback when scrolling. Scrollbars are small and
746           the immediate update should make it 'feel' more responsive without
747           slowing things down. ScrollBar still needs it's invaliate logic
748           updated to not always invalidate the whole bar on certain changes.
749
750 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
751
752         * Control.cs:
753         (BackColor): if the control does not support a transparent background,
754         return the default backcolor when the parent backcolor is transparent.
755
756 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
757
758         * Application.cs: Updated to new StartLoop/GetMessage API
759         * RichTextBox.cs: Provide some output on RTF parsing errors
760         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
761           new queue_id argument to GetMessage and PeekMessage to allow faster
762           handling of per-thread queues in drivers.
763         * Hwnd.cs: Added Queue tracking and property
764         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
765         * XEventQueue.cs: Added thread trackingA
766         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
767         * XplatUIX11.cs:
768           - Implemented new per-thread queue
769           - GetMessage: Fixed return/break behaviour on several cases. We were
770             returning stale messages in some cases, instead of just processing
771             the next message
772
773 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
774
775         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
776
777 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
778
779         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
780           fixed off-by-one comparisons between Width/Height and Right/Bottom.
781
782 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
783
784         * PropertyGridView.cs: Fix drop down width.
785
786 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
787
788         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
789           a mess in DrawToolBar, so I removed one of them.
790
791 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
792
793         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
794           needed (clip). Otherwise we get artifacts.
795
796 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
797
798         * FixedSizeTextBox.cs: Added constructor to allow specifying which
799           dimension is fixed
800         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
801           and switched FixedSizeTextBox to only be fixed vertical (#78116)
802         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
803           if it matches the scale base font (avoids unneeded scaling)
804
805 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
806
807         * X11DesktopColors.cs: One gtk_init_check should be enough
808
809 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
810
811         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
812           match MS behaviour
813
814 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
815
816         * TextBoxBase.cs: 
817           - Generate OnTextChanged for Backspace even if we're only deleting
818             the current selection
819           - When setting the Text property, only select all text if the
820             control does not have focus when it is being set. Otherwise
821             just place the cursor at the beginning of the control
822
823 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
824
825         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
826           Added a little helper to draw PropertyGrid ToolBar with a different
827           border and a different BackColor.
828         * PropertyGrid.cs: Some background parts didn't get painted with the
829           correct background color. Added a class that helps us to draw the
830           correct border for PropertyGridView and a class that helps us to
831           draw ToolBars with a different backcolor
832         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
833
834 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
835
836         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
837         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
838
839 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
840
841         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
842           into the palette entries. Also, since we're working on a copy
843           we needed to copy the palette back onto the bitmap.
844         * Cursor.cs: Same fix as XplatUIWin32.cs.
845
846 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
847
848         * ImageListStreamer.cs: Need to read the var (or we're off)
849
850 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
851
852         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
853           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
854           TextBoxBase.cs: Unused var fixes
855         * AxHost.cs: Small 2.0 fix
856         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
857           as it seems that is what at least Metacity expects. This will make
858           icons show up on 64bit platforms. We still have some 64bit size
859           issues, though, since the startup app window size still won't match.
860
861 2006-04-25  Mike Kestner  <mkestner@novell.com>
862
863         * *.cs: cleanup newly reported exception var unused warnings.
864
865 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
866
867         * ThemeWin32Classic.cs: Button image alignment now matches exactly
868           ms
869
870 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
871
872         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
873           image. The image position is always the same, no matter if the
874           button is pressed or not.
875
876 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
877
878         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
879           selection and set the correct filename for SaveFileDialog.
880           Patch by Emery Conrad.
881
882 2006-04-24  Mike Kestner  <mkestner@novell.com>
883
884         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
885         check for item.X outside the ClientRect instead of item.Y. Fixes
886         #78151.
887
888 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
889
890         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
891         trust that value blindly and do some sanity check. Fixes bug #77814.
892
893 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
894
895         * ImageListStreamer.cs: save the mask as a 1bpp image.
896
897 2006-04-21  Mike Kestner  <mkestner@novell.com>
898
899         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
900         pass Checked and Indeterminate to the Theme Engine. Improve
901         encapsulation with ListBox.
902         * ListBox.cs: Keep a StringFormat instead of calculating it every item
903         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
904         nested types.  Move all CheckState functionality to CheckedListBox.
905         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
906         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
907         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
908         single base list. Fix scrollbar sizing and placement to mirror MS.
909         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
910         used.
911         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
912         for CheckedListBox by using new DrawItemState info.  Center the
913         checkboxes on the items. Use new StringFormat property.
914
915 2006-04-18  Jackson Harper  <jackson@ximian.com>
916
917         * Form.cs: MdiChildren don't do default locations the same way as
918         regular forms.  This prevents a crash when trying to position the
919         mdi windows.
920
921 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
922
923         * PropertyGridTextBox.cs: Formatting, copyright
924         * PropertiesTab.cs: Formatting
925         * PropertyGrid.cs: Formatting
926         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
927           click toggling of values
928           
929 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
930
931         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
932         * Control.cs (.ctor): verify_thread_handle is static, don't reset
933           every time a control is created
934         * Application.cs: Removed obsolete EnableRTLMirroring method
935
936 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
937
938         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
939         SelectedIndex to -1. Fixes bug #78121.
940
941 2006-04-17  Jackson Harper  <jackson@ximian.com>
942
943         * Binding.cs: Handle null values for Current and BindingContext.
944         This occurs when binding is a little delayed.
945         * CurrencyManager.cs: return null for Current when there are no
946         items in the list.
947         - Hookup to the listchanged event on the DataView and update
948         bindings when the list is changed.  This fixes late binding of
949         controls.
950
951 2006-04-17  Jackson Harper  <jackson@ximian.com>
952
953         * X11Dnd.cs:
954         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
955         Ringenbach.
956
957 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
958
959         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
960           place
961         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
962           with the correct ButtonState
963
964 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
965
966         * XplatUIX11.cs: Improved distinguishing between window types to
967           tell the WM a type closer to what the app wants (Fixes #78107)
968
969 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
970
971         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
972           GrabHandle
973
974 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
975
976         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
977           drawing code to reflect the size grip changes
978
979 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
980
981         * ImageListStreamer.cs: fix handling of the mask that follows the main
982         bitmap when deserializing and serialize it properly. The generated mask
983         should better be a 1bpp image, but I'll do that later.
984
985 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
986
987         * FileDialog.cs: Show something in the DirComboBox on *nix if the
988           path doesn't fit into some of our Current.Places
989
990 2006-04-13  Jackson Harper  <jackson@ximian.com>
991
992         * ComboBox.cs: Use borders instead of drawing our own decorations,
993         try to obey correct rules for heights.
994         * Theme.cs:
995         * ThemeNice.cs:
996         * ThemeClearLooks.cs:
997         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
998         this is now handled by borders.
999         - Remove unused DrawListBoxDecorationSize method.
1000         
1001 2006-04-13  Mike Kestner  <mkestner@novell.com>
1002
1003         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1004         reported by Alex.
1005
1006 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1007
1008         * ThemeWin32Classic.cs: 
1009           - Fixed CPDrawStringDisabled
1010           - Corrected drawing of disabled menu items
1011           - Fixed drawing of disabled radio buttons (bug #78095)
1012           - Draw check in a disabled CheckBox with color ControlDark 
1013
1014 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1015
1016         * Form.cs: Use the provided width when calculating the menu size;
1017           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1018           and ClientSize.Width won't be updated yet
1019         * Application.cs: Use Visible instead of Show() to make form visible,
1020           this way we create the handle later and menusize is considered
1021
1022 2006-04-12  Mike Kestner  <mkestner@novell.com>
1023
1024         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1025         reporting.
1026
1027 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1028
1029         * TextBox.cs: Implemented context menu
1030
1031 2006-04-12  Mike Kestner  <mkestner@novell.com>
1032
1033         * ListView.cs: implement box selection. fixes #77838.
1034         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1035
1036 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1037
1038         * XplatUIX11.cs: Added setting of window type when transient window
1039           is created (metacity would move it otherwise)
1040         * X11Structs.cs: Added WINDOW_TYPE atoms
1041         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1042           background (the control is Opaque but still wants transparent
1043           backgrounds)
1044
1045 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1046
1047         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1048           that set Opaque but don't mean it (like all ButtonBase-derived
1049           controls) to still draw their background
1050         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1051           the background
1052
1053 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1054
1055         * Control.cs (PaintControlBackground): Set the graphics object
1056           on our PaintEvent to null to prevent it from being disposed
1057           when the PaintEvent gets disposed
1058
1059 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1060
1061         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1062         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1063
1064 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1065
1066         * Control.cs: 
1067           - Added transparency check to BackColor property. Transparent
1068             backgrounds are only allowed if the control styles permit it
1069           - Added recursive painting of parent control background and
1070             foreground if a control with a transparent backcolor is drawn
1071             (Thanks to Tim Ringenback for providing his 'hack' as a base
1072              for this patch) Fixes #77985 and #78026.
1073           - Added Opaque style check before calling OnPaintBackground, no
1074             need to draw the background if the control is opaque
1075           - Removed ControlAccessibleObject owner variable (inherited from
1076             base, no need to define again)
1077           - Added some documentation links explaining the drawing events
1078             and styles
1079
1080 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1081
1082         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1083           that the affected control is the located at the left border of our
1084           parent (Fixes #77936)
1085
1086 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1087
1088         * TextBoxBase.cs: When rendering disabled or readonly controls,
1089           draw the background with 'Control' instead of 'Window' color as
1090           long as the user hasn't specifically set a color
1091
1092 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1093
1094         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1095           since that won't be updated if the user types text (only if it's
1096           programatically set)
1097
1098 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1099
1100         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1101           layout changes do to app-triggered resizes will have the proper
1102           display rectangle for layout
1103
1104 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1105
1106         * ThemeWin32Classic.cs:
1107           - Make use of the SystemBrushes and SystemPens wherever possible
1108           - Corrected some highlight colors
1109           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1110             drawing
1111         * Theme.cs: Added Empty field to CPColor struct
1112
1113 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1114
1115         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1116           is displayed when calculating the display rectangle. Thanks to Mike
1117           for teaching me the err of my ways.
1118
1119 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1120
1121         * ScrollableControl.cs:
1122           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1123             (instead of 0,0) and we now return the real width/height instead of
1124             just the clientrectangle, adjusted for padding. The rectangle is
1125             now cached and created by the new CalculateDisplayRectangle method.
1126           - Created new CalculateDisplayRectange method, which basically does
1127             what get_DisplayRectangle() did originally, but now using the 
1128             right edge instead of DisplayRectangle to determine the size of
1129             our scrollbars
1130           - get_Canvas(): Fixed it to properly calculate canvas for 
1131             right/bottom controls which seem to be placed to the right/bottom
1132             of any controls that have a fixed location
1133           - Removed TODO that's taken care of
1134           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1135             and SetDisplayRectLocation according to new MSDN2 docs
1136           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1137             event when that is called, this is added for compatibility
1138           - ScrollControlIntoView(): Implemented.
1139           - Switched scrollbars to be implicit, they shouldn't be selectable
1140         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1141           call it when the active control is set/changed
1142         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1143         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1144           implicit_control variable (used for native Win32 message generation)
1145         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1146           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1147         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1148         * XplatUIStructs.cs: Added ScrollBarCommands enum
1149
1150 2006-04-10  Jackson Harper  <jackson@ximian.com>
1151
1152         * ButtonBase.cs:
1153         * CheckedListBox.cs:
1154         * ComboBox.cs:
1155         * DataGrid.cs:
1156         * DataGridView.cs:
1157         * Form.cs:
1158         * GroupBox.cs:
1159         * ListBox.cs:
1160         * PrintPreviewControl.cs:
1161         * ProgressBar.cs:
1162         * PropertyGrid.cs:
1163         * Splitter.cs:
1164         * StatusBar.cs:
1165         * TrackBar.cs:
1166         * UpDownBase.cs: Fixup base event overrides.
1167         
1168 2006-04-06  Mike Kestner  <mkestner@novell.com>
1169
1170         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1171         all user-initiated value changes to min <= value <= max-thumbsz+1.
1172         (set_Value): check for vert/horiz when calculating new thumb position.
1173         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1174         like MS does.
1175         (OnMouseMoveSB): refactor the thumb dragging code and refine
1176         invalidation logic to reduce flicker.
1177         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1178         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1179         (UpdateThumbPosition): small code readability cleanup
1180
1181 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1182
1183         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1184           different
1185
1186 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1187
1188         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1189
1190 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1191
1192         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1193         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1194           This dramatically reduces the number of Pen.Dispose calls. 
1195           Where possible call ResPool methods only once instead of calling it
1196           over and over again (for example for the same color).
1197
1198 2006-04-06  Mike Kestner  <mkestner@novell.com>
1199
1200         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1201         Also remove an unused private field on the collection. Fixes #77972.
1202
1203 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1204
1205         * ThemeNice.cs: Added ToolBar drawing code
1206
1207 2006-04-06  Mike Kestner  <mkestner@novell.com>
1208
1209         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1210         I'm assuming that means we need to look up the toplevel for the
1211         provided control. Fixes the crash trace in #77911 but exposes another
1212         crash in some strange reflection usage in NDocGui.
1213
1214 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1215
1216         * ThemeNice.cs: Gave it a little silver touch and added Images
1217           method
1218         * FontDialog.cs: FontDialog is not resizable
1219         * FileDialg.cs: Added SizeGripStyle.Show
1220
1221 2006-04-05  Jackson Harper  <jackson@ximian.com>
1222
1223         * KeyboardLayouts.cs: Remove warning.
1224
1225 2006-04-05  Jackson Harper  <jackson@ximian.com>
1226
1227         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1228         all of our controls instead of Paint +=.
1229         * ListBox.cs:
1230         * ListView.cs:
1231         * MenuAPI.cs:
1232         * MessageBox.cs:
1233         * NotifyIcon.cs:
1234         * ProgressBar.cs:
1235         * ScrollBar.cs:
1236         * Splitter.cs:
1237         * StatusBar.cs:
1238         * TabControl.cs:
1239         * TextBoxBase.cs:
1240         * ToolBar.cs:
1241         * TrackBar.cs:
1242         * UpDownBase.cs:
1243         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1244         use OnPaintInternal. Remove Width/Height and Visible checks in
1245         paint handler, this is done at a higher level now.
1246         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1247         * PaintEventArgs.cs: Add a handled flag so controls that don't
1248         want anymore painting after OnPaintInternal can make sure OnPaint
1249         isn't called.
1250
1251 2006-04-05  Mike Kestner  <mkestner@novell.com>
1252
1253         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1254         state of the form, so that we don't process events when Modal dialogs
1255         are up. Fixes #77922.
1256
1257 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1258
1259         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1260           checking is done.
1261
1262 2006-04-05  Mike Kestner  <mkestner@novell.com>
1263
1264         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1265
1266 2006-04-05  Mike Kestner  <mkestner@novell.com>
1267
1268         * ListView.cs (HeaderMouseMove): null guarding for the over column
1269         when setting up the drag_to_index.  Fixes #78015.
1270
1271 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1272
1273         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1274           in the taskbar. Transient windows seem to accomplish that.
1275
1276 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1277
1278         * Form.cs:
1279           - Re-enabled CreateParams.X/Y code for FormStartPosition
1280           - Added code for manual placement when creating the Control
1281           - Incomplete patch to treat MDI forms differently when
1282             setting the ClientSizeCore. (Still need to figure out handling
1283             x/y coords there)
1284         * XplatUIX11.cs:
1285           - When we're explicitly setting the X/Y position of a non-Child
1286             window, let the WM know. Metacity really wants this.
1287
1288 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1289
1290         * ThemeNice.cs: Added CPDrawButton
1291
1292 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1293
1294         * ThemeNice.cs: Changed the color for focused buttons and activated
1295           the arrows for small scroll buttons.
1296
1297 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1298
1299         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1300           anymore. Changed some method modifiers to protected (virtual)
1301         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1302           changes
1303         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1304           Updated drawing of menus, buttons and progressbars; added
1305           CPDrawBorder3D 
1306
1307 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1308
1309         * ImageListStreamer.cs: implemented serialization/deserialization
1310         of the images.
1311
1312 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1313
1314         * ThemeWin32Classic.cs:
1315           - Removed all the DrawFrameControl stuff; CPDrawButton,
1316             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1317             inside the methods
1318           - Updated and corrected the drawing code of CPDrawButton,
1319             CPDrawCheckBox and CPDrawRadioButton to better match ms
1320           - Updated theme checkbox and radiobutton code to use the CP*
1321             methods
1322
1323 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1324
1325         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1326           bug is fixed
1327
1328 2006-03-31  Jackson Harper  <jackson@ximian.com>
1329
1330         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1331         sometimes.
1332         * UpDownBase.cs: Don't CreateGraphics manually, use a
1333         Refresh. Ideally we would invalidate the correct areas here.
1334
1335 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1336
1337         * XplatUIX11.cs: 
1338           - We now track the mapping state of windows. If a window (or 
1339             one of it's parents) is not mapped we no longer permit
1340             WM_PAINT messages to be generated since we'd otherwise get 
1341             lots of BadMatch X errors. Jackson did all the work figuring
1342             out the problem.
1343           - Destroying the caret if the window it's contained in is 
1344             destroyed. Can't use regular DestroyCaret method since it
1345             might fall into a drawing function (trying to remove the
1346             caret) and with that generate new BadMatch errors. Again,
1347             Jackson tracked this down.
1348           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1349             make sure we send the messages to all windows. (The old code
1350             would send the WM_DESTROY to the window, and then all child
1351             windows would be 'gone' because the WM_DESTROY handle lookup
1352             would no longer find the destroyed window)
1353         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1354         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1355
1356 2006-03-31  Jackson Harper  <jackson@ximian.com>
1357
1358         * ScrollableControl.cs: Dont recalc if we are not visible.
1359
1360 2006-03-31  Mike Kestner  <mkestner@novell.com>
1361
1362         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1363         the visibility branch.
1364
1365 2006-03-31  Jackson Harper  <jackson@ximian.com>
1366
1367         * ScrollBar.cs: Cap values when incrementing/decrementing.
1368
1369 2006-03-31  Mike Kestner  <mkestner@novell.com>
1370
1371         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1372         * ToolTip.cs: guard against timer expirations with no active control.
1373         Not sure why it happened.
1374
1375 2006-03-31  Mike Kestner  <mkestner@novell.com>
1376
1377         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1378         text.
1379         * ToolTip.cs: Position the tooltip based on where the cursor is at
1380         popup time, not at MouseEnter time.  Add a Down state so that we don't
1381         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1382         positioning offset. Lookup DisplaySize at positioning time, since it
1383         can theoretically change during invocation.
1384         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1385         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1386
1387 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1388
1389         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1390           Fixes behaviour when the Text property of the box is String.Empty
1391
1392 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1393
1394         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1395           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1396           a window)
1397
1398 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1399
1400         * FileDialog.cs: Visual enhancement for the popup buttons in 
1401           PopupButtonPanel
1402
1403 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1404
1405         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1406           code
1407
1408 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1409
1410         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1411           highlighted menu items to match ms
1412
1413 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1414
1415         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1416
1417 2006-03-30  Mike Kestner  <mkestner@novell.com>
1418
1419         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1420         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1421         go active to account for HotLight to Selected transition.
1422         * MenuItem.cs: add internal Selected prop. Fill out the Status
1423         property by calculating it from item info. Add HotLight,
1424         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1425
1426 2006-03-30  Mike Kestner  <mkestner@novell.com>
1427
1428         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1429
1430 2006-03-29  Jackson Harper  <jackson@ximian.com>
1431
1432         * Form.cs: Implement TODO.
1433
1434 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1435
1436         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1437           missing proper dialog setup in the constructor
1438
1439 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1440
1441         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1442         * Control.cs:
1443           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1444           - Fixed ResetBindings and removed TODO
1445           - Added check for cross-thread calls to get_Handle()
1446           - Added Marshaller attribute for set_Font to satisfy class status
1447         * FontDialog.cs: Removed TODOs that seemed implemented
1448         * UpDownBase.cs: Removed unneeded TODO and Fixme
1449         * MessageBox.cs: Implemented support for Default button and removed TODO
1450         * FileDialog.cs: Removed obsolete TODO
1451         * DomainUpDown.cs: Removed obsolete TODO
1452         * ButtonBase.cs: Removed obsolete TODO
1453         * XplatUIWin32.cs: Removed obsolete TODO
1454         * Form.cs:
1455           - Removed obsolete TODO
1456           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1457             internal status updates
1458           - Making sure the active control is selected when the control is created
1459         * CurrencyManager.cs: Removed obsolete TODO
1460
1461 2006-03-29  Mike Kestner  <mkestner@novell.com>
1462
1463         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1464         of PrintPreviewDialog and RichTextBox.
1465
1466 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1467
1468         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1469           DarkDark, Light and LightLight colors for a specific color
1470         * ThemeWin32Classic.cs:
1471           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1472             Appearance = Button 
1473           - Make use of the new ResPool helper CPColor
1474           - Draw ProgressBar and StatusBar with correct 3D borders
1475
1476 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1477
1478         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1479
1480 2006-03-28  Mike Kestner  <mkestner@novell.com>
1481
1482         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1483         calculating col/row counts.
1484
1485 2006-03-28  Mike Kestner  <mkestner@novell.com>
1486
1487         * ColumnHeader.cs:
1488         * ListView.cs:
1489         * ListViewItem.cs:
1490         * Menu.cs: 
1491         switch to explicit interface method implementation for some methods
1492         corcompare identifies as inconsistent with MS.
1493
1494 2006-03-28  Mike Kestner  <mkestner@novell.com>
1495
1496         * MainMenu.cs: 
1497         * Menu.cs:
1498         add a few missing methods from the class status output.
1499
1500 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1501
1502         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1503           correct.
1504
1505 2006-03-28  Mike Kestner  <mkestner@novell.com>
1506
1507         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1508
1509 2006-03-27  Mike Kestner  <mkestner@novell.com>
1510
1511         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1512         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1513
1514 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1515
1516         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1517
1518 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1519
1520         * ThemeWin32Classic.cs:
1521           - GroupBox: Inserted a little gap between the text and the lines
1522             on the right side
1523           - Made the code in CPDrawBorder3D more readable
1524           - Corrected the drawing location of the up and down arrows in 
1525             CPDrawScrollButton
1526
1527 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1528
1529         * ControlPaint.cs: Corrected line widths in DrawBorder for
1530           ButtonBorderStyle Inset and Outset
1531
1532 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1533
1534         * ThemeWin32Classic.cs:
1535           - Rewrote the totally broken CPDrawBorder3D method. That was
1536             one of the main problems for the terrific ThemeWin32Classic
1537             look
1538           - Updated and corrected Button drawing
1539           - Correct the dimensions of the SizeGrip to match ms ones
1540           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1541         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1542           Border3DStyle.Sunken to match ms.
1543
1544 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1545
1546         * ThemeWin32Classic.cs: First small part of the "de-uglify
1547           ThemeWin32Classic" effort, SizeGrip
1548
1549 2006-03-24  Jackson Harper  <jackson@ximian.com>
1550
1551         * XplatUIX11.cs: Give a max idle time of one second, this matches
1552         MS and forces an Idle event every second when there are no other
1553         events in the queue.
1554
1555 2006-03-24  Mike Kestner  <mkestner@novell.com>
1556
1557         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1558         * ListView.Item.cs: fix layout issues with null image lists and images
1559         smaller than checkbox size.
1560         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1561         mode like MS does.  It's weird, but consistent.  ;-)
1562         Fixes #77890.
1563
1564 2006-03-24  Mike Kestner  <mkestner@novell.com>
1565
1566         * ListView.cs: Scroll wheel support for the item control.  Fixes
1567         #77839.
1568
1569 2006-03-23  Jackson Harper  <jackson@ximian.com>
1570
1571         * ScrollableControl.cs: Special case negative sized areas, not
1572         zero.
1573         * MonthCalendar.cs: Save the rect of the clicked date so we can
1574         use it for invalidation.
1575         - Try to cut down on the number of invalidates
1576         - Invalidate the rect the mouse is over and was over when moving
1577         the mouse, so we get the focus box following the cursor.
1578
1579 2006-03-23  Mike Kestner  <mkestner@novell.com>
1580
1581         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1582         focus rectangle drawing. Fixes #77835.
1583
1584 2006-03-23  Mike Kestner  <mkestner@novell.com>
1585
1586         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1587         the if and else if and reverting back to the original == check on the
1588         None conditional.
1589
1590 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1591
1592         * FontDialog.cs: Update the example panel if the selected index of
1593           the fontListBox changes.
1594
1595 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1596
1597         * FileDialog.cs: Make FileDialog remember which directory it was in
1598           last in the same execution.
1599
1600 2006-03-22  Mike Kestner  <mkestner@novell.com>
1601
1602         * FileDialog.cs: make the DropDownMenu on the toolbar display
1603         RadioChecks since they are mutually exclusive and that's what MS does.
1604
1605 2006-03-22  Mike Kestner  <mkestner@novell.com>
1606
1607         * Theme.cs: add Color param to CPDrawMenuGlyph.
1608         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1609         checks and radio marks and arrows are visible on highlighted items.
1610         * ControlPaint.cs: update to use new Theme signature.
1611
1612 2006-03-22  Mike Kestner  <mkestner@novell.com>
1613
1614         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1615         is active. Fixes #77870.
1616
1617 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1618
1619         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1620           to be focused/selected after startup
1621
1622 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1623
1624         * ColorDialog.cs: 
1625           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1626             CustomColors and ShowHelp properties
1627           - Some internal rewrites to get better results when using the
1628             ColorMatrix
1629
1630 2006-03-22  Mike Kestner  <mkestner@novell.com>
1631
1632         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1633         HoverSelection.  Fixes #77836.
1634
1635 2006-03-22  Mike Kestner  <mkestner@novell.com>
1636
1637         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1638         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1639         1, not 0.  Update ButtonSize based on a pixel count of the win32
1640         control.  Adjust the toolbar size/location for new button size.
1641
1642 2006-03-22  Jackson Harper  <jackson@ximian.com>
1643
1644         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1645         true.
1646         * ScrollBar.cs: When doing increments and decrements we need to
1647         set the Value property so that ValueChanged gets raised. A
1648         possible optimization here would be to make an internal SetValue
1649         that doesn't invalidate immediately.
1650         * ToolTip.cs: Tooltips get added to their container (when
1651         supplied) so they get disposed when the container is disposed.
1652         - Don't create tooltips for String.Empty. This prevents all these
1653         little 2-3 pixel windows from showing up when running nunit-gui
1654         and driving me mad.
1655         * Form.cs: Don't set topmost when setting the owner if the handles
1656         haven't been created yet.  The topmost set will happen when the
1657         handles are created.
1658
1659 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1660
1661         * XplatUIX11.cs:
1662           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1663           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1664             visible (to allow them to recalculate their sizes)
1665
1666 2006-03-21  Mike Kestner  <mkestner@novell.com>
1667
1668         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1669         methods. Removed a ton of redundant code.  Still not really happy with
1670         the border rendering, but I think that's mainly because of the
1671         ControlDarkDark being black instead of a dark grey. Depending on how 
1672         close we want to be, we might want to revisit those color choices.
1673         Among the new features added during the refactor were DropDownArrow
1674         pressed rendering, Disabled image rendering.  Proper flat appearance
1675         boundary rendering.  Removed the Divider and Wrapping dividers since I
1676         can't figure out any combination of themes and conditions to make the
1677         MS control draw a horizontal line on a toolbar despite what the
1678         Divider property docs indicate.
1679         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1680         conditions and incorrect layout.  Updated to coding standard.
1681         * ToolBarButton.cs: refactored layout and positioning code from
1682         ToolBar to here.  Invalidate wherever possible instead of forcing
1683         redraws of the whole toolbar. 
1684         (Known remaining issues: explicit ButtonSize smaller than provided
1685         images.)
1686
1687 2006-03-21  Mike Kestner  <mkestner@novell.com>
1688
1689         * ContextMenu.cs (Show): use the position parameter instead of just
1690         showing at the MousePosition.
1691
1692 2006-03-21  Jackson Harper  <jackson@ximian.com>
1693
1694         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1695         control handle this.
1696         * TreeNodeCollection.cs: If we are clearing the root node we need
1697         to reset top_node so calcs can still happen.
1698         * ThemeWin32Classic.cs: This is a Flags so we need to check
1699         properly.
1700         
1701 2006-03-21  Jackson Harper  <jackson@ximian.com>
1702
1703         * DataGrid.cs: Create columns when the binding context has been
1704         changed.
1705         * X11Structs.cs: Keysyms are uints.
1706         - Add size to fix build.
1707
1708 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1709
1710         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1711           XplatUIOSX.cs: 
1712           - Added ResetMouseHover method to allow controls to retrigger
1713             hovering if they need it more than once
1714           - Implemented MouseHoverTime and MouseHoverSize properties
1715         * Timer.cs: Start() must reset the interval
1716         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1717           properties
1718
1719 2006-03-21  Jackson Harper  <jackson@ximian.com>
1720
1721         * X11Keyboard.cs: improved layout detection. Move the nonchar
1722         tables into this file.
1723         * KeyboardLayouts.cs: Move the tables into resource files.
1724
1725 2006-03-21  Mike Kestner  <mkestner@novell.com>
1726
1727         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1728
1729 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1730
1731         * Mime.cs: Various speed optimizations. Looking up mime types
1732           is now 2 times faster than before
1733
1734 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1735
1736         * CreateParams.cs: Added internal menu field
1737         * Control.cs: 
1738           - Switched call order for UpdateBounds; now we always call
1739             the one that also takes ClientSize, and we're calculating the 
1740             client size via driver method in the others. The previous
1741             method of tracking client size by difference wasn't working
1742             for forms where even the starting client size wouldn't match
1743             the overall form size (due to borders) (Part of fix for #77729)
1744           - CreateParams(): Do not use parent.Handle unless the handle is
1745             already created. Causes havoc with Nexxia and throws off our
1746             creation of controls
1747         * XplatUIX11.cs:
1748           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1749           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1750             method (consolidates code)
1751           - Changed RequestNCRecalc to use new PerformNCCalc method
1752           - Added calls to RequestNCRecalc when menus and borders are changed
1753             to allow app to set NC size. (Part of fix for #77729) This matches
1754             when MS send a WM_NCRECALC on Win32 windows.
1755           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1756             (Part of fix for #77729). This matches what MS does, they also
1757             send that message when the form is made visible.
1758           - XException.GetMessage: Improved usability of X errors by including
1759             a translation of the window into Hwnd and Control class
1760           - Improved debug info for window creation, reparenting and destruction
1761           - Created helper method WindowIsMapped() [Currently not used]
1762         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1763         * Form.cs:
1764           - CreateParams: Now setting our menu on the new internal menu field
1765           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1766             avoid calculating the same property twice
1767         * Hwnd.cs:
1768           - Improved usability of ToString() for debugging purposes
1769           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1770             determine the height of the menu, instead of just the font. This
1771             required to also create a graphics context and to keep a bmp 
1772             around (for performance reasons)
1773
1774 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
1775
1776         * MenuAPI.cs: Added OnMouseUp method
1777         * Form.cs:
1778           - Now remembering the requested client size, avoids size errors
1779           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1780             instead of base if the menu is active. This is required due to
1781             control now capturing and releasing on down/up and it would
1782             prematurely release our menu capture
1783
1784 2006-03-17  Jackson Harper  <jackson@ximian.com>
1785
1786         * KeyboardLayouts.cs: Add the czech layouts.
1787
1788 2006-03-16  Jackson Harper  <jackson@ximian.com>
1789
1790         * Control.cs: Use the viewport space when sizing not the controls
1791         client size, so things like ScrollableControl that effect the
1792         viewport size (when scrollbars are added) are computed correctly.
1793         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1794         of ManagerEntrys.
1795         - Handle creating BindingManagers for null data sources.
1796         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1797         source, otherwise when rows are added they are added to the 'fake'
1798         datasource and we will crash when trying to set the position in
1799         those rows.
1800         - Use Implicit scrollbars on the datagrid so they arent
1801         selectable.
1802         
1803 2006-03-16  Jackson Harper  <jackson@ximian.com>
1804
1805         * Binding.cs:
1806         * InternalWindowManager.cs:
1807         * MdiWindowManager.cs:
1808         * X11Keyboard.cs: I really want Mike to love me again (fix
1809         compiler warnings).
1810
1811 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
1812
1813         * DataGrid.cs:
1814           - OnMouseDown: Switch to editing mode when clicking on the cell
1815                          even if we're clicking on the cell that's currently 
1816                          selected
1817           - ProcessGridKey: Left/Right now wrap like MS.Net does
1818           - ProcessGridKey: Tab now knows to add a new row when tab is
1819                             pressed in the cell of the last column of the 
1820                             last row
1821           - ProcessGridKey: Enter now adds another row  if pressed in the last
1822                             row and selectes the new row, same column cell
1823           - ProcessGridKey: Home/End navigate columns, not rows, like 
1824                             originally implemented
1825           - Broke ProcessKeyPreview code out into an extra Internal method
1826             so it can be called from the edit code
1827         * DataGridTextBox.cs (ProcessKeyMessage):
1828           - Switched to accept Tab keypresses
1829           - Added F2 handling to allow jumping to the end of the edited cell
1830           - Added logic to allow moving caret left/right inside edited cell
1831             and making the edited cell jump when the caret hits cell borders
1832           - Tab and Enter are now passed to the datagrid after being handled
1833         * TextBoxBase.cs:
1834           - Removed capture code now that Control handles it
1835           - set_SelectionStart now ensures caret is visible
1836
1837 2006-03-16  Jackson Harper  <jackson@ximian.com>
1838
1839         * TrackBar.cs: Debackwards the increment/decrement for handling
1840         mouse clicks on the bar with vertical trackbars.
1841         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1842         bottom to match MS.
1843
1844 2006-03-16  Mike Kestner  <mkestner@novell.com>
1845
1846         * ListView.cs: make shift/ctrl keyboard and mouse selection 
1847         consistent with the MS control. Fix a bug in
1848         SelectedListViewItemCollection.Clear that was pissing me off for the
1849         better part of a day because the collection was being altered
1850         underneath us as we walked the list.
1851
1852 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
1853
1854         * Control.cs: Not sure how we could miss this so long, but it seems
1855           that MS.Net has Capture set all the way from before calling 
1856           OnMouseDown through sending the mouse events until after
1857           OnMouseUp. This will fix DataGrid's selection being set to end
1858           at the location of the MouseUp.
1859
1860 2006-03-15  Jackson Harper  <jackson@ximian.com>
1861
1862         * BindingContext.cs: Check the binding after its added so that it
1863           can initialize the binding managers and hookup to events.
1864         * Binding.cs: Data members seem to sometimes include rows/cols in
1865           the format Row.Column we now take this into account.
1866           - Hookup to the position changed event so we can update the
1867           control when the position has changed in the data set.
1868         * CurrencyManager.cs: Take into account the row/col naming
1869           convention when creating dataset tables.
1870         * BindingContext.cs: Using a newer better way of storing
1871           datasource/datamember pairs.  Hopefully this better matches MS for
1872           looking up binding managers.
1873
1874
1875 2006-03-15  Jackson Harper  <jackson@ximian.com>
1876
1877         * BindingContext.cs: The currency manager needs the data member
1878         name, if the member is a data set we use the name to find the
1879         correct table.
1880         * CurrencyManager.cs: When creating the list prefer an IList over
1881         an IListSource.
1882         - Attempt to create a DataTable from a DataSet (TODO: might need
1883         some better error checking here, although MS doesn't seem to have much)
1884         - If we have a DataTable create a view and use it as our list.
1885
1886 2006-03-15  Mike Kestner  <mkestner@novell.com>
1887
1888         * ListView.cs: keep a matrix of the icon mode layout to facilitate
1889         keyboard navigation. Support Up/Down/Left/Right selection correctly
1890         for all 4 View modes.
1891         * ListViewItem.cs: add internal row/col fields for icon layouts.
1892
1893 2006-03-15  Jackson Harper  <jackson@ximian.com>
1894
1895         * TabControl.cs: Redraw the tabs when we resize so their newly
1896         calculated sizes are drawn on screen.
1897         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
1898         composite characters.
1899         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1900         - filter events so that composite characters can be created
1901         patches by peter
1902         * X11Structs.cs: Add XIMProperties enum.
1903
1904 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1905
1906         * Control.cs (BringToFront, SendToBack): Don't use window or handle
1907           unless it's created
1908
1909 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1910
1911         * Control.cs (PerformLayout): We don't need to consider visiblity
1912           for anchoring, only for docking. This fixes 'whacky' alignment
1913           in listbox and other controls that use implicit scrollbars after
1914           the previous PerformLayout patch
1915         * ListBox.cs: Switched to use implicit scrollbars
1916           
1917 2006-03-14  Mike Kestner  <mkestner@novell.com>
1918
1919         * ToolBar.cs: 
1920         * VScrollBar.cs:
1921         - chain up the "new event" overrides to base and use
1922         OnEvent to raise them.  Part of fix for bug #76509.
1923
1924 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
1925
1926         * FileDialog.cs: Do not select an item in the parent directory
1927           on backspace
1928
1929 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1930
1931         * Control.cs (PerformLayout): It would seem that we considered
1932           invisible windows for our layout. Not quite the right thing
1933           to do. Now we don't any longer, thereby fixing bug #76889.
1934
1935 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1936
1937         * Control.cs (CanFocus): I goofed. A control can have focus 
1938           even though it's not selectable. Made it match MS docs.
1939
1940 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1941
1942         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1943           center by default (fixes #76895)
1944         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
1945           all uses of Border3DSides.All with the explicit ORd together
1946           Left|Right|Top|Bottom because I assume that nobody was aware 
1947           that All also implies a center fill. Most places I checked had
1948           a fill right above.
1949         * ProgressBarStyle.cs: Added
1950
1951 2006-03-13  Mike Kestner  <mkestner@novell.com>
1952
1953         * ListView.cs: fix breakage in drag shadow header positioning 
1954         from Peter's csc compilation fix.
1955
1956 2006-03-13  Mike Kestner  <mkestner@novell.com>
1957
1958         * ListView.cs: fix NRE produced by backspacing twice in a focused
1959         FileDialog.
1960
1961 2006-03-13  Mike Kestner  <mkestner@novell.com>
1962
1963         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1964
1965 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1966
1967         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1968           be changed
1969         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1970           the allowed size before making programmatic size changes
1971
1972 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
1973
1974         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
1975           set, metacity is broken and will still use the emty sizes in 
1976           the struct. (Fix for #77089)
1977
1978 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1979
1980         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
1981           WindowExStyles and marked both enums as Flags
1982         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
1983           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
1984           to match WindowStyles split
1985         * XplatUIX11.cs:
1986           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
1987           - Updated to match WindowStyles split
1988         * XplatUIWin32.cs:
1989           - Fixed FosterParent creation, was using ExStyle on the Style field
1990             (This should help with Popup focus issues)
1991           - Updated to match WindowStyles split
1992
1993 2006-03-13  Jackson Harper  <jackson@ximian.com>
1994
1995         * MdiWindowManager.cs: Use the system menu height. Fixes some
1996         strange sizing issues.
1997
1998 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1999
2000         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2001         * TextBoxBase.cs:
2002           - Scroll to caret after inserting text (#77672)
2003           - Make scroll range one pixel higher, fixes off-by-one error (and
2004             makes underlines visible on the last line)
2005
2006 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2007
2008         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2009           the keyboard state from being stuck with keys in 'pressed' state when
2010           focus is switched away via keyboard
2011         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2012           reset the keyboard if no X11 KeyUp events are expected to come
2013         * X11Structs.cs: Switched type of Visible to bool to match driver
2014
2015 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2016
2017         * TextControl.cs:
2018           - Switched caret to be just 1 pixel wide, matches MS and looks less
2019             clunky
2020           - Moved caret display 1 pixel down from the top of the control
2021             to improve view
2022           - InsertCharAtCharet: Update the selection start if moving the caret
2023             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2024           - No longer always creating the caret when the caret methods are
2025             called. Only the actual ShowCaret/HideCaret will do that now
2026           - Only setting caret visible if the owner control has focus
2027           - UpdateView: Added invalidation-shortcut logic for center and right 
2028             aligned text. Previously we'd update all according to the left
2029             logic which caused drawing errors. Also fixed height of invalidated
2030             areas, now properly invalidating the whole area (was off-by-one)
2031           - owner_HandleCreated: Always generate the document when the
2032             handle is created; this ensures that 
2033         * TextBoxBase.cs:
2034           - Fixed situation where caret would disappear under the right
2035             window border, also improved scrolling behaviour on left-
2036             aligned textboxes
2037           - Fixed right-aligned textboxes to have a border to the
2038             right instead of the caret being under the right border
2039         * XplatUIX11.cs:
2040           - Switched from 'nested' to simple visible/not visible tracking 
2041             for caret (part of fix for #77671)
2042           - No longer passing through translated FocusIn/FocusOut messages
2043             since we were notifying too often and the wrong windows. Instead
2044             we just notify our focussed window of receiving or loosing focus
2045         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2046           counting for caret to simple visible yes/no behaviour (part of 
2047           fix for #77671)
2048
2049 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2050
2051         * Mime.cs: Remove debug code...
2052
2053 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2054
2055         * MimeGenerated.cs: Removed
2056         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2057           and subclasses) from /usr/(local/)share/mime and
2058           $HOME/.local/share/mime.
2059
2060 2006-03-10  Jackson Harper  <jackson@ximian.com>
2061
2062         * MdiWindowManager.cs: Recalc the NC area when a window is
2063         maximized/restored so that the menu area is drawn on forms that
2064         don't have a menu.
2065
2066 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2067
2068         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2069           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2070           us to force a WM_NCCALCRESIZE message being sent. This is needed
2071           for MDI maximizing.
2072
2073 2006-03-10  Jackson Harper  <jackson@ximian.com>
2074
2075         * Form.cs: We need to use the ActiveMenu when calculating menu
2076         height.
2077         - Fix nullref when the window manager hasn't been created yet.
2078         * Control.cs: Fix nullref when we try to bring a control to the
2079         front that has no parent.
2080         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2081         height.
2082         - Add a dummy item to the maximized menu so it always has the
2083         correct height. Otherwise when there are no menus we don't get our
2084         icon and buttons.
2085         
2086
2087 2006-03-10  Jackson Harper  <jackson@ximian.com>
2088
2089         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2090         stuff.
2091         * Form.cs: Make the window_state internal so the window managers
2092         can track it.
2093         - When an MDI child is maximized let its window manager create the
2094         main menu (so it can add its icon).
2095         - Notify the window managers of state changes
2096         - Let the window manager paint its buttons and handle button
2097         clicks on the menu when it is maximized.
2098         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2099         window manager, since tool windows don't use it, only mdi windows.
2100         - Tell the main form that we don't want it to handle NCPAINT
2101         itself to avoid extra painting.
2102         - Handle clicks on a maximized windows menu.
2103         - Handle window state changes
2104         - Handle minimize/maximize clicks correctly by setting the window state.
2105         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2106         when clicking on the forms icon).
2107         - New method to create a forms maximized menu. This is its normal
2108         menu + an icon.
2109         - Handle window state changes.
2110         - Handle sizing of maximized windows.  Maximized windows are just
2111         drawn bigger then the parent visible area. All controls are still
2112         there, they are just outside the visible area (this matches windows).
2113         * MdiClient.cs: No scrollbars when a child window is maximized.
2114         - Let the children windows figure out how big they should be when
2115         sizing maximized windows.
2116         - Implement a version of ArrangeIconicWindows somewhat similar to
2117         Windows version.  There are some little differences, but I don't
2118         think any app will rely on the layout of minimized mdi windows.
2119
2120 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2121
2122         * Padding.cs: Several fixes to allow compiling with csc 2.0
2123
2124 2006-03-09  Jackson Harper  <jackson@ximian.com>
2125
2126         * Menu.cs:
2127         * MenuItem.cs: Cheap hack so we can add items to the list without
2128         the events being raised.  This allows adding mdi items during
2129         drawing. TODO: Should probably find a better time to add the items.
2130
2131 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2132
2133         * ThemeWin32Classic.cs:
2134           - CheckBox_DrawText: Added logic to not wrap if not enough space
2135             is available (Fix for bug #77727)
2136           - RadioButton_DrawText: Added logic not to wrap if not enough
2137             space is available (Fix for bug #77727). Also removed some
2138             duplicate code, DrawString always drawing the regular text
2139             before hitting the if statement.
2140
2141 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2142
2143         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2144
2145 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2146
2147         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2148         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2149           methods. Moved the new 2.0 properties into alphabetical order with
2150           other properties and added MonoTODO tags
2151
2152 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2153
2154         * AutoScaleMode.cs: Added. Fix build.
2155
2156 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2157
2158         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2159           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2160           and was requiring premature handle creation for calls from above
2161         * Form.cs, Control.cs: Removed handle arguments from calls to
2162           CalculateClientRect()
2163
2164 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2165
2166         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2167           drag_column.column_rect is MarshalByRef and can't be used that way
2168
2169 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2170
2171         * AxHost.cs: Added deserialization constructor for 
2172           AxHost+State (fixes 77743)
2173
2174 2006-03-09  Mike Kestner  <mkestner@novell.com>
2175
2176         * ListView.cs: 
2177         - Added column drag reordering for details view.
2178         - fixed behavior when mouse is dragged off column and
2179         AllowColumnReorder is false.
2180         * ColumnHeader.cs: clone the format too in Clone.
2181         * Theme.cs: add DrawListViewHeaderDragDetails method.
2182         * ThemeWin32Classic.cs:
2183         - impl new method for drawing drag column shadows and targets.
2184         - support column offset for details mode in DrawListViewItem.
2185
2186 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2187
2188         * TextControl.cs: Reset the char_count when the document is cleared
2189           (Fixes bug reported on mono-winforms mailing list)
2190
2191 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2192
2193         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2194           of calling base we simply process the key ourselves, since both
2195           DefWindowProc and the handled method would set m.Result. 
2196           (Fixes #77732)
2197
2198 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2199
2200         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2201           method also moves the window; instead implemented a copy of
2202           Control.ScaleCore (Part of fix for #77456)
2203         * TextBoxBase.cs: 
2204           - Created new CreateGraphicsInternal method to allow providing
2205             a graphics context when no handle is created without triggering
2206             handle creation. (Part of fix for #77456)
2207           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2208         * TextControl.cs: 
2209           - Switched Constructor to require TextBoxBase instead of Control (to
2210             allow uncast access to CreateGraphicsInternal)
2211           - Safeguarded use of owner.Handle property. No longer accessing it
2212             unless the handle is already created.
2213           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2214           - Now triggering a recalc when owning control becomes visible
2215         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2216           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2217           premature handle creation (Part of fix for #77456)
2218         * Control.cs:
2219           - We now only destroy our double-buffering buffers when the
2220             control is resized or disposed, but not when visibility
2221             changes. (The code even re-created them twice every time)
2222           - Now requiring a redraw of the buffer on visibility changes
2223             (fixes bug 77654 part 2)
2224           - Not passing OnParentVisibleChanged up unless the control
2225             is visible
2226           - CanFocus: Fixed to match MS documentation
2227           - Focus: Fixed to return actual focus state and to check if
2228             setting focus is legal before setting it
2229
2230 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2231
2232         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2233           when to draw focus rectangle by looking at parent focus and
2234           selected state instead. This fixes TabPages on Linux sometimes
2235           having none or multiple focus rectangles.
2236         * XplatUIX11.cs (SetFocus): 
2237           - Don't set the focus if the same window already has focus
2238           - Use SendMessage instead of PostMessage (like it's Win32
2239             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2240             to match MS behaviour
2241         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2242           are not selectable.
2243
2244 2006-03-07  Jackson Harper  <jackson@ximian.com>
2245
2246         * PictureBox.cs: Revert line I accidently committed last week.
2247
2248 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2249
2250         * Control.cs: 
2251           - Added new IsRecreating and ParentIsRecreating properties to
2252             allow testing if RecreateHandle has been called on ourselves
2253             or one of our parents
2254           - WndProc(WM_DESTROY): If our control handle is being recreated
2255             we immediately need to create the handle when receiving the
2256             destroy, that way our child windows find a valid parent handle
2257             when they themselves are being recreated upon WM_DESTROY receipt
2258             (fix for bug #77654 part 1)
2259         * XplatUIX11.cs:
2260           - DestroyWindow: WM_DESTROY must be sent to our own window before
2261             notifying any child windows. MS documents that child windows
2262             are still valid when WM_DESTROY is received. (Control now relies on
2263             this behaviour)
2264           - Added some fine-grain debug options
2265
2266 2006-03-06  Jackson Harper  <jackson@ximian.com>
2267
2268         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2269         box and base calculations off this.
2270         * MdiChildContext.cs:
2271         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2272         anymore.
2273         
2274 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2275
2276         * Splitter.cs: In situations where the affected control is added
2277           to the parent's control list after the splitter, we would not
2278           populate affected. Now we try populating it on mousedown, if
2279           it's not already set, and force it to be re-set whenever our
2280           parent changes.
2281
2282 2006-03-03  Matt Hargett  <matt@use.net>
2283
2284         * Control.cs: implement Control.Padding
2285         * Padding.cs: -Padding.All returns -1 when constructing with the
2286         implicit default ctor
2287         -Padding.ToString() matches MS.NET
2288         * ContainerControl.cs: implement
2289         ContainerControl.AutoScaleDimensions
2290         * ListControl.cs: implement ListControl.FormattingEnabled
2291         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2292         * ButtonBase.cs:
2293         * TabPage.cs: Implement UseVisualStyleBackColor.
2294         * PictureBox.cs: Implement PictureBox.InitialImage.
2295
2296 2006-03-03  Mike Kestner  <mkestner@novell.com>
2297
2298         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2299         event declarations to proxy to base event.
2300         * ListViewItem.cs: update to use ItemControl.
2301         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2302         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2303         column header label rendering for 0 width columns.
2304
2305 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2306
2307         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2308           that causes the control to be created. Fixes #77476.
2309
2310 2006-03-02  Jackson Harper  <jackson@ximian.com>
2311
2312         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2313         expose_pending.
2314
2315 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2316
2317         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2318           passed in for the EventArgs (fixes #77690)
2319
2320 2006-03-01  Jackson Harper  <jackson@ximian.com>
2321
2322         * ScrollBar.cs: Refresh afterbeing resized.
2323
2324 2006-02-28  Mike Kestner  <mkestner@novell.com>
2325
2326         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2327         Clean up a tracker compile warning.
2328         * MenuItem.cs: add internal PerformPopup method.
2329         [Fixes #77457]
2330
2331 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2332
2333         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2334           implicit expose) when the text is set to null
2335
2336 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2337
2338         * RichTextBox.cs (FlushText): When newline is true, we always
2339           need to split the line, even if no text is on it and we may
2340           never eat newlines. (Fixes #77669)
2341
2342 2006-02-28  Mike Kestner  <mkestner@novell.com>
2343
2344         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2345         and set Selected instead.
2346         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2347         collections.
2348
2349 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2350
2351         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2352
2353 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2354
2355         * FontDialog.cs:
2356           - Got rid of the panel. All controls are now directly added to
2357             the dialog form
2358           - It is now possible to set a font with the Font property
2359           - MinSize and MaxSize property do now what they should
2360           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2361           - Searching and selecting a font with the font textbox works now,
2362             the same applies to the style and size textbox
2363           - Draw the correct 3D border in the example panel
2364           - Fixed a little mem leak (unused fonts didn't get disposed)
2365           - Many other internal updates/rewrites...
2366           - Fix typo
2367
2368 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2369
2370         * TextControl.cs: 
2371           - InsertRTFFromStream: Added 'number of characters inserted' argument
2372           - set_SelectedRTF: Now using the number of characters to calculate
2373             the new location for the selection and cursor (x/y cannot be used
2374             due to potentially already wrapped text)
2375
2376 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2377
2378         * TextControl.cs: Added property and implemented means to allow 
2379           disabling recalculation of a document (can be used to speed up
2380           multiple inserts and is needed to make RTF inserts predictable, see
2381           bug #77659)
2382         * RichTextBox.cs: Using the new NoRecalc property of Document to
2383           keep x/y insert locations predictable. Also makes it faster inserting
2384           large chunks of RTF
2385
2386 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2387
2388         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2389           it's easier for a child control to handle the other messages without
2390           having to duplicate the special functionality
2391         * TextBoxBase.cs
2392           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2393             code to handle processing the key ourselves, in order to get 
2394             access to the result of KeyEventArgs.Handled. We now only call 
2395             ProcessKey if they key hasn't been handled already. Fixes #77526.
2396           - set_Text: If null or empty string is given, just clear the 
2397             document. Fixes part of #77526
2398
2399 2006-02-27  Jackson Harper  <jackson@ximian.com>
2400
2401         * SizeGrip.cs: Paint the background color before painting the grip
2402         so things look right.
2403         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2404
2405 2006-02-27  Mike Kestner  <mkestner@novell.com>
2406
2407         * ListView.cs:
2408           - Restructure layout and invalidation model to remove a ton of
2409           flicker from the control and speed up performance in general.
2410           - Add manual column resize, flickers like crazy, but I already have
2411           some ideas on how I'll fix that. (#76822)
2412           - Merge the three Icon-based views into a single layout method.
2413           - Move item selection interaction logic from the item since 
2414           interaction with the collections is more appropriate to the view.
2415           - Deselection on non-item clicks.
2416         * ListViewItem.cs:
2417           - Encapsulate most of the layout. Add some internal props to trigger
2418           layout.  Move to a model where Items invalidate themselves instead
2419           of just invalidating the whole control every time something changes.
2420           - Invalidate on Text/Caption changes.
2421           - switch to an offset based layout model to avoid having to absolute
2422           position every element on item moves.
2423           - correct checkbox layout to conform to MS layout.
2424         * ThemeWin32Classic.cs:
2425           - refactor some column header drawing code.
2426           - fix string justification for column headers (#76821)
2427           - make SmallIcon labels top justified for compat with MS impl.
2428         * ThemeClearlooks.cs:
2429           - adjust to new ListViewItem internal checkbox bounds api.
2430
2431 2006-02-27  Jackson Harper  <jackson@ximian.com>
2432
2433         * Control.cs:  Change where implicit controls fall in the zorder.
2434         They are now on top of all children.
2435         - Synced AddImplicit code with Add
2436         - Removed unused enumerator.
2437         * SizeGrip.cs: Remove the TODO as its been TODONE.
2438
2439 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2440
2441         * TextControl.cs(Insert): Combine the last lines unless the insertion
2442           string ends with \n\n, otherwise we leave one line too many (Fixes
2443           something I noticed with the testapp for #77526; the bug itself was
2444           already fixed in the previous checkin)
2445
2446 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2447
2448         * RichTextBox.cs:
2449           - SelectionColor and SelectionFont methods no longer set absolute
2450             styles. Instead, the keep font or color respectively (This 
2451             resolves a long-standing FIXME in the code)
2452           - When flushing RTF text, the insert code now considers text trailing
2453             behind the insertion point (Fixes the bug where when replacing
2454             the selected text via SelectedRTF the remainder of the line behind 
2455             the selection would stay on the first insertion line)
2456         * TextBoxBase.cs:
2457           - AppendText now updates the selection points after inserting text
2458           - AppendText now ensures that the last tag (sometimes 0-length) of
2459             the document is used for the style information (Fixes part of 
2460             bug #77220)
2461         * TextControl.cs:
2462           - Created new FontDefiniton class to allow describing partial style
2463             changes
2464           - StreamLine() now takes a lines argument, to allow it to decide
2465             whether an encountered zero-length tag is the last in the document
2466             (which must be kept to not loose the font/color contained in it,
2467             for later appends)
2468           - Created Combine() and Split() methods for Marker structs, to 
2469             support marker updates due to reformatted documents (soft line
2470             wraps)
2471           - Implemented Document.CaretTag setter
2472           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2473             of the last line (Not the cause, but also exposed by bug #77220)
2474           - Added LineTag argument to InsertString method, to allow callers
2475             to force a certain tag to be used (required to force use of the
2476             trailing zero-length tag of a document)
2477           - Now updating markers in Combine(), to avoid stale tag markers
2478           - Added some method descriptions to aid maintenance
2479           - Implemented new FormatText concept, allowing additive/subtractive
2480             formatting by only specifying the components that are to be 
2481             changed. This was needed for resolving the RTB.SelectedColor/
2482             RTB.SelectedFont fixmes
2483           - Added Break() support method to allow breaking up linetags (used
2484             for partial formatting)
2485           - Added GenerateTextFormat() method. It is used for partial 
2486             formatting and allows to generate a full font/color from given
2487             attributes and an existing tag.
2488
2489 2006-02-26  Jackson Harper  <jackson@ximian.com>
2490
2491         * XplatUIX11.cs:  Use the correct caption height.
2492         - Translate hittest coordinates to screen coords to match MS.
2493         * XplatUIWin32.cs: When we create MDI windows we need to reset
2494         some of the style flags, so we get a nice blank window, and can
2495         draw all the decorations ourselves.
2496         - Set a clipping rectangle on the non client paint event, the
2497         window manager drawing code needs one.
2498         * Form.cs: The window manager needs to know when the window state
2499         has been updated.
2500         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2501         don't need to factor in border and title sizes in these
2502         methods. TODO: Remove the args and fix the call points.
2503         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2504         properly.
2505         - Let the driver set the cursors.
2506         - Improve active window handling
2507         - Correct sizes for title bars and buttons.
2508         - Match MS drawing better
2509         * MdiWindowManager.cs: We don't need to handle border style
2510         updates specially anymore.
2511         - Check for scrollbars when windows are done moving
2512         - Handle Active properly.
2513         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2514         correctly. I am spewing the exception though, so we don't hide the
2515         bugs.
2516         
2517 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2518
2519         * DataGridViewRowPostPaintEventArgs.cs,
2520           DataGridViewCellPaintingEventArgs.cs,
2521           DataGridViewRowCollection.cs,
2522           DataGridViewRowPrePaintEventArgs.cs,
2523           DataGridViewCell.cs: Clear a few warnings and implement a few
2524           exceptions that should be thrown.
2525
2526 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2527
2528         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2529           'inheriting' our parent's (non-default) cursor. (Part of
2530            the fix for #77479)
2531
2532 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2533
2534         * XplatUIX11.cs: Fixed cast to make csc happy
2535
2536 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2537
2538         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2539           it's for the client area (part of fix for #77479 and needed
2540           for MDI window cursor handling)
2541         * XplatUIX11.cs
2542           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2543             the appropriate default cursors and also passing the message
2544             up the parent chain 
2545           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2546             for non-client areas
2547
2548 2006-02-15  Jackson Harper  <jackson@ximian.com>
2549
2550         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2551         is a real MDI window
2552
2553 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2554
2555         * X11DesktopColors.cs: Instead of checking the desktop session
2556           string for "KDE" check if it starts with "KDE"
2557
2558 2006-02-10  Jackson Harper  <jackson@ximian.com>
2559
2560         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2561         systems).
2562
2563 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2564
2565         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2566           errors
2567         * ColorDialog.cs:
2568           - Got rid of the panel. All controls are now directly added to
2569             the dialog form
2570           - Changed to mono coding style
2571
2572 2006-02-10  Jackson Harper  <jackson@ximian.com>
2573
2574         * InternalWindowManager.cs: We don't need the set visibility to
2575         false hack anymore now that peter has written beautiful shutdown
2576         code.
2577
2578 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2579
2580         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2581           where already explicitly destroyed
2582
2583 2006-02-10  Jackson Harper  <jackson@ximian.com>
2584
2585         * MdiClient.cs: Handle the case where windows are too high or to
2586         the left and we need scrollbars.
2587
2588 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2589
2590         * MimeIcon.cs: Added some icons
2591         * FileDialog.cs:
2592           - Fixed bug #77477
2593           - Got rid of the panel. All controls are now directly added to
2594             the dialog form
2595           - Changed to mono coding style
2596           - On Linux "My Computer" and "My Network" will now show some
2597             more usefull information. A new class, MasterMount, gathers
2598             this information from /proc/mount. Updated MWFFileView to make
2599             use of this information
2600           - Fixed a bug that caused FileDialog to crash when
2601             ".recently_used" file had a zero size
2602           - FilterIndex does now what it should
2603           - Some Refactoring
2604         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2605             FileDialog changes
2606
2607 2006-02-09  Jackson Harper  <jackson@ximian.com>
2608
2609         * ComboBox.cs: Don't touch if null.
2610
2611 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2612
2613         * Cursor.cs: 64bit safeness fix
2614         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2615
2616 2006-02-09  Jackson Harper  <jackson@ximian.com>
2617
2618         * Form.cs: If a form is made into an MDI form update the styles so
2619         all the props can get set correctly.
2620         - Kill the mdi_container when we dont need it anymore.
2621         * InternalWindowManager.cs: Add missing NOT
2622
2623 2006-02-08  Jackson Harper  <jackson@ximian.com>
2624
2625         * InternalWindowManager.cs: Respek clipping when drawing MDi
2626         decorations.
2627
2628 2006-02-08  Jackson Harper  <jackson@ximian.com>
2629
2630         * Hwnd.cs: Add bits to track non client expose events.
2631         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2632         gives us a proper invalid rect and will allow for some nice
2633         optimizations with NC client drawing
2634         - MDI windows are children windows, so move their style handling
2635         into the child window block.
2636         * InternalWindowManager.cs: Remove a state reset that was
2637         getting invoked at the wrong time. Fixes managed windows getting
2638         into a 'stuck' captured state.
2639
2640 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2641
2642         * TextControl.cs (Document.ctor): Now initializing 
2643           selection_anchor. Fixes #77493
2644
2645 2006-02-07  Jackson Harper  <jackson@ximian.com>
2646
2647         * TrackBar.cs: The increment/decrements were backwards.
2648
2649 2006-02-07  Mike Kestner  <mkestner@novell.com>
2650
2651         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2652         to the instance itself.
2653
2654 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2655
2656         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2657           on ulongs and pointers, the size differs between 32bit and 64bit
2658           systems. 
2659
2660 2006-02-07  Mike Kestner  <mkestner@novell.com>
2661
2662         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2663         for 64 bit platforms to work around a metacity bug. 
2664
2665 2006-02-07  Jackson Harper  <jackson@ximian.com>
2666
2667         * TrackBar.cs: Process the input keys we need, and hookup to
2668         KeyDown instead of using WndProc, so we get key messages.
2669
2670 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2671
2672         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2673           machine we're on. 
2674         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2675           we need to translate the XdndVersion atoms array before sending it
2676
2677 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2678
2679         * XplatUIX11.cs: 
2680           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2681             number of bits for the property, not the number of bytes. The
2682             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2683             but would not crash since it specified 8 bits instead of 4 bits)
2684           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2685             defined as XID -> long in the C headers)
2686           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2687             references since those are now IntPtr to begin with
2688           - Switched all Atom.XXX 'int' casts to IntPtr casts
2689           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2690           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2691           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2692         * X11Structs.cs:
2693           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2694           - Changed atom in HoverStruct to be IntPtr
2695         * X11DnD.cs:
2696           - Removed local DllImports, switched code to use those from XplatUIX11
2697           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2698
2699 2006-02-06  Mike Kestner  <mkestner@novell.com>
2700
2701         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2702         method signatures in the import region.  There may still be some
2703         lingering struct marshaling issues, as I didn't drill down into those.
2704         Yet.
2705
2706 2006-02-06  Jackson Harper  <jackson@ximian.com>
2707
2708         * ComboBox.cs: Dont manually set the top_item, this is computed
2709         when the scrollbar position is set.
2710
2711 2006-02-06  Mike Kestner  <mkestner@novell.com>
2712
2713         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2714         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2715         usage of Atom needs to be mapped to IntPtr for example.  And there are
2716         likely other int/long issues to be addressed.
2717
2718 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2719
2720         * FileDialog.cs: One more...
2721
2722 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2723
2724         * FileDialog.cs: Next try
2725
2726 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2727
2728         * FileDialog.cs: First part of fix for #77464
2729
2730 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2731
2732         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2733           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2734           AcceptButton border drawing.
2735
2736 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2737
2738         * Form.cs: Moved positioning of form after auto scaling is applied,
2739           otherwise it would possibly use wrong form size.
2740
2741 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2742
2743         * Control.cs (RecreateHandle): No need to re-create any child
2744           controls, the child windows will get destroyed automatically by
2745           the windowing system or driver, and re-created when the handle
2746           is being accessed the first time. Fixes #77456
2747         * Form.cs: No longer setting the form to closing if the handle is 
2748           being recreated. This seems like the right thing to do, don't
2749           have a bug or testcase for this, though.
2750
2751 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2752
2753         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2754           controls to avoid unwanted side effects
2755
2756 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2757
2758         * Control.cs: 
2759           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2760             control. Fixes #77416.
2761           - DefaultSize is 0,0 for control
2762         * TextBoxBase.cs: 
2763           - DefaultSize is 100, 20
2764           - SetBoundsCore: Now enforcing the height, no matter if the provided
2765             height is more or less than the preferred one, as long as AutoSize
2766             is on
2767         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2768
2769 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2770
2771         * Control.cs:
2772           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2773             call unless both performLayout is true *and* we have a pending
2774             layout change
2775           - ResumeLayout: MS does not completely nest Suspend and Resume,
2776             they bottom out at 0, fixed our code to match that.
2777           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2778             SetBoundsCore, we were updating even when we shouldn't. This fixes
2779             swf-anchors mis-anchoring when resizing the app fast and lots.
2780           - UpdateDistances: Now only setting the left and top distance if 
2781             we have a parent and are not suspended, this is based on
2782             a suggestion by Don Edvaldson in bug #77355.
2783           - OnVisibleChanged: Fixed logic when to create the control. We may
2784             not create the control if we have no parent or if it's not visible;
2785             switched to using Visible property instead of is_visible field 
2786             since the property also considers parent states. This fixes a bug
2787             when starting Paint.Net
2788
2789 2006-02-02  Jackson Harper  <jackson@ximian.com>
2790
2791         * Form.cs: If the forms handle hasn't been created yet don't call
2792         into xplatui to make it top most, just set the topmost flag on the
2793         form in CreateParams
2794         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2795
2796 2006-02-01  Jackson Harper  <jackson@ximian.com>
2797
2798         * ScrollableControl.cs: Refactored the Recalculate method a
2799         little, this wasn't handling all the variants of bottom and right
2800         bars needed to be added and added/removed based on their
2801         counterparts being added/removed (which changes the drawable
2802         size). Also we special case client widths and heights of 0 and
2803         don't add the scrollbar for those.
2804
2805 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
2806
2807         * XplatUIX11.cs: 
2808           - Added method to get AbsoluteGeometry(); currently unused, but might
2809             be used in the future, if we try again to figure out toplevel
2810             coordinates with some more crappy window managers
2811           - Added FrameExtents() method to retrieve the WM set decoration size
2812           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
2813             to deal with at least KDE, FVWM and metacity (Fixes #77092)
2814         * Hwnd.cs: 
2815           - Added whacky_wm tracking var for metacity
2816           - Added logic to have default menu height if the actual menu height
2817             has not yet been calculated (part of fix for #77426)
2818         * Form.cs: Keep track whether client size has been set and re-set 
2819           it if a menu is added/removed afterwards (Fixes #77426)
2820
2821 2006-01-31  Jackson Harper  <jackson@ximian.com>
2822
2823         * Control.cs: When a new Site is set on the component attempt to
2824         pull the AmbientProperties from it.
2825
2826 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
2827
2828         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2829           in the background of the owning form. Fixes #77332
2830
2831 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2832
2833         * MimeIcon.cs: Fix for #77409
2834
2835 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2836
2837         * XplatUIX11GTK.cs: Initial import
2838
2839 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
2840
2841         * FixedSizeTextBox: fixes class signature
2842
2843 2006-01-30  Jackson Harper  <jackson@ximian.com>
2844
2845         * FixedSizeTextBox.cs: New internal class that represents a
2846         textBox that will not be scaled.
2847         * TreeView.cs:
2848         * ComboBox.cs:
2849         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2850         standard TextBox.
2851                 
2852 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
2853
2854         * XplatUIX11.cs: Retrieve default screen number instead of
2855           assuming 0. Attempted fix for #77318
2856
2857 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
2858
2859         * XplatUIWin32.cs: 
2860           - GetWindowPos: When a window is parented by FosterParent, use 
2861             the desktop instead of FosterParent as the base to get coordinates
2862           - CreateWindow: Don't make FosterParent the parent window for Popups
2863             if we don't want a taskbar entry, Popups automatically don't get one
2864         * Hwnd.cs: Need to call remove to actually remove the key from the
2865           hash table
2866
2867 2006-01-30  Mike Kestner  <mkestner@novell.com>
2868
2869         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2870
2871 2006-01-30  Jackson Harper  <jackson@ximian.com>
2872
2873         * TreeView.cs:
2874         * TreeNode.cs: Raise events no matter how the treenode is
2875         checked. Patch by Don Edvalson.
2876
2877 2006-01-30  Jackson Harper  <jackson@ximian.com>
2878
2879         * TreeNode.cs: Signature fix.
2880
2881 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
2882
2883         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2884
2885 2006-01-20  Mike Kestner  <mkestner@novell.com>
2886
2887         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2888         event forwarding when menus are active.
2889         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
2890         Most of the patch is pdb's with a little rework.
2891
2892 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2893
2894         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
2895           Removed GetMenuDC and ReleaseMenuDC methods; replaced
2896           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2897         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2898         * InternalWindowManager.cs: Added use of PaintEventStart/End to
2899           handling of WM_NCPAINT message, now passing the PaintEventArgs to
2900           the PaintWindowDecorations method
2901         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2902         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2903         * MenuAPI.cs: Made tracker window invisible
2904         * XplatUIWin32.cs:
2905           - Removed GetMenuDC and ReleaseMenuDC methods
2906           - Implemented the client=false path for PaintEventStart and
2907             PaintEventEnd
2908
2909 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2910
2911         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2912         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2913           styles
2914         * Form.cs: 
2915           - MaximizeBox, MinimizeBox: Recreate the handle when setting
2916             the style
2917           - CreateParams: Reworked the styles to match MS look'n'feel,
2918             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2919             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2920
2921 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2922
2923         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
2924           window is not mapped, since otherwise every form that's being 
2925           created is considered minimized, which is wrong.
2926         * Form.cs: Catching the exception and returning our internal value
2927           instead
2928
2929 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2930
2931         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2932           SetWindowMinMax() to have means to tell the driver about the minimum,
2933           maximum and maximized state window sizes. (Part of the fix for #76485)
2934         * Form.cs:
2935           - Implemented tracking of minimum and maximum window size, now calling
2936             new SetWindowMinMax() driver method to tell the driver (Part of the
2937             fix for #76485)
2938           - Finished handling of WM_GETMINMAXINFO method, now setting all values
2939             (Completes fix for #76485)
2940           - Calling new SetWindowMinMax driver method when the handle for a 
2941             form is created, to make sure the driver knows about it even if
2942             the values have been set before the window was created
2943           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2944             to avoid messing up our anchoring calculations (partial fix
2945             for #77355)
2946         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2947         * XplatUIX11.cs:
2948           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2949           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
2950             (and presumably other freedesktop.org compliant WMs). Left the
2951             assumption unmapped=minimized, needed for SetVisible to work.
2952           - Now setting the window state when creating windows
2953           - Fixed SetVisible to consider/set the window state when mapping
2954             a Form. We cannot set the state before it's mapped, and we cannot
2955             use Form.WindowState once it's mapped (since it would ask the
2956             driver and get 'normal'. Therefore, we grab the state before
2957             mapping, map, and then set state.
2958           - Implmemented SetWindowMinMax method; Metacity does not seem to
2959             honor the ZoomHints, though.
2960         * XplatUIWin32.cs:
2961           - Removed MINMAXINFO (moved to XplatUIStructs)
2962           - Added SetWindowMinMax stub (on Win32 the only way to set that
2963             information is in response to the WM_GETMINMAXINFO message, which
2964             is handled in Form.cs)
2965           - Added logic to SetVisible to set the proper window state when a 
2966             form is made visible (fixes #75720)
2967
2968 2006-01-26  Jackson Harper  <jackson@ximian.com>
2969
2970         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2971         same way we handle them with Invoke.
2972
2973 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
2974
2975         * Form.cs:
2976           - Added tracking of window state so CreateParams can return
2977             the appropriate style
2978           - Moved setting of WS_CAPTION style in CreateParams to allow
2979             styles without caption
2980         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
2981           control if the TextBox property is accessed. Fixes #77345
2982         * Control.cs:
2983           - get_Created: now uses is_disposed and is_created to determine
2984             return value (suggested by Jackson)
2985           - CreateHandle: No longer exits if the handle is being recreated
2986           - RecreateHandle: If the handle is not yet created call the 
2987             appropriate method to create either control or handle. If the
2988             control is already created CreateHandle will simply exit instead
2989             of just creating the handle
2990         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
2991           now SendMessage WM_DESTROY directly to the control when DestroyWindow
2992           is called.
2993         * XplatUIX11.cs: 
2994           - When DestroyWindow is called, instead of waiting for the 
2995             DestroyNotification from X11, we directly post it to the WndProc
2996             and immediately dispose the hwnd object.
2997             Same applies to DestroyChildWindows, and this obsoletes the
2998             expose_pending tracking. Contrary to Win32 behaviour we destroy our
2999             child windows before our own, to avoid X11 errors.
3000           - Removed the direct sending of WM_PAINT on UpdateWindow
3001         * XplatUIWin32.cs:
3002           - Reworked DoEvents and GetMessage to allow access to internal queue
3003             even when trying non-blocking access to the queue.  Fixes #77335. 
3004             Based on a patch suggestion by Don Edvalson. The new private
3005             GetMessage can now also be used as a backend for a PeekMessage
3006             frontend version.
3007         * XplatUI.cs: Improved debug output for CreateWindow
3008
3009 2006-01-25  Jackson Harper  <jackson@ximian.com>
3010
3011         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3012
3013 2006-01-24  Jackson Harper  <jackson@ximian.com>
3014
3015         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3016         when we have a MaxDropItems lower then the selected index.
3017
3018 2006-01-24  Jackson Harper  <jackson@ximian.com>
3019
3020         * Control.cs: Don't allow selection of non visible controls, allow
3021         selection of controls without parents.
3022
3023 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3024
3025         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3026         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3027
3028 2006-01-23  Jackson Harper  <jackson@ximian.com>
3029
3030         * UpDownBase.cs: Make the textbox handle all the selection and
3031         tabbing. This fixes tabing to updown controls.
3032
3033 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3034
3035         * TextBoxBase.cs: fixes exception thown the object was null
3036
3037 2006-01-23  Jackson Harper  <jackson@ximian.com>
3038
3039         * ButtonBase.cs: Just use the base CreateParams. They set
3040         visibility and enabled correctly.
3041         * ComboBox.cs:
3042         * TrackBar.cs:
3043         * MonthCalendar.cs: Lets let the base set as much of the
3044         createparams as possible so we don't have duplicate code all over
3045         the place.
3046
3047 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3048
3049         * ThemeGtk.cs: Added TrackBar and some experimental code to
3050           get double buffering back
3051
3052 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3053
3054         * DataGrid.cs: Allows row number set internally higher than the last
3055         when creating a new row. Restores the editing functionality.
3056
3057 2006-01-20  Mike Kestner  <mkestner@novell.com>
3058
3059         * MimeIcon.cs: delay Image creation until the icons are accessed
3060         instead of creating 190 scaled images on GnomeHandler startup.
3061
3062 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3063
3064         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3065           first call base before processing the event. Fixes #77279
3066
3067 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3068
3069         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3070           that the stride for the GDI bitmap would match the stride of
3071           a DIB or a Cursor.
3072
3073 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3074
3075         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3076
3077 2006-01-19  Jackson Harper  <jackson@ximian.com>
3078
3079         * ComboBox.cs: Hookup the text controls keydown event so we get
3080         those when the text control has the focus.
3081
3082 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3083
3084         * Label.cs: Now using the base events instead of defining new ones;
3085           this allows us to just call the base properties without having to
3086           duplicate all base property logic 
3087
3088 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3089
3090         * Label.cs: A label by default is not a tabstop (Fixes one of our
3091           failing nunit tests)
3092
3093 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3094
3095         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3096         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3097
3098 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3099
3100         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3101           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3102           This fixes #77218
3103         * XplatUIWin32.cs: 
3104           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3105             constructor creates images that can't be saved. Part of the fix
3106             for #76103
3107           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3108           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3109             bug fix for handling window state in forms properly)
3110
3111 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3112
3113         * ThemeGtk.cs: Simplify ScrollBar drawing
3114
3115 2006-01-18  Jackson Harper  <jackson@ximian.com>
3116
3117         * Splitter.cs: Set the default dock style for the splitter control
3118         in the constructor.
3119
3120 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3121
3122         * ThemeGtk.cs: Corrected StateType and ShadowType for
3123           gtk_paint_box
3124
3125 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3126
3127         * Control.cs: Make use of Theme.DoubleBufferingSupported
3128         * ThemeGtk.cs:
3129           - Added drawing for flat style buttons
3130           - Added ScrollBar drawing
3131
3132 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3133
3134         * ThemeClearlooks.cs: Removed some unneeded code.
3135         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3136
3137 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3138
3139         * LinkLabel.cs: We need to update the hover drawing when
3140           leaving the control as well.
3141
3142 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3143
3144         * DataGrid.cs: Clicking on non empty areas in the columns
3145            area was giving an exception
3146
3147 2006-01-17  Jackson Harper  <jackson@ximian.com>
3148
3149         * ThemeWin32Classic.cs:
3150         * ListView.cs: Do not draw/clip the headers when the header style
3151         is None.
3152
3153 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3154
3155         * DataGrid.cs: Fixes 77260
3156         
3157 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3158
3159         * DataGrid.cs: Clicking on a column on a empty grid was giving
3160           an exception
3161
3162 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3163
3164         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3165           or any keypress will crash the grid.
3166
3167 2006-01-17  Mike Kestner  <mkestner@novell.com>
3168
3169         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3170         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3171         invisible/previously-visible items.
3172         [Fixes #76909]
3173
3174 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3175
3176         * ThemeClearlooks.cs:
3177         - Added CL_Draw_Button method; now other theme controls that are 
3178           not derived from button or do not have a button can draw buttons
3179           too
3180         - Updated ComboBox drawing
3181         - Beautified RadioButton drawing
3182         - Corrected drawing of bottom and left tabs
3183         - Beautified DateTimePicker and MonthCalendar
3184         - Added CPDrawButton and CPDrawRadioButton
3185
3186 2006-01-16  Jackson Harper  <jackson@ximian.com>
3187
3188         * ComboBox.cs: Set the initial value of the scrollbar to the
3189         current index. Reduce the numbers of refreshs and IndexOfs called.
3190
3191 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3192
3193         * FileDialog.cs: When the file listview is focused hitting the
3194           backspace key moves the fileview to the parent directory
3195
3196 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3197
3198         * Form.cs: 
3199           - Added RecreateHandle call when changing taskbar visibility to 
3200             trigger reparenting in Win32 driver (Fixes #75719)
3201           - If a window has minimize or maximize buttons, it cannot have
3202             a help button
3203         * XplatUIWin32.cs:
3204           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3205             the toplevel form with FosterParent (A toolwindow not on the
3206             taskbar) (Fixes #75719)
3207           - Made FosterParent a toolwindow
3208
3209 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3210
3211         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3212
3213 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3214
3215         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3216           is currently over that control, make sure that tooltip_window.Text
3217           gets updated
3218
3219 2006-01-13  Mike Kestner  <mkestner@novell.com>
3220
3221         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3222
3223 2006-01-13  Jackson Harper  <jackson@ximian.com>
3224
3225         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3226         value passed.  Also redraw the selected node when we recieve
3227         focus, so tabbing between trees works correctly.
3228
3229 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3230
3231         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3232           ~/.gconf/%gconf-tree.xml, so use
3233           .gconf/desktop/gnome/interface/%gconf.xml
3234
3235 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3236
3237         * TextControl.cs: Draw text in gray if control is disabled
3238
3239 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3240
3241         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3242           make sure it's always visible. Fixes #76680.
3243
3244 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3245
3246         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3247
3248 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3249
3250         * PageSetupDialog.cs: Added.
3251         * PrintDialog.cs: Attributes.
3252         * PrintPreviewControl.cs: Updates.
3253         * PrintPreviewDialog.cs: Updates.
3254         
3255 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3256
3257         * Control.cs: Undid my selection check fix, since it's not needed
3258         * TextBoxBase.cs:
3259           - Now considering the presence of hscroll/vscroll when sizing
3260             vscroll/hscroll respectively. Fixed bug #77077
3261           - Added Left/Up/Down/Right to IsInputKey list to prevent
3262             ContainerControl from stealing them. This fixes what I broke
3263             with my last checkin.
3264
3265 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3266
3267         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3268           I finally understand how the property can be set without a setter :-)
3269
3270 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3271
3272         * Application.cs:
3273           - Switched RunLoop to use static Message.Create to create a 
3274             Message object
3275           - Added PreProcessMessage call in runloop for keyboard events; this
3276             is part of the fix for #77219, I overlooked this originally in the
3277             MSDN doc for PreProcessMessage
3278         * Control.cs:
3279           - Removed call to PreProcessMessage from handling of keyboard 
3280             messages; it's supposed to be done in the message pump
3281           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3282             per MSDN documentation.
3283           - IsInputChar: All chars are input chars by default; removed the 
3284             parent calling chain, MS does not document that
3285           - PreProcessMessage: If IsInputChar is true, we want to return false
3286             to allow dispatching of the message
3287           - When selecting the next control, now also check that we're not
3288             selecting ourselves again and therefore return a false positive.
3289         * TextBoxBase.cs:
3290           - Tried to match return values for IsInputKey and ProcessDialogKey
3291             to what MS returns; moved processing of our special keys outside
3292             ProcessDialogKey since MS does not seem to return true on those.
3293           - Moved code that previously was in ProcessDialogKey into new private
3294             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3295           - Reworked handling of WM_CHAR to not have to duplicate code from
3296             Control.cs anymore, instead we simply call down to base.
3297            
3298 2006-01-12  Jackson Harper  <jackson@ximian.com>
3299
3300         * ComboBox.cs: We always need to refresh the text area when
3301         EndUpdate is called. Fixes the combobox in the file dialog.
3302         * Control.cs: Don't create the creator_thread until the controls
3303         handle is created.  Also in InvokeRequired we check if the
3304         creator_thread is null. This gives the effect of InvokeRequired
3305         returning true if the controls handle is not created yet, and
3306         matches MS.
3307
3308 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3309
3310         * XplatUI.cs:
3311           - Added StartLoop() driver method. This is used to allow drivers to
3312             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3313             loop for a particular thread
3314           - Added EndLoop() driver method. This is called once the message
3315             pump for the thread is shut down
3316           - Added SupportsTransparency method to allow the driver to indicate
3317             opacity support for windows
3318         * Form.cs:
3319           - Removed TODO attribute, completed AllowTransparency property
3320           - Added documented logic to Opacity
3321         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3322           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3323           versions of CompatibleTextRendering
3324         * X11Structs.cs: Added opacity atom to our atom enumeration
3325         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3326           of a form might be set before it's reparented by the WM, and we need
3327           the opacity value without calling up to Form)
3328         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3329           SupportsTransparency() driver methods
3330         * Application.cs: Now calling StartLoop and EndLoop driver methods
3331         * XplatUIX11.cs:
3332           - Added opacity atom registration
3333           - Added StartLoop()/EndLoop() methods. They're empty right now but
3334             will need to get implemented when we switch to a per-thread queue
3335           - Implemented SupportsTransparency() method
3336           - Implemented SetWindowTransparency() method
3337           - Added support for setting the opacity value when a window is
3338             reparented (since the opacity needs to be set on the WM frame)
3339         * XplatUIOSX.cs, XplatUIWin32.cs:
3340           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3341
3342 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3343
3344         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3345
3346 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3347
3348         * FileDialog.cs: Added ToolTip for MWFFileView
3349         * MimeIcon.cs: Rewrote GnomeHandler.
3350           - Get currently used gnome icon theme from
3351             ($HOME)/.gconf/%gconf-tree.xml
3352           - Make use of inherited icon themes
3353           - Support SVG icon themes like Tango via librsvg
3354
3355 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3356
3357         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3358         builds. 
3359         
3360         * Application.cs: Move the use_compatible_text_rendering outside
3361         the NET_2_0 define.  If we ever need to use the
3362         use_compatible_text_rendering on the individual controls they will
3363         access the variable from the common shared code paths.
3364
3365 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3366
3367         * XplatUI.cs:
3368           - Added more granular debug options
3369           - Added method to print both window text and id
3370           - Switched debug output to use new Window() debug method
3371           - Added IsEnabled() driver method
3372           - Added EnableWindow() driver method
3373         * Form.cs:
3374           - Removed end_modal; no longer needed, new loop handles termination
3375             via 'closing' variable
3376           - If form is modal, setting DialogResult will now initiate loop
3377             termination via 'closing' variable
3378           - Added support for is_enabled/WS_DISABLED to CreateParams
3379           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3380             does all the work
3381           - Removed code that's now in RunLoop from ShowDialog()
3382           - Added various documented sanity checks to ShowDialog()
3383           - Added handling of WM_DESTROY message; we set 'closing' on getting
3384             the message to indicate the message pump to terminate
3385           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3386             send by the Application.ExitThread method. (We send the message
3387             to destroy the window after all other events have been
3388             processed through the queue, instead of destroying the handle 
3389             directly)
3390           - Moved code from Close() method to WM_CLOSE handler; added logic
3391             to only send close-related events if the form is not displayed
3392             modal
3393         * Splitter.cs (..ctor): Fixed typo in resource name
3394         * Control.cs:
3395           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3396             brush now
3397           - set_Cursor: Now only setting calling into XplatUI if the handle for
3398             the control is already created; this avoids implict handle creation
3399             or crashes if it's not created
3400           - set_Enabled: Now setting the enabled state via the new driver method
3401             instead of just tracking it
3402           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3403           - CreateControl: Reordered event firing and method calls to more
3404             closely fire events in the order MS does. Now setting the
3405             enabled state in the driver when creating the control.
3406           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3407             match MS order
3408         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3409           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3410         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3411         * Hwnd.cs:
3412           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3413           - Added EnabledHwnd property to easily allow a driver to find the
3414             handle of the first enabled window in the parent chain (this is
3415             used by drivers to pass up input events of disabled windows)
3416         * XplatUIDriver.cs: Added IsEnabled() method
3417         * Application.cs:
3418           - Removed crude and obsolete exiting tracking variable
3419           - Removed internal ModalRun(); replaced by RunLoop()
3420           - Implemented private CloseForms() method to allow closing all 
3421             windows owned by a particular (or all) threads
3422           - Exit() now properly closes all windows without forcing the message
3423             pump to quit
3424           - Removed obsolete InternalExit() method
3425           - Changed Run() methods to use new RunLoop() message pump
3426           - Implemented new RunLoop() method for both modal and non-modal forms
3427         * CommonDialog.cs:
3428           - get_CreateParams: Added setting of WS_DISABLED
3429           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3430             invoked via Form.ShowDialog()
3431         * NativeWindow.cs: We don't remove the window from the collection when
3432           the handle is destroyed; there might still be messages for it in the
3433           queue (mainly the resulting WM_DESTROY); instead it will be removed
3434           when Control calls InvalidateHandle in the WM_DESTROY handler
3435         * XplatUIX11.cs:
3436           - CreateWindow: Added logic to handle the WS_DISABLED window style
3437           - EnableWindow: Implemented based on Hwnd.Enabled
3438           - GetMessage: Reset PostQuitState so the method can be called again
3439           - Implemented support for disabled windows (passing messages to the
3440             first enabled parent) in handling all input messages
3441           - Added optimizations for handling Expose events
3442           - Implemeted new driver method IsEnabled()
3443           - Now always resetting paint pending tracking vars when we start paint
3444           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3445         * XplatUIOSX.cs: Added IsEnabled method stub
3446         * XplatUIWin32.cs: Implemented new IsEnabled() method
3447
3448 2006-01-11  Jackson Harper  <jackson@ximian.com>
3449
3450         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3451         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3452         variables a little.
3453         * ColorDialog.cs: Clear out the old form before adding the new
3454         panel.  
3455
3456 2006-01-11  Jackson Harper  <jackson@ximian.com>
3457
3458         * X11Dnd.cs: Make sure to add all the text formats when adding
3459         strings to the data object.
3460         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3461         do some redrawing too.  Also change the UpdateNode to an
3462         UpdateBelow so the newly added node gets painted.
3463         
3464 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3465
3466         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3467         LinkLabel.cs, PropertyGrid.cs: Implement the
3468         UseCompatibleTextRendering property for 2.x
3469
3470         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3471
3472 2006-01-11  Jackson Harper  <jackson@ximian.com>
3473
3474         * TreeView.cs: Use the property for setting the selected node so
3475         the correct events get raised.
3476         * TreeNode.cs: Update the tree when the fore/back colours of a
3477         node are set.
3478
3479 2006-01-10  Jackson Harper  <jackson@ximian.com>
3480
3481         * TreeView.cs: Allow setting SelectedNode to null.
3482
3483 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3484
3485         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3486
3487 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3488
3489         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3490
3491 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3492
3493         * PrintDialog.cs: Added attributes and set default property values.
3494
3495 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3496
3497         * PrintControllerWithStatusDialog.cs: 
3498         Added PrintControllerWithStatusDialog.
3499
3500 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3501
3502         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3503         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3504
3505 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3506
3507         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3508
3509 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3510
3511         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3512         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3513
3514 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3515
3516         * MimeIcon.cs: Added internal class SVGUtil.
3517
3518 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3519
3520         * FileDialog.cs: Don't crash if there are two files with the
3521           same name but different locations.
3522
3523 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3524
3525         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3526         dates across multiple month grids. Used to not highlight entire 
3527         month, but does now.
3528         
3529 2006-01-06  Jackson Harper  <jackson@ximian.com>
3530
3531         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3532         message loop. Change timer intervals to numbers that seem more
3533         natural.
3534
3535 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3536
3537         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3538           object for location info since screen object is now implemented.
3539
3540 2006-01-05  Jackson Harper  <jackson@ximian.com>
3541
3542         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3543         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3544         AsyncMethodResult, this is because we ALWAYS want the
3545         ManualResetEvent to get set.
3546         * Control.cs: When disposing use an async invoke to call shutdown
3547         code, so that thigns don't block on the finalizer thread.  Also
3548         check if we even have a message loop before trying to send
3549         messages, if we don't then don't bother sending messages.
3550         - No more weak references for async methods
3551         * XplatUIDriver.cs: No more weak references for async methods.
3552
3553 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3554
3555         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3556           returns two FontFamily with the same name
3557
3558 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3559
3560         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3561           drawing disabled text. Instead using the ColorGrayText color
3562
3563 2006-01-04  Jackson Harper  <jackson@ximian.com>
3564
3565         * TreeNode.cs: redraw the node when its image index is changed.
3566
3567 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3568
3569         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3570           time I checked there are no others like it.
3571
3572 2006-01-04  Jackson Harper  <jackson@ximian.com>
3573
3574         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3575         this gives the behavoir I was looking for.
3576         * Control.cs: Special case Invoking EventHandlers, this matches MS
3577         and fixes part of bug #76326.
3578
3579 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3580
3581         * ThemeClearlooks.cs, FileDialog.cs:
3582           - Reflect the latest Theme class changes
3583           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3584             with DateTime
3585             
3586 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3587
3588         * Theme.cs: Cache UI resource images and resize them if needed
3589
3590 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3591
3592         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3593           is called. This fixes the crash in Nexxia when setting the font
3594           attributes in the chat. [However, RTF needs a look-over to make sure
3595           that all SelectionXXX methods handle the special case that selection
3596           is empty and therefore the change must be applied to all text starting
3597           at the cursor/selection start]
3598
3599 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3600
3601         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3602           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3603         * X11Keyboard.cs: Switched to new way of calling PostMessage
3604
3605 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3606
3607         * Theme.cs: Added theme interface for images to allow the theme to
3608           control what images are used for things like FileDialog, MessageBox
3609           icons, etc.
3610         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3611
3612 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3613
3614         * FileDialog.cs:
3615           - Removed some dead code
3616           - Opening a recently used file does work now
3617           - Small UI enhancements
3618           - Refactoring
3619
3620 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3621
3622         * FileDialog.cs: Forgot too add __MonoCS__
3623
3624 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3625
3626         * FileDialog.cs: We are able to read recently used files now let's
3627           go on and write them.
3628
3629 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3630
3631         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3632           button
3633         * MimeIcon.cs: Do a check for the top level media type also
3634
3635 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3636
3637         * ThemeClearlooks.cs:
3638           - Added CPDrawStringDisabled
3639           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3640             some chars if the text doesn't fit into text_rect
3641           - DrawListViewItem: If View = View.LargeIcon center the image;
3642             rewrote the drawing of ListViewItem.Text if View = 
3643             View.LargeIcon
3644
3645 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3646
3647         * MimeIcon.cs: Use default KDE icon theme if there is no
3648           "48x48" directory for the current icon theme, fixes #77114
3649         * Mime.cs: Disable not working and actually not used code. 
3650         * ThemeWin32Classic.cs:
3651           - Replace "new SolidBrush" in GetControlBackBrush and
3652             GetControlForeBrush with ResPool.GetSolidBrush
3653           - Changed DrawListViewItem from private to protected virtual
3654         * FileDialog.cs:
3655           - Added form.MaximizeBox = true
3656           - Don't throw an exception if there is a broken symbolic link
3657
3658 2005-12-23  Jackson Harper  <jackson@ximian.com>
3659
3660         * TabControl.cs: Give the panels focus, keyboard navigation is
3661         fixed so this works correctly now.
3662         - We need these key events also.
3663         * ToolBar.cs: Remove some of the poor mans double buffering.
3664         
3665 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3666
3667         * ComboBox.cs: The internal TextBox now returns the focus.
3668
3669 2005-12-23  Jackson Harper  <jackson@ximian.com>
3670
3671         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3672
3673 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3674
3675         * Control.cs: Removed debug code
3676         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3677           implicit children
3678
3679 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3680
3681         * Control.cs: When creating the control, update the Z-order after
3682           all it's children are created, too. (Fixes nexxia not showing
3683           picturebox bug)
3684
3685 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3686
3687         * Control.cs: Do not update the anchoring distances if layout is
3688           suspended, instead do it once layout is resumed
3689
3690 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3691
3692         * Control.cs: 
3693           - After many hours of debugging, for both Jackson and
3694             myself, it turns out that it helps to set the parent of a control
3695             if you want to actually see it onscreen. In the spirit of that
3696             discovery, we're now setting the parent of the control and
3697             it's children when the control's handle is created. This fix
3698             will make Lutz Roeder's Reflector run happily. 
3699           - now just creating the handle instead of the whole control when
3700             getting a graphics context for the control.
3701
3702 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3703
3704         * ScrollableControl.cs: When calculating the canvas, don't consider
3705           the scrollbar widths. Instead, predict if horizontal scrollbar
3706           will affect canvas when deciding on vertical display and vice versa.
3707
3708 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3709
3710         * RichTextBox.cs: Set default RTF font for documents that don't
3711           have a font table (Fixes #77076)
3712
3713 2005-12-22  Jackson Harper  <jackson@ximian.com>
3714
3715         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3716         clipboard. This prevents a NullRef in that case.
3717         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3718         clipboard. PRIMARY is for the currently selected text only. (We
3719         should implement PRIMARY at some point.
3720
3721 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3722
3723         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3724           a Unicode function with a structure that was defined in Ansi way.
3725           This fixes #76942.
3726
3727 2005-12-21  Jackson Harper  <jackson@ximian.com>
3728
3729         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3730         on. Because thats how it rolls. (and this avoids it using ambient
3731         colours).
3732         * ThemeWin32Classic.cs: Use the proper back color for filling.
3733         * Menu.cs: Use the system menu bar color for drawing menu
3734         bars. Using the window back color will bring ambient colours into
3735         the picture.
3736
3737 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3738
3739         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3740           Bitmaps were created and not disposed.
3741
3742 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3743
3744         * Control.cs (CreateControl): Don't do anything if the control is
3745           already created, otherwise we'd fire the OnCreated event more than
3746           once
3747
3748 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3749
3750         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3751           will always match. Instead return -1. Fixes #76464.
3752
3753 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3754
3755         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3756           neither the beginning nor the end of the line (Fixes bug #76479)
3757
3758 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3759
3760         * Control.cs:
3761           - ControlNativeWindow.ControlFromHandle(): Now handling situation
3762             where handle is invalid
3763           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3764             instead of slower linear search
3765         * NativeWindow.cs: Don't remove the window from the hashtable until
3766           after the driver has destroyed it (since the driver might use
3767           Control.FromHandle to lookup the control object
3768         * Hwnd.cs: Added DestroyPending property to track if a window is 
3769           already destroyed as far as the driver is concerned and only hasn't
3770           yet notified the control
3771         * XplatUIX11.cs:
3772           - Activate(): Check if the window is still valid before using the 
3773             handle
3774           - Implemented DestroyChildWindow() method to mark child windows as
3775             destroyed when a window is destroyed. This prevents situations 
3776             where we might call an X method based on queued events for a
3777             window that already has been destroyed but we haven't yet pulled
3778             the destroy method from the queue.
3779           - Added a call to the new DestroyChildWindow() method to the drivers
3780             DestroyWindow code. Also now marking the destroyed window itself
3781             as pending
3782
3783 2005-12-20  Jackson Harper  <jackson@ximian.com>
3784
3785         * StatusBar.cs:
3786         * StatusBarPanel.cs: Don't calculate panel sizes on draw
3787         anymore. Just do them when needed, also track the rects of panels
3788         so that we can optimize refreshing more in the future.
3789
3790 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
3791
3792         * ColorDialog.cs: Fixed focus drawing in small color controls
3793
3794 2005-12-19  Jackson Harper  <jackson@ximian.com>
3795
3796         * InternalWindowManager.cs:
3797         * MdiWindowManager.cs: Cleanup some coordinate system changes so
3798         moving windows works properly.
3799
3800 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
3801
3802         * Control.cs: 
3803           - Removed call to InitLayout() from SetBoundsCore(); doc says
3804             it's only called when a control is added to a container
3805           - Split InitLayout logic, moved to separate UpdateDistances() method
3806             since we need to perform those calculations more often than just
3807             when adding the control to a container. (Needed to fix #77022)
3808           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3809           - Reduced the OnBindingContextChanged events count, don't send them
3810             unless the control is created, we still aren't totally matching
3811             MS, but I can't quite figure out some of their rules
3812
3813 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3814
3815         * ThemeClearlooks.cs: Corrected distance between ProgressBar
3816           stripes
3817
3818 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3819
3820         * ThemeClearlooks.cs:
3821           - Updated ProgressBar drawing
3822           - Corrected drawing of ScrollBars and scroll buttons
3823           - Some temporary fixes for minor pixel artefacts
3824
3825 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
3826
3827         * Control.cs:
3828           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3829             cause events to be sent in the same order as MS does.
3830           - Added ChangeParent() method to trigger various OnXXXChanged events
3831             that need to be fired when a parent changes (This is a reworking
3832             of the patch from r54254, with the X11 errors fixed)
3833           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3834             since on MS we get OnLayoutChanged events when calling Clear()
3835           - Changed Enabled property to consider parent state as well, if a
3836             parent is not enabled, the control will not be either
3837           - Changed Parent property to simply call Controls.Add() since that
3838             now does all the work required, this way we avoid code duplication
3839           - Threw in a few OnBindingsContextChanged calls to try and match
3840             when MS sends them. We seem to send a few too many, though.
3841           - Added call to CreateControl when adding the control to a parent.
3842             We were never calling CreateControl. Still needs some work, in
3843             some places we treat HandleCreated and ControlCreated as equal, 
3844             which is wrong
3845           - Removed obsolete commented out code from UpdateZOrder()
3846
3847 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3848
3849         * ThemeClearlooks.cs: Updated TrackBar drawing.
3850
3851 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3852
3853         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3854
3855 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3856
3857         * FileDialog.cs: Add the Help button and the open readonly
3858           checkbox only if needed
3859
3860 2005-12-16  Jackson Harper  <jackson@ximian.com>
3861
3862         * Control.cs: Make sure we have an active menu before trying to
3863         process commands on it. Prevents menu-less forms from crashing
3864         when Alt is pressed.
3865         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3866         Dieter Bremes.
3867         * RichTextBox.cs: Expand statement to help out gmcs and fix the
3868         2.0 build.
3869
3870 2005-12-16  Jackson Harper  <jackson@ximian.com>
3871
3872         * InternalWindowManager.cs: Don't translate tool windows screen
3873         coordinates. This fixes windows 'bouncing' around when being moved.
3874
3875 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3876
3877         * TextBoxBase.cs:
3878           - MaxLength now treats 2^31-1 equal to unlimited length (this is
3879             not quite MS compatible, MS uses that number only for single line
3880             and 2^32-1 for multi-line, but I figure it won't hurt keeping
3881             the limit at 2GB)
3882           - Now enforcing the MaxLength limit when entering characters
3883           - Added argument to internal Paste() method to track if it's called
3884             from programatically or via keyboard, since keyboard driven pastes
3885             need to enforce max-length
3886           - Added logic to Paste to only paste as many chars as MaxLength 
3887             allows
3888         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3889         * TextControl.cs:
3890           - Added Length property to return number of characters in document
3891           - Added private CharCount property which only tracks actual chars
3892             in the document (no linefeeds) and fires event when CharCount
3893             changes
3894           - Added tracking of character count to all methods that alter it
3895           - Added LengthChanged event to allow applications to subscribe
3896             to any changes to the document
3897
3898 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3899
3900         * TextBox.cs: 
3901           - Removed local password_char field (moved to TextBoxBase)
3902           - Now setting the document's password var when password is
3903             set
3904         * TextBoxBase.cs:
3905           - Added password_char field (needed here so MultiLine can
3906             access it)
3907           - Added logic to MultiLine property setter to set the document's
3908             variable when password display is allowed
3909           - Removed debug code and made some debug code conditional
3910         * TextControl.cs:
3911           - Added RecalculatePasswordLine() method to handle special password
3912             char only lines
3913           - Added PasswordChar property, also added related tracking vars
3914           - Draw() method now uses local text var for grabbing text to draw,
3915             this var is set to line.text unless we're doing password display,
3916             then it is set to the pre-generated all-password-chars line
3917           - Added calling RecalculatePasswordLine() method for password lines
3918
3919 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3920
3921         * Hwnd.cs: 
3922           - Added Reparented property to allow tracking of Window Manager
3923             reparenting actions (which affect X/Y calculations of toplevel 
3924             windows)
3925           - Made ToString() print window handles in hex
3926         * XplatUIX11.cs:
3927           - AddConfigureNotify(): Now uses reparented state off Hwnd to
3928             determine if X/Y needs offsetting
3929           - AddConfigureNotify(): Fixed offset calculations
3930           - Now adds ReparentNotify messages into the queue
3931           - Now processes ReparentNotify messages and causes a 
3932             WM_WINDOWPOSCHANGED message to be sent upstream if a window
3933             is reparented (as most likely it's X/Y coordinates are changed
3934             due to that)
3935
3936 2005-12-14  Jackson Harper  <jackson@ximian.com>
3937
3938         * XplatUIX11.cs: Tool windows still need to respek focus.
3939
3940 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3941
3942         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3943           have a working release
3944
3945 2005-12-13  Jackson Harper  <jackson@ximian.com>
3946
3947         * Form.cs: Update styles after setting the border style regardless
3948         of whether or not the window is using a window manager.
3949
3950 2005-12-13  Jackson Harper  <jackson@ximian.com>
3951
3952         * Form.cs: We now hook into an internal window manager instead of just an
3953         MDI subsystem, this is so we can have properly behaving tool windows.
3954         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3955         * InternalWindowManager.cs: New internal class that acts as a
3956         window manager for tool windows and as a base for mdi windows.
3957         * MdiWindowManager.cs: New class that acts as a window manager for
3958         mdi windows.
3959
3960 2005-12-12  Jackson Harper  <jackson@ximian.com>
3961
3962         * Control.cs: Updates so we match behavoir for for implicit
3963         controls. Fixes explosions in MDI.
3964
3965 2005-12-12  Jackson Harper  <jackson@ximian.com>
3966
3967         * Control.cs: Implement Invalidate (Region).
3968
3969 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
3970
3971         * Control.cs: 
3972           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
3973             the same events as MS does. MS fires events for each property 
3974             except, for unknown reasons, Cursor, when the control is reparented. 
3975             I can't seem to totally match add/remove since MS also fires some 
3976             VisibleChanged events, which makes no sense. Consolidated the
3977             parenting code into a separate method so it can be called from
3978             both Add and Remove. set_Parent no longer needs any special logic
3979             as it calls the parent's add method which implicitly fires
3980             all events
3981           - Removed some obsolete code and debug output
3982           - Enabled state is inherited from parents, if this is enabled
3983
3984 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
3985
3986         * Form.cs: Removed commented out code
3987
3988 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
3989
3990         * Control.cs:
3991           - Added internal version of Invoke, with additional argument 
3992             indicating if we're calling it from a Dispose() handler. That
3993             way we can avoid BeginInvoke throwing an exception if we're
3994             calling for an already destroyed window.
3995           - Added a dispose argument to BeginInvokeInternal, and made the
3996             check if a valid window handle chain exists conditional on
3997             it not being a dispose call
3998           - Removed code in DestroyHandle to destroy our children. Since we
3999             now handle the WM_DESTROY message we will catch all our children
4000             being destroyed.
4001           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4002         * Form.cs:
4003           - Added a field to track the application context of the form.
4004           - No need to set closing variable as response to WM_CLOSE, instead
4005             we destroy the window. We also call PostQuitMessage if the form
4006             has an application context (which makes it the main app form,
4007             which, when closed terminates the app)
4008         * XplatUI.cs:
4009           - Dropped Exit() method, it's naming was confusing
4010           - Added PostQuitMessage() which causes GetMessage to return false
4011             once the message queue is empty
4012         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4013           PostQuitMessage()
4014         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4015           no longer a valid XplatUI method, but left it in since it's used
4016           internally. Added empty PostQuitMessage() method.
4017         * MenuAPI.cs: Replaced call to Exit() with call to
4018           PostQuitMessage, even though this is probably no longer needed.
4019         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4020         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4021         * Application.cs:
4022           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4023           - Removed old debug code that would call XplatUI for exception
4024             display, enabled standard exception handling (Still not enabled
4025             though, until NativeWindow's ExternalExceptionHandler define
4026             is removed
4027         * NativeWindow.cs:
4028           - Added internal method to allow control to update NativeWindow
4029             after a window has been destroyed
4030           - Added handling of already destroyed windows when calling i
4031             DestroyWindow
4032           - Added removal of handle from list on ReleaseHandle
4033         * XplatUIX11.cs:
4034           - Dropped GetMessageResult var and related code
4035           - Added PostQuitState to field to track if PostQuitMessage has been
4036             called
4037           - Dropped Exit() method
4038           - Added PostQuitMessage() method
4039           - GetMessage now will return false if PostQuitState is set and no
4040             more messages are in the queue.
4041           - Expose handler will no longer generate WM_PAINT messages if we are
4042             in PostQuitState since it's very likely any windows have already
4043             been destroyed, and since Hwnd won't get updated until we have
4044             processed the DestroyNotify we'd be causing X errors.
4045         
4046 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4047
4048         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4049           Thanks to Mike for pointing out the err of my ways.
4050
4051 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4052
4053         * Control.cs(PreProcessMessage): Moved menu handling back, but
4054           after all other key handling, to match MS (who handles Menu in
4055           DefWndProc)
4056         * Menu.cs (WndProc): Removed my brainfart
4057
4058 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4059
4060         * Control.cs(PreProcessMessage): Removed special menu handling 
4061         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4062
4063 2005-12-07  Mike Kestner  <mkestner@novell.com>
4064
4065         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4066         state according in tracker.
4067         * Menu.cs : promote tracker field to base class and provide a tracker
4068         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4069         has a tracker. Unparent items that are removed from the collection.
4070         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4071         * Theme*.cs: add always_show_hotkeys field to support configurability
4072         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4073         pressed.
4074
4075 2005-12-07  Jackson Harper  <jackson@ximian.com>
4076
4077         * MdiChildContext.cs: Use Control.ResetCursor.
4078         * Control.cs: ResetCursor needs to set the property so that the
4079         correct XplatUI call gets made.
4080
4081 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4082
4083         * Control.cs: More fixes to make our key events match MS. We
4084           were not setting the modifier state on KeyData, and we were
4085           not generating any events when Alt was pressed with a key
4086           since handling of WM_SYSxxx was missing for the OnKey methods.
4087
4088 2005-12-07  Jackson Harper  <jackson@ximian.com>
4089
4090         * MdiChildContext.cs: reenable the sizing code.
4091         - When the mouse leaves a window reset its cursor.
4092
4093 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4094
4095         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4096
4097 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4098
4099         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4100           widths of Fixed3D borders
4101
4102 2005-12-07  Jackson Harper  <jackson@ximian.com>
4103
4104         * MdiClient.cs: Fix warnings. Earn Mike's love.
4105
4106 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4107
4108         * ThemeClearlooks.cs:
4109           - Adjusted mouse over button color
4110           - Added first parts of CheckBox drawing
4111           - Added correct color for selected text background
4112           - Fixed ComboBox drawing
4113           - Added CPDrawBorder3D and CPDrawBorder
4114
4115 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4116
4117         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4118
4119 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4120
4121         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4122           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4123           alert users via sound. We could add an enum arg with different
4124           types of alerts in the future
4125
4126 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4127
4128         * Control.cs: Fix behaviour problems pointed out by Mike
4129
4130 2005-12-05  Mike Kestner  <mkestner@novell.com>
4131
4132         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4133         prop setters.  Calls parent.Refresh for now, but could be maybe be
4134         optimized with an internal method on StatusBar at some point.
4135         [Fixes #76513]
4136
4137 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4138
4139         * RichTextBox.cs: Implemented get_SelectionColor
4140
4141 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4142
4143         * ThemeClearlooks.cs:
4144           - Removed dead code
4145           - Draw black button border only if button is Form.AcceptButton
4146           - Draw correct button color for pressed RadioButton if the mouse 
4147             has entered the button
4148           - Updated ProgressBar drawing!
4149           - Updated CPDrawSizeGrip drawing
4150           - Updated StatusBarPanel drawing
4151
4152 2005-12-05  Mike Kestner  <mkestner@novell.com>
4153
4154         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4155         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4156
4157 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4158
4159         * ThemeClearlooks.cs: Initial check-in, activate with
4160           export MONO_THEME=clearlooks
4161         * ThemeEngine.cs: Added ThemeClearlooks
4162
4163 2005-12-03  Mike Kestner  <mkestner@novell.com>
4164
4165         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4166         [Fixes #76897]
4167
4168 2005-12-02  Jackson Harper  <jackson@ximian.com>
4169
4170         * Form.cs: If the child form has no menu the default main menu is
4171         used as the active menu.
4172
4173 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4174
4175         * ListBox.cs: Check if any items exist before trying to resolve 
4176           coordinates into items
4177
4178 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4179
4180         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4181           as the second color for the background hatch
4182
4183 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4184
4185         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4186         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4187           sure that what we pass to FormatText is always 1-based. Fixes #76885
4188
4189 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4190
4191         * NumericUpDown.cs (EndInit): When we are done initializing,
4192         reflect any updates on the UI.
4193
4194 2005-12-02  Jackson Harper  <jackson@ximian.com>
4195
4196         * ImplicitHScrollBar.cs:
4197         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4198         their container controls.
4199         * TreeView.cs: Use the new implicit scrollbars.
4200
4201 2005-12-02  Jackson Harper  <jackson@ximian.com>
4202
4203         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4204         can play with it.
4205         * TreeNodeCollection.cs: If we remove the topnode we need to
4206         update topnode to the next node in line.
4207         - When clearing nodes go through the same process as removing
4208         them, so they get depareneted and checked if they are top node.
4209
4210 2005-12-01  Jackson Harper  <jackson@ximian.com>
4211
4212         * TreeView.cs: When imagelists are used the image area is
4213         selectable as well as the text.
4214         - If there are no selected nodes select the first one.
4215         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4216         so don't do it more then we need to.
4217
4218 2005-12-01  Jackson Harper  <jackson@ximian.com>
4219
4220         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4221         that arrows can be scaled.
4222
4223 2005-12-01  Jackson Harper  <jackson@ximian.com>
4224
4225         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4226         fail. Patch by Dieter Bremes
4227
4228 2005-11-30  Jackson Harper  <jackson@ximian.com>
4229
4230         * Form.cs: Property is 2.0 only
4231         * PrintDialog.cs: Signature fix.
4232
4233 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4234
4235         * TextControl.cs: 
4236           - No longer artificially moves text 2 pixels down (now that we have
4237             borders this is no longer needed)
4238           - Added calcs for left, hanging and right indent
4239
4240 2005-11-23  Mike Kestner  <mkestner@novell.com>
4241
4242         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4243
4244 2005-11-30  Jackson Harper  <jackson@ximian.com>
4245
4246         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4247         get cloned as part of CloneMenu ().
4248         * Menu.cs: Make sure the parent of the items get set correctly
4249         when they are added.  And the owners are notified of the changes.
4250         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4251         we can change the menu being displayed/handled by the form without
4252         changing the menu assosciated with the form.
4253         - Don't let Mdi children draw/handle menus.
4254         
4255 2005-11-30  Jackson Harper  <jackson@ximian.com>
4256
4257         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4258         a MenuChanged event. Just to make the API a little more
4259         consistent.
4260         * MainMenu.cs:
4261         * MenuItem.cs: Use the new OnMenuChanged
4262         * MdiChildContext.cs: Handle menu merging.
4263         * Form.cs: Implement MergedMenu.
4264         
4265 2005-11-30  Jackson Harper  <jackson@ximian.com>
4266
4267         * Menu.cs: We were misusing Add. Add goes behind the specified
4268         index according to the docs, and does not replace the specified
4269         index. So I added an Insert method.
4270
4271 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4272
4273         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4274           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4275           is for Jackson
4276         * RichTextBox.cs: Added calls to base for DnD events
4277
4278 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4279
4280         * TextControl.cs:
4281           - Fixed drag-selection related crash; style fixes
4282           - Implemented undo class
4283             o Implemented method to capture document state for specified
4284               range in document tree
4285             o Implemented method to restore captured document state
4286             o Implemented cursor tracking
4287             o Implemented basic undo stack
4288           - Added undo cursor tracking to methods altering cursor location
4289           - Added undo tracking to selection deletion (still missing
4290             other text-altering hookups)
4291         * RichTextBox.cs:
4292           - Added SelectionLength property
4293           - Implemented CanPaste()
4294           - Implemented Paste()
4295           - Added missing protected methods
4296           - Fixed RTF->Document conversion; now uses font index 0 and color 
4297             index 0 as the default font for the parsed text
4298           - Fixed RTF<->Document font size translation
4299           - Fixed RTF generation, now properly handles cross-tag boundaries
4300             for single line selection
4301           - No longer always appends blank line to generated RTF
4302           - Removed TODOs
4303           - Added missing attributes
4304           - Hooked up undo-related methods
4305         * TextBoxBase.cs:
4306           - Implemented Copy()
4307           - Implemented Paste()
4308           - Implemented Cut()
4309           - Fixed caret mis-behaviour on backspace across line-boundaries
4310
4311 2005-11-29  Jackson Harper  <jackson@ximian.com>
4312
4313         * MdiClient.cs: Add a method for activating mdi children. Very
4314         basic right now. I imagine someday it might need more girth.
4315         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4316         children windows names are added to the menu item.
4317         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4318         mdilist. This happens regardless of whether or not there are any
4319         mdi windows to see in the list, and according to my tests happens
4320         before the items are even added. Also happens if there isn't even
4321         an mdi client to get windows from.
4322
4323 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4324
4325         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4326         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4327
4328 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4329
4330         * DataGridTableStyle.cs:
4331           - Create always the styles for the missing columns even if they are
4332             provided by the user (not default table style)
4333         * DataGrid.cs:
4334           - Fixes bug 76770
4335           - Fixes SetDataBinding (always re-attach source)
4336           - Fixes SetNewDataSource (only clear styles if they are not for 
4337             this source)
4338          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4339             and remove properly
4340
4341 2005-11-29  Jackson Harper  <jackson@ximian.com>
4342
4343         * FileDialog.cs: Implement missing bits, remove some dead
4344         code.
4345         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4346         creation of the panel so that the options set on the dialog are
4347         seen when the panel is created.
4348         * TreeView.cs: raise a click when items are clicked.
4349         
4350 2005-11-29  Jackson Harper  <jackson@ximian.com>
4351
4352         * MdiClient.cs: Pass some signature methods through to base.
4353
4354 2005-11-28  Jackson Harper  <jackson@ximian.com>
4355
4356         * ListView.cs: Raise the click event when items are clicked.
4357
4358 2005-11-28  Jackson Harper  <jackson@ximian.com>
4359
4360         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4361         a nullref.
4362
4363 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4364
4365         * ThemeNice.cs: - Removed 1 pixel bitmaps
4366           - Use SmoothingMode.AntiAlias where it makes sense
4367             (ScrollButton arrow for example)
4368           - Enhanced Button focus drawing
4369           - Fixed ComboBox drawing (no artefacts anymore, focus
4370             rectangle is back again, reduced size of ComboButton, etc.)
4371           - Fixed RadioButton focus drawing for Appearence.Button
4372           - Slight ScrollButton redesign
4373           - Some LinearGradientBrush size fixes
4374           - GroupBoxes have now rounded edges
4375           - Fixed StatusBar drawing
4376
4377 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4378
4379         * ThemeNice.cs: - Remove dead code
4380           - use correct background colors for menus, etc.
4381           - Fake pixel drawing with 1 pixel bitmaps
4382
4383 2005-11-24  Jackson Harper  <jackson@ximian.com>
4384
4385         * MdiClient.cs: Size the scrollbars when resizing the window.
4386         - Resize the maximized windows when the client is resized
4387         * Form.cs: Make the child context available
4388         
4389 2005-11-23  Jackson Harper  <jackson@ximian.com>
4390
4391         * MdiChildContext.cs: Don't size windows if they are maximized.
4392
4393 2005-11-23  Mike Kestner  <mkestner@novell.com>
4394
4395         * ContextMenu.cs: use MenuTracker.
4396         * Control.cs: remove menu handle usage.
4397         * Form.cs: remove menu handle usage.
4398         * Hwnd.cs: remove menu handle usage.
4399         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4400         motion and clicks to the new Tracker handlers.
4401         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4402         and handle usage.
4403         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4404         Killed the MENU and MENUITEM data types and associated collections
4405         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4406         MenuTracker class that exposes the leftovers from the old MenuAPI
4407         static methods. Restructured Capture handling so that only one grab is
4408         done for the entire menu hierarchy instead of handing off grabs to
4409         submenus. Tracker now has an invisible control to Capture when active.
4410         * MenuItem.cs: add sizing accessors, kill Create
4411         and handle usage.
4412         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4413         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4414         MENU(ITEM). remove menu handle usage, use Menu directly.
4415         * XplatUIDriver.cs: remove menu handle usage.
4416         * XplatUIOSX.cs: remove menu handle usage.
4417         * XplatUIWin32.cs: remove menu handle usage.
4418         * XplatUIX11.cs: remove menu handle usage.
4419
4420 2005-11-22  Jackson Harper  <jackson@ximian.com>
4421
4422         * Hwnd.cs: Don't compute the menu size for
4423         DefaultClientRectangle.
4424         - Reenable menu sizes being computed for GetClienRectangle.
4425         * Form.cs: Remove comment of trechery
4426         
4427 2005-11-22  Jackson Harper  <jackson@ximian.com>
4428
4429         * Hwnd.cs: The adjustments for the menu bar are made when it is
4430         attached to the form.
4431
4432 2005-11-19  Jackson Harper  <jackson@ximian.com>
4433
4434         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4435         (just like on windows).
4436
4437 2005-11-19  Jackson Harper  <jackson@ximian.com>
4438
4439         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4440         use real buttons anymore because they are in non client area. The
4441         one TODO here is that I need to somehow invalidate a section of
4442         the non client area.
4443
4444 2005-11-18  Jackson Harper  <jackson@ximian.com>
4445
4446         * Control.cs: Put the enum check back in now that MDI doesnt have
4447         to use this to set border styles.
4448         * Form.cs: Only set mdi child windows borders if the handle has
4449         been created.
4450         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4451         this directly on to the driver.
4452         - Get the move start position before adjusting for the titlebar
4453         height, this fixes the windows "skipping" when they are first
4454         moved.
4455
4456 2005-11-18  Jackson Harper  <jackson@ximian.com>
4457
4458         * XplatUIX11.cs: Just compute the mdi borders separately as they
4459         don't totally match up with normal form borders.
4460
4461 2005-11-18  Jackson Harper  <jackson@ximian.com>
4462
4463         * Control.cs: Set WS_ styles for borders, so that the driver does
4464         not have to retrieve the control instance to figure out what kind
4465         of borders it should have.
4466         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4467         driver can know its an mdi child easily.
4468         * XplatUIX11.cs: Get the border styles and whether the window is
4469         MDI from the Styles and ExStyles params instead of having to get a
4470         control. This prevents a chicken and egg problem.       
4471
4472 2005-11-18  Jackson Harper  <jackson@ximian.com>
4473
4474         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4475
4476 2005-11-18  Jackson Harper  <jackson@ximian.com>
4477
4478         * MdiClient.cs: Calculate when to add and remove scrollbars
4479         correctly.
4480         * MdiChildContext.cs: Adjust the y position to take the titlebar
4481         into account.
4482         - No height for FormBorderStyle.None
4483
4484 2005-11-18  Jackson Harper  <jackson@ximian.com>
4485
4486         * Control.cs: Allow non enum values to be used for
4487         InternalBorderStyle.  MDI does this to set a special border style.
4488         - New utility methods for converting points to/from client coords
4489         - Add the newly created control to the Controls collection before
4490         updating its style. This way UpdateStyle can walk the control
4491         heirarchy to find the control if needed.
4492         so I don't need to create a new Point object all the time.
4493         * Form.cs: Let MDI windows handle their border styles.
4494         - Set styles on MDI windows so the correct title style is derived.
4495         * MdiChildContext.cs: Move all the painting and window handling
4496         into the non client area.
4497         - Use correct sizing and put correct buttons on frames based on
4498         the FormBorderStyle.
4499         - Notify the mdi client about scrolling
4500         - Need to handle the buttons ourselves now, because they are all
4501         in non client areas and we can't add controls there.
4502         * MdiClient.cs: Halfway to scrolling, this implementation is
4503         somewhat broken though, we need to check to make sure other
4504         windows aren't causing scrolling before removing the bars. Also
4505         the bars need to be drawn on top, maybe I can switch implicit
4506         controls to be on top.
4507         * Hwnd.cs: caption_height and tool_caption_height are now
4508         properties of an hwnd, this way they can be set by the driver
4509         based on the type of window they are.  In X11 the window manager
4510         handles the decorations so caption_height is zero unless its an
4511         MDI window.
4512         - Add 3 pixel borders for MDI windows (0xFFFF).
4513         - Get rid of some code duplication, have DefaultClientRectanle
4514         just call GetClientRectangle.
4515         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4516         Hwnd now.
4517         - Set border styles differently for mdi windows.
4518         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4519         Hwnd now.
4520         
4521 2005-11-15  Mike Kestner  <mkestner@novell.com>
4522
4523         * Menu.cs: when adding an item to the collection, if item is already 
4524         parented, remove it from the parent.
4525
4526 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4527
4528         * X11DesktopColors.cs: Added KDE support
4529
4530 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4531
4532         * XplatUIWin32.cs: 
4533           - Clipboard methods now can translate Rtf format
4534           - No longer removes clipboard contents whenever a new format is added
4535             to allow placing multiple formats on the clipboard
4536         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4537           will place all formats contained in it onto the clipboard. Also
4538           now cleans the clipboard before placing a new object onto it
4539         * RichTextBox.cs:
4540           - Implemented set_Rtf
4541           - Implemented set_SelectedRtf
4542           - Created InsertRTFFromStream() method to allow single code base
4543             for all properties and methods that insert RTF into document
4544           - Removed debug output
4545         * TextControl.cs:
4546           - Fixed Delete(int) to fix up line numbers
4547           - Fixed ReplaceSelection to combine start and end line
4548           - Fixed serious DeleteChars bug that would leave the document tree
4549             broken
4550           - Improved DumpTree with several logic checks to detect broken
4551             document trees
4552           - Removed debug lines
4553           - Fixed Caret.WordForward/WordBack moving code, now always also 
4554             updates caret.tag (fixes crash when word-selecting across tag
4555             boundaries via keyboard)
4556           - Added Insert() method for inserting multiline text into documents
4557           - Fixed DeleteChars() calculation errors that would cause a broken
4558             tag chain with multiple tag lines
4559           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4560           - Split() no longer moves caret if split is at caret location
4561           - ReplaceSelection() now updates the cursor and re-displays it
4562           - ReplaceSelection() now uses new Insert() method to avoid code
4563             duplication
4564           - FormatText() can now handle formatting partial lines
4565         * TextBoxBase.cs:
4566           - Append now uses new TextControl.Insert() method (this avoids 
4567             duplicate code)
4568           - Implemented Ctrl-X (Cut) (
4569           - Implemented Ctrl-C (Copy)
4570           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4571             regeneration when pasting text; roundtripping Copy&Paste within
4572             edit control still fails due to some calculation bugs in GenerateRTF)
4573           - The Delete key will now remove the current selection if it is visible
4574         * TextBox.cs: Removed debug lines
4575         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4576           driver to be initialized and can't therefore be done via a static ctor)
4577
4578 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4579
4580         * TextControl.cs: Added backend code for finding char arrays and strings
4581         * TextBoxBase.cs:
4582           - Added mouse wheel scroll support
4583           - Added support for VScroll and HScroll events
4584         * RichTextBox.cs:
4585           - Implemented all seven Find() variants
4586           - Implemented GetCharFromPosition()
4587           - Implemented GetCharIndexFromPosition()
4588           - Implemented GetLineFromIndex()
4589           - Implemented GetPositionFromCharIndex();
4590           - Implemented SaveFile for PlainText and UnicodeText
4591           - Fixed set_Font, now setting a new font applies that font to
4592             the whole document
4593           - Implemented generic Document to RTF converter
4594           - Implemented SaveFile for RichText format (still missing unicode
4595             conversion for non-ansi chars)
4596           - Implemented get_Rtf
4597           - Implemented get_SelectedRtf
4598
4599 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4600
4601         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4602           to allow any captures to be released before triggering OnClick. This
4603           way a click handler may capture the mouse without interference.
4604         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4605           This way we send them even though X may not allow a grab (if the window
4606           isn't visible, for example)
4607
4608 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4609
4610         * DataGridViewRowEventArgs.cs: DataGridView implementation
4611         * DataGridViewElement.cs: DataGridView implementation
4612         * DataGridViewComboBoxCell.cs: DataGridView implementation
4613         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4614         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4615         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4616         * ImageLayout.cs: DataGridView implementation
4617         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4618         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4619         * DataGridViewSelectionMode.cs: DataGridView implementation
4620         * IDataGridViewEditingControl.cs: DataGridView implementation
4621         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4622         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4623         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4624         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4625         * DataGridViewColumnSortMode.cs: DataGridView implementation
4626         * DataGridView.cs: DataGridView implementation
4627         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4628         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4629         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4630         * Padding.cs: DataGridView implementation
4631         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4632         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4633         * DataGridViewRowEventHandler.cs: DataGridView implementation
4634         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4635         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4636         * DataGridViewButtonCell.cs: DataGridView implementation
4637         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4638         * DataGridViewEditMode.cs: DataGridView implementation
4639         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4640         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4641         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4642         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4643         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4644         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4645         * DataGridViewCellEventHandler.cs: DataGridView implementation
4646         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4647         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4648         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4649         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4650         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4651         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4652         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4653         * QuestionEventArgs.cs: DataGridView implementation
4654         * IDataGridViewEditingCell.cs: DataGridView implementation
4655         * DataGridViewTriState.cs: DataGridView implementation
4656         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4657         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4658         * DataGridViewColumnCollection.cs: DataGridView implementation
4659         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4660         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4661         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4662         * DataGridViewColumn.cs: DataGridView implementation
4663         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4664         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4665         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4666         * DataGridViewRow.cs: DataGridView implementation
4667         * DataGridViewImageCellLayout.cs: DataGridView implementation
4668         * DataGridViewImageCell.cs: DataGridView implementation
4669         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4670         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4671         * DataGridViewHeaderCell.cs: DataGridView implementation
4672         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4673         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4674         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4675         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4676         * QuestionEventHandler.cs: DataGridView implementation
4677         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4678         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4679         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4680         * DataGridViewCell.cs: DataGridView implementation
4681         * DataGridViewCellEventArgs.cs: DataGridView implementation
4682         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4683         * DataGridViewCellStyle.cs: DataGridView implementation
4684         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4685         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4686         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4687         * TextFormatFlags.cs: DataGridView implementation
4688         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4689         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4690         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4691         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4692         * DataGridViewButtonColumn.cs: DataGridView implementation
4693         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4694         * HandledMouseEventArgs.cs: DataGridView implementation
4695         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4696         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4697         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4698         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4699         * DataGridViewRowCollection.cs: DataGridView implementation
4700         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4701         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4702         * DataGridViewHitTestType.cs: DataGridView implementation
4703         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4704         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4705         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4706         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4707         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4708         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4709         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4710         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4711         * DataGridViewContentAlignment.cs: DataGridView implementation
4712         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4713         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4714         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4715         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4716         * DataGridViewPaintParts.cs: DataGridView implementation
4717         * DataGridViewCellCollection.cs: DataGridView implementation
4718         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4719         * DataGridViewImageColumn.cs: DataGridView implementation
4720         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4721         * DataGridViewElementStates.cs: DataGridView implementation
4722         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4723         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4724         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4725         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4726         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4727         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4728         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4729         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4730         * DataGridViewTextBoxCell.cs: DataGridView implementation
4731         * DataGridViewBand.cs: DataGridView implementation
4732         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4733         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4734         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4735         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4736         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4737         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4738         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4739         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4740         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4741         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4742         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4743
4744 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4745
4746         * ThemeWin32Classic.cs: 
4747           - Draw the outside focus rectangle around buttons
4748           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4749             doesn't use end caps for every dash of a line anymore. This
4750             workaround ignores the forecolor.
4751
4752 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4753
4754         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4755           endian safe.
4756
4757 2005-11-07  Jackson Harper  <jackson@ximian.com>
4758
4759         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4760
4761 2005-11-07  Jackson Harper  <jackson@ximian.com>
4762
4763         * ScrollableControl.cs: Calculate the maximum and change vars
4764         (more) correctly so that scrollbars appear as a sensible size.
4765
4766 2005-11-04  Jackson Harper  <jackson@ximian.com>
4767
4768         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4769         collection.
4770         * TreeView.cs: When the tree is sorted null out the top_node so
4771         that it is recalculated.
4772         - Use dotted lines instead of dashed lines to match MS better.
4773
4774 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
4775
4776         * ListView.cs: 
4777           - Implements key search for items. Useful when browsing files with FileDialog
4778           - When changing view mode or when clear the items reset scrollbar positions
4779
4780 2005-11-04  Jackson Harper  <jackson@ximian.com>
4781
4782         * CurrencyManager.cs: Implement the MetaDataChanged event, the
4783         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4784         as to what the method may do as there is no real way of creating a
4785         derived CurrencyManager and calling the method. 
4786
4787 2005-11-03  Jackson Harper  <jackson@ximian.com>
4788
4789         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4790         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4791         method which seems to just be used internally to refresh the tabs.
4792
4793 2005-11-03  Jackson Harper  <jackson@ximian.com>
4794
4795         * TabControl.cs: Implement the remove method. Fix some broken
4796         comments.
4797
4798 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4799
4800         * DateTimePicker.cs:
4801           - Added missing DateTimePickerAccessibleObject class
4802           - Added missing events
4803           - Added OnFontChanged method
4804         * Form.cs: Added missing attributes
4805         * TreeView.cs: Added missing attributes
4806
4807 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
4808
4809         * GridItemCollection.cs: Fix signatures
4810
4811 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4812
4813         * XplatUI.cs: Updated build rev/date
4814         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
4815           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4816         * Application.cs: Trigger context-specific ExitThread events
4817
4818 2005-11-03  Jackson Harper  <jackson@ximian.com>
4819
4820         * Menu.cs:
4821         * MainMenu.cs:
4822         * GridTableStylesCollection.cs:
4823         * Timer.cs:
4824         * TabPage.cs:
4825         * HelpProvider.cs:
4826         * StatusBar.cs:
4827         * MonthCalendar.cs: Signature fixes
4828
4829 2005-11-03  Jackson Harper  <jackson@ximian.com>
4830
4831         * TreeNodeCollection.cs: Remove should not be virtual.
4832         * TreeView.cs: Implement the last of the missing methods.
4833
4834 2005-11-03  Jackson Harper  <jackson@ximian.com>
4835
4836         * TreeNodeConverter.cs: Implement to get off my class-status back.
4837
4838 2005-11-03  Jackson Harper  <jackson@ximian.com>
4839
4840         * TreeView.cs: Hookup the bits for drag and drop.
4841         * TreeNode.cs: Don't cache the tree_view or index anymore, now
4842         that nodes can be moved from tree to tree easily this just causes
4843         all sorts of problems.
4844         * TreeNodeCollection: Don't need to give treenodes an index and
4845         treeview anymore when they are added, these are computed on the
4846         fly. Also make sure to remove a node before its added.
4847
4848 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4849
4850         * TextControl.cs:
4851           - Added CaretSelection enum
4852           - Added comparison methods to Marker struct, makes selection code
4853             more readable
4854           - Added SelectionStart and SelectionEnd as 'moveable' location for
4855             the CaretDirection enum and handler
4856           - Added selection_prev variable to track optimized invalidation for
4857             word and line selection
4858           - Added SelectionVisible property (returns true if there is a valid 
4859             selection)
4860           - Switched CaretHasFocus to only display the caret if there is no
4861             visible selection
4862           - Avoiding StringBuilder.ToString to retrieve a single char, instead
4863             using the direct character index; should be much faster
4864           - Added various conditional debug statements
4865           - Fixed invalidation calculation for selection ranges
4866           - Added ExpandSelection() method to support word and line selection
4867           - Switched SetSelectionToCaret to use new Marker compare overloads
4868           - Added central IsWordSeparator() method to determine word 
4869             separators/whitespace and FindWordSeparator() to streamline common
4870             usage of IsWordSeparator()
4871         * TextBoxBase.cs:
4872           - Removed unneeded grabbed variable, it was just mirroring
4873             Control.Capture
4874           - No longer firing OnTextChanged event when Text setter is called,
4875             since the base will fire the event for us
4876           - Added handling of Ctrl-Up/Down selection
4877           - Added handling of Shift-Cursorkey selection
4878           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4879             words
4880           - Added handling of Shift and Ctrl-Shift-Home/End selection
4881           - Removed some debug output
4882           - Added handling for single/double/tripple-click to place caret/
4883             select word/select line respectively (Fixes bug #76031)
4884           - Added support for drag expansion of word/line selection
4885         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4886           current selection
4887
4888 2005-11-02  Jackson Harper  <jackson@ximian.com>
4889
4890         * X11Dnd.cs: If the drag is going to and from a MWF window just
4891         copy the data instead of sending it out through the X Selection
4892         mechanism.
4893
4894 2005-11-02  Jackson Harper  <jackson@ximian.com>
4895
4896         * X11Dnd.cs:
4897         * XplatUIX11.cs: When in a drag we don't want motion notify
4898         messages to get passed on to the other controls. This prevents
4899         mouse move messages from showing up in the drag source.
4900
4901 2005-11-02  Jackson Harper  <jackson@ximian.com>
4902
4903         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
4904         the correct button is release to end a drag.
4905         * XplatUIX11.cs: Make the button state internal so the drag system
4906         can access it.  Dragging needs to know about all button releases,
4907         not just left button.
4908
4909 2005-11-02  Miguel de Icaza  <miguel@novell.com>
4910
4911         * Form.cs (Icon): If the icon is null, reset the icon to the
4912         default value. 
4913
4914         * Cursor.cs: When writing the AND-mask bitmap do not include the
4915         number of colors, but hardcode those to two (black and white),
4916         fixes the loading of color cursors (Paint Dot Net).
4917
4918         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4919         turn off autoscaling.
4920
4921         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4922
4923 2005-11-02  Jackson Harper  <jackson@ximian.com>
4924
4925         * X11Dnd.cs: Make sure to send a status message if the pointer
4926         enters a control that can not accept a drop, otherwise the cursor
4927         isn't updated correctly. Also tried to compress the lines of code
4928         a bit.
4929
4930 2005-11-02  Jackson Harper  <jackson@ximian.com>
4931
4932         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4933         set actions correctly.  This isn't perfect as XDND and win32 have
4934         some differences on how you allow actions. I'll clear this up by
4935         adding a path for drag from MWF to MWF windows.
4936         * XplatUIX11.cs: Hook into the dnd system.
4937
4938 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
4939
4940         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4941         previously shown but they are no longer need it. Very obvious when 
4942         browsing files with FileDialog.
4943
4944 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
4945
4946         * Control.cs: We always need to call OnPaintBackground. We pretty much
4947           ignore AllPaintingInWmPaint and always do the painting there, whether 
4948           it's set or not, since we always ignore the WM_ERASEBKGND message 
4949           (which we don't generate on X11). This fixes #76616.
4950         * Panel.cs: Removed unneeded background painting. This happens properly
4951           in Control.cs already
4952
4953 2005-10-31  Mike Kestner  <mkestner@novell.com>
4954
4955         * Menu.cs: Add items to collection before setting their index.
4956         * MenuItem.cs : add range checking with ArgumentException like MS.
4957         [Fixes #76510]
4958
4959 2005-10-31  Jackson Harper  <jackson@ximian.com>
4960
4961         * ListBox.cs: Invalidate if the area is visible at all not just
4962         contained in the visible rect. Fixes unselection of semi visible
4963         items.
4964
4965 2005-10-31  Jackson Harper  <jackson@ximian.com>
4966
4967         * Control.cs: Consistently name the dnd methods. Make them
4968         internal so we can override them to match some MS behavoir
4969         internally.
4970         * Win32DnD.cs: Use the new consistent names.
4971
4972 2005-10-31  Jackson Harper  <jackson@ximian.com>
4973
4974         * TreeView.cs: Don't draw the selected node when we lose focus.
4975
4976 2005-10-31  Jackson Harper  <jackson@ximian.com>
4977
4978         * X11Dnd.cs: We still need to reset the state even though a full
4979         reset isn't being done, otherwise status's still get sent all over
4980         the place.
4981
4982 2005-10-31  Jackson Harper  <jackson@ximian.com>
4983
4984         * Control.cs: Make the dnd_aware flag internal so the dnd
4985         subsystem can check it. Catch exceptions thrown in dnd handlers to
4986         match MS behavoir.
4987         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
4988         * X11Dnd.cs: Handle null data in the converters. Set the XDND
4989         version when sending a XdndEnter. Use the control/hwnd dnd_aware
4990         flags to reduce the number of dnd enters/status's sent.
4991
4992 2005-10-31  Jackson Harper  <jackson@ximian.com>
4993
4994         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
4995
4996 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
4997
4998         * PictureBox.cs: Fixes 76512
4999
5000 2005-10-28  Jackson Harper  <jackson@ximian.com>
5001
5002         * X11Dnd.cs: Early implementation to support winforms being a drag
5003         source for data on X11. Also restructured the converters so they
5004         can go both ways now.
5005         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5006         
5007 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5008
5009         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5010           clipboard requests
5011
5012 2005-10-27  Jackson Harper  <jackson@ximian.com>
5013
5014         * TreeNode.cs: Implement serialization so my DnD examples will work.
5015
5016 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5017
5018         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5019           TreeView.cs: Don't dispose objects that are not owned.
5020           
5021 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5022
5023         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5024           should retrieve the current cursor and report that, but XplatUI
5025           doesn't (yet) have an interface for that (and I'm not sure I even
5026           can, on X11)
5027         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5028           until any message loop processing is done (and the WM_SETCURSOR
5029           replaces the cursor to the proper one)
5030         * XplatUIX11.cs: 
5031           - Fixed override behaviour, we can't set the cursor globally on X11, 
5032             just for our windows.
5033           - Invalidating the System.Drawing X11 display handle when we are
5034             shutting down
5035         * Control.cs: Fix to make csc happy
5036
5037 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5038
5039         * TextBoxBase.cs: 
5040           - get_Text: Add last line (without trailing newline) to returned
5041             value (Fixes 76212)
5042           - get_TextLength: Count last line in returned length
5043           - ToString: Call Text property instead of duplicating code
5044
5045 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5046
5047         * ImageList.cs: Dispose ImageAttributes objects.
5048
5049 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5050
5051         * ImageList.cs: Use attribute constructors with less arguments where
5052           possible.
5053
5054 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5055
5056         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5057           Use typeof instead of strings when assembly is referenced. Added
5058           some more comments.
5059
5060 2005-10-21  Jackson Harper  <jackson@ximian.com>
5061
5062         * ListView.cs: Raise a double click event. Also tried to somewhat
5063         fix when the selectedindexchanged event is raised. Its still
5064         broken though.
5065
5066 2005-10-21  Jackson Harper  <jackson@ximian.com>
5067
5068         * TreeView.cs: New method to invalidate the plus minus area of a
5069         node without invalidating the whole node (maybe this can be used
5070         in some more places).
5071         * TreeNodeCollection.cs: When adding to an empty node we need to
5072         invalidate its plus minus area so the little block shows up.
5073         
5074 2005-10-21  Jackson Harper  <jackson@ximian.com>
5075
5076         * TreeView.cs: Make sure that when we invalidate a node the bounds
5077         are big enough to cover the selected box and the focus
5078         rectangle. Use a different colour for the lines connecting nodes
5079         so they show up with all themes.
5080
5081 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5082
5083         * NativeWindow.cs: Don't call anything that could call into the driver,
5084           we might be on a different thread.
5085
5086 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5087
5088         * Control.cs(Dispose): Since Dispose might run on a different thread,
5089           make sure that we call methods that could call into the driver via
5090           invoke, to avoid thread issues
5091
5092 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5093
5094         * XplatUI.cs: Removed finalizer
5095         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5096           not allowing to be called on the finalizer thread.
5097
5098 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5099
5100         * ImageList.cs:
5101           - Reverted r51889 and r51891.
5102           - Added ImageListItem class that stores unmodified image items and image
5103             properties required to create list images until handle is created.
5104           - Added AddItem and moved image creation logic to AddItemInternal.
5105           - Added CreateHandle method that creates images based on unmodified items.
5106           - Added DestroyHandle that changes state to store unmodified items.
5107           - Add and AddStrip methods no more create handle.
5108           - ReduceColorDepth has no return value.
5109           - Dispose destroys handle.
5110           - Modified other methods to reflect the above changes.
5111           - Implemented key support.
5112           - Added profile 2.0 members and attributes.
5113           - Added private Reset and ShouldSerialize methods that provide the same
5114             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5115             them as they are private.
5116           - Added some more comments about implementation details.
5117
5118 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5119
5120         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5121
5122 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5123
5124         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5125
5126 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5127
5128         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5129         * DataGridColumnStyle.cs: Remove debug message
5130
5131 2005-10-20  Jackson Harper  <jackson@ximian.com>
5132
5133         * TreeView.cs: We can always get input keys regardless of whether
5134         or not editing is enabled. They are used for navigation.
5135
5136 2005-10-20  Jackson Harper  <jackson@ximian.com>
5137
5138         * TreeNode.cs: Use the viewport rect for determining if a node
5139         needs to be moved for visibility. Don't use Begin/End edit. This
5140         calls a full refresh when its done.
5141         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5142         rect property internal so the treenodes can see it. When clicking
5143         on a node we need to ensure that its visible because it might just
5144         be partly visible when clicked.
5145
5146 2005-10-20  Jackson Harper  <jackson@ximian.com>
5147
5148         * TreeNodeCollection.cs: Remove debug code.
5149
5150 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5151
5152         * Datagrid.cs: Implements column sorting in Datagrid
5153         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5154
5155 2005-10-20  Jackson Harper  <jackson@ximian.com>
5156
5157         * TreeNodeCollection.cs: Remove items properly. Update the correct
5158         area after removing them.
5159
5160 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5161
5162         * Datagrid.cs: Should not call base.OnPaintBackground
5163
5164 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5165
5166         * XplatUIX11.cs (GetMessage):
5167           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5168             window instead of client window
5169           - Now properly calculates NC_xBUTTONUP message coordinates
5170           - ScreenToMenu now properly calculates it's coordinates of whole 
5171             window, since menus are in the whole window, not in the client
5172             window
5173           - Added WholeToScreen coordinate translation method
5174
5175 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5176
5177         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5178           want to return a message, loop back to the beginning of the function
5179           and grab the next real message to process instead.
5180
5181 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5182
5183         * Splitter.cs: Properly set limits if no filler control is used
5184
5185 2005-10-19  Jackson Harper  <jackson@ximian.com>
5186
5187         * ColorDialog.cs: Don't show the help button if it is not enabled
5188         instead of disabling it (this is what MS does). Don't create the
5189         panel until the dialog is run, otherwise the vars (such as
5190         ShowHelp) are not set yet.
5191
5192 2005-10-19  Jackson Harper  <jackson@ximian.com>
5193
5194         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5195         are reduced when adding nodes.
5196         * TreeNode.cs:
5197         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5198         tree.
5199         
5200 2005-10-19  Jackson Harper  <jackson@ximian.com>
5201
5202         * FolderBrowserDialog.cs: End editing our treeview so the window
5203         actually gets refreshed.
5204
5205 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5206
5207         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5208           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5209           inside of WM_PAINT
5210
5211 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5212
5213         * MenuAPI.cs: Returns after Hidding window
5214         * XplatUIX11.cs: Added TODO found while debugging menu issues
5215
5216 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5217
5218         * XplatUIX11.cs: Do not re-map the whole window when it's size
5219           becomes non-zero unless it's supposed to be actually visible
5220
5221 2005-10-18  Jackson Harper  <jackson@ximian.com>
5222
5223         * TreeView.cs: We don't need to keep a count anymore.
5224         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5225         use the Grow method.
5226
5227 2005-10-18  Jackson Harper  <jackson@ximian.com>
5228
5229         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5230         implement it manually here.
5231
5232 2005-10-18  Jackson Harper  <jackson@ximian.com>
5233
5234         * ImageList.cs: Dont kill the list when the colour depth is
5235         changed, just change the colour depth of all the images.
5236         - Same goes for setting the image size. Just resize them all
5237         instead of killing the list softly.
5238
5239 2005-10-18  Jackson Harper  <jackson@ximian.com>
5240
5241         * Control.cs: Don't invalidate empty rectangles.
5242
5243 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5244
5245         * ListViewItem.cs:
5246           - Adds checked item to the Checked/Item lists (where empty before)
5247           - Do not add items to the Selected lists if they are already present
5248         * ListView.cs:
5249           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5250           - When deleting items make sure that we delete them for the Selected
5251           and Checked list also.
5252
5253 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5254
5255         * Label.cs: Dispose objects no longer used
5256         * ThemeWin32Classic.cs: Dispose objects no longer used
5257
5258 2005-10-18  Jackson Harper  <jackson@ximian.com>
5259
5260         * TabControl.cs: Don't refresh the whole control when the tabs are
5261         scrolled, we just need to refresh the tab area.
5262
5263 2005-10-17  Jackson Harper  <jackson@ximian.com>
5264
5265         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5266         after handle when we need it.
5267
5268 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5269
5270         * Control.cs: When the parent size changes, recalculate anchor 
5271           positions. Partial fix for #76462
5272
5273 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5274
5275         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5276           drawn. Fixes #76462
5277
5278 2005-10-17  Jackson Harper  <jackson@ximian.com>
5279
5280         * MonthCalendar.cs: Don't create the numeric up down until our
5281         handle is created. Otherwise our handle is created in the
5282         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5283         yet.
5284
5285 2005-10-17  Jackson Harper  <jackson@ximian.com>
5286
5287         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5288         correctly.
5289
5290 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5291         * TreeNode.cs : small logical fix (was using local var instead of field)
5292         
5293 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5294
5295         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5296
5297 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5298
5299         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5300
5301 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5302
5303         * Control.cs: 
5304           - Re-implemented anchoring code. My first version was really broken.
5305             This fixes bug #76033. Unlike the previous implementation we will
5306             no longer have round errors since all numbers are calculated from
5307             scratch every time. Removed various anchor-related obsolete vars.
5308           - InitLayout no longer causes layout event firing and layout to be 
5309             performed
5310
5311 2005-10-16  Jackson Harper  <jackson@ximian.com>
5312
5313         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5314         which was broken).
5315
5316 2005-10-16  Jackson Harper  <jackson@ximian.com>
5317
5318         * TabControl.cs: Remove debug code.
5319
5320 2005-10-16  Jackson Harper  <jackson@ximian.com>
5321
5322         * XEventQueue.cs: Increase the default queue size (very simple
5323         apps needed to grow the queue).
5324         * Hwnd.cs: No finalizer so we don't need to suppress
5325         finalization. Compute the invalid area manually so a new rectangle
5326         does not newto be created.
5327         * ScrollableControl.cs: Don't set any params (otherwise visibility
5328         isn't set correctly).
5329         * MdiChildContext.cs: New constructor takes the mdi parent so it
5330         doesn't have to be computed and avoids a crash on windows. Draw
5331         the window icon properly, and allow the text to be seen.
5332         * Form.cs: Use new MdiChildContext constructor. Make sure the
5333         child context isn't null in wndproc.
5334         * TabControl.cs: Don't set focus, this is muddling keyboard
5335         behavoir. Expand the tab rows when a window size increase will
5336         allow extra tabs to be seen. Don't allow tabs smaller than the
5337         width of a window to be scrolled out of view.
5338         * TreeNode.cs:
5339         * TreeView.cs: Use measure string to calculate a nodes width, the
5340         width is cached and only updated when the text or the font is
5341         changed. Don't check for expand/collapse clicks on the first level
5342         nodes if root lines are disabled.
5343         
5344 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5345
5346         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5347
5348 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5349
5350         * DataGridBoolColumn.cs: fixes warning
5351
5352 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5353
5354         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5355         to match more to match more precisely the MS Net behavior
5356
5357 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5358
5359         * Hwnd.cs: Added field to track if window is mapped
5360         * XplatUIX11.cs: 
5361           - Unmap windows if they become 0-size, re-map when 
5362             they are >0 again; fixes #76035
5363           - Re-set our error handler after initializing X11Desktop
5364             to override any error handlers Gtk or whatever was called
5365             may have set.
5366
5367 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5368
5369         * CheckedListBox.cs: Removed unused vars
5370         * ListView.cs: Fixed signatures
5371         * RichTextBox.cs: Removed unused vars
5372         * TextBoxBase.cs: Removed unused vars
5373         * XplatUIWin32.cs: Removed unused vars
5374         * XplatUIX11.cs: Removed unused vars
5375         * XplatUI.cs: Updated version and date to latest published
5376
5377 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5378
5379         * Cursor.cs: Added private .ctor to work around a bug in
5380           resourceset (Thanks to Geoff Norton for the help on this)
5381         * SplitterEventArgs.cs: Made fields accessible so we don't
5382           waste boatloads of objects and can reuse the same one
5383           in Splitter
5384         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5385           any captions and borders when generating screen coordinates
5386         * Splitter.cs: Reimplemented control, now fully complete, uses
5387           rubberband drawing, supports and obeys all properties, has
5388           proper cursors
5389
5390 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5391
5392         * Form.cs (Form): Setup default values for autoscale and
5393         autoscale_base_size;  Make these instance variables, not static
5394         variables. 
5395
5396         (OnLoad): on the first load, adjust the size of the form.
5397
5398 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5399
5400         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5401           width argument to DrawReversibleRectangle()
5402         * XplatUIWin32.cs, XplatUIX11.cs: 
5403           - Implemented width for DrawReversibleRectangle()
5404           - Added logic to DrawReversibleRectangle that recognizes a zero
5405             width or height and only draws a line in that situation
5406         
5407 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5408
5409         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5410         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5411         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5412           method (it uses our FosterParent window to get a graphics context)
5413
5414 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5415
5416         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5417           and SetWindowBackground methods
5418         * Control.cs:
5419           - Setting proper ControlStyles
5420           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5421             EraseWindowBackground, instead we draw the window background
5422             ourselves in PaintControlBackground. This behaviour is
5423             required to match MS, where, when OnPaintBackground is not
5424             called, the background is not drawn.
5425           - Removed unneeded Refresh() in set_Text
5426         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5427         * XplatUIX11.cs:
5428           - Created DeriveStyles method to translate from CreateParams to
5429             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5430             matches FormBorderStyle enum values)
5431           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5432             style calculations into single DeriveStyles method
5433           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5434             from redrawing the whole window on any resize or expose.
5435           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5436             all styles were applied to our whole/client window appropriately
5437           - Removed EraseWindowBackground() and SetWindowBackground() methods
5438           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5439             no longer clear/redraw the background through X
5440           - Removed handling of erase_pending bit, we have no use for it (or
5441             so it seems)
5442         * XplatUIOSX.cs:
5443           - Removed generation and handling of WM_ERASEBKGND message
5444           - Removed EraseWindowBackground() and SetWindowBackground() methods
5445           - Removed handling of hwnd.ErasePending flag
5446         * XplatUIWin32.cs:
5447           - Removed EraseWindowBackground() and SetWindowBackground() methods
5448           - We no longer call EraseWindowBackground on PaintEventStart, we 
5449             ignore the fErase flag, erasing is handled in Control in the
5450             background handler
5451         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5452           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5453           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5454           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5455           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5456           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5457           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5458
5459 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5460
5461         * PropertyGrids.cs: Get sub properties
5462         * PropertyGridView.cs: Fix drawing code
5463
5464 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5465
5466         * ListBox.cs: Fixes 76383
5467
5468 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5469
5470         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5471         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5472         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5473
5474
5475 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5476
5477         * ComboBox.cs: Fixes border drawing
5478
5479 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5480
5481         * MimeIcon.cs: Ignore errors if the file can not be read.
5482
5483 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5484
5485         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5486          - Fixed border calculations
5487          - Fixed horizontal scrolling in single column listboxes
5488          - Fixed drawing issues
5489
5490 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5491
5492         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5493           FormBorderStyle enum
5494         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5495           code to determine FormBorderStyles from CreateParams
5496         * Form.cs:
5497           - Fixed bug where we'd set the wrong window styles if we were
5498             not creating an MDI window
5499           - Added call to XplatUI.SetBorderStyle when form borders are set
5500         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5501         * Hwnd.cs:
5502           - Removed obsolete edge style
5503           - Switched from BorderStyle to FormBorderStyle
5504         
5505 2005-10-10  Jackson Harper  <jackson@ximian.com>
5506
5507         * Form.cs: Use the property to get the window handle instead of
5508         accessing it directly. Prevents a null reference exception.
5509
5510 2005-10-10  Jackson Harper  <jackson@ximian.com>
5511
5512         * TreeView.cs: Don't adjust the rect given to DrawString now that
5513         our libgdiplus draws correctly.
5514
5515 2005-10-08  Jackson Harper  <jackson@ximian.com>
5516
5517         * TreeView.cs: Don't try to find the clicked on node if there are
5518         no nodes in the tree.
5519
5520 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5521
5522         * RichTextBox.cs:
5523
5524           restore
5525
5526 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5527
5528         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5529           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5530           ErrorProvider.cs:
5531           Use ResPool for brushes and dispose System.Drawing objects that
5532           are not used anymore.
5533
5534 2005-10-07  Jackson Harper  <jackson@ximian.com>
5535
5536         * MdiChildContext.cs: Use the new borders instead of drawing them
5537         ourselves.
5538
5539 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5540
5541         * Calling UpdateBounds after changing the window's BorderStyle 
5542         since the style can change the ClientSize
5543
5544 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5545
5546         * Control.cs: Made PaintControlBackground virtual
5547         * Panel.cs: Overriding PaintControlBackground instead of using paint
5548           event; paint event method was interfering with 'real' users of the
5549           event.
5550
5551 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5552
5553         * ThemeWin32Classic.cs: remove border drawing since it is handled
5554         by the base control class now and was causing double border drawing.
5555
5556 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5557
5558         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5559           but it does seem to match MS behaviour. This fixes bug #75324
5560
5561 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5562
5563         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5564           somewhat hackish looking
5565
5566 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5567
5568         * TextBoxBase.cs:
5569           - We now accept Enter even if AcceptEnter is false, if the containing
5570             form does not have an AcceptButton configured (fixes bug #76355)
5571           - Calculations are now fixed to no longer use Width/Height, but
5572             ClientSize.Width/Height, since we now support borders (this was
5573             a result of fixing borders and therefore bug #76166)
5574           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5575             true (fixes bug #76354)
5576         
5577 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5578
5579         * Control.cs: 
5580           - Defaulting BorderStyle and setting it in XplatUI when our window 
5581             is created
5582           - Added enum check to InternalBorderStyle setter
5583         * XplatUIX11.cs: 
5584           - Added drawing of window borders
5585           - Now properly calculates WM decorations offset for toplevel 
5586             windows (fixes bug #74763)
5587         * XplatUIWin32.cs: 
5588           - Implemented BorderStyles for windows (we're letting win32 draw 
5589             the border for us)
5590           - Fixed the signature for SetWindowLong
5591         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5592           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5593           setting borders
5594         * UpDownBase.cs: Remove drawing of borders, this is handled by
5595           the driver, outside the client area
5596         * ListView.cs: Removed bogus border calculations. The control should
5597           be oblivious to borders, since those are not part of the client
5598           area. 
5599         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5600         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5601           drawing code
5602
5603 2005-10-06  Jackson Harper  <jackson@ximian.com>
5604
5605         * MdiChildContext.cs: Clear out the old virtual position remove
5606         all the unneeded calls to CreateGraphics.
5607
5608 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5609
5610         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5611
5612 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5613
5614         * Form.cs: 
5615           - Added loading and setting of our new default icon
5616           - Only set icon if window is already created
5617
5618 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5619
5620         * Label.cs:
5621           - Do not explicitly set the foreground and background colors, to
5622             allow inheriting from parents (fixes #76302)
5623           - Use Control's InternalBorderStyle property to deal with borders
5624
5625 2005-10-06  Jackson Harper  <jackson@ximian.com>
5626
5627         * MdiChildContext.cs: Use the new xplatui function to draw a
5628         reversible rect.
5629
5630 2005-10-06  Jackson Harper  <jackson@ximian.com>
5631
5632         * Form.cs: Add the parent before creating the child context cause
5633         we need the parent when setting up the child.
5634
5635 2005-10-06  Jackson Harper  <jackson@ximian.com>
5636
5637         * FolderBrowserDialog.cs: redo the tree population code so a
5638         second thread isn't used. Should be a lot faster and more stable
5639         now.
5640
5641 2005-10-05  Jackson Harper  <jackson@ximian.com>
5642
5643         * TreeView.cs: There are no expand/collapse boxes if the node has
5644         no children.
5645
5646 2005-10-05  Jackson Harper  <jackson@ximian.com>
5647
5648         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5649
5650 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5651
5652         * FileDialog.cs: Fix InitialDirectory
5653
5654 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5655
5656         * ComboBox.cs:
5657                 - Fixes changing between styles
5658                 - Fixes simple mode
5659                 - Fixes last item crashing when navigating with keyboard
5660
5661 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5662
5663         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5664
5665 2005-10-05  Jackson Harper  <jackson@ximian.com>
5666
5667         * TreeView.cs: If updating the root node do a full refresh.
5668         * TreeNode.cs: The root node should be expanded by default. Also
5669         added a utility prop to tell if we are the root node.
5670         * TreeNodeCollection.cs: Only refresh if the node we are being
5671         added to is expanded. Also added a comment on a potential
5672         optimization.
5673         
5674 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5675
5676         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5677           in dispose method. Fixes #76330
5678
5679 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5680
5681         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5682
5683                 - Implements vertical and horizontal scrolling using XplatUI
5684                 - Fixes keyboard navagation
5685                 - Fixes EnsureVisible
5686                 - Drawing fixes
5687                 - Handles and draws focus properly
5688
5689
5690 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5691
5692         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5693           Create handle. NET_2_0: Destroy handle when value is null.
5694
5695 2005-10-03  Jackson Harper  <jackson@ximian.com>
5696
5697         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5698         revert and a new patch to prevent the thumb from refreshing so
5699         much.
5700
5701 2005-10-02  Jackson Harper  <jackson@ximian.com>
5702
5703         * ScrollBar.cs: Don't update position if it hasn't actually
5704         changed. This occurs when you hold down the increment/decrement
5705         buttons and the thumb gets to the max/min.
5706
5707 2005-10-01  Jackson Harper  <jackson@ximian.com>
5708
5709         * Form.cs:
5710         * MdiChildContext.cs:
5711         * MdiClient.cs: Implement ActiveMdiChild in Form.
5712
5713 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5714
5715         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5716
5717 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5718
5719         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5720           be found
5721
5722 2005-09-30  Jackson Harper  <jackson@ximian.com>
5723
5724         * ListBox.cs: Don't do a full refresh unless some data has
5725         actually changed.
5726
5727 2005-09-30  Jackson Harper  <jackson@ximian.com>
5728
5729         * TreeView.cs: Make sure that the checkboxes size is factored in
5730         even when not visible.
5731
5732 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5733
5734         * FileDialog.cs: Fix Jordi's build break
5735
5736 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5737
5738         * FileDialog.cs: 
5739                 - Use standard the Windows colours for the combobox as espected
5740                 - Dispose objects that use resouces when no longer need them
5741
5742 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5743
5744         * X11DesktopColors.cs: Initial incomplete implementation
5745         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5746
5747 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5748
5749         * Theme.cs: 
5750           - Switched Theme color names to match the names defined in 
5751             System.Drawing.KnownColors. Life's hard enough, no need to make 
5752             it harder.
5753           - Added setters to all theme color properties so themes can set
5754             their color schemes. The setters also propagate the color changes
5755             to System.Drawing.KnownColors via reflection
5756         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5757           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5758           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5759           use the new, more logical theme color names
5760         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5761           post-NT colors
5762         * ThemeWin32Classic.cs:
5763           - Removed code to set the old classic Windows colors. Instead it
5764             now relies on the colors returned by System.Drawing.KnownColors
5765             which will be either modern static colors (Unix) or colors
5766             read from the user's configuration (Win32)
5767           - Updated to use the new, more logical theme color names
5768           - Switched DataGrid drawing code to use only Theme colors instead of
5769             a mix of System.Drawing.KnownColors and Theme colors
5770           - DrawFrameControl(): Removed code that fills the button area, the
5771             fill would overwrite any previous fill done by a control. This
5772             fixes bug #75338 
5773           - Added DrawReversibleRectangle() stub
5774         * ScrollableControl.cs: Set visible state to false when scrollbars
5775           are removed (pdn fix)
5776         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
5777           DrawReversibleRectangle() method to allow drawing primitive 
5778           'rubber bands'
5779         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5780
5781 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5782
5783         * ImageList.cs: Add(Icon): Create handle.
5784
5785 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5786
5787         * ListView.cs:
5788         * ThemeWin32Classic.cs:
5789                 - Fixes detail mode
5790                 - Sets clippings
5791                 - Issues with drawing
5792
5793 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5794
5795         * ImageList.cs: Moved RecreateHandle back to ImageList as event
5796           source has to be the ImageList.
5797
5798 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5799
5800         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5801
5802 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5803
5804         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5805
5806 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5807
5808         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5809
5810 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
5811         * GridItem.cs: Fixed TODOs
5812         * GridItemCollection.cs: Added ICollection interface
5813
5814 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5815
5816         * ImageList.cs: Resize icons when needed.
5817
5818 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
5819
5820         * ListViewItem.cs
5821                 - Fixes GetBounds and returns on screen rects
5822         * ListView.cs:
5823                 - Fixes vertical and horzintal scrolling of items
5824         * ThemeWin32Classic.cs:
5825                 - Fixes drawing
5826                 
5827 2005-09-29  Raja R Harinath  <harinath@gmail.com>
5828
5829         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5830
5831 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
5832
5833         * ImageList.cs: Added comments about handle creation. Moved Handle,
5834           HandleCreated and OnRecreateHandle implementations to ImageCollection.
5835           Handle is created in Add methods.
5836
5837 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5838          
5839         * DataGridDrawingLogic.cs: 
5840                 - Takes rows into account on Colum calculations
5841                 - Returns the column when clickig
5842         * DataGrid.cs:
5843                 - Fixes default HitTestInfo values
5844                 - Fixes HitTestInfo.ToString
5845                 - Fixes ResetBackColor          
5846         
5847 2005-09-28  Jackson Harper  <jackson@ximian.com>
5848
5849         * MdiChildContext.cs: Obey rules for fixed sized windows (no
5850         sizing or cursor changes). Also added some temp code to draw the
5851         titlebars text (Makes dev a little easier).
5852
5853 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5854
5855         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5856
5857 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5858          
5859         * ListBox.cs: Fixes bug 76253
5860
5861 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5862
5863         * ImageList.cs: Added comments about the current implementation. Added
5864           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5865           Format32bppArgb to preserve transparency and can use Graphics.FromImage
5866           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5867           with Bitmap.LockBits for better performance. Revised the whole file to
5868           match MS.NET behaviour and provide better performance. Non-public
5869           interface members are calling public members even when they throw
5870           NotSupportedException for better maintainability. Moved ColorDepth,
5871           ImageSize, ImageStream and TransparentColor implementations to
5872           ImageCollection for better performance as these properties are not used
5873           by ImageList.
5874         * ImageListStreamer.cs: Added a new internal constructor that takes an
5875           ImageList.ImageCollection and serializes Images based on
5876           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5877           match ImageList property name.
5878
5879 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
5880
5881         * ListBox.cs: Fixes IndexFromPoint for last item
5882
5883 2005-09-27  Jackson Harper  <jackson@ximian.com>
5884
5885         * Form.cs: Set the position of new mdi children correctly.
5886
5887 2005-09-27  Jackson Harper  <jackson@ximian.com>
5888
5889         * MdiClient.cs: New mdi children need to be added to the back of
5890         the controls collection so the zorder is set correctly. Also add a
5891         count of all the child windows that have been created.
5892
5893 2005-09-27  Jackson Harper  <jackson@ximian.com>
5894
5895         * Form.cs (CreateParams): Setup MDI forms correctly.
5896
5897 2005-09-27  Jackson Harper  <jackson@ximian.com>
5898
5899         * MdiChildContext.cs:
5900         * MonthCalendar.cs:
5901         * UpDownBase.cs:
5902         * ListBox.cs:
5903         * ListView.cs:
5904         * TextBoxBase.cs:
5905         * TreeView.cs:
5906         * ScrollableControl.cs:
5907         * ComboBox.cs: Add implicit controls using the new implict control
5908         functionality in ControlCollection. Also try to block multiple
5909         control add in a suspend/resume layout to save some cycles.
5910         
5911 2005-09-27  Jackson Harper  <jackson@ximian.com>
5912
5913         * Control.cs: Add functionality to the controls collection to add
5914         'implicit controls' these are controls that are created by the
5915         containing control but should not be exposed to the user. Such as
5916         scrollbars in the treeview.
5917         * Form.cs: The list var of the ControlsCollection is no longer
5918         available because of the potential of implicit controls getting
5919         ignored by someone accessing the list directly.
5920
5921 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
5922
5923         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5924           loose it's parent. (Fixed bug introduced in r49103 when we added
5925           setting the child parent to null on Remove)
5926
5927 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
5928
5929         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5930         * Splitter.cs: Added missing attributes for BorderStyle property.
5931         * TextBoxBase.cs: Marked Calculate* methods internal.
5932         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5933         MS.NET.
5934
5935 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
5936          
5937         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5938
5939 2005-09-25  Jackson Harper  <jackson@ximian.com>
5940
5941         * TreeView.cs: Update the node bounds correctly regardless of
5942         whether the node is visible.
5943
5944 2005-09-25  Jackson Harper  <jackson@ximian.com>
5945
5946         * ImageList.cs: Don't dispose the image after it is added to the
5947         image list. Only reformat images that need to be resized.
5948
5949 2005-09-25  Jackson Harper  <jackson@ximian.com>
5950
5951         * ImageList.cs: Don't set the format when changing the image.
5952
5953 2005-09-25  Jackson Harper  <jackson@ximian.com>
5954
5955         * TreeView.cs: We can't just assume the node has a font. Use the
5956         treeviews font if no node font is available.
5957
5958 2005-09-25  Jackson Harper  <jackson@ximian.com>
5959
5960         * TreeView.cs: Allow the scrollbars to be reset with negative
5961         values.
5962         - Don't add scrollbars to negative sized windows.
5963
5964 2005-09-23  Jackson Harper  <jackson@ximian.com>
5965
5966         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5967         old Mono.Posix. Also remove some stray code that shouldn't have
5968         been committed.
5969
5970 2005-09-23  Jackson Harper  <jackson@ximian.com>
5971
5972         * TreeView.cs: Attempt at proper sizing of the horizontal
5973         scrollbar. Also don't resize the scrollbars unless they are
5974         visible.
5975
5976 2005-09-23  Jackson Harper  <jackson@ximian.com>
5977
5978         * TreeView.cs: We don't need to expand the invalid area when the
5979         selection changes, as this is all drawn in the node's bounding
5980         box. The area needs to be expanded (previous typo was contracting
5981         it) when the focus rect moves.
5982
5983 2005-09-23  Jackson Harper  <jackson@ximian.com>
5984
5985         * TreeView.cs: Display the selection box under the correct
5986         circumstances. We were rendering white text with no selection box
5987         before.
5988
5989 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
5990
5991         * TextControl.cs(Split): Now updates selection start/end if it points 
5992           into a line that's being split. Fixes a FIXME and bug #75258
5993
5994 2005-09-23  Jackson Harper  <jackson@ximian.com>
5995
5996         * Binding.cs:
5997         * ListControl.cs: Don't use the path when retrieving binding
5998         managers from the binding context. My bat sense tells me that the
5999         path is only used on insertion.
6000
6001 2005-09-22  Jackson Harper  <jackson@ximian.com>
6002
6003         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6004
6005 2005-09-22  Jackson Harper  <jackson@ximian.com>
6006
6007         * Splitter.cs: There are special cursors used for splitting.
6008         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6009
6010 2005-09-22  Jackson Harper  <jackson@ximian.com>
6011
6012         * Splitter.cs: Change the cursor appropriately when the splitter
6013         is moused over, so the user actually knows there is a splitter
6014         there.
6015
6016 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6017
6018        * Label.cs : Fix ToString method to give same output as MS.NET
6019
6020 2005-09-22  Jackson Harper  <jackson@ximian.com>
6021
6022         * TreeView.cs: Create the scrollbars when the handle is created
6023         and add them right away, just make them invisble. Also account for
6024         the window being shrunk vertically to the point that the vert
6025         scrollbar needs to be added.
6026         - Remove some 0.5 adjustments to get around anti aliasing issues.
6027         
6028 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6029          
6030         * MainMenu.cs: Fixes default value
6031         * MenuItem.cs: Fixes default value
6032
6033 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6034
6035         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6036
6037 2005-09-21  Jackson Harper  <jackson@ximian.com>
6038
6039         * Control.cs: Don't try to set the border style on the window if
6040         it hasn't been created. When the window is created the border
6041         style will be used.
6042
6043 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6044
6045         * Control.cs (Update): Don't call XplatUI if we don't have a
6046           window handle yet
6047
6048 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6049
6050         * ContainerControl.cs: Instead of throwing an exception, print
6051           a one-time warning about Validate not being implemented
6052         * XplatUIWin32.cs: Removed debug output
6053
6054 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6055
6056         * Control.cs: Only set XplatUI background if we expect the windowing
6057           system to handle the background. This stops controls that draw their
6058           own background from flickering
6059
6060         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6061           creation. This allows, amongst other things, using MWF X11 windows 
6062           with OpenGL.
6063
6064 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6065
6066         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6067           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6068           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6069           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6070           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6071           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6072           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6073           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6074           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6075           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6076           GridColumnStylesCollection.cs, 
6077           IDataGridColumnStyleEditingNotificationService.cs,
6078           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6079           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6080           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6081           TreeNodeCollection.cs, AmbientProperties.cs, 
6082           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6083           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6084           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6085           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6086           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6087           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6088           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6089           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6090           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6091           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6092           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6093           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6094           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6095           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6096           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6097           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6098           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6099           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6100           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6101           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6102           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6103           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6104           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6105           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6106           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6107           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6108           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6109           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6110           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6111           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6112           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6113           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6114           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6115           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6116           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6117           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6118           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6119
6120 2005-09-21  Jackson Harper  <jackson@ximian.com>
6121
6122         * TreeNode.cs: Call Before/After Expand not Collapse when
6123         expanding.
6124
6125 2005-09-20  Jackson Harper  <jackson@ximian.com>
6126         
6127         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6128
6129 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6130          
6131         * ListViewItem.cs:
6132                 - Fixes bug 76120
6133                 - Fixes proper storing of subitems
6134                 - Fixes not updated items
6135
6136 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6137
6138         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6139           things if our window handle isn't created yet. Also disabled 
6140           debug for TextBoxBase
6141
6142 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6143
6144         * MenuAPI.cs: Remove filtering of events to allow menu usage
6145
6146 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6147
6148         * Cursor.cs: Allow null to be passed to Cursor.Current.
6149
6150 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6151
6152         * ThemeWin32Classic.cs:
6153           - Change some private methods/fields to protected virtual so that 
6154             they can be accessed and overriden in derived classes
6155           - First refactoring of some methods. Derived themes now don't 
6156             need to duplicate the complete code from ThemeWin32Classic
6157         * ThemeNice.cs:
6158           - Added nice StatusBar
6159           - Derive from ThemeWin32Classic and not Theme
6160           - Removed duplicate ThemeWin32Classic code
6161
6162 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6163
6164         * Control.cs (ControlCollection.Add): If the value null is passed
6165         the control is ignored. 
6166
6167         Optimize this loop.
6168
6169 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6170
6171         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6172           PostQuitMessage state.
6173         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6174
6175 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6176
6177         * Application.cs: Our constructor will never get called, move 
6178           initialization to fields; fixes bug #75933
6179
6180 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6181
6182         * FileDialog.cs :
6183                 - Allow files to be selected properly using file name
6184                 combo box.
6185                 - Add ability to change diretory (absolute / relative)
6186                 using file name combo box.
6187
6188 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6189          
6190         * ListBox.cs: 
6191                 - Fixes Multicolumn listboxes item wrong calculations
6192                 - Allows to click when only one item is in the listbox
6193                 - Fixes crash when no items using keyboard navigation
6194
6195 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6196
6197         * ComboBox.cs: Reverted almost everything from the latest patch which
6198           broke ComboBox
6199
6200 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6201         
6202         * ToolTip.cs:
6203                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6204         * ComboBox.cs:
6205                 - When DropDownStyle is Simple, it does not show scrollbar 
6206                 to the last item of the list.
6207                 - When DropDownStyle is Simple, it crashed when the list was 
6208                 scrolled down with the down cursor key.
6209                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6210                 selected item was not shown.
6211                 - The position of the selected item was not preserved when 
6212                 the next dropdown happened.
6213         * ThemeWin32Classic.cs:
6214                 - Items were wrapped at the right end.
6215         * CheckedListBox.cs:
6216                 - Fixed Add method
6217         * ListBox.cs:
6218                 - Items should be fully shown.
6219                 - When resizing and vertical scrollbar disappeared, the item 
6220                 of index 0 should be on the top of the list.
6221                 - GetItemRectangle should consider the size of ver. scrollbar
6222         * StatusBar.cs:
6223                 - SizingGrip area should not be allocated when it is not 
6224                 displayed.
6225                 - Now it reflects MinWidth of the containing panel and 
6226                 fixed a crash that happens when its width becomes so small.
6227
6228 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6229
6230         * CheckedListBox.cs: Fixes bug 76028
6231         * ListBox.cs: Fixes bug 76028
6232
6233 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6234
6235         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6236         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6237
6238 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6239
6240         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6241
6242 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6243
6244         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6245
6246 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6247
6248         * IRootGridEntry.cs: Added
6249         * PropertyGridCommands.cs: Added
6250         * PropertiesTab.cs: Added missing methods and property
6251         * PropertyGridView.cs: Made class internal
6252         * PropertyGridTextBox.cs: Made class internal
6253
6254 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6255
6256         * MimeIcon.cs: Try to check some other environment variables
6257           if "DESKTOP_SESSION" returns "default"
6258
6259 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6260
6261         * ThemeNice.cs: Corrected background colors (e.g. menus)
6262         * ColorDialog.cs: Use correct background colors for controls
6263
6264 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6265
6266         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6267
6268 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6269
6270         * RichTextBox.cs: Added initial implementation
6271         * lang.cs: Removed. Was accidentally checked in long time ago
6272         * TODO: Removed. Contents were obsolete
6273
6274 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6275                                                                                 
6276         * PropertiesTab.cs : Added
6277
6278 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6279                                                                                 
6280         * PropertyGrid.cs : Update
6281         * PropertyGridView.cs : Update
6282         * System.Windows.Forms.resx : Added images and strings
6283
6284 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6285
6286         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6287  
6288 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6289
6290         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6291           a busy loop right after the Ungrab the X11 display is otherwise 
6292           blocked
6293
6294 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6295
6296         * ThemeWin32Classic.cs: Optimise the use of clipping
6297
6298 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6299
6300         * DataGrid.cs: fixes recursion bug
6301
6302 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6303
6304         * ThemeNice.cs: 
6305           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6306           - Cleanup
6307
6308 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6309
6310         * ThemeNice.cs: Draw nice ProgressBars
6311
6312 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6313
6314         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6315
6316         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6317         bug finder.
6318
6319 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6320
6321         * ThemeNice.cs:
6322           - Added nicer menu drawing
6323           - Updated DrawTab
6324           - some refactoring
6325
6326 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6327
6328         * CreateParams.cs (ToString): Made output match MS
6329         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6330             handle is already created (to avoid forcing window creation)
6331         * XplatUIX11.cs: Set window text to caption after creating window,
6332           in case Text was set before window was created
6333         * Form.cs: Use this.Text instead of a static string as caption
6334
6335 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6336
6337         * NotifyIcon.cs: Don't set the window to visible; this screws
6338           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6339           OnPaint without a bitmap)
6340         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6341           happen very often anyway; we could add the check to the WM_PAINT 
6342           event generation code
6343
6344 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6345
6346         * NotifyIcon.cs: Fill the icon area with a background color, to 
6347           avoid 'residue' when transparent icons are drawn
6348         * XplatUIX11.cs:
6349           - Handle whole_window == client_window when destroying windows
6350           - SystrayAdd(): Set client_window to whole_window value to
6351             get mouse and other events passed to NotifyIcon
6352
6353 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6354
6355         * Form.cs: Set proper default for Opacity property
6356         * NotifyIcon.cs:
6357           - ShowSystray(): Don't bother creating telling the OS
6358             about the systray item if no icon is provided
6359           - Now handles WM_NCPAINT message to deal with whole/client window
6360             split
6361           - Create window as visible to not get caught by Expose optimization
6362         * Hwnd.cs: Removed debug message
6363         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6364           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6365             PaintEventStart/End to use new client argument
6366         * TextBoxBase.cs:
6367           - Commented out debug messages
6368           - Switched PaintEventStart/End to use new client argument
6369         * XplatUI.cs: Added client window bool to PaintEventStart()/
6370           PaintEventEnd() calls, to support drawing in non-client areas
6371         * XplatUIDriver.cs: 
6372           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6373             calls, to support drawing in non-client areas
6374           - Added conditional compile to allow using MWF BeginInvoke 
6375             on MS runtime
6376         * XplatUIX11.cs:
6377           - Added some conditional debug output
6378           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6379             whole/client window split
6380           - Implemented handling of client argument to PaintEventStart()/End()
6381         * Control.cs:
6382           - Throw exception if BeginInvoke() is called and the window handle
6383             or one of the window's parent handles is not created
6384           - Added conditional compile to allow using MWF BeginInvoke on
6385             MS runtime
6386           - get_Parent(): Only sets parent if handle is created. This avoids
6387             forcing window handle creation when parent is set.
6388           - Now fires Layout and Parent changed events in proper order
6389           - Switched to use Handle instead of window.Handle for Z-Order setting,
6390             the get_Parent() patch above causes us to possibly get null for 'window'
6391           - Implemented handling of client argument to PaintEventStart()/End()
6392           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6393             default handling)
6394           - Now sends a Refresh() to all child windows when Refresh() is called
6395
6396 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6397
6398         * Form.cs: Added (non-functional) Opacity property
6399         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6400
6401 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6402         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6403           use export MONO_THEME=nice to activate it.
6404           Currently supported controls:
6405           - Button
6406           - ComboBox
6407           - ScrollBar
6408           - TabControl (TabAlignment.Top only, other will follow)
6409         * ThemeEngine.cs: Add theme nice
6410         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6411           if enabled
6412
6413 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6414
6415         * Splitter.cs: Resize docked control and its neighbor.
6416
6417 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6418         -- Making Windows with Menus layout correctly --
6419         * Form.cs : The first leg of the fix
6420                 Menu setter - adjust Client Size as needed to make space for the menu
6421                 SetClientSizeCore - doesn't call base version to be able to pass the 
6422                         menu handle to XplatUI.CalculateWindowRect
6423         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6424         * XplatUIX11.cs: The critical second leg of the fix
6425                 GetWindowPos needs to use a recalculated client_rect
6426                 so that resizing the window doesn't break layout of child controls. 
6427                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6428                 Lots of \t\n killed
6429
6430 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6431
6432         * Label.cs: Now properly recalculates width and height on Font and Text
6433           changes if AutoSize is set
6434
6435 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6436         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6437
6438 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6439
6440         * ImageList.cs: Makes ToString method compatible with MS
6441
6442 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6443
6444         * MenuAPI.cs: fixes bug 75716
6445
6446 2005-08-11 Umadevi S <sumadevi@novell.com>
6447         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6448
6449 2005-08-11 Umadevi S <sumadevi@novell.com>
6450         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6451
6452 2005-08-10  Umadevi S <sumadevi@novell.com>
6453         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6454
6455 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6456
6457         * Menu.cs: fixes bug 75700
6458         * MenuAPI.cs: fixes navigation issues
6459
6460 2005-08-09  Umadevi S <sumadevi@novell.com>
6461         * CheckedListBox.cs - simple fix for GetItemChecked.
6462
6463 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6464
6465         * ComboBox.cs: Serveral fixes
6466         * ListBox.cs: Serveral fixes
6467
6468 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6469
6470         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6471         * ListBox.cs: Fixes FindString methods
6472
6473 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6474
6475         * DataGrid.cs: fixes bugs exposed by new tests
6476
6477 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6478
6479         * Mime.cs: Compile Mono assembly references only if compiling
6480           with Mono (Allows to build with VS.Net again)
6481
6482 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6483
6484         * Control.cs (PaintControlBackground): Draw background image
6485         corrrectly.
6486         (CheckForIllegalCrossThreadCalls): Stubbed.
6487         
6488         * Form.cs (OnCreateControl): Center when should be centered.
6489         
6490         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6491
6492 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6493
6494         * Binding.cs: Binding to properties should be case unsensitive
6495
6496 2005-07-18 vlindos@nucleusys.com
6497
6498         * DataGrid.cs: fixes setmember order
6499
6500 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6501
6502         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6503         * FileDialog.cs: FileDialog is now resizable and uses the new
6504           MimeIconEngine
6505
6506 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6507
6508         * DataGridTextBoxColumn.cs: default value
6509         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6510         * GridTableStylesCollection.cs: fixes checking MappingName
6511         * DataGridDrawingLogic.cs: fixes drawing logic issues
6512         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6513         * DataGrid.cs: fixes    
6514
6515 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6516
6517         * MimeGenerated.cs: Use case sensitive comparer for
6518           NameValueCollections
6519
6520 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6521
6522         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6523         * ThemeWin32Classic.cs: bug fixes, code refactoring
6524         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6525         * DataGrid.cs: bug fixes, code refactoring
6526         * DataGridTextBox.cs: bug fixes, code refactoring
6527         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6528         * Theme.cs:  bug fixes, code refactoring
6529
6530 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6531
6532         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6533           and other text box usage
6534
6535 2005-07-01  Jackson Harper  <jackson@ximian.com>
6536
6537         * TabControl.cs: Make sure the bottom of the tab covers the pages
6538         border.
6539
6540 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6541
6542         * Form.cs (ShowDialog): Assign owner of the dialog
6543         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6544           might have been moved to a tag with different height
6545
6546 2005-06-30  Jackson Harper  <jackson@ximian.com>
6547
6548         * Form.cs: Don't create an infinite loop when setting focus
6549         * MenuItem.cs: Don't dirty the parents if we don't have any
6550
6551 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6552
6553         * LibSupport.cs: Rename
6554
6555 2005-06-29  Peter Bartok  <pbartok@novell.com>
6556
6557         * TextBoxBase.cs: Re-align caret after deleting a character
6558         * TextControl.cs:
6559           - DeleteChars(): Ensure that tag covers the provided position
6560           - StreamLine(): Drop reference for dropped tag
6561
6562 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6563
6564         * TextControl.cs: 
6565           - Selections now work properly, anchoring at the initial location
6566             and properly extending in either direction (SetSelectionToCaret(),
6567             SetSelectionStart() and SetSelectionEnd())
6568           - No longer redraws the whole control on selection change, now
6569             calculates delta between previous and new selection and only
6570             invalidates/redraws that area
6571           - Fixed FindPos() math off-by-one errors
6572           - Changed DeleteChars() to verify the provided tag covers the
6573             provided position, selections may have a tag that doesn't cover
6574             the position if the selection is at a tag border
6575           - Fixed off-by-one errors in DeleteChars()
6576           - Added missing streamlining check in DeleteChars() to remove
6577             zero-length tags
6578           - Implemented Invalidate() method, now properly calculates exposures
6579             between two given lines/positions
6580           - Implemented SetSelection()
6581           - Obsoleted and removed FixupSelection()
6582           - Improved RecalculateDocument() logic, removing code duplication
6583
6584 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6585
6586         * LibSupport.cs: changes to match different input/output arguments.
6587
6588 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6589
6590         * LibSupport.cs: added libsupport.so init routine.
6591
6592 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6593         
6594         * ControlBindingsCollection.cs
6595                 - Throws an exception on null datasource when adding
6596                 - Checks for duplicated bindings when adding
6597
6598 2005-06-28  Jackson Harper  <jackson@ximian.com>
6599
6600         * TreeView.cs (OnKeyDown): Support left and right properly
6601         (navigates as well as expanding and collapsing.
6602         - Add support for Multiply, this expands all the selected nodes
6603         children.
6604         - Fix some tabbing.
6605
6606 2005-06-28  Jackson Harper  <jackson@ximian.com>
6607
6608         * TreeView.cs: Implement keyboard navigation, currently supports,
6609         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6610         support for toggling checkboxes with the space bar.
6611
6612 2005-06-28  Jackson Harper  <jackson@ximian.com>
6613
6614         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6615         tree.
6616
6617 2005-06-28  Jackson Harper  <jackson@ximian.com>
6618
6619         * TreeView.cs: Add missing event.
6620
6621 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6622
6623         * TextControl.cs:
6624           - Made line ending size configurable (now allows for counting 
6625             lineendings as \n or \r\n)
6626           - Added margin to viewport to keep caret visible on right side
6627           - Fixed translation routines for line/pos to documentpos to consider
6628             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6629           - Fixed some line-endings to be unix style
6630           - Fixed Document.FormatText to perform it's calculations 1-based
6631           - Added descriptions for a few methods that might otherwise get 
6632             used wrong
6633           - Added NOTE section with some basic conventions to remember at 
6634             the top of the file
6635           - Major fixup for RichTextBox selection drawing:
6636             * Fixed crashes when multiple tags on a single line were selected
6637             * fixed selection box drawing not overlaying text
6638             * fixed bogus offset calculation for tags not starting at index 1
6639             * Switched behaviour from using multiple Substrings of a 
6640               StringBuilder.ToString() to using multiple 
6641               StringBuilder.ToString(start, length) statements, hoping this is
6642               faster (kept original version commented out in the code, in case
6643               original version was faster)
6644         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6645           alignment != Left
6646         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6647           call it as well
6648
6649 2005-06-27  Jackson Harper  <jackson@ximian.com>
6650
6651         * TabControl.cs: Move to the left and right with the arrow
6652         keys. These keys don't cycle beyond first and last like
6653         tab. Refresh all the tabs when scrolling them to the left or
6654         right.
6655
6656 2005-06-27  Jackson Harper  <jackson@ximian.com>
6657
6658         * TabControl.cs:
6659           - ToString: Added method
6660           - CreateParams: Remove TODO and comment
6661           - OnKeyDown: Cycle through bounds properly.
6662           - SelectedIndex: Scroll to the right or left if we need to
6663           display the newly selected tab.
6664
6665 2005-06-23  Jackson Harper  <jackson@ximian.com>
6666
6667         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6668         set.
6669
6670 2005-06-23  Jackson Harper  <jackson@ximian.com>
6671
6672         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6673         CTRL-SHIFT-TAB, and HOME, END are there any others?
6674
6675 2005-06-23  Jackson Harper  <jackson@ximian.com>
6676
6677         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6678
6679 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6680         
6681         * DataGridTextBoxColumn.cs: fixes and enhancements
6682         * ThemeWin32Classic.cs: fixes and enhancements
6683         * DataGridBoolColumn.cs:  fixes and enhancements
6684         * DataGridDrawingLogic.cs:  fixes and enhancements
6685         * CurrencyManager.cs: fixes and enhancements
6686         * DataGrid.cs: fixes and enhancements
6687         * DataGridColumnStyle.cs:  fixes and enhancements
6688
6689 2005-06-22  Jackson Harper  <jackson@ximian.com>
6690
6691         * TabControl.cs: Add some missing methods that just call into the
6692         base. Make the TabPageCollection's IList interface behave in the
6693         same manner as the MS implementation.
6694
6695 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6696
6697         * TextControl.cs: Added sanity check
6698         * TextBoxBase.cs: 
6699           - Fixed wrapping behaviour, don't set wrap on single line controls
6700             (this fixes the breakage of colordialog introduced in an earlier
6701              checkin)
6702           - Added rudimentary support for autoscrolling right-aligned controls
6703             (still needs fixing, also, center alignment scroll is missing)
6704
6705 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6706         
6707         * ScrollBar.cs: Fixes thumbpos on Maximum values
6708
6709 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6710         
6711         * PropertyGridView.cs: Pass context information to UITypeEditors 
6712
6713 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6714
6715         * TextBoxBase.cs:
6716           - Now calling PositionCaret with absolute space coordinates
6717           - Enabled vertical scrolling
6718           - Better tracking of scrollbar changes, tied into WidthChange
6719             event
6720           - Improved cursor tracking
6721           - Removed debug output
6722         * TextControl.cs:
6723           - PositionCaret coordinates are now works in absolute space, not 
6724             the canvas
6725           - Improved tracking of document size
6726           - Added events for width and height changes
6727
6728 2005-06-21  Peter Bartok  <pbartok@novell.com>
6729
6730         * Form.cs: Set focus to active control when form is activated
6731         * TextControl.cs: 
6732           - Added word-wrap functionality to RecalculateLine() 
6733           - Added some short function descriptions for VS.Net to aid in
6734             writing dependent controls
6735           - Added Caret property, returning the current coords of the caret
6736           - Added ViewPortWidth and ViewPortHeight properties
6737           - Added Wrap property
6738           - Added CaretMoved event
6739           - Removed some old debug code
6740           - Split() can now create soft splits
6741           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6742           - Added method to format existing text
6743           - Fixed size/alignment calculations to use viewport
6744           - RecalculateDocument now can handle changing line-numbers while
6745             calculating lines
6746
6747         * TextBox.cs:
6748           - Added some wrap logic, we don't wrap if alignment is not left
6749           - Added casts for scrollbar var, base class switched types to
6750             also support RichTextBoxA
6751           - Implemented handling of scrollbar visibility flags
6752
6753         * TextBoxBase.cs:
6754           - Switched scrollbars type to RichTextBoxScrollBars to support
6755             RichTextBox
6756           - Added tracking of canvas width/height
6757           - Switched scrollbars to be not selectable (to keep focus on text)
6758           - Added central CalculateDocument() method to handle all redraw
6759             requirements
6760           - Added ReadOnly support
6761           - Added WordWrap support
6762           - Fixed handling of Enter key (we now treat it as a DialogKey)
6763           - Fixed caret positioning when h or v scroll is not zero
6764           - Fixed placing/generation of vertical scrollbar
6765           - Added CalculateScrollBars() method to allow updating scrollbar
6766             limits and visibility
6767           - Fixed handling of horizontal scroll
6768           - Added handling of vertical scroll
6769           - Implemented auto-'jump' when caret moves to close to a left or
6770             right border and there is text to be scrolled into view (currently
6771             there's the potential for a stack overflow, until a bug in
6772             scrollbar is fixed)
6773
6774 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
6775         
6776         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6777
6778 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
6779
6780         * Mime.cs:
6781         - added inodes.
6782         - return application/x-zerosize for files with size zero
6783           (if no extension pattern matches).
6784         - check matches collection for strings too.
6785         - return only the first mime type if the name value
6786           collection has more than one mime type.
6787
6788 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
6789         
6790         * PropertyGrid.cs: Cleaned up some TODOs
6791         * PropertyGridView.cs: Added support for UITypeEditors
6792
6793 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6794         
6795         * DataGrid.cs: clears cached value
6796
6797 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6798
6799         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6800         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6801         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6802         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6803         
6804 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
6805
6806         * ThemeWin32Classic.cs: fixes colour
6807
6808 2005-06-15  Peter Bartok  <pbartok@novell.com>
6809
6810         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6811         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6812         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6813         * Control.cs: Added some MWFCategory and MWFDescription attributes
6814         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6815
6816 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
6817
6818         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6819         usage
6820
6821 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
6822
6823         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6824         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6825         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6826         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6827         * DataGrid.cs: default datagrid settings for Default Styles, fixes
6828         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6829
6830 2005-06-13  Jackson Harper  <jackson@ximian.com>
6831
6832         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6833         isn't printed when the user enables dropping. (X11 does accept
6834         drops).
6835         
6836 2005-06-13  Jackson Harper  <jackson@ximian.com>
6837
6838         * TreeView.cs: Remove some TODOS.
6839
6840 2005-06-13  Jackson Harper  <jackson@ximian.com>
6841
6842         * Form.cs: Hook into the mdi framework.
6843         * MdiClient.cs: Use the base control collections add method so
6844         parents get setup correctly. Set the default back colour and dock
6845         style.
6846         * MdiChildContext.cs: New class, this bad actor handles an
6847         instance of an MDI window. Right now there is only basic
6848         support. You can drag, close, and resize windows. Minimize and
6849         Maximize are partially implemented.
6850
6851 2005-06-13  Jackson Harper  <jackson@ximian.com>
6852
6853         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6854         freaky when both vals are negative. NOTE: There are probably other
6855         places in XplatUIX11 that this needs to be done.
6856
6857 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
6858
6859         * DataGrid.cs: implement missing methods, move KeyboardNavigation
6860         * DataGridColumnStyle.cs: fixes signature
6861
6862 2005-06-12  Jackson Harper  <jackson@ximian.com>
6863
6864         * XplatUIX11.cs: Use sizing cursors similar to the ones on
6865         windows.
6866
6867 2005-06-11  Jackson Harper  <jackson@ximian.com>
6868
6869         * StatusBarPanel.cs: Signature cleanups. Implement
6870         BeginInit/EndInit.
6871
6872 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
6873
6874         * DataGridTextBoxColumn.cs: Honors aligment
6875         * GridColumnStylesCollection.cs: Contains is case unsensitive
6876         * GridTableStylesCollection.cs: several fixes
6877         * DataGridTableStyle.cs: default column creation
6878         * DataGridDrawingLogic.cs: fixes
6879         * CurrencyManager.cs: ListName property
6880         * DataGrid.cs: multiple styles support
6881         * DataGridColumnStyle.cs: fixes
6882         
6883
6884 2005-06-10  Peter Bartok  <pbartok@novell.com>
6885
6886         * Control.cs(Select): Moved SetFocus call to avoid potential
6887           loops if controls change the active control when getting focus
6888         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6889           the up/down buttons
6890
6891 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
6892
6893         * ImageListConverter.cs: Implemented
6894
6895 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6896
6897         * MonthCalendar.cs: Wired in NumericUpDown control for year
6898
6899 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6900
6901         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6902           DoubleClick events, since they are not meant to be fired.
6903
6904 2005-06-09  Peter Bartok  <pbartok@novell.com>
6905
6906         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6907           Jonathan's standalone controls into MWF, implemented missing
6908           events, attributes and methods; added xxxAccessible classes
6909         * AccessibleObject.cs: Made fields internal so other classes
6910           can change them if needed
6911
6912 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
6913
6914         * UpDownBase.cs: Complete implementation
6915         * NumericUpDown.cs: Complete implementation
6916         * DomainUpDown.cs: Complete implementation
6917
6918 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
6919
6920         * DataGridTextBoxColumn.cs: drawing fixes
6921         * DataGridCell.cs: fixes ToString method to match MSNet
6922         * DataGridTableStyle.cs: fixes
6923         * DataGridBoolColumn.cs: fixes, drawing
6924         * DataGridDrawingLogic.cs: fixes, new methods
6925         * DataGridTextBox.cs: Keyboard and fixes
6926         * DataGrid.cs:
6927                 - Keyboard navigation
6928                 - Scrolling fixes
6929                 - Row selection (single, multiple, deletion, etc)
6930                 - Lots of fixes
6931         
6932 2005-06-07  Jackson Harper  <jackson@ximian.com>
6933
6934         * ThemeWin32Classic.cs: Clear the background area when drawing
6935         buttons.
6936
6937 2005-06-06  Peter Bartok  <pbartok@novell.com>
6938
6939         * ImageListStreamer.cs: Fixed signature for GetData
6940         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6941         * ComboBox.cs:
6942           - Added missing ChildAccessibleObject class
6943           - Added missing OnXXXFocus overrides, switched to using those
6944             instead of the event handler
6945         * Control.cs:
6946           - Added Parent property for ControlAccessibleObject
6947           - Fixed signatures
6948           - Fixed attributes
6949           - Added ResetBindings()
6950         * ListBindingConverter.cs: Implemented some methods
6951         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6952         * ImageList.cs: Implemented basic handle scheme, removed TODOs
6953         * ContainerControl.cs: Fixed signature, now subscribing to the
6954           ControlRemoved event instead of overriding the handler, LAMESPEC
6955         * CurrencyManager.cs: Added missing attribute
6956         * MonthCalendar.cs: Added missing properties
6957
6958 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6959
6960         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6961         
6962 2005-06-06  Gaurav Vaish and Ankit Jain
6963
6964         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6965         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6966         
6967 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6968
6969         * Control.cs: fixes CreateParams Width / Height.
6970
6971 2005-06-05  Peter Bartok  <pbartok@novell.com>
6972
6973         * Win32DnD.cs: Removed compilation warnings
6974
6975 2005-06-05  Peter Bartok  <pbartok@novell.com>
6976
6977         * Control.cs (CreateParams): Since we don't know if one of the
6978           properties we use is overridden, lets make sure if we fail accessing
6979           we continue with a backup plan
6980
6981 2005-06-05  Peter Bartok  <pbartok@novell.com>
6982
6983         * Win32DnD.cs:
6984           - Removed debug output
6985           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
6986             struct
6987           - Plugged resource leak
6988         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
6989           MS size
6990
6991 2005-06-05  Peter Bartok  <pbartok@novell.com>
6992
6993         * XplatUIWin32.cs: Removed DnD code
6994         * Win32DnD.cs: Implemented drop source and drop target functionality
6995
6996 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6997
6998         * UpDownBase.cs: remove duplicate addition of event, enable some code
6999         that was commented out.
7000         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7001         Validate input when a key is pressed. It works fine now for every
7002         combination of Hexadecimal. Only missing some drawing love when sharing
7003         space with other controls.
7004
7005 2005-06-04  Peter Bartok  <pbartok@novell.com>
7006
7007         * Control.cs:
7008           - We need to pass a window for DragDrop, so enable callback events
7009           - Added DnD callback events when being a DragSource
7010         * XplatUI.cs (StartDrag): Added window handle argument
7011         * XplatUIDriver.cs (StartDrag): Added window handle argument
7012         * QueryContinueDragEventArgs: Made fields internally accessible so
7013           drivers can set them
7014         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7015           can set them
7016
7017 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7018
7019         * DataGridTextBoxColumn.cs: column text editing
7020         * DataGridTableStyle.cs: Respect columns styles created by the user
7021         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7022         * DataGridBoolColumn.cs: bool column editing
7023         * DataGrid.cs: fixes to scrolling, properties, etc
7024         * DataGridTextBox.cs: handle keyboard
7025         * DataGridColumnStyle.cs: fixes
7026
7027 2005-06-02  Jackson Harper  <jackson@ximian.com>
7028
7029         * ImageListStreamer.cs: Somewhat broken implementation of
7030         GetObjectData. The RLE needs some work to match MS properly.
7031
7032 2005-06-02  Jackson Harper  <jackson@ximian.com>
7033
7034         * X11Dnd.cs: Attempting to keep at least one file in MWF
7035         monostyled.
7036
7037 2005-06-02  Peter Bartok  <pbartok@novell.com>
7038
7039         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7040           that way
7041
7042 2005-06-02  Peter Bartok  <pbartok@novell.com>
7043
7044         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7045         * XplatUI.cs: Added DoDragDrop() method
7046         * XplatUIDriver.cs: Added DoDragDrop() method
7047
7048 2005-06-02  Jackson Harper  <jackson@ximian.com>
7049
7050         * Splitter.cs: Implement BorderStyle.
7051
7052 2005-06-02  Jackson Harper  <jackson@ximian.com>
7053
7054         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7055         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7056         X11 using XDND.
7057
7058 2005-06-02  Peter Bartok  <pbartok@novell.com>
7059
7060         * DataObject.cs:
7061           - Added Data setter
7062           - Fixed broken insertion code for SetData, now also
7063             overwrites any existing entry of the same format name
7064         * Hwnd.cs: Added list of pointers that automatically gets
7065           freed when the window is disposed
7066         * XplatUI.cs: Call driver initialization method when loading
7067           a driver
7068         * Control.cs:
7069           - OnDragLeave takes EventArgs, not DragEventArgs
7070           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7071             supported
7072           - Forces style update when drop state changes
7073         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7074           not perfect since we cannot (yet) call the IDataObject.GetData()
7075           method, we keep getting 0x80004005 error, dunno why)
7076
7077 2005-06-02  Peter Bartok  <pbartok@novell.com>
7078
7079         * DragEventArgs.cs: Make fields internal so we can cache the
7080           object and re-set the fields from XplatUI
7081
7082 2005-06-02  Jackson Harper  <jackson@ximian.com>
7083
7084         * Control.cs: Add some internal methods so the DnD subsystem can
7085         raise DnD events. Also call into the driver when AllowDrop is set.
7086         * XplatUI.cs:
7087         * XplatUIDriver.cs: New method for setting whether or not a window
7088         is allowed to accept drag and drop messages.
7089                 
7090 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7091         
7092         * ScrollBar.cs: Make sure that values sent in Scroll events
7093         are always between Maximum and Minimum.
7094
7095 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7096
7097         * Menu.cs: Call MenuChanged when menuitem visibility has been
7098         changed.
7099         * MenuItem.cs: Rebuild menu when item is (not) visible.
7100         * MainMenu.cs: MainMenu has special MenuChanged.
7101         * Theme.cs: Caption and FrameBorderSize are not fixed.
7102         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7103         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7104         * XplatUIX11.cs,
7105         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7106         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7107
7108 2005-05-30  Jackson Harper  <jackson@ximian.com>
7109
7110         * DataFormat.cs: We can't statically initialize this stuff because
7111         it calls into the xplatui and could create a loop. So we lazy init
7112         it.
7113
7114 2005-05-28  Jackson Harper  <jackson@ximian.com>
7115
7116         * Control.cs: Proper implementation of Product(Name/Version).
7117
7118 2005-05-27  Jackson Harper  <jackson@ximian.com>
7119
7120         * DataObject.cs: Dont crash if no data is found.
7121
7122 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7123         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7124                 as per status page, guessing it should be set to true
7125
7126 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7127
7128         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7129         * DataGridTableStyle.cs: set proper formatting text, def header text
7130         * ThemeWin32Classic.cs: new themable paramaters
7131         * DataGridBoolColumn.cs: paint check box, get data, fixes
7132         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7133         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7134         * DataGridColumnStyle.cs: fixes
7135         * Theme.cs: new themable paramaters
7136                 
7137 2005-05-26  Peter Bartok  <pbartok@novell.com>
7138
7139         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7140
7141 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7142         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7143
7144 2005-05-24  Peter Bartok  <pbartok@novell.com>
7145
7146         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7147           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7148           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7149           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7150           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7151           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7152           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7153           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7154           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7155           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7156           missing attributes, etc
7157         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7158
7159 2005-05-24  Peter Bartok  <pbartok@novell.com>
7160
7161         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7162           when user tries to get help
7163         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7164           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7165           to suppress warnings
7166         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7167           avoid unreachable code warning
7168
7169 2005-05-20  Peter Bartok  <pbartok@novell.com>
7170
7171         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7172
7173 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7174
7175         * DataGridTextBoxColumn.cs: Basic painting methods
7176         * DataGridTableStyle.cs: Set table style in the column
7177         * ThemeWin32Classic.cs: Use Theme for colors
7178         * DataGridDrawingLogic.cs: Implement more drawing
7179         * DataGrid.cs: drawing, theming, enhacements, fixes
7180         * DataGridColumnStyle.cs: fixes, drawing
7181         * Theme.cs: theming for Datagrid
7182
7183 2005-05-20  Peter Bartok  <pbartok@novell.com>
7184
7185         * Cursor.cs: Implemented GetObjectData() method
7186
7187 2005-05-20  Peter Bartok  <pbartok@novell.com>
7188
7189         * Cursors.cs: Added setting of cursor name
7190         * Cursor.cs:
7191           - Implemented constructors
7192           - Implemented Draw and DrawStretched
7193           - Implemented Current property
7194           - Implemented == and != operators
7195           - Implemented Dispose()
7196           - Implemented ToString
7197           - Added missing attributes
7198         * XplatUIX11.cs:
7199           - Added missing reset for OverrideCursor when DoEvents is called
7200           - Fixed creation of cursor, logic was wrong
7201         * XplatUIWin32.cs:
7202           - Added missing reset for OverrideCursor when DoEvents is called
7203           - Fixed creation of cursor, bit arrays were swapped
7204         * Clipboard.cs: Removed obsolete MonoTODO attribute
7205
7206 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7207
7208         * ComboBox.cs: fixes OnSelectedItemChanged
7209         * ControlBindingsCollection.cs: fixes item range check
7210
7211 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7212
7213         * UpDownBase.cs:
7214                 - Calc preferred height properly
7215                 - Implement missing properties
7216                 
7217         * NumericUpDown.cs: Implement missing events
7218
7219 2005-05-19  Jackson Harper  <jackson@ximian.com>
7220
7221         * TabControl.cs: New method that resizes the tab pages before
7222         redrawing them. This as needed as the control is double buffered
7223         and sizing will not be recalculated unless ResizeTabPages is
7224         called.
7225         * TabPage.cs: Set base.Text instead of Text in the constructor so
7226         that UpdateOwner does not get called. Use the new Redraw method of
7227         TabControl instead of Refresh so the sizing is recalculated.
7228         * ThemeWin32Classic.cs: Draw the text for button tabs.
7229
7230 2005-05-19  Jackson Harper  <jackson@ximian.com>
7231
7232         * Control.cs: Paint control background images. Fix typo where
7233         PaintControlBackground was not getting called correctly.
7234
7235 2005-05-19  Peter Bartok  <pbartok@novell.com>
7236
7237         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7238           I can investigate, apparently I broke FileDialog
7239
7240 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7241
7242         * AxHost.cs: Some simple properties.
7243         * Control.cs: window must be accessible after ctor.
7244         * Form.cs: Added TransparencyKey property.
7245         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7246         * XplatUIWin32.cs: SetBorderStyle implemented.
7247
7248 2005-05-18  Peter Bartok  <pbartok@novell.com>
7249
7250         * DataObject.cs: Entries are not global but particular to the
7251           DataObject, now it behaves that way
7252         * XplatUIWin32.cs: Implemented Clipboard methods
7253         * Clipboard.cs: Implemented
7254         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7255         * XplatUIOSX.cs: Updated to final clipboard prototypes
7256         * XplatUIX11.cs: Implemented Clipboard methods
7257         * XplatUIDriver.cs: Updated to final clipboard prototypes
7258         * XplatUIStructs.cs:
7259           - Added BITMAPINFOHEADER struct
7260           - Added ClipboardFormats enum
7261         * X11Structs.cs:
7262           - Added ClipboardStruct
7263           - Added Atom enum items for clipboard types
7264           - Fixed atom types for Selection event structures
7265         * DataFormats.cs:
7266           - Added internal properties and methods for drivers to enumerate
7267             all known formats
7268           - Switched initialization method to allow drivers to assign their
7269             own IDs even for the MS predefined clipboard IDs
7270         * XplatUI.cs: Updated to final clipboard interface
7271
7272 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7273         * PropertyGridView.cs: Fixed compiler warnings.
7274
7275 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7276         * PropertyGrid.cs: Added some event calls
7277         * PropertyGridView.cs: Change drawing code to use double buffering
7278         * PropertyGridTextBox.cs: Changed Text property name
7279         * GridItem.cs: Added Bounds property.
7280         * GridEntry.cs: Added Bounds property.
7281
7282 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7283
7284         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7285         since GetType() may not return the correct type if the object is
7286         a remoting proxy.
7287
7288 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7289
7290         * TreeNodeCollection.cs: fixes get/set item ranges
7291         
7292 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7293
7294         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7295                 
7296 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7297
7298         * ComboBox.cs: Fix item range comparation
7299         * ListView.cs: Fix item range comparation
7300
7301 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7302
7303         * FontDialog.cs:
7304           - Clear example panel when OnPaint is called
7305           - Better solution for displaying the example panel text
7306           - Select default indexes in the ListBoxes
7307
7308 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7309
7310         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7311
7312 2005-05-11  Peter Bartok  <pbartok@novell.com>
7313
7314         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7315         * SelectionRangeConverter.cs: Implemented
7316         * PropertyGrid.cs: Fixed attribute value
7317         * Control.cs:
7318           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7319           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7320         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7321           that's common to all drivers. First methods to go there are
7322           Sebastien Pouliot's CAS Stack Propagation helper methods
7323         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7324           Sebastien Pouliot for CAS Stack Propagation
7325
7326 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7327
7328         * OSXStructs.cs:
7329           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7330
7331 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7332
7333         * DataGridTextBoxColumn.cs: fixed some members
7334         * GridColumnStylesCollection.cs: indexed column is case insensitive
7335         * DataGridTableStyle.cs: fixes
7336         * ThemeWin32Classic.cs: add new theme parameter
7337         * Theme.cs: add new theme parameter
7338         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7339         * DataGrid.cs: fixes, new internal properties, etc.
7340         * DataGridColumnStyle.cs: allows to set grid value
7341         *
7342
7343 2005-05-10  Peter Bartok  <pbartok@novell.com>
7344
7345         * AccessibleObject.cs:
7346           - Removed MonoTODO attribute on help, method is correct
7347           - Fixed Bounds property
7348         * AxHost.cs: Moved MonoTODO
7349         * ButtonBase.cs: Now setting AccessibleObject properties
7350         * RadioButton.cs: Setting proper AccessibleObject role
7351         * CheckBox.cs: Setting proper AccessibleObject role
7352         * ControlBindingsCollection.cs: Added properties, methods and attributes
7353         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7354           userdefined DataFormats.Format items as well
7355         * ListControl.cs: Removed data_member from the public eye
7356         * OpenFileDialog.cs:
7357           - Made class sealed
7358           - Added missing attributes
7359         * SaveFileDialog.cs: Added missing attributes
7360         * ImageListStreamer.cs: Fixed code that caused warnings
7361         * LinkLabel.cs: Removed unreachable code
7362         * TreeView.cs: Fixed code that caused warnings
7363         * PropertyGridView.cs: Fixed code that caused warnings
7364         * GridColumnStylesCollection.cs: Added missing attributes
7365         * GridTableStylesCollection: Added missing attribute
7366         * PropertyManager: Added .ctor
7367         * SecurityIDType: Added
7368         * DataObject.cs: Implemented class
7369         * LinkArea.cs: Added missing attribute
7370
7371 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7372
7373         * RadioButton.cs: call base method to allow to fire OnClick event
7374         * UpDownBase.cs: OnMouseUp call base method
7375         * CheckedListBox.cs: call base method before returning
7376         * TrackBar.cs: call base method before returning
7377         
7378
7379 2005-05-10  Peter Bartok  <pbartok@novell.com>
7380
7381         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7382           for messages
7383
7384 2005-05-10  Peter Bartok  <pbartok@novell.com>
7385
7386         * DataFormats.cs: Implemented
7387         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7388           XplatUIX11.cs: Added Clipboard APIs
7389         * XplatUIWin32.cs: Implemented Clipboard APIs
7390         * FolderBrowserDialog.cs: Added missing event, attributes
7391
7392 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7393
7394         * CheckBox.cs: call base method to allow to fire OnClick event
7395
7396 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7397
7398         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7399
7400 2005-05-06  Peter Bartok  <pbartok@novell.com>
7401
7402         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7403         * Screen.cs: Implemented
7404         * HelpNavigator.cs: Added
7405         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7406           property
7407         * HelpProvider.cs: Implemented all we can do until we have a CHM
7408           help library (which means that "What's This" does work now)
7409
7410 2005-05-06  Jackson Harper  <jackson@ximian.com>
7411
7412         * XplatUIX11.cs: Fix waking up the main loop.
7413                 
7414 2005-05-05  Peter Bartok  <pbartok@novell.com>
7415
7416         * XplatUI.cs: Updated revision
7417         * Form.cs: Removed enless loop
7418         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7419         * Label.cs (OnPaint): Added call to base.OnPaint()
7420         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7421         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7422         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7423         * AxHost.cs: Added
7424         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7425         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7426           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7427           reuse of ToolTipWindow by other controls
7428         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7429         * XplatUIX11.cs: Now clipping drawing area (experimental)
7430         * PictureBox.cs: Moved base.OnPaint() call to end of method
7431         * Theme.cs: Fixed ToolTip abstracts to match new format
7432         * ErrorProvider.cs: Implemented
7433
7434 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7435
7436         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7437         * LinkLabel.cs:
7438                 - Adds cursors
7439                 - Handles focus
7440                 - Implements LinkBehavior
7441                 - Fixes many issues
7442
7443 2005-05-03  Jackson Harper  <jackson@ximian.com>
7444
7445         * ListView.cs: Calculate the scrollbar positioning on resize and
7446         paint, so they get put in the correct place.
7447
7448 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7449
7450         * ColorDialogs.cs: The small color panels are now handled by
7451           SmallColorControl. This fixes drawing of the focus rectangle
7452           and adds a 3D border.
7453
7454 2005-05-03  Peter Bartok  <pbartok@novell.com>
7455
7456         * Control.cs: Modified version of Jonathan Chamber's fix for
7457           double-buffering
7458
7459 2005-05-03  Jackson Harper  <jackson@ximian.com>
7460
7461         * ListView.cs: Remove redraw variable. Control now handles whether
7462         or not a redraw needs to be done, and will only raise the paint
7463         event if redrawing is needed.
7464
7465 2005-05-03  Jackson Harper  <jackson@ximian.com>
7466
7467         * Splitter.cs: No decorations for the splitter form. Cache the
7468         hatch brush.
7469
7470 2005-05-03  Jackson Harper  <jackson@ximian.com>
7471
7472         * TreeView.cs: Use dashed lines to connect nodes. Use the
7473         ControlPaint method for drawing the focus rect instead of doing
7474         that in treeview.
7475
7476 2005-05-02  Peter Bartok  <pbartok@novell.com>
7477
7478         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7479
7480 2005-04-29  Jackson Harper  <jackson@ximian.com>
7481
7482         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7483         entire image buffer. Just clear the clipping rectangle.
7484
7485 2005-04-29  Jackson Harper  <jackson@ximian.com>
7486
7487         * ThemeWin32Classic.cs: Don't draw list view items that are
7488         outside the clipping rectangle.
7489
7490 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7491
7492         * ListBox.cs: added horizontal item scroll
7493
7494 2005-04-29  Jackson Harper  <jackson@ximian.com>
7495
7496         * ThemeWin32Classic.cs: Remove some old debug code that was
7497         causing flicker with the new double buffering code.
7498
7499 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7500
7501         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7502         behave like combobox and comboboxlist (still not sure if this is
7503         correct though).
7504
7505 2005-04-28  Jackson Harper  <jackson@ximian.com>
7506
7507         * ThemeWin32Classic.cs: Don't fill the middle of progress
7508         bars. This fills areas outside of the clip bounds that don't need
7509         to be filled.
7510
7511 2005-04-28  Jackson Harper  <jackson@ximian.com>
7512
7513         * Control.cs: Don't expose functionality to touch the image buffers.
7514         * ProgressBar.cs:
7515         * ListView.cs: We do not need to (and no longer can) manipulate
7516         the image buffers directly. All of this is handled by Control.
7517
7518 2005-04-28  Peter Bartok  <pbartok@novell.com>
7519
7520         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7521           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7522           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7523
7524 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7525
7526         * Combobox:
7527                 - Adjust control's height for non-simple comboboxes (bug fix)
7528                 - Remove dead code
7529         * MenuAPI.cs: remove unused var
7530         * ScrollBar.cs: remove unsed var
7531                  
7532         * ListBox.cs: unselect items when clearing
7533
7534 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7535
7536         * ListControl.cs: honors OnPositionChanged and default Selected Item
7537         * ListBox.cs: unselect items when clearing
7538
7539 2005-04-27  Jackson Harper  <jackson@ximian.com>
7540
7541         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7542         if a "correct" keyboard is not found. This will make us not crash,
7543         but might give some users bad keyboard layouts...seems to be the
7544         same thing rewind does.
7545
7546 2005-04-27  Jackson Harper  <jackson@ximian.com>
7547
7548         * BindingManagerBase.cs: Attach the current/position changed
7549         handlers to their respective events.
7550
7551 2005-04-27  Jackson Harper  <jackson@ximian.com>
7552
7553         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7554         not just a blit.
7555         * ThemeWin32Classic.cs: Don't fill the background for picture
7556         boxes. This could overright user drawing.
7557         * ComboBox.cs: Just fill the clipping rect not the entire client
7558         rect when drawing the background. This prevents pieces of the
7559         image buffer from getting overwritten and is theoretically faster.
7560
7561 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7562
7563         * ComboBox.cs: Databinding support fixes, fire missing events
7564         * ListControl.cs: implement missing methods and properties, fixes
7565         * ThemeWin32Classic.cs: Databiding support on Drawing
7566         * CheckedListBox.cs: Databinding support fixes, fire missing events
7567         * ListBox.cs: Databinding support fixes, fire missing events
7568         
7569 2005-04-25  Peter Bartok  <pbartok@novell.com>
7570
7571         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7572
7573 2005-04-25  Jackson Harper  <jackson@ximian.com>
7574
7575         * TreeView.cs: Use the horizontal scrollbars height not width when
7576         determining how much of the client area is available.
7577
7578 2005-04-25  Jackson Harper  <jackson@ximian.com>
7579
7580         * Control.cs: Double buffering is handled differently now. As per
7581         the spec, the extra buffer is created in the WM_PAINT message and
7582         passed down to the control's drawing code.
7583         * GroupBox.cs:
7584         * Label.cs:
7585         * CheckBox.cs:
7586         * ProgressBar.cs:
7587         * RadioButton.cs:
7588         * ColorDialog.cs:
7589         * ComboBox.cs:
7590         * PropertyGridView.cs:
7591         * UpDownBase.cs:
7592         * MessageBox.cs:
7593         * MenuAPI.cs:
7594         * ListView.cs:
7595         * ButtonBase.cs:
7596         * SizeGrip.cs:
7597         * ScrollBar.cs:
7598         * ListBox.cs:
7599         * TrackBar.cs:
7600         * ToolBar.cs:
7601         * PictureBox.cs:
7602         * DateTimePicker.cs:
7603         * StatusBar.cs:
7604         * TreeView.cs: Update to new double buffering system.
7605         * MonthCalendar.cs: Uncomment block, as Capture is now
7606         working. Update to new double buffering
7607         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7608         * PaintEventArgs.cs: New internal method allows us to set the
7609         graphics object. This is used for double buffering.
7610         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7611         rectangle. The internal paint_area var has been removed from
7612         StatusBar. The clipping rect should be used instead.
7613         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7614         * TabPage.cs: The RefreshTabs method was removed, so just call the
7615         tab controls Refresh method now.
7616         * TabControl.cs: Update to new double buffering. Make sure the
7617         handle is created before sizing the tab pages, otherwise we will
7618         get stuck in a loop.
7619
7620 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7621
7622         * LinkLabel.cs: Fix typo, bug #74719; patch
7623           from Borja Sanchez Zamorano
7624
7625 2005-04-22  Jackson Harper  <jackson@ximian.com>
7626
7627         * TreeNode.cs: Implement Handle stuff.
7628         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7629
7630 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7631
7632         * DataGridTextBoxColumn.cs: call base constructors, fixes
7633         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7634         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7635         * DataGridTableStyle.cs: implements create default column styles
7636         * DataGridBoolColumn.cs: which types can handle
7637         * DataGrid.cs: missing methods, fixes, new functionality
7638         * DataGridColumnStyle.cs: fixes
7639
7640 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7641         * FolderBrowserDialog.cs:
7642         - Use a thread to fill the TreeView
7643         - Adjusted some sizes
7644
7645 2005-04-19  Peter Bartok  <pbartok@novell.com>
7646
7647         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7648           property. Fixes #74360.
7649
7650 2005-04-19  Jackson Harper  <jackson@ximian.com>
7651
7652         * XEventQueue.cs: Lock when getting the lockqueue size.
7653         * PictureBox.cs: Call base OnPaint
7654         
7655 2005-04-19  Peter Bartok  <pbartok@novell.com>
7656
7657         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7658           messages were no longer being processed (this broke BeginInvoke)
7659
7660           
7661 2005-04-18  Jackson Harper  <jackson@ximian.com>
7662
7663         * TreeView.cs: buglet that caused node images to get drawn
7664         regardless of whether or not they were in the clipping rectangle.
7665
7666 2005-04-18  Jackson Harper  <jackson@ximian.com>
7667
7668         * CurrencyManager.cs: There are four rules for GetItemProperties:
7669         - If the type is an array use the element type of the array
7670         - If the type is a typed list, use the type
7671         - If the list contains an Item property that is not an object, use
7672         that property
7673         - use the first element of the list if there are any elements in
7674         the list.
7675         
7676 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7677
7678         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7679         click. This handles offsets for scrolling properly and reduces
7680         memory. Also fixed GetNode to not offset now that TopNode works
7681         properly.
7682         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7683         
7684 2005-04-17  Jackson Harper  <jackson@ximian.com>
7685
7686         * CursorConverter.cs: Initial implementation.
7687
7688 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7689
7690         * ListControl.cs: work towards complex data binding support on ListControl
7691         * CurrencyManager.cs: work towards complex data binding support on ListControl
7692         * ListBox.cs: work towards complex data binding support on ListControl
7693
7694
7695 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7696
7697         * GridTableStylesCollection.cs: fixes name and constructor
7698         * DataGridTableStyle.cs: fixes
7699         * DataGridBoolColumn.cs: fixes names and constructors
7700         * DataGrid.cs: define methods and properties. Some init implementations
7701         * DataGridCell.cs: define methods and properties. Some init implementations
7702         * GridTablesFactory.cs: Define methods and properties
7703
7704 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7705
7706         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7707         graphics port changes.  We still want the coordinates in global screen
7708         coordinates.
7709
7710 2005-04-14  Jackson Harper  <jackson@ximian.com>
7711
7712         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7713         check plus minus or checkbox clicks unless those features are enabled.
7714
7715 2005-04-14  Jackson Harper  <jackson@ximian.com>
7716
7717         * TreeView.cs: Add methods for setting the top and bottom visible
7718         nodes. TreeNode::EnsureVisible uses these methods.
7719         * TreeNode.cs: Implement EnsureVisible
7720
7721 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7722
7723         * Form.cs: Pospone menu assignation if the window has not been created yet
7724         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7725         size and position
7726
7727 2005-04-12  Jackson Harper  <jackson@ximian.com>
7728
7729         * TreeView.cs: Set the TopNode properly when scrolling
7730         occurs. This has the added benifit of reducing the amount of
7731         walking that needs to be done when drawing. Also removed an old
7732         misleading TODO.
7733         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7734         
7735 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7736
7737         * Timer.cs: fixes interval setting when the timer is already enabled
7738         
7739 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7740
7741         * FolderBrowserDialog.cs: First approach
7742
7743 2005-04-09  Peter Bartok  <pbartok@novell.com>
7744
7745         * FolderBrowserDialog: Added
7746
7747 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7748
7749         * LinkLabel.cs: move drawing code into the theme
7750         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7751         * Theme.cs: define DrawLinkLabel method
7752
7753 2005-04-05  Jackson Harper  <jackson@ximian.com>
7754
7755         * BindingContext.cs: Use weak references so these bad actors don't
7756         stay alive longer then they need to.
7757
7758 2005-04-05  Jackson Harper  <jackson@ximian.com>
7759
7760         * ListControl.cs: Basic implementation of complex databinding.
7761         * ComboBox.cs:
7762         * ListBox.cs: Add calls to ListControl databinding methods.
7763
7764 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
7765
7766         * FileDialog.cs:
7767           - Don't change PopupButtonState to Normal when the
7768             PopupButton gets pressed several times.
7769           - Renamed ButtonPanel to PopupButtonPanel
7770
7771 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
7772
7773         * ColorDialog.cs: Use cached objects instead of creating them
7774         * LinkLabel.cs: Use cached objects instead of creating them
7775         * Splitter.cs: Use cached objects instead of creating them
7776         * FontDialog.cs: Use cached objects instead of creating them
7777         * PropertyGridView.cs: Use cached objects instead of creating them
7778         * MessageBox.cs: Use cached objects instead of creating them
7779         * FileDialog.cs: Use cached objects instead of creating them
7780         * ThemeWin32Classic.cs: Use cached objects instead of creating them
7781         * TreeView.cs: Use cached objects instead of creating them
7782         
7783 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
7784
7785         * Control.cs: use Equals to compare the font since no == op
7786         * ScrollBar.cs: use Equals to compare the font since no == op
7787
7788 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
7789
7790         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7791
7792 2005-04-01  Jackson Harper  <jackson@ximian.com>
7793
7794         * Binding.cs: Implement IsBinding.
7795         * BindingManagerBase.cs:
7796         * PropertyManager.cs:
7797         * CurrencyManager.cs: Add IsSuspended property.
7798
7799 2005-04-01  Jackson Harper  <jackson@ximian.com>
7800
7801         * Binding.cs: Had some IsAssignableFrom calls backwards.
7802
7803 2005-04-01  Jackson Harper  <jackson@ximian.com>
7804
7805         * Binding.cs: Handle null data members when pulling data.
7806         * PropertyManager.cs: Handle the data member being a property that
7807         does not exist.
7808
7809 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7810
7811         * DataGridTextBoxColumn.cs: fixes signature
7812         * DataGrid.cs: calls right constructor
7813
7814 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7815
7816         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7817         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7818         * GridTableStylesCollection.cs: implements GridTableStylesCollection
7819         * DataGridTableStyle.cs: implements DataGridTableStyle
7820         * DataGridBoolColumn.cs: implements DataGridBoolColumn
7821         * DataGridTextBox.cs: implements DataGridTextBox
7822         * DataGridColumnStyle.cs: implements DataGridColumnStyle
7823
7824 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
7825
7826         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7827
7828 2005-03-29  Peter Bartok  <pbartok@novell.com>
7829
7830         * Application.cs:
7831           - Properly implemented CompanyName property
7832           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7833             returns a path that includes CompanyName, ProductName and
7834             Version (fixes bug #70330)
7835
7836 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
7837
7838         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7839           fixes bug #72588.
7840
7841 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7842
7843         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7844         
7845           - Added ReadOnly CheckBox
7846           - Further refactoring: moved some code from Open-/SaveFileDialog
7847             to FileDialog
7848
7849 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7850
7851         * OpenFileDialog.cs: Fixed CheckFileExists
7852         * FileDialog.cs:
7853           Moved FileView and DirComboBox outside FileDialog class.
7854           They can now be used outside FileDialog
7855
7856 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7857
7858         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7859         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7860
7861 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7862
7863         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7864           - Added missing CreatePrompt property in SaveDialog
7865           - Overall SaveDialog handling should be better now
7866           - Added non standard ShowHiddenFiles property
7867           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7868           - Added InitialDirectory and RestoreDirectory support
7869
7870 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
7871
7872         * FileDialog.cs: Made dirComboBox usable
7873
7874 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
7875
7876         * FileDialog.cs: Added Filter support (case sensitiv)
7877
7878 2005-03-24  Jackson Harper  <jackson@ximian.com>
7879
7880         * TabControl.cs: Need a couple more pixels for the lines.
7881
7882 2005-03-23  Jackson Harper  <jackson@ximian.com>
7883
7884         * TabControl.cs: Give the tab page focus when it is selected.
7885
7886 2005-03-23  Jackson Harper  <jackson@ximian.com>
7887
7888         * TabControl.cs: Account for the drawing of tabs borders when
7889         invalidating. If the slider was clicked dont do click detection on
7890         the tabs.
7891
7892 2005-03-23  Jackson Harper  <jackson@ximian.com>
7893
7894         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7895
7896 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
7897
7898         * CategoryGridEntry.cs: Added
7899         * GridItem.cs: Added helper properties
7900         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7901         * GridEntry.cs: Updated code for collection
7902         * PropertyGrid.cs: Cleaned up some formatting
7903         * PropertyGridView.cs: Added drop down functionality for enums.
7904         * GridItemCollection.cs: Added enumerator logic
7905         * PropertyGridEntry.cs: Added
7906
7907 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7908
7909         * FileDialog.cs:
7910           - Removed unnecessary commented code
7911           - Fixed handling for entering the filename manually in the combobox
7912
7913 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7914
7915         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7916
7917 2005-03-18  Peter Bartok  <pbartok@novell.com>
7918
7919         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7920           them being touching the border
7921
7922 2005-03-18  Peter Bartok  <pbartok@novell.com>
7923
7924         * TextControl.cs: Quick hack to center text better
7925
7926 2005-03-18  Peter Bartok  <pbartok@novell.com>
7927
7928         * ControlPaint.cs:
7929           - Don't throw NotImplemented exceptions, just print a notice once
7930             instead (requested by Miguel). This makes running existing SWF
7931             apps a bit easier
7932         * Control.cs:
7933           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7934           - Added context menu trigger on right click
7935         * Panel.cs: Trigger invalidate on resize
7936         * StatusBar.cs:
7937           - Removed old double-buffer drawing
7938           - Added ResizeRedraw style to force proper update of statusbar
7939         * ListView.cs:
7940           - Removed debug output
7941         * ThemeWin32Classic.cs:
7942           - Fixed drawing of status bar, now draws Text property if there
7943             are no defined panels
7944
7945 2005-03-18  Jackson Harper  <jackson@ximian.com>
7946
7947         * ImageList.cs: When the image stream is set pull all the images
7948         from it.
7949         * ImageListStreamer.cs: Implement reading image list streams.
7950
7951 2005-03-18  Peter Bartok  <pbartok@novell.com>
7952
7953         * ThemeWin32Classic.cs (DrawPictureBox):
7954           - Fixed calculations for centered drawing
7955           - Fixed drawing for normal mode, not scaling the image on normal
7956
7957 2005-03-18  Peter Bartok  <pbartok@novell.com>
7958
7959         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7960           textbox
7961         * FileDialog.cs:
7962           - Made Open/Save button the accept button for FileDialog
7963           - Tied the cancel button to the IButtonControl cancel button
7964           - Save/Open now properly builds the pathname
7965           - Now handles user-entered text
7966           - Preventing crash on right-click if no item is selected
7967           - Fixed Text property, now uses contents of textbox
7968           - Fixed SelectedText property, now just returns the text part that
7969             is selected in the text box
7970
7971 2005-03-18  Jackson Harper  <jackson@ximian.com>
7972
7973         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7974         rect, make sure to de-adjust the interior rect after drawing the
7975         tab text.
7976
7977 2005-03-18  Peter Bartok  <pbartok@novell.com>
7978
7979         * MenuAPI.cs: Remove menu *before* executing selected action to
7980           prevent the menu from 'hanging around'
7981           
7982 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
7983
7984         * XplatUIOSX.cs: Implemented WorkingArea property
7985
7986 2005-03-17  Peter Bartok  <pbartok@novell.com>
7987
7988         * XplatUIX11.cs: Fixed menu coord calculations
7989         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
7990           for calculating offsets
7991
7992 2005-03-17  Peter Bartok  <pbartok@novell.com>
7993
7994         * Hwnd.cs: Do not consider menu presence for default client
7995           rectangle location/size
7996         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7997           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
7998           translation functions
7999         * FileDialog.cs: Fixed (what I presume is a) typo
8000
8001 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8002
8003         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8004           X access (avoids X-Async errors)
8005
8006 2005-03-16  Jackson Harper  <jackson@ximian.com>
8007
8008         * TabControl.cs: Raise the SelectedIndexChanged event.
8009
8010 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8011
8012         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8013           - Removed vertical ToolBar and replaced it with a custom panel
8014             (desktop and home button already work)
8015           - Added Help button (some controls get resized or relocated then)
8016           - Draw correct text depending on Open or Save.
8017           - Fixed some typos...
8018
8019 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8020
8021         * ScrollBar.cs:
8022           - Only change Maximum and Minimum when need it (bug fix)
8023
8024 2005-03-15  Peter Bartok  <pbartok@novell.com>
8025
8026         * Form.cs: Use Handle for icon, to trigger creation if
8027           the window does not yet exist
8028         * Control.cs:
8029           - CanSelect: Slight performance improvement
8030           - Focus(): Preventing possible recursion
8031           - Invalidate(): Removed ControlStyle based clear flag setting
8032           - WM_PAINT: fixed logic for calling OnPaintBackground
8033           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8034             EraseWindowBackground if the control doesn't paint background
8035         * XplatUIWin32.cs:
8036           - Moved EraseWindowBackground() method to internal methods
8037           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8038             is sent via SendMessage on BeginPaint call on Win32
8039         * XplatUIX11.cs:
8040           - Added EraseWindowBackground() method
8041           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8042             PaintEventStart, which more closely matches Win32 behaviour
8043           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8044           - Fixed SetFocus() to properly deal with client and whole windows
8045         * Hwnd.cs: Added ErasePending property
8046         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8047         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8048
8049 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8050
8051         * XplatUIOSX.cs:
8052           - Fix hard loop when timers exist.
8053           - Fix bugs with middle and right click for 3 button mice.
8054
8055 2005-03-11  Peter Bartok  <pbartok@novell.com>
8056
8057         * XplatUIX11.cs:
8058           - get_WorkingArea: Need to call X directly, GetWindowPos only
8059             returns cached data now
8060           - Added sanity check to GetWindowPos hwnd usage
8061
8062 2005-03-11  Jackson Harper  <jackson@ximian.com>
8063
8064         * BindingManagerBase.cs: This method isn't used anymore as
8065         PullData now updates the data in the control.
8066
8067 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8068
8069         * Form.cs: fixes menu drawing on X11
8070         * MenuAPI.cs:  fixes menu drawing on X11
8071
8072 2005-03-11  Peter Bartok  <pbartok@novell.com>
8073
8074         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8075           from Jonathan Gilbert; should fix bug #73606
8076         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8077           in Screen coordinates. Thanks, Jordi.
8078         * Form.cs: Added missing attribute
8079
8080 2005-03-11  Peter Bartok  <pbartok@novell.com>
8081
8082         * Form.cs:
8083           - Rudimentary Mdi support
8084           - Removed outdated FormParent code
8085           - Implemented lots of missing properties and methods, still missing
8086             transparency support
8087           - Added missing attributes
8088           - Implemented support for MaximumBounds
8089           - Added firing of various events
8090         * XplatUI.cs: Added SetIcon() method
8091         * XplatUIDriver.cs: Added SetIcon() abstract
8092         * XplatUIOSX.cs: Stubbed out SetIcon() method
8093         * XplatUIX11.cs:
8094           - Implemented SetIcon() support
8095           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8096           - Switched to unix line endings
8097         * XplatUIWin32.cs:
8098           - Made POINT internal so for can access it as part of MINMAX
8099           - Implemented SetIcon() support
8100           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8101             native Mdi support again, might have to go managed)
8102         * Control.cs: Now fires the StyleChanged event
8103         * MdiClient.cs: Added; still mostly empty
8104
8105 2005-03-10  Peter Bartok  <pbartok@novell.com>
8106
8107         * SaveFileDialog.cs: Added emtpy file
8108
8109 2005-03-08  Peter Bartok  <pbartok@novell.com>
8110
8111         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8112           in turn triggers OnCreateContro) when creating a handle for the
8113           first time.
8114         * TextControl.cs: Fixed endless loop in certain cases when
8115           replacing the current selection
8116
8117 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8118
8119         * ScrollBar.cs:
8120           - Honors NewValue changes in Scroll events allowing apps to change it
8121           - Adds First and Last Scroll events
8122           - Fixes Thumb events
8123
8124 2005-03-07  Peter Bartok  <pbartok@novell.com>
8125
8126         * Hwnd.cs: Added DefaultClientRectangle property
8127         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8128           more detailed debug information
8129         * XplatUIX11.cs:
8130           - Fixed size-change feedback loop, where we would pull an old size
8131             off the queue and mistakenly change our window's size to an
8132             earlier value
8133           - Now compressing ConfigureNotify events, to reduce looping and
8134             redraw issues
8135         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8136           is called
8137
8138 2005-03-07  Jackson Harper  <jackson@ximian.com>
8139
8140         * Binding.cs: Push data pushes from data -> property. Check if the
8141         property is readonly when attempting to set it.
8142
8143 2005-03-07  Jackson Harper  <jackson@ximian.com>
8144
8145         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8146         instead of IsSubclassOf. Pulling data now sets the value on the
8147         control.
8148         * PropertyManager.cs:
8149         * CurrencyManager.cs: Just need to pull data when updating now,
8150         because PullData will set the value on the control.
8151
8152 2005-03-04  Jackson Harper  <jackson@ximian.com>
8153
8154         * Binding.cs: Implement data type parsing and converting on pulled
8155         data. TODO: Are there more ways the data can be converted?
8156
8157 2005-03-04  Jackson Harper  <jackson@ximian.com>
8158
8159         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8160         controls Validating method so we can repull the data when the
8161         control loses focus.
8162
8163 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8164
8165         * ColumnHeader.cs:
8166           - Fixes null string format
8167           
8168         * ListView.cs:
8169           - Adds enum type checks
8170           - Fixes redrawing and recalc need after changing some properties
8171           - Fixes on focus_item set after the event
8172           - Fixes adding columns after the control has been created
8173           
8174         * ThemeWin32Classic.cs:
8175           - Fixes CheckBox focus rectangle
8176           - Fixes ColumnHeader drawing
8177
8178
8179 2005-03-03  Jackson Harper  <jackson@ximian.com>
8180
8181         * Binding.cs: Bind to <Property>Changed events so we can detect
8182         when properties are changed and update the data.
8183
8184 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8185
8186         * ImageList.cs:
8187           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8188           - Fixes ImageList constructor with ImageList container
8189           - Fixes image scaling (wrong parameters at DrawImage)
8190
8191 2005-02-02  Jackson Harper  <jackson@ximian.com>
8192
8193         * Binding.cs: Make property searches case-insensitive. Eliminate
8194         some duplicated code.
8195
8196 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8197
8198         * ComboBox.cs:
8199                 - Handle focus event
8200                 - Fix scrollbar events
8201                 - Discard highlighted item if remove it
8202                 - Fixes SelectedItem with strings
8203
8204 2005-03-01  Peter Bartok  <pbartok@novell.com>
8205
8206         * Control.cs:
8207           - Fixed Visible property, now follows (once again) parent chain
8208             to return false if any control in the chain is visible=false
8209           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8210           - Fixed several places where is_visible instead of Visible was used
8211           - Implemented FIXME related to focus selection when setting focused
8212             control to be invisible
8213
8214         * XplatUIWin32.cs: Now using proper method to find out if window is
8215           visible. Thanks to Jordi for pointing it out
8216
8217 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8218
8219         * ComboBox.cs: show/hide scrollbar instead of creating it
8220
8221 2005-02-27  Jackson Harper  <jackson@ximian.com>
8222
8223         * CurrencyManager.cs: Add PositionChanged stuff.
8224
8225 2005-02-27  Peter Bartok  <pbartok@novell.com>
8226
8227         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8228         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8229         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8230         * XplatUIX11.cs:
8231           - Implemented GetMenuDC()
8232           - Implemented GetMenuOrigin()
8233           - Implemented ReleaseMenuDC()
8234           - Implemented generation of WM_NCPAINT message
8235           - Implemented generation and handling of WM_NCCALCSIZE message
8236         * Form.cs: Added debug helper message for Jordi's menu work
8237         * Hwnd.cs:
8238           - Modified ClientRect property; added setter, fixed getter to handle
8239             setting of ClientRect
8240           - Added MenuOrigin property
8241
8242 2005-02-26  Peter Bartok  <pbartok@novell.com>
8243
8244         * XplatUIX11.cs:
8245           - Destroys the caret if a window that's being destroyed contains it
8246           - Ignores expose events coming from the X11 queue for windows that
8247             already are destroyed
8248           - Now uses the proper variable for handling DestroyNotify, before we
8249             marked the wrong window as destroyed
8250           - Improved/added some debug output
8251
8252 2005-02-26  Peter Bartok  <pbartok@novell.com>
8253
8254         * X11Keyboard.cs: Fixes to work on 64bit systems
8255
8256 2005-02-26  Peter Bartok  <pbartok@novell.com>
8257
8258         * Control.cs:
8259           - Now calling OnHandleDestroyed from DestroyHandle()
8260             instead of Dispose()
8261           - Removed bogus call to controls.Remove() from DestroyHandle()
8262
8263 2005-02-26  Peter Bartok  <pbartok@novell.com>
8264
8265         * Control.cs: Properly destroy child windows when our handle is
8266           destroyed
8267
8268 2005-02-25  Peter Bartok  <pbartok@novell.com>
8269
8270         * XplatUI.cs:
8271           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8272           - Alphabetized Static Methods and Subclasses
8273
8274         * XplatUIX11.cs:
8275           - Added XException class to allow custom handling of X11 exceptions
8276           - Created custom X11 error handler, tied into XException class
8277           - Added support for MONO_XEXCEPTIONS env var to allow the user
8278             to either throw an exception on X errors or continue running
8279             after displaying the error
8280           - Added handling of DestroyNotify message
8281           - Added handler for CreateNotify message (still disabled)
8282           - Improved (tried to at least) Where method to provide file and lineno
8283         * X11Structs.cs:
8284           - Added XErrorHandler delegate
8285           - Added XRequest enumeration (to suppor translation of errors)
8286
8287 2005-02-25  Jackson Harper  <jackson@ximian.com>
8288
8289         * PropertyManager.cs: Implement editing features
8290         * CurrencyManager.cs:
8291         * Binding.cs: First attempt at UpdateIsBinding
8292         * BindingManagerBase.cs: Call UpdateIsBinding before
8293         pushing/pulling data.
8294
8295 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8296
8297         * MenuAPI.cs: Respect disabled items
8298         * ThemeWin32Classic.cs
8299                 - Caches ImageAttributes creation for DrawImageDisabled
8300                 - Fixes vertical menu line drawing
8301                 - Draws disabled arrows in disable menu items
8302
8303 2005-02-24  Peter Bartok  <pbartok@novell.com>
8304
8305         * Hwnd.cs:
8306           - Added UserData property to allow associating arbitrary objects
8307             with the handle
8308           - Fixed leak; now removing Hwnd references from static windows array
8309         * XplatUIWin32.cs:
8310           - Fixed Graphics leak in PaintEventEnd
8311           - Removed usage of HandleData, switched over to Hwnd class
8312         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8313
8314 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8315
8316         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8317         * ScrollBar.cs: Fixes bug
8318         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8319          keyboard navigation enhancements
8320
8321 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8322
8323         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8324         * GroupBox.cs: Add control styles
8325         * Label.cs: Add control styles
8326         * UpDownBase.cs: Add control styles
8327         * ListBox.cs: Add control styles
8328         * XplatUIWin32.cs: Fixes wrong parameter order
8329
8330
8331 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8332
8333         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8334
8335 2005-02-23  Jackson Harper  <jackson@ximian.com>
8336
8337         * PropertyManager.cs: Implement property binding. This doesn't
8338         seem to work yet though as (I think) there are some bugs in
8339         System.ComponentModel.PropertyDescriptor.
8340         * BindingContext.cs: Use new PropertyManager constructor.
8341
8342 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8343
8344         * ProgressBar.cs: use clip region in ProgressBar
8345         * ThemeWin32Classic.cs: use clip region in ProgressBar
8346
8347 2004-02-22  Jackson Harper  <jackson@ximian.com>
8348
8349         * BindingsCollection.cs: Remove some debug code.
8350
8351 2005-02-22  Jackson Harper  <jackson@ximian.com>
8352
8353         * BindingContext.cs:
8354         * ControlBindingsCollection.cs:
8355         * CurrencyManager.cs:
8356         * Binding.cs:
8357         * BindingManagerBase.cs: Initial implementation
8358         * BindingsCollection.cs: Add an internal contains method that the
8359         BindingManagerBase uses to ensure bindings aren't added twice to
8360         the collection.
8361         * PropertyManager.cs: Stubbed out.
8362         * Control.cs:
8363         * ContainerControl.cs: Hook up databinding
8364         
8365 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8366
8367         * XplatUIOSX.cs:
8368           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8369           Fixed Invalidate/Update chain.
8370           Fixed tons of other minor bugs (this is almost a complete rewrite).
8371
8372 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8373
8374         * ComboBox.cs: do subcontrol creation when the control is created
8375
8376 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8377
8378         * Label.cs: fixes image drawing (image and imagelist)
8379         * ThemeWin32Classic.cs: cache brushes
8380         
8381 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8382
8383         * Form.cs: Move menu drawing code to Theme class
8384         * ComboBox.cs: Move ComboBox drawing code to Theme class
8385         * MenuItem.cs: Move menu drawing code to Theme class
8386         * MenuAPI.cs: Move menu drawing code to Theme class
8387         * ThemeWin32Classic.cs: New methods
8388         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8389         * ListBox.cs: Move Listbox drawing code to Theme class
8390         * Theme.cs: New methods
8391
8392 2005-02-20  Peter Bartok  <pbartok@novell.com>
8393
8394         * Control.cs:
8395           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8396             only process mnemonics on those)
8397           - Fixed event sequence for key handling; first calling
8398             ProcessKeyEventArgs now
8399         * TextBoxBase.cs:
8400           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8401             for processing non-character keys
8402           - Fixed WM_CHAR to generate proper event sequence before processing
8403         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8404           generation
8405
8406 2005-02-19  Peter Bartok  <pbartok@novell.com>
8407
8408         * UserControl.cs: Added TextChanged event; added attributes
8409         * SizeGrip.cs: Implemented resizing and optional display of grip
8410         * Form.cs: Fixed attribute
8411         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8412           Changed meaning of ScrollWindow bool argument; instead of the
8413           clear attribute (which will be true usually anyway), it gives the
8414           option of moving child controls as well.
8415         * XplatUIX11.cs:
8416           - Changed to match new ScrollWindow argument
8417           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8418             now handles the implicit parent window a WM puts around us
8419         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8420           to work)
8421         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8422         * TreeView.cs: Adjusted to new ScrollWindow arguments
8423
8424 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8425
8426         * Form.cs: Menu integration with non-client area
8427         * MenuItem.cs: Menu integration with non-client area
8428         * MenuAPI.cs: Menu integration with non-client area
8429
8430 2005-02-18  Peter Bartok  <pbartok@novell.com>
8431
8432         * MethodInvoker.cs: Added
8433         * MdiLayout.cs: Added
8434         * SendKeys.cs: Started implementation
8435         * ErrorIconAlignment.cs: Added
8436
8437 2005-02-18  Peter Bartok  <pbartok@novell.com>
8438
8439         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8440         * Form.cs: Added handling for Menu-related Non-client messages
8441
8442 2005-02-17  Peter Bartok  <pbartok@novell.com>
8443
8444         * UpDownBase.cs: Fixed typo, compilation errors
8445         * DomainUpDown.cs: Fixed attribute value
8446
8447 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8448
8449         * UpDownBase.cs: Attach entry events.
8450         Propagate events.
8451         Add ForeColor property, Focused, InterceptArrowKeys (interception
8452         does not work yet).
8453
8454 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8455
8456         * Form.cs:
8457                 - Redraw non client are on Setmenu
8458                 - Calc proper menu starting point
8459
8460 2005-02-17  Peter Bartok  <pbartok@novell.com>
8461
8462         * Application.cs: Fixed message_filter check
8463
8464 2005-02-17  Peter Bartok  <pbartok@novell.com>
8465
8466         * Application.cs: Now calls registered message filters
8467         * DockStyle.cs: Fixed attribute
8468         * Form.cs: Fixed attribute
8469         * Menu.cs: Fixed attribute
8470         * ToolTip.cs: Fixed attribute
8471         * TreeNode.cs: Added missing attributes and arranged in regions
8472         * PropertyGrid.cs: Fixed signatures
8473         * TreeNodeCollection.cs: Added attributes
8474         * Splitter.cs: Added missing attributes; arranged into regions
8475         * TabPage.cs: Added missing attributes; arranged into regions
8476         * TextBoxBase.cs: Added missing attributes
8477         * TextBox.cs: Added missing attributes
8478         * ArrangeDirection.cs: Added missing attributes
8479         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8480         * ToolBarButton.cs: Fixed attributes
8481         * AnchorStyles.cs: Fixed attribute
8482         * TrackBar.cs: Fixed attributes
8483         * TabControl.cs: Added missing attributes and arranged into regions
8484         * ToolBar.cs: Fixed attribute
8485         * StatusBar.cs: Fixed signature, organized into regions and added
8486           attributes
8487         * StatusBarPanel.cs: Fixed attributes
8488         * ContentsResizedEventArgs.cs: Implemented
8489         * ContentsResizedEventHandler.cs: Implemented
8490         * DateBoldEventArgs.cs: Implemented
8491         * DateBoldEventHandler.cs: Implemented
8492         * UpDownEventArgs.cs: Implemented
8493         * UpDownEventHandler.cs: Implemented
8494         
8495 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8496
8497         * Form.cs: first Menu NC refactoring
8498         * MenuAPI.cs: first Menu NC refactoring
8499         
8500 2005-02-16  Peter Bartok  <pbartok@novell.com>
8501
8502         * ImeMode.cs: Added missing attributes
8503         * Menu.cs: Fixed attribute
8504         * GroupBox.cs: Fixed attribute
8505         * Label.cs: Fixed attribute
8506         * ColorDialog.cs (RunDialog): Removed TODO attribute
8507         * ComboBox.cs: Fixed attributes
8508         * ListControl.cs: Added missing attributes
8509         * PropertyGrid.cs: Fixed attributes
8510         * Control.cs: Fixed attributes
8511         * ListViewItem.cs: Added TypeConverter attribute
8512         * NotifyIcon.cs: Fixed attributes
8513         * ListView.cs: Fixed attributes
8514         * ButtonBase.cs: Fixed attribute
8515         * ImageList.cs: Added missing attributes
8516         * ContainerControl.cs: Fixed signature
8517         * CheckedListBox.cs: Fixed attribute; added missing attributes
8518         * Panel.cs: Fixed attributes
8519         * PropertyTabChangedEventArgs.cs: Added missing attribute
8520         * PropertyValueChangedEventArgs.cs: Added missing attribute
8521         * Binding.cs: Fixed attribute
8522         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8523         * ListBox.cs: Fixed attribute; added missing attributes;
8524         * ScrollableControl.cs: Added missing attributes
8525         * PictureBox.cs: Added missing attributes; implemented missing property
8526         * DateTimePicker.cs: Added missing attributes
8527         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8528         * MonthCalendar.cs: Fixed attributes
8529         * StatusBarPanel.cs: Added missing attributes
8530         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8531
8532 2005-02-16  Peter Bartok  <pbartok@novell.com>
8533
8534         * TextBoxBase.cs: The previous method to enforce height yet remember
8535           the requested high was less than ideal, this is an attempt to do
8536           it better.
8537         * Control.cs: Added comment about possible problem
8538         * Copyright: Updated format
8539         * GridItemType.cs: Fixed swapped values
8540
8541 2005-02-15  Jackson Harper  <jackson@ximian.com>
8542
8543         * BaseCollection.cs: Use property so we never access an
8544         uninitialized list. Also initialize the list in the property.
8545
8546 2005-02-15  Peter Bartok  <pbartok@novell.com>
8547
8548         * GroupBox.cs (ProcessMnemonic): Implemented
8549         * Label.cs (ProcessMnemonic): Implemented
8550         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8551           hotkeys
8552
8553 2005-02-15  Peter Bartok  <pbartok@novell.com>
8554
8555         * RadioButton.cs (ProcessMnemonic): Implemented
8556         * CheckBox.cs (ProcessMnemonic): Implemented
8557         * Control.cs:
8558           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8559             handling
8560           - Added internal method to allow calling ProcessMnemonic from other
8561             controls
8562         * ContainerControl.cs:
8563           - Started support for handling validation chain handling
8564           - Implemented ProcessMnemonic support
8565           - Added Select() call to Active, to make sure the active control
8566             receives focus
8567         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8568           FormParent rewrite)
8569         * ThemeWin32Classic.cs:
8570           - DrawCheckBox(): Fixed stringformat to show hotkeys
8571           - DrawRadioButton(): Fixed stringformat to show hotkeys
8572         * CommonDialog.cs: Removed WndProc override, not needed
8573
8574 2005-02-14  Peter Bartok  <pbartok@novell.com>
8575
8576         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8577           missed those in the rewrite
8578
8579 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8580
8581         * NumericUpDown.cs (Increment, ToString): Add.
8582         (DecimalPlaces): implement.
8583         
8584         Add attributes.
8585         
8586         * UpDownBase.cs: Add the designer attributes.
8587
8588 2005-02-13  Peter Bartok  <pbartok@novell.com>
8589
8590         * Panel.cs: Removed border_style, now in Control
8591         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8592           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8593
8594 2005-02-13  Peter Bartok  <pbartok@novell.com>
8595
8596         * MouseButtons.cs: Added missing attributes
8597         * XplatUIStructs.cs: Added enumeration for title styles
8598         * LeftRightAlignment.cs: Added missing attributes
8599         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8600           it compatible with Graphics.FromHwnd()
8601         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8602         * Keys.cs: Added missing attributes
8603         * SelectionRange.cs: Added missing attributes
8604         * SelectionRangeConverter.cs: Added
8605         * XplatUI.cs:
8606           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8607             ReleaseMenuDC methods
8608           - Renamed ReleaseWindow to UngrabWindow
8609           - Added proper startup notice to allow version identification
8610         * Form.cs:
8611           - Added missing attributes
8612           - Removed FormParent concept
8613         * Label.cs: Removed border_style field, now in Control
8614         * RadioButton.cs: Now properly selects RadioButton when focus is
8615           received
8616         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8617         * Control.cs:
8618           - Added missing attributes
8619           - Added borderstyle handling
8620           - Removed FormParent concept support
8621           - Fixed calls to XplatUI to match changed APIs
8622           - Fixed bug that would case us to use disposed Graphics objects
8623           - Removed unneeded internal methods
8624           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8625           - SelectNextControl(): Fixed to properly check common parents
8626         * TextBoxBase.cs: Removed border_style field (now in Control)
8627         * MessageBox.cs:
8628           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8629             fixed calculations for form size
8630           - Added support for localized strings and icons
8631           - Improved form size calculations, added border
8632         * ListView.cs: Removed border_style field (now in Control)
8633         * X11Structs.cs: Moved several structs from X11 driver here
8634         * X11Keyboard.cs: Changed debug message
8635         * Application.cs: Removed FormParent concept support
8636         * CommonDialog.cs:
8637           - Resetting end_modal flag
8638           - Removed FormParent concept support
8639         * NativeWindow.cs: Removed FormParent concept support
8640         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8641           Client area and Non-Client whole window to allow support for WM_NC
8642           messages
8643         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8644           prevent using it until it supports Hwnd as per Geoff Norton's request
8645         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8646         * PictureBox.cs: Removed border_style field, now in Control
8647         * XplatUIWin32.cs: Added new driver methods
8648
8649 2005-02-12  Peter Bartok  <pbartok@novell.com>
8650
8651         * OpacityConverter.cs: Implemented
8652         * Hwnd.cs: Internal class to support drivers that need to emulate
8653           client area/non-client area window behaviour
8654
8655 2005-02-11  Peter Bartok  <pbartok@novell.com>
8656
8657         * KeysConverter.cs: Implemented
8658
8659 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8660
8661         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8662         * LinkLabel: Added missing attributes
8663         * MainMenu.cs: fixes ToString
8664         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8665         * ListBox.cs: fixes event position
8666         * TrackBar.cs: adds missing attributes and events
8667         
8668 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8669
8670         * MenuItem.cs: Use SystemInformation and bug fixes
8671         * MenuAPI.cs: Use SystemInformation and bug fixes
8672
8673 2005-02-09  Jackson Harper  <jackson@ximian.com>
8674
8675         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8676         their keystate otherwise things like VK_MENU get stuck "on".
8677
8678 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8679
8680         * ListBox.cs: Fixes AddRange bug
8681         
8682 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8683
8684         * ProgressBar.cs
8685                 - Add missing attributes
8686                 - Add missing method
8687                 
8688         * CheckedListBox.cs: Added missing attributes
8689                 - Add missing attributes
8690                 - Remove extra method
8691         
8692         * ComboBox.cs: Added missing attributes
8693         * VScrollBar.cs: Added missing attributes
8694         * ScrollBar.cs:  Added missing attributes
8695         * ListBox.cs: Fixes signature, add missing consts
8696         * LinkArea.cs:   Added missing attributes
8697         
8698
8699 2005-02-08  Peter Bartok  <pbartok@novell.com>
8700
8701         * Menu.cs: Added missing attributes
8702         * MainMenu.cs: Added missing attributes
8703         * GroupBox.cs: Added missing attributes
8704         * Label.cs: Added missing attributes
8705         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8706         * ColorDialog.cs:
8707           - Added Instance and Options properties
8708           - Added missing attributes
8709         * Cursor.cs: Made Serializable
8710         * NotifyIcon: Added missing attributes
8711         * MenuItem.cs: Added missing attributes
8712         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8713         * Panel.cs: Added Missing attributes
8714         * MonthCalendar.cs: Fixed CreateParams
8715
8716 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8717         
8718         * LinkLabel.cs:
8719                 - Fixes signature
8720                 - Fixes issues with links
8721                 - Adds the class attributes
8722
8723 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8724         
8725         * ComboBox.cs:
8726                 - Fixes button when no items available in dropdown
8727                 - Fixes repainting problems
8728                 - Adds the class attributes
8729                 
8730 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8731
8732         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8733         the current theme.  Cache these on startup.
8734
8735 2005-02-07  Jackson Harper  <jackson@ximian.com>
8736
8737         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8738         the scrollbar buttons when they are depressed.
8739
8740 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8741
8742         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8743         Get the display size from the main displayid.  We currently dont
8744         support multiple display configurations.
8745
8746 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8747
8748         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8749
8750 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8751
8752         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8753
8754 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8755
8756         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8757
8758 2005-02-04  Jackson Harper  <jackson@ximian.com>
8759
8760         * ThemeWin32Classic.cs: Respect the clipping rect when
8761         drawing. Only fill the intersection of clips and rects so there
8762         isn't a lot of large fills.
8763         * ScrollBar.cs: Pass the correct clipping rect to the theme
8764         engine. Remove some debug code.
8765
8766 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
8767         
8768         * DateTimePicker.cs:
8769                 - Fixed crash on DateTime.Parse, use Constructor instead
8770
8771 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8772         
8773         * MenuItem.cs:
8774         * MenuAPI.cs:
8775                 - Owner draw support (MeasureItem and DrawItem)
8776
8777 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8778         
8779         *  Menu.cs:
8780                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8781                 - Fixes MenuItems.Add range
8782         * MenuItem.cs:
8783                 - MergeMenu and Clone and CloneMenu functions
8784
8785 2005-02-03  Jackson Harper  <jackson@ximian.com>
8786
8787         * ScrollBar.cs: Make abstract
8788         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8789         is abstract.
8790
8791 2005-02-03  Jackson Harper  <jackson@ximian.com>
8792
8793         * ScrollBar.cs: First part of my scrollbar fixups. This removes
8794         all the unneeded refreshes and uses invalidates with properly
8795         computed rects.
8796
8797 2005-02-03  Peter Bartok  <pbartok@novell.com>
8798
8799         * ComponentModel.cs: Added
8800         * IDataGridEditingService.cs: Added
8801         * Timer.cs: Added missing attributes
8802         * ToolTip.cs: Added missing attributes
8803
8804 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8805
8806         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8807
8808 2005-02-03  Peter Bartok  <pbartok@novell.com>
8809
8810         * ListBox.cs: Added missing attributes
8811
8812 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
8813         
8814         * ListBox.cs:
8815                 - Fixes font height after font change
8816                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8817                 
8818 2005-02-02  Peter Bartok  <pbartok@novell.com>
8819
8820         * HandleData.cs: Introduced static methods to allow class
8821           to be more self-contained and track it's own HandleData objects
8822         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8823           HandleData to use new static methods
8824
8825 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
8826
8827         * Combobox.cs:
8828                 - Fixes default size and PreferredHeight
8829                 - Missing events
8830                 - ObjectCollection.Insert implementation
8831                 
8832         * ListControl.cs
8833                 - Fixes signature
8834         * ListBox.cs:
8835                 - Several fixes
8836                 - ObjectCollection.Insert implementation
8837                 - No selection after clean
8838                 - Small fixes
8839
8840 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8841
8842         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8843
8844 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
8845
8846         * Combobox.cs:
8847                 - Caches ItemHeight calculation for OwnerDrawVariable
8848                 - Handles dropdown properly
8849                 - Fixes several minor bugs
8850
8851 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8852
8853         * ListBox.cs:
8854                 - Fixes 71946 and 71950
8855                 - Fixes changing Multicolumn on the fly
8856                 - Fixes keyboard navigation on Multicolumn listboxes
8857
8858 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8859         
8860         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8861         crash reporter log.
8862
8863 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8864
8865         * XplatUIOSX.cs: Allow applications to actually exit.
8866
8867 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8868
8869         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
8870         their parent at creation time rather than lazily later.  Fixes a major
8871         regression we were experiencing.
8872
8873 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8874
8875         * ThemeWin32Classic.cs: more date time picker painting fixes
8876         * DateTimePicker.cs: more monthcalendar drop down fixes
8877         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8878
8879 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8880
8881         * ScrollBar.cs:
8882                 - When moving the thumb going outside the control should stop the moving
8883                 - Adds the firing of missing events
8884                 - Fixes no button show if Size is not specified
8885                 - End / Home keys for keyboard navigation
8886
8887 2005-01-30  Peter Bartok  <pbartok@novell.com>
8888
8889         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8890           sanity check to prevent theoretical loop
8891         * XplatUIWin32.cs (SetVisible): Removed debug output
8892         * XplatUIX11.cs (SystrayChange): Added sanity check
8893         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8894         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8895           behaviour, valid until the X11 client window rewrite is done
8896         * TextBox.cs (ctor): Setting proper default foreground and background
8897           colors
8898
8899 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
8900
8901         * Theme: Added DrawDateTimePicker to interface
8902         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8903         * DateTimePicker.cs: Created (still needs keys and painting code)
8904         * DateTimePickerFormat.cs: added
8905         * MonthCalendar.cs: fixed CreateParams for popup window mode
8906           
8907 2005-01-29  Peter Bartok  <pbartok@novell.com>
8908
8909         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8910           this should also the calculations for ligher/darker
8911         * Theme.cs: Fixed defaults for ScrollBar widths/heights
8912
8913 2005-01-29  Peter Bartok  <pbartok@novell.com>
8914
8915         * ArrangeDirection.cs: Added
8916         * ArrangeStartingPositon.cs: Added
8917         * SystemInformation.cs: Implemented
8918         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8919           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8920           used by SystemInformation class
8921         * X11Strucs.cs: Added XSizeHints structure
8922         * MenuAPI.cs:
8923           - Fixed CreateParams to make sure the menu window is always visible
8924           - TrackPopupMenu: Added check to make sure we don't draw the
8925             menu offscreen
8926
8927 2005-01-29  Peter Bartok  <pbartok@novell.com>
8928
8929         * HandleData.cs: Added method for altering invalid area
8930         * TextBoxBase.cs: Implemented TextLength
8931
8932 2005-01-28  Peter Bartok  <pbartok@novell.com>
8933
8934         * XplatUIX11.cs: Improvement over last patch, not sending
8935           the WM_PAINT directly anymore, instead we scroll any pending
8936           exposed areas and let the system pick out the WM_PAINT later
8937
8938 2005-01-28  Peter Bartok  <pbartok@novell.com>
8939
8940         * SWF.csproj: Deleted, no longer used. Instead,
8941           Managed.Windows.Forms/SWF.csproj should be used
8942         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8943           directly, to avoid a potential race condition with the next
8944           scroll
8945
8946 2005-01-28  Peter Bartok  <pbartok@novell.com>
8947
8948         * XplatUI.cs: Made class internal
8949
8950 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
8951
8952         * CheckedListBox.cs:
8953                 - Draw focus
8954                 - Fixed Drawing
8955                 - Missing methods and events
8956
8957 2005-01-27  Peter Bartok  <pbartok@novell.com>
8958
8959         * Application.cs (Run): Don't use form if we don't have one
8960
8961 2005-01-27  Peter Bartok  <pbartok@novell.com>
8962
8963         * TextBoxBase.cs (get_Lines): Fixed index off by one error
8964
8965 2005-01-27  Peter Bartok  <pbartok@novell.com>
8966
8967         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8968         * GridItem.cs: Added; Patch by Jonathan S. Chambers
8969         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8970         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8971         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8972         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8973         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8974         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8975         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8976         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8977         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8978         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8979
8980 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8981
8982         * Combobox.cs:
8983                 - Draw focus on Simple Combobox
8984                 - Fixes drawing issues
8985                 - fixes 71834
8986
8987 2005-01-27  Peter Bartok  <pbartok@novell.com>
8988
8989         * Form.cs:
8990           - Place window in default location, instead of hardcoded 0/0
8991           - Send initial LocationChanged event
8992         * Control.cs:
8993           - UpdateBounds after creation to find out where the WM placed us
8994           - Make sure that if the ParentForm changes location the Form
8995             is notified
8996         * XplatUIX11.cs: XGetGeometry will not return the coords relative
8997             to the root, but to whatever the WM placed around us.
8998             Translate to root coordinates before returning toplevel
8999             coordinates
9000         * XplatUIWin32.cs: Removed debug output
9001         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9002           flag to GetWindowPos, to allow translation of coordinates on X11
9003
9004 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9005
9006         * ListBox.cs: connect LostFocus Event
9007
9008 2005-01-27  Peter Bartok  <pbartok@novell.com>
9009
9010         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9011           XplatUIX11.cs: Extended the Systray API
9012         * Form.cs: Removed debug output
9013         * Application.cs: Fixed focus assignment, always need to call
9014           XplatUI.Activate() since Form.Activate() has rules that may
9015           prevent activation
9016         * NotifyIcon.cs: Should be complete now
9017         * ToolTip.cs: Worked around possible timer bug
9018
9019 2005-01-27  Jackson Harper  <jackson@ximian.com>
9020
9021         * TabControl.cs:
9022         - Only invalidate the effected tabs when the
9023         selected index changes. This reduces drawing and gets rid of some
9024         flicker.
9025         - Only refresh if the tabs need to be shifted, otherwise only
9026         invalidate the slider button.
9027         - On windows the tabs are not filled to right if the slider is
9028         visible.
9029         
9030 2005-01-27  Jackson Harper  <jackson@ximian.com>
9031
9032         * TabControl.cs: Only refresh on mouseup if we are showing the
9033         slider. Also only invalidate the button whose state has changed.
9034
9035 2005-01-26  Peter Bartok  <pbartok@novell.com>
9036
9037         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9038         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9039           and SystrayRemove() methods
9040         * XplatUIOSX.cs: Stubbed Systray methods
9041         * XplatUIX11.cs:
9042           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9043             methods
9044           - Fixed broken XChangeProperty calls (marshalling messed up things)
9045         * X11Structs.cs: Added enums and structs required for Size hinting
9046         * NotifyIcon.cs: Added & implemented
9047
9048 2005-01-26  Jackson Harper  <jackson@ximian.com>
9049
9050         * TabControl.cs: Space vertically layed out tabs properly.
9051
9052 2005-01-26  Peter Bartok  <pbartok@novell.com>
9053
9054         * Form.cs (CreateClientParams): Always set the location to 0,0
9055           since we're a child window.
9056
9057         * Control.cs (SetVisibleCore): Always explicitly setting the location
9058           of a toplevel window, apparently X11 doesn't like to move windows
9059           while they're not mapped.
9060
9061 2005-01-26  Jackson Harper  <jackson@ximian.com>
9062
9063         * TabControl.cs: Implement FillToRight size mode with vertically
9064         rendered tabs.
9065
9066 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9067
9068         * ControlPaint.cs, ThemeWin32Classic.cs
9069                 - Fixes DrawFocusRectangle
9070
9071 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9072
9073         * MenuAPI.cs:
9074                 - MenuBar tracking only starts when item is first clicked
9075                 - Fixes menu hidding for multiple subitems
9076                 - Unselect item in MenuBar when item Executed
9077                 - Fixes bug 71495
9078
9079 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9080
9081         * ListControl.cs:
9082                 - IsInputKey for ListBox
9083         * ListBox.cs:
9084                 - Focus item
9085                 - Shift and Control item selection
9086                 - Implement SelectionMode.MultiExtended
9087                 - Fixes RightToLeft
9088         * ComboBox.cs:
9089                 - IsInputKey implemented
9090                 - Do not generate OnTextChangedEdit on internal txt changes
9091                 
9092 2005-01-23  Peter Bartok  <pbartok@novell.com>
9093
9094         * AccessibleObject.cs: Partially implemented Select()
9095         * MonthCalendar.cs: Added missing attributes and events
9096         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9097           form can properly override CreateParams.
9098         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9099           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9100           Control performs Invalidate & Update
9101         * NativeWindow (CreateHandle): Added special handling for Form
9102           and Form.FormParent classes to allow overriding of From.CreateParams
9103         * Control.cs:
9104           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9105             name 'owner'
9106           - ControlNativeWindow: Added Owner property
9107           - Removed usage of Refresh() on property changes, changed into
9108             Invalidate(), we need to wait until the queue is processed for
9109             updates, direct calls might cause problems if not all vars for
9110             Paint are initialized
9111           - Added call to UpdateStyles() when creating the window, to set any
9112             styles that CreateWindow might have ignored.
9113           - Added support for Form CreateParent overrides to UpdateStyles()
9114         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9115           CreateParams are now properly overridable
9116         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9117           CreateParams are now properly overridable
9118
9119 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9120
9121         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9122         OnTextBoxChanged.
9123
9124         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9125         recursive invocation that I have not figured out yet.
9126
9127         Reset the timer when not using (it was accumulating).
9128
9129
9130         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9131         user has made changes that require validation.
9132
9133         Reset changing to avoid loops.
9134
9135 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9136
9137         * NumericUpDown.cs: Display value at startup.
9138
9139         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9140         ValidateEditText.
9141
9142         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9143         filled in.  Added some basic parsing of text.
9144
9145         Still missing the OnXXX method overrides, and figuring out the
9146         events that must be emitted.
9147
9148         * UpDownBase.cs: Handle UserEdit on the Text property.
9149         
9150 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9151
9152         * ComboBox.cs:
9153           - Fixes IntegralHeight
9154           - ToString method
9155
9156 2005-01-21  Jackson Harper  <jackson@ximian.com>
9157
9158         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9159         is set so that the page visibility is updated and the tabs are
9160         sized correctly.
9161
9162 2005-01-21  Jackson Harper  <jackson@ximian.com>
9163
9164         * TabControl.cs: Use cliping rectangle for blitting. Give the
9165         theme the clipping rect so we can do clipping while
9166         drawing. Remove some debug code.
9167
9168 2005-01-21  Jackson Harper  <jackson@ximian.com>
9169
9170         * TabPage.cs: Add a new method so tab pages can force the tab
9171         control to recalculate the tab page sizes.
9172         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9173         sizes.
9174
9175 2005-01-20  Jackson Harper  <jackson@ximian.com>
9176
9177         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9178
9179 2005-01-20  Jackson Harper  <jackson@ximian.com>
9180
9181         * TreeView.cs: Set the bounds for nodes properly. They were
9182         getting screwed up when checkboxes were not enabled, but images
9183         were.
9184
9185 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9186
9187         * ListBox.cs:
9188                 - Owner draw support
9189                 - Fixes
9190                 
9191 2005-01-20  Jackson Harper  <jackson@ximian.com>
9192
9193         * XplatUIStructs.cs: More misc keys
9194         * X11Keyboard.cs: Ignore some control keys.
9195
9196 2005-01-20  Jackson Harper  <jackson@ximian.com>
9197
9198         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9199         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9200
9201 2005-01-19  Peter Bartok  <pbartok@novell.com>
9202
9203         * Control.cs: Un-selecting the control when it is loosing focus
9204
9205 2005-01-19  Jackson Harper  <jackson@ximian.com>
9206
9207         * TreeView.cs: Hook up to the text controls leave event so we can
9208         end editing when the users clicks outside the text box.
9209         
9210 2005-01-19  Jackson Harper  <jackson@ximian.com>
9211
9212         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9213         get set in the conversion array.
9214
9215 2005-01-19  Peter Bartok  <pbartok@novell.com>
9216
9217         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9218           focus is properly set
9219         * Button.cs:
9220           - Added missing attributes
9221           - removed styles, those are already set in the base class
9222         * ButtonBase.cs:
9223           - Added missing attributes
9224           - Added clip window styles
9225         * CheckBox.cs: Added missing attributes
9226         * CommonDialog.cs:
9227           - FormParentWindow.CreateParams: Added required clip styles
9228         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9229           also filters modifier keys
9230         * MessageBox.cs:
9231           - Added assignment of Accept and Cancel button to enable Enter
9232             and Esc keys in MessageBox dialogs
9233           - FormParentWindow.CreateParams: Added required clip styles
9234         * RadioButton.cs: Added missing attributes
9235         * TextControl.cs: No longer draws selection if control does not
9236           have focus
9237         * TextBoxBase.cs:
9238           - Now draws simple rectangle around test area to make it obvious
9239             there's a control. This is a hack until we properly support borders
9240           - A few simple fixes to support selections better, now erases selected
9241             text when typing, and resets selection when using movement keys
9242
9243 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9244
9245         * UpDownBase.cs: Added some new properties.
9246
9247         * DomainUpDown.cs: Implement a lot to get my test working.
9248
9249 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9250
9251         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9252
9253 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9254
9255         * OSXStructs (WindowAttributes): Fixed csc complaints
9256
9257 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9258
9259         * XplayUIOSX.cs:
9260           OSXStructs.cs: Initial refactor to move enums and consts into
9261           OSXStructs and use them in the driver for greater readability.
9262
9263 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9264
9265         * XplatUIOSX.cs: Initial support for Standard Cursors.
9266         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9267
9268 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9269
9270         * ComboBox.cs: ability to change style when the ctrl is already
9271         created, missing methods and events, bug fixes, signature fixes
9272
9273 2005-01-19  Peter Bartok  <pbartok@novell.com>
9274
9275         * Cursors.cs (ctor): Added ctor to fix signature
9276
9277 2005-01-18  Peter Bartok  <pbartok@novell.com>
9278
9279         * Button.cs: Implemented DoubleClick event
9280         * ButtonBase.cs:
9281           - Fixed keyboard handling to behave like MS, where the press of
9282             Spacebar is equivalent to a mousedown, and the key release is
9283             equivalent to mouseup. Now a spacebar push will give the same
9284             visual feedback like a mouse click.
9285           - Added missing attributes
9286           - Added ImeModeChanged event
9287           - Added support for generating DoubleClick event for derived classes
9288         * CheckBox.cs:
9289           - Implemented DoubleClick event
9290           - Added missing attributes
9291         * CommonDialog.cs: Added missing attribute
9292         * ContextMenu.cs: Added missing attributes
9293         * RadioButton.cs:
9294           - AutoChecked buttons do not allow to be unselected when clicked
9295             (otherwise we might end up with no selected buttons in a group)
9296           - Added missing attributes
9297           - Implemented DoubleClickEvent
9298         * ThreadExceptionDialog.cs: Enabled TextBox code
9299
9300 2005-01-18  Peter Bartok  <pbartok@novell.com>
9301
9302         * Form.cs: Removed debug output
9303         * Button.cs: Added support for DoubleClick method
9304
9305 2005-01-18  Peter Bartok  <pbartok@novell.com>
9306
9307         * Form.cs:
9308           - Added method to parent window that allows triggering size
9309             calculations when a menu is added/removed
9310           - set_Menu: Cleaned up mess from early days of Form and Control,
9311             now properly triggers a recalc when a menu is added/removed
9312           - Added case to select form itself as focused form if no child
9313             controls exist
9314           - Added PerformLayout call when showing dialog, to ensure properly
9315             placed controls
9316         * Control.cs:
9317           - Select(): Made internal so Form can access it
9318           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9319             status
9320         * Application.cs (Run): Removed hack and calls PerformLayout instead
9321           to trigger calculation when Form becomes visible
9322
9323 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9324
9325         * ComboBox.cs: fixes for ownerdraw
9326
9327 2005-01-18  Peter Bartok  <pbartok@novell.com>
9328
9329         * TextControl.cs:
9330           - Sentinel is no longer static, each Document gets it's own, this
9331             avoids locking or alternatively overwrite problems when more
9332             than one text control is used simultaneously.
9333           - Switched to use Hilight and HilightText brushes for text selection
9334
9335         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9336
9337 2005-01-18  Peter Bartok  <pbartok@novell.com>
9338
9339         * Control.cs:
9340           - Hooked up the following events:
9341                 o ControlAdded
9342                 o ControlRemoved
9343                 o HandleDestroyed
9344                 o ImeModeChanged
9345                 o ParentChanged
9346                 o TabStopChanged
9347                 o Invalidated
9348                 o SystemColorsChanged
9349                 o ParentFontChanged
9350                 o Move
9351           - Removed debug output
9352           - Added a call to the current theme's ResetDefaults when a color change
9353             is detected
9354         * Form.cs: Now setting the proper ImeMode
9355         * Theme.cs: Defined a method to force recreation of cached resources
9356           and rereading of system defaults (ResetDefaults())
9357         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9358
9359 2005-01-17  Peter Bartok  <pbartok@novell.com>
9360
9361         * Control.cs: Added missing attributes
9362
9363 2005-01-17  Jackson Harper  <jackson@ximian.com>
9364
9365         * TreeNode.cs: Implement editing. Add missing properties selected
9366         and visible.
9367         * TreeView.cs: Implement node editing. Also some fixes to use
9368         Invalidate (invalid area) instead of Refresh when selecting.
9369
9370 2005-01-17  Peter Bartok  <pbartok@novell.com>
9371
9372         * Control.cs:
9373           - Implemented InvokeGotFocus() method
9374           - Implemented InvokeLostFocus() method
9375           - Implemented InvokePaint() method
9376           - Implemented InvokePaintBackground() method
9377           - Implemented InvokeClick() method
9378           - Implemented FindForm() method
9379           - Implemented RectangleToClient() method
9380           - Implemented ClientToRectangle() method
9381           - Implemented ResetBackColor() method
9382           - Implemented ResetCursor() method
9383           - Implemented ResetFont() method
9384           - Implemented ResteForeColor() method
9385           - Implemented ResetImeMode() method
9386           - Implemented ResetLeftToRight() method
9387           - Implemented ResetText() method
9388           - Implemented Scale() methods
9389           - Implemented ScaleCore() method
9390           - Implemented Update() method
9391           - Removed unused variables
9392           - Stubbed AccessibilityNotifyClients and
9393             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9394             with those yet)
9395           - Now setting proper default for RightToLeft property
9396           - Fixed bug in SetClientSizeCore that would cause windows to get
9397             really big
9398           - Now sending Click/DoubleClick events
9399           - Now selecting controls when left mouse button is clicked on
9400             selectable control
9401         * AccessibleEvents.cs: Added
9402         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9403         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9404         * XplatUIWin32.cs: Implemented UpdateWindow() method
9405         * XplatUIX11.cs: Implemented UpdateWindow() method
9406         * Form.cs: Removed stray semicolon causing CS0162 warning
9407         * ThemeWin32Classic.cs: Fixed unused variable warnings
9408         * ScrollableControl.cs: Now calls base method for ScaleCore
9409         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9410           style to avoid interference with internal click handler (which is
9411           different than standard Control click handling)
9412         * RadioButton.cs:
9413           - Now unchecks all sibling radio buttons when control is
9414             selected (Fixes #68756)
9415           - Removed internal tabstop variable, using the one inherited from
9416             Control
9417
9418 2005-01-17  Jackson Harper  <jackson@ximian.com>
9419
9420         * NavigateEventArgs.cs: Fix base type.
9421         * LinkLabel.cs: Sig fix
9422         
9423 2005-01-17  Jackson Harper  <jackson@ximian.com>
9424
9425         * TreeView.cs: Only invalidate the effected nodes bounds when
9426         selecting nodes.
9427
9428 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9429
9430         * XplatUIWin32.cs: fixes Win32 marshaling
9431         * XplatUIX11.cs: fixes method signature
9432
9433 2005-01-17  Peter Bartok  <pbartok@novell.com>
9434
9435         * XplatUIX11.cs: Clean up resources when we no longer need them
9436
9437 2005-01-17  Peter Bartok  <pbartok@novell.com>
9438
9439         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9440           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9441           and DestroyCursor() methods.
9442         * Cursor.cs: Partially implemented, now supports standard cursors;
9443           still contains some debug code
9444         * Cursors.cs: Implemented class
9445         * Control.cs:
9446           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9447             appropriate cursor
9448           - Implemented Cursor property
9449           - Replaced break; with return; more straightforwar and possibly
9450             faster
9451           - Now properly setting the result for WM_HELP
9452         * X11Structs.cs: Added CursorFontShape enum
9453         * XplatUIStructs.cs:
9454           - Added StdCursor enum (to support DefineStdCursor() method)
9455           - Added HitTest enum (to support sending WM_SETCURSOR message)
9456         * XplatUIX11.cs:
9457           - Now sends the WM_SETCURSOR message
9458           - Implemented new cursor methods
9459         * XplatUIOSX.cs: Stubbed new cursor methods
9460         * XplatUIWin32.cs:
9461           - Implemented new cursor methods
9462           - Added GetSystemMetrics function and associated enumeration
9463
9464 2005-01-15  Peter Bartok  <pbartok@novell.com>
9465
9466         * Control.cs:
9467           - WndProc(): Now handles EnableNotifyMessage
9468           - SelectNextControl(): Fixed bug where if no child or sibling
9469             controls exist we looped endlessly
9470
9471 2005-01-14  Jackson Harper  <jackson@ximian.com>
9472
9473         * TreeView.cs: Recalculate the tab pages when a new one is added
9474         so that the proper bounding rects are created.
9475
9476 2005-01-14  Jackson Harper  <jackson@ximian.com>
9477
9478         * TreeView.cs: Draw a gray box instead of a grip in the lower
9479         right hand corner when there are both horizontal and vertical
9480         scroll bars.
9481
9482 2005-01-14  Jackson Harper  <jackson@ximian.com>
9483
9484         * Control.cs: When erasing backgrounds use FromHwnd instead of
9485         FromHdc when there is a NULL wparam. This occurs on the X driver.
9486         * XplatUIX11.cs: Set the wparam to NULL.
9487
9488 2005-01-13  Jackson Harper  <jackson@ximian.com>
9489
9490         * PictureBox.cs: Implement missing methods (except ToString, need
9491         to test that on windows) and events. When visibility is changed we
9492         need to redraw the image because the buffers are killed. When size
9493         is changed refresh if the sizemode needs it.
9494
9495 2005-01-13  Peter Bartok  <pbartok@novell.com>
9496
9497         * Control.cs (SelectNextControl): Was using wrong method to select
9498           a control
9499
9500 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9501
9502         * ComboBox.cs: fixes dropstyle
9503
9504 2005-01-13  Peter Bartok  <pbartok@novell.com>
9505
9506         * Form.cs:
9507           - Implemented Select() override
9508           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9509           - Now sets keyboard focus on startup
9510         * Control.cs (SelectNextControl): Now properly handles directed=true
9511         * TextBoxBase.cs:
9512           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9513           - Added (really bad) focus rectangle (mostly for testing)
9514         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9515           to enforce redraw on focus changes
9516         * ContainerControl.cs:
9517           - Fixed detection of Shift-Tab key presses
9518           - Fixed traversal with arrow keys
9519         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9520           gonna keep this or if it's complete yet
9521         
9522 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9523
9524         * ComboBox.cs: missing properties, fixes
9525
9526 2005-01-13  Peter Bartok  <pbartok@novell.com>
9527
9528         * Panel.cs (ctor): Setting Selectable window style to off
9529         * Splitter.cs (ctor): Setting Selectable window style to off
9530         * GroupBox.cs (ctor): Setting Selectable window style to off
9531         * Label.cs (ctor): Setting Selectable window style to off
9532
9533 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9534
9535         * UpDownBase.cs (InitTimer): If the timer has been already
9536         created, enable it.
9537
9538         Use a TextBox instead of a Label.
9539
9540 2005-01-12  Jackson Harper  <jackson@ximian.com>
9541
9542         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9543         draw the connecting node lines (when ShowLines is true).
9544         * TreeNode.cs: The nodes index can now be updated. This is used
9545         when a node collection is sorted.
9546         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9547         insert or an existing unsorted node collection can be sorted.
9548         
9549 2005-01-12  Peter Bartok  <pbartok@novell.com>
9550
9551         * ContainerControl.cs: Implemented ProcessDialogKeys()
9552
9553 2005-01-12  Peter Bartok  <pbartok@novell.com>
9554
9555         * Control.cs:
9556           - Implemented SelectNextControl() method
9557           - Several focus related bug fixes
9558           - Fixed Docking calculations to match MS documentation and
9559             behaviour
9560
9561 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9562
9563         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9564         bug fixes
9565
9566 2005-01-12  Peter Bartok  <pbartok@novell.com>
9567
9568         * Control.cs:
9569           - Fixed broken Contains() method
9570           - Implemented GetNextControl() method. Finally. This is the pre-
9571             requisite for focus handling.
9572
9573 2005-01-12  Peter Bartok  <pbartok@novell.com>
9574
9575         * OSXStrucs.cs: Added
9576
9577 2005-01-12  Peter Bartok  <pbartok@novell.com>
9578
9579         * XplatUIWin32.cs:
9580           - Removed PeekMessageFlags
9581           - Implemented SetWindowStyle() method
9582         * XplatUIStructs.cs: Added PeekMessageFlags
9583         * X11Structs: Added missing border_width field to XWindowChanges struct
9584         * XplatUIX11.cs:
9585           - PeekMessage: Now throws exception if flags which are not yet
9586             supported are passed
9587           - Implemented SetWindowStyle() method
9588           - Fixed SetZOrder to handle AfterHwnd properly
9589         * XplatUI.cs: Added SetWindowStyle() method
9590         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9591         * Control.cs:
9592           - Implemented UpdateStyles() method
9593           - Implemented UpdateZOrder() method
9594         * XplatUIOSX.cs: Added SetWindowStyle() stub
9595
9596 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9597
9598         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9599         button mouse).
9600
9601
9602 2005-01-11  Jackson Harper  <jackson@ximian.com>
9603
9604         * TreeView.cs: Still need to draw lines to siblings even if out of
9605         the current node is out of the clip.
9606
9607 2005-01-11  Jackson Harper  <jackson@ximian.com>
9608
9609         * TreeView.cs: When setting the hbar/vbar/grip position use
9610         SetBounds so that perform layout is only called once. Also suspend
9611         and resume layout so layout is only done once for all controls.
9612         - Removed some debug fluff
9613         * SizeGrip.cs: Call base implmentation in overriding methods.
9614         - When visibility is changed the drawing buffers are killed so we
9615         need to redraw.
9616
9617 2005-01-11  Jackson Harper  <jackson@ximian.com>
9618
9619         * TreeView.cs: Calculate the open node count while drawing. This
9620         saves us an entire tree traversal for every paint operation. Use
9621         a member var for the open node count so less vars are passed around.
9622
9623 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9624
9625         * MonthCalendar.cs:
9626         - fixed selection to use mousemove, not mouse polling on timer
9627         * ThemeWin32Classic.cs
9628         - removed redundant unused variable "no_more_content"
9629         
9630 2005-01-11  Peter Bartok  <pbartok@novell.com>
9631
9632         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9633           are pending, so it now calls PeekMessage instead of GetMessage;
9634           implemented a incomplete version of PeekMessage
9635         
9636 2005-01-11  Peter Bartok  <pbartok@novell.com>
9637
9638         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9639           I18n issues
9640         * TextBoxBase.cs: Added sending of TextChanged event
9641
9642 2005-01-10  Jackson Harper  <jackson@ximian.com>
9643
9644         * TreeView.cs: Try not to draw outside the clipping rectangle on
9645         each node element.
9646
9647 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9648
9649         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9650
9651 2005-01-10  Jackson Harper  <jackson@ximian.com>
9652
9653         * TreeView.cs:
9654         - Implement fast scrolling. Now only the newly
9655         exposed nodes are drawn and the old image is moved using the
9656         XplatUI::ScrollWindow method.
9657         - Factor in height of nodes when calculating whether or not the
9658         node is in the clipping rect.
9659
9660 2005-01-10  Jackson Harper  <jackson@ximian.com>
9661
9662         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9663
9664 2005-01-10  Peter Bartok  <pbartok@novell.com>
9665
9666         * Application.cs: Added temporary hack to resolve all our resize
9667           required issues on startup. This will get fixed properly at
9668           some point in the future
9669
9670 2005-01-10  Jackson Harper  <jackson@ximian.com>
9671
9672         * SizeGrip.cs: New internal class that is used as a sizing
9673         grip control...hence the name.
9674
9675 2005-01-10  Peter Bartok  <pbartok@novell.com>
9676
9677         * Control.cs: Implemented proper TabIndex handling, now assigning
9678           a tabindex when a control is added to a container
9679         * GroupBox.cs (ctor): Now sets the Container style bit, required
9680           for Control.GetNextControl()
9681
9682 2005-01-09  Jackson Harper  <jackson@ximian.com>
9683
9684         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9685
9686 2005-01-09  Peter Bartok <pbartok@novell.com>
9687
9688         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9689           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9690           an overload for ScrollWindow to allow only scrolling a rectangle
9691
9692 2005-01-09  Peter Bartok <pbartok@novell.com>
9693
9694         * Form.cs:
9695           - Implemented SetDesktopBounds method
9696           - Implemented SetDesktopLocation method
9697
9698 2005-01-08  Jackson Harper  <jackson@ximian.com>
9699
9700         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9701         the node count has changed, this removes to VScroll::Refresh calls
9702         when drawing.
9703
9704 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9705
9706         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9707
9708 2005-01-07  Jackson Harper  <jackson@ximian.com>
9709
9710         * TreeNode.cs: Just update the single node when it is
9711         checked. Don't refresh after toggling, the Expand/Collapse already
9712         handles this.
9713         * TreeView.cs: Respect clipping a little more when drawing. Try
9714         not to redraw things that don't need to be redrawn. Just hide the
9715         scrollbars when they are no longer needed instead of removing
9716         them, so they don't have to be created again and again.
9717         
9718 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9719
9720         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9721         coordinates to window space to place the caret properly, FIXED.
9722         Implement GetWindowState & SetWindowState
9723
9724 2005-01-06  Peter Bartok <pbartok@novell.com>
9725
9726         * Form.cs:
9727           - Implemented ClientSize property
9728           - Implemented DesktopBounds property
9729           - Implemented DesktopLocation property
9730           - Implemented IsRestrictedWindow property
9731           - Implemented Size property
9732           - Implemented TopLevel property
9733           - Implemented FormWindowState property
9734         * Control.cs:
9735           - Implemented GetTopLevel() method
9736           - Implemented SetTopLevel() method
9737         * X11Structs.cs (Atom):
9738           - Added AnyPropertyType definition
9739           - Added MapState definiton and updated XWindowAttribute struct
9740         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9741         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9742         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9743         * XplatUIWin32.cs:
9744           - Implemented GetWindowState() and SetWindowState() methods
9745           - Fixed Win32GetWindowLong return type
9746         * XplatUIX11.cs:
9747           - Introduced central function for sending NET_WM messages
9748           - Implemented GetWindowState() and SetWindowState() methods
9749         * TextBoxBase.cs (set_Lines):
9750           - Now uses Foreground color for text added via Text property (Duh!)
9751           - Added code to remember programmatically requested size (fixes
9752             behaviour when Multiline is set after Size)
9753           - Added AutoSize logic
9754
9755 2005-01-06  Jackson Harper  <jackson@ximian.com>
9756
9757         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9758
9759 2005-01-06  Jackson Harper  <jackson@ximian.com>
9760
9761         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9762         set to less then 0.
9763
9764 2005-01-06  Jackson Harper  <jackson@ximian.com>
9765
9766         * ScrollableControl.cs: Lazy init the scrollbars.
9767         
9768 2005-01-06  Jackson Harper  <jackson@ximian.com>
9769
9770         * Theme.cs: Speed up getting pens and solid brushes, by using
9771         their ARGB as a hash instead of tostring and not calling Contains.
9772
9773 2005-01-06  Peter Bartok <pbartok@novell.com>
9774
9775         * Form.cs:
9776           - Implemented OnActivated and OnDeactivate event trigger
9777           - Implemented Activate() method
9778           - Fixed ShowDialog() to activate the form that was active before
9779             the dialog was shown
9780         * XplatUIX11.cs:
9781           - Added global active_window var that tracks the currently active
9782             X11 window
9783           - Now always grabs Property changes from the root window to always
9784             catch changes on the active window property
9785           - Added code to PropertyNotify handler to send Active/Inactive
9786             messages when state changes. This puts X11 and Win32 en par on
9787             WM_ACTIVATE notifications (except for double notifications when
9788             the user clicks away from our modal window to another one of our
9789             windows)
9790
9791 2005-01-05  Jackson Harper  <jackson@ximian.com>
9792
9793         * ImageList.cs: Implment ctor
9794
9795 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9796
9797         * XplatUIOSX.cs: Implement Activate/SetTopmost
9798
9799 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9800
9801         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9802
9803 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9804
9805         * XplatUIOSX.cs: Implement GetActive/SetFocus.
9806
9807 2005-01-05  Peter Bartok <pbartok@novell.com>
9808
9809         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9810           XplatUIOSX.cs: Added GetActive method to return the currently
9811           active window for the application (or null, if none is active)
9812         * Form.cs:
9813           - Implemented ActiveForm
9814           - Commented out owner assignment for modal dialogs (causes problems
9815             on Win32, since the owner will be disabled)
9816           - Reworked some Active/Focus handling (still incomplete)
9817         * CommonDialog.cs: Commented out owner assignment for modal dialogs
9818           (causes problems on Win32, since the owner will be disabled)
9819         * IWin32Window: Added ComVisible attribute
9820
9821 2005-01-05  Peter Bartok <pbartok@novell.com>
9822
9823         * ToolTip.cs (WndProc): Enable setting focus now that we have the
9824           required XplatUI functions.
9825
9826 2005-01-05  Peter Bartok <pbartok@novell.com>
9827
9828         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9829           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9830           to implement focus and activation handling; still incomplete and
9831           with debug output
9832
9833 2005-01-04  Peter Bartok <pbartok@novell.com>
9834
9835         * TextBoxBase.cs: Changed access level for Document property to
9836           match switch to internal for TextControl
9837
9838 2005-01-04  Peter Bartok <pbartok@novell.com>
9839
9840         * AccessibleObject: Added ComVisible attribute
9841
9842 2005-01-04  Jackson Harper  <jackson@ximian.com>
9843
9844         * X11Keyboard.cs: Remove unneeded var.
9845
9846 2005-01-04  Jackson Harper  <jackson@ximian.com>
9847
9848         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9849         but PAINT.
9850         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9851         ClientMessage. This makes apps exit cleanly (more often).
9852         
9853 2005-01-04  Jackson Harper  <jackson@ximian.com>
9854
9855         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9856         handling focus, return correct colors and fonts,
9857         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9858         handle selection, horizontal scrolling, and mouse interaction.
9859
9860 2005-01-04  Peter Bartok <pbartok@novell.com>
9861
9862         * ICommandExecutor.cs: Added
9863         * IDataGridColumnStyleEditingNotificationService.cs: Added
9864         * IFeatureSupport.cs: Added
9865         * IFileReaderService.cs: Added
9866         * IDataObject.cs: Added ComVisible attribute
9867         * AmbientProperties.cs: Added
9868         * BaseCollection.cs: Added missing attributes
9869         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9870         * BaseCollection.cs: Added missing attributes
9871         * Binding.cs: Added TypeConverter attribute
9872         * BindingContext.cs: Added DefaultEvent attribute
9873         * BindingsCollection.cs: Added DefaultEvent attribute
9874         * Button.cs: Added DefaultValue attribute
9875         * DragEventArgs.cs: Added ComVisible attribute
9876         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9877         * KeyEventArgs.cs: Added ComVisible attribute
9878         * KeyPressEventArgs.cs: Added ComVisible attribute
9879         * MouseEventArgs.cs: Added ComVisible attribute
9880         * NavigateEventArgs.cs: Added
9881         * NavigateEventHandler.cs: Added
9882         * FeatureSupport.cs: Added
9883         * OSFeature.cs: Added
9884         * Theme.cs: Added abstract Version property to support OSFeature
9885         * ThemeWin32Classic.cs: Added Version property to
9886           support OSFeature.Themes
9887         * ProgressBar.cs: Removed OnPaintBackground override, not required since
9888           the proper styles to avoid background drawing are set, also doesn't
9889           match MS signature
9890         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9891         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9892         * ScrollEventArgs.cs: Added ComVisible attribute
9893         * SplitterEventArgs.cs: Added ComVisible attribute
9894         * AccessibleSelection.cs: Added Flags attribute
9895         * Appearance.cs: Added ComVisible attribute
9896         * Border3DSide.cs: Added ComVisible attribute
9897         * Border3DStyle.cs: Added ComVisible attribute
9898         * BorderStyle.cs: Added ComVisible attribute
9899         * DragAction.cs: Added ComVisible attribute
9900         * ErrorBlinkStyle.cs: Added
9901         * ScrollEventType.cs: Added ComVisible attribute
9902         * AnchorStyles.cs: Added Editor attribute
9903         * DockStyle.cs: Added Editor attribute
9904         * HorizontalAlignment.cs: Added ComVisible attribute
9905         * HelpEventArgs.cs: Added ComVisible attribute
9906         * PaintEventArgs.cs: Added IDisposable
9907
9908 2005-01-04  Peter Bartok <pbartok@novell.com>
9909
9910         * TextControl.cs: Switched Line, LineTag and Document classes to
9911           internal
9912
9913 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9914
9915         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9916         Simple mode, fixes, IntegralHeight, etc.
9917
9918 2005-01-04  Peter Bartok <pbartok@novell.com>
9919
9920         * TextBoxBase.cs: Using proper font variable now
9921
9922 2005-01-04  Peter Bartok <pbartok@novell.com>
9923
9924         * Form.cs (ShowDialog): Set parent to owner, if provided
9925         * GroupBox.cs: Removed unused vars
9926         * TextControl.cs:
9927           - Added GetHashCode() for Document and LineTag classes
9928           - Removed unused variables
9929           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9930             to allow translation between continuous char position and line/pos
9931         * CheckBox.cs: Removed vars that are provided by base class
9932         * RadioButton.cs: Removed vars that are provided by base class, added
9933           new keyword where required
9934         * LinkLabel.cs: Added new keyword where required
9935         * Control.cs (WndProc): Removed unused variable
9936         * TextBoxBase.cs:
9937           - Finished SelectionLength property
9938           - Implemented SelectionStart property
9939           - Implemented Text property
9940           - Removed unused vars
9941         * MessageBox.cs: Added new keyword where required
9942         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9943           WndProc signature
9944         * MenuAPI.cs: Added new keyword where required
9945         * ButtonBase.cs: Removed vars that are provided by base class, added
9946           new keyword where required
9947         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9948           argument to double, to allow compiling with csc 2.0 (Atsushi ran
9949           into this)
9950         * Application.cs (Run): Now triggers the ThreadExit event
9951         * CommonDialog.cs: Added new keyword where required; now properly sets
9952           parent (owner) for dialog
9953         * XplatUIX11.cs: Commented out unused vars
9954         * StatusBar.cs: Fixed signature for Text property
9955         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9956
9957 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9958
9959         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9960         TrackBar.cs, MonthCalendar.cs: remove unused vars
9961
9962 2005-01-03  Jackson Harper  <jackson@ximian.com>
9963
9964         * ThemeWin32Classic.cs:
9965         * X11Keyboard.cs: Remove unused vars.
9966
9967 2005-01-03  Peter Bartok  <pbartok@novell.com>
9968
9969         * TextBox.cs:
9970           - set_Text: Tied into TextControl
9971           - set_TextAlignment: Tied into TextControl
9972         * TextControl.cs:
9973           - Added alignment properties and implemented alignment handling
9974             and drawing (still has a bug, not generating proper expose events)
9975           - Added new Line() constructor to allow passing the line alignment
9976           - Fixed selection setting, properly handling end<start now
9977           - Added aligment considerations to RecalculateDocument()
9978         * TextBoxBase.cs:
9979           - Now properly enforces control height for single line controls
9980           - Added support for CharacterCasing
9981           - Added IsInputKey override
9982           - Fixed Keys.Enter logic
9983           - Added SetBoundsCore override
9984           - Fixed mouse selection handling
9985
9986 2005-01-03  Jackson Harper  <jackson@ximian.com>
9987
9988         * TreeView.cs:
9989           - Collapse and uncheck all nodes when CheckBoxes is disabled.
9990           - Checkboxes are always aligned to the bottom of the node,
9991           regardless of item height.
9992           - Use the node bounds to draw the text so we can center it when
9993           the item height is greater then the font height.
9994           - Node::Bounds are only the text part of the node.
9995         * TreeNode.cs: New method to combine collapsing and unchecking all
9996           nodes recursively.
9997
9998 2005-01-02  Jackson Harper  <jackson@ximian.com>
9999
10000         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10001         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10002         tree when a check is changed. TODO: Only refresh the checked node.
10003
10004 2004-12-30  Jackson Harper  <jackson@ximian.com>
10005
10006         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10007         * TreeNode.cs: When collapsing make sure to never collapse the
10008         root node.
10009
10010 2004-12-29  Jackson Harper  <jackson@ximian.com>
10011
10012         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10013         
10014 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10015
10016         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10017
10018 2004-12-28  Peter Bartok  <pbartok@novell.com>
10019
10020         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10021           not yet assigned
10022
10023 2004-12-28  Peter Bartok  <pbartok@novell.com>
10024
10025         * Control.cs (WndProc): Added WM_HELP handler, now generates
10026           HelpRequested event
10027         * Form.cs: Added HelpButton property and required support code
10028         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10029
10030 2004-12-28  Peter Bartok  <pbartok@novell.com>
10031
10032         * CommonDialog.cs:
10033           - Made DialogForm.owner variable internal
10034           - Added check to ensure owner form is set before setting
10035             owner properties in CreateParams
10036
10037 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10038
10039         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10040           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10041           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10042           system to support borderless/titleless windows (implements menus).
10043           Fix GetWindowPos.  Implement initial background color support for
10044           views.
10045
10046 2004-12-28  Peter Bartok  <pbartok@novell.com>
10047
10048         * Form.cs (get_CreateParams): Make sure we have an owner before using
10049           the owner variable. Implement proper default if no owner exists
10050
10051 2004-12-28  Peter Bartok  <pbartok@novell.com>
10052
10053         * In preparation for making Managed.Windows.Forms the default build target
10054           for System.Windows.Forms, the following stubbed files were added.
10055           Dialogs are currently being implemented by contributors and are only
10056           short-term place holders.
10057         * ColorDialog.cs: Initial check-in (minmal stub)
10058         * DataGrid.cs: Initial check-in (minimal stub)
10059         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10060         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10061         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10062         * FontDialog.cs: Initial check-in (minimal stub)
10063         * FileDialog.cs: Initial check-in (minimal stub)
10064         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10065         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10066         * OpenFileDialog: Initial check-in (minimal stub)
10067         * IComponentEditorPageSite.cs: Initial check-in
10068         * Splitter.cs: Initial check-in (for Jackson)
10069         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10070         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10071         * TextBox.cs: Initial check-in; still needs some wiring to
10072           TextControl backend
10073         * Form.cs: Implemented ControlBox property
10074         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10075         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10076         * TextControl.cs: Added selection functionality; added todo header
10077         * TextBoxBase.cs:
10078           - Implemented Lines property
10079           - Implemented TextHeight property
10080           - Implemented SelectedText property
10081           - Implemented SelectionLength property
10082           - Implemented SelectAll method
10083           - Implemented ToString method
10084           - Removed and cleaned up some debug code
10085           - Implemented (still buggy) mouse text selection
10086
10087 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10088
10089         * ComboBox.cs: Complete DropDownList implementation, fixes.
10090
10091 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10092
10093         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10094         * ComboBoxStyle.cs: ComboBoxStyle enum
10095         * ComboBox.cs: Initial work on ComboBox control
10096
10097 2004-12-21  Peter Bartok  <pbartok@novell.com>
10098
10099         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10100           forward so that anything that creates a window gets the default,
10101           also no longer uses Visible property in CreateParams to avoid
10102           walking up the parent chain and possibly get the wrong visible
10103           status. Fixed IsVisible to no longer walk up to the parent.
10104
10105 2004-12-21  Peter Bartok  <pbartok@novell.com>
10106
10107         * Form.cs (ShowDialog): Unset modality for the proper window
10108  
10109 2004-12-20  Peter Bartok  <pbartok@novell.com>
10110
10111         * CommonDialog.cs: Initial check-in
10112
10113 2004-12-20  Peter Bartok  <pbartok@novell.com>
10114
10115         * Control.cs (Visible): Now uses the parent window instead of the
10116           client area window for the property
10117
10118         * Form.cs
10119           - ShowDialog(): Now uses the proper window for modality
10120           - The default visibility state for the form parent is now false. This
10121             will prevent the user from seeing all the changes to the form and
10122             its controls before the application hits Application.Run()
10123           - Removed some stale commented out code
10124
10125         * NativeWindow.cs:
10126           - Added FindWindow() method to have a method to check for existence
10127             of a window handle
10128           - Added ability to override default exception handling (for example
10129             when debugging with VS.Net; to do this the ExternalExceptionHandler
10130             define must be set
10131           - Removed some useless debug output
10132
10133         * XplatUIX11.cs:
10134           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10135             not working as expected
10136           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10137             property to allow switching back to the modal window if focus is
10138             given to another one of our windows (Application Modal)
10139           - Now only sets override_redirect if we create a window
10140             without WS_CAPTION
10141           - Moved EventMask selection before mapping of newly created window
10142             so we can catch the map event as well
10143           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10144           - Added various Atom related DllImports
10145           - Implemented Exit() method
10146           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10147             in the CreateParams
10148
10149         * MessageBox.cs: Now properly deals with the FormParent window by
10150           providing an override the FormParent CreateParams property to
10151           set as POPUP instead of OVERLAPPED window.
10152
10153 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10154
10155         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10156         Minor code cleanup.
10157
10158 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10159         
10160         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10161
10162 2004-12-18  Peter Bartok  <pbartok@novell.com>
10163
10164         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10165           implementing SetModal() method
10166
10167 2004-12-18  Peter Bartok  <pbartok@novell.com>
10168
10169         * X11Structs.cs (XGCValues): Fixed type of function element
10170         * XplatUI.cs: Added ScrollWindow() method
10171         * XplatUIDriver.cs: Added ScrollWindow() abstract
10172         * XplatUIWin32.cs: Implemented ScrollWindow() method
10173         * XplatUIX11.cs: Implemented ScrollWindow() method
10174         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10175
10176 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10177
10178         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10179         Some more keyboard support (INCOMPLETE)
10180
10181 2004-12-17  Peter Bartok  <pbartok@novell.com>
10182
10183         * TextControl.cs:
10184         - Added color attribute to line tags.
10185         - Added color argument to all functions dealing with tags
10186         - Added color argument support to various functions
10187         - Fixed miss-calculation of baseline/shift in certain circumstances
10188
10189         * TextBoxBase.cs: Added new color option to test code
10190
10191 2004-12-17  Jackson Harper  <jackson@ximian.com>
10192
10193         * TreeNode.cs:
10194         * MonthCalendar.cs: Signature fixes
10195
10196 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10197
10198         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10199         keyboard event moved it.  Create a new graphics context for each paint resolves this
10200
10201 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10202
10203         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10204         Make caret exist and go blink blink.  Initial keyboard support.
10205         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10206         works.
10207
10208 2004-12-17  Jackson Harper  <jackson@ximian.com>
10209
10210         * XplatUIStructs.cs: Updated set of virtual keycodes.
10211         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10212
10213 2004-12-17  Jackson Harper  <jackson@ximian.com>
10214
10215         * XplatUIX11.cs: Prune old keyboard code.
10216
10217 2004-12-17  Jackson Harper  <jackson@ximian.com>
10218
10219         * XplatUIX11.cs: When generating mouse wparams get the modifier
10220         keys from the ModifierKeys property.
10221
10222 2004-12-17  Jackson Harper  <jackson@ximian.com>
10223
10224         * X11Keyboard.cs: Send up/down input when generating
10225         messages. Remove some unused vars.
10226
10227 2004-12-17  Jackson Harper  <jackson@ximian.com>
10228
10229         * TabControl.cs:
10230         * TreeView.cs: get rid of warnings.
10231
10232 2004-12-17  Jackson Harper  <jackson@ximian.com>
10233
10234         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10235
10236 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10237
10238         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10239           CheckedListBox.cs: Implementation
10240
10241 2004-12-17  Peter Bartok  <pbartok@novell.com>
10242
10243         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10244
10245 2004-12-16  Peter Bartok  <pbartok@novell.com>
10246
10247         * TextControl.cs:
10248           - InsertCharAtCaret(): Fixed start pos fixup
10249           - CaretLine_get: No longer derives the line from the tag, the tag
10250             could be stale if lines in the document have been added or deleted
10251           - RebalanceAfterDelete(): Fixed bug in balancing code
10252           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10253           - Line.Streamline(): Now can also elminate leading empty tags
10254           - DumpTree(): Added a few more tests and prevented exception on
10255             uninitialized data
10256           - Added Debug section for Combining lines
10257           - Delete(): Now copies all remaining properties of a line
10258           
10259         * TextBoxBase.cs:
10260           - Left mousebutton now sets the caret (and middle button still acts
10261             as formatting tester, which must go away soon)
10262           - Added Debug section for Deleting/Combining lines
10263           - Fixed calculations for UpdateView after Combining lines
10264
10265 2004-12-16  Peter Bartok  <pbartok@novell.com>
10266
10267         * TextControl.cs: Now properly aligns text on a baseline, using the
10268           new XplatUI.GetFontMetrics() method. Simplified several calculations
10269         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10270           defined
10271
10272 2004-12-16  Peter Bartok  <pbartok@novell.com>
10273
10274         * XplatUI.cs: Added GetFontMetrics() method
10275         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10276         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10277           into libgdiplus, our private GetFontMetrics function
10278         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10279         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10280
10281 2004-12-16  Jackson Harper  <jackson@ximain.com>
10282
10283         * XplatUIStruct.cs: Add enum for dead keys
10284         * X11Keyboard.cs: Map and unmap dead keys.
10285
10286 2004-12-16  Jackson Harper  <jackson@ximian.com>
10287
10288         * X11Keyboard.cs: Detect and use the num lock mask.
10289
10290 2004-12-16  Peter Bartok  <pbartok@novell.com>
10291
10292         * Control.cs (CreateGraphics): Added check to make sure the
10293           handle of the window exists before calling Graphics.FromHwnd()
10294
10295 2004-12-16  Peter Bartok  <pbartok@novell.com>
10296
10297         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10298           contains a lot of code that's not supposed to be there for the
10299           real thing, but required for developing/testing the textbox
10300           backend.
10301
10302 2004-12-16  Peter Bartok  <pbartok@novell.com>
10303
10304         * TextControl.cs:
10305         - Fixed Streamline method
10306         - Added FindTag method to Line
10307         - Added DumpTree method for debugging
10308         - Added DecrementLines() method for deleting lines
10309         - Fixed UpdateView to update the cursor to end-of-line on single-line
10310           updates
10311         - Added PositionCaret() method
10312         - Fixed MoveCaret(LineDown) to move into the last line, too
10313         - Added InsertChar overload
10314         - Fixed InsertChar tag offset calculations
10315         - Added DeleteChar() method
10316         - Added Combine() method for folding lines
10317         - Fixed Delete() method, no longer allocates wasted Line object and
10318           now copies all properties when swapping nodes
10319         - Delete() method now updates document line counter
10320
10321 2004-12-15  Jackson Harper  <jackson@ximian.com>
10322
10323         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10324         * X11Keyboard.cs: Expose the currently selected modifier keys
10325         through a property.
10326
10327 2004-12-15  Peter Bartok  <pbartok@novell.com>
10328
10329         * TextControl.cs: Initial check-in. Still incomplete
10330
10331 2004-12-15  Jackson Harper  <jackson@ximian.com>
10332
10333         * TreeNode.cs:
10334         * TreeView.cs: Fix build on csc (second time today ;-))
10335
10336 2004-12-15  Jackson Harper  <jackson@ximian.com>
10337
10338         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10339         is calculated and use this for click testing.
10340         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10341
10342 2004-12-15  Jackson Harper  <jackson@ximian.com>
10343
10344         * TreeView.cs: Pass the nodes image index to the image list when
10345         drawing that image.
10346
10347 2004-12-15  Jackson Harper  <jackson@ximian.com>
10348
10349         * X11Keyboard.cs: Set messages hwnd.
10350         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10351         post_message calls.
10352
10353 2004-12-15  Jackson Harper  <jackson@ximian.com>
10354
10355         * X11Keyboard.cs: Fix to compile with csc.
10356         
10357 2004-12-15  Jackson Harper  <jackson@ximian.com>
10358
10359         * X11Structs.cs: Add key mask values
10360         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10361         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10362         down/up foo into WM_CHAR foo
10363         * KeyboardLayouts.cs: Common keyboard layouts
10364         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10365         post messages into the main queue.
10366
10367 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10368
10369         * Button.cs: implement ProcessMnemonic
10370         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10371           brushes everytime
10372         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10373         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10374
10375 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10376         
10377         * MonthCalendar.cs: Implemented click-hold for next/previous month
10378           and date selection
10379           
10380 2004-12-11  Peter Bartok  <pbartok@novell.com>
10381
10382         * X11Structs.cs:
10383           - Added XKeyboardState (moved from XplatUIX11.cs)
10384           - Added XCreateGC related enums and structures
10385           - Added GXFunction for XSetFunction
10386
10387         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10388
10389         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10390           CaretVisible() calls
10391
10392         * ToolTip.cs: Added code to prevent stealing focus from app windows
10393
10394         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10395           DestroyCaret, SetCaretPos and CaretVisible)
10396
10397         * XplatUIX11.cs:
10398           - Added implementation for caret functions
10399           - Moved hover variables into a struct, to make it a bit easier
10400             on the eyes and to debug
10401           - Removed XKeyboardState (moved to XplatUIX11.cs)
10402           - Moved Keyboard properties into the properties region
10403
10404         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10405           call to get a graphics context for our control
10406
10407         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10408
10409         * TreeView.cs: Fixed bug. No matter what color was set it would always
10410           return SystemColors.Window
10411
10412         * XplatUIWin32.cs: Implemented caret overrides
10413
10414 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10415
10416         * ListBox.cs: fire events, implement missing methods and properties,
10417         sorting.
10418
10419 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10420
10421         * MonthCalendar.cs: invalidation bug fixing
10422         * ThemeWin32Classic.cs: paint fixing
10423
10424 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10425
10426         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10427         prepare the CGContextRef there now.
10428
10429 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10430
10431         * MonthCalendar.cs:
10432           - optimisationL only invalidate areas that have changed
10433         * ThemeWin32Classic.cs:
10434           - only paint parts that intersect with clip_area
10435
10436 2004-12-09  Peter Bartok  <pbartok@novell.com>
10437
10438         * Application.cs: Undid changes from r37004 which cause problems
10439         on X11
10440
10441 2004-12-09  Ravindra  <rkumar@novell.com>
10442
10443         * ToolBar.cs: Added support for displaying ContextMenu
10444         attached to a button on ToolBar.
10445         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10446         property.
10447
10448 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10449
10450         * Label.cs: autosize works in text change and removes unnecessary
10451         invalidate
10452
10453 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10454
10455         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10456         remove warnings
10457
10458 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10459
10460         * XplatUIOSX.cs: Added mouse move/click/grab support
10461         Remove some debugging WriteLines not needed anymore.
10462         Add window resizing/positioning.
10463         Fix visibility on reparenting.
10464
10465 2004-12-08  Peter Bartok  <pbartok@novell.com>
10466
10467         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10468
10469 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10470
10471         * XplatUIOSX.cs: Initial checkin
10472         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10473
10474 2004-12-03  Ravindra <rkumar@novell.com>
10475
10476         * ListView.cs: Added some keybindings and fixed scrolling.
10477         ScrollBars listen to ValueChanged event instead of Scroll
10478         Event. This would let us take care of all changes being
10479         done in the scrollbars' values programmatically or manually.
10480         * ListView.cs (CanMultiselect): Added a check for shift key.
10481         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10482         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10483         of ListViewSubItemCollection as well.
10484
10485 2004-12-06  Peter Bartok <pbartok@novell.com>
10486
10487         * Control.cs (Parent): Added check and exception to prevent
10488         circular parenting
10489
10490 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10491
10492         * ListBox.cs: implemented clipping, selection single and multiple,
10493         bug fixing
10494
10495 2004-12-03  Ravindra <rkumar@novell.com>
10496
10497         * ListView.cs (ListView_KeyDown):
10498         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10499         when CTRL key is pressed.
10500         * ListViewItem.cs (Selected): Fixed setting the property.
10501
10502 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10503
10504         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10505
10506         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10507         MinimizeBox, ShowInTaskbar, TopMost properties.
10508
10509         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10510         will be implemented).
10511
10512 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10513
10514         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10515
10516         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10517         tests.
10518         
10519         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10520         
10521         * TreeView.cs: BackColor is Colors.Window.
10522
10523 2004-12-01  Jackson Harper  <jackson@ximian.com>
10524
10525         * TreeView.cs: When resizing the tree if the user is making it
10526         smaller we don't get expose events, so we need to handle adding
10527         the horizontal scrollbar in the size changed handler as well as
10528         the expose handler.
10529
10530 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10531
10532         * DrawItemState.cs: fixes wrong enum values
10533
10534 2004-12-01  Jackson Harper  <jackson@ximian.com>
10535
10536         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10537
10538 2004-12-01  Jackson Harper  <jackson@ximian.com>
10539
10540         * NodeLabelEditEventArgs.cs:
10541         * NodeLabelEditEventHandler.cs:
10542         * OpenTreeNodeEnumerator.cs:
10543         * TreeNode.cs:
10544         * TreeNodeCollection.cs:
10545         * TreeView.cs:
10546         * TreeViewAction.cs:
10547         * TreeViewCancelEventArgs.cs:
10548         * TreeViewCancelEventHandler.cs:
10549         * TreeViewEventArgs.cs:
10550         * TreeViewEventHandler.cs: Initial implementation.
10551
10552 2004-12-01  Ravindra <rkumar@novell.com>
10553
10554         * ListView.cs (CalculateListView): Fixed scrolling related
10555         calculations. Also, removed some debug statements from other
10556         places.
10557         * ListViewItem.cs: Changed access to 'selected' instance variable
10558         from private to internal.
10559         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10560
10561 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10562
10563         * ThemeWin32Classic.cs: remove cache of brush and pens for
10564         specific controls and use the global system, fixes scrollbutton
10565         bugs (for small sizes, disabled, etc)
10566         
10567         * ScrollBar.cs: does not show the thumb for very small controls
10568         (as MS) and allow smaller buttons that the regular size
10569
10570 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10571
10572         * UpDownBase.cs: Add abstract methods for the interface.
10573         Add new virtual methods (need to be hooked up to TextEntry when it
10574         exists).
10575         Add override methods for most features.
10576         Computes the size, forces the height of the text entry.
10577
10578         * NumericUpDown.cs: Put here the current testing code.
10579
10580         * Set eol-style property on all files that do not have mixed line
10581         endings, to minimize the future problems.  There are still a few
10582         files with mixed endings, and someone should choose whether they
10583         want to move it or not.
10584
10585 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10586
10587         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10588         System.Colors
10589         
10590 2004-11-30  Ravindra <rkumar@novell.com>
10591
10592         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10593         drawing and replaced use of SystemColors by theme colors.
10594         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10595         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10596         same ListViewItem is being added more than once.
10597
10598 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10599
10600         * MonthCalendar.cs:
10601           - ControlStyles love to make the control not flicker
10602           
10603 2004-11-30  Peter Bartok  <pbartok@novell.com>
10604
10605         * CharacterCasing.cs: Added
10606
10607 2004-11-29  Peter Bartok  <pbartok@novell.com>
10608
10609         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10610           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10611           I am removing these files as they conflict with already completed
10612           work. While it is fantastic to get contributions to MWF, I
10613           respectfully ask that everyone please coordinate their contributions
10614           through mono-winforms-list or #mono-winforms at this time. We're
10615           explicitly avoiding stubbing and don't want controls that don't have
10616           their basic functionality implemented in svn. Please also see
10617           http://www.mono-project.com/contributing/winforms.html
10618
10619
10620 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10621
10622         * Application.cs (ModalRun): Don't hang after exit.
10623
10624         * Theme.cs: New TreeViewDefaultSize property.
10625
10626         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10627         with less hardcoded SystemColors constant.
10628         Implemented TreeViewDefaultSize.
10629
10630         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10631         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10632
10633
10634 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10635
10636         * MonthCalendar.cs:
10637           - Fix NextMonthDate and PrevMonthDate click moving calendar
10638
10639 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10640
10641         * MonthCalendar.cs:
10642           - Fix usage of ScrollChange Property when scrolling months
10643
10644 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10645
10646         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10647          - Fixes menu destroying
10648          - Support adding and removing items on already created menus
10649
10650 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10651
10652         * MonthCalendar.cs:
10653           - Re-worked all bolded dates handling to match win32
10654         * ThemeWin32Classic.cs:
10655           - Fixed rendering with bolded dates
10656
10657 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10658
10659         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10660         - Horizontal scroolbar
10661         - Multicolumn
10662         - Fixes
10663
10664
10665 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10666
10667         * MonthCalendar.cs:
10668           - Fix Usage of MaxSelectionCount from SelectionRange
10669           - Fixed Shift + Cursor Selection
10670           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10671           - Fixed normal cursor selection to be compat with win32
10672           - Fixed Shift + Mouse Click selection
10673
10674 2004-11-24  Peter Bartok <pbartok@novell.com>
10675
10676         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10677         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10678         * XplatUIX11.cs:
10679           - CreatedKeyBoardMsg now updates keystate with Alt key
10680           - Added workaround for timer crash to CheckTimers, Jackson will
10681             develop a proper fix and check in later
10682           - Implemented DispatchMessage
10683           - Removed calling the native window proc from GetMessage (call
10684             now moved to DispatchMessage)
10685
10686         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10687           the keydata (Fixes bug #69831)
10688
10689         * XplatUIWin32.cs:
10690           - (DispatchMessage): Switched to return IntPtr
10691           - Added DllImport for SetFocus
10692
10693 2004-11-24  Ravindra <rkumar@novell.com>
10694
10695         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10696         background drawing.
10697         * ListViewItem.cs: Fixed various properties, calculations
10698         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10699         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10700         and some internal properties. Fixed MouseDown handler and Paint
10701         method.
10702
10703 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10704
10705         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10706
10707 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10708
10709         * ContainerControl.cs: correct accidental check in of local changes
10710
10711 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10712
10713         * ThemeWin32Classic.cs:
10714                 - Fixed Drawing Last month in grid (sometimes not showing)
10715         * MonthCalendar.cs:
10716                 - Fixed title width calculation bug (makeing title small)
10717
10718 2004-11-23  Peter Bartok <pbartok@novell.com>
10719
10720         * XplatUIX11.cs:
10721           - Added generation of WM_MOUSEHOVER event
10722           - Added missing assignment of async_method atom
10723           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10724
10725 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10726
10727         * ThemeWin32Classic.cs:
10728                 - Fixed Drawing of today circle when showtodaycircle not set
10729                 - fixed drawing of first and last month in the grid (gay dates)
10730         * MonthCalendar.cs:
10731                 - Fixed Drawing of today circle
10732                 - Fixed drawing of grady dates
10733                 - Fixed HitTest for today link when ShowToday set to false
10734                 - Fixed DefaultSize to obey ShowToday
10735
10736 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10737
10738         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10739         * System.Windows.Forms/Theme.cs
10740         * MonthCalendar.cs: added for MonthCalendar
10741         * SelectionRange.cs: added for MonthCalendar
10742         * Day.cs: added for MonthCalendar: added for MonthCalendar
10743         * DateRangeEventArgs.cs: added for MonthCalendar
10744         * DateRangeEventHandler.cs: added for MonthCalendar
10745
10746 2004-11-22  Ravindra <rkumar@novell.com>
10747
10748         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10749         property.
10750
10751 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10752
10753         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10754         event handler.
10755         
10756         * NumericUpDown.cs: Added new implementation.
10757         * UpDownBase.cs: Added new implementation.
10758
10759         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10760         implementations.
10761         
10762         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10763         implementations.
10764
10765         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10766         methods.
10767
10768 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
10769
10770         * Timer.cs  (Dispose): Should call the base dispose when
10771         overriding.
10772
10773 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10774
10775         * ScrollBar.cs: updates thumb position when max, min or increment
10776         is changed
10777
10778 2004-11-21  Ravindra <rkumar@novell.com>
10779
10780         * ListView.cs: Implemented item selection, activation and
10781         column header style. Fixed properties to do a redraw, if
10782         required. Added support for MouseHover, DoubleClick, KeyDown
10783         and KeyUp event handling and some minor fixes.
10784         * ListViewItem.cs: Fixed constructor.
10785         * ThemeWin32Classic.cs: Improved drawing for ListView.
10786
10787 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10788
10789         * ThemeWin32Classic.cs: initial listbox drawing code
10790         * DrawMode.cs: new enumerator
10791         * ListControl.cs: stubbed class
10792         * ListBox.cs: initial implementation
10793         * Theme.cs: new methods definitions
10794         * SelectionMode.cs: new enumerator
10795
10796 2004-11-17  Peter Bartok  <pbartok@novell.com>
10797
10798         * XplatUIWin32.cs: Added double-click events to the class style
10799         * Control.cs (WndProc):
10800           - Added handling of click-count to MouseDown/ MouseUp events.
10801           - Added handling of middle and right mouse buttons
10802           - Removed old debug code
10803
10804 2004-11-17  Jackson Harper  <jackson@ximian.com>
10805
10806         * XplatUIX11.cs: Use the new Mono.Unix namespace.
10807
10808 2004-11-17  Ravindra <rkumar@novell.com>
10809
10810         * ListView.cs: Added event handling for MouseMove/Up/Down.
10811         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10812         * ThemeWin32Classic.cs: We need to clear the graphics context and
10813         draw column header in a proper state.
10814
10815
10816 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
10817
10818         *  Menu.cs: fixes signature
10819
10820 2004-11-16  Peter Bartok  <pbartok@novell.com>
10821
10822         * XplatUIX11.cs (GetMessage): Implemented generation of
10823           double click mouse messages
10824
10825 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
10826
10827         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10828         not by menu
10829
10830 2004-11-11  Peter Bartok  <pbartok@novell.com>
10831
10832         * HandleData.cs: Added Visible property
10833         * XplatUIX11.cs (IsVisible): Now uses Visible property from
10834           HandleData
10835         * XplatUIX11.cs: Removed old debug leftovers
10836         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10837         * Control.cs (WndProc): Removed old debug leftovers,
10838           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10839           needed WM_SIZE handling
10840
10841 2004-11-11  Jackson Harper  <jackson@ximian.com>
10842
10843         * OwnerDrawPropertyBag.cs:
10844         * TreeViewImageIndexConverter.cs: Initial implementation
10845
10846 2004-11-10  Jackson Harper  <jackson@ximian.com>
10847
10848         * ThemeWin32Classic.cs:
10849         * TabControl.cs: instead of moving tabs by the slider pos just
10850         start drawing at the tab that is offset by the slider. This way
10851         scrolling always moves by exactly one tab.
10852
10853 2004-11-10  Jackson Harper  <jackson@ximian.com>
10854
10855         * TabControl.cs: You can only scroll left when the slider has
10856         already ben moved right.
10857         
10858 2004-11-10  Jackson Harper  <jackson@ximian.com>
10859
10860         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10861         the clip area.
10862         
10863 2004-11-10  Jackson Harper  <jackson@ximian.com>
10864
10865         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10866         clip area.
10867         
10868 2004-11-09  Jackson Harper  <jackson@ximian.com>
10869
10870         * TabControl.cs (CalcXPos): New helper method so we can determine
10871         the proper place to start drawing vertical tabs.
10872         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10873         
10874 2004-11-09  Jackson Harper  <jackson@ximian.com>
10875
10876         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10877         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10878         and Bottom, left and right are illegal values for this and
10879         multiline is enabled when the alignment is set to left or right.
10880         (DrawTab): Each alignment block should draw the text itself now
10881         because Left requires special love. Also add rendering for Left
10882         aligned tabs.
10883         
10884 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
10885
10886         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10887         does not destroy the windows, removes debugging messages
10888
10889 2004-11-09  jba  <jba-mono@optusnet.com.au>
10890
10891         * ThemeWin32Classic.cs
10892         (DrawButtonBase): Fix verticle text rect clipping in windows
10893         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10894         rendering and incorrect text rect clipping
10895         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10896         rendering and incorrect text rect clipping
10897         
10898 2004-11-08  Jackson Harper  <jackson@ximian.com>
10899
10900         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10901         bottom when they are bottom aligned so the bottoms of the tabs get
10902         displayed.
10903         * TabControl.cs (DropRow): Move rows up instead of down when the
10904         tab control is bottom aligned.
10905
10906 2004-11-08 13:59  pbartok
10907
10908         * XplatUIX11.cs:
10909           - Added handling for various window styles
10910           - Added handling for popup windows
10911           - Added SetTopmost handling
10912
10913 2004-11-08 13:55  pbartok
10914
10915         * XplatUIWin32.cs:
10916           - Added argument to SetTopmost method
10917           - Fixed broken ClientToScreen function
10918
10919 2004-11-08 13:53  pbartok
10920
10921         * XplatUIStructs.cs:
10922           - Added missing WS_EX styles
10923
10924 2004-11-08 13:53  pbartok
10925
10926         * XplatUI.cs, XplatUIDriver.cs:
10927           - Added argument to SetTopmost
10928
10929 2004-11-08 13:52  pbartok
10930
10931         * X11Structs.cs:
10932           - Added XSetWindowAttributes structure
10933           - Improved XWindowAttributes structure
10934           - Added SetWindowValuemask enum
10935           - Added window creation arguments enum
10936           - Added gravity enum
10937           - Added Motif hints structure
10938           - Added various Motif flags and enums
10939           - Added PropertyMode enum for property functions
10940
10941 2004-11-08 13:50  pbartok
10942
10943         * Form.cs:
10944           - Fixed arguments for updated SetTopmost method
10945
10946 2004-11-08 13:49  pbartok
10947
10948         * ToolTip.cs:
10949           - Fixed arguments for updated SetTopmost function
10950           - Fixed usage of PointToClient
10951
10952 2004-11-08 13:44  pbartok
10953
10954         * MenuAPI.cs:
10955           - Added Clipping of children and siblings
10956
10957 2004-11-08 13:41  pbartok
10958
10959         * MainMenu.cs:
10960           - Removed SetMenuBarWindow call. We do this in Form.cs
10961
10962 2004-11-08 13:40  jackson
10963
10964         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10965           scrolling jimmi in the correct location with bottom aligned tabs
10966
10967 2004-11-08 13:36  pbartok
10968
10969         * ContainerControl.cs:
10970           - Implemented BindingContext
10971           - Implemented ParentForm
10972
10973 2004-11-08 12:46  jackson
10974
10975         * TabControl.cs: Put bottom rendered tabs in the right location
10976
10977 2004-11-08 07:15  jordi
10978
10979         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10980           removes dead code
10981
10982 2004-11-05 17:30  jackson
10983
10984         * TabControl.cs: When selected tabs are expanded make sure they
10985           don't go beyond the edges of the tab control
10986
10987 2004-11-05 14:57  jackson
10988
10989         * TabControl.cs: Reset show_slider so if the control is resized to
10990           a size where it is no longer needed it's not displayed anymore
10991
10992 2004-11-05 13:16  jackson
10993
10994         * TabControl.cs: Make tab pages non visible when added to the
10995           control
10996
10997 2004-11-05 12:42  jackson
10998
10999         * TabControl.cs: Implement SizeMode.FillToRight
11000
11001 2004-11-05 12:16  jackson
11002
11003         * Control.cs: Do not call CreateHandle if the handle is already
11004           created
11005
11006 2004-11-05 11:46  jackson
11007
11008         * TabControl.cs: Remove superflous call to CalcTabRows
11009
11010 2004-11-05 09:07  jackson
11011
11012         * XplatUIX11.cs: Update for Mono.Posix changes
11013
11014 2004-11-05 07:00  ravindra
11015
11016         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11017           scrolling.
11018
11019 2004-11-04 22:47  jba
11020
11021         * ThemeWin32Classic.cs:
11022           - Fix Button rendering for FlatStyle = Flat or Popup
11023           - Fix RadioButton and CheckBox rendering when Appearance = Button
11024             (normal and flatstyle).
11025           - Correct outer rectangle color when drawing focus rectangle
11026           - Adjust button bounds to be 1 px smaller when focused
11027           - Make button not draw sunken 3d border when pushed (windows compat)
11028           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11029           - Offset the text in RadioButton and Checkbox when being rendered as
11030           a button.
11031           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11032           radiobuttons
11033           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11034           - Fixed disabled text rendering for normally rendered radiobuttons
11035
11036 2004-11-04 10:26  jackson
11037
11038         * TabControl.cs: Recalculate tab rows when resizing
11039
11040 2004-11-04 07:47  jordi
11041
11042         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11043           collection completion, drawing issues, missing features
11044
11045 2004-11-04 05:03  ravindra
11046
11047         * ScrollBar.cs:
11048                 - We need to recalculate the Thumb area when
11049                 LargeChange/maximum/minimum values are changed.
11050           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11051                 than minimum. This is required to handle the case if large_change is
11052                 more than max, and use LargeChange property instead of large_change
11053                 variable.
11054           - We return max+1 when large_change is more than max, like MS does.
11055
11056 2004-11-04 04:29  ravindra
11057
11058         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11059                 - Changed default value signatures (prefixed all with ListView).
11060                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11061                 ListView.
11062           - Fixed calculations for ListViewItem and implemented Clone()
11063           method.
11064
11065 2004-11-04 04:26  ravindra
11066
11067         * Theme.cs, ThemeWin32Classic.cs:
11068                 - Changed default ListView values signatures (prefixed all with
11069                 ListView).
11070           - Fixed default size values for VScrollBar and HScrollBar.
11071                 - Fixed DrawListViewItem method.
11072
11073 2004-11-04 04:05  ravindra
11074
11075         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11076
11077 2004-11-04 04:04  ravindra
11078
11079         * ImageList.cs: Implemented the missing overload for Draw method.
11080
11081 2004-11-03 19:29  jackson
11082
11083         * TabControl.cs: Handle dropping rows on selection properly
11084
11085 2004-11-03 11:59  jackson
11086
11087         * TabControl.cs: remove debug code
11088
11089 2004-11-03 11:52  jackson
11090
11091         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11092           the scrolly widgerywoo
11093
11094 2004-11-02 13:52  jackson
11095
11096         * TabControl.cs: Resize the tab pages and tabs when the tab control
11097           is resized
11098
11099 2004-11-02 13:40  jackson
11100
11101         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11102           selected tab to the bottom
11103
11104 2004-11-02 13:39  jackson
11105
11106         * TabPage.cs: Store the tab pages row
11107
11108 2004-11-02 12:33  jordi
11109
11110         * MenuItem.cs: fixes handle creation
11111
11112 2004-11-02 11:42  jackson
11113
11114         * TabControl.cs: signature fix
11115
11116 2004-11-02 08:56  jackson
11117
11118         * TabControl.cs: Calculate whether the tab is on an edge properly.
11119           Remove top secret debugging code
11120
11121 2004-11-01 19:57  jackson
11122
11123         * TabControl.cs: Add click handling, and proper sizing
11124
11125 2004-11-01 19:47  jackson
11126
11127         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11128           tab controls
11129
11130 2004-11-01 19:39  jackson
11131
11132         * TabPage.cs: add internal property to store the bounds of a tab
11133           page
11134
11135 2004-10-30 04:23  ravindra
11136
11137         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11138           values.
11139
11140 2004-10-30 04:21  ravindra
11141
11142         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11143           fixed calculations.
11144
11145 2004-10-30 03:06  pbartok
11146
11147         * XplatUIX11.cs:
11148           - Removed extension of DllImported libs
11149
11150 2004-10-29 09:55  jordi
11151
11152         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11153           navigation, itemcollection completion, menu fixes
11154
11155 2004-10-27 22:58  pbartok
11156
11157         * XplatUIX11.cs:
11158           - Now throws a nice error message when no X display could be opened
11159
11160 2004-10-26 13:51  jordi
11161
11162         * ListView.cs: removes warning
11163
11164 2004-10-26 03:55  ravindra
11165
11166         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11167           ThemeWin32Classic.cs: Some formatting for my last checkins.
11168
11169 2004-10-26 03:36  ravindra
11170
11171         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11172           control and default values.
11173
11174 2004-10-26 03:35  ravindra
11175
11176         * Theme.cs: Added some default values for ListView control.
11177
11178 2004-10-26 03:33  ravindra
11179
11180         * ToolBar.cs: ToolBar should use the user specified button size, if
11181           there is any. Added a size_specified flag for the same.
11182
11183 2004-10-26 03:33  ravindra
11184
11185         * ColumnHeader.cs: Added some internal members and calculations for
11186           ColumnHeader.
11187
11188 2004-10-26 03:32  ravindra
11189
11190         * ListViewItem.cs: Calculations for ListViewItem.
11191
11192 2004-10-26 03:31  ravindra
11193
11194         * ListView.cs: Added some internal members and calculations for
11195           ListView.
11196
11197 2004-10-22 13:31  jordi
11198
11199         * MenuAPI.cs: speedup menus drawing
11200
11201 2004-10-22 13:16  jackson
11202
11203         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11204           expose event
11205
11206 2004-10-22 11:49  jackson
11207
11208         * Control.cs: oops
11209
11210 2004-10-22 11:41  jackson
11211
11212         * Control.cs: Check to see if the window should have its background
11213           repainted by X when drawing.
11214
11215 2004-10-22 11:31  jackson
11216
11217         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11218           clear is true, this way we do not get flicker from X repainting the
11219           background
11220
11221 2004-10-22 11:28  jackson
11222
11223         * XEventQueue.cs: Queue properly
11224
11225 2004-10-21 09:38  jackson
11226
11227         * XEventQueue.cs: Fix access modifier
11228
11229 2004-10-21 09:36  jackson
11230
11231         * XEventQueue.cs: Don't loose messages
11232
11233 2004-10-21 09:22  jackson
11234
11235         * XEventQueue.cs: Don't loose messages
11236
11237 2004-10-20 04:15  jordi
11238
11239         * BootMode.cs: enum need it by SystemInfo
11240
11241 2004-10-19 21:58  pbartok
11242
11243         * XplatUIWin32.cs:
11244           - Small sanity check
11245
11246 2004-10-19 21:56  pbartok
11247
11248         * Form.cs:
11249           - Added private FormParentWindow class which acts as the container
11250             for our form and as the non-client area where menus are drawn
11251           - Added/Moved required tie-ins to Jordi's menus
11252           - Fixed/Implemented the FormStartPosition functionality
11253
11254 2004-10-19 21:52  pbartok
11255
11256         * Control.cs:
11257           - Removed unneeded locals
11258           - Added code to all size and location properties to understand and
11259             deal with the parent container of Form
11260
11261 2004-10-19 21:33  pbartok
11262
11263         * Application.cs:
11264           - Fixed to deal with new Form subclasses for menus
11265
11266 2004-10-19 17:48  jackson
11267
11268         * XEventQueue.cs: commit correct version of file
11269
11270 2004-10-19 16:50  jackson
11271
11272         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11273
11274 2004-10-19 16:15  jordi
11275
11276         * MenuAPI.cs: MenuBarCalcSize returns the height
11277
11278 2004-10-19 08:31  pbartok
11279
11280         * Control.cs:
11281           - Added missing call to PreProcessMessage before calling OnXXXKey
11282           methods
11283
11284 2004-10-19 00:04  ravindra
11285
11286         * ToolTip.cs: Fixed constructor.
11287
11288 2004-10-18 09:31  jordi
11289
11290         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11291
11292 2004-10-18 09:26  jordi
11293
11294         * MenuItem.cs: fixes MenuItem class signature
11295
11296 2004-10-18 08:56  jordi
11297
11298         * MenuAPI.cs: prevents windows from showing in the taskbar
11299
11300 2004-10-18 00:28  ravindra
11301
11302         * ToolTip.cs: Suppressed a warning message.
11303
11304 2004-10-18 00:27  ravindra
11305
11306         * Control.cs: Default value of visible property must be true.
11307
11308 2004-10-17 23:19  pbartok
11309
11310         * ToolTip.cs:
11311           - Complete implementation
11312
11313 2004-10-17 23:19  pbartok
11314
11315         * XplatUIX11.cs:
11316           - Added EnableWindow method
11317           - Added SetModal stub
11318           - Added generation of WM_ACTIVATE message (still needs testing)
11319           - Added SetTopMost stub
11320           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11321
11322 2004-10-17 23:17  pbartok
11323
11324         * XplatUIWin32.cs:
11325           - Removed VirtualKeys to XplatUIStructs
11326           - Implemented SetTopMost method
11327           - Implemented EnableWindow method
11328           - Bugfix in ScreenToClient()
11329           - Bugfixes in ClientToScreen()
11330
11331 2004-10-17 22:51  pbartok
11332
11333         * XplatUIStructs.cs:
11334           - Added WS_EX styles to WindowStyles enumeration
11335
11336 2004-10-17 22:50  pbartok
11337
11338         * XplatUI.cs, XplatUIDriver.cs:
11339           - Added method for enabling/disabling windows
11340           - Added method for setting window modality
11341           - Added method for setting topmost window
11342
11343 2004-10-17 22:49  pbartok
11344
11345         * ThemeWin32Classic.cs:
11346           - Added ToolTip drawing code
11347
11348 2004-10-17 22:49  pbartok
11349
11350         * Theme.cs:
11351           - Added ToolTip abstracts
11352
11353 2004-10-17 22:47  pbartok
11354
11355         * Form.cs:
11356           - Fixed Form.ControlCollection to handle owner relations
11357           - Added Owner/OwnedForms handling
11358           - Implemented Z-Ordering for owned forms
11359           - Removed unneeded private overload of ShowDialog
11360           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11361             so I hope)
11362           - Fixed Close(), had wrong default
11363           - Added firing of OnLoad event
11364           - Added some commented out debug code for Ownership handling
11365
11366 2004-10-17 22:16  pbartok
11367
11368         * Control.cs:
11369           - Fixed/implemented flat list of controls
11370
11371 2004-10-17 22:14  pbartok
11372
11373         * Application.cs:
11374           - Added code to simulate modal dialogs on Win32
11375
11376 2004-10-17 16:11  jordi
11377
11378         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11379           mouse event
11380
11381 2004-10-17 13:39  jordi
11382
11383         * MenuAPI.cs: menu drawing fixes
11384
11385 2004-10-15 09:10  ravindra
11386
11387         * StructFormat.cs: General Enum.
11388
11389 2004-10-15 09:09  ravindra
11390
11391         * SizeGripStyle.cs: Enum for Form.
11392
11393 2004-10-15 09:08  ravindra
11394
11395         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11396           in Theme for ListView.
11397
11398 2004-10-15 09:06  ravindra
11399
11400         * ColumnHeader.cs: Flushing some formatting changes.
11401
11402 2004-10-15 09:05  ravindra
11403
11404         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11405           style.
11406
11407 2004-10-15 09:03  ravindra
11408
11409         * ListView.cs: Implemented Paint method and fixed coding style.
11410
11411 2004-10-15 07:34  jordi
11412
11413         * MenuAPI.cs: fix for X11
11414
11415 2004-10-15 07:32  ravindra
11416
11417         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11418                 - Renamed Paint() method to Draw() for clarity. Also, moved
11419                 DrawImage() to OnPaint().
11420
11421 2004-10-15 07:25  ravindra
11422
11423         * CheckBox.cs, RadioButton.cs:
11424                 - Removed Redraw (), we get it from ButtonBase.
11425                 - Implemented Paint (), to do class specific painting.
11426
11427 2004-10-15 07:16  ravindra
11428
11429         * ButtonBase.cs:
11430                 - Redraw () is not virtual now.
11431                 - Added an internal virtual method Paint (), so that
11432                 derived classes can do their painting on their own.
11433                 - Modified OnPaint () to call Paint ().
11434
11435 2004-10-15 06:43  jordi
11436
11437         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11438           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11439
11440 2004-10-15 00:30  ravindra
11441
11442         * MessageBox.cs:
11443                 - MessageBox on windows does not have min/max buttons.
11444                 This change in CreateParams fixes this on Windows. We
11445                 still need to implement this windowstyle behavior in
11446                 our X11 driver.
11447
11448 2004-10-14 05:14  ravindra
11449
11450         * ToolBar.cs:
11451                 - Changed Redraw () to do a Refresh () always.
11452                 - Fixed the MouseMove event handling when mouse is pressed,
11453                 ie drag event handling.
11454                 - Replaced the usage of ToolBarButton.Pressed property to
11455                 ToolBarButton.pressed internal variable.
11456
11457 2004-10-14 05:10  ravindra
11458
11459         * ToolBarButton.cs:
11460                 - Added an internal member 'inside' to handle mouse move
11461                 with mouse pressed ie mouse drag event.
11462                 - Changed 'Pressed' property to return true only when
11463                 'inside' and 'pressed' are both true.
11464                 - Some coding style love.
11465
11466 2004-10-14 00:17  ravindra
11467
11468         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11469           public method.
11470
11471 2004-10-14 00:15  ravindra
11472
11473         * ButtonBase.cs: Redraw () related improvements.
11474
11475 2004-10-14 00:14  ravindra
11476
11477         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11478           removed unnecessary calls to Button.Show () method.
11479
11480 2004-10-13 17:50  pbartok
11481
11482         * XplatUIX11.cs:
11483           - Formatting fix
11484           - Removed destroying of window until we solve the problem of X
11485             destroying the window before us on shutdown
11486
11487 2004-10-13 16:32  pbartok
11488
11489         * ButtonBase.cs:
11490           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11491
11492 2004-10-13 14:18  pbartok
11493
11494         * XplatUIX11.cs:
11495           - Added code to destroy the X window
11496
11497 2004-10-13 14:18  pbartok
11498
11499         * XplatUIWin32.cs:
11500           - Added code to destroy a window
11501
11502 2004-10-13 14:12  pbartok
11503
11504         * ButtonBase.cs:
11505           - Added the Redraw on Resize that got dropped in the last rev
11506
11507 2004-10-13 09:06  pbartok
11508
11509         * ThemeWin32Classic.cs:
11510           - Path from John BouAntoun:
11511             * Fix check rendering (centre correctly for normal style, offset
11512               correctly for FlatStyle).
11513             * Fix border color usage (use backcolor) for FlatStyle.Popup
11514             * Use checkbox.Capture instead of checkbox.is_pressed when
11515               rendering flatstyle states.
11516
11517 2004-10-12 21:48  pbartok
11518
11519         * ThemeWin32Classic.cs:
11520           - Removed all occurences of SystemColors and replaced them with the
11521             matching theme color
11522
11523 2004-10-12 21:41  pbartok
11524
11525         * ThemeWin32Classic.cs:
11526           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11527             him using the function for flatstyle drawing
11528           - Changed functions to use the new version of CPDrawBorder3D
11529
11530 2004-10-12 21:15  pbartok
11531
11532         * ControlPaint.cs:
11533           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11534             match MS documentation. They need to return defined colors if the
11535             passed color matches the configured control color. Thanks to John
11536             BouAntoun for pointing this out.
11537
11538 2004-10-12 20:57  pbartok
11539
11540         * Control.cs:
11541           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11542             color is changed
11543
11544 2004-10-12 20:46  pbartok
11545
11546         * CheckBox.cs:
11547           - Fix from John BouAntoun: Now properly sets the Appearance property
11548
11549 2004-10-12 20:45  pbartok
11550
11551         * ThemeWin32Classic.cs:
11552           - Fixes from John BouAntoun: now handles forecolors and backcolors
11553             for flatstyle rendered controls much better; It also fixes normal
11554             checkbox rendering when pushed or disabled.
11555
11556 2004-10-08 02:50  jordi
11557
11558         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11559           work
11560
11561 2004-10-07 08:56  jordi
11562
11563         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11564
11565 2004-10-06 03:59  jordi
11566
11567         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11568           XplatUIWin32.cs: removes warnings from compilation
11569
11570 2004-10-05 12:23  jackson
11571
11572         * RadioButton.cs: Fix ctor
11573
11574 2004-10-05 11:10  pbartok
11575
11576         * MessageBox.cs:
11577           - Partial implementation by Benjamin Dasnois
11578
11579 2004-10-05 10:15  jackson
11580
11581         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11582           by John BouAntoun
11583
11584 2004-10-05 03:07  ravindra
11585
11586         * ToolBar.cs:
11587                 - Removed a private method, Draw ().
11588                 - Fixed the ButtonDropDown event handling.
11589                 - Fixed MouseMove event handling.
11590
11591 2004-10-05 03:04  ravindra
11592
11593         * ThemeWin32Classic.cs:
11594                 - Added DrawListView method and ListViewDefaultSize property.
11595                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11596                 - Changed DOS style CRLF to Unix format (dos2unix).
11597
11598 2004-10-05 03:03  ravindra
11599
11600         * Theme.cs:
11601                 - Added DrawListView method and ListViewDefaultSize property.
11602
11603 2004-10-05 02:42  ravindra
11604
11605         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11606           clicks on DropDown arrow.
11607
11608 2004-10-04 22:56  jackson
11609
11610         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11611           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11612           Control handle the buffers, derived classes should not have to
11613           CreateBuffers themselves.
11614
11615 2004-10-04 21:20  jackson
11616
11617         * StatusBar.cs: The control handles resizing the buffers now.
11618
11619 2004-10-04 21:18  jackson
11620
11621         * Control.cs: When resizing the buffers should be invalidated. This
11622           should be handled in Control not in derived classes.
11623
11624 2004-10-04 14:45  jackson
11625
11626         * TabPage.cs: oops
11627
11628 2004-10-04 02:14  pbartok
11629
11630         * LeftRightAlignment.cs:
11631           - Initial check-in
11632
11633 2004-10-04 01:09  jordi
11634
11635         * ThemeWin32Classic.cs: fixes right button position causing right
11636           button not showing on horizontal scrollbars
11637
11638 2004-10-02 13:12  pbartok
11639
11640         * XplatUIX11.cs:
11641           - Simplified the Invalidate method by using an X call instead of
11642             generating the expose ourselves
11643           - Added an expose when the window background is changed
11644           - Implemented ClientToScreen method
11645
11646 2004-10-02 13:08  pbartok
11647
11648         * XplatUIWin32.cs:
11649           - Added Win32EnableWindow method (test for implementing modal
11650           dialogs)
11651           - Added ClientToScreen method and imports
11652
11653 2004-10-02 13:07  pbartok
11654
11655         * XplatUI.cs, XplatUIDriver.cs:
11656           - Added ClientToScreen coordinate translation method
11657
11658 2004-10-02 13:06  pbartok
11659
11660         * KeyPressEventArgs.cs:
11661           - Fixed access level for constructor
11662
11663 2004-10-02 13:06  pbartok
11664
11665         * NativeWindow.cs:
11666           - Changed access level for the window_collection hash table
11667
11668 2004-10-02 13:05  pbartok
11669
11670         * Form.cs:
11671           - Added KeyPreview property
11672           - Added Menu property (still incomplete, pending Jordi's menu work)
11673           - Implemented ProcessCmdKey
11674           - Implemented ProcessDialogKey
11675           - Implemented ProcessKeyPreview
11676
11677 2004-10-02 13:02  pbartok
11678
11679         * Control.cs:
11680           - Added private method to get the Control object from the window
11681           handle
11682           - Implemented ContextMenu property
11683           - Implemented PointToScreen
11684           - Implemented PreProcessMessage
11685           - Implemented IsInputChar
11686           - Implemented IsInputKey
11687           - Implemented ProcessCmdKey
11688           - Completed ProcessKeyEventArgs
11689           - Fixed message loop to call the proper chain of functions on key
11690           events
11691           - Implemented ProcessDialogChar
11692           - Implemented ProcessDialogKey
11693           - Implemented ProcessKeyMessage
11694           - Implemented ProcessKeyPreview
11695           - Added RaiseDragEvent stub (MS internal method)
11696           - Added RaiseKeyEvent stub (MS internal method)
11697           - Added RaiseMouseEvent stub (MS Internal method)
11698           - Added RaisePaintEvent stub (MS Internal method)
11699           - Added ResetMouseEventArgs stub (MS Internal method)
11700           - Implemented RtlTranslateAlignment
11701           - Implemented RtlTranslateContent
11702           - Implemented RtlTranslateHorizontal
11703           - Implemented RtlTranslateLeftRight
11704           - Added generation of KeyPress event
11705
11706 2004-10-02 05:57  ravindra
11707
11708         * ListViewItem.cs: Added attributes.
11709
11710 2004-10-02 05:32  ravindra
11711
11712         * ListView.cs: Added attributes.
11713
11714 2004-10-01 11:53  jackson
11715
11716         * Form.cs: Implement the Close method so work on MessageBox can
11717           continue.
11718
11719 2004-09-30 14:06  pbartok
11720
11721         * XplatUIX11.cs:
11722           - Bug fixes
11723
11724 2004-09-30 11:34  jackson
11725
11726         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11727
11728 2004-09-30 07:26  ravindra
11729
11730         * ListViewItemConverter.cs: Converter for ListViewItem.
11731
11732 2004-09-30 07:26  ravindra
11733
11734         * SortOrder.cs: Enum for ListView control.
11735
11736 2004-09-30 07:25  ravindra
11737
11738         * ColumnHeader.cs: Supporting class for ListView control.
11739
11740 2004-09-30 07:24  ravindra
11741
11742         * ListView.cs, ListViewItem.cs: Initial implementation.
11743
11744 2004-09-30 07:20  ravindra
11745
11746         * ItemActivation.cs: Enum for ListView Control.
11747
11748 2004-09-29 20:29  pbartok
11749
11750         * XplatUIX11.cs:
11751           - Added lookup of pixel value for background color; tries to get a
11752             color 'close' to the requested color, it avoids having to create a
11753             colormap.  Depending on the display this could mean the used color
11754             is slightly off the desired color. Might have to change it to a more
11755             resource intensive colormap approach, but it will work as a
11756           workaround to avoid red screens.
11757
11758 2004-09-29 14:27  jackson
11759
11760         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11761
11762 2004-09-28 12:44  pbartok
11763
11764         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11765           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11766           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11767           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11768           TrackBar.cs, VScrollBar.cs:
11769           - Streamlined Theme interfaces:
11770             * Each DrawXXX method for a control now is passed the object for
11771               the control to be drawn in order to allow accessing any state the
11772               theme might require
11773
11774             * ControlPaint methods for the theme now have a CP prefix to avoid
11775               name clashes with the Draw methods for controls
11776
11777             * Every control now retrieves it's DefaultSize from the current
11778             theme
11779
11780 2004-09-28 12:17  jackson
11781
11782         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11783           drawing
11784
11785 2004-09-24 14:57  jackson
11786
11787         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11788           Gives us a nice little performance boost.
11789
11790 2004-09-24 12:02  jackson
11791
11792         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11793           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11794           Control and supporting classes. Initial checkin
11795
11796 2004-09-23 13:08  jackson
11797
11798         * Form.cs: Temp build fixage
11799
11800 2004-09-23 01:39  ravindra
11801
11802         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11803           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11804           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11805           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11806           EventHandlers needed by ListView Control.
11807
11808 2004-09-22 14:12  pbartok
11809
11810         * ScrollableControl.cs:
11811           - Implemented DockPadding property
11812           - Implemented AutoScroll property
11813           - Implemented AutoScrollMargin property
11814           - Implemented AutoScrollMinSize property
11815           - Implemented AutoScrollPosition property
11816           - Implemented DisplayRectangle property (still incomplete)
11817           - Implemented CreateParams property
11818           - Implemented HScroll property
11819           - Implemented VScroll property
11820           - Implemented OnVisibleChanged property
11821
11822 2004-09-22 14:09  pbartok
11823
11824         * Form.cs:
11825           - Added Form.ControllCollection class
11826           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11827             RemoveOwnedForm (still incomplete, missing on-top and common
11828             minimize/maximize behaviour)
11829           - Added StartPosition property (still incomplete, does not use when
11830             creating the form)
11831           - Added ShowDialog() methods (still incomplete, missing forcing the
11832             dialog modal)
11833
11834 2004-09-22 14:05  pbartok
11835
11836         * Application.cs:
11837           - Added message loop for modal dialogs
11838
11839 2004-09-22 14:02  pbartok
11840
11841         * GroupBox.cs:
11842           - Fixed wrong types for events
11843
11844 2004-09-22 14:00  pbartok
11845
11846         * Shortcut.cs, FormWindowState.cs:
11847           - Fixed wrong values
11848
11849 2004-09-22 12:01  jackson
11850
11851         * Control.cs: Text is never null
11852
11853 2004-09-20 22:14  pbartok
11854
11855         * XplatUIWin32.cs:
11856           - Fixed accessibility level for Idle handler
11857
11858 2004-09-20 18:54  jackson
11859
11860         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11861           XplatUIX11.cs: New message loop that uses poll so we don't get a
11862           busy loop
11863
11864 2004-09-17 10:43  pbartok
11865
11866         * ScrollBar.cs:
11867           - Fixed behaviour of arrow buttons. Now properly behaves like
11868             Buttons (and like Microsoft's scrollbar arrow buttons)
11869
11870 2004-09-17 10:14  pbartok
11871
11872         * ScrollBar.cs:
11873           - Added missing release of keyboard/mouse capture
11874
11875 2004-09-17 06:18  jordi
11876
11877         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11878           Theme.cs: Very early menu support
11879
11880 2004-09-16 17:45  pbartok
11881
11882         * XplatUIWin32.cs:
11883           - Fixed sending a window to the front
11884           - Added overload for SetWindowPos to avoid casting
11885
11886 2004-09-16 17:44  pbartok
11887
11888         * Control.cs:
11889           - Added SendToBack and BringToFront methods
11890
11891 2004-09-16 07:00  ravindra
11892
11893         * Copyright: Added Novell URL.
11894
11895 2004-09-16 07:00  ravindra
11896
11897         * ToolBar.cs: Invalidate should be done before redrawing.
11898
11899 2004-09-15 21:19  ravindra
11900
11901         * ColumnHeaderStyle.cs: Enum for ListView Control.
11902
11903 2004-09-15 21:18  ravindra
11904
11905         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11906           ListView Control.
11907
11908 2004-09-13 18:26  jackson
11909
11910         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11911           properly
11912
11913 2004-09-13 18:13  jackson
11914
11915         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11916           a second thread and post messages into the main threads message
11917           queue. This makes timing much more consistent. Both win2K and XP
11918           have a minimum timer value of 15 milliseconds, so we now do this
11919           too.
11920
11921 2004-09-13 15:18  pbartok
11922
11923         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11924           XplatUIX11.cs:
11925           - Added Z-Ordering methods
11926
11927 2004-09-13 10:56  pbartok
11928
11929         * Form.cs:
11930           - Fixed #region names
11931           - Moved properties and methods into their proper #regions
11932
11933 2004-09-13 10:51  pbartok
11934
11935         * Form.cs:
11936           - Added Accept and CancelButton properties
11937           - Added ProcessDialogKey() method
11938
11939 2004-09-13 08:18  pbartok
11940
11941         * IWindowTarget.cs:
11942           - Initial check-in
11943
11944 2004-09-10 21:50  pbartok
11945
11946         * Control.cs:
11947           - Added DoDragDrop() [incomplete]
11948           - Properly implemented 'Visible' handling
11949           - Added SetVisibleCore()
11950           - Implemented FindChildAtPoint()
11951           - Implemented GetContainerControl()
11952           - Implemented Hide()
11953
11954 2004-09-10 19:28  pbartok
11955
11956         * Control.cs:
11957           - Moved methods into their appropriate #regions
11958           - Reordered methods within regions alphabetically
11959
11960 2004-09-10 18:57  pbartok
11961
11962         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11963           - Added method to retrieve text from window
11964
11965 2004-09-10 18:56  pbartok
11966
11967         * Control.cs:
11968           - Moved some internal functions into the internal region
11969           - Implemented FontHeight
11970           - Implemented RenderRightToLeft
11971           - Implemented ResizeRedraw
11972           - Implemented ShowFocusCues
11973           - Implemented ShowKeyboardCues
11974           - Implemented FromChildHandle
11975           - Implemented FromHandle
11976           - Implemented IsMnemonic
11977           - Implemented ReflectMessage
11978           - All public and protected Static Methods are now complete
11979
11980 2004-09-10 16:54  pbartok
11981
11982         * Control.cs:
11983           - Implemented remaining missing public instance properties
11984           - Alphabetized some out of order properties
11985
11986 2004-09-10 05:51  ravindra
11987
11988         * PictureBox.cs: Added a check for null image.
11989
11990 2004-09-10 00:59  jordi
11991
11992         * GroupBox.cs: remove cvs tag
11993
11994 2004-09-09 05:25  ravindra
11995
11996         * ToolBar.cs: Make redraw accessible from ToolBarButton.
11997
11998 2004-09-09 05:23  ravindra
11999
12000         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12001           parent redraw.
12002
12003 2004-09-09 02:28  pbartok
12004
12005         * ThemeWin32Classic.cs:
12006           - Improve disabled string look
12007
12008 2004-09-09 01:15  jordi
12009
12010         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12011           args and handler
12012
12013 2004-09-08 23:56  ravindra
12014
12015         * ItemBoundsPortion.cs: It's enum, not a class!
12016
12017 2004-09-08 23:47  ravindra
12018
12019         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12020           Enums for Form.
12021
12022 2004-09-08 21:13  ravindra
12023
12024         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12025           ListView control.
12026
12027 2004-09-08 21:03  ravindra
12028
12029         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12030           avoid crash.
12031
12032 2004-09-08 21:01  ravindra
12033
12034         * ScrollableControl.cs: Removed unreachable code.
12035
12036 2004-09-08 06:45  jordi
12037
12038         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12039
12040 2004-09-08 01:00  jackson
12041
12042         * XplatUIX11.cs: Only run the timers when updating the message
12043           queue. This effectively gives X messages a higher priority then
12044           timer messages. Timers still need love though
12045
12046 2004-09-07 14:01  jackson
12047
12048         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12049           this for us and the handle is no longer valid.
12050
12051 2004-09-07 13:59  jackson
12052
12053         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12054           loop that manages to not crash. TODO: Add poll and cleanup timers
12055
12056 2004-09-07 11:12  jordi
12057
12058         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12059
12060 2004-09-07 03:40  jordi
12061
12062         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12063           fixes, methods, multiple links
12064
12065 2004-09-06 06:55  jordi
12066
12067         * Control.cs: Caches ClientRectangle rectangle value
12068
12069 2004-09-05 02:03  jordi
12070
12071         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12072           certain situations
12073
12074 2004-09-04 11:10  jordi
12075
12076         * Label.cs: Refresh when font changed
12077
12078 2004-09-02 16:24  pbartok
12079
12080         * Control.cs:
12081           - Added sanity check to creation of double buffer bitmap
12082
12083 2004-09-02 16:24  pbartok
12084
12085         * ButtonBase.cs:
12086           - Fixed selection of text color
12087           - Fixed handling of resize event; now properly recreates double
12088             buffering bitmap
12089           - Added missing assignment of TextAlignment
12090           - Added proper default for TextAlignment
12091
12092 2004-09-02 14:26  pbartok
12093
12094         * RadioButton.cs:
12095           - Added missing RadioButton.RadioButtonAccessibleObject class
12096
12097 2004-09-02 14:26  pbartok
12098
12099         * Control.cs:
12100           - Added missing Control.ControlAccessibleObject class
12101           - Started to implement Select()ion mechanisms, still very incomplete
12102
12103 2004-09-02 14:25  pbartok
12104
12105         * AccessibleObject.cs:
12106           - Added missing methods
12107
12108 2004-09-02 14:23  pbartok
12109
12110         * AccessibleNavigation.cs, AccessibleSelection.cs:
12111           - Initial check-in
12112
12113 2004-09-02 10:32  jordi
12114
12115         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12116           pool for pens, brushes, and hatchbruses
12117
12118 2004-09-01 15:30  jackson
12119
12120         * StatusBar.cs: Fix typo
12121
12122 2004-09-01 14:44  pbartok
12123
12124         * RadioButton.cs:
12125           - Fixed state
12126
12127 2004-09-01 14:39  pbartok
12128
12129         * Button.cs, RadioButton.cs:
12130           - Functional initial check-in
12131
12132 2004-09-01 14:01  pbartok
12133
12134         * CheckBox.cs:
12135           - Added missing default
12136           - Added missing region mark
12137
12138 2004-09-01 09:10  jordi
12139
12140         * Label.cs: fixes method signatures, new methods, events, fixes
12141           autosize
12142
12143 2004-09-01 07:19  jordi
12144
12145         * Control.cs: Init string variables with an empty object
12146
12147 2004-09-01 04:20  jordi
12148
12149         * Control.cs: fires OnFontChanged event
12150
12151 2004-08-31 20:07  pbartok
12152
12153         * ButtonBase.cs:
12154           - Enabled display of strings
12155
12156 2004-08-31 20:05  pbartok
12157
12158         * Form.cs:
12159           - Added (partial) implementation of DialogResult; rest needs to be
12160             implemented when the modal loop code is done
12161
12162 2004-08-31 19:55  pbartok
12163
12164         * CheckBox.cs:
12165           - Fixed to match the removal of the needs_redraw concept
12166
12167 2004-08-31 19:55  pbartok
12168
12169         * ButtonBase.cs:
12170           - Removed the rather odd split between 'needs redraw' and redrawing
12171           - Now handles the events that require regeneration (ambient
12172             properties and size)
12173
12174 2004-08-31 19:41  pbartok
12175
12176         * Control.cs:
12177           - Added firing of BackColorChanged event
12178           - Added TopLevelControl property
12179           - Fixed handling of WM_ERASEBKGRND message
12180
12181 2004-08-31 12:49  pbartok
12182
12183         * ButtonBase.cs:
12184           - Removed debug
12185           - Minor fixes
12186
12187 2004-08-31 12:48  pbartok
12188
12189         * CheckBox.cs:
12190           - Finished (famous last words)
12191
12192 2004-08-31 04:35  jordi
12193
12194         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12195           scrolling bugs, adds new methods
12196
12197 2004-08-30 14:42  pbartok
12198
12199         * CheckBox.cs:
12200           - Implemented CheckBox drawing code
12201
12202 2004-08-30 14:42  pbartok
12203
12204         * ButtonBase.cs:
12205           - Made Redraw() and CheckRedraw() virtual
12206           - Improved mouse up/down/move logic to properly track buttons
12207
12208 2004-08-30 09:44  pbartok
12209
12210         * CheckBox.cs:
12211           - Updated to fix broken build. Not complete yet.
12212
12213 2004-08-30 09:28  pbartok
12214
12215         * CheckState.cs:
12216           - Initial checkin
12217
12218 2004-08-30 09:17  pbartok
12219
12220         * Appearance.cs:
12221           - Initial check-in
12222
12223 2004-08-27 16:12  ravindra
12224
12225         * ToolBarButton.cs: Added TypeConverter attribute.
12226
12227 2004-08-27 16:07  ravindra
12228
12229         * ImageIndexConverter.cs: Implemented.
12230
12231 2004-08-27 14:17  pbartok
12232
12233         * Control.cs:
12234           - Removed unneeded stack vars
12235           - First attempt to fix sizing issues when layout is suspended
12236
12237 2004-08-25 15:35  jordi
12238
12239         * ScrollBar.cs: more fixes to scrollbar
12240
12241 2004-08-25 14:04  ravindra
12242
12243         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12244           Added the missing divider code and grip for ToolBar Control.
12245
12246 2004-08-25 13:20  pbartok
12247
12248         * Control.cs:
12249           - Control now properly passes the ambient background color to child
12250             controls
12251
12252 2004-08-25 13:20  jordi
12253
12254         * ScrollBar.cs: small bug fix regarding bar position
12255
12256 2004-08-25 12:33  pbartok
12257
12258         * Timer.cs:
12259           - Now only calls SetTimer or KillTimer if the enabled state has
12260           changed
12261
12262 2004-08-25 12:33  pbartok
12263
12264         * XplatUIWin32.cs:
12265           - Fixed timer handling, now seems to work
12266           - Improved error message for window creation
12267
12268 2004-08-25 12:32  pbartok
12269
12270         * Control.cs:
12271           - Fixed generation of MouseUp message
12272
12273 2004-08-25 12:29  jordi
12274
12275         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12276           and fixes for progressbar
12277
12278 2004-08-24 18:43  ravindra
12279
12280         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12281           in ToolBar control.
12282
12283 2004-08-24 17:15  pbartok
12284
12285         * Panel.cs:
12286           - Added #region
12287           - Added missing events
12288           - Alphabetized
12289
12290 2004-08-24 17:14  pbartok
12291
12292         * StatusBar.cs, PictureBox.cs:
12293           - Now uses Control's CreateParams
12294
12295 2004-08-24 16:36  pbartok
12296
12297         * XplatUIX11.cs:
12298           - Fixed background color handling
12299           - Fixed sending of enter/leave events on a grab
12300
12301 2004-08-24 16:35  pbartok
12302
12303         * X11Structs.cs:
12304           - Refined definitions for CrossingEvent
12305
12306 2004-08-24 12:37  jordi
12307
12308         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12309           formmating, methods signature, and adds missing events
12310
12311 2004-08-24 12:24  jordi
12312
12313         * Control.cs: fire OnEnabledChanged event
12314
12315 2004-08-24 11:17  pbartok
12316
12317         * XplatUIWin32.cs:
12318           - Implemented SetTimer() and KillTimer()
12319
12320 2004-08-24 11:16  pbartok
12321
12322         * XplatUIX11.cs:
12323           - Now uses Remove instead of Add to kill the timer
12324
12325 2004-08-24 10:16  jackson
12326
12327         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12328           picture boxes in the theme now. Draw picture box borders and obey
12329           sizing modes
12330
12331 2004-08-24 05:49  jackson
12332
12333         * Timer.cs: Remove top secret debugging code
12334
12335 2004-08-24 05:34  jackson
12336
12337         * PictureBox.cs: Temp hack to make picture boxes draw their full
12338           image
12339
12340 2004-08-24 05:29  jackson
12341
12342         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12343           XplatUIX11.cs: Move timers to the driver level. On X they are
12344           queued by the driver and checked on idle.
12345
12346 2004-08-24 01:07  jackson
12347
12348         * XplatUIX11.cs: Use a queue for async messages instead of passing
12349           them as ClientMessages since that was totally broken. Also simply
12350           check for events and return an idle message if none are found. This
12351           gives us an idle handler, and prevents deadlocking when no messages
12352           are in the queue.
12353
12354 2004-08-23 18:19  ravindra
12355
12356         * XplatUIWin32.cs: Removed the unwanted destructor.
12357
12358 2004-08-23 17:27  pbartok
12359
12360         * ButtonBase.cs:
12361           - Finishing touches. Works now, just needs some optimizations.
12362
12363 2004-08-23 16:53  jordi
12364
12365         * ScrollBar.cs: small fix
12366
12367 2004-08-23 16:45  pbartok
12368
12369         * Application.cs:
12370           - Removed debug output
12371           - Simplifications
12372
12373 2004-08-23 16:43  jordi
12374
12375         * ScrollBar.cs: [no log message]
12376
12377 2004-08-23 16:10  pbartok
12378
12379         * Form.cs:
12380           - Fixed handling of WM_CLOSE message
12381           - Removed debug output
12382
12383 2004-08-23 16:09  pbartok
12384
12385         * Application.cs:
12386           - Added handling of Idle event
12387           - Added handling of form closing
12388           - Fixed reporting of MessageLoop property
12389           - Removed some unneeded code, should provide a bit of a speedup
12390
12391 2004-08-23 15:22  pbartok
12392
12393         * Control.cs:
12394           - Added InitLayout() method
12395           - Added code to properly perform layout when Anchor or Dock property
12396             is changed
12397           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12398             LAMESPEC, tried to do it in a way that makes sense
12399
12400 2004-08-23 14:10  jordi
12401
12402         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12403           properties and methods
12404
12405 2004-08-23 13:55  pbartok
12406
12407         * Control.cs:
12408           - Properly fixed Jordi's last fix
12409           - Now uses Cursor's Position property instead of calling XplatUI
12410           directly
12411
12412 2004-08-23 13:44  jordi
12413
12414         * PaintEventHandler.cs: Adding missing attribute
12415
12416 2004-08-23 13:39  pbartok
12417
12418         * Cursor.cs:
12419           - Implemented Position property
12420
12421 2004-08-23 13:39  pbartok
12422
12423         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12424           - Added method to move mouse cursor
12425
12426 2004-08-23 13:39  pbartok
12427
12428         * XplatUIX11.cs:
12429           - Fixed setting of background color
12430           - Added method to move mouse cursor
12431
12432 2004-08-23 13:16  jordi
12433
12434         * Control.cs: avoids null exception
12435
12436 2004-08-22 17:46  jackson
12437
12438         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12439           PictureBox
12440
12441 2004-08-22 17:40  jackson
12442
12443         * XplatUIX11.cs: Add some missing locks
12444
12445 2004-08-22 15:10  pbartok
12446
12447         * Control.cs, Form.cs:
12448           - Removed OverlappedWindow style from Control, instead it's default
12449             now is child
12450           - Made form windows OverlappedWindow by default
12451
12452 2004-08-22 13:34  jackson
12453
12454         * ScrollBar.cs: Update the position through the Value property so
12455           the OnValueChanged event is raised.
12456
12457 2004-08-22 12:04  pbartok
12458
12459         * SWF.csproj:
12460           - Added Cursor.cs and UserControl.cs
12461
12462 2004-08-22 12:03  pbartok
12463
12464         * Cursor.cs:
12465           - Started implementation, not usable yet
12466
12467 2004-08-22 12:00  pbartok
12468
12469         * UserControl.cs:
12470           - Implemented UserControl (complete)
12471
12472 2004-08-21 19:20  ravindra
12473
12474         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12475
12476 2004-08-21 18:49  ravindra
12477
12478         * ToolBar.cs: Probably this completes the missing attributes in
12479           toolbar control.
12480
12481 2004-08-21 18:03  ravindra
12482
12483         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12484           Fixed toolbar control signatures.
12485
12486 2004-08-21 16:32  pbartok
12487
12488         * LinkLabel.cs:
12489           - Signature Fixes
12490
12491 2004-08-21 16:30  pbartok
12492
12493         * Label.cs:
12494           - Signature fixes
12495
12496 2004-08-21 16:19  pbartok
12497
12498         * Control.cs, Label.cs:
12499           - Signature fixes
12500
12501 2004-08-21 15:57  pbartok
12502
12503         * ButtonBase.cs:
12504           - Added loads of debug output for development
12505           - Fixed typo in method name
12506
12507 2004-08-21 15:52  pbartok
12508
12509         * ToolBarButtonClickEventArgs.cs:
12510           - Added missing base class
12511
12512 2004-08-21 14:53  pbartok
12513
12514         * Control.cs:
12515           - Updated to match new GrabWindow signature
12516
12517 2004-08-21 14:51  pbartok
12518
12519         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12520           - Added method to get default display size
12521
12522 2004-08-21 14:23  pbartok
12523
12524         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12525           - Added method to query current grab state
12526           - Added argument to allow confining a grab to a window
12527
12528 2004-08-21 14:22  pbartok
12529
12530         * Keys.cs:
12531           - Added [Flags] attribute so that modifiers can be used in bitwise
12532           ops
12533
12534 2004-08-21 14:21  pbartok
12535
12536         * TrackBar.cs, ScrollBar.cs:
12537           - Replaced direct XplatUI calls with their Control counterpart
12538
12539 2004-08-21 13:32  pbartok
12540
12541         * Control.cs:
12542           - Implemented Created property
12543
12544 2004-08-21 13:28  pbartok
12545
12546         * Control.cs:
12547           - Implemented ContainsFocus
12548
12549 2004-08-21 13:26  pbartok
12550
12551         * Control.cs:
12552           - Implemented CausesValidation
12553
12554 2004-08-21 13:21  pbartok
12555
12556         * Control.cs:
12557           - Implemented CanFocus
12558           - Implemented CanSelect
12559           - Implemented Capture
12560
12561 2004-08-21 12:35  pbartok
12562
12563         * XplatUIWin32.cs:
12564           - Fixed bug with Async message handling
12565           - Implemented getting the ModifierKeys
12566
12567 2004-08-21 12:32  jackson
12568
12569         * AsyncMethodResult.cs: Make sure we have the mutex before we
12570           release it. Fixes BeginInvoke on windows
12571
12572 2004-08-21 11:31  pbartok
12573
12574         * XplatUIWin32.cs, XplatUIX11.cs:
12575           - Drivers now return proper mouse state
12576
12577 2004-08-21 10:54  jackson
12578
12579         * Control.cs: Implement EndInvoke
12580
12581 2004-08-21 10:48  jackson
12582
12583         * Timer.cs: Remove unneeded finalizer
12584
12585 2004-08-20 19:52  ravindra
12586
12587         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12588           in mouse event handling in the ToolBar control.
12589
12590 2004-08-20 19:50  ravindra
12591
12592         * ImageList.cs: Changed draw method to use the arguments passed in
12593           to draw the image.
12594
12595 2004-08-20 18:58  pbartok
12596
12597         * XplatUIStructs.cs:
12598           - Added private message for async communication
12599
12600 2004-08-20 17:38  ravindra
12601
12602         * Control.cs: Made RightToLeft property virtual and removed a
12603           Console.WriteLine.
12604
12605 2004-08-20 14:39  jordi
12606
12607         * ThemeGtk.cs: use style_attach
12608
12609 2004-08-20 14:39  pbartok
12610
12611         * XplatUIWin32.cs:
12612           - Added jackson's Async code from X11 to Win32
12613
12614 2004-08-20 14:09  pbartok
12615
12616         * SWF.csproj:
12617           - Added all new files
12618
12619 2004-08-20 14:09  pbartok
12620
12621         * Control.cs:
12622           - Added call to set window background color
12623
12624 2004-08-20 14:03  pbartok
12625
12626         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12627           - Added method for setting the window background
12628
12629 2004-08-20 14:02  pbartok
12630
12631         * XplatUIWin32.cs:
12632           - Added method for setting the background color
12633           - Added handling for erasing the window background
12634
12635 2004-08-20 13:45  jordi
12636
12637         * TrackBar.cs: fixes timer, new properties and methods
12638
12639 2004-08-20 13:34  jackson
12640
12641         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12642           correct thread
12643
12644 2004-08-20 13:22  jackson
12645
12646         * Timer.cs: Timer Tick events are now handed through Controls Async
12647           mechanism so the callbacks are executed in the same thread as X
12648
12649 2004-08-20 13:19  jackson
12650
12651         * XplatUIDriver.cs: Expose functionality to send async messages
12652           through the driver
12653
12654 2004-08-20 13:18  jackson
12655
12656         * Control.cs: Implement Begininvoke
12657
12658 2004-08-20 13:14  jackson
12659
12660         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12661           messages through the driver
12662
12663 2004-08-20 13:12  jackson
12664
12665         * XplatUIX11.cs: Lock before all X operations. Also added Async
12666           method functionality through XSendEvent
12667
12668 2004-08-20 13:11  jackson
12669
12670         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12671           This will screw up on 64 bit systems)
12672
12673 2004-08-20 13:10  jackson
12674
12675         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12676           Async messages through X/Win32
12677
12678 2004-08-19 19:39  pbartok
12679
12680         * XplatUIX11.cs:
12681           - Updated code to match new HandleData.DeviceContext type
12682
12683 2004-08-19 19:38  pbartok
12684
12685         * HandleData.cs:
12686           - Made DeviceContext a generic object to allow usage from various
12687           drivers
12688           - Added support for queueing Windows messages
12689
12690 2004-08-19 19:37  pbartok
12691
12692         * XplatUIWin32.cs:
12693           - Added generation of MouseEnter, MouseLeave and MouseHover events
12694           - Added cleanup on EndPaint
12695
12696 2004-08-19 19:17  pbartok
12697
12698         * Control.cs:
12699           - Added handling of WM_MOUSEHOVER
12700           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12701           code
12702
12703 2004-08-19 18:55  jordi
12704
12705         * ThemeGtk.cs: fixes button order
12706
12707 2004-08-19 18:12  jordi
12708
12709         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12710
12711 2004-08-19 17:09  pbartok
12712
12713         * Control.cs:
12714           - Added Right property
12715           - Added RightToLeft property
12716
12717 2004-08-19 16:27  jordi
12718
12719         * ThemeGtk.cs: experimental GTK theme support
12720
12721 2004-08-19 16:26  jordi
12722
12723         * ITheme.cs, Theme.cs: move themes from an interface to a class
12724
12725 2004-08-19 16:25  jordi
12726
12727         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12728           theme enhancaments
12729
12730 2004-08-19 16:04  pbartok
12731
12732         * XplatUIX11.cs:
12733           - Added colormap basics
12734           - Added a way to re-initialize with a different display handle
12735           - Fixed setting of the window background color
12736           - Added various X11 imports related to colors and colormaps
12737
12738 2004-08-19 15:51  pbartok
12739
12740         * X11Structs.cs:
12741           - Removed packing hints (Paolo suggested this a while back)
12742           - fixed colormap type
12743           - Added default Atom types
12744           - Added Screen and color structs and enums
12745
12746 2004-08-19 15:39  pbartok
12747
12748         * ImageList.cs:
12749           - Added missing Draw() method
12750           - Added missing RecreateHandle event
12751
12752 2004-08-19 15:30  pbartok
12753
12754         * Form.cs:
12755           - Added handling of WM_CLOSE
12756
12757 2004-08-18 13:16  jordi
12758
12759         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12760           a table
12761
12762 2004-08-18 09:56  jordi
12763
12764         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12765
12766 2004-08-17 15:31  ravindra
12767
12768         * SWF.csproj: Updated project.
12769
12770 2004-08-17 15:25  pbartok
12771
12772         * Control.cs:
12773           - Drawing improvement; don't call UpdateBounds if we are not visible
12774             (or have been minimized)
12775
12776 2004-08-17 15:24  pbartok
12777
12778         * XplatUIWin32.cs:
12779           - Finished IsVisible
12780           - Added Win32GetWindowPlacement
12781
12782 2004-08-17 15:08  jackson
12783
12784         * Panel.cs: Initial checkin of the Panel
12785
12786 2004-08-17 14:25  pbartok
12787
12788         * Control.cs:
12789           - Fixed broken handling of default window sizes
12790
12791 2004-08-17 13:29  jackson
12792
12793         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12794           has a large startup time.
12795
12796 2004-08-17 10:25  jackson
12797
12798         * HandleData.cs: union areas properly
12799
12800 2004-08-17 10:12  jackson
12801
12802         * HandleData.cs: union areas properly
12803
12804 2004-08-16 20:00  ravindra
12805
12806         * ToolBar.cs, ToolBarButton.cs: Added attributes.
12807
12808 2004-08-16 18:48  ravindra
12809
12810         * ToolBar.cs: Added attributes.
12811
12812 2004-08-16 17:17  ravindra
12813
12814         * SWF.csproj: Updated project.
12815
12816 2004-08-16 17:16  jackson
12817
12818         * XplatUIX11.cs: Check for more expose events before sending a
12819           WM_PAINT so they can all be grouped together. This makes dragging a
12820           window across another window redraw in a sane way.
12821
12822 2004-08-16 15:47  pbartok
12823
12824         * Control.cs:
12825           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12826             support OnMouseEnter/Leave()
12827           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12828             exposure handling
12829
12830 2004-08-16 15:46  pbartok
12831
12832         * XplatUIStructs.cs, XplatUIX11.cs:
12833           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12834           OnMouseEnter/Leave()
12835
12836 2004-08-16 15:34  jackson
12837
12838         * XplatUIX11.cs: Group multiple expose events in HandleData, make
12839           sure messages get the message field set to WM_NULL if they are not
12840           handled.
12841
12842 2004-08-16 15:24  jackson
12843
12844         * HandleData.cs: HandleData is used for storing message information
12845           for window handles
12846
12847 2004-08-15 17:23  ravindra
12848
12849         * ColorDepth.cs: Added attribute.
12850
12851 2004-08-15 17:23  ravindra
12852
12853         * SWF.csproj: Updated project for ToolBar Control.
12854
12855 2004-08-15 17:20  ravindra
12856
12857         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12858           control and also dos2unix format.
12859
12860 2004-08-15 17:13  ravindra
12861
12862         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12863           ToolBarButtonClickEventArgs.cs,
12864           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12865           ToolBarTextAlign.cs: First Implementation of ToolBar control.
12866
12867 2004-08-15 15:31  pbartok
12868
12869         * ButtonBase.cs:
12870           - First (mostly) working version
12871
12872 2004-08-13 16:15  pbartok
12873
12874         * Control.cs:
12875           - Fixed Anchor default
12876
12877 2004-08-13 15:43  pbartok
12878
12879         * Control.cs:
12880           - Changed GetCursorPos signature
12881
12882 2004-08-13 15:42  pbartok
12883
12884         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12885           - Changed signature for GetCursorPos
12886
12887 2004-08-13 15:25  pbartok
12888
12889         * XplatUIX11.cs:
12890           - Cleanup
12891           - Fixed resizing/exposure handling
12892
12893 2004-08-13 15:22  jordi
12894
12895         * ThemeWin32Classic.cs: removes redundant code and fixes issues
12896           with tickposition
12897
12898 2004-08-13 14:55  jordi
12899
12900         * TrackBar.cs: change from wndproc to events
12901
12902 2004-08-13 13:00  jordi
12903
12904         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12905           XplatUIX11.cs: implements PointToClient (ScreenToClient)
12906
12907 2004-08-13 12:53  pbartok
12908
12909         * XplatUIWin32.cs:
12910           - Changed GetWindowPos to also provide client area size
12911           - Fixed broken prototypes for several win32 functions
12912
12913 2004-08-13 12:53  pbartok
12914
12915         * XplatUI.cs, XplatUIDriver.cs:
12916           - Changed GetWindowPos to also provide client area size
12917
12918 2004-08-13 12:52  pbartok
12919
12920         * XplatUIX11.cs:
12921           - Added generation of WM_POSCHANGED
12922           - Changed GetWindowPos to also provide client area size
12923
12924 2004-08-13 12:52  pbartok
12925
12926         * Control.cs:
12927           - Added Dispose() and destructor
12928           - Fixed resizing and bounds calculation
12929           - Fixed Layout
12930           - Added memory savings for invisible windows
12931
12932 2004-08-13 12:46  jordi
12933
12934         * TrackBar.cs: adds timer and grap window
12935
12936 2004-08-13 10:25  jackson
12937
12938         * Timer.cs: SWF Timer
12939
12940 2004-08-12 16:59  pbartok
12941
12942         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12943           - Implemented method to get current mouse position
12944
12945 2004-08-12 14:29  jordi
12946
12947         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12948           enhancement, fix mouse problems, highli thumb, etc
12949
12950 2004-08-12 13:31  pbartok
12951
12952         * Control.cs:
12953           - Fixed Anchoring bugs
12954
12955 2004-08-12 13:01  jackson
12956
12957         * StatusBar.cs: Don't forget things
12958
12959 2004-08-12 12:54  jackson
12960
12961         * ThemeWin32Classic.cs: Handle owner draw status bars
12962
12963 2004-08-12 12:54  jackson
12964
12965         * StatusBar.cs: Implement missing properties, events, and methods.
12966           Handle mouse clicking
12967
12968 2004-08-12 10:19  jackson
12969
12970         * StatusBarPanelClickEventArgs.cs,
12971           StatusBarPanelClickEventHandler.cs: Classes for handling status
12972           bar panel click events
12973
12974 2004-08-12 10:10  jackson
12975
12976         * Control.cs: Add missing properties
12977
12978 2004-08-12 09:46  pbartok
12979
12980         * BindingsManagerBase.cs:
12981           - Name changed to BindingManagerBase.cs
12982
12983 2004-08-12 09:25  jordi
12984
12985         * ScrollableControl.cs: calls ctrlbase instead of exeception
12986
12987 2004-08-11 16:28  pbartok
12988
12989         * InputLanguageChangingEventArgs.cs:
12990           - Never check in before compiling. Fixes the last check-in
12991
12992 2004-08-11 16:26  pbartok
12993
12994         * InputLanguageChangingEventArgs.cs:
12995           - More signature fixes
12996
12997 2004-08-11 16:20  pbartok
12998
12999         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13000           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13001           ImageListStreamer.cs, InputLanguage.cs,
13002           InputLanguageChangedEventArgs.cs,
13003           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13004           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13005           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13006           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13007           - Signature fixes
13008
13009 2004-08-11 16:16  pbartok
13010
13011         * Application.cs:
13012           - Fixed Signature
13013           - Added .Net 1.1 method
13014
13015 2004-08-11 15:25  pbartok
13016
13017         * SWF.csproj:
13018           - Fixed BindingManagerBase.cs filename
13019
13020 2004-08-11 15:22  pbartok
13021
13022         * BindingManagerBase.cs:
13023           - Was checked in with wrong filename
13024
13025 2004-08-11 14:50  pbartok
13026
13027         * SWF.csproj:
13028           - Updated
13029
13030 2004-08-11 13:41  jordi
13031
13032         * XplatUIWin32.cs: Fixes ClientRect
13033
13034 2004-08-11 13:19  pbartok
13035
13036         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13037           XplatUIX11.cs:
13038           - We had SetWindowPos and MoveWindow to set window positions and
13039             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13040             keep SetWindowPos as matching counterpart
13041           - Added some X11 sanity checking
13042
13043 2004-08-11 12:59  pbartok
13044
13045         * Control.cs:
13046           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13047             (It seems that SetBounds is just a front for SetBoundsCore and
13048              SetBoundsCore updates the underlying window system and
13049              UpdateBounds is responsible for updating the variables associated
13050              with the Control and sending the events)
13051           - Major cleanup of Size handling; we now have two sizes, client_size
13052             and bounds. Bounds defines the window with decorations, client_size
13053             without them.
13054
13055 2004-08-11 12:55  pbartok
13056
13057         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13058           - Added method to calculate difference between decorated window and
13059             raw client area
13060
13061 2004-08-11 12:54  pbartok
13062
13063         * Label.cs:
13064           - Forcing redraw on resize
13065
13066 2004-08-11 11:43  pbartok
13067
13068         * ImageList.cs:
13069           - Removed disposing of the actual images when the list is disposed
13070
13071 2004-08-11 09:13  pbartok
13072
13073         * Control.cs:
13074           - Now properly reparents windows
13075
13076 2004-08-11 08:37  pbartok
13077
13078         * Control.cs:
13079           - Duh!
13080
13081 2004-08-11 07:47  pbartok
13082
13083         * Control.cs:
13084           - Rewrote the collection stuff. Might not be as fast now, not
13085             keeping the number of children around and accessible directly, but
13086             it's more straightforward
13087
13088 2004-08-11 07:44  pbartok
13089
13090         * AccessibleObject.cs:
13091           - Fixed to match ControlCollection rewrite
13092
13093 2004-08-11 07:43  pbartok
13094
13095         * ImageList.cs:
13096           - Added missing creation of the collection list
13097
13098 2004-08-10 20:08  jackson
13099
13100         * StatusBar.cs: Get the paint message from WndProc
13101
13102 2004-08-10 19:31  jackson
13103
13104         * ThemeWin32Classic.cs: Create Brushes as little as possible
13105
13106 2004-08-10 19:20  jackson
13107
13108         * UICues.cs: Add Flags attribute
13109
13110 2004-08-10 19:19  jackson
13111
13112         * StatusBarPanel.cs: Signature cleanup
13113
13114 2004-08-10 19:10  jackson
13115
13116         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13117           Initial implementation of status bar item drawing
13118
13119 2004-08-10 17:27  jordi
13120
13121         * TrackBar.cs: add missing methods, properties, and restructure to
13122           hide extra ones
13123
13124 2004-08-10 16:24  jackson
13125
13126         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13127           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13128           attribute
13129
13130 2004-08-10 13:21  jordi
13131
13132         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13133           enhancements and standarize on win colors defaults
13134
13135 2004-08-10 12:52  jackson
13136
13137         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13138           ThemeWin32Classic.cs: Implement DrawItem functionality
13139
13140 2004-08-10 12:47  jordi
13141
13142         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13143
13144 2004-08-10 12:32  jordi
13145
13146         * Control.cs: throw ontextchange event
13147
13148 2004-08-10 11:43  pbartok
13149
13150         * Control.cs:
13151           - Added more to the still unfinished Dock/Anchor layout code
13152
13153 2004-08-10 11:39  pbartok
13154
13155         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13156           - Added GetWindowPos method
13157
13158 2004-08-10 11:36  pbartok
13159
13160         * XplatUIWin32.cs:
13161           - Implemented several methods
13162
13163 2004-08-10 09:47  jackson
13164
13165         * TrackBar.cs: Allow control to handle buffering
13166
13167 2004-08-10 09:41  jackson
13168
13169         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13170
13171 2004-08-10 09:24  jackson
13172
13173         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13174
13175 2004-08-10 09:09  jackson
13176
13177         * StatusBar.cs: Let Control handle all the buffering.
13178
13179 2004-08-10 09:08  jackson
13180
13181         * Control.cs: Control will now handle the buffering code, so each
13182           control does not have to implement this.
13183
13184 2004-08-10 08:34  jackson
13185
13186         * XplatUIDriver.cs: Use default colors from the theme
13187
13188 2004-08-09 17:12  pbartok
13189
13190         * ImageList.cs:
13191           - Fixed several bugs Ravindra pointed out
13192
13193 2004-08-09 16:11  pbartok
13194
13195         * Control.cs:
13196           - Added incomplete dock layout code
13197           - Added support for mouse wheel
13198
13199 2004-08-09 16:09  pbartok
13200
13201         * XplatUIX11.cs:
13202           - Added handling for middle and right mousebutton
13203           - Added handling for mouse wheel
13204           - Added handling for key state and mouse state and position
13205           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13206           messages
13207
13208 2004-08-09 15:40  jackson
13209
13210         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13211           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13212           checkin
13213
13214 2004-08-09 15:37  jackson
13215
13216         * StatusBar.cs: Initial implementation of StatusBar
13217
13218 2004-08-09 15:36  jackson
13219
13220         * ITheme.cs: Add support for drawing status bar and getting status
13221           bar item sizes
13222
13223 2004-08-09 15:35  pbartok
13224
13225         * MouseButtons.cs:
13226           - Fixed values
13227
13228 2004-08-09 15:34  jackson
13229
13230         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13231           status bar item sizes
13232
13233 2004-08-09 15:21  jackson
13234
13235         * ThemeWin32Classic.cs: Use known colors for default control
13236           colours
13237
13238 2004-08-09 15:12  jackson
13239
13240         * ThemeWin32Classic.cs: Make the default font static, it is static
13241           in control so this doesn't change functionality and creating fonts
13242           is sloooooow.
13243
13244 2004-08-09 14:56  pbartok
13245
13246         * X11Structs.cs:
13247           - Added GrabMode enum
13248
13249 2004-08-09 14:55  pbartok
13250
13251         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13252           - Removed Run method, was only required for initial development
13253
13254 2004-08-09 14:51  pbartok
13255
13256         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13257           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13258           capture
13259
13260 2004-08-09 13:48  pbartok
13261
13262         * XplatUIX11.cs:
13263           - Fixed default sizing for child windows
13264
13265 2004-08-09 12:56  pbartok
13266
13267         * XplatUIX11.cs:
13268           - Added generation of WM_DESTROY message
13269           - Added handling of window manager induced shutdown
13270
13271 2004-08-09 11:31  jackson
13272
13273         * ThemeWin32Classic.cs: New names for control properties
13274
13275 2004-08-09 11:25  jackson
13276
13277         * Control.cs: Use new color names
13278
13279 2004-08-09 11:02  jackson
13280
13281         * XplatUI.cs: Get default window properties from the theme
13282
13283 2004-08-09 11:01  jackson
13284
13285         * ITheme.cs: The theme engine now controls default window
13286           properties
13287
13288 2004-08-09 11:00  jackson
13289
13290         * ThemeWin32Classic.cs: Add default window color properties
13291
13292 2004-08-09 10:17  jackson
13293
13294         * ThemeWin32Classic.cs: Use correct default back color
13295
13296 2004-08-09 10:05  jackson
13297
13298         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13299           the theme now.
13300
13301 2004-08-09 09:56  jackson
13302
13303         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13304
13305 2004-08-09 09:54  jackson
13306
13307         * Control.cs: Get default properties from the theme.
13308
13309 2004-08-09 09:53  jackson
13310
13311         * ITheme.cs: Themes now handle default control properties
13312
13313 2004-08-09 09:53  jackson
13314
13315         * ThemeWin32Classic.cs: Themes now handle default control
13316           properties so coloring will be consistent
13317
13318 2004-08-08 16:54  jordi
13319
13320         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13321
13322 2004-08-08 15:08  jordi
13323
13324         * XplatUIX11.cs: fixes keyboard crash
13325
13326 2004-08-08 13:47  jordi
13327
13328         * Label.cs: add cvs header info
13329
13330 2004-08-08 12:09  jackson
13331
13332         * ThemeWin32Classic.cs: Add pen_buttonface
13333
13334 2004-08-08 11:52  jordi
13335
13336         * Label.cs, LinkLabel.cs: [no log message]
13337
13338 2004-08-08 11:34  jordi
13339
13340         * ThemeWin32Classic.cs: Use Windows Standard Colours
13341
13342 2004-08-07 17:32  jordi
13343
13344         * TrackBar.cs: throw exceptions of invalid enums values
13345
13346 2004-08-07 17:31  jordi
13347
13348         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13349           draw method name
13350
13351 2004-08-07 16:56  jackson
13352
13353         * HorizontalAlignment.cs: Initial checkin
13354
13355 2004-08-07 13:16  jordi
13356
13357         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13358           methods
13359
13360 2004-08-07 13:05  jordi
13361
13362         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13363           GetSysColor defines
13364
13365 2004-08-06 18:01  pbartok
13366
13367         * ThemeWin32Classic.cs:
13368           - Fixed some rounding issues with float/int
13369
13370 2004-08-06 18:00  jackson
13371
13372         * DockStyle.cs, AnchorStyles.cs:
13373
13374                   Add flags and serializable attributes.
13375
13376 2004-08-06 17:46  pbartok
13377
13378         * XplatUIX11.cs:
13379           - Implemented GetParent
13380
13381 2004-08-06 17:18  pbartok
13382
13383         * TrackBar.cs:
13384           - Fixed some rounding issues with float/int
13385
13386 2004-08-06 17:17  pbartok
13387
13388         * X11Structs.cs, XplatUIX11.cs:
13389           - Fixed Refresh and Invalidate
13390
13391 2004-08-06 15:30  pbartok
13392
13393         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13394           - Fixed recursive loop when resizing
13395           - Improved/fixed redrawing on expose messages
13396
13397 2004-08-06 09:53  jordi
13398
13399         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13400           keyboard navigation
13401
13402 2004-08-06 08:02  pbartok
13403
13404         * X11Structs.cs, XplatUIX11.cs:
13405           - Fixed reparenting
13406           - Fixed window border creation
13407
13408 2004-08-05 15:38  pbartok
13409
13410         * XplatUIX11.cs:
13411           - Attempted fix for reparenting problems
13412
13413 2004-08-04 15:14  pbartok
13414
13415         * Control.cs:
13416           - Fixed Invalidation bug (calculated wrong client area)
13417           - Added ClientSize setter
13418
13419 2004-08-04 15:13  pbartok
13420
13421         * Form.cs:
13422           - Added AutoScale properties
13423
13424 2004-08-04 15:13  pbartok
13425
13426         * SWF.csproj:
13427           - Added latest files
13428
13429 2004-08-04 14:11  pbartok
13430
13431         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13432           XplatUIX11.cs:
13433           - Added Invalidate handling
13434
13435 2004-08-03 17:09  jordi
13436
13437         * XplatUIDriver.cs: fixes spelling mistake
13438
13439 2004-07-27 09:53  jordi
13440
13441         * TrackBar.cs: fixes trackbar events, def classname, methods
13442           signature
13443
13444 2004-07-27 09:29  jordi
13445
13446         * ScrollBar.cs: fixes scrollbar events
13447
13448 2004-07-27 04:38  jordi
13449
13450         * Control.cs: changes to be able to run winforms samples
13451
13452 2004-07-26 11:42  jordi
13453
13454         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13455           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13456
13457 2004-07-26 05:41  jordi
13458
13459         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13460           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13461           implementation
13462
13463 2004-07-22 09:22  jordi
13464
13465         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13466           check link overlapping, implement events, and fixes
13467
13468 2004-07-21 10:28  jordi
13469
13470         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13471
13472 2004-07-21 10:19  jordi
13473
13474         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13475           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13476           LinkLabelLinkClickedEventArgs.cs,
13477           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13478           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13479           implementation
13480
13481 2004-07-19 13:09  jordi
13482
13483         * Control.cs, Label.cs: label control re-written: added missing
13484           functionlity, events, and properties
13485
13486 2004-07-19 10:49  jordi
13487
13488         * Control.cs: fixes SetBounds logic
13489
13490 2004-07-19 01:29  jordi
13491
13492         * Control.cs: Call RefreshWindow only if the window has created
13493
13494 2004-07-15 14:05  pbartok
13495
13496         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13497           - Implemented ImageList and ImageList.ImageCollection classes
13498           - Added ColorDepth enumeration
13499           - Updated SWF VS.Net project
13500
13501 2004-07-15 11:06  jordi
13502
13503         * XplatUIStructs.cs: added MsgButons enum
13504
13505 2004-07-15 11:03  jordi
13506
13507         * Control.cs: added basic mouse handeling events
13508
13509 2004-07-15 03:38  jordi
13510
13511         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13512           Vertical TrackBar control implementation
13513
13514 2004-07-13 09:33  jordi
13515
13516         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13517
13518 2004-07-13 09:31  jordi
13519
13520         * Control.cs, Form.cs: commit: new properties and fixes form size
13521           problems
13522
13523 2004-07-09 14:13  miguel
13524
13525         * ProgressBar.cs: Spelling
13526
13527 2004-07-09 11:25  pbartok
13528
13529         * ProgressBar.cs:
13530           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13531           faster
13532
13533 2004-07-09 11:17  miguel
13534
13535         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13536
13537                 * ProgressBar.cs: Fixed spelling for `block'
13538
13539                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13540                 style guidelines.
13541
13542                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13543
13544 2004-07-08 23:21  pbartok
13545
13546         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13547           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13548           BaseCollection.cs, Binding.cs, BindingContext.cs,
13549           BindingMemberInfo.cs, BindingsCollection.cs,
13550           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13551           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13552           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13553           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13554           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13555           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13556           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13557           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13558           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13559           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13560           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13561           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13562           InputLanguageChangedEventArgs.cs,
13563           InputLanguageChangedEventHandler.cs,
13564           InputLanguageChangingEventArgs.cs,
13565           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13566           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13567           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13568           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13569           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13570           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13571           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13572           QueryAccessibilityHelpEventArgs.cs,
13573           QueryAccessibilityHelpEventHandler.cs,
13574           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13575           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13576           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13577           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13578           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13579           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13580           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13581           XplatUIX11.cs, lang.cs:
13582           - Initial check-in
13583