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         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
4           and this fixes #78493
5
6 2006-05-23  Miguel de Icaza  <miguel@novell.com>
7
8         * Theme.cs (GetSizedResourceImage): Scale images if the proper
9         size is not found.  
10         
11         * FileDialog.cs: Do not change the background for the side bar as
12         it wont work nicely with the theme, and also reduces the artifacts
13         in rendering the icons (which I want to fix too).
14
15         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
16         resources, not resgen resources. 
17
18         (PlatformDefaultHandler): Pull images using the new API.
19
20 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
21
22         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
23           a reference to the hwnd and will not remove it unless there are
24           no pending exposures (fixes #78341)
25         * XplatUI.cs: Improved debug
26
27 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
28
29         * MenuAPI.cs : don't handle OnClick event when it was not the left
30           button. Fixed bug #78487.
31
32 2006-05-23  Mike Kestner  <mkestner@novell.com>
33
34         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
35         prefer submenus to the top menu for item lookup, to avoid popping down
36         top-row items.
37
38 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
39
40         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
41           Graphics.FillRectangle as the visual results are really bad (even
42           on win). We now draw perfect arrows (and perfect shadows when the
43           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
44           Pen.DashPattern to draw the dots of each line.
45
46 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
47
48         * FileDialog.cs: Update the filename combobox when navigating through
49           the ListView with the cursor keys. Fixes part 7 of bug #78446.
50
51 2006-05-22  Mike Kestner  <mkestner@novell.com>
52
53         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
54         Fixes #78463.
55
56 2006-05-22  Mike Kestner  <mkestner@novell.com>
57
58         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
59         requests. Fix a misspelled parameter and a copy paste exception error
60         in Select.
61
62 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
63
64         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
65           to get the same width/height (5/13) on X11 as the default font has on
66           win32. This means that our DefaultFont emSize is smaller than the 
67           the MS SWF equivalent (even thought the width/height stays the same)
68
69 2006-05-20  Jackson Harper  <jackson@ximian.com>
70
71         * MdiClient.cs:
72         * MdiWindowManager.cs:
73         * InternalWindowManager.cs: Make sure to use the border width from
74         the theme.
75
76 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
77
78         * PrintDialog.cs: Implements printer details
79
80 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
81
82         * FileDialog.cs: Added focus handling for PopupButtonPanel.
83           Fixes part 1 and 2 of bug #78446
84
85 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
86
87         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
88           instead of sticking to the first ever calculated value
89
90 2006-05-19  Mike Kestner  <mkestner@novell.com>
91
92         * ComboBox.cs: fix mouse motion selection to use MousePosition and
93         PointToClient, since Capture is set. Fixes #78344.
94
95 2006-05-19  Mike Kestner  <mkestner@novell.com>
96
97         * ListView.cs: match MS behavior in Details view where items are not
98         drawn if Columns.Count == 0. 
99         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
100         Use a separate pen to draw the check, since changing the width affects
101         the box as well.  Fixes #78454.
102
103 2006-05-18  Miguel de Icaza  <miguel@novell.com>
104
105         * ListView.cs: ArgumentOutOfRangeException, single versions of the
106         exception should throw the name of the invalid argument.
107
108         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
109         there are no files listed. 
110
111 2006-05-18  Jackson Harper  <jackson@ximian.com>
112
113         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
114         up.
115
116 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
117
118         * Control.cs: Brought back our old UpdateZOrder method as a private
119           function and switched our calls from UpdateZOrder to the new one.
120           This fixes the Paint.Net canvas disappearing bug.
121
122 2006-05-18  Jackson Harper  <jackson@ximian.com>
123
124         * Theme.cs:
125         * ThemeWin32Classic.cs:
126         * InternalWindowManager.cs: Move the drawing into the theme,
127         expose everything the theme should need from the window manager.
128
129 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
130
131         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
132           from the call to NativeWindow to avoid walking up the parent chain
133           further than needed (speeds up setting cursors and avoids setting
134           the wrong cursor if a parent has another cursor defined)
135         * Cursor.cs: When loading an icon as cursor, MS uses the center of
136           the icon as hotspot, not what's contained as hotspot in the icon
137           file. This fixes the perceived drawing offset seen with Paint.Net
138         
139 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
140
141         * XplatUIX11.cs: 
142           - Store the calculated rectangle in Hwnd object and use it when 
143             setting the client size
144           - Force Toolwindows to always be type Dock, to ensure they're on top
145
146 2006-05-18  Mike Kestner  <mkestner@novell.com>
147
148         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
149         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
150         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
151         Substantial refactoring to remove confusing nested classes. Coding
152         standard and Get+Set->property refactorings.  Shift to index based
153         highlighting in ComboListBox instead of constantly using IndexOf and
154         Items[]. Add invalidations on resize for DropDownList to fix ugliness
155         in FileDialog growth.  Draw borders manually since Simple mode needs
156         to look like two independent controls.  Make listbox border
157         conditional to DropDownStyle.  Improved OwnerDraw support.
158
159 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
160
161         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
162         Don't set the disposed graphics to null, so we can throw the "right"
163         exception if the graphics is reused later (added a flag to avoid 
164         double disposing). Some behaviours are different under 2.0 and are
165         filled under bug #78448.
166
167 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
168
169         * Control.cs: When double-buffering is enabled, we need to reset
170           our graphics context between paint calls. Otherwise, any 
171           transformations and other alterations on the context will 
172           become cumulative (#77734)
173
174 2006-05-18  Mike Kestner  <mkestner@novell.com>
175
176         * ListView.cs: do focused item selection like MS on clicks. 
177         Rework focus handling for ItemControl so LostFocus invalidates as
178         well.
179         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
180         the ListView ItemControl has focus.
181
182 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
183
184         * XplatUIX11.cs: If client_window ends up being width or height zero
185           due to border settings, move it off window inside whole_window (#78433)
186
187 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
188
189         * Mime.cs: Shrink the mime file cache correctly.
190
191 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
192
193         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
194
195 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
196
197         * XplatUIX11.cs (AddExpose): More sanity checks
198
199 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
200
201         * XplatUIX11.cs:
202           - AddExpose: Don't add expose ranges outside the size of our
203             window
204           - Cast opacity values to Int32 to avoid crashes with certain
205             values
206           - Added disabled code paths that protect against illegal cross-
207             thread painting (Developers.exe)
208
209 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
210
211         * ProgressBar.cs: Invalidate the control when it's resized
212           since block size is based on control size. (#78388)
213
214 2006-05-16  Miguel de Icaza  <miguel@novell.com>
215
216         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
217         of setting the incoming argument to the "reset" value, we set the
218         this.datamember to string.empty (before we were invalidating the
219         incoming data).   
220
221         Fixes 78420
222
223 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
224
225         * Form.cs: Only apply transparency settings after the form
226           is created. (Fixes #77800)
227
228 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
229
230         * ApplicationContext.cs: Grab the HandleDestroyed event so
231           we know when to fire OnMainFormClosed 
232
233 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
234
235         * Application.cs: Introduced sub-class to allow tracking of
236           threads and centralized triggering of the event mess for
237           ThreadExit, AppExit, etc..  (#76156)
238
239 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
240
241         * MimeIcon.cs:
242           - Do not return a null icon index value for a mime subclass.
243             Instead try the main mime type class too.
244           - Seems that some newer distributions don't have a link to some
245             gnome default icons anymore. So check the default gnome dir too.
246           
247
248 2006-05-16  Jackson Harper  <jackson@ximian.com>
249
250         * MdiClient.cs: Don't paint the parent background image if we have
251         our own background image.
252
253 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
254
255         * Control.cs:
256           - PerformLayout: Do not shrink space filled by DockStyle.Fill
257             controls, all filled controls are supposed to overlap (#78080)
258           - UpdateZOrder is supposed to update the control's z-order in the
259             parent's z-order chain. Fixed to behave like that
260           - BringToFront: Removed obsolete code
261           - SendToBack: Simplyfied
262           - SetChildIndex: Trigger layout calculations when Z-order changes
263             since layout is done by z-order
264
265 2006-05-16  Chris Toshok  <toshok@ximian.com>
266
267         [ fixes bug #78410 ]
268         * DataGrid.cs (set_AlternatingBackColor): use
269         grid_drawing.InvalidateCells instead of Refresh().
270         (set_BackColor): call grid_drawing.InvalidateCells.
271         (set_BackgroundColor): use Invalidate instead of Refresh.
272
273         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
274         invalidate the cell area.
275
276 2006-05-15  Chris Toshok  <toshok@ximian.com>
277
278         [ fixes bug #78011 ]
279         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
280         on to DataGridPaintRow.
281         (DataGridPaintRow): take a clip argument, and only draw the cells
282         which intersect it.  same with the not_usedarea.
283
284         * Theme.cs (DataGridPaintRow) add @clip parameter.
285
286         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
287         XplatUI.ScrollWindow.
288         (ScrollToRow): same.
289
290         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
291         with last column which was causing a gray swath to appear with the
292         XplatUI.ScrollWindow code.
293
294 2006-05-15  Chris Toshok  <toshok@ximian.com>
295
296         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
297         use XplatUI.ScrollWindow.
298         (VerticalScrollEvent): use XplatUI.ScrollWindow.
299
300 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
301
302         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
303
304 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
305
306         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
307           file since there are no equivalent X11 cursors
308
309 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
310
311         * MonthCalendar.cs : DateTimePicker should reflect selected date
312           on mouse*up*, not mouse*down*. Fixed originally reported part of
313           bug #76474.
314
315 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
316
317         * TabControl.cs : When argument index is equal or more than tab
318           count, just ignore. Fixed bug #78395.
319
320 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
321
322         * Control.cs: Dispose all child controls when control is diposed (#78394)
323
324 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
325
326         * ColorDialog.cs: Finally it is possible to select the color with
327           the text boxes
328
329 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
330
331         * PrintDialog.cs: Fix typo
332
333 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
334
335         * PrintDialog.cs: PrintDialog is not resizable
336         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
337           color. Made some ToolBar drawing methods protected virtual.
338
339 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
340
341         * PrintDialog.cs: Implementation of the PrintDialog
342
343 2006-05-12  Chris Toshok  <toshok@ximian.com>
344
345         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
346         thumb, instead use MoveThumb.  This has the side effect of making
347         most of the other thumb moving machinery use MoveThumb as well.
348         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
349         need to actually invalidate the rectangle where the new thumb will
350         go.
351         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
352         We force an Update() after, so it's not as fast as it could be,
353         but at least there's zero flicker and no droppings.
354         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
355         (UpdateThumbPos): add another argument (dirty), which says whether
356         or not to calculate/add dirty regions which we later invalidate.
357         For cases where we know we're going to use MoveThumb, we pass
358         false for this.  Otherwise, pass true.
359
360 2006-05-12  Jackson Harper  <jackson@ximian.com>
361
362         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
363         the status bar.
364         
365 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
366
367         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
368           and GetClipRegion methods and UserClipWontExposeParent property.
369         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
370           overriding UserClipWontExposeParent property, setting to false, since
371           Win32 handles the required expose messages to draw our clipped parent
372           areas internally
373         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
374           PaintEventStart to set the user clip region if set.
375         * Control.cs: 
376           - Now internally tracking the Region for the control since we need to
377             store it if the handle is not yet created and only set it when it
378             becomes created. Before setting the region forced handle creation
379           - Added code to draw the parents underneath a user-clipped region
380         * Hwnd.cs: Added UserClip property
381
382 2006-05-12  Chris Toshok  <toshok@ximian.com>
383
384         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
385         (set_Maximum): same.
386         (set_Minimum): same.
387         (set_SmallChange): same.
388         (OnMouseUpSB): remove the call to refresh when releasing the
389         thumb.  We shouldn't need it.
390         
391 2006-05-12  Miguel de Icaza  <miguel@novell.com>
392
393         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
394         AutoSize set to None, we do not need to relayout everything, we
395         just need to invalidate the current region.
396
397         (Draw): Do not draw the entire ClientArea, just redraw the
398         clip area being passed.
399
400         * MdiClient.cs: Make MdiClient constructor with the Form argument
401         internal. 
402
403 2006-05-12  Jackson Harper  <jackson@ximian.com>
404
405         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
406         parents background image,  but strangely not their own.
407         - (DrawStatusBarPanel): Take into account horizontal alignment
408         when drawing the strings and icons.
409
410 2006-05-12  Mike Kestner  <mkestner@novell.com>
411
412         * ListBox.cs: avoid invalidations for focus when the collection is
413         empty. 
414
415 2006-05-12  Chris Toshok  <toshok@ximian.com>
416
417         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
418         invalidate the entire thumb area.  Call InvalidateDirty which
419         limits the redraw to the thumb itself and surrounding pixels.
420
421         * XplatUIX11.cs (ScrollWindow): optimize copying.
422         
423 2006-05-12  Chris Toshok  <toshok@ximian.com>
424
425         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
426         Figure out the positioning/layout in a single pass instead of
427         multiple recursive invocations.  Speeds up the initial display of
428         the data grid.  Also, make many things private that were
429         originally public but unused outside this class.
430
431 2006-05-11  Jackson Harper  <jackson@ximian.com>
432
433         * MdiClient.cs: Improved layout code.
434
435 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
436
437         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
438           not SelectedObject.
439
440 2006-05-11  Chris Toshok  <toshok@ximian.com>
441
442         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
443         union of that will always be {0,0,width,height}.
444
445 2006-05-11  Jackson Harper  <jackson@ximian.com>
446
447         * Form.cs: Match MS's DefaultSize for forms (they must have
448         changed the size in sp2).
449
450 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
451
452         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
453
454 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
455
456         * TextControl.cs : Fixed bug #78109. This incorrect position
457           comparison caused crash on automatic line split.
458         * TextBoxBase.cs : reduce duplicate code.
459
460 2006-05-10  Jackson Harper  <jackson@ximian.com>
461
462         * MdiClient.cs: Active form is only sent to the back when using
463         the Next form functionality, when a form is clicked the current
464         active shouldn't be sent to the back.
465         - Layout the mdi windows when the container is first made visible.
466         * Form.cs: Give the MdiClient a ref to the containing form when we
467         create it.
468         
469 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
470
471         * LinkLabel.cs : link_font could be uninitialized, so populate one
472           before actual use. Fixed bug #78340.
473
474 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
475
476         * XplatUIX11.cs : clipboard format native value is IntPtr.
477           Fixed bug #78283.
478
479 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
480
481         * Control.cs: 
482           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
483             which is passed up the parent chain by DefWndProc
484           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
485             to DefWndProc (#77956)
486         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
487
488 2006-05-10  Jackson Harper  <jackson@ximian.com>
489
490         * MdiClient.cs: We need to remove the controls from the mdi
491         collection, when we close the window.
492         * MdiWindowManager.cs: Special handling of closing mdi windows.
493         * InternalWindowManager.cs: Make the close method virtual so the
494         mdi window manager can handle it specially.
495
496 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
497
498         * DataGrid.cs:
499           - Recalculate grid when the data source has changed
500           - Matches styles provided by user from all data sources types
501         * DataGridTableStyle.cs: For columns that provided by the user set the
502         with the preferred value is there was unassigned.
503         * CurrencyManager.cs: throw OnItemChanged event
504
505 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
506
507         * PictureBox.cs: Don't animate until handle is created. Start animation
508           when handle is created.
509
510 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
511
512         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
513           current codebase.
514         * XEventQueue.cs: We don't need to provide the extra info
515
516 2006-05-10  Jackson Harper  <jackson@ximian.com>
517
518         * MdiClient.cs: If the mdi clients parent form has a background
519         image set, we draw that background image for the mdi area's
520         background.
521
522 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
523
524         * TextBoxBase.cs: Set IBeam cursor (#78347)
525
526 2006-05-10  Mike Kestner  <mkestner@novell.com>
527
528         * ToolBar.cs: fix some text padding issues with ButtonSize
529         calculation. Update the default size to match MS documentation.
530         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
531         button size. Fixes #78296.
532
533 2006-05-10  Mike Kestner  <mkestner@novell.com>
534
535         * ListBox.cs: use is_visible for scrollbar positioning in case the
536         control isn't on screen yet.  Fix off by one with Right vs Width
537         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
538         
539 2006-05-10  Jackson Harper  <jackson@ximian.com>
540
541         * X11Dnd.cs: Drop to a control with another control on top of it.
542         * ToolBar.cs: Work on a copy of the buttons list, so that it can
543         be modified in click handlers. TODO: Look for similar problems in
544         other controls.
545
546 2006-05-09  Jackson Harper  <jackson@ximian.com>
547
548         * Form.cs: Window managers need the old window state when setting
549         window state now.
550         * InternalWindowManager.cs: Allow the base mdi window manager to
551         handle more of the MDI only stuff (like maximize buttons).
552         * MdiWindowManager.cs: Fix some snafus in changing the window
553         state.  Add all the menu functionality, for both popup and
554         maximized menus.
555         * MdiClient.cs: When a new form is selected the currently
556         activated form is sent to the back, this matches MS.
557         - Implement a new method to activate the next mdi child window.
558
559 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
560
561         * Control.cs: 
562           - Added new InternalCapture method to allow controls to prevent
563             the capture behaviour on the click handlers
564           - Switched to use InternalCapture
565         * ComboBox.cs:
566           - Using InternalCapture to prevent mouse captures from being released
567             on mouse button release (Fixes #78100)
568         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
569           returns Form borders if a caption is present. (Fixes #78310)
570
571 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
572
573         * TreeNode.cs: Changed serialization .ctor to not require every field
574           to be present. (#78265)
575         * OwnerDrawPropertyBag.cs: Added serialization .ctor
576
577 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
578
579         * MimeIcon.cs: for is faster than foreach for strings.
580
581 2006-05-05  Mike Kestner  <mkestner@novell.com>
582
583         * CheckedListBox.cs: update check handling code to not use selected.
584         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
585         behavior for visual feedback, motion response, shift/ctrl handling,
586         and properly deal with all 4 selection modes. Updates to bounds
587         handling logic.  Add scroll wheel support. [Fixes #77842]
588
589 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
590
591         * ListView.cs:
592           - Moved adding of Implicit controls into .ctor. That way, subsequent
593             creation of the controls will not cause them to think they are 
594             toplevel windows (fixes #78200 header problem)
595           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
596           - Switched visibility setting of header control to use internal field
597             to avoid triggering handle creation
598           - Now checking if handle is created before causing a refresh when items
599             are added (This makes us now match handle creation time with MS)
600         * Splitter.cs: Removed loading of private splitter cursor, switched to
601           Cursors version now that that is loading the right ones
602         * Cursors.cs: Load proper splitter cursors from resources
603         * Cursor.cs: Added second method of loading resource cursors for the 
604           VS.Net users amongst us
605
606 2006-05-05  Mike Kestner  <mkestner@novell.com>
607
608         * ListView.cs: give header_control a minimum size based on the
609         ListView size.
610
611 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
612
613         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
614           window seems to do that with metacity, so set that type. (#78120)
615
616 2006-05-05  Mike Kestner  <mkestner@novell.com>
617
618         * ListViewItem.cs: fix Details mode checkbox layout bug.
619         * ThemeWin32Classic.cs: draw a ListView column header for unused space
620         at the end of the header, if it exists. [Fixes for #78200]
621
622 2006-05-04  Jackson Harper  <jackson@ximian.com>
623
624         * MdiClient.cs: Add a helper property to get the container form.
625         * MdiWindowManager.cs: We have to make sure to use the menu origin
626         when drawing the icons and buttons, this fixes maximized window
627         icons/buttons on win32.
628         * InternalWindowManager.cs: Reset the restore captions when a
629         window goes from Maximized to Minimized and vice versa. Move the
630         DrawMaximizedButtons into the MdiWindowManager source, tool
631         windows can't be maximized. NOTE: This could use a little
632         refactoring if time ever permits.
633         
634 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
635
636         * TextBox.cs: Add MWFCategoryAttributes
637         * TextBoxBase.cs: Add MWFCategoryAttributes
638         * Form.cs: Add MWFCategoryAttributes
639
640 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
641
642         * Control.cs: Add MWFCategoryAttributes
643         * ScrollableControl.cs: Add MWFCategoryAttributes
644
645 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
646
647         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
648           Divider is true. Fix a little glitch in PropertyToolBar
649           drawing code
650
651 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
652
653         * Control.cs:
654           - Dispose: Call base.Dispose, this causes the disposed event
655             to be fired (and probably other, more important stuff)
656           - SetVisibleCore: Set is_visible to true after creating the
657             window so that the window still gets created invisible (if
658             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
659             to generate a WM_ACTIVE message
660         * Form.cs: Call Dispose when we want to destroy the window, instead of
661           just destroying the handle (Dispose will do that for us)
662         * XplatUIX11.cs:
663           - RootWindow also needs a queue, so we can properly process the
664             property change events from RootWindow (like Activate)
665           - Generatic synthetic WM_ACTIVE message when the active window is
666             being destroyed
667
668 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
669
670         * LinkLabel.cs: Trigger a recalc of our label dimensions when
671           bounds are changed
672
673 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
674
675         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
676           for determining width and height (image might not be assigned if
677           we're drawing an imagelist)
678
679 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
680
681         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
682         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
683           height from system
684         * Theme.cs: No longer returns hardcoded menu height, instead calls
685           new driver method
686         * Form.cs (OnLoad): Scaling happens before triggering Load events 
687           on MS (# 78257)
688
689 2006-05-01  Mike Kestner  <mkestner@novell.com>
690
691         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
692
693 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
694
695         * TextBoxBase.cs: Removed Fixme
696         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
697
698 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
699
700         * XplatUIX11.cs:
701           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
702             the rectangle relative to the parent, considering borders. We
703             don't really want that.
704           - ScrollWindow: Fixed warning to be more understandable
705         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
706           scrollbars and scroll only the visible area
707         * RichTextBox.cs: Removed debug output
708
709 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
710
711         * NumericUpDown.cs (Text): Just use base
712         * UpDownBase.cs: Ensure txtView is created before using it
713
714 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
715
716         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
717           casting to IntPtr to avoid 64bit overflow errors
718
719 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
720
721         * Control.cs:
722           - AllowDrop: Don't force handle creation.
723           - CreateHandle: Added call to tell driver if we're allowed to drop
724
725 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
726
727         * FileDialog.cs: Remember the last directory not only for the
728           current instance but also for new FileDialog instances.
729
730 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
731         
732         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
733           broke sending async messages
734
735 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
736
737         * XplatUIX11.cs:
738           - ScrollWindow: Fixed method. We finally generate expose events again
739             for scrolled areas. This was causing 'garbage' when scrolling
740             textbox and other controls that used ScrollWindow
741           - Switched from using the regular queue for paint events to the MS 
742             model of 'generating' paint events when the queue is empty.
743             We use the new XQueueEvent.Paint subclass to store which windows
744             need painting.
745           - AddExpose now takes the x/y/width/height of the exposed area
746             and inserts the window into the paint queue if not already there
747           - InvalidateWholeWindow: Switched to use new AddExpose method
748           - UpdateMessageQueue: Added which queue to monitor for paint events
749           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
750             the unlikely case nothing above handles it. We reset the expose
751             pending states to get them off the queue.
752           - GetMessage: Now pulls a paint event if no other events are in the
753             queue
754           - Invalidate: Switched to new AddExpose method
755           - PeekMessage: Updated to understand pending paint events
756           - UpdateWindow: Fixed logic bug. We were only updating if the window
757             didn't need updating. Also switched to sending WM_PAINT directly,
758             like MS does.
759         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
760           and random access Remove(). The random access is needed to handle
761           UpdateWindow() where a WM_PAINT is sent directly without accessing
762           the queue.
763         * ScrollBar.cs: Added Update() calls to cause immediate updates to
764           allow for better feedback when scrolling. Scrollbars are small and
765           the immediate update should make it 'feel' more responsive without
766           slowing things down. ScrollBar still needs it's invaliate logic
767           updated to not always invalidate the whole bar on certain changes.
768
769 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
770
771         * Control.cs:
772         (BackColor): if the control does not support a transparent background,
773         return the default backcolor when the parent backcolor is transparent.
774
775 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
776
777         * Application.cs: Updated to new StartLoop/GetMessage API
778         * RichTextBox.cs: Provide some output on RTF parsing errors
779         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
780           new queue_id argument to GetMessage and PeekMessage to allow faster
781           handling of per-thread queues in drivers.
782         * Hwnd.cs: Added Queue tracking and property
783         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
784         * XEventQueue.cs: Added thread trackingA
785         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
786         * XplatUIX11.cs:
787           - Implemented new per-thread queue
788           - GetMessage: Fixed return/break behaviour on several cases. We were
789             returning stale messages in some cases, instead of just processing
790             the next message
791
792 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
793
794         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
795
796 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
797
798         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
799           fixed off-by-one comparisons between Width/Height and Right/Bottom.
800
801 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
802
803         * PropertyGridView.cs: Fix drop down width.
804
805 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
806
807         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
808           a mess in DrawToolBar, so I removed one of them.
809
810 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
811
812         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
813           needed (clip). Otherwise we get artifacts.
814
815 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
816
817         * FixedSizeTextBox.cs: Added constructor to allow specifying which
818           dimension is fixed
819         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
820           and switched FixedSizeTextBox to only be fixed vertical (#78116)
821         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
822           if it matches the scale base font (avoids unneeded scaling)
823
824 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
825
826         * X11DesktopColors.cs: One gtk_init_check should be enough
827
828 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
829
830         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
831           match MS behaviour
832
833 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
834
835         * TextBoxBase.cs: 
836           - Generate OnTextChanged for Backspace even if we're only deleting
837             the current selection
838           - When setting the Text property, only select all text if the
839             control does not have focus when it is being set. Otherwise
840             just place the cursor at the beginning of the control
841
842 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
843
844         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
845           Added a little helper to draw PropertyGrid ToolBar with a different
846           border and a different BackColor.
847         * PropertyGrid.cs: Some background parts didn't get painted with the
848           correct background color. Added a class that helps us to draw the
849           correct border for PropertyGridView and a class that helps us to
850           draw ToolBars with a different backcolor
851         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
852
853 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
854
855         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
856         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
857
858 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
859
860         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
861           into the palette entries. Also, since we're working on a copy
862           we needed to copy the palette back onto the bitmap.
863         * Cursor.cs: Same fix as XplatUIWin32.cs.
864
865 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
866
867         * ImageListStreamer.cs: Need to read the var (or we're off)
868
869 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
870
871         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
872           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
873           TextBoxBase.cs: Unused var fixes
874         * AxHost.cs: Small 2.0 fix
875         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
876           as it seems that is what at least Metacity expects. This will make
877           icons show up on 64bit platforms. We still have some 64bit size
878           issues, though, since the startup app window size still won't match.
879
880 2006-04-25  Mike Kestner  <mkestner@novell.com>
881
882         * *.cs: cleanup newly reported exception var unused warnings.
883
884 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
885
886         * ThemeWin32Classic.cs: Button image alignment now matches exactly
887           ms
888
889 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
890
891         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
892           image. The image position is always the same, no matter if the
893           button is pressed or not.
894
895 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
896
897         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
898           selection and set the correct filename for SaveFileDialog.
899           Patch by Emery Conrad.
900
901 2006-04-24  Mike Kestner  <mkestner@novell.com>
902
903         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
904         check for item.X outside the ClientRect instead of item.Y. Fixes
905         #78151.
906
907 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
908
909         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
910         trust that value blindly and do some sanity check. Fixes bug #77814.
911
912 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
913
914         * ImageListStreamer.cs: save the mask as a 1bpp image.
915
916 2006-04-21  Mike Kestner  <mkestner@novell.com>
917
918         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
919         pass Checked and Indeterminate to the Theme Engine. Improve
920         encapsulation with ListBox.
921         * ListBox.cs: Keep a StringFormat instead of calculating it every item
922         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
923         nested types.  Move all CheckState functionality to CheckedListBox.
924         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
925         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
926         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
927         single base list. Fix scrollbar sizing and placement to mirror MS.
928         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
929         used.
930         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
931         for CheckedListBox by using new DrawItemState info.  Center the
932         checkboxes on the items. Use new StringFormat property.
933
934 2006-04-18  Jackson Harper  <jackson@ximian.com>
935
936         * Form.cs: MdiChildren don't do default locations the same way as
937         regular forms.  This prevents a crash when trying to position the
938         mdi windows.
939
940 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
941
942         * PropertyGridTextBox.cs: Formatting, copyright
943         * PropertiesTab.cs: Formatting
944         * PropertyGrid.cs: Formatting
945         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
946           click toggling of values
947           
948 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
949
950         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
951         * Control.cs (.ctor): verify_thread_handle is static, don't reset
952           every time a control is created
953         * Application.cs: Removed obsolete EnableRTLMirroring method
954
955 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
956
957         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
958         SelectedIndex to -1. Fixes bug #78121.
959
960 2006-04-17  Jackson Harper  <jackson@ximian.com>
961
962         * Binding.cs: Handle null values for Current and BindingContext.
963         This occurs when binding is a little delayed.
964         * CurrencyManager.cs: return null for Current when there are no
965         items in the list.
966         - Hookup to the listchanged event on the DataView and update
967         bindings when the list is changed.  This fixes late binding of
968         controls.
969
970 2006-04-17  Jackson Harper  <jackson@ximian.com>
971
972         * X11Dnd.cs:
973         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
974         Ringenbach.
975
976 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
977
978         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
979           place
980         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
981           with the correct ButtonState
982
983 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
984
985         * XplatUIX11.cs: Improved distinguishing between window types to
986           tell the WM a type closer to what the app wants (Fixes #78107)
987
988 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
989
990         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
991           GrabHandle
992
993 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
994
995         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
996           drawing code to reflect the size grip changes
997
998 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
999
1000         * ImageListStreamer.cs: fix handling of the mask that follows the main
1001         bitmap when deserializing and serialize it properly. The generated mask
1002         should better be a 1bpp image, but I'll do that later.
1003
1004 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1005
1006         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1007           path doesn't fit into some of our Current.Places
1008
1009 2006-04-13  Jackson Harper  <jackson@ximian.com>
1010
1011         * ComboBox.cs: Use borders instead of drawing our own decorations,
1012         try to obey correct rules for heights.
1013         * Theme.cs:
1014         * ThemeNice.cs:
1015         * ThemeClearLooks.cs:
1016         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1017         this is now handled by borders.
1018         - Remove unused DrawListBoxDecorationSize method.
1019         
1020 2006-04-13  Mike Kestner  <mkestner@novell.com>
1021
1022         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1023         reported by Alex.
1024
1025 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1026
1027         * ThemeWin32Classic.cs: 
1028           - Fixed CPDrawStringDisabled
1029           - Corrected drawing of disabled menu items
1030           - Fixed drawing of disabled radio buttons (bug #78095)
1031           - Draw check in a disabled CheckBox with color ControlDark 
1032
1033 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1034
1035         * Form.cs: Use the provided width when calculating the menu size;
1036           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1037           and ClientSize.Width won't be updated yet
1038         * Application.cs: Use Visible instead of Show() to make form visible,
1039           this way we create the handle later and menusize is considered
1040
1041 2006-04-12  Mike Kestner  <mkestner@novell.com>
1042
1043         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1044         reporting.
1045
1046 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1047
1048         * TextBox.cs: Implemented context menu
1049
1050 2006-04-12  Mike Kestner  <mkestner@novell.com>
1051
1052         * ListView.cs: implement box selection. fixes #77838.
1053         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1054
1055 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1056
1057         * XplatUIX11.cs: Added setting of window type when transient window
1058           is created (metacity would move it otherwise)
1059         * X11Structs.cs: Added WINDOW_TYPE atoms
1060         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1061           background (the control is Opaque but still wants transparent
1062           backgrounds)
1063
1064 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1065
1066         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1067           that set Opaque but don't mean it (like all ButtonBase-derived
1068           controls) to still draw their background
1069         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1070           the background
1071
1072 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1073
1074         * Control.cs (PaintControlBackground): Set the graphics object
1075           on our PaintEvent to null to prevent it from being disposed
1076           when the PaintEvent gets disposed
1077
1078 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1079
1080         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1081         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1082
1083 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1084
1085         * Control.cs: 
1086           - Added transparency check to BackColor property. Transparent
1087             backgrounds are only allowed if the control styles permit it
1088           - Added recursive painting of parent control background and
1089             foreground if a control with a transparent backcolor is drawn
1090             (Thanks to Tim Ringenback for providing his 'hack' as a base
1091              for this patch) Fixes #77985 and #78026.
1092           - Added Opaque style check before calling OnPaintBackground, no
1093             need to draw the background if the control is opaque
1094           - Removed ControlAccessibleObject owner variable (inherited from
1095             base, no need to define again)
1096           - Added some documentation links explaining the drawing events
1097             and styles
1098
1099 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1100
1101         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1102           that the affected control is the located at the left border of our
1103           parent (Fixes #77936)
1104
1105 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1106
1107         * TextBoxBase.cs: When rendering disabled or readonly controls,
1108           draw the background with 'Control' instead of 'Window' color as
1109           long as the user hasn't specifically set a color
1110
1111 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1112
1113         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1114           since that won't be updated if the user types text (only if it's
1115           programatically set)
1116
1117 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1118
1119         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1120           layout changes do to app-triggered resizes will have the proper
1121           display rectangle for layout
1122
1123 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1124
1125         * ThemeWin32Classic.cs:
1126           - Make use of the SystemBrushes and SystemPens wherever possible
1127           - Corrected some highlight colors
1128           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1129             drawing
1130         * Theme.cs: Added Empty field to CPColor struct
1131
1132 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1133
1134         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1135           is displayed when calculating the display rectangle. Thanks to Mike
1136           for teaching me the err of my ways.
1137
1138 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1139
1140         * ScrollableControl.cs:
1141           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1142             (instead of 0,0) and we now return the real width/height instead of
1143             just the clientrectangle, adjusted for padding. The rectangle is
1144             now cached and created by the new CalculateDisplayRectangle method.
1145           - Created new CalculateDisplayRectange method, which basically does
1146             what get_DisplayRectangle() did originally, but now using the 
1147             right edge instead of DisplayRectangle to determine the size of
1148             our scrollbars
1149           - get_Canvas(): Fixed it to properly calculate canvas for 
1150             right/bottom controls which seem to be placed to the right/bottom
1151             of any controls that have a fixed location
1152           - Removed TODO that's taken care of
1153           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1154             and SetDisplayRectLocation according to new MSDN2 docs
1155           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1156             event when that is called, this is added for compatibility
1157           - ScrollControlIntoView(): Implemented.
1158           - Switched scrollbars to be implicit, they shouldn't be selectable
1159         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1160           call it when the active control is set/changed
1161         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1162         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1163           implicit_control variable (used for native Win32 message generation)
1164         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1165           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1166         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1167         * XplatUIStructs.cs: Added ScrollBarCommands enum
1168
1169 2006-04-10  Jackson Harper  <jackson@ximian.com>
1170
1171         * ButtonBase.cs:
1172         * CheckedListBox.cs:
1173         * ComboBox.cs:
1174         * DataGrid.cs:
1175         * DataGridView.cs:
1176         * Form.cs:
1177         * GroupBox.cs:
1178         * ListBox.cs:
1179         * PrintPreviewControl.cs:
1180         * ProgressBar.cs:
1181         * PropertyGrid.cs:
1182         * Splitter.cs:
1183         * StatusBar.cs:
1184         * TrackBar.cs:
1185         * UpDownBase.cs: Fixup base event overrides.
1186         
1187 2006-04-06  Mike Kestner  <mkestner@novell.com>
1188
1189         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1190         all user-initiated value changes to min <= value <= max-thumbsz+1.
1191         (set_Value): check for vert/horiz when calculating new thumb position.
1192         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1193         like MS does.
1194         (OnMouseMoveSB): refactor the thumb dragging code and refine
1195         invalidation logic to reduce flicker.
1196         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1197         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1198         (UpdateThumbPosition): small code readability cleanup
1199
1200 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1201
1202         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1203           different
1204
1205 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1206
1207         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1208
1209 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1210
1211         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1212         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1213           This dramatically reduces the number of Pen.Dispose calls. 
1214           Where possible call ResPool methods only once instead of calling it
1215           over and over again (for example for the same color).
1216
1217 2006-04-06  Mike Kestner  <mkestner@novell.com>
1218
1219         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1220         Also remove an unused private field on the collection. Fixes #77972.
1221
1222 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1223
1224         * ThemeNice.cs: Added ToolBar drawing code
1225
1226 2006-04-06  Mike Kestner  <mkestner@novell.com>
1227
1228         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1229         I'm assuming that means we need to look up the toplevel for the
1230         provided control. Fixes the crash trace in #77911 but exposes another
1231         crash in some strange reflection usage in NDocGui.
1232
1233 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1234
1235         * ThemeNice.cs: Gave it a little silver touch and added Images
1236           method
1237         * FontDialog.cs: FontDialog is not resizable
1238         * FileDialg.cs: Added SizeGripStyle.Show
1239
1240 2006-04-05  Jackson Harper  <jackson@ximian.com>
1241
1242         * KeyboardLayouts.cs: Remove warning.
1243
1244 2006-04-05  Jackson Harper  <jackson@ximian.com>
1245
1246         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1247         all of our controls instead of Paint +=.
1248         * ListBox.cs:
1249         * ListView.cs:
1250         * MenuAPI.cs:
1251         * MessageBox.cs:
1252         * NotifyIcon.cs:
1253         * ProgressBar.cs:
1254         * ScrollBar.cs:
1255         * Splitter.cs:
1256         * StatusBar.cs:
1257         * TabControl.cs:
1258         * TextBoxBase.cs:
1259         * ToolBar.cs:
1260         * TrackBar.cs:
1261         * UpDownBase.cs:
1262         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1263         use OnPaintInternal. Remove Width/Height and Visible checks in
1264         paint handler, this is done at a higher level now.
1265         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1266         * PaintEventArgs.cs: Add a handled flag so controls that don't
1267         want anymore painting after OnPaintInternal can make sure OnPaint
1268         isn't called.
1269
1270 2006-04-05  Mike Kestner  <mkestner@novell.com>
1271
1272         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1273         state of the form, so that we don't process events when Modal dialogs
1274         are up. Fixes #77922.
1275
1276 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1277
1278         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1279           checking is done.
1280
1281 2006-04-05  Mike Kestner  <mkestner@novell.com>
1282
1283         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1284
1285 2006-04-05  Mike Kestner  <mkestner@novell.com>
1286
1287         * ListView.cs (HeaderMouseMove): null guarding for the over column
1288         when setting up the drag_to_index.  Fixes #78015.
1289
1290 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1291
1292         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1293           in the taskbar. Transient windows seem to accomplish that.
1294
1295 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1296
1297         * Form.cs:
1298           - Re-enabled CreateParams.X/Y code for FormStartPosition
1299           - Added code for manual placement when creating the Control
1300           - Incomplete patch to treat MDI forms differently when
1301             setting the ClientSizeCore. (Still need to figure out handling
1302             x/y coords there)
1303         * XplatUIX11.cs:
1304           - When we're explicitly setting the X/Y position of a non-Child
1305             window, let the WM know. Metacity really wants this.
1306
1307 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1308
1309         * ThemeNice.cs: Added CPDrawButton
1310
1311 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1312
1313         * ThemeNice.cs: Changed the color for focused buttons and activated
1314           the arrows for small scroll buttons.
1315
1316 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1317
1318         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1319           anymore. Changed some method modifiers to protected (virtual)
1320         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1321           changes
1322         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1323           Updated drawing of menus, buttons and progressbars; added
1324           CPDrawBorder3D 
1325
1326 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1327
1328         * ImageListStreamer.cs: implemented serialization/deserialization
1329         of the images.
1330
1331 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1332
1333         * ThemeWin32Classic.cs:
1334           - Removed all the DrawFrameControl stuff; CPDrawButton,
1335             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1336             inside the methods
1337           - Updated and corrected the drawing code of CPDrawButton,
1338             CPDrawCheckBox and CPDrawRadioButton to better match ms
1339           - Updated theme checkbox and radiobutton code to use the CP*
1340             methods
1341
1342 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1343
1344         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1345           bug is fixed
1346
1347 2006-03-31  Jackson Harper  <jackson@ximian.com>
1348
1349         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1350         sometimes.
1351         * UpDownBase.cs: Don't CreateGraphics manually, use a
1352         Refresh. Ideally we would invalidate the correct areas here.
1353
1354 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1355
1356         * XplatUIX11.cs: 
1357           - We now track the mapping state of windows. If a window (or 
1358             one of it's parents) is not mapped we no longer permit
1359             WM_PAINT messages to be generated since we'd otherwise get 
1360             lots of BadMatch X errors. Jackson did all the work figuring
1361             out the problem.
1362           - Destroying the caret if the window it's contained in is 
1363             destroyed. Can't use regular DestroyCaret method since it
1364             might fall into a drawing function (trying to remove the
1365             caret) and with that generate new BadMatch errors. Again,
1366             Jackson tracked this down.
1367           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1368             make sure we send the messages to all windows. (The old code
1369             would send the WM_DESTROY to the window, and then all child
1370             windows would be 'gone' because the WM_DESTROY handle lookup
1371             would no longer find the destroyed window)
1372         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1373         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1374
1375 2006-03-31  Jackson Harper  <jackson@ximian.com>
1376
1377         * ScrollableControl.cs: Dont recalc if we are not visible.
1378
1379 2006-03-31  Mike Kestner  <mkestner@novell.com>
1380
1381         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1382         the visibility branch.
1383
1384 2006-03-31  Jackson Harper  <jackson@ximian.com>
1385
1386         * ScrollBar.cs: Cap values when incrementing/decrementing.
1387
1388 2006-03-31  Mike Kestner  <mkestner@novell.com>
1389
1390         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1391         * ToolTip.cs: guard against timer expirations with no active control.
1392         Not sure why it happened.
1393
1394 2006-03-31  Mike Kestner  <mkestner@novell.com>
1395
1396         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1397         text.
1398         * ToolTip.cs: Position the tooltip based on where the cursor is at
1399         popup time, not at MouseEnter time.  Add a Down state so that we don't
1400         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1401         positioning offset. Lookup DisplaySize at positioning time, since it
1402         can theoretically change during invocation.
1403         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1404         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1405
1406 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1407
1408         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1409           Fixes behaviour when the Text property of the box is String.Empty
1410
1411 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1412
1413         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1414           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1415           a window)
1416
1417 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1418
1419         * FileDialog.cs: Visual enhancement for the popup buttons in 
1420           PopupButtonPanel
1421
1422 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1423
1424         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1425           code
1426
1427 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1428
1429         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1430           highlighted menu items to match ms
1431
1432 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1433
1434         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1435
1436 2006-03-30  Mike Kestner  <mkestner@novell.com>
1437
1438         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1439         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1440         go active to account for HotLight to Selected transition.
1441         * MenuItem.cs: add internal Selected prop. Fill out the Status
1442         property by calculating it from item info. Add HotLight,
1443         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1444
1445 2006-03-30  Mike Kestner  <mkestner@novell.com>
1446
1447         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1448
1449 2006-03-29  Jackson Harper  <jackson@ximian.com>
1450
1451         * Form.cs: Implement TODO.
1452
1453 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1454
1455         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1456           missing proper dialog setup in the constructor
1457
1458 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1459
1460         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1461         * Control.cs:
1462           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1463           - Fixed ResetBindings and removed TODO
1464           - Added check for cross-thread calls to get_Handle()
1465           - Added Marshaller attribute for set_Font to satisfy class status
1466         * FontDialog.cs: Removed TODOs that seemed implemented
1467         * UpDownBase.cs: Removed unneeded TODO and Fixme
1468         * MessageBox.cs: Implemented support for Default button and removed TODO
1469         * FileDialog.cs: Removed obsolete TODO
1470         * DomainUpDown.cs: Removed obsolete TODO
1471         * ButtonBase.cs: Removed obsolete TODO
1472         * XplatUIWin32.cs: Removed obsolete TODO
1473         * Form.cs:
1474           - Removed obsolete TODO
1475           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1476             internal status updates
1477           - Making sure the active control is selected when the control is created
1478         * CurrencyManager.cs: Removed obsolete TODO
1479
1480 2006-03-29  Mike Kestner  <mkestner@novell.com>
1481
1482         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1483         of PrintPreviewDialog and RichTextBox.
1484
1485 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1486
1487         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1488           DarkDark, Light and LightLight colors for a specific color
1489         * ThemeWin32Classic.cs:
1490           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1491             Appearance = Button 
1492           - Make use of the new ResPool helper CPColor
1493           - Draw ProgressBar and StatusBar with correct 3D borders
1494
1495 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1496
1497         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1498
1499 2006-03-28  Mike Kestner  <mkestner@novell.com>
1500
1501         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1502         calculating col/row counts.
1503
1504 2006-03-28  Mike Kestner  <mkestner@novell.com>
1505
1506         * ColumnHeader.cs:
1507         * ListView.cs:
1508         * ListViewItem.cs:
1509         * Menu.cs: 
1510         switch to explicit interface method implementation for some methods
1511         corcompare identifies as inconsistent with MS.
1512
1513 2006-03-28  Mike Kestner  <mkestner@novell.com>
1514
1515         * MainMenu.cs: 
1516         * Menu.cs:
1517         add a few missing methods from the class status output.
1518
1519 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1520
1521         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1522           correct.
1523
1524 2006-03-28  Mike Kestner  <mkestner@novell.com>
1525
1526         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1527
1528 2006-03-27  Mike Kestner  <mkestner@novell.com>
1529
1530         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1531         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1532
1533 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1534
1535         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1536
1537 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1538
1539         * ThemeWin32Classic.cs:
1540           - GroupBox: Inserted a little gap between the text and the lines
1541             on the right side
1542           - Made the code in CPDrawBorder3D more readable
1543           - Corrected the drawing location of the up and down arrows in 
1544             CPDrawScrollButton
1545
1546 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1547
1548         * ControlPaint.cs: Corrected line widths in DrawBorder for
1549           ButtonBorderStyle Inset and Outset
1550
1551 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1552
1553         * ThemeWin32Classic.cs:
1554           - Rewrote the totally broken CPDrawBorder3D method. That was
1555             one of the main problems for the terrific ThemeWin32Classic
1556             look
1557           - Updated and corrected Button drawing
1558           - Correct the dimensions of the SizeGrip to match ms ones
1559           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1560         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1561           Border3DStyle.Sunken to match ms.
1562
1563 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1564
1565         * ThemeWin32Classic.cs: First small part of the "de-uglify
1566           ThemeWin32Classic" effort, SizeGrip
1567
1568 2006-03-24  Jackson Harper  <jackson@ximian.com>
1569
1570         * XplatUIX11.cs: Give a max idle time of one second, this matches
1571         MS and forces an Idle event every second when there are no other
1572         events in the queue.
1573
1574 2006-03-24  Mike Kestner  <mkestner@novell.com>
1575
1576         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1577         * ListView.Item.cs: fix layout issues with null image lists and images
1578         smaller than checkbox size.
1579         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1580         mode like MS does.  It's weird, but consistent.  ;-)
1581         Fixes #77890.
1582
1583 2006-03-24  Mike Kestner  <mkestner@novell.com>
1584
1585         * ListView.cs: Scroll wheel support for the item control.  Fixes
1586         #77839.
1587
1588 2006-03-23  Jackson Harper  <jackson@ximian.com>
1589
1590         * ScrollableControl.cs: Special case negative sized areas, not
1591         zero.
1592         * MonthCalendar.cs: Save the rect of the clicked date so we can
1593         use it for invalidation.
1594         - Try to cut down on the number of invalidates
1595         - Invalidate the rect the mouse is over and was over when moving
1596         the mouse, so we get the focus box following the cursor.
1597
1598 2006-03-23  Mike Kestner  <mkestner@novell.com>
1599
1600         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1601         focus rectangle drawing. Fixes #77835.
1602
1603 2006-03-23  Mike Kestner  <mkestner@novell.com>
1604
1605         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1606         the if and else if and reverting back to the original == check on the
1607         None conditional.
1608
1609 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1610
1611         * FontDialog.cs: Update the example panel if the selected index of
1612           the fontListBox changes.
1613
1614 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1615
1616         * FileDialog.cs: Make FileDialog remember which directory it was in
1617           last in the same execution.
1618
1619 2006-03-22  Mike Kestner  <mkestner@novell.com>
1620
1621         * FileDialog.cs: make the DropDownMenu on the toolbar display
1622         RadioChecks since they are mutually exclusive and that's what MS does.
1623
1624 2006-03-22  Mike Kestner  <mkestner@novell.com>
1625
1626         * Theme.cs: add Color param to CPDrawMenuGlyph.
1627         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1628         checks and radio marks and arrows are visible on highlighted items.
1629         * ControlPaint.cs: update to use new Theme signature.
1630
1631 2006-03-22  Mike Kestner  <mkestner@novell.com>
1632
1633         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1634         is active. Fixes #77870.
1635
1636 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1637
1638         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1639           to be focused/selected after startup
1640
1641 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1642
1643         * ColorDialog.cs: 
1644           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1645             CustomColors and ShowHelp properties
1646           - Some internal rewrites to get better results when using the
1647             ColorMatrix
1648
1649 2006-03-22  Mike Kestner  <mkestner@novell.com>
1650
1651         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1652         HoverSelection.  Fixes #77836.
1653
1654 2006-03-22  Mike Kestner  <mkestner@novell.com>
1655
1656         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1657         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1658         1, not 0.  Update ButtonSize based on a pixel count of the win32
1659         control.  Adjust the toolbar size/location for new button size.
1660
1661 2006-03-22  Jackson Harper  <jackson@ximian.com>
1662
1663         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1664         true.
1665         * ScrollBar.cs: When doing increments and decrements we need to
1666         set the Value property so that ValueChanged gets raised. A
1667         possible optimization here would be to make an internal SetValue
1668         that doesn't invalidate immediately.
1669         * ToolTip.cs: Tooltips get added to their container (when
1670         supplied) so they get disposed when the container is disposed.
1671         - Don't create tooltips for String.Empty. This prevents all these
1672         little 2-3 pixel windows from showing up when running nunit-gui
1673         and driving me mad.
1674         * Form.cs: Don't set topmost when setting the owner if the handles
1675         haven't been created yet.  The topmost set will happen when the
1676         handles are created.
1677
1678 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1679
1680         * XplatUIX11.cs:
1681           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1682           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1683             visible (to allow them to recalculate their sizes)
1684
1685 2006-03-21  Mike Kestner  <mkestner@novell.com>
1686
1687         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1688         methods. Removed a ton of redundant code.  Still not really happy with
1689         the border rendering, but I think that's mainly because of the
1690         ControlDarkDark being black instead of a dark grey. Depending on how 
1691         close we want to be, we might want to revisit those color choices.
1692         Among the new features added during the refactor were DropDownArrow
1693         pressed rendering, Disabled image rendering.  Proper flat appearance
1694         boundary rendering.  Removed the Divider and Wrapping dividers since I
1695         can't figure out any combination of themes and conditions to make the
1696         MS control draw a horizontal line on a toolbar despite what the
1697         Divider property docs indicate.
1698         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1699         conditions and incorrect layout.  Updated to coding standard.
1700         * ToolBarButton.cs: refactored layout and positioning code from
1701         ToolBar to here.  Invalidate wherever possible instead of forcing
1702         redraws of the whole toolbar. 
1703         (Known remaining issues: explicit ButtonSize smaller than provided
1704         images.)
1705
1706 2006-03-21  Mike Kestner  <mkestner@novell.com>
1707
1708         * ContextMenu.cs (Show): use the position parameter instead of just
1709         showing at the MousePosition.
1710
1711 2006-03-21  Jackson Harper  <jackson@ximian.com>
1712
1713         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1714         control handle this.
1715         * TreeNodeCollection.cs: If we are clearing the root node we need
1716         to reset top_node so calcs can still happen.
1717         * ThemeWin32Classic.cs: This is a Flags so we need to check
1718         properly.
1719         
1720 2006-03-21  Jackson Harper  <jackson@ximian.com>
1721
1722         * DataGrid.cs: Create columns when the binding context has been
1723         changed.
1724         * X11Structs.cs: Keysyms are uints.
1725         - Add size to fix build.
1726
1727 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1728
1729         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1730           XplatUIOSX.cs: 
1731           - Added ResetMouseHover method to allow controls to retrigger
1732             hovering if they need it more than once
1733           - Implemented MouseHoverTime and MouseHoverSize properties
1734         * Timer.cs: Start() must reset the interval
1735         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1736           properties
1737
1738 2006-03-21  Jackson Harper  <jackson@ximian.com>
1739
1740         * X11Keyboard.cs: improved layout detection. Move the nonchar
1741         tables into this file.
1742         * KeyboardLayouts.cs: Move the tables into resource files.
1743
1744 2006-03-21  Mike Kestner  <mkestner@novell.com>
1745
1746         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1747
1748 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1749
1750         * Mime.cs: Various speed optimizations. Looking up mime types
1751           is now 2 times faster than before
1752
1753 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1754
1755         * CreateParams.cs: Added internal menu field
1756         * Control.cs: 
1757           - Switched call order for UpdateBounds; now we always call
1758             the one that also takes ClientSize, and we're calculating the 
1759             client size via driver method in the others. The previous
1760             method of tracking client size by difference wasn't working
1761             for forms where even the starting client size wouldn't match
1762             the overall form size (due to borders) (Part of fix for #77729)
1763           - CreateParams(): Do not use parent.Handle unless the handle is
1764             already created. Causes havoc with Nexxia and throws off our
1765             creation of controls
1766         * XplatUIX11.cs:
1767           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1768           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1769             method (consolidates code)
1770           - Changed RequestNCRecalc to use new PerformNCCalc method
1771           - Added calls to RequestNCRecalc when menus and borders are changed
1772             to allow app to set NC size. (Part of fix for #77729) This matches
1773             when MS send a WM_NCRECALC on Win32 windows.
1774           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1775             (Part of fix for #77729). This matches what MS does, they also
1776             send that message when the form is made visible.
1777           - XException.GetMessage: Improved usability of X errors by including
1778             a translation of the window into Hwnd and Control class
1779           - Improved debug info for window creation, reparenting and destruction
1780           - Created helper method WindowIsMapped() [Currently not used]
1781         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1782         * Form.cs:
1783           - CreateParams: Now setting our menu on the new internal menu field
1784           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1785             avoid calculating the same property twice
1786         * Hwnd.cs:
1787           - Improved usability of ToString() for debugging purposes
1788           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1789             determine the height of the menu, instead of just the font. This
1790             required to also create a graphics context and to keep a bmp 
1791             around (for performance reasons)
1792
1793 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
1794
1795         * MenuAPI.cs: Added OnMouseUp method
1796         * Form.cs:
1797           - Now remembering the requested client size, avoids size errors
1798           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1799             instead of base if the menu is active. This is required due to
1800             control now capturing and releasing on down/up and it would
1801             prematurely release our menu capture
1802
1803 2006-03-17  Jackson Harper  <jackson@ximian.com>
1804
1805         * KeyboardLayouts.cs: Add the czech layouts.
1806
1807 2006-03-16  Jackson Harper  <jackson@ximian.com>
1808
1809         * Control.cs: Use the viewport space when sizing not the controls
1810         client size, so things like ScrollableControl that effect the
1811         viewport size (when scrollbars are added) are computed correctly.
1812         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1813         of ManagerEntrys.
1814         - Handle creating BindingManagers for null data sources.
1815         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1816         source, otherwise when rows are added they are added to the 'fake'
1817         datasource and we will crash when trying to set the position in
1818         those rows.
1819         - Use Implicit scrollbars on the datagrid so they arent
1820         selectable.
1821         
1822 2006-03-16  Jackson Harper  <jackson@ximian.com>
1823
1824         * Binding.cs:
1825         * InternalWindowManager.cs:
1826         * MdiWindowManager.cs:
1827         * X11Keyboard.cs: I really want Mike to love me again (fix
1828         compiler warnings).
1829
1830 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
1831
1832         * DataGrid.cs:
1833           - OnMouseDown: Switch to editing mode when clicking on the cell
1834                          even if we're clicking on the cell that's currently 
1835                          selected
1836           - ProcessGridKey: Left/Right now wrap like MS.Net does
1837           - ProcessGridKey: Tab now knows to add a new row when tab is
1838                             pressed in the cell of the last column of the 
1839                             last row
1840           - ProcessGridKey: Enter now adds another row  if pressed in the last
1841                             row and selectes the new row, same column cell
1842           - ProcessGridKey: Home/End navigate columns, not rows, like 
1843                             originally implemented
1844           - Broke ProcessKeyPreview code out into an extra Internal method
1845             so it can be called from the edit code
1846         * DataGridTextBox.cs (ProcessKeyMessage):
1847           - Switched to accept Tab keypresses
1848           - Added F2 handling to allow jumping to the end of the edited cell
1849           - Added logic to allow moving caret left/right inside edited cell
1850             and making the edited cell jump when the caret hits cell borders
1851           - Tab and Enter are now passed to the datagrid after being handled
1852         * TextBoxBase.cs:
1853           - Removed capture code now that Control handles it
1854           - set_SelectionStart now ensures caret is visible
1855
1856 2006-03-16  Jackson Harper  <jackson@ximian.com>
1857
1858         * TrackBar.cs: Debackwards the increment/decrement for handling
1859         mouse clicks on the bar with vertical trackbars.
1860         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1861         bottom to match MS.
1862
1863 2006-03-16  Mike Kestner  <mkestner@novell.com>
1864
1865         * ListView.cs: make shift/ctrl keyboard and mouse selection 
1866         consistent with the MS control. Fix a bug in
1867         SelectedListViewItemCollection.Clear that was pissing me off for the
1868         better part of a day because the collection was being altered
1869         underneath us as we walked the list.
1870
1871 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
1872
1873         * Control.cs: Not sure how we could miss this so long, but it seems
1874           that MS.Net has Capture set all the way from before calling 
1875           OnMouseDown through sending the mouse events until after
1876           OnMouseUp. This will fix DataGrid's selection being set to end
1877           at the location of the MouseUp.
1878
1879 2006-03-15  Jackson Harper  <jackson@ximian.com>
1880
1881         * BindingContext.cs: Check the binding after its added so that it
1882           can initialize the binding managers and hookup to events.
1883         * Binding.cs: Data members seem to sometimes include rows/cols in
1884           the format Row.Column we now take this into account.
1885           - Hookup to the position changed event so we can update the
1886           control when the position has changed in the data set.
1887         * CurrencyManager.cs: Take into account the row/col naming
1888           convention when creating dataset tables.
1889         * BindingContext.cs: Using a newer better way of storing
1890           datasource/datamember pairs.  Hopefully this better matches MS for
1891           looking up binding managers.
1892
1893
1894 2006-03-15  Jackson Harper  <jackson@ximian.com>
1895
1896         * BindingContext.cs: The currency manager needs the data member
1897         name, if the member is a data set we use the name to find the
1898         correct table.
1899         * CurrencyManager.cs: When creating the list prefer an IList over
1900         an IListSource.
1901         - Attempt to create a DataTable from a DataSet (TODO: might need
1902         some better error checking here, although MS doesn't seem to have much)
1903         - If we have a DataTable create a view and use it as our list.
1904
1905 2006-03-15  Mike Kestner  <mkestner@novell.com>
1906
1907         * ListView.cs: keep a matrix of the icon mode layout to facilitate
1908         keyboard navigation. Support Up/Down/Left/Right selection correctly
1909         for all 4 View modes.
1910         * ListViewItem.cs: add internal row/col fields for icon layouts.
1911
1912 2006-03-15  Jackson Harper  <jackson@ximian.com>
1913
1914         * TabControl.cs: Redraw the tabs when we resize so their newly
1915         calculated sizes are drawn on screen.
1916         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
1917         composite characters.
1918         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1919         - filter events so that composite characters can be created
1920         patches by peter
1921         * X11Structs.cs: Add XIMProperties enum.
1922
1923 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1924
1925         * Control.cs (BringToFront, SendToBack): Don't use window or handle
1926           unless it's created
1927
1928 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1929
1930         * Control.cs (PerformLayout): We don't need to consider visiblity
1931           for anchoring, only for docking. This fixes 'whacky' alignment
1932           in listbox and other controls that use implicit scrollbars after
1933           the previous PerformLayout patch
1934         * ListBox.cs: Switched to use implicit scrollbars
1935           
1936 2006-03-14  Mike Kestner  <mkestner@novell.com>
1937
1938         * ToolBar.cs: 
1939         * VScrollBar.cs:
1940         - chain up the "new event" overrides to base and use
1941         OnEvent to raise them.  Part of fix for bug #76509.
1942
1943 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
1944
1945         * FileDialog.cs: Do not select an item in the parent directory
1946           on backspace
1947
1948 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1949
1950         * Control.cs (PerformLayout): It would seem that we considered
1951           invisible windows for our layout. Not quite the right thing
1952           to do. Now we don't any longer, thereby fixing bug #76889.
1953
1954 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1955
1956         * Control.cs (CanFocus): I goofed. A control can have focus 
1957           even though it's not selectable. Made it match MS docs.
1958
1959 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1960
1961         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1962           center by default (fixes #76895)
1963         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
1964           all uses of Border3DSides.All with the explicit ORd together
1965           Left|Right|Top|Bottom because I assume that nobody was aware 
1966           that All also implies a center fill. Most places I checked had
1967           a fill right above.
1968         * ProgressBarStyle.cs: Added
1969
1970 2006-03-13  Mike Kestner  <mkestner@novell.com>
1971
1972         * ListView.cs: fix breakage in drag shadow header positioning 
1973         from Peter's csc compilation fix.
1974
1975 2006-03-13  Mike Kestner  <mkestner@novell.com>
1976
1977         * ListView.cs: fix NRE produced by backspacing twice in a focused
1978         FileDialog.
1979
1980 2006-03-13  Mike Kestner  <mkestner@novell.com>
1981
1982         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1983
1984 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1985
1986         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1987           be changed
1988         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1989           the allowed size before making programmatic size changes
1990
1991 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
1992
1993         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
1994           set, metacity is broken and will still use the emty sizes in 
1995           the struct. (Fix for #77089)
1996
1997 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1998
1999         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2000           WindowExStyles and marked both enums as Flags
2001         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2002           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2003           to match WindowStyles split
2004         * XplatUIX11.cs:
2005           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2006           - Updated to match WindowStyles split
2007         * XplatUIWin32.cs:
2008           - Fixed FosterParent creation, was using ExStyle on the Style field
2009             (This should help with Popup focus issues)
2010           - Updated to match WindowStyles split
2011
2012 2006-03-13  Jackson Harper  <jackson@ximian.com>
2013
2014         * MdiWindowManager.cs: Use the system menu height. Fixes some
2015         strange sizing issues.
2016
2017 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2018
2019         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2020         * TextBoxBase.cs:
2021           - Scroll to caret after inserting text (#77672)
2022           - Make scroll range one pixel higher, fixes off-by-one error (and
2023             makes underlines visible on the last line)
2024
2025 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2026
2027         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2028           the keyboard state from being stuck with keys in 'pressed' state when
2029           focus is switched away via keyboard
2030         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2031           reset the keyboard if no X11 KeyUp events are expected to come
2032         * X11Structs.cs: Switched type of Visible to bool to match driver
2033
2034 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2035
2036         * TextControl.cs:
2037           - Switched caret to be just 1 pixel wide, matches MS and looks less
2038             clunky
2039           - Moved caret display 1 pixel down from the top of the control
2040             to improve view
2041           - InsertCharAtCharet: Update the selection start if moving the caret
2042             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2043           - No longer always creating the caret when the caret methods are
2044             called. Only the actual ShowCaret/HideCaret will do that now
2045           - Only setting caret visible if the owner control has focus
2046           - UpdateView: Added invalidation-shortcut logic for center and right 
2047             aligned text. Previously we'd update all according to the left
2048             logic which caused drawing errors. Also fixed height of invalidated
2049             areas, now properly invalidating the whole area (was off-by-one)
2050           - owner_HandleCreated: Always generate the document when the
2051             handle is created; this ensures that 
2052         * TextBoxBase.cs:
2053           - Fixed situation where caret would disappear under the right
2054             window border, also improved scrolling behaviour on left-
2055             aligned textboxes
2056           - Fixed right-aligned textboxes to have a border to the
2057             right instead of the caret being under the right border
2058         * XplatUIX11.cs:
2059           - Switched from 'nested' to simple visible/not visible tracking 
2060             for caret (part of fix for #77671)
2061           - No longer passing through translated FocusIn/FocusOut messages
2062             since we were notifying too often and the wrong windows. Instead
2063             we just notify our focussed window of receiving or loosing focus
2064         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2065           counting for caret to simple visible yes/no behaviour (part of 
2066           fix for #77671)
2067
2068 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2069
2070         * Mime.cs: Remove debug code...
2071
2072 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2073
2074         * MimeGenerated.cs: Removed
2075         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2076           and subclasses) from /usr/(local/)share/mime and
2077           $HOME/.local/share/mime.
2078
2079 2006-03-10  Jackson Harper  <jackson@ximian.com>
2080
2081         * MdiWindowManager.cs: Recalc the NC area when a window is
2082         maximized/restored so that the menu area is drawn on forms that
2083         don't have a menu.
2084
2085 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2086
2087         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2088           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2089           us to force a WM_NCCALCRESIZE message being sent. This is needed
2090           for MDI maximizing.
2091
2092 2006-03-10  Jackson Harper  <jackson@ximian.com>
2093
2094         * Form.cs: We need to use the ActiveMenu when calculating menu
2095         height.
2096         - Fix nullref when the window manager hasn't been created yet.
2097         * Control.cs: Fix nullref when we try to bring a control to the
2098         front that has no parent.
2099         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2100         height.
2101         - Add a dummy item to the maximized menu so it always has the
2102         correct height. Otherwise when there are no menus we don't get our
2103         icon and buttons.
2104         
2105
2106 2006-03-10  Jackson Harper  <jackson@ximian.com>
2107
2108         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2109         stuff.
2110         * Form.cs: Make the window_state internal so the window managers
2111         can track it.
2112         - When an MDI child is maximized let its window manager create the
2113         main menu (so it can add its icon).
2114         - Notify the window managers of state changes
2115         - Let the window manager paint its buttons and handle button
2116         clicks on the menu when it is maximized.
2117         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2118         window manager, since tool windows don't use it, only mdi windows.
2119         - Tell the main form that we don't want it to handle NCPAINT
2120         itself to avoid extra painting.
2121         - Handle clicks on a maximized windows menu.
2122         - Handle window state changes
2123         - Handle minimize/maximize clicks correctly by setting the window state.
2124         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2125         when clicking on the forms icon).
2126         - New method to create a forms maximized menu. This is its normal
2127         menu + an icon.
2128         - Handle window state changes.
2129         - Handle sizing of maximized windows.  Maximized windows are just
2130         drawn bigger then the parent visible area. All controls are still
2131         there, they are just outside the visible area (this matches windows).
2132         * MdiClient.cs: No scrollbars when a child window is maximized.
2133         - Let the children windows figure out how big they should be when
2134         sizing maximized windows.
2135         - Implement a version of ArrangeIconicWindows somewhat similar to
2136         Windows version.  There are some little differences, but I don't
2137         think any app will rely on the layout of minimized mdi windows.
2138
2139 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2140
2141         * Padding.cs: Several fixes to allow compiling with csc 2.0
2142
2143 2006-03-09  Jackson Harper  <jackson@ximian.com>
2144
2145         * Menu.cs:
2146         * MenuItem.cs: Cheap hack so we can add items to the list without
2147         the events being raised.  This allows adding mdi items during
2148         drawing. TODO: Should probably find a better time to add the items.
2149
2150 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2151
2152         * ThemeWin32Classic.cs:
2153           - CheckBox_DrawText: Added logic to not wrap if not enough space
2154             is available (Fix for bug #77727)
2155           - RadioButton_DrawText: Added logic not to wrap if not enough
2156             space is available (Fix for bug #77727). Also removed some
2157             duplicate code, DrawString always drawing the regular text
2158             before hitting the if statement.
2159
2160 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2161
2162         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2163
2164 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2165
2166         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2167         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2168           methods. Moved the new 2.0 properties into alphabetical order with
2169           other properties and added MonoTODO tags
2170
2171 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2172
2173         * AutoScaleMode.cs: Added. Fix build.
2174
2175 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2176
2177         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2178           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2179           and was requiring premature handle creation for calls from above
2180         * Form.cs, Control.cs: Removed handle arguments from calls to
2181           CalculateClientRect()
2182
2183 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2184
2185         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2186           drag_column.column_rect is MarshalByRef and can't be used that way
2187
2188 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2189
2190         * AxHost.cs: Added deserialization constructor for 
2191           AxHost+State (fixes 77743)
2192
2193 2006-03-09  Mike Kestner  <mkestner@novell.com>
2194
2195         * ListView.cs: 
2196         - Added column drag reordering for details view.
2197         - fixed behavior when mouse is dragged off column and
2198         AllowColumnReorder is false.
2199         * ColumnHeader.cs: clone the format too in Clone.
2200         * Theme.cs: add DrawListViewHeaderDragDetails method.
2201         * ThemeWin32Classic.cs:
2202         - impl new method for drawing drag column shadows and targets.
2203         - support column offset for details mode in DrawListViewItem.
2204
2205 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2206
2207         * TextControl.cs: Reset the char_count when the document is cleared
2208           (Fixes bug reported on mono-winforms mailing list)
2209
2210 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2211
2212         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2213           of calling base we simply process the key ourselves, since both
2214           DefWindowProc and the handled method would set m.Result. 
2215           (Fixes #77732)
2216
2217 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2218
2219         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2220           method also moves the window; instead implemented a copy of
2221           Control.ScaleCore (Part of fix for #77456)
2222         * TextBoxBase.cs: 
2223           - Created new CreateGraphicsInternal method to allow providing
2224             a graphics context when no handle is created without triggering
2225             handle creation. (Part of fix for #77456)
2226           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2227         * TextControl.cs: 
2228           - Switched Constructor to require TextBoxBase instead of Control (to
2229             allow uncast access to CreateGraphicsInternal)
2230           - Safeguarded use of owner.Handle property. No longer accessing it
2231             unless the handle is already created.
2232           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2233           - Now triggering a recalc when owning control becomes visible
2234         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2235           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2236           premature handle creation (Part of fix for #77456)
2237         * Control.cs:
2238           - We now only destroy our double-buffering buffers when the
2239             control is resized or disposed, but not when visibility
2240             changes. (The code even re-created them twice every time)
2241           - Now requiring a redraw of the buffer on visibility changes
2242             (fixes bug 77654 part 2)
2243           - Not passing OnParentVisibleChanged up unless the control
2244             is visible
2245           - CanFocus: Fixed to match MS documentation
2246           - Focus: Fixed to return actual focus state and to check if
2247             setting focus is legal before setting it
2248
2249 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2250
2251         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2252           when to draw focus rectangle by looking at parent focus and
2253           selected state instead. This fixes TabPages on Linux sometimes
2254           having none or multiple focus rectangles.
2255         * XplatUIX11.cs (SetFocus): 
2256           - Don't set the focus if the same window already has focus
2257           - Use SendMessage instead of PostMessage (like it's Win32
2258             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2259             to match MS behaviour
2260         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2261           are not selectable.
2262
2263 2006-03-07  Jackson Harper  <jackson@ximian.com>
2264
2265         * PictureBox.cs: Revert line I accidently committed last week.
2266
2267 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2268
2269         * Control.cs: 
2270           - Added new IsRecreating and ParentIsRecreating properties to
2271             allow testing if RecreateHandle has been called on ourselves
2272             or one of our parents
2273           - WndProc(WM_DESTROY): If our control handle is being recreated
2274             we immediately need to create the handle when receiving the
2275             destroy, that way our child windows find a valid parent handle
2276             when they themselves are being recreated upon WM_DESTROY receipt
2277             (fix for bug #77654 part 1)
2278         * XplatUIX11.cs:
2279           - DestroyWindow: WM_DESTROY must be sent to our own window before
2280             notifying any child windows. MS documents that child windows
2281             are still valid when WM_DESTROY is received. (Control now relies on
2282             this behaviour)
2283           - Added some fine-grain debug options
2284
2285 2006-03-06  Jackson Harper  <jackson@ximian.com>
2286
2287         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2288         box and base calculations off this.
2289         * MdiChildContext.cs:
2290         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2291         anymore.
2292         
2293 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2294
2295         * Splitter.cs: In situations where the affected control is added
2296           to the parent's control list after the splitter, we would not
2297           populate affected. Now we try populating it on mousedown, if
2298           it's not already set, and force it to be re-set whenever our
2299           parent changes.
2300
2301 2006-03-03  Matt Hargett  <matt@use.net>
2302
2303         * Control.cs: implement Control.Padding
2304         * Padding.cs: -Padding.All returns -1 when constructing with the
2305         implicit default ctor
2306         -Padding.ToString() matches MS.NET
2307         * ContainerControl.cs: implement
2308         ContainerControl.AutoScaleDimensions
2309         * ListControl.cs: implement ListControl.FormattingEnabled
2310         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2311         * ButtonBase.cs:
2312         * TabPage.cs: Implement UseVisualStyleBackColor.
2313         * PictureBox.cs: Implement PictureBox.InitialImage.
2314
2315 2006-03-03  Mike Kestner  <mkestner@novell.com>
2316
2317         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2318         event declarations to proxy to base event.
2319         * ListViewItem.cs: update to use ItemControl.
2320         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2321         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2322         column header label rendering for 0 width columns.
2323
2324 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2325
2326         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2327           that causes the control to be created. Fixes #77476.
2328
2329 2006-03-02  Jackson Harper  <jackson@ximian.com>
2330
2331         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2332         expose_pending.
2333
2334 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2335
2336         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2337           passed in for the EventArgs (fixes #77690)
2338
2339 2006-03-01  Jackson Harper  <jackson@ximian.com>
2340
2341         * ScrollBar.cs: Refresh afterbeing resized.
2342
2343 2006-02-28  Mike Kestner  <mkestner@novell.com>
2344
2345         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2346         Clean up a tracker compile warning.
2347         * MenuItem.cs: add internal PerformPopup method.
2348         [Fixes #77457]
2349
2350 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2351
2352         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2353           implicit expose) when the text is set to null
2354
2355 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2356
2357         * RichTextBox.cs (FlushText): When newline is true, we always
2358           need to split the line, even if no text is on it and we may
2359           never eat newlines. (Fixes #77669)
2360
2361 2006-02-28  Mike Kestner  <mkestner@novell.com>
2362
2363         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2364         and set Selected instead.
2365         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2366         collections.
2367
2368 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2369
2370         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2371
2372 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2373
2374         * FontDialog.cs:
2375           - Got rid of the panel. All controls are now directly added to
2376             the dialog form
2377           - It is now possible to set a font with the Font property
2378           - MinSize and MaxSize property do now what they should
2379           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2380           - Searching and selecting a font with the font textbox works now,
2381             the same applies to the style and size textbox
2382           - Draw the correct 3D border in the example panel
2383           - Fixed a little mem leak (unused fonts didn't get disposed)
2384           - Many other internal updates/rewrites...
2385           - Fix typo
2386
2387 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2388
2389         * TextControl.cs: 
2390           - InsertRTFFromStream: Added 'number of characters inserted' argument
2391           - set_SelectedRTF: Now using the number of characters to calculate
2392             the new location for the selection and cursor (x/y cannot be used
2393             due to potentially already wrapped text)
2394
2395 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2396
2397         * TextControl.cs: Added property and implemented means to allow 
2398           disabling recalculation of a document (can be used to speed up
2399           multiple inserts and is needed to make RTF inserts predictable, see
2400           bug #77659)
2401         * RichTextBox.cs: Using the new NoRecalc property of Document to
2402           keep x/y insert locations predictable. Also makes it faster inserting
2403           large chunks of RTF
2404
2405 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2406
2407         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2408           it's easier for a child control to handle the other messages without
2409           having to duplicate the special functionality
2410         * TextBoxBase.cs
2411           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2412             code to handle processing the key ourselves, in order to get 
2413             access to the result of KeyEventArgs.Handled. We now only call 
2414             ProcessKey if they key hasn't been handled already. Fixes #77526.
2415           - set_Text: If null or empty string is given, just clear the 
2416             document. Fixes part of #77526
2417
2418 2006-02-27  Jackson Harper  <jackson@ximian.com>
2419
2420         * SizeGrip.cs: Paint the background color before painting the grip
2421         so things look right.
2422         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2423
2424 2006-02-27  Mike Kestner  <mkestner@novell.com>
2425
2426         * ListView.cs:
2427           - Restructure layout and invalidation model to remove a ton of
2428           flicker from the control and speed up performance in general.
2429           - Add manual column resize, flickers like crazy, but I already have
2430           some ideas on how I'll fix that. (#76822)
2431           - Merge the three Icon-based views into a single layout method.
2432           - Move item selection interaction logic from the item since 
2433           interaction with the collections is more appropriate to the view.
2434           - Deselection on non-item clicks.
2435         * ListViewItem.cs:
2436           - Encapsulate most of the layout. Add some internal props to trigger
2437           layout.  Move to a model where Items invalidate themselves instead
2438           of just invalidating the whole control every time something changes.
2439           - Invalidate on Text/Caption changes.
2440           - switch to an offset based layout model to avoid having to absolute
2441           position every element on item moves.
2442           - correct checkbox layout to conform to MS layout.
2443         * ThemeWin32Classic.cs:
2444           - refactor some column header drawing code.
2445           - fix string justification for column headers (#76821)
2446           - make SmallIcon labels top justified for compat with MS impl.
2447         * ThemeClearlooks.cs:
2448           - adjust to new ListViewItem internal checkbox bounds api.
2449
2450 2006-02-27  Jackson Harper  <jackson@ximian.com>
2451
2452         * Control.cs:  Change where implicit controls fall in the zorder.
2453         They are now on top of all children.
2454         - Synced AddImplicit code with Add
2455         - Removed unused enumerator.
2456         * SizeGrip.cs: Remove the TODO as its been TODONE.
2457
2458 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2459
2460         * TextControl.cs(Insert): Combine the last lines unless the insertion
2461           string ends with \n\n, otherwise we leave one line too many (Fixes
2462           something I noticed with the testapp for #77526; the bug itself was
2463           already fixed in the previous checkin)
2464
2465 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2466
2467         * RichTextBox.cs:
2468           - SelectionColor and SelectionFont methods no longer set absolute
2469             styles. Instead, the keep font or color respectively (This 
2470             resolves a long-standing FIXME in the code)
2471           - When flushing RTF text, the insert code now considers text trailing
2472             behind the insertion point (Fixes the bug where when replacing
2473             the selected text via SelectedRTF the remainder of the line behind 
2474             the selection would stay on the first insertion line)
2475         * TextBoxBase.cs:
2476           - AppendText now updates the selection points after inserting text
2477           - AppendText now ensures that the last tag (sometimes 0-length) of
2478             the document is used for the style information (Fixes part of 
2479             bug #77220)
2480         * TextControl.cs:
2481           - Created new FontDefiniton class to allow describing partial style
2482             changes
2483           - StreamLine() now takes a lines argument, to allow it to decide
2484             whether an encountered zero-length tag is the last in the document
2485             (which must be kept to not loose the font/color contained in it,
2486             for later appends)
2487           - Created Combine() and Split() methods for Marker structs, to 
2488             support marker updates due to reformatted documents (soft line
2489             wraps)
2490           - Implemented Document.CaretTag setter
2491           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2492             of the last line (Not the cause, but also exposed by bug #77220)
2493           - Added LineTag argument to InsertString method, to allow callers
2494             to force a certain tag to be used (required to force use of the
2495             trailing zero-length tag of a document)
2496           - Now updating markers in Combine(), to avoid stale tag markers
2497           - Added some method descriptions to aid maintenance
2498           - Implemented new FormatText concept, allowing additive/subtractive
2499             formatting by only specifying the components that are to be 
2500             changed. This was needed for resolving the RTB.SelectedColor/
2501             RTB.SelectedFont fixmes
2502           - Added Break() support method to allow breaking up linetags (used
2503             for partial formatting)
2504           - Added GenerateTextFormat() method. It is used for partial 
2505             formatting and allows to generate a full font/color from given
2506             attributes and an existing tag.
2507
2508 2006-02-26  Jackson Harper  <jackson@ximian.com>
2509
2510         * XplatUIX11.cs:  Use the correct caption height.
2511         - Translate hittest coordinates to screen coords to match MS.
2512         * XplatUIWin32.cs: When we create MDI windows we need to reset
2513         some of the style flags, so we get a nice blank window, and can
2514         draw all the decorations ourselves.
2515         - Set a clipping rectangle on the non client paint event, the
2516         window manager drawing code needs one.
2517         * Form.cs: The window manager needs to know when the window state
2518         has been updated.
2519         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2520         don't need to factor in border and title sizes in these
2521         methods. TODO: Remove the args and fix the call points.
2522         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2523         properly.
2524         - Let the driver set the cursors.
2525         - Improve active window handling
2526         - Correct sizes for title bars and buttons.
2527         - Match MS drawing better
2528         * MdiWindowManager.cs: We don't need to handle border style
2529         updates specially anymore.
2530         - Check for scrollbars when windows are done moving
2531         - Handle Active properly.
2532         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2533         correctly. I am spewing the exception though, so we don't hide the
2534         bugs.
2535         
2536 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2537
2538         * DataGridViewRowPostPaintEventArgs.cs,
2539           DataGridViewCellPaintingEventArgs.cs,
2540           DataGridViewRowCollection.cs,
2541           DataGridViewRowPrePaintEventArgs.cs,
2542           DataGridViewCell.cs: Clear a few warnings and implement a few
2543           exceptions that should be thrown.
2544
2545 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2546
2547         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2548           'inheriting' our parent's (non-default) cursor. (Part of
2549            the fix for #77479)
2550
2551 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2552
2553         * XplatUIX11.cs: Fixed cast to make csc happy
2554
2555 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2556
2557         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2558           it's for the client area (part of fix for #77479 and needed
2559           for MDI window cursor handling)
2560         * XplatUIX11.cs
2561           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2562             the appropriate default cursors and also passing the message
2563             up the parent chain 
2564           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2565             for non-client areas
2566
2567 2006-02-15  Jackson Harper  <jackson@ximian.com>
2568
2569         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2570         is a real MDI window
2571
2572 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2573
2574         * X11DesktopColors.cs: Instead of checking the desktop session
2575           string for "KDE" check if it starts with "KDE"
2576
2577 2006-02-10  Jackson Harper  <jackson@ximian.com>
2578
2579         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2580         systems).
2581
2582 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2583
2584         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2585           errors
2586         * ColorDialog.cs:
2587           - Got rid of the panel. All controls are now directly added to
2588             the dialog form
2589           - Changed to mono coding style
2590
2591 2006-02-10  Jackson Harper  <jackson@ximian.com>
2592
2593         * InternalWindowManager.cs: We don't need the set visibility to
2594         false hack anymore now that peter has written beautiful shutdown
2595         code.
2596
2597 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2598
2599         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2600           where already explicitly destroyed
2601
2602 2006-02-10  Jackson Harper  <jackson@ximian.com>
2603
2604         * MdiClient.cs: Handle the case where windows are too high or to
2605         the left and we need scrollbars.
2606
2607 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2608
2609         * MimeIcon.cs: Added some icons
2610         * FileDialog.cs:
2611           - Fixed bug #77477
2612           - Got rid of the panel. All controls are now directly added to
2613             the dialog form
2614           - Changed to mono coding style
2615           - On Linux "My Computer" and "My Network" will now show some
2616             more usefull information. A new class, MasterMount, gathers
2617             this information from /proc/mount. Updated MWFFileView to make
2618             use of this information
2619           - Fixed a bug that caused FileDialog to crash when
2620             ".recently_used" file had a zero size
2621           - FilterIndex does now what it should
2622           - Some Refactoring
2623         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2624             FileDialog changes
2625
2626 2006-02-09  Jackson Harper  <jackson@ximian.com>
2627
2628         * ComboBox.cs: Don't touch if null.
2629
2630 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2631
2632         * Cursor.cs: 64bit safeness fix
2633         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2634
2635 2006-02-09  Jackson Harper  <jackson@ximian.com>
2636
2637         * Form.cs: If a form is made into an MDI form update the styles so
2638         all the props can get set correctly.
2639         - Kill the mdi_container when we dont need it anymore.
2640         * InternalWindowManager.cs: Add missing NOT
2641
2642 2006-02-08  Jackson Harper  <jackson@ximian.com>
2643
2644         * InternalWindowManager.cs: Respek clipping when drawing MDi
2645         decorations.
2646
2647 2006-02-08  Jackson Harper  <jackson@ximian.com>
2648
2649         * Hwnd.cs: Add bits to track non client expose events.
2650         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2651         gives us a proper invalid rect and will allow for some nice
2652         optimizations with NC client drawing
2653         - MDI windows are children windows, so move their style handling
2654         into the child window block.
2655         * InternalWindowManager.cs: Remove a state reset that was
2656         getting invoked at the wrong time. Fixes managed windows getting
2657         into a 'stuck' captured state.
2658
2659 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2660
2661         * TextControl.cs (Document.ctor): Now initializing 
2662           selection_anchor. Fixes #77493
2663
2664 2006-02-07  Jackson Harper  <jackson@ximian.com>
2665
2666         * TrackBar.cs: The increment/decrements were backwards.
2667
2668 2006-02-07  Mike Kestner  <mkestner@novell.com>
2669
2670         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2671         to the instance itself.
2672
2673 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2674
2675         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2676           on ulongs and pointers, the size differs between 32bit and 64bit
2677           systems. 
2678
2679 2006-02-07  Mike Kestner  <mkestner@novell.com>
2680
2681         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2682         for 64 bit platforms to work around a metacity bug. 
2683
2684 2006-02-07  Jackson Harper  <jackson@ximian.com>
2685
2686         * TrackBar.cs: Process the input keys we need, and hookup to
2687         KeyDown instead of using WndProc, so we get key messages.
2688
2689 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2690
2691         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2692           machine we're on. 
2693         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2694           we need to translate the XdndVersion atoms array before sending it
2695
2696 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2697
2698         * XplatUIX11.cs: 
2699           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2700             number of bits for the property, not the number of bytes. The
2701             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2702             but would not crash since it specified 8 bits instead of 4 bits)
2703           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2704             defined as XID -> long in the C headers)
2705           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2706             references since those are now IntPtr to begin with
2707           - Switched all Atom.XXX 'int' casts to IntPtr casts
2708           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2709           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2710           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2711         * X11Structs.cs:
2712           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2713           - Changed atom in HoverStruct to be IntPtr
2714         * X11DnD.cs:
2715           - Removed local DllImports, switched code to use those from XplatUIX11
2716           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2717
2718 2006-02-06  Mike Kestner  <mkestner@novell.com>
2719
2720         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2721         method signatures in the import region.  There may still be some
2722         lingering struct marshaling issues, as I didn't drill down into those.
2723         Yet.
2724
2725 2006-02-06  Jackson Harper  <jackson@ximian.com>
2726
2727         * ComboBox.cs: Dont manually set the top_item, this is computed
2728         when the scrollbar position is set.
2729
2730 2006-02-06  Mike Kestner  <mkestner@novell.com>
2731
2732         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2733         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2734         usage of Atom needs to be mapped to IntPtr for example.  And there are
2735         likely other int/long issues to be addressed.
2736
2737 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2738
2739         * FileDialog.cs: One more...
2740
2741 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2742
2743         * FileDialog.cs: Next try
2744
2745 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2746
2747         * FileDialog.cs: First part of fix for #77464
2748
2749 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2750
2751         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2752           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2753           AcceptButton border drawing.
2754
2755 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2756
2757         * Form.cs: Moved positioning of form after auto scaling is applied,
2758           otherwise it would possibly use wrong form size.
2759
2760 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2761
2762         * Control.cs (RecreateHandle): No need to re-create any child
2763           controls, the child windows will get destroyed automatically by
2764           the windowing system or driver, and re-created when the handle
2765           is being accessed the first time. Fixes #77456
2766         * Form.cs: No longer setting the form to closing if the handle is 
2767           being recreated. This seems like the right thing to do, don't
2768           have a bug or testcase for this, though.
2769
2770 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2771
2772         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2773           controls to avoid unwanted side effects
2774
2775 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2776
2777         * Control.cs: 
2778           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2779             control. Fixes #77416.
2780           - DefaultSize is 0,0 for control
2781         * TextBoxBase.cs: 
2782           - DefaultSize is 100, 20
2783           - SetBoundsCore: Now enforcing the height, no matter if the provided
2784             height is more or less than the preferred one, as long as AutoSize
2785             is on
2786         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2787
2788 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2789
2790         * Control.cs:
2791           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2792             call unless both performLayout is true *and* we have a pending
2793             layout change
2794           - ResumeLayout: MS does not completely nest Suspend and Resume,
2795             they bottom out at 0, fixed our code to match that.
2796           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2797             SetBoundsCore, we were updating even when we shouldn't. This fixes
2798             swf-anchors mis-anchoring when resizing the app fast and lots.
2799           - UpdateDistances: Now only setting the left and top distance if 
2800             we have a parent and are not suspended, this is based on
2801             a suggestion by Don Edvaldson in bug #77355.
2802           - OnVisibleChanged: Fixed logic when to create the control. We may
2803             not create the control if we have no parent or if it's not visible;
2804             switched to using Visible property instead of is_visible field 
2805             since the property also considers parent states. This fixes a bug
2806             when starting Paint.Net
2807
2808 2006-02-02  Jackson Harper  <jackson@ximian.com>
2809
2810         * Form.cs: If the forms handle hasn't been created yet don't call
2811         into xplatui to make it top most, just set the topmost flag on the
2812         form in CreateParams
2813         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2814
2815 2006-02-01  Jackson Harper  <jackson@ximian.com>
2816
2817         * ScrollableControl.cs: Refactored the Recalculate method a
2818         little, this wasn't handling all the variants of bottom and right
2819         bars needed to be added and added/removed based on their
2820         counterparts being added/removed (which changes the drawable
2821         size). Also we special case client widths and heights of 0 and
2822         don't add the scrollbar for those.
2823
2824 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
2825
2826         * XplatUIX11.cs: 
2827           - Added method to get AbsoluteGeometry(); currently unused, but might
2828             be used in the future, if we try again to figure out toplevel
2829             coordinates with some more crappy window managers
2830           - Added FrameExtents() method to retrieve the WM set decoration size
2831           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
2832             to deal with at least KDE, FVWM and metacity (Fixes #77092)
2833         * Hwnd.cs: 
2834           - Added whacky_wm tracking var for metacity
2835           - Added logic to have default menu height if the actual menu height
2836             has not yet been calculated (part of fix for #77426)
2837         * Form.cs: Keep track whether client size has been set and re-set 
2838           it if a menu is added/removed afterwards (Fixes #77426)
2839
2840 2006-01-31  Jackson Harper  <jackson@ximian.com>
2841
2842         * Control.cs: When a new Site is set on the component attempt to
2843         pull the AmbientProperties from it.
2844
2845 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
2846
2847         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2848           in the background of the owning form. Fixes #77332
2849
2850 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2851
2852         * MimeIcon.cs: Fix for #77409
2853
2854 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2855
2856         * XplatUIX11GTK.cs: Initial import
2857
2858 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
2859
2860         * FixedSizeTextBox: fixes class signature
2861
2862 2006-01-30  Jackson Harper  <jackson@ximian.com>
2863
2864         * FixedSizeTextBox.cs: New internal class that represents a
2865         textBox that will not be scaled.
2866         * TreeView.cs:
2867         * ComboBox.cs:
2868         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2869         standard TextBox.
2870                 
2871 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
2872
2873         * XplatUIX11.cs: Retrieve default screen number instead of
2874           assuming 0. Attempted fix for #77318
2875
2876 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
2877
2878         * XplatUIWin32.cs: 
2879           - GetWindowPos: When a window is parented by FosterParent, use 
2880             the desktop instead of FosterParent as the base to get coordinates
2881           - CreateWindow: Don't make FosterParent the parent window for Popups
2882             if we don't want a taskbar entry, Popups automatically don't get one
2883         * Hwnd.cs: Need to call remove to actually remove the key from the
2884           hash table
2885
2886 2006-01-30  Mike Kestner  <mkestner@novell.com>
2887
2888         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2889
2890 2006-01-30  Jackson Harper  <jackson@ximian.com>
2891
2892         * TreeView.cs:
2893         * TreeNode.cs: Raise events no matter how the treenode is
2894         checked. Patch by Don Edvalson.
2895
2896 2006-01-30  Jackson Harper  <jackson@ximian.com>
2897
2898         * TreeNode.cs: Signature fix.
2899
2900 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
2901
2902         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2903
2904 2006-01-20  Mike Kestner  <mkestner@novell.com>
2905
2906         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2907         event forwarding when menus are active.
2908         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
2909         Most of the patch is pdb's with a little rework.
2910
2911 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2912
2913         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
2914           Removed GetMenuDC and ReleaseMenuDC methods; replaced
2915           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2916         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2917         * InternalWindowManager.cs: Added use of PaintEventStart/End to
2918           handling of WM_NCPAINT message, now passing the PaintEventArgs to
2919           the PaintWindowDecorations method
2920         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2921         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2922         * MenuAPI.cs: Made tracker window invisible
2923         * XplatUIWin32.cs:
2924           - Removed GetMenuDC and ReleaseMenuDC methods
2925           - Implemented the client=false path for PaintEventStart and
2926             PaintEventEnd
2927
2928 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2929
2930         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2931         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2932           styles
2933         * Form.cs: 
2934           - MaximizeBox, MinimizeBox: Recreate the handle when setting
2935             the style
2936           - CreateParams: Reworked the styles to match MS look'n'feel,
2937             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2938             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2939
2940 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2941
2942         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
2943           window is not mapped, since otherwise every form that's being 
2944           created is considered minimized, which is wrong.
2945         * Form.cs: Catching the exception and returning our internal value
2946           instead
2947
2948 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2949
2950         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2951           SetWindowMinMax() to have means to tell the driver about the minimum,
2952           maximum and maximized state window sizes. (Part of the fix for #76485)
2953         * Form.cs:
2954           - Implemented tracking of minimum and maximum window size, now calling
2955             new SetWindowMinMax() driver method to tell the driver (Part of the
2956             fix for #76485)
2957           - Finished handling of WM_GETMINMAXINFO method, now setting all values
2958             (Completes fix for #76485)
2959           - Calling new SetWindowMinMax driver method when the handle for a 
2960             form is created, to make sure the driver knows about it even if
2961             the values have been set before the window was created
2962           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2963             to avoid messing up our anchoring calculations (partial fix
2964             for #77355)
2965         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2966         * XplatUIX11.cs:
2967           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2968           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
2969             (and presumably other freedesktop.org compliant WMs). Left the
2970             assumption unmapped=minimized, needed for SetVisible to work.
2971           - Now setting the window state when creating windows
2972           - Fixed SetVisible to consider/set the window state when mapping
2973             a Form. We cannot set the state before it's mapped, and we cannot
2974             use Form.WindowState once it's mapped (since it would ask the
2975             driver and get 'normal'. Therefore, we grab the state before
2976             mapping, map, and then set state.
2977           - Implmemented SetWindowMinMax method; Metacity does not seem to
2978             honor the ZoomHints, though.
2979         * XplatUIWin32.cs:
2980           - Removed MINMAXINFO (moved to XplatUIStructs)
2981           - Added SetWindowMinMax stub (on Win32 the only way to set that
2982             information is in response to the WM_GETMINMAXINFO message, which
2983             is handled in Form.cs)
2984           - Added logic to SetVisible to set the proper window state when a 
2985             form is made visible (fixes #75720)
2986
2987 2006-01-26  Jackson Harper  <jackson@ximian.com>
2988
2989         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2990         same way we handle them with Invoke.
2991
2992 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
2993
2994         * Form.cs:
2995           - Added tracking of window state so CreateParams can return
2996             the appropriate style
2997           - Moved setting of WS_CAPTION style in CreateParams to allow
2998             styles without caption
2999         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3000           control if the TextBox property is accessed. Fixes #77345
3001         * Control.cs:
3002           - get_Created: now uses is_disposed and is_created to determine
3003             return value (suggested by Jackson)
3004           - CreateHandle: No longer exits if the handle is being recreated
3005           - RecreateHandle: If the handle is not yet created call the 
3006             appropriate method to create either control or handle. If the
3007             control is already created CreateHandle will simply exit instead
3008             of just creating the handle
3009         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3010           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3011           is called.
3012         * XplatUIX11.cs: 
3013           - When DestroyWindow is called, instead of waiting for the 
3014             DestroyNotification from X11, we directly post it to the WndProc
3015             and immediately dispose the hwnd object.
3016             Same applies to DestroyChildWindows, and this obsoletes the
3017             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3018             child windows before our own, to avoid X11 errors.
3019           - Removed the direct sending of WM_PAINT on UpdateWindow
3020         * XplatUIWin32.cs:
3021           - Reworked DoEvents and GetMessage to allow access to internal queue
3022             even when trying non-blocking access to the queue.  Fixes #77335. 
3023             Based on a patch suggestion by Don Edvalson. The new private
3024             GetMessage can now also be used as a backend for a PeekMessage
3025             frontend version.
3026         * XplatUI.cs: Improved debug output for CreateWindow
3027
3028 2006-01-25  Jackson Harper  <jackson@ximian.com>
3029
3030         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3031
3032 2006-01-24  Jackson Harper  <jackson@ximian.com>
3033
3034         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3035         when we have a MaxDropItems lower then the selected index.
3036
3037 2006-01-24  Jackson Harper  <jackson@ximian.com>
3038
3039         * Control.cs: Don't allow selection of non visible controls, allow
3040         selection of controls without parents.
3041
3042 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3043
3044         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3045         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3046
3047 2006-01-23  Jackson Harper  <jackson@ximian.com>
3048
3049         * UpDownBase.cs: Make the textbox handle all the selection and
3050         tabbing. This fixes tabing to updown controls.
3051
3052 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3053
3054         * TextBoxBase.cs: fixes exception thown the object was null
3055
3056 2006-01-23  Jackson Harper  <jackson@ximian.com>
3057
3058         * ButtonBase.cs: Just use the base CreateParams. They set
3059         visibility and enabled correctly.
3060         * ComboBox.cs:
3061         * TrackBar.cs:
3062         * MonthCalendar.cs: Lets let the base set as much of the
3063         createparams as possible so we don't have duplicate code all over
3064         the place.
3065
3066 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3067
3068         * ThemeGtk.cs: Added TrackBar and some experimental code to
3069           get double buffering back
3070
3071 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3072
3073         * DataGrid.cs: Allows row number set internally higher than the last
3074         when creating a new row. Restores the editing functionality.
3075
3076 2006-01-20  Mike Kestner  <mkestner@novell.com>
3077
3078         * MimeIcon.cs: delay Image creation until the icons are accessed
3079         instead of creating 190 scaled images on GnomeHandler startup.
3080
3081 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3082
3083         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3084           first call base before processing the event. Fixes #77279
3085
3086 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3087
3088         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3089           that the stride for the GDI bitmap would match the stride of
3090           a DIB or a Cursor.
3091
3092 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3093
3094         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3095
3096 2006-01-19  Jackson Harper  <jackson@ximian.com>
3097
3098         * ComboBox.cs: Hookup the text controls keydown event so we get
3099         those when the text control has the focus.
3100
3101 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3102
3103         * Label.cs: Now using the base events instead of defining new ones;
3104           this allows us to just call the base properties without having to
3105           duplicate all base property logic 
3106
3107 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3108
3109         * Label.cs: A label by default is not a tabstop (Fixes one of our
3110           failing nunit tests)
3111
3112 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3113
3114         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3115         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3116
3117 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3118
3119         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3120           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3121           This fixes #77218
3122         * XplatUIWin32.cs: 
3123           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3124             constructor creates images that can't be saved. Part of the fix
3125             for #76103
3126           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3127           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3128             bug fix for handling window state in forms properly)
3129
3130 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3131
3132         * ThemeGtk.cs: Simplify ScrollBar drawing
3133
3134 2006-01-18  Jackson Harper  <jackson@ximian.com>
3135
3136         * Splitter.cs: Set the default dock style for the splitter control
3137         in the constructor.
3138
3139 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3140
3141         * ThemeGtk.cs: Corrected StateType and ShadowType for
3142           gtk_paint_box
3143
3144 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3145
3146         * Control.cs: Make use of Theme.DoubleBufferingSupported
3147         * ThemeGtk.cs:
3148           - Added drawing for flat style buttons
3149           - Added ScrollBar drawing
3150
3151 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3152
3153         * ThemeClearlooks.cs: Removed some unneeded code.
3154         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3155
3156 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3157
3158         * LinkLabel.cs: We need to update the hover drawing when
3159           leaving the control as well.
3160
3161 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3162
3163         * DataGrid.cs: Clicking on non empty areas in the columns
3164            area was giving an exception
3165
3166 2006-01-17  Jackson Harper  <jackson@ximian.com>
3167
3168         * ThemeWin32Classic.cs:
3169         * ListView.cs: Do not draw/clip the headers when the header style
3170         is None.
3171
3172 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3173
3174         * DataGrid.cs: Fixes 77260
3175         
3176 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3177
3178         * DataGrid.cs: Clicking on a column on a empty grid was giving
3179           an exception
3180
3181 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3182
3183         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3184           or any keypress will crash the grid.
3185
3186 2006-01-17  Mike Kestner  <mkestner@novell.com>
3187
3188         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3189         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3190         invisible/previously-visible items.
3191         [Fixes #76909]
3192
3193 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3194
3195         * ThemeClearlooks.cs:
3196         - Added CL_Draw_Button method; now other theme controls that are 
3197           not derived from button or do not have a button can draw buttons
3198           too
3199         - Updated ComboBox drawing
3200         - Beautified RadioButton drawing
3201         - Corrected drawing of bottom and left tabs
3202         - Beautified DateTimePicker and MonthCalendar
3203         - Added CPDrawButton and CPDrawRadioButton
3204
3205 2006-01-16  Jackson Harper  <jackson@ximian.com>
3206
3207         * ComboBox.cs: Set the initial value of the scrollbar to the
3208         current index. Reduce the numbers of refreshs and IndexOfs called.
3209
3210 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3211
3212         * FileDialog.cs: When the file listview is focused hitting the
3213           backspace key moves the fileview to the parent directory
3214
3215 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3216
3217         * Form.cs: 
3218           - Added RecreateHandle call when changing taskbar visibility to 
3219             trigger reparenting in Win32 driver (Fixes #75719)
3220           - If a window has minimize or maximize buttons, it cannot have
3221             a help button
3222         * XplatUIWin32.cs:
3223           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3224             the toplevel form with FosterParent (A toolwindow not on the
3225             taskbar) (Fixes #75719)
3226           - Made FosterParent a toolwindow
3227
3228 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3229
3230         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3231
3232 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3233
3234         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3235           is currently over that control, make sure that tooltip_window.Text
3236           gets updated
3237
3238 2006-01-13  Mike Kestner  <mkestner@novell.com>
3239
3240         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3241
3242 2006-01-13  Jackson Harper  <jackson@ximian.com>
3243
3244         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3245         value passed.  Also redraw the selected node when we recieve
3246         focus, so tabbing between trees works correctly.
3247
3248 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3249
3250         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3251           ~/.gconf/%gconf-tree.xml, so use
3252           .gconf/desktop/gnome/interface/%gconf.xml
3253
3254 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3255
3256         * TextControl.cs: Draw text in gray if control is disabled
3257
3258 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3259
3260         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3261           make sure it's always visible. Fixes #76680.
3262
3263 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3264
3265         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3266
3267 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3268
3269         * PageSetupDialog.cs: Added.
3270         * PrintDialog.cs: Attributes.
3271         * PrintPreviewControl.cs: Updates.
3272         * PrintPreviewDialog.cs: Updates.
3273         
3274 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3275
3276         * Control.cs: Undid my selection check fix, since it's not needed
3277         * TextBoxBase.cs:
3278           - Now considering the presence of hscroll/vscroll when sizing
3279             vscroll/hscroll respectively. Fixed bug #77077
3280           - Added Left/Up/Down/Right to IsInputKey list to prevent
3281             ContainerControl from stealing them. This fixes what I broke
3282             with my last checkin.
3283
3284 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3285
3286         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3287           I finally understand how the property can be set without a setter :-)
3288
3289 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3290
3291         * Application.cs:
3292           - Switched RunLoop to use static Message.Create to create a 
3293             Message object
3294           - Added PreProcessMessage call in runloop for keyboard events; this
3295             is part of the fix for #77219, I overlooked this originally in the
3296             MSDN doc for PreProcessMessage
3297         * Control.cs:
3298           - Removed call to PreProcessMessage from handling of keyboard 
3299             messages; it's supposed to be done in the message pump
3300           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3301             per MSDN documentation.
3302           - IsInputChar: All chars are input chars by default; removed the 
3303             parent calling chain, MS does not document that
3304           - PreProcessMessage: If IsInputChar is true, we want to return false
3305             to allow dispatching of the message
3306           - When selecting the next control, now also check that we're not
3307             selecting ourselves again and therefore return a false positive.
3308         * TextBoxBase.cs:
3309           - Tried to match return values for IsInputKey and ProcessDialogKey
3310             to what MS returns; moved processing of our special keys outside
3311             ProcessDialogKey since MS does not seem to return true on those.
3312           - Moved code that previously was in ProcessDialogKey into new private
3313             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3314           - Reworked handling of WM_CHAR to not have to duplicate code from
3315             Control.cs anymore, instead we simply call down to base.
3316            
3317 2006-01-12  Jackson Harper  <jackson@ximian.com>
3318
3319         * ComboBox.cs: We always need to refresh the text area when
3320         EndUpdate is called. Fixes the combobox in the file dialog.
3321         * Control.cs: Don't create the creator_thread until the controls
3322         handle is created.  Also in InvokeRequired we check if the
3323         creator_thread is null. This gives the effect of InvokeRequired
3324         returning true if the controls handle is not created yet, and
3325         matches MS.
3326
3327 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3328
3329         * XplatUI.cs:
3330           - Added StartLoop() driver method. This is used to allow drivers to
3331             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3332             loop for a particular thread
3333           - Added EndLoop() driver method. This is called once the message
3334             pump for the thread is shut down
3335           - Added SupportsTransparency method to allow the driver to indicate
3336             opacity support for windows
3337         * Form.cs:
3338           - Removed TODO attribute, completed AllowTransparency property
3339           - Added documented logic to Opacity
3340         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3341           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3342           versions of CompatibleTextRendering
3343         * X11Structs.cs: Added opacity atom to our atom enumeration
3344         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3345           of a form might be set before it's reparented by the WM, and we need
3346           the opacity value without calling up to Form)
3347         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3348           SupportsTransparency() driver methods
3349         * Application.cs: Now calling StartLoop and EndLoop driver methods
3350         * XplatUIX11.cs:
3351           - Added opacity atom registration
3352           - Added StartLoop()/EndLoop() methods. They're empty right now but
3353             will need to get implemented when we switch to a per-thread queue
3354           - Implemented SupportsTransparency() method
3355           - Implemented SetWindowTransparency() method
3356           - Added support for setting the opacity value when a window is
3357             reparented (since the opacity needs to be set on the WM frame)
3358         * XplatUIOSX.cs, XplatUIWin32.cs:
3359           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3360
3361 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3362
3363         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3364
3365 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3366
3367         * FileDialog.cs: Added ToolTip for MWFFileView
3368         * MimeIcon.cs: Rewrote GnomeHandler.
3369           - Get currently used gnome icon theme from
3370             ($HOME)/.gconf/%gconf-tree.xml
3371           - Make use of inherited icon themes
3372           - Support SVG icon themes like Tango via librsvg
3373
3374 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3375
3376         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3377         builds. 
3378         
3379         * Application.cs: Move the use_compatible_text_rendering outside
3380         the NET_2_0 define.  If we ever need to use the
3381         use_compatible_text_rendering on the individual controls they will
3382         access the variable from the common shared code paths.
3383
3384 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3385
3386         * XplatUI.cs:
3387           - Added more granular debug options
3388           - Added method to print both window text and id
3389           - Switched debug output to use new Window() debug method
3390           - Added IsEnabled() driver method
3391           - Added EnableWindow() driver method
3392         * Form.cs:
3393           - Removed end_modal; no longer needed, new loop handles termination
3394             via 'closing' variable
3395           - If form is modal, setting DialogResult will now initiate loop
3396             termination via 'closing' variable
3397           - Added support for is_enabled/WS_DISABLED to CreateParams
3398           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3399             does all the work
3400           - Removed code that's now in RunLoop from ShowDialog()
3401           - Added various documented sanity checks to ShowDialog()
3402           - Added handling of WM_DESTROY message; we set 'closing' on getting
3403             the message to indicate the message pump to terminate
3404           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3405             send by the Application.ExitThread method. (We send the message
3406             to destroy the window after all other events have been
3407             processed through the queue, instead of destroying the handle 
3408             directly)
3409           - Moved code from Close() method to WM_CLOSE handler; added logic
3410             to only send close-related events if the form is not displayed
3411             modal
3412         * Splitter.cs (..ctor): Fixed typo in resource name
3413         * Control.cs:
3414           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3415             brush now
3416           - set_Cursor: Now only setting calling into XplatUI if the handle for
3417             the control is already created; this avoids implict handle creation
3418             or crashes if it's not created
3419           - set_Enabled: Now setting the enabled state via the new driver method
3420             instead of just tracking it
3421           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3422           - CreateControl: Reordered event firing and method calls to more
3423             closely fire events in the order MS does. Now setting the
3424             enabled state in the driver when creating the control.
3425           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3426             match MS order
3427         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3428           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3429         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3430         * Hwnd.cs:
3431           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3432           - Added EnabledHwnd property to easily allow a driver to find the
3433             handle of the first enabled window in the parent chain (this is
3434             used by drivers to pass up input events of disabled windows)
3435         * XplatUIDriver.cs: Added IsEnabled() method
3436         * Application.cs:
3437           - Removed crude and obsolete exiting tracking variable
3438           - Removed internal ModalRun(); replaced by RunLoop()
3439           - Implemented private CloseForms() method to allow closing all 
3440             windows owned by a particular (or all) threads
3441           - Exit() now properly closes all windows without forcing the message
3442             pump to quit
3443           - Removed obsolete InternalExit() method
3444           - Changed Run() methods to use new RunLoop() message pump
3445           - Implemented new RunLoop() method for both modal and non-modal forms
3446         * CommonDialog.cs:
3447           - get_CreateParams: Added setting of WS_DISABLED
3448           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3449             invoked via Form.ShowDialog()
3450         * NativeWindow.cs: We don't remove the window from the collection when
3451           the handle is destroyed; there might still be messages for it in the
3452           queue (mainly the resulting WM_DESTROY); instead it will be removed
3453           when Control calls InvalidateHandle in the WM_DESTROY handler
3454         * XplatUIX11.cs:
3455           - CreateWindow: Added logic to handle the WS_DISABLED window style
3456           - EnableWindow: Implemented based on Hwnd.Enabled
3457           - GetMessage: Reset PostQuitState so the method can be called again
3458           - Implemented support for disabled windows (passing messages to the
3459             first enabled parent) in handling all input messages
3460           - Added optimizations for handling Expose events
3461           - Implemeted new driver method IsEnabled()
3462           - Now always resetting paint pending tracking vars when we start paint
3463           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3464         * XplatUIOSX.cs: Added IsEnabled method stub
3465         * XplatUIWin32.cs: Implemented new IsEnabled() method
3466
3467 2006-01-11  Jackson Harper  <jackson@ximian.com>
3468
3469         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3470         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3471         variables a little.
3472         * ColorDialog.cs: Clear out the old form before adding the new
3473         panel.  
3474
3475 2006-01-11  Jackson Harper  <jackson@ximian.com>
3476
3477         * X11Dnd.cs: Make sure to add all the text formats when adding
3478         strings to the data object.
3479         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3480         do some redrawing too.  Also change the UpdateNode to an
3481         UpdateBelow so the newly added node gets painted.
3482         
3483 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3484
3485         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3486         LinkLabel.cs, PropertyGrid.cs: Implement the
3487         UseCompatibleTextRendering property for 2.x
3488
3489         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3490
3491 2006-01-11  Jackson Harper  <jackson@ximian.com>
3492
3493         * TreeView.cs: Use the property for setting the selected node so
3494         the correct events get raised.
3495         * TreeNode.cs: Update the tree when the fore/back colours of a
3496         node are set.
3497
3498 2006-01-10  Jackson Harper  <jackson@ximian.com>
3499
3500         * TreeView.cs: Allow setting SelectedNode to null.
3501
3502 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3503
3504         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3505
3506 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3507
3508         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3509
3510 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3511
3512         * PrintDialog.cs: Added attributes and set default property values.
3513
3514 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3515
3516         * PrintControllerWithStatusDialog.cs: 
3517         Added PrintControllerWithStatusDialog.
3518
3519 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3520
3521         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3522         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3523
3524 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3525
3526         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3527
3528 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3529
3530         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3531         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3532
3533 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3534
3535         * MimeIcon.cs: Added internal class SVGUtil.
3536
3537 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3538
3539         * FileDialog.cs: Don't crash if there are two files with the
3540           same name but different locations.
3541
3542 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3543
3544         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3545         dates across multiple month grids. Used to not highlight entire 
3546         month, but does now.
3547         
3548 2006-01-06  Jackson Harper  <jackson@ximian.com>
3549
3550         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3551         message loop. Change timer intervals to numbers that seem more
3552         natural.
3553
3554 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3555
3556         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3557           object for location info since screen object is now implemented.
3558
3559 2006-01-05  Jackson Harper  <jackson@ximian.com>
3560
3561         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3562         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3563         AsyncMethodResult, this is because we ALWAYS want the
3564         ManualResetEvent to get set.
3565         * Control.cs: When disposing use an async invoke to call shutdown
3566         code, so that thigns don't block on the finalizer thread.  Also
3567         check if we even have a message loop before trying to send
3568         messages, if we don't then don't bother sending messages.
3569         - No more weak references for async methods
3570         * XplatUIDriver.cs: No more weak references for async methods.
3571
3572 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3573
3574         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3575           returns two FontFamily with the same name
3576
3577 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3578
3579         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3580           drawing disabled text. Instead using the ColorGrayText color
3581
3582 2006-01-04  Jackson Harper  <jackson@ximian.com>
3583
3584         * TreeNode.cs: redraw the node when its image index is changed.
3585
3586 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3587
3588         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3589           time I checked there are no others like it.
3590
3591 2006-01-04  Jackson Harper  <jackson@ximian.com>
3592
3593         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3594         this gives the behavoir I was looking for.
3595         * Control.cs: Special case Invoking EventHandlers, this matches MS
3596         and fixes part of bug #76326.
3597
3598 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3599
3600         * ThemeClearlooks.cs, FileDialog.cs:
3601           - Reflect the latest Theme class changes
3602           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3603             with DateTime
3604             
3605 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3606
3607         * Theme.cs: Cache UI resource images and resize them if needed
3608
3609 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3610
3611         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3612           is called. This fixes the crash in Nexxia when setting the font
3613           attributes in the chat. [However, RTF needs a look-over to make sure
3614           that all SelectionXXX methods handle the special case that selection
3615           is empty and therefore the change must be applied to all text starting
3616           at the cursor/selection start]
3617
3618 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3619
3620         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3621           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3622         * X11Keyboard.cs: Switched to new way of calling PostMessage
3623
3624 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3625
3626         * Theme.cs: Added theme interface for images to allow the theme to
3627           control what images are used for things like FileDialog, MessageBox
3628           icons, etc.
3629         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3630
3631 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3632
3633         * FileDialog.cs:
3634           - Removed some dead code
3635           - Opening a recently used file does work now
3636           - Small UI enhancements
3637           - Refactoring
3638
3639 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3640
3641         * FileDialog.cs: Forgot too add __MonoCS__
3642
3643 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3644
3645         * FileDialog.cs: We are able to read recently used files now let's
3646           go on and write them.
3647
3648 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3649
3650         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3651           button
3652         * MimeIcon.cs: Do a check for the top level media type also
3653
3654 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3655
3656         * ThemeClearlooks.cs:
3657           - Added CPDrawStringDisabled
3658           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3659             some chars if the text doesn't fit into text_rect
3660           - DrawListViewItem: If View = View.LargeIcon center the image;
3661             rewrote the drawing of ListViewItem.Text if View = 
3662             View.LargeIcon
3663
3664 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3665
3666         * MimeIcon.cs: Use default KDE icon theme if there is no
3667           "48x48" directory for the current icon theme, fixes #77114
3668         * Mime.cs: Disable not working and actually not used code. 
3669         * ThemeWin32Classic.cs:
3670           - Replace "new SolidBrush" in GetControlBackBrush and
3671             GetControlForeBrush with ResPool.GetSolidBrush
3672           - Changed DrawListViewItem from private to protected virtual
3673         * FileDialog.cs:
3674           - Added form.MaximizeBox = true
3675           - Don't throw an exception if there is a broken symbolic link
3676
3677 2005-12-23  Jackson Harper  <jackson@ximian.com>
3678
3679         * TabControl.cs: Give the panels focus, keyboard navigation is
3680         fixed so this works correctly now.
3681         - We need these key events also.
3682         * ToolBar.cs: Remove some of the poor mans double buffering.
3683         
3684 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3685
3686         * ComboBox.cs: The internal TextBox now returns the focus.
3687
3688 2005-12-23  Jackson Harper  <jackson@ximian.com>
3689
3690         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3691
3692 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3693
3694         * Control.cs: Removed debug code
3695         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3696           implicit children
3697
3698 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3699
3700         * Control.cs: When creating the control, update the Z-order after
3701           all it's children are created, too. (Fixes nexxia not showing
3702           picturebox bug)
3703
3704 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3705
3706         * Control.cs: Do not update the anchoring distances if layout is
3707           suspended, instead do it once layout is resumed
3708
3709 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3710
3711         * Control.cs: 
3712           - After many hours of debugging, for both Jackson and
3713             myself, it turns out that it helps to set the parent of a control
3714             if you want to actually see it onscreen. In the spirit of that
3715             discovery, we're now setting the parent of the control and
3716             it's children when the control's handle is created. This fix
3717             will make Lutz Roeder's Reflector run happily. 
3718           - now just creating the handle instead of the whole control when
3719             getting a graphics context for the control.
3720
3721 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3722
3723         * ScrollableControl.cs: When calculating the canvas, don't consider
3724           the scrollbar widths. Instead, predict if horizontal scrollbar
3725           will affect canvas when deciding on vertical display and vice versa.
3726
3727 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3728
3729         * RichTextBox.cs: Set default RTF font for documents that don't
3730           have a font table (Fixes #77076)
3731
3732 2005-12-22  Jackson Harper  <jackson@ximian.com>
3733
3734         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3735         clipboard. This prevents a NullRef in that case.
3736         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3737         clipboard. PRIMARY is for the currently selected text only. (We
3738         should implement PRIMARY at some point.
3739
3740 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3741
3742         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3743           a Unicode function with a structure that was defined in Ansi way.
3744           This fixes #76942.
3745
3746 2005-12-21  Jackson Harper  <jackson@ximian.com>
3747
3748         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3749         on. Because thats how it rolls. (and this avoids it using ambient
3750         colours).
3751         * ThemeWin32Classic.cs: Use the proper back color for filling.
3752         * Menu.cs: Use the system menu bar color for drawing menu
3753         bars. Using the window back color will bring ambient colours into
3754         the picture.
3755
3756 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3757
3758         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3759           Bitmaps were created and not disposed.
3760
3761 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3762
3763         * Control.cs (CreateControl): Don't do anything if the control is
3764           already created, otherwise we'd fire the OnCreated event more than
3765           once
3766
3767 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3768
3769         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3770           will always match. Instead return -1. Fixes #76464.
3771
3772 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3773
3774         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3775           neither the beginning nor the end of the line (Fixes bug #76479)
3776
3777 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3778
3779         * Control.cs:
3780           - ControlNativeWindow.ControlFromHandle(): Now handling situation
3781             where handle is invalid
3782           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3783             instead of slower linear search
3784         * NativeWindow.cs: Don't remove the window from the hashtable until
3785           after the driver has destroyed it (since the driver might use
3786           Control.FromHandle to lookup the control object
3787         * Hwnd.cs: Added DestroyPending property to track if a window is 
3788           already destroyed as far as the driver is concerned and only hasn't
3789           yet notified the control
3790         * XplatUIX11.cs:
3791           - Activate(): Check if the window is still valid before using the 
3792             handle
3793           - Implemented DestroyChildWindow() method to mark child windows as
3794             destroyed when a window is destroyed. This prevents situations 
3795             where we might call an X method based on queued events for a
3796             window that already has been destroyed but we haven't yet pulled
3797             the destroy method from the queue.
3798           - Added a call to the new DestroyChildWindow() method to the drivers
3799             DestroyWindow code. Also now marking the destroyed window itself
3800             as pending
3801
3802 2005-12-20  Jackson Harper  <jackson@ximian.com>
3803
3804         * StatusBar.cs:
3805         * StatusBarPanel.cs: Don't calculate panel sizes on draw
3806         anymore. Just do them when needed, also track the rects of panels
3807         so that we can optimize refreshing more in the future.
3808
3809 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
3810
3811         * ColorDialog.cs: Fixed focus drawing in small color controls
3812
3813 2005-12-19  Jackson Harper  <jackson@ximian.com>
3814
3815         * InternalWindowManager.cs:
3816         * MdiWindowManager.cs: Cleanup some coordinate system changes so
3817         moving windows works properly.
3818
3819 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
3820
3821         * Control.cs: 
3822           - Removed call to InitLayout() from SetBoundsCore(); doc says
3823             it's only called when a control is added to a container
3824           - Split InitLayout logic, moved to separate UpdateDistances() method
3825             since we need to perform those calculations more often than just
3826             when adding the control to a container. (Needed to fix #77022)
3827           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3828           - Reduced the OnBindingContextChanged events count, don't send them
3829             unless the control is created, we still aren't totally matching
3830             MS, but I can't quite figure out some of their rules
3831
3832 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3833
3834         * ThemeClearlooks.cs: Corrected distance between ProgressBar
3835           stripes
3836
3837 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3838
3839         * ThemeClearlooks.cs:
3840           - Updated ProgressBar drawing
3841           - Corrected drawing of ScrollBars and scroll buttons
3842           - Some temporary fixes for minor pixel artefacts
3843
3844 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
3845
3846         * Control.cs:
3847           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3848             cause events to be sent in the same order as MS does.
3849           - Added ChangeParent() method to trigger various OnXXXChanged events
3850             that need to be fired when a parent changes (This is a reworking
3851             of the patch from r54254, with the X11 errors fixed)
3852           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3853             since on MS we get OnLayoutChanged events when calling Clear()
3854           - Changed Enabled property to consider parent state as well, if a
3855             parent is not enabled, the control will not be either
3856           - Changed Parent property to simply call Controls.Add() since that
3857             now does all the work required, this way we avoid code duplication
3858           - Threw in a few OnBindingsContextChanged calls to try and match
3859             when MS sends them. We seem to send a few too many, though.
3860           - Added call to CreateControl when adding the control to a parent.
3861             We were never calling CreateControl. Still needs some work, in
3862             some places we treat HandleCreated and ControlCreated as equal, 
3863             which is wrong
3864           - Removed obsolete commented out code from UpdateZOrder()
3865
3866 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3867
3868         * ThemeClearlooks.cs: Updated TrackBar drawing.
3869
3870 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3871
3872         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3873
3874 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3875
3876         * FileDialog.cs: Add the Help button and the open readonly
3877           checkbox only if needed
3878
3879 2005-12-16  Jackson Harper  <jackson@ximian.com>
3880
3881         * Control.cs: Make sure we have an active menu before trying to
3882         process commands on it. Prevents menu-less forms from crashing
3883         when Alt is pressed.
3884         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3885         Dieter Bremes.
3886         * RichTextBox.cs: Expand statement to help out gmcs and fix the
3887         2.0 build.
3888
3889 2005-12-16  Jackson Harper  <jackson@ximian.com>
3890
3891         * InternalWindowManager.cs: Don't translate tool windows screen
3892         coordinates. This fixes windows 'bouncing' around when being moved.
3893
3894 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3895
3896         * TextBoxBase.cs:
3897           - MaxLength now treats 2^31-1 equal to unlimited length (this is
3898             not quite MS compatible, MS uses that number only for single line
3899             and 2^32-1 for multi-line, but I figure it won't hurt keeping
3900             the limit at 2GB)
3901           - Now enforcing the MaxLength limit when entering characters
3902           - Added argument to internal Paste() method to track if it's called
3903             from programatically or via keyboard, since keyboard driven pastes
3904             need to enforce max-length
3905           - Added logic to Paste to only paste as many chars as MaxLength 
3906             allows
3907         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3908         * TextControl.cs:
3909           - Added Length property to return number of characters in document
3910           - Added private CharCount property which only tracks actual chars
3911             in the document (no linefeeds) and fires event when CharCount
3912             changes
3913           - Added tracking of character count to all methods that alter it
3914           - Added LengthChanged event to allow applications to subscribe
3915             to any changes to the document
3916
3917 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3918
3919         * TextBox.cs: 
3920           - Removed local password_char field (moved to TextBoxBase)
3921           - Now setting the document's password var when password is
3922             set
3923         * TextBoxBase.cs:
3924           - Added password_char field (needed here so MultiLine can
3925             access it)
3926           - Added logic to MultiLine property setter to set the document's
3927             variable when password display is allowed
3928           - Removed debug code and made some debug code conditional
3929         * TextControl.cs:
3930           - Added RecalculatePasswordLine() method to handle special password
3931             char only lines
3932           - Added PasswordChar property, also added related tracking vars
3933           - Draw() method now uses local text var for grabbing text to draw,
3934             this var is set to line.text unless we're doing password display,
3935             then it is set to the pre-generated all-password-chars line
3936           - Added calling RecalculatePasswordLine() method for password lines
3937
3938 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3939
3940         * Hwnd.cs: 
3941           - Added Reparented property to allow tracking of Window Manager
3942             reparenting actions (which affect X/Y calculations of toplevel 
3943             windows)
3944           - Made ToString() print window handles in hex
3945         * XplatUIX11.cs:
3946           - AddConfigureNotify(): Now uses reparented state off Hwnd to
3947             determine if X/Y needs offsetting
3948           - AddConfigureNotify(): Fixed offset calculations
3949           - Now adds ReparentNotify messages into the queue
3950           - Now processes ReparentNotify messages and causes a 
3951             WM_WINDOWPOSCHANGED message to be sent upstream if a window
3952             is reparented (as most likely it's X/Y coordinates are changed
3953             due to that)
3954
3955 2005-12-14  Jackson Harper  <jackson@ximian.com>
3956
3957         * XplatUIX11.cs: Tool windows still need to respek focus.
3958
3959 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3960
3961         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3962           have a working release
3963
3964 2005-12-13  Jackson Harper  <jackson@ximian.com>
3965
3966         * Form.cs: Update styles after setting the border style regardless
3967         of whether or not the window is using a window manager.
3968
3969 2005-12-13  Jackson Harper  <jackson@ximian.com>
3970
3971         * Form.cs: We now hook into an internal window manager instead of just an
3972         MDI subsystem, this is so we can have properly behaving tool windows.
3973         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3974         * InternalWindowManager.cs: New internal class that acts as a
3975         window manager for tool windows and as a base for mdi windows.
3976         * MdiWindowManager.cs: New class that acts as a window manager for
3977         mdi windows.
3978
3979 2005-12-12  Jackson Harper  <jackson@ximian.com>
3980
3981         * Control.cs: Updates so we match behavoir for for implicit
3982         controls. Fixes explosions in MDI.
3983
3984 2005-12-12  Jackson Harper  <jackson@ximian.com>
3985
3986         * Control.cs: Implement Invalidate (Region).
3987
3988 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
3989
3990         * Control.cs: 
3991           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
3992             the same events as MS does. MS fires events for each property 
3993             except, for unknown reasons, Cursor, when the control is reparented. 
3994             I can't seem to totally match add/remove since MS also fires some 
3995             VisibleChanged events, which makes no sense. Consolidated the
3996             parenting code into a separate method so it can be called from
3997             both Add and Remove. set_Parent no longer needs any special logic
3998             as it calls the parent's add method which implicitly fires
3999             all events
4000           - Removed some obsolete code and debug output
4001           - Enabled state is inherited from parents, if this is enabled
4002
4003 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4004
4005         * Form.cs: Removed commented out code
4006
4007 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4008
4009         * Control.cs:
4010           - Added internal version of Invoke, with additional argument 
4011             indicating if we're calling it from a Dispose() handler. That
4012             way we can avoid BeginInvoke throwing an exception if we're
4013             calling for an already destroyed window.
4014           - Added a dispose argument to BeginInvokeInternal, and made the
4015             check if a valid window handle chain exists conditional on
4016             it not being a dispose call
4017           - Removed code in DestroyHandle to destroy our children. Since we
4018             now handle the WM_DESTROY message we will catch all our children
4019             being destroyed.
4020           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4021         * Form.cs:
4022           - Added a field to track the application context of the form.
4023           - No need to set closing variable as response to WM_CLOSE, instead
4024             we destroy the window. We also call PostQuitMessage if the form
4025             has an application context (which makes it the main app form,
4026             which, when closed terminates the app)
4027         * XplatUI.cs:
4028           - Dropped Exit() method, it's naming was confusing
4029           - Added PostQuitMessage() which causes GetMessage to return false
4030             once the message queue is empty
4031         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4032           PostQuitMessage()
4033         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4034           no longer a valid XplatUI method, but left it in since it's used
4035           internally. Added empty PostQuitMessage() method.
4036         * MenuAPI.cs: Replaced call to Exit() with call to
4037           PostQuitMessage, even though this is probably no longer needed.
4038         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4039         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4040         * Application.cs:
4041           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4042           - Removed old debug code that would call XplatUI for exception
4043             display, enabled standard exception handling (Still not enabled
4044             though, until NativeWindow's ExternalExceptionHandler define
4045             is removed
4046         * NativeWindow.cs:
4047           - Added internal method to allow control to update NativeWindow
4048             after a window has been destroyed
4049           - Added handling of already destroyed windows when calling i
4050             DestroyWindow
4051           - Added removal of handle from list on ReleaseHandle
4052         * XplatUIX11.cs:
4053           - Dropped GetMessageResult var and related code
4054           - Added PostQuitState to field to track if PostQuitMessage has been
4055             called
4056           - Dropped Exit() method
4057           - Added PostQuitMessage() method
4058           - GetMessage now will return false if PostQuitState is set and no
4059             more messages are in the queue.
4060           - Expose handler will no longer generate WM_PAINT messages if we are
4061             in PostQuitState since it's very likely any windows have already
4062             been destroyed, and since Hwnd won't get updated until we have
4063             processed the DestroyNotify we'd be causing X errors.
4064         
4065 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4066
4067         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4068           Thanks to Mike for pointing out the err of my ways.
4069
4070 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4071
4072         * Control.cs(PreProcessMessage): Moved menu handling back, but
4073           after all other key handling, to match MS (who handles Menu in
4074           DefWndProc)
4075         * Menu.cs (WndProc): Removed my brainfart
4076
4077 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4078
4079         * Control.cs(PreProcessMessage): Removed special menu handling 
4080         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4081
4082 2005-12-07  Mike Kestner  <mkestner@novell.com>
4083
4084         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4085         state according in tracker.
4086         * Menu.cs : promote tracker field to base class and provide a tracker
4087         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4088         has a tracker. Unparent items that are removed from the collection.
4089         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4090         * Theme*.cs: add always_show_hotkeys field to support configurability
4091         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4092         pressed.
4093
4094 2005-12-07  Jackson Harper  <jackson@ximian.com>
4095
4096         * MdiChildContext.cs: Use Control.ResetCursor.
4097         * Control.cs: ResetCursor needs to set the property so that the
4098         correct XplatUI call gets made.
4099
4100 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4101
4102         * Control.cs: More fixes to make our key events match MS. We
4103           were not setting the modifier state on KeyData, and we were
4104           not generating any events when Alt was pressed with a key
4105           since handling of WM_SYSxxx was missing for the OnKey methods.
4106
4107 2005-12-07  Jackson Harper  <jackson@ximian.com>
4108
4109         * MdiChildContext.cs: reenable the sizing code.
4110         - When the mouse leaves a window reset its cursor.
4111
4112 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4113
4114         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4115
4116 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4117
4118         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4119           widths of Fixed3D borders
4120
4121 2005-12-07  Jackson Harper  <jackson@ximian.com>
4122
4123         * MdiClient.cs: Fix warnings. Earn Mike's love.
4124
4125 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4126
4127         * ThemeClearlooks.cs:
4128           - Adjusted mouse over button color
4129           - Added first parts of CheckBox drawing
4130           - Added correct color for selected text background
4131           - Fixed ComboBox drawing
4132           - Added CPDrawBorder3D and CPDrawBorder
4133
4134 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4135
4136         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4137
4138 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4139
4140         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4141           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4142           alert users via sound. We could add an enum arg with different
4143           types of alerts in the future
4144
4145 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4146
4147         * Control.cs: Fix behaviour problems pointed out by Mike
4148
4149 2005-12-05  Mike Kestner  <mkestner@novell.com>
4150
4151         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4152         prop setters.  Calls parent.Refresh for now, but could be maybe be
4153         optimized with an internal method on StatusBar at some point.
4154         [Fixes #76513]
4155
4156 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4157
4158         * RichTextBox.cs: Implemented get_SelectionColor
4159
4160 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4161
4162         * ThemeClearlooks.cs:
4163           - Removed dead code
4164           - Draw black button border only if button is Form.AcceptButton
4165           - Draw correct button color for pressed RadioButton if the mouse 
4166             has entered the button
4167           - Updated ProgressBar drawing!
4168           - Updated CPDrawSizeGrip drawing
4169           - Updated StatusBarPanel drawing
4170
4171 2005-12-05  Mike Kestner  <mkestner@novell.com>
4172
4173         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4174         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4175
4176 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4177
4178         * ThemeClearlooks.cs: Initial check-in, activate with
4179           export MONO_THEME=clearlooks
4180         * ThemeEngine.cs: Added ThemeClearlooks
4181
4182 2005-12-03  Mike Kestner  <mkestner@novell.com>
4183
4184         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4185         [Fixes #76897]
4186
4187 2005-12-02  Jackson Harper  <jackson@ximian.com>
4188
4189         * Form.cs: If the child form has no menu the default main menu is
4190         used as the active menu.
4191
4192 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4193
4194         * ListBox.cs: Check if any items exist before trying to resolve 
4195           coordinates into items
4196
4197 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4198
4199         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4200           as the second color for the background hatch
4201
4202 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4203
4204         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4205         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4206           sure that what we pass to FormatText is always 1-based. Fixes #76885
4207
4208 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4209
4210         * NumericUpDown.cs (EndInit): When we are done initializing,
4211         reflect any updates on the UI.
4212
4213 2005-12-02  Jackson Harper  <jackson@ximian.com>
4214
4215         * ImplicitHScrollBar.cs:
4216         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4217         their container controls.
4218         * TreeView.cs: Use the new implicit scrollbars.
4219
4220 2005-12-02  Jackson Harper  <jackson@ximian.com>
4221
4222         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4223         can play with it.
4224         * TreeNodeCollection.cs: If we remove the topnode we need to
4225         update topnode to the next node in line.
4226         - When clearing nodes go through the same process as removing
4227         them, so they get depareneted and checked if they are top node.
4228
4229 2005-12-01  Jackson Harper  <jackson@ximian.com>
4230
4231         * TreeView.cs: When imagelists are used the image area is
4232         selectable as well as the text.
4233         - If there are no selected nodes select the first one.
4234         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4235         so don't do it more then we need to.
4236
4237 2005-12-01  Jackson Harper  <jackson@ximian.com>
4238
4239         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4240         that arrows can be scaled.
4241
4242 2005-12-01  Jackson Harper  <jackson@ximian.com>
4243
4244         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4245         fail. Patch by Dieter Bremes
4246
4247 2005-11-30  Jackson Harper  <jackson@ximian.com>
4248
4249         * Form.cs: Property is 2.0 only
4250         * PrintDialog.cs: Signature fix.
4251
4252 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4253
4254         * TextControl.cs: 
4255           - No longer artificially moves text 2 pixels down (now that we have
4256             borders this is no longer needed)
4257           - Added calcs for left, hanging and right indent
4258
4259 2005-11-23  Mike Kestner  <mkestner@novell.com>
4260
4261         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4262
4263 2005-11-30  Jackson Harper  <jackson@ximian.com>
4264
4265         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4266         get cloned as part of CloneMenu ().
4267         * Menu.cs: Make sure the parent of the items get set correctly
4268         when they are added.  And the owners are notified of the changes.
4269         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4270         we can change the menu being displayed/handled by the form without
4271         changing the menu assosciated with the form.
4272         - Don't let Mdi children draw/handle menus.
4273         
4274 2005-11-30  Jackson Harper  <jackson@ximian.com>
4275
4276         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4277         a MenuChanged event. Just to make the API a little more
4278         consistent.
4279         * MainMenu.cs:
4280         * MenuItem.cs: Use the new OnMenuChanged
4281         * MdiChildContext.cs: Handle menu merging.
4282         * Form.cs: Implement MergedMenu.
4283         
4284 2005-11-30  Jackson Harper  <jackson@ximian.com>
4285
4286         * Menu.cs: We were misusing Add. Add goes behind the specified
4287         index according to the docs, and does not replace the specified
4288         index. So I added an Insert method.
4289
4290 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4291
4292         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4293           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4294           is for Jackson
4295         * RichTextBox.cs: Added calls to base for DnD events
4296
4297 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4298
4299         * TextControl.cs:
4300           - Fixed drag-selection related crash; style fixes
4301           - Implemented undo class
4302             o Implemented method to capture document state for specified
4303               range in document tree
4304             o Implemented method to restore captured document state
4305             o Implemented cursor tracking
4306             o Implemented basic undo stack
4307           - Added undo cursor tracking to methods altering cursor location
4308           - Added undo tracking to selection deletion (still missing
4309             other text-altering hookups)
4310         * RichTextBox.cs:
4311           - Added SelectionLength property
4312           - Implemented CanPaste()
4313           - Implemented Paste()
4314           - Added missing protected methods
4315           - Fixed RTF->Document conversion; now uses font index 0 and color 
4316             index 0 as the default font for the parsed text
4317           - Fixed RTF<->Document font size translation
4318           - Fixed RTF generation, now properly handles cross-tag boundaries
4319             for single line selection
4320           - No longer always appends blank line to generated RTF
4321           - Removed TODOs
4322           - Added missing attributes
4323           - Hooked up undo-related methods
4324         * TextBoxBase.cs:
4325           - Implemented Copy()
4326           - Implemented Paste()
4327           - Implemented Cut()
4328           - Fixed caret mis-behaviour on backspace across line-boundaries
4329
4330 2005-11-29  Jackson Harper  <jackson@ximian.com>
4331
4332         * MdiClient.cs: Add a method for activating mdi children. Very
4333         basic right now. I imagine someday it might need more girth.
4334         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4335         children windows names are added to the menu item.
4336         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4337         mdilist. This happens regardless of whether or not there are any
4338         mdi windows to see in the list, and according to my tests happens
4339         before the items are even added. Also happens if there isn't even
4340         an mdi client to get windows from.
4341
4342 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4343
4344         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4345         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4346
4347 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4348
4349         * DataGridTableStyle.cs:
4350           - Create always the styles for the missing columns even if they are
4351             provided by the user (not default table style)
4352         * DataGrid.cs:
4353           - Fixes bug 76770
4354           - Fixes SetDataBinding (always re-attach source)
4355           - Fixes SetNewDataSource (only clear styles if they are not for 
4356             this source)
4357          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4358             and remove properly
4359
4360 2005-11-29  Jackson Harper  <jackson@ximian.com>
4361
4362         * FileDialog.cs: Implement missing bits, remove some dead
4363         code.
4364         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4365         creation of the panel so that the options set on the dialog are
4366         seen when the panel is created.
4367         * TreeView.cs: raise a click when items are clicked.
4368         
4369 2005-11-29  Jackson Harper  <jackson@ximian.com>
4370
4371         * MdiClient.cs: Pass some signature methods through to base.
4372
4373 2005-11-28  Jackson Harper  <jackson@ximian.com>
4374
4375         * ListView.cs: Raise the click event when items are clicked.
4376
4377 2005-11-28  Jackson Harper  <jackson@ximian.com>
4378
4379         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4380         a nullref.
4381
4382 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4383
4384         * ThemeNice.cs: - Removed 1 pixel bitmaps
4385           - Use SmoothingMode.AntiAlias where it makes sense
4386             (ScrollButton arrow for example)
4387           - Enhanced Button focus drawing
4388           - Fixed ComboBox drawing (no artefacts anymore, focus
4389             rectangle is back again, reduced size of ComboButton, etc.)
4390           - Fixed RadioButton focus drawing for Appearence.Button
4391           - Slight ScrollButton redesign
4392           - Some LinearGradientBrush size fixes
4393           - GroupBoxes have now rounded edges
4394           - Fixed StatusBar drawing
4395
4396 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4397
4398         * ThemeNice.cs: - Remove dead code
4399           - use correct background colors for menus, etc.
4400           - Fake pixel drawing with 1 pixel bitmaps
4401
4402 2005-11-24  Jackson Harper  <jackson@ximian.com>
4403
4404         * MdiClient.cs: Size the scrollbars when resizing the window.
4405         - Resize the maximized windows when the client is resized
4406         * Form.cs: Make the child context available
4407         
4408 2005-11-23  Jackson Harper  <jackson@ximian.com>
4409
4410         * MdiChildContext.cs: Don't size windows if they are maximized.
4411
4412 2005-11-23  Mike Kestner  <mkestner@novell.com>
4413
4414         * ContextMenu.cs: use MenuTracker.
4415         * Control.cs: remove menu handle usage.
4416         * Form.cs: remove menu handle usage.
4417         * Hwnd.cs: remove menu handle usage.
4418         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4419         motion and clicks to the new Tracker handlers.
4420         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4421         and handle usage.
4422         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4423         Killed the MENU and MENUITEM data types and associated collections
4424         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4425         MenuTracker class that exposes the leftovers from the old MenuAPI
4426         static methods. Restructured Capture handling so that only one grab is
4427         done for the entire menu hierarchy instead of handing off grabs to
4428         submenus. Tracker now has an invisible control to Capture when active.
4429         * MenuItem.cs: add sizing accessors, kill Create
4430         and handle usage.
4431         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4432         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4433         MENU(ITEM). remove menu handle usage, use Menu directly.
4434         * XplatUIDriver.cs: remove menu handle usage.
4435         * XplatUIOSX.cs: remove menu handle usage.
4436         * XplatUIWin32.cs: remove menu handle usage.
4437         * XplatUIX11.cs: remove menu handle usage.
4438
4439 2005-11-22  Jackson Harper  <jackson@ximian.com>
4440
4441         * Hwnd.cs: Don't compute the menu size for
4442         DefaultClientRectangle.
4443         - Reenable menu sizes being computed for GetClienRectangle.
4444         * Form.cs: Remove comment of trechery
4445         
4446 2005-11-22  Jackson Harper  <jackson@ximian.com>
4447
4448         * Hwnd.cs: The adjustments for the menu bar are made when it is
4449         attached to the form.
4450
4451 2005-11-19  Jackson Harper  <jackson@ximian.com>
4452
4453         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4454         (just like on windows).
4455
4456 2005-11-19  Jackson Harper  <jackson@ximian.com>
4457
4458         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4459         use real buttons anymore because they are in non client area. The
4460         one TODO here is that I need to somehow invalidate a section of
4461         the non client area.
4462
4463 2005-11-18  Jackson Harper  <jackson@ximian.com>
4464
4465         * Control.cs: Put the enum check back in now that MDI doesnt have
4466         to use this to set border styles.
4467         * Form.cs: Only set mdi child windows borders if the handle has
4468         been created.
4469         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4470         this directly on to the driver.
4471         - Get the move start position before adjusting for the titlebar
4472         height, this fixes the windows "skipping" when they are first
4473         moved.
4474
4475 2005-11-18  Jackson Harper  <jackson@ximian.com>
4476
4477         * XplatUIX11.cs: Just compute the mdi borders separately as they
4478         don't totally match up with normal form borders.
4479
4480 2005-11-18  Jackson Harper  <jackson@ximian.com>
4481
4482         * Control.cs: Set WS_ styles for borders, so that the driver does
4483         not have to retrieve the control instance to figure out what kind
4484         of borders it should have.
4485         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4486         driver can know its an mdi child easily.
4487         * XplatUIX11.cs: Get the border styles and whether the window is
4488         MDI from the Styles and ExStyles params instead of having to get a
4489         control. This prevents a chicken and egg problem.       
4490
4491 2005-11-18  Jackson Harper  <jackson@ximian.com>
4492
4493         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4494
4495 2005-11-18  Jackson Harper  <jackson@ximian.com>
4496
4497         * MdiClient.cs: Calculate when to add and remove scrollbars
4498         correctly.
4499         * MdiChildContext.cs: Adjust the y position to take the titlebar
4500         into account.
4501         - No height for FormBorderStyle.None
4502
4503 2005-11-18  Jackson Harper  <jackson@ximian.com>
4504
4505         * Control.cs: Allow non enum values to be used for
4506         InternalBorderStyle.  MDI does this to set a special border style.
4507         - New utility methods for converting points to/from client coords
4508         - Add the newly created control to the Controls collection before
4509         updating its style. This way UpdateStyle can walk the control
4510         heirarchy to find the control if needed.
4511         so I don't need to create a new Point object all the time.
4512         * Form.cs: Let MDI windows handle their border styles.
4513         - Set styles on MDI windows so the correct title style is derived.
4514         * MdiChildContext.cs: Move all the painting and window handling
4515         into the non client area.
4516         - Use correct sizing and put correct buttons on frames based on
4517         the FormBorderStyle.
4518         - Notify the mdi client about scrolling
4519         - Need to handle the buttons ourselves now, because they are all
4520         in non client areas and we can't add controls there.
4521         * MdiClient.cs: Halfway to scrolling, this implementation is
4522         somewhat broken though, we need to check to make sure other
4523         windows aren't causing scrolling before removing the bars. Also
4524         the bars need to be drawn on top, maybe I can switch implicit
4525         controls to be on top.
4526         * Hwnd.cs: caption_height and tool_caption_height are now
4527         properties of an hwnd, this way they can be set by the driver
4528         based on the type of window they are.  In X11 the window manager
4529         handles the decorations so caption_height is zero unless its an
4530         MDI window.
4531         - Add 3 pixel borders for MDI windows (0xFFFF).
4532         - Get rid of some code duplication, have DefaultClientRectanle
4533         just call GetClientRectangle.
4534         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4535         Hwnd now.
4536         - Set border styles differently for mdi windows.
4537         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4538         Hwnd now.
4539         
4540 2005-11-15  Mike Kestner  <mkestner@novell.com>
4541
4542         * Menu.cs: when adding an item to the collection, if item is already 
4543         parented, remove it from the parent.
4544
4545 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4546
4547         * X11DesktopColors.cs: Added KDE support
4548
4549 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4550
4551         * XplatUIWin32.cs: 
4552           - Clipboard methods now can translate Rtf format
4553           - No longer removes clipboard contents whenever a new format is added
4554             to allow placing multiple formats on the clipboard
4555         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4556           will place all formats contained in it onto the clipboard. Also
4557           now cleans the clipboard before placing a new object onto it
4558         * RichTextBox.cs:
4559           - Implemented set_Rtf
4560           - Implemented set_SelectedRtf
4561           - Created InsertRTFFromStream() method to allow single code base
4562             for all properties and methods that insert RTF into document
4563           - Removed debug output
4564         * TextControl.cs:
4565           - Fixed Delete(int) to fix up line numbers
4566           - Fixed ReplaceSelection to combine start and end line
4567           - Fixed serious DeleteChars bug that would leave the document tree
4568             broken
4569           - Improved DumpTree with several logic checks to detect broken
4570             document trees
4571           - Removed debug lines
4572           - Fixed Caret.WordForward/WordBack moving code, now always also 
4573             updates caret.tag (fixes crash when word-selecting across tag
4574             boundaries via keyboard)
4575           - Added Insert() method for inserting multiline text into documents
4576           - Fixed DeleteChars() calculation errors that would cause a broken
4577             tag chain with multiple tag lines
4578           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4579           - Split() no longer moves caret if split is at caret location
4580           - ReplaceSelection() now updates the cursor and re-displays it
4581           - ReplaceSelection() now uses new Insert() method to avoid code
4582             duplication
4583           - FormatText() can now handle formatting partial lines
4584         * TextBoxBase.cs:
4585           - Append now uses new TextControl.Insert() method (this avoids 
4586             duplicate code)
4587           - Implemented Ctrl-X (Cut) (
4588           - Implemented Ctrl-C (Copy)
4589           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4590             regeneration when pasting text; roundtripping Copy&Paste within
4591             edit control still fails due to some calculation bugs in GenerateRTF)
4592           - The Delete key will now remove the current selection if it is visible
4593         * TextBox.cs: Removed debug lines
4594         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4595           driver to be initialized and can't therefore be done via a static ctor)
4596
4597 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4598
4599         * TextControl.cs: Added backend code for finding char arrays and strings
4600         * TextBoxBase.cs:
4601           - Added mouse wheel scroll support
4602           - Added support for VScroll and HScroll events
4603         * RichTextBox.cs:
4604           - Implemented all seven Find() variants
4605           - Implemented GetCharFromPosition()
4606           - Implemented GetCharIndexFromPosition()
4607           - Implemented GetLineFromIndex()
4608           - Implemented GetPositionFromCharIndex();
4609           - Implemented SaveFile for PlainText and UnicodeText
4610           - Fixed set_Font, now setting a new font applies that font to
4611             the whole document
4612           - Implemented generic Document to RTF converter
4613           - Implemented SaveFile for RichText format (still missing unicode
4614             conversion for non-ansi chars)
4615           - Implemented get_Rtf
4616           - Implemented get_SelectedRtf
4617
4618 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4619
4620         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4621           to allow any captures to be released before triggering OnClick. This
4622           way a click handler may capture the mouse without interference.
4623         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4624           This way we send them even though X may not allow a grab (if the window
4625           isn't visible, for example)
4626
4627 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4628
4629         * DataGridViewRowEventArgs.cs: DataGridView implementation
4630         * DataGridViewElement.cs: DataGridView implementation
4631         * DataGridViewComboBoxCell.cs: DataGridView implementation
4632         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4633         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4634         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4635         * ImageLayout.cs: DataGridView implementation
4636         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4637         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4638         * DataGridViewSelectionMode.cs: DataGridView implementation
4639         * IDataGridViewEditingControl.cs: DataGridView implementation
4640         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4641         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4642         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4643         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4644         * DataGridViewColumnSortMode.cs: DataGridView implementation
4645         * DataGridView.cs: DataGridView implementation
4646         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4647         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4648         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4649         * Padding.cs: DataGridView implementation
4650         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4651         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4652         * DataGridViewRowEventHandler.cs: DataGridView implementation
4653         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4654         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4655         * DataGridViewButtonCell.cs: DataGridView implementation
4656         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4657         * DataGridViewEditMode.cs: DataGridView implementation
4658         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4659         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4660         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4661         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4662         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4663         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4664         * DataGridViewCellEventHandler.cs: DataGridView implementation
4665         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4666         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4667         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4668         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4669         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4670         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4671         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4672         * QuestionEventArgs.cs: DataGridView implementation
4673         * IDataGridViewEditingCell.cs: DataGridView implementation
4674         * DataGridViewTriState.cs: DataGridView implementation
4675         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4676         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4677         * DataGridViewColumnCollection.cs: DataGridView implementation
4678         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4679         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4680         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4681         * DataGridViewColumn.cs: DataGridView implementation
4682         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4683         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4684         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4685         * DataGridViewRow.cs: DataGridView implementation
4686         * DataGridViewImageCellLayout.cs: DataGridView implementation
4687         * DataGridViewImageCell.cs: DataGridView implementation
4688         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4689         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4690         * DataGridViewHeaderCell.cs: DataGridView implementation
4691         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4692         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4693         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4694         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4695         * QuestionEventHandler.cs: DataGridView implementation
4696         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4697         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4698         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4699         * DataGridViewCell.cs: DataGridView implementation
4700         * DataGridViewCellEventArgs.cs: DataGridView implementation
4701         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4702         * DataGridViewCellStyle.cs: DataGridView implementation
4703         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4704         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4705         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4706         * TextFormatFlags.cs: DataGridView implementation
4707         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4708         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4709         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4710         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4711         * DataGridViewButtonColumn.cs: DataGridView implementation
4712         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4713         * HandledMouseEventArgs.cs: DataGridView implementation
4714         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4715         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4716         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4717         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4718         * DataGridViewRowCollection.cs: DataGridView implementation
4719         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4720         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4721         * DataGridViewHitTestType.cs: DataGridView implementation
4722         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4723         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4724         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4725         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4726         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4727         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4728         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4729         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4730         * DataGridViewContentAlignment.cs: DataGridView implementation
4731         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4732         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4733         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4734         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4735         * DataGridViewPaintParts.cs: DataGridView implementation
4736         * DataGridViewCellCollection.cs: DataGridView implementation
4737         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4738         * DataGridViewImageColumn.cs: DataGridView implementation
4739         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4740         * DataGridViewElementStates.cs: DataGridView implementation
4741         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4742         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4743         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4744         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4745         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4746         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4747         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4748         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4749         * DataGridViewTextBoxCell.cs: DataGridView implementation
4750         * DataGridViewBand.cs: DataGridView implementation
4751         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4752         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4753         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4754         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4755         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4756         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4757         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4758         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4759         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4760         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4761         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4762
4763 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4764
4765         * ThemeWin32Classic.cs: 
4766           - Draw the outside focus rectangle around buttons
4767           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4768             doesn't use end caps for every dash of a line anymore. This
4769             workaround ignores the forecolor.
4770
4771 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4772
4773         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4774           endian safe.
4775
4776 2005-11-07  Jackson Harper  <jackson@ximian.com>
4777
4778         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4779
4780 2005-11-07  Jackson Harper  <jackson@ximian.com>
4781
4782         * ScrollableControl.cs: Calculate the maximum and change vars
4783         (more) correctly so that scrollbars appear as a sensible size.
4784
4785 2005-11-04  Jackson Harper  <jackson@ximian.com>
4786
4787         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4788         collection.
4789         * TreeView.cs: When the tree is sorted null out the top_node so
4790         that it is recalculated.
4791         - Use dotted lines instead of dashed lines to match MS better.
4792
4793 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
4794
4795         * ListView.cs: 
4796           - Implements key search for items. Useful when browsing files with FileDialog
4797           - When changing view mode or when clear the items reset scrollbar positions
4798
4799 2005-11-04  Jackson Harper  <jackson@ximian.com>
4800
4801         * CurrencyManager.cs: Implement the MetaDataChanged event, the
4802         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4803         as to what the method may do as there is no real way of creating a
4804         derived CurrencyManager and calling the method. 
4805
4806 2005-11-03  Jackson Harper  <jackson@ximian.com>
4807
4808         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4809         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4810         method which seems to just be used internally to refresh the tabs.
4811
4812 2005-11-03  Jackson Harper  <jackson@ximian.com>
4813
4814         * TabControl.cs: Implement the remove method. Fix some broken
4815         comments.
4816
4817 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4818
4819         * DateTimePicker.cs:
4820           - Added missing DateTimePickerAccessibleObject class
4821           - Added missing events
4822           - Added OnFontChanged method
4823         * Form.cs: Added missing attributes
4824         * TreeView.cs: Added missing attributes
4825
4826 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
4827
4828         * GridItemCollection.cs: Fix signatures
4829
4830 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4831
4832         * XplatUI.cs: Updated build rev/date
4833         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
4834           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4835         * Application.cs: Trigger context-specific ExitThread events
4836
4837 2005-11-03  Jackson Harper  <jackson@ximian.com>
4838
4839         * Menu.cs:
4840         * MainMenu.cs:
4841         * GridTableStylesCollection.cs:
4842         * Timer.cs:
4843         * TabPage.cs:
4844         * HelpProvider.cs:
4845         * StatusBar.cs:
4846         * MonthCalendar.cs: Signature fixes
4847
4848 2005-11-03  Jackson Harper  <jackson@ximian.com>
4849
4850         * TreeNodeCollection.cs: Remove should not be virtual.
4851         * TreeView.cs: Implement the last of the missing methods.
4852
4853 2005-11-03  Jackson Harper  <jackson@ximian.com>
4854
4855         * TreeNodeConverter.cs: Implement to get off my class-status back.
4856
4857 2005-11-03  Jackson Harper  <jackson@ximian.com>
4858
4859         * TreeView.cs: Hookup the bits for drag and drop.
4860         * TreeNode.cs: Don't cache the tree_view or index anymore, now
4861         that nodes can be moved from tree to tree easily this just causes
4862         all sorts of problems.
4863         * TreeNodeCollection: Don't need to give treenodes an index and
4864         treeview anymore when they are added, these are computed on the
4865         fly. Also make sure to remove a node before its added.
4866
4867 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4868
4869         * TextControl.cs:
4870           - Added CaretSelection enum
4871           - Added comparison methods to Marker struct, makes selection code
4872             more readable
4873           - Added SelectionStart and SelectionEnd as 'moveable' location for
4874             the CaretDirection enum and handler
4875           - Added selection_prev variable to track optimized invalidation for
4876             word and line selection
4877           - Added SelectionVisible property (returns true if there is a valid 
4878             selection)
4879           - Switched CaretHasFocus to only display the caret if there is no
4880             visible selection
4881           - Avoiding StringBuilder.ToString to retrieve a single char, instead
4882             using the direct character index; should be much faster
4883           - Added various conditional debug statements
4884           - Fixed invalidation calculation for selection ranges
4885           - Added ExpandSelection() method to support word and line selection
4886           - Switched SetSelectionToCaret to use new Marker compare overloads
4887           - Added central IsWordSeparator() method to determine word 
4888             separators/whitespace and FindWordSeparator() to streamline common
4889             usage of IsWordSeparator()
4890         * TextBoxBase.cs:
4891           - Removed unneeded grabbed variable, it was just mirroring
4892             Control.Capture
4893           - No longer firing OnTextChanged event when Text setter is called,
4894             since the base will fire the event for us
4895           - Added handling of Ctrl-Up/Down selection
4896           - Added handling of Shift-Cursorkey selection
4897           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4898             words
4899           - Added handling of Shift and Ctrl-Shift-Home/End selection
4900           - Removed some debug output
4901           - Added handling for single/double/tripple-click to place caret/
4902             select word/select line respectively (Fixes bug #76031)
4903           - Added support for drag expansion of word/line selection
4904         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4905           current selection
4906
4907 2005-11-02  Jackson Harper  <jackson@ximian.com>
4908
4909         * X11Dnd.cs: If the drag is going to and from a MWF window just
4910         copy the data instead of sending it out through the X Selection
4911         mechanism.
4912
4913 2005-11-02  Jackson Harper  <jackson@ximian.com>
4914
4915         * X11Dnd.cs:
4916         * XplatUIX11.cs: When in a drag we don't want motion notify
4917         messages to get passed on to the other controls. This prevents
4918         mouse move messages from showing up in the drag source.
4919
4920 2005-11-02  Jackson Harper  <jackson@ximian.com>
4921
4922         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
4923         the correct button is release to end a drag.
4924         * XplatUIX11.cs: Make the button state internal so the drag system
4925         can access it.  Dragging needs to know about all button releases,
4926         not just left button.
4927
4928 2005-11-02  Miguel de Icaza  <miguel@novell.com>
4929
4930         * Form.cs (Icon): If the icon is null, reset the icon to the
4931         default value. 
4932
4933         * Cursor.cs: When writing the AND-mask bitmap do not include the
4934         number of colors, but hardcode those to two (black and white),
4935         fixes the loading of color cursors (Paint Dot Net).
4936
4937         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4938         turn off autoscaling.
4939
4940         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4941
4942 2005-11-02  Jackson Harper  <jackson@ximian.com>
4943
4944         * X11Dnd.cs: Make sure to send a status message if the pointer
4945         enters a control that can not accept a drop, otherwise the cursor
4946         isn't updated correctly. Also tried to compress the lines of code
4947         a bit.
4948
4949 2005-11-02  Jackson Harper  <jackson@ximian.com>
4950
4951         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4952         set actions correctly.  This isn't perfect as XDND and win32 have
4953         some differences on how you allow actions. I'll clear this up by
4954         adding a path for drag from MWF to MWF windows.
4955         * XplatUIX11.cs: Hook into the dnd system.
4956
4957 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
4958
4959         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4960         previously shown but they are no longer need it. Very obvious when 
4961         browsing files with FileDialog.
4962
4963 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
4964
4965         * Control.cs: We always need to call OnPaintBackground. We pretty much
4966           ignore AllPaintingInWmPaint and always do the painting there, whether 
4967           it's set or not, since we always ignore the WM_ERASEBKGND message 
4968           (which we don't generate on X11). This fixes #76616.
4969         * Panel.cs: Removed unneeded background painting. This happens properly
4970           in Control.cs already
4971
4972 2005-10-31  Mike Kestner  <mkestner@novell.com>
4973
4974         * Menu.cs: Add items to collection before setting their index.
4975         * MenuItem.cs : add range checking with ArgumentException like MS.
4976         [Fixes #76510]
4977
4978 2005-10-31  Jackson Harper  <jackson@ximian.com>
4979
4980         * ListBox.cs: Invalidate if the area is visible at all not just
4981         contained in the visible rect. Fixes unselection of semi visible
4982         items.
4983
4984 2005-10-31  Jackson Harper  <jackson@ximian.com>
4985
4986         * Control.cs: Consistently name the dnd methods. Make them
4987         internal so we can override them to match some MS behavoir
4988         internally.
4989         * Win32DnD.cs: Use the new consistent names.
4990
4991 2005-10-31  Jackson Harper  <jackson@ximian.com>
4992
4993         * TreeView.cs: Don't draw the selected node when we lose focus.
4994
4995 2005-10-31  Jackson Harper  <jackson@ximian.com>
4996
4997         * X11Dnd.cs: We still need to reset the state even though a full
4998         reset isn't being done, otherwise status's still get sent all over
4999         the place.
5000
5001 2005-10-31  Jackson Harper  <jackson@ximian.com>
5002
5003         * Control.cs: Make the dnd_aware flag internal so the dnd
5004         subsystem can check it. Catch exceptions thrown in dnd handlers to
5005         match MS behavoir.
5006         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5007         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5008         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5009         flags to reduce the number of dnd enters/status's sent.
5010
5011 2005-10-31  Jackson Harper  <jackson@ximian.com>
5012
5013         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5014
5015 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5016
5017         * PictureBox.cs: Fixes 76512
5018
5019 2005-10-28  Jackson Harper  <jackson@ximian.com>
5020
5021         * X11Dnd.cs: Early implementation to support winforms being a drag
5022         source for data on X11. Also restructured the converters so they
5023         can go both ways now.
5024         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5025         
5026 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5027
5028         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5029           clipboard requests
5030
5031 2005-10-27  Jackson Harper  <jackson@ximian.com>
5032
5033         * TreeNode.cs: Implement serialization so my DnD examples will work.
5034
5035 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5036
5037         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5038           TreeView.cs: Don't dispose objects that are not owned.
5039           
5040 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5041
5042         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5043           should retrieve the current cursor and report that, but XplatUI
5044           doesn't (yet) have an interface for that (and I'm not sure I even
5045           can, on X11)
5046         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5047           until any message loop processing is done (and the WM_SETCURSOR
5048           replaces the cursor to the proper one)
5049         * XplatUIX11.cs: 
5050           - Fixed override behaviour, we can't set the cursor globally on X11, 
5051             just for our windows.
5052           - Invalidating the System.Drawing X11 display handle when we are
5053             shutting down
5054         * Control.cs: Fix to make csc happy
5055
5056 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5057
5058         * TextBoxBase.cs: 
5059           - get_Text: Add last line (without trailing newline) to returned
5060             value (Fixes 76212)
5061           - get_TextLength: Count last line in returned length
5062           - ToString: Call Text property instead of duplicating code
5063
5064 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5065
5066         * ImageList.cs: Dispose ImageAttributes objects.
5067
5068 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5069
5070         * ImageList.cs: Use attribute constructors with less arguments where
5071           possible.
5072
5073 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5074
5075         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5076           Use typeof instead of strings when assembly is referenced. Added
5077           some more comments.
5078
5079 2005-10-21  Jackson Harper  <jackson@ximian.com>
5080
5081         * ListView.cs: Raise a double click event. Also tried to somewhat
5082         fix when the selectedindexchanged event is raised. Its still
5083         broken though.
5084
5085 2005-10-21  Jackson Harper  <jackson@ximian.com>
5086
5087         * TreeView.cs: New method to invalidate the plus minus area of a
5088         node without invalidating the whole node (maybe this can be used
5089         in some more places).
5090         * TreeNodeCollection.cs: When adding to an empty node we need to
5091         invalidate its plus minus area so the little block shows up.
5092         
5093 2005-10-21  Jackson Harper  <jackson@ximian.com>
5094
5095         * TreeView.cs: Make sure that when we invalidate a node the bounds
5096         are big enough to cover the selected box and the focus
5097         rectangle. Use a different colour for the lines connecting nodes
5098         so they show up with all themes.
5099
5100 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5101
5102         * NativeWindow.cs: Don't call anything that could call into the driver,
5103           we might be on a different thread.
5104
5105 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5106
5107         * Control.cs(Dispose): Since Dispose might run on a different thread,
5108           make sure that we call methods that could call into the driver via
5109           invoke, to avoid thread issues
5110
5111 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5112
5113         * XplatUI.cs: Removed finalizer
5114         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5115           not allowing to be called on the finalizer thread.
5116
5117 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5118
5119         * ImageList.cs:
5120           - Reverted r51889 and r51891.
5121           - Added ImageListItem class that stores unmodified image items and image
5122             properties required to create list images until handle is created.
5123           - Added AddItem and moved image creation logic to AddItemInternal.
5124           - Added CreateHandle method that creates images based on unmodified items.
5125           - Added DestroyHandle that changes state to store unmodified items.
5126           - Add and AddStrip methods no more create handle.
5127           - ReduceColorDepth has no return value.
5128           - Dispose destroys handle.
5129           - Modified other methods to reflect the above changes.
5130           - Implemented key support.
5131           - Added profile 2.0 members and attributes.
5132           - Added private Reset and ShouldSerialize methods that provide the same
5133             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5134             them as they are private.
5135           - Added some more comments about implementation details.
5136
5137 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5138
5139         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5140
5141 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5142
5143         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5144
5145 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5146
5147         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5148         * DataGridColumnStyle.cs: Remove debug message
5149
5150 2005-10-20  Jackson Harper  <jackson@ximian.com>
5151
5152         * TreeView.cs: We can always get input keys regardless of whether
5153         or not editing is enabled. They are used for navigation.
5154
5155 2005-10-20  Jackson Harper  <jackson@ximian.com>
5156
5157         * TreeNode.cs: Use the viewport rect for determining if a node
5158         needs to be moved for visibility. Don't use Begin/End edit. This
5159         calls a full refresh when its done.
5160         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5161         rect property internal so the treenodes can see it. When clicking
5162         on a node we need to ensure that its visible because it might just
5163         be partly visible when clicked.
5164
5165 2005-10-20  Jackson Harper  <jackson@ximian.com>
5166
5167         * TreeNodeCollection.cs: Remove debug code.
5168
5169 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5170
5171         * Datagrid.cs: Implements column sorting in Datagrid
5172         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5173
5174 2005-10-20  Jackson Harper  <jackson@ximian.com>
5175
5176         * TreeNodeCollection.cs: Remove items properly. Update the correct
5177         area after removing them.
5178
5179 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5180
5181         * Datagrid.cs: Should not call base.OnPaintBackground
5182
5183 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5184
5185         * XplatUIX11.cs (GetMessage):
5186           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5187             window instead of client window
5188           - Now properly calculates NC_xBUTTONUP message coordinates
5189           - ScreenToMenu now properly calculates it's coordinates of whole 
5190             window, since menus are in the whole window, not in the client
5191             window
5192           - Added WholeToScreen coordinate translation method
5193
5194 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5195
5196         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5197           want to return a message, loop back to the beginning of the function
5198           and grab the next real message to process instead.
5199
5200 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5201
5202         * Splitter.cs: Properly set limits if no filler control is used
5203
5204 2005-10-19  Jackson Harper  <jackson@ximian.com>
5205
5206         * ColorDialog.cs: Don't show the help button if it is not enabled
5207         instead of disabling it (this is what MS does). Don't create the
5208         panel until the dialog is run, otherwise the vars (such as
5209         ShowHelp) are not set yet.
5210
5211 2005-10-19  Jackson Harper  <jackson@ximian.com>
5212
5213         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5214         are reduced when adding nodes.
5215         * TreeNode.cs:
5216         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5217         tree.
5218         
5219 2005-10-19  Jackson Harper  <jackson@ximian.com>
5220
5221         * FolderBrowserDialog.cs: End editing our treeview so the window
5222         actually gets refreshed.
5223
5224 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5225
5226         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5227           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5228           inside of WM_PAINT
5229
5230 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5231
5232         * MenuAPI.cs: Returns after Hidding window
5233         * XplatUIX11.cs: Added TODO found while debugging menu issues
5234
5235 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5236
5237         * XplatUIX11.cs: Do not re-map the whole window when it's size
5238           becomes non-zero unless it's supposed to be actually visible
5239
5240 2005-10-18  Jackson Harper  <jackson@ximian.com>
5241
5242         * TreeView.cs: We don't need to keep a count anymore.
5243         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5244         use the Grow method.
5245
5246 2005-10-18  Jackson Harper  <jackson@ximian.com>
5247
5248         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5249         implement it manually here.
5250
5251 2005-10-18  Jackson Harper  <jackson@ximian.com>
5252
5253         * ImageList.cs: Dont kill the list when the colour depth is
5254         changed, just change the colour depth of all the images.
5255         - Same goes for setting the image size. Just resize them all
5256         instead of killing the list softly.
5257
5258 2005-10-18  Jackson Harper  <jackson@ximian.com>
5259
5260         * Control.cs: Don't invalidate empty rectangles.
5261
5262 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5263
5264         * ListViewItem.cs:
5265           - Adds checked item to the Checked/Item lists (where empty before)
5266           - Do not add items to the Selected lists if they are already present
5267         * ListView.cs:
5268           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5269           - When deleting items make sure that we delete them for the Selected
5270           and Checked list also.
5271
5272 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5273
5274         * Label.cs: Dispose objects no longer used
5275         * ThemeWin32Classic.cs: Dispose objects no longer used
5276
5277 2005-10-18  Jackson Harper  <jackson@ximian.com>
5278
5279         * TabControl.cs: Don't refresh the whole control when the tabs are
5280         scrolled, we just need to refresh the tab area.
5281
5282 2005-10-17  Jackson Harper  <jackson@ximian.com>
5283
5284         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5285         after handle when we need it.
5286
5287 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5288
5289         * Control.cs: When the parent size changes, recalculate anchor 
5290           positions. Partial fix for #76462
5291
5292 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5293
5294         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5295           drawn. Fixes #76462
5296
5297 2005-10-17  Jackson Harper  <jackson@ximian.com>
5298
5299         * MonthCalendar.cs: Don't create the numeric up down until our
5300         handle is created. Otherwise our handle is created in the
5301         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5302         yet.
5303
5304 2005-10-17  Jackson Harper  <jackson@ximian.com>
5305
5306         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5307         correctly.
5308
5309 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5310         * TreeNode.cs : small logical fix (was using local var instead of field)
5311         
5312 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5313
5314         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5315
5316 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5317
5318         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5319
5320 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5321
5322         * Control.cs: 
5323           - Re-implemented anchoring code. My first version was really broken.
5324             This fixes bug #76033. Unlike the previous implementation we will
5325             no longer have round errors since all numbers are calculated from
5326             scratch every time. Removed various anchor-related obsolete vars.
5327           - InitLayout no longer causes layout event firing and layout to be 
5328             performed
5329
5330 2005-10-16  Jackson Harper  <jackson@ximian.com>
5331
5332         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5333         which was broken).
5334
5335 2005-10-16  Jackson Harper  <jackson@ximian.com>
5336
5337         * TabControl.cs: Remove debug code.
5338
5339 2005-10-16  Jackson Harper  <jackson@ximian.com>
5340
5341         * XEventQueue.cs: Increase the default queue size (very simple
5342         apps needed to grow the queue).
5343         * Hwnd.cs: No finalizer so we don't need to suppress
5344         finalization. Compute the invalid area manually so a new rectangle
5345         does not newto be created.
5346         * ScrollableControl.cs: Don't set any params (otherwise visibility
5347         isn't set correctly).
5348         * MdiChildContext.cs: New constructor takes the mdi parent so it
5349         doesn't have to be computed and avoids a crash on windows. Draw
5350         the window icon properly, and allow the text to be seen.
5351         * Form.cs: Use new MdiChildContext constructor. Make sure the
5352         child context isn't null in wndproc.
5353         * TabControl.cs: Don't set focus, this is muddling keyboard
5354         behavoir. Expand the tab rows when a window size increase will
5355         allow extra tabs to be seen. Don't allow tabs smaller than the
5356         width of a window to be scrolled out of view.
5357         * TreeNode.cs:
5358         * TreeView.cs: Use measure string to calculate a nodes width, the
5359         width is cached and only updated when the text or the font is
5360         changed. Don't check for expand/collapse clicks on the first level
5361         nodes if root lines are disabled.
5362         
5363 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5364
5365         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5366
5367 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5368
5369         * DataGridBoolColumn.cs: fixes warning
5370
5371 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5372
5373         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5374         to match more to match more precisely the MS Net behavior
5375
5376 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5377
5378         * Hwnd.cs: Added field to track if window is mapped
5379         * XplatUIX11.cs: 
5380           - Unmap windows if they become 0-size, re-map when 
5381             they are >0 again; fixes #76035
5382           - Re-set our error handler after initializing X11Desktop
5383             to override any error handlers Gtk or whatever was called
5384             may have set.
5385
5386 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5387
5388         * CheckedListBox.cs: Removed unused vars
5389         * ListView.cs: Fixed signatures
5390         * RichTextBox.cs: Removed unused vars
5391         * TextBoxBase.cs: Removed unused vars
5392         * XplatUIWin32.cs: Removed unused vars
5393         * XplatUIX11.cs: Removed unused vars
5394         * XplatUI.cs: Updated version and date to latest published
5395
5396 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5397
5398         * Cursor.cs: Added private .ctor to work around a bug in
5399           resourceset (Thanks to Geoff Norton for the help on this)
5400         * SplitterEventArgs.cs: Made fields accessible so we don't
5401           waste boatloads of objects and can reuse the same one
5402           in Splitter
5403         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5404           any captions and borders when generating screen coordinates
5405         * Splitter.cs: Reimplemented control, now fully complete, uses
5406           rubberband drawing, supports and obeys all properties, has
5407           proper cursors
5408
5409 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5410
5411         * Form.cs (Form): Setup default values for autoscale and
5412         autoscale_base_size;  Make these instance variables, not static
5413         variables. 
5414
5415         (OnLoad): on the first load, adjust the size of the form.
5416
5417 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5418
5419         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5420           width argument to DrawReversibleRectangle()
5421         * XplatUIWin32.cs, XplatUIX11.cs: 
5422           - Implemented width for DrawReversibleRectangle()
5423           - Added logic to DrawReversibleRectangle that recognizes a zero
5424             width or height and only draws a line in that situation
5425         
5426 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5427
5428         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5429         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5430         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5431           method (it uses our FosterParent window to get a graphics context)
5432
5433 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5434
5435         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5436           and SetWindowBackground methods
5437         * Control.cs:
5438           - Setting proper ControlStyles
5439           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5440             EraseWindowBackground, instead we draw the window background
5441             ourselves in PaintControlBackground. This behaviour is
5442             required to match MS, where, when OnPaintBackground is not
5443             called, the background is not drawn.
5444           - Removed unneeded Refresh() in set_Text
5445         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5446         * XplatUIX11.cs:
5447           - Created DeriveStyles method to translate from CreateParams to
5448             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5449             matches FormBorderStyle enum values)
5450           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5451             style calculations into single DeriveStyles method
5452           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5453             from redrawing the whole window on any resize or expose.
5454           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5455             all styles were applied to our whole/client window appropriately
5456           - Removed EraseWindowBackground() and SetWindowBackground() methods
5457           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5458             no longer clear/redraw the background through X
5459           - Removed handling of erase_pending bit, we have no use for it (or
5460             so it seems)
5461         * XplatUIOSX.cs:
5462           - Removed generation and handling of WM_ERASEBKGND message
5463           - Removed EraseWindowBackground() and SetWindowBackground() methods
5464           - Removed handling of hwnd.ErasePending flag
5465         * XplatUIWin32.cs:
5466           - Removed EraseWindowBackground() and SetWindowBackground() methods
5467           - We no longer call EraseWindowBackground on PaintEventStart, we 
5468             ignore the fErase flag, erasing is handled in Control in the
5469             background handler
5470         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5471           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5472           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5473           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5474           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5475           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5476           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5477
5478 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5479
5480         * PropertyGrids.cs: Get sub properties
5481         * PropertyGridView.cs: Fix drawing code
5482
5483 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5484
5485         * ListBox.cs: Fixes 76383
5486
5487 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5488
5489         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5490         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5491         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5492
5493
5494 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5495
5496         * ComboBox.cs: Fixes border drawing
5497
5498 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5499
5500         * MimeIcon.cs: Ignore errors if the file can not be read.
5501
5502 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5503
5504         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5505          - Fixed border calculations
5506          - Fixed horizontal scrolling in single column listboxes
5507          - Fixed drawing issues
5508
5509 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5510
5511         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5512           FormBorderStyle enum
5513         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5514           code to determine FormBorderStyles from CreateParams
5515         * Form.cs:
5516           - Fixed bug where we'd set the wrong window styles if we were
5517             not creating an MDI window
5518           - Added call to XplatUI.SetBorderStyle when form borders are set
5519         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5520         * Hwnd.cs:
5521           - Removed obsolete edge style
5522           - Switched from BorderStyle to FormBorderStyle
5523         
5524 2005-10-10  Jackson Harper  <jackson@ximian.com>
5525
5526         * Form.cs: Use the property to get the window handle instead of
5527         accessing it directly. Prevents a null reference exception.
5528
5529 2005-10-10  Jackson Harper  <jackson@ximian.com>
5530
5531         * TreeView.cs: Don't adjust the rect given to DrawString now that
5532         our libgdiplus draws correctly.
5533
5534 2005-10-08  Jackson Harper  <jackson@ximian.com>
5535
5536         * TreeView.cs: Don't try to find the clicked on node if there are
5537         no nodes in the tree.
5538
5539 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5540
5541         * RichTextBox.cs:
5542
5543           restore
5544
5545 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5546
5547         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5548           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5549           ErrorProvider.cs:
5550           Use ResPool for brushes and dispose System.Drawing objects that
5551           are not used anymore.
5552
5553 2005-10-07  Jackson Harper  <jackson@ximian.com>
5554
5555         * MdiChildContext.cs: Use the new borders instead of drawing them
5556         ourselves.
5557
5558 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5559
5560         * Calling UpdateBounds after changing the window's BorderStyle 
5561         since the style can change the ClientSize
5562
5563 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5564
5565         * Control.cs: Made PaintControlBackground virtual
5566         * Panel.cs: Overriding PaintControlBackground instead of using paint
5567           event; paint event method was interfering with 'real' users of the
5568           event.
5569
5570 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5571
5572         * ThemeWin32Classic.cs: remove border drawing since it is handled
5573         by the base control class now and was causing double border drawing.
5574
5575 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5576
5577         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5578           but it does seem to match MS behaviour. This fixes bug #75324
5579
5580 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5581
5582         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5583           somewhat hackish looking
5584
5585 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5586
5587         * TextBoxBase.cs:
5588           - We now accept Enter even if AcceptEnter is false, if the containing
5589             form does not have an AcceptButton configured (fixes bug #76355)
5590           - Calculations are now fixed to no longer use Width/Height, but
5591             ClientSize.Width/Height, since we now support borders (this was
5592             a result of fixing borders and therefore bug #76166)
5593           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5594             true (fixes bug #76354)
5595         
5596 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5597
5598         * Control.cs: 
5599           - Defaulting BorderStyle and setting it in XplatUI when our window 
5600             is created
5601           - Added enum check to InternalBorderStyle setter
5602         * XplatUIX11.cs: 
5603           - Added drawing of window borders
5604           - Now properly calculates WM decorations offset for toplevel 
5605             windows (fixes bug #74763)
5606         * XplatUIWin32.cs: 
5607           - Implemented BorderStyles for windows (we're letting win32 draw 
5608             the border for us)
5609           - Fixed the signature for SetWindowLong
5610         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5611           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5612           setting borders
5613         * UpDownBase.cs: Remove drawing of borders, this is handled by
5614           the driver, outside the client area
5615         * ListView.cs: Removed bogus border calculations. The control should
5616           be oblivious to borders, since those are not part of the client
5617           area. 
5618         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5619         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5620           drawing code
5621
5622 2005-10-06  Jackson Harper  <jackson@ximian.com>
5623
5624         * MdiChildContext.cs: Clear out the old virtual position remove
5625         all the unneeded calls to CreateGraphics.
5626
5627 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5628
5629         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5630
5631 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5632
5633         * Form.cs: 
5634           - Added loading and setting of our new default icon
5635           - Only set icon if window is already created
5636
5637 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5638
5639         * Label.cs:
5640           - Do not explicitly set the foreground and background colors, to
5641             allow inheriting from parents (fixes #76302)
5642           - Use Control's InternalBorderStyle property to deal with borders
5643
5644 2005-10-06  Jackson Harper  <jackson@ximian.com>
5645
5646         * MdiChildContext.cs: Use the new xplatui function to draw a
5647         reversible rect.
5648
5649 2005-10-06  Jackson Harper  <jackson@ximian.com>
5650
5651         * Form.cs: Add the parent before creating the child context cause
5652         we need the parent when setting up the child.
5653
5654 2005-10-06  Jackson Harper  <jackson@ximian.com>
5655
5656         * FolderBrowserDialog.cs: redo the tree population code so a
5657         second thread isn't used. Should be a lot faster and more stable
5658         now.
5659
5660 2005-10-05  Jackson Harper  <jackson@ximian.com>
5661
5662         * TreeView.cs: There are no expand/collapse boxes if the node has
5663         no children.
5664
5665 2005-10-05  Jackson Harper  <jackson@ximian.com>
5666
5667         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5668
5669 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5670
5671         * FileDialog.cs: Fix InitialDirectory
5672
5673 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5674
5675         * ComboBox.cs:
5676                 - Fixes changing between styles
5677                 - Fixes simple mode
5678                 - Fixes last item crashing when navigating with keyboard
5679
5680 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5681
5682         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5683
5684 2005-10-05  Jackson Harper  <jackson@ximian.com>
5685
5686         * TreeView.cs: If updating the root node do a full refresh.
5687         * TreeNode.cs: The root node should be expanded by default. Also
5688         added a utility prop to tell if we are the root node.
5689         * TreeNodeCollection.cs: Only refresh if the node we are being
5690         added to is expanded. Also added a comment on a potential
5691         optimization.
5692         
5693 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5694
5695         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5696           in dispose method. Fixes #76330
5697
5698 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5699
5700         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5701
5702                 - Implements vertical and horizontal scrolling using XplatUI
5703                 - Fixes keyboard navagation
5704                 - Fixes EnsureVisible
5705                 - Drawing fixes
5706                 - Handles and draws focus properly
5707
5708
5709 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5710
5711         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5712           Create handle. NET_2_0: Destroy handle when value is null.
5713
5714 2005-10-03  Jackson Harper  <jackson@ximian.com>
5715
5716         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5717         revert and a new patch to prevent the thumb from refreshing so
5718         much.
5719
5720 2005-10-02  Jackson Harper  <jackson@ximian.com>
5721
5722         * ScrollBar.cs: Don't update position if it hasn't actually
5723         changed. This occurs when you hold down the increment/decrement
5724         buttons and the thumb gets to the max/min.
5725
5726 2005-10-01  Jackson Harper  <jackson@ximian.com>
5727
5728         * Form.cs:
5729         * MdiChildContext.cs:
5730         * MdiClient.cs: Implement ActiveMdiChild in Form.
5731
5732 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5733
5734         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5735
5736 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5737
5738         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5739           be found
5740
5741 2005-09-30  Jackson Harper  <jackson@ximian.com>
5742
5743         * ListBox.cs: Don't do a full refresh unless some data has
5744         actually changed.
5745
5746 2005-09-30  Jackson Harper  <jackson@ximian.com>
5747
5748         * TreeView.cs: Make sure that the checkboxes size is factored in
5749         even when not visible.
5750
5751 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5752
5753         * FileDialog.cs: Fix Jordi's build break
5754
5755 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5756
5757         * FileDialog.cs: 
5758                 - Use standard the Windows colours for the combobox as espected
5759                 - Dispose objects that use resouces when no longer need them
5760
5761 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5762
5763         * X11DesktopColors.cs: Initial incomplete implementation
5764         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5765
5766 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5767
5768         * Theme.cs: 
5769           - Switched Theme color names to match the names defined in 
5770             System.Drawing.KnownColors. Life's hard enough, no need to make 
5771             it harder.
5772           - Added setters to all theme color properties so themes can set
5773             their color schemes. The setters also propagate the color changes
5774             to System.Drawing.KnownColors via reflection
5775         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5776           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5777           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5778           use the new, more logical theme color names
5779         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5780           post-NT colors
5781         * ThemeWin32Classic.cs:
5782           - Removed code to set the old classic Windows colors. Instead it
5783             now relies on the colors returned by System.Drawing.KnownColors
5784             which will be either modern static colors (Unix) or colors
5785             read from the user's configuration (Win32)
5786           - Updated to use the new, more logical theme color names
5787           - Switched DataGrid drawing code to use only Theme colors instead of
5788             a mix of System.Drawing.KnownColors and Theme colors
5789           - DrawFrameControl(): Removed code that fills the button area, the
5790             fill would overwrite any previous fill done by a control. This
5791             fixes bug #75338 
5792           - Added DrawReversibleRectangle() stub
5793         * ScrollableControl.cs: Set visible state to false when scrollbars
5794           are removed (pdn fix)
5795         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
5796           DrawReversibleRectangle() method to allow drawing primitive 
5797           'rubber bands'
5798         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5799
5800 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5801
5802         * ImageList.cs: Add(Icon): Create handle.
5803
5804 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5805
5806         * ListView.cs:
5807         * ThemeWin32Classic.cs:
5808                 - Fixes detail mode
5809                 - Sets clippings
5810                 - Issues with drawing
5811
5812 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5813
5814         * ImageList.cs: Moved RecreateHandle back to ImageList as event
5815           source has to be the ImageList.
5816
5817 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5818
5819         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5820
5821 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5822
5823         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5824
5825 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5826
5827         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5828
5829 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
5830         * GridItem.cs: Fixed TODOs
5831         * GridItemCollection.cs: Added ICollection interface
5832
5833 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5834
5835         * ImageList.cs: Resize icons when needed.
5836
5837 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
5838
5839         * ListViewItem.cs
5840                 - Fixes GetBounds and returns on screen rects
5841         * ListView.cs:
5842                 - Fixes vertical and horzintal scrolling of items
5843         * ThemeWin32Classic.cs:
5844                 - Fixes drawing
5845                 
5846 2005-09-29  Raja R Harinath  <harinath@gmail.com>
5847
5848         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5849
5850 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
5851
5852         * ImageList.cs: Added comments about handle creation. Moved Handle,
5853           HandleCreated and OnRecreateHandle implementations to ImageCollection.
5854           Handle is created in Add methods.
5855
5856 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5857          
5858         * DataGridDrawingLogic.cs: 
5859                 - Takes rows into account on Colum calculations
5860                 - Returns the column when clickig
5861         * DataGrid.cs:
5862                 - Fixes default HitTestInfo values
5863                 - Fixes HitTestInfo.ToString
5864                 - Fixes ResetBackColor          
5865         
5866 2005-09-28  Jackson Harper  <jackson@ximian.com>
5867
5868         * MdiChildContext.cs: Obey rules for fixed sized windows (no
5869         sizing or cursor changes). Also added some temp code to draw the
5870         titlebars text (Makes dev a little easier).
5871
5872 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5873
5874         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5875
5876 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5877          
5878         * ListBox.cs: Fixes bug 76253
5879
5880 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5881
5882         * ImageList.cs: Added comments about the current implementation. Added
5883           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5884           Format32bppArgb to preserve transparency and can use Graphics.FromImage
5885           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5886           with Bitmap.LockBits for better performance. Revised the whole file to
5887           match MS.NET behaviour and provide better performance. Non-public
5888           interface members are calling public members even when they throw
5889           NotSupportedException for better maintainability. Moved ColorDepth,
5890           ImageSize, ImageStream and TransparentColor implementations to
5891           ImageCollection for better performance as these properties are not used
5892           by ImageList.
5893         * ImageListStreamer.cs: Added a new internal constructor that takes an
5894           ImageList.ImageCollection and serializes Images based on
5895           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5896           match ImageList property name.
5897
5898 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
5899
5900         * ListBox.cs: Fixes IndexFromPoint for last item
5901
5902 2005-09-27  Jackson Harper  <jackson@ximian.com>
5903
5904         * Form.cs: Set the position of new mdi children correctly.
5905
5906 2005-09-27  Jackson Harper  <jackson@ximian.com>
5907
5908         * MdiClient.cs: New mdi children need to be added to the back of
5909         the controls collection so the zorder is set correctly. Also add a
5910         count of all the child windows that have been created.
5911
5912 2005-09-27  Jackson Harper  <jackson@ximian.com>
5913
5914         * Form.cs (CreateParams): Setup MDI forms correctly.
5915
5916 2005-09-27  Jackson Harper  <jackson@ximian.com>
5917
5918         * MdiChildContext.cs:
5919         * MonthCalendar.cs:
5920         * UpDownBase.cs:
5921         * ListBox.cs:
5922         * ListView.cs:
5923         * TextBoxBase.cs:
5924         * TreeView.cs:
5925         * ScrollableControl.cs:
5926         * ComboBox.cs: Add implicit controls using the new implict control
5927         functionality in ControlCollection. Also try to block multiple
5928         control add in a suspend/resume layout to save some cycles.
5929         
5930 2005-09-27  Jackson Harper  <jackson@ximian.com>
5931
5932         * Control.cs: Add functionality to the controls collection to add
5933         'implicit controls' these are controls that are created by the
5934         containing control but should not be exposed to the user. Such as
5935         scrollbars in the treeview.
5936         * Form.cs: The list var of the ControlsCollection is no longer
5937         available because of the potential of implicit controls getting
5938         ignored by someone accessing the list directly.
5939
5940 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
5941
5942         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5943           loose it's parent. (Fixed bug introduced in r49103 when we added
5944           setting the child parent to null on Remove)
5945
5946 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
5947
5948         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5949         * Splitter.cs: Added missing attributes for BorderStyle property.
5950         * TextBoxBase.cs: Marked Calculate* methods internal.
5951         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5952         MS.NET.
5953
5954 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
5955          
5956         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5957
5958 2005-09-25  Jackson Harper  <jackson@ximian.com>
5959
5960         * TreeView.cs: Update the node bounds correctly regardless of
5961         whether the node is visible.
5962
5963 2005-09-25  Jackson Harper  <jackson@ximian.com>
5964
5965         * ImageList.cs: Don't dispose the image after it is added to the
5966         image list. Only reformat images that need to be resized.
5967
5968 2005-09-25  Jackson Harper  <jackson@ximian.com>
5969
5970         * ImageList.cs: Don't set the format when changing the image.
5971
5972 2005-09-25  Jackson Harper  <jackson@ximian.com>
5973
5974         * TreeView.cs: We can't just assume the node has a font. Use the
5975         treeviews font if no node font is available.
5976
5977 2005-09-25  Jackson Harper  <jackson@ximian.com>
5978
5979         * TreeView.cs: Allow the scrollbars to be reset with negative
5980         values.
5981         - Don't add scrollbars to negative sized windows.
5982
5983 2005-09-23  Jackson Harper  <jackson@ximian.com>
5984
5985         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5986         old Mono.Posix. Also remove some stray code that shouldn't have
5987         been committed.
5988
5989 2005-09-23  Jackson Harper  <jackson@ximian.com>
5990
5991         * TreeView.cs: Attempt at proper sizing of the horizontal
5992         scrollbar. Also don't resize the scrollbars unless they are
5993         visible.
5994
5995 2005-09-23  Jackson Harper  <jackson@ximian.com>
5996
5997         * TreeView.cs: We don't need to expand the invalid area when the
5998         selection changes, as this is all drawn in the node's bounding
5999         box. The area needs to be expanded (previous typo was contracting
6000         it) when the focus rect moves.
6001
6002 2005-09-23  Jackson Harper  <jackson@ximian.com>
6003
6004         * TreeView.cs: Display the selection box under the correct
6005         circumstances. We were rendering white text with no selection box
6006         before.
6007
6008 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6009
6010         * TextControl.cs(Split): Now updates selection start/end if it points 
6011           into a line that's being split. Fixes a FIXME and bug #75258
6012
6013 2005-09-23  Jackson Harper  <jackson@ximian.com>
6014
6015         * Binding.cs:
6016         * ListControl.cs: Don't use the path when retrieving binding
6017         managers from the binding context. My bat sense tells me that the
6018         path is only used on insertion.
6019
6020 2005-09-22  Jackson Harper  <jackson@ximian.com>
6021
6022         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6023
6024 2005-09-22  Jackson Harper  <jackson@ximian.com>
6025
6026         * Splitter.cs: There are special cursors used for splitting.
6027         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6028
6029 2005-09-22  Jackson Harper  <jackson@ximian.com>
6030
6031         * Splitter.cs: Change the cursor appropriately when the splitter
6032         is moused over, so the user actually knows there is a splitter
6033         there.
6034
6035 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6036
6037        * Label.cs : Fix ToString method to give same output as MS.NET
6038
6039 2005-09-22  Jackson Harper  <jackson@ximian.com>
6040
6041         * TreeView.cs: Create the scrollbars when the handle is created
6042         and add them right away, just make them invisble. Also account for
6043         the window being shrunk vertically to the point that the vert
6044         scrollbar needs to be added.
6045         - Remove some 0.5 adjustments to get around anti aliasing issues.
6046         
6047 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6048          
6049         * MainMenu.cs: Fixes default value
6050         * MenuItem.cs: Fixes default value
6051
6052 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6053
6054         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6055
6056 2005-09-21  Jackson Harper  <jackson@ximian.com>
6057
6058         * Control.cs: Don't try to set the border style on the window if
6059         it hasn't been created. When the window is created the border
6060         style will be used.
6061
6062 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6063
6064         * Control.cs (Update): Don't call XplatUI if we don't have a
6065           window handle yet
6066
6067 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6068
6069         * ContainerControl.cs: Instead of throwing an exception, print
6070           a one-time warning about Validate not being implemented
6071         * XplatUIWin32.cs: Removed debug output
6072
6073 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6074
6075         * Control.cs: Only set XplatUI background if we expect the windowing
6076           system to handle the background. This stops controls that draw their
6077           own background from flickering
6078
6079         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6080           creation. This allows, amongst other things, using MWF X11 windows 
6081           with OpenGL.
6082
6083 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6084
6085         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6086           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6087           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6088           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6089           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6090           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6091           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6092           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6093           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6094           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6095           GridColumnStylesCollection.cs, 
6096           IDataGridColumnStyleEditingNotificationService.cs,
6097           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6098           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6099           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6100           TreeNodeCollection.cs, AmbientProperties.cs, 
6101           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6102           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6103           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6104           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6105           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6106           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6107           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6108           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6109           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6110           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6111           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6112           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6113           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6114           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6115           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6116           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6117           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6118           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6119           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6120           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6121           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6122           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6123           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6124           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6125           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6126           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6127           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6128           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6129           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6130           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6131           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6132           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6133           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6134           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6135           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6136           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6137           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6138
6139 2005-09-21  Jackson Harper  <jackson@ximian.com>
6140
6141         * TreeNode.cs: Call Before/After Expand not Collapse when
6142         expanding.
6143
6144 2005-09-20  Jackson Harper  <jackson@ximian.com>
6145         
6146         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6147
6148 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6149          
6150         * ListViewItem.cs:
6151                 - Fixes bug 76120
6152                 - Fixes proper storing of subitems
6153                 - Fixes not updated items
6154
6155 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6156
6157         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6158           things if our window handle isn't created yet. Also disabled 
6159           debug for TextBoxBase
6160
6161 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6162
6163         * MenuAPI.cs: Remove filtering of events to allow menu usage
6164
6165 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6166
6167         * Cursor.cs: Allow null to be passed to Cursor.Current.
6168
6169 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6170
6171         * ThemeWin32Classic.cs:
6172           - Change some private methods/fields to protected virtual so that 
6173             they can be accessed and overriden in derived classes
6174           - First refactoring of some methods. Derived themes now don't 
6175             need to duplicate the complete code from ThemeWin32Classic
6176         * ThemeNice.cs:
6177           - Added nice StatusBar
6178           - Derive from ThemeWin32Classic and not Theme
6179           - Removed duplicate ThemeWin32Classic code
6180
6181 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6182
6183         * Control.cs (ControlCollection.Add): If the value null is passed
6184         the control is ignored. 
6185
6186         Optimize this loop.
6187
6188 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6189
6190         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6191           PostQuitMessage state.
6192         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6193
6194 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6195
6196         * Application.cs: Our constructor will never get called, move 
6197           initialization to fields; fixes bug #75933
6198
6199 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6200
6201         * FileDialog.cs :
6202                 - Allow files to be selected properly using file name
6203                 combo box.
6204                 - Add ability to change diretory (absolute / relative)
6205                 using file name combo box.
6206
6207 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6208          
6209         * ListBox.cs: 
6210                 - Fixes Multicolumn listboxes item wrong calculations
6211                 - Allows to click when only one item is in the listbox
6212                 - Fixes crash when no items using keyboard navigation
6213
6214 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6215
6216         * ComboBox.cs: Reverted almost everything from the latest patch which
6217           broke ComboBox
6218
6219 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6220         
6221         * ToolTip.cs:
6222                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6223         * ComboBox.cs:
6224                 - When DropDownStyle is Simple, it does not show scrollbar 
6225                 to the last item of the list.
6226                 - When DropDownStyle is Simple, it crashed when the list was 
6227                 scrolled down with the down cursor key.
6228                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6229                 selected item was not shown.
6230                 - The position of the selected item was not preserved when 
6231                 the next dropdown happened.
6232         * ThemeWin32Classic.cs:
6233                 - Items were wrapped at the right end.
6234         * CheckedListBox.cs:
6235                 - Fixed Add method
6236         * ListBox.cs:
6237                 - Items should be fully shown.
6238                 - When resizing and vertical scrollbar disappeared, the item 
6239                 of index 0 should be on the top of the list.
6240                 - GetItemRectangle should consider the size of ver. scrollbar
6241         * StatusBar.cs:
6242                 - SizingGrip area should not be allocated when it is not 
6243                 displayed.
6244                 - Now it reflects MinWidth of the containing panel and 
6245                 fixed a crash that happens when its width becomes so small.
6246
6247 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6248
6249         * CheckedListBox.cs: Fixes bug 76028
6250         * ListBox.cs: Fixes bug 76028
6251
6252 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6253
6254         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6255         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6256
6257 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6258
6259         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6260
6261 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6262
6263         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6264
6265 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6266
6267         * IRootGridEntry.cs: Added
6268         * PropertyGridCommands.cs: Added
6269         * PropertiesTab.cs: Added missing methods and property
6270         * PropertyGridView.cs: Made class internal
6271         * PropertyGridTextBox.cs: Made class internal
6272
6273 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6274
6275         * MimeIcon.cs: Try to check some other environment variables
6276           if "DESKTOP_SESSION" returns "default"
6277
6278 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6279
6280         * ThemeNice.cs: Corrected background colors (e.g. menus)
6281         * ColorDialog.cs: Use correct background colors for controls
6282
6283 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6284
6285         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6286
6287 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6288
6289         * RichTextBox.cs: Added initial implementation
6290         * lang.cs: Removed. Was accidentally checked in long time ago
6291         * TODO: Removed. Contents were obsolete
6292
6293 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6294                                                                                 
6295         * PropertiesTab.cs : Added
6296
6297 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6298                                                                                 
6299         * PropertyGrid.cs : Update
6300         * PropertyGridView.cs : Update
6301         * System.Windows.Forms.resx : Added images and strings
6302
6303 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6304
6305         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6306  
6307 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6308
6309         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6310           a busy loop right after the Ungrab the X11 display is otherwise 
6311           blocked
6312
6313 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6314
6315         * ThemeWin32Classic.cs: Optimise the use of clipping
6316
6317 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6318
6319         * DataGrid.cs: fixes recursion bug
6320
6321 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6322
6323         * ThemeNice.cs: 
6324           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6325           - Cleanup
6326
6327 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6328
6329         * ThemeNice.cs: Draw nice ProgressBars
6330
6331 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6332
6333         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6334
6335         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6336         bug finder.
6337
6338 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6339
6340         * ThemeNice.cs:
6341           - Added nicer menu drawing
6342           - Updated DrawTab
6343           - some refactoring
6344
6345 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6346
6347         * CreateParams.cs (ToString): Made output match MS
6348         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6349             handle is already created (to avoid forcing window creation)
6350         * XplatUIX11.cs: Set window text to caption after creating window,
6351           in case Text was set before window was created
6352         * Form.cs: Use this.Text instead of a static string as caption
6353
6354 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6355
6356         * NotifyIcon.cs: Don't set the window to visible; this screws
6357           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6358           OnPaint without a bitmap)
6359         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6360           happen very often anyway; we could add the check to the WM_PAINT 
6361           event generation code
6362
6363 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6364
6365         * NotifyIcon.cs: Fill the icon area with a background color, to 
6366           avoid 'residue' when transparent icons are drawn
6367         * XplatUIX11.cs:
6368           - Handle whole_window == client_window when destroying windows
6369           - SystrayAdd(): Set client_window to whole_window value to
6370             get mouse and other events passed to NotifyIcon
6371
6372 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6373
6374         * Form.cs: Set proper default for Opacity property
6375         * NotifyIcon.cs:
6376           - ShowSystray(): Don't bother creating telling the OS
6377             about the systray item if no icon is provided
6378           - Now handles WM_NCPAINT message to deal with whole/client window
6379             split
6380           - Create window as visible to not get caught by Expose optimization
6381         * Hwnd.cs: Removed debug message
6382         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6383           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6384             PaintEventStart/End to use new client argument
6385         * TextBoxBase.cs:
6386           - Commented out debug messages
6387           - Switched PaintEventStart/End to use new client argument
6388         * XplatUI.cs: Added client window bool to PaintEventStart()/
6389           PaintEventEnd() calls, to support drawing in non-client areas
6390         * XplatUIDriver.cs: 
6391           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6392             calls, to support drawing in non-client areas
6393           - Added conditional compile to allow using MWF BeginInvoke 
6394             on MS runtime
6395         * XplatUIX11.cs:
6396           - Added some conditional debug output
6397           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6398             whole/client window split
6399           - Implemented handling of client argument to PaintEventStart()/End()
6400         * Control.cs:
6401           - Throw exception if BeginInvoke() is called and the window handle
6402             or one of the window's parent handles is not created
6403           - Added conditional compile to allow using MWF BeginInvoke on
6404             MS runtime
6405           - get_Parent(): Only sets parent if handle is created. This avoids
6406             forcing window handle creation when parent is set.
6407           - Now fires Layout and Parent changed events in proper order
6408           - Switched to use Handle instead of window.Handle for Z-Order setting,
6409             the get_Parent() patch above causes us to possibly get null for 'window'
6410           - Implemented handling of client argument to PaintEventStart()/End()
6411           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6412             default handling)
6413           - Now sends a Refresh() to all child windows when Refresh() is called
6414
6415 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6416
6417         * Form.cs: Added (non-functional) Opacity property
6418         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6419
6420 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6421         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6422           use export MONO_THEME=nice to activate it.
6423           Currently supported controls:
6424           - Button
6425           - ComboBox
6426           - ScrollBar
6427           - TabControl (TabAlignment.Top only, other will follow)
6428         * ThemeEngine.cs: Add theme nice
6429         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6430           if enabled
6431
6432 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6433
6434         * Splitter.cs: Resize docked control and its neighbor.
6435
6436 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6437         -- Making Windows with Menus layout correctly --
6438         * Form.cs : The first leg of the fix
6439                 Menu setter - adjust Client Size as needed to make space for the menu
6440                 SetClientSizeCore - doesn't call base version to be able to pass the 
6441                         menu handle to XplatUI.CalculateWindowRect
6442         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6443         * XplatUIX11.cs: The critical second leg of the fix
6444                 GetWindowPos needs to use a recalculated client_rect
6445                 so that resizing the window doesn't break layout of child controls. 
6446                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6447                 Lots of \t\n killed
6448
6449 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6450
6451         * Label.cs: Now properly recalculates width and height on Font and Text
6452           changes if AutoSize is set
6453
6454 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6455         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6456
6457 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6458
6459         * ImageList.cs: Makes ToString method compatible with MS
6460
6461 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6462
6463         * MenuAPI.cs: fixes bug 75716
6464
6465 2005-08-11 Umadevi S <sumadevi@novell.com>
6466         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6467
6468 2005-08-11 Umadevi S <sumadevi@novell.com>
6469         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6470
6471 2005-08-10  Umadevi S <sumadevi@novell.com>
6472         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6473
6474 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6475
6476         * Menu.cs: fixes bug 75700
6477         * MenuAPI.cs: fixes navigation issues
6478
6479 2005-08-09  Umadevi S <sumadevi@novell.com>
6480         * CheckedListBox.cs - simple fix for GetItemChecked.
6481
6482 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6483
6484         * ComboBox.cs: Serveral fixes
6485         * ListBox.cs: Serveral fixes
6486
6487 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6488
6489         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6490         * ListBox.cs: Fixes FindString methods
6491
6492 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6493
6494         * DataGrid.cs: fixes bugs exposed by new tests
6495
6496 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6497
6498         * Mime.cs: Compile Mono assembly references only if compiling
6499           with Mono (Allows to build with VS.Net again)
6500
6501 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6502
6503         * Control.cs (PaintControlBackground): Draw background image
6504         corrrectly.
6505         (CheckForIllegalCrossThreadCalls): Stubbed.
6506         
6507         * Form.cs (OnCreateControl): Center when should be centered.
6508         
6509         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6510
6511 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6512
6513         * Binding.cs: Binding to properties should be case unsensitive
6514
6515 2005-07-18 vlindos@nucleusys.com
6516
6517         * DataGrid.cs: fixes setmember order
6518
6519 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6520
6521         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6522         * FileDialog.cs: FileDialog is now resizable and uses the new
6523           MimeIconEngine
6524
6525 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6526
6527         * DataGridTextBoxColumn.cs: default value
6528         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6529         * GridTableStylesCollection.cs: fixes checking MappingName
6530         * DataGridDrawingLogic.cs: fixes drawing logic issues
6531         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6532         * DataGrid.cs: fixes    
6533
6534 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6535
6536         * MimeGenerated.cs: Use case sensitive comparer for
6537           NameValueCollections
6538
6539 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6540
6541         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6542         * ThemeWin32Classic.cs: bug fixes, code refactoring
6543         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6544         * DataGrid.cs: bug fixes, code refactoring
6545         * DataGridTextBox.cs: bug fixes, code refactoring
6546         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6547         * Theme.cs:  bug fixes, code refactoring
6548
6549 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6550
6551         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6552           and other text box usage
6553
6554 2005-07-01  Jackson Harper  <jackson@ximian.com>
6555
6556         * TabControl.cs: Make sure the bottom of the tab covers the pages
6557         border.
6558
6559 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6560
6561         * Form.cs (ShowDialog): Assign owner of the dialog
6562         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6563           might have been moved to a tag with different height
6564
6565 2005-06-30  Jackson Harper  <jackson@ximian.com>
6566
6567         * Form.cs: Don't create an infinite loop when setting focus
6568         * MenuItem.cs: Don't dirty the parents if we don't have any
6569
6570 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6571
6572         * LibSupport.cs: Rename
6573
6574 2005-06-29  Peter Bartok  <pbartok@novell.com>
6575
6576         * TextBoxBase.cs: Re-align caret after deleting a character
6577         * TextControl.cs:
6578           - DeleteChars(): Ensure that tag covers the provided position
6579           - StreamLine(): Drop reference for dropped tag
6580
6581 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6582
6583         * TextControl.cs: 
6584           - Selections now work properly, anchoring at the initial location
6585             and properly extending in either direction (SetSelectionToCaret(),
6586             SetSelectionStart() and SetSelectionEnd())
6587           - No longer redraws the whole control on selection change, now
6588             calculates delta between previous and new selection and only
6589             invalidates/redraws that area
6590           - Fixed FindPos() math off-by-one errors
6591           - Changed DeleteChars() to verify the provided tag covers the
6592             provided position, selections may have a tag that doesn't cover
6593             the position if the selection is at a tag border
6594           - Fixed off-by-one errors in DeleteChars()
6595           - Added missing streamlining check in DeleteChars() to remove
6596             zero-length tags
6597           - Implemented Invalidate() method, now properly calculates exposures
6598             between two given lines/positions
6599           - Implemented SetSelection()
6600           - Obsoleted and removed FixupSelection()
6601           - Improved RecalculateDocument() logic, removing code duplication
6602
6603 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6604
6605         * LibSupport.cs: changes to match different input/output arguments.
6606
6607 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6608
6609         * LibSupport.cs: added libsupport.so init routine.
6610
6611 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6612         
6613         * ControlBindingsCollection.cs
6614                 - Throws an exception on null datasource when adding
6615                 - Checks for duplicated bindings when adding
6616
6617 2005-06-28  Jackson Harper  <jackson@ximian.com>
6618
6619         * TreeView.cs (OnKeyDown): Support left and right properly
6620         (navigates as well as expanding and collapsing.
6621         - Add support for Multiply, this expands all the selected nodes
6622         children.
6623         - Fix some tabbing.
6624
6625 2005-06-28  Jackson Harper  <jackson@ximian.com>
6626
6627         * TreeView.cs: Implement keyboard navigation, currently supports,
6628         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6629         support for toggling checkboxes with the space bar.
6630
6631 2005-06-28  Jackson Harper  <jackson@ximian.com>
6632
6633         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6634         tree.
6635
6636 2005-06-28  Jackson Harper  <jackson@ximian.com>
6637
6638         * TreeView.cs: Add missing event.
6639
6640 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6641
6642         * TextControl.cs:
6643           - Made line ending size configurable (now allows for counting 
6644             lineendings as \n or \r\n)
6645           - Added margin to viewport to keep caret visible on right side
6646           - Fixed translation routines for line/pos to documentpos to consider
6647             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6648           - Fixed some line-endings to be unix style
6649           - Fixed Document.FormatText to perform it's calculations 1-based
6650           - Added descriptions for a few methods that might otherwise get 
6651             used wrong
6652           - Added NOTE section with some basic conventions to remember at 
6653             the top of the file
6654           - Major fixup for RichTextBox selection drawing:
6655             * Fixed crashes when multiple tags on a single line were selected
6656             * fixed selection box drawing not overlaying text
6657             * fixed bogus offset calculation for tags not starting at index 1
6658             * Switched behaviour from using multiple Substrings of a 
6659               StringBuilder.ToString() to using multiple 
6660               StringBuilder.ToString(start, length) statements, hoping this is
6661               faster (kept original version commented out in the code, in case
6662               original version was faster)
6663         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6664           alignment != Left
6665         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6666           call it as well
6667
6668 2005-06-27  Jackson Harper  <jackson@ximian.com>
6669
6670         * TabControl.cs: Move to the left and right with the arrow
6671         keys. These keys don't cycle beyond first and last like
6672         tab. Refresh all the tabs when scrolling them to the left or
6673         right.
6674
6675 2005-06-27  Jackson Harper  <jackson@ximian.com>
6676
6677         * TabControl.cs:
6678           - ToString: Added method
6679           - CreateParams: Remove TODO and comment
6680           - OnKeyDown: Cycle through bounds properly.
6681           - SelectedIndex: Scroll to the right or left if we need to
6682           display the newly selected tab.
6683
6684 2005-06-23  Jackson Harper  <jackson@ximian.com>
6685
6686         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6687         set.
6688
6689 2005-06-23  Jackson Harper  <jackson@ximian.com>
6690
6691         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6692         CTRL-SHIFT-TAB, and HOME, END are there any others?
6693
6694 2005-06-23  Jackson Harper  <jackson@ximian.com>
6695
6696         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6697
6698 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6699         
6700         * DataGridTextBoxColumn.cs: fixes and enhancements
6701         * ThemeWin32Classic.cs: fixes and enhancements
6702         * DataGridBoolColumn.cs:  fixes and enhancements
6703         * DataGridDrawingLogic.cs:  fixes and enhancements
6704         * CurrencyManager.cs: fixes and enhancements
6705         * DataGrid.cs: fixes and enhancements
6706         * DataGridColumnStyle.cs:  fixes and enhancements
6707
6708 2005-06-22  Jackson Harper  <jackson@ximian.com>
6709
6710         * TabControl.cs: Add some missing methods that just call into the
6711         base. Make the TabPageCollection's IList interface behave in the
6712         same manner as the MS implementation.
6713
6714 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6715
6716         * TextControl.cs: Added sanity check
6717         * TextBoxBase.cs: 
6718           - Fixed wrapping behaviour, don't set wrap on single line controls
6719             (this fixes the breakage of colordialog introduced in an earlier
6720              checkin)
6721           - Added rudimentary support for autoscrolling right-aligned controls
6722             (still needs fixing, also, center alignment scroll is missing)
6723
6724 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6725         
6726         * ScrollBar.cs: Fixes thumbpos on Maximum values
6727
6728 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6729         
6730         * PropertyGridView.cs: Pass context information to UITypeEditors 
6731
6732 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6733
6734         * TextBoxBase.cs:
6735           - Now calling PositionCaret with absolute space coordinates
6736           - Enabled vertical scrolling
6737           - Better tracking of scrollbar changes, tied into WidthChange
6738             event
6739           - Improved cursor tracking
6740           - Removed debug output
6741         * TextControl.cs:
6742           - PositionCaret coordinates are now works in absolute space, not 
6743             the canvas
6744           - Improved tracking of document size
6745           - Added events for width and height changes
6746
6747 2005-06-21  Peter Bartok  <pbartok@novell.com>
6748
6749         * Form.cs: Set focus to active control when form is activated
6750         * TextControl.cs: 
6751           - Added word-wrap functionality to RecalculateLine() 
6752           - Added some short function descriptions for VS.Net to aid in
6753             writing dependent controls
6754           - Added Caret property, returning the current coords of the caret
6755           - Added ViewPortWidth and ViewPortHeight properties
6756           - Added Wrap property
6757           - Added CaretMoved event
6758           - Removed some old debug code
6759           - Split() can now create soft splits
6760           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6761           - Added method to format existing text
6762           - Fixed size/alignment calculations to use viewport
6763           - RecalculateDocument now can handle changing line-numbers while
6764             calculating lines
6765
6766         * TextBox.cs:
6767           - Added some wrap logic, we don't wrap if alignment is not left
6768           - Added casts for scrollbar var, base class switched types to
6769             also support RichTextBoxA
6770           - Implemented handling of scrollbar visibility flags
6771
6772         * TextBoxBase.cs:
6773           - Switched scrollbars type to RichTextBoxScrollBars to support
6774             RichTextBox
6775           - Added tracking of canvas width/height
6776           - Switched scrollbars to be not selectable (to keep focus on text)
6777           - Added central CalculateDocument() method to handle all redraw
6778             requirements
6779           - Added ReadOnly support
6780           - Added WordWrap support
6781           - Fixed handling of Enter key (we now treat it as a DialogKey)
6782           - Fixed caret positioning when h or v scroll is not zero
6783           - Fixed placing/generation of vertical scrollbar
6784           - Added CalculateScrollBars() method to allow updating scrollbar
6785             limits and visibility
6786           - Fixed handling of horizontal scroll
6787           - Added handling of vertical scroll
6788           - Implemented auto-'jump' when caret moves to close to a left or
6789             right border and there is text to be scrolled into view (currently
6790             there's the potential for a stack overflow, until a bug in
6791             scrollbar is fixed)
6792
6793 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
6794         
6795         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6796
6797 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
6798
6799         * Mime.cs:
6800         - added inodes.
6801         - return application/x-zerosize for files with size zero
6802           (if no extension pattern matches).
6803         - check matches collection for strings too.
6804         - return only the first mime type if the name value
6805           collection has more than one mime type.
6806
6807 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
6808         
6809         * PropertyGrid.cs: Cleaned up some TODOs
6810         * PropertyGridView.cs: Added support for UITypeEditors
6811
6812 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6813         
6814         * DataGrid.cs: clears cached value
6815
6816 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6817
6818         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6819         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6820         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6821         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6822         
6823 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
6824
6825         * ThemeWin32Classic.cs: fixes colour
6826
6827 2005-06-15  Peter Bartok  <pbartok@novell.com>
6828
6829         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6830         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6831         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6832         * Control.cs: Added some MWFCategory and MWFDescription attributes
6833         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6834
6835 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
6836
6837         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6838         usage
6839
6840 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
6841
6842         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6843         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6844         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6845         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6846         * DataGrid.cs: default datagrid settings for Default Styles, fixes
6847         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6848
6849 2005-06-13  Jackson Harper  <jackson@ximian.com>
6850
6851         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6852         isn't printed when the user enables dropping. (X11 does accept
6853         drops).
6854         
6855 2005-06-13  Jackson Harper  <jackson@ximian.com>
6856
6857         * TreeView.cs: Remove some TODOS.
6858
6859 2005-06-13  Jackson Harper  <jackson@ximian.com>
6860
6861         * Form.cs: Hook into the mdi framework.
6862         * MdiClient.cs: Use the base control collections add method so
6863         parents get setup correctly. Set the default back colour and dock
6864         style.
6865         * MdiChildContext.cs: New class, this bad actor handles an
6866         instance of an MDI window. Right now there is only basic
6867         support. You can drag, close, and resize windows. Minimize and
6868         Maximize are partially implemented.
6869
6870 2005-06-13  Jackson Harper  <jackson@ximian.com>
6871
6872         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6873         freaky when both vals are negative. NOTE: There are probably other
6874         places in XplatUIX11 that this needs to be done.
6875
6876 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
6877
6878         * DataGrid.cs: implement missing methods, move KeyboardNavigation
6879         * DataGridColumnStyle.cs: fixes signature
6880
6881 2005-06-12  Jackson Harper  <jackson@ximian.com>
6882
6883         * XplatUIX11.cs: Use sizing cursors similar to the ones on
6884         windows.
6885
6886 2005-06-11  Jackson Harper  <jackson@ximian.com>
6887
6888         * StatusBarPanel.cs: Signature cleanups. Implement
6889         BeginInit/EndInit.
6890
6891 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
6892
6893         * DataGridTextBoxColumn.cs: Honors aligment
6894         * GridColumnStylesCollection.cs: Contains is case unsensitive
6895         * GridTableStylesCollection.cs: several fixes
6896         * DataGridTableStyle.cs: default column creation
6897         * DataGridDrawingLogic.cs: fixes
6898         * CurrencyManager.cs: ListName property
6899         * DataGrid.cs: multiple styles support
6900         * DataGridColumnStyle.cs: fixes
6901         
6902
6903 2005-06-10  Peter Bartok  <pbartok@novell.com>
6904
6905         * Control.cs(Select): Moved SetFocus call to avoid potential
6906           loops if controls change the active control when getting focus
6907         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6908           the up/down buttons
6909
6910 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
6911
6912         * ImageListConverter.cs: Implemented
6913
6914 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6915
6916         * MonthCalendar.cs: Wired in NumericUpDown control for year
6917
6918 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6919
6920         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6921           DoubleClick events, since they are not meant to be fired.
6922
6923 2005-06-09  Peter Bartok  <pbartok@novell.com>
6924
6925         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6926           Jonathan's standalone controls into MWF, implemented missing
6927           events, attributes and methods; added xxxAccessible classes
6928         * AccessibleObject.cs: Made fields internal so other classes
6929           can change them if needed
6930
6931 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
6932
6933         * UpDownBase.cs: Complete implementation
6934         * NumericUpDown.cs: Complete implementation
6935         * DomainUpDown.cs: Complete implementation
6936
6937 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
6938
6939         * DataGridTextBoxColumn.cs: drawing fixes
6940         * DataGridCell.cs: fixes ToString method to match MSNet
6941         * DataGridTableStyle.cs: fixes
6942         * DataGridBoolColumn.cs: fixes, drawing
6943         * DataGridDrawingLogic.cs: fixes, new methods
6944         * DataGridTextBox.cs: Keyboard and fixes
6945         * DataGrid.cs:
6946                 - Keyboard navigation
6947                 - Scrolling fixes
6948                 - Row selection (single, multiple, deletion, etc)
6949                 - Lots of fixes
6950         
6951 2005-06-07  Jackson Harper  <jackson@ximian.com>
6952
6953         * ThemeWin32Classic.cs: Clear the background area when drawing
6954         buttons.
6955
6956 2005-06-06  Peter Bartok  <pbartok@novell.com>
6957
6958         * ImageListStreamer.cs: Fixed signature for GetData
6959         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6960         * ComboBox.cs:
6961           - Added missing ChildAccessibleObject class
6962           - Added missing OnXXXFocus overrides, switched to using those
6963             instead of the event handler
6964         * Control.cs:
6965           - Added Parent property for ControlAccessibleObject
6966           - Fixed signatures
6967           - Fixed attributes
6968           - Added ResetBindings()
6969         * ListBindingConverter.cs: Implemented some methods
6970         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6971         * ImageList.cs: Implemented basic handle scheme, removed TODOs
6972         * ContainerControl.cs: Fixed signature, now subscribing to the
6973           ControlRemoved event instead of overriding the handler, LAMESPEC
6974         * CurrencyManager.cs: Added missing attribute
6975         * MonthCalendar.cs: Added missing properties
6976
6977 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6978
6979         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6980         
6981 2005-06-06  Gaurav Vaish and Ankit Jain
6982
6983         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6984         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6985         
6986 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6987
6988         * Control.cs: fixes CreateParams Width / Height.
6989
6990 2005-06-05  Peter Bartok  <pbartok@novell.com>
6991
6992         * Win32DnD.cs: Removed compilation warnings
6993
6994 2005-06-05  Peter Bartok  <pbartok@novell.com>
6995
6996         * Control.cs (CreateParams): Since we don't know if one of the
6997           properties we use is overridden, lets make sure if we fail accessing
6998           we continue with a backup plan
6999
7000 2005-06-05  Peter Bartok  <pbartok@novell.com>
7001
7002         * Win32DnD.cs:
7003           - Removed debug output
7004           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7005             struct
7006           - Plugged resource leak
7007         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7008           MS size
7009
7010 2005-06-05  Peter Bartok  <pbartok@novell.com>
7011
7012         * XplatUIWin32.cs: Removed DnD code
7013         * Win32DnD.cs: Implemented drop source and drop target functionality
7014
7015 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7016
7017         * UpDownBase.cs: remove duplicate addition of event, enable some code
7018         that was commented out.
7019         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7020         Validate input when a key is pressed. It works fine now for every
7021         combination of Hexadecimal. Only missing some drawing love when sharing
7022         space with other controls.
7023
7024 2005-06-04  Peter Bartok  <pbartok@novell.com>
7025
7026         * Control.cs:
7027           - We need to pass a window for DragDrop, so enable callback events
7028           - Added DnD callback events when being a DragSource
7029         * XplatUI.cs (StartDrag): Added window handle argument
7030         * XplatUIDriver.cs (StartDrag): Added window handle argument
7031         * QueryContinueDragEventArgs: Made fields internally accessible so
7032           drivers can set them
7033         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7034           can set them
7035
7036 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7037
7038         * DataGridTextBoxColumn.cs: column text editing
7039         * DataGridTableStyle.cs: Respect columns styles created by the user
7040         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7041         * DataGridBoolColumn.cs: bool column editing
7042         * DataGrid.cs: fixes to scrolling, properties, etc
7043         * DataGridTextBox.cs: handle keyboard
7044         * DataGridColumnStyle.cs: fixes
7045
7046 2005-06-02  Jackson Harper  <jackson@ximian.com>
7047
7048         * ImageListStreamer.cs: Somewhat broken implementation of
7049         GetObjectData. The RLE needs some work to match MS properly.
7050
7051 2005-06-02  Jackson Harper  <jackson@ximian.com>
7052
7053         * X11Dnd.cs: Attempting to keep at least one file in MWF
7054         monostyled.
7055
7056 2005-06-02  Peter Bartok  <pbartok@novell.com>
7057
7058         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7059           that way
7060
7061 2005-06-02  Peter Bartok  <pbartok@novell.com>
7062
7063         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7064         * XplatUI.cs: Added DoDragDrop() method
7065         * XplatUIDriver.cs: Added DoDragDrop() method
7066
7067 2005-06-02  Jackson Harper  <jackson@ximian.com>
7068
7069         * Splitter.cs: Implement BorderStyle.
7070
7071 2005-06-02  Jackson Harper  <jackson@ximian.com>
7072
7073         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7074         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7075         X11 using XDND.
7076
7077 2005-06-02  Peter Bartok  <pbartok@novell.com>
7078
7079         * DataObject.cs:
7080           - Added Data setter
7081           - Fixed broken insertion code for SetData, now also
7082             overwrites any existing entry of the same format name
7083         * Hwnd.cs: Added list of pointers that automatically gets
7084           freed when the window is disposed
7085         * XplatUI.cs: Call driver initialization method when loading
7086           a driver
7087         * Control.cs:
7088           - OnDragLeave takes EventArgs, not DragEventArgs
7089           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7090             supported
7091           - Forces style update when drop state changes
7092         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7093           not perfect since we cannot (yet) call the IDataObject.GetData()
7094           method, we keep getting 0x80004005 error, dunno why)
7095
7096 2005-06-02  Peter Bartok  <pbartok@novell.com>
7097
7098         * DragEventArgs.cs: Make fields internal so we can cache the
7099           object and re-set the fields from XplatUI
7100
7101 2005-06-02  Jackson Harper  <jackson@ximian.com>
7102
7103         * Control.cs: Add some internal methods so the DnD subsystem can
7104         raise DnD events. Also call into the driver when AllowDrop is set.
7105         * XplatUI.cs:
7106         * XplatUIDriver.cs: New method for setting whether or not a window
7107         is allowed to accept drag and drop messages.
7108                 
7109 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7110         
7111         * ScrollBar.cs: Make sure that values sent in Scroll events
7112         are always between Maximum and Minimum.
7113
7114 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7115
7116         * Menu.cs: Call MenuChanged when menuitem visibility has been
7117         changed.
7118         * MenuItem.cs: Rebuild menu when item is (not) visible.
7119         * MainMenu.cs: MainMenu has special MenuChanged.
7120         * Theme.cs: Caption and FrameBorderSize are not fixed.
7121         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7122         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7123         * XplatUIX11.cs,
7124         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7125         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7126
7127 2005-05-30  Jackson Harper  <jackson@ximian.com>
7128
7129         * DataFormat.cs: We can't statically initialize this stuff because
7130         it calls into the xplatui and could create a loop. So we lazy init
7131         it.
7132
7133 2005-05-28  Jackson Harper  <jackson@ximian.com>
7134
7135         * Control.cs: Proper implementation of Product(Name/Version).
7136
7137 2005-05-27  Jackson Harper  <jackson@ximian.com>
7138
7139         * DataObject.cs: Dont crash if no data is found.
7140
7141 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7142         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7143                 as per status page, guessing it should be set to true
7144
7145 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7146
7147         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7148         * DataGridTableStyle.cs: set proper formatting text, def header text
7149         * ThemeWin32Classic.cs: new themable paramaters
7150         * DataGridBoolColumn.cs: paint check box, get data, fixes
7151         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7152         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7153         * DataGridColumnStyle.cs: fixes
7154         * Theme.cs: new themable paramaters
7155                 
7156 2005-05-26  Peter Bartok  <pbartok@novell.com>
7157
7158         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7159
7160 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7161         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7162
7163 2005-05-24  Peter Bartok  <pbartok@novell.com>
7164
7165         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7166           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7167           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7168           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7169           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7170           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7171           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7172           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7173           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7174           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7175           missing attributes, etc
7176         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7177
7178 2005-05-24  Peter Bartok  <pbartok@novell.com>
7179
7180         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7181           when user tries to get help
7182         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7183           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7184           to suppress warnings
7185         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7186           avoid unreachable code warning
7187
7188 2005-05-20  Peter Bartok  <pbartok@novell.com>
7189
7190         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7191
7192 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7193
7194         * DataGridTextBoxColumn.cs: Basic painting methods
7195         * DataGridTableStyle.cs: Set table style in the column
7196         * ThemeWin32Classic.cs: Use Theme for colors
7197         * DataGridDrawingLogic.cs: Implement more drawing
7198         * DataGrid.cs: drawing, theming, enhacements, fixes
7199         * DataGridColumnStyle.cs: fixes, drawing
7200         * Theme.cs: theming for Datagrid
7201
7202 2005-05-20  Peter Bartok  <pbartok@novell.com>
7203
7204         * Cursor.cs: Implemented GetObjectData() method
7205
7206 2005-05-20  Peter Bartok  <pbartok@novell.com>
7207
7208         * Cursors.cs: Added setting of cursor name
7209         * Cursor.cs:
7210           - Implemented constructors
7211           - Implemented Draw and DrawStretched
7212           - Implemented Current property
7213           - Implemented == and != operators
7214           - Implemented Dispose()
7215           - Implemented ToString
7216           - Added missing attributes
7217         * XplatUIX11.cs:
7218           - Added missing reset for OverrideCursor when DoEvents is called
7219           - Fixed creation of cursor, logic was wrong
7220         * XplatUIWin32.cs:
7221           - Added missing reset for OverrideCursor when DoEvents is called
7222           - Fixed creation of cursor, bit arrays were swapped
7223         * Clipboard.cs: Removed obsolete MonoTODO attribute
7224
7225 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7226
7227         * ComboBox.cs: fixes OnSelectedItemChanged
7228         * ControlBindingsCollection.cs: fixes item range check
7229
7230 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7231
7232         * UpDownBase.cs:
7233                 - Calc preferred height properly
7234                 - Implement missing properties
7235                 
7236         * NumericUpDown.cs: Implement missing events
7237
7238 2005-05-19  Jackson Harper  <jackson@ximian.com>
7239
7240         * TabControl.cs: New method that resizes the tab pages before
7241         redrawing them. This as needed as the control is double buffered
7242         and sizing will not be recalculated unless ResizeTabPages is
7243         called.
7244         * TabPage.cs: Set base.Text instead of Text in the constructor so
7245         that UpdateOwner does not get called. Use the new Redraw method of
7246         TabControl instead of Refresh so the sizing is recalculated.
7247         * ThemeWin32Classic.cs: Draw the text for button tabs.
7248
7249 2005-05-19  Jackson Harper  <jackson@ximian.com>
7250
7251         * Control.cs: Paint control background images. Fix typo where
7252         PaintControlBackground was not getting called correctly.
7253
7254 2005-05-19  Peter Bartok  <pbartok@novell.com>
7255
7256         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7257           I can investigate, apparently I broke FileDialog
7258
7259 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7260
7261         * AxHost.cs: Some simple properties.
7262         * Control.cs: window must be accessible after ctor.
7263         * Form.cs: Added TransparencyKey property.
7264         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7265         * XplatUIWin32.cs: SetBorderStyle implemented.
7266
7267 2005-05-18  Peter Bartok  <pbartok@novell.com>
7268
7269         * DataObject.cs: Entries are not global but particular to the
7270           DataObject, now it behaves that way
7271         * XplatUIWin32.cs: Implemented Clipboard methods
7272         * Clipboard.cs: Implemented
7273         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7274         * XplatUIOSX.cs: Updated to final clipboard prototypes
7275         * XplatUIX11.cs: Implemented Clipboard methods
7276         * XplatUIDriver.cs: Updated to final clipboard prototypes
7277         * XplatUIStructs.cs:
7278           - Added BITMAPINFOHEADER struct
7279           - Added ClipboardFormats enum
7280         * X11Structs.cs:
7281           - Added ClipboardStruct
7282           - Added Atom enum items for clipboard types
7283           - Fixed atom types for Selection event structures
7284         * DataFormats.cs:
7285           - Added internal properties and methods for drivers to enumerate
7286             all known formats
7287           - Switched initialization method to allow drivers to assign their
7288             own IDs even for the MS predefined clipboard IDs
7289         * XplatUI.cs: Updated to final clipboard interface
7290
7291 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7292         * PropertyGridView.cs: Fixed compiler warnings.
7293
7294 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7295         * PropertyGrid.cs: Added some event calls
7296         * PropertyGridView.cs: Change drawing code to use double buffering
7297         * PropertyGridTextBox.cs: Changed Text property name
7298         * GridItem.cs: Added Bounds property.
7299         * GridEntry.cs: Added Bounds property.
7300
7301 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7302
7303         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7304         since GetType() may not return the correct type if the object is
7305         a remoting proxy.
7306
7307 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7308
7309         * TreeNodeCollection.cs: fixes get/set item ranges
7310         
7311 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7312
7313         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7314                 
7315 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7316
7317         * ComboBox.cs: Fix item range comparation
7318         * ListView.cs: Fix item range comparation
7319
7320 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7321
7322         * FontDialog.cs:
7323           - Clear example panel when OnPaint is called
7324           - Better solution for displaying the example panel text
7325           - Select default indexes in the ListBoxes
7326
7327 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7328
7329         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7330
7331 2005-05-11  Peter Bartok  <pbartok@novell.com>
7332
7333         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7334         * SelectionRangeConverter.cs: Implemented
7335         * PropertyGrid.cs: Fixed attribute value
7336         * Control.cs:
7337           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7338           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7339         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7340           that's common to all drivers. First methods to go there are
7341           Sebastien Pouliot's CAS Stack Propagation helper methods
7342         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7343           Sebastien Pouliot for CAS Stack Propagation
7344
7345 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7346
7347         * OSXStructs.cs:
7348           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7349
7350 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7351
7352         * DataGridTextBoxColumn.cs: fixed some members
7353         * GridColumnStylesCollection.cs: indexed column is case insensitive
7354         * DataGridTableStyle.cs: fixes
7355         * ThemeWin32Classic.cs: add new theme parameter
7356         * Theme.cs: add new theme parameter
7357         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7358         * DataGrid.cs: fixes, new internal properties, etc.
7359         * DataGridColumnStyle.cs: allows to set grid value
7360         *
7361
7362 2005-05-10  Peter Bartok  <pbartok@novell.com>
7363
7364         * AccessibleObject.cs:
7365           - Removed MonoTODO attribute on help, method is correct
7366           - Fixed Bounds property
7367         * AxHost.cs: Moved MonoTODO
7368         * ButtonBase.cs: Now setting AccessibleObject properties
7369         * RadioButton.cs: Setting proper AccessibleObject role
7370         * CheckBox.cs: Setting proper AccessibleObject role
7371         * ControlBindingsCollection.cs: Added properties, methods and attributes
7372         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7373           userdefined DataFormats.Format items as well
7374         * ListControl.cs: Removed data_member from the public eye
7375         * OpenFileDialog.cs:
7376           - Made class sealed
7377           - Added missing attributes
7378         * SaveFileDialog.cs: Added missing attributes
7379         * ImageListStreamer.cs: Fixed code that caused warnings
7380         * LinkLabel.cs: Removed unreachable code
7381         * TreeView.cs: Fixed code that caused warnings
7382         * PropertyGridView.cs: Fixed code that caused warnings
7383         * GridColumnStylesCollection.cs: Added missing attributes
7384         * GridTableStylesCollection: Added missing attribute
7385         * PropertyManager: Added .ctor
7386         * SecurityIDType: Added
7387         * DataObject.cs: Implemented class
7388         * LinkArea.cs: Added missing attribute
7389
7390 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7391
7392         * RadioButton.cs: call base method to allow to fire OnClick event
7393         * UpDownBase.cs: OnMouseUp call base method
7394         * CheckedListBox.cs: call base method before returning
7395         * TrackBar.cs: call base method before returning
7396         
7397
7398 2005-05-10  Peter Bartok  <pbartok@novell.com>
7399
7400         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7401           for messages
7402
7403 2005-05-10  Peter Bartok  <pbartok@novell.com>
7404
7405         * DataFormats.cs: Implemented
7406         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7407           XplatUIX11.cs: Added Clipboard APIs
7408         * XplatUIWin32.cs: Implemented Clipboard APIs
7409         * FolderBrowserDialog.cs: Added missing event, attributes
7410
7411 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7412
7413         * CheckBox.cs: call base method to allow to fire OnClick event
7414
7415 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7416
7417         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7418
7419 2005-05-06  Peter Bartok  <pbartok@novell.com>
7420
7421         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7422         * Screen.cs: Implemented
7423         * HelpNavigator.cs: Added
7424         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7425           property
7426         * HelpProvider.cs: Implemented all we can do until we have a CHM
7427           help library (which means that "What's This" does work now)
7428
7429 2005-05-06  Jackson Harper  <jackson@ximian.com>
7430
7431         * XplatUIX11.cs: Fix waking up the main loop.
7432                 
7433 2005-05-05  Peter Bartok  <pbartok@novell.com>
7434
7435         * XplatUI.cs: Updated revision
7436         * Form.cs: Removed enless loop
7437         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7438         * Label.cs (OnPaint): Added call to base.OnPaint()
7439         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7440         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7441         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7442         * AxHost.cs: Added
7443         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7444         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7445           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7446           reuse of ToolTipWindow by other controls
7447         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7448         * XplatUIX11.cs: Now clipping drawing area (experimental)
7449         * PictureBox.cs: Moved base.OnPaint() call to end of method
7450         * Theme.cs: Fixed ToolTip abstracts to match new format
7451         * ErrorProvider.cs: Implemented
7452
7453 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7454
7455         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7456         * LinkLabel.cs:
7457                 - Adds cursors
7458                 - Handles focus
7459                 - Implements LinkBehavior
7460                 - Fixes many issues
7461
7462 2005-05-03  Jackson Harper  <jackson@ximian.com>
7463
7464         * ListView.cs: Calculate the scrollbar positioning on resize and
7465         paint, so they get put in the correct place.
7466
7467 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7468
7469         * ColorDialogs.cs: The small color panels are now handled by
7470           SmallColorControl. This fixes drawing of the focus rectangle
7471           and adds a 3D border.
7472
7473 2005-05-03  Peter Bartok  <pbartok@novell.com>
7474
7475         * Control.cs: Modified version of Jonathan Chamber's fix for
7476           double-buffering
7477
7478 2005-05-03  Jackson Harper  <jackson@ximian.com>
7479
7480         * ListView.cs: Remove redraw variable. Control now handles whether
7481         or not a redraw needs to be done, and will only raise the paint
7482         event if redrawing is needed.
7483
7484 2005-05-03  Jackson Harper  <jackson@ximian.com>
7485
7486         * Splitter.cs: No decorations for the splitter form. Cache the
7487         hatch brush.
7488
7489 2005-05-03  Jackson Harper  <jackson@ximian.com>
7490
7491         * TreeView.cs: Use dashed lines to connect nodes. Use the
7492         ControlPaint method for drawing the focus rect instead of doing
7493         that in treeview.
7494
7495 2005-05-02  Peter Bartok  <pbartok@novell.com>
7496
7497         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7498
7499 2005-04-29  Jackson Harper  <jackson@ximian.com>
7500
7501         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7502         entire image buffer. Just clear the clipping rectangle.
7503
7504 2005-04-29  Jackson Harper  <jackson@ximian.com>
7505
7506         * ThemeWin32Classic.cs: Don't draw list view items that are
7507         outside the clipping rectangle.
7508
7509 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7510
7511         * ListBox.cs: added horizontal item scroll
7512
7513 2005-04-29  Jackson Harper  <jackson@ximian.com>
7514
7515         * ThemeWin32Classic.cs: Remove some old debug code that was
7516         causing flicker with the new double buffering code.
7517
7518 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7519
7520         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7521         behave like combobox and comboboxlist (still not sure if this is
7522         correct though).
7523
7524 2005-04-28  Jackson Harper  <jackson@ximian.com>
7525
7526         * ThemeWin32Classic.cs: Don't fill the middle of progress
7527         bars. This fills areas outside of the clip bounds that don't need
7528         to be filled.
7529
7530 2005-04-28  Jackson Harper  <jackson@ximian.com>
7531
7532         * Control.cs: Don't expose functionality to touch the image buffers.
7533         * ProgressBar.cs:
7534         * ListView.cs: We do not need to (and no longer can) manipulate
7535         the image buffers directly. All of this is handled by Control.
7536
7537 2005-04-28  Peter Bartok  <pbartok@novell.com>
7538
7539         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7540           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7541           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7542
7543 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7544
7545         * Combobox:
7546                 - Adjust control's height for non-simple comboboxes (bug fix)
7547                 - Remove dead code
7548         * MenuAPI.cs: remove unused var
7549         * ScrollBar.cs: remove unsed var
7550                  
7551         * ListBox.cs: unselect items when clearing
7552
7553 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7554
7555         * ListControl.cs: honors OnPositionChanged and default Selected Item
7556         * ListBox.cs: unselect items when clearing
7557
7558 2005-04-27  Jackson Harper  <jackson@ximian.com>
7559
7560         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7561         if a "correct" keyboard is not found. This will make us not crash,
7562         but might give some users bad keyboard layouts...seems to be the
7563         same thing rewind does.
7564
7565 2005-04-27  Jackson Harper  <jackson@ximian.com>
7566
7567         * BindingManagerBase.cs: Attach the current/position changed
7568         handlers to their respective events.
7569
7570 2005-04-27  Jackson Harper  <jackson@ximian.com>
7571
7572         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7573         not just a blit.
7574         * ThemeWin32Classic.cs: Don't fill the background for picture
7575         boxes. This could overright user drawing.
7576         * ComboBox.cs: Just fill the clipping rect not the entire client
7577         rect when drawing the background. This prevents pieces of the
7578         image buffer from getting overwritten and is theoretically faster.
7579
7580 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7581
7582         * ComboBox.cs: Databinding support fixes, fire missing events
7583         * ListControl.cs: implement missing methods and properties, fixes
7584         * ThemeWin32Classic.cs: Databiding support on Drawing
7585         * CheckedListBox.cs: Databinding support fixes, fire missing events
7586         * ListBox.cs: Databinding support fixes, fire missing events
7587         
7588 2005-04-25  Peter Bartok  <pbartok@novell.com>
7589
7590         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7591
7592 2005-04-25  Jackson Harper  <jackson@ximian.com>
7593
7594         * TreeView.cs: Use the horizontal scrollbars height not width when
7595         determining how much of the client area is available.
7596
7597 2005-04-25  Jackson Harper  <jackson@ximian.com>
7598
7599         * Control.cs: Double buffering is handled differently now. As per
7600         the spec, the extra buffer is created in the WM_PAINT message and
7601         passed down to the control's drawing code.
7602         * GroupBox.cs:
7603         * Label.cs:
7604         * CheckBox.cs:
7605         * ProgressBar.cs:
7606         * RadioButton.cs:
7607         * ColorDialog.cs:
7608         * ComboBox.cs:
7609         * PropertyGridView.cs:
7610         * UpDownBase.cs:
7611         * MessageBox.cs:
7612         * MenuAPI.cs:
7613         * ListView.cs:
7614         * ButtonBase.cs:
7615         * SizeGrip.cs:
7616         * ScrollBar.cs:
7617         * ListBox.cs:
7618         * TrackBar.cs:
7619         * ToolBar.cs:
7620         * PictureBox.cs:
7621         * DateTimePicker.cs:
7622         * StatusBar.cs:
7623         * TreeView.cs: Update to new double buffering system.
7624         * MonthCalendar.cs: Uncomment block, as Capture is now
7625         working. Update to new double buffering
7626         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7627         * PaintEventArgs.cs: New internal method allows us to set the
7628         graphics object. This is used for double buffering.
7629         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7630         rectangle. The internal paint_area var has been removed from
7631         StatusBar. The clipping rect should be used instead.
7632         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7633         * TabPage.cs: The RefreshTabs method was removed, so just call the
7634         tab controls Refresh method now.
7635         * TabControl.cs: Update to new double buffering. Make sure the
7636         handle is created before sizing the tab pages, otherwise we will
7637         get stuck in a loop.
7638
7639 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7640
7641         * LinkLabel.cs: Fix typo, bug #74719; patch
7642           from Borja Sanchez Zamorano
7643
7644 2005-04-22  Jackson Harper  <jackson@ximian.com>
7645
7646         * TreeNode.cs: Implement Handle stuff.
7647         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7648
7649 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7650
7651         * DataGridTextBoxColumn.cs: call base constructors, fixes
7652         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7653         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7654         * DataGridTableStyle.cs: implements create default column styles
7655         * DataGridBoolColumn.cs: which types can handle
7656         * DataGrid.cs: missing methods, fixes, new functionality
7657         * DataGridColumnStyle.cs: fixes
7658
7659 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7660         * FolderBrowserDialog.cs:
7661         - Use a thread to fill the TreeView
7662         - Adjusted some sizes
7663
7664 2005-04-19  Peter Bartok  <pbartok@novell.com>
7665
7666         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7667           property. Fixes #74360.
7668
7669 2005-04-19  Jackson Harper  <jackson@ximian.com>
7670
7671         * XEventQueue.cs: Lock when getting the lockqueue size.
7672         * PictureBox.cs: Call base OnPaint
7673         
7674 2005-04-19  Peter Bartok  <pbartok@novell.com>
7675
7676         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7677           messages were no longer being processed (this broke BeginInvoke)
7678
7679           
7680 2005-04-18  Jackson Harper  <jackson@ximian.com>
7681
7682         * TreeView.cs: buglet that caused node images to get drawn
7683         regardless of whether or not they were in the clipping rectangle.
7684
7685 2005-04-18  Jackson Harper  <jackson@ximian.com>
7686
7687         * CurrencyManager.cs: There are four rules for GetItemProperties:
7688         - If the type is an array use the element type of the array
7689         - If the type is a typed list, use the type
7690         - If the list contains an Item property that is not an object, use
7691         that property
7692         - use the first element of the list if there are any elements in
7693         the list.
7694         
7695 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7696
7697         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7698         click. This handles offsets for scrolling properly and reduces
7699         memory. Also fixed GetNode to not offset now that TopNode works
7700         properly.
7701         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7702         
7703 2005-04-17  Jackson Harper  <jackson@ximian.com>
7704
7705         * CursorConverter.cs: Initial implementation.
7706
7707 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7708
7709         * ListControl.cs: work towards complex data binding support on ListControl
7710         * CurrencyManager.cs: work towards complex data binding support on ListControl
7711         * ListBox.cs: work towards complex data binding support on ListControl
7712
7713
7714 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7715
7716         * GridTableStylesCollection.cs: fixes name and constructor
7717         * DataGridTableStyle.cs: fixes
7718         * DataGridBoolColumn.cs: fixes names and constructors
7719         * DataGrid.cs: define methods and properties. Some init implementations
7720         * DataGridCell.cs: define methods and properties. Some init implementations
7721         * GridTablesFactory.cs: Define methods and properties
7722
7723 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7724
7725         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7726         graphics port changes.  We still want the coordinates in global screen
7727         coordinates.
7728
7729 2005-04-14  Jackson Harper  <jackson@ximian.com>
7730
7731         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7732         check plus minus or checkbox clicks unless those features are enabled.
7733
7734 2005-04-14  Jackson Harper  <jackson@ximian.com>
7735
7736         * TreeView.cs: Add methods for setting the top and bottom visible
7737         nodes. TreeNode::EnsureVisible uses these methods.
7738         * TreeNode.cs: Implement EnsureVisible
7739
7740 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7741
7742         * Form.cs: Pospone menu assignation if the window has not been created yet
7743         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7744         size and position
7745
7746 2005-04-12  Jackson Harper  <jackson@ximian.com>
7747
7748         * TreeView.cs: Set the TopNode properly when scrolling
7749         occurs. This has the added benifit of reducing the amount of
7750         walking that needs to be done when drawing. Also removed an old
7751         misleading TODO.
7752         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7753         
7754 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7755
7756         * Timer.cs: fixes interval setting when the timer is already enabled
7757         
7758 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7759
7760         * FolderBrowserDialog.cs: First approach
7761
7762 2005-04-09  Peter Bartok  <pbartok@novell.com>
7763
7764         * FolderBrowserDialog: Added
7765
7766 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7767
7768         * LinkLabel.cs: move drawing code into the theme
7769         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7770         * Theme.cs: define DrawLinkLabel method
7771
7772 2005-04-05  Jackson Harper  <jackson@ximian.com>
7773
7774         * BindingContext.cs: Use weak references so these bad actors don't
7775         stay alive longer then they need to.
7776
7777 2005-04-05  Jackson Harper  <jackson@ximian.com>
7778
7779         * ListControl.cs: Basic implementation of complex databinding.
7780         * ComboBox.cs:
7781         * ListBox.cs: Add calls to ListControl databinding methods.
7782
7783 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
7784
7785         * FileDialog.cs:
7786           - Don't change PopupButtonState to Normal when the
7787             PopupButton gets pressed several times.
7788           - Renamed ButtonPanel to PopupButtonPanel
7789
7790 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
7791
7792         * ColorDialog.cs: Use cached objects instead of creating them
7793         * LinkLabel.cs: Use cached objects instead of creating them
7794         * Splitter.cs: Use cached objects instead of creating them
7795         * FontDialog.cs: Use cached objects instead of creating them
7796         * PropertyGridView.cs: Use cached objects instead of creating them
7797         * MessageBox.cs: Use cached objects instead of creating them
7798         * FileDialog.cs: Use cached objects instead of creating them
7799         * ThemeWin32Classic.cs: Use cached objects instead of creating them
7800         * TreeView.cs: Use cached objects instead of creating them
7801         
7802 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
7803
7804         * Control.cs: use Equals to compare the font since no == op
7805         * ScrollBar.cs: use Equals to compare the font since no == op
7806
7807 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
7808
7809         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7810
7811 2005-04-01  Jackson Harper  <jackson@ximian.com>
7812
7813         * Binding.cs: Implement IsBinding.
7814         * BindingManagerBase.cs:
7815         * PropertyManager.cs:
7816         * CurrencyManager.cs: Add IsSuspended property.
7817
7818 2005-04-01  Jackson Harper  <jackson@ximian.com>
7819
7820         * Binding.cs: Had some IsAssignableFrom calls backwards.
7821
7822 2005-04-01  Jackson Harper  <jackson@ximian.com>
7823
7824         * Binding.cs: Handle null data members when pulling data.
7825         * PropertyManager.cs: Handle the data member being a property that
7826         does not exist.
7827
7828 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7829
7830         * DataGridTextBoxColumn.cs: fixes signature
7831         * DataGrid.cs: calls right constructor
7832
7833 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7834
7835         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7836         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7837         * GridTableStylesCollection.cs: implements GridTableStylesCollection
7838         * DataGridTableStyle.cs: implements DataGridTableStyle
7839         * DataGridBoolColumn.cs: implements DataGridBoolColumn
7840         * DataGridTextBox.cs: implements DataGridTextBox
7841         * DataGridColumnStyle.cs: implements DataGridColumnStyle
7842
7843 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
7844
7845         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7846
7847 2005-03-29  Peter Bartok  <pbartok@novell.com>
7848
7849         * Application.cs:
7850           - Properly implemented CompanyName property
7851           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7852             returns a path that includes CompanyName, ProductName and
7853             Version (fixes bug #70330)
7854
7855 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
7856
7857         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7858           fixes bug #72588.
7859
7860 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7861
7862         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7863         
7864           - Added ReadOnly CheckBox
7865           - Further refactoring: moved some code from Open-/SaveFileDialog
7866             to FileDialog
7867
7868 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7869
7870         * OpenFileDialog.cs: Fixed CheckFileExists
7871         * FileDialog.cs:
7872           Moved FileView and DirComboBox outside FileDialog class.
7873           They can now be used outside FileDialog
7874
7875 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7876
7877         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7878         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7879
7880 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7881
7882         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7883           - Added missing CreatePrompt property in SaveDialog
7884           - Overall SaveDialog handling should be better now
7885           - Added non standard ShowHiddenFiles property
7886           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7887           - Added InitialDirectory and RestoreDirectory support
7888
7889 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
7890
7891         * FileDialog.cs: Made dirComboBox usable
7892
7893 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
7894
7895         * FileDialog.cs: Added Filter support (case sensitiv)
7896
7897 2005-03-24  Jackson Harper  <jackson@ximian.com>
7898
7899         * TabControl.cs: Need a couple more pixels for the lines.
7900
7901 2005-03-23  Jackson Harper  <jackson@ximian.com>
7902
7903         * TabControl.cs: Give the tab page focus when it is selected.
7904
7905 2005-03-23  Jackson Harper  <jackson@ximian.com>
7906
7907         * TabControl.cs: Account for the drawing of tabs borders when
7908         invalidating. If the slider was clicked dont do click detection on
7909         the tabs.
7910
7911 2005-03-23  Jackson Harper  <jackson@ximian.com>
7912
7913         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7914
7915 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
7916
7917         * CategoryGridEntry.cs: Added
7918         * GridItem.cs: Added helper properties
7919         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7920         * GridEntry.cs: Updated code for collection
7921         * PropertyGrid.cs: Cleaned up some formatting
7922         * PropertyGridView.cs: Added drop down functionality for enums.
7923         * GridItemCollection.cs: Added enumerator logic
7924         * PropertyGridEntry.cs: Added
7925
7926 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7927
7928         * FileDialog.cs:
7929           - Removed unnecessary commented code
7930           - Fixed handling for entering the filename manually in the combobox
7931
7932 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7933
7934         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7935
7936 2005-03-18  Peter Bartok  <pbartok@novell.com>
7937
7938         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7939           them being touching the border
7940
7941 2005-03-18  Peter Bartok  <pbartok@novell.com>
7942
7943         * TextControl.cs: Quick hack to center text better
7944
7945 2005-03-18  Peter Bartok  <pbartok@novell.com>
7946
7947         * ControlPaint.cs:
7948           - Don't throw NotImplemented exceptions, just print a notice once
7949             instead (requested by Miguel). This makes running existing SWF
7950             apps a bit easier
7951         * Control.cs:
7952           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7953           - Added context menu trigger on right click
7954         * Panel.cs: Trigger invalidate on resize
7955         * StatusBar.cs:
7956           - Removed old double-buffer drawing
7957           - Added ResizeRedraw style to force proper update of statusbar
7958         * ListView.cs:
7959           - Removed debug output
7960         * ThemeWin32Classic.cs:
7961           - Fixed drawing of status bar, now draws Text property if there
7962             are no defined panels
7963
7964 2005-03-18  Jackson Harper  <jackson@ximian.com>
7965
7966         * ImageList.cs: When the image stream is set pull all the images
7967         from it.
7968         * ImageListStreamer.cs: Implement reading image list streams.
7969
7970 2005-03-18  Peter Bartok  <pbartok@novell.com>
7971
7972         * ThemeWin32Classic.cs (DrawPictureBox):
7973           - Fixed calculations for centered drawing
7974           - Fixed drawing for normal mode, not scaling the image on normal
7975
7976 2005-03-18  Peter Bartok  <pbartok@novell.com>
7977
7978         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7979           textbox
7980         * FileDialog.cs:
7981           - Made Open/Save button the accept button for FileDialog
7982           - Tied the cancel button to the IButtonControl cancel button
7983           - Save/Open now properly builds the pathname
7984           - Now handles user-entered text
7985           - Preventing crash on right-click if no item is selected
7986           - Fixed Text property, now uses contents of textbox
7987           - Fixed SelectedText property, now just returns the text part that
7988             is selected in the text box
7989
7990 2005-03-18  Jackson Harper  <jackson@ximian.com>
7991
7992         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7993         rect, make sure to de-adjust the interior rect after drawing the
7994         tab text.
7995
7996 2005-03-18  Peter Bartok  <pbartok@novell.com>
7997
7998         * MenuAPI.cs: Remove menu *before* executing selected action to
7999           prevent the menu from 'hanging around'
8000           
8001 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8002
8003         * XplatUIOSX.cs: Implemented WorkingArea property
8004
8005 2005-03-17  Peter Bartok  <pbartok@novell.com>
8006
8007         * XplatUIX11.cs: Fixed menu coord calculations
8008         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8009           for calculating offsets
8010
8011 2005-03-17  Peter Bartok  <pbartok@novell.com>
8012
8013         * Hwnd.cs: Do not consider menu presence for default client
8014           rectangle location/size
8015         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8016           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8017           translation functions
8018         * FileDialog.cs: Fixed (what I presume is a) typo
8019
8020 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8021
8022         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8023           X access (avoids X-Async errors)
8024
8025 2005-03-16  Jackson Harper  <jackson@ximian.com>
8026
8027         * TabControl.cs: Raise the SelectedIndexChanged event.
8028
8029 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8030
8031         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8032           - Removed vertical ToolBar and replaced it with a custom panel
8033             (desktop and home button already work)
8034           - Added Help button (some controls get resized or relocated then)
8035           - Draw correct text depending on Open or Save.
8036           - Fixed some typos...
8037
8038 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8039
8040         * ScrollBar.cs:
8041           - Only change Maximum and Minimum when need it (bug fix)
8042
8043 2005-03-15  Peter Bartok  <pbartok@novell.com>
8044
8045         * Form.cs: Use Handle for icon, to trigger creation if
8046           the window does not yet exist
8047         * Control.cs:
8048           - CanSelect: Slight performance improvement
8049           - Focus(): Preventing possible recursion
8050           - Invalidate(): Removed ControlStyle based clear flag setting
8051           - WM_PAINT: fixed logic for calling OnPaintBackground
8052           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8053             EraseWindowBackground if the control doesn't paint background
8054         * XplatUIWin32.cs:
8055           - Moved EraseWindowBackground() method to internal methods
8056           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8057             is sent via SendMessage on BeginPaint call on Win32
8058         * XplatUIX11.cs:
8059           - Added EraseWindowBackground() method
8060           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8061             PaintEventStart, which more closely matches Win32 behaviour
8062           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8063           - Fixed SetFocus() to properly deal with client and whole windows
8064         * Hwnd.cs: Added ErasePending property
8065         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8066         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8067
8068 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8069
8070         * XplatUIOSX.cs:
8071           - Fix hard loop when timers exist.
8072           - Fix bugs with middle and right click for 3 button mice.
8073
8074 2005-03-11  Peter Bartok  <pbartok@novell.com>
8075
8076         * XplatUIX11.cs:
8077           - get_WorkingArea: Need to call X directly, GetWindowPos only
8078             returns cached data now
8079           - Added sanity check to GetWindowPos hwnd usage
8080
8081 2005-03-11  Jackson Harper  <jackson@ximian.com>
8082
8083         * BindingManagerBase.cs: This method isn't used anymore as
8084         PullData now updates the data in the control.
8085
8086 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8087
8088         * Form.cs: fixes menu drawing on X11
8089         * MenuAPI.cs:  fixes menu drawing on X11
8090
8091 2005-03-11  Peter Bartok  <pbartok@novell.com>
8092
8093         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8094           from Jonathan Gilbert; should fix bug #73606
8095         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8096           in Screen coordinates. Thanks, Jordi.
8097         * Form.cs: Added missing attribute
8098
8099 2005-03-11  Peter Bartok  <pbartok@novell.com>
8100
8101         * Form.cs:
8102           - Rudimentary Mdi support
8103           - Removed outdated FormParent code
8104           - Implemented lots of missing properties and methods, still missing
8105             transparency support
8106           - Added missing attributes
8107           - Implemented support for MaximumBounds
8108           - Added firing of various events
8109         * XplatUI.cs: Added SetIcon() method
8110         * XplatUIDriver.cs: Added SetIcon() abstract
8111         * XplatUIOSX.cs: Stubbed out SetIcon() method
8112         * XplatUIX11.cs:
8113           - Implemented SetIcon() support
8114           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8115           - Switched to unix line endings
8116         * XplatUIWin32.cs:
8117           - Made POINT internal so for can access it as part of MINMAX
8118           - Implemented SetIcon() support
8119           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8120             native Mdi support again, might have to go managed)
8121         * Control.cs: Now fires the StyleChanged event
8122         * MdiClient.cs: Added; still mostly empty
8123
8124 2005-03-10  Peter Bartok  <pbartok@novell.com>
8125
8126         * SaveFileDialog.cs: Added emtpy file
8127
8128 2005-03-08  Peter Bartok  <pbartok@novell.com>
8129
8130         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8131           in turn triggers OnCreateContro) when creating a handle for the
8132           first time.
8133         * TextControl.cs: Fixed endless loop in certain cases when
8134           replacing the current selection
8135
8136 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8137
8138         * ScrollBar.cs:
8139           - Honors NewValue changes in Scroll events allowing apps to change it
8140           - Adds First and Last Scroll events
8141           - Fixes Thumb events
8142
8143 2005-03-07  Peter Bartok  <pbartok@novell.com>
8144
8145         * Hwnd.cs: Added DefaultClientRectangle property
8146         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8147           more detailed debug information
8148         * XplatUIX11.cs:
8149           - Fixed size-change feedback loop, where we would pull an old size
8150             off the queue and mistakenly change our window's size to an
8151             earlier value
8152           - Now compressing ConfigureNotify events, to reduce looping and
8153             redraw issues
8154         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8155           is called
8156
8157 2005-03-07  Jackson Harper  <jackson@ximian.com>
8158
8159         * Binding.cs: Push data pushes from data -> property. Check if the
8160         property is readonly when attempting to set it.
8161
8162 2005-03-07  Jackson Harper  <jackson@ximian.com>
8163
8164         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8165         instead of IsSubclassOf. Pulling data now sets the value on the
8166         control.
8167         * PropertyManager.cs:
8168         * CurrencyManager.cs: Just need to pull data when updating now,
8169         because PullData will set the value on the control.
8170
8171 2005-03-04  Jackson Harper  <jackson@ximian.com>
8172
8173         * Binding.cs: Implement data type parsing and converting on pulled
8174         data. TODO: Are there more ways the data can be converted?
8175
8176 2005-03-04  Jackson Harper  <jackson@ximian.com>
8177
8178         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8179         controls Validating method so we can repull the data when the
8180         control loses focus.
8181
8182 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8183
8184         * ColumnHeader.cs:
8185           - Fixes null string format
8186           
8187         * ListView.cs:
8188           - Adds enum type checks
8189           - Fixes redrawing and recalc need after changing some properties
8190           - Fixes on focus_item set after the event
8191           - Fixes adding columns after the control has been created
8192           
8193         * ThemeWin32Classic.cs:
8194           - Fixes CheckBox focus rectangle
8195           - Fixes ColumnHeader drawing
8196
8197
8198 2005-03-03  Jackson Harper  <jackson@ximian.com>
8199
8200         * Binding.cs: Bind to <Property>Changed events so we can detect
8201         when properties are changed and update the data.
8202
8203 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8204
8205         * ImageList.cs:
8206           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8207           - Fixes ImageList constructor with ImageList container
8208           - Fixes image scaling (wrong parameters at DrawImage)
8209
8210 2005-02-02  Jackson Harper  <jackson@ximian.com>
8211
8212         * Binding.cs: Make property searches case-insensitive. Eliminate
8213         some duplicated code.
8214
8215 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8216
8217         * ComboBox.cs:
8218                 - Handle focus event
8219                 - Fix scrollbar events
8220                 - Discard highlighted item if remove it
8221                 - Fixes SelectedItem with strings
8222
8223 2005-03-01  Peter Bartok  <pbartok@novell.com>
8224
8225         * Control.cs:
8226           - Fixed Visible property, now follows (once again) parent chain
8227             to return false if any control in the chain is visible=false
8228           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8229           - Fixed several places where is_visible instead of Visible was used
8230           - Implemented FIXME related to focus selection when setting focused
8231             control to be invisible
8232
8233         * XplatUIWin32.cs: Now using proper method to find out if window is
8234           visible. Thanks to Jordi for pointing it out
8235
8236 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8237
8238         * ComboBox.cs: show/hide scrollbar instead of creating it
8239
8240 2005-02-27  Jackson Harper  <jackson@ximian.com>
8241
8242         * CurrencyManager.cs: Add PositionChanged stuff.
8243
8244 2005-02-27  Peter Bartok  <pbartok@novell.com>
8245
8246         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8247         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8248         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8249         * XplatUIX11.cs:
8250           - Implemented GetMenuDC()
8251           - Implemented GetMenuOrigin()
8252           - Implemented ReleaseMenuDC()
8253           - Implemented generation of WM_NCPAINT message
8254           - Implemented generation and handling of WM_NCCALCSIZE message
8255         * Form.cs: Added debug helper message for Jordi's menu work
8256         * Hwnd.cs:
8257           - Modified ClientRect property; added setter, fixed getter to handle
8258             setting of ClientRect
8259           - Added MenuOrigin property
8260
8261 2005-02-26  Peter Bartok  <pbartok@novell.com>
8262
8263         * XplatUIX11.cs:
8264           - Destroys the caret if a window that's being destroyed contains it
8265           - Ignores expose events coming from the X11 queue for windows that
8266             already are destroyed
8267           - Now uses the proper variable for handling DestroyNotify, before we
8268             marked the wrong window as destroyed
8269           - Improved/added some debug output
8270
8271 2005-02-26  Peter Bartok  <pbartok@novell.com>
8272
8273         * X11Keyboard.cs: Fixes to work on 64bit systems
8274
8275 2005-02-26  Peter Bartok  <pbartok@novell.com>
8276
8277         * Control.cs:
8278           - Now calling OnHandleDestroyed from DestroyHandle()
8279             instead of Dispose()
8280           - Removed bogus call to controls.Remove() from DestroyHandle()
8281
8282 2005-02-26  Peter Bartok  <pbartok@novell.com>
8283
8284         * Control.cs: Properly destroy child windows when our handle is
8285           destroyed
8286
8287 2005-02-25  Peter Bartok  <pbartok@novell.com>
8288
8289         * XplatUI.cs:
8290           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8291           - Alphabetized Static Methods and Subclasses
8292
8293         * XplatUIX11.cs:
8294           - Added XException class to allow custom handling of X11 exceptions
8295           - Created custom X11 error handler, tied into XException class
8296           - Added support for MONO_XEXCEPTIONS env var to allow the user
8297             to either throw an exception on X errors or continue running
8298             after displaying the error
8299           - Added handling of DestroyNotify message
8300           - Added handler for CreateNotify message (still disabled)
8301           - Improved (tried to at least) Where method to provide file and lineno
8302         * X11Structs.cs:
8303           - Added XErrorHandler delegate
8304           - Added XRequest enumeration (to suppor translation of errors)
8305
8306 2005-02-25  Jackson Harper  <jackson@ximian.com>
8307
8308         * PropertyManager.cs: Implement editing features
8309         * CurrencyManager.cs:
8310         * Binding.cs: First attempt at UpdateIsBinding
8311         * BindingManagerBase.cs: Call UpdateIsBinding before
8312         pushing/pulling data.
8313
8314 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8315
8316         * MenuAPI.cs: Respect disabled items
8317         * ThemeWin32Classic.cs
8318                 - Caches ImageAttributes creation for DrawImageDisabled
8319                 - Fixes vertical menu line drawing
8320                 - Draws disabled arrows in disable menu items
8321
8322 2005-02-24  Peter Bartok  <pbartok@novell.com>
8323
8324         * Hwnd.cs:
8325           - Added UserData property to allow associating arbitrary objects
8326             with the handle
8327           - Fixed leak; now removing Hwnd references from static windows array
8328         * XplatUIWin32.cs:
8329           - Fixed Graphics leak in PaintEventEnd
8330           - Removed usage of HandleData, switched over to Hwnd class
8331         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8332
8333 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8334
8335         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8336         * ScrollBar.cs: Fixes bug
8337         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8338          keyboard navigation enhancements
8339
8340 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8341
8342         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8343         * GroupBox.cs: Add control styles
8344         * Label.cs: Add control styles
8345         * UpDownBase.cs: Add control styles
8346         * ListBox.cs: Add control styles
8347         * XplatUIWin32.cs: Fixes wrong parameter order
8348
8349
8350 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8351
8352         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8353
8354 2005-02-23  Jackson Harper  <jackson@ximian.com>
8355
8356         * PropertyManager.cs: Implement property binding. This doesn't
8357         seem to work yet though as (I think) there are some bugs in
8358         System.ComponentModel.PropertyDescriptor.
8359         * BindingContext.cs: Use new PropertyManager constructor.
8360
8361 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8362
8363         * ProgressBar.cs: use clip region in ProgressBar
8364         * ThemeWin32Classic.cs: use clip region in ProgressBar
8365
8366 2004-02-22  Jackson Harper  <jackson@ximian.com>
8367
8368         * BindingsCollection.cs: Remove some debug code.
8369
8370 2005-02-22  Jackson Harper  <jackson@ximian.com>
8371
8372         * BindingContext.cs:
8373         * ControlBindingsCollection.cs:
8374         * CurrencyManager.cs:
8375         * Binding.cs:
8376         * BindingManagerBase.cs: Initial implementation
8377         * BindingsCollection.cs: Add an internal contains method that the
8378         BindingManagerBase uses to ensure bindings aren't added twice to
8379         the collection.
8380         * PropertyManager.cs: Stubbed out.
8381         * Control.cs:
8382         * ContainerControl.cs: Hook up databinding
8383         
8384 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8385
8386         * XplatUIOSX.cs:
8387           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8388           Fixed Invalidate/Update chain.
8389           Fixed tons of other minor bugs (this is almost a complete rewrite).
8390
8391 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8392
8393         * ComboBox.cs: do subcontrol creation when the control is created
8394
8395 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8396
8397         * Label.cs: fixes image drawing (image and imagelist)
8398         * ThemeWin32Classic.cs: cache brushes
8399         
8400 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8401
8402         * Form.cs: Move menu drawing code to Theme class
8403         * ComboBox.cs: Move ComboBox drawing code to Theme class
8404         * MenuItem.cs: Move menu drawing code to Theme class
8405         * MenuAPI.cs: Move menu drawing code to Theme class
8406         * ThemeWin32Classic.cs: New methods
8407         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8408         * ListBox.cs: Move Listbox drawing code to Theme class
8409         * Theme.cs: New methods
8410
8411 2005-02-20  Peter Bartok  <pbartok@novell.com>
8412
8413         * Control.cs:
8414           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8415             only process mnemonics on those)
8416           - Fixed event sequence for key handling; first calling
8417             ProcessKeyEventArgs now
8418         * TextBoxBase.cs:
8419           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8420             for processing non-character keys
8421           - Fixed WM_CHAR to generate proper event sequence before processing
8422         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8423           generation
8424
8425 2005-02-19  Peter Bartok  <pbartok@novell.com>
8426
8427         * UserControl.cs: Added TextChanged event; added attributes
8428         * SizeGrip.cs: Implemented resizing and optional display of grip
8429         * Form.cs: Fixed attribute
8430         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8431           Changed meaning of ScrollWindow bool argument; instead of the
8432           clear attribute (which will be true usually anyway), it gives the
8433           option of moving child controls as well.
8434         * XplatUIX11.cs:
8435           - Changed to match new ScrollWindow argument
8436           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8437             now handles the implicit parent window a WM puts around us
8438         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8439           to work)
8440         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8441         * TreeView.cs: Adjusted to new ScrollWindow arguments
8442
8443 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8444
8445         * Form.cs: Menu integration with non-client area
8446         * MenuItem.cs: Menu integration with non-client area
8447         * MenuAPI.cs: Menu integration with non-client area
8448
8449 2005-02-18  Peter Bartok  <pbartok@novell.com>
8450
8451         * MethodInvoker.cs: Added
8452         * MdiLayout.cs: Added
8453         * SendKeys.cs: Started implementation
8454         * ErrorIconAlignment.cs: Added
8455
8456 2005-02-18  Peter Bartok  <pbartok@novell.com>
8457
8458         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8459         * Form.cs: Added handling for Menu-related Non-client messages
8460
8461 2005-02-17  Peter Bartok  <pbartok@novell.com>
8462
8463         * UpDownBase.cs: Fixed typo, compilation errors
8464         * DomainUpDown.cs: Fixed attribute value
8465
8466 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8467
8468         * UpDownBase.cs: Attach entry events.
8469         Propagate events.
8470         Add ForeColor property, Focused, InterceptArrowKeys (interception
8471         does not work yet).
8472
8473 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8474
8475         * Form.cs:
8476                 - Redraw non client are on Setmenu
8477                 - Calc proper menu starting point
8478
8479 2005-02-17  Peter Bartok  <pbartok@novell.com>
8480
8481         * Application.cs: Fixed message_filter check
8482
8483 2005-02-17  Peter Bartok  <pbartok@novell.com>
8484
8485         * Application.cs: Now calls registered message filters
8486         * DockStyle.cs: Fixed attribute
8487         * Form.cs: Fixed attribute
8488         * Menu.cs: Fixed attribute
8489         * ToolTip.cs: Fixed attribute
8490         * TreeNode.cs: Added missing attributes and arranged in regions
8491         * PropertyGrid.cs: Fixed signatures
8492         * TreeNodeCollection.cs: Added attributes
8493         * Splitter.cs: Added missing attributes; arranged into regions
8494         * TabPage.cs: Added missing attributes; arranged into regions
8495         * TextBoxBase.cs: Added missing attributes
8496         * TextBox.cs: Added missing attributes
8497         * ArrangeDirection.cs: Added missing attributes
8498         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8499         * ToolBarButton.cs: Fixed attributes
8500         * AnchorStyles.cs: Fixed attribute
8501         * TrackBar.cs: Fixed attributes
8502         * TabControl.cs: Added missing attributes and arranged into regions
8503         * ToolBar.cs: Fixed attribute
8504         * StatusBar.cs: Fixed signature, organized into regions and added
8505           attributes
8506         * StatusBarPanel.cs: Fixed attributes
8507         * ContentsResizedEventArgs.cs: Implemented
8508         * ContentsResizedEventHandler.cs: Implemented
8509         * DateBoldEventArgs.cs: Implemented
8510         * DateBoldEventHandler.cs: Implemented
8511         * UpDownEventArgs.cs: Implemented
8512         * UpDownEventHandler.cs: Implemented
8513         
8514 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8515
8516         * Form.cs: first Menu NC refactoring
8517         * MenuAPI.cs: first Menu NC refactoring
8518         
8519 2005-02-16  Peter Bartok  <pbartok@novell.com>
8520
8521         * ImeMode.cs: Added missing attributes
8522         * Menu.cs: Fixed attribute
8523         * GroupBox.cs: Fixed attribute
8524         * Label.cs: Fixed attribute
8525         * ColorDialog.cs (RunDialog): Removed TODO attribute
8526         * ComboBox.cs: Fixed attributes
8527         * ListControl.cs: Added missing attributes
8528         * PropertyGrid.cs: Fixed attributes
8529         * Control.cs: Fixed attributes
8530         * ListViewItem.cs: Added TypeConverter attribute
8531         * NotifyIcon.cs: Fixed attributes
8532         * ListView.cs: Fixed attributes
8533         * ButtonBase.cs: Fixed attribute
8534         * ImageList.cs: Added missing attributes
8535         * ContainerControl.cs: Fixed signature
8536         * CheckedListBox.cs: Fixed attribute; added missing attributes
8537         * Panel.cs: Fixed attributes
8538         * PropertyTabChangedEventArgs.cs: Added missing attribute
8539         * PropertyValueChangedEventArgs.cs: Added missing attribute
8540         * Binding.cs: Fixed attribute
8541         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8542         * ListBox.cs: Fixed attribute; added missing attributes;
8543         * ScrollableControl.cs: Added missing attributes
8544         * PictureBox.cs: Added missing attributes; implemented missing property
8545         * DateTimePicker.cs: Added missing attributes
8546         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8547         * MonthCalendar.cs: Fixed attributes
8548         * StatusBarPanel.cs: Added missing attributes
8549         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8550
8551 2005-02-16  Peter Bartok  <pbartok@novell.com>
8552
8553         * TextBoxBase.cs: The previous method to enforce height yet remember
8554           the requested high was less than ideal, this is an attempt to do
8555           it better.
8556         * Control.cs: Added comment about possible problem
8557         * Copyright: Updated format
8558         * GridItemType.cs: Fixed swapped values
8559
8560 2005-02-15  Jackson Harper  <jackson@ximian.com>
8561
8562         * BaseCollection.cs: Use property so we never access an
8563         uninitialized list. Also initialize the list in the property.
8564
8565 2005-02-15  Peter Bartok  <pbartok@novell.com>
8566
8567         * GroupBox.cs (ProcessMnemonic): Implemented
8568         * Label.cs (ProcessMnemonic): Implemented
8569         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8570           hotkeys
8571
8572 2005-02-15  Peter Bartok  <pbartok@novell.com>
8573
8574         * RadioButton.cs (ProcessMnemonic): Implemented
8575         * CheckBox.cs (ProcessMnemonic): Implemented
8576         * Control.cs:
8577           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8578             handling
8579           - Added internal method to allow calling ProcessMnemonic from other
8580             controls
8581         * ContainerControl.cs:
8582           - Started support for handling validation chain handling
8583           - Implemented ProcessMnemonic support
8584           - Added Select() call to Active, to make sure the active control
8585             receives focus
8586         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8587           FormParent rewrite)
8588         * ThemeWin32Classic.cs:
8589           - DrawCheckBox(): Fixed stringformat to show hotkeys
8590           - DrawRadioButton(): Fixed stringformat to show hotkeys
8591         * CommonDialog.cs: Removed WndProc override, not needed
8592
8593 2005-02-14  Peter Bartok  <pbartok@novell.com>
8594
8595         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8596           missed those in the rewrite
8597
8598 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8599
8600         * NumericUpDown.cs (Increment, ToString): Add.
8601         (DecimalPlaces): implement.
8602         
8603         Add attributes.
8604         
8605         * UpDownBase.cs: Add the designer attributes.
8606
8607 2005-02-13  Peter Bartok  <pbartok@novell.com>
8608
8609         * Panel.cs: Removed border_style, now in Control
8610         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8611           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8612
8613 2005-02-13  Peter Bartok  <pbartok@novell.com>
8614
8615         * MouseButtons.cs: Added missing attributes
8616         * XplatUIStructs.cs: Added enumeration for title styles
8617         * LeftRightAlignment.cs: Added missing attributes
8618         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8619           it compatible with Graphics.FromHwnd()
8620         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8621         * Keys.cs: Added missing attributes
8622         * SelectionRange.cs: Added missing attributes
8623         * SelectionRangeConverter.cs: Added
8624         * XplatUI.cs:
8625           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8626             ReleaseMenuDC methods
8627           - Renamed ReleaseWindow to UngrabWindow
8628           - Added proper startup notice to allow version identification
8629         * Form.cs:
8630           - Added missing attributes
8631           - Removed FormParent concept
8632         * Label.cs: Removed border_style field, now in Control
8633         * RadioButton.cs: Now properly selects RadioButton when focus is
8634           received
8635         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8636         * Control.cs:
8637           - Added missing attributes
8638           - Added borderstyle handling
8639           - Removed FormParent concept support
8640           - Fixed calls to XplatUI to match changed APIs
8641           - Fixed bug that would case us to use disposed Graphics objects
8642           - Removed unneeded internal methods
8643           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8644           - SelectNextControl(): Fixed to properly check common parents
8645         * TextBoxBase.cs: Removed border_style field (now in Control)
8646         * MessageBox.cs:
8647           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8648             fixed calculations for form size
8649           - Added support for localized strings and icons
8650           - Improved form size calculations, added border
8651         * ListView.cs: Removed border_style field (now in Control)
8652         * X11Structs.cs: Moved several structs from X11 driver here
8653         * X11Keyboard.cs: Changed debug message
8654         * Application.cs: Removed FormParent concept support
8655         * CommonDialog.cs:
8656           - Resetting end_modal flag
8657           - Removed FormParent concept support
8658         * NativeWindow.cs: Removed FormParent concept support
8659         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8660           Client area and Non-Client whole window to allow support for WM_NC
8661           messages
8662         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8663           prevent using it until it supports Hwnd as per Geoff Norton's request
8664         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8665         * PictureBox.cs: Removed border_style field, now in Control
8666         * XplatUIWin32.cs: Added new driver methods
8667
8668 2005-02-12  Peter Bartok  <pbartok@novell.com>
8669
8670         * OpacityConverter.cs: Implemented
8671         * Hwnd.cs: Internal class to support drivers that need to emulate
8672           client area/non-client area window behaviour
8673
8674 2005-02-11  Peter Bartok  <pbartok@novell.com>
8675
8676         * KeysConverter.cs: Implemented
8677
8678 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8679
8680         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8681         * LinkLabel: Added missing attributes
8682         * MainMenu.cs: fixes ToString
8683         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8684         * ListBox.cs: fixes event position
8685         * TrackBar.cs: adds missing attributes and events
8686         
8687 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8688
8689         * MenuItem.cs: Use SystemInformation and bug fixes
8690         * MenuAPI.cs: Use SystemInformation and bug fixes
8691
8692 2005-02-09  Jackson Harper  <jackson@ximian.com>
8693
8694         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8695         their keystate otherwise things like VK_MENU get stuck "on".
8696
8697 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8698
8699         * ListBox.cs: Fixes AddRange bug
8700         
8701 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8702
8703         * ProgressBar.cs
8704                 - Add missing attributes
8705                 - Add missing method
8706                 
8707         * CheckedListBox.cs: Added missing attributes
8708                 - Add missing attributes
8709                 - Remove extra method
8710         
8711         * ComboBox.cs: Added missing attributes
8712         * VScrollBar.cs: Added missing attributes
8713         * ScrollBar.cs:  Added missing attributes
8714         * ListBox.cs: Fixes signature, add missing consts
8715         * LinkArea.cs:   Added missing attributes
8716         
8717
8718 2005-02-08  Peter Bartok  <pbartok@novell.com>
8719
8720         * Menu.cs: Added missing attributes
8721         * MainMenu.cs: Added missing attributes
8722         * GroupBox.cs: Added missing attributes
8723         * Label.cs: Added missing attributes
8724         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8725         * ColorDialog.cs:
8726           - Added Instance and Options properties
8727           - Added missing attributes
8728         * Cursor.cs: Made Serializable
8729         * NotifyIcon: Added missing attributes
8730         * MenuItem.cs: Added missing attributes
8731         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8732         * Panel.cs: Added Missing attributes
8733         * MonthCalendar.cs: Fixed CreateParams
8734
8735 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8736         
8737         * LinkLabel.cs:
8738                 - Fixes signature
8739                 - Fixes issues with links
8740                 - Adds the class attributes
8741
8742 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8743         
8744         * ComboBox.cs:
8745                 - Fixes button when no items available in dropdown
8746                 - Fixes repainting problems
8747                 - Adds the class attributes
8748                 
8749 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8750
8751         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8752         the current theme.  Cache these on startup.
8753
8754 2005-02-07  Jackson Harper  <jackson@ximian.com>
8755
8756         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8757         the scrollbar buttons when they are depressed.
8758
8759 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8760
8761         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8762         Get the display size from the main displayid.  We currently dont
8763         support multiple display configurations.
8764
8765 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8766
8767         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8768
8769 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8770
8771         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8772
8773 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8774
8775         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8776
8777 2005-02-04  Jackson Harper  <jackson@ximian.com>
8778
8779         * ThemeWin32Classic.cs: Respect the clipping rect when
8780         drawing. Only fill the intersection of clips and rects so there
8781         isn't a lot of large fills.
8782         * ScrollBar.cs: Pass the correct clipping rect to the theme
8783         engine. Remove some debug code.
8784
8785 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
8786         
8787         * DateTimePicker.cs:
8788                 - Fixed crash on DateTime.Parse, use Constructor instead
8789
8790 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8791         
8792         * MenuItem.cs:
8793         * MenuAPI.cs:
8794                 - Owner draw support (MeasureItem and DrawItem)
8795
8796 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8797         
8798         *  Menu.cs:
8799                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8800                 - Fixes MenuItems.Add range
8801         * MenuItem.cs:
8802                 - MergeMenu and Clone and CloneMenu functions
8803
8804 2005-02-03  Jackson Harper  <jackson@ximian.com>
8805
8806         * ScrollBar.cs: Make abstract
8807         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8808         is abstract.
8809
8810 2005-02-03  Jackson Harper  <jackson@ximian.com>
8811
8812         * ScrollBar.cs: First part of my scrollbar fixups. This removes
8813         all the unneeded refreshes and uses invalidates with properly
8814         computed rects.
8815
8816 2005-02-03  Peter Bartok  <pbartok@novell.com>
8817
8818         * ComponentModel.cs: Added
8819         * IDataGridEditingService.cs: Added
8820         * Timer.cs: Added missing attributes
8821         * ToolTip.cs: Added missing attributes
8822
8823 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8824
8825         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8826
8827 2005-02-03  Peter Bartok  <pbartok@novell.com>
8828
8829         * ListBox.cs: Added missing attributes
8830
8831 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
8832         
8833         * ListBox.cs:
8834                 - Fixes font height after font change
8835                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8836                 
8837 2005-02-02  Peter Bartok  <pbartok@novell.com>
8838
8839         * HandleData.cs: Introduced static methods to allow class
8840           to be more self-contained and track it's own HandleData objects
8841         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8842           HandleData to use new static methods
8843
8844 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
8845
8846         * Combobox.cs:
8847                 - Fixes default size and PreferredHeight
8848                 - Missing events
8849                 - ObjectCollection.Insert implementation
8850                 
8851         * ListControl.cs
8852                 - Fixes signature
8853         * ListBox.cs:
8854                 - Several fixes
8855                 - ObjectCollection.Insert implementation
8856                 - No selection after clean
8857                 - Small fixes
8858
8859 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8860
8861         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8862
8863 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
8864
8865         * Combobox.cs:
8866                 - Caches ItemHeight calculation for OwnerDrawVariable
8867                 - Handles dropdown properly
8868                 - Fixes several minor bugs
8869
8870 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8871
8872         * ListBox.cs:
8873                 - Fixes 71946 and 71950
8874                 - Fixes changing Multicolumn on the fly
8875                 - Fixes keyboard navigation on Multicolumn listboxes
8876
8877 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8878         
8879         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8880         crash reporter log.
8881
8882 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8883
8884         * XplatUIOSX.cs: Allow applications to actually exit.
8885
8886 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8887
8888         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
8889         their parent at creation time rather than lazily later.  Fixes a major
8890         regression we were experiencing.
8891
8892 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8893
8894         * ThemeWin32Classic.cs: more date time picker painting fixes
8895         * DateTimePicker.cs: more monthcalendar drop down fixes
8896         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8897
8898 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8899
8900         * ScrollBar.cs:
8901                 - When moving the thumb going outside the control should stop the moving
8902                 - Adds the firing of missing events
8903                 - Fixes no button show if Size is not specified
8904                 - End / Home keys for keyboard navigation
8905
8906 2005-01-30  Peter Bartok  <pbartok@novell.com>
8907
8908         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8909           sanity check to prevent theoretical loop
8910         * XplatUIWin32.cs (SetVisible): Removed debug output
8911         * XplatUIX11.cs (SystrayChange): Added sanity check
8912         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8913         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8914           behaviour, valid until the X11 client window rewrite is done
8915         * TextBox.cs (ctor): Setting proper default foreground and background
8916           colors
8917
8918 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
8919
8920         * Theme: Added DrawDateTimePicker to interface
8921         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8922         * DateTimePicker.cs: Created (still needs keys and painting code)
8923         * DateTimePickerFormat.cs: added
8924         * MonthCalendar.cs: fixed CreateParams for popup window mode
8925           
8926 2005-01-29  Peter Bartok  <pbartok@novell.com>
8927
8928         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8929           this should also the calculations for ligher/darker
8930         * Theme.cs: Fixed defaults for ScrollBar widths/heights
8931
8932 2005-01-29  Peter Bartok  <pbartok@novell.com>
8933
8934         * ArrangeDirection.cs: Added
8935         * ArrangeStartingPositon.cs: Added
8936         * SystemInformation.cs: Implemented
8937         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8938           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8939           used by SystemInformation class
8940         * X11Strucs.cs: Added XSizeHints structure
8941         * MenuAPI.cs:
8942           - Fixed CreateParams to make sure the menu window is always visible
8943           - TrackPopupMenu: Added check to make sure we don't draw the
8944             menu offscreen
8945
8946 2005-01-29  Peter Bartok  <pbartok@novell.com>
8947
8948         * HandleData.cs: Added method for altering invalid area
8949         * TextBoxBase.cs: Implemented TextLength
8950
8951 2005-01-28  Peter Bartok  <pbartok@novell.com>
8952
8953         * XplatUIX11.cs: Improvement over last patch, not sending
8954           the WM_PAINT directly anymore, instead we scroll any pending
8955           exposed areas and let the system pick out the WM_PAINT later
8956
8957 2005-01-28  Peter Bartok  <pbartok@novell.com>
8958
8959         * SWF.csproj: Deleted, no longer used. Instead,
8960           Managed.Windows.Forms/SWF.csproj should be used
8961         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8962           directly, to avoid a potential race condition with the next
8963           scroll
8964
8965 2005-01-28  Peter Bartok  <pbartok@novell.com>
8966
8967         * XplatUI.cs: Made class internal
8968
8969 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
8970
8971         * CheckedListBox.cs:
8972                 - Draw focus
8973                 - Fixed Drawing
8974                 - Missing methods and events
8975
8976 2005-01-27  Peter Bartok  <pbartok@novell.com>
8977
8978         * Application.cs (Run): Don't use form if we don't have one
8979
8980 2005-01-27  Peter Bartok  <pbartok@novell.com>
8981
8982         * TextBoxBase.cs (get_Lines): Fixed index off by one error
8983
8984 2005-01-27  Peter Bartok  <pbartok@novell.com>
8985
8986         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8987         * GridItem.cs: Added; Patch by Jonathan S. Chambers
8988         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8989         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8990         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8991         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8992         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8993         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8994         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8995         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8996         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8997         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8998
8999 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9000
9001         * Combobox.cs:
9002                 - Draw focus on Simple Combobox
9003                 - Fixes drawing issues
9004                 - fixes 71834
9005
9006 2005-01-27  Peter Bartok  <pbartok@novell.com>
9007
9008         * Form.cs:
9009           - Place window in default location, instead of hardcoded 0/0
9010           - Send initial LocationChanged event
9011         * Control.cs:
9012           - UpdateBounds after creation to find out where the WM placed us
9013           - Make sure that if the ParentForm changes location the Form
9014             is notified
9015         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9016             to the root, but to whatever the WM placed around us.
9017             Translate to root coordinates before returning toplevel
9018             coordinates
9019         * XplatUIWin32.cs: Removed debug output
9020         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9021           flag to GetWindowPos, to allow translation of coordinates on X11
9022
9023 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9024
9025         * ListBox.cs: connect LostFocus Event
9026
9027 2005-01-27  Peter Bartok  <pbartok@novell.com>
9028
9029         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9030           XplatUIX11.cs: Extended the Systray API
9031         * Form.cs: Removed debug output
9032         * Application.cs: Fixed focus assignment, always need to call
9033           XplatUI.Activate() since Form.Activate() has rules that may
9034           prevent activation
9035         * NotifyIcon.cs: Should be complete now
9036         * ToolTip.cs: Worked around possible timer bug
9037
9038 2005-01-27  Jackson Harper  <jackson@ximian.com>
9039
9040         * TabControl.cs:
9041         - Only invalidate the effected tabs when the
9042         selected index changes. This reduces drawing and gets rid of some
9043         flicker.
9044         - Only refresh if the tabs need to be shifted, otherwise only
9045         invalidate the slider button.
9046         - On windows the tabs are not filled to right if the slider is
9047         visible.
9048         
9049 2005-01-27  Jackson Harper  <jackson@ximian.com>
9050
9051         * TabControl.cs: Only refresh on mouseup if we are showing the
9052         slider. Also only invalidate the button whose state has changed.
9053
9054 2005-01-26  Peter Bartok  <pbartok@novell.com>
9055
9056         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9057         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9058           and SystrayRemove() methods
9059         * XplatUIOSX.cs: Stubbed Systray methods
9060         * XplatUIX11.cs:
9061           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9062             methods
9063           - Fixed broken XChangeProperty calls (marshalling messed up things)
9064         * X11Structs.cs: Added enums and structs required for Size hinting
9065         * NotifyIcon.cs: Added & implemented
9066
9067 2005-01-26  Jackson Harper  <jackson@ximian.com>
9068
9069         * TabControl.cs: Space vertically layed out tabs properly.
9070
9071 2005-01-26  Peter Bartok  <pbartok@novell.com>
9072
9073         * Form.cs (CreateClientParams): Always set the location to 0,0
9074           since we're a child window.
9075
9076         * Control.cs (SetVisibleCore): Always explicitly setting the location
9077           of a toplevel window, apparently X11 doesn't like to move windows
9078           while they're not mapped.
9079
9080 2005-01-26  Jackson Harper  <jackson@ximian.com>
9081
9082         * TabControl.cs: Implement FillToRight size mode with vertically
9083         rendered tabs.
9084
9085 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9086
9087         * ControlPaint.cs, ThemeWin32Classic.cs
9088                 - Fixes DrawFocusRectangle
9089
9090 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9091
9092         * MenuAPI.cs:
9093                 - MenuBar tracking only starts when item is first clicked
9094                 - Fixes menu hidding for multiple subitems
9095                 - Unselect item in MenuBar when item Executed
9096                 - Fixes bug 71495
9097
9098 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9099
9100         * ListControl.cs:
9101                 - IsInputKey for ListBox
9102         * ListBox.cs:
9103                 - Focus item
9104                 - Shift and Control item selection
9105                 - Implement SelectionMode.MultiExtended
9106                 - Fixes RightToLeft
9107         * ComboBox.cs:
9108                 - IsInputKey implemented
9109                 - Do not generate OnTextChangedEdit on internal txt changes
9110                 
9111 2005-01-23  Peter Bartok  <pbartok@novell.com>
9112
9113         * AccessibleObject.cs: Partially implemented Select()
9114         * MonthCalendar.cs: Added missing attributes and events
9115         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9116           form can properly override CreateParams.
9117         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9118           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9119           Control performs Invalidate & Update
9120         * NativeWindow (CreateHandle): Added special handling for Form
9121           and Form.FormParent classes to allow overriding of From.CreateParams
9122         * Control.cs:
9123           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9124             name 'owner'
9125           - ControlNativeWindow: Added Owner property
9126           - Removed usage of Refresh() on property changes, changed into
9127             Invalidate(), we need to wait until the queue is processed for
9128             updates, direct calls might cause problems if not all vars for
9129             Paint are initialized
9130           - Added call to UpdateStyles() when creating the window, to set any
9131             styles that CreateWindow might have ignored.
9132           - Added support for Form CreateParent overrides to UpdateStyles()
9133         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9134           CreateParams are now properly overridable
9135         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9136           CreateParams are now properly overridable
9137
9138 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9139
9140         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9141         OnTextBoxChanged.
9142
9143         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9144         recursive invocation that I have not figured out yet.
9145
9146         Reset the timer when not using (it was accumulating).
9147
9148
9149         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9150         user has made changes that require validation.
9151
9152         Reset changing to avoid loops.
9153
9154 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9155
9156         * NumericUpDown.cs: Display value at startup.
9157
9158         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9159         ValidateEditText.
9160
9161         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9162         filled in.  Added some basic parsing of text.
9163
9164         Still missing the OnXXX method overrides, and figuring out the
9165         events that must be emitted.
9166
9167         * UpDownBase.cs: Handle UserEdit on the Text property.
9168         
9169 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9170
9171         * ComboBox.cs:
9172           - Fixes IntegralHeight
9173           - ToString method
9174
9175 2005-01-21  Jackson Harper  <jackson@ximian.com>
9176
9177         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9178         is set so that the page visibility is updated and the tabs are
9179         sized correctly.
9180
9181 2005-01-21  Jackson Harper  <jackson@ximian.com>
9182
9183         * TabControl.cs: Use cliping rectangle for blitting. Give the
9184         theme the clipping rect so we can do clipping while
9185         drawing. Remove some debug code.
9186
9187 2005-01-21  Jackson Harper  <jackson@ximian.com>
9188
9189         * TabPage.cs: Add a new method so tab pages can force the tab
9190         control to recalculate the tab page sizes.
9191         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9192         sizes.
9193
9194 2005-01-20  Jackson Harper  <jackson@ximian.com>
9195
9196         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9197
9198 2005-01-20  Jackson Harper  <jackson@ximian.com>
9199
9200         * TreeView.cs: Set the bounds for nodes properly. They were
9201         getting screwed up when checkboxes were not enabled, but images
9202         were.
9203
9204 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9205
9206         * ListBox.cs:
9207                 - Owner draw support
9208                 - Fixes
9209                 
9210 2005-01-20  Jackson Harper  <jackson@ximian.com>
9211
9212         * XplatUIStructs.cs: More misc keys
9213         * X11Keyboard.cs: Ignore some control keys.
9214
9215 2005-01-20  Jackson Harper  <jackson@ximian.com>
9216
9217         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9218         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9219
9220 2005-01-19  Peter Bartok  <pbartok@novell.com>
9221
9222         * Control.cs: Un-selecting the control when it is loosing focus
9223
9224 2005-01-19  Jackson Harper  <jackson@ximian.com>
9225
9226         * TreeView.cs: Hook up to the text controls leave event so we can
9227         end editing when the users clicks outside the text box.
9228         
9229 2005-01-19  Jackson Harper  <jackson@ximian.com>
9230
9231         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9232         get set in the conversion array.
9233
9234 2005-01-19  Peter Bartok  <pbartok@novell.com>
9235
9236         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9237           focus is properly set
9238         * Button.cs:
9239           - Added missing attributes
9240           - removed styles, those are already set in the base class
9241         * ButtonBase.cs:
9242           - Added missing attributes
9243           - Added clip window styles
9244         * CheckBox.cs: Added missing attributes
9245         * CommonDialog.cs:
9246           - FormParentWindow.CreateParams: Added required clip styles
9247         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9248           also filters modifier keys
9249         * MessageBox.cs:
9250           - Added assignment of Accept and Cancel button to enable Enter
9251             and Esc keys in MessageBox dialogs
9252           - FormParentWindow.CreateParams: Added required clip styles
9253         * RadioButton.cs: Added missing attributes
9254         * TextControl.cs: No longer draws selection if control does not
9255           have focus
9256         * TextBoxBase.cs:
9257           - Now draws simple rectangle around test area to make it obvious
9258             there's a control. This is a hack until we properly support borders
9259           - A few simple fixes to support selections better, now erases selected
9260             text when typing, and resets selection when using movement keys
9261
9262 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9263
9264         * UpDownBase.cs: Added some new properties.
9265
9266         * DomainUpDown.cs: Implement a lot to get my test working.
9267
9268 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9269
9270         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9271
9272 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9273
9274         * OSXStructs (WindowAttributes): Fixed csc complaints
9275
9276 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9277
9278         * XplayUIOSX.cs:
9279           OSXStructs.cs: Initial refactor to move enums and consts into
9280           OSXStructs and use them in the driver for greater readability.
9281
9282 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9283
9284         * XplatUIOSX.cs: Initial support for Standard Cursors.
9285         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9286
9287 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9288
9289         * ComboBox.cs: ability to change style when the ctrl is already
9290         created, missing methods and events, bug fixes, signature fixes
9291
9292 2005-01-19  Peter Bartok  <pbartok@novell.com>
9293
9294         * Cursors.cs (ctor): Added ctor to fix signature
9295
9296 2005-01-18  Peter Bartok  <pbartok@novell.com>
9297
9298         * Button.cs: Implemented DoubleClick event
9299         * ButtonBase.cs:
9300           - Fixed keyboard handling to behave like MS, where the press of
9301             Spacebar is equivalent to a mousedown, and the key release is
9302             equivalent to mouseup. Now a spacebar push will give the same
9303             visual feedback like a mouse click.
9304           - Added missing attributes
9305           - Added ImeModeChanged event
9306           - Added support for generating DoubleClick event for derived classes
9307         * CheckBox.cs:
9308           - Implemented DoubleClick event
9309           - Added missing attributes
9310         * CommonDialog.cs: Added missing attribute
9311         * ContextMenu.cs: Added missing attributes
9312         * RadioButton.cs:
9313           - AutoChecked buttons do not allow to be unselected when clicked
9314             (otherwise we might end up with no selected buttons in a group)
9315           - Added missing attributes
9316           - Implemented DoubleClickEvent
9317         * ThreadExceptionDialog.cs: Enabled TextBox code
9318
9319 2005-01-18  Peter Bartok  <pbartok@novell.com>
9320
9321         * Form.cs: Removed debug output
9322         * Button.cs: Added support for DoubleClick method
9323
9324 2005-01-18  Peter Bartok  <pbartok@novell.com>
9325
9326         * Form.cs:
9327           - Added method to parent window that allows triggering size
9328             calculations when a menu is added/removed
9329           - set_Menu: Cleaned up mess from early days of Form and Control,
9330             now properly triggers a recalc when a menu is added/removed
9331           - Added case to select form itself as focused form if no child
9332             controls exist
9333           - Added PerformLayout call when showing dialog, to ensure properly
9334             placed controls
9335         * Control.cs:
9336           - Select(): Made internal so Form can access it
9337           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9338             status
9339         * Application.cs (Run): Removed hack and calls PerformLayout instead
9340           to trigger calculation when Form becomes visible
9341
9342 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9343
9344         * ComboBox.cs: fixes for ownerdraw
9345
9346 2005-01-18  Peter Bartok  <pbartok@novell.com>
9347
9348         * TextControl.cs:
9349           - Sentinel is no longer static, each Document gets it's own, this
9350             avoids locking or alternatively overwrite problems when more
9351             than one text control is used simultaneously.
9352           - Switched to use Hilight and HilightText brushes for text selection
9353
9354         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9355
9356 2005-01-18  Peter Bartok  <pbartok@novell.com>
9357
9358         * Control.cs:
9359           - Hooked up the following events:
9360                 o ControlAdded
9361                 o ControlRemoved
9362                 o HandleDestroyed
9363                 o ImeModeChanged
9364                 o ParentChanged
9365                 o TabStopChanged
9366                 o Invalidated
9367                 o SystemColorsChanged
9368                 o ParentFontChanged
9369                 o Move
9370           - Removed debug output
9371           - Added a call to the current theme's ResetDefaults when a color change
9372             is detected
9373         * Form.cs: Now setting the proper ImeMode
9374         * Theme.cs: Defined a method to force recreation of cached resources
9375           and rereading of system defaults (ResetDefaults())
9376         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9377
9378 2005-01-17  Peter Bartok  <pbartok@novell.com>
9379
9380         * Control.cs: Added missing attributes
9381
9382 2005-01-17  Jackson Harper  <jackson@ximian.com>
9383
9384         * TreeNode.cs: Implement editing. Add missing properties selected
9385         and visible.
9386         * TreeView.cs: Implement node editing. Also some fixes to use
9387         Invalidate (invalid area) instead of Refresh when selecting.
9388
9389 2005-01-17  Peter Bartok  <pbartok@novell.com>
9390
9391         * Control.cs:
9392           - Implemented InvokeGotFocus() method
9393           - Implemented InvokeLostFocus() method
9394           - Implemented InvokePaint() method
9395           - Implemented InvokePaintBackground() method
9396           - Implemented InvokeClick() method
9397           - Implemented FindForm() method
9398           - Implemented RectangleToClient() method
9399           - Implemented ClientToRectangle() method
9400           - Implemented ResetBackColor() method
9401           - Implemented ResetCursor() method
9402           - Implemented ResetFont() method
9403           - Implemented ResteForeColor() method
9404           - Implemented ResetImeMode() method
9405           - Implemented ResetLeftToRight() method
9406           - Implemented ResetText() method
9407           - Implemented Scale() methods
9408           - Implemented ScaleCore() method
9409           - Implemented Update() method
9410           - Removed unused variables
9411           - Stubbed AccessibilityNotifyClients and
9412             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9413             with those yet)
9414           - Now setting proper default for RightToLeft property
9415           - Fixed bug in SetClientSizeCore that would cause windows to get
9416             really big
9417           - Now sending Click/DoubleClick events
9418           - Now selecting controls when left mouse button is clicked on
9419             selectable control
9420         * AccessibleEvents.cs: Added
9421         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9422         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9423         * XplatUIWin32.cs: Implemented UpdateWindow() method
9424         * XplatUIX11.cs: Implemented UpdateWindow() method
9425         * Form.cs: Removed stray semicolon causing CS0162 warning
9426         * ThemeWin32Classic.cs: Fixed unused variable warnings
9427         * ScrollableControl.cs: Now calls base method for ScaleCore
9428         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9429           style to avoid interference with internal click handler (which is
9430           different than standard Control click handling)
9431         * RadioButton.cs:
9432           - Now unchecks all sibling radio buttons when control is
9433             selected (Fixes #68756)
9434           - Removed internal tabstop variable, using the one inherited from
9435             Control
9436
9437 2005-01-17  Jackson Harper  <jackson@ximian.com>
9438
9439         * NavigateEventArgs.cs: Fix base type.
9440         * LinkLabel.cs: Sig fix
9441         
9442 2005-01-17  Jackson Harper  <jackson@ximian.com>
9443
9444         * TreeView.cs: Only invalidate the effected nodes bounds when
9445         selecting nodes.
9446
9447 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9448
9449         * XplatUIWin32.cs: fixes Win32 marshaling
9450         * XplatUIX11.cs: fixes method signature
9451
9452 2005-01-17  Peter Bartok  <pbartok@novell.com>
9453
9454         * XplatUIX11.cs: Clean up resources when we no longer need them
9455
9456 2005-01-17  Peter Bartok  <pbartok@novell.com>
9457
9458         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9459           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9460           and DestroyCursor() methods.
9461         * Cursor.cs: Partially implemented, now supports standard cursors;
9462           still contains some debug code
9463         * Cursors.cs: Implemented class
9464         * Control.cs:
9465           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9466             appropriate cursor
9467           - Implemented Cursor property
9468           - Replaced break; with return; more straightforwar and possibly
9469             faster
9470           - Now properly setting the result for WM_HELP
9471         * X11Structs.cs: Added CursorFontShape enum
9472         * XplatUIStructs.cs:
9473           - Added StdCursor enum (to support DefineStdCursor() method)
9474           - Added HitTest enum (to support sending WM_SETCURSOR message)
9475         * XplatUIX11.cs:
9476           - Now sends the WM_SETCURSOR message
9477           - Implemented new cursor methods
9478         * XplatUIOSX.cs: Stubbed new cursor methods
9479         * XplatUIWin32.cs:
9480           - Implemented new cursor methods
9481           - Added GetSystemMetrics function and associated enumeration
9482
9483 2005-01-15  Peter Bartok  <pbartok@novell.com>
9484
9485         * Control.cs:
9486           - WndProc(): Now handles EnableNotifyMessage
9487           - SelectNextControl(): Fixed bug where if no child or sibling
9488             controls exist we looped endlessly
9489
9490 2005-01-14  Jackson Harper  <jackson@ximian.com>
9491
9492         * TreeView.cs: Recalculate the tab pages when a new one is added
9493         so that the proper bounding rects are created.
9494
9495 2005-01-14  Jackson Harper  <jackson@ximian.com>
9496
9497         * TreeView.cs: Draw a gray box instead of a grip in the lower
9498         right hand corner when there are both horizontal and vertical
9499         scroll bars.
9500
9501 2005-01-14  Jackson Harper  <jackson@ximian.com>
9502
9503         * Control.cs: When erasing backgrounds use FromHwnd instead of
9504         FromHdc when there is a NULL wparam. This occurs on the X driver.
9505         * XplatUIX11.cs: Set the wparam to NULL.
9506
9507 2005-01-13  Jackson Harper  <jackson@ximian.com>
9508
9509         * PictureBox.cs: Implement missing methods (except ToString, need
9510         to test that on windows) and events. When visibility is changed we
9511         need to redraw the image because the buffers are killed. When size
9512         is changed refresh if the sizemode needs it.
9513
9514 2005-01-13  Peter Bartok  <pbartok@novell.com>
9515
9516         * Control.cs (SelectNextControl): Was using wrong method to select
9517           a control
9518
9519 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9520
9521         * ComboBox.cs: fixes dropstyle
9522
9523 2005-01-13  Peter Bartok  <pbartok@novell.com>
9524
9525         * Form.cs:
9526           - Implemented Select() override
9527           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9528           - Now sets keyboard focus on startup
9529         * Control.cs (SelectNextControl): Now properly handles directed=true
9530         * TextBoxBase.cs:
9531           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9532           - Added (really bad) focus rectangle (mostly for testing)
9533         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9534           to enforce redraw on focus changes
9535         * ContainerControl.cs:
9536           - Fixed detection of Shift-Tab key presses
9537           - Fixed traversal with arrow keys
9538         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9539           gonna keep this or if it's complete yet
9540         
9541 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9542
9543         * ComboBox.cs: missing properties, fixes
9544
9545 2005-01-13  Peter Bartok  <pbartok@novell.com>
9546
9547         * Panel.cs (ctor): Setting Selectable window style to off
9548         * Splitter.cs (ctor): Setting Selectable window style to off
9549         * GroupBox.cs (ctor): Setting Selectable window style to off
9550         * Label.cs (ctor): Setting Selectable window style to off
9551
9552 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9553
9554         * UpDownBase.cs (InitTimer): If the timer has been already
9555         created, enable it.
9556
9557         Use a TextBox instead of a Label.
9558
9559 2005-01-12  Jackson Harper  <jackson@ximian.com>
9560
9561         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9562         draw the connecting node lines (when ShowLines is true).
9563         * TreeNode.cs: The nodes index can now be updated. This is used
9564         when a node collection is sorted.
9565         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9566         insert or an existing unsorted node collection can be sorted.
9567         
9568 2005-01-12  Peter Bartok  <pbartok@novell.com>
9569
9570         * ContainerControl.cs: Implemented ProcessDialogKeys()
9571
9572 2005-01-12  Peter Bartok  <pbartok@novell.com>
9573
9574         * Control.cs:
9575           - Implemented SelectNextControl() method
9576           - Several focus related bug fixes
9577           - Fixed Docking calculations to match MS documentation and
9578             behaviour
9579
9580 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9581
9582         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9583         bug fixes
9584
9585 2005-01-12  Peter Bartok  <pbartok@novell.com>
9586
9587         * Control.cs:
9588           - Fixed broken Contains() method
9589           - Implemented GetNextControl() method. Finally. This is the pre-
9590             requisite for focus handling.
9591
9592 2005-01-12  Peter Bartok  <pbartok@novell.com>
9593
9594         * OSXStrucs.cs: Added
9595
9596 2005-01-12  Peter Bartok  <pbartok@novell.com>
9597
9598         * XplatUIWin32.cs:
9599           - Removed PeekMessageFlags
9600           - Implemented SetWindowStyle() method
9601         * XplatUIStructs.cs: Added PeekMessageFlags
9602         * X11Structs: Added missing border_width field to XWindowChanges struct
9603         * XplatUIX11.cs:
9604           - PeekMessage: Now throws exception if flags which are not yet
9605             supported are passed
9606           - Implemented SetWindowStyle() method
9607           - Fixed SetZOrder to handle AfterHwnd properly
9608         * XplatUI.cs: Added SetWindowStyle() method
9609         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9610         * Control.cs:
9611           - Implemented UpdateStyles() method
9612           - Implemented UpdateZOrder() method
9613         * XplatUIOSX.cs: Added SetWindowStyle() stub
9614
9615 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9616
9617         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9618         button mouse).
9619
9620
9621 2005-01-11  Jackson Harper  <jackson@ximian.com>
9622
9623         * TreeView.cs: Still need to draw lines to siblings even if out of
9624         the current node is out of the clip.
9625
9626 2005-01-11  Jackson Harper  <jackson@ximian.com>
9627
9628         * TreeView.cs: When setting the hbar/vbar/grip position use
9629         SetBounds so that perform layout is only called once. Also suspend
9630         and resume layout so layout is only done once for all controls.
9631         - Removed some debug fluff
9632         * SizeGrip.cs: Call base implmentation in overriding methods.
9633         - When visibility is changed the drawing buffers are killed so we
9634         need to redraw.
9635
9636 2005-01-11  Jackson Harper  <jackson@ximian.com>
9637
9638         * TreeView.cs: Calculate the open node count while drawing. This
9639         saves us an entire tree traversal for every paint operation. Use
9640         a member var for the open node count so less vars are passed around.
9641
9642 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9643
9644         * MonthCalendar.cs:
9645         - fixed selection to use mousemove, not mouse polling on timer
9646         * ThemeWin32Classic.cs
9647         - removed redundant unused variable "no_more_content"
9648         
9649 2005-01-11  Peter Bartok  <pbartok@novell.com>
9650
9651         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9652           are pending, so it now calls PeekMessage instead of GetMessage;
9653           implemented a incomplete version of PeekMessage
9654         
9655 2005-01-11  Peter Bartok  <pbartok@novell.com>
9656
9657         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9658           I18n issues
9659         * TextBoxBase.cs: Added sending of TextChanged event
9660
9661 2005-01-10  Jackson Harper  <jackson@ximian.com>
9662
9663         * TreeView.cs: Try not to draw outside the clipping rectangle on
9664         each node element.
9665
9666 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9667
9668         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9669
9670 2005-01-10  Jackson Harper  <jackson@ximian.com>
9671
9672         * TreeView.cs:
9673         - Implement fast scrolling. Now only the newly
9674         exposed nodes are drawn and the old image is moved using the
9675         XplatUI::ScrollWindow method.
9676         - Factor in height of nodes when calculating whether or not the
9677         node is in the clipping rect.
9678
9679 2005-01-10  Jackson Harper  <jackson@ximian.com>
9680
9681         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9682
9683 2005-01-10  Peter Bartok  <pbartok@novell.com>
9684
9685         * Application.cs: Added temporary hack to resolve all our resize
9686           required issues on startup. This will get fixed properly at
9687           some point in the future
9688
9689 2005-01-10  Jackson Harper  <jackson@ximian.com>
9690
9691         * SizeGrip.cs: New internal class that is used as a sizing
9692         grip control...hence the name.
9693
9694 2005-01-10  Peter Bartok  <pbartok@novell.com>
9695
9696         * Control.cs: Implemented proper TabIndex handling, now assigning
9697           a tabindex when a control is added to a container
9698         * GroupBox.cs (ctor): Now sets the Container style bit, required
9699           for Control.GetNextControl()
9700
9701 2005-01-09  Jackson Harper  <jackson@ximian.com>
9702
9703         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9704
9705 2005-01-09  Peter Bartok <pbartok@novell.com>
9706
9707         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9708           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9709           an overload for ScrollWindow to allow only scrolling a rectangle
9710
9711 2005-01-09  Peter Bartok <pbartok@novell.com>
9712
9713         * Form.cs:
9714           - Implemented SetDesktopBounds method
9715           - Implemented SetDesktopLocation method
9716
9717 2005-01-08  Jackson Harper  <jackson@ximian.com>
9718
9719         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9720         the node count has changed, this removes to VScroll::Refresh calls
9721         when drawing.
9722
9723 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9724
9725         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9726
9727 2005-01-07  Jackson Harper  <jackson@ximian.com>
9728
9729         * TreeNode.cs: Just update the single node when it is
9730         checked. Don't refresh after toggling, the Expand/Collapse already
9731         handles this.
9732         * TreeView.cs: Respect clipping a little more when drawing. Try
9733         not to redraw things that don't need to be redrawn. Just hide the
9734         scrollbars when they are no longer needed instead of removing
9735         them, so they don't have to be created again and again.
9736         
9737 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9738
9739         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9740         coordinates to window space to place the caret properly, FIXED.
9741         Implement GetWindowState & SetWindowState
9742
9743 2005-01-06  Peter Bartok <pbartok@novell.com>
9744
9745         * Form.cs:
9746           - Implemented ClientSize property
9747           - Implemented DesktopBounds property
9748           - Implemented DesktopLocation property
9749           - Implemented IsRestrictedWindow property
9750           - Implemented Size property
9751           - Implemented TopLevel property
9752           - Implemented FormWindowState property
9753         * Control.cs:
9754           - Implemented GetTopLevel() method
9755           - Implemented SetTopLevel() method
9756         * X11Structs.cs (Atom):
9757           - Added AnyPropertyType definition
9758           - Added MapState definiton and updated XWindowAttribute struct
9759         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9760         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9761         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9762         * XplatUIWin32.cs:
9763           - Implemented GetWindowState() and SetWindowState() methods
9764           - Fixed Win32GetWindowLong return type
9765         * XplatUIX11.cs:
9766           - Introduced central function for sending NET_WM messages
9767           - Implemented GetWindowState() and SetWindowState() methods
9768         * TextBoxBase.cs (set_Lines):
9769           - Now uses Foreground color for text added via Text property (Duh!)
9770           - Added code to remember programmatically requested size (fixes
9771             behaviour when Multiline is set after Size)
9772           - Added AutoSize logic
9773
9774 2005-01-06  Jackson Harper  <jackson@ximian.com>
9775
9776         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9777
9778 2005-01-06  Jackson Harper  <jackson@ximian.com>
9779
9780         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9781         set to less then 0.
9782
9783 2005-01-06  Jackson Harper  <jackson@ximian.com>
9784
9785         * ScrollableControl.cs: Lazy init the scrollbars.
9786         
9787 2005-01-06  Jackson Harper  <jackson@ximian.com>
9788
9789         * Theme.cs: Speed up getting pens and solid brushes, by using
9790         their ARGB as a hash instead of tostring and not calling Contains.
9791
9792 2005-01-06  Peter Bartok <pbartok@novell.com>
9793
9794         * Form.cs:
9795           - Implemented OnActivated and OnDeactivate event trigger
9796           - Implemented Activate() method
9797           - Fixed ShowDialog() to activate the form that was active before
9798             the dialog was shown
9799         * XplatUIX11.cs:
9800           - Added global active_window var that tracks the currently active
9801             X11 window
9802           - Now always grabs Property changes from the root window to always
9803             catch changes on the active window property
9804           - Added code to PropertyNotify handler to send Active/Inactive
9805             messages when state changes. This puts X11 and Win32 en par on
9806             WM_ACTIVATE notifications (except for double notifications when
9807             the user clicks away from our modal window to another one of our
9808             windows)
9809
9810 2005-01-05  Jackson Harper  <jackson@ximian.com>
9811
9812         * ImageList.cs: Implment ctor
9813
9814 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9815
9816         * XplatUIOSX.cs: Implement Activate/SetTopmost
9817
9818 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9819
9820         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9821
9822 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9823
9824         * XplatUIOSX.cs: Implement GetActive/SetFocus.
9825
9826 2005-01-05  Peter Bartok <pbartok@novell.com>
9827
9828         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9829           XplatUIOSX.cs: Added GetActive method to return the currently
9830           active window for the application (or null, if none is active)
9831         * Form.cs:
9832           - Implemented ActiveForm
9833           - Commented out owner assignment for modal dialogs (causes problems
9834             on Win32, since the owner will be disabled)
9835           - Reworked some Active/Focus handling (still incomplete)
9836         * CommonDialog.cs: Commented out owner assignment for modal dialogs
9837           (causes problems on Win32, since the owner will be disabled)
9838         * IWin32Window: Added ComVisible attribute
9839
9840 2005-01-05  Peter Bartok <pbartok@novell.com>
9841
9842         * ToolTip.cs (WndProc): Enable setting focus now that we have the
9843           required XplatUI functions.
9844
9845 2005-01-05  Peter Bartok <pbartok@novell.com>
9846
9847         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9848           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9849           to implement focus and activation handling; still incomplete and
9850           with debug output
9851
9852 2005-01-04  Peter Bartok <pbartok@novell.com>
9853
9854         * TextBoxBase.cs: Changed access level for Document property to
9855           match switch to internal for TextControl
9856
9857 2005-01-04  Peter Bartok <pbartok@novell.com>
9858
9859         * AccessibleObject: Added ComVisible attribute
9860
9861 2005-01-04  Jackson Harper  <jackson@ximian.com>
9862
9863         * X11Keyboard.cs: Remove unneeded var.
9864
9865 2005-01-04  Jackson Harper  <jackson@ximian.com>
9866
9867         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9868         but PAINT.
9869         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9870         ClientMessage. This makes apps exit cleanly (more often).
9871         
9872 2005-01-04  Jackson Harper  <jackson@ximian.com>
9873
9874         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9875         handling focus, return correct colors and fonts,
9876         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9877         handle selection, horizontal scrolling, and mouse interaction.
9878
9879 2005-01-04  Peter Bartok <pbartok@novell.com>
9880
9881         * ICommandExecutor.cs: Added
9882         * IDataGridColumnStyleEditingNotificationService.cs: Added
9883         * IFeatureSupport.cs: Added
9884         * IFileReaderService.cs: Added
9885         * IDataObject.cs: Added ComVisible attribute
9886         * AmbientProperties.cs: Added
9887         * BaseCollection.cs: Added missing attributes
9888         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9889         * BaseCollection.cs: Added missing attributes
9890         * Binding.cs: Added TypeConverter attribute
9891         * BindingContext.cs: Added DefaultEvent attribute
9892         * BindingsCollection.cs: Added DefaultEvent attribute
9893         * Button.cs: Added DefaultValue attribute
9894         * DragEventArgs.cs: Added ComVisible attribute
9895         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9896         * KeyEventArgs.cs: Added ComVisible attribute
9897         * KeyPressEventArgs.cs: Added ComVisible attribute
9898         * MouseEventArgs.cs: Added ComVisible attribute
9899         * NavigateEventArgs.cs: Added
9900         * NavigateEventHandler.cs: Added
9901         * FeatureSupport.cs: Added
9902         * OSFeature.cs: Added
9903         * Theme.cs: Added abstract Version property to support OSFeature
9904         * ThemeWin32Classic.cs: Added Version property to
9905           support OSFeature.Themes
9906         * ProgressBar.cs: Removed OnPaintBackground override, not required since
9907           the proper styles to avoid background drawing are set, also doesn't
9908           match MS signature
9909         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9910         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9911         * ScrollEventArgs.cs: Added ComVisible attribute
9912         * SplitterEventArgs.cs: Added ComVisible attribute
9913         * AccessibleSelection.cs: Added Flags attribute
9914         * Appearance.cs: Added ComVisible attribute
9915         * Border3DSide.cs: Added ComVisible attribute
9916         * Border3DStyle.cs: Added ComVisible attribute
9917         * BorderStyle.cs: Added ComVisible attribute
9918         * DragAction.cs: Added ComVisible attribute
9919         * ErrorBlinkStyle.cs: Added
9920         * ScrollEventType.cs: Added ComVisible attribute
9921         * AnchorStyles.cs: Added Editor attribute
9922         * DockStyle.cs: Added Editor attribute
9923         * HorizontalAlignment.cs: Added ComVisible attribute
9924         * HelpEventArgs.cs: Added ComVisible attribute
9925         * PaintEventArgs.cs: Added IDisposable
9926
9927 2005-01-04  Peter Bartok <pbartok@novell.com>
9928
9929         * TextControl.cs: Switched Line, LineTag and Document classes to
9930           internal
9931
9932 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9933
9934         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9935         Simple mode, fixes, IntegralHeight, etc.
9936
9937 2005-01-04  Peter Bartok <pbartok@novell.com>
9938
9939         * TextBoxBase.cs: Using proper font variable now
9940
9941 2005-01-04  Peter Bartok <pbartok@novell.com>
9942
9943         * Form.cs (ShowDialog): Set parent to owner, if provided
9944         * GroupBox.cs: Removed unused vars
9945         * TextControl.cs:
9946           - Added GetHashCode() for Document and LineTag classes
9947           - Removed unused variables
9948           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9949             to allow translation between continuous char position and line/pos
9950         * CheckBox.cs: Removed vars that are provided by base class
9951         * RadioButton.cs: Removed vars that are provided by base class, added
9952           new keyword where required
9953         * LinkLabel.cs: Added new keyword where required
9954         * Control.cs (WndProc): Removed unused variable
9955         * TextBoxBase.cs:
9956           - Finished SelectionLength property
9957           - Implemented SelectionStart property
9958           - Implemented Text property
9959           - Removed unused vars
9960         * MessageBox.cs: Added new keyword where required
9961         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9962           WndProc signature
9963         * MenuAPI.cs: Added new keyword where required
9964         * ButtonBase.cs: Removed vars that are provided by base class, added
9965           new keyword where required
9966         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9967           argument to double, to allow compiling with csc 2.0 (Atsushi ran
9968           into this)
9969         * Application.cs (Run): Now triggers the ThreadExit event
9970         * CommonDialog.cs: Added new keyword where required; now properly sets
9971           parent (owner) for dialog
9972         * XplatUIX11.cs: Commented out unused vars
9973         * StatusBar.cs: Fixed signature for Text property
9974         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9975
9976 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9977
9978         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9979         TrackBar.cs, MonthCalendar.cs: remove unused vars
9980
9981 2005-01-03  Jackson Harper  <jackson@ximian.com>
9982
9983         * ThemeWin32Classic.cs:
9984         * X11Keyboard.cs: Remove unused vars.
9985
9986 2005-01-03  Peter Bartok  <pbartok@novell.com>
9987
9988         * TextBox.cs:
9989           - set_Text: Tied into TextControl
9990           - set_TextAlignment: Tied into TextControl
9991         * TextControl.cs:
9992           - Added alignment properties and implemented alignment handling
9993             and drawing (still has a bug, not generating proper expose events)
9994           - Added new Line() constructor to allow passing the line alignment
9995           - Fixed selection setting, properly handling end<start now
9996           - Added aligment considerations to RecalculateDocument()
9997         * TextBoxBase.cs:
9998           - Now properly enforces control height for single line controls
9999           - Added support for CharacterCasing
10000           - Added IsInputKey override
10001           - Fixed Keys.Enter logic
10002           - Added SetBoundsCore override
10003           - Fixed mouse selection handling
10004
10005 2005-01-03  Jackson Harper  <jackson@ximian.com>
10006
10007         * TreeView.cs:
10008           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10009           - Checkboxes are always aligned to the bottom of the node,
10010           regardless of item height.
10011           - Use the node bounds to draw the text so we can center it when
10012           the item height is greater then the font height.
10013           - Node::Bounds are only the text part of the node.
10014         * TreeNode.cs: New method to combine collapsing and unchecking all
10015           nodes recursively.
10016
10017 2005-01-02  Jackson Harper  <jackson@ximian.com>
10018
10019         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10020         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10021         tree when a check is changed. TODO: Only refresh the checked node.
10022
10023 2004-12-30  Jackson Harper  <jackson@ximian.com>
10024
10025         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10026         * TreeNode.cs: When collapsing make sure to never collapse the
10027         root node.
10028
10029 2004-12-29  Jackson Harper  <jackson@ximian.com>
10030
10031         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10032         
10033 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10034
10035         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10036
10037 2004-12-28  Peter Bartok  <pbartok@novell.com>
10038
10039         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10040           not yet assigned
10041
10042 2004-12-28  Peter Bartok  <pbartok@novell.com>
10043
10044         * Control.cs (WndProc): Added WM_HELP handler, now generates
10045           HelpRequested event
10046         * Form.cs: Added HelpButton property and required support code
10047         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10048
10049 2004-12-28  Peter Bartok  <pbartok@novell.com>
10050
10051         * CommonDialog.cs:
10052           - Made DialogForm.owner variable internal
10053           - Added check to ensure owner form is set before setting
10054             owner properties in CreateParams
10055
10056 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10057
10058         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10059           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10060           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10061           system to support borderless/titleless windows (implements menus).
10062           Fix GetWindowPos.  Implement initial background color support for
10063           views.
10064
10065 2004-12-28  Peter Bartok  <pbartok@novell.com>
10066
10067         * Form.cs (get_CreateParams): Make sure we have an owner before using
10068           the owner variable. Implement proper default if no owner exists
10069
10070 2004-12-28  Peter Bartok  <pbartok@novell.com>
10071
10072         * In preparation for making Managed.Windows.Forms the default build target
10073           for System.Windows.Forms, the following stubbed files were added.
10074           Dialogs are currently being implemented by contributors and are only
10075           short-term place holders.
10076         * ColorDialog.cs: Initial check-in (minmal stub)
10077         * DataGrid.cs: Initial check-in (minimal stub)
10078         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10079         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10080         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10081         * FontDialog.cs: Initial check-in (minimal stub)
10082         * FileDialog.cs: Initial check-in (minimal stub)
10083         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10084         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10085         * OpenFileDialog: Initial check-in (minimal stub)
10086         * IComponentEditorPageSite.cs: Initial check-in
10087         * Splitter.cs: Initial check-in (for Jackson)
10088         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10089         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10090         * TextBox.cs: Initial check-in; still needs some wiring to
10091           TextControl backend
10092         * Form.cs: Implemented ControlBox property
10093         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10094         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10095         * TextControl.cs: Added selection functionality; added todo header
10096         * TextBoxBase.cs:
10097           - Implemented Lines property
10098           - Implemented TextHeight property
10099           - Implemented SelectedText property
10100           - Implemented SelectionLength property
10101           - Implemented SelectAll method
10102           - Implemented ToString method
10103           - Removed and cleaned up some debug code
10104           - Implemented (still buggy) mouse text selection
10105
10106 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10107
10108         * ComboBox.cs: Complete DropDownList implementation, fixes.
10109
10110 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10111
10112         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10113         * ComboBoxStyle.cs: ComboBoxStyle enum
10114         * ComboBox.cs: Initial work on ComboBox control
10115
10116 2004-12-21  Peter Bartok  <pbartok@novell.com>
10117
10118         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10119           forward so that anything that creates a window gets the default,
10120           also no longer uses Visible property in CreateParams to avoid
10121           walking up the parent chain and possibly get the wrong visible
10122           status. Fixed IsVisible to no longer walk up to the parent.
10123
10124 2004-12-21  Peter Bartok  <pbartok@novell.com>
10125
10126         * Form.cs (ShowDialog): Unset modality for the proper window
10127  
10128 2004-12-20  Peter Bartok  <pbartok@novell.com>
10129
10130         * CommonDialog.cs: Initial check-in
10131
10132 2004-12-20  Peter Bartok  <pbartok@novell.com>
10133
10134         * Control.cs (Visible): Now uses the parent window instead of the
10135           client area window for the property
10136
10137         * Form.cs
10138           - ShowDialog(): Now uses the proper window for modality
10139           - The default visibility state for the form parent is now false. This
10140             will prevent the user from seeing all the changes to the form and
10141             its controls before the application hits Application.Run()
10142           - Removed some stale commented out code
10143
10144         * NativeWindow.cs:
10145           - Added FindWindow() method to have a method to check for existence
10146             of a window handle
10147           - Added ability to override default exception handling (for example
10148             when debugging with VS.Net; to do this the ExternalExceptionHandler
10149             define must be set
10150           - Removed some useless debug output
10151
10152         * XplatUIX11.cs:
10153           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10154             not working as expected
10155           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10156             property to allow switching back to the modal window if focus is
10157             given to another one of our windows (Application Modal)
10158           - Now only sets override_redirect if we create a window
10159             without WS_CAPTION
10160           - Moved EventMask selection before mapping of newly created window
10161             so we can catch the map event as well
10162           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10163           - Added various Atom related DllImports
10164           - Implemented Exit() method
10165           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10166             in the CreateParams
10167
10168         * MessageBox.cs: Now properly deals with the FormParent window by
10169           providing an override the FormParent CreateParams property to
10170           set as POPUP instead of OVERLAPPED window.
10171
10172 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10173
10174         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10175         Minor code cleanup.
10176
10177 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10178         
10179         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10180
10181 2004-12-18  Peter Bartok  <pbartok@novell.com>
10182
10183         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10184           implementing SetModal() method
10185
10186 2004-12-18  Peter Bartok  <pbartok@novell.com>
10187
10188         * X11Structs.cs (XGCValues): Fixed type of function element
10189         * XplatUI.cs: Added ScrollWindow() method
10190         * XplatUIDriver.cs: Added ScrollWindow() abstract
10191         * XplatUIWin32.cs: Implemented ScrollWindow() method
10192         * XplatUIX11.cs: Implemented ScrollWindow() method
10193         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10194
10195 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10196
10197         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10198         Some more keyboard support (INCOMPLETE)
10199
10200 2004-12-17  Peter Bartok  <pbartok@novell.com>
10201
10202         * TextControl.cs:
10203         - Added color attribute to line tags.
10204         - Added color argument to all functions dealing with tags
10205         - Added color argument support to various functions
10206         - Fixed miss-calculation of baseline/shift in certain circumstances
10207
10208         * TextBoxBase.cs: Added new color option to test code
10209
10210 2004-12-17  Jackson Harper  <jackson@ximian.com>
10211
10212         * TreeNode.cs:
10213         * MonthCalendar.cs: Signature fixes
10214
10215 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10216
10217         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10218         keyboard event moved it.  Create a new graphics context for each paint resolves this
10219
10220 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10221
10222         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10223         Make caret exist and go blink blink.  Initial keyboard support.
10224         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10225         works.
10226
10227 2004-12-17  Jackson Harper  <jackson@ximian.com>
10228
10229         * XplatUIStructs.cs: Updated set of virtual keycodes.
10230         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10231
10232 2004-12-17  Jackson Harper  <jackson@ximian.com>
10233
10234         * XplatUIX11.cs: Prune old keyboard code.
10235
10236 2004-12-17  Jackson Harper  <jackson@ximian.com>
10237
10238         * XplatUIX11.cs: When generating mouse wparams get the modifier
10239         keys from the ModifierKeys property.
10240
10241 2004-12-17  Jackson Harper  <jackson@ximian.com>
10242
10243         * X11Keyboard.cs: Send up/down input when generating
10244         messages. Remove some unused vars.
10245
10246 2004-12-17  Jackson Harper  <jackson@ximian.com>
10247
10248         * TabControl.cs:
10249         * TreeView.cs: get rid of warnings.
10250
10251 2004-12-17  Jackson Harper  <jackson@ximian.com>
10252
10253         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10254
10255 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10256
10257         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10258           CheckedListBox.cs: Implementation
10259
10260 2004-12-17  Peter Bartok  <pbartok@novell.com>
10261
10262         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10263
10264 2004-12-16  Peter Bartok  <pbartok@novell.com>
10265
10266         * TextControl.cs:
10267           - InsertCharAtCaret(): Fixed start pos fixup
10268           - CaretLine_get: No longer derives the line from the tag, the tag
10269             could be stale if lines in the document have been added or deleted
10270           - RebalanceAfterDelete(): Fixed bug in balancing code
10271           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10272           - Line.Streamline(): Now can also elminate leading empty tags
10273           - DumpTree(): Added a few more tests and prevented exception on
10274             uninitialized data
10275           - Added Debug section for Combining lines
10276           - Delete(): Now copies all remaining properties of a line
10277           
10278         * TextBoxBase.cs:
10279           - Left mousebutton now sets the caret (and middle button still acts
10280             as formatting tester, which must go away soon)
10281           - Added Debug section for Deleting/Combining lines
10282           - Fixed calculations for UpdateView after Combining lines
10283
10284 2004-12-16  Peter Bartok  <pbartok@novell.com>
10285
10286         * TextControl.cs: Now properly aligns text on a baseline, using the
10287           new XplatUI.GetFontMetrics() method. Simplified several calculations
10288         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10289           defined
10290
10291 2004-12-16  Peter Bartok  <pbartok@novell.com>
10292
10293         * XplatUI.cs: Added GetFontMetrics() method
10294         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10295         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10296           into libgdiplus, our private GetFontMetrics function
10297         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10298         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10299
10300 2004-12-16  Jackson Harper  <jackson@ximain.com>
10301
10302         * XplatUIStruct.cs: Add enum for dead keys
10303         * X11Keyboard.cs: Map and unmap dead keys.
10304
10305 2004-12-16  Jackson Harper  <jackson@ximian.com>
10306
10307         * X11Keyboard.cs: Detect and use the num lock mask.
10308
10309 2004-12-16  Peter Bartok  <pbartok@novell.com>
10310
10311         * Control.cs (CreateGraphics): Added check to make sure the
10312           handle of the window exists before calling Graphics.FromHwnd()
10313
10314 2004-12-16  Peter Bartok  <pbartok@novell.com>
10315
10316         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10317           contains a lot of code that's not supposed to be there for the
10318           real thing, but required for developing/testing the textbox
10319           backend.
10320
10321 2004-12-16  Peter Bartok  <pbartok@novell.com>
10322
10323         * TextControl.cs:
10324         - Fixed Streamline method
10325         - Added FindTag method to Line
10326         - Added DumpTree method for debugging
10327         - Added DecrementLines() method for deleting lines
10328         - Fixed UpdateView to update the cursor to end-of-line on single-line
10329           updates
10330         - Added PositionCaret() method
10331         - Fixed MoveCaret(LineDown) to move into the last line, too
10332         - Added InsertChar overload
10333         - Fixed InsertChar tag offset calculations
10334         - Added DeleteChar() method
10335         - Added Combine() method for folding lines
10336         - Fixed Delete() method, no longer allocates wasted Line object and
10337           now copies all properties when swapping nodes
10338         - Delete() method now updates document line counter
10339
10340 2004-12-15  Jackson Harper  <jackson@ximian.com>
10341
10342         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10343         * X11Keyboard.cs: Expose the currently selected modifier keys
10344         through a property.
10345
10346 2004-12-15  Peter Bartok  <pbartok@novell.com>
10347
10348         * TextControl.cs: Initial check-in. Still incomplete
10349
10350 2004-12-15  Jackson Harper  <jackson@ximian.com>
10351
10352         * TreeNode.cs:
10353         * TreeView.cs: Fix build on csc (second time today ;-))
10354
10355 2004-12-15  Jackson Harper  <jackson@ximian.com>
10356
10357         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10358         is calculated and use this for click testing.
10359         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10360
10361 2004-12-15  Jackson Harper  <jackson@ximian.com>
10362
10363         * TreeView.cs: Pass the nodes image index to the image list when
10364         drawing that image.
10365
10366 2004-12-15  Jackson Harper  <jackson@ximian.com>
10367
10368         * X11Keyboard.cs: Set messages hwnd.
10369         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10370         post_message calls.
10371
10372 2004-12-15  Jackson Harper  <jackson@ximian.com>
10373
10374         * X11Keyboard.cs: Fix to compile with csc.
10375         
10376 2004-12-15  Jackson Harper  <jackson@ximian.com>
10377
10378         * X11Structs.cs: Add key mask values
10379         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10380         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10381         down/up foo into WM_CHAR foo
10382         * KeyboardLayouts.cs: Common keyboard layouts
10383         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10384         post messages into the main queue.
10385
10386 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10387
10388         * Button.cs: implement ProcessMnemonic
10389         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10390           brushes everytime
10391         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10392         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10393
10394 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10395         
10396         * MonthCalendar.cs: Implemented click-hold for next/previous month
10397           and date selection
10398           
10399 2004-12-11  Peter Bartok  <pbartok@novell.com>
10400
10401         * X11Structs.cs:
10402           - Added XKeyboardState (moved from XplatUIX11.cs)
10403           - Added XCreateGC related enums and structures
10404           - Added GXFunction for XSetFunction
10405
10406         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10407
10408         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10409           CaretVisible() calls
10410
10411         * ToolTip.cs: Added code to prevent stealing focus from app windows
10412
10413         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10414           DestroyCaret, SetCaretPos and CaretVisible)
10415
10416         * XplatUIX11.cs:
10417           - Added implementation for caret functions
10418           - Moved hover variables into a struct, to make it a bit easier
10419             on the eyes and to debug
10420           - Removed XKeyboardState (moved to XplatUIX11.cs)
10421           - Moved Keyboard properties into the properties region
10422
10423         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10424           call to get a graphics context for our control
10425
10426         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10427
10428         * TreeView.cs: Fixed bug. No matter what color was set it would always
10429           return SystemColors.Window
10430
10431         * XplatUIWin32.cs: Implemented caret overrides
10432
10433 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10434
10435         * ListBox.cs: fire events, implement missing methods and properties,
10436         sorting.
10437
10438 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10439
10440         * MonthCalendar.cs: invalidation bug fixing
10441         * ThemeWin32Classic.cs: paint fixing
10442
10443 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10444
10445         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10446         prepare the CGContextRef there now.
10447
10448 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10449
10450         * MonthCalendar.cs:
10451           - optimisationL only invalidate areas that have changed
10452         * ThemeWin32Classic.cs:
10453           - only paint parts that intersect with clip_area
10454
10455 2004-12-09  Peter Bartok  <pbartok@novell.com>
10456
10457         * Application.cs: Undid changes from r37004 which cause problems
10458         on X11
10459
10460 2004-12-09  Ravindra  <rkumar@novell.com>
10461
10462         * ToolBar.cs: Added support for displaying ContextMenu
10463         attached to a button on ToolBar.
10464         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10465         property.
10466
10467 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10468
10469         * Label.cs: autosize works in text change and removes unnecessary
10470         invalidate
10471
10472 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10473
10474         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10475         remove warnings
10476
10477 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10478
10479         * XplatUIOSX.cs: Added mouse move/click/grab support
10480         Remove some debugging WriteLines not needed anymore.
10481         Add window resizing/positioning.
10482         Fix visibility on reparenting.
10483
10484 2004-12-08  Peter Bartok  <pbartok@novell.com>
10485
10486         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10487
10488 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10489
10490         * XplatUIOSX.cs: Initial checkin
10491         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10492
10493 2004-12-03  Ravindra <rkumar@novell.com>
10494
10495         * ListView.cs: Added some keybindings and fixed scrolling.
10496         ScrollBars listen to ValueChanged event instead of Scroll
10497         Event. This would let us take care of all changes being
10498         done in the scrollbars' values programmatically or manually.
10499         * ListView.cs (CanMultiselect): Added a check for shift key.
10500         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10501         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10502         of ListViewSubItemCollection as well.
10503
10504 2004-12-06  Peter Bartok <pbartok@novell.com>
10505
10506         * Control.cs (Parent): Added check and exception to prevent
10507         circular parenting
10508
10509 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10510
10511         * ListBox.cs: implemented clipping, selection single and multiple,
10512         bug fixing
10513
10514 2004-12-03  Ravindra <rkumar@novell.com>
10515
10516         * ListView.cs (ListView_KeyDown):
10517         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10518         when CTRL key is pressed.
10519         * ListViewItem.cs (Selected): Fixed setting the property.
10520
10521 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10522
10523         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10524
10525         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10526         MinimizeBox, ShowInTaskbar, TopMost properties.
10527
10528         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10529         will be implemented).
10530
10531 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10532
10533         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10534
10535         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10536         tests.
10537         
10538         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10539         
10540         * TreeView.cs: BackColor is Colors.Window.
10541
10542 2004-12-01  Jackson Harper  <jackson@ximian.com>
10543
10544         * TreeView.cs: When resizing the tree if the user is making it
10545         smaller we don't get expose events, so we need to handle adding
10546         the horizontal scrollbar in the size changed handler as well as
10547         the expose handler.
10548
10549 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10550
10551         * DrawItemState.cs: fixes wrong enum values
10552
10553 2004-12-01  Jackson Harper  <jackson@ximian.com>
10554
10555         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10556
10557 2004-12-01  Jackson Harper  <jackson@ximian.com>
10558
10559         * NodeLabelEditEventArgs.cs:
10560         * NodeLabelEditEventHandler.cs:
10561         * OpenTreeNodeEnumerator.cs:
10562         * TreeNode.cs:
10563         * TreeNodeCollection.cs:
10564         * TreeView.cs:
10565         * TreeViewAction.cs:
10566         * TreeViewCancelEventArgs.cs:
10567         * TreeViewCancelEventHandler.cs:
10568         * TreeViewEventArgs.cs:
10569         * TreeViewEventHandler.cs: Initial implementation.
10570
10571 2004-12-01  Ravindra <rkumar@novell.com>
10572
10573         * ListView.cs (CalculateListView): Fixed scrolling related
10574         calculations. Also, removed some debug statements from other
10575         places.
10576         * ListViewItem.cs: Changed access to 'selected' instance variable
10577         from private to internal.
10578         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10579
10580 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10581
10582         * ThemeWin32Classic.cs: remove cache of brush and pens for
10583         specific controls and use the global system, fixes scrollbutton
10584         bugs (for small sizes, disabled, etc)
10585         
10586         * ScrollBar.cs: does not show the thumb for very small controls
10587         (as MS) and allow smaller buttons that the regular size
10588
10589 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10590
10591         * UpDownBase.cs: Add abstract methods for the interface.
10592         Add new virtual methods (need to be hooked up to TextEntry when it
10593         exists).
10594         Add override methods for most features.
10595         Computes the size, forces the height of the text entry.
10596
10597         * NumericUpDown.cs: Put here the current testing code.
10598
10599         * Set eol-style property on all files that do not have mixed line
10600         endings, to minimize the future problems.  There are still a few
10601         files with mixed endings, and someone should choose whether they
10602         want to move it or not.
10603
10604 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10605
10606         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10607         System.Colors
10608         
10609 2004-11-30  Ravindra <rkumar@novell.com>
10610
10611         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10612         drawing and replaced use of SystemColors by theme colors.
10613         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10614         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10615         same ListViewItem is being added more than once.
10616
10617 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10618
10619         * MonthCalendar.cs:
10620           - ControlStyles love to make the control not flicker
10621           
10622 2004-11-30  Peter Bartok  <pbartok@novell.com>
10623
10624         * CharacterCasing.cs: Added
10625
10626 2004-11-29  Peter Bartok  <pbartok@novell.com>
10627
10628         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10629           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10630           I am removing these files as they conflict with already completed
10631           work. While it is fantastic to get contributions to MWF, I
10632           respectfully ask that everyone please coordinate their contributions
10633           through mono-winforms-list or #mono-winforms at this time. We're
10634           explicitly avoiding stubbing and don't want controls that don't have
10635           their basic functionality implemented in svn. Please also see
10636           http://www.mono-project.com/contributing/winforms.html
10637
10638
10639 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10640
10641         * Application.cs (ModalRun): Don't hang after exit.
10642
10643         * Theme.cs: New TreeViewDefaultSize property.
10644
10645         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10646         with less hardcoded SystemColors constant.
10647         Implemented TreeViewDefaultSize.
10648
10649         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10650         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10651
10652
10653 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10654
10655         * MonthCalendar.cs:
10656           - Fix NextMonthDate and PrevMonthDate click moving calendar
10657
10658 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10659
10660         * MonthCalendar.cs:
10661           - Fix usage of ScrollChange Property when scrolling months
10662
10663 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10664
10665         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10666          - Fixes menu destroying
10667          - Support adding and removing items on already created menus
10668
10669 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10670
10671         * MonthCalendar.cs:
10672           - Re-worked all bolded dates handling to match win32
10673         * ThemeWin32Classic.cs:
10674           - Fixed rendering with bolded dates
10675
10676 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10677
10678         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10679         - Horizontal scroolbar
10680         - Multicolumn
10681         - Fixes
10682
10683
10684 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10685
10686         * MonthCalendar.cs:
10687           - Fix Usage of MaxSelectionCount from SelectionRange
10688           - Fixed Shift + Cursor Selection
10689           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10690           - Fixed normal cursor selection to be compat with win32
10691           - Fixed Shift + Mouse Click selection
10692
10693 2004-11-24  Peter Bartok <pbartok@novell.com>
10694
10695         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10696         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10697         * XplatUIX11.cs:
10698           - CreatedKeyBoardMsg now updates keystate with Alt key
10699           - Added workaround for timer crash to CheckTimers, Jackson will
10700             develop a proper fix and check in later
10701           - Implemented DispatchMessage
10702           - Removed calling the native window proc from GetMessage (call
10703             now moved to DispatchMessage)
10704
10705         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10706           the keydata (Fixes bug #69831)
10707
10708         * XplatUIWin32.cs:
10709           - (DispatchMessage): Switched to return IntPtr
10710           - Added DllImport for SetFocus
10711
10712 2004-11-24  Ravindra <rkumar@novell.com>
10713
10714         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10715         background drawing.
10716         * ListViewItem.cs: Fixed various properties, calculations
10717         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10718         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10719         and some internal properties. Fixed MouseDown handler and Paint
10720         method.
10721
10722 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10723
10724         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10725
10726 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10727
10728         * ContainerControl.cs: correct accidental check in of local changes
10729
10730 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10731
10732         * ThemeWin32Classic.cs:
10733                 - Fixed Drawing Last month in grid (sometimes not showing)
10734         * MonthCalendar.cs:
10735                 - Fixed title width calculation bug (makeing title small)
10736
10737 2004-11-23  Peter Bartok <pbartok@novell.com>
10738
10739         * XplatUIX11.cs:
10740           - Added generation of WM_MOUSEHOVER event
10741           - Added missing assignment of async_method atom
10742           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10743
10744 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10745
10746         * ThemeWin32Classic.cs:
10747                 - Fixed Drawing of today circle when showtodaycircle not set
10748                 - fixed drawing of first and last month in the grid (gay dates)
10749         * MonthCalendar.cs:
10750                 - Fixed Drawing of today circle
10751                 - Fixed drawing of grady dates
10752                 - Fixed HitTest for today link when ShowToday set to false
10753                 - Fixed DefaultSize to obey ShowToday
10754
10755 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10756
10757         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10758         * System.Windows.Forms/Theme.cs
10759         * MonthCalendar.cs: added for MonthCalendar
10760         * SelectionRange.cs: added for MonthCalendar
10761         * Day.cs: added for MonthCalendar: added for MonthCalendar
10762         * DateRangeEventArgs.cs: added for MonthCalendar
10763         * DateRangeEventHandler.cs: added for MonthCalendar
10764
10765 2004-11-22  Ravindra <rkumar@novell.com>
10766
10767         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10768         property.
10769
10770 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10771
10772         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10773         event handler.
10774         
10775         * NumericUpDown.cs: Added new implementation.
10776         * UpDownBase.cs: Added new implementation.
10777
10778         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10779         implementations.
10780         
10781         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10782         implementations.
10783
10784         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10785         methods.
10786
10787 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
10788
10789         * Timer.cs  (Dispose): Should call the base dispose when
10790         overriding.
10791
10792 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10793
10794         * ScrollBar.cs: updates thumb position when max, min or increment
10795         is changed
10796
10797 2004-11-21  Ravindra <rkumar@novell.com>
10798
10799         * ListView.cs: Implemented item selection, activation and
10800         column header style. Fixed properties to do a redraw, if
10801         required. Added support for MouseHover, DoubleClick, KeyDown
10802         and KeyUp event handling and some minor fixes.
10803         * ListViewItem.cs: Fixed constructor.
10804         * ThemeWin32Classic.cs: Improved drawing for ListView.
10805
10806 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10807
10808         * ThemeWin32Classic.cs: initial listbox drawing code
10809         * DrawMode.cs: new enumerator
10810         * ListControl.cs: stubbed class
10811         * ListBox.cs: initial implementation
10812         * Theme.cs: new methods definitions
10813         * SelectionMode.cs: new enumerator
10814
10815 2004-11-17  Peter Bartok  <pbartok@novell.com>
10816
10817         * XplatUIWin32.cs: Added double-click events to the class style
10818         * Control.cs (WndProc):
10819           - Added handling of click-count to MouseDown/ MouseUp events.
10820           - Added handling of middle and right mouse buttons
10821           - Removed old debug code
10822
10823 2004-11-17  Jackson Harper  <jackson@ximian.com>
10824
10825         * XplatUIX11.cs: Use the new Mono.Unix namespace.
10826
10827 2004-11-17  Ravindra <rkumar@novell.com>
10828
10829         * ListView.cs: Added event handling for MouseMove/Up/Down.
10830         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10831         * ThemeWin32Classic.cs: We need to clear the graphics context and
10832         draw column header in a proper state.
10833
10834
10835 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
10836
10837         *  Menu.cs: fixes signature
10838
10839 2004-11-16  Peter Bartok  <pbartok@novell.com>
10840
10841         * XplatUIX11.cs (GetMessage): Implemented generation of
10842           double click mouse messages
10843
10844 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
10845
10846         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10847         not by menu
10848
10849 2004-11-11  Peter Bartok  <pbartok@novell.com>
10850
10851         * HandleData.cs: Added Visible property
10852         * XplatUIX11.cs (IsVisible): Now uses Visible property from
10853           HandleData
10854         * XplatUIX11.cs: Removed old debug leftovers
10855         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10856         * Control.cs (WndProc): Removed old debug leftovers,
10857           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10858           needed WM_SIZE handling
10859
10860 2004-11-11  Jackson Harper  <jackson@ximian.com>
10861
10862         * OwnerDrawPropertyBag.cs:
10863         * TreeViewImageIndexConverter.cs: Initial implementation
10864
10865 2004-11-10  Jackson Harper  <jackson@ximian.com>
10866
10867         * ThemeWin32Classic.cs:
10868         * TabControl.cs: instead of moving tabs by the slider pos just
10869         start drawing at the tab that is offset by the slider. This way
10870         scrolling always moves by exactly one tab.
10871
10872 2004-11-10  Jackson Harper  <jackson@ximian.com>
10873
10874         * TabControl.cs: You can only scroll left when the slider has
10875         already ben moved right.
10876         
10877 2004-11-10  Jackson Harper  <jackson@ximian.com>
10878
10879         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10880         the clip area.
10881         
10882 2004-11-10  Jackson Harper  <jackson@ximian.com>
10883
10884         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10885         clip area.
10886         
10887 2004-11-09  Jackson Harper  <jackson@ximian.com>
10888
10889         * TabControl.cs (CalcXPos): New helper method so we can determine
10890         the proper place to start drawing vertical tabs.
10891         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10892         
10893 2004-11-09  Jackson Harper  <jackson@ximian.com>
10894
10895         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10896         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10897         and Bottom, left and right are illegal values for this and
10898         multiline is enabled when the alignment is set to left or right.
10899         (DrawTab): Each alignment block should draw the text itself now
10900         because Left requires special love. Also add rendering for Left
10901         aligned tabs.
10902         
10903 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
10904
10905         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10906         does not destroy the windows, removes debugging messages
10907
10908 2004-11-09  jba  <jba-mono@optusnet.com.au>
10909
10910         * ThemeWin32Classic.cs
10911         (DrawButtonBase): Fix verticle text rect clipping in windows
10912         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10913         rendering and incorrect text rect clipping
10914         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10915         rendering and incorrect text rect clipping
10916         
10917 2004-11-08  Jackson Harper  <jackson@ximian.com>
10918
10919         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10920         bottom when they are bottom aligned so the bottoms of the tabs get
10921         displayed.
10922         * TabControl.cs (DropRow): Move rows up instead of down when the
10923         tab control is bottom aligned.
10924
10925 2004-11-08 13:59  pbartok
10926
10927         * XplatUIX11.cs:
10928           - Added handling for various window styles
10929           - Added handling for popup windows
10930           - Added SetTopmost handling
10931
10932 2004-11-08 13:55  pbartok
10933
10934         * XplatUIWin32.cs:
10935           - Added argument to SetTopmost method
10936           - Fixed broken ClientToScreen function
10937
10938 2004-11-08 13:53  pbartok
10939
10940         * XplatUIStructs.cs:
10941           - Added missing WS_EX styles
10942
10943 2004-11-08 13:53  pbartok
10944
10945         * XplatUI.cs, XplatUIDriver.cs:
10946           - Added argument to SetTopmost
10947
10948 2004-11-08 13:52  pbartok
10949
10950         * X11Structs.cs:
10951           - Added XSetWindowAttributes structure
10952           - Improved XWindowAttributes structure
10953           - Added SetWindowValuemask enum
10954           - Added window creation arguments enum
10955           - Added gravity enum
10956           - Added Motif hints structure
10957           - Added various Motif flags and enums
10958           - Added PropertyMode enum for property functions
10959
10960 2004-11-08 13:50  pbartok
10961
10962         * Form.cs:
10963           - Fixed arguments for updated SetTopmost method
10964
10965 2004-11-08 13:49  pbartok
10966
10967         * ToolTip.cs:
10968           - Fixed arguments for updated SetTopmost function
10969           - Fixed usage of PointToClient
10970
10971 2004-11-08 13:44  pbartok
10972
10973         * MenuAPI.cs:
10974           - Added Clipping of children and siblings
10975
10976 2004-11-08 13:41  pbartok
10977
10978         * MainMenu.cs:
10979           - Removed SetMenuBarWindow call. We do this in Form.cs
10980
10981 2004-11-08 13:40  jackson
10982
10983         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10984           scrolling jimmi in the correct location with bottom aligned tabs
10985
10986 2004-11-08 13:36  pbartok
10987
10988         * ContainerControl.cs:
10989           - Implemented BindingContext
10990           - Implemented ParentForm
10991
10992 2004-11-08 12:46  jackson
10993
10994         * TabControl.cs: Put bottom rendered tabs in the right location
10995
10996 2004-11-08 07:15  jordi
10997
10998         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10999           removes dead code
11000
11001 2004-11-05 17:30  jackson
11002
11003         * TabControl.cs: When selected tabs are expanded make sure they
11004           don't go beyond the edges of the tab control
11005
11006 2004-11-05 14:57  jackson
11007
11008         * TabControl.cs: Reset show_slider so if the control is resized to
11009           a size where it is no longer needed it's not displayed anymore
11010
11011 2004-11-05 13:16  jackson
11012
11013         * TabControl.cs: Make tab pages non visible when added to the
11014           control
11015
11016 2004-11-05 12:42  jackson
11017
11018         * TabControl.cs: Implement SizeMode.FillToRight
11019
11020 2004-11-05 12:16  jackson
11021
11022         * Control.cs: Do not call CreateHandle if the handle is already
11023           created
11024
11025 2004-11-05 11:46  jackson
11026
11027         * TabControl.cs: Remove superflous call to CalcTabRows
11028
11029 2004-11-05 09:07  jackson
11030
11031         * XplatUIX11.cs: Update for Mono.Posix changes
11032
11033 2004-11-05 07:00  ravindra
11034
11035         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11036           scrolling.
11037
11038 2004-11-04 22:47  jba
11039
11040         * ThemeWin32Classic.cs:
11041           - Fix Button rendering for FlatStyle = Flat or Popup
11042           - Fix RadioButton and CheckBox rendering when Appearance = Button
11043             (normal and flatstyle).
11044           - Correct outer rectangle color when drawing focus rectangle
11045           - Adjust button bounds to be 1 px smaller when focused
11046           - Make button not draw sunken 3d border when pushed (windows compat)
11047           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11048           - Offset the text in RadioButton and Checkbox when being rendered as
11049           a button.
11050           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11051           radiobuttons
11052           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11053           - Fixed disabled text rendering for normally rendered radiobuttons
11054
11055 2004-11-04 10:26  jackson
11056
11057         * TabControl.cs: Recalculate tab rows when resizing
11058
11059 2004-11-04 07:47  jordi
11060
11061         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11062           collection completion, drawing issues, missing features
11063
11064 2004-11-04 05:03  ravindra
11065
11066         * ScrollBar.cs:
11067                 - We need to recalculate the Thumb area when
11068                 LargeChange/maximum/minimum values are changed.
11069           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11070                 than minimum. This is required to handle the case if large_change is
11071                 more than max, and use LargeChange property instead of large_change
11072                 variable.
11073           - We return max+1 when large_change is more than max, like MS does.
11074
11075 2004-11-04 04:29  ravindra
11076
11077         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11078                 - Changed default value signatures (prefixed all with ListView).
11079                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11080                 ListView.
11081           - Fixed calculations for ListViewItem and implemented Clone()
11082           method.
11083
11084 2004-11-04 04:26  ravindra
11085
11086         * Theme.cs, ThemeWin32Classic.cs:
11087                 - Changed default ListView values signatures (prefixed all with
11088                 ListView).
11089           - Fixed default size values for VScrollBar and HScrollBar.
11090                 - Fixed DrawListViewItem method.
11091
11092 2004-11-04 04:05  ravindra
11093
11094         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11095
11096 2004-11-04 04:04  ravindra
11097
11098         * ImageList.cs: Implemented the missing overload for Draw method.
11099
11100 2004-11-03 19:29  jackson
11101
11102         * TabControl.cs: Handle dropping rows on selection properly
11103
11104 2004-11-03 11:59  jackson
11105
11106         * TabControl.cs: remove debug code
11107
11108 2004-11-03 11:52  jackson
11109
11110         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11111           the scrolly widgerywoo
11112
11113 2004-11-02 13:52  jackson
11114
11115         * TabControl.cs: Resize the tab pages and tabs when the tab control
11116           is resized
11117
11118 2004-11-02 13:40  jackson
11119
11120         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11121           selected tab to the bottom
11122
11123 2004-11-02 13:39  jackson
11124
11125         * TabPage.cs: Store the tab pages row
11126
11127 2004-11-02 12:33  jordi
11128
11129         * MenuItem.cs: fixes handle creation
11130
11131 2004-11-02 11:42  jackson
11132
11133         * TabControl.cs: signature fix
11134
11135 2004-11-02 08:56  jackson
11136
11137         * TabControl.cs: Calculate whether the tab is on an edge properly.
11138           Remove top secret debugging code
11139
11140 2004-11-01 19:57  jackson
11141
11142         * TabControl.cs: Add click handling, and proper sizing
11143
11144 2004-11-01 19:47  jackson
11145
11146         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11147           tab controls
11148
11149 2004-11-01 19:39  jackson
11150
11151         * TabPage.cs: add internal property to store the bounds of a tab
11152           page
11153
11154 2004-10-30 04:23  ravindra
11155
11156         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11157           values.
11158
11159 2004-10-30 04:21  ravindra
11160
11161         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11162           fixed calculations.
11163
11164 2004-10-30 03:06  pbartok
11165
11166         * XplatUIX11.cs:
11167           - Removed extension of DllImported libs
11168
11169 2004-10-29 09:55  jordi
11170
11171         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11172           navigation, itemcollection completion, menu fixes
11173
11174 2004-10-27 22:58  pbartok
11175
11176         * XplatUIX11.cs:
11177           - Now throws a nice error message when no X display could be opened
11178
11179 2004-10-26 13:51  jordi
11180
11181         * ListView.cs: removes warning
11182
11183 2004-10-26 03:55  ravindra
11184
11185         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11186           ThemeWin32Classic.cs: Some formatting for my last checkins.
11187
11188 2004-10-26 03:36  ravindra
11189
11190         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11191           control and default values.
11192
11193 2004-10-26 03:35  ravindra
11194
11195         * Theme.cs: Added some default values for ListView control.
11196
11197 2004-10-26 03:33  ravindra
11198
11199         * ToolBar.cs: ToolBar should use the user specified button size, if
11200           there is any. Added a size_specified flag for the same.
11201
11202 2004-10-26 03:33  ravindra
11203
11204         * ColumnHeader.cs: Added some internal members and calculations for
11205           ColumnHeader.
11206
11207 2004-10-26 03:32  ravindra
11208
11209         * ListViewItem.cs: Calculations for ListViewItem.
11210
11211 2004-10-26 03:31  ravindra
11212
11213         * ListView.cs: Added some internal members and calculations for
11214           ListView.
11215
11216 2004-10-22 13:31  jordi
11217
11218         * MenuAPI.cs: speedup menus drawing
11219
11220 2004-10-22 13:16  jackson
11221
11222         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11223           expose event
11224
11225 2004-10-22 11:49  jackson
11226
11227         * Control.cs: oops
11228
11229 2004-10-22 11:41  jackson
11230
11231         * Control.cs: Check to see if the window should have its background
11232           repainted by X when drawing.
11233
11234 2004-10-22 11:31  jackson
11235
11236         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11237           clear is true, this way we do not get flicker from X repainting the
11238           background
11239
11240 2004-10-22 11:28  jackson
11241
11242         * XEventQueue.cs: Queue properly
11243
11244 2004-10-21 09:38  jackson
11245
11246         * XEventQueue.cs: Fix access modifier
11247
11248 2004-10-21 09:36  jackson
11249
11250         * XEventQueue.cs: Don't loose messages
11251
11252 2004-10-21 09:22  jackson
11253
11254         * XEventQueue.cs: Don't loose messages
11255
11256 2004-10-20 04:15  jordi
11257
11258         * BootMode.cs: enum need it by SystemInfo
11259
11260 2004-10-19 21:58  pbartok
11261
11262         * XplatUIWin32.cs:
11263           - Small sanity check
11264
11265 2004-10-19 21:56  pbartok
11266
11267         * Form.cs:
11268           - Added private FormParentWindow class which acts as the container
11269             for our form and as the non-client area where menus are drawn
11270           - Added/Moved required tie-ins to Jordi's menus
11271           - Fixed/Implemented the FormStartPosition functionality
11272
11273 2004-10-19 21:52  pbartok
11274
11275         * Control.cs:
11276           - Removed unneeded locals
11277           - Added code to all size and location properties to understand and
11278             deal with the parent container of Form
11279
11280 2004-10-19 21:33  pbartok
11281
11282         * Application.cs:
11283           - Fixed to deal with new Form subclasses for menus
11284
11285 2004-10-19 17:48  jackson
11286
11287         * XEventQueue.cs: commit correct version of file
11288
11289 2004-10-19 16:50  jackson
11290
11291         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11292
11293 2004-10-19 16:15  jordi
11294
11295         * MenuAPI.cs: MenuBarCalcSize returns the height
11296
11297 2004-10-19 08:31  pbartok
11298
11299         * Control.cs:
11300           - Added missing call to PreProcessMessage before calling OnXXXKey
11301           methods
11302
11303 2004-10-19 00:04  ravindra
11304
11305         * ToolTip.cs: Fixed constructor.
11306
11307 2004-10-18 09:31  jordi
11308
11309         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11310
11311 2004-10-18 09:26  jordi
11312
11313         * MenuItem.cs: fixes MenuItem class signature
11314
11315 2004-10-18 08:56  jordi
11316
11317         * MenuAPI.cs: prevents windows from showing in the taskbar
11318
11319 2004-10-18 00:28  ravindra
11320
11321         * ToolTip.cs: Suppressed a warning message.
11322
11323 2004-10-18 00:27  ravindra
11324
11325         * Control.cs: Default value of visible property must be true.
11326
11327 2004-10-17 23:19  pbartok
11328
11329         * ToolTip.cs:
11330           - Complete implementation
11331
11332 2004-10-17 23:19  pbartok
11333
11334         * XplatUIX11.cs:
11335           - Added EnableWindow method
11336           - Added SetModal stub
11337           - Added generation of WM_ACTIVATE message (still needs testing)
11338           - Added SetTopMost stub
11339           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11340
11341 2004-10-17 23:17  pbartok
11342
11343         * XplatUIWin32.cs:
11344           - Removed VirtualKeys to XplatUIStructs
11345           - Implemented SetTopMost method
11346           - Implemented EnableWindow method
11347           - Bugfix in ScreenToClient()
11348           - Bugfixes in ClientToScreen()
11349
11350 2004-10-17 22:51  pbartok
11351
11352         * XplatUIStructs.cs:
11353           - Added WS_EX styles to WindowStyles enumeration
11354
11355 2004-10-17 22:50  pbartok
11356
11357         * XplatUI.cs, XplatUIDriver.cs:
11358           - Added method for enabling/disabling windows
11359           - Added method for setting window modality
11360           - Added method for setting topmost window
11361
11362 2004-10-17 22:49  pbartok
11363
11364         * ThemeWin32Classic.cs:
11365           - Added ToolTip drawing code
11366
11367 2004-10-17 22:49  pbartok
11368
11369         * Theme.cs:
11370           - Added ToolTip abstracts
11371
11372 2004-10-17 22:47  pbartok
11373
11374         * Form.cs:
11375           - Fixed Form.ControlCollection to handle owner relations
11376           - Added Owner/OwnedForms handling
11377           - Implemented Z-Ordering for owned forms
11378           - Removed unneeded private overload of ShowDialog
11379           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11380             so I hope)
11381           - Fixed Close(), had wrong default
11382           - Added firing of OnLoad event
11383           - Added some commented out debug code for Ownership handling
11384
11385 2004-10-17 22:16  pbartok
11386
11387         * Control.cs:
11388           - Fixed/implemented flat list of controls
11389
11390 2004-10-17 22:14  pbartok
11391
11392         * Application.cs:
11393           - Added code to simulate modal dialogs on Win32
11394
11395 2004-10-17 16:11  jordi
11396
11397         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11398           mouse event
11399
11400 2004-10-17 13:39  jordi
11401
11402         * MenuAPI.cs: menu drawing fixes
11403
11404 2004-10-15 09:10  ravindra
11405
11406         * StructFormat.cs: General Enum.
11407
11408 2004-10-15 09:09  ravindra
11409
11410         * SizeGripStyle.cs: Enum for Form.
11411
11412 2004-10-15 09:08  ravindra
11413
11414         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11415           in Theme for ListView.
11416
11417 2004-10-15 09:06  ravindra
11418
11419         * ColumnHeader.cs: Flushing some formatting changes.
11420
11421 2004-10-15 09:05  ravindra
11422
11423         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11424           style.
11425
11426 2004-10-15 09:03  ravindra
11427
11428         * ListView.cs: Implemented Paint method and fixed coding style.
11429
11430 2004-10-15 07:34  jordi
11431
11432         * MenuAPI.cs: fix for X11
11433
11434 2004-10-15 07:32  ravindra
11435
11436         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11437                 - Renamed Paint() method to Draw() for clarity. Also, moved
11438                 DrawImage() to OnPaint().
11439
11440 2004-10-15 07:25  ravindra
11441
11442         * CheckBox.cs, RadioButton.cs:
11443                 - Removed Redraw (), we get it from ButtonBase.
11444                 - Implemented Paint (), to do class specific painting.
11445
11446 2004-10-15 07:16  ravindra
11447
11448         * ButtonBase.cs:
11449                 - Redraw () is not virtual now.
11450                 - Added an internal virtual method Paint (), so that
11451                 derived classes can do their painting on their own.
11452                 - Modified OnPaint () to call Paint ().
11453
11454 2004-10-15 06:43  jordi
11455
11456         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11457           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11458
11459 2004-10-15 00:30  ravindra
11460
11461         * MessageBox.cs:
11462                 - MessageBox on windows does not have min/max buttons.
11463                 This change in CreateParams fixes this on Windows. We
11464                 still need to implement this windowstyle behavior in
11465                 our X11 driver.
11466
11467 2004-10-14 05:14  ravindra
11468
11469         * ToolBar.cs:
11470                 - Changed Redraw () to do a Refresh () always.
11471                 - Fixed the MouseMove event handling when mouse is pressed,
11472                 ie drag event handling.
11473                 - Replaced the usage of ToolBarButton.Pressed property to
11474                 ToolBarButton.pressed internal variable.
11475
11476 2004-10-14 05:10  ravindra
11477
11478         * ToolBarButton.cs:
11479                 - Added an internal member 'inside' to handle mouse move
11480                 with mouse pressed ie mouse drag event.
11481                 - Changed 'Pressed' property to return true only when
11482                 'inside' and 'pressed' are both true.
11483                 - Some coding style love.
11484
11485 2004-10-14 00:17  ravindra
11486
11487         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11488           public method.
11489
11490 2004-10-14 00:15  ravindra
11491
11492         * ButtonBase.cs: Redraw () related improvements.
11493
11494 2004-10-14 00:14  ravindra
11495
11496         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11497           removed unnecessary calls to Button.Show () method.
11498
11499 2004-10-13 17:50  pbartok
11500
11501         * XplatUIX11.cs:
11502           - Formatting fix
11503           - Removed destroying of window until we solve the problem of X
11504             destroying the window before us on shutdown
11505
11506 2004-10-13 16:32  pbartok
11507
11508         * ButtonBase.cs:
11509           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11510
11511 2004-10-13 14:18  pbartok
11512
11513         * XplatUIX11.cs:
11514           - Added code to destroy the X window
11515
11516 2004-10-13 14:18  pbartok
11517
11518         * XplatUIWin32.cs:
11519           - Added code to destroy a window
11520
11521 2004-10-13 14:12  pbartok
11522
11523         * ButtonBase.cs:
11524           - Added the Redraw on Resize that got dropped in the last rev
11525
11526 2004-10-13 09:06  pbartok
11527
11528         * ThemeWin32Classic.cs:
11529           - Path from John BouAntoun:
11530             * Fix check rendering (centre correctly for normal style, offset
11531               correctly for FlatStyle).
11532             * Fix border color usage (use backcolor) for FlatStyle.Popup
11533             * Use checkbox.Capture instead of checkbox.is_pressed when
11534               rendering flatstyle states.
11535
11536 2004-10-12 21:48  pbartok
11537
11538         * ThemeWin32Classic.cs:
11539           - Removed all occurences of SystemColors and replaced them with the
11540             matching theme color
11541
11542 2004-10-12 21:41  pbartok
11543
11544         * ThemeWin32Classic.cs:
11545           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11546             him using the function for flatstyle drawing
11547           - Changed functions to use the new version of CPDrawBorder3D
11548
11549 2004-10-12 21:15  pbartok
11550
11551         * ControlPaint.cs:
11552           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11553             match MS documentation. They need to return defined colors if the
11554             passed color matches the configured control color. Thanks to John
11555             BouAntoun for pointing this out.
11556
11557 2004-10-12 20:57  pbartok
11558
11559         * Control.cs:
11560           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11561             color is changed
11562
11563 2004-10-12 20:46  pbartok
11564
11565         * CheckBox.cs:
11566           - Fix from John BouAntoun: Now properly sets the Appearance property
11567
11568 2004-10-12 20:45  pbartok
11569
11570         * ThemeWin32Classic.cs:
11571           - Fixes from John BouAntoun: now handles forecolors and backcolors
11572             for flatstyle rendered controls much better; It also fixes normal
11573             checkbox rendering when pushed or disabled.
11574
11575 2004-10-08 02:50  jordi
11576
11577         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11578           work
11579
11580 2004-10-07 08:56  jordi
11581
11582         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11583
11584 2004-10-06 03:59  jordi
11585
11586         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11587           XplatUIWin32.cs: removes warnings from compilation
11588
11589 2004-10-05 12:23  jackson
11590
11591         * RadioButton.cs: Fix ctor
11592
11593 2004-10-05 11:10  pbartok
11594
11595         * MessageBox.cs:
11596           - Partial implementation by Benjamin Dasnois
11597
11598 2004-10-05 10:15  jackson
11599
11600         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11601           by John BouAntoun
11602
11603 2004-10-05 03:07  ravindra
11604
11605         * ToolBar.cs:
11606                 - Removed a private method, Draw ().
11607                 - Fixed the ButtonDropDown event handling.
11608                 - Fixed MouseMove event handling.
11609
11610 2004-10-05 03:04  ravindra
11611
11612         * ThemeWin32Classic.cs:
11613                 - Added DrawListView method and ListViewDefaultSize property.
11614                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11615                 - Changed DOS style CRLF to Unix format (dos2unix).
11616
11617 2004-10-05 03:03  ravindra
11618
11619         * Theme.cs:
11620                 - Added DrawListView method and ListViewDefaultSize property.
11621
11622 2004-10-05 02:42  ravindra
11623
11624         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11625           clicks on DropDown arrow.
11626
11627 2004-10-04 22:56  jackson
11628
11629         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11630           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11631           Control handle the buffers, derived classes should not have to
11632           CreateBuffers themselves.
11633
11634 2004-10-04 21:20  jackson
11635
11636         * StatusBar.cs: The control handles resizing the buffers now.
11637
11638 2004-10-04 21:18  jackson
11639
11640         * Control.cs: When resizing the buffers should be invalidated. This
11641           should be handled in Control not in derived classes.
11642
11643 2004-10-04 14:45  jackson
11644
11645         * TabPage.cs: oops
11646
11647 2004-10-04 02:14  pbartok
11648
11649         * LeftRightAlignment.cs:
11650           - Initial check-in
11651
11652 2004-10-04 01:09  jordi
11653
11654         * ThemeWin32Classic.cs: fixes right button position causing right
11655           button not showing on horizontal scrollbars
11656
11657 2004-10-02 13:12  pbartok
11658
11659         * XplatUIX11.cs:
11660           - Simplified the Invalidate method by using an X call instead of
11661             generating the expose ourselves
11662           - Added an expose when the window background is changed
11663           - Implemented ClientToScreen method
11664
11665 2004-10-02 13:08  pbartok
11666
11667         * XplatUIWin32.cs:
11668           - Added Win32EnableWindow method (test for implementing modal
11669           dialogs)
11670           - Added ClientToScreen method and imports
11671
11672 2004-10-02 13:07  pbartok
11673
11674         * XplatUI.cs, XplatUIDriver.cs:
11675           - Added ClientToScreen coordinate translation method
11676
11677 2004-10-02 13:06  pbartok
11678
11679         * KeyPressEventArgs.cs:
11680           - Fixed access level for constructor
11681
11682 2004-10-02 13:06  pbartok
11683
11684         * NativeWindow.cs:
11685           - Changed access level for the window_collection hash table
11686
11687 2004-10-02 13:05  pbartok
11688
11689         * Form.cs:
11690           - Added KeyPreview property
11691           - Added Menu property (still incomplete, pending Jordi's menu work)
11692           - Implemented ProcessCmdKey
11693           - Implemented ProcessDialogKey
11694           - Implemented ProcessKeyPreview
11695
11696 2004-10-02 13:02  pbartok
11697
11698         * Control.cs:
11699           - Added private method to get the Control object from the window
11700           handle
11701           - Implemented ContextMenu property
11702           - Implemented PointToScreen
11703           - Implemented PreProcessMessage
11704           - Implemented IsInputChar
11705           - Implemented IsInputKey
11706           - Implemented ProcessCmdKey
11707           - Completed ProcessKeyEventArgs
11708           - Fixed message loop to call the proper chain of functions on key
11709           events
11710           - Implemented ProcessDialogChar
11711           - Implemented ProcessDialogKey
11712           - Implemented ProcessKeyMessage
11713           - Implemented ProcessKeyPreview
11714           - Added RaiseDragEvent stub (MS internal method)
11715           - Added RaiseKeyEvent stub (MS internal method)
11716           - Added RaiseMouseEvent stub (MS Internal method)
11717           - Added RaisePaintEvent stub (MS Internal method)
11718           - Added ResetMouseEventArgs stub (MS Internal method)
11719           - Implemented RtlTranslateAlignment
11720           - Implemented RtlTranslateContent
11721           - Implemented RtlTranslateHorizontal
11722           - Implemented RtlTranslateLeftRight
11723           - Added generation of KeyPress event
11724
11725 2004-10-02 05:57  ravindra
11726
11727         * ListViewItem.cs: Added attributes.
11728
11729 2004-10-02 05:32  ravindra
11730
11731         * ListView.cs: Added attributes.
11732
11733 2004-10-01 11:53  jackson
11734
11735         * Form.cs: Implement the Close method so work on MessageBox can
11736           continue.
11737
11738 2004-09-30 14:06  pbartok
11739
11740         * XplatUIX11.cs:
11741           - Bug fixes
11742
11743 2004-09-30 11:34  jackson
11744
11745         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11746
11747 2004-09-30 07:26  ravindra
11748
11749         * ListViewItemConverter.cs: Converter for ListViewItem.
11750
11751 2004-09-30 07:26  ravindra
11752
11753         * SortOrder.cs: Enum for ListView control.
11754
11755 2004-09-30 07:25  ravindra
11756
11757         * ColumnHeader.cs: Supporting class for ListView control.
11758
11759 2004-09-30 07:24  ravindra
11760
11761         * ListView.cs, ListViewItem.cs: Initial implementation.
11762
11763 2004-09-30 07:20  ravindra
11764
11765         * ItemActivation.cs: Enum for ListView Control.
11766
11767 2004-09-29 20:29  pbartok
11768
11769         * XplatUIX11.cs:
11770           - Added lookup of pixel value for background color; tries to get a
11771             color 'close' to the requested color, it avoids having to create a
11772             colormap.  Depending on the display this could mean the used color
11773             is slightly off the desired color. Might have to change it to a more
11774             resource intensive colormap approach, but it will work as a
11775           workaround to avoid red screens.
11776
11777 2004-09-29 14:27  jackson
11778
11779         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11780
11781 2004-09-28 12:44  pbartok
11782
11783         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11784           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11785           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11786           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11787           TrackBar.cs, VScrollBar.cs:
11788           - Streamlined Theme interfaces:
11789             * Each DrawXXX method for a control now is passed the object for
11790               the control to be drawn in order to allow accessing any state the
11791               theme might require
11792
11793             * ControlPaint methods for the theme now have a CP prefix to avoid
11794               name clashes with the Draw methods for controls
11795
11796             * Every control now retrieves it's DefaultSize from the current
11797             theme
11798
11799 2004-09-28 12:17  jackson
11800
11801         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11802           drawing
11803
11804 2004-09-24 14:57  jackson
11805
11806         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11807           Gives us a nice little performance boost.
11808
11809 2004-09-24 12:02  jackson
11810
11811         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11812           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11813           Control and supporting classes. Initial checkin
11814
11815 2004-09-23 13:08  jackson
11816
11817         * Form.cs: Temp build fixage
11818
11819 2004-09-23 01:39  ravindra
11820
11821         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11822           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11823           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11824           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11825           EventHandlers needed by ListView Control.
11826
11827 2004-09-22 14:12  pbartok
11828
11829         * ScrollableControl.cs:
11830           - Implemented DockPadding property
11831           - Implemented AutoScroll property
11832           - Implemented AutoScrollMargin property
11833           - Implemented AutoScrollMinSize property
11834           - Implemented AutoScrollPosition property
11835           - Implemented DisplayRectangle property (still incomplete)
11836           - Implemented CreateParams property
11837           - Implemented HScroll property
11838           - Implemented VScroll property
11839           - Implemented OnVisibleChanged property
11840
11841 2004-09-22 14:09  pbartok
11842
11843         * Form.cs:
11844           - Added Form.ControllCollection class
11845           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11846             RemoveOwnedForm (still incomplete, missing on-top and common
11847             minimize/maximize behaviour)
11848           - Added StartPosition property (still incomplete, does not use when
11849             creating the form)
11850           - Added ShowDialog() methods (still incomplete, missing forcing the
11851             dialog modal)
11852
11853 2004-09-22 14:05  pbartok
11854
11855         * Application.cs:
11856           - Added message loop for modal dialogs
11857
11858 2004-09-22 14:02  pbartok
11859
11860         * GroupBox.cs:
11861           - Fixed wrong types for events
11862
11863 2004-09-22 14:00  pbartok
11864
11865         * Shortcut.cs, FormWindowState.cs:
11866           - Fixed wrong values
11867
11868 2004-09-22 12:01  jackson
11869
11870         * Control.cs: Text is never null
11871
11872 2004-09-20 22:14  pbartok
11873
11874         * XplatUIWin32.cs:
11875           - Fixed accessibility level for Idle handler
11876
11877 2004-09-20 18:54  jackson
11878
11879         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11880           XplatUIX11.cs: New message loop that uses poll so we don't get a
11881           busy loop
11882
11883 2004-09-17 10:43  pbartok
11884
11885         * ScrollBar.cs:
11886           - Fixed behaviour of arrow buttons. Now properly behaves like
11887             Buttons (and like Microsoft's scrollbar arrow buttons)
11888
11889 2004-09-17 10:14  pbartok
11890
11891         * ScrollBar.cs:
11892           - Added missing release of keyboard/mouse capture
11893
11894 2004-09-17 06:18  jordi
11895
11896         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11897           Theme.cs: Very early menu support
11898
11899 2004-09-16 17:45  pbartok
11900
11901         * XplatUIWin32.cs:
11902           - Fixed sending a window to the front
11903           - Added overload for SetWindowPos to avoid casting
11904
11905 2004-09-16 17:44  pbartok
11906
11907         * Control.cs:
11908           - Added SendToBack and BringToFront methods
11909
11910 2004-09-16 07:00  ravindra
11911
11912         * Copyright: Added Novell URL.
11913
11914 2004-09-16 07:00  ravindra
11915
11916         * ToolBar.cs: Invalidate should be done before redrawing.
11917
11918 2004-09-15 21:19  ravindra
11919
11920         * ColumnHeaderStyle.cs: Enum for ListView Control.
11921
11922 2004-09-15 21:18  ravindra
11923
11924         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11925           ListView Control.
11926
11927 2004-09-13 18:26  jackson
11928
11929         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11930           properly
11931
11932 2004-09-13 18:13  jackson
11933
11934         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11935           a second thread and post messages into the main threads message
11936           queue. This makes timing much more consistent. Both win2K and XP
11937           have a minimum timer value of 15 milliseconds, so we now do this
11938           too.
11939
11940 2004-09-13 15:18  pbartok
11941
11942         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11943           XplatUIX11.cs:
11944           - Added Z-Ordering methods
11945
11946 2004-09-13 10:56  pbartok
11947
11948         * Form.cs:
11949           - Fixed #region names
11950           - Moved properties and methods into their proper #regions
11951
11952 2004-09-13 10:51  pbartok
11953
11954         * Form.cs:
11955           - Added Accept and CancelButton properties
11956           - Added ProcessDialogKey() method
11957
11958 2004-09-13 08:18  pbartok
11959
11960         * IWindowTarget.cs:
11961           - Initial check-in
11962
11963 2004-09-10 21:50  pbartok
11964
11965         * Control.cs:
11966           - Added DoDragDrop() [incomplete]
11967           - Properly implemented 'Visible' handling
11968           - Added SetVisibleCore()
11969           - Implemented FindChildAtPoint()
11970           - Implemented GetContainerControl()
11971           - Implemented Hide()
11972
11973 2004-09-10 19:28  pbartok
11974
11975         * Control.cs:
11976           - Moved methods into their appropriate #regions
11977           - Reordered methods within regions alphabetically
11978
11979 2004-09-10 18:57  pbartok
11980
11981         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11982           - Added method to retrieve text from window
11983
11984 2004-09-10 18:56  pbartok
11985
11986         * Control.cs:
11987           - Moved some internal functions into the internal region
11988           - Implemented FontHeight
11989           - Implemented RenderRightToLeft
11990           - Implemented ResizeRedraw
11991           - Implemented ShowFocusCues
11992           - Implemented ShowKeyboardCues
11993           - Implemented FromChildHandle
11994           - Implemented FromHandle
11995           - Implemented IsMnemonic
11996           - Implemented ReflectMessage
11997           - All public and protected Static Methods are now complete
11998
11999 2004-09-10 16:54  pbartok
12000
12001         * Control.cs:
12002           - Implemented remaining missing public instance properties
12003           - Alphabetized some out of order properties
12004
12005 2004-09-10 05:51  ravindra
12006
12007         * PictureBox.cs: Added a check for null image.
12008
12009 2004-09-10 00:59  jordi
12010
12011         * GroupBox.cs: remove cvs tag
12012
12013 2004-09-09 05:25  ravindra
12014
12015         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12016
12017 2004-09-09 05:23  ravindra
12018
12019         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12020           parent redraw.
12021
12022 2004-09-09 02:28  pbartok
12023
12024         * ThemeWin32Classic.cs:
12025           - Improve disabled string look
12026
12027 2004-09-09 01:15  jordi
12028
12029         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12030           args and handler
12031
12032 2004-09-08 23:56  ravindra
12033
12034         * ItemBoundsPortion.cs: It's enum, not a class!
12035
12036 2004-09-08 23:47  ravindra
12037
12038         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12039           Enums for Form.
12040
12041 2004-09-08 21:13  ravindra
12042
12043         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12044           ListView control.
12045
12046 2004-09-08 21:03  ravindra
12047
12048         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12049           avoid crash.
12050
12051 2004-09-08 21:01  ravindra
12052
12053         * ScrollableControl.cs: Removed unreachable code.
12054
12055 2004-09-08 06:45  jordi
12056
12057         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12058
12059 2004-09-08 01:00  jackson
12060
12061         * XplatUIX11.cs: Only run the timers when updating the message
12062           queue. This effectively gives X messages a higher priority then
12063           timer messages. Timers still need love though
12064
12065 2004-09-07 14:01  jackson
12066
12067         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12068           this for us and the handle is no longer valid.
12069
12070 2004-09-07 13:59  jackson
12071
12072         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12073           loop that manages to not crash. TODO: Add poll and cleanup timers
12074
12075 2004-09-07 11:12  jordi
12076
12077         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12078
12079 2004-09-07 03:40  jordi
12080
12081         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12082           fixes, methods, multiple links
12083
12084 2004-09-06 06:55  jordi
12085
12086         * Control.cs: Caches ClientRectangle rectangle value
12087
12088 2004-09-05 02:03  jordi
12089
12090         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12091           certain situations
12092
12093 2004-09-04 11:10  jordi
12094
12095         * Label.cs: Refresh when font changed
12096
12097 2004-09-02 16:24  pbartok
12098
12099         * Control.cs:
12100           - Added sanity check to creation of double buffer bitmap
12101
12102 2004-09-02 16:24  pbartok
12103
12104         * ButtonBase.cs:
12105           - Fixed selection of text color
12106           - Fixed handling of resize event; now properly recreates double
12107             buffering bitmap
12108           - Added missing assignment of TextAlignment
12109           - Added proper default for TextAlignment
12110
12111 2004-09-02 14:26  pbartok
12112
12113         * RadioButton.cs:
12114           - Added missing RadioButton.RadioButtonAccessibleObject class
12115
12116 2004-09-02 14:26  pbartok
12117
12118         * Control.cs:
12119           - Added missing Control.ControlAccessibleObject class
12120           - Started to implement Select()ion mechanisms, still very incomplete
12121
12122 2004-09-02 14:25  pbartok
12123
12124         * AccessibleObject.cs:
12125           - Added missing methods
12126
12127 2004-09-02 14:23  pbartok
12128
12129         * AccessibleNavigation.cs, AccessibleSelection.cs:
12130           - Initial check-in
12131
12132 2004-09-02 10:32  jordi
12133
12134         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12135           pool for pens, brushes, and hatchbruses
12136
12137 2004-09-01 15:30  jackson
12138
12139         * StatusBar.cs: Fix typo
12140
12141 2004-09-01 14:44  pbartok
12142
12143         * RadioButton.cs:
12144           - Fixed state
12145
12146 2004-09-01 14:39  pbartok
12147
12148         * Button.cs, RadioButton.cs:
12149           - Functional initial check-in
12150
12151 2004-09-01 14:01  pbartok
12152
12153         * CheckBox.cs:
12154           - Added missing default
12155           - Added missing region mark
12156
12157 2004-09-01 09:10  jordi
12158
12159         * Label.cs: fixes method signatures, new methods, events, fixes
12160           autosize
12161
12162 2004-09-01 07:19  jordi
12163
12164         * Control.cs: Init string variables with an empty object
12165
12166 2004-09-01 04:20  jordi
12167
12168         * Control.cs: fires OnFontChanged event
12169
12170 2004-08-31 20:07  pbartok
12171
12172         * ButtonBase.cs:
12173           - Enabled display of strings
12174
12175 2004-08-31 20:05  pbartok
12176
12177         * Form.cs:
12178           - Added (partial) implementation of DialogResult; rest needs to be
12179             implemented when the modal loop code is done
12180
12181 2004-08-31 19:55  pbartok
12182
12183         * CheckBox.cs:
12184           - Fixed to match the removal of the needs_redraw concept
12185
12186 2004-08-31 19:55  pbartok
12187
12188         * ButtonBase.cs:
12189           - Removed the rather odd split between 'needs redraw' and redrawing
12190           - Now handles the events that require regeneration (ambient
12191             properties and size)
12192
12193 2004-08-31 19:41  pbartok
12194
12195         * Control.cs:
12196           - Added firing of BackColorChanged event
12197           - Added TopLevelControl property
12198           - Fixed handling of WM_ERASEBKGRND message
12199
12200 2004-08-31 12:49  pbartok
12201
12202         * ButtonBase.cs:
12203           - Removed debug
12204           - Minor fixes
12205
12206 2004-08-31 12:48  pbartok
12207
12208         * CheckBox.cs:
12209           - Finished (famous last words)
12210
12211 2004-08-31 04:35  jordi
12212
12213         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12214           scrolling bugs, adds new methods
12215
12216 2004-08-30 14:42  pbartok
12217
12218         * CheckBox.cs:
12219           - Implemented CheckBox drawing code
12220
12221 2004-08-30 14:42  pbartok
12222
12223         * ButtonBase.cs:
12224           - Made Redraw() and CheckRedraw() virtual
12225           - Improved mouse up/down/move logic to properly track buttons
12226
12227 2004-08-30 09:44  pbartok
12228
12229         * CheckBox.cs:
12230           - Updated to fix broken build. Not complete yet.
12231
12232 2004-08-30 09:28  pbartok
12233
12234         * CheckState.cs:
12235           - Initial checkin
12236
12237 2004-08-30 09:17  pbartok
12238
12239         * Appearance.cs:
12240           - Initial check-in
12241
12242 2004-08-27 16:12  ravindra
12243
12244         * ToolBarButton.cs: Added TypeConverter attribute.
12245
12246 2004-08-27 16:07  ravindra
12247
12248         * ImageIndexConverter.cs: Implemented.
12249
12250 2004-08-27 14:17  pbartok
12251
12252         * Control.cs:
12253           - Removed unneeded stack vars
12254           - First attempt to fix sizing issues when layout is suspended
12255
12256 2004-08-25 15:35  jordi
12257
12258         * ScrollBar.cs: more fixes to scrollbar
12259
12260 2004-08-25 14:04  ravindra
12261
12262         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12263           Added the missing divider code and grip for ToolBar Control.
12264
12265 2004-08-25 13:20  pbartok
12266
12267         * Control.cs:
12268           - Control now properly passes the ambient background color to child
12269             controls
12270
12271 2004-08-25 13:20  jordi
12272
12273         * ScrollBar.cs: small bug fix regarding bar position
12274
12275 2004-08-25 12:33  pbartok
12276
12277         * Timer.cs:
12278           - Now only calls SetTimer or KillTimer if the enabled state has
12279           changed
12280
12281 2004-08-25 12:33  pbartok
12282
12283         * XplatUIWin32.cs:
12284           - Fixed timer handling, now seems to work
12285           - Improved error message for window creation
12286
12287 2004-08-25 12:32  pbartok
12288
12289         * Control.cs:
12290           - Fixed generation of MouseUp message
12291
12292 2004-08-25 12:29  jordi
12293
12294         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12295           and fixes for progressbar
12296
12297 2004-08-24 18:43  ravindra
12298
12299         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12300           in ToolBar control.
12301
12302 2004-08-24 17:15  pbartok
12303
12304         * Panel.cs:
12305           - Added #region
12306           - Added missing events
12307           - Alphabetized
12308
12309 2004-08-24 17:14  pbartok
12310
12311         * StatusBar.cs, PictureBox.cs:
12312           - Now uses Control's CreateParams
12313
12314 2004-08-24 16:36  pbartok
12315
12316         * XplatUIX11.cs:
12317           - Fixed background color handling
12318           - Fixed sending of enter/leave events on a grab
12319
12320 2004-08-24 16:35  pbartok
12321
12322         * X11Structs.cs:
12323           - Refined definitions for CrossingEvent
12324
12325 2004-08-24 12:37  jordi
12326
12327         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12328           formmating, methods signature, and adds missing events
12329
12330 2004-08-24 12:24  jordi
12331
12332         * Control.cs: fire OnEnabledChanged event
12333
12334 2004-08-24 11:17  pbartok
12335
12336         * XplatUIWin32.cs:
12337           - Implemented SetTimer() and KillTimer()
12338
12339 2004-08-24 11:16  pbartok
12340
12341         * XplatUIX11.cs:
12342           - Now uses Remove instead of Add to kill the timer
12343
12344 2004-08-24 10:16  jackson
12345
12346         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12347           picture boxes in the theme now. Draw picture box borders and obey
12348           sizing modes
12349
12350 2004-08-24 05:49  jackson
12351
12352         * Timer.cs: Remove top secret debugging code
12353
12354 2004-08-24 05:34  jackson
12355
12356         * PictureBox.cs: Temp hack to make picture boxes draw their full
12357           image
12358
12359 2004-08-24 05:29  jackson
12360
12361         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12362           XplatUIX11.cs: Move timers to the driver level. On X they are
12363           queued by the driver and checked on idle.
12364
12365 2004-08-24 01:07  jackson
12366
12367         * XplatUIX11.cs: Use a queue for async messages instead of passing
12368           them as ClientMessages since that was totally broken. Also simply
12369           check for events and return an idle message if none are found. This
12370           gives us an idle handler, and prevents deadlocking when no messages
12371           are in the queue.
12372
12373 2004-08-23 18:19  ravindra
12374
12375         * XplatUIWin32.cs: Removed the unwanted destructor.
12376
12377 2004-08-23 17:27  pbartok
12378
12379         * ButtonBase.cs:
12380           - Finishing touches. Works now, just needs some optimizations.
12381
12382 2004-08-23 16:53  jordi
12383
12384         * ScrollBar.cs: small fix
12385
12386 2004-08-23 16:45  pbartok
12387
12388         * Application.cs:
12389           - Removed debug output
12390           - Simplifications
12391
12392 2004-08-23 16:43  jordi
12393
12394         * ScrollBar.cs: [no log message]
12395
12396 2004-08-23 16:10  pbartok
12397
12398         * Form.cs:
12399           - Fixed handling of WM_CLOSE message
12400           - Removed debug output
12401
12402 2004-08-23 16:09  pbartok
12403
12404         * Application.cs:
12405           - Added handling of Idle event
12406           - Added handling of form closing
12407           - Fixed reporting of MessageLoop property
12408           - Removed some unneeded code, should provide a bit of a speedup
12409
12410 2004-08-23 15:22  pbartok
12411
12412         * Control.cs:
12413           - Added InitLayout() method
12414           - Added code to properly perform layout when Anchor or Dock property
12415             is changed
12416           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12417             LAMESPEC, tried to do it in a way that makes sense
12418
12419 2004-08-23 14:10  jordi
12420
12421         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12422           properties and methods
12423
12424 2004-08-23 13:55  pbartok
12425
12426         * Control.cs:
12427           - Properly fixed Jordi's last fix
12428           - Now uses Cursor's Position property instead of calling XplatUI
12429           directly
12430
12431 2004-08-23 13:44  jordi
12432
12433         * PaintEventHandler.cs: Adding missing attribute
12434
12435 2004-08-23 13:39  pbartok
12436
12437         * Cursor.cs:
12438           - Implemented Position property
12439
12440 2004-08-23 13:39  pbartok
12441
12442         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12443           - Added method to move mouse cursor
12444
12445 2004-08-23 13:39  pbartok
12446
12447         * XplatUIX11.cs:
12448           - Fixed setting of background color
12449           - Added method to move mouse cursor
12450
12451 2004-08-23 13:16  jordi
12452
12453         * Control.cs: avoids null exception
12454
12455 2004-08-22 17:46  jackson
12456
12457         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12458           PictureBox
12459
12460 2004-08-22 17:40  jackson
12461
12462         * XplatUIX11.cs: Add some missing locks
12463
12464 2004-08-22 15:10  pbartok
12465
12466         * Control.cs, Form.cs:
12467           - Removed OverlappedWindow style from Control, instead it's default
12468             now is child
12469           - Made form windows OverlappedWindow by default
12470
12471 2004-08-22 13:34  jackson
12472
12473         * ScrollBar.cs: Update the position through the Value property so
12474           the OnValueChanged event is raised.
12475
12476 2004-08-22 12:04  pbartok
12477
12478         * SWF.csproj:
12479           - Added Cursor.cs and UserControl.cs
12480
12481 2004-08-22 12:03  pbartok
12482
12483         * Cursor.cs:
12484           - Started implementation, not usable yet
12485
12486 2004-08-22 12:00  pbartok
12487
12488         * UserControl.cs:
12489           - Implemented UserControl (complete)
12490
12491 2004-08-21 19:20  ravindra
12492
12493         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12494
12495 2004-08-21 18:49  ravindra
12496
12497         * ToolBar.cs: Probably this completes the missing attributes in
12498           toolbar control.
12499
12500 2004-08-21 18:03  ravindra
12501
12502         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12503           Fixed toolbar control signatures.
12504
12505 2004-08-21 16:32  pbartok
12506
12507         * LinkLabel.cs:
12508           - Signature Fixes
12509
12510 2004-08-21 16:30  pbartok
12511
12512         * Label.cs:
12513           - Signature fixes
12514
12515 2004-08-21 16:19  pbartok
12516
12517         * Control.cs, Label.cs:
12518           - Signature fixes
12519
12520 2004-08-21 15:57  pbartok
12521
12522         * ButtonBase.cs:
12523           - Added loads of debug output for development
12524           - Fixed typo in method name
12525
12526 2004-08-21 15:52  pbartok
12527
12528         * ToolBarButtonClickEventArgs.cs:
12529           - Added missing base class
12530
12531 2004-08-21 14:53  pbartok
12532
12533         * Control.cs:
12534           - Updated to match new GrabWindow signature
12535
12536 2004-08-21 14:51  pbartok
12537
12538         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12539           - Added method to get default display size
12540
12541 2004-08-21 14:23  pbartok
12542
12543         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12544           - Added method to query current grab state
12545           - Added argument to allow confining a grab to a window
12546
12547 2004-08-21 14:22  pbartok
12548
12549         * Keys.cs:
12550           - Added [Flags] attribute so that modifiers can be used in bitwise
12551           ops
12552
12553 2004-08-21 14:21  pbartok
12554
12555         * TrackBar.cs, ScrollBar.cs:
12556           - Replaced direct XplatUI calls with their Control counterpart
12557
12558 2004-08-21 13:32  pbartok
12559
12560         * Control.cs:
12561           - Implemented Created property
12562
12563 2004-08-21 13:28  pbartok
12564
12565         * Control.cs:
12566           - Implemented ContainsFocus
12567
12568 2004-08-21 13:26  pbartok
12569
12570         * Control.cs:
12571           - Implemented CausesValidation
12572
12573 2004-08-21 13:21  pbartok
12574
12575         * Control.cs:
12576           - Implemented CanFocus
12577           - Implemented CanSelect
12578           - Implemented Capture
12579
12580 2004-08-21 12:35  pbartok
12581
12582         * XplatUIWin32.cs:
12583           - Fixed bug with Async message handling
12584           - Implemented getting the ModifierKeys
12585
12586 2004-08-21 12:32  jackson
12587
12588         * AsyncMethodResult.cs: Make sure we have the mutex before we
12589           release it. Fixes BeginInvoke on windows
12590
12591 2004-08-21 11:31  pbartok
12592
12593         * XplatUIWin32.cs, XplatUIX11.cs:
12594           - Drivers now return proper mouse state
12595
12596 2004-08-21 10:54  jackson
12597
12598         * Control.cs: Implement EndInvoke
12599
12600 2004-08-21 10:48  jackson
12601
12602         * Timer.cs: Remove unneeded finalizer
12603
12604 2004-08-20 19:52  ravindra
12605
12606         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12607           in mouse event handling in the ToolBar control.
12608
12609 2004-08-20 19:50  ravindra
12610
12611         * ImageList.cs: Changed draw method to use the arguments passed in
12612           to draw the image.
12613
12614 2004-08-20 18:58  pbartok
12615
12616         * XplatUIStructs.cs:
12617           - Added private message for async communication
12618
12619 2004-08-20 17:38  ravindra
12620
12621         * Control.cs: Made RightToLeft property virtual and removed a
12622           Console.WriteLine.
12623
12624 2004-08-20 14:39  jordi
12625
12626         * ThemeGtk.cs: use style_attach
12627
12628 2004-08-20 14:39  pbartok
12629
12630         * XplatUIWin32.cs:
12631           - Added jackson's Async code from X11 to Win32
12632
12633 2004-08-20 14:09  pbartok
12634
12635         * SWF.csproj:
12636           - Added all new files
12637
12638 2004-08-20 14:09  pbartok
12639
12640         * Control.cs:
12641           - Added call to set window background color
12642
12643 2004-08-20 14:03  pbartok
12644
12645         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12646           - Added method for setting the window background
12647
12648 2004-08-20 14:02  pbartok
12649
12650         * XplatUIWin32.cs:
12651           - Added method for setting the background color
12652           - Added handling for erasing the window background
12653
12654 2004-08-20 13:45  jordi
12655
12656         * TrackBar.cs: fixes timer, new properties and methods
12657
12658 2004-08-20 13:34  jackson
12659
12660         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12661           correct thread
12662
12663 2004-08-20 13:22  jackson
12664
12665         * Timer.cs: Timer Tick events are now handed through Controls Async
12666           mechanism so the callbacks are executed in the same thread as X
12667
12668 2004-08-20 13:19  jackson
12669
12670         * XplatUIDriver.cs: Expose functionality to send async messages
12671           through the driver
12672
12673 2004-08-20 13:18  jackson
12674
12675         * Control.cs: Implement Begininvoke
12676
12677 2004-08-20 13:14  jackson
12678
12679         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12680           messages through the driver
12681
12682 2004-08-20 13:12  jackson
12683
12684         * XplatUIX11.cs: Lock before all X operations. Also added Async
12685           method functionality through XSendEvent
12686
12687 2004-08-20 13:11  jackson
12688
12689         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12690           This will screw up on 64 bit systems)
12691
12692 2004-08-20 13:10  jackson
12693
12694         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12695           Async messages through X/Win32
12696
12697 2004-08-19 19:39  pbartok
12698
12699         * XplatUIX11.cs:
12700           - Updated code to match new HandleData.DeviceContext type
12701
12702 2004-08-19 19:38  pbartok
12703
12704         * HandleData.cs:
12705           - Made DeviceContext a generic object to allow usage from various
12706           drivers
12707           - Added support for queueing Windows messages
12708
12709 2004-08-19 19:37  pbartok
12710
12711         * XplatUIWin32.cs:
12712           - Added generation of MouseEnter, MouseLeave and MouseHover events
12713           - Added cleanup on EndPaint
12714
12715 2004-08-19 19:17  pbartok
12716
12717         * Control.cs:
12718           - Added handling of WM_MOUSEHOVER
12719           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12720           code
12721
12722 2004-08-19 18:55  jordi
12723
12724         * ThemeGtk.cs: fixes button order
12725
12726 2004-08-19 18:12  jordi
12727
12728         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12729
12730 2004-08-19 17:09  pbartok
12731
12732         * Control.cs:
12733           - Added Right property
12734           - Added RightToLeft property
12735
12736 2004-08-19 16:27  jordi
12737
12738         * ThemeGtk.cs: experimental GTK theme support
12739
12740 2004-08-19 16:26  jordi
12741
12742         * ITheme.cs, Theme.cs: move themes from an interface to a class
12743
12744 2004-08-19 16:25  jordi
12745
12746         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12747           theme enhancaments
12748
12749 2004-08-19 16:04  pbartok
12750
12751         * XplatUIX11.cs:
12752           - Added colormap basics
12753           - Added a way to re-initialize with a different display handle
12754           - Fixed setting of the window background color
12755           - Added various X11 imports related to colors and colormaps
12756
12757 2004-08-19 15:51  pbartok
12758
12759         * X11Structs.cs:
12760           - Removed packing hints (Paolo suggested this a while back)
12761           - fixed colormap type
12762           - Added default Atom types
12763           - Added Screen and color structs and enums
12764
12765 2004-08-19 15:39  pbartok
12766
12767         * ImageList.cs:
12768           - Added missing Draw() method
12769           - Added missing RecreateHandle event
12770
12771 2004-08-19 15:30  pbartok
12772
12773         * Form.cs:
12774           - Added handling of WM_CLOSE
12775
12776 2004-08-18 13:16  jordi
12777
12778         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12779           a table
12780
12781 2004-08-18 09:56  jordi
12782
12783         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12784
12785 2004-08-17 15:31  ravindra
12786
12787         * SWF.csproj: Updated project.
12788
12789 2004-08-17 15:25  pbartok
12790
12791         * Control.cs:
12792           - Drawing improvement; don't call UpdateBounds if we are not visible
12793             (or have been minimized)
12794
12795 2004-08-17 15:24  pbartok
12796
12797         * XplatUIWin32.cs:
12798           - Finished IsVisible
12799           - Added Win32GetWindowPlacement
12800
12801 2004-08-17 15:08  jackson
12802
12803         * Panel.cs: Initial checkin of the Panel
12804
12805 2004-08-17 14:25  pbartok
12806
12807         * Control.cs:
12808           - Fixed broken handling of default window sizes
12809
12810 2004-08-17 13:29  jackson
12811
12812         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12813           has a large startup time.
12814
12815 2004-08-17 10:25  jackson
12816
12817         * HandleData.cs: union areas properly
12818
12819 2004-08-17 10:12  jackson
12820
12821         * HandleData.cs: union areas properly
12822
12823 2004-08-16 20:00  ravindra
12824
12825         * ToolBar.cs, ToolBarButton.cs: Added attributes.
12826
12827 2004-08-16 18:48  ravindra
12828
12829         * ToolBar.cs: Added attributes.
12830
12831 2004-08-16 17:17  ravindra
12832
12833         * SWF.csproj: Updated project.
12834
12835 2004-08-16 17:16  jackson
12836
12837         * XplatUIX11.cs: Check for more expose events before sending a
12838           WM_PAINT so they can all be grouped together. This makes dragging a
12839           window across another window redraw in a sane way.
12840
12841 2004-08-16 15:47  pbartok
12842
12843         * Control.cs:
12844           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12845             support OnMouseEnter/Leave()
12846           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12847             exposure handling
12848
12849 2004-08-16 15:46  pbartok
12850
12851         * XplatUIStructs.cs, XplatUIX11.cs:
12852           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12853           OnMouseEnter/Leave()
12854
12855 2004-08-16 15:34  jackson
12856
12857         * XplatUIX11.cs: Group multiple expose events in HandleData, make
12858           sure messages get the message field set to WM_NULL if they are not
12859           handled.
12860
12861 2004-08-16 15:24  jackson
12862
12863         * HandleData.cs: HandleData is used for storing message information
12864           for window handles
12865
12866 2004-08-15 17:23  ravindra
12867
12868         * ColorDepth.cs: Added attribute.
12869
12870 2004-08-15 17:23  ravindra
12871
12872         * SWF.csproj: Updated project for ToolBar Control.
12873
12874 2004-08-15 17:20  ravindra
12875
12876         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12877           control and also dos2unix format.
12878
12879 2004-08-15 17:13  ravindra
12880
12881         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12882           ToolBarButtonClickEventArgs.cs,
12883           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12884           ToolBarTextAlign.cs: First Implementation of ToolBar control.
12885
12886 2004-08-15 15:31  pbartok
12887
12888         * ButtonBase.cs:
12889           - First (mostly) working version
12890
12891 2004-08-13 16:15  pbartok
12892
12893         * Control.cs:
12894           - Fixed Anchor default
12895
12896 2004-08-13 15:43  pbartok
12897
12898         * Control.cs:
12899           - Changed GetCursorPos signature
12900
12901 2004-08-13 15:42  pbartok
12902
12903         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12904           - Changed signature for GetCursorPos
12905
12906 2004-08-13 15:25  pbartok
12907
12908         * XplatUIX11.cs:
12909           - Cleanup
12910           - Fixed resizing/exposure handling
12911
12912 2004-08-13 15:22  jordi
12913
12914         * ThemeWin32Classic.cs: removes redundant code and fixes issues
12915           with tickposition
12916
12917 2004-08-13 14:55  jordi
12918
12919         * TrackBar.cs: change from wndproc to events
12920
12921 2004-08-13 13:00  jordi
12922
12923         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12924           XplatUIX11.cs: implements PointToClient (ScreenToClient)
12925
12926 2004-08-13 12:53  pbartok
12927
12928         * XplatUIWin32.cs:
12929           - Changed GetWindowPos to also provide client area size
12930           - Fixed broken prototypes for several win32 functions
12931
12932 2004-08-13 12:53  pbartok
12933
12934         * XplatUI.cs, XplatUIDriver.cs:
12935           - Changed GetWindowPos to also provide client area size
12936
12937 2004-08-13 12:52  pbartok
12938
12939         * XplatUIX11.cs:
12940           - Added generation of WM_POSCHANGED
12941           - Changed GetWindowPos to also provide client area size
12942
12943 2004-08-13 12:52  pbartok
12944
12945         * Control.cs:
12946           - Added Dispose() and destructor
12947           - Fixed resizing and bounds calculation
12948           - Fixed Layout
12949           - Added memory savings for invisible windows
12950
12951 2004-08-13 12:46  jordi
12952
12953         * TrackBar.cs: adds timer and grap window
12954
12955 2004-08-13 10:25  jackson
12956
12957         * Timer.cs: SWF Timer
12958
12959 2004-08-12 16:59  pbartok
12960
12961         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12962           - Implemented method to get current mouse position
12963
12964 2004-08-12 14:29  jordi
12965
12966         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12967           enhancement, fix mouse problems, highli thumb, etc
12968
12969 2004-08-12 13:31  pbartok
12970
12971         * Control.cs:
12972           - Fixed Anchoring bugs
12973
12974 2004-08-12 13:01  jackson
12975
12976         * StatusBar.cs: Don't forget things
12977
12978 2004-08-12 12:54  jackson
12979
12980         * ThemeWin32Classic.cs: Handle owner draw status bars
12981
12982 2004-08-12 12:54  jackson
12983
12984         * StatusBar.cs: Implement missing properties, events, and methods.
12985           Handle mouse clicking
12986
12987 2004-08-12 10:19  jackson
12988
12989         * StatusBarPanelClickEventArgs.cs,
12990           StatusBarPanelClickEventHandler.cs: Classes for handling status
12991           bar panel click events
12992
12993 2004-08-12 10:10  jackson
12994
12995         * Control.cs: Add missing properties
12996
12997 2004-08-12 09:46  pbartok
12998
12999         * BindingsManagerBase.cs:
13000           - Name changed to BindingManagerBase.cs
13001
13002 2004-08-12 09:25  jordi
13003
13004         * ScrollableControl.cs: calls ctrlbase instead of exeception
13005
13006 2004-08-11 16:28  pbartok
13007
13008         * InputLanguageChangingEventArgs.cs:
13009           - Never check in before compiling. Fixes the last check-in
13010
13011 2004-08-11 16:26  pbartok
13012
13013         * InputLanguageChangingEventArgs.cs:
13014           - More signature fixes
13015
13016 2004-08-11 16:20  pbartok
13017
13018         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13019           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13020           ImageListStreamer.cs, InputLanguage.cs,
13021           InputLanguageChangedEventArgs.cs,
13022           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13023           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13024           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13025           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13026           - Signature fixes
13027
13028 2004-08-11 16:16  pbartok
13029
13030         * Application.cs:
13031           - Fixed Signature
13032           - Added .Net 1.1 method
13033
13034 2004-08-11 15:25  pbartok
13035
13036         * SWF.csproj:
13037           - Fixed BindingManagerBase.cs filename
13038
13039 2004-08-11 15:22  pbartok
13040
13041         * BindingManagerBase.cs:
13042           - Was checked in with wrong filename
13043
13044 2004-08-11 14:50  pbartok
13045
13046         * SWF.csproj:
13047           - Updated
13048
13049 2004-08-11 13:41  jordi
13050
13051         * XplatUIWin32.cs: Fixes ClientRect
13052
13053 2004-08-11 13:19  pbartok
13054
13055         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13056           XplatUIX11.cs:
13057           - We had SetWindowPos and MoveWindow to set window positions and
13058             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13059             keep SetWindowPos as matching counterpart
13060           - Added some X11 sanity checking
13061
13062 2004-08-11 12:59  pbartok
13063
13064         * Control.cs:
13065           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13066             (It seems that SetBounds is just a front for SetBoundsCore and
13067              SetBoundsCore updates the underlying window system and
13068              UpdateBounds is responsible for updating the variables associated
13069              with the Control and sending the events)
13070           - Major cleanup of Size handling; we now have two sizes, client_size
13071             and bounds. Bounds defines the window with decorations, client_size
13072             without them.
13073
13074 2004-08-11 12:55  pbartok
13075
13076         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13077           - Added method to calculate difference between decorated window and
13078             raw client area
13079
13080 2004-08-11 12:54  pbartok
13081
13082         * Label.cs:
13083           - Forcing redraw on resize
13084
13085 2004-08-11 11:43  pbartok
13086
13087         * ImageList.cs:
13088           - Removed disposing of the actual images when the list is disposed
13089
13090 2004-08-11 09:13  pbartok
13091
13092         * Control.cs:
13093           - Now properly reparents windows
13094
13095 2004-08-11 08:37  pbartok
13096
13097         * Control.cs:
13098           - Duh!
13099
13100 2004-08-11 07:47  pbartok
13101
13102         * Control.cs:
13103           - Rewrote the collection stuff. Might not be as fast now, not
13104             keeping the number of children around and accessible directly, but
13105             it's more straightforward
13106
13107 2004-08-11 07:44  pbartok
13108
13109         * AccessibleObject.cs:
13110           - Fixed to match ControlCollection rewrite
13111
13112 2004-08-11 07:43  pbartok
13113
13114         * ImageList.cs:
13115           - Added missing creation of the collection list
13116
13117 2004-08-10 20:08  jackson
13118
13119         * StatusBar.cs: Get the paint message from WndProc
13120
13121 2004-08-10 19:31  jackson
13122
13123         * ThemeWin32Classic.cs: Create Brushes as little as possible
13124
13125 2004-08-10 19:20  jackson
13126
13127         * UICues.cs: Add Flags attribute
13128
13129 2004-08-10 19:19  jackson
13130
13131         * StatusBarPanel.cs: Signature cleanup
13132
13133 2004-08-10 19:10  jackson
13134
13135         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13136           Initial implementation of status bar item drawing
13137
13138 2004-08-10 17:27  jordi
13139
13140         * TrackBar.cs: add missing methods, properties, and restructure to
13141           hide extra ones
13142
13143 2004-08-10 16:24  jackson
13144
13145         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13146           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13147           attribute
13148
13149 2004-08-10 13:21  jordi
13150
13151         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13152           enhancements and standarize on win colors defaults
13153
13154 2004-08-10 12:52  jackson
13155
13156         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13157           ThemeWin32Classic.cs: Implement DrawItem functionality
13158
13159 2004-08-10 12:47  jordi
13160
13161         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13162
13163 2004-08-10 12:32  jordi
13164
13165         * Control.cs: throw ontextchange event
13166
13167 2004-08-10 11:43  pbartok
13168
13169         * Control.cs:
13170           - Added more to the still unfinished Dock/Anchor layout code
13171
13172 2004-08-10 11:39  pbartok
13173
13174         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13175           - Added GetWindowPos method
13176
13177 2004-08-10 11:36  pbartok
13178
13179         * XplatUIWin32.cs:
13180           - Implemented several methods
13181
13182 2004-08-10 09:47  jackson
13183
13184         * TrackBar.cs: Allow control to handle buffering
13185
13186 2004-08-10 09:41  jackson
13187
13188         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13189
13190 2004-08-10 09:24  jackson
13191
13192         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13193
13194 2004-08-10 09:09  jackson
13195
13196         * StatusBar.cs: Let Control handle all the buffering.
13197
13198 2004-08-10 09:08  jackson
13199
13200         * Control.cs: Control will now handle the buffering code, so each
13201           control does not have to implement this.
13202
13203 2004-08-10 08:34  jackson
13204
13205         * XplatUIDriver.cs: Use default colors from the theme
13206
13207 2004-08-09 17:12  pbartok
13208
13209         * ImageList.cs:
13210           - Fixed several bugs Ravindra pointed out
13211
13212 2004-08-09 16:11  pbartok
13213
13214         * Control.cs:
13215           - Added incomplete dock layout code
13216           - Added support for mouse wheel
13217
13218 2004-08-09 16:09  pbartok
13219
13220         * XplatUIX11.cs:
13221           - Added handling for middle and right mousebutton
13222           - Added handling for mouse wheel
13223           - Added handling for key state and mouse state and position
13224           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13225           messages
13226
13227 2004-08-09 15:40  jackson
13228
13229         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13230           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13231           checkin
13232
13233 2004-08-09 15:37  jackson
13234
13235         * StatusBar.cs: Initial implementation of StatusBar
13236
13237 2004-08-09 15:36  jackson
13238
13239         * ITheme.cs: Add support for drawing status bar and getting status
13240           bar item sizes
13241
13242 2004-08-09 15:35  pbartok
13243
13244         * MouseButtons.cs:
13245           - Fixed values
13246
13247 2004-08-09 15:34  jackson
13248
13249         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13250           status bar item sizes
13251
13252 2004-08-09 15:21  jackson
13253
13254         * ThemeWin32Classic.cs: Use known colors for default control
13255           colours
13256
13257 2004-08-09 15:12  jackson
13258
13259         * ThemeWin32Classic.cs: Make the default font static, it is static
13260           in control so this doesn't change functionality and creating fonts
13261           is sloooooow.
13262
13263 2004-08-09 14:56  pbartok
13264
13265         * X11Structs.cs:
13266           - Added GrabMode enum
13267
13268 2004-08-09 14:55  pbartok
13269
13270         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13271           - Removed Run method, was only required for initial development
13272
13273 2004-08-09 14:51  pbartok
13274
13275         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13276           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13277           capture
13278
13279 2004-08-09 13:48  pbartok
13280
13281         * XplatUIX11.cs:
13282           - Fixed default sizing for child windows
13283
13284 2004-08-09 12:56  pbartok
13285
13286         * XplatUIX11.cs:
13287           - Added generation of WM_DESTROY message
13288           - Added handling of window manager induced shutdown
13289
13290 2004-08-09 11:31  jackson
13291
13292         * ThemeWin32Classic.cs: New names for control properties
13293
13294 2004-08-09 11:25  jackson
13295
13296         * Control.cs: Use new color names
13297
13298 2004-08-09 11:02  jackson
13299
13300         * XplatUI.cs: Get default window properties from the theme
13301
13302 2004-08-09 11:01  jackson
13303
13304         * ITheme.cs: The theme engine now controls default window
13305           properties
13306
13307 2004-08-09 11:00  jackson
13308
13309         * ThemeWin32Classic.cs: Add default window color properties
13310
13311 2004-08-09 10:17  jackson
13312
13313         * ThemeWin32Classic.cs: Use correct default back color
13314
13315 2004-08-09 10:05  jackson
13316
13317         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13318           the theme now.
13319
13320 2004-08-09 09:56  jackson
13321
13322         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13323
13324 2004-08-09 09:54  jackson
13325
13326         * Control.cs: Get default properties from the theme.
13327
13328 2004-08-09 09:53  jackson
13329
13330         * ITheme.cs: Themes now handle default control properties
13331
13332 2004-08-09 09:53  jackson
13333
13334         * ThemeWin32Classic.cs: Themes now handle default control
13335           properties so coloring will be consistent
13336
13337 2004-08-08 16:54  jordi
13338
13339         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13340
13341 2004-08-08 15:08  jordi
13342
13343         * XplatUIX11.cs: fixes keyboard crash
13344
13345 2004-08-08 13:47  jordi
13346
13347         * Label.cs: add cvs header info
13348
13349 2004-08-08 12:09  jackson
13350
13351         * ThemeWin32Classic.cs: Add pen_buttonface
13352
13353 2004-08-08 11:52  jordi
13354
13355         * Label.cs, LinkLabel.cs: [no log message]
13356
13357 2004-08-08 11:34  jordi
13358
13359         * ThemeWin32Classic.cs: Use Windows Standard Colours
13360
13361 2004-08-07 17:32  jordi
13362
13363         * TrackBar.cs: throw exceptions of invalid enums values
13364
13365 2004-08-07 17:31  jordi
13366
13367         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13368           draw method name
13369
13370 2004-08-07 16:56  jackson
13371
13372         * HorizontalAlignment.cs: Initial checkin
13373
13374 2004-08-07 13:16  jordi
13375
13376         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13377           methods
13378
13379 2004-08-07 13:05  jordi
13380
13381         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13382           GetSysColor defines
13383
13384 2004-08-06 18:01  pbartok
13385
13386         * ThemeWin32Classic.cs:
13387           - Fixed some rounding issues with float/int
13388
13389 2004-08-06 18:00  jackson
13390
13391         * DockStyle.cs, AnchorStyles.cs:
13392
13393                   Add flags and serializable attributes.
13394
13395 2004-08-06 17:46  pbartok
13396
13397         * XplatUIX11.cs:
13398           - Implemented GetParent
13399
13400 2004-08-06 17:18  pbartok
13401
13402         * TrackBar.cs:
13403           - Fixed some rounding issues with float/int
13404
13405 2004-08-06 17:17  pbartok
13406
13407         * X11Structs.cs, XplatUIX11.cs:
13408           - Fixed Refresh and Invalidate
13409
13410 2004-08-06 15:30  pbartok
13411
13412         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13413           - Fixed recursive loop when resizing
13414           - Improved/fixed redrawing on expose messages
13415
13416 2004-08-06 09:53  jordi
13417
13418         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13419           keyboard navigation
13420
13421 2004-08-06 08:02  pbartok
13422
13423         * X11Structs.cs, XplatUIX11.cs:
13424           - Fixed reparenting
13425           - Fixed window border creation
13426
13427 2004-08-05 15:38  pbartok
13428
13429         * XplatUIX11.cs:
13430           - Attempted fix for reparenting problems
13431
13432 2004-08-04 15:14  pbartok
13433
13434         * Control.cs:
13435           - Fixed Invalidation bug (calculated wrong client area)
13436           - Added ClientSize setter
13437
13438 2004-08-04 15:13  pbartok
13439
13440         * Form.cs:
13441           - Added AutoScale properties
13442
13443 2004-08-04 15:13  pbartok
13444
13445         * SWF.csproj:
13446           - Added latest files
13447
13448 2004-08-04 14:11  pbartok
13449
13450         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13451           XplatUIX11.cs:
13452           - Added Invalidate handling
13453
13454 2004-08-03 17:09  jordi
13455
13456         * XplatUIDriver.cs: fixes spelling mistake
13457
13458 2004-07-27 09:53  jordi
13459
13460         * TrackBar.cs: fixes trackbar events, def classname, methods
13461           signature
13462
13463 2004-07-27 09:29  jordi
13464
13465         * ScrollBar.cs: fixes scrollbar events
13466
13467 2004-07-27 04:38  jordi
13468
13469         * Control.cs: changes to be able to run winforms samples
13470
13471 2004-07-26 11:42  jordi
13472
13473         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13474           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13475
13476 2004-07-26 05:41  jordi
13477
13478         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13479           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13480           implementation
13481
13482 2004-07-22 09:22  jordi
13483
13484         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13485           check link overlapping, implement events, and fixes
13486
13487 2004-07-21 10:28  jordi
13488
13489         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13490
13491 2004-07-21 10:19  jordi
13492
13493         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13494           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13495           LinkLabelLinkClickedEventArgs.cs,
13496           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13497           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13498           implementation
13499
13500 2004-07-19 13:09  jordi
13501
13502         * Control.cs, Label.cs: label control re-written: added missing
13503           functionlity, events, and properties
13504
13505 2004-07-19 10:49  jordi
13506
13507         * Control.cs: fixes SetBounds logic
13508
13509 2004-07-19 01:29  jordi
13510
13511         * Control.cs: Call RefreshWindow only if the window has created
13512
13513 2004-07-15 14:05  pbartok
13514
13515         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13516           - Implemented ImageList and ImageList.ImageCollection classes
13517           - Added ColorDepth enumeration
13518           - Updated SWF VS.Net project
13519
13520 2004-07-15 11:06  jordi
13521
13522         * XplatUIStructs.cs: added MsgButons enum
13523
13524 2004-07-15 11:03  jordi
13525
13526         * Control.cs: added basic mouse handeling events
13527
13528 2004-07-15 03:38  jordi
13529
13530         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13531           Vertical TrackBar control implementation
13532
13533 2004-07-13 09:33  jordi
13534
13535         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13536
13537 2004-07-13 09:31  jordi
13538
13539         * Control.cs, Form.cs: commit: new properties and fixes form size
13540           problems
13541
13542 2004-07-09 14:13  miguel
13543
13544         * ProgressBar.cs: Spelling
13545
13546 2004-07-09 11:25  pbartok
13547
13548         * ProgressBar.cs:
13549           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13550           faster
13551
13552 2004-07-09 11:17  miguel
13553
13554         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13555
13556                 * ProgressBar.cs: Fixed spelling for `block'
13557
13558                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13559                 style guidelines.
13560
13561                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13562
13563 2004-07-08 23:21  pbartok
13564
13565         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13566           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13567           BaseCollection.cs, Binding.cs, BindingContext.cs,
13568           BindingMemberInfo.cs, BindingsCollection.cs,
13569           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13570           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13571           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13572           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13573           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13574           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13575           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13576           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13577           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13578           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13579           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13580           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13581           InputLanguageChangedEventArgs.cs,
13582           InputLanguageChangedEventHandler.cs,
13583           InputLanguageChangingEventArgs.cs,
13584           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13585           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13586           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13587           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13588           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13589           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13590           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13591           QueryAccessibilityHelpEventArgs.cs,
13592           QueryAccessibilityHelpEventHandler.cs,
13593           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13594           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13595           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13596           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13597           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13598           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13599           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13600           XplatUIX11.cs, lang.cs:
13601           - Initial check-in
13602