* ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-18  Jackson Harper  <jackson@ximian.com>
2
3         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
4         up.
5
6 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
7
8         * Control.cs: Brought back our old UpdateZOrder method as a private
9           function and switched our calls from UpdateZOrder to the new one.
10           This fixes the Paint.Net canvas disappearing bug.
11
12 2006-05-18  Jackson Harper  <jackson@ximian.com>
13
14         * Theme.cs:
15         * ThemeWin32Classic.cs:
16         * InternalWindowManager.cs: Move the drawing into the theme,
17         expose everything the theme should need from the window manager.
18
19 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
20
21         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
22           from the call to NativeWindow to avoid walking up the parent chain
23           further than needed (speeds up setting cursors and avoids setting
24           the wrong cursor if a parent has another cursor defined)
25         * Cursor.cs: When loading an icon as cursor, MS uses the center of
26           the icon as hotspot, not what's contained as hotspot in the icon
27           file. This fixes the perceived drawing offset seen with Paint.Net
28         
29 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
30
31         * XplatUIX11.cs: 
32           - Store the calculated rectangle in Hwnd object and use it when 
33             setting the client size
34           - Force Toolwindows to always be type Dock, to ensure they're on top
35
36 2006-05-18  Mike Kestner  <mkestner@novell.com>
37
38         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
39         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
40         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
41         Substantial refactoring to remove confusing nested classes. Coding
42         standard and Get+Set->property refactorings.  Shift to index based
43         highlighting in ComboListBox instead of constantly using IndexOf and
44         Items[]. Add invalidations on resize for DropDownList to fix ugliness
45         in FileDialog growth.  Draw borders manually since Simple mode needs
46         to look like two independent controls.  Make listbox border
47         conditional to DropDownStyle.  Improved OwnerDraw support.
48
49 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
50
51         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
52         Don't set the disposed graphics to null, so we can throw the "right"
53         exception if the graphics is reused later (added a flag to avoid 
54         double disposing). Some behaviours are different under 2.0 and are
55         filled under bug #78448.
56
57 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
58
59         * Control.cs: When double-buffering is enabled, we need to reset
60           our graphics context between paint calls. Otherwise, any 
61           transformations and other alterations on the context will 
62           become cumulative (#77734)
63
64 2006-05-18  Mike Kestner  <mkestner@novell.com>
65
66         * ListView.cs: do focused item selection like MS on clicks. 
67         Rework focus handling for ItemControl so LostFocus invalidates as
68         well.
69         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
70         the ListView ItemControl has focus.
71
72 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
73
74         * XplatUIX11.cs: If client_window ends up being width or height zero
75           due to border settings, move it off window inside whole_window (#78433)
76
77 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
78
79         * Mime.cs: Shrink the mime file cache correctly.
80
81 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
82
83         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
84
85 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
86
87         * XplatUIX11.cs (AddExpose): More sanity checks
88
89 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
90
91         * XplatUIX11.cs:
92           - AddExpose: Don't add expose ranges outside the size of our
93             window
94           - Cast opacity values to Int32 to avoid crashes with certain
95             values
96           - Added disabled code paths that protect against illegal cross-
97             thread painting (Developers.exe)
98
99 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
100
101         * ProgressBar.cs: Invalidate the control when it's resized
102           since block size is based on control size. (#78388)
103
104 2006-05-16  Miguel de Icaza  <miguel@novell.com>
105
106         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
107         of setting the incoming argument to the "reset" value, we set the
108         this.datamember to string.empty (before we were invalidating the
109         incoming data).   
110
111         Fixes 78420
112
113 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
114
115         * Form.cs: Only apply transparency settings after the form
116           is created. (Fixes #77800)
117
118 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
119
120         * ApplicationContext.cs: Grab the HandleDestroyed event so
121           we know when to fire OnMainFormClosed 
122
123 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
124
125         * Application.cs: Introduced sub-class to allow tracking of
126           threads and centralized triggering of the event mess for
127           ThreadExit, AppExit, etc..  (#76156)
128
129 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
130
131         * MimeIcon.cs:
132           - Do not return a null icon index value for a mime subclass.
133             Instead try the main mime type class too.
134           - Seems that some newer distributions don't have a link to some
135             gnome default icons anymore. So check the default gnome dir too.
136           
137
138 2006-05-16  Jackson Harper  <jackson@ximian.com>
139
140         * MdiClient.cs: Don't paint the parent background image if we have
141         our own background image.
142
143 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
144
145         * Control.cs:
146           - PerformLayout: Do not shrink space filled by DockStyle.Fill
147             controls, all filled controls are supposed to overlap (#78080)
148           - UpdateZOrder is supposed to update the control's z-order in the
149             parent's z-order chain. Fixed to behave like that
150           - BringToFront: Removed obsolete code
151           - SendToBack: Simplyfied
152           - SetChildIndex: Trigger layout calculations when Z-order changes
153             since layout is done by z-order
154
155 2006-05-16  Chris Toshok  <toshok@ximian.com>
156
157         [ fixes bug #78410 ]
158         * DataGrid.cs (set_AlternatingBackColor): use
159         grid_drawing.InvalidateCells instead of Refresh().
160         (set_BackColor): call grid_drawing.InvalidateCells.
161         (set_BackgroundColor): use Invalidate instead of Refresh.
162
163         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
164         invalidate the cell area.
165
166 2006-05-15  Chris Toshok  <toshok@ximian.com>
167
168         [ fixes bug #78011 ]
169         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
170         on to DataGridPaintRow.
171         (DataGridPaintRow): take a clip argument, and only draw the cells
172         which intersect it.  same with the not_usedarea.
173
174         * Theme.cs (DataGridPaintRow) add @clip parameter.
175
176         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
177         XplatUI.ScrollWindow.
178         (ScrollToRow): same.
179
180         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
181         with last column which was causing a gray swath to appear with the
182         XplatUI.ScrollWindow code.
183
184 2006-05-15  Chris Toshok  <toshok@ximian.com>
185
186         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
187         use XplatUI.ScrollWindow.
188         (VerticalScrollEvent): use XplatUI.ScrollWindow.
189
190 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
191
192         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
193
194 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
195
196         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
197           file since there are no equivalent X11 cursors
198
199 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
200
201         * MonthCalendar.cs : DateTimePicker should reflect selected date
202           on mouse*up*, not mouse*down*. Fixed originally reported part of
203           bug #76474.
204
205 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
206
207         * TabControl.cs : When argument index is equal or more than tab
208           count, just ignore. Fixed bug #78395.
209
210 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
211
212         * Control.cs: Dispose all child controls when control is diposed (#78394)
213
214 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
215
216         * ColorDialog.cs: Finally it is possible to select the color with
217           the text boxes
218
219 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
220
221         * PrintDialog.cs: Fix typo
222
223 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
224
225         * PrintDialog.cs: PrintDialog is not resizable
226         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
227           color. Made some ToolBar drawing methods protected virtual.
228
229 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
230
231         * PrintDialog.cs: Implementation of the PrintDialog
232
233 2006-05-12  Chris Toshok  <toshok@ximian.com>
234
235         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
236         thumb, instead use MoveThumb.  This has the side effect of making
237         most of the other thumb moving machinery use MoveThumb as well.
238         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
239         need to actually invalidate the rectangle where the new thumb will
240         go.
241         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
242         We force an Update() after, so it's not as fast as it could be,
243         but at least there's zero flicker and no droppings.
244         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
245         (UpdateThumbPos): add another argument (dirty), which says whether
246         or not to calculate/add dirty regions which we later invalidate.
247         For cases where we know we're going to use MoveThumb, we pass
248         false for this.  Otherwise, pass true.
249
250 2006-05-12  Jackson Harper  <jackson@ximian.com>
251
252         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
253         the status bar.
254         
255 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
256
257         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
258           and GetClipRegion methods and UserClipWontExposeParent property.
259         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
260           overriding UserClipWontExposeParent property, setting to false, since
261           Win32 handles the required expose messages to draw our clipped parent
262           areas internally
263         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
264           PaintEventStart to set the user clip region if set.
265         * Control.cs: 
266           - Now internally tracking the Region for the control since we need to
267             store it if the handle is not yet created and only set it when it
268             becomes created. Before setting the region forced handle creation
269           - Added code to draw the parents underneath a user-clipped region
270         * Hwnd.cs: Added UserClip property
271
272 2006-05-12  Chris Toshok  <toshok@ximian.com>
273
274         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
275         (set_Maximum): same.
276         (set_Minimum): same.
277         (set_SmallChange): same.
278         (OnMouseUpSB): remove the call to refresh when releasing the
279         thumb.  We shouldn't need it.
280         
281 2006-05-12  Miguel de Icaza  <miguel@novell.com>
282
283         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
284         AutoSize set to None, we do not need to relayout everything, we
285         just need to invalidate the current region.
286
287         (Draw): Do not draw the entire ClientArea, just redraw the
288         clip area being passed.
289
290         * MdiClient.cs: Make MdiClient constructor with the Form argument
291         internal. 
292
293 2006-05-12  Jackson Harper  <jackson@ximian.com>
294
295         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
296         parents background image,  but strangely not their own.
297         - (DrawStatusBarPanel): Take into account horizontal alignment
298         when drawing the strings and icons.
299
300 2006-05-12  Mike Kestner  <mkestner@novell.com>
301
302         * ListBox.cs: avoid invalidations for focus when the collection is
303         empty. 
304
305 2006-05-12  Chris Toshok  <toshok@ximian.com>
306
307         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
308         invalidate the entire thumb area.  Call InvalidateDirty which
309         limits the redraw to the thumb itself and surrounding pixels.
310
311         * XplatUIX11.cs (ScrollWindow): optimize copying.
312         
313 2006-05-12  Chris Toshok  <toshok@ximian.com>
314
315         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
316         Figure out the positioning/layout in a single pass instead of
317         multiple recursive invocations.  Speeds up the initial display of
318         the data grid.  Also, make many things private that were
319         originally public but unused outside this class.
320
321 2006-05-11  Jackson Harper  <jackson@ximian.com>
322
323         * MdiClient.cs: Improved layout code.
324
325 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
326
327         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
328           not SelectedObject.
329
330 2006-05-11  Chris Toshok  <toshok@ximian.com>
331
332         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
333         union of that will always be {0,0,width,height}.
334
335 2006-05-11  Jackson Harper  <jackson@ximian.com>
336
337         * Form.cs: Match MS's DefaultSize for forms (they must have
338         changed the size in sp2).
339
340 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
341
342         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
343
344 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
345
346         * TextControl.cs : Fixed bug #78109. This incorrect position
347           comparison caused crash on automatic line split.
348         * TextBoxBase.cs : reduce duplicate code.
349
350 2006-05-10  Jackson Harper  <jackson@ximian.com>
351
352         * MdiClient.cs: Active form is only sent to the back when using
353         the Next form functionality, when a form is clicked the current
354         active shouldn't be sent to the back.
355         - Layout the mdi windows when the container is first made visible.
356         * Form.cs: Give the MdiClient a ref to the containing form when we
357         create it.
358         
359 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
360
361         * LinkLabel.cs : link_font could be uninitialized, so populate one
362           before actual use. Fixed bug #78340.
363
364 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
365
366         * XplatUIX11.cs : clipboard format native value is IntPtr.
367           Fixed bug #78283.
368
369 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
370
371         * Control.cs: 
372           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
373             which is passed up the parent chain by DefWndProc
374           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
375             to DefWndProc (#77956)
376         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
377
378 2006-05-10  Jackson Harper  <jackson@ximian.com>
379
380         * MdiClient.cs: We need to remove the controls from the mdi
381         collection, when we close the window.
382         * MdiWindowManager.cs: Special handling of closing mdi windows.
383         * InternalWindowManager.cs: Make the close method virtual so the
384         mdi window manager can handle it specially.
385
386 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
387
388         * DataGrid.cs:
389           - Recalculate grid when the data source has changed
390           - Matches styles provided by user from all data sources types
391         * DataGridTableStyle.cs: For columns that provided by the user set the
392         with the preferred value is there was unassigned.
393         * CurrencyManager.cs: throw OnItemChanged event
394
395 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
396
397         * PictureBox.cs: Don't animate until handle is created. Start animation
398           when handle is created.
399
400 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
401
402         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
403           current codebase.
404         * XEventQueue.cs: We don't need to provide the extra info
405
406 2006-05-10  Jackson Harper  <jackson@ximian.com>
407
408         * MdiClient.cs: If the mdi clients parent form has a background
409         image set, we draw that background image for the mdi area's
410         background.
411
412 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
413
414         * TextBoxBase.cs: Set IBeam cursor (#78347)
415
416 2006-05-10  Mike Kestner  <mkestner@novell.com>
417
418         * ToolBar.cs: fix some text padding issues with ButtonSize
419         calculation. Update the default size to match MS documentation.
420         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
421         button size. Fixes #78296.
422
423 2006-05-10  Mike Kestner  <mkestner@novell.com>
424
425         * ListBox.cs: use is_visible for scrollbar positioning in case the
426         control isn't on screen yet.  Fix off by one with Right vs Width
427         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
428         
429 2006-05-10  Jackson Harper  <jackson@ximian.com>
430
431         * X11Dnd.cs: Drop to a control with another control on top of it.
432         * ToolBar.cs: Work on a copy of the buttons list, so that it can
433         be modified in click handlers. TODO: Look for similar problems in
434         other controls.
435
436 2006-05-09  Jackson Harper  <jackson@ximian.com>
437
438         * Form.cs: Window managers need the old window state when setting
439         window state now.
440         * InternalWindowManager.cs: Allow the base mdi window manager to
441         handle more of the MDI only stuff (like maximize buttons).
442         * MdiWindowManager.cs: Fix some snafus in changing the window
443         state.  Add all the menu functionality, for both popup and
444         maximized menus.
445         * MdiClient.cs: When a new form is selected the currently
446         activated form is sent to the back, this matches MS.
447         - Implement a new method to activate the next mdi child window.
448
449 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
450
451         * Control.cs: 
452           - Added new InternalCapture method to allow controls to prevent
453             the capture behaviour on the click handlers
454           - Switched to use InternalCapture
455         * ComboBox.cs:
456           - Using InternalCapture to prevent mouse captures from being released
457             on mouse button release (Fixes #78100)
458         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
459           returns Form borders if a caption is present. (Fixes #78310)
460
461 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
462
463         * TreeNode.cs: Changed serialization .ctor to not require every field
464           to be present. (#78265)
465         * OwnerDrawPropertyBag.cs: Added serialization .ctor
466
467 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
468
469         * MimeIcon.cs: for is faster than foreach for strings.
470
471 2006-05-05  Mike Kestner  <mkestner@novell.com>
472
473         * CheckedListBox.cs: update check handling code to not use selected.
474         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
475         behavior for visual feedback, motion response, shift/ctrl handling,
476         and properly deal with all 4 selection modes. Updates to bounds
477         handling logic.  Add scroll wheel support. [Fixes #77842]
478
479 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
480
481         * ListView.cs:
482           - Moved adding of Implicit controls into .ctor. That way, subsequent
483             creation of the controls will not cause them to think they are 
484             toplevel windows (fixes #78200 header problem)
485           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
486           - Switched visibility setting of header control to use internal field
487             to avoid triggering handle creation
488           - Now checking if handle is created before causing a refresh when items
489             are added (This makes us now match handle creation time with MS)
490         * Splitter.cs: Removed loading of private splitter cursor, switched to
491           Cursors version now that that is loading the right ones
492         * Cursors.cs: Load proper splitter cursors from resources
493         * Cursor.cs: Added second method of loading resource cursors for the 
494           VS.Net users amongst us
495
496 2006-05-05  Mike Kestner  <mkestner@novell.com>
497
498         * ListView.cs: give header_control a minimum size based on the
499         ListView size.
500
501 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
502
503         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
504           window seems to do that with metacity, so set that type. (#78120)
505
506 2006-05-05  Mike Kestner  <mkestner@novell.com>
507
508         * ListViewItem.cs: fix Details mode checkbox layout bug.
509         * ThemeWin32Classic.cs: draw a ListView column header for unused space
510         at the end of the header, if it exists. [Fixes for #78200]
511
512 2006-05-04  Jackson Harper  <jackson@ximian.com>
513
514         * MdiClient.cs: Add a helper property to get the container form.
515         * MdiWindowManager.cs: We have to make sure to use the menu origin
516         when drawing the icons and buttons, this fixes maximized window
517         icons/buttons on win32.
518         * InternalWindowManager.cs: Reset the restore captions when a
519         window goes from Maximized to Minimized and vice versa. Move the
520         DrawMaximizedButtons into the MdiWindowManager source, tool
521         windows can't be maximized. NOTE: This could use a little
522         refactoring if time ever permits.
523         
524 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
525
526         * TextBox.cs: Add MWFCategoryAttributes
527         * TextBoxBase.cs: Add MWFCategoryAttributes
528         * Form.cs: Add MWFCategoryAttributes
529
530 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
531
532         * Control.cs: Add MWFCategoryAttributes
533         * ScrollableControl.cs: Add MWFCategoryAttributes
534
535 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
536
537         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
538           Divider is true. Fix a little glitch in PropertyToolBar
539           drawing code
540
541 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
542
543         * Control.cs:
544           - Dispose: Call base.Dispose, this causes the disposed event
545             to be fired (and probably other, more important stuff)
546           - SetVisibleCore: Set is_visible to true after creating the
547             window so that the window still gets created invisible (if
548             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
549             to generate a WM_ACTIVE message
550         * Form.cs: Call Dispose when we want to destroy the window, instead of
551           just destroying the handle (Dispose will do that for us)
552         * XplatUIX11.cs:
553           - RootWindow also needs a queue, so we can properly process the
554             property change events from RootWindow (like Activate)
555           - Generatic synthetic WM_ACTIVE message when the active window is
556             being destroyed
557
558 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
559
560         * LinkLabel.cs: Trigger a recalc of our label dimensions when
561           bounds are changed
562
563 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
564
565         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
566           for determining width and height (image might not be assigned if
567           we're drawing an imagelist)
568
569 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
570
571         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
572         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
573           height from system
574         * Theme.cs: No longer returns hardcoded menu height, instead calls
575           new driver method
576         * Form.cs (OnLoad): Scaling happens before triggering Load events 
577           on MS (# 78257)
578
579 2006-05-01  Mike Kestner  <mkestner@novell.com>
580
581         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
582
583 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
584
585         * TextBoxBase.cs: Removed Fixme
586         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
587
588 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
589
590         * XplatUIX11.cs:
591           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
592             the rectangle relative to the parent, considering borders. We
593             don't really want that.
594           - ScrollWindow: Fixed warning to be more understandable
595         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
596           scrollbars and scroll only the visible area
597         * RichTextBox.cs: Removed debug output
598
599 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
600
601         * NumericUpDown.cs (Text): Just use base
602         * UpDownBase.cs: Ensure txtView is created before using it
603
604 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
605
606         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
607           casting to IntPtr to avoid 64bit overflow errors
608
609 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
610
611         * Control.cs:
612           - AllowDrop: Don't force handle creation.
613           - CreateHandle: Added call to tell driver if we're allowed to drop
614
615 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
616
617         * FileDialog.cs: Remember the last directory not only for the
618           current instance but also for new FileDialog instances.
619
620 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
621         
622         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
623           broke sending async messages
624
625 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
626
627         * XplatUIX11.cs:
628           - ScrollWindow: Fixed method. We finally generate expose events again
629             for scrolled areas. This was causing 'garbage' when scrolling
630             textbox and other controls that used ScrollWindow
631           - Switched from using the regular queue for paint events to the MS 
632             model of 'generating' paint events when the queue is empty.
633             We use the new XQueueEvent.Paint subclass to store which windows
634             need painting.
635           - AddExpose now takes the x/y/width/height of the exposed area
636             and inserts the window into the paint queue if not already there
637           - InvalidateWholeWindow: Switched to use new AddExpose method
638           - UpdateMessageQueue: Added which queue to monitor for paint events
639           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
640             the unlikely case nothing above handles it. We reset the expose
641             pending states to get them off the queue.
642           - GetMessage: Now pulls a paint event if no other events are in the
643             queue
644           - Invalidate: Switched to new AddExpose method
645           - PeekMessage: Updated to understand pending paint events
646           - UpdateWindow: Fixed logic bug. We were only updating if the window
647             didn't need updating. Also switched to sending WM_PAINT directly,
648             like MS does.
649         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
650           and random access Remove(). The random access is needed to handle
651           UpdateWindow() where a WM_PAINT is sent directly without accessing
652           the queue.
653         * ScrollBar.cs: Added Update() calls to cause immediate updates to
654           allow for better feedback when scrolling. Scrollbars are small and
655           the immediate update should make it 'feel' more responsive without
656           slowing things down. ScrollBar still needs it's invaliate logic
657           updated to not always invalidate the whole bar on certain changes.
658
659 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
660
661         * Control.cs:
662         (BackColor): if the control does not support a transparent background,
663         return the default backcolor when the parent backcolor is transparent.
664
665 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
666
667         * Application.cs: Updated to new StartLoop/GetMessage API
668         * RichTextBox.cs: Provide some output on RTF parsing errors
669         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
670           new queue_id argument to GetMessage and PeekMessage to allow faster
671           handling of per-thread queues in drivers.
672         * Hwnd.cs: Added Queue tracking and property
673         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
674         * XEventQueue.cs: Added thread trackingA
675         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
676         * XplatUIX11.cs:
677           - Implemented new per-thread queue
678           - GetMessage: Fixed return/break behaviour on several cases. We were
679             returning stale messages in some cases, instead of just processing
680             the next message
681
682 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
683
684         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
685
686 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
687
688         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
689           fixed off-by-one comparisons between Width/Height and Right/Bottom.
690
691 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
692
693         * PropertyGridView.cs: Fix drop down width.
694
695 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
696
697         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
698           a mess in DrawToolBar, so I removed one of them.
699
700 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
701
702         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
703           needed (clip). Otherwise we get artifacts.
704
705 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
706
707         * FixedSizeTextBox.cs: Added constructor to allow specifying which
708           dimension is fixed
709         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
710           and switched FixedSizeTextBox to only be fixed vertical (#78116)
711         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
712           if it matches the scale base font (avoids unneeded scaling)
713
714 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
715
716         * X11DesktopColors.cs: One gtk_init_check should be enough
717
718 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
719
720         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
721           match MS behaviour
722
723 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
724
725         * TextBoxBase.cs: 
726           - Generate OnTextChanged for Backspace even if we're only deleting
727             the current selection
728           - When setting the Text property, only select all text if the
729             control does not have focus when it is being set. Otherwise
730             just place the cursor at the beginning of the control
731
732 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
733
734         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
735           Added a little helper to draw PropertyGrid ToolBar with a different
736           border and a different BackColor.
737         * PropertyGrid.cs: Some background parts didn't get painted with the
738           correct background color. Added a class that helps us to draw the
739           correct border for PropertyGridView and a class that helps us to
740           draw ToolBars with a different backcolor
741         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
742
743 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
744
745         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
746         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
747
748 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
749
750         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
751           into the palette entries. Also, since we're working on a copy
752           we needed to copy the palette back onto the bitmap.
753         * Cursor.cs: Same fix as XplatUIWin32.cs.
754
755 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
756
757         * ImageListStreamer.cs: Need to read the var (or we're off)
758
759 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
760
761         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
762           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
763           TextBoxBase.cs: Unused var fixes
764         * AxHost.cs: Small 2.0 fix
765         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
766           as it seems that is what at least Metacity expects. This will make
767           icons show up on 64bit platforms. We still have some 64bit size
768           issues, though, since the startup app window size still won't match.
769
770 2006-04-25  Mike Kestner  <mkestner@novell.com>
771
772         * *.cs: cleanup newly reported exception var unused warnings.
773
774 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
775
776         * ThemeWin32Classic.cs: Button image alignment now matches exactly
777           ms
778
779 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
780
781         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
782           image. The image position is always the same, no matter if the
783           button is pressed or not.
784
785 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
786
787         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
788           selection and set the correct filename for SaveFileDialog.
789           Patch by Emery Conrad.
790
791 2006-04-24  Mike Kestner  <mkestner@novell.com>
792
793         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
794         check for item.X outside the ClientRect instead of item.Y. Fixes
795         #78151.
796
797 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
798
799         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
800         trust that value blindly and do some sanity check. Fixes bug #77814.
801
802 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
803
804         * ImageListStreamer.cs: save the mask as a 1bpp image.
805
806 2006-04-21  Mike Kestner  <mkestner@novell.com>
807
808         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
809         pass Checked and Indeterminate to the Theme Engine. Improve
810         encapsulation with ListBox.
811         * ListBox.cs: Keep a StringFormat instead of calculating it every item
812         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
813         nested types.  Move all CheckState functionality to CheckedListBox.
814         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
815         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
816         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
817         single base list. Fix scrollbar sizing and placement to mirror MS.
818         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
819         used.
820         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
821         for CheckedListBox by using new DrawItemState info.  Center the
822         checkboxes on the items. Use new StringFormat property.
823
824 2006-04-18  Jackson Harper  <jackson@ximian.com>
825
826         * Form.cs: MdiChildren don't do default locations the same way as
827         regular forms.  This prevents a crash when trying to position the
828         mdi windows.
829
830 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
831
832         * PropertyGridTextBox.cs: Formatting, copyright
833         * PropertiesTab.cs: Formatting
834         * PropertyGrid.cs: Formatting
835         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
836           click toggling of values
837           
838 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
839
840         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
841         * Control.cs (.ctor): verify_thread_handle is static, don't reset
842           every time a control is created
843         * Application.cs: Removed obsolete EnableRTLMirroring method
844
845 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
846
847         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
848         SelectedIndex to -1. Fixes bug #78121.
849
850 2006-04-17  Jackson Harper  <jackson@ximian.com>
851
852         * Binding.cs: Handle null values for Current and BindingContext.
853         This occurs when binding is a little delayed.
854         * CurrencyManager.cs: return null for Current when there are no
855         items in the list.
856         - Hookup to the listchanged event on the DataView and update
857         bindings when the list is changed.  This fixes late binding of
858         controls.
859
860 2006-04-17  Jackson Harper  <jackson@ximian.com>
861
862         * X11Dnd.cs:
863         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
864         Ringenbach.
865
866 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
867
868         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
869           place
870         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
871           with the correct ButtonState
872
873 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
874
875         * XplatUIX11.cs: Improved distinguishing between window types to
876           tell the WM a type closer to what the app wants (Fixes #78107)
877
878 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
879
880         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
881           GrabHandle
882
883 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
884
885         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
886           drawing code to reflect the size grip changes
887
888 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
889
890         * ImageListStreamer.cs: fix handling of the mask that follows the main
891         bitmap when deserializing and serialize it properly. The generated mask
892         should better be a 1bpp image, but I'll do that later.
893
894 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
895
896         * FileDialog.cs: Show something in the DirComboBox on *nix if the
897           path doesn't fit into some of our Current.Places
898
899 2006-04-13  Jackson Harper  <jackson@ximian.com>
900
901         * ComboBox.cs: Use borders instead of drawing our own decorations,
902         try to obey correct rules for heights.
903         * Theme.cs:
904         * ThemeNice.cs:
905         * ThemeClearLooks.cs:
906         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
907         this is now handled by borders.
908         - Remove unused DrawListBoxDecorationSize method.
909         
910 2006-04-13  Mike Kestner  <mkestner@novell.com>
911
912         * MenuAPI.cs: null guarding for the disbled click check fixes crash
913         reported by Alex.
914
915 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
916
917         * ThemeWin32Classic.cs: 
918           - Fixed CPDrawStringDisabled
919           - Corrected drawing of disabled menu items
920           - Fixed drawing of disabled radio buttons (bug #78095)
921           - Draw check in a disabled CheckBox with color ControlDark 
922
923 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
924
925         * Form.cs: Use the provided width when calculating the menu size;
926           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
927           and ClientSize.Width won't be updated yet
928         * Application.cs: Use Visible instead of Show() to make form visible,
929           this way we create the handle later and menusize is considered
930
931 2006-04-12  Mike Kestner  <mkestner@novell.com>
932
933         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
934         reporting.
935
936 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
937
938         * TextBox.cs: Implemented context menu
939
940 2006-04-12  Mike Kestner  <mkestner@novell.com>
941
942         * ListView.cs: implement box selection. fixes #77838.
943         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
944
945 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
946
947         * XplatUIX11.cs: Added setting of window type when transient window
948           is created (metacity would move it otherwise)
949         * X11Structs.cs: Added WINDOW_TYPE atoms
950         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
951           background (the control is Opaque but still wants transparent
952           backgrounds)
953
954 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
955
956         * Control.cs: Added OnPaintBackgroundInternal to allow controls
957           that set Opaque but don't mean it (like all ButtonBase-derived
958           controls) to still draw their background
959         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
960           the background
961
962 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
963
964         * Control.cs (PaintControlBackground): Set the graphics object
965           on our PaintEvent to null to prevent it from being disposed
966           when the PaintEvent gets disposed
967
968 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
969
970         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
971         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
972
973 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
974
975         * Control.cs: 
976           - Added transparency check to BackColor property. Transparent
977             backgrounds are only allowed if the control styles permit it
978           - Added recursive painting of parent control background and
979             foreground if a control with a transparent backcolor is drawn
980             (Thanks to Tim Ringenback for providing his 'hack' as a base
981              for this patch) Fixes #77985 and #78026.
982           - Added Opaque style check before calling OnPaintBackground, no
983             need to draw the background if the control is opaque
984           - Removed ControlAccessibleObject owner variable (inherited from
985             base, no need to define again)
986           - Added some documentation links explaining the drawing events
987             and styles
988
989 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
990
991         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
992           that the affected control is the located at the left border of our
993           parent (Fixes #77936)
994
995 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
996
997         * TextBoxBase.cs: When rendering disabled or readonly controls,
998           draw the background with 'Control' instead of 'Window' color as
999           long as the user hasn't specifically set a color
1000
1001 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1002
1003         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1004           since that won't be updated if the user types text (only if it's
1005           programatically set)
1006
1007 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1008
1009         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1010           layout changes do to app-triggered resizes will have the proper
1011           display rectangle for layout
1012
1013 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1014
1015         * ThemeWin32Classic.cs:
1016           - Make use of the SystemBrushes and SystemPens wherever possible
1017           - Corrected some highlight colors
1018           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1019             drawing
1020         * Theme.cs: Added Empty field to CPColor struct
1021
1022 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1023
1024         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1025           is displayed when calculating the display rectangle. Thanks to Mike
1026           for teaching me the err of my ways.
1027
1028 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1029
1030         * ScrollableControl.cs:
1031           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1032             (instead of 0,0) and we now return the real width/height instead of
1033             just the clientrectangle, adjusted for padding. The rectangle is
1034             now cached and created by the new CalculateDisplayRectangle method.
1035           - Created new CalculateDisplayRectange method, which basically does
1036             what get_DisplayRectangle() did originally, but now using the 
1037             right edge instead of DisplayRectangle to determine the size of
1038             our scrollbars
1039           - get_Canvas(): Fixed it to properly calculate canvas for 
1040             right/bottom controls which seem to be placed to the right/bottom
1041             of any controls that have a fixed location
1042           - Removed TODO that's taken care of
1043           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1044             and SetDisplayRectLocation according to new MSDN2 docs
1045           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1046             event when that is called, this is added for compatibility
1047           - ScrollControlIntoView(): Implemented.
1048           - Switched scrollbars to be implicit, they shouldn't be selectable
1049         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1050           call it when the active control is set/changed
1051         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1052         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1053           implicit_control variable (used for native Win32 message generation)
1054         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1055           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1056         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1057         * XplatUIStructs.cs: Added ScrollBarCommands enum
1058
1059 2006-04-10  Jackson Harper  <jackson@ximian.com>
1060
1061         * ButtonBase.cs:
1062         * CheckedListBox.cs:
1063         * ComboBox.cs:
1064         * DataGrid.cs:
1065         * DataGridView.cs:
1066         * Form.cs:
1067         * GroupBox.cs:
1068         * ListBox.cs:
1069         * PrintPreviewControl.cs:
1070         * ProgressBar.cs:
1071         * PropertyGrid.cs:
1072         * Splitter.cs:
1073         * StatusBar.cs:
1074         * TrackBar.cs:
1075         * UpDownBase.cs: Fixup base event overrides.
1076         
1077 2006-04-06  Mike Kestner  <mkestner@novell.com>
1078
1079         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1080         all user-initiated value changes to min <= value <= max-thumbsz+1.
1081         (set_Value): check for vert/horiz when calculating new thumb position.
1082         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1083         like MS does.
1084         (OnMouseMoveSB): refactor the thumb dragging code and refine
1085         invalidation logic to reduce flicker.
1086         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1087         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1088         (UpdateThumbPosition): small code readability cleanup
1089
1090 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1091
1092         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1093           different
1094
1095 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1096
1097         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1098
1099 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1100
1101         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1102         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1103           This dramatically reduces the number of Pen.Dispose calls. 
1104           Where possible call ResPool methods only once instead of calling it
1105           over and over again (for example for the same color).
1106
1107 2006-04-06  Mike Kestner  <mkestner@novell.com>
1108
1109         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1110         Also remove an unused private field on the collection. Fixes #77972.
1111
1112 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1113
1114         * ThemeNice.cs: Added ToolBar drawing code
1115
1116 2006-04-06  Mike Kestner  <mkestner@novell.com>
1117
1118         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1119         I'm assuming that means we need to look up the toplevel for the
1120         provided control. Fixes the crash trace in #77911 but exposes another
1121         crash in some strange reflection usage in NDocGui.
1122
1123 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1124
1125         * ThemeNice.cs: Gave it a little silver touch and added Images
1126           method
1127         * FontDialog.cs: FontDialog is not resizable
1128         * FileDialg.cs: Added SizeGripStyle.Show
1129
1130 2006-04-05  Jackson Harper  <jackson@ximian.com>
1131
1132         * KeyboardLayouts.cs: Remove warning.
1133
1134 2006-04-05  Jackson Harper  <jackson@ximian.com>
1135
1136         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1137         all of our controls instead of Paint +=.
1138         * ListBox.cs:
1139         * ListView.cs:
1140         * MenuAPI.cs:
1141         * MessageBox.cs:
1142         * NotifyIcon.cs:
1143         * ProgressBar.cs:
1144         * ScrollBar.cs:
1145         * Splitter.cs:
1146         * StatusBar.cs:
1147         * TabControl.cs:
1148         * TextBoxBase.cs:
1149         * ToolBar.cs:
1150         * TrackBar.cs:
1151         * UpDownBase.cs:
1152         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1153         use OnPaintInternal. Remove Width/Height and Visible checks in
1154         paint handler, this is done at a higher level now.
1155         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1156         * PaintEventArgs.cs: Add a handled flag so controls that don't
1157         want anymore painting after OnPaintInternal can make sure OnPaint
1158         isn't called.
1159
1160 2006-04-05  Mike Kestner  <mkestner@novell.com>
1161
1162         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1163         state of the form, so that we don't process events when Modal dialogs
1164         are up. Fixes #77922.
1165
1166 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1167
1168         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1169           checking is done.
1170
1171 2006-04-05  Mike Kestner  <mkestner@novell.com>
1172
1173         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1174
1175 2006-04-05  Mike Kestner  <mkestner@novell.com>
1176
1177         * ListView.cs (HeaderMouseMove): null guarding for the over column
1178         when setting up the drag_to_index.  Fixes #78015.
1179
1180 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1181
1182         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1183           in the taskbar. Transient windows seem to accomplish that.
1184
1185 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1186
1187         * Form.cs:
1188           - Re-enabled CreateParams.X/Y code for FormStartPosition
1189           - Added code for manual placement when creating the Control
1190           - Incomplete patch to treat MDI forms differently when
1191             setting the ClientSizeCore. (Still need to figure out handling
1192             x/y coords there)
1193         * XplatUIX11.cs:
1194           - When we're explicitly setting the X/Y position of a non-Child
1195             window, let the WM know. Metacity really wants this.
1196
1197 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1198
1199         * ThemeNice.cs: Added CPDrawButton
1200
1201 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1202
1203         * ThemeNice.cs: Changed the color for focused buttons and activated
1204           the arrows for small scroll buttons.
1205
1206 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1207
1208         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1209           anymore. Changed some method modifiers to protected (virtual)
1210         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1211           changes
1212         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1213           Updated drawing of menus, buttons and progressbars; added
1214           CPDrawBorder3D 
1215
1216 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1217
1218         * ImageListStreamer.cs: implemented serialization/deserialization
1219         of the images.
1220
1221 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1222
1223         * ThemeWin32Classic.cs:
1224           - Removed all the DrawFrameControl stuff; CPDrawButton,
1225             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1226             inside the methods
1227           - Updated and corrected the drawing code of CPDrawButton,
1228             CPDrawCheckBox and CPDrawRadioButton to better match ms
1229           - Updated theme checkbox and radiobutton code to use the CP*
1230             methods
1231
1232 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1233
1234         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1235           bug is fixed
1236
1237 2006-03-31  Jackson Harper  <jackson@ximian.com>
1238
1239         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1240         sometimes.
1241         * UpDownBase.cs: Don't CreateGraphics manually, use a
1242         Refresh. Ideally we would invalidate the correct areas here.
1243
1244 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1245
1246         * XplatUIX11.cs: 
1247           - We now track the mapping state of windows. If a window (or 
1248             one of it's parents) is not mapped we no longer permit
1249             WM_PAINT messages to be generated since we'd otherwise get 
1250             lots of BadMatch X errors. Jackson did all the work figuring
1251             out the problem.
1252           - Destroying the caret if the window it's contained in is 
1253             destroyed. Can't use regular DestroyCaret method since it
1254             might fall into a drawing function (trying to remove the
1255             caret) and with that generate new BadMatch errors. Again,
1256             Jackson tracked this down.
1257           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1258             make sure we send the messages to all windows. (The old code
1259             would send the WM_DESTROY to the window, and then all child
1260             windows would be 'gone' because the WM_DESTROY handle lookup
1261             would no longer find the destroyed window)
1262         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1263         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1264
1265 2006-03-31  Jackson Harper  <jackson@ximian.com>
1266
1267         * ScrollableControl.cs: Dont recalc if we are not visible.
1268
1269 2006-03-31  Mike Kestner  <mkestner@novell.com>
1270
1271         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1272         the visibility branch.
1273
1274 2006-03-31  Jackson Harper  <jackson@ximian.com>
1275
1276         * ScrollBar.cs: Cap values when incrementing/decrementing.
1277
1278 2006-03-31  Mike Kestner  <mkestner@novell.com>
1279
1280         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1281         * ToolTip.cs: guard against timer expirations with no active control.
1282         Not sure why it happened.
1283
1284 2006-03-31  Mike Kestner  <mkestner@novell.com>
1285
1286         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1287         text.
1288         * ToolTip.cs: Position the tooltip based on where the cursor is at
1289         popup time, not at MouseEnter time.  Add a Down state so that we don't
1290         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1291         positioning offset. Lookup DisplaySize at positioning time, since it
1292         can theoretically change during invocation.
1293         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1294         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1295
1296 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1297
1298         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1299           Fixes behaviour when the Text property of the box is String.Empty
1300
1301 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1302
1303         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1304           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1305           a window)
1306
1307 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1308
1309         * FileDialog.cs: Visual enhancement for the popup buttons in 
1310           PopupButtonPanel
1311
1312 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1313
1314         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1315           code
1316
1317 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1318
1319         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1320           highlighted menu items to match ms
1321
1322 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1323
1324         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1325
1326 2006-03-30  Mike Kestner  <mkestner@novell.com>
1327
1328         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1329         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1330         go active to account for HotLight to Selected transition.
1331         * MenuItem.cs: add internal Selected prop. Fill out the Status
1332         property by calculating it from item info. Add HotLight,
1333         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1334
1335 2006-03-30  Mike Kestner  <mkestner@novell.com>
1336
1337         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1338
1339 2006-03-29  Jackson Harper  <jackson@ximian.com>
1340
1341         * Form.cs: Implement TODO.
1342
1343 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1344
1345         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1346           missing proper dialog setup in the constructor
1347
1348 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1349
1350         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1351         * Control.cs:
1352           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1353           - Fixed ResetBindings and removed TODO
1354           - Added check for cross-thread calls to get_Handle()
1355           - Added Marshaller attribute for set_Font to satisfy class status
1356         * FontDialog.cs: Removed TODOs that seemed implemented
1357         * UpDownBase.cs: Removed unneeded TODO and Fixme
1358         * MessageBox.cs: Implemented support for Default button and removed TODO
1359         * FileDialog.cs: Removed obsolete TODO
1360         * DomainUpDown.cs: Removed obsolete TODO
1361         * ButtonBase.cs: Removed obsolete TODO
1362         * XplatUIWin32.cs: Removed obsolete TODO
1363         * Form.cs:
1364           - Removed obsolete TODO
1365           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1366             internal status updates
1367           - Making sure the active control is selected when the control is created
1368         * CurrencyManager.cs: Removed obsolete TODO
1369
1370 2006-03-29  Mike Kestner  <mkestner@novell.com>
1371
1372         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1373         of PrintPreviewDialog and RichTextBox.
1374
1375 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1376
1377         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1378           DarkDark, Light and LightLight colors for a specific color
1379         * ThemeWin32Classic.cs:
1380           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1381             Appearance = Button 
1382           - Make use of the new ResPool helper CPColor
1383           - Draw ProgressBar and StatusBar with correct 3D borders
1384
1385 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1386
1387         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1388
1389 2006-03-28  Mike Kestner  <mkestner@novell.com>
1390
1391         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1392         calculating col/row counts.
1393
1394 2006-03-28  Mike Kestner  <mkestner@novell.com>
1395
1396         * ColumnHeader.cs:
1397         * ListView.cs:
1398         * ListViewItem.cs:
1399         * Menu.cs: 
1400         switch to explicit interface method implementation for some methods
1401         corcompare identifies as inconsistent with MS.
1402
1403 2006-03-28  Mike Kestner  <mkestner@novell.com>
1404
1405         * MainMenu.cs: 
1406         * Menu.cs:
1407         add a few missing methods from the class status output.
1408
1409 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1410
1411         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1412           correct.
1413
1414 2006-03-28  Mike Kestner  <mkestner@novell.com>
1415
1416         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1417
1418 2006-03-27  Mike Kestner  <mkestner@novell.com>
1419
1420         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1421         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1422
1423 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1424
1425         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1426
1427 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1428
1429         * ThemeWin32Classic.cs:
1430           - GroupBox: Inserted a little gap between the text and the lines
1431             on the right side
1432           - Made the code in CPDrawBorder3D more readable
1433           - Corrected the drawing location of the up and down arrows in 
1434             CPDrawScrollButton
1435
1436 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1437
1438         * ControlPaint.cs: Corrected line widths in DrawBorder for
1439           ButtonBorderStyle Inset and Outset
1440
1441 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1442
1443         * ThemeWin32Classic.cs:
1444           - Rewrote the totally broken CPDrawBorder3D method. That was
1445             one of the main problems for the terrific ThemeWin32Classic
1446             look
1447           - Updated and corrected Button drawing
1448           - Correct the dimensions of the SizeGrip to match ms ones
1449           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1450         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1451           Border3DStyle.Sunken to match ms.
1452
1453 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1454
1455         * ThemeWin32Classic.cs: First small part of the "de-uglify
1456           ThemeWin32Classic" effort, SizeGrip
1457
1458 2006-03-24  Jackson Harper  <jackson@ximian.com>
1459
1460         * XplatUIX11.cs: Give a max idle time of one second, this matches
1461         MS and forces an Idle event every second when there are no other
1462         events in the queue.
1463
1464 2006-03-24  Mike Kestner  <mkestner@novell.com>
1465
1466         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1467         * ListView.Item.cs: fix layout issues with null image lists and images
1468         smaller than checkbox size.
1469         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1470         mode like MS does.  It's weird, but consistent.  ;-)
1471         Fixes #77890.
1472
1473 2006-03-24  Mike Kestner  <mkestner@novell.com>
1474
1475         * ListView.cs: Scroll wheel support for the item control.  Fixes
1476         #77839.
1477
1478 2006-03-23  Jackson Harper  <jackson@ximian.com>
1479
1480         * ScrollableControl.cs: Special case negative sized areas, not
1481         zero.
1482         * MonthCalendar.cs: Save the rect of the clicked date so we can
1483         use it for invalidation.
1484         - Try to cut down on the number of invalidates
1485         - Invalidate the rect the mouse is over and was over when moving
1486         the mouse, so we get the focus box following the cursor.
1487
1488 2006-03-23  Mike Kestner  <mkestner@novell.com>
1489
1490         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1491         focus rectangle drawing. Fixes #77835.
1492
1493 2006-03-23  Mike Kestner  <mkestner@novell.com>
1494
1495         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1496         the if and else if and reverting back to the original == check on the
1497         None conditional.
1498
1499 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1500
1501         * FontDialog.cs: Update the example panel if the selected index of
1502           the fontListBox changes.
1503
1504 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1505
1506         * FileDialog.cs: Make FileDialog remember which directory it was in
1507           last in the same execution.
1508
1509 2006-03-22  Mike Kestner  <mkestner@novell.com>
1510
1511         * FileDialog.cs: make the DropDownMenu on the toolbar display
1512         RadioChecks since they are mutually exclusive and that's what MS does.
1513
1514 2006-03-22  Mike Kestner  <mkestner@novell.com>
1515
1516         * Theme.cs: add Color param to CPDrawMenuGlyph.
1517         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1518         checks and radio marks and arrows are visible on highlighted items.
1519         * ControlPaint.cs: update to use new Theme signature.
1520
1521 2006-03-22  Mike Kestner  <mkestner@novell.com>
1522
1523         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1524         is active. Fixes #77870.
1525
1526 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1527
1528         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1529           to be focused/selected after startup
1530
1531 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1532
1533         * ColorDialog.cs: 
1534           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1535             CustomColors and ShowHelp properties
1536           - Some internal rewrites to get better results when using the
1537             ColorMatrix
1538
1539 2006-03-22  Mike Kestner  <mkestner@novell.com>
1540
1541         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1542         HoverSelection.  Fixes #77836.
1543
1544 2006-03-22  Mike Kestner  <mkestner@novell.com>
1545
1546         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1547         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1548         1, not 0.  Update ButtonSize based on a pixel count of the win32
1549         control.  Adjust the toolbar size/location for new button size.
1550
1551 2006-03-22  Jackson Harper  <jackson@ximian.com>
1552
1553         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1554         true.
1555         * ScrollBar.cs: When doing increments and decrements we need to
1556         set the Value property so that ValueChanged gets raised. A
1557         possible optimization here would be to make an internal SetValue
1558         that doesn't invalidate immediately.
1559         * ToolTip.cs: Tooltips get added to their container (when
1560         supplied) so they get disposed when the container is disposed.
1561         - Don't create tooltips for String.Empty. This prevents all these
1562         little 2-3 pixel windows from showing up when running nunit-gui
1563         and driving me mad.
1564         * Form.cs: Don't set topmost when setting the owner if the handles
1565         haven't been created yet.  The topmost set will happen when the
1566         handles are created.
1567
1568 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1569
1570         * XplatUIX11.cs:
1571           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1572           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1573             visible (to allow them to recalculate their sizes)
1574
1575 2006-03-21  Mike Kestner  <mkestner@novell.com>
1576
1577         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1578         methods. Removed a ton of redundant code.  Still not really happy with
1579         the border rendering, but I think that's mainly because of the
1580         ControlDarkDark being black instead of a dark grey. Depending on how 
1581         close we want to be, we might want to revisit those color choices.
1582         Among the new features added during the refactor were DropDownArrow
1583         pressed rendering, Disabled image rendering.  Proper flat appearance
1584         boundary rendering.  Removed the Divider and Wrapping dividers since I
1585         can't figure out any combination of themes and conditions to make the
1586         MS control draw a horizontal line on a toolbar despite what the
1587         Divider property docs indicate.
1588         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1589         conditions and incorrect layout.  Updated to coding standard.
1590         * ToolBarButton.cs: refactored layout and positioning code from
1591         ToolBar to here.  Invalidate wherever possible instead of forcing
1592         redraws of the whole toolbar. 
1593         (Known remaining issues: explicit ButtonSize smaller than provided
1594         images.)
1595
1596 2006-03-21  Mike Kestner  <mkestner@novell.com>
1597
1598         * ContextMenu.cs (Show): use the position parameter instead of just
1599         showing at the MousePosition.
1600
1601 2006-03-21  Jackson Harper  <jackson@ximian.com>
1602
1603         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1604         control handle this.
1605         * TreeNodeCollection.cs: If we are clearing the root node we need
1606         to reset top_node so calcs can still happen.
1607         * ThemeWin32Classic.cs: This is a Flags so we need to check
1608         properly.
1609         
1610 2006-03-21  Jackson Harper  <jackson@ximian.com>
1611
1612         * DataGrid.cs: Create columns when the binding context has been
1613         changed.
1614         * X11Structs.cs: Keysyms are uints.
1615         - Add size to fix build.
1616
1617 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1618
1619         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1620           XplatUIOSX.cs: 
1621           - Added ResetMouseHover method to allow controls to retrigger
1622             hovering if they need it more than once
1623           - Implemented MouseHoverTime and MouseHoverSize properties
1624         * Timer.cs: Start() must reset the interval
1625         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1626           properties
1627
1628 2006-03-21  Jackson Harper  <jackson@ximian.com>
1629
1630         * X11Keyboard.cs: improved layout detection. Move the nonchar
1631         tables into this file.
1632         * KeyboardLayouts.cs: Move the tables into resource files.
1633
1634 2006-03-21  Mike Kestner  <mkestner@novell.com>
1635
1636         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1637
1638 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1639
1640         * Mime.cs: Various speed optimizations. Looking up mime types
1641           is now 2 times faster than before
1642
1643 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1644
1645         * CreateParams.cs: Added internal menu field
1646         * Control.cs: 
1647           - Switched call order for UpdateBounds; now we always call
1648             the one that also takes ClientSize, and we're calculating the 
1649             client size via driver method in the others. The previous
1650             method of tracking client size by difference wasn't working
1651             for forms where even the starting client size wouldn't match
1652             the overall form size (due to borders) (Part of fix for #77729)
1653           - CreateParams(): Do not use parent.Handle unless the handle is
1654             already created. Causes havoc with Nexxia and throws off our
1655             creation of controls
1656         * XplatUIX11.cs:
1657           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1658           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1659             method (consolidates code)
1660           - Changed RequestNCRecalc to use new PerformNCCalc method
1661           - Added calls to RequestNCRecalc when menus and borders are changed
1662             to allow app to set NC size. (Part of fix for #77729) This matches
1663             when MS send a WM_NCRECALC on Win32 windows.
1664           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1665             (Part of fix for #77729). This matches what MS does, they also
1666             send that message when the form is made visible.
1667           - XException.GetMessage: Improved usability of X errors by including
1668             a translation of the window into Hwnd and Control class
1669           - Improved debug info for window creation, reparenting and destruction
1670           - Created helper method WindowIsMapped() [Currently not used]
1671         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
1672         * Form.cs:
1673           - CreateParams: Now setting our menu on the new internal menu field
1674           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
1675             avoid calculating the same property twice
1676         * Hwnd.cs:
1677           - Improved usability of ToString() for debugging purposes
1678           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
1679             determine the height of the menu, instead of just the font. This
1680             required to also create a graphics context and to keep a bmp 
1681             around (for performance reasons)
1682
1683 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
1684
1685         * MenuAPI.cs: Added OnMouseUp method
1686         * Form.cs:
1687           - Now remembering the requested client size, avoids size errors
1688           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
1689             instead of base if the menu is active. This is required due to
1690             control now capturing and releasing on down/up and it would
1691             prematurely release our menu capture
1692
1693 2006-03-17  Jackson Harper  <jackson@ximian.com>
1694
1695         * KeyboardLayouts.cs: Add the czech layouts.
1696
1697 2006-03-16  Jackson Harper  <jackson@ximian.com>
1698
1699         * Control.cs: Use the viewport space when sizing not the controls
1700         client size, so things like ScrollableControl that effect the
1701         viewport size (when scrollbars are added) are computed correctly.
1702         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
1703         of ManagerEntrys.
1704         - Handle creating BindingManagers for null data sources.
1705         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
1706         source, otherwise when rows are added they are added to the 'fake'
1707         datasource and we will crash when trying to set the position in
1708         those rows.
1709         - Use Implicit scrollbars on the datagrid so they arent
1710         selectable.
1711         
1712 2006-03-16  Jackson Harper  <jackson@ximian.com>
1713
1714         * Binding.cs:
1715         * InternalWindowManager.cs:
1716         * MdiWindowManager.cs:
1717         * X11Keyboard.cs: I really want Mike to love me again (fix
1718         compiler warnings).
1719
1720 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
1721
1722         * DataGrid.cs:
1723           - OnMouseDown: Switch to editing mode when clicking on the cell
1724                          even if we're clicking on the cell that's currently 
1725                          selected
1726           - ProcessGridKey: Left/Right now wrap like MS.Net does
1727           - ProcessGridKey: Tab now knows to add a new row when tab is
1728                             pressed in the cell of the last column of the 
1729                             last row
1730           - ProcessGridKey: Enter now adds another row  if pressed in the last
1731                             row and selectes the new row, same column cell
1732           - ProcessGridKey: Home/End navigate columns, not rows, like 
1733                             originally implemented
1734           - Broke ProcessKeyPreview code out into an extra Internal method
1735             so it can be called from the edit code
1736         * DataGridTextBox.cs (ProcessKeyMessage):
1737           - Switched to accept Tab keypresses
1738           - Added F2 handling to allow jumping to the end of the edited cell
1739           - Added logic to allow moving caret left/right inside edited cell
1740             and making the edited cell jump when the caret hits cell borders
1741           - Tab and Enter are now passed to the datagrid after being handled
1742         * TextBoxBase.cs:
1743           - Removed capture code now that Control handles it
1744           - set_SelectionStart now ensures caret is visible
1745
1746 2006-03-16  Jackson Harper  <jackson@ximian.com>
1747
1748         * TrackBar.cs: Debackwards the increment/decrement for handling
1749         mouse clicks on the bar with vertical trackbars.
1750         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
1751         bottom to match MS.
1752
1753 2006-03-16  Mike Kestner  <mkestner@novell.com>
1754
1755         * ListView.cs: make shift/ctrl keyboard and mouse selection 
1756         consistent with the MS control. Fix a bug in
1757         SelectedListViewItemCollection.Clear that was pissing me off for the
1758         better part of a day because the collection was being altered
1759         underneath us as we walked the list.
1760
1761 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
1762
1763         * Control.cs: Not sure how we could miss this so long, but it seems
1764           that MS.Net has Capture set all the way from before calling 
1765           OnMouseDown through sending the mouse events until after
1766           OnMouseUp. This will fix DataGrid's selection being set to end
1767           at the location of the MouseUp.
1768
1769 2006-03-15  Jackson Harper  <jackson@ximian.com>
1770
1771         * BindingContext.cs: Check the binding after its added so that it
1772           can initialize the binding managers and hookup to events.
1773         * Binding.cs: Data members seem to sometimes include rows/cols in
1774           the format Row.Column we now take this into account.
1775           - Hookup to the position changed event so we can update the
1776           control when the position has changed in the data set.
1777         * CurrencyManager.cs: Take into account the row/col naming
1778           convention when creating dataset tables.
1779         * BindingContext.cs: Using a newer better way of storing
1780           datasource/datamember pairs.  Hopefully this better matches MS for
1781           looking up binding managers.
1782
1783
1784 2006-03-15  Jackson Harper  <jackson@ximian.com>
1785
1786         * BindingContext.cs: The currency manager needs the data member
1787         name, if the member is a data set we use the name to find the
1788         correct table.
1789         * CurrencyManager.cs: When creating the list prefer an IList over
1790         an IListSource.
1791         - Attempt to create a DataTable from a DataSet (TODO: might need
1792         some better error checking here, although MS doesn't seem to have much)
1793         - If we have a DataTable create a view and use it as our list.
1794
1795 2006-03-15  Mike Kestner  <mkestner@novell.com>
1796
1797         * ListView.cs: keep a matrix of the icon mode layout to facilitate
1798         keyboard navigation. Support Up/Down/Left/Right selection correctly
1799         for all 4 View modes.
1800         * ListViewItem.cs: add internal row/col fields for icon layouts.
1801
1802 2006-03-15  Jackson Harper  <jackson@ximian.com>
1803
1804         * TabControl.cs: Redraw the tabs when we resize so their newly
1805         calculated sizes are drawn on screen.
1806         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
1807         composite characters.
1808         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
1809         - filter events so that composite characters can be created
1810         patches by peter
1811         * X11Structs.cs: Add XIMProperties enum.
1812
1813 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1814
1815         * Control.cs (BringToFront, SendToBack): Don't use window or handle
1816           unless it's created
1817
1818 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1819
1820         * Control.cs (PerformLayout): We don't need to consider visiblity
1821           for anchoring, only for docking. This fixes 'whacky' alignment
1822           in listbox and other controls that use implicit scrollbars after
1823           the previous PerformLayout patch
1824         * ListBox.cs: Switched to use implicit scrollbars
1825           
1826 2006-03-14  Mike Kestner  <mkestner@novell.com>
1827
1828         * ToolBar.cs: 
1829         * VScrollBar.cs:
1830         - chain up the "new event" overrides to base and use
1831         OnEvent to raise them.  Part of fix for bug #76509.
1832
1833 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
1834
1835         * FileDialog.cs: Do not select an item in the parent directory
1836           on backspace
1837
1838 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
1839
1840         * Control.cs (PerformLayout): It would seem that we considered
1841           invisible windows for our layout. Not quite the right thing
1842           to do. Now we don't any longer, thereby fixing bug #76889.
1843
1844 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
1845
1846         * Control.cs (CanFocus): I goofed. A control can have focus 
1847           even though it's not selectable. Made it match MS docs.
1848
1849 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1850
1851         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
1852           center by default (fixes #76895)
1853         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
1854           all uses of Border3DSides.All with the explicit ORd together
1855           Left|Right|Top|Bottom because I assume that nobody was aware 
1856           that All also implies a center fill. Most places I checked had
1857           a fill right above.
1858         * ProgressBarStyle.cs: Added
1859
1860 2006-03-13  Mike Kestner  <mkestner@novell.com>
1861
1862         * ListView.cs: fix breakage in drag shadow header positioning 
1863         from Peter's csc compilation fix.
1864
1865 2006-03-13  Mike Kestner  <mkestner@novell.com>
1866
1867         * ListView.cs: fix NRE produced by backspacing twice in a focused
1868         FileDialog.
1869
1870 2006-03-13  Mike Kestner  <mkestner@novell.com>
1871
1872         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
1873
1874 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1875
1876         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
1877           be changed
1878         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
1879           the allowed size before making programmatic size changes
1880
1881 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
1882
1883         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
1884           set, metacity is broken and will still use the emty sizes in 
1885           the struct. (Fix for #77089)
1886
1887 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
1888
1889         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
1890           WindowExStyles and marked both enums as Flags
1891         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
1892           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
1893           to match WindowStyles split
1894         * XplatUIX11.cs:
1895           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
1896           - Updated to match WindowStyles split
1897         * XplatUIWin32.cs:
1898           - Fixed FosterParent creation, was using ExStyle on the Style field
1899             (This should help with Popup focus issues)
1900           - Updated to match WindowStyles split
1901
1902 2006-03-13  Jackson Harper  <jackson@ximian.com>
1903
1904         * MdiWindowManager.cs: Use the system menu height. Fixes some
1905         strange sizing issues.
1906
1907 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1908
1909         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
1910         * TextBoxBase.cs:
1911           - Scroll to caret after inserting text (#77672)
1912           - Make scroll range one pixel higher, fixes off-by-one error (and
1913             makes underlines visible on the last line)
1914
1915 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
1916
1917         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
1918           the keyboard state from being stuck with keys in 'pressed' state when
1919           focus is switched away via keyboard
1920         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
1921           reset the keyboard if no X11 KeyUp events are expected to come
1922         * X11Structs.cs: Switched type of Visible to bool to match driver
1923
1924 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
1925
1926         * TextControl.cs:
1927           - Switched caret to be just 1 pixel wide, matches MS and looks less
1928             clunky
1929           - Moved caret display 1 pixel down from the top of the control
1930             to improve view
1931           - InsertCharAtCharet: Update the selection start if moving the caret
1932             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
1933           - No longer always creating the caret when the caret methods are
1934             called. Only the actual ShowCaret/HideCaret will do that now
1935           - Only setting caret visible if the owner control has focus
1936           - UpdateView: Added invalidation-shortcut logic for center and right 
1937             aligned text. Previously we'd update all according to the left
1938             logic which caused drawing errors. Also fixed height of invalidated
1939             areas, now properly invalidating the whole area (was off-by-one)
1940           - owner_HandleCreated: Always generate the document when the
1941             handle is created; this ensures that 
1942         * TextBoxBase.cs:
1943           - Fixed situation where caret would disappear under the right
1944             window border, also improved scrolling behaviour on left-
1945             aligned textboxes
1946           - Fixed right-aligned textboxes to have a border to the
1947             right instead of the caret being under the right border
1948         * XplatUIX11.cs:
1949           - Switched from 'nested' to simple visible/not visible tracking 
1950             for caret (part of fix for #77671)
1951           - No longer passing through translated FocusIn/FocusOut messages
1952             since we were notifying too often and the wrong windows. Instead
1953             we just notify our focussed window of receiving or loosing focus
1954         * XplatUIWin32.cs: Switched from 'nested' show/hide 
1955           counting for caret to simple visible yes/no behaviour (part of 
1956           fix for #77671)
1957
1958 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1959
1960         * Mime.cs: Remove debug code...
1961
1962 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
1963
1964         * MimeGenerated.cs: Removed
1965         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
1966           and subclasses) from /usr/(local/)share/mime and
1967           $HOME/.local/share/mime.
1968
1969 2006-03-10  Jackson Harper  <jackson@ximian.com>
1970
1971         * MdiWindowManager.cs: Recalc the NC area when a window is
1972         maximized/restored so that the menu area is drawn on forms that
1973         don't have a menu.
1974
1975 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
1976
1977         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1978           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
1979           us to force a WM_NCCALCRESIZE message being sent. This is needed
1980           for MDI maximizing.
1981
1982 2006-03-10  Jackson Harper  <jackson@ximian.com>
1983
1984         * Form.cs: We need to use the ActiveMenu when calculating menu
1985         height.
1986         - Fix nullref when the window manager hasn't been created yet.
1987         * Control.cs: Fix nullref when we try to bring a control to the
1988         front that has no parent.
1989         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
1990         height.
1991         - Add a dummy item to the maximized menu so it always has the
1992         correct height. Otherwise when there are no menus we don't get our
1993         icon and buttons.
1994         
1995
1996 2006-03-10  Jackson Harper  <jackson@ximian.com>
1997
1998         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
1999         stuff.
2000         * Form.cs: Make the window_state internal so the window managers
2001         can track it.
2002         - When an MDI child is maximized let its window manager create the
2003         main menu (so it can add its icon).
2004         - Notify the window managers of state changes
2005         - Let the window manager paint its buttons and handle button
2006         clicks on the menu when it is maximized.
2007         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2008         window manager, since tool windows don't use it, only mdi windows.
2009         - Tell the main form that we don't want it to handle NCPAINT
2010         itself to avoid extra painting.
2011         - Handle clicks on a maximized windows menu.
2012         - Handle window state changes
2013         - Handle minimize/maximize clicks correctly by setting the window state.
2014         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2015         when clicking on the forms icon).
2016         - New method to create a forms maximized menu. This is its normal
2017         menu + an icon.
2018         - Handle window state changes.
2019         - Handle sizing of maximized windows.  Maximized windows are just
2020         drawn bigger then the parent visible area. All controls are still
2021         there, they are just outside the visible area (this matches windows).
2022         * MdiClient.cs: No scrollbars when a child window is maximized.
2023         - Let the children windows figure out how big they should be when
2024         sizing maximized windows.
2025         - Implement a version of ArrangeIconicWindows somewhat similar to
2026         Windows version.  There are some little differences, but I don't
2027         think any app will rely on the layout of minimized mdi windows.
2028
2029 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2030
2031         * Padding.cs: Several fixes to allow compiling with csc 2.0
2032
2033 2006-03-09  Jackson Harper  <jackson@ximian.com>
2034
2035         * Menu.cs:
2036         * MenuItem.cs: Cheap hack so we can add items to the list without
2037         the events being raised.  This allows adding mdi items during
2038         drawing. TODO: Should probably find a better time to add the items.
2039
2040 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2041
2042         * ThemeWin32Classic.cs:
2043           - CheckBox_DrawText: Added logic to not wrap if not enough space
2044             is available (Fix for bug #77727)
2045           - RadioButton_DrawText: Added logic not to wrap if not enough
2046             space is available (Fix for bug #77727). Also removed some
2047             duplicate code, DrawString always drawing the regular text
2048             before hitting the if statement.
2049
2050 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2051
2052         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2053
2054 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2055
2056         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2057         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2058           methods. Moved the new 2.0 properties into alphabetical order with
2059           other properties and added MonoTODO tags
2060
2061 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2062
2063         * AutoScaleMode.cs: Added. Fix build.
2064
2065 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2066
2067         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2068           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2069           and was requiring premature handle creation for calls from above
2070         * Form.cs, Control.cs: Removed handle arguments from calls to
2071           CalculateClientRect()
2072
2073 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2074
2075         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2076           drag_column.column_rect is MarshalByRef and can't be used that way
2077
2078 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2079
2080         * AxHost.cs: Added deserialization constructor for 
2081           AxHost+State (fixes 77743)
2082
2083 2006-03-09  Mike Kestner  <mkestner@novell.com>
2084
2085         * ListView.cs: 
2086         - Added column drag reordering for details view.
2087         - fixed behavior when mouse is dragged off column and
2088         AllowColumnReorder is false.
2089         * ColumnHeader.cs: clone the format too in Clone.
2090         * Theme.cs: add DrawListViewHeaderDragDetails method.
2091         * ThemeWin32Classic.cs:
2092         - impl new method for drawing drag column shadows and targets.
2093         - support column offset for details mode in DrawListViewItem.
2094
2095 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2096
2097         * TextControl.cs: Reset the char_count when the document is cleared
2098           (Fixes bug reported on mono-winforms mailing list)
2099
2100 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2101
2102         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2103           of calling base we simply process the key ourselves, since both
2104           DefWindowProc and the handled method would set m.Result. 
2105           (Fixes #77732)
2106
2107 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2108
2109         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2110           method also moves the window; instead implemented a copy of
2111           Control.ScaleCore (Part of fix for #77456)
2112         * TextBoxBase.cs: 
2113           - Created new CreateGraphicsInternal method to allow providing
2114             a graphics context when no handle is created without triggering
2115             handle creation. (Part of fix for #77456)
2116           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2117         * TextControl.cs: 
2118           - Switched Constructor to require TextBoxBase instead of Control (to
2119             allow uncast access to CreateGraphicsInternal)
2120           - Safeguarded use of owner.Handle property. No longer accessing it
2121             unless the handle is already created.
2122           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2123           - Now triggering a recalc when owning control becomes visible
2124         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2125           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2126           premature handle creation (Part of fix for #77456)
2127         * Control.cs:
2128           - We now only destroy our double-buffering buffers when the
2129             control is resized or disposed, but not when visibility
2130             changes. (The code even re-created them twice every time)
2131           - Now requiring a redraw of the buffer on visibility changes
2132             (fixes bug 77654 part 2)
2133           - Not passing OnParentVisibleChanged up unless the control
2134             is visible
2135           - CanFocus: Fixed to match MS documentation
2136           - Focus: Fixed to return actual focus state and to check if
2137             setting focus is legal before setting it
2138
2139 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2140
2141         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2142           when to draw focus rectangle by looking at parent focus and
2143           selected state instead. This fixes TabPages on Linux sometimes
2144           having none or multiple focus rectangles.
2145         * XplatUIX11.cs (SetFocus): 
2146           - Don't set the focus if the same window already has focus
2147           - Use SendMessage instead of PostMessage (like it's Win32
2148             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2149             to match MS behaviour
2150         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2151           are not selectable.
2152
2153 2006-03-07  Jackson Harper  <jackson@ximian.com>
2154
2155         * PictureBox.cs: Revert line I accidently committed last week.
2156
2157 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2158
2159         * Control.cs: 
2160           - Added new IsRecreating and ParentIsRecreating properties to
2161             allow testing if RecreateHandle has been called on ourselves
2162             or one of our parents
2163           - WndProc(WM_DESTROY): If our control handle is being recreated
2164             we immediately need to create the handle when receiving the
2165             destroy, that way our child windows find a valid parent handle
2166             when they themselves are being recreated upon WM_DESTROY receipt
2167             (fix for bug #77654 part 1)
2168         * XplatUIX11.cs:
2169           - DestroyWindow: WM_DESTROY must be sent to our own window before
2170             notifying any child windows. MS documents that child windows
2171             are still valid when WM_DESTROY is received. (Control now relies on
2172             this behaviour)
2173           - Added some fine-grain debug options
2174
2175 2006-03-06  Jackson Harper  <jackson@ximian.com>
2176
2177         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2178         box and base calculations off this.
2179         * MdiChildContext.cs:
2180         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2181         anymore.
2182         
2183 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2184
2185         * Splitter.cs: In situations where the affected control is added
2186           to the parent's control list after the splitter, we would not
2187           populate affected. Now we try populating it on mousedown, if
2188           it's not already set, and force it to be re-set whenever our
2189           parent changes.
2190
2191 2006-03-03  Matt Hargett  <matt@use.net>
2192
2193         * Control.cs: implement Control.Padding
2194         * Padding.cs: -Padding.All returns -1 when constructing with the
2195         implicit default ctor
2196         -Padding.ToString() matches MS.NET
2197         * ContainerControl.cs: implement
2198         ContainerControl.AutoScaleDimensions
2199         * ListControl.cs: implement ListControl.FormattingEnabled
2200         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2201         * ButtonBase.cs:
2202         * TabPage.cs: Implement UseVisualStyleBackColor.
2203         * PictureBox.cs: Implement PictureBox.InitialImage.
2204
2205 2006-03-03  Mike Kestner  <mkestner@novell.com>
2206
2207         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2208         event declarations to proxy to base event.
2209         * ListViewItem.cs: update to use ItemControl.
2210         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2211         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2212         column header label rendering for 0 width columns.
2213
2214 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2215
2216         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2217           that causes the control to be created. Fixes #77476.
2218
2219 2006-03-02  Jackson Harper  <jackson@ximian.com>
2220
2221         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2222         expose_pending.
2223
2224 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2225
2226         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2227           passed in for the EventArgs (fixes #77690)
2228
2229 2006-03-01  Jackson Harper  <jackson@ximian.com>
2230
2231         * ScrollBar.cs: Refresh afterbeing resized.
2232
2233 2006-02-28  Mike Kestner  <mkestner@novell.com>
2234
2235         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2236         Clean up a tracker compile warning.
2237         * MenuItem.cs: add internal PerformPopup method.
2238         [Fixes #77457]
2239
2240 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2241
2242         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2243           implicit expose) when the text is set to null
2244
2245 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2246
2247         * RichTextBox.cs (FlushText): When newline is true, we always
2248           need to split the line, even if no text is on it and we may
2249           never eat newlines. (Fixes #77669)
2250
2251 2006-02-28  Mike Kestner  <mkestner@novell.com>
2252
2253         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2254         and set Selected instead.
2255         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2256         collections.
2257
2258 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2259
2260         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2261
2262 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2263
2264         * FontDialog.cs:
2265           - Got rid of the panel. All controls are now directly added to
2266             the dialog form
2267           - It is now possible to set a font with the Font property
2268           - MinSize and MaxSize property do now what they should
2269           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2270           - Searching and selecting a font with the font textbox works now,
2271             the same applies to the style and size textbox
2272           - Draw the correct 3D border in the example panel
2273           - Fixed a little mem leak (unused fonts didn't get disposed)
2274           - Many other internal updates/rewrites...
2275           - Fix typo
2276
2277 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2278
2279         * TextControl.cs: 
2280           - InsertRTFFromStream: Added 'number of characters inserted' argument
2281           - set_SelectedRTF: Now using the number of characters to calculate
2282             the new location for the selection and cursor (x/y cannot be used
2283             due to potentially already wrapped text)
2284
2285 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2286
2287         * TextControl.cs: Added property and implemented means to allow 
2288           disabling recalculation of a document (can be used to speed up
2289           multiple inserts and is needed to make RTF inserts predictable, see
2290           bug #77659)
2291         * RichTextBox.cs: Using the new NoRecalc property of Document to
2292           keep x/y insert locations predictable. Also makes it faster inserting
2293           large chunks of RTF
2294
2295 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2296
2297         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2298           it's easier for a child control to handle the other messages without
2299           having to duplicate the special functionality
2300         * TextBoxBase.cs
2301           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2302             code to handle processing the key ourselves, in order to get 
2303             access to the result of KeyEventArgs.Handled. We now only call 
2304             ProcessKey if they key hasn't been handled already. Fixes #77526.
2305           - set_Text: If null or empty string is given, just clear the 
2306             document. Fixes part of #77526
2307
2308 2006-02-27  Jackson Harper  <jackson@ximian.com>
2309
2310         * SizeGrip.cs: Paint the background color before painting the grip
2311         so things look right.
2312         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2313
2314 2006-02-27  Mike Kestner  <mkestner@novell.com>
2315
2316         * ListView.cs:
2317           - Restructure layout and invalidation model to remove a ton of
2318           flicker from the control and speed up performance in general.
2319           - Add manual column resize, flickers like crazy, but I already have
2320           some ideas on how I'll fix that. (#76822)
2321           - Merge the three Icon-based views into a single layout method.
2322           - Move item selection interaction logic from the item since 
2323           interaction with the collections is more appropriate to the view.
2324           - Deselection on non-item clicks.
2325         * ListViewItem.cs:
2326           - Encapsulate most of the layout. Add some internal props to trigger
2327           layout.  Move to a model where Items invalidate themselves instead
2328           of just invalidating the whole control every time something changes.
2329           - Invalidate on Text/Caption changes.
2330           - switch to an offset based layout model to avoid having to absolute
2331           position every element on item moves.
2332           - correct checkbox layout to conform to MS layout.
2333         * ThemeWin32Classic.cs:
2334           - refactor some column header drawing code.
2335           - fix string justification for column headers (#76821)
2336           - make SmallIcon labels top justified for compat with MS impl.
2337         * ThemeClearlooks.cs:
2338           - adjust to new ListViewItem internal checkbox bounds api.
2339
2340 2006-02-27  Jackson Harper  <jackson@ximian.com>
2341
2342         * Control.cs:  Change where implicit controls fall in the zorder.
2343         They are now on top of all children.
2344         - Synced AddImplicit code with Add
2345         - Removed unused enumerator.
2346         * SizeGrip.cs: Remove the TODO as its been TODONE.
2347
2348 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2349
2350         * TextControl.cs(Insert): Combine the last lines unless the insertion
2351           string ends with \n\n, otherwise we leave one line too many (Fixes
2352           something I noticed with the testapp for #77526; the bug itself was
2353           already fixed in the previous checkin)
2354
2355 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2356
2357         * RichTextBox.cs:
2358           - SelectionColor and SelectionFont methods no longer set absolute
2359             styles. Instead, the keep font or color respectively (This 
2360             resolves a long-standing FIXME in the code)
2361           - When flushing RTF text, the insert code now considers text trailing
2362             behind the insertion point (Fixes the bug where when replacing
2363             the selected text via SelectedRTF the remainder of the line behind 
2364             the selection would stay on the first insertion line)
2365         * TextBoxBase.cs:
2366           - AppendText now updates the selection points after inserting text
2367           - AppendText now ensures that the last tag (sometimes 0-length) of
2368             the document is used for the style information (Fixes part of 
2369             bug #77220)
2370         * TextControl.cs:
2371           - Created new FontDefiniton class to allow describing partial style
2372             changes
2373           - StreamLine() now takes a lines argument, to allow it to decide
2374             whether an encountered zero-length tag is the last in the document
2375             (which must be kept to not loose the font/color contained in it,
2376             for later appends)
2377           - Created Combine() and Split() methods for Marker structs, to 
2378             support marker updates due to reformatted documents (soft line
2379             wraps)
2380           - Implemented Document.CaretTag setter
2381           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2382             of the last line (Not the cause, but also exposed by bug #77220)
2383           - Added LineTag argument to InsertString method, to allow callers
2384             to force a certain tag to be used (required to force use of the
2385             trailing zero-length tag of a document)
2386           - Now updating markers in Combine(), to avoid stale tag markers
2387           - Added some method descriptions to aid maintenance
2388           - Implemented new FormatText concept, allowing additive/subtractive
2389             formatting by only specifying the components that are to be 
2390             changed. This was needed for resolving the RTB.SelectedColor/
2391             RTB.SelectedFont fixmes
2392           - Added Break() support method to allow breaking up linetags (used
2393             for partial formatting)
2394           - Added GenerateTextFormat() method. It is used for partial 
2395             formatting and allows to generate a full font/color from given
2396             attributes and an existing tag.
2397
2398 2006-02-26  Jackson Harper  <jackson@ximian.com>
2399
2400         * XplatUIX11.cs:  Use the correct caption height.
2401         - Translate hittest coordinates to screen coords to match MS.
2402         * XplatUIWin32.cs: When we create MDI windows we need to reset
2403         some of the style flags, so we get a nice blank window, and can
2404         draw all the decorations ourselves.
2405         - Set a clipping rectangle on the non client paint event, the
2406         window manager drawing code needs one.
2407         * Form.cs: The window manager needs to know when the window state
2408         has been updated.
2409         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2410         don't need to factor in border and title sizes in these
2411         methods. TODO: Remove the args and fix the call points.
2412         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2413         properly.
2414         - Let the driver set the cursors.
2415         - Improve active window handling
2416         - Correct sizes for title bars and buttons.
2417         - Match MS drawing better
2418         * MdiWindowManager.cs: We don't need to handle border style
2419         updates specially anymore.
2420         - Check for scrollbars when windows are done moving
2421         - Handle Active properly.
2422         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2423         correctly. I am spewing the exception though, so we don't hide the
2424         bugs.
2425         
2426 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2427
2428         * DataGridViewRowPostPaintEventArgs.cs,
2429           DataGridViewCellPaintingEventArgs.cs,
2430           DataGridViewRowCollection.cs,
2431           DataGridViewRowPrePaintEventArgs.cs,
2432           DataGridViewCell.cs: Clear a few warnings and implement a few
2433           exceptions that should be thrown.
2434
2435 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2436
2437         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2438           'inheriting' our parent's (non-default) cursor. (Part of
2439            the fix for #77479)
2440
2441 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2442
2443         * XplatUIX11.cs: Fixed cast to make csc happy
2444
2445 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2446
2447         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2448           it's for the client area (part of fix for #77479 and needed
2449           for MDI window cursor handling)
2450         * XplatUIX11.cs
2451           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2452             the appropriate default cursors and also passing the message
2453             up the parent chain 
2454           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2455             for non-client areas
2456
2457 2006-02-15  Jackson Harper  <jackson@ximian.com>
2458
2459         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2460         is a real MDI window
2461
2462 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2463
2464         * X11DesktopColors.cs: Instead of checking the desktop session
2465           string for "KDE" check if it starts with "KDE"
2466
2467 2006-02-10  Jackson Harper  <jackson@ximian.com>
2468
2469         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2470         systems).
2471
2472 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2473
2474         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2475           errors
2476         * ColorDialog.cs:
2477           - Got rid of the panel. All controls are now directly added to
2478             the dialog form
2479           - Changed to mono coding style
2480
2481 2006-02-10  Jackson Harper  <jackson@ximian.com>
2482
2483         * InternalWindowManager.cs: We don't need the set visibility to
2484         false hack anymore now that peter has written beautiful shutdown
2485         code.
2486
2487 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2488
2489         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2490           where already explicitly destroyed
2491
2492 2006-02-10  Jackson Harper  <jackson@ximian.com>
2493
2494         * MdiClient.cs: Handle the case where windows are too high or to
2495         the left and we need scrollbars.
2496
2497 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2498
2499         * MimeIcon.cs: Added some icons
2500         * FileDialog.cs:
2501           - Fixed bug #77477
2502           - Got rid of the panel. All controls are now directly added to
2503             the dialog form
2504           - Changed to mono coding style
2505           - On Linux "My Computer" and "My Network" will now show some
2506             more usefull information. A new class, MasterMount, gathers
2507             this information from /proc/mount. Updated MWFFileView to make
2508             use of this information
2509           - Fixed a bug that caused FileDialog to crash when
2510             ".recently_used" file had a zero size
2511           - FilterIndex does now what it should
2512           - Some Refactoring
2513         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2514             FileDialog changes
2515
2516 2006-02-09  Jackson Harper  <jackson@ximian.com>
2517
2518         * ComboBox.cs: Don't touch if null.
2519
2520 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2521
2522         * Cursor.cs: 64bit safeness fix
2523         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2524
2525 2006-02-09  Jackson Harper  <jackson@ximian.com>
2526
2527         * Form.cs: If a form is made into an MDI form update the styles so
2528         all the props can get set correctly.
2529         - Kill the mdi_container when we dont need it anymore.
2530         * InternalWindowManager.cs: Add missing NOT
2531
2532 2006-02-08  Jackson Harper  <jackson@ximian.com>
2533
2534         * InternalWindowManager.cs: Respek clipping when drawing MDi
2535         decorations.
2536
2537 2006-02-08  Jackson Harper  <jackson@ximian.com>
2538
2539         * Hwnd.cs: Add bits to track non client expose events.
2540         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2541         gives us a proper invalid rect and will allow for some nice
2542         optimizations with NC client drawing
2543         - MDI windows are children windows, so move their style handling
2544         into the child window block.
2545         * InternalWindowManager.cs: Remove a state reset that was
2546         getting invoked at the wrong time. Fixes managed windows getting
2547         into a 'stuck' captured state.
2548
2549 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2550
2551         * TextControl.cs (Document.ctor): Now initializing 
2552           selection_anchor. Fixes #77493
2553
2554 2006-02-07  Jackson Harper  <jackson@ximian.com>
2555
2556         * TrackBar.cs: The increment/decrements were backwards.
2557
2558 2006-02-07  Mike Kestner  <mkestner@novell.com>
2559
2560         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2561         to the instance itself.
2562
2563 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2564
2565         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2566           on ulongs and pointers, the size differs between 32bit and 64bit
2567           systems. 
2568
2569 2006-02-07  Mike Kestner  <mkestner@novell.com>
2570
2571         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2572         for 64 bit platforms to work around a metacity bug. 
2573
2574 2006-02-07  Jackson Harper  <jackson@ximian.com>
2575
2576         * TrackBar.cs: Process the input keys we need, and hookup to
2577         KeyDown instead of using WndProc, so we get key messages.
2578
2579 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2580
2581         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2582           machine we're on. 
2583         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2584           we need to translate the XdndVersion atoms array before sending it
2585
2586 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2587
2588         * XplatUIX11.cs: 
2589           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2590             number of bits for the property, not the number of bytes. The
2591             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2592             but would not crash since it specified 8 bits instead of 4 bits)
2593           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2594             defined as XID -> long in the C headers)
2595           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2596             references since those are now IntPtr to begin with
2597           - Switched all Atom.XXX 'int' casts to IntPtr casts
2598           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2599           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2600           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2601         * X11Structs.cs:
2602           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2603           - Changed atom in HoverStruct to be IntPtr
2604         * X11DnD.cs:
2605           - Removed local DllImports, switched code to use those from XplatUIX11
2606           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2607
2608 2006-02-06  Mike Kestner  <mkestner@novell.com>
2609
2610         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2611         method signatures in the import region.  There may still be some
2612         lingering struct marshaling issues, as I didn't drill down into those.
2613         Yet.
2614
2615 2006-02-06  Jackson Harper  <jackson@ximian.com>
2616
2617         * ComboBox.cs: Dont manually set the top_item, this is computed
2618         when the scrollbar position is set.
2619
2620 2006-02-06  Mike Kestner  <mkestner@novell.com>
2621
2622         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2623         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2624         usage of Atom needs to be mapped to IntPtr for example.  And there are
2625         likely other int/long issues to be addressed.
2626
2627 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2628
2629         * FileDialog.cs: One more...
2630
2631 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2632
2633         * FileDialog.cs: Next try
2634
2635 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2636
2637         * FileDialog.cs: First part of fix for #77464
2638
2639 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2640
2641         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2642           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2643           AcceptButton border drawing.
2644
2645 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2646
2647         * Form.cs: Moved positioning of form after auto scaling is applied,
2648           otherwise it would possibly use wrong form size.
2649
2650 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2651
2652         * Control.cs (RecreateHandle): No need to re-create any child
2653           controls, the child windows will get destroyed automatically by
2654           the windowing system or driver, and re-created when the handle
2655           is being accessed the first time. Fixes #77456
2656         * Form.cs: No longer setting the form to closing if the handle is 
2657           being recreated. This seems like the right thing to do, don't
2658           have a bug or testcase for this, though.
2659
2660 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2661
2662         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2663           controls to avoid unwanted side effects
2664
2665 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2666
2667         * Control.cs: 
2668           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2669             control. Fixes #77416.
2670           - DefaultSize is 0,0 for control
2671         * TextBoxBase.cs: 
2672           - DefaultSize is 100, 20
2673           - SetBoundsCore: Now enforcing the height, no matter if the provided
2674             height is more or less than the preferred one, as long as AutoSize
2675             is on
2676         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
2677
2678 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2679
2680         * Control.cs:
2681           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
2682             call unless both performLayout is true *and* we have a pending
2683             layout change
2684           - ResumeLayout: MS does not completely nest Suspend and Resume,
2685             they bottom out at 0, fixed our code to match that.
2686           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
2687             SetBoundsCore, we were updating even when we shouldn't. This fixes
2688             swf-anchors mis-anchoring when resizing the app fast and lots.
2689           - UpdateDistances: Now only setting the left and top distance if 
2690             we have a parent and are not suspended, this is based on
2691             a suggestion by Don Edvaldson in bug #77355.
2692           - OnVisibleChanged: Fixed logic when to create the control. We may
2693             not create the control if we have no parent or if it's not visible;
2694             switched to using Visible property instead of is_visible field 
2695             since the property also considers parent states. This fixes a bug
2696             when starting Paint.Net
2697
2698 2006-02-02  Jackson Harper  <jackson@ximian.com>
2699
2700         * Form.cs: If the forms handle hasn't been created yet don't call
2701         into xplatui to make it top most, just set the topmost flag on the
2702         form in CreateParams
2703         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
2704
2705 2006-02-01  Jackson Harper  <jackson@ximian.com>
2706
2707         * ScrollableControl.cs: Refactored the Recalculate method a
2708         little, this wasn't handling all the variants of bottom and right
2709         bars needed to be added and added/removed based on their
2710         counterparts being added/removed (which changes the drawable
2711         size). Also we special case client widths and heights of 0 and
2712         don't add the scrollbar for those.
2713
2714 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
2715
2716         * XplatUIX11.cs: 
2717           - Added method to get AbsoluteGeometry(); currently unused, but might
2718             be used in the future, if we try again to figure out toplevel
2719             coordinates with some more crappy window managers
2720           - Added FrameExtents() method to retrieve the WM set decoration size
2721           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
2722             to deal with at least KDE, FVWM and metacity (Fixes #77092)
2723         * Hwnd.cs: 
2724           - Added whacky_wm tracking var for metacity
2725           - Added logic to have default menu height if the actual menu height
2726             has not yet been calculated (part of fix for #77426)
2727         * Form.cs: Keep track whether client size has been set and re-set 
2728           it if a menu is added/removed afterwards (Fixes #77426)
2729
2730 2006-01-31  Jackson Harper  <jackson@ximian.com>
2731
2732         * Control.cs: When a new Site is set on the component attempt to
2733         pull the AmbientProperties from it.
2734
2735 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
2736
2737         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
2738           in the background of the owning form. Fixes #77332
2739
2740 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2741
2742         * MimeIcon.cs: Fix for #77409
2743
2744 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
2745
2746         * XplatUIX11GTK.cs: Initial import
2747
2748 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
2749
2750         * FixedSizeTextBox: fixes class signature
2751
2752 2006-01-30  Jackson Harper  <jackson@ximian.com>
2753
2754         * FixedSizeTextBox.cs: New internal class that represents a
2755         textBox that will not be scaled.
2756         * TreeView.cs:
2757         * ComboBox.cs:
2758         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
2759         standard TextBox.
2760                 
2761 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
2762
2763         * XplatUIX11.cs: Retrieve default screen number instead of
2764           assuming 0. Attempted fix for #77318
2765
2766 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
2767
2768         * XplatUIWin32.cs: 
2769           - GetWindowPos: When a window is parented by FosterParent, use 
2770             the desktop instead of FosterParent as the base to get coordinates
2771           - CreateWindow: Don't make FosterParent the parent window for Popups
2772             if we don't want a taskbar entry, Popups automatically don't get one
2773         * Hwnd.cs: Need to call remove to actually remove the key from the
2774           hash table
2775
2776 2006-01-30  Mike Kestner  <mkestner@novell.com>
2777
2778         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
2779
2780 2006-01-30  Jackson Harper  <jackson@ximian.com>
2781
2782         * TreeView.cs:
2783         * TreeNode.cs: Raise events no matter how the treenode is
2784         checked. Patch by Don Edvalson.
2785
2786 2006-01-30  Jackson Harper  <jackson@ximian.com>
2787
2788         * TreeNode.cs: Signature fix.
2789
2790 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
2791
2792         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
2793
2794 2006-01-20  Mike Kestner  <mkestner@novell.com>
2795
2796         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
2797         event forwarding when menus are active.
2798         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
2799         Most of the patch is pdb's with a little rework.
2800
2801 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2802
2803         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
2804           Removed GetMenuDC and ReleaseMenuDC methods; replaced
2805           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
2806         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
2807         * InternalWindowManager.cs: Added use of PaintEventStart/End to
2808           handling of WM_NCPAINT message, now passing the PaintEventArgs to
2809           the PaintWindowDecorations method
2810         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
2811         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
2812         * MenuAPI.cs: Made tracker window invisible
2813         * XplatUIWin32.cs:
2814           - Removed GetMenuDC and ReleaseMenuDC methods
2815           - Implemented the client=false path for PaintEventStart and
2816             PaintEventEnd
2817
2818 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2819
2820         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
2821         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
2822           styles
2823         * Form.cs: 
2824           - MaximizeBox, MinimizeBox: Recreate the handle when setting
2825             the style
2826           - CreateParams: Reworked the styles to match MS look'n'feel,
2827             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
2828             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
2829
2830 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
2831
2832         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
2833           window is not mapped, since otherwise every form that's being 
2834           created is considered minimized, which is wrong.
2835         * Form.cs: Catching the exception and returning our internal value
2836           instead
2837
2838 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
2839
2840         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
2841           SetWindowMinMax() to have means to tell the driver about the minimum,
2842           maximum and maximized state window sizes. (Part of the fix for #76485)
2843         * Form.cs:
2844           - Implemented tracking of minimum and maximum window size, now calling
2845             new SetWindowMinMax() driver method to tell the driver (Part of the
2846             fix for #76485)
2847           - Finished handling of WM_GETMINMAXINFO method, now setting all values
2848             (Completes fix for #76485)
2849           - Calling new SetWindowMinMax driver method when the handle for a 
2850             form is created, to make sure the driver knows about it even if
2851             the values have been set before the window was created
2852           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
2853             to avoid messing up our anchoring calculations (partial fix
2854             for #77355)
2855         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
2856         * XplatUIX11.cs:
2857           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
2858           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
2859             (and presumably other freedesktop.org compliant WMs). Left the
2860             assumption unmapped=minimized, needed for SetVisible to work.
2861           - Now setting the window state when creating windows
2862           - Fixed SetVisible to consider/set the window state when mapping
2863             a Form. We cannot set the state before it's mapped, and we cannot
2864             use Form.WindowState once it's mapped (since it would ask the
2865             driver and get 'normal'. Therefore, we grab the state before
2866             mapping, map, and then set state.
2867           - Implmemented SetWindowMinMax method; Metacity does not seem to
2868             honor the ZoomHints, though.
2869         * XplatUIWin32.cs:
2870           - Removed MINMAXINFO (moved to XplatUIStructs)
2871           - Added SetWindowMinMax stub (on Win32 the only way to set that
2872             information is in response to the WM_GETMINMAXINFO message, which
2873             is handled in Form.cs)
2874           - Added logic to SetVisible to set the proper window state when a 
2875             form is made visible (fixes #75720)
2876
2877 2006-01-26  Jackson Harper  <jackson@ximian.com>
2878
2879         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
2880         same way we handle them with Invoke.
2881
2882 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
2883
2884         * Form.cs:
2885           - Added tracking of window state so CreateParams can return
2886             the appropriate style
2887           - Moved setting of WS_CAPTION style in CreateParams to allow
2888             styles without caption
2889         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
2890           control if the TextBox property is accessed. Fixes #77345
2891         * Control.cs:
2892           - get_Created: now uses is_disposed and is_created to determine
2893             return value (suggested by Jackson)
2894           - CreateHandle: No longer exits if the handle is being recreated
2895           - RecreateHandle: If the handle is not yet created call the 
2896             appropriate method to create either control or handle. If the
2897             control is already created CreateHandle will simply exit instead
2898             of just creating the handle
2899         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
2900           now SendMessage WM_DESTROY directly to the control when DestroyWindow
2901           is called.
2902         * XplatUIX11.cs: 
2903           - When DestroyWindow is called, instead of waiting for the 
2904             DestroyNotification from X11, we directly post it to the WndProc
2905             and immediately dispose the hwnd object.
2906             Same applies to DestroyChildWindows, and this obsoletes the
2907             expose_pending tracking. Contrary to Win32 behaviour we destroy our
2908             child windows before our own, to avoid X11 errors.
2909           - Removed the direct sending of WM_PAINT on UpdateWindow
2910         * XplatUIWin32.cs:
2911           - Reworked DoEvents and GetMessage to allow access to internal queue
2912             even when trying non-blocking access to the queue.  Fixes #77335. 
2913             Based on a patch suggestion by Don Edvalson. The new private
2914             GetMessage can now also be used as a backend for a PeekMessage
2915             frontend version.
2916         * XplatUI.cs: Improved debug output for CreateWindow
2917
2918 2006-01-25  Jackson Harper  <jackson@ximian.com>
2919
2920         * Help.cs: Allow param to be null. Patch by Don Edvalson.
2921
2922 2006-01-24  Jackson Harper  <jackson@ximian.com>
2923
2924         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
2925         when we have a MaxDropItems lower then the selected index.
2926
2927 2006-01-24  Jackson Harper  <jackson@ximian.com>
2928
2929         * Control.cs: Don't allow selection of non visible controls, allow
2930         selection of controls without parents.
2931
2932 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2933
2934         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
2935         * DataGridDrawingLogic.cs: Add editing row only when is necessary
2936
2937 2006-01-23  Jackson Harper  <jackson@ximian.com>
2938
2939         * UpDownBase.cs: Make the textbox handle all the selection and
2940         tabbing. This fixes tabing to updown controls.
2941
2942 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
2943
2944         * TextBoxBase.cs: fixes exception thown the object was null
2945
2946 2006-01-23  Jackson Harper  <jackson@ximian.com>
2947
2948         * ButtonBase.cs: Just use the base CreateParams. They set
2949         visibility and enabled correctly.
2950         * ComboBox.cs:
2951         * TrackBar.cs:
2952         * MonthCalendar.cs: Lets let the base set as much of the
2953         createparams as possible so we don't have duplicate code all over
2954         the place.
2955
2956 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
2957
2958         * ThemeGtk.cs: Added TrackBar and some experimental code to
2959           get double buffering back
2960
2961 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
2962
2963         * DataGrid.cs: Allows row number set internally higher than the last
2964         when creating a new row. Restores the editing functionality.
2965
2966 2006-01-20  Mike Kestner  <mkestner@novell.com>
2967
2968         * MimeIcon.cs: delay Image creation until the icons are accessed
2969         instead of creating 190 scaled images on GnomeHandler startup.
2970
2971 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
2972
2973         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
2974           first call base before processing the event. Fixes #77279
2975
2976 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
2977
2978         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
2979           that the stride for the GDI bitmap would match the stride of
2980           a DIB or a Cursor.
2981
2982 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
2983
2984         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
2985
2986 2006-01-19  Jackson Harper  <jackson@ximian.com>
2987
2988         * ComboBox.cs: Hookup the text controls keydown event so we get
2989         those when the text control has the focus.
2990
2991 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
2992
2993         * Label.cs: Now using the base events instead of defining new ones;
2994           this allows us to just call the base properties without having to
2995           duplicate all base property logic 
2996
2997 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
2998
2999         * Label.cs: A label by default is not a tabstop (Fixes one of our
3000           failing nunit tests)
3001
3002 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3003
3004         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3005         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3006
3007 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3008
3009         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3010           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3011           This fixes #77218
3012         * XplatUIWin32.cs: 
3013           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3014             constructor creates images that can't be saved. Part of the fix
3015             for #76103
3016           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3017           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3018             bug fix for handling window state in forms properly)
3019
3020 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3021
3022         * ThemeGtk.cs: Simplify ScrollBar drawing
3023
3024 2006-01-18  Jackson Harper  <jackson@ximian.com>
3025
3026         * Splitter.cs: Set the default dock style for the splitter control
3027         in the constructor.
3028
3029 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3030
3031         * ThemeGtk.cs: Corrected StateType and ShadowType for
3032           gtk_paint_box
3033
3034 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3035
3036         * Control.cs: Make use of Theme.DoubleBufferingSupported
3037         * ThemeGtk.cs:
3038           - Added drawing for flat style buttons
3039           - Added ScrollBar drawing
3040
3041 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3042
3043         * ThemeClearlooks.cs: Removed some unneeded code.
3044         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3045
3046 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3047
3048         * LinkLabel.cs: We need to update the hover drawing when
3049           leaving the control as well.
3050
3051 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3052
3053         * DataGrid.cs: Clicking on non empty areas in the columns
3054            area was giving an exception
3055
3056 2006-01-17  Jackson Harper  <jackson@ximian.com>
3057
3058         * ThemeWin32Classic.cs:
3059         * ListView.cs: Do not draw/clip the headers when the header style
3060         is None.
3061
3062 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3063
3064         * DataGrid.cs: Fixes 77260
3065         
3066 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3067
3068         * DataGrid.cs: Clicking on a column on a empty grid was giving
3069           an exception
3070
3071 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3072
3073         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3074           or any keypress will crash the grid.
3075
3076 2006-01-17  Mike Kestner  <mkestner@novell.com>
3077
3078         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3079         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3080         invisible/previously-visible items.
3081         [Fixes #76909]
3082
3083 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3084
3085         * ThemeClearlooks.cs:
3086         - Added CL_Draw_Button method; now other theme controls that are 
3087           not derived from button or do not have a button can draw buttons
3088           too
3089         - Updated ComboBox drawing
3090         - Beautified RadioButton drawing
3091         - Corrected drawing of bottom and left tabs
3092         - Beautified DateTimePicker and MonthCalendar
3093         - Added CPDrawButton and CPDrawRadioButton
3094
3095 2006-01-16  Jackson Harper  <jackson@ximian.com>
3096
3097         * ComboBox.cs: Set the initial value of the scrollbar to the
3098         current index. Reduce the numbers of refreshs and IndexOfs called.
3099
3100 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3101
3102         * FileDialog.cs: When the file listview is focused hitting the
3103           backspace key moves the fileview to the parent directory
3104
3105 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3106
3107         * Form.cs: 
3108           - Added RecreateHandle call when changing taskbar visibility to 
3109             trigger reparenting in Win32 driver (Fixes #75719)
3110           - If a window has minimize or maximize buttons, it cannot have
3111             a help button
3112         * XplatUIWin32.cs:
3113           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3114             the toplevel form with FosterParent (A toolwindow not on the
3115             taskbar) (Fixes #75719)
3116           - Made FosterParent a toolwindow
3117
3118 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3119
3120         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3121
3122 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3123
3124         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3125           is currently over that control, make sure that tooltip_window.Text
3126           gets updated
3127
3128 2006-01-13  Mike Kestner  <mkestner@novell.com>
3129
3130         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3131
3132 2006-01-13  Jackson Harper  <jackson@ximian.com>
3133
3134         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3135         value passed.  Also redraw the selected node when we recieve
3136         focus, so tabbing between trees works correctly.
3137
3138 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3139
3140         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3141           ~/.gconf/%gconf-tree.xml, so use
3142           .gconf/desktop/gnome/interface/%gconf.xml
3143
3144 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3145
3146         * TextControl.cs: Draw text in gray if control is disabled
3147
3148 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3149
3150         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3151           make sure it's always visible. Fixes #76680.
3152
3153 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3154
3155         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3156
3157 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3158
3159         * PageSetupDialog.cs: Added.
3160         * PrintDialog.cs: Attributes.
3161         * PrintPreviewControl.cs: Updates.
3162         * PrintPreviewDialog.cs: Updates.
3163         
3164 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3165
3166         * Control.cs: Undid my selection check fix, since it's not needed
3167         * TextBoxBase.cs:
3168           - Now considering the presence of hscroll/vscroll when sizing
3169             vscroll/hscroll respectively. Fixed bug #77077
3170           - Added Left/Up/Down/Right to IsInputKey list to prevent
3171             ContainerControl from stealing them. This fixes what I broke
3172             with my last checkin.
3173
3174 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3175
3176         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3177           I finally understand how the property can be set without a setter :-)
3178
3179 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3180
3181         * Application.cs:
3182           - Switched RunLoop to use static Message.Create to create a 
3183             Message object
3184           - Added PreProcessMessage call in runloop for keyboard events; this
3185             is part of the fix for #77219, I overlooked this originally in the
3186             MSDN doc for PreProcessMessage
3187         * Control.cs:
3188           - Removed call to PreProcessMessage from handling of keyboard 
3189             messages; it's supposed to be done in the message pump
3190           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3191             per MSDN documentation.
3192           - IsInputChar: All chars are input chars by default; removed the 
3193             parent calling chain, MS does not document that
3194           - PreProcessMessage: If IsInputChar is true, we want to return false
3195             to allow dispatching of the message
3196           - When selecting the next control, now also check that we're not
3197             selecting ourselves again and therefore return a false positive.
3198         * TextBoxBase.cs:
3199           - Tried to match return values for IsInputKey and ProcessDialogKey
3200             to what MS returns; moved processing of our special keys outside
3201             ProcessDialogKey since MS does not seem to return true on those.
3202           - Moved code that previously was in ProcessDialogKey into new private
3203             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3204           - Reworked handling of WM_CHAR to not have to duplicate code from
3205             Control.cs anymore, instead we simply call down to base.
3206            
3207 2006-01-12  Jackson Harper  <jackson@ximian.com>
3208
3209         * ComboBox.cs: We always need to refresh the text area when
3210         EndUpdate is called. Fixes the combobox in the file dialog.
3211         * Control.cs: Don't create the creator_thread until the controls
3212         handle is created.  Also in InvokeRequired we check if the
3213         creator_thread is null. This gives the effect of InvokeRequired
3214         returning true if the controls handle is not created yet, and
3215         matches MS.
3216
3217 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3218
3219         * XplatUI.cs:
3220           - Added StartLoop() driver method. This is used to allow drivers to
3221             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3222             loop for a particular thread
3223           - Added EndLoop() driver method. This is called once the message
3224             pump for the thread is shut down
3225           - Added SupportsTransparency method to allow the driver to indicate
3226             opacity support for windows
3227         * Form.cs:
3228           - Removed TODO attribute, completed AllowTransparency property
3229           - Added documented logic to Opacity
3230         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3231           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3232           versions of CompatibleTextRendering
3233         * X11Structs.cs: Added opacity atom to our atom enumeration
3234         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3235           of a form might be set before it's reparented by the WM, and we need
3236           the opacity value without calling up to Form)
3237         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3238           SupportsTransparency() driver methods
3239         * Application.cs: Now calling StartLoop and EndLoop driver methods
3240         * XplatUIX11.cs:
3241           - Added opacity atom registration
3242           - Added StartLoop()/EndLoop() methods. They're empty right now but
3243             will need to get implemented when we switch to a per-thread queue
3244           - Implemented SupportsTransparency() method
3245           - Implemented SetWindowTransparency() method
3246           - Added support for setting the opacity value when a window is
3247             reparented (since the opacity needs to be set on the WM frame)
3248         * XplatUIOSX.cs, XplatUIWin32.cs:
3249           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3250
3251 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3252
3253         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3254
3255 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3256
3257         * FileDialog.cs: Added ToolTip for MWFFileView
3258         * MimeIcon.cs: Rewrote GnomeHandler.
3259           - Get currently used gnome icon theme from
3260             ($HOME)/.gconf/%gconf-tree.xml
3261           - Make use of inherited icon themes
3262           - Support SVG icon themes like Tango via librsvg
3263
3264 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3265
3266         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3267         builds. 
3268         
3269         * Application.cs: Move the use_compatible_text_rendering outside
3270         the NET_2_0 define.  If we ever need to use the
3271         use_compatible_text_rendering on the individual controls they will
3272         access the variable from the common shared code paths.
3273
3274 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3275
3276         * XplatUI.cs:
3277           - Added more granular debug options
3278           - Added method to print both window text and id
3279           - Switched debug output to use new Window() debug method
3280           - Added IsEnabled() driver method
3281           - Added EnableWindow() driver method
3282         * Form.cs:
3283           - Removed end_modal; no longer needed, new loop handles termination
3284             via 'closing' variable
3285           - If form is modal, setting DialogResult will now initiate loop
3286             termination via 'closing' variable
3287           - Added support for is_enabled/WS_DISABLED to CreateParams
3288           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3289             does all the work
3290           - Removed code that's now in RunLoop from ShowDialog()
3291           - Added various documented sanity checks to ShowDialog()
3292           - Added handling of WM_DESTROY message; we set 'closing' on getting
3293             the message to indicate the message pump to terminate
3294           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3295             send by the Application.ExitThread method. (We send the message
3296             to destroy the window after all other events have been
3297             processed through the queue, instead of destroying the handle 
3298             directly)
3299           - Moved code from Close() method to WM_CLOSE handler; added logic
3300             to only send close-related events if the form is not displayed
3301             modal
3302         * Splitter.cs (..ctor): Fixed typo in resource name
3303         * Control.cs:
3304           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3305             brush now
3306           - set_Cursor: Now only setting calling into XplatUI if the handle for
3307             the control is already created; this avoids implict handle creation
3308             or crashes if it's not created
3309           - set_Enabled: Now setting the enabled state via the new driver method
3310             instead of just tracking it
3311           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3312           - CreateControl: Reordered event firing and method calls to more
3313             closely fire events in the order MS does. Now setting the
3314             enabled state in the driver when creating the control.
3315           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3316             match MS order
3317         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3318           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3319         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3320         * Hwnd.cs:
3321           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3322           - Added EnabledHwnd property to easily allow a driver to find the
3323             handle of the first enabled window in the parent chain (this is
3324             used by drivers to pass up input events of disabled windows)
3325         * XplatUIDriver.cs: Added IsEnabled() method
3326         * Application.cs:
3327           - Removed crude and obsolete exiting tracking variable
3328           - Removed internal ModalRun(); replaced by RunLoop()
3329           - Implemented private CloseForms() method to allow closing all 
3330             windows owned by a particular (or all) threads
3331           - Exit() now properly closes all windows without forcing the message
3332             pump to quit
3333           - Removed obsolete InternalExit() method
3334           - Changed Run() methods to use new RunLoop() message pump
3335           - Implemented new RunLoop() method for both modal and non-modal forms
3336         * CommonDialog.cs:
3337           - get_CreateParams: Added setting of WS_DISABLED
3338           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3339             invoked via Form.ShowDialog()
3340         * NativeWindow.cs: We don't remove the window from the collection when
3341           the handle is destroyed; there might still be messages for it in the
3342           queue (mainly the resulting WM_DESTROY); instead it will be removed
3343           when Control calls InvalidateHandle in the WM_DESTROY handler
3344         * XplatUIX11.cs:
3345           - CreateWindow: Added logic to handle the WS_DISABLED window style
3346           - EnableWindow: Implemented based on Hwnd.Enabled
3347           - GetMessage: Reset PostQuitState so the method can be called again
3348           - Implemented support for disabled windows (passing messages to the
3349             first enabled parent) in handling all input messages
3350           - Added optimizations for handling Expose events
3351           - Implemeted new driver method IsEnabled()
3352           - Now always resetting paint pending tracking vars when we start paint
3353           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3354         * XplatUIOSX.cs: Added IsEnabled method stub
3355         * XplatUIWin32.cs: Implemented new IsEnabled() method
3356
3357 2006-01-11  Jackson Harper  <jackson@ximian.com>
3358
3359         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3360         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3361         variables a little.
3362         * ColorDialog.cs: Clear out the old form before adding the new
3363         panel.  
3364
3365 2006-01-11  Jackson Harper  <jackson@ximian.com>
3366
3367         * X11Dnd.cs: Make sure to add all the text formats when adding
3368         strings to the data object.
3369         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3370         do some redrawing too.  Also change the UpdateNode to an
3371         UpdateBelow so the newly added node gets painted.
3372         
3373 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3374
3375         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3376         LinkLabel.cs, PropertyGrid.cs: Implement the
3377         UseCompatibleTextRendering property for 2.x
3378
3379         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3380
3381 2006-01-11  Jackson Harper  <jackson@ximian.com>
3382
3383         * TreeView.cs: Use the property for setting the selected node so
3384         the correct events get raised.
3385         * TreeNode.cs: Update the tree when the fore/back colours of a
3386         node are set.
3387
3388 2006-01-10  Jackson Harper  <jackson@ximian.com>
3389
3390         * TreeView.cs: Allow setting SelectedNode to null.
3391
3392 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3393
3394         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3395
3396 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3397
3398         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3399
3400 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3401
3402         * PrintDialog.cs: Added attributes and set default property values.
3403
3404 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3405
3406         * PrintControllerWithStatusDialog.cs: 
3407         Added PrintControllerWithStatusDialog.
3408
3409 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3410
3411         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3412         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3413
3414 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3415
3416         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3417
3418 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3419
3420         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3421         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3422
3423 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3424
3425         * MimeIcon.cs: Added internal class SVGUtil.
3426
3427 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3428
3429         * FileDialog.cs: Don't crash if there are two files with the
3430           same name but different locations.
3431
3432 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3433
3434         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3435         dates across multiple month grids. Used to not highlight entire 
3436         month, but does now.
3437         
3438 2006-01-06  Jackson Harper  <jackson@ximian.com>
3439
3440         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3441         message loop. Change timer intervals to numbers that seem more
3442         natural.
3443
3444 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3445
3446         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3447           object for location info since screen object is now implemented.
3448
3449 2006-01-05  Jackson Harper  <jackson@ximian.com>
3450
3451         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3452         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3453         AsyncMethodResult, this is because we ALWAYS want the
3454         ManualResetEvent to get set.
3455         * Control.cs: When disposing use an async invoke to call shutdown
3456         code, so that thigns don't block on the finalizer thread.  Also
3457         check if we even have a message loop before trying to send
3458         messages, if we don't then don't bother sending messages.
3459         - No more weak references for async methods
3460         * XplatUIDriver.cs: No more weak references for async methods.
3461
3462 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3463
3464         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3465           returns two FontFamily with the same name
3466
3467 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3468
3469         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3470           drawing disabled text. Instead using the ColorGrayText color
3471
3472 2006-01-04  Jackson Harper  <jackson@ximian.com>
3473
3474         * TreeNode.cs: redraw the node when its image index is changed.
3475
3476 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3477
3478         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3479           time I checked there are no others like it.
3480
3481 2006-01-04  Jackson Harper  <jackson@ximian.com>
3482
3483         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3484         this gives the behavoir I was looking for.
3485         * Control.cs: Special case Invoking EventHandlers, this matches MS
3486         and fixes part of bug #76326.
3487
3488 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3489
3490         * ThemeClearlooks.cs, FileDialog.cs:
3491           - Reflect the latest Theme class changes
3492           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3493             with DateTime
3494             
3495 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3496
3497         * Theme.cs: Cache UI resource images and resize them if needed
3498
3499 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3500
3501         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3502           is called. This fixes the crash in Nexxia when setting the font
3503           attributes in the chat. [However, RTF needs a look-over to make sure
3504           that all SelectionXXX methods handle the special case that selection
3505           is empty and therefore the change must be applied to all text starting
3506           at the cursor/selection start]
3507
3508 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3509
3510         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3511           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3512         * X11Keyboard.cs: Switched to new way of calling PostMessage
3513
3514 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3515
3516         * Theme.cs: Added theme interface for images to allow the theme to
3517           control what images are used for things like FileDialog, MessageBox
3518           icons, etc.
3519         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3520
3521 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3522
3523         * FileDialog.cs:
3524           - Removed some dead code
3525           - Opening a recently used file does work now
3526           - Small UI enhancements
3527           - Refactoring
3528
3529 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3530
3531         * FileDialog.cs: Forgot too add __MonoCS__
3532
3533 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3534
3535         * FileDialog.cs: We are able to read recently used files now let's
3536           go on and write them.
3537
3538 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3539
3540         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3541           button
3542         * MimeIcon.cs: Do a check for the top level media type also
3543
3544 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3545
3546         * ThemeClearlooks.cs:
3547           - Added CPDrawStringDisabled
3548           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3549             some chars if the text doesn't fit into text_rect
3550           - DrawListViewItem: If View = View.LargeIcon center the image;
3551             rewrote the drawing of ListViewItem.Text if View = 
3552             View.LargeIcon
3553
3554 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3555
3556         * MimeIcon.cs: Use default KDE icon theme if there is no
3557           "48x48" directory for the current icon theme, fixes #77114
3558         * Mime.cs: Disable not working and actually not used code. 
3559         * ThemeWin32Classic.cs:
3560           - Replace "new SolidBrush" in GetControlBackBrush and
3561             GetControlForeBrush with ResPool.GetSolidBrush
3562           - Changed DrawListViewItem from private to protected virtual
3563         * FileDialog.cs:
3564           - Added form.MaximizeBox = true
3565           - Don't throw an exception if there is a broken symbolic link
3566
3567 2005-12-23  Jackson Harper  <jackson@ximian.com>
3568
3569         * TabControl.cs: Give the panels focus, keyboard navigation is
3570         fixed so this works correctly now.
3571         - We need these key events also.
3572         * ToolBar.cs: Remove some of the poor mans double buffering.
3573         
3574 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3575
3576         * ComboBox.cs: The internal TextBox now returns the focus.
3577
3578 2005-12-23  Jackson Harper  <jackson@ximian.com>
3579
3580         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3581
3582 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3583
3584         * Control.cs: Removed debug code
3585         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3586           implicit children
3587
3588 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3589
3590         * Control.cs: When creating the control, update the Z-order after
3591           all it's children are created, too. (Fixes nexxia not showing
3592           picturebox bug)
3593
3594 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3595
3596         * Control.cs: Do not update the anchoring distances if layout is
3597           suspended, instead do it once layout is resumed
3598
3599 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3600
3601         * Control.cs: 
3602           - After many hours of debugging, for both Jackson and
3603             myself, it turns out that it helps to set the parent of a control
3604             if you want to actually see it onscreen. In the spirit of that
3605             discovery, we're now setting the parent of the control and
3606             it's children when the control's handle is created. This fix
3607             will make Lutz Roeder's Reflector run happily. 
3608           - now just creating the handle instead of the whole control when
3609             getting a graphics context for the control.
3610
3611 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3612
3613         * ScrollableControl.cs: When calculating the canvas, don't consider
3614           the scrollbar widths. Instead, predict if horizontal scrollbar
3615           will affect canvas when deciding on vertical display and vice versa.
3616
3617 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3618
3619         * RichTextBox.cs: Set default RTF font for documents that don't
3620           have a font table (Fixes #77076)
3621
3622 2005-12-22  Jackson Harper  <jackson@ximian.com>
3623
3624         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3625         clipboard. This prevents a NullRef in that case.
3626         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3627         clipboard. PRIMARY is for the currently selected text only. (We
3628         should implement PRIMARY at some point.
3629
3630 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3631
3632         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3633           a Unicode function with a structure that was defined in Ansi way.
3634           This fixes #76942.
3635
3636 2005-12-21  Jackson Harper  <jackson@ximian.com>
3637
3638         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3639         on. Because thats how it rolls. (and this avoids it using ambient
3640         colours).
3641         * ThemeWin32Classic.cs: Use the proper back color for filling.
3642         * Menu.cs: Use the system menu bar color for drawing menu
3643         bars. Using the window back color will bring ambient colours into
3644         the picture.
3645
3646 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3647
3648         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3649           Bitmaps were created and not disposed.
3650
3651 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3652
3653         * Control.cs (CreateControl): Don't do anything if the control is
3654           already created, otherwise we'd fire the OnCreated event more than
3655           once
3656
3657 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3658
3659         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3660           will always match. Instead return -1. Fixes #76464.
3661
3662 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3663
3664         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3665           neither the beginning nor the end of the line (Fixes bug #76479)
3666
3667 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3668
3669         * Control.cs:
3670           - ControlNativeWindow.ControlFromHandle(): Now handling situation
3671             where handle is invalid
3672           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
3673             instead of slower linear search
3674         * NativeWindow.cs: Don't remove the window from the hashtable until
3675           after the driver has destroyed it (since the driver might use
3676           Control.FromHandle to lookup the control object
3677         * Hwnd.cs: Added DestroyPending property to track if a window is 
3678           already destroyed as far as the driver is concerned and only hasn't
3679           yet notified the control
3680         * XplatUIX11.cs:
3681           - Activate(): Check if the window is still valid before using the 
3682             handle
3683           - Implemented DestroyChildWindow() method to mark child windows as
3684             destroyed when a window is destroyed. This prevents situations 
3685             where we might call an X method based on queued events for a
3686             window that already has been destroyed but we haven't yet pulled
3687             the destroy method from the queue.
3688           - Added a call to the new DestroyChildWindow() method to the drivers
3689             DestroyWindow code. Also now marking the destroyed window itself
3690             as pending
3691
3692 2005-12-20  Jackson Harper  <jackson@ximian.com>
3693
3694         * StatusBar.cs:
3695         * StatusBarPanel.cs: Don't calculate panel sizes on draw
3696         anymore. Just do them when needed, also track the rects of panels
3697         so that we can optimize refreshing more in the future.
3698
3699 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
3700
3701         * ColorDialog.cs: Fixed focus drawing in small color controls
3702
3703 2005-12-19  Jackson Harper  <jackson@ximian.com>
3704
3705         * InternalWindowManager.cs:
3706         * MdiWindowManager.cs: Cleanup some coordinate system changes so
3707         moving windows works properly.
3708
3709 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
3710
3711         * Control.cs: 
3712           - Removed call to InitLayout() from SetBoundsCore(); doc says
3713             it's only called when a control is added to a container
3714           - Split InitLayout logic, moved to separate UpdateDistances() method
3715             since we need to perform those calculations more often than just
3716             when adding the control to a container. (Needed to fix #77022)
3717           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
3718           - Reduced the OnBindingContextChanged events count, don't send them
3719             unless the control is created, we still aren't totally matching
3720             MS, but I can't quite figure out some of their rules
3721
3722 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3723
3724         * ThemeClearlooks.cs: Corrected distance between ProgressBar
3725           stripes
3726
3727 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3728
3729         * ThemeClearlooks.cs:
3730           - Updated ProgressBar drawing
3731           - Corrected drawing of ScrollBars and scroll buttons
3732           - Some temporary fixes for minor pixel artefacts
3733
3734 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
3735
3736         * Control.cs:
3737           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
3738             cause events to be sent in the same order as MS does.
3739           - Added ChangeParent() method to trigger various OnXXXChanged events
3740             that need to be fired when a parent changes (This is a reworking
3741             of the patch from r54254, with the X11 errors fixed)
3742           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
3743             since on MS we get OnLayoutChanged events when calling Clear()
3744           - Changed Enabled property to consider parent state as well, if a
3745             parent is not enabled, the control will not be either
3746           - Changed Parent property to simply call Controls.Add() since that
3747             now does all the work required, this way we avoid code duplication
3748           - Threw in a few OnBindingsContextChanged calls to try and match
3749             when MS sends them. We seem to send a few too many, though.
3750           - Added call to CreateControl when adding the control to a parent.
3751             We were never calling CreateControl. Still needs some work, in
3752             some places we treat HandleCreated and ControlCreated as equal, 
3753             which is wrong
3754           - Removed obsolete commented out code from UpdateZOrder()
3755
3756 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
3757
3758         * ThemeClearlooks.cs: Updated TrackBar drawing.
3759
3760 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3761
3762         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
3763
3764 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
3765
3766         * FileDialog.cs: Add the Help button and the open readonly
3767           checkbox only if needed
3768
3769 2005-12-16  Jackson Harper  <jackson@ximian.com>
3770
3771         * Control.cs: Make sure we have an active menu before trying to
3772         process commands on it. Prevents menu-less forms from crashing
3773         when Alt is pressed.
3774         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
3775         Dieter Bremes.
3776         * RichTextBox.cs: Expand statement to help out gmcs and fix the
3777         2.0 build.
3778
3779 2005-12-16  Jackson Harper  <jackson@ximian.com>
3780
3781         * InternalWindowManager.cs: Don't translate tool windows screen
3782         coordinates. This fixes windows 'bouncing' around when being moved.
3783
3784 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3785
3786         * TextBoxBase.cs:
3787           - MaxLength now treats 2^31-1 equal to unlimited length (this is
3788             not quite MS compatible, MS uses that number only for single line
3789             and 2^32-1 for multi-line, but I figure it won't hurt keeping
3790             the limit at 2GB)
3791           - Now enforcing the MaxLength limit when entering characters
3792           - Added argument to internal Paste() method to track if it's called
3793             from programatically or via keyboard, since keyboard driven pastes
3794             need to enforce max-length
3795           - Added logic to Paste to only paste as many chars as MaxLength 
3796             allows
3797         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
3798         * TextControl.cs:
3799           - Added Length property to return number of characters in document
3800           - Added private CharCount property which only tracks actual chars
3801             in the document (no linefeeds) and fires event when CharCount
3802             changes
3803           - Added tracking of character count to all methods that alter it
3804           - Added LengthChanged event to allow applications to subscribe
3805             to any changes to the document
3806
3807 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
3808
3809         * TextBox.cs: 
3810           - Removed local password_char field (moved to TextBoxBase)
3811           - Now setting the document's password var when password is
3812             set
3813         * TextBoxBase.cs:
3814           - Added password_char field (needed here so MultiLine can
3815             access it)
3816           - Added logic to MultiLine property setter to set the document's
3817             variable when password display is allowed
3818           - Removed debug code and made some debug code conditional
3819         * TextControl.cs:
3820           - Added RecalculatePasswordLine() method to handle special password
3821             char only lines
3822           - Added PasswordChar property, also added related tracking vars
3823           - Draw() method now uses local text var for grabbing text to draw,
3824             this var is set to line.text unless we're doing password display,
3825             then it is set to the pre-generated all-password-chars line
3826           - Added calling RecalculatePasswordLine() method for password lines
3827
3828 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3829
3830         * Hwnd.cs: 
3831           - Added Reparented property to allow tracking of Window Manager
3832             reparenting actions (which affect X/Y calculations of toplevel 
3833             windows)
3834           - Made ToString() print window handles in hex
3835         * XplatUIX11.cs:
3836           - AddConfigureNotify(): Now uses reparented state off Hwnd to
3837             determine if X/Y needs offsetting
3838           - AddConfigureNotify(): Fixed offset calculations
3839           - Now adds ReparentNotify messages into the queue
3840           - Now processes ReparentNotify messages and causes a 
3841             WM_WINDOWPOSCHANGED message to be sent upstream if a window
3842             is reparented (as most likely it's X/Y coordinates are changed
3843             due to that)
3844
3845 2005-12-14  Jackson Harper  <jackson@ximian.com>
3846
3847         * XplatUIX11.cs: Tool windows still need to respek focus.
3848
3849 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
3850
3851         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
3852           have a working release
3853
3854 2005-12-13  Jackson Harper  <jackson@ximian.com>
3855
3856         * Form.cs: Update styles after setting the border style regardless
3857         of whether or not the window is using a window manager.
3858
3859 2005-12-13  Jackson Harper  <jackson@ximian.com>
3860
3861         * Form.cs: We now hook into an internal window manager instead of just an
3862         MDI subsystem, this is so we can have properly behaving tool windows.
3863         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
3864         * InternalWindowManager.cs: New internal class that acts as a
3865         window manager for tool windows and as a base for mdi windows.
3866         * MdiWindowManager.cs: New class that acts as a window manager for
3867         mdi windows.
3868
3869 2005-12-12  Jackson Harper  <jackson@ximian.com>
3870
3871         * Control.cs: Updates so we match behavoir for for implicit
3872         controls. Fixes explosions in MDI.
3873
3874 2005-12-12  Jackson Harper  <jackson@ximian.com>
3875
3876         * Control.cs: Implement Invalidate (Region).
3877
3878 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
3879
3880         * Control.cs: 
3881           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
3882             the same events as MS does. MS fires events for each property 
3883             except, for unknown reasons, Cursor, when the control is reparented. 
3884             I can't seem to totally match add/remove since MS also fires some 
3885             VisibleChanged events, which makes no sense. Consolidated the
3886             parenting code into a separate method so it can be called from
3887             both Add and Remove. set_Parent no longer needs any special logic
3888             as it calls the parent's add method which implicitly fires
3889             all events
3890           - Removed some obsolete code and debug output
3891           - Enabled state is inherited from parents, if this is enabled
3892
3893 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
3894
3895         * Form.cs: Removed commented out code
3896
3897 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
3898
3899         * Control.cs:
3900           - Added internal version of Invoke, with additional argument 
3901             indicating if we're calling it from a Dispose() handler. That
3902             way we can avoid BeginInvoke throwing an exception if we're
3903             calling for an already destroyed window.
3904           - Added a dispose argument to BeginInvokeInternal, and made the
3905             check if a valid window handle chain exists conditional on
3906             it not being a dispose call
3907           - Removed code in DestroyHandle to destroy our children. Since we
3908             now handle the WM_DESTROY message we will catch all our children
3909             being destroyed.
3910           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
3911         * Form.cs:
3912           - Added a field to track the application context of the form.
3913           - No need to set closing variable as response to WM_CLOSE, instead
3914             we destroy the window. We also call PostQuitMessage if the form
3915             has an application context (which makes it the main app form,
3916             which, when closed terminates the app)
3917         * XplatUI.cs:
3918           - Dropped Exit() method, it's naming was confusing
3919           - Added PostQuitMessage() which causes GetMessage to return false
3920             once the message queue is empty
3921         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
3922           PostQuitMessage()
3923         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
3924           no longer a valid XplatUI method, but left it in since it's used
3925           internally. Added empty PostQuitMessage() method.
3926         * MenuAPI.cs: Replaced call to Exit() with call to
3927           PostQuitMessage, even though this is probably no longer needed.
3928         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
3929         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
3930         * Application.cs:
3931           - Replaced call to XplatUI.Exit() with PostQuitMessage()
3932           - Removed old debug code that would call XplatUI for exception
3933             display, enabled standard exception handling (Still not enabled
3934             though, until NativeWindow's ExternalExceptionHandler define
3935             is removed
3936         * NativeWindow.cs:
3937           - Added internal method to allow control to update NativeWindow
3938             after a window has been destroyed
3939           - Added handling of already destroyed windows when calling i
3940             DestroyWindow
3941           - Added removal of handle from list on ReleaseHandle
3942         * XplatUIX11.cs:
3943           - Dropped GetMessageResult var and related code
3944           - Added PostQuitState to field to track if PostQuitMessage has been
3945             called
3946           - Dropped Exit() method
3947           - Added PostQuitMessage() method
3948           - GetMessage now will return false if PostQuitState is set and no
3949             more messages are in the queue.
3950           - Expose handler will no longer generate WM_PAINT messages if we are
3951             in PostQuitState since it's very likely any windows have already
3952             been destroyed, and since Hwnd won't get updated until we have
3953             processed the DestroyNotify we'd be causing X errors.
3954         
3955 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3956
3957         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
3958           Thanks to Mike for pointing out the err of my ways.
3959
3960 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3961
3962         * Control.cs(PreProcessMessage): Moved menu handling back, but
3963           after all other key handling, to match MS (who handles Menu in
3964           DefWndProc)
3965         * Menu.cs (WndProc): Removed my brainfart
3966
3967 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3968
3969         * Control.cs(PreProcessMessage): Removed special menu handling 
3970         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
3971
3972 2005-12-07  Mike Kestner  <mkestner@novell.com>
3973
3974         * Control.cs : special case SYSKEYUP so that we can adjust keynav
3975         state according in tracker.
3976         * Menu.cs : promote tracker field to base class and provide a tracker
3977         lookup capability.  Add/Remove shortcuts dynamically if the top menu
3978         has a tracker. Unparent items that are removed from the collection.
3979         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
3980         * Theme*.cs: add always_show_hotkeys field to support configurability
3981         of mnemonic display.  win32 doesn't show mnemonics until Alt is
3982         pressed.
3983
3984 2005-12-07  Jackson Harper  <jackson@ximian.com>
3985
3986         * MdiChildContext.cs: Use Control.ResetCursor.
3987         * Control.cs: ResetCursor needs to set the property so that the
3988         correct XplatUI call gets made.
3989
3990 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
3991
3992         * Control.cs: More fixes to make our key events match MS. We
3993           were not setting the modifier state on KeyData, and we were
3994           not generating any events when Alt was pressed with a key
3995           since handling of WM_SYSxxx was missing for the OnKey methods.
3996
3997 2005-12-07  Jackson Harper  <jackson@ximian.com>
3998
3999         * MdiChildContext.cs: reenable the sizing code.
4000         - When the mouse leaves a window reset its cursor.
4001
4002 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4003
4004         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4005
4006 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4007
4008         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4009           widths of Fixed3D borders
4010
4011 2005-12-07  Jackson Harper  <jackson@ximian.com>
4012
4013         * MdiClient.cs: Fix warnings. Earn Mike's love.
4014
4015 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4016
4017         * ThemeClearlooks.cs:
4018           - Adjusted mouse over button color
4019           - Added first parts of CheckBox drawing
4020           - Added correct color for selected text background
4021           - Fixed ComboBox drawing
4022           - Added CPDrawBorder3D and CPDrawBorder
4023
4024 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4025
4026         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4027
4028 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4029
4030         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4031           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4032           alert users via sound. We could add an enum arg with different
4033           types of alerts in the future
4034
4035 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4036
4037         * Control.cs: Fix behaviour problems pointed out by Mike
4038
4039 2005-12-05  Mike Kestner  <mkestner@novell.com>
4040
4041         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4042         prop setters.  Calls parent.Refresh for now, but could be maybe be
4043         optimized with an internal method on StatusBar at some point.
4044         [Fixes #76513]
4045
4046 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4047
4048         * RichTextBox.cs: Implemented get_SelectionColor
4049
4050 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4051
4052         * ThemeClearlooks.cs:
4053           - Removed dead code
4054           - Draw black button border only if button is Form.AcceptButton
4055           - Draw correct button color for pressed RadioButton if the mouse 
4056             has entered the button
4057           - Updated ProgressBar drawing!
4058           - Updated CPDrawSizeGrip drawing
4059           - Updated StatusBarPanel drawing
4060
4061 2005-12-05  Mike Kestner  <mkestner@novell.com>
4062
4063         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4064         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4065
4066 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4067
4068         * ThemeClearlooks.cs: Initial check-in, activate with
4069           export MONO_THEME=clearlooks
4070         * ThemeEngine.cs: Added ThemeClearlooks
4071
4072 2005-12-03  Mike Kestner  <mkestner@novell.com>
4073
4074         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4075         [Fixes #76897]
4076
4077 2005-12-02  Jackson Harper  <jackson@ximian.com>
4078
4079         * Form.cs: If the child form has no menu the default main menu is
4080         used as the active menu.
4081
4082 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4083
4084         * ListBox.cs: Check if any items exist before trying to resolve 
4085           coordinates into items
4086
4087 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4088
4089         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4090           as the second color for the background hatch
4091
4092 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4093
4094         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4095         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4096           sure that what we pass to FormatText is always 1-based. Fixes #76885
4097
4098 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4099
4100         * NumericUpDown.cs (EndInit): When we are done initializing,
4101         reflect any updates on the UI.
4102
4103 2005-12-02  Jackson Harper  <jackson@ximian.com>
4104
4105         * ImplicitHScrollBar.cs:
4106         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4107         their container controls.
4108         * TreeView.cs: Use the new implicit scrollbars.
4109
4110 2005-12-02  Jackson Harper  <jackson@ximian.com>
4111
4112         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4113         can play with it.
4114         * TreeNodeCollection.cs: If we remove the topnode we need to
4115         update topnode to the next node in line.
4116         - When clearing nodes go through the same process as removing
4117         them, so they get depareneted and checked if they are top node.
4118
4119 2005-12-01  Jackson Harper  <jackson@ximian.com>
4120
4121         * TreeView.cs: When imagelists are used the image area is
4122         selectable as well as the text.
4123         - If there are no selected nodes select the first one.
4124         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4125         so don't do it more then we need to.
4126
4127 2005-12-01  Jackson Harper  <jackson@ximian.com>
4128
4129         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4130         that arrows can be scaled.
4131
4132 2005-12-01  Jackson Harper  <jackson@ximian.com>
4133
4134         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4135         fail. Patch by Dieter Bremes
4136
4137 2005-11-30  Jackson Harper  <jackson@ximian.com>
4138
4139         * Form.cs: Property is 2.0 only
4140         * PrintDialog.cs: Signature fix.
4141
4142 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4143
4144         * TextControl.cs: 
4145           - No longer artificially moves text 2 pixels down (now that we have
4146             borders this is no longer needed)
4147           - Added calcs for left, hanging and right indent
4148
4149 2005-11-23  Mike Kestner  <mkestner@novell.com>
4150
4151         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4152
4153 2005-11-30  Jackson Harper  <jackson@ximian.com>
4154
4155         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4156         get cloned as part of CloneMenu ().
4157         * Menu.cs: Make sure the parent of the items get set correctly
4158         when they are added.  And the owners are notified of the changes.
4159         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4160         we can change the menu being displayed/handled by the form without
4161         changing the menu assosciated with the form.
4162         - Don't let Mdi children draw/handle menus.
4163         
4164 2005-11-30  Jackson Harper  <jackson@ximian.com>
4165
4166         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4167         a MenuChanged event. Just to make the API a little more
4168         consistent.
4169         * MainMenu.cs:
4170         * MenuItem.cs: Use the new OnMenuChanged
4171         * MdiChildContext.cs: Handle menu merging.
4172         * Form.cs: Implement MergedMenu.
4173         
4174 2005-11-30  Jackson Harper  <jackson@ximian.com>
4175
4176         * Menu.cs: We were misusing Add. Add goes behind the specified
4177         index according to the docs, and does not replace the specified
4178         index. So I added an Insert method.
4179
4180 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4181
4182         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4183           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4184           is for Jackson
4185         * RichTextBox.cs: Added calls to base for DnD events
4186
4187 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4188
4189         * TextControl.cs:
4190           - Fixed drag-selection related crash; style fixes
4191           - Implemented undo class
4192             o Implemented method to capture document state for specified
4193               range in document tree
4194             o Implemented method to restore captured document state
4195             o Implemented cursor tracking
4196             o Implemented basic undo stack
4197           - Added undo cursor tracking to methods altering cursor location
4198           - Added undo tracking to selection deletion (still missing
4199             other text-altering hookups)
4200         * RichTextBox.cs:
4201           - Added SelectionLength property
4202           - Implemented CanPaste()
4203           - Implemented Paste()
4204           - Added missing protected methods
4205           - Fixed RTF->Document conversion; now uses font index 0 and color 
4206             index 0 as the default font for the parsed text
4207           - Fixed RTF<->Document font size translation
4208           - Fixed RTF generation, now properly handles cross-tag boundaries
4209             for single line selection
4210           - No longer always appends blank line to generated RTF
4211           - Removed TODOs
4212           - Added missing attributes
4213           - Hooked up undo-related methods
4214         * TextBoxBase.cs:
4215           - Implemented Copy()
4216           - Implemented Paste()
4217           - Implemented Cut()
4218           - Fixed caret mis-behaviour on backspace across line-boundaries
4219
4220 2005-11-29  Jackson Harper  <jackson@ximian.com>
4221
4222         * MdiClient.cs: Add a method for activating mdi children. Very
4223         basic right now. I imagine someday it might need more girth.
4224         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4225         children windows names are added to the menu item.
4226         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4227         mdilist. This happens regardless of whether or not there are any
4228         mdi windows to see in the list, and according to my tests happens
4229         before the items are even added. Also happens if there isn't even
4230         an mdi client to get windows from.
4231
4232 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4233
4234         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4235         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4236
4237 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4238
4239         * DataGridTableStyle.cs:
4240           - Create always the styles for the missing columns even if they are
4241             provided by the user (not default table style)
4242         * DataGrid.cs:
4243           - Fixes bug 76770
4244           - Fixes SetDataBinding (always re-attach source)
4245           - Fixes SetNewDataSource (only clear styles if they are not for 
4246             this source)
4247          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4248             and remove properly
4249
4250 2005-11-29  Jackson Harper  <jackson@ximian.com>
4251
4252         * FileDialog.cs: Implement missing bits, remove some dead
4253         code.
4254         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4255         creation of the panel so that the options set on the dialog are
4256         seen when the panel is created.
4257         * TreeView.cs: raise a click when items are clicked.
4258         
4259 2005-11-29  Jackson Harper  <jackson@ximian.com>
4260
4261         * MdiClient.cs: Pass some signature methods through to base.
4262
4263 2005-11-28  Jackson Harper  <jackson@ximian.com>
4264
4265         * ListView.cs: Raise the click event when items are clicked.
4266
4267 2005-11-28  Jackson Harper  <jackson@ximian.com>
4268
4269         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4270         a nullref.
4271
4272 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4273
4274         * ThemeNice.cs: - Removed 1 pixel bitmaps
4275           - Use SmoothingMode.AntiAlias where it makes sense
4276             (ScrollButton arrow for example)
4277           - Enhanced Button focus drawing
4278           - Fixed ComboBox drawing (no artefacts anymore, focus
4279             rectangle is back again, reduced size of ComboButton, etc.)
4280           - Fixed RadioButton focus drawing for Appearence.Button
4281           - Slight ScrollButton redesign
4282           - Some LinearGradientBrush size fixes
4283           - GroupBoxes have now rounded edges
4284           - Fixed StatusBar drawing
4285
4286 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4287
4288         * ThemeNice.cs: - Remove dead code
4289           - use correct background colors for menus, etc.
4290           - Fake pixel drawing with 1 pixel bitmaps
4291
4292 2005-11-24  Jackson Harper  <jackson@ximian.com>
4293
4294         * MdiClient.cs: Size the scrollbars when resizing the window.
4295         - Resize the maximized windows when the client is resized
4296         * Form.cs: Make the child context available
4297         
4298 2005-11-23  Jackson Harper  <jackson@ximian.com>
4299
4300         * MdiChildContext.cs: Don't size windows if they are maximized.
4301
4302 2005-11-23  Mike Kestner  <mkestner@novell.com>
4303
4304         * ContextMenu.cs: use MenuTracker.
4305         * Control.cs: remove menu handle usage.
4306         * Form.cs: remove menu handle usage.
4307         * Hwnd.cs: remove menu handle usage.
4308         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4309         motion and clicks to the new Tracker handlers.
4310         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4311         and handle usage.
4312         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4313         Killed the MENU and MENUITEM data types and associated collections
4314         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4315         MenuTracker class that exposes the leftovers from the old MenuAPI
4316         static methods. Restructured Capture handling so that only one grab is
4317         done for the entire menu hierarchy instead of handing off grabs to
4318         submenus. Tracker now has an invisible control to Capture when active.
4319         * MenuItem.cs: add sizing accessors, kill Create
4320         and handle usage.
4321         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4322         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4323         MENU(ITEM). remove menu handle usage, use Menu directly.
4324         * XplatUIDriver.cs: remove menu handle usage.
4325         * XplatUIOSX.cs: remove menu handle usage.
4326         * XplatUIWin32.cs: remove menu handle usage.
4327         * XplatUIX11.cs: remove menu handle usage.
4328
4329 2005-11-22  Jackson Harper  <jackson@ximian.com>
4330
4331         * Hwnd.cs: Don't compute the menu size for
4332         DefaultClientRectangle.
4333         - Reenable menu sizes being computed for GetClienRectangle.
4334         * Form.cs: Remove comment of trechery
4335         
4336 2005-11-22  Jackson Harper  <jackson@ximian.com>
4337
4338         * Hwnd.cs: The adjustments for the menu bar are made when it is
4339         attached to the form.
4340
4341 2005-11-19  Jackson Harper  <jackson@ximian.com>
4342
4343         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4344         (just like on windows).
4345
4346 2005-11-19  Jackson Harper  <jackson@ximian.com>
4347
4348         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4349         use real buttons anymore because they are in non client area. The
4350         one TODO here is that I need to somehow invalidate a section of
4351         the non client area.
4352
4353 2005-11-18  Jackson Harper  <jackson@ximian.com>
4354
4355         * Control.cs: Put the enum check back in now that MDI doesnt have
4356         to use this to set border styles.
4357         * Form.cs: Only set mdi child windows borders if the handle has
4358         been created.
4359         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4360         this directly on to the driver.
4361         - Get the move start position before adjusting for the titlebar
4362         height, this fixes the windows "skipping" when they are first
4363         moved.
4364
4365 2005-11-18  Jackson Harper  <jackson@ximian.com>
4366
4367         * XplatUIX11.cs: Just compute the mdi borders separately as they
4368         don't totally match up with normal form borders.
4369
4370 2005-11-18  Jackson Harper  <jackson@ximian.com>
4371
4372         * Control.cs: Set WS_ styles for borders, so that the driver does
4373         not have to retrieve the control instance to figure out what kind
4374         of borders it should have.
4375         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4376         driver can know its an mdi child easily.
4377         * XplatUIX11.cs: Get the border styles and whether the window is
4378         MDI from the Styles and ExStyles params instead of having to get a
4379         control. This prevents a chicken and egg problem.       
4380
4381 2005-11-18  Jackson Harper  <jackson@ximian.com>
4382
4383         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4384
4385 2005-11-18  Jackson Harper  <jackson@ximian.com>
4386
4387         * MdiClient.cs: Calculate when to add and remove scrollbars
4388         correctly.
4389         * MdiChildContext.cs: Adjust the y position to take the titlebar
4390         into account.
4391         - No height for FormBorderStyle.None
4392
4393 2005-11-18  Jackson Harper  <jackson@ximian.com>
4394
4395         * Control.cs: Allow non enum values to be used for
4396         InternalBorderStyle.  MDI does this to set a special border style.
4397         - New utility methods for converting points to/from client coords
4398         - Add the newly created control to the Controls collection before
4399         updating its style. This way UpdateStyle can walk the control
4400         heirarchy to find the control if needed.
4401         so I don't need to create a new Point object all the time.
4402         * Form.cs: Let MDI windows handle their border styles.
4403         - Set styles on MDI windows so the correct title style is derived.
4404         * MdiChildContext.cs: Move all the painting and window handling
4405         into the non client area.
4406         - Use correct sizing and put correct buttons on frames based on
4407         the FormBorderStyle.
4408         - Notify the mdi client about scrolling
4409         - Need to handle the buttons ourselves now, because they are all
4410         in non client areas and we can't add controls there.
4411         * MdiClient.cs: Halfway to scrolling, this implementation is
4412         somewhat broken though, we need to check to make sure other
4413         windows aren't causing scrolling before removing the bars. Also
4414         the bars need to be drawn on top, maybe I can switch implicit
4415         controls to be on top.
4416         * Hwnd.cs: caption_height and tool_caption_height are now
4417         properties of an hwnd, this way they can be set by the driver
4418         based on the type of window they are.  In X11 the window manager
4419         handles the decorations so caption_height is zero unless its an
4420         MDI window.
4421         - Add 3 pixel borders for MDI windows (0xFFFF).
4422         - Get rid of some code duplication, have DefaultClientRectanle
4423         just call GetClientRectangle.
4424         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4425         Hwnd now.
4426         - Set border styles differently for mdi windows.
4427         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4428         Hwnd now.
4429         
4430 2005-11-15  Mike Kestner  <mkestner@novell.com>
4431
4432         * Menu.cs: when adding an item to the collection, if item is already 
4433         parented, remove it from the parent.
4434
4435 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4436
4437         * X11DesktopColors.cs: Added KDE support
4438
4439 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4440
4441         * XplatUIWin32.cs: 
4442           - Clipboard methods now can translate Rtf format
4443           - No longer removes clipboard contents whenever a new format is added
4444             to allow placing multiple formats on the clipboard
4445         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4446           will place all formats contained in it onto the clipboard. Also
4447           now cleans the clipboard before placing a new object onto it
4448         * RichTextBox.cs:
4449           - Implemented set_Rtf
4450           - Implemented set_SelectedRtf
4451           - Created InsertRTFFromStream() method to allow single code base
4452             for all properties and methods that insert RTF into document
4453           - Removed debug output
4454         * TextControl.cs:
4455           - Fixed Delete(int) to fix up line numbers
4456           - Fixed ReplaceSelection to combine start and end line
4457           - Fixed serious DeleteChars bug that would leave the document tree
4458             broken
4459           - Improved DumpTree with several logic checks to detect broken
4460             document trees
4461           - Removed debug lines
4462           - Fixed Caret.WordForward/WordBack moving code, now always also 
4463             updates caret.tag (fixes crash when word-selecting across tag
4464             boundaries via keyboard)
4465           - Added Insert() method for inserting multiline text into documents
4466           - Fixed DeleteChars() calculation errors that would cause a broken
4467             tag chain with multiple tag lines
4468           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4469           - Split() no longer moves caret if split is at caret location
4470           - ReplaceSelection() now updates the cursor and re-displays it
4471           - ReplaceSelection() now uses new Insert() method to avoid code
4472             duplication
4473           - FormatText() can now handle formatting partial lines
4474         * TextBoxBase.cs:
4475           - Append now uses new TextControl.Insert() method (this avoids 
4476             duplicate code)
4477           - Implemented Ctrl-X (Cut) (
4478           - Implemented Ctrl-C (Copy)
4479           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4480             regeneration when pasting text; roundtripping Copy&Paste within
4481             edit control still fails due to some calculation bugs in GenerateRTF)
4482           - The Delete key will now remove the current selection if it is visible
4483         * TextBox.cs: Removed debug lines
4484         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4485           driver to be initialized and can't therefore be done via a static ctor)
4486
4487 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4488
4489         * TextControl.cs: Added backend code for finding char arrays and strings
4490         * TextBoxBase.cs:
4491           - Added mouse wheel scroll support
4492           - Added support for VScroll and HScroll events
4493         * RichTextBox.cs:
4494           - Implemented all seven Find() variants
4495           - Implemented GetCharFromPosition()
4496           - Implemented GetCharIndexFromPosition()
4497           - Implemented GetLineFromIndex()
4498           - Implemented GetPositionFromCharIndex();
4499           - Implemented SaveFile for PlainText and UnicodeText
4500           - Fixed set_Font, now setting a new font applies that font to
4501             the whole document
4502           - Implemented generic Document to RTF converter
4503           - Implemented SaveFile for RichText format (still missing unicode
4504             conversion for non-ansi chars)
4505           - Implemented get_Rtf
4506           - Implemented get_SelectedRtf
4507
4508 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4509
4510         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4511           to allow any captures to be released before triggering OnClick. This
4512           way a click handler may capture the mouse without interference.
4513         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4514           This way we send them even though X may not allow a grab (if the window
4515           isn't visible, for example)
4516
4517 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4518
4519         * DataGridViewRowEventArgs.cs: DataGridView implementation
4520         * DataGridViewElement.cs: DataGridView implementation
4521         * DataGridViewComboBoxCell.cs: DataGridView implementation
4522         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4523         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4524         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4525         * ImageLayout.cs: DataGridView implementation
4526         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4527         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4528         * DataGridViewSelectionMode.cs: DataGridView implementation
4529         * IDataGridViewEditingControl.cs: DataGridView implementation
4530         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4531         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4532         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4533         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4534         * DataGridViewColumnSortMode.cs: DataGridView implementation
4535         * DataGridView.cs: DataGridView implementation
4536         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4537         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4538         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4539         * Padding.cs: DataGridView implementation
4540         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4541         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4542         * DataGridViewRowEventHandler.cs: DataGridView implementation
4543         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4544         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4545         * DataGridViewButtonCell.cs: DataGridView implementation
4546         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4547         * DataGridViewEditMode.cs: DataGridView implementation
4548         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4549         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4550         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4551         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4552         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4553         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4554         * DataGridViewCellEventHandler.cs: DataGridView implementation
4555         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4556         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4557         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4558         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4559         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4560         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4561         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4562         * QuestionEventArgs.cs: DataGridView implementation
4563         * IDataGridViewEditingCell.cs: DataGridView implementation
4564         * DataGridViewTriState.cs: DataGridView implementation
4565         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4566         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4567         * DataGridViewColumnCollection.cs: DataGridView implementation
4568         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4569         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4570         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4571         * DataGridViewColumn.cs: DataGridView implementation
4572         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4573         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4574         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4575         * DataGridViewRow.cs: DataGridView implementation
4576         * DataGridViewImageCellLayout.cs: DataGridView implementation
4577         * DataGridViewImageCell.cs: DataGridView implementation
4578         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4579         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4580         * DataGridViewHeaderCell.cs: DataGridView implementation
4581         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4582         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4583         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4584         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4585         * QuestionEventHandler.cs: DataGridView implementation
4586         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4587         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4588         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4589         * DataGridViewCell.cs: DataGridView implementation
4590         * DataGridViewCellEventArgs.cs: DataGridView implementation
4591         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4592         * DataGridViewCellStyle.cs: DataGridView implementation
4593         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4594         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4595         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4596         * TextFormatFlags.cs: DataGridView implementation
4597         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4598         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4599         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4600         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4601         * DataGridViewButtonColumn.cs: DataGridView implementation
4602         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4603         * HandledMouseEventArgs.cs: DataGridView implementation
4604         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4605         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4606         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4607         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4608         * DataGridViewRowCollection.cs: DataGridView implementation
4609         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4610         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4611         * DataGridViewHitTestType.cs: DataGridView implementation
4612         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4613         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4614         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4615         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4616         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4617         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4618         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4619         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4620         * DataGridViewContentAlignment.cs: DataGridView implementation
4621         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4622         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4623         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4624         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4625         * DataGridViewPaintParts.cs: DataGridView implementation
4626         * DataGridViewCellCollection.cs: DataGridView implementation
4627         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4628         * DataGridViewImageColumn.cs: DataGridView implementation
4629         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4630         * DataGridViewElementStates.cs: DataGridView implementation
4631         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4632         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4633         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4634         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4635         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4636         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4637         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4638         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4639         * DataGridViewTextBoxCell.cs: DataGridView implementation
4640         * DataGridViewBand.cs: DataGridView implementation
4641         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4642         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4643         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4644         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4645         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4646         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4647         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4648         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4649         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4650         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4651         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4652
4653 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4654
4655         * ThemeWin32Classic.cs: 
4656           - Draw the outside focus rectangle around buttons
4657           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4658             doesn't use end caps for every dash of a line anymore. This
4659             workaround ignores the forecolor.
4660
4661 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4662
4663         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4664           endian safe.
4665
4666 2005-11-07  Jackson Harper  <jackson@ximian.com>
4667
4668         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4669
4670 2005-11-07  Jackson Harper  <jackson@ximian.com>
4671
4672         * ScrollableControl.cs: Calculate the maximum and change vars
4673         (more) correctly so that scrollbars appear as a sensible size.
4674
4675 2005-11-04  Jackson Harper  <jackson@ximian.com>
4676
4677         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
4678         collection.
4679         * TreeView.cs: When the tree is sorted null out the top_node so
4680         that it is recalculated.
4681         - Use dotted lines instead of dashed lines to match MS better.
4682
4683 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
4684
4685         * ListView.cs: 
4686           - Implements key search for items. Useful when browsing files with FileDialog
4687           - When changing view mode or when clear the items reset scrollbar positions
4688
4689 2005-11-04  Jackson Harper  <jackson@ximian.com>
4690
4691         * CurrencyManager.cs: Implement the MetaDataChanged event, the
4692         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
4693         as to what the method may do as there is no real way of creating a
4694         derived CurrencyManager and calling the method. 
4695
4696 2005-11-03  Jackson Harper  <jackson@ximian.com>
4697
4698         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
4699         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
4700         method which seems to just be used internally to refresh the tabs.
4701
4702 2005-11-03  Jackson Harper  <jackson@ximian.com>
4703
4704         * TabControl.cs: Implement the remove method. Fix some broken
4705         comments.
4706
4707 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4708
4709         * DateTimePicker.cs:
4710           - Added missing DateTimePickerAccessibleObject class
4711           - Added missing events
4712           - Added OnFontChanged method
4713         * Form.cs: Added missing attributes
4714         * TreeView.cs: Added missing attributes
4715
4716 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
4717
4718         * GridItemCollection.cs: Fix signatures
4719
4720 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4721
4722         * XplatUI.cs: Updated build rev/date
4723         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
4724           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
4725         * Application.cs: Trigger context-specific ExitThread events
4726
4727 2005-11-03  Jackson Harper  <jackson@ximian.com>
4728
4729         * Menu.cs:
4730         * MainMenu.cs:
4731         * GridTableStylesCollection.cs:
4732         * Timer.cs:
4733         * TabPage.cs:
4734         * HelpProvider.cs:
4735         * StatusBar.cs:
4736         * MonthCalendar.cs: Signature fixes
4737
4738 2005-11-03  Jackson Harper  <jackson@ximian.com>
4739
4740         * TreeNodeCollection.cs: Remove should not be virtual.
4741         * TreeView.cs: Implement the last of the missing methods.
4742
4743 2005-11-03  Jackson Harper  <jackson@ximian.com>
4744
4745         * TreeNodeConverter.cs: Implement to get off my class-status back.
4746
4747 2005-11-03  Jackson Harper  <jackson@ximian.com>
4748
4749         * TreeView.cs: Hookup the bits for drag and drop.
4750         * TreeNode.cs: Don't cache the tree_view or index anymore, now
4751         that nodes can be moved from tree to tree easily this just causes
4752         all sorts of problems.
4753         * TreeNodeCollection: Don't need to give treenodes an index and
4754         treeview anymore when they are added, these are computed on the
4755         fly. Also make sure to remove a node before its added.
4756
4757 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
4758
4759         * TextControl.cs:
4760           - Added CaretSelection enum
4761           - Added comparison methods to Marker struct, makes selection code
4762             more readable
4763           - Added SelectionStart and SelectionEnd as 'moveable' location for
4764             the CaretDirection enum and handler
4765           - Added selection_prev variable to track optimized invalidation for
4766             word and line selection
4767           - Added SelectionVisible property (returns true if there is a valid 
4768             selection)
4769           - Switched CaretHasFocus to only display the caret if there is no
4770             visible selection
4771           - Avoiding StringBuilder.ToString to retrieve a single char, instead
4772             using the direct character index; should be much faster
4773           - Added various conditional debug statements
4774           - Fixed invalidation calculation for selection ranges
4775           - Added ExpandSelection() method to support word and line selection
4776           - Switched SetSelectionToCaret to use new Marker compare overloads
4777           - Added central IsWordSeparator() method to determine word 
4778             separators/whitespace and FindWordSeparator() to streamline common
4779             usage of IsWordSeparator()
4780         * TextBoxBase.cs:
4781           - Removed unneeded grabbed variable, it was just mirroring
4782             Control.Capture
4783           - No longer firing OnTextChanged event when Text setter is called,
4784             since the base will fire the event for us
4785           - Added handling of Ctrl-Up/Down selection
4786           - Added handling of Shift-Cursorkey selection
4787           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
4788             words
4789           - Added handling of Shift and Ctrl-Shift-Home/End selection
4790           - Removed some debug output
4791           - Added handling for single/double/tripple-click to place caret/
4792             select word/select line respectively (Fixes bug #76031)
4793           - Added support for drag expansion of word/line selection
4794         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
4795           current selection
4796
4797 2005-11-02  Jackson Harper  <jackson@ximian.com>
4798
4799         * X11Dnd.cs: If the drag is going to and from a MWF window just
4800         copy the data instead of sending it out through the X Selection
4801         mechanism.
4802
4803 2005-11-02  Jackson Harper  <jackson@ximian.com>
4804
4805         * X11Dnd.cs:
4806         * XplatUIX11.cs: When in a drag we don't want motion notify
4807         messages to get passed on to the other controls. This prevents
4808         mouse move messages from showing up in the drag source.
4809
4810 2005-11-02  Jackson Harper  <jackson@ximian.com>
4811
4812         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
4813         the correct button is release to end a drag.
4814         * XplatUIX11.cs: Make the button state internal so the drag system
4815         can access it.  Dragging needs to know about all button releases,
4816         not just left button.
4817
4818 2005-11-02  Miguel de Icaza  <miguel@novell.com>
4819
4820         * Form.cs (Icon): If the icon is null, reset the icon to the
4821         default value. 
4822
4823         * Cursor.cs: When writing the AND-mask bitmap do not include the
4824         number of colors, but hardcode those to two (black and white),
4825         fixes the loading of color cursors (Paint Dot Net).
4826
4827         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
4828         turn off autoscaling.
4829
4830         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
4831
4832 2005-11-02  Jackson Harper  <jackson@ximian.com>
4833
4834         * X11Dnd.cs: Make sure to send a status message if the pointer
4835         enters a control that can not accept a drop, otherwise the cursor
4836         isn't updated correctly. Also tried to compress the lines of code
4837         a bit.
4838
4839 2005-11-02  Jackson Harper  <jackson@ximian.com>
4840
4841         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
4842         set actions correctly.  This isn't perfect as XDND and win32 have
4843         some differences on how you allow actions. I'll clear this up by
4844         adding a path for drag from MWF to MWF windows.
4845         * XplatUIX11.cs: Hook into the dnd system.
4846
4847 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
4848
4849         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
4850         previously shown but they are no longer need it. Very obvious when 
4851         browsing files with FileDialog.
4852
4853 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
4854
4855         * Control.cs: We always need to call OnPaintBackground. We pretty much
4856           ignore AllPaintingInWmPaint and always do the painting there, whether 
4857           it's set or not, since we always ignore the WM_ERASEBKGND message 
4858           (which we don't generate on X11). This fixes #76616.
4859         * Panel.cs: Removed unneeded background painting. This happens properly
4860           in Control.cs already
4861
4862 2005-10-31  Mike Kestner  <mkestner@novell.com>
4863
4864         * Menu.cs: Add items to collection before setting their index.
4865         * MenuItem.cs : add range checking with ArgumentException like MS.
4866         [Fixes #76510]
4867
4868 2005-10-31  Jackson Harper  <jackson@ximian.com>
4869
4870         * ListBox.cs: Invalidate if the area is visible at all not just
4871         contained in the visible rect. Fixes unselection of semi visible
4872         items.
4873
4874 2005-10-31  Jackson Harper  <jackson@ximian.com>
4875
4876         * Control.cs: Consistently name the dnd methods. Make them
4877         internal so we can override them to match some MS behavoir
4878         internally.
4879         * Win32DnD.cs: Use the new consistent names.
4880
4881 2005-10-31  Jackson Harper  <jackson@ximian.com>
4882
4883         * TreeView.cs: Don't draw the selected node when we lose focus.
4884
4885 2005-10-31  Jackson Harper  <jackson@ximian.com>
4886
4887         * X11Dnd.cs: We still need to reset the state even though a full
4888         reset isn't being done, otherwise status's still get sent all over
4889         the place.
4890
4891 2005-10-31  Jackson Harper  <jackson@ximian.com>
4892
4893         * Control.cs: Make the dnd_aware flag internal so the dnd
4894         subsystem can check it. Catch exceptions thrown in dnd handlers to
4895         match MS behavoir.
4896         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
4897         * X11Dnd.cs: Handle null data in the converters. Set the XDND
4898         version when sending a XdndEnter. Use the control/hwnd dnd_aware
4899         flags to reduce the number of dnd enters/status's sent.
4900
4901 2005-10-31  Jackson Harper  <jackson@ximian.com>
4902
4903         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
4904
4905 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
4906
4907         * PictureBox.cs: Fixes 76512
4908
4909 2005-10-28  Jackson Harper  <jackson@ximian.com>
4910
4911         * X11Dnd.cs: Early implementation to support winforms being a drag
4912         source for data on X11. Also restructured the converters so they
4913         can go both ways now.
4914         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
4915         
4916 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
4917
4918         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
4919           clipboard requests
4920
4921 2005-10-27  Jackson Harper  <jackson@ximian.com>
4922
4923         * TreeNode.cs: Implement serialization so my DnD examples will work.
4924
4925 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
4926
4927         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
4928           TreeView.cs: Don't dispose objects that are not owned.
4929           
4930 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
4931
4932         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
4933           should retrieve the current cursor and report that, but XplatUI
4934           doesn't (yet) have an interface for that (and I'm not sure I even
4935           can, on X11)
4936         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
4937           until any message loop processing is done (and the WM_SETCURSOR
4938           replaces the cursor to the proper one)
4939         * XplatUIX11.cs: 
4940           - Fixed override behaviour, we can't set the cursor globally on X11, 
4941             just for our windows.
4942           - Invalidating the System.Drawing X11 display handle when we are
4943             shutting down
4944         * Control.cs: Fix to make csc happy
4945
4946 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
4947
4948         * TextBoxBase.cs: 
4949           - get_Text: Add last line (without trailing newline) to returned
4950             value (Fixes 76212)
4951           - get_TextLength: Count last line in returned length
4952           - ToString: Call Text property instead of duplicating code
4953
4954 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
4955
4956         * ImageList.cs: Dispose ImageAttributes objects.
4957
4958 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4959
4960         * ImageList.cs: Use attribute constructors with less arguments where
4961           possible.
4962
4963 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
4964
4965         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
4966           Use typeof instead of strings when assembly is referenced. Added
4967           some more comments.
4968
4969 2005-10-21  Jackson Harper  <jackson@ximian.com>
4970
4971         * ListView.cs: Raise a double click event. Also tried to somewhat
4972         fix when the selectedindexchanged event is raised. Its still
4973         broken though.
4974
4975 2005-10-21  Jackson Harper  <jackson@ximian.com>
4976
4977         * TreeView.cs: New method to invalidate the plus minus area of a
4978         node without invalidating the whole node (maybe this can be used
4979         in some more places).
4980         * TreeNodeCollection.cs: When adding to an empty node we need to
4981         invalidate its plus minus area so the little block shows up.
4982         
4983 2005-10-21  Jackson Harper  <jackson@ximian.com>
4984
4985         * TreeView.cs: Make sure that when we invalidate a node the bounds
4986         are big enough to cover the selected box and the focus
4987         rectangle. Use a different colour for the lines connecting nodes
4988         so they show up with all themes.
4989
4990 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
4991
4992         * NativeWindow.cs: Don't call anything that could call into the driver,
4993           we might be on a different thread.
4994
4995 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
4996
4997         * Control.cs(Dispose): Since Dispose might run on a different thread,
4998           make sure that we call methods that could call into the driver via
4999           invoke, to avoid thread issues
5000
5001 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5002
5003         * XplatUI.cs: Removed finalizer
5004         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5005           not allowing to be called on the finalizer thread.
5006
5007 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5008
5009         * ImageList.cs:
5010           - Reverted r51889 and r51891.
5011           - Added ImageListItem class that stores unmodified image items and image
5012             properties required to create list images until handle is created.
5013           - Added AddItem and moved image creation logic to AddItemInternal.
5014           - Added CreateHandle method that creates images based on unmodified items.
5015           - Added DestroyHandle that changes state to store unmodified items.
5016           - Add and AddStrip methods no more create handle.
5017           - ReduceColorDepth has no return value.
5018           - Dispose destroys handle.
5019           - Modified other methods to reflect the above changes.
5020           - Implemented key support.
5021           - Added profile 2.0 members and attributes.
5022           - Added private Reset and ShouldSerialize methods that provide the same
5023             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5024             them as they are private.
5025           - Added some more comments about implementation details.
5026
5027 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5028
5029         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5030
5031 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5032
5033         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5034
5035 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5036
5037         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5038         * DataGridColumnStyle.cs: Remove debug message
5039
5040 2005-10-20  Jackson Harper  <jackson@ximian.com>
5041
5042         * TreeView.cs: We can always get input keys regardless of whether
5043         or not editing is enabled. They are used for navigation.
5044
5045 2005-10-20  Jackson Harper  <jackson@ximian.com>
5046
5047         * TreeNode.cs: Use the viewport rect for determining if a node
5048         needs to be moved for visibility. Don't use Begin/End edit. This
5049         calls a full refresh when its done.
5050         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5051         rect property internal so the treenodes can see it. When clicking
5052         on a node we need to ensure that its visible because it might just
5053         be partly visible when clicked.
5054
5055 2005-10-20  Jackson Harper  <jackson@ximian.com>
5056
5057         * TreeNodeCollection.cs: Remove debug code.
5058
5059 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5060
5061         * Datagrid.cs: Implements column sorting in Datagrid
5062         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5063
5064 2005-10-20  Jackson Harper  <jackson@ximian.com>
5065
5066         * TreeNodeCollection.cs: Remove items properly. Update the correct
5067         area after removing them.
5068
5069 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5070
5071         * Datagrid.cs: Should not call base.OnPaintBackground
5072
5073 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5074
5075         * XplatUIX11.cs (GetMessage):
5076           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5077             window instead of client window
5078           - Now properly calculates NC_xBUTTONUP message coordinates
5079           - ScreenToMenu now properly calculates it's coordinates of whole 
5080             window, since menus are in the whole window, not in the client
5081             window
5082           - Added WholeToScreen coordinate translation method
5083
5084 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5085
5086         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5087           want to return a message, loop back to the beginning of the function
5088           and grab the next real message to process instead.
5089
5090 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5091
5092         * Splitter.cs: Properly set limits if no filler control is used
5093
5094 2005-10-19  Jackson Harper  <jackson@ximian.com>
5095
5096         * ColorDialog.cs: Don't show the help button if it is not enabled
5097         instead of disabling it (this is what MS does). Don't create the
5098         panel until the dialog is run, otherwise the vars (such as
5099         ShowHelp) are not set yet.
5100
5101 2005-10-19  Jackson Harper  <jackson@ximian.com>
5102
5103         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5104         are reduced when adding nodes.
5105         * TreeNode.cs:
5106         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5107         tree.
5108         
5109 2005-10-19  Jackson Harper  <jackson@ximian.com>
5110
5111         * FolderBrowserDialog.cs: End editing our treeview so the window
5112         actually gets refreshed.
5113
5114 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5115
5116         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5117           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5118           inside of WM_PAINT
5119
5120 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5121
5122         * MenuAPI.cs: Returns after Hidding window
5123         * XplatUIX11.cs: Added TODO found while debugging menu issues
5124
5125 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5126
5127         * XplatUIX11.cs: Do not re-map the whole window when it's size
5128           becomes non-zero unless it's supposed to be actually visible
5129
5130 2005-10-18  Jackson Harper  <jackson@ximian.com>
5131
5132         * TreeView.cs: We don't need to keep a count anymore.
5133         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5134         use the Grow method.
5135
5136 2005-10-18  Jackson Harper  <jackson@ximian.com>
5137
5138         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5139         implement it manually here.
5140
5141 2005-10-18  Jackson Harper  <jackson@ximian.com>
5142
5143         * ImageList.cs: Dont kill the list when the colour depth is
5144         changed, just change the colour depth of all the images.
5145         - Same goes for setting the image size. Just resize them all
5146         instead of killing the list softly.
5147
5148 2005-10-18  Jackson Harper  <jackson@ximian.com>
5149
5150         * Control.cs: Don't invalidate empty rectangles.
5151
5152 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5153
5154         * ListViewItem.cs:
5155           - Adds checked item to the Checked/Item lists (where empty before)
5156           - Do not add items to the Selected lists if they are already present
5157         * ListView.cs:
5158           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5159           - When deleting items make sure that we delete them for the Selected
5160           and Checked list also.
5161
5162 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5163
5164         * Label.cs: Dispose objects no longer used
5165         * ThemeWin32Classic.cs: Dispose objects no longer used
5166
5167 2005-10-18  Jackson Harper  <jackson@ximian.com>
5168
5169         * TabControl.cs: Don't refresh the whole control when the tabs are
5170         scrolled, we just need to refresh the tab area.
5171
5172 2005-10-17  Jackson Harper  <jackson@ximian.com>
5173
5174         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5175         after handle when we need it.
5176
5177 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5178
5179         * Control.cs: When the parent size changes, recalculate anchor 
5180           positions. Partial fix for #76462
5181
5182 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5183
5184         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5185           drawn. Fixes #76462
5186
5187 2005-10-17  Jackson Harper  <jackson@ximian.com>
5188
5189         * MonthCalendar.cs: Don't create the numeric up down until our
5190         handle is created. Otherwise our handle is created in the
5191         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5192         yet.
5193
5194 2005-10-17  Jackson Harper  <jackson@ximian.com>
5195
5196         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5197         correctly.
5198
5199 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5200         * TreeNode.cs : small logical fix (was using local var instead of field)
5201         
5202 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5203
5204         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5205
5206 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5207
5208         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5209
5210 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5211
5212         * Control.cs: 
5213           - Re-implemented anchoring code. My first version was really broken.
5214             This fixes bug #76033. Unlike the previous implementation we will
5215             no longer have round errors since all numbers are calculated from
5216             scratch every time. Removed various anchor-related obsolete vars.
5217           - InitLayout no longer causes layout event firing and layout to be 
5218             performed
5219
5220 2005-10-16  Jackson Harper  <jackson@ximian.com>
5221
5222         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5223         which was broken).
5224
5225 2005-10-16  Jackson Harper  <jackson@ximian.com>
5226
5227         * TabControl.cs: Remove debug code.
5228
5229 2005-10-16  Jackson Harper  <jackson@ximian.com>
5230
5231         * XEventQueue.cs: Increase the default queue size (very simple
5232         apps needed to grow the queue).
5233         * Hwnd.cs: No finalizer so we don't need to suppress
5234         finalization. Compute the invalid area manually so a new rectangle
5235         does not newto be created.
5236         * ScrollableControl.cs: Don't set any params (otherwise visibility
5237         isn't set correctly).
5238         * MdiChildContext.cs: New constructor takes the mdi parent so it
5239         doesn't have to be computed and avoids a crash on windows. Draw
5240         the window icon properly, and allow the text to be seen.
5241         * Form.cs: Use new MdiChildContext constructor. Make sure the
5242         child context isn't null in wndproc.
5243         * TabControl.cs: Don't set focus, this is muddling keyboard
5244         behavoir. Expand the tab rows when a window size increase will
5245         allow extra tabs to be seen. Don't allow tabs smaller than the
5246         width of a window to be scrolled out of view.
5247         * TreeNode.cs:
5248         * TreeView.cs: Use measure string to calculate a nodes width, the
5249         width is cached and only updated when the text or the font is
5250         changed. Don't check for expand/collapse clicks on the first level
5251         nodes if root lines are disabled.
5252         
5253 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5254
5255         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5256
5257 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5258
5259         * DataGridBoolColumn.cs: fixes warning
5260
5261 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5262
5263         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5264         to match more to match more precisely the MS Net behavior
5265
5266 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5267
5268         * Hwnd.cs: Added field to track if window is mapped
5269         * XplatUIX11.cs: 
5270           - Unmap windows if they become 0-size, re-map when 
5271             they are >0 again; fixes #76035
5272           - Re-set our error handler after initializing X11Desktop
5273             to override any error handlers Gtk or whatever was called
5274             may have set.
5275
5276 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5277
5278         * CheckedListBox.cs: Removed unused vars
5279         * ListView.cs: Fixed signatures
5280         * RichTextBox.cs: Removed unused vars
5281         * TextBoxBase.cs: Removed unused vars
5282         * XplatUIWin32.cs: Removed unused vars
5283         * XplatUIX11.cs: Removed unused vars
5284         * XplatUI.cs: Updated version and date to latest published
5285
5286 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5287
5288         * Cursor.cs: Added private .ctor to work around a bug in
5289           resourceset (Thanks to Geoff Norton for the help on this)
5290         * SplitterEventArgs.cs: Made fields accessible so we don't
5291           waste boatloads of objects and can reuse the same one
5292           in Splitter
5293         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5294           any captions and borders when generating screen coordinates
5295         * Splitter.cs: Reimplemented control, now fully complete, uses
5296           rubberband drawing, supports and obeys all properties, has
5297           proper cursors
5298
5299 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5300
5301         * Form.cs (Form): Setup default values for autoscale and
5302         autoscale_base_size;  Make these instance variables, not static
5303         variables. 
5304
5305         (OnLoad): on the first load, adjust the size of the form.
5306
5307 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5308
5309         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5310           width argument to DrawReversibleRectangle()
5311         * XplatUIWin32.cs, XplatUIX11.cs: 
5312           - Implemented width for DrawReversibleRectangle()
5313           - Added logic to DrawReversibleRectangle that recognizes a zero
5314             width or height and only draws a line in that situation
5315         
5316 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5317
5318         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5319         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5320         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5321           method (it uses our FosterParent window to get a graphics context)
5322
5323 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5324
5325         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5326           and SetWindowBackground methods
5327         * Control.cs:
5328           - Setting proper ControlStyles
5329           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5330             EraseWindowBackground, instead we draw the window background
5331             ourselves in PaintControlBackground. This behaviour is
5332             required to match MS, where, when OnPaintBackground is not
5333             called, the background is not drawn.
5334           - Removed unneeded Refresh() in set_Text
5335         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5336         * XplatUIX11.cs:
5337           - Created DeriveStyles method to translate from CreateParams to
5338             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5339             matches FormBorderStyle enum values)
5340           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5341             style calculations into single DeriveStyles method
5342           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5343             from redrawing the whole window on any resize or expose.
5344           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5345             all styles were applied to our whole/client window appropriately
5346           - Removed EraseWindowBackground() and SetWindowBackground() methods
5347           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5348             no longer clear/redraw the background through X
5349           - Removed handling of erase_pending bit, we have no use for it (or
5350             so it seems)
5351         * XplatUIOSX.cs:
5352           - Removed generation and handling of WM_ERASEBKGND message
5353           - Removed EraseWindowBackground() and SetWindowBackground() methods
5354           - Removed handling of hwnd.ErasePending flag
5355         * XplatUIWin32.cs:
5356           - Removed EraseWindowBackground() and SetWindowBackground() methods
5357           - We no longer call EraseWindowBackground on PaintEventStart, we 
5358             ignore the fErase flag, erasing is handled in Control in the
5359             background handler
5360         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5361           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5362           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5363           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5364           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5365           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5366           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5367
5368 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5369
5370         * PropertyGrids.cs: Get sub properties
5371         * PropertyGridView.cs: Fix drawing code
5372
5373 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5374
5375         * ListBox.cs: Fixes 76383
5376
5377 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5378
5379         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5380         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5381         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5382
5383
5384 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5385
5386         * ComboBox.cs: Fixes border drawing
5387
5388 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5389
5390         * MimeIcon.cs: Ignore errors if the file can not be read.
5391
5392 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5393
5394         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5395          - Fixed border calculations
5396          - Fixed horizontal scrolling in single column listboxes
5397          - Fixed drawing issues
5398
5399 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5400
5401         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5402           FormBorderStyle enum
5403         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5404           code to determine FormBorderStyles from CreateParams
5405         * Form.cs:
5406           - Fixed bug where we'd set the wrong window styles if we were
5407             not creating an MDI window
5408           - Added call to XplatUI.SetBorderStyle when form borders are set
5409         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5410         * Hwnd.cs:
5411           - Removed obsolete edge style
5412           - Switched from BorderStyle to FormBorderStyle
5413         
5414 2005-10-10  Jackson Harper  <jackson@ximian.com>
5415
5416         * Form.cs: Use the property to get the window handle instead of
5417         accessing it directly. Prevents a null reference exception.
5418
5419 2005-10-10  Jackson Harper  <jackson@ximian.com>
5420
5421         * TreeView.cs: Don't adjust the rect given to DrawString now that
5422         our libgdiplus draws correctly.
5423
5424 2005-10-08  Jackson Harper  <jackson@ximian.com>
5425
5426         * TreeView.cs: Don't try to find the clicked on node if there are
5427         no nodes in the tree.
5428
5429 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5430
5431         * RichTextBox.cs:
5432
5433           restore
5434
5435 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5436
5437         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5438           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5439           ErrorProvider.cs:
5440           Use ResPool for brushes and dispose System.Drawing objects that
5441           are not used anymore.
5442
5443 2005-10-07  Jackson Harper  <jackson@ximian.com>
5444
5445         * MdiChildContext.cs: Use the new borders instead of drawing them
5446         ourselves.
5447
5448 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5449
5450         * Calling UpdateBounds after changing the window's BorderStyle 
5451         since the style can change the ClientSize
5452
5453 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5454
5455         * Control.cs: Made PaintControlBackground virtual
5456         * Panel.cs: Overriding PaintControlBackground instead of using paint
5457           event; paint event method was interfering with 'real' users of the
5458           event.
5459
5460 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5461
5462         * ThemeWin32Classic.cs: remove border drawing since it is handled
5463         by the base control class now and was causing double border drawing.
5464
5465 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5466
5467         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5468           but it does seem to match MS behaviour. This fixes bug #75324
5469
5470 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5471
5472         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5473           somewhat hackish looking
5474
5475 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5476
5477         * TextBoxBase.cs:
5478           - We now accept Enter even if AcceptEnter is false, if the containing
5479             form does not have an AcceptButton configured (fixes bug #76355)
5480           - Calculations are now fixed to no longer use Width/Height, but
5481             ClientSize.Width/Height, since we now support borders (this was
5482             a result of fixing borders and therefore bug #76166)
5483           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5484             true (fixes bug #76354)
5485         
5486 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5487
5488         * Control.cs: 
5489           - Defaulting BorderStyle and setting it in XplatUI when our window 
5490             is created
5491           - Added enum check to InternalBorderStyle setter
5492         * XplatUIX11.cs: 
5493           - Added drawing of window borders
5494           - Now properly calculates WM decorations offset for toplevel 
5495             windows (fixes bug #74763)
5496         * XplatUIWin32.cs: 
5497           - Implemented BorderStyles for windows (we're letting win32 draw 
5498             the border for us)
5499           - Fixed the signature for SetWindowLong
5500         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5501           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5502           setting borders
5503         * UpDownBase.cs: Remove drawing of borders, this is handled by
5504           the driver, outside the client area
5505         * ListView.cs: Removed bogus border calculations. The control should
5506           be oblivious to borders, since those are not part of the client
5507           area. 
5508         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5509         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5510           drawing code
5511
5512 2005-10-06  Jackson Harper  <jackson@ximian.com>
5513
5514         * MdiChildContext.cs: Clear out the old virtual position remove
5515         all the unneeded calls to CreateGraphics.
5516
5517 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5518
5519         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5520
5521 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5522
5523         * Form.cs: 
5524           - Added loading and setting of our new default icon
5525           - Only set icon if window is already created
5526
5527 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5528
5529         * Label.cs:
5530           - Do not explicitly set the foreground and background colors, to
5531             allow inheriting from parents (fixes #76302)
5532           - Use Control's InternalBorderStyle property to deal with borders
5533
5534 2005-10-06  Jackson Harper  <jackson@ximian.com>
5535
5536         * MdiChildContext.cs: Use the new xplatui function to draw a
5537         reversible rect.
5538
5539 2005-10-06  Jackson Harper  <jackson@ximian.com>
5540
5541         * Form.cs: Add the parent before creating the child context cause
5542         we need the parent when setting up the child.
5543
5544 2005-10-06  Jackson Harper  <jackson@ximian.com>
5545
5546         * FolderBrowserDialog.cs: redo the tree population code so a
5547         second thread isn't used. Should be a lot faster and more stable
5548         now.
5549
5550 2005-10-05  Jackson Harper  <jackson@ximian.com>
5551
5552         * TreeView.cs: There are no expand/collapse boxes if the node has
5553         no children.
5554
5555 2005-10-05  Jackson Harper  <jackson@ximian.com>
5556
5557         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5558
5559 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5560
5561         * FileDialog.cs: Fix InitialDirectory
5562
5563 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5564
5565         * ComboBox.cs:
5566                 - Fixes changing between styles
5567                 - Fixes simple mode
5568                 - Fixes last item crashing when navigating with keyboard
5569
5570 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5571
5572         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5573
5574 2005-10-05  Jackson Harper  <jackson@ximian.com>
5575
5576         * TreeView.cs: If updating the root node do a full refresh.
5577         * TreeNode.cs: The root node should be expanded by default. Also
5578         added a utility prop to tell if we are the root node.
5579         * TreeNodeCollection.cs: Only refresh if the node we are being
5580         added to is expanded. Also added a comment on a potential
5581         optimization.
5582         
5583 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5584
5585         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5586           in dispose method. Fixes #76330
5587
5588 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5589
5590         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5591
5592                 - Implements vertical and horizontal scrolling using XplatUI
5593                 - Fixes keyboard navagation
5594                 - Fixes EnsureVisible
5595                 - Drawing fixes
5596                 - Handles and draws focus properly
5597
5598
5599 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5600
5601         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5602           Create handle. NET_2_0: Destroy handle when value is null.
5603
5604 2005-10-03  Jackson Harper  <jackson@ximian.com>
5605
5606         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5607         revert and a new patch to prevent the thumb from refreshing so
5608         much.
5609
5610 2005-10-02  Jackson Harper  <jackson@ximian.com>
5611
5612         * ScrollBar.cs: Don't update position if it hasn't actually
5613         changed. This occurs when you hold down the increment/decrement
5614         buttons and the thumb gets to the max/min.
5615
5616 2005-10-01  Jackson Harper  <jackson@ximian.com>
5617
5618         * Form.cs:
5619         * MdiChildContext.cs:
5620         * MdiClient.cs: Implement ActiveMdiChild in Form.
5621
5622 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5623
5624         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5625
5626 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5627
5628         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5629           be found
5630
5631 2005-09-30  Jackson Harper  <jackson@ximian.com>
5632
5633         * ListBox.cs: Don't do a full refresh unless some data has
5634         actually changed.
5635
5636 2005-09-30  Jackson Harper  <jackson@ximian.com>
5637
5638         * TreeView.cs: Make sure that the checkboxes size is factored in
5639         even when not visible.
5640
5641 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5642
5643         * FileDialog.cs: Fix Jordi's build break
5644
5645 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5646
5647         * FileDialog.cs: 
5648                 - Use standard the Windows colours for the combobox as espected
5649                 - Dispose objects that use resouces when no longer need them
5650
5651 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5652
5653         * X11DesktopColors.cs: Initial incomplete implementation
5654         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5655
5656 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5657
5658         * Theme.cs: 
5659           - Switched Theme color names to match the names defined in 
5660             System.Drawing.KnownColors. Life's hard enough, no need to make 
5661             it harder.
5662           - Added setters to all theme color properties so themes can set
5663             their color schemes. The setters also propagate the color changes
5664             to System.Drawing.KnownColors via reflection
5665         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5666           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5667           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5668           use the new, more logical theme color names
5669         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5670           post-NT colors
5671         * ThemeWin32Classic.cs:
5672           - Removed code to set the old classic Windows colors. Instead it
5673             now relies on the colors returned by System.Drawing.KnownColors
5674             which will be either modern static colors (Unix) or colors
5675             read from the user's configuration (Win32)
5676           - Updated to use the new, more logical theme color names
5677           - Switched DataGrid drawing code to use only Theme colors instead of
5678             a mix of System.Drawing.KnownColors and Theme colors
5679           - DrawFrameControl(): Removed code that fills the button area, the
5680             fill would overwrite any previous fill done by a control. This
5681             fixes bug #75338 
5682           - Added DrawReversibleRectangle() stub
5683         * ScrollableControl.cs: Set visible state to false when scrollbars
5684           are removed (pdn fix)
5685         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
5686           DrawReversibleRectangle() method to allow drawing primitive 
5687           'rubber bands'
5688         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
5689
5690 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5691
5692         * ImageList.cs: Add(Icon): Create handle.
5693
5694 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5695
5696         * ListView.cs:
5697         * ThemeWin32Classic.cs:
5698                 - Fixes detail mode
5699                 - Sets clippings
5700                 - Issues with drawing
5701
5702 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5703
5704         * ImageList.cs: Moved RecreateHandle back to ImageList as event
5705           source has to be the ImageList.
5706
5707 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5708
5709         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
5710
5711 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5712
5713         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
5714
5715 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5716
5717         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
5718
5719 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
5720         * GridItem.cs: Fixed TODOs
5721         * GridItemCollection.cs: Added ICollection interface
5722
5723 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
5724
5725         * ImageList.cs: Resize icons when needed.
5726
5727 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
5728
5729         * ListViewItem.cs
5730                 - Fixes GetBounds and returns on screen rects
5731         * ListView.cs:
5732                 - Fixes vertical and horzintal scrolling of items
5733         * ThemeWin32Classic.cs:
5734                 - Fixes drawing
5735                 
5736 2005-09-29  Raja R Harinath  <harinath@gmail.com>
5737
5738         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
5739
5740 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
5741
5742         * ImageList.cs: Added comments about handle creation. Moved Handle,
5743           HandleCreated and OnRecreateHandle implementations to ImageCollection.
5744           Handle is created in Add methods.
5745
5746 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5747          
5748         * DataGridDrawingLogic.cs: 
5749                 - Takes rows into account on Colum calculations
5750                 - Returns the column when clickig
5751         * DataGrid.cs:
5752                 - Fixes default HitTestInfo values
5753                 - Fixes HitTestInfo.ToString
5754                 - Fixes ResetBackColor          
5755         
5756 2005-09-28  Jackson Harper  <jackson@ximian.com>
5757
5758         * MdiChildContext.cs: Obey rules for fixed sized windows (no
5759         sizing or cursor changes). Also added some temp code to draw the
5760         titlebars text (Makes dev a little easier).
5761
5762 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5763
5764         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
5765
5766 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
5767          
5768         * ListBox.cs: Fixes bug 76253
5769
5770 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
5771
5772         * ImageList.cs: Added comments about the current implementation. Added
5773           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
5774           Format32bppArgb to preserve transparency and can use Graphics.FromImage
5775           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
5776           with Bitmap.LockBits for better performance. Revised the whole file to
5777           match MS.NET behaviour and provide better performance. Non-public
5778           interface members are calling public members even when they throw
5779           NotSupportedException for better maintainability. Moved ColorDepth,
5780           ImageSize, ImageStream and TransparentColor implementations to
5781           ImageCollection for better performance as these properties are not used
5782           by ImageList.
5783         * ImageListStreamer.cs: Added a new internal constructor that takes an
5784           ImageList.ImageCollection and serializes Images based on
5785           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
5786           match ImageList property name.
5787
5788 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
5789
5790         * ListBox.cs: Fixes IndexFromPoint for last item
5791
5792 2005-09-27  Jackson Harper  <jackson@ximian.com>
5793
5794         * Form.cs: Set the position of new mdi children correctly.
5795
5796 2005-09-27  Jackson Harper  <jackson@ximian.com>
5797
5798         * MdiClient.cs: New mdi children need to be added to the back of
5799         the controls collection so the zorder is set correctly. Also add a
5800         count of all the child windows that have been created.
5801
5802 2005-09-27  Jackson Harper  <jackson@ximian.com>
5803
5804         * Form.cs (CreateParams): Setup MDI forms correctly.
5805
5806 2005-09-27  Jackson Harper  <jackson@ximian.com>
5807
5808         * MdiChildContext.cs:
5809         * MonthCalendar.cs:
5810         * UpDownBase.cs:
5811         * ListBox.cs:
5812         * ListView.cs:
5813         * TextBoxBase.cs:
5814         * TreeView.cs:
5815         * ScrollableControl.cs:
5816         * ComboBox.cs: Add implicit controls using the new implict control
5817         functionality in ControlCollection. Also try to block multiple
5818         control add in a suspend/resume layout to save some cycles.
5819         
5820 2005-09-27  Jackson Harper  <jackson@ximian.com>
5821
5822         * Control.cs: Add functionality to the controls collection to add
5823         'implicit controls' these are controls that are created by the
5824         containing control but should not be exposed to the user. Such as
5825         scrollbars in the treeview.
5826         * Form.cs: The list var of the ControlsCollection is no longer
5827         available because of the potential of implicit controls getting
5828         ignored by someone accessing the list directly.
5829
5830 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
5831
5832         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
5833           loose it's parent. (Fixed bug introduced in r49103 when we added
5834           setting the child parent to null on Remove)
5835
5836 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
5837
5838         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
5839         * Splitter.cs: Added missing attributes for BorderStyle property.
5840         * TextBoxBase.cs: Marked Calculate* methods internal.
5841         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
5842         MS.NET.
5843
5844 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
5845          
5846         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
5847
5848 2005-09-25  Jackson Harper  <jackson@ximian.com>
5849
5850         * TreeView.cs: Update the node bounds correctly regardless of
5851         whether the node is visible.
5852
5853 2005-09-25  Jackson Harper  <jackson@ximian.com>
5854
5855         * ImageList.cs: Don't dispose the image after it is added to the
5856         image list. Only reformat images that need to be resized.
5857
5858 2005-09-25  Jackson Harper  <jackson@ximian.com>
5859
5860         * ImageList.cs: Don't set the format when changing the image.
5861
5862 2005-09-25  Jackson Harper  <jackson@ximian.com>
5863
5864         * TreeView.cs: We can't just assume the node has a font. Use the
5865         treeviews font if no node font is available.
5866
5867 2005-09-25  Jackson Harper  <jackson@ximian.com>
5868
5869         * TreeView.cs: Allow the scrollbars to be reset with negative
5870         values.
5871         - Don't add scrollbars to negative sized windows.
5872
5873 2005-09-23  Jackson Harper  <jackson@ximian.com>
5874
5875         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
5876         old Mono.Posix. Also remove some stray code that shouldn't have
5877         been committed.
5878
5879 2005-09-23  Jackson Harper  <jackson@ximian.com>
5880
5881         * TreeView.cs: Attempt at proper sizing of the horizontal
5882         scrollbar. Also don't resize the scrollbars unless they are
5883         visible.
5884
5885 2005-09-23  Jackson Harper  <jackson@ximian.com>
5886
5887         * TreeView.cs: We don't need to expand the invalid area when the
5888         selection changes, as this is all drawn in the node's bounding
5889         box. The area needs to be expanded (previous typo was contracting
5890         it) when the focus rect moves.
5891
5892 2005-09-23  Jackson Harper  <jackson@ximian.com>
5893
5894         * TreeView.cs: Display the selection box under the correct
5895         circumstances. We were rendering white text with no selection box
5896         before.
5897
5898 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
5899
5900         * TextControl.cs(Split): Now updates selection start/end if it points 
5901           into a line that's being split. Fixes a FIXME and bug #75258
5902
5903 2005-09-23  Jackson Harper  <jackson@ximian.com>
5904
5905         * Binding.cs:
5906         * ListControl.cs: Don't use the path when retrieving binding
5907         managers from the binding context. My bat sense tells me that the
5908         path is only used on insertion.
5909
5910 2005-09-22  Jackson Harper  <jackson@ximian.com>
5911
5912         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
5913
5914 2005-09-22  Jackson Harper  <jackson@ximian.com>
5915
5916         * Splitter.cs: There are special cursors used for splitting.
5917         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
5918
5919 2005-09-22  Jackson Harper  <jackson@ximian.com>
5920
5921         * Splitter.cs: Change the cursor appropriately when the splitter
5922         is moused over, so the user actually knows there is a splitter
5923         there.
5924
5925 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
5926
5927        * Label.cs : Fix ToString method to give same output as MS.NET
5928
5929 2005-09-22  Jackson Harper  <jackson@ximian.com>
5930
5931         * TreeView.cs: Create the scrollbars when the handle is created
5932         and add them right away, just make them invisble. Also account for
5933         the window being shrunk vertically to the point that the vert
5934         scrollbar needs to be added.
5935         - Remove some 0.5 adjustments to get around anti aliasing issues.
5936         
5937 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
5938          
5939         * MainMenu.cs: Fixes default value
5940         * MenuItem.cs: Fixes default value
5941
5942 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
5943
5944         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
5945
5946 2005-09-21  Jackson Harper  <jackson@ximian.com>
5947
5948         * Control.cs: Don't try to set the border style on the window if
5949         it hasn't been created. When the window is created the border
5950         style will be used.
5951
5952 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5953
5954         * Control.cs (Update): Don't call XplatUI if we don't have a
5955           window handle yet
5956
5957 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5958
5959         * ContainerControl.cs: Instead of throwing an exception, print
5960           a one-time warning about Validate not being implemented
5961         * XplatUIWin32.cs: Removed debug output
5962
5963 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
5964
5965         * Control.cs: Only set XplatUI background if we expect the windowing
5966           system to handle the background. This stops controls that draw their
5967           own background from flickering
5968
5969         * XplatUIX11.cs: Support custom visuals and colormaps for window 
5970           creation. This allows, amongst other things, using MWF X11 windows 
5971           with OpenGL.
5972
5973 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
5974
5975         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
5976           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
5977           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
5978           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
5979           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
5980           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
5981           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
5982           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
5983           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
5984           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
5985           GridColumnStylesCollection.cs, 
5986           IDataGridColumnStyleEditingNotificationService.cs,
5987           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
5988           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
5989           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
5990           TreeNodeCollection.cs, AmbientProperties.cs, 
5991           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
5992           DataObject.cs, ErrorProvider.cs, Splitter.cs,
5993           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
5994           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
5995           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
5996           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
5997           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
5998           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
5999           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6000           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6001           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6002           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6003           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6004           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6005           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6006           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6007           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6008           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6009           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6010           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6011           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6012           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6013           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6014           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6015           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6016           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6017           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6018           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6019           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6020           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6021           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6022           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6023           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6024           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6025           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6026           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6027           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6028
6029 2005-09-21  Jackson Harper  <jackson@ximian.com>
6030
6031         * TreeNode.cs: Call Before/After Expand not Collapse when
6032         expanding.
6033
6034 2005-09-20  Jackson Harper  <jackson@ximian.com>
6035         
6036         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6037
6038 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6039          
6040         * ListViewItem.cs:
6041                 - Fixes bug 76120
6042                 - Fixes proper storing of subitems
6043                 - Fixes not updated items
6044
6045 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6046
6047         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6048           things if our window handle isn't created yet. Also disabled 
6049           debug for TextBoxBase
6050
6051 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6052
6053         * MenuAPI.cs: Remove filtering of events to allow menu usage
6054
6055 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6056
6057         * Cursor.cs: Allow null to be passed to Cursor.Current.
6058
6059 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6060
6061         * ThemeWin32Classic.cs:
6062           - Change some private methods/fields to protected virtual so that 
6063             they can be accessed and overriden in derived classes
6064           - First refactoring of some methods. Derived themes now don't 
6065             need to duplicate the complete code from ThemeWin32Classic
6066         * ThemeNice.cs:
6067           - Added nice StatusBar
6068           - Derive from ThemeWin32Classic and not Theme
6069           - Removed duplicate ThemeWin32Classic code
6070
6071 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6072
6073         * Control.cs (ControlCollection.Add): If the value null is passed
6074         the control is ignored. 
6075
6076         Optimize this loop.
6077
6078 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6079
6080         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6081           PostQuitMessage state.
6082         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6083
6084 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6085
6086         * Application.cs: Our constructor will never get called, move 
6087           initialization to fields; fixes bug #75933
6088
6089 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6090
6091         * FileDialog.cs :
6092                 - Allow files to be selected properly using file name
6093                 combo box.
6094                 - Add ability to change diretory (absolute / relative)
6095                 using file name combo box.
6096
6097 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6098          
6099         * ListBox.cs: 
6100                 - Fixes Multicolumn listboxes item wrong calculations
6101                 - Allows to click when only one item is in the listbox
6102                 - Fixes crash when no items using keyboard navigation
6103
6104 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6105
6106         * ComboBox.cs: Reverted almost everything from the latest patch which
6107           broke ComboBox
6108
6109 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6110         
6111         * ToolTip.cs:
6112                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6113         * ComboBox.cs:
6114                 - When DropDownStyle is Simple, it does not show scrollbar 
6115                 to the last item of the list.
6116                 - When DropDownStyle is Simple, it crashed when the list was 
6117                 scrolled down with the down cursor key.
6118                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6119                 selected item was not shown.
6120                 - The position of the selected item was not preserved when 
6121                 the next dropdown happened.
6122         * ThemeWin32Classic.cs:
6123                 - Items were wrapped at the right end.
6124         * CheckedListBox.cs:
6125                 - Fixed Add method
6126         * ListBox.cs:
6127                 - Items should be fully shown.
6128                 - When resizing and vertical scrollbar disappeared, the item 
6129                 of index 0 should be on the top of the list.
6130                 - GetItemRectangle should consider the size of ver. scrollbar
6131         * StatusBar.cs:
6132                 - SizingGrip area should not be allocated when it is not 
6133                 displayed.
6134                 - Now it reflects MinWidth of the containing panel and 
6135                 fixed a crash that happens when its width becomes so small.
6136
6137 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6138
6139         * CheckedListBox.cs: Fixes bug 76028
6140         * ListBox.cs: Fixes bug 76028
6141
6142 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6143
6144         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6145         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6146
6147 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6148
6149         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6150
6151 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6152
6153         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6154
6155 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6156
6157         * IRootGridEntry.cs: Added
6158         * PropertyGridCommands.cs: Added
6159         * PropertiesTab.cs: Added missing methods and property
6160         * PropertyGridView.cs: Made class internal
6161         * PropertyGridTextBox.cs: Made class internal
6162
6163 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6164
6165         * MimeIcon.cs: Try to check some other environment variables
6166           if "DESKTOP_SESSION" returns "default"
6167
6168 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6169
6170         * ThemeNice.cs: Corrected background colors (e.g. menus)
6171         * ColorDialog.cs: Use correct background colors for controls
6172
6173 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6174
6175         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6176
6177 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6178
6179         * RichTextBox.cs: Added initial implementation
6180         * lang.cs: Removed. Was accidentally checked in long time ago
6181         * TODO: Removed. Contents were obsolete
6182
6183 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6184                                                                                 
6185         * PropertiesTab.cs : Added
6186
6187 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6188                                                                                 
6189         * PropertyGrid.cs : Update
6190         * PropertyGridView.cs : Update
6191         * System.Windows.Forms.resx : Added images and strings
6192
6193 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6194
6195         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6196  
6197 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6198
6199         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6200           a busy loop right after the Ungrab the X11 display is otherwise 
6201           blocked
6202
6203 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6204
6205         * ThemeWin32Classic.cs: Optimise the use of clipping
6206
6207 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6208
6209         * DataGrid.cs: fixes recursion bug
6210
6211 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6212
6213         * ThemeNice.cs: 
6214           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6215           - Cleanup
6216
6217 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6218
6219         * ThemeNice.cs: Draw nice ProgressBars
6220
6221 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6222
6223         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6224
6225         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6226         bug finder.
6227
6228 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6229
6230         * ThemeNice.cs:
6231           - Added nicer menu drawing
6232           - Updated DrawTab
6233           - some refactoring
6234
6235 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6236
6237         * CreateParams.cs (ToString): Made output match MS
6238         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6239             handle is already created (to avoid forcing window creation)
6240         * XplatUIX11.cs: Set window text to caption after creating window,
6241           in case Text was set before window was created
6242         * Form.cs: Use this.Text instead of a static string as caption
6243
6244 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6245
6246         * NotifyIcon.cs: Don't set the window to visible; this screws
6247           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6248           OnPaint without a bitmap)
6249         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6250           happen very often anyway; we could add the check to the WM_PAINT 
6251           event generation code
6252
6253 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6254
6255         * NotifyIcon.cs: Fill the icon area with a background color, to 
6256           avoid 'residue' when transparent icons are drawn
6257         * XplatUIX11.cs:
6258           - Handle whole_window == client_window when destroying windows
6259           - SystrayAdd(): Set client_window to whole_window value to
6260             get mouse and other events passed to NotifyIcon
6261
6262 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6263
6264         * Form.cs: Set proper default for Opacity property
6265         * NotifyIcon.cs:
6266           - ShowSystray(): Don't bother creating telling the OS
6267             about the systray item if no icon is provided
6268           - Now handles WM_NCPAINT message to deal with whole/client window
6269             split
6270           - Create window as visible to not get caught by Expose optimization
6271         * Hwnd.cs: Removed debug message
6272         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6273           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6274             PaintEventStart/End to use new client argument
6275         * TextBoxBase.cs:
6276           - Commented out debug messages
6277           - Switched PaintEventStart/End to use new client argument
6278         * XplatUI.cs: Added client window bool to PaintEventStart()/
6279           PaintEventEnd() calls, to support drawing in non-client areas
6280         * XplatUIDriver.cs: 
6281           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6282             calls, to support drawing in non-client areas
6283           - Added conditional compile to allow using MWF BeginInvoke 
6284             on MS runtime
6285         * XplatUIX11.cs:
6286           - Added some conditional debug output
6287           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6288             whole/client window split
6289           - Implemented handling of client argument to PaintEventStart()/End()
6290         * Control.cs:
6291           - Throw exception if BeginInvoke() is called and the window handle
6292             or one of the window's parent handles is not created
6293           - Added conditional compile to allow using MWF BeginInvoke on
6294             MS runtime
6295           - get_Parent(): Only sets parent if handle is created. This avoids
6296             forcing window handle creation when parent is set.
6297           - Now fires Layout and Parent changed events in proper order
6298           - Switched to use Handle instead of window.Handle for Z-Order setting,
6299             the get_Parent() patch above causes us to possibly get null for 'window'
6300           - Implemented handling of client argument to PaintEventStart()/End()
6301           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6302             default handling)
6303           - Now sends a Refresh() to all child windows when Refresh() is called
6304
6305 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6306
6307         * Form.cs: Added (non-functional) Opacity property
6308         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6309
6310 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6311         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6312           use export MONO_THEME=nice to activate it.
6313           Currently supported controls:
6314           - Button
6315           - ComboBox
6316           - ScrollBar
6317           - TabControl (TabAlignment.Top only, other will follow)
6318         * ThemeEngine.cs: Add theme nice
6319         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6320           if enabled
6321
6322 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6323
6324         * Splitter.cs: Resize docked control and its neighbor.
6325
6326 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6327         -- Making Windows with Menus layout correctly --
6328         * Form.cs : The first leg of the fix
6329                 Menu setter - adjust Client Size as needed to make space for the menu
6330                 SetClientSizeCore - doesn't call base version to be able to pass the 
6331                         menu handle to XplatUI.CalculateWindowRect
6332         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6333         * XplatUIX11.cs: The critical second leg of the fix
6334                 GetWindowPos needs to use a recalculated client_rect
6335                 so that resizing the window doesn't break layout of child controls. 
6336                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6337                 Lots of \t\n killed
6338
6339 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6340
6341         * Label.cs: Now properly recalculates width and height on Font and Text
6342           changes if AutoSize is set
6343
6344 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6345         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6346
6347 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6348
6349         * ImageList.cs: Makes ToString method compatible with MS
6350
6351 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6352
6353         * MenuAPI.cs: fixes bug 75716
6354
6355 2005-08-11 Umadevi S <sumadevi@novell.com>
6356         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6357
6358 2005-08-11 Umadevi S <sumadevi@novell.com>
6359         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6360
6361 2005-08-10  Umadevi S <sumadevi@novell.com>
6362         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6363
6364 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6365
6366         * Menu.cs: fixes bug 75700
6367         * MenuAPI.cs: fixes navigation issues
6368
6369 2005-08-09  Umadevi S <sumadevi@novell.com>
6370         * CheckedListBox.cs - simple fix for GetItemChecked.
6371
6372 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6373
6374         * ComboBox.cs: Serveral fixes
6375         * ListBox.cs: Serveral fixes
6376
6377 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6378
6379         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6380         * ListBox.cs: Fixes FindString methods
6381
6382 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6383
6384         * DataGrid.cs: fixes bugs exposed by new tests
6385
6386 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6387
6388         * Mime.cs: Compile Mono assembly references only if compiling
6389           with Mono (Allows to build with VS.Net again)
6390
6391 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6392
6393         * Control.cs (PaintControlBackground): Draw background image
6394         corrrectly.
6395         (CheckForIllegalCrossThreadCalls): Stubbed.
6396         
6397         * Form.cs (OnCreateControl): Center when should be centered.
6398         
6399         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6400
6401 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6402
6403         * Binding.cs: Binding to properties should be case unsensitive
6404
6405 2005-07-18 vlindos@nucleusys.com
6406
6407         * DataGrid.cs: fixes setmember order
6408
6409 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6410
6411         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6412         * FileDialog.cs: FileDialog is now resizable and uses the new
6413           MimeIconEngine
6414
6415 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6416
6417         * DataGridTextBoxColumn.cs: default value
6418         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6419         * GridTableStylesCollection.cs: fixes checking MappingName
6420         * DataGridDrawingLogic.cs: fixes drawing logic issues
6421         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6422         * DataGrid.cs: fixes    
6423
6424 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6425
6426         * MimeGenerated.cs: Use case sensitive comparer for
6427           NameValueCollections
6428
6429 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6430
6431         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6432         * ThemeWin32Classic.cs: bug fixes, code refactoring
6433         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6434         * DataGrid.cs: bug fixes, code refactoring
6435         * DataGridTextBox.cs: bug fixes, code refactoring
6436         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6437         * Theme.cs:  bug fixes, code refactoring
6438
6439 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6440
6441         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6442           and other text box usage
6443
6444 2005-07-01  Jackson Harper  <jackson@ximian.com>
6445
6446         * TabControl.cs: Make sure the bottom of the tab covers the pages
6447         border.
6448
6449 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6450
6451         * Form.cs (ShowDialog): Assign owner of the dialog
6452         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6453           might have been moved to a tag with different height
6454
6455 2005-06-30  Jackson Harper  <jackson@ximian.com>
6456
6457         * Form.cs: Don't create an infinite loop when setting focus
6458         * MenuItem.cs: Don't dirty the parents if we don't have any
6459
6460 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6461
6462         * LibSupport.cs: Rename
6463
6464 2005-06-29  Peter Bartok  <pbartok@novell.com>
6465
6466         * TextBoxBase.cs: Re-align caret after deleting a character
6467         * TextControl.cs:
6468           - DeleteChars(): Ensure that tag covers the provided position
6469           - StreamLine(): Drop reference for dropped tag
6470
6471 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6472
6473         * TextControl.cs: 
6474           - Selections now work properly, anchoring at the initial location
6475             and properly extending in either direction (SetSelectionToCaret(),
6476             SetSelectionStart() and SetSelectionEnd())
6477           - No longer redraws the whole control on selection change, now
6478             calculates delta between previous and new selection and only
6479             invalidates/redraws that area
6480           - Fixed FindPos() math off-by-one errors
6481           - Changed DeleteChars() to verify the provided tag covers the
6482             provided position, selections may have a tag that doesn't cover
6483             the position if the selection is at a tag border
6484           - Fixed off-by-one errors in DeleteChars()
6485           - Added missing streamlining check in DeleteChars() to remove
6486             zero-length tags
6487           - Implemented Invalidate() method, now properly calculates exposures
6488             between two given lines/positions
6489           - Implemented SetSelection()
6490           - Obsoleted and removed FixupSelection()
6491           - Improved RecalculateDocument() logic, removing code duplication
6492
6493 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6494
6495         * LibSupport.cs: changes to match different input/output arguments.
6496
6497 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6498
6499         * LibSupport.cs: added libsupport.so init routine.
6500
6501 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6502         
6503         * ControlBindingsCollection.cs
6504                 - Throws an exception on null datasource when adding
6505                 - Checks for duplicated bindings when adding
6506
6507 2005-06-28  Jackson Harper  <jackson@ximian.com>
6508
6509         * TreeView.cs (OnKeyDown): Support left and right properly
6510         (navigates as well as expanding and collapsing.
6511         - Add support for Multiply, this expands all the selected nodes
6512         children.
6513         - Fix some tabbing.
6514
6515 2005-06-28  Jackson Harper  <jackson@ximian.com>
6516
6517         * TreeView.cs: Implement keyboard navigation, currently supports,
6518         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6519         support for toggling checkboxes with the space bar.
6520
6521 2005-06-28  Jackson Harper  <jackson@ximian.com>
6522
6523         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6524         tree.
6525
6526 2005-06-28  Jackson Harper  <jackson@ximian.com>
6527
6528         * TreeView.cs: Add missing event.
6529
6530 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6531
6532         * TextControl.cs:
6533           - Made line ending size configurable (now allows for counting 
6534             lineendings as \n or \r\n)
6535           - Added margin to viewport to keep caret visible on right side
6536           - Fixed translation routines for line/pos to documentpos to consider
6537             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6538           - Fixed some line-endings to be unix style
6539           - Fixed Document.FormatText to perform it's calculations 1-based
6540           - Added descriptions for a few methods that might otherwise get 
6541             used wrong
6542           - Added NOTE section with some basic conventions to remember at 
6543             the top of the file
6544           - Major fixup for RichTextBox selection drawing:
6545             * Fixed crashes when multiple tags on a single line were selected
6546             * fixed selection box drawing not overlaying text
6547             * fixed bogus offset calculation for tags not starting at index 1
6548             * Switched behaviour from using multiple Substrings of a 
6549               StringBuilder.ToString() to using multiple 
6550               StringBuilder.ToString(start, length) statements, hoping this is
6551               faster (kept original version commented out in the code, in case
6552               original version was faster)
6553         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6554           alignment != Left
6555         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6556           call it as well
6557
6558 2005-06-27  Jackson Harper  <jackson@ximian.com>
6559
6560         * TabControl.cs: Move to the left and right with the arrow
6561         keys. These keys don't cycle beyond first and last like
6562         tab. Refresh all the tabs when scrolling them to the left or
6563         right.
6564
6565 2005-06-27  Jackson Harper  <jackson@ximian.com>
6566
6567         * TabControl.cs:
6568           - ToString: Added method
6569           - CreateParams: Remove TODO and comment
6570           - OnKeyDown: Cycle through bounds properly.
6571           - SelectedIndex: Scroll to the right or left if we need to
6572           display the newly selected tab.
6573
6574 2005-06-23  Jackson Harper  <jackson@ximian.com>
6575
6576         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6577         set.
6578
6579 2005-06-23  Jackson Harper  <jackson@ximian.com>
6580
6581         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6582         CTRL-SHIFT-TAB, and HOME, END are there any others?
6583
6584 2005-06-23  Jackson Harper  <jackson@ximian.com>
6585
6586         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6587
6588 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6589         
6590         * DataGridTextBoxColumn.cs: fixes and enhancements
6591         * ThemeWin32Classic.cs: fixes and enhancements
6592         * DataGridBoolColumn.cs:  fixes and enhancements
6593         * DataGridDrawingLogic.cs:  fixes and enhancements
6594         * CurrencyManager.cs: fixes and enhancements
6595         * DataGrid.cs: fixes and enhancements
6596         * DataGridColumnStyle.cs:  fixes and enhancements
6597
6598 2005-06-22  Jackson Harper  <jackson@ximian.com>
6599
6600         * TabControl.cs: Add some missing methods that just call into the
6601         base. Make the TabPageCollection's IList interface behave in the
6602         same manner as the MS implementation.
6603
6604 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6605
6606         * TextControl.cs: Added sanity check
6607         * TextBoxBase.cs: 
6608           - Fixed wrapping behaviour, don't set wrap on single line controls
6609             (this fixes the breakage of colordialog introduced in an earlier
6610              checkin)
6611           - Added rudimentary support for autoscrolling right-aligned controls
6612             (still needs fixing, also, center alignment scroll is missing)
6613
6614 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6615         
6616         * ScrollBar.cs: Fixes thumbpos on Maximum values
6617
6618 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6619         
6620         * PropertyGridView.cs: Pass context information to UITypeEditors 
6621
6622 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6623
6624         * TextBoxBase.cs:
6625           - Now calling PositionCaret with absolute space coordinates
6626           - Enabled vertical scrolling
6627           - Better tracking of scrollbar changes, tied into WidthChange
6628             event
6629           - Improved cursor tracking
6630           - Removed debug output
6631         * TextControl.cs:
6632           - PositionCaret coordinates are now works in absolute space, not 
6633             the canvas
6634           - Improved tracking of document size
6635           - Added events for width and height changes
6636
6637 2005-06-21  Peter Bartok  <pbartok@novell.com>
6638
6639         * Form.cs: Set focus to active control when form is activated
6640         * TextControl.cs: 
6641           - Added word-wrap functionality to RecalculateLine() 
6642           - Added some short function descriptions for VS.Net to aid in
6643             writing dependent controls
6644           - Added Caret property, returning the current coords of the caret
6645           - Added ViewPortWidth and ViewPortHeight properties
6646           - Added Wrap property
6647           - Added CaretMoved event
6648           - Removed some old debug code
6649           - Split() can now create soft splits
6650           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6651           - Added method to format existing text
6652           - Fixed size/alignment calculations to use viewport
6653           - RecalculateDocument now can handle changing line-numbers while
6654             calculating lines
6655
6656         * TextBox.cs:
6657           - Added some wrap logic, we don't wrap if alignment is not left
6658           - Added casts for scrollbar var, base class switched types to
6659             also support RichTextBoxA
6660           - Implemented handling of scrollbar visibility flags
6661
6662         * TextBoxBase.cs:
6663           - Switched scrollbars type to RichTextBoxScrollBars to support
6664             RichTextBox
6665           - Added tracking of canvas width/height
6666           - Switched scrollbars to be not selectable (to keep focus on text)
6667           - Added central CalculateDocument() method to handle all redraw
6668             requirements
6669           - Added ReadOnly support
6670           - Added WordWrap support
6671           - Fixed handling of Enter key (we now treat it as a DialogKey)
6672           - Fixed caret positioning when h or v scroll is not zero
6673           - Fixed placing/generation of vertical scrollbar
6674           - Added CalculateScrollBars() method to allow updating scrollbar
6675             limits and visibility
6676           - Fixed handling of horizontal scroll
6677           - Added handling of vertical scroll
6678           - Implemented auto-'jump' when caret moves to close to a left or
6679             right border and there is text to be scrolled into view (currently
6680             there's the potential for a stack overflow, until a bug in
6681             scrollbar is fixed)
6682
6683 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
6684         
6685         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
6686
6687 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
6688
6689         * Mime.cs:
6690         - added inodes.
6691         - return application/x-zerosize for files with size zero
6692           (if no extension pattern matches).
6693         - check matches collection for strings too.
6694         - return only the first mime type if the name value
6695           collection has more than one mime type.
6696
6697 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
6698         
6699         * PropertyGrid.cs: Cleaned up some TODOs
6700         * PropertyGridView.cs: Added support for UITypeEditors
6701
6702 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6703         
6704         * DataGrid.cs: clears cached value
6705
6706 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
6707
6708         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
6709         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
6710         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
6711         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
6712         
6713 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
6714
6715         * ThemeWin32Classic.cs: fixes colour
6716
6717 2005-06-15  Peter Bartok  <pbartok@novell.com>
6718
6719         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
6720         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
6721         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
6722         * Control.cs: Added some MWFCategory and MWFDescription attributes
6723         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
6724
6725 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
6726
6727         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
6728         usage
6729
6730 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
6731
6732         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
6733         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
6734         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
6735         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
6736         * DataGrid.cs: default datagrid settings for Default Styles, fixes
6737         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
6738
6739 2005-06-13  Jackson Harper  <jackson@ximian.com>
6740
6741         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
6742         isn't printed when the user enables dropping. (X11 does accept
6743         drops).
6744         
6745 2005-06-13  Jackson Harper  <jackson@ximian.com>
6746
6747         * TreeView.cs: Remove some TODOS.
6748
6749 2005-06-13  Jackson Harper  <jackson@ximian.com>
6750
6751         * Form.cs: Hook into the mdi framework.
6752         * MdiClient.cs: Use the base control collections add method so
6753         parents get setup correctly. Set the default back colour and dock
6754         style.
6755         * MdiChildContext.cs: New class, this bad actor handles an
6756         instance of an MDI window. Right now there is only basic
6757         support. You can drag, close, and resize windows. Minimize and
6758         Maximize are partially implemented.
6759
6760 2005-06-13  Jackson Harper  <jackson@ximian.com>
6761
6762         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
6763         freaky when both vals are negative. NOTE: There are probably other
6764         places in XplatUIX11 that this needs to be done.
6765
6766 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
6767
6768         * DataGrid.cs: implement missing methods, move KeyboardNavigation
6769         * DataGridColumnStyle.cs: fixes signature
6770
6771 2005-06-12  Jackson Harper  <jackson@ximian.com>
6772
6773         * XplatUIX11.cs: Use sizing cursors similar to the ones on
6774         windows.
6775
6776 2005-06-11  Jackson Harper  <jackson@ximian.com>
6777
6778         * StatusBarPanel.cs: Signature cleanups. Implement
6779         BeginInit/EndInit.
6780
6781 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
6782
6783         * DataGridTextBoxColumn.cs: Honors aligment
6784         * GridColumnStylesCollection.cs: Contains is case unsensitive
6785         * GridTableStylesCollection.cs: several fixes
6786         * DataGridTableStyle.cs: default column creation
6787         * DataGridDrawingLogic.cs: fixes
6788         * CurrencyManager.cs: ListName property
6789         * DataGrid.cs: multiple styles support
6790         * DataGridColumnStyle.cs: fixes
6791         
6792
6793 2005-06-10  Peter Bartok  <pbartok@novell.com>
6794
6795         * Control.cs(Select): Moved SetFocus call to avoid potential
6796           loops if controls change the active control when getting focus
6797         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
6798           the up/down buttons
6799
6800 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
6801
6802         * ImageListConverter.cs: Implemented
6803
6804 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6805
6806         * MonthCalendar.cs: Wired in NumericUpDown control for year
6807
6808 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
6809
6810         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
6811           DoubleClick events, since they are not meant to be fired.
6812
6813 2005-06-09  Peter Bartok  <pbartok@novell.com>
6814
6815         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
6816           Jonathan's standalone controls into MWF, implemented missing
6817           events, attributes and methods; added xxxAccessible classes
6818         * AccessibleObject.cs: Made fields internal so other classes
6819           can change them if needed
6820
6821 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
6822
6823         * UpDownBase.cs: Complete implementation
6824         * NumericUpDown.cs: Complete implementation
6825         * DomainUpDown.cs: Complete implementation
6826
6827 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
6828
6829         * DataGridTextBoxColumn.cs: drawing fixes
6830         * DataGridCell.cs: fixes ToString method to match MSNet
6831         * DataGridTableStyle.cs: fixes
6832         * DataGridBoolColumn.cs: fixes, drawing
6833         * DataGridDrawingLogic.cs: fixes, new methods
6834         * DataGridTextBox.cs: Keyboard and fixes
6835         * DataGrid.cs:
6836                 - Keyboard navigation
6837                 - Scrolling fixes
6838                 - Row selection (single, multiple, deletion, etc)
6839                 - Lots of fixes
6840         
6841 2005-06-07  Jackson Harper  <jackson@ximian.com>
6842
6843         * ThemeWin32Classic.cs: Clear the background area when drawing
6844         buttons.
6845
6846 2005-06-06  Peter Bartok  <pbartok@novell.com>
6847
6848         * ImageListStreamer.cs: Fixed signature for GetData
6849         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
6850         * ComboBox.cs:
6851           - Added missing ChildAccessibleObject class
6852           - Added missing OnXXXFocus overrides, switched to using those
6853             instead of the event handler
6854         * Control.cs:
6855           - Added Parent property for ControlAccessibleObject
6856           - Fixed signatures
6857           - Fixed attributes
6858           - Added ResetBindings()
6859         * ListBindingConverter.cs: Implemented some methods
6860         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
6861         * ImageList.cs: Implemented basic handle scheme, removed TODOs
6862         * ContainerControl.cs: Fixed signature, now subscribing to the
6863           ControlRemoved event instead of overriding the handler, LAMESPEC
6864         * CurrencyManager.cs: Added missing attribute
6865         * MonthCalendar.cs: Added missing properties
6866
6867 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6868
6869         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
6870         
6871 2005-06-06  Gaurav Vaish and Ankit Jain
6872
6873         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
6874         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
6875         
6876 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
6877
6878         * Control.cs: fixes CreateParams Width / Height.
6879
6880 2005-06-05  Peter Bartok  <pbartok@novell.com>
6881
6882         * Win32DnD.cs: Removed compilation warnings
6883
6884 2005-06-05  Peter Bartok  <pbartok@novell.com>
6885
6886         * Control.cs (CreateParams): Since we don't know if one of the
6887           properties we use is overridden, lets make sure if we fail accessing
6888           we continue with a backup plan
6889
6890 2005-06-05  Peter Bartok  <pbartok@novell.com>
6891
6892         * Win32DnD.cs:
6893           - Removed debug output
6894           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
6895             struct
6896           - Plugged resource leak
6897         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
6898           MS size
6899
6900 2005-06-05  Peter Bartok  <pbartok@novell.com>
6901
6902         * XplatUIWin32.cs: Removed DnD code
6903         * Win32DnD.cs: Implemented drop source and drop target functionality
6904
6905 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6906
6907         * UpDownBase.cs: remove duplicate addition of event, enable some code
6908         that was commented out.
6909         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
6910         Validate input when a key is pressed. It works fine now for every
6911         combination of Hexadecimal. Only missing some drawing love when sharing
6912         space with other controls.
6913
6914 2005-06-04  Peter Bartok  <pbartok@novell.com>
6915
6916         * Control.cs:
6917           - We need to pass a window for DragDrop, so enable callback events
6918           - Added DnD callback events when being a DragSource
6919         * XplatUI.cs (StartDrag): Added window handle argument
6920         * XplatUIDriver.cs (StartDrag): Added window handle argument
6921         * QueryContinueDragEventArgs: Made fields internally accessible so
6922           drivers can set them
6923         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
6924           can set them
6925
6926 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
6927
6928         * DataGridTextBoxColumn.cs: column text editing
6929         * DataGridTableStyle.cs: Respect columns styles created by the user
6930         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
6931         * DataGridBoolColumn.cs: bool column editing
6932         * DataGrid.cs: fixes to scrolling, properties, etc
6933         * DataGridTextBox.cs: handle keyboard
6934         * DataGridColumnStyle.cs: fixes
6935
6936 2005-06-02  Jackson Harper  <jackson@ximian.com>
6937
6938         * ImageListStreamer.cs: Somewhat broken implementation of
6939         GetObjectData. The RLE needs some work to match MS properly.
6940
6941 2005-06-02  Jackson Harper  <jackson@ximian.com>
6942
6943         * X11Dnd.cs: Attempting to keep at least one file in MWF
6944         monostyled.
6945
6946 2005-06-02  Peter Bartok  <pbartok@novell.com>
6947
6948         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
6949           that way
6950
6951 2005-06-02  Peter Bartok  <pbartok@novell.com>
6952
6953         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
6954         * XplatUI.cs: Added DoDragDrop() method
6955         * XplatUIDriver.cs: Added DoDragDrop() method
6956
6957 2005-06-02  Jackson Harper  <jackson@ximian.com>
6958
6959         * Splitter.cs: Implement BorderStyle.
6960
6961 2005-06-02  Jackson Harper  <jackson@ximian.com>
6962
6963         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
6964         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
6965         X11 using XDND.
6966
6967 2005-06-02  Peter Bartok  <pbartok@novell.com>
6968
6969         * DataObject.cs:
6970           - Added Data setter
6971           - Fixed broken insertion code for SetData, now also
6972             overwrites any existing entry of the same format name
6973         * Hwnd.cs: Added list of pointers that automatically gets
6974           freed when the window is disposed
6975         * XplatUI.cs: Call driver initialization method when loading
6976           a driver
6977         * Control.cs:
6978           - OnDragLeave takes EventArgs, not DragEventArgs
6979           - Added setting of WS_EX_ACCEPTFILES style when dropping is
6980             supported
6981           - Forces style update when drop state changes
6982         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
6983           not perfect since we cannot (yet) call the IDataObject.GetData()
6984           method, we keep getting 0x80004005 error, dunno why)
6985
6986 2005-06-02  Peter Bartok  <pbartok@novell.com>
6987
6988         * DragEventArgs.cs: Make fields internal so we can cache the
6989           object and re-set the fields from XplatUI
6990
6991 2005-06-02  Jackson Harper  <jackson@ximian.com>
6992
6993         * Control.cs: Add some internal methods so the DnD subsystem can
6994         raise DnD events. Also call into the driver when AllowDrop is set.
6995         * XplatUI.cs:
6996         * XplatUIDriver.cs: New method for setting whether or not a window
6997         is allowed to accept drag and drop messages.
6998                 
6999 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7000         
7001         * ScrollBar.cs: Make sure that values sent in Scroll events
7002         are always between Maximum and Minimum.
7003
7004 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7005
7006         * Menu.cs: Call MenuChanged when menuitem visibility has been
7007         changed.
7008         * MenuItem.cs: Rebuild menu when item is (not) visible.
7009         * MainMenu.cs: MainMenu has special MenuChanged.
7010         * Theme.cs: Caption and FrameBorderSize are not fixed.
7011         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7012         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7013         * XplatUIX11.cs,
7014         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7015         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7016
7017 2005-05-30  Jackson Harper  <jackson@ximian.com>
7018
7019         * DataFormat.cs: We can't statically initialize this stuff because
7020         it calls into the xplatui and could create a loop. So we lazy init
7021         it.
7022
7023 2005-05-28  Jackson Harper  <jackson@ximian.com>
7024
7025         * Control.cs: Proper implementation of Product(Name/Version).
7026
7027 2005-05-27  Jackson Harper  <jackson@ximian.com>
7028
7029         * DataObject.cs: Dont crash if no data is found.
7030
7031 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7032         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7033                 as per status page, guessing it should be set to true
7034
7035 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7036
7037         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7038         * DataGridTableStyle.cs: set proper formatting text, def header text
7039         * ThemeWin32Classic.cs: new themable paramaters
7040         * DataGridBoolColumn.cs: paint check box, get data, fixes
7041         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7042         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7043         * DataGridColumnStyle.cs: fixes
7044         * Theme.cs: new themable paramaters
7045                 
7046 2005-05-26  Peter Bartok  <pbartok@novell.com>
7047
7048         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7049
7050 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7051         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7052
7053 2005-05-24  Peter Bartok  <pbartok@novell.com>
7054
7055         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7056           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7057           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7058           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7059           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7060           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7061           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7062           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7063           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7064           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7065           missing attributes, etc
7066         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7067
7068 2005-05-24  Peter Bartok  <pbartok@novell.com>
7069
7070         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7071           when user tries to get help
7072         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7073           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7074           to suppress warnings
7075         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7076           avoid unreachable code warning
7077
7078 2005-05-20  Peter Bartok  <pbartok@novell.com>
7079
7080         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7081
7082 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7083
7084         * DataGridTextBoxColumn.cs: Basic painting methods
7085         * DataGridTableStyle.cs: Set table style in the column
7086         * ThemeWin32Classic.cs: Use Theme for colors
7087         * DataGridDrawingLogic.cs: Implement more drawing
7088         * DataGrid.cs: drawing, theming, enhacements, fixes
7089         * DataGridColumnStyle.cs: fixes, drawing
7090         * Theme.cs: theming for Datagrid
7091
7092 2005-05-20  Peter Bartok  <pbartok@novell.com>
7093
7094         * Cursor.cs: Implemented GetObjectData() method
7095
7096 2005-05-20  Peter Bartok  <pbartok@novell.com>
7097
7098         * Cursors.cs: Added setting of cursor name
7099         * Cursor.cs:
7100           - Implemented constructors
7101           - Implemented Draw and DrawStretched
7102           - Implemented Current property
7103           - Implemented == and != operators
7104           - Implemented Dispose()
7105           - Implemented ToString
7106           - Added missing attributes
7107         * XplatUIX11.cs:
7108           - Added missing reset for OverrideCursor when DoEvents is called
7109           - Fixed creation of cursor, logic was wrong
7110         * XplatUIWin32.cs:
7111           - Added missing reset for OverrideCursor when DoEvents is called
7112           - Fixed creation of cursor, bit arrays were swapped
7113         * Clipboard.cs: Removed obsolete MonoTODO attribute
7114
7115 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7116
7117         * ComboBox.cs: fixes OnSelectedItemChanged
7118         * ControlBindingsCollection.cs: fixes item range check
7119
7120 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7121
7122         * UpDownBase.cs:
7123                 - Calc preferred height properly
7124                 - Implement missing properties
7125                 
7126         * NumericUpDown.cs: Implement missing events
7127
7128 2005-05-19  Jackson Harper  <jackson@ximian.com>
7129
7130         * TabControl.cs: New method that resizes the tab pages before
7131         redrawing them. This as needed as the control is double buffered
7132         and sizing will not be recalculated unless ResizeTabPages is
7133         called.
7134         * TabPage.cs: Set base.Text instead of Text in the constructor so
7135         that UpdateOwner does not get called. Use the new Redraw method of
7136         TabControl instead of Refresh so the sizing is recalculated.
7137         * ThemeWin32Classic.cs: Draw the text for button tabs.
7138
7139 2005-05-19  Jackson Harper  <jackson@ximian.com>
7140
7141         * Control.cs: Paint control background images. Fix typo where
7142         PaintControlBackground was not getting called correctly.
7143
7144 2005-05-19  Peter Bartok  <pbartok@novell.com>
7145
7146         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7147           I can investigate, apparently I broke FileDialog
7148
7149 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7150
7151         * AxHost.cs: Some simple properties.
7152         * Control.cs: window must be accessible after ctor.
7153         * Form.cs: Added TransparencyKey property.
7154         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7155         * XplatUIWin32.cs: SetBorderStyle implemented.
7156
7157 2005-05-18  Peter Bartok  <pbartok@novell.com>
7158
7159         * DataObject.cs: Entries are not global but particular to the
7160           DataObject, now it behaves that way
7161         * XplatUIWin32.cs: Implemented Clipboard methods
7162         * Clipboard.cs: Implemented
7163         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7164         * XplatUIOSX.cs: Updated to final clipboard prototypes
7165         * XplatUIX11.cs: Implemented Clipboard methods
7166         * XplatUIDriver.cs: Updated to final clipboard prototypes
7167         * XplatUIStructs.cs:
7168           - Added BITMAPINFOHEADER struct
7169           - Added ClipboardFormats enum
7170         * X11Structs.cs:
7171           - Added ClipboardStruct
7172           - Added Atom enum items for clipboard types
7173           - Fixed atom types for Selection event structures
7174         * DataFormats.cs:
7175           - Added internal properties and methods for drivers to enumerate
7176             all known formats
7177           - Switched initialization method to allow drivers to assign their
7178             own IDs even for the MS predefined clipboard IDs
7179         * XplatUI.cs: Updated to final clipboard interface
7180
7181 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7182         * PropertyGridView.cs: Fixed compiler warnings.
7183
7184 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7185         * PropertyGrid.cs: Added some event calls
7186         * PropertyGridView.cs: Change drawing code to use double buffering
7187         * PropertyGridTextBox.cs: Changed Text property name
7188         * GridItem.cs: Added Bounds property.
7189         * GridEntry.cs: Added Bounds property.
7190
7191 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7192
7193         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7194         since GetType() may not return the correct type if the object is
7195         a remoting proxy.
7196
7197 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7198
7199         * TreeNodeCollection.cs: fixes get/set item ranges
7200         
7201 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7202
7203         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7204                 
7205 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7206
7207         * ComboBox.cs: Fix item range comparation
7208         * ListView.cs: Fix item range comparation
7209
7210 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7211
7212         * FontDialog.cs:
7213           - Clear example panel when OnPaint is called
7214           - Better solution for displaying the example panel text
7215           - Select default indexes in the ListBoxes
7216
7217 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7218
7219         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7220
7221 2005-05-11  Peter Bartok  <pbartok@novell.com>
7222
7223         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7224         * SelectionRangeConverter.cs: Implemented
7225         * PropertyGrid.cs: Fixed attribute value
7226         * Control.cs:
7227           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7228           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7229         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7230           that's common to all drivers. First methods to go there are
7231           Sebastien Pouliot's CAS Stack Propagation helper methods
7232         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7233           Sebastien Pouliot for CAS Stack Propagation
7234
7235 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7236
7237         * OSXStructs.cs:
7238           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7239
7240 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7241
7242         * DataGridTextBoxColumn.cs: fixed some members
7243         * GridColumnStylesCollection.cs: indexed column is case insensitive
7244         * DataGridTableStyle.cs: fixes
7245         * ThemeWin32Classic.cs: add new theme parameter
7246         * Theme.cs: add new theme parameter
7247         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7248         * DataGrid.cs: fixes, new internal properties, etc.
7249         * DataGridColumnStyle.cs: allows to set grid value
7250         *
7251
7252 2005-05-10  Peter Bartok  <pbartok@novell.com>
7253
7254         * AccessibleObject.cs:
7255           - Removed MonoTODO attribute on help, method is correct
7256           - Fixed Bounds property
7257         * AxHost.cs: Moved MonoTODO
7258         * ButtonBase.cs: Now setting AccessibleObject properties
7259         * RadioButton.cs: Setting proper AccessibleObject role
7260         * CheckBox.cs: Setting proper AccessibleObject role
7261         * ControlBindingsCollection.cs: Added properties, methods and attributes
7262         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7263           userdefined DataFormats.Format items as well
7264         * ListControl.cs: Removed data_member from the public eye
7265         * OpenFileDialog.cs:
7266           - Made class sealed
7267           - Added missing attributes
7268         * SaveFileDialog.cs: Added missing attributes
7269         * ImageListStreamer.cs: Fixed code that caused warnings
7270         * LinkLabel.cs: Removed unreachable code
7271         * TreeView.cs: Fixed code that caused warnings
7272         * PropertyGridView.cs: Fixed code that caused warnings
7273         * GridColumnStylesCollection.cs: Added missing attributes
7274         * GridTableStylesCollection: Added missing attribute
7275         * PropertyManager: Added .ctor
7276         * SecurityIDType: Added
7277         * DataObject.cs: Implemented class
7278         * LinkArea.cs: Added missing attribute
7279
7280 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7281
7282         * RadioButton.cs: call base method to allow to fire OnClick event
7283         * UpDownBase.cs: OnMouseUp call base method
7284         * CheckedListBox.cs: call base method before returning
7285         * TrackBar.cs: call base method before returning
7286         
7287
7288 2005-05-10  Peter Bartok  <pbartok@novell.com>
7289
7290         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7291           for messages
7292
7293 2005-05-10  Peter Bartok  <pbartok@novell.com>
7294
7295         * DataFormats.cs: Implemented
7296         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7297           XplatUIX11.cs: Added Clipboard APIs
7298         * XplatUIWin32.cs: Implemented Clipboard APIs
7299         * FolderBrowserDialog.cs: Added missing event, attributes
7300
7301 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7302
7303         * CheckBox.cs: call base method to allow to fire OnClick event
7304
7305 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7306
7307         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7308
7309 2005-05-06  Peter Bartok  <pbartok@novell.com>
7310
7311         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7312         * Screen.cs: Implemented
7313         * HelpNavigator.cs: Added
7314         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7315           property
7316         * HelpProvider.cs: Implemented all we can do until we have a CHM
7317           help library (which means that "What's This" does work now)
7318
7319 2005-05-06  Jackson Harper  <jackson@ximian.com>
7320
7321         * XplatUIX11.cs: Fix waking up the main loop.
7322                 
7323 2005-05-05  Peter Bartok  <pbartok@novell.com>
7324
7325         * XplatUI.cs: Updated revision
7326         * Form.cs: Removed enless loop
7327         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7328         * Label.cs (OnPaint): Added call to base.OnPaint()
7329         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7330         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7331         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7332         * AxHost.cs: Added
7333         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7334         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7335           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7336           reuse of ToolTipWindow by other controls
7337         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7338         * XplatUIX11.cs: Now clipping drawing area (experimental)
7339         * PictureBox.cs: Moved base.OnPaint() call to end of method
7340         * Theme.cs: Fixed ToolTip abstracts to match new format
7341         * ErrorProvider.cs: Implemented
7342
7343 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7344
7345         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7346         * LinkLabel.cs:
7347                 - Adds cursors
7348                 - Handles focus
7349                 - Implements LinkBehavior
7350                 - Fixes many issues
7351
7352 2005-05-03  Jackson Harper  <jackson@ximian.com>
7353
7354         * ListView.cs: Calculate the scrollbar positioning on resize and
7355         paint, so they get put in the correct place.
7356
7357 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7358
7359         * ColorDialogs.cs: The small color panels are now handled by
7360           SmallColorControl. This fixes drawing of the focus rectangle
7361           and adds a 3D border.
7362
7363 2005-05-03  Peter Bartok  <pbartok@novell.com>
7364
7365         * Control.cs: Modified version of Jonathan Chamber's fix for
7366           double-buffering
7367
7368 2005-05-03  Jackson Harper  <jackson@ximian.com>
7369
7370         * ListView.cs: Remove redraw variable. Control now handles whether
7371         or not a redraw needs to be done, and will only raise the paint
7372         event if redrawing is needed.
7373
7374 2005-05-03  Jackson Harper  <jackson@ximian.com>
7375
7376         * Splitter.cs: No decorations for the splitter form. Cache the
7377         hatch brush.
7378
7379 2005-05-03  Jackson Harper  <jackson@ximian.com>
7380
7381         * TreeView.cs: Use dashed lines to connect nodes. Use the
7382         ControlPaint method for drawing the focus rect instead of doing
7383         that in treeview.
7384
7385 2005-05-02  Peter Bartok  <pbartok@novell.com>
7386
7387         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7388
7389 2005-04-29  Jackson Harper  <jackson@ximian.com>
7390
7391         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7392         entire image buffer. Just clear the clipping rectangle.
7393
7394 2005-04-29  Jackson Harper  <jackson@ximian.com>
7395
7396         * ThemeWin32Classic.cs: Don't draw list view items that are
7397         outside the clipping rectangle.
7398
7399 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7400
7401         * ListBox.cs: added horizontal item scroll
7402
7403 2005-04-29  Jackson Harper  <jackson@ximian.com>
7404
7405         * ThemeWin32Classic.cs: Remove some old debug code that was
7406         causing flicker with the new double buffering code.
7407
7408 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7409
7410         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7411         behave like combobox and comboboxlist (still not sure if this is
7412         correct though).
7413
7414 2005-04-28  Jackson Harper  <jackson@ximian.com>
7415
7416         * ThemeWin32Classic.cs: Don't fill the middle of progress
7417         bars. This fills areas outside of the clip bounds that don't need
7418         to be filled.
7419
7420 2005-04-28  Jackson Harper  <jackson@ximian.com>
7421
7422         * Control.cs: Don't expose functionality to touch the image buffers.
7423         * ProgressBar.cs:
7424         * ListView.cs: We do not need to (and no longer can) manipulate
7425         the image buffers directly. All of this is handled by Control.
7426
7427 2005-04-28  Peter Bartok  <pbartok@novell.com>
7428
7429         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7430           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7431           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7432
7433 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7434
7435         * Combobox:
7436                 - Adjust control's height for non-simple comboboxes (bug fix)
7437                 - Remove dead code
7438         * MenuAPI.cs: remove unused var
7439         * ScrollBar.cs: remove unsed var
7440                  
7441         * ListBox.cs: unselect items when clearing
7442
7443 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7444
7445         * ListControl.cs: honors OnPositionChanged and default Selected Item
7446         * ListBox.cs: unselect items when clearing
7447
7448 2005-04-27  Jackson Harper  <jackson@ximian.com>
7449
7450         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7451         if a "correct" keyboard is not found. This will make us not crash,
7452         but might give some users bad keyboard layouts...seems to be the
7453         same thing rewind does.
7454
7455 2005-04-27  Jackson Harper  <jackson@ximian.com>
7456
7457         * BindingManagerBase.cs: Attach the current/position changed
7458         handlers to their respective events.
7459
7460 2005-04-27  Jackson Harper  <jackson@ximian.com>
7461
7462         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7463         not just a blit.
7464         * ThemeWin32Classic.cs: Don't fill the background for picture
7465         boxes. This could overright user drawing.
7466         * ComboBox.cs: Just fill the clipping rect not the entire client
7467         rect when drawing the background. This prevents pieces of the
7468         image buffer from getting overwritten and is theoretically faster.
7469
7470 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7471
7472         * ComboBox.cs: Databinding support fixes, fire missing events
7473         * ListControl.cs: implement missing methods and properties, fixes
7474         * ThemeWin32Classic.cs: Databiding support on Drawing
7475         * CheckedListBox.cs: Databinding support fixes, fire missing events
7476         * ListBox.cs: Databinding support fixes, fire missing events
7477         
7478 2005-04-25  Peter Bartok  <pbartok@novell.com>
7479
7480         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7481
7482 2005-04-25  Jackson Harper  <jackson@ximian.com>
7483
7484         * TreeView.cs: Use the horizontal scrollbars height not width when
7485         determining how much of the client area is available.
7486
7487 2005-04-25  Jackson Harper  <jackson@ximian.com>
7488
7489         * Control.cs: Double buffering is handled differently now. As per
7490         the spec, the extra buffer is created in the WM_PAINT message and
7491         passed down to the control's drawing code.
7492         * GroupBox.cs:
7493         * Label.cs:
7494         * CheckBox.cs:
7495         * ProgressBar.cs:
7496         * RadioButton.cs:
7497         * ColorDialog.cs:
7498         * ComboBox.cs:
7499         * PropertyGridView.cs:
7500         * UpDownBase.cs:
7501         * MessageBox.cs:
7502         * MenuAPI.cs:
7503         * ListView.cs:
7504         * ButtonBase.cs:
7505         * SizeGrip.cs:
7506         * ScrollBar.cs:
7507         * ListBox.cs:
7508         * TrackBar.cs:
7509         * ToolBar.cs:
7510         * PictureBox.cs:
7511         * DateTimePicker.cs:
7512         * StatusBar.cs:
7513         * TreeView.cs: Update to new double buffering system.
7514         * MonthCalendar.cs: Uncomment block, as Capture is now
7515         working. Update to new double buffering
7516         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7517         * PaintEventArgs.cs: New internal method allows us to set the
7518         graphics object. This is used for double buffering.
7519         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7520         rectangle. The internal paint_area var has been removed from
7521         StatusBar. The clipping rect should be used instead.
7522         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7523         * TabPage.cs: The RefreshTabs method was removed, so just call the
7524         tab controls Refresh method now.
7525         * TabControl.cs: Update to new double buffering. Make sure the
7526         handle is created before sizing the tab pages, otherwise we will
7527         get stuck in a loop.
7528
7529 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7530
7531         * LinkLabel.cs: Fix typo, bug #74719; patch
7532           from Borja Sanchez Zamorano
7533
7534 2005-04-22  Jackson Harper  <jackson@ximian.com>
7535
7536         * TreeNode.cs: Implement Handle stuff.
7537         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7538
7539 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7540
7541         * DataGridTextBoxColumn.cs: call base constructors, fixes
7542         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7543         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7544         * DataGridTableStyle.cs: implements create default column styles
7545         * DataGridBoolColumn.cs: which types can handle
7546         * DataGrid.cs: missing methods, fixes, new functionality
7547         * DataGridColumnStyle.cs: fixes
7548
7549 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7550         * FolderBrowserDialog.cs:
7551         - Use a thread to fill the TreeView
7552         - Adjusted some sizes
7553
7554 2005-04-19  Peter Bartok  <pbartok@novell.com>
7555
7556         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7557           property. Fixes #74360.
7558
7559 2005-04-19  Jackson Harper  <jackson@ximian.com>
7560
7561         * XEventQueue.cs: Lock when getting the lockqueue size.
7562         * PictureBox.cs: Call base OnPaint
7563         
7564 2005-04-19  Peter Bartok  <pbartok@novell.com>
7565
7566         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7567           messages were no longer being processed (this broke BeginInvoke)
7568
7569           
7570 2005-04-18  Jackson Harper  <jackson@ximian.com>
7571
7572         * TreeView.cs: buglet that caused node images to get drawn
7573         regardless of whether or not they were in the clipping rectangle.
7574
7575 2005-04-18  Jackson Harper  <jackson@ximian.com>
7576
7577         * CurrencyManager.cs: There are four rules for GetItemProperties:
7578         - If the type is an array use the element type of the array
7579         - If the type is a typed list, use the type
7580         - If the list contains an Item property that is not an object, use
7581         that property
7582         - use the first element of the list if there are any elements in
7583         the list.
7584         
7585 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7586
7587         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7588         click. This handles offsets for scrolling properly and reduces
7589         memory. Also fixed GetNode to not offset now that TopNode works
7590         properly.
7591         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7592         
7593 2005-04-17  Jackson Harper  <jackson@ximian.com>
7594
7595         * CursorConverter.cs: Initial implementation.
7596
7597 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7598
7599         * ListControl.cs: work towards complex data binding support on ListControl
7600         * CurrencyManager.cs: work towards complex data binding support on ListControl
7601         * ListBox.cs: work towards complex data binding support on ListControl
7602
7603
7604 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7605
7606         * GridTableStylesCollection.cs: fixes name and constructor
7607         * DataGridTableStyle.cs: fixes
7608         * DataGridBoolColumn.cs: fixes names and constructors
7609         * DataGrid.cs: define methods and properties. Some init implementations
7610         * DataGridCell.cs: define methods and properties. Some init implementations
7611         * GridTablesFactory.cs: Define methods and properties
7612
7613 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7614
7615         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7616         graphics port changes.  We still want the coordinates in global screen
7617         coordinates.
7618
7619 2005-04-14  Jackson Harper  <jackson@ximian.com>
7620
7621         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7622         check plus minus or checkbox clicks unless those features are enabled.
7623
7624 2005-04-14  Jackson Harper  <jackson@ximian.com>
7625
7626         * TreeView.cs: Add methods for setting the top and bottom visible
7627         nodes. TreeNode::EnsureVisible uses these methods.
7628         * TreeNode.cs: Implement EnsureVisible
7629
7630 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7631
7632         * Form.cs: Pospone menu assignation if the window has not been created yet
7633         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7634         size and position
7635
7636 2005-04-12  Jackson Harper  <jackson@ximian.com>
7637
7638         * TreeView.cs: Set the TopNode properly when scrolling
7639         occurs. This has the added benifit of reducing the amount of
7640         walking that needs to be done when drawing. Also removed an old
7641         misleading TODO.
7642         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7643         
7644 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7645
7646         * Timer.cs: fixes interval setting when the timer is already enabled
7647         
7648 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7649
7650         * FolderBrowserDialog.cs: First approach
7651
7652 2005-04-09  Peter Bartok  <pbartok@novell.com>
7653
7654         * FolderBrowserDialog: Added
7655
7656 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7657
7658         * LinkLabel.cs: move drawing code into the theme
7659         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7660         * Theme.cs: define DrawLinkLabel method
7661
7662 2005-04-05  Jackson Harper  <jackson@ximian.com>
7663
7664         * BindingContext.cs: Use weak references so these bad actors don't
7665         stay alive longer then they need to.
7666
7667 2005-04-05  Jackson Harper  <jackson@ximian.com>
7668
7669         * ListControl.cs: Basic implementation of complex databinding.
7670         * ComboBox.cs:
7671         * ListBox.cs: Add calls to ListControl databinding methods.
7672
7673 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
7674
7675         * FileDialog.cs:
7676           - Don't change PopupButtonState to Normal when the
7677             PopupButton gets pressed several times.
7678           - Renamed ButtonPanel to PopupButtonPanel
7679
7680 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
7681
7682         * ColorDialog.cs: Use cached objects instead of creating them
7683         * LinkLabel.cs: Use cached objects instead of creating them
7684         * Splitter.cs: Use cached objects instead of creating them
7685         * FontDialog.cs: Use cached objects instead of creating them
7686         * PropertyGridView.cs: Use cached objects instead of creating them
7687         * MessageBox.cs: Use cached objects instead of creating them
7688         * FileDialog.cs: Use cached objects instead of creating them
7689         * ThemeWin32Classic.cs: Use cached objects instead of creating them
7690         * TreeView.cs: Use cached objects instead of creating them
7691         
7692 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
7693
7694         * Control.cs: use Equals to compare the font since no == op
7695         * ScrollBar.cs: use Equals to compare the font since no == op
7696
7697 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
7698
7699         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
7700
7701 2005-04-01  Jackson Harper  <jackson@ximian.com>
7702
7703         * Binding.cs: Implement IsBinding.
7704         * BindingManagerBase.cs:
7705         * PropertyManager.cs:
7706         * CurrencyManager.cs: Add IsSuspended property.
7707
7708 2005-04-01  Jackson Harper  <jackson@ximian.com>
7709
7710         * Binding.cs: Had some IsAssignableFrom calls backwards.
7711
7712 2005-04-01  Jackson Harper  <jackson@ximian.com>
7713
7714         * Binding.cs: Handle null data members when pulling data.
7715         * PropertyManager.cs: Handle the data member being a property that
7716         does not exist.
7717
7718 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7719
7720         * DataGridTextBoxColumn.cs: fixes signature
7721         * DataGrid.cs: calls right constructor
7722
7723 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
7724
7725         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
7726         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
7727         * GridTableStylesCollection.cs: implements GridTableStylesCollection
7728         * DataGridTableStyle.cs: implements DataGridTableStyle
7729         * DataGridBoolColumn.cs: implements DataGridBoolColumn
7730         * DataGridTextBox.cs: implements DataGridTextBox
7731         * DataGridColumnStyle.cs: implements DataGridColumnStyle
7732
7733 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
7734
7735         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
7736
7737 2005-03-29  Peter Bartok  <pbartok@novell.com>
7738
7739         * Application.cs:
7740           - Properly implemented CompanyName property
7741           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
7742             returns a path that includes CompanyName, ProductName and
7743             Version (fixes bug #70330)
7744
7745 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
7746
7747         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
7748           fixes bug #72588.
7749
7750 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7751
7752         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
7753         
7754           - Added ReadOnly CheckBox
7755           - Further refactoring: moved some code from Open-/SaveFileDialog
7756             to FileDialog
7757
7758 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
7759
7760         * OpenFileDialog.cs: Fixed CheckFileExists
7761         * FileDialog.cs:
7762           Moved FileView and DirComboBox outside FileDialog class.
7763           They can now be used outside FileDialog
7764
7765 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7766
7767         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
7768         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
7769
7770 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
7771
7772         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7773           - Added missing CreatePrompt property in SaveDialog
7774           - Overall SaveDialog handling should be better now
7775           - Added non standard ShowHiddenFiles property
7776           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
7777           - Added InitialDirectory and RestoreDirectory support
7778
7779 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
7780
7781         * FileDialog.cs: Made dirComboBox usable
7782
7783 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
7784
7785         * FileDialog.cs: Added Filter support (case sensitiv)
7786
7787 2005-03-24  Jackson Harper  <jackson@ximian.com>
7788
7789         * TabControl.cs: Need a couple more pixels for the lines.
7790
7791 2005-03-23  Jackson Harper  <jackson@ximian.com>
7792
7793         * TabControl.cs: Give the tab page focus when it is selected.
7794
7795 2005-03-23  Jackson Harper  <jackson@ximian.com>
7796
7797         * TabControl.cs: Account for the drawing of tabs borders when
7798         invalidating. If the slider was clicked dont do click detection on
7799         the tabs.
7800
7801 2005-03-23  Jackson Harper  <jackson@ximian.com>
7802
7803         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
7804
7805 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
7806
7807         * CategoryGridEntry.cs: Added
7808         * GridItem.cs: Added helper properties
7809         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
7810         * GridEntry.cs: Updated code for collection
7811         * PropertyGrid.cs: Cleaned up some formatting
7812         * PropertyGridView.cs: Added drop down functionality for enums.
7813         * GridItemCollection.cs: Added enumerator logic
7814         * PropertyGridEntry.cs: Added
7815
7816 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7817
7818         * FileDialog.cs:
7819           - Removed unnecessary commented code
7820           - Fixed handling for entering the filename manually in the combobox
7821
7822 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
7823
7824         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
7825
7826 2005-03-18  Peter Bartok  <pbartok@novell.com>
7827
7828         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
7829           them being touching the border
7830
7831 2005-03-18  Peter Bartok  <pbartok@novell.com>
7832
7833         * TextControl.cs: Quick hack to center text better
7834
7835 2005-03-18  Peter Bartok  <pbartok@novell.com>
7836
7837         * ControlPaint.cs:
7838           - Don't throw NotImplemented exceptions, just print a notice once
7839             instead (requested by Miguel). This makes running existing SWF
7840             apps a bit easier
7841         * Control.cs:
7842           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
7843           - Added context menu trigger on right click
7844         * Panel.cs: Trigger invalidate on resize
7845         * StatusBar.cs:
7846           - Removed old double-buffer drawing
7847           - Added ResizeRedraw style to force proper update of statusbar
7848         * ListView.cs:
7849           - Removed debug output
7850         * ThemeWin32Classic.cs:
7851           - Fixed drawing of status bar, now draws Text property if there
7852             are no defined panels
7853
7854 2005-03-18  Jackson Harper  <jackson@ximian.com>
7855
7856         * ImageList.cs: When the image stream is set pull all the images
7857         from it.
7858         * ImageListStreamer.cs: Implement reading image list streams.
7859
7860 2005-03-18  Peter Bartok  <pbartok@novell.com>
7861
7862         * ThemeWin32Classic.cs (DrawPictureBox):
7863           - Fixed calculations for centered drawing
7864           - Fixed drawing for normal mode, not scaling the image on normal
7865
7866 2005-03-18  Peter Bartok  <pbartok@novell.com>
7867
7868         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
7869           textbox
7870         * FileDialog.cs:
7871           - Made Open/Save button the accept button for FileDialog
7872           - Tied the cancel button to the IButtonControl cancel button
7873           - Save/Open now properly builds the pathname
7874           - Now handles user-entered text
7875           - Preventing crash on right-click if no item is selected
7876           - Fixed Text property, now uses contents of textbox
7877           - Fixed SelectedText property, now just returns the text part that
7878             is selected in the text box
7879
7880 2005-03-18  Jackson Harper  <jackson@ximian.com>
7881
7882         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
7883         rect, make sure to de-adjust the interior rect after drawing the
7884         tab text.
7885
7886 2005-03-18  Peter Bartok  <pbartok@novell.com>
7887
7888         * MenuAPI.cs: Remove menu *before* executing selected action to
7889           prevent the menu from 'hanging around'
7890           
7891 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
7892
7893         * XplatUIOSX.cs: Implemented WorkingArea property
7894
7895 2005-03-17  Peter Bartok  <pbartok@novell.com>
7896
7897         * XplatUIX11.cs: Fixed menu coord calculations
7898         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
7899           for calculating offsets
7900
7901 2005-03-17  Peter Bartok  <pbartok@novell.com>
7902
7903         * Hwnd.cs: Do not consider menu presence for default client
7904           rectangle location/size
7905         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
7906           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
7907           translation functions
7908         * FileDialog.cs: Fixed (what I presume is a) typo
7909
7910 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
7911
7912         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
7913           X access (avoids X-Async errors)
7914
7915 2005-03-16  Jackson Harper  <jackson@ximian.com>
7916
7917         * TabControl.cs: Raise the SelectedIndexChanged event.
7918
7919 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
7920
7921         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
7922           - Removed vertical ToolBar and replaced it with a custom panel
7923             (desktop and home button already work)
7924           - Added Help button (some controls get resized or relocated then)
7925           - Draw correct text depending on Open or Save.
7926           - Fixed some typos...
7927
7928 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
7929
7930         * ScrollBar.cs:
7931           - Only change Maximum and Minimum when need it (bug fix)
7932
7933 2005-03-15  Peter Bartok  <pbartok@novell.com>
7934
7935         * Form.cs: Use Handle for icon, to trigger creation if
7936           the window does not yet exist
7937         * Control.cs:
7938           - CanSelect: Slight performance improvement
7939           - Focus(): Preventing possible recursion
7940           - Invalidate(): Removed ControlStyle based clear flag setting
7941           - WM_PAINT: fixed logic for calling OnPaintBackground
7942           - WM_ERASEBKGND: Fixed logic, added call to new driver method
7943             EraseWindowBackground if the control doesn't paint background
7944         * XplatUIWin32.cs:
7945           - Moved EraseWindowBackground() method to internal methods
7946           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
7947             is sent via SendMessage on BeginPaint call on Win32
7948         * XplatUIX11.cs:
7949           - Added EraseWindowBackground() method
7950           - No longer sends WM_ERASEBKGND on .Expose, but on call to
7951             PaintEventStart, which more closely matches Win32 behaviour
7952           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
7953           - Fixed SetFocus() to properly deal with client and whole windows
7954         * Hwnd.cs: Added ErasePending property
7955         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
7956         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
7957
7958 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
7959
7960         * XplatUIOSX.cs:
7961           - Fix hard loop when timers exist.
7962           - Fix bugs with middle and right click for 3 button mice.
7963
7964 2005-03-11  Peter Bartok  <pbartok@novell.com>
7965
7966         * XplatUIX11.cs:
7967           - get_WorkingArea: Need to call X directly, GetWindowPos only
7968             returns cached data now
7969           - Added sanity check to GetWindowPos hwnd usage
7970
7971 2005-03-11  Jackson Harper  <jackson@ximian.com>
7972
7973         * BindingManagerBase.cs: This method isn't used anymore as
7974         PullData now updates the data in the control.
7975
7976 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
7977
7978         * Form.cs: fixes menu drawing on X11
7979         * MenuAPI.cs:  fixes menu drawing on X11
7980
7981 2005-03-11  Peter Bartok  <pbartok@novell.com>
7982
7983         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
7984           from Jonathan Gilbert; should fix bug #73606
7985         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
7986           in Screen coordinates. Thanks, Jordi.
7987         * Form.cs: Added missing attribute
7988
7989 2005-03-11  Peter Bartok  <pbartok@novell.com>
7990
7991         * Form.cs:
7992           - Rudimentary Mdi support
7993           - Removed outdated FormParent code
7994           - Implemented lots of missing properties and methods, still missing
7995             transparency support
7996           - Added missing attributes
7997           - Implemented support for MaximumBounds
7998           - Added firing of various events
7999         * XplatUI.cs: Added SetIcon() method
8000         * XplatUIDriver.cs: Added SetIcon() abstract
8001         * XplatUIOSX.cs: Stubbed out SetIcon() method
8002         * XplatUIX11.cs:
8003           - Implemented SetIcon() support
8004           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8005           - Switched to unix line endings
8006         * XplatUIWin32.cs:
8007           - Made POINT internal so for can access it as part of MINMAX
8008           - Implemented SetIcon() support
8009           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8010             native Mdi support again, might have to go managed)
8011         * Control.cs: Now fires the StyleChanged event
8012         * MdiClient.cs: Added; still mostly empty
8013
8014 2005-03-10  Peter Bartok  <pbartok@novell.com>
8015
8016         * SaveFileDialog.cs: Added emtpy file
8017
8018 2005-03-08  Peter Bartok  <pbartok@novell.com>
8019
8020         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8021           in turn triggers OnCreateContro) when creating a handle for the
8022           first time.
8023         * TextControl.cs: Fixed endless loop in certain cases when
8024           replacing the current selection
8025
8026 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8027
8028         * ScrollBar.cs:
8029           - Honors NewValue changes in Scroll events allowing apps to change it
8030           - Adds First and Last Scroll events
8031           - Fixes Thumb events
8032
8033 2005-03-07  Peter Bartok  <pbartok@novell.com>
8034
8035         * Hwnd.cs: Added DefaultClientRectangle property
8036         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8037           more detailed debug information
8038         * XplatUIX11.cs:
8039           - Fixed size-change feedback loop, where we would pull an old size
8040             off the queue and mistakenly change our window's size to an
8041             earlier value
8042           - Now compressing ConfigureNotify events, to reduce looping and
8043             redraw issues
8044         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8045           is called
8046
8047 2005-03-07  Jackson Harper  <jackson@ximian.com>
8048
8049         * Binding.cs: Push data pushes from data -> property. Check if the
8050         property is readonly when attempting to set it.
8051
8052 2005-03-07  Jackson Harper  <jackson@ximian.com>
8053
8054         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8055         instead of IsSubclassOf. Pulling data now sets the value on the
8056         control.
8057         * PropertyManager.cs:
8058         * CurrencyManager.cs: Just need to pull data when updating now,
8059         because PullData will set the value on the control.
8060
8061 2005-03-04  Jackson Harper  <jackson@ximian.com>
8062
8063         * Binding.cs: Implement data type parsing and converting on pulled
8064         data. TODO: Are there more ways the data can be converted?
8065
8066 2005-03-04  Jackson Harper  <jackson@ximian.com>
8067
8068         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8069         controls Validating method so we can repull the data when the
8070         control loses focus.
8071
8072 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8073
8074         * ColumnHeader.cs:
8075           - Fixes null string format
8076           
8077         * ListView.cs:
8078           - Adds enum type checks
8079           - Fixes redrawing and recalc need after changing some properties
8080           - Fixes on focus_item set after the event
8081           - Fixes adding columns after the control has been created
8082           
8083         * ThemeWin32Classic.cs:
8084           - Fixes CheckBox focus rectangle
8085           - Fixes ColumnHeader drawing
8086
8087
8088 2005-03-03  Jackson Harper  <jackson@ximian.com>
8089
8090         * Binding.cs: Bind to <Property>Changed events so we can detect
8091         when properties are changed and update the data.
8092
8093 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8094
8095         * ImageList.cs:
8096           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8097           - Fixes ImageList constructor with ImageList container
8098           - Fixes image scaling (wrong parameters at DrawImage)
8099
8100 2005-02-02  Jackson Harper  <jackson@ximian.com>
8101
8102         * Binding.cs: Make property searches case-insensitive. Eliminate
8103         some duplicated code.
8104
8105 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8106
8107         * ComboBox.cs:
8108                 - Handle focus event
8109                 - Fix scrollbar events
8110                 - Discard highlighted item if remove it
8111                 - Fixes SelectedItem with strings
8112
8113 2005-03-01  Peter Bartok  <pbartok@novell.com>
8114
8115         * Control.cs:
8116           - Fixed Visible property, now follows (once again) parent chain
8117             to return false if any control in the chain is visible=false
8118           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8119           - Fixed several places where is_visible instead of Visible was used
8120           - Implemented FIXME related to focus selection when setting focused
8121             control to be invisible
8122
8123         * XplatUIWin32.cs: Now using proper method to find out if window is
8124           visible. Thanks to Jordi for pointing it out
8125
8126 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8127
8128         * ComboBox.cs: show/hide scrollbar instead of creating it
8129
8130 2005-02-27  Jackson Harper  <jackson@ximian.com>
8131
8132         * CurrencyManager.cs: Add PositionChanged stuff.
8133
8134 2005-02-27  Peter Bartok  <pbartok@novell.com>
8135
8136         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8137         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8138         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8139         * XplatUIX11.cs:
8140           - Implemented GetMenuDC()
8141           - Implemented GetMenuOrigin()
8142           - Implemented ReleaseMenuDC()
8143           - Implemented generation of WM_NCPAINT message
8144           - Implemented generation and handling of WM_NCCALCSIZE message
8145         * Form.cs: Added debug helper message for Jordi's menu work
8146         * Hwnd.cs:
8147           - Modified ClientRect property; added setter, fixed getter to handle
8148             setting of ClientRect
8149           - Added MenuOrigin property
8150
8151 2005-02-26  Peter Bartok  <pbartok@novell.com>
8152
8153         * XplatUIX11.cs:
8154           - Destroys the caret if a window that's being destroyed contains it
8155           - Ignores expose events coming from the X11 queue for windows that
8156             already are destroyed
8157           - Now uses the proper variable for handling DestroyNotify, before we
8158             marked the wrong window as destroyed
8159           - Improved/added some debug output
8160
8161 2005-02-26  Peter Bartok  <pbartok@novell.com>
8162
8163         * X11Keyboard.cs: Fixes to work on 64bit systems
8164
8165 2005-02-26  Peter Bartok  <pbartok@novell.com>
8166
8167         * Control.cs:
8168           - Now calling OnHandleDestroyed from DestroyHandle()
8169             instead of Dispose()
8170           - Removed bogus call to controls.Remove() from DestroyHandle()
8171
8172 2005-02-26  Peter Bartok  <pbartok@novell.com>
8173
8174         * Control.cs: Properly destroy child windows when our handle is
8175           destroyed
8176
8177 2005-02-25  Peter Bartok  <pbartok@novell.com>
8178
8179         * XplatUI.cs:
8180           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8181           - Alphabetized Static Methods and Subclasses
8182
8183         * XplatUIX11.cs:
8184           - Added XException class to allow custom handling of X11 exceptions
8185           - Created custom X11 error handler, tied into XException class
8186           - Added support for MONO_XEXCEPTIONS env var to allow the user
8187             to either throw an exception on X errors or continue running
8188             after displaying the error
8189           - Added handling of DestroyNotify message
8190           - Added handler for CreateNotify message (still disabled)
8191           - Improved (tried to at least) Where method to provide file and lineno
8192         * X11Structs.cs:
8193           - Added XErrorHandler delegate
8194           - Added XRequest enumeration (to suppor translation of errors)
8195
8196 2005-02-25  Jackson Harper  <jackson@ximian.com>
8197
8198         * PropertyManager.cs: Implement editing features
8199         * CurrencyManager.cs:
8200         * Binding.cs: First attempt at UpdateIsBinding
8201         * BindingManagerBase.cs: Call UpdateIsBinding before
8202         pushing/pulling data.
8203
8204 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8205
8206         * MenuAPI.cs: Respect disabled items
8207         * ThemeWin32Classic.cs
8208                 - Caches ImageAttributes creation for DrawImageDisabled
8209                 - Fixes vertical menu line drawing
8210                 - Draws disabled arrows in disable menu items
8211
8212 2005-02-24  Peter Bartok  <pbartok@novell.com>
8213
8214         * Hwnd.cs:
8215           - Added UserData property to allow associating arbitrary objects
8216             with the handle
8217           - Fixed leak; now removing Hwnd references from static windows array
8218         * XplatUIWin32.cs:
8219           - Fixed Graphics leak in PaintEventEnd
8220           - Removed usage of HandleData, switched over to Hwnd class
8221         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8222
8223 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8224
8225         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8226         * ScrollBar.cs: Fixes bug
8227         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8228          keyboard navigation enhancements
8229
8230 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8231
8232         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8233         * GroupBox.cs: Add control styles
8234         * Label.cs: Add control styles
8235         * UpDownBase.cs: Add control styles
8236         * ListBox.cs: Add control styles
8237         * XplatUIWin32.cs: Fixes wrong parameter order
8238
8239
8240 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8241
8242         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8243
8244 2005-02-23  Jackson Harper  <jackson@ximian.com>
8245
8246         * PropertyManager.cs: Implement property binding. This doesn't
8247         seem to work yet though as (I think) there are some bugs in
8248         System.ComponentModel.PropertyDescriptor.
8249         * BindingContext.cs: Use new PropertyManager constructor.
8250
8251 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8252
8253         * ProgressBar.cs: use clip region in ProgressBar
8254         * ThemeWin32Classic.cs: use clip region in ProgressBar
8255
8256 2004-02-22  Jackson Harper  <jackson@ximian.com>
8257
8258         * BindingsCollection.cs: Remove some debug code.
8259
8260 2005-02-22  Jackson Harper  <jackson@ximian.com>
8261
8262         * BindingContext.cs:
8263         * ControlBindingsCollection.cs:
8264         * CurrencyManager.cs:
8265         * Binding.cs:
8266         * BindingManagerBase.cs: Initial implementation
8267         * BindingsCollection.cs: Add an internal contains method that the
8268         BindingManagerBase uses to ensure bindings aren't added twice to
8269         the collection.
8270         * PropertyManager.cs: Stubbed out.
8271         * Control.cs:
8272         * ContainerControl.cs: Hook up databinding
8273         
8274 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8275
8276         * XplatUIOSX.cs:
8277           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8278           Fixed Invalidate/Update chain.
8279           Fixed tons of other minor bugs (this is almost a complete rewrite).
8280
8281 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8282
8283         * ComboBox.cs: do subcontrol creation when the control is created
8284
8285 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8286
8287         * Label.cs: fixes image drawing (image and imagelist)
8288         * ThemeWin32Classic.cs: cache brushes
8289         
8290 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8291
8292         * Form.cs: Move menu drawing code to Theme class
8293         * ComboBox.cs: Move ComboBox drawing code to Theme class
8294         * MenuItem.cs: Move menu drawing code to Theme class
8295         * MenuAPI.cs: Move menu drawing code to Theme class
8296         * ThemeWin32Classic.cs: New methods
8297         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8298         * ListBox.cs: Move Listbox drawing code to Theme class
8299         * Theme.cs: New methods
8300
8301 2005-02-20  Peter Bartok  <pbartok@novell.com>
8302
8303         * Control.cs:
8304           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8305             only process mnemonics on those)
8306           - Fixed event sequence for key handling; first calling
8307             ProcessKeyEventArgs now
8308         * TextBoxBase.cs:
8309           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8310             for processing non-character keys
8311           - Fixed WM_CHAR to generate proper event sequence before processing
8312         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8313           generation
8314
8315 2005-02-19  Peter Bartok  <pbartok@novell.com>
8316
8317         * UserControl.cs: Added TextChanged event; added attributes
8318         * SizeGrip.cs: Implemented resizing and optional display of grip
8319         * Form.cs: Fixed attribute
8320         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8321           Changed meaning of ScrollWindow bool argument; instead of the
8322           clear attribute (which will be true usually anyway), it gives the
8323           option of moving child controls as well.
8324         * XplatUIX11.cs:
8325           - Changed to match new ScrollWindow argument
8326           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8327             now handles the implicit parent window a WM puts around us
8328         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8329           to work)
8330         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8331         * TreeView.cs: Adjusted to new ScrollWindow arguments
8332
8333 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8334
8335         * Form.cs: Menu integration with non-client area
8336         * MenuItem.cs: Menu integration with non-client area
8337         * MenuAPI.cs: Menu integration with non-client area
8338
8339 2005-02-18  Peter Bartok  <pbartok@novell.com>
8340
8341         * MethodInvoker.cs: Added
8342         * MdiLayout.cs: Added
8343         * SendKeys.cs: Started implementation
8344         * ErrorIconAlignment.cs: Added
8345
8346 2005-02-18  Peter Bartok  <pbartok@novell.com>
8347
8348         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8349         * Form.cs: Added handling for Menu-related Non-client messages
8350
8351 2005-02-17  Peter Bartok  <pbartok@novell.com>
8352
8353         * UpDownBase.cs: Fixed typo, compilation errors
8354         * DomainUpDown.cs: Fixed attribute value
8355
8356 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8357
8358         * UpDownBase.cs: Attach entry events.
8359         Propagate events.
8360         Add ForeColor property, Focused, InterceptArrowKeys (interception
8361         does not work yet).
8362
8363 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8364
8365         * Form.cs:
8366                 - Redraw non client are on Setmenu
8367                 - Calc proper menu starting point
8368
8369 2005-02-17  Peter Bartok  <pbartok@novell.com>
8370
8371         * Application.cs: Fixed message_filter check
8372
8373 2005-02-17  Peter Bartok  <pbartok@novell.com>
8374
8375         * Application.cs: Now calls registered message filters
8376         * DockStyle.cs: Fixed attribute
8377         * Form.cs: Fixed attribute
8378         * Menu.cs: Fixed attribute
8379         * ToolTip.cs: Fixed attribute
8380         * TreeNode.cs: Added missing attributes and arranged in regions
8381         * PropertyGrid.cs: Fixed signatures
8382         * TreeNodeCollection.cs: Added attributes
8383         * Splitter.cs: Added missing attributes; arranged into regions
8384         * TabPage.cs: Added missing attributes; arranged into regions
8385         * TextBoxBase.cs: Added missing attributes
8386         * TextBox.cs: Added missing attributes
8387         * ArrangeDirection.cs: Added missing attributes
8388         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8389         * ToolBarButton.cs: Fixed attributes
8390         * AnchorStyles.cs: Fixed attribute
8391         * TrackBar.cs: Fixed attributes
8392         * TabControl.cs: Added missing attributes and arranged into regions
8393         * ToolBar.cs: Fixed attribute
8394         * StatusBar.cs: Fixed signature, organized into regions and added
8395           attributes
8396         * StatusBarPanel.cs: Fixed attributes
8397         * ContentsResizedEventArgs.cs: Implemented
8398         * ContentsResizedEventHandler.cs: Implemented
8399         * DateBoldEventArgs.cs: Implemented
8400         * DateBoldEventHandler.cs: Implemented
8401         * UpDownEventArgs.cs: Implemented
8402         * UpDownEventHandler.cs: Implemented
8403         
8404 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8405
8406         * Form.cs: first Menu NC refactoring
8407         * MenuAPI.cs: first Menu NC refactoring
8408         
8409 2005-02-16  Peter Bartok  <pbartok@novell.com>
8410
8411         * ImeMode.cs: Added missing attributes
8412         * Menu.cs: Fixed attribute
8413         * GroupBox.cs: Fixed attribute
8414         * Label.cs: Fixed attribute
8415         * ColorDialog.cs (RunDialog): Removed TODO attribute
8416         * ComboBox.cs: Fixed attributes
8417         * ListControl.cs: Added missing attributes
8418         * PropertyGrid.cs: Fixed attributes
8419         * Control.cs: Fixed attributes
8420         * ListViewItem.cs: Added TypeConverter attribute
8421         * NotifyIcon.cs: Fixed attributes
8422         * ListView.cs: Fixed attributes
8423         * ButtonBase.cs: Fixed attribute
8424         * ImageList.cs: Added missing attributes
8425         * ContainerControl.cs: Fixed signature
8426         * CheckedListBox.cs: Fixed attribute; added missing attributes
8427         * Panel.cs: Fixed attributes
8428         * PropertyTabChangedEventArgs.cs: Added missing attribute
8429         * PropertyValueChangedEventArgs.cs: Added missing attribute
8430         * Binding.cs: Fixed attribute
8431         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8432         * ListBox.cs: Fixed attribute; added missing attributes;
8433         * ScrollableControl.cs: Added missing attributes
8434         * PictureBox.cs: Added missing attributes; implemented missing property
8435         * DateTimePicker.cs: Added missing attributes
8436         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8437         * MonthCalendar.cs: Fixed attributes
8438         * StatusBarPanel.cs: Added missing attributes
8439         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8440
8441 2005-02-16  Peter Bartok  <pbartok@novell.com>
8442
8443         * TextBoxBase.cs: The previous method to enforce height yet remember
8444           the requested high was less than ideal, this is an attempt to do
8445           it better.
8446         * Control.cs: Added comment about possible problem
8447         * Copyright: Updated format
8448         * GridItemType.cs: Fixed swapped values
8449
8450 2005-02-15  Jackson Harper  <jackson@ximian.com>
8451
8452         * BaseCollection.cs: Use property so we never access an
8453         uninitialized list. Also initialize the list in the property.
8454
8455 2005-02-15  Peter Bartok  <pbartok@novell.com>
8456
8457         * GroupBox.cs (ProcessMnemonic): Implemented
8458         * Label.cs (ProcessMnemonic): Implemented
8459         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8460           hotkeys
8461
8462 2005-02-15  Peter Bartok  <pbartok@novell.com>
8463
8464         * RadioButton.cs (ProcessMnemonic): Implemented
8465         * CheckBox.cs (ProcessMnemonic): Implemented
8466         * Control.cs:
8467           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8468             handling
8469           - Added internal method to allow calling ProcessMnemonic from other
8470             controls
8471         * ContainerControl.cs:
8472           - Started support for handling validation chain handling
8473           - Implemented ProcessMnemonic support
8474           - Added Select() call to Active, to make sure the active control
8475             receives focus
8476         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8477           FormParent rewrite)
8478         * ThemeWin32Classic.cs:
8479           - DrawCheckBox(): Fixed stringformat to show hotkeys
8480           - DrawRadioButton(): Fixed stringformat to show hotkeys
8481         * CommonDialog.cs: Removed WndProc override, not needed
8482
8483 2005-02-14  Peter Bartok  <pbartok@novell.com>
8484
8485         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8486           missed those in the rewrite
8487
8488 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8489
8490         * NumericUpDown.cs (Increment, ToString): Add.
8491         (DecimalPlaces): implement.
8492         
8493         Add attributes.
8494         
8495         * UpDownBase.cs: Add the designer attributes.
8496
8497 2005-02-13  Peter Bartok  <pbartok@novell.com>
8498
8499         * Panel.cs: Removed border_style, now in Control
8500         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8501           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8502
8503 2005-02-13  Peter Bartok  <pbartok@novell.com>
8504
8505         * MouseButtons.cs: Added missing attributes
8506         * XplatUIStructs.cs: Added enumeration for title styles
8507         * LeftRightAlignment.cs: Added missing attributes
8508         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8509           it compatible with Graphics.FromHwnd()
8510         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8511         * Keys.cs: Added missing attributes
8512         * SelectionRange.cs: Added missing attributes
8513         * SelectionRangeConverter.cs: Added
8514         * XplatUI.cs:
8515           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8516             ReleaseMenuDC methods
8517           - Renamed ReleaseWindow to UngrabWindow
8518           - Added proper startup notice to allow version identification
8519         * Form.cs:
8520           - Added missing attributes
8521           - Removed FormParent concept
8522         * Label.cs: Removed border_style field, now in Control
8523         * RadioButton.cs: Now properly selects RadioButton when focus is
8524           received
8525         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8526         * Control.cs:
8527           - Added missing attributes
8528           - Added borderstyle handling
8529           - Removed FormParent concept support
8530           - Fixed calls to XplatUI to match changed APIs
8531           - Fixed bug that would case us to use disposed Graphics objects
8532           - Removed unneeded internal methods
8533           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8534           - SelectNextControl(): Fixed to properly check common parents
8535         * TextBoxBase.cs: Removed border_style field (now in Control)
8536         * MessageBox.cs:
8537           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8538             fixed calculations for form size
8539           - Added support for localized strings and icons
8540           - Improved form size calculations, added border
8541         * ListView.cs: Removed border_style field (now in Control)
8542         * X11Structs.cs: Moved several structs from X11 driver here
8543         * X11Keyboard.cs: Changed debug message
8544         * Application.cs: Removed FormParent concept support
8545         * CommonDialog.cs:
8546           - Resetting end_modal flag
8547           - Removed FormParent concept support
8548         * NativeWindow.cs: Removed FormParent concept support
8549         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8550           Client area and Non-Client whole window to allow support for WM_NC
8551           messages
8552         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8553           prevent using it until it supports Hwnd as per Geoff Norton's request
8554         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8555         * PictureBox.cs: Removed border_style field, now in Control
8556         * XplatUIWin32.cs: Added new driver methods
8557
8558 2005-02-12  Peter Bartok  <pbartok@novell.com>
8559
8560         * OpacityConverter.cs: Implemented
8561         * Hwnd.cs: Internal class to support drivers that need to emulate
8562           client area/non-client area window behaviour
8563
8564 2005-02-11  Peter Bartok  <pbartok@novell.com>
8565
8566         * KeysConverter.cs: Implemented
8567
8568 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8569
8570         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8571         * LinkLabel: Added missing attributes
8572         * MainMenu.cs: fixes ToString
8573         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8574         * ListBox.cs: fixes event position
8575         * TrackBar.cs: adds missing attributes and events
8576         
8577 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8578
8579         * MenuItem.cs: Use SystemInformation and bug fixes
8580         * MenuAPI.cs: Use SystemInformation and bug fixes
8581
8582 2005-02-09  Jackson Harper  <jackson@ximian.com>
8583
8584         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8585         their keystate otherwise things like VK_MENU get stuck "on".
8586
8587 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8588
8589         * ListBox.cs: Fixes AddRange bug
8590         
8591 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8592
8593         * ProgressBar.cs
8594                 - Add missing attributes
8595                 - Add missing method
8596                 
8597         * CheckedListBox.cs: Added missing attributes
8598                 - Add missing attributes
8599                 - Remove extra method
8600         
8601         * ComboBox.cs: Added missing attributes
8602         * VScrollBar.cs: Added missing attributes
8603         * ScrollBar.cs:  Added missing attributes
8604         * ListBox.cs: Fixes signature, add missing consts
8605         * LinkArea.cs:   Added missing attributes
8606         
8607
8608 2005-02-08  Peter Bartok  <pbartok@novell.com>
8609
8610         * Menu.cs: Added missing attributes
8611         * MainMenu.cs: Added missing attributes
8612         * GroupBox.cs: Added missing attributes
8613         * Label.cs: Added missing attributes
8614         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8615         * ColorDialog.cs:
8616           - Added Instance and Options properties
8617           - Added missing attributes
8618         * Cursor.cs: Made Serializable
8619         * NotifyIcon: Added missing attributes
8620         * MenuItem.cs: Added missing attributes
8621         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8622         * Panel.cs: Added Missing attributes
8623         * MonthCalendar.cs: Fixed CreateParams
8624
8625 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8626         
8627         * LinkLabel.cs:
8628                 - Fixes signature
8629                 - Fixes issues with links
8630                 - Adds the class attributes
8631
8632 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8633         
8634         * ComboBox.cs:
8635                 - Fixes button when no items available in dropdown
8636                 - Fixes repainting problems
8637                 - Adds the class attributes
8638                 
8639 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8640
8641         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8642         the current theme.  Cache these on startup.
8643
8644 2005-02-07  Jackson Harper  <jackson@ximian.com>
8645
8646         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8647         the scrollbar buttons when they are depressed.
8648
8649 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8650
8651         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8652         Get the display size from the main displayid.  We currently dont
8653         support multiple display configurations.
8654
8655 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8656
8657         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8658
8659 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8660
8661         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8662
8663 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8664
8665         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8666
8667 2005-02-04  Jackson Harper  <jackson@ximian.com>
8668
8669         * ThemeWin32Classic.cs: Respect the clipping rect when
8670         drawing. Only fill the intersection of clips and rects so there
8671         isn't a lot of large fills.
8672         * ScrollBar.cs: Pass the correct clipping rect to the theme
8673         engine. Remove some debug code.
8674
8675 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
8676         
8677         * DateTimePicker.cs:
8678                 - Fixed crash on DateTime.Parse, use Constructor instead
8679
8680 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8681         
8682         * MenuItem.cs:
8683         * MenuAPI.cs:
8684                 - Owner draw support (MeasureItem and DrawItem)
8685
8686 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
8687         
8688         *  Menu.cs:
8689                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
8690                 - Fixes MenuItems.Add range
8691         * MenuItem.cs:
8692                 - MergeMenu and Clone and CloneMenu functions
8693
8694 2005-02-03  Jackson Harper  <jackson@ximian.com>
8695
8696         * ScrollBar.cs: Make abstract
8697         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
8698         is abstract.
8699
8700 2005-02-03  Jackson Harper  <jackson@ximian.com>
8701
8702         * ScrollBar.cs: First part of my scrollbar fixups. This removes
8703         all the unneeded refreshes and uses invalidates with properly
8704         computed rects.
8705
8706 2005-02-03  Peter Bartok  <pbartok@novell.com>
8707
8708         * ComponentModel.cs: Added
8709         * IDataGridEditingService.cs: Added
8710         * Timer.cs: Added missing attributes
8711         * ToolTip.cs: Added missing attributes
8712
8713 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8714
8715         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
8716
8717 2005-02-03  Peter Bartok  <pbartok@novell.com>
8718
8719         * ListBox.cs: Added missing attributes
8720
8721 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
8722         
8723         * ListBox.cs:
8724                 - Fixes font height after font change
8725                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
8726                 
8727 2005-02-02  Peter Bartok  <pbartok@novell.com>
8728
8729         * HandleData.cs: Introduced static methods to allow class
8730           to be more self-contained and track it's own HandleData objects
8731         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
8732           HandleData to use new static methods
8733
8734 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
8735
8736         * Combobox.cs:
8737                 - Fixes default size and PreferredHeight
8738                 - Missing events
8739                 - ObjectCollection.Insert implementation
8740                 
8741         * ListControl.cs
8742                 - Fixes signature
8743         * ListBox.cs:
8744                 - Several fixes
8745                 - ObjectCollection.Insert implementation
8746                 - No selection after clean
8747                 - Small fixes
8748
8749 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8750
8751         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
8752
8753 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
8754
8755         * Combobox.cs:
8756                 - Caches ItemHeight calculation for OwnerDrawVariable
8757                 - Handles dropdown properly
8758                 - Fixes several minor bugs
8759
8760 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8761
8762         * ListBox.cs:
8763                 - Fixes 71946 and 71950
8764                 - Fixes changing Multicolumn on the fly
8765                 - Fixes keyboard navigation on Multicolumn listboxes
8766
8767 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8768         
8769         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
8770         crash reporter log.
8771
8772 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8773
8774         * XplatUIOSX.cs: Allow applications to actually exit.
8775
8776 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
8777
8778         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
8779         their parent at creation time rather than lazily later.  Fixes a major
8780         regression we were experiencing.
8781
8782 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
8783
8784         * ThemeWin32Classic.cs: more date time picker painting fixes
8785         * DateTimePicker.cs: more monthcalendar drop down fixes
8786         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
8787
8788 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
8789
8790         * ScrollBar.cs:
8791                 - When moving the thumb going outside the control should stop the moving
8792                 - Adds the firing of missing events
8793                 - Fixes no button show if Size is not specified
8794                 - End / Home keys for keyboard navigation
8795
8796 2005-01-30  Peter Bartok  <pbartok@novell.com>
8797
8798         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
8799           sanity check to prevent theoretical loop
8800         * XplatUIWin32.cs (SetVisible): Removed debug output
8801         * XplatUIX11.cs (SystrayChange): Added sanity check
8802         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
8803         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
8804           behaviour, valid until the X11 client window rewrite is done
8805         * TextBox.cs (ctor): Setting proper default foreground and background
8806           colors
8807
8808 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
8809
8810         * Theme: Added DrawDateTimePicker to interface
8811         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
8812         * DateTimePicker.cs: Created (still needs keys and painting code)
8813         * DateTimePickerFormat.cs: added
8814         * MonthCalendar.cs: fixed CreateParams for popup window mode
8815           
8816 2005-01-29  Peter Bartok  <pbartok@novell.com>
8817
8818         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
8819           this should also the calculations for ligher/darker
8820         * Theme.cs: Fixed defaults for ScrollBar widths/heights
8821
8822 2005-01-29  Peter Bartok  <pbartok@novell.com>
8823
8824         * ArrangeDirection.cs: Added
8825         * ArrangeStartingPositon.cs: Added
8826         * SystemInformation.cs: Implemented
8827         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8828           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
8829           used by SystemInformation class
8830         * X11Strucs.cs: Added XSizeHints structure
8831         * MenuAPI.cs:
8832           - Fixed CreateParams to make sure the menu window is always visible
8833           - TrackPopupMenu: Added check to make sure we don't draw the
8834             menu offscreen
8835
8836 2005-01-29  Peter Bartok  <pbartok@novell.com>
8837
8838         * HandleData.cs: Added method for altering invalid area
8839         * TextBoxBase.cs: Implemented TextLength
8840
8841 2005-01-28  Peter Bartok  <pbartok@novell.com>
8842
8843         * XplatUIX11.cs: Improvement over last patch, not sending
8844           the WM_PAINT directly anymore, instead we scroll any pending
8845           exposed areas and let the system pick out the WM_PAINT later
8846
8847 2005-01-28  Peter Bartok  <pbartok@novell.com>
8848
8849         * SWF.csproj: Deleted, no longer used. Instead,
8850           Managed.Windows.Forms/SWF.csproj should be used
8851         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
8852           directly, to avoid a potential race condition with the next
8853           scroll
8854
8855 2005-01-28  Peter Bartok  <pbartok@novell.com>
8856
8857         * XplatUI.cs: Made class internal
8858
8859 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
8860
8861         * CheckedListBox.cs:
8862                 - Draw focus
8863                 - Fixed Drawing
8864                 - Missing methods and events
8865
8866 2005-01-27  Peter Bartok  <pbartok@novell.com>
8867
8868         * Application.cs (Run): Don't use form if we don't have one
8869
8870 2005-01-27  Peter Bartok  <pbartok@novell.com>
8871
8872         * TextBoxBase.cs (get_Lines): Fixed index off by one error
8873
8874 2005-01-27  Peter Bartok  <pbartok@novell.com>
8875
8876         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
8877         * GridItem.cs: Added; Patch by Jonathan S. Chambers
8878         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
8879         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
8880         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
8881         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
8882         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8883         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8884         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8885         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8886         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
8887         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
8888
8889 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8890
8891         * Combobox.cs:
8892                 - Draw focus on Simple Combobox
8893                 - Fixes drawing issues
8894                 - fixes 71834
8895
8896 2005-01-27  Peter Bartok  <pbartok@novell.com>
8897
8898         * Form.cs:
8899           - Place window in default location, instead of hardcoded 0/0
8900           - Send initial LocationChanged event
8901         * Control.cs:
8902           - UpdateBounds after creation to find out where the WM placed us
8903           - Make sure that if the ParentForm changes location the Form
8904             is notified
8905         * XplatUIX11.cs: XGetGeometry will not return the coords relative
8906             to the root, but to whatever the WM placed around us.
8907             Translate to root coordinates before returning toplevel
8908             coordinates
8909         * XplatUIWin32.cs: Removed debug output
8910         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
8911           flag to GetWindowPos, to allow translation of coordinates on X11
8912
8913 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
8914
8915         * ListBox.cs: connect LostFocus Event
8916
8917 2005-01-27  Peter Bartok  <pbartok@novell.com>
8918
8919         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
8920           XplatUIX11.cs: Extended the Systray API
8921         * Form.cs: Removed debug output
8922         * Application.cs: Fixed focus assignment, always need to call
8923           XplatUI.Activate() since Form.Activate() has rules that may
8924           prevent activation
8925         * NotifyIcon.cs: Should be complete now
8926         * ToolTip.cs: Worked around possible timer bug
8927
8928 2005-01-27  Jackson Harper  <jackson@ximian.com>
8929
8930         * TabControl.cs:
8931         - Only invalidate the effected tabs when the
8932         selected index changes. This reduces drawing and gets rid of some
8933         flicker.
8934         - Only refresh if the tabs need to be shifted, otherwise only
8935         invalidate the slider button.
8936         - On windows the tabs are not filled to right if the slider is
8937         visible.
8938         
8939 2005-01-27  Jackson Harper  <jackson@ximian.com>
8940
8941         * TabControl.cs: Only refresh on mouseup if we are showing the
8942         slider. Also only invalidate the button whose state has changed.
8943
8944 2005-01-26  Peter Bartok  <pbartok@novell.com>
8945
8946         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
8947         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
8948           and SystrayRemove() methods
8949         * XplatUIOSX.cs: Stubbed Systray methods
8950         * XplatUIX11.cs:
8951           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
8952             methods
8953           - Fixed broken XChangeProperty calls (marshalling messed up things)
8954         * X11Structs.cs: Added enums and structs required for Size hinting
8955         * NotifyIcon.cs: Added & implemented
8956
8957 2005-01-26  Jackson Harper  <jackson@ximian.com>
8958
8959         * TabControl.cs: Space vertically layed out tabs properly.
8960
8961 2005-01-26  Peter Bartok  <pbartok@novell.com>
8962
8963         * Form.cs (CreateClientParams): Always set the location to 0,0
8964           since we're a child window.
8965
8966         * Control.cs (SetVisibleCore): Always explicitly setting the location
8967           of a toplevel window, apparently X11 doesn't like to move windows
8968           while they're not mapped.
8969
8970 2005-01-26  Jackson Harper  <jackson@ximian.com>
8971
8972         * TabControl.cs: Implement FillToRight size mode with vertically
8973         rendered tabs.
8974
8975 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8976
8977         * ControlPaint.cs, ThemeWin32Classic.cs
8978                 - Fixes DrawFocusRectangle
8979
8980 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
8981
8982         * MenuAPI.cs:
8983                 - MenuBar tracking only starts when item is first clicked
8984                 - Fixes menu hidding for multiple subitems
8985                 - Unselect item in MenuBar when item Executed
8986                 - Fixes bug 71495
8987
8988 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
8989
8990         * ListControl.cs:
8991                 - IsInputKey for ListBox
8992         * ListBox.cs:
8993                 - Focus item
8994                 - Shift and Control item selection
8995                 - Implement SelectionMode.MultiExtended
8996                 - Fixes RightToLeft
8997         * ComboBox.cs:
8998                 - IsInputKey implemented
8999                 - Do not generate OnTextChangedEdit on internal txt changes
9000                 
9001 2005-01-23  Peter Bartok  <pbartok@novell.com>
9002
9003         * AccessibleObject.cs: Partially implemented Select()
9004         * MonthCalendar.cs: Added missing attributes and events
9005         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9006           form can properly override CreateParams.
9007         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9008           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9009           Control performs Invalidate & Update
9010         * NativeWindow (CreateHandle): Added special handling for Form
9011           and Form.FormParent classes to allow overriding of From.CreateParams
9012         * Control.cs:
9013           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9014             name 'owner'
9015           - ControlNativeWindow: Added Owner property
9016           - Removed usage of Refresh() on property changes, changed into
9017             Invalidate(), we need to wait until the queue is processed for
9018             updates, direct calls might cause problems if not all vars for
9019             Paint are initialized
9020           - Added call to UpdateStyles() when creating the window, to set any
9021             styles that CreateWindow might have ignored.
9022           - Added support for Form CreateParent overrides to UpdateStyles()
9023         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9024           CreateParams are now properly overridable
9025         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9026           CreateParams are now properly overridable
9027
9028 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9029
9030         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9031         OnTextBoxChanged.
9032
9033         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9034         recursive invocation that I have not figured out yet.
9035
9036         Reset the timer when not using (it was accumulating).
9037
9038
9039         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9040         user has made changes that require validation.
9041
9042         Reset changing to avoid loops.
9043
9044 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9045
9046         * NumericUpDown.cs: Display value at startup.
9047
9048         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9049         ValidateEditText.
9050
9051         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9052         filled in.  Added some basic parsing of text.
9053
9054         Still missing the OnXXX method overrides, and figuring out the
9055         events that must be emitted.
9056
9057         * UpDownBase.cs: Handle UserEdit on the Text property.
9058         
9059 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9060
9061         * ComboBox.cs:
9062           - Fixes IntegralHeight
9063           - ToString method
9064
9065 2005-01-21  Jackson Harper  <jackson@ximian.com>
9066
9067         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9068         is set so that the page visibility is updated and the tabs are
9069         sized correctly.
9070
9071 2005-01-21  Jackson Harper  <jackson@ximian.com>
9072
9073         * TabControl.cs: Use cliping rectangle for blitting. Give the
9074         theme the clipping rect so we can do clipping while
9075         drawing. Remove some debug code.
9076
9077 2005-01-21  Jackson Harper  <jackson@ximian.com>
9078
9079         * TabPage.cs: Add a new method so tab pages can force the tab
9080         control to recalculate the tab page sizes.
9081         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9082         sizes.
9083
9084 2005-01-20  Jackson Harper  <jackson@ximian.com>
9085
9086         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9087
9088 2005-01-20  Jackson Harper  <jackson@ximian.com>
9089
9090         * TreeView.cs: Set the bounds for nodes properly. They were
9091         getting screwed up when checkboxes were not enabled, but images
9092         were.
9093
9094 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9095
9096         * ListBox.cs:
9097                 - Owner draw support
9098                 - Fixes
9099                 
9100 2005-01-20  Jackson Harper  <jackson@ximian.com>
9101
9102         * XplatUIStructs.cs: More misc keys
9103         * X11Keyboard.cs: Ignore some control keys.
9104
9105 2005-01-20  Jackson Harper  <jackson@ximian.com>
9106
9107         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9108         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9109
9110 2005-01-19  Peter Bartok  <pbartok@novell.com>
9111
9112         * Control.cs: Un-selecting the control when it is loosing focus
9113
9114 2005-01-19  Jackson Harper  <jackson@ximian.com>
9115
9116         * TreeView.cs: Hook up to the text controls leave event so we can
9117         end editing when the users clicks outside the text box.
9118         
9119 2005-01-19  Jackson Harper  <jackson@ximian.com>
9120
9121         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9122         get set in the conversion array.
9123
9124 2005-01-19  Peter Bartok  <pbartok@novell.com>
9125
9126         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9127           focus is properly set
9128         * Button.cs:
9129           - Added missing attributes
9130           - removed styles, those are already set in the base class
9131         * ButtonBase.cs:
9132           - Added missing attributes
9133           - Added clip window styles
9134         * CheckBox.cs: Added missing attributes
9135         * CommonDialog.cs:
9136           - FormParentWindow.CreateParams: Added required clip styles
9137         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9138           also filters modifier keys
9139         * MessageBox.cs:
9140           - Added assignment of Accept and Cancel button to enable Enter
9141             and Esc keys in MessageBox dialogs
9142           - FormParentWindow.CreateParams: Added required clip styles
9143         * RadioButton.cs: Added missing attributes
9144         * TextControl.cs: No longer draws selection if control does not
9145           have focus
9146         * TextBoxBase.cs:
9147           - Now draws simple rectangle around test area to make it obvious
9148             there's a control. This is a hack until we properly support borders
9149           - A few simple fixes to support selections better, now erases selected
9150             text when typing, and resets selection when using movement keys
9151
9152 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9153
9154         * UpDownBase.cs: Added some new properties.
9155
9156         * DomainUpDown.cs: Implement a lot to get my test working.
9157
9158 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9159
9160         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9161
9162 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9163
9164         * OSXStructs (WindowAttributes): Fixed csc complaints
9165
9166 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9167
9168         * XplayUIOSX.cs:
9169           OSXStructs.cs: Initial refactor to move enums and consts into
9170           OSXStructs and use them in the driver for greater readability.
9171
9172 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9173
9174         * XplatUIOSX.cs: Initial support for Standard Cursors.
9175         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9176
9177 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9178
9179         * ComboBox.cs: ability to change style when the ctrl is already
9180         created, missing methods and events, bug fixes, signature fixes
9181
9182 2005-01-19  Peter Bartok  <pbartok@novell.com>
9183
9184         * Cursors.cs (ctor): Added ctor to fix signature
9185
9186 2005-01-18  Peter Bartok  <pbartok@novell.com>
9187
9188         * Button.cs: Implemented DoubleClick event
9189         * ButtonBase.cs:
9190           - Fixed keyboard handling to behave like MS, where the press of
9191             Spacebar is equivalent to a mousedown, and the key release is
9192             equivalent to mouseup. Now a spacebar push will give the same
9193             visual feedback like a mouse click.
9194           - Added missing attributes
9195           - Added ImeModeChanged event
9196           - Added support for generating DoubleClick event for derived classes
9197         * CheckBox.cs:
9198           - Implemented DoubleClick event
9199           - Added missing attributes
9200         * CommonDialog.cs: Added missing attribute
9201         * ContextMenu.cs: Added missing attributes
9202         * RadioButton.cs:
9203           - AutoChecked buttons do not allow to be unselected when clicked
9204             (otherwise we might end up with no selected buttons in a group)
9205           - Added missing attributes
9206           - Implemented DoubleClickEvent
9207         * ThreadExceptionDialog.cs: Enabled TextBox code
9208
9209 2005-01-18  Peter Bartok  <pbartok@novell.com>
9210
9211         * Form.cs: Removed debug output
9212         * Button.cs: Added support for DoubleClick method
9213
9214 2005-01-18  Peter Bartok  <pbartok@novell.com>
9215
9216         * Form.cs:
9217           - Added method to parent window that allows triggering size
9218             calculations when a menu is added/removed
9219           - set_Menu: Cleaned up mess from early days of Form and Control,
9220             now properly triggers a recalc when a menu is added/removed
9221           - Added case to select form itself as focused form if no child
9222             controls exist
9223           - Added PerformLayout call when showing dialog, to ensure properly
9224             placed controls
9225         * Control.cs:
9226           - Select(): Made internal so Form can access it
9227           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9228             status
9229         * Application.cs (Run): Removed hack and calls PerformLayout instead
9230           to trigger calculation when Form becomes visible
9231
9232 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9233
9234         * ComboBox.cs: fixes for ownerdraw
9235
9236 2005-01-18  Peter Bartok  <pbartok@novell.com>
9237
9238         * TextControl.cs:
9239           - Sentinel is no longer static, each Document gets it's own, this
9240             avoids locking or alternatively overwrite problems when more
9241             than one text control is used simultaneously.
9242           - Switched to use Hilight and HilightText brushes for text selection
9243
9244         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9245
9246 2005-01-18  Peter Bartok  <pbartok@novell.com>
9247
9248         * Control.cs:
9249           - Hooked up the following events:
9250                 o ControlAdded
9251                 o ControlRemoved
9252                 o HandleDestroyed
9253                 o ImeModeChanged
9254                 o ParentChanged
9255                 o TabStopChanged
9256                 o Invalidated
9257                 o SystemColorsChanged
9258                 o ParentFontChanged
9259                 o Move
9260           - Removed debug output
9261           - Added a call to the current theme's ResetDefaults when a color change
9262             is detected
9263         * Form.cs: Now setting the proper ImeMode
9264         * Theme.cs: Defined a method to force recreation of cached resources
9265           and rereading of system defaults (ResetDefaults())
9266         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9267
9268 2005-01-17  Peter Bartok  <pbartok@novell.com>
9269
9270         * Control.cs: Added missing attributes
9271
9272 2005-01-17  Jackson Harper  <jackson@ximian.com>
9273
9274         * TreeNode.cs: Implement editing. Add missing properties selected
9275         and visible.
9276         * TreeView.cs: Implement node editing. Also some fixes to use
9277         Invalidate (invalid area) instead of Refresh when selecting.
9278
9279 2005-01-17  Peter Bartok  <pbartok@novell.com>
9280
9281         * Control.cs:
9282           - Implemented InvokeGotFocus() method
9283           - Implemented InvokeLostFocus() method
9284           - Implemented InvokePaint() method
9285           - Implemented InvokePaintBackground() method
9286           - Implemented InvokeClick() method
9287           - Implemented FindForm() method
9288           - Implemented RectangleToClient() method
9289           - Implemented ClientToRectangle() method
9290           - Implemented ResetBackColor() method
9291           - Implemented ResetCursor() method
9292           - Implemented ResetFont() method
9293           - Implemented ResteForeColor() method
9294           - Implemented ResetImeMode() method
9295           - Implemented ResetLeftToRight() method
9296           - Implemented ResetText() method
9297           - Implemented Scale() methods
9298           - Implemented ScaleCore() method
9299           - Implemented Update() method
9300           - Removed unused variables
9301           - Stubbed AccessibilityNotifyClients and
9302             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9303             with those yet)
9304           - Now setting proper default for RightToLeft property
9305           - Fixed bug in SetClientSizeCore that would cause windows to get
9306             really big
9307           - Now sending Click/DoubleClick events
9308           - Now selecting controls when left mouse button is clicked on
9309             selectable control
9310         * AccessibleEvents.cs: Added
9311         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9312         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9313         * XplatUIWin32.cs: Implemented UpdateWindow() method
9314         * XplatUIX11.cs: Implemented UpdateWindow() method
9315         * Form.cs: Removed stray semicolon causing CS0162 warning
9316         * ThemeWin32Classic.cs: Fixed unused variable warnings
9317         * ScrollableControl.cs: Now calls base method for ScaleCore
9318         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9319           style to avoid interference with internal click handler (which is
9320           different than standard Control click handling)
9321         * RadioButton.cs:
9322           - Now unchecks all sibling radio buttons when control is
9323             selected (Fixes #68756)
9324           - Removed internal tabstop variable, using the one inherited from
9325             Control
9326
9327 2005-01-17  Jackson Harper  <jackson@ximian.com>
9328
9329         * NavigateEventArgs.cs: Fix base type.
9330         * LinkLabel.cs: Sig fix
9331         
9332 2005-01-17  Jackson Harper  <jackson@ximian.com>
9333
9334         * TreeView.cs: Only invalidate the effected nodes bounds when
9335         selecting nodes.
9336
9337 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9338
9339         * XplatUIWin32.cs: fixes Win32 marshaling
9340         * XplatUIX11.cs: fixes method signature
9341
9342 2005-01-17  Peter Bartok  <pbartok@novell.com>
9343
9344         * XplatUIX11.cs: Clean up resources when we no longer need them
9345
9346 2005-01-17  Peter Bartok  <pbartok@novell.com>
9347
9348         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9349           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9350           and DestroyCursor() methods.
9351         * Cursor.cs: Partially implemented, now supports standard cursors;
9352           still contains some debug code
9353         * Cursors.cs: Implemented class
9354         * Control.cs:
9355           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9356             appropriate cursor
9357           - Implemented Cursor property
9358           - Replaced break; with return; more straightforwar and possibly
9359             faster
9360           - Now properly setting the result for WM_HELP
9361         * X11Structs.cs: Added CursorFontShape enum
9362         * XplatUIStructs.cs:
9363           - Added StdCursor enum (to support DefineStdCursor() method)
9364           - Added HitTest enum (to support sending WM_SETCURSOR message)
9365         * XplatUIX11.cs:
9366           - Now sends the WM_SETCURSOR message
9367           - Implemented new cursor methods
9368         * XplatUIOSX.cs: Stubbed new cursor methods
9369         * XplatUIWin32.cs:
9370           - Implemented new cursor methods
9371           - Added GetSystemMetrics function and associated enumeration
9372
9373 2005-01-15  Peter Bartok  <pbartok@novell.com>
9374
9375         * Control.cs:
9376           - WndProc(): Now handles EnableNotifyMessage
9377           - SelectNextControl(): Fixed bug where if no child or sibling
9378             controls exist we looped endlessly
9379
9380 2005-01-14  Jackson Harper  <jackson@ximian.com>
9381
9382         * TreeView.cs: Recalculate the tab pages when a new one is added
9383         so that the proper bounding rects are created.
9384
9385 2005-01-14  Jackson Harper  <jackson@ximian.com>
9386
9387         * TreeView.cs: Draw a gray box instead of a grip in the lower
9388         right hand corner when there are both horizontal and vertical
9389         scroll bars.
9390
9391 2005-01-14  Jackson Harper  <jackson@ximian.com>
9392
9393         * Control.cs: When erasing backgrounds use FromHwnd instead of
9394         FromHdc when there is a NULL wparam. This occurs on the X driver.
9395         * XplatUIX11.cs: Set the wparam to NULL.
9396
9397 2005-01-13  Jackson Harper  <jackson@ximian.com>
9398
9399         * PictureBox.cs: Implement missing methods (except ToString, need
9400         to test that on windows) and events. When visibility is changed we
9401         need to redraw the image because the buffers are killed. When size
9402         is changed refresh if the sizemode needs it.
9403
9404 2005-01-13  Peter Bartok  <pbartok@novell.com>
9405
9406         * Control.cs (SelectNextControl): Was using wrong method to select
9407           a control
9408
9409 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9410
9411         * ComboBox.cs: fixes dropstyle
9412
9413 2005-01-13  Peter Bartok  <pbartok@novell.com>
9414
9415         * Form.cs:
9416           - Implemented Select() override
9417           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9418           - Now sets keyboard focus on startup
9419         * Control.cs (SelectNextControl): Now properly handles directed=true
9420         * TextBoxBase.cs:
9421           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9422           - Added (really bad) focus rectangle (mostly for testing)
9423         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9424           to enforce redraw on focus changes
9425         * ContainerControl.cs:
9426           - Fixed detection of Shift-Tab key presses
9427           - Fixed traversal with arrow keys
9428         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9429           gonna keep this or if it's complete yet
9430         
9431 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9432
9433         * ComboBox.cs: missing properties, fixes
9434
9435 2005-01-13  Peter Bartok  <pbartok@novell.com>
9436
9437         * Panel.cs (ctor): Setting Selectable window style to off
9438         * Splitter.cs (ctor): Setting Selectable window style to off
9439         * GroupBox.cs (ctor): Setting Selectable window style to off
9440         * Label.cs (ctor): Setting Selectable window style to off
9441
9442 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9443
9444         * UpDownBase.cs (InitTimer): If the timer has been already
9445         created, enable it.
9446
9447         Use a TextBox instead of a Label.
9448
9449 2005-01-12  Jackson Harper  <jackson@ximian.com>
9450
9451         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9452         draw the connecting node lines (when ShowLines is true).
9453         * TreeNode.cs: The nodes index can now be updated. This is used
9454         when a node collection is sorted.
9455         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9456         insert or an existing unsorted node collection can be sorted.
9457         
9458 2005-01-12  Peter Bartok  <pbartok@novell.com>
9459
9460         * ContainerControl.cs: Implemented ProcessDialogKeys()
9461
9462 2005-01-12  Peter Bartok  <pbartok@novell.com>
9463
9464         * Control.cs:
9465           - Implemented SelectNextControl() method
9466           - Several focus related bug fixes
9467           - Fixed Docking calculations to match MS documentation and
9468             behaviour
9469
9470 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9471
9472         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9473         bug fixes
9474
9475 2005-01-12  Peter Bartok  <pbartok@novell.com>
9476
9477         * Control.cs:
9478           - Fixed broken Contains() method
9479           - Implemented GetNextControl() method. Finally. This is the pre-
9480             requisite for focus handling.
9481
9482 2005-01-12  Peter Bartok  <pbartok@novell.com>
9483
9484         * OSXStrucs.cs: Added
9485
9486 2005-01-12  Peter Bartok  <pbartok@novell.com>
9487
9488         * XplatUIWin32.cs:
9489           - Removed PeekMessageFlags
9490           - Implemented SetWindowStyle() method
9491         * XplatUIStructs.cs: Added PeekMessageFlags
9492         * X11Structs: Added missing border_width field to XWindowChanges struct
9493         * XplatUIX11.cs:
9494           - PeekMessage: Now throws exception if flags which are not yet
9495             supported are passed
9496           - Implemented SetWindowStyle() method
9497           - Fixed SetZOrder to handle AfterHwnd properly
9498         * XplatUI.cs: Added SetWindowStyle() method
9499         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9500         * Control.cs:
9501           - Implemented UpdateStyles() method
9502           - Implemented UpdateZOrder() method
9503         * XplatUIOSX.cs: Added SetWindowStyle() stub
9504
9505 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9506
9507         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9508         button mouse).
9509
9510
9511 2005-01-11  Jackson Harper  <jackson@ximian.com>
9512
9513         * TreeView.cs: Still need to draw lines to siblings even if out of
9514         the current node is out of the clip.
9515
9516 2005-01-11  Jackson Harper  <jackson@ximian.com>
9517
9518         * TreeView.cs: When setting the hbar/vbar/grip position use
9519         SetBounds so that perform layout is only called once. Also suspend
9520         and resume layout so layout is only done once for all controls.
9521         - Removed some debug fluff
9522         * SizeGrip.cs: Call base implmentation in overriding methods.
9523         - When visibility is changed the drawing buffers are killed so we
9524         need to redraw.
9525
9526 2005-01-11  Jackson Harper  <jackson@ximian.com>
9527
9528         * TreeView.cs: Calculate the open node count while drawing. This
9529         saves us an entire tree traversal for every paint operation. Use
9530         a member var for the open node count so less vars are passed around.
9531
9532 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9533
9534         * MonthCalendar.cs:
9535         - fixed selection to use mousemove, not mouse polling on timer
9536         * ThemeWin32Classic.cs
9537         - removed redundant unused variable "no_more_content"
9538         
9539 2005-01-11  Peter Bartok  <pbartok@novell.com>
9540
9541         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9542           are pending, so it now calls PeekMessage instead of GetMessage;
9543           implemented a incomplete version of PeekMessage
9544         
9545 2005-01-11  Peter Bartok  <pbartok@novell.com>
9546
9547         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9548           I18n issues
9549         * TextBoxBase.cs: Added sending of TextChanged event
9550
9551 2005-01-10  Jackson Harper  <jackson@ximian.com>
9552
9553         * TreeView.cs: Try not to draw outside the clipping rectangle on
9554         each node element.
9555
9556 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9557
9558         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9559
9560 2005-01-10  Jackson Harper  <jackson@ximian.com>
9561
9562         * TreeView.cs:
9563         - Implement fast scrolling. Now only the newly
9564         exposed nodes are drawn and the old image is moved using the
9565         XplatUI::ScrollWindow method.
9566         - Factor in height of nodes when calculating whether or not the
9567         node is in the clipping rect.
9568
9569 2005-01-10  Jackson Harper  <jackson@ximian.com>
9570
9571         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9572
9573 2005-01-10  Peter Bartok  <pbartok@novell.com>
9574
9575         * Application.cs: Added temporary hack to resolve all our resize
9576           required issues on startup. This will get fixed properly at
9577           some point in the future
9578
9579 2005-01-10  Jackson Harper  <jackson@ximian.com>
9580
9581         * SizeGrip.cs: New internal class that is used as a sizing
9582         grip control...hence the name.
9583
9584 2005-01-10  Peter Bartok  <pbartok@novell.com>
9585
9586         * Control.cs: Implemented proper TabIndex handling, now assigning
9587           a tabindex when a control is added to a container
9588         * GroupBox.cs (ctor): Now sets the Container style bit, required
9589           for Control.GetNextControl()
9590
9591 2005-01-09  Jackson Harper  <jackson@ximian.com>
9592
9593         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9594
9595 2005-01-09  Peter Bartok <pbartok@novell.com>
9596
9597         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9598           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9599           an overload for ScrollWindow to allow only scrolling a rectangle
9600
9601 2005-01-09  Peter Bartok <pbartok@novell.com>
9602
9603         * Form.cs:
9604           - Implemented SetDesktopBounds method
9605           - Implemented SetDesktopLocation method
9606
9607 2005-01-08  Jackson Harper  <jackson@ximian.com>
9608
9609         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9610         the node count has changed, this removes to VScroll::Refresh calls
9611         when drawing.
9612
9613 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9614
9615         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9616
9617 2005-01-07  Jackson Harper  <jackson@ximian.com>
9618
9619         * TreeNode.cs: Just update the single node when it is
9620         checked. Don't refresh after toggling, the Expand/Collapse already
9621         handles this.
9622         * TreeView.cs: Respect clipping a little more when drawing. Try
9623         not to redraw things that don't need to be redrawn. Just hide the
9624         scrollbars when they are no longer needed instead of removing
9625         them, so they don't have to be created again and again.
9626         
9627 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9628
9629         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9630         coordinates to window space to place the caret properly, FIXED.
9631         Implement GetWindowState & SetWindowState
9632
9633 2005-01-06  Peter Bartok <pbartok@novell.com>
9634
9635         * Form.cs:
9636           - Implemented ClientSize property
9637           - Implemented DesktopBounds property
9638           - Implemented DesktopLocation property
9639           - Implemented IsRestrictedWindow property
9640           - Implemented Size property
9641           - Implemented TopLevel property
9642           - Implemented FormWindowState property
9643         * Control.cs:
9644           - Implemented GetTopLevel() method
9645           - Implemented SetTopLevel() method
9646         * X11Structs.cs (Atom):
9647           - Added AnyPropertyType definition
9648           - Added MapState definiton and updated XWindowAttribute struct
9649         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9650         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9651         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9652         * XplatUIWin32.cs:
9653           - Implemented GetWindowState() and SetWindowState() methods
9654           - Fixed Win32GetWindowLong return type
9655         * XplatUIX11.cs:
9656           - Introduced central function for sending NET_WM messages
9657           - Implemented GetWindowState() and SetWindowState() methods
9658         * TextBoxBase.cs (set_Lines):
9659           - Now uses Foreground color for text added via Text property (Duh!)
9660           - Added code to remember programmatically requested size (fixes
9661             behaviour when Multiline is set after Size)
9662           - Added AutoSize logic
9663
9664 2005-01-06  Jackson Harper  <jackson@ximian.com>
9665
9666         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9667
9668 2005-01-06  Jackson Harper  <jackson@ximian.com>
9669
9670         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
9671         set to less then 0.
9672
9673 2005-01-06  Jackson Harper  <jackson@ximian.com>
9674
9675         * ScrollableControl.cs: Lazy init the scrollbars.
9676         
9677 2005-01-06  Jackson Harper  <jackson@ximian.com>
9678
9679         * Theme.cs: Speed up getting pens and solid brushes, by using
9680         their ARGB as a hash instead of tostring and not calling Contains.
9681
9682 2005-01-06  Peter Bartok <pbartok@novell.com>
9683
9684         * Form.cs:
9685           - Implemented OnActivated and OnDeactivate event trigger
9686           - Implemented Activate() method
9687           - Fixed ShowDialog() to activate the form that was active before
9688             the dialog was shown
9689         * XplatUIX11.cs:
9690           - Added global active_window var that tracks the currently active
9691             X11 window
9692           - Now always grabs Property changes from the root window to always
9693             catch changes on the active window property
9694           - Added code to PropertyNotify handler to send Active/Inactive
9695             messages when state changes. This puts X11 and Win32 en par on
9696             WM_ACTIVATE notifications (except for double notifications when
9697             the user clicks away from our modal window to another one of our
9698             windows)
9699
9700 2005-01-05  Jackson Harper  <jackson@ximian.com>
9701
9702         * ImageList.cs: Implment ctor
9703
9704 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9705
9706         * XplatUIOSX.cs: Implement Activate/SetTopmost
9707
9708 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9709
9710         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
9711
9712 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
9713
9714         * XplatUIOSX.cs: Implement GetActive/SetFocus.
9715
9716 2005-01-05  Peter Bartok <pbartok@novell.com>
9717
9718         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
9719           XplatUIOSX.cs: Added GetActive method to return the currently
9720           active window for the application (or null, if none is active)
9721         * Form.cs:
9722           - Implemented ActiveForm
9723           - Commented out owner assignment for modal dialogs (causes problems
9724             on Win32, since the owner will be disabled)
9725           - Reworked some Active/Focus handling (still incomplete)
9726         * CommonDialog.cs: Commented out owner assignment for modal dialogs
9727           (causes problems on Win32, since the owner will be disabled)
9728         * IWin32Window: Added ComVisible attribute
9729
9730 2005-01-05  Peter Bartok <pbartok@novell.com>
9731
9732         * ToolTip.cs (WndProc): Enable setting focus now that we have the
9733           required XplatUI functions.
9734
9735 2005-01-05  Peter Bartok <pbartok@novell.com>
9736
9737         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
9738           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
9739           to implement focus and activation handling; still incomplete and
9740           with debug output
9741
9742 2005-01-04  Peter Bartok <pbartok@novell.com>
9743
9744         * TextBoxBase.cs: Changed access level for Document property to
9745           match switch to internal for TextControl
9746
9747 2005-01-04  Peter Bartok <pbartok@novell.com>
9748
9749         * AccessibleObject: Added ComVisible attribute
9750
9751 2005-01-04  Jackson Harper  <jackson@ximian.com>
9752
9753         * X11Keyboard.cs: Remove unneeded var.
9754
9755 2005-01-04  Jackson Harper  <jackson@ximian.com>
9756
9757         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
9758         but PAINT.
9759         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
9760         ClientMessage. This makes apps exit cleanly (more often).
9761         
9762 2005-01-04  Jackson Harper  <jackson@ximian.com>
9763
9764         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
9765         handling focus, return correct colors and fonts,
9766         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
9767         handle selection, horizontal scrolling, and mouse interaction.
9768
9769 2005-01-04  Peter Bartok <pbartok@novell.com>
9770
9771         * ICommandExecutor.cs: Added
9772         * IDataGridColumnStyleEditingNotificationService.cs: Added
9773         * IFeatureSupport.cs: Added
9774         * IFileReaderService.cs: Added
9775         * IDataObject.cs: Added ComVisible attribute
9776         * AmbientProperties.cs: Added
9777         * BaseCollection.cs: Added missing attributes
9778         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
9779         * BaseCollection.cs: Added missing attributes
9780         * Binding.cs: Added TypeConverter attribute
9781         * BindingContext.cs: Added DefaultEvent attribute
9782         * BindingsCollection.cs: Added DefaultEvent attribute
9783         * Button.cs: Added DefaultValue attribute
9784         * DragEventArgs.cs: Added ComVisible attribute
9785         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
9786         * KeyEventArgs.cs: Added ComVisible attribute
9787         * KeyPressEventArgs.cs: Added ComVisible attribute
9788         * MouseEventArgs.cs: Added ComVisible attribute
9789         * NavigateEventArgs.cs: Added
9790         * NavigateEventHandler.cs: Added
9791         * FeatureSupport.cs: Added
9792         * OSFeature.cs: Added
9793         * Theme.cs: Added abstract Version property to support OSFeature
9794         * ThemeWin32Classic.cs: Added Version property to
9795           support OSFeature.Themes
9796         * ProgressBar.cs: Removed OnPaintBackground override, not required since
9797           the proper styles to avoid background drawing are set, also doesn't
9798           match MS signature
9799         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
9800         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
9801         * ScrollEventArgs.cs: Added ComVisible attribute
9802         * SplitterEventArgs.cs: Added ComVisible attribute
9803         * AccessibleSelection.cs: Added Flags attribute
9804         * Appearance.cs: Added ComVisible attribute
9805         * Border3DSide.cs: Added ComVisible attribute
9806         * Border3DStyle.cs: Added ComVisible attribute
9807         * BorderStyle.cs: Added ComVisible attribute
9808         * DragAction.cs: Added ComVisible attribute
9809         * ErrorBlinkStyle.cs: Added
9810         * ScrollEventType.cs: Added ComVisible attribute
9811         * AnchorStyles.cs: Added Editor attribute
9812         * DockStyle.cs: Added Editor attribute
9813         * HorizontalAlignment.cs: Added ComVisible attribute
9814         * HelpEventArgs.cs: Added ComVisible attribute
9815         * PaintEventArgs.cs: Added IDisposable
9816
9817 2005-01-04  Peter Bartok <pbartok@novell.com>
9818
9819         * TextControl.cs: Switched Line, LineTag and Document classes to
9820           internal
9821
9822 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9823
9824         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
9825         Simple mode, fixes, IntegralHeight, etc.
9826
9827 2005-01-04  Peter Bartok <pbartok@novell.com>
9828
9829         * TextBoxBase.cs: Using proper font variable now
9830
9831 2005-01-04  Peter Bartok <pbartok@novell.com>
9832
9833         * Form.cs (ShowDialog): Set parent to owner, if provided
9834         * GroupBox.cs: Removed unused vars
9835         * TextControl.cs:
9836           - Added GetHashCode() for Document and LineTag classes
9837           - Removed unused variables
9838           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
9839             to allow translation between continuous char position and line/pos
9840         * CheckBox.cs: Removed vars that are provided by base class
9841         * RadioButton.cs: Removed vars that are provided by base class, added
9842           new keyword where required
9843         * LinkLabel.cs: Added new keyword where required
9844         * Control.cs (WndProc): Removed unused variable
9845         * TextBoxBase.cs:
9846           - Finished SelectionLength property
9847           - Implemented SelectionStart property
9848           - Implemented Text property
9849           - Removed unused vars
9850         * MessageBox.cs: Added new keyword where required
9851         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
9852           WndProc signature
9853         * MenuAPI.cs: Added new keyword where required
9854         * ButtonBase.cs: Removed vars that are provided by base class, added
9855           new keyword where required
9856         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
9857           argument to double, to allow compiling with csc 2.0 (Atsushi ran
9858           into this)
9859         * Application.cs (Run): Now triggers the ThreadExit event
9860         * CommonDialog.cs: Added new keyword where required; now properly sets
9861           parent (owner) for dialog
9862         * XplatUIX11.cs: Commented out unused vars
9863         * StatusBar.cs: Fixed signature for Text property
9864         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
9865
9866 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
9867
9868         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
9869         TrackBar.cs, MonthCalendar.cs: remove unused vars
9870
9871 2005-01-03  Jackson Harper  <jackson@ximian.com>
9872
9873         * ThemeWin32Classic.cs:
9874         * X11Keyboard.cs: Remove unused vars.
9875
9876 2005-01-03  Peter Bartok  <pbartok@novell.com>
9877
9878         * TextBox.cs:
9879           - set_Text: Tied into TextControl
9880           - set_TextAlignment: Tied into TextControl
9881         * TextControl.cs:
9882           - Added alignment properties and implemented alignment handling
9883             and drawing (still has a bug, not generating proper expose events)
9884           - Added new Line() constructor to allow passing the line alignment
9885           - Fixed selection setting, properly handling end<start now
9886           - Added aligment considerations to RecalculateDocument()
9887         * TextBoxBase.cs:
9888           - Now properly enforces control height for single line controls
9889           - Added support for CharacterCasing
9890           - Added IsInputKey override
9891           - Fixed Keys.Enter logic
9892           - Added SetBoundsCore override
9893           - Fixed mouse selection handling
9894
9895 2005-01-03  Jackson Harper  <jackson@ximian.com>
9896
9897         * TreeView.cs:
9898           - Collapse and uncheck all nodes when CheckBoxes is disabled.
9899           - Checkboxes are always aligned to the bottom of the node,
9900           regardless of item height.
9901           - Use the node bounds to draw the text so we can center it when
9902           the item height is greater then the font height.
9903           - Node::Bounds are only the text part of the node.
9904         * TreeNode.cs: New method to combine collapsing and unchecking all
9905           nodes recursively.
9906
9907 2005-01-02  Jackson Harper  <jackson@ximian.com>
9908
9909         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
9910         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
9911         tree when a check is changed. TODO: Only refresh the checked node.
9912
9913 2004-12-30  Jackson Harper  <jackson@ximian.com>
9914
9915         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
9916         * TreeNode.cs: When collapsing make sure to never collapse the
9917         root node.
9918
9919 2004-12-29  Jackson Harper  <jackson@ximian.com>
9920
9921         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
9922         
9923 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
9924
9925         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
9926
9927 2004-12-28  Peter Bartok  <pbartok@novell.com>
9928
9929         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
9930           not yet assigned
9931
9932 2004-12-28  Peter Bartok  <pbartok@novell.com>
9933
9934         * Control.cs (WndProc): Added WM_HELP handler, now generates
9935           HelpRequested event
9936         * Form.cs: Added HelpButton property and required support code
9937         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
9938
9939 2004-12-28  Peter Bartok  <pbartok@novell.com>
9940
9941         * CommonDialog.cs:
9942           - Made DialogForm.owner variable internal
9943           - Added check to ensure owner form is set before setting
9944             owner properties in CreateParams
9945
9946 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
9947
9948         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
9949           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
9950           GetCursorPos.  Fix major visibility issues.  Rework the windowing
9951           system to support borderless/titleless windows (implements menus).
9952           Fix GetWindowPos.  Implement initial background color support for
9953           views.
9954
9955 2004-12-28  Peter Bartok  <pbartok@novell.com>
9956
9957         * Form.cs (get_CreateParams): Make sure we have an owner before using
9958           the owner variable. Implement proper default if no owner exists
9959
9960 2004-12-28  Peter Bartok  <pbartok@novell.com>
9961
9962         * In preparation for making Managed.Windows.Forms the default build target
9963           for System.Windows.Forms, the following stubbed files were added.
9964           Dialogs are currently being implemented by contributors and are only
9965           short-term place holders.
9966         * ColorDialog.cs: Initial check-in (minmal stub)
9967         * DataGrid.cs: Initial check-in (minimal stub)
9968         * DataGridLineStyle.cs: Initial check-in (minimal stub)
9969         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
9970         * DataGridTableStyle.cs: Initial check-in (minimal stub)
9971         * FontDialog.cs: Initial check-in (minimal stub)
9972         * FileDialog.cs: Initial check-in (minimal stub)
9973         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
9974         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
9975         * OpenFileDialog: Initial check-in (minimal stub)
9976         * IComponentEditorPageSite.cs: Initial check-in
9977         * Splitter.cs: Initial check-in (for Jackson)
9978         * SplitterEventArgs.cs: Initial check-in (for Jackson)
9979         * SplitterEventHandler.cs: Initial check-in (for Jackson)
9980         * TextBox.cs: Initial check-in; still needs some wiring to
9981           TextControl backend
9982         * Form.cs: Implemented ControlBox property
9983         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
9984         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
9985         * TextControl.cs: Added selection functionality; added todo header
9986         * TextBoxBase.cs:
9987           - Implemented Lines property
9988           - Implemented TextHeight property
9989           - Implemented SelectedText property
9990           - Implemented SelectionLength property
9991           - Implemented SelectAll method
9992           - Implemented ToString method
9993           - Removed and cleaned up some debug code
9994           - Implemented (still buggy) mouse text selection
9995
9996 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
9997
9998         * ComboBox.cs: Complete DropDownList implementation, fixes.
9999
10000 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10001
10002         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10003         * ComboBoxStyle.cs: ComboBoxStyle enum
10004         * ComboBox.cs: Initial work on ComboBox control
10005
10006 2004-12-21  Peter Bartok  <pbartok@novell.com>
10007
10008         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10009           forward so that anything that creates a window gets the default,
10010           also no longer uses Visible property in CreateParams to avoid
10011           walking up the parent chain and possibly get the wrong visible
10012           status. Fixed IsVisible to no longer walk up to the parent.
10013
10014 2004-12-21  Peter Bartok  <pbartok@novell.com>
10015
10016         * Form.cs (ShowDialog): Unset modality for the proper window
10017  
10018 2004-12-20  Peter Bartok  <pbartok@novell.com>
10019
10020         * CommonDialog.cs: Initial check-in
10021
10022 2004-12-20  Peter Bartok  <pbartok@novell.com>
10023
10024         * Control.cs (Visible): Now uses the parent window instead of the
10025           client area window for the property
10026
10027         * Form.cs
10028           - ShowDialog(): Now uses the proper window for modality
10029           - The default visibility state for the form parent is now false. This
10030             will prevent the user from seeing all the changes to the form and
10031             its controls before the application hits Application.Run()
10032           - Removed some stale commented out code
10033
10034         * NativeWindow.cs:
10035           - Added FindWindow() method to have a method to check for existence
10036             of a window handle
10037           - Added ability to override default exception handling (for example
10038             when debugging with VS.Net; to do this the ExternalExceptionHandler
10039             define must be set
10040           - Removed some useless debug output
10041
10042         * XplatUIX11.cs:
10043           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10044             not working as expected
10045           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10046             property to allow switching back to the modal window if focus is
10047             given to another one of our windows (Application Modal)
10048           - Now only sets override_redirect if we create a window
10049             without WS_CAPTION
10050           - Moved EventMask selection before mapping of newly created window
10051             so we can catch the map event as well
10052           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10053           - Added various Atom related DllImports
10054           - Implemented Exit() method
10055           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10056             in the CreateParams
10057
10058         * MessageBox.cs: Now properly deals with the FormParent window by
10059           providing an override the FormParent CreateParams property to
10060           set as POPUP instead of OVERLAPPED window.
10061
10062 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10063
10064         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10065         Minor code cleanup.
10066
10067 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10068         
10069         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10070
10071 2004-12-18  Peter Bartok  <pbartok@novell.com>
10072
10073         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10074           implementing SetModal() method
10075
10076 2004-12-18  Peter Bartok  <pbartok@novell.com>
10077
10078         * X11Structs.cs (XGCValues): Fixed type of function element
10079         * XplatUI.cs: Added ScrollWindow() method
10080         * XplatUIDriver.cs: Added ScrollWindow() abstract
10081         * XplatUIWin32.cs: Implemented ScrollWindow() method
10082         * XplatUIX11.cs: Implemented ScrollWindow() method
10083         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10084
10085 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10086
10087         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10088         Some more keyboard support (INCOMPLETE)
10089
10090 2004-12-17  Peter Bartok  <pbartok@novell.com>
10091
10092         * TextControl.cs:
10093         - Added color attribute to line tags.
10094         - Added color argument to all functions dealing with tags
10095         - Added color argument support to various functions
10096         - Fixed miss-calculation of baseline/shift in certain circumstances
10097
10098         * TextBoxBase.cs: Added new color option to test code
10099
10100 2004-12-17  Jackson Harper  <jackson@ximian.com>
10101
10102         * TreeNode.cs:
10103         * MonthCalendar.cs: Signature fixes
10104
10105 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10106
10107         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10108         keyboard event moved it.  Create a new graphics context for each paint resolves this
10109
10110 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10111
10112         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10113         Make caret exist and go blink blink.  Initial keyboard support.
10114         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10115         works.
10116
10117 2004-12-17  Jackson Harper  <jackson@ximian.com>
10118
10119         * XplatUIStructs.cs: Updated set of virtual keycodes.
10120         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10121
10122 2004-12-17  Jackson Harper  <jackson@ximian.com>
10123
10124         * XplatUIX11.cs: Prune old keyboard code.
10125
10126 2004-12-17  Jackson Harper  <jackson@ximian.com>
10127
10128         * XplatUIX11.cs: When generating mouse wparams get the modifier
10129         keys from the ModifierKeys property.
10130
10131 2004-12-17  Jackson Harper  <jackson@ximian.com>
10132
10133         * X11Keyboard.cs: Send up/down input when generating
10134         messages. Remove some unused vars.
10135
10136 2004-12-17  Jackson Harper  <jackson@ximian.com>
10137
10138         * TabControl.cs:
10139         * TreeView.cs: get rid of warnings.
10140
10141 2004-12-17  Jackson Harper  <jackson@ximian.com>
10142
10143         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10144
10145 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10146
10147         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10148           CheckedListBox.cs: Implementation
10149
10150 2004-12-17  Peter Bartok  <pbartok@novell.com>
10151
10152         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10153
10154 2004-12-16  Peter Bartok  <pbartok@novell.com>
10155
10156         * TextControl.cs:
10157           - InsertCharAtCaret(): Fixed start pos fixup
10158           - CaretLine_get: No longer derives the line from the tag, the tag
10159             could be stale if lines in the document have been added or deleted
10160           - RebalanceAfterDelete(): Fixed bug in balancing code
10161           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10162           - Line.Streamline(): Now can also elminate leading empty tags
10163           - DumpTree(): Added a few more tests and prevented exception on
10164             uninitialized data
10165           - Added Debug section for Combining lines
10166           - Delete(): Now copies all remaining properties of a line
10167           
10168         * TextBoxBase.cs:
10169           - Left mousebutton now sets the caret (and middle button still acts
10170             as formatting tester, which must go away soon)
10171           - Added Debug section for Deleting/Combining lines
10172           - Fixed calculations for UpdateView after Combining lines
10173
10174 2004-12-16  Peter Bartok  <pbartok@novell.com>
10175
10176         * TextControl.cs: Now properly aligns text on a baseline, using the
10177           new XplatUI.GetFontMetrics() method. Simplified several calculations
10178         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10179           defined
10180
10181 2004-12-16  Peter Bartok  <pbartok@novell.com>
10182
10183         * XplatUI.cs: Added GetFontMetrics() method
10184         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10185         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10186           into libgdiplus, our private GetFontMetrics function
10187         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10188         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10189
10190 2004-12-16  Jackson Harper  <jackson@ximain.com>
10191
10192         * XplatUIStruct.cs: Add enum for dead keys
10193         * X11Keyboard.cs: Map and unmap dead keys.
10194
10195 2004-12-16  Jackson Harper  <jackson@ximian.com>
10196
10197         * X11Keyboard.cs: Detect and use the num lock mask.
10198
10199 2004-12-16  Peter Bartok  <pbartok@novell.com>
10200
10201         * Control.cs (CreateGraphics): Added check to make sure the
10202           handle of the window exists before calling Graphics.FromHwnd()
10203
10204 2004-12-16  Peter Bartok  <pbartok@novell.com>
10205
10206         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10207           contains a lot of code that's not supposed to be there for the
10208           real thing, but required for developing/testing the textbox
10209           backend.
10210
10211 2004-12-16  Peter Bartok  <pbartok@novell.com>
10212
10213         * TextControl.cs:
10214         - Fixed Streamline method
10215         - Added FindTag method to Line
10216         - Added DumpTree method for debugging
10217         - Added DecrementLines() method for deleting lines
10218         - Fixed UpdateView to update the cursor to end-of-line on single-line
10219           updates
10220         - Added PositionCaret() method
10221         - Fixed MoveCaret(LineDown) to move into the last line, too
10222         - Added InsertChar overload
10223         - Fixed InsertChar tag offset calculations
10224         - Added DeleteChar() method
10225         - Added Combine() method for folding lines
10226         - Fixed Delete() method, no longer allocates wasted Line object and
10227           now copies all properties when swapping nodes
10228         - Delete() method now updates document line counter
10229
10230 2004-12-15  Jackson Harper  <jackson@ximian.com>
10231
10232         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10233         * X11Keyboard.cs: Expose the currently selected modifier keys
10234         through a property.
10235
10236 2004-12-15  Peter Bartok  <pbartok@novell.com>
10237
10238         * TextControl.cs: Initial check-in. Still incomplete
10239
10240 2004-12-15  Jackson Harper  <jackson@ximian.com>
10241
10242         * TreeNode.cs:
10243         * TreeView.cs: Fix build on csc (second time today ;-))
10244
10245 2004-12-15  Jackson Harper  <jackson@ximian.com>
10246
10247         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10248         is calculated and use this for click testing.
10249         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10250
10251 2004-12-15  Jackson Harper  <jackson@ximian.com>
10252
10253         * TreeView.cs: Pass the nodes image index to the image list when
10254         drawing that image.
10255
10256 2004-12-15  Jackson Harper  <jackson@ximian.com>
10257
10258         * X11Keyboard.cs: Set messages hwnd.
10259         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10260         post_message calls.
10261
10262 2004-12-15  Jackson Harper  <jackson@ximian.com>
10263
10264         * X11Keyboard.cs: Fix to compile with csc.
10265         
10266 2004-12-15  Jackson Harper  <jackson@ximian.com>
10267
10268         * X11Structs.cs: Add key mask values
10269         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10270         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10271         down/up foo into WM_CHAR foo
10272         * KeyboardLayouts.cs: Common keyboard layouts
10273         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10274         post messages into the main queue.
10275
10276 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10277
10278         * Button.cs: implement ProcessMnemonic
10279         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10280           brushes everytime
10281         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10282         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10283
10284 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10285         
10286         * MonthCalendar.cs: Implemented click-hold for next/previous month
10287           and date selection
10288           
10289 2004-12-11  Peter Bartok  <pbartok@novell.com>
10290
10291         * X11Structs.cs:
10292           - Added XKeyboardState (moved from XplatUIX11.cs)
10293           - Added XCreateGC related enums and structures
10294           - Added GXFunction for XSetFunction
10295
10296         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10297
10298         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10299           CaretVisible() calls
10300
10301         * ToolTip.cs: Added code to prevent stealing focus from app windows
10302
10303         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10304           DestroyCaret, SetCaretPos and CaretVisible)
10305
10306         * XplatUIX11.cs:
10307           - Added implementation for caret functions
10308           - Moved hover variables into a struct, to make it a bit easier
10309             on the eyes and to debug
10310           - Removed XKeyboardState (moved to XplatUIX11.cs)
10311           - Moved Keyboard properties into the properties region
10312
10313         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10314           call to get a graphics context for our control
10315
10316         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10317
10318         * TreeView.cs: Fixed bug. No matter what color was set it would always
10319           return SystemColors.Window
10320
10321         * XplatUIWin32.cs: Implemented caret overrides
10322
10323 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10324
10325         * ListBox.cs: fire events, implement missing methods and properties,
10326         sorting.
10327
10328 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10329
10330         * MonthCalendar.cs: invalidation bug fixing
10331         * ThemeWin32Classic.cs: paint fixing
10332
10333 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10334
10335         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10336         prepare the CGContextRef there now.
10337
10338 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10339
10340         * MonthCalendar.cs:
10341           - optimisationL only invalidate areas that have changed
10342         * ThemeWin32Classic.cs:
10343           - only paint parts that intersect with clip_area
10344
10345 2004-12-09  Peter Bartok  <pbartok@novell.com>
10346
10347         * Application.cs: Undid changes from r37004 which cause problems
10348         on X11
10349
10350 2004-12-09  Ravindra  <rkumar@novell.com>
10351
10352         * ToolBar.cs: Added support for displaying ContextMenu
10353         attached to a button on ToolBar.
10354         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10355         property.
10356
10357 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10358
10359         * Label.cs: autosize works in text change and removes unnecessary
10360         invalidate
10361
10362 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10363
10364         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10365         remove warnings
10366
10367 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10368
10369         * XplatUIOSX.cs: Added mouse move/click/grab support
10370         Remove some debugging WriteLines not needed anymore.
10371         Add window resizing/positioning.
10372         Fix visibility on reparenting.
10373
10374 2004-12-08  Peter Bartok  <pbartok@novell.com>
10375
10376         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10377
10378 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10379
10380         * XplatUIOSX.cs: Initial checkin
10381         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10382
10383 2004-12-03  Ravindra <rkumar@novell.com>
10384
10385         * ListView.cs: Added some keybindings and fixed scrolling.
10386         ScrollBars listen to ValueChanged event instead of Scroll
10387         Event. This would let us take care of all changes being
10388         done in the scrollbars' values programmatically or manually.
10389         * ListView.cs (CanMultiselect): Added a check for shift key.
10390         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10391         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10392         of ListViewSubItemCollection as well.
10393
10394 2004-12-06  Peter Bartok <pbartok@novell.com>
10395
10396         * Control.cs (Parent): Added check and exception to prevent
10397         circular parenting
10398
10399 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10400
10401         * ListBox.cs: implemented clipping, selection single and multiple,
10402         bug fixing
10403
10404 2004-12-03  Ravindra <rkumar@novell.com>
10405
10406         * ListView.cs (ListView_KeyDown):
10407         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10408         when CTRL key is pressed.
10409         * ListViewItem.cs (Selected): Fixed setting the property.
10410
10411 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10412
10413         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10414
10415         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10416         MinimizeBox, ShowInTaskbar, TopMost properties.
10417
10418         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10419         will be implemented).
10420
10421 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10422
10423         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10424
10425         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10426         tests.
10427         
10428         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10429         
10430         * TreeView.cs: BackColor is Colors.Window.
10431
10432 2004-12-01  Jackson Harper  <jackson@ximian.com>
10433
10434         * TreeView.cs: When resizing the tree if the user is making it
10435         smaller we don't get expose events, so we need to handle adding
10436         the horizontal scrollbar in the size changed handler as well as
10437         the expose handler.
10438
10439 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10440
10441         * DrawItemState.cs: fixes wrong enum values
10442
10443 2004-12-01  Jackson Harper  <jackson@ximian.com>
10444
10445         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10446
10447 2004-12-01  Jackson Harper  <jackson@ximian.com>
10448
10449         * NodeLabelEditEventArgs.cs:
10450         * NodeLabelEditEventHandler.cs:
10451         * OpenTreeNodeEnumerator.cs:
10452         * TreeNode.cs:
10453         * TreeNodeCollection.cs:
10454         * TreeView.cs:
10455         * TreeViewAction.cs:
10456         * TreeViewCancelEventArgs.cs:
10457         * TreeViewCancelEventHandler.cs:
10458         * TreeViewEventArgs.cs:
10459         * TreeViewEventHandler.cs: Initial implementation.
10460
10461 2004-12-01  Ravindra <rkumar@novell.com>
10462
10463         * ListView.cs (CalculateListView): Fixed scrolling related
10464         calculations. Also, removed some debug statements from other
10465         places.
10466         * ListViewItem.cs: Changed access to 'selected' instance variable
10467         from private to internal.
10468         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10469
10470 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10471
10472         * ThemeWin32Classic.cs: remove cache of brush and pens for
10473         specific controls and use the global system, fixes scrollbutton
10474         bugs (for small sizes, disabled, etc)
10475         
10476         * ScrollBar.cs: does not show the thumb for very small controls
10477         (as MS) and allow smaller buttons that the regular size
10478
10479 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10480
10481         * UpDownBase.cs: Add abstract methods for the interface.
10482         Add new virtual methods (need to be hooked up to TextEntry when it
10483         exists).
10484         Add override methods for most features.
10485         Computes the size, forces the height of the text entry.
10486
10487         * NumericUpDown.cs: Put here the current testing code.
10488
10489         * Set eol-style property on all files that do not have mixed line
10490         endings, to minimize the future problems.  There are still a few
10491         files with mixed endings, and someone should choose whether they
10492         want to move it or not.
10493
10494 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10495
10496         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10497         System.Colors
10498         
10499 2004-11-30  Ravindra <rkumar@novell.com>
10500
10501         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10502         drawing and replaced use of SystemColors by theme colors.
10503         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10504         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10505         same ListViewItem is being added more than once.
10506
10507 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10508
10509         * MonthCalendar.cs:
10510           - ControlStyles love to make the control not flicker
10511           
10512 2004-11-30  Peter Bartok  <pbartok@novell.com>
10513
10514         * CharacterCasing.cs: Added
10515
10516 2004-11-29  Peter Bartok  <pbartok@novell.com>
10517
10518         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10519           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10520           I am removing these files as they conflict with already completed
10521           work. While it is fantastic to get contributions to MWF, I
10522           respectfully ask that everyone please coordinate their contributions
10523           through mono-winforms-list or #mono-winforms at this time. We're
10524           explicitly avoiding stubbing and don't want controls that don't have
10525           their basic functionality implemented in svn. Please also see
10526           http://www.mono-project.com/contributing/winforms.html
10527
10528
10529 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10530
10531         * Application.cs (ModalRun): Don't hang after exit.
10532
10533         * Theme.cs: New TreeViewDefaultSize property.
10534
10535         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10536         with less hardcoded SystemColors constant.
10537         Implemented TreeViewDefaultSize.
10538
10539         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10540         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10541
10542
10543 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10544
10545         * MonthCalendar.cs:
10546           - Fix NextMonthDate and PrevMonthDate click moving calendar
10547
10548 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10549
10550         * MonthCalendar.cs:
10551           - Fix usage of ScrollChange Property when scrolling months
10552
10553 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10554
10555         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10556          - Fixes menu destroying
10557          - Support adding and removing items on already created menus
10558
10559 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10560
10561         * MonthCalendar.cs:
10562           - Re-worked all bolded dates handling to match win32
10563         * ThemeWin32Classic.cs:
10564           - Fixed rendering with bolded dates
10565
10566 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10567
10568         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10569         - Horizontal scroolbar
10570         - Multicolumn
10571         - Fixes
10572
10573
10574 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10575
10576         * MonthCalendar.cs:
10577           - Fix Usage of MaxSelectionCount from SelectionRange
10578           - Fixed Shift + Cursor Selection
10579           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10580           - Fixed normal cursor selection to be compat with win32
10581           - Fixed Shift + Mouse Click selection
10582
10583 2004-11-24  Peter Bartok <pbartok@novell.com>
10584
10585         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10586         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10587         * XplatUIX11.cs:
10588           - CreatedKeyBoardMsg now updates keystate with Alt key
10589           - Added workaround for timer crash to CheckTimers, Jackson will
10590             develop a proper fix and check in later
10591           - Implemented DispatchMessage
10592           - Removed calling the native window proc from GetMessage (call
10593             now moved to DispatchMessage)
10594
10595         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10596           the keydata (Fixes bug #69831)
10597
10598         * XplatUIWin32.cs:
10599           - (DispatchMessage): Switched to return IntPtr
10600           - Added DllImport for SetFocus
10601
10602 2004-11-24  Ravindra <rkumar@novell.com>
10603
10604         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10605         background drawing.
10606         * ListViewItem.cs: Fixed various properties, calculations
10607         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10608         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10609         and some internal properties. Fixed MouseDown handler and Paint
10610         method.
10611
10612 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10613
10614         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10615
10616 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10617
10618         * ContainerControl.cs: correct accidental check in of local changes
10619
10620 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10621
10622         * ThemeWin32Classic.cs:
10623                 - Fixed Drawing Last month in grid (sometimes not showing)
10624         * MonthCalendar.cs:
10625                 - Fixed title width calculation bug (makeing title small)
10626
10627 2004-11-23  Peter Bartok <pbartok@novell.com>
10628
10629         * XplatUIX11.cs:
10630           - Added generation of WM_MOUSEHOVER event
10631           - Added missing assignment of async_method atom
10632           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10633
10634 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10635
10636         * ThemeWin32Classic.cs:
10637                 - Fixed Drawing of today circle when showtodaycircle not set
10638                 - fixed drawing of first and last month in the grid (gay dates)
10639         * MonthCalendar.cs:
10640                 - Fixed Drawing of today circle
10641                 - Fixed drawing of grady dates
10642                 - Fixed HitTest for today link when ShowToday set to false
10643                 - Fixed DefaultSize to obey ShowToday
10644
10645 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10646
10647         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10648         * System.Windows.Forms/Theme.cs
10649         * MonthCalendar.cs: added for MonthCalendar
10650         * SelectionRange.cs: added for MonthCalendar
10651         * Day.cs: added for MonthCalendar: added for MonthCalendar
10652         * DateRangeEventArgs.cs: added for MonthCalendar
10653         * DateRangeEventHandler.cs: added for MonthCalendar
10654
10655 2004-11-22  Ravindra <rkumar@novell.com>
10656
10657         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10658         property.
10659
10660 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10661
10662         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10663         event handler.
10664         
10665         * NumericUpDown.cs: Added new implementation.
10666         * UpDownBase.cs: Added new implementation.
10667
10668         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10669         implementations.
10670         
10671         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
10672         implementations.
10673
10674         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
10675         methods.
10676
10677 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
10678
10679         * Timer.cs  (Dispose): Should call the base dispose when
10680         overriding.
10681
10682 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10683
10684         * ScrollBar.cs: updates thumb position when max, min or increment
10685         is changed
10686
10687 2004-11-21  Ravindra <rkumar@novell.com>
10688
10689         * ListView.cs: Implemented item selection, activation and
10690         column header style. Fixed properties to do a redraw, if
10691         required. Added support for MouseHover, DoubleClick, KeyDown
10692         and KeyUp event handling and some minor fixes.
10693         * ListViewItem.cs: Fixed constructor.
10694         * ThemeWin32Classic.cs: Improved drawing for ListView.
10695
10696 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
10697
10698         * ThemeWin32Classic.cs: initial listbox drawing code
10699         * DrawMode.cs: new enumerator
10700         * ListControl.cs: stubbed class
10701         * ListBox.cs: initial implementation
10702         * Theme.cs: new methods definitions
10703         * SelectionMode.cs: new enumerator
10704
10705 2004-11-17  Peter Bartok  <pbartok@novell.com>
10706
10707         * XplatUIWin32.cs: Added double-click events to the class style
10708         * Control.cs (WndProc):
10709           - Added handling of click-count to MouseDown/ MouseUp events.
10710           - Added handling of middle and right mouse buttons
10711           - Removed old debug code
10712
10713 2004-11-17  Jackson Harper  <jackson@ximian.com>
10714
10715         * XplatUIX11.cs: Use the new Mono.Unix namespace.
10716
10717 2004-11-17  Ravindra <rkumar@novell.com>
10718
10719         * ListView.cs: Added event handling for MouseMove/Up/Down.
10720         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
10721         * ThemeWin32Classic.cs: We need to clear the graphics context and
10722         draw column header in a proper state.
10723
10724
10725 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
10726
10727         *  Menu.cs: fixes signature
10728
10729 2004-11-16  Peter Bartok  <pbartok@novell.com>
10730
10731         * XplatUIX11.cs (GetMessage): Implemented generation of
10732           double click mouse messages
10733
10734 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
10735
10736         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
10737         not by menu
10738
10739 2004-11-11  Peter Bartok  <pbartok@novell.com>
10740
10741         * HandleData.cs: Added Visible property
10742         * XplatUIX11.cs (IsVisible): Now uses Visible property from
10743           HandleData
10744         * XplatUIX11.cs: Removed old debug leftovers
10745         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
10746         * Control.cs (WndProc): Removed old debug leftovers,
10747           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
10748           needed WM_SIZE handling
10749
10750 2004-11-11  Jackson Harper  <jackson@ximian.com>
10751
10752         * OwnerDrawPropertyBag.cs:
10753         * TreeViewImageIndexConverter.cs: Initial implementation
10754
10755 2004-11-10  Jackson Harper  <jackson@ximian.com>
10756
10757         * ThemeWin32Classic.cs:
10758         * TabControl.cs: instead of moving tabs by the slider pos just
10759         start drawing at the tab that is offset by the slider. This way
10760         scrolling always moves by exactly one tab.
10761
10762 2004-11-10  Jackson Harper  <jackson@ximian.com>
10763
10764         * TabControl.cs: You can only scroll left when the slider has
10765         already ben moved right.
10766         
10767 2004-11-10  Jackson Harper  <jackson@ximian.com>
10768
10769         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
10770         the clip area.
10771         
10772 2004-11-10  Jackson Harper  <jackson@ximian.com>
10773
10774         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
10775         clip area.
10776         
10777 2004-11-09  Jackson Harper  <jackson@ximian.com>
10778
10779         * TabControl.cs (CalcXPos): New helper method so we can determine
10780         the proper place to start drawing vertical tabs.
10781         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
10782         
10783 2004-11-09  Jackson Harper  <jackson@ximian.com>
10784
10785         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
10786         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
10787         and Bottom, left and right are illegal values for this and
10788         multiline is enabled when the alignment is set to left or right.
10789         (DrawTab): Each alignment block should draw the text itself now
10790         because Left requires special love. Also add rendering for Left
10791         aligned tabs.
10792         
10793 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
10794
10795         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
10796         does not destroy the windows, removes debugging messages
10797
10798 2004-11-09  jba  <jba-mono@optusnet.com.au>
10799
10800         * ThemeWin32Classic.cs
10801         (DrawButtonBase): Fix verticle text rect clipping in windows
10802         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10803         rendering and incorrect text rect clipping
10804         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
10805         rendering and incorrect text rect clipping
10806         
10807 2004-11-08  Jackson Harper  <jackson@ximian.com>
10808
10809         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
10810         bottom when they are bottom aligned so the bottoms of the tabs get
10811         displayed.
10812         * TabControl.cs (DropRow): Move rows up instead of down when the
10813         tab control is bottom aligned.
10814
10815 2004-11-08 13:59  pbartok
10816
10817         * XplatUIX11.cs:
10818           - Added handling for various window styles
10819           - Added handling for popup windows
10820           - Added SetTopmost handling
10821
10822 2004-11-08 13:55  pbartok
10823
10824         * XplatUIWin32.cs:
10825           - Added argument to SetTopmost method
10826           - Fixed broken ClientToScreen function
10827
10828 2004-11-08 13:53  pbartok
10829
10830         * XplatUIStructs.cs:
10831           - Added missing WS_EX styles
10832
10833 2004-11-08 13:53  pbartok
10834
10835         * XplatUI.cs, XplatUIDriver.cs:
10836           - Added argument to SetTopmost
10837
10838 2004-11-08 13:52  pbartok
10839
10840         * X11Structs.cs:
10841           - Added XSetWindowAttributes structure
10842           - Improved XWindowAttributes structure
10843           - Added SetWindowValuemask enum
10844           - Added window creation arguments enum
10845           - Added gravity enum
10846           - Added Motif hints structure
10847           - Added various Motif flags and enums
10848           - Added PropertyMode enum for property functions
10849
10850 2004-11-08 13:50  pbartok
10851
10852         * Form.cs:
10853           - Fixed arguments for updated SetTopmost method
10854
10855 2004-11-08 13:49  pbartok
10856
10857         * ToolTip.cs:
10858           - Fixed arguments for updated SetTopmost function
10859           - Fixed usage of PointToClient
10860
10861 2004-11-08 13:44  pbartok
10862
10863         * MenuAPI.cs:
10864           - Added Clipping of children and siblings
10865
10866 2004-11-08 13:41  pbartok
10867
10868         * MainMenu.cs:
10869           - Removed SetMenuBarWindow call. We do this in Form.cs
10870
10871 2004-11-08 13:40  jackson
10872
10873         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
10874           scrolling jimmi in the correct location with bottom aligned tabs
10875
10876 2004-11-08 13:36  pbartok
10877
10878         * ContainerControl.cs:
10879           - Implemented BindingContext
10880           - Implemented ParentForm
10881
10882 2004-11-08 12:46  jackson
10883
10884         * TabControl.cs: Put bottom rendered tabs in the right location
10885
10886 2004-11-08 07:15  jordi
10887
10888         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
10889           removes dead code
10890
10891 2004-11-05 17:30  jackson
10892
10893         * TabControl.cs: When selected tabs are expanded make sure they
10894           don't go beyond the edges of the tab control
10895
10896 2004-11-05 14:57  jackson
10897
10898         * TabControl.cs: Reset show_slider so if the control is resized to
10899           a size where it is no longer needed it's not displayed anymore
10900
10901 2004-11-05 13:16  jackson
10902
10903         * TabControl.cs: Make tab pages non visible when added to the
10904           control
10905
10906 2004-11-05 12:42  jackson
10907
10908         * TabControl.cs: Implement SizeMode.FillToRight
10909
10910 2004-11-05 12:16  jackson
10911
10912         * Control.cs: Do not call CreateHandle if the handle is already
10913           created
10914
10915 2004-11-05 11:46  jackson
10916
10917         * TabControl.cs: Remove superflous call to CalcTabRows
10918
10919 2004-11-05 09:07  jackson
10920
10921         * XplatUIX11.cs: Update for Mono.Posix changes
10922
10923 2004-11-05 07:00  ravindra
10924
10925         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
10926           scrolling.
10927
10928 2004-11-04 22:47  jba
10929
10930         * ThemeWin32Classic.cs:
10931           - Fix Button rendering for FlatStyle = Flat or Popup
10932           - Fix RadioButton and CheckBox rendering when Appearance = Button
10933             (normal and flatstyle).
10934           - Correct outer rectangle color when drawing focus rectangle
10935           - Adjust button bounds to be 1 px smaller when focused
10936           - Make button not draw sunken 3d border when pushed (windows compat)
10937           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
10938           - Offset the text in RadioButton and Checkbox when being rendered as
10939           a button.
10940           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
10941           radiobuttons
10942           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
10943           - Fixed disabled text rendering for normally rendered radiobuttons
10944
10945 2004-11-04 10:26  jackson
10946
10947         * TabControl.cs: Recalculate tab rows when resizing
10948
10949 2004-11-04 07:47  jordi
10950
10951         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
10952           collection completion, drawing issues, missing features
10953
10954 2004-11-04 05:03  ravindra
10955
10956         * ScrollBar.cs:
10957                 - We need to recalculate the Thumb area when
10958                 LargeChange/maximum/minimum values are changed.
10959           - We set the 'pos' in UpdatePos() method to minimum, if it's less
10960                 than minimum. This is required to handle the case if large_change is
10961                 more than max, and use LargeChange property instead of large_change
10962                 variable.
10963           - We return max+1 when large_change is more than max, like MS does.
10964
10965 2004-11-04 04:29  ravindra
10966
10967         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
10968                 - Changed default value signatures (prefixed all with ListView).
10969                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
10970                 ListView.
10971           - Fixed calculations for ListViewItem and implemented Clone()
10972           method.
10973
10974 2004-11-04 04:26  ravindra
10975
10976         * Theme.cs, ThemeWin32Classic.cs:
10977                 - Changed default ListView values signatures (prefixed all with
10978                 ListView).
10979           - Fixed default size values for VScrollBar and HScrollBar.
10980                 - Fixed DrawListViewItem method.
10981
10982 2004-11-04 04:05  ravindra
10983
10984         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
10985
10986 2004-11-04 04:04  ravindra
10987
10988         * ImageList.cs: Implemented the missing overload for Draw method.
10989
10990 2004-11-03 19:29  jackson
10991
10992         * TabControl.cs: Handle dropping rows on selection properly
10993
10994 2004-11-03 11:59  jackson
10995
10996         * TabControl.cs: remove debug code
10997
10998 2004-11-03 11:52  jackson
10999
11000         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11001           the scrolly widgerywoo
11002
11003 2004-11-02 13:52  jackson
11004
11005         * TabControl.cs: Resize the tab pages and tabs when the tab control
11006           is resized
11007
11008 2004-11-02 13:40  jackson
11009
11010         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11011           selected tab to the bottom
11012
11013 2004-11-02 13:39  jackson
11014
11015         * TabPage.cs: Store the tab pages row
11016
11017 2004-11-02 12:33  jordi
11018
11019         * MenuItem.cs: fixes handle creation
11020
11021 2004-11-02 11:42  jackson
11022
11023         * TabControl.cs: signature fix
11024
11025 2004-11-02 08:56  jackson
11026
11027         * TabControl.cs: Calculate whether the tab is on an edge properly.
11028           Remove top secret debugging code
11029
11030 2004-11-01 19:57  jackson
11031
11032         * TabControl.cs: Add click handling, and proper sizing
11033
11034 2004-11-01 19:47  jackson
11035
11036         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11037           tab controls
11038
11039 2004-11-01 19:39  jackson
11040
11041         * TabPage.cs: add internal property to store the bounds of a tab
11042           page
11043
11044 2004-10-30 04:23  ravindra
11045
11046         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11047           values.
11048
11049 2004-10-30 04:21  ravindra
11050
11051         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11052           fixed calculations.
11053
11054 2004-10-30 03:06  pbartok
11055
11056         * XplatUIX11.cs:
11057           - Removed extension of DllImported libs
11058
11059 2004-10-29 09:55  jordi
11060
11061         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11062           navigation, itemcollection completion, menu fixes
11063
11064 2004-10-27 22:58  pbartok
11065
11066         * XplatUIX11.cs:
11067           - Now throws a nice error message when no X display could be opened
11068
11069 2004-10-26 13:51  jordi
11070
11071         * ListView.cs: removes warning
11072
11073 2004-10-26 03:55  ravindra
11074
11075         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11076           ThemeWin32Classic.cs: Some formatting for my last checkins.
11077
11078 2004-10-26 03:36  ravindra
11079
11080         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11081           control and default values.
11082
11083 2004-10-26 03:35  ravindra
11084
11085         * Theme.cs: Added some default values for ListView control.
11086
11087 2004-10-26 03:33  ravindra
11088
11089         * ToolBar.cs: ToolBar should use the user specified button size, if
11090           there is any. Added a size_specified flag for the same.
11091
11092 2004-10-26 03:33  ravindra
11093
11094         * ColumnHeader.cs: Added some internal members and calculations for
11095           ColumnHeader.
11096
11097 2004-10-26 03:32  ravindra
11098
11099         * ListViewItem.cs: Calculations for ListViewItem.
11100
11101 2004-10-26 03:31  ravindra
11102
11103         * ListView.cs: Added some internal members and calculations for
11104           ListView.
11105
11106 2004-10-22 13:31  jordi
11107
11108         * MenuAPI.cs: speedup menus drawing
11109
11110 2004-10-22 13:16  jackson
11111
11112         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11113           expose event
11114
11115 2004-10-22 11:49  jackson
11116
11117         * Control.cs: oops
11118
11119 2004-10-22 11:41  jackson
11120
11121         * Control.cs: Check to see if the window should have its background
11122           repainted by X when drawing.
11123
11124 2004-10-22 11:31  jackson
11125
11126         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11127           clear is true, this way we do not get flicker from X repainting the
11128           background
11129
11130 2004-10-22 11:28  jackson
11131
11132         * XEventQueue.cs: Queue properly
11133
11134 2004-10-21 09:38  jackson
11135
11136         * XEventQueue.cs: Fix access modifier
11137
11138 2004-10-21 09:36  jackson
11139
11140         * XEventQueue.cs: Don't loose messages
11141
11142 2004-10-21 09:22  jackson
11143
11144         * XEventQueue.cs: Don't loose messages
11145
11146 2004-10-20 04:15  jordi
11147
11148         * BootMode.cs: enum need it by SystemInfo
11149
11150 2004-10-19 21:58  pbartok
11151
11152         * XplatUIWin32.cs:
11153           - Small sanity check
11154
11155 2004-10-19 21:56  pbartok
11156
11157         * Form.cs:
11158           - Added private FormParentWindow class which acts as the container
11159             for our form and as the non-client area where menus are drawn
11160           - Added/Moved required tie-ins to Jordi's menus
11161           - Fixed/Implemented the FormStartPosition functionality
11162
11163 2004-10-19 21:52  pbartok
11164
11165         * Control.cs:
11166           - Removed unneeded locals
11167           - Added code to all size and location properties to understand and
11168             deal with the parent container of Form
11169
11170 2004-10-19 21:33  pbartok
11171
11172         * Application.cs:
11173           - Fixed to deal with new Form subclasses for menus
11174
11175 2004-10-19 17:48  jackson
11176
11177         * XEventQueue.cs: commit correct version of file
11178
11179 2004-10-19 16:50  jackson
11180
11181         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11182
11183 2004-10-19 16:15  jordi
11184
11185         * MenuAPI.cs: MenuBarCalcSize returns the height
11186
11187 2004-10-19 08:31  pbartok
11188
11189         * Control.cs:
11190           - Added missing call to PreProcessMessage before calling OnXXXKey
11191           methods
11192
11193 2004-10-19 00:04  ravindra
11194
11195         * ToolTip.cs: Fixed constructor.
11196
11197 2004-10-18 09:31  jordi
11198
11199         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11200
11201 2004-10-18 09:26  jordi
11202
11203         * MenuItem.cs: fixes MenuItem class signature
11204
11205 2004-10-18 08:56  jordi
11206
11207         * MenuAPI.cs: prevents windows from showing in the taskbar
11208
11209 2004-10-18 00:28  ravindra
11210
11211         * ToolTip.cs: Suppressed a warning message.
11212
11213 2004-10-18 00:27  ravindra
11214
11215         * Control.cs: Default value of visible property must be true.
11216
11217 2004-10-17 23:19  pbartok
11218
11219         * ToolTip.cs:
11220           - Complete implementation
11221
11222 2004-10-17 23:19  pbartok
11223
11224         * XplatUIX11.cs:
11225           - Added EnableWindow method
11226           - Added SetModal stub
11227           - Added generation of WM_ACTIVATE message (still needs testing)
11228           - Added SetTopMost stub
11229           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11230
11231 2004-10-17 23:17  pbartok
11232
11233         * XplatUIWin32.cs:
11234           - Removed VirtualKeys to XplatUIStructs
11235           - Implemented SetTopMost method
11236           - Implemented EnableWindow method
11237           - Bugfix in ScreenToClient()
11238           - Bugfixes in ClientToScreen()
11239
11240 2004-10-17 22:51  pbartok
11241
11242         * XplatUIStructs.cs:
11243           - Added WS_EX styles to WindowStyles enumeration
11244
11245 2004-10-17 22:50  pbartok
11246
11247         * XplatUI.cs, XplatUIDriver.cs:
11248           - Added method for enabling/disabling windows
11249           - Added method for setting window modality
11250           - Added method for setting topmost window
11251
11252 2004-10-17 22:49  pbartok
11253
11254         * ThemeWin32Classic.cs:
11255           - Added ToolTip drawing code
11256
11257 2004-10-17 22:49  pbartok
11258
11259         * Theme.cs:
11260           - Added ToolTip abstracts
11261
11262 2004-10-17 22:47  pbartok
11263
11264         * Form.cs:
11265           - Fixed Form.ControlCollection to handle owner relations
11266           - Added Owner/OwnedForms handling
11267           - Implemented Z-Ordering for owned forms
11268           - Removed unneeded private overload of ShowDialog
11269           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11270             so I hope)
11271           - Fixed Close(), had wrong default
11272           - Added firing of OnLoad event
11273           - Added some commented out debug code for Ownership handling
11274
11275 2004-10-17 22:16  pbartok
11276
11277         * Control.cs:
11278           - Fixed/implemented flat list of controls
11279
11280 2004-10-17 22:14  pbartok
11281
11282         * Application.cs:
11283           - Added code to simulate modal dialogs on Win32
11284
11285 2004-10-17 16:11  jordi
11286
11287         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11288           mouse event
11289
11290 2004-10-17 13:39  jordi
11291
11292         * MenuAPI.cs: menu drawing fixes
11293
11294 2004-10-15 09:10  ravindra
11295
11296         * StructFormat.cs: General Enum.
11297
11298 2004-10-15 09:09  ravindra
11299
11300         * SizeGripStyle.cs: Enum for Form.
11301
11302 2004-10-15 09:08  ravindra
11303
11304         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11305           in Theme for ListView.
11306
11307 2004-10-15 09:06  ravindra
11308
11309         * ColumnHeader.cs: Flushing some formatting changes.
11310
11311 2004-10-15 09:05  ravindra
11312
11313         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11314           style.
11315
11316 2004-10-15 09:03  ravindra
11317
11318         * ListView.cs: Implemented Paint method and fixed coding style.
11319
11320 2004-10-15 07:34  jordi
11321
11322         * MenuAPI.cs: fix for X11
11323
11324 2004-10-15 07:32  ravindra
11325
11326         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11327                 - Renamed Paint() method to Draw() for clarity. Also, moved
11328                 DrawImage() to OnPaint().
11329
11330 2004-10-15 07:25  ravindra
11331
11332         * CheckBox.cs, RadioButton.cs:
11333                 - Removed Redraw (), we get it from ButtonBase.
11334                 - Implemented Paint (), to do class specific painting.
11335
11336 2004-10-15 07:16  ravindra
11337
11338         * ButtonBase.cs:
11339                 - Redraw () is not virtual now.
11340                 - Added an internal virtual method Paint (), so that
11341                 derived classes can do their painting on their own.
11342                 - Modified OnPaint () to call Paint ().
11343
11344 2004-10-15 06:43  jordi
11345
11346         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11347           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11348
11349 2004-10-15 00:30  ravindra
11350
11351         * MessageBox.cs:
11352                 - MessageBox on windows does not have min/max buttons.
11353                 This change in CreateParams fixes this on Windows. We
11354                 still need to implement this windowstyle behavior in
11355                 our X11 driver.
11356
11357 2004-10-14 05:14  ravindra
11358
11359         * ToolBar.cs:
11360                 - Changed Redraw () to do a Refresh () always.
11361                 - Fixed the MouseMove event handling when mouse is pressed,
11362                 ie drag event handling.
11363                 - Replaced the usage of ToolBarButton.Pressed property to
11364                 ToolBarButton.pressed internal variable.
11365
11366 2004-10-14 05:10  ravindra
11367
11368         * ToolBarButton.cs:
11369                 - Added an internal member 'inside' to handle mouse move
11370                 with mouse pressed ie mouse drag event.
11371                 - Changed 'Pressed' property to return true only when
11372                 'inside' and 'pressed' are both true.
11373                 - Some coding style love.
11374
11375 2004-10-14 00:17  ravindra
11376
11377         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11378           public method.
11379
11380 2004-10-14 00:15  ravindra
11381
11382         * ButtonBase.cs: Redraw () related improvements.
11383
11384 2004-10-14 00:14  ravindra
11385
11386         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11387           removed unnecessary calls to Button.Show () method.
11388
11389 2004-10-13 17:50  pbartok
11390
11391         * XplatUIX11.cs:
11392           - Formatting fix
11393           - Removed destroying of window until we solve the problem of X
11394             destroying the window before us on shutdown
11395
11396 2004-10-13 16:32  pbartok
11397
11398         * ButtonBase.cs:
11399           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11400
11401 2004-10-13 14:18  pbartok
11402
11403         * XplatUIX11.cs:
11404           - Added code to destroy the X window
11405
11406 2004-10-13 14:18  pbartok
11407
11408         * XplatUIWin32.cs:
11409           - Added code to destroy a window
11410
11411 2004-10-13 14:12  pbartok
11412
11413         * ButtonBase.cs:
11414           - Added the Redraw on Resize that got dropped in the last rev
11415
11416 2004-10-13 09:06  pbartok
11417
11418         * ThemeWin32Classic.cs:
11419           - Path from John BouAntoun:
11420             * Fix check rendering (centre correctly for normal style, offset
11421               correctly for FlatStyle).
11422             * Fix border color usage (use backcolor) for FlatStyle.Popup
11423             * Use checkbox.Capture instead of checkbox.is_pressed when
11424               rendering flatstyle states.
11425
11426 2004-10-12 21:48  pbartok
11427
11428         * ThemeWin32Classic.cs:
11429           - Removed all occurences of SystemColors and replaced them with the
11430             matching theme color
11431
11432 2004-10-12 21:41  pbartok
11433
11434         * ThemeWin32Classic.cs:
11435           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11436             him using the function for flatstyle drawing
11437           - Changed functions to use the new version of CPDrawBorder3D
11438
11439 2004-10-12 21:15  pbartok
11440
11441         * ControlPaint.cs:
11442           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11443             match MS documentation. They need to return defined colors if the
11444             passed color matches the configured control color. Thanks to John
11445             BouAntoun for pointing this out.
11446
11447 2004-10-12 20:57  pbartok
11448
11449         * Control.cs:
11450           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11451             color is changed
11452
11453 2004-10-12 20:46  pbartok
11454
11455         * CheckBox.cs:
11456           - Fix from John BouAntoun: Now properly sets the Appearance property
11457
11458 2004-10-12 20:45  pbartok
11459
11460         * ThemeWin32Classic.cs:
11461           - Fixes from John BouAntoun: now handles forecolors and backcolors
11462             for flatstyle rendered controls much better; It also fixes normal
11463             checkbox rendering when pushed or disabled.
11464
11465 2004-10-08 02:50  jordi
11466
11467         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11468           work
11469
11470 2004-10-07 08:56  jordi
11471
11472         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11473
11474 2004-10-06 03:59  jordi
11475
11476         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11477           XplatUIWin32.cs: removes warnings from compilation
11478
11479 2004-10-05 12:23  jackson
11480
11481         * RadioButton.cs: Fix ctor
11482
11483 2004-10-05 11:10  pbartok
11484
11485         * MessageBox.cs:
11486           - Partial implementation by Benjamin Dasnois
11487
11488 2004-10-05 10:15  jackson
11489
11490         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11491           by John BouAntoun
11492
11493 2004-10-05 03:07  ravindra
11494
11495         * ToolBar.cs:
11496                 - Removed a private method, Draw ().
11497                 - Fixed the ButtonDropDown event handling.
11498                 - Fixed MouseMove event handling.
11499
11500 2004-10-05 03:04  ravindra
11501
11502         * ThemeWin32Classic.cs:
11503                 - Added DrawListView method and ListViewDefaultSize property.
11504                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11505                 - Changed DOS style CRLF to Unix format (dos2unix).
11506
11507 2004-10-05 03:03  ravindra
11508
11509         * Theme.cs:
11510                 - Added DrawListView method and ListViewDefaultSize property.
11511
11512 2004-10-05 02:42  ravindra
11513
11514         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11515           clicks on DropDown arrow.
11516
11517 2004-10-04 22:56  jackson
11518
11519         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11520           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11521           Control handle the buffers, derived classes should not have to
11522           CreateBuffers themselves.
11523
11524 2004-10-04 21:20  jackson
11525
11526         * StatusBar.cs: The control handles resizing the buffers now.
11527
11528 2004-10-04 21:18  jackson
11529
11530         * Control.cs: When resizing the buffers should be invalidated. This
11531           should be handled in Control not in derived classes.
11532
11533 2004-10-04 14:45  jackson
11534
11535         * TabPage.cs: oops
11536
11537 2004-10-04 02:14  pbartok
11538
11539         * LeftRightAlignment.cs:
11540           - Initial check-in
11541
11542 2004-10-04 01:09  jordi
11543
11544         * ThemeWin32Classic.cs: fixes right button position causing right
11545           button not showing on horizontal scrollbars
11546
11547 2004-10-02 13:12  pbartok
11548
11549         * XplatUIX11.cs:
11550           - Simplified the Invalidate method by using an X call instead of
11551             generating the expose ourselves
11552           - Added an expose when the window background is changed
11553           - Implemented ClientToScreen method
11554
11555 2004-10-02 13:08  pbartok
11556
11557         * XplatUIWin32.cs:
11558           - Added Win32EnableWindow method (test for implementing modal
11559           dialogs)
11560           - Added ClientToScreen method and imports
11561
11562 2004-10-02 13:07  pbartok
11563
11564         * XplatUI.cs, XplatUIDriver.cs:
11565           - Added ClientToScreen coordinate translation method
11566
11567 2004-10-02 13:06  pbartok
11568
11569         * KeyPressEventArgs.cs:
11570           - Fixed access level for constructor
11571
11572 2004-10-02 13:06  pbartok
11573
11574         * NativeWindow.cs:
11575           - Changed access level for the window_collection hash table
11576
11577 2004-10-02 13:05  pbartok
11578
11579         * Form.cs:
11580           - Added KeyPreview property
11581           - Added Menu property (still incomplete, pending Jordi's menu work)
11582           - Implemented ProcessCmdKey
11583           - Implemented ProcessDialogKey
11584           - Implemented ProcessKeyPreview
11585
11586 2004-10-02 13:02  pbartok
11587
11588         * Control.cs:
11589           - Added private method to get the Control object from the window
11590           handle
11591           - Implemented ContextMenu property
11592           - Implemented PointToScreen
11593           - Implemented PreProcessMessage
11594           - Implemented IsInputChar
11595           - Implemented IsInputKey
11596           - Implemented ProcessCmdKey
11597           - Completed ProcessKeyEventArgs
11598           - Fixed message loop to call the proper chain of functions on key
11599           events
11600           - Implemented ProcessDialogChar
11601           - Implemented ProcessDialogKey
11602           - Implemented ProcessKeyMessage
11603           - Implemented ProcessKeyPreview
11604           - Added RaiseDragEvent stub (MS internal method)
11605           - Added RaiseKeyEvent stub (MS internal method)
11606           - Added RaiseMouseEvent stub (MS Internal method)
11607           - Added RaisePaintEvent stub (MS Internal method)
11608           - Added ResetMouseEventArgs stub (MS Internal method)
11609           - Implemented RtlTranslateAlignment
11610           - Implemented RtlTranslateContent
11611           - Implemented RtlTranslateHorizontal
11612           - Implemented RtlTranslateLeftRight
11613           - Added generation of KeyPress event
11614
11615 2004-10-02 05:57  ravindra
11616
11617         * ListViewItem.cs: Added attributes.
11618
11619 2004-10-02 05:32  ravindra
11620
11621         * ListView.cs: Added attributes.
11622
11623 2004-10-01 11:53  jackson
11624
11625         * Form.cs: Implement the Close method so work on MessageBox can
11626           continue.
11627
11628 2004-09-30 14:06  pbartok
11629
11630         * XplatUIX11.cs:
11631           - Bug fixes
11632
11633 2004-09-30 11:34  jackson
11634
11635         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11636
11637 2004-09-30 07:26  ravindra
11638
11639         * ListViewItemConverter.cs: Converter for ListViewItem.
11640
11641 2004-09-30 07:26  ravindra
11642
11643         * SortOrder.cs: Enum for ListView control.
11644
11645 2004-09-30 07:25  ravindra
11646
11647         * ColumnHeader.cs: Supporting class for ListView control.
11648
11649 2004-09-30 07:24  ravindra
11650
11651         * ListView.cs, ListViewItem.cs: Initial implementation.
11652
11653 2004-09-30 07:20  ravindra
11654
11655         * ItemActivation.cs: Enum for ListView Control.
11656
11657 2004-09-29 20:29  pbartok
11658
11659         * XplatUIX11.cs:
11660           - Added lookup of pixel value for background color; tries to get a
11661             color 'close' to the requested color, it avoids having to create a
11662             colormap.  Depending on the display this could mean the used color
11663             is slightly off the desired color. Might have to change it to a more
11664             resource intensive colormap approach, but it will work as a
11665           workaround to avoid red screens.
11666
11667 2004-09-29 14:27  jackson
11668
11669         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11670
11671 2004-09-28 12:44  pbartok
11672
11673         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
11674           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
11675           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
11676           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
11677           TrackBar.cs, VScrollBar.cs:
11678           - Streamlined Theme interfaces:
11679             * Each DrawXXX method for a control now is passed the object for
11680               the control to be drawn in order to allow accessing any state the
11681               theme might require
11682
11683             * ControlPaint methods for the theme now have a CP prefix to avoid
11684               name clashes with the Draw methods for controls
11685
11686             * Every control now retrieves it's DefaultSize from the current
11687             theme
11688
11689 2004-09-28 12:17  jackson
11690
11691         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
11692           drawing
11693
11694 2004-09-24 14:57  jackson
11695
11696         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
11697           Gives us a nice little performance boost.
11698
11699 2004-09-24 12:02  jackson
11700
11701         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
11702           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
11703           Control and supporting classes. Initial checkin
11704
11705 2004-09-23 13:08  jackson
11706
11707         * Form.cs: Temp build fixage
11708
11709 2004-09-23 01:39  ravindra
11710
11711         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
11712           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
11713           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
11714           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
11715           EventHandlers needed by ListView Control.
11716
11717 2004-09-22 14:12  pbartok
11718
11719         * ScrollableControl.cs:
11720           - Implemented DockPadding property
11721           - Implemented AutoScroll property
11722           - Implemented AutoScrollMargin property
11723           - Implemented AutoScrollMinSize property
11724           - Implemented AutoScrollPosition property
11725           - Implemented DisplayRectangle property (still incomplete)
11726           - Implemented CreateParams property
11727           - Implemented HScroll property
11728           - Implemented VScroll property
11729           - Implemented OnVisibleChanged property
11730
11731 2004-09-22 14:09  pbartok
11732
11733         * Form.cs:
11734           - Added Form.ControllCollection class
11735           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
11736             RemoveOwnedForm (still incomplete, missing on-top and common
11737             minimize/maximize behaviour)
11738           - Added StartPosition property (still incomplete, does not use when
11739             creating the form)
11740           - Added ShowDialog() methods (still incomplete, missing forcing the
11741             dialog modal)
11742
11743 2004-09-22 14:05  pbartok
11744
11745         * Application.cs:
11746           - Added message loop for modal dialogs
11747
11748 2004-09-22 14:02  pbartok
11749
11750         * GroupBox.cs:
11751           - Fixed wrong types for events
11752
11753 2004-09-22 14:00  pbartok
11754
11755         * Shortcut.cs, FormWindowState.cs:
11756           - Fixed wrong values
11757
11758 2004-09-22 12:01  jackson
11759
11760         * Control.cs: Text is never null
11761
11762 2004-09-20 22:14  pbartok
11763
11764         * XplatUIWin32.cs:
11765           - Fixed accessibility level for Idle handler
11766
11767 2004-09-20 18:54  jackson
11768
11769         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11770           XplatUIX11.cs: New message loop that uses poll so we don't get a
11771           busy loop
11772
11773 2004-09-17 10:43  pbartok
11774
11775         * ScrollBar.cs:
11776           - Fixed behaviour of arrow buttons. Now properly behaves like
11777             Buttons (and like Microsoft's scrollbar arrow buttons)
11778
11779 2004-09-17 10:14  pbartok
11780
11781         * ScrollBar.cs:
11782           - Added missing release of keyboard/mouse capture
11783
11784 2004-09-17 06:18  jordi
11785
11786         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
11787           Theme.cs: Very early menu support
11788
11789 2004-09-16 17:45  pbartok
11790
11791         * XplatUIWin32.cs:
11792           - Fixed sending a window to the front
11793           - Added overload for SetWindowPos to avoid casting
11794
11795 2004-09-16 17:44  pbartok
11796
11797         * Control.cs:
11798           - Added SendToBack and BringToFront methods
11799
11800 2004-09-16 07:00  ravindra
11801
11802         * Copyright: Added Novell URL.
11803
11804 2004-09-16 07:00  ravindra
11805
11806         * ToolBar.cs: Invalidate should be done before redrawing.
11807
11808 2004-09-15 21:19  ravindra
11809
11810         * ColumnHeaderStyle.cs: Enum for ListView Control.
11811
11812 2004-09-15 21:18  ravindra
11813
11814         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
11815           ListView Control.
11816
11817 2004-09-13 18:26  jackson
11818
11819         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
11820           properly
11821
11822 2004-09-13 18:13  jackson
11823
11824         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
11825           a second thread and post messages into the main threads message
11826           queue. This makes timing much more consistent. Both win2K and XP
11827           have a minimum timer value of 15 milliseconds, so we now do this
11828           too.
11829
11830 2004-09-13 15:18  pbartok
11831
11832         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11833           XplatUIX11.cs:
11834           - Added Z-Ordering methods
11835
11836 2004-09-13 10:56  pbartok
11837
11838         * Form.cs:
11839           - Fixed #region names
11840           - Moved properties and methods into their proper #regions
11841
11842 2004-09-13 10:51  pbartok
11843
11844         * Form.cs:
11845           - Added Accept and CancelButton properties
11846           - Added ProcessDialogKey() method
11847
11848 2004-09-13 08:18  pbartok
11849
11850         * IWindowTarget.cs:
11851           - Initial check-in
11852
11853 2004-09-10 21:50  pbartok
11854
11855         * Control.cs:
11856           - Added DoDragDrop() [incomplete]
11857           - Properly implemented 'Visible' handling
11858           - Added SetVisibleCore()
11859           - Implemented FindChildAtPoint()
11860           - Implemented GetContainerControl()
11861           - Implemented Hide()
11862
11863 2004-09-10 19:28  pbartok
11864
11865         * Control.cs:
11866           - Moved methods into their appropriate #regions
11867           - Reordered methods within regions alphabetically
11868
11869 2004-09-10 18:57  pbartok
11870
11871         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
11872           - Added method to retrieve text from window
11873
11874 2004-09-10 18:56  pbartok
11875
11876         * Control.cs:
11877           - Moved some internal functions into the internal region
11878           - Implemented FontHeight
11879           - Implemented RenderRightToLeft
11880           - Implemented ResizeRedraw
11881           - Implemented ShowFocusCues
11882           - Implemented ShowKeyboardCues
11883           - Implemented FromChildHandle
11884           - Implemented FromHandle
11885           - Implemented IsMnemonic
11886           - Implemented ReflectMessage
11887           - All public and protected Static Methods are now complete
11888
11889 2004-09-10 16:54  pbartok
11890
11891         * Control.cs:
11892           - Implemented remaining missing public instance properties
11893           - Alphabetized some out of order properties
11894
11895 2004-09-10 05:51  ravindra
11896
11897         * PictureBox.cs: Added a check for null image.
11898
11899 2004-09-10 00:59  jordi
11900
11901         * GroupBox.cs: remove cvs tag
11902
11903 2004-09-09 05:25  ravindra
11904
11905         * ToolBar.cs: Make redraw accessible from ToolBarButton.
11906
11907 2004-09-09 05:23  ravindra
11908
11909         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
11910           parent redraw.
11911
11912 2004-09-09 02:28  pbartok
11913
11914         * ThemeWin32Classic.cs:
11915           - Improve disabled string look
11916
11917 2004-09-09 01:15  jordi
11918
11919         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
11920           args and handler
11921
11922 2004-09-08 23:56  ravindra
11923
11924         * ItemBoundsPortion.cs: It's enum, not a class!
11925
11926 2004-09-08 23:47  ravindra
11927
11928         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
11929           Enums for Form.
11930
11931 2004-09-08 21:13  ravindra
11932
11933         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
11934           ListView control.
11935
11936 2004-09-08 21:03  ravindra
11937
11938         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
11939           avoid crash.
11940
11941 2004-09-08 21:01  ravindra
11942
11943         * ScrollableControl.cs: Removed unreachable code.
11944
11945 2004-09-08 06:45  jordi
11946
11947         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
11948
11949 2004-09-08 01:00  jackson
11950
11951         * XplatUIX11.cs: Only run the timers when updating the message
11952           queue. This effectively gives X messages a higher priority then
11953           timer messages. Timers still need love though
11954
11955 2004-09-07 14:01  jackson
11956
11957         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
11958           this for us and the handle is no longer valid.
11959
11960 2004-09-07 13:59  jackson
11961
11962         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
11963           loop that manages to not crash. TODO: Add poll and cleanup timers
11964
11965 2004-09-07 11:12  jordi
11966
11967         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
11968
11969 2004-09-07 03:40  jordi
11970
11971         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
11972           fixes, methods, multiple links
11973
11974 2004-09-06 06:55  jordi
11975
11976         * Control.cs: Caches ClientRectangle rectangle value
11977
11978 2004-09-05 02:03  jordi
11979
11980         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
11981           certain situations
11982
11983 2004-09-04 11:10  jordi
11984
11985         * Label.cs: Refresh when font changed
11986
11987 2004-09-02 16:24  pbartok
11988
11989         * Control.cs:
11990           - Added sanity check to creation of double buffer bitmap
11991
11992 2004-09-02 16:24  pbartok
11993
11994         * ButtonBase.cs:
11995           - Fixed selection of text color
11996           - Fixed handling of resize event; now properly recreates double
11997             buffering bitmap
11998           - Added missing assignment of TextAlignment
11999           - Added proper default for TextAlignment
12000
12001 2004-09-02 14:26  pbartok
12002
12003         * RadioButton.cs:
12004           - Added missing RadioButton.RadioButtonAccessibleObject class
12005
12006 2004-09-02 14:26  pbartok
12007
12008         * Control.cs:
12009           - Added missing Control.ControlAccessibleObject class
12010           - Started to implement Select()ion mechanisms, still very incomplete
12011
12012 2004-09-02 14:25  pbartok
12013
12014         * AccessibleObject.cs:
12015           - Added missing methods
12016
12017 2004-09-02 14:23  pbartok
12018
12019         * AccessibleNavigation.cs, AccessibleSelection.cs:
12020           - Initial check-in
12021
12022 2004-09-02 10:32  jordi
12023
12024         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12025           pool for pens, brushes, and hatchbruses
12026
12027 2004-09-01 15:30  jackson
12028
12029         * StatusBar.cs: Fix typo
12030
12031 2004-09-01 14:44  pbartok
12032
12033         * RadioButton.cs:
12034           - Fixed state
12035
12036 2004-09-01 14:39  pbartok
12037
12038         * Button.cs, RadioButton.cs:
12039           - Functional initial check-in
12040
12041 2004-09-01 14:01  pbartok
12042
12043         * CheckBox.cs:
12044           - Added missing default
12045           - Added missing region mark
12046
12047 2004-09-01 09:10  jordi
12048
12049         * Label.cs: fixes method signatures, new methods, events, fixes
12050           autosize
12051
12052 2004-09-01 07:19  jordi
12053
12054         * Control.cs: Init string variables with an empty object
12055
12056 2004-09-01 04:20  jordi
12057
12058         * Control.cs: fires OnFontChanged event
12059
12060 2004-08-31 20:07  pbartok
12061
12062         * ButtonBase.cs:
12063           - Enabled display of strings
12064
12065 2004-08-31 20:05  pbartok
12066
12067         * Form.cs:
12068           - Added (partial) implementation of DialogResult; rest needs to be
12069             implemented when the modal loop code is done
12070
12071 2004-08-31 19:55  pbartok
12072
12073         * CheckBox.cs:
12074           - Fixed to match the removal of the needs_redraw concept
12075
12076 2004-08-31 19:55  pbartok
12077
12078         * ButtonBase.cs:
12079           - Removed the rather odd split between 'needs redraw' and redrawing
12080           - Now handles the events that require regeneration (ambient
12081             properties and size)
12082
12083 2004-08-31 19:41  pbartok
12084
12085         * Control.cs:
12086           - Added firing of BackColorChanged event
12087           - Added TopLevelControl property
12088           - Fixed handling of WM_ERASEBKGRND message
12089
12090 2004-08-31 12:49  pbartok
12091
12092         * ButtonBase.cs:
12093           - Removed debug
12094           - Minor fixes
12095
12096 2004-08-31 12:48  pbartok
12097
12098         * CheckBox.cs:
12099           - Finished (famous last words)
12100
12101 2004-08-31 04:35  jordi
12102
12103         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12104           scrolling bugs, adds new methods
12105
12106 2004-08-30 14:42  pbartok
12107
12108         * CheckBox.cs:
12109           - Implemented CheckBox drawing code
12110
12111 2004-08-30 14:42  pbartok
12112
12113         * ButtonBase.cs:
12114           - Made Redraw() and CheckRedraw() virtual
12115           - Improved mouse up/down/move logic to properly track buttons
12116
12117 2004-08-30 09:44  pbartok
12118
12119         * CheckBox.cs:
12120           - Updated to fix broken build. Not complete yet.
12121
12122 2004-08-30 09:28  pbartok
12123
12124         * CheckState.cs:
12125           - Initial checkin
12126
12127 2004-08-30 09:17  pbartok
12128
12129         * Appearance.cs:
12130           - Initial check-in
12131
12132 2004-08-27 16:12  ravindra
12133
12134         * ToolBarButton.cs: Added TypeConverter attribute.
12135
12136 2004-08-27 16:07  ravindra
12137
12138         * ImageIndexConverter.cs: Implemented.
12139
12140 2004-08-27 14:17  pbartok
12141
12142         * Control.cs:
12143           - Removed unneeded stack vars
12144           - First attempt to fix sizing issues when layout is suspended
12145
12146 2004-08-25 15:35  jordi
12147
12148         * ScrollBar.cs: more fixes to scrollbar
12149
12150 2004-08-25 14:04  ravindra
12151
12152         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12153           Added the missing divider code and grip for ToolBar Control.
12154
12155 2004-08-25 13:20  pbartok
12156
12157         * Control.cs:
12158           - Control now properly passes the ambient background color to child
12159             controls
12160
12161 2004-08-25 13:20  jordi
12162
12163         * ScrollBar.cs: small bug fix regarding bar position
12164
12165 2004-08-25 12:33  pbartok
12166
12167         * Timer.cs:
12168           - Now only calls SetTimer or KillTimer if the enabled state has
12169           changed
12170
12171 2004-08-25 12:33  pbartok
12172
12173         * XplatUIWin32.cs:
12174           - Fixed timer handling, now seems to work
12175           - Improved error message for window creation
12176
12177 2004-08-25 12:32  pbartok
12178
12179         * Control.cs:
12180           - Fixed generation of MouseUp message
12181
12182 2004-08-25 12:29  jordi
12183
12184         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12185           and fixes for progressbar
12186
12187 2004-08-24 18:43  ravindra
12188
12189         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12190           in ToolBar control.
12191
12192 2004-08-24 17:15  pbartok
12193
12194         * Panel.cs:
12195           - Added #region
12196           - Added missing events
12197           - Alphabetized
12198
12199 2004-08-24 17:14  pbartok
12200
12201         * StatusBar.cs, PictureBox.cs:
12202           - Now uses Control's CreateParams
12203
12204 2004-08-24 16:36  pbartok
12205
12206         * XplatUIX11.cs:
12207           - Fixed background color handling
12208           - Fixed sending of enter/leave events on a grab
12209
12210 2004-08-24 16:35  pbartok
12211
12212         * X11Structs.cs:
12213           - Refined definitions for CrossingEvent
12214
12215 2004-08-24 12:37  jordi
12216
12217         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12218           formmating, methods signature, and adds missing events
12219
12220 2004-08-24 12:24  jordi
12221
12222         * Control.cs: fire OnEnabledChanged event
12223
12224 2004-08-24 11:17  pbartok
12225
12226         * XplatUIWin32.cs:
12227           - Implemented SetTimer() and KillTimer()
12228
12229 2004-08-24 11:16  pbartok
12230
12231         * XplatUIX11.cs:
12232           - Now uses Remove instead of Add to kill the timer
12233
12234 2004-08-24 10:16  jackson
12235
12236         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12237           picture boxes in the theme now. Draw picture box borders and obey
12238           sizing modes
12239
12240 2004-08-24 05:49  jackson
12241
12242         * Timer.cs: Remove top secret debugging code
12243
12244 2004-08-24 05:34  jackson
12245
12246         * PictureBox.cs: Temp hack to make picture boxes draw their full
12247           image
12248
12249 2004-08-24 05:29  jackson
12250
12251         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12252           XplatUIX11.cs: Move timers to the driver level. On X they are
12253           queued by the driver and checked on idle.
12254
12255 2004-08-24 01:07  jackson
12256
12257         * XplatUIX11.cs: Use a queue for async messages instead of passing
12258           them as ClientMessages since that was totally broken. Also simply
12259           check for events and return an idle message if none are found. This
12260           gives us an idle handler, and prevents deadlocking when no messages
12261           are in the queue.
12262
12263 2004-08-23 18:19  ravindra
12264
12265         * XplatUIWin32.cs: Removed the unwanted destructor.
12266
12267 2004-08-23 17:27  pbartok
12268
12269         * ButtonBase.cs:
12270           - Finishing touches. Works now, just needs some optimizations.
12271
12272 2004-08-23 16:53  jordi
12273
12274         * ScrollBar.cs: small fix
12275
12276 2004-08-23 16:45  pbartok
12277
12278         * Application.cs:
12279           - Removed debug output
12280           - Simplifications
12281
12282 2004-08-23 16:43  jordi
12283
12284         * ScrollBar.cs: [no log message]
12285
12286 2004-08-23 16:10  pbartok
12287
12288         * Form.cs:
12289           - Fixed handling of WM_CLOSE message
12290           - Removed debug output
12291
12292 2004-08-23 16:09  pbartok
12293
12294         * Application.cs:
12295           - Added handling of Idle event
12296           - Added handling of form closing
12297           - Fixed reporting of MessageLoop property
12298           - Removed some unneeded code, should provide a bit of a speedup
12299
12300 2004-08-23 15:22  pbartok
12301
12302         * Control.cs:
12303           - Added InitLayout() method
12304           - Added code to properly perform layout when Anchor or Dock property
12305             is changed
12306           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12307             LAMESPEC, tried to do it in a way that makes sense
12308
12309 2004-08-23 14:10  jordi
12310
12311         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12312           properties and methods
12313
12314 2004-08-23 13:55  pbartok
12315
12316         * Control.cs:
12317           - Properly fixed Jordi's last fix
12318           - Now uses Cursor's Position property instead of calling XplatUI
12319           directly
12320
12321 2004-08-23 13:44  jordi
12322
12323         * PaintEventHandler.cs: Adding missing attribute
12324
12325 2004-08-23 13:39  pbartok
12326
12327         * Cursor.cs:
12328           - Implemented Position property
12329
12330 2004-08-23 13:39  pbartok
12331
12332         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12333           - Added method to move mouse cursor
12334
12335 2004-08-23 13:39  pbartok
12336
12337         * XplatUIX11.cs:
12338           - Fixed setting of background color
12339           - Added method to move mouse cursor
12340
12341 2004-08-23 13:16  jordi
12342
12343         * Control.cs: avoids null exception
12344
12345 2004-08-22 17:46  jackson
12346
12347         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12348           PictureBox
12349
12350 2004-08-22 17:40  jackson
12351
12352         * XplatUIX11.cs: Add some missing locks
12353
12354 2004-08-22 15:10  pbartok
12355
12356         * Control.cs, Form.cs:
12357           - Removed OverlappedWindow style from Control, instead it's default
12358             now is child
12359           - Made form windows OverlappedWindow by default
12360
12361 2004-08-22 13:34  jackson
12362
12363         * ScrollBar.cs: Update the position through the Value property so
12364           the OnValueChanged event is raised.
12365
12366 2004-08-22 12:04  pbartok
12367
12368         * SWF.csproj:
12369           - Added Cursor.cs and UserControl.cs
12370
12371 2004-08-22 12:03  pbartok
12372
12373         * Cursor.cs:
12374           - Started implementation, not usable yet
12375
12376 2004-08-22 12:00  pbartok
12377
12378         * UserControl.cs:
12379           - Implemented UserControl (complete)
12380
12381 2004-08-21 19:20  ravindra
12382
12383         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12384
12385 2004-08-21 18:49  ravindra
12386
12387         * ToolBar.cs: Probably this completes the missing attributes in
12388           toolbar control.
12389
12390 2004-08-21 18:03  ravindra
12391
12392         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12393           Fixed toolbar control signatures.
12394
12395 2004-08-21 16:32  pbartok
12396
12397         * LinkLabel.cs:
12398           - Signature Fixes
12399
12400 2004-08-21 16:30  pbartok
12401
12402         * Label.cs:
12403           - Signature fixes
12404
12405 2004-08-21 16:19  pbartok
12406
12407         * Control.cs, Label.cs:
12408           - Signature fixes
12409
12410 2004-08-21 15:57  pbartok
12411
12412         * ButtonBase.cs:
12413           - Added loads of debug output for development
12414           - Fixed typo in method name
12415
12416 2004-08-21 15:52  pbartok
12417
12418         * ToolBarButtonClickEventArgs.cs:
12419           - Added missing base class
12420
12421 2004-08-21 14:53  pbartok
12422
12423         * Control.cs:
12424           - Updated to match new GrabWindow signature
12425
12426 2004-08-21 14:51  pbartok
12427
12428         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12429           - Added method to get default display size
12430
12431 2004-08-21 14:23  pbartok
12432
12433         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12434           - Added method to query current grab state
12435           - Added argument to allow confining a grab to a window
12436
12437 2004-08-21 14:22  pbartok
12438
12439         * Keys.cs:
12440           - Added [Flags] attribute so that modifiers can be used in bitwise
12441           ops
12442
12443 2004-08-21 14:21  pbartok
12444
12445         * TrackBar.cs, ScrollBar.cs:
12446           - Replaced direct XplatUI calls with their Control counterpart
12447
12448 2004-08-21 13:32  pbartok
12449
12450         * Control.cs:
12451           - Implemented Created property
12452
12453 2004-08-21 13:28  pbartok
12454
12455         * Control.cs:
12456           - Implemented ContainsFocus
12457
12458 2004-08-21 13:26  pbartok
12459
12460         * Control.cs:
12461           - Implemented CausesValidation
12462
12463 2004-08-21 13:21  pbartok
12464
12465         * Control.cs:
12466           - Implemented CanFocus
12467           - Implemented CanSelect
12468           - Implemented Capture
12469
12470 2004-08-21 12:35  pbartok
12471
12472         * XplatUIWin32.cs:
12473           - Fixed bug with Async message handling
12474           - Implemented getting the ModifierKeys
12475
12476 2004-08-21 12:32  jackson
12477
12478         * AsyncMethodResult.cs: Make sure we have the mutex before we
12479           release it. Fixes BeginInvoke on windows
12480
12481 2004-08-21 11:31  pbartok
12482
12483         * XplatUIWin32.cs, XplatUIX11.cs:
12484           - Drivers now return proper mouse state
12485
12486 2004-08-21 10:54  jackson
12487
12488         * Control.cs: Implement EndInvoke
12489
12490 2004-08-21 10:48  jackson
12491
12492         * Timer.cs: Remove unneeded finalizer
12493
12494 2004-08-20 19:52  ravindra
12495
12496         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12497           in mouse event handling in the ToolBar control.
12498
12499 2004-08-20 19:50  ravindra
12500
12501         * ImageList.cs: Changed draw method to use the arguments passed in
12502           to draw the image.
12503
12504 2004-08-20 18:58  pbartok
12505
12506         * XplatUIStructs.cs:
12507           - Added private message for async communication
12508
12509 2004-08-20 17:38  ravindra
12510
12511         * Control.cs: Made RightToLeft property virtual and removed a
12512           Console.WriteLine.
12513
12514 2004-08-20 14:39  jordi
12515
12516         * ThemeGtk.cs: use style_attach
12517
12518 2004-08-20 14:39  pbartok
12519
12520         * XplatUIWin32.cs:
12521           - Added jackson's Async code from X11 to Win32
12522
12523 2004-08-20 14:09  pbartok
12524
12525         * SWF.csproj:
12526           - Added all new files
12527
12528 2004-08-20 14:09  pbartok
12529
12530         * Control.cs:
12531           - Added call to set window background color
12532
12533 2004-08-20 14:03  pbartok
12534
12535         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12536           - Added method for setting the window background
12537
12538 2004-08-20 14:02  pbartok
12539
12540         * XplatUIWin32.cs:
12541           - Added method for setting the background color
12542           - Added handling for erasing the window background
12543
12544 2004-08-20 13:45  jordi
12545
12546         * TrackBar.cs: fixes timer, new properties and methods
12547
12548 2004-08-20 13:34  jackson
12549
12550         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12551           correct thread
12552
12553 2004-08-20 13:22  jackson
12554
12555         * Timer.cs: Timer Tick events are now handed through Controls Async
12556           mechanism so the callbacks are executed in the same thread as X
12557
12558 2004-08-20 13:19  jackson
12559
12560         * XplatUIDriver.cs: Expose functionality to send async messages
12561           through the driver
12562
12563 2004-08-20 13:18  jackson
12564
12565         * Control.cs: Implement Begininvoke
12566
12567 2004-08-20 13:14  jackson
12568
12569         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12570           messages through the driver
12571
12572 2004-08-20 13:12  jackson
12573
12574         * XplatUIX11.cs: Lock before all X operations. Also added Async
12575           method functionality through XSendEvent
12576
12577 2004-08-20 13:11  jackson
12578
12579         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12580           This will screw up on 64 bit systems)
12581
12582 2004-08-20 13:10  jackson
12583
12584         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12585           Async messages through X/Win32
12586
12587 2004-08-19 19:39  pbartok
12588
12589         * XplatUIX11.cs:
12590           - Updated code to match new HandleData.DeviceContext type
12591
12592 2004-08-19 19:38  pbartok
12593
12594         * HandleData.cs:
12595           - Made DeviceContext a generic object to allow usage from various
12596           drivers
12597           - Added support for queueing Windows messages
12598
12599 2004-08-19 19:37  pbartok
12600
12601         * XplatUIWin32.cs:
12602           - Added generation of MouseEnter, MouseLeave and MouseHover events
12603           - Added cleanup on EndPaint
12604
12605 2004-08-19 19:17  pbartok
12606
12607         * Control.cs:
12608           - Added handling of WM_MOUSEHOVER
12609           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12610           code
12611
12612 2004-08-19 18:55  jordi
12613
12614         * ThemeGtk.cs: fixes button order
12615
12616 2004-08-19 18:12  jordi
12617
12618         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12619
12620 2004-08-19 17:09  pbartok
12621
12622         * Control.cs:
12623           - Added Right property
12624           - Added RightToLeft property
12625
12626 2004-08-19 16:27  jordi
12627
12628         * ThemeGtk.cs: experimental GTK theme support
12629
12630 2004-08-19 16:26  jordi
12631
12632         * ITheme.cs, Theme.cs: move themes from an interface to a class
12633
12634 2004-08-19 16:25  jordi
12635
12636         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12637           theme enhancaments
12638
12639 2004-08-19 16:04  pbartok
12640
12641         * XplatUIX11.cs:
12642           - Added colormap basics
12643           - Added a way to re-initialize with a different display handle
12644           - Fixed setting of the window background color
12645           - Added various X11 imports related to colors and colormaps
12646
12647 2004-08-19 15:51  pbartok
12648
12649         * X11Structs.cs:
12650           - Removed packing hints (Paolo suggested this a while back)
12651           - fixed colormap type
12652           - Added default Atom types
12653           - Added Screen and color structs and enums
12654
12655 2004-08-19 15:39  pbartok
12656
12657         * ImageList.cs:
12658           - Added missing Draw() method
12659           - Added missing RecreateHandle event
12660
12661 2004-08-19 15:30  pbartok
12662
12663         * Form.cs:
12664           - Added handling of WM_CLOSE
12665
12666 2004-08-18 13:16  jordi
12667
12668         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12669           a table
12670
12671 2004-08-18 09:56  jordi
12672
12673         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
12674
12675 2004-08-17 15:31  ravindra
12676
12677         * SWF.csproj: Updated project.
12678
12679 2004-08-17 15:25  pbartok
12680
12681         * Control.cs:
12682           - Drawing improvement; don't call UpdateBounds if we are not visible
12683             (or have been minimized)
12684
12685 2004-08-17 15:24  pbartok
12686
12687         * XplatUIWin32.cs:
12688           - Finished IsVisible
12689           - Added Win32GetWindowPlacement
12690
12691 2004-08-17 15:08  jackson
12692
12693         * Panel.cs: Initial checkin of the Panel
12694
12695 2004-08-17 14:25  pbartok
12696
12697         * Control.cs:
12698           - Fixed broken handling of default window sizes
12699
12700 2004-08-17 13:29  jackson
12701
12702         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
12703           has a large startup time.
12704
12705 2004-08-17 10:25  jackson
12706
12707         * HandleData.cs: union areas properly
12708
12709 2004-08-17 10:12  jackson
12710
12711         * HandleData.cs: union areas properly
12712
12713 2004-08-16 20:00  ravindra
12714
12715         * ToolBar.cs, ToolBarButton.cs: Added attributes.
12716
12717 2004-08-16 18:48  ravindra
12718
12719         * ToolBar.cs: Added attributes.
12720
12721 2004-08-16 17:17  ravindra
12722
12723         * SWF.csproj: Updated project.
12724
12725 2004-08-16 17:16  jackson
12726
12727         * XplatUIX11.cs: Check for more expose events before sending a
12728           WM_PAINT so they can all be grouped together. This makes dragging a
12729           window across another window redraw in a sane way.
12730
12731 2004-08-16 15:47  pbartok
12732
12733         * Control.cs:
12734           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
12735             support OnMouseEnter/Leave()
12736           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
12737             exposure handling
12738
12739 2004-08-16 15:46  pbartok
12740
12741         * XplatUIStructs.cs, XplatUIX11.cs:
12742           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
12743           OnMouseEnter/Leave()
12744
12745 2004-08-16 15:34  jackson
12746
12747         * XplatUIX11.cs: Group multiple expose events in HandleData, make
12748           sure messages get the message field set to WM_NULL if they are not
12749           handled.
12750
12751 2004-08-16 15:24  jackson
12752
12753         * HandleData.cs: HandleData is used for storing message information
12754           for window handles
12755
12756 2004-08-15 17:23  ravindra
12757
12758         * ColorDepth.cs: Added attribute.
12759
12760 2004-08-15 17:23  ravindra
12761
12762         * SWF.csproj: Updated project for ToolBar Control.
12763
12764 2004-08-15 17:20  ravindra
12765
12766         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
12767           control and also dos2unix format.
12768
12769 2004-08-15 17:13  ravindra
12770
12771         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
12772           ToolBarButtonClickEventArgs.cs,
12773           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
12774           ToolBarTextAlign.cs: First Implementation of ToolBar control.
12775
12776 2004-08-15 15:31  pbartok
12777
12778         * ButtonBase.cs:
12779           - First (mostly) working version
12780
12781 2004-08-13 16:15  pbartok
12782
12783         * Control.cs:
12784           - Fixed Anchor default
12785
12786 2004-08-13 15:43  pbartok
12787
12788         * Control.cs:
12789           - Changed GetCursorPos signature
12790
12791 2004-08-13 15:42  pbartok
12792
12793         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12794           - Changed signature for GetCursorPos
12795
12796 2004-08-13 15:25  pbartok
12797
12798         * XplatUIX11.cs:
12799           - Cleanup
12800           - Fixed resizing/exposure handling
12801
12802 2004-08-13 15:22  jordi
12803
12804         * ThemeWin32Classic.cs: removes redundant code and fixes issues
12805           with tickposition
12806
12807 2004-08-13 14:55  jordi
12808
12809         * TrackBar.cs: change from wndproc to events
12810
12811 2004-08-13 13:00  jordi
12812
12813         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12814           XplatUIX11.cs: implements PointToClient (ScreenToClient)
12815
12816 2004-08-13 12:53  pbartok
12817
12818         * XplatUIWin32.cs:
12819           - Changed GetWindowPos to also provide client area size
12820           - Fixed broken prototypes for several win32 functions
12821
12822 2004-08-13 12:53  pbartok
12823
12824         * XplatUI.cs, XplatUIDriver.cs:
12825           - Changed GetWindowPos to also provide client area size
12826
12827 2004-08-13 12:52  pbartok
12828
12829         * XplatUIX11.cs:
12830           - Added generation of WM_POSCHANGED
12831           - Changed GetWindowPos to also provide client area size
12832
12833 2004-08-13 12:52  pbartok
12834
12835         * Control.cs:
12836           - Added Dispose() and destructor
12837           - Fixed resizing and bounds calculation
12838           - Fixed Layout
12839           - Added memory savings for invisible windows
12840
12841 2004-08-13 12:46  jordi
12842
12843         * TrackBar.cs: adds timer and grap window
12844
12845 2004-08-13 10:25  jackson
12846
12847         * Timer.cs: SWF Timer
12848
12849 2004-08-12 16:59  pbartok
12850
12851         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12852           - Implemented method to get current mouse position
12853
12854 2004-08-12 14:29  jordi
12855
12856         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
12857           enhancement, fix mouse problems, highli thumb, etc
12858
12859 2004-08-12 13:31  pbartok
12860
12861         * Control.cs:
12862           - Fixed Anchoring bugs
12863
12864 2004-08-12 13:01  jackson
12865
12866         * StatusBar.cs: Don't forget things
12867
12868 2004-08-12 12:54  jackson
12869
12870         * ThemeWin32Classic.cs: Handle owner draw status bars
12871
12872 2004-08-12 12:54  jackson
12873
12874         * StatusBar.cs: Implement missing properties, events, and methods.
12875           Handle mouse clicking
12876
12877 2004-08-12 10:19  jackson
12878
12879         * StatusBarPanelClickEventArgs.cs,
12880           StatusBarPanelClickEventHandler.cs: Classes for handling status
12881           bar panel click events
12882
12883 2004-08-12 10:10  jackson
12884
12885         * Control.cs: Add missing properties
12886
12887 2004-08-12 09:46  pbartok
12888
12889         * BindingsManagerBase.cs:
12890           - Name changed to BindingManagerBase.cs
12891
12892 2004-08-12 09:25  jordi
12893
12894         * ScrollableControl.cs: calls ctrlbase instead of exeception
12895
12896 2004-08-11 16:28  pbartok
12897
12898         * InputLanguageChangingEventArgs.cs:
12899           - Never check in before compiling. Fixes the last check-in
12900
12901 2004-08-11 16:26  pbartok
12902
12903         * InputLanguageChangingEventArgs.cs:
12904           - More signature fixes
12905
12906 2004-08-11 16:20  pbartok
12907
12908         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
12909           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
12910           ImageListStreamer.cs, InputLanguage.cs,
12911           InputLanguageChangedEventArgs.cs,
12912           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
12913           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
12914           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
12915           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12916           - Signature fixes
12917
12918 2004-08-11 16:16  pbartok
12919
12920         * Application.cs:
12921           - Fixed Signature
12922           - Added .Net 1.1 method
12923
12924 2004-08-11 15:25  pbartok
12925
12926         * SWF.csproj:
12927           - Fixed BindingManagerBase.cs filename
12928
12929 2004-08-11 15:22  pbartok
12930
12931         * BindingManagerBase.cs:
12932           - Was checked in with wrong filename
12933
12934 2004-08-11 14:50  pbartok
12935
12936         * SWF.csproj:
12937           - Updated
12938
12939 2004-08-11 13:41  jordi
12940
12941         * XplatUIWin32.cs: Fixes ClientRect
12942
12943 2004-08-11 13:19  pbartok
12944
12945         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12946           XplatUIX11.cs:
12947           - We had SetWindowPos and MoveWindow to set window positions and
12948             size, removed MoveWindow. We have GetWindowPos, so it made sense to
12949             keep SetWindowPos as matching counterpart
12950           - Added some X11 sanity checking
12951
12952 2004-08-11 12:59  pbartok
12953
12954         * Control.cs:
12955           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
12956             (It seems that SetBounds is just a front for SetBoundsCore and
12957              SetBoundsCore updates the underlying window system and
12958              UpdateBounds is responsible for updating the variables associated
12959              with the Control and sending the events)
12960           - Major cleanup of Size handling; we now have two sizes, client_size
12961             and bounds. Bounds defines the window with decorations, client_size
12962             without them.
12963
12964 2004-08-11 12:55  pbartok
12965
12966         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12967           - Added method to calculate difference between decorated window and
12968             raw client area
12969
12970 2004-08-11 12:54  pbartok
12971
12972         * Label.cs:
12973           - Forcing redraw on resize
12974
12975 2004-08-11 11:43  pbartok
12976
12977         * ImageList.cs:
12978           - Removed disposing of the actual images when the list is disposed
12979
12980 2004-08-11 09:13  pbartok
12981
12982         * Control.cs:
12983           - Now properly reparents windows
12984
12985 2004-08-11 08:37  pbartok
12986
12987         * Control.cs:
12988           - Duh!
12989
12990 2004-08-11 07:47  pbartok
12991
12992         * Control.cs:
12993           - Rewrote the collection stuff. Might not be as fast now, not
12994             keeping the number of children around and accessible directly, but
12995             it's more straightforward
12996
12997 2004-08-11 07:44  pbartok
12998
12999         * AccessibleObject.cs:
13000           - Fixed to match ControlCollection rewrite
13001
13002 2004-08-11 07:43  pbartok
13003
13004         * ImageList.cs:
13005           - Added missing creation of the collection list
13006
13007 2004-08-10 20:08  jackson
13008
13009         * StatusBar.cs: Get the paint message from WndProc
13010
13011 2004-08-10 19:31  jackson
13012
13013         * ThemeWin32Classic.cs: Create Brushes as little as possible
13014
13015 2004-08-10 19:20  jackson
13016
13017         * UICues.cs: Add Flags attribute
13018
13019 2004-08-10 19:19  jackson
13020
13021         * StatusBarPanel.cs: Signature cleanup
13022
13023 2004-08-10 19:10  jackson
13024
13025         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13026           Initial implementation of status bar item drawing
13027
13028 2004-08-10 17:27  jordi
13029
13030         * TrackBar.cs: add missing methods, properties, and restructure to
13031           hide extra ones
13032
13033 2004-08-10 16:24  jackson
13034
13035         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13036           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13037           attribute
13038
13039 2004-08-10 13:21  jordi
13040
13041         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13042           enhancements and standarize on win colors defaults
13043
13044 2004-08-10 12:52  jackson
13045
13046         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13047           ThemeWin32Classic.cs: Implement DrawItem functionality
13048
13049 2004-08-10 12:47  jordi
13050
13051         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13052
13053 2004-08-10 12:32  jordi
13054
13055         * Control.cs: throw ontextchange event
13056
13057 2004-08-10 11:43  pbartok
13058
13059         * Control.cs:
13060           - Added more to the still unfinished Dock/Anchor layout code
13061
13062 2004-08-10 11:39  pbartok
13063
13064         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13065           - Added GetWindowPos method
13066
13067 2004-08-10 11:36  pbartok
13068
13069         * XplatUIWin32.cs:
13070           - Implemented several methods
13071
13072 2004-08-10 09:47  jackson
13073
13074         * TrackBar.cs: Allow control to handle buffering
13075
13076 2004-08-10 09:41  jackson
13077
13078         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13079
13080 2004-08-10 09:24  jackson
13081
13082         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13083
13084 2004-08-10 09:09  jackson
13085
13086         * StatusBar.cs: Let Control handle all the buffering.
13087
13088 2004-08-10 09:08  jackson
13089
13090         * Control.cs: Control will now handle the buffering code, so each
13091           control does not have to implement this.
13092
13093 2004-08-10 08:34  jackson
13094
13095         * XplatUIDriver.cs: Use default colors from the theme
13096
13097 2004-08-09 17:12  pbartok
13098
13099         * ImageList.cs:
13100           - Fixed several bugs Ravindra pointed out
13101
13102 2004-08-09 16:11  pbartok
13103
13104         * Control.cs:
13105           - Added incomplete dock layout code
13106           - Added support for mouse wheel
13107
13108 2004-08-09 16:09  pbartok
13109
13110         * XplatUIX11.cs:
13111           - Added handling for middle and right mousebutton
13112           - Added handling for mouse wheel
13113           - Added handling for key state and mouse state and position
13114           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13115           messages
13116
13117 2004-08-09 15:40  jackson
13118
13119         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13120           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13121           checkin
13122
13123 2004-08-09 15:37  jackson
13124
13125         * StatusBar.cs: Initial implementation of StatusBar
13126
13127 2004-08-09 15:36  jackson
13128
13129         * ITheme.cs: Add support for drawing status bar and getting status
13130           bar item sizes
13131
13132 2004-08-09 15:35  pbartok
13133
13134         * MouseButtons.cs:
13135           - Fixed values
13136
13137 2004-08-09 15:34  jackson
13138
13139         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13140           status bar item sizes
13141
13142 2004-08-09 15:21  jackson
13143
13144         * ThemeWin32Classic.cs: Use known colors for default control
13145           colours
13146
13147 2004-08-09 15:12  jackson
13148
13149         * ThemeWin32Classic.cs: Make the default font static, it is static
13150           in control so this doesn't change functionality and creating fonts
13151           is sloooooow.
13152
13153 2004-08-09 14:56  pbartok
13154
13155         * X11Structs.cs:
13156           - Added GrabMode enum
13157
13158 2004-08-09 14:55  pbartok
13159
13160         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13161           - Removed Run method, was only required for initial development
13162
13163 2004-08-09 14:51  pbartok
13164
13165         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13166           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13167           capture
13168
13169 2004-08-09 13:48  pbartok
13170
13171         * XplatUIX11.cs:
13172           - Fixed default sizing for child windows
13173
13174 2004-08-09 12:56  pbartok
13175
13176         * XplatUIX11.cs:
13177           - Added generation of WM_DESTROY message
13178           - Added handling of window manager induced shutdown
13179
13180 2004-08-09 11:31  jackson
13181
13182         * ThemeWin32Classic.cs: New names for control properties
13183
13184 2004-08-09 11:25  jackson
13185
13186         * Control.cs: Use new color names
13187
13188 2004-08-09 11:02  jackson
13189
13190         * XplatUI.cs: Get default window properties from the theme
13191
13192 2004-08-09 11:01  jackson
13193
13194         * ITheme.cs: The theme engine now controls default window
13195           properties
13196
13197 2004-08-09 11:00  jackson
13198
13199         * ThemeWin32Classic.cs: Add default window color properties
13200
13201 2004-08-09 10:17  jackson
13202
13203         * ThemeWin32Classic.cs: Use correct default back color
13204
13205 2004-08-09 10:05  jackson
13206
13207         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13208           the theme now.
13209
13210 2004-08-09 09:56  jackson
13211
13212         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13213
13214 2004-08-09 09:54  jackson
13215
13216         * Control.cs: Get default properties from the theme.
13217
13218 2004-08-09 09:53  jackson
13219
13220         * ITheme.cs: Themes now handle default control properties
13221
13222 2004-08-09 09:53  jackson
13223
13224         * ThemeWin32Classic.cs: Themes now handle default control
13225           properties so coloring will be consistent
13226
13227 2004-08-08 16:54  jordi
13228
13229         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13230
13231 2004-08-08 15:08  jordi
13232
13233         * XplatUIX11.cs: fixes keyboard crash
13234
13235 2004-08-08 13:47  jordi
13236
13237         * Label.cs: add cvs header info
13238
13239 2004-08-08 12:09  jackson
13240
13241         * ThemeWin32Classic.cs: Add pen_buttonface
13242
13243 2004-08-08 11:52  jordi
13244
13245         * Label.cs, LinkLabel.cs: [no log message]
13246
13247 2004-08-08 11:34  jordi
13248
13249         * ThemeWin32Classic.cs: Use Windows Standard Colours
13250
13251 2004-08-07 17:32  jordi
13252
13253         * TrackBar.cs: throw exceptions of invalid enums values
13254
13255 2004-08-07 17:31  jordi
13256
13257         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13258           draw method name
13259
13260 2004-08-07 16:56  jackson
13261
13262         * HorizontalAlignment.cs: Initial checkin
13263
13264 2004-08-07 13:16  jordi
13265
13266         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13267           methods
13268
13269 2004-08-07 13:05  jordi
13270
13271         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13272           GetSysColor defines
13273
13274 2004-08-06 18:01  pbartok
13275
13276         * ThemeWin32Classic.cs:
13277           - Fixed some rounding issues with float/int
13278
13279 2004-08-06 18:00  jackson
13280
13281         * DockStyle.cs, AnchorStyles.cs:
13282
13283                   Add flags and serializable attributes.
13284
13285 2004-08-06 17:46  pbartok
13286
13287         * XplatUIX11.cs:
13288           - Implemented GetParent
13289
13290 2004-08-06 17:18  pbartok
13291
13292         * TrackBar.cs:
13293           - Fixed some rounding issues with float/int
13294
13295 2004-08-06 17:17  pbartok
13296
13297         * X11Structs.cs, XplatUIX11.cs:
13298           - Fixed Refresh and Invalidate
13299
13300 2004-08-06 15:30  pbartok
13301
13302         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13303           - Fixed recursive loop when resizing
13304           - Improved/fixed redrawing on expose messages
13305
13306 2004-08-06 09:53  jordi
13307
13308         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13309           keyboard navigation
13310
13311 2004-08-06 08:02  pbartok
13312
13313         * X11Structs.cs, XplatUIX11.cs:
13314           - Fixed reparenting
13315           - Fixed window border creation
13316
13317 2004-08-05 15:38  pbartok
13318
13319         * XplatUIX11.cs:
13320           - Attempted fix for reparenting problems
13321
13322 2004-08-04 15:14  pbartok
13323
13324         * Control.cs:
13325           - Fixed Invalidation bug (calculated wrong client area)
13326           - Added ClientSize setter
13327
13328 2004-08-04 15:13  pbartok
13329
13330         * Form.cs:
13331           - Added AutoScale properties
13332
13333 2004-08-04 15:13  pbartok
13334
13335         * SWF.csproj:
13336           - Added latest files
13337
13338 2004-08-04 14:11  pbartok
13339
13340         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13341           XplatUIX11.cs:
13342           - Added Invalidate handling
13343
13344 2004-08-03 17:09  jordi
13345
13346         * XplatUIDriver.cs: fixes spelling mistake
13347
13348 2004-07-27 09:53  jordi
13349
13350         * TrackBar.cs: fixes trackbar events, def classname, methods
13351           signature
13352
13353 2004-07-27 09:29  jordi
13354
13355         * ScrollBar.cs: fixes scrollbar events
13356
13357 2004-07-27 04:38  jordi
13358
13359         * Control.cs: changes to be able to run winforms samples
13360
13361 2004-07-26 11:42  jordi
13362
13363         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13364           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13365
13366 2004-07-26 05:41  jordi
13367
13368         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13369           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13370           implementation
13371
13372 2004-07-22 09:22  jordi
13373
13374         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13375           check link overlapping, implement events, and fixes
13376
13377 2004-07-21 10:28  jordi
13378
13379         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13380
13381 2004-07-21 10:19  jordi
13382
13383         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13384           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13385           LinkLabelLinkClickedEventArgs.cs,
13386           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13387           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13388           implementation
13389
13390 2004-07-19 13:09  jordi
13391
13392         * Control.cs, Label.cs: label control re-written: added missing
13393           functionlity, events, and properties
13394
13395 2004-07-19 10:49  jordi
13396
13397         * Control.cs: fixes SetBounds logic
13398
13399 2004-07-19 01:29  jordi
13400
13401         * Control.cs: Call RefreshWindow only if the window has created
13402
13403 2004-07-15 14:05  pbartok
13404
13405         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13406           - Implemented ImageList and ImageList.ImageCollection classes
13407           - Added ColorDepth enumeration
13408           - Updated SWF VS.Net project
13409
13410 2004-07-15 11:06  jordi
13411
13412         * XplatUIStructs.cs: added MsgButons enum
13413
13414 2004-07-15 11:03  jordi
13415
13416         * Control.cs: added basic mouse handeling events
13417
13418 2004-07-15 03:38  jordi
13419
13420         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13421           Vertical TrackBar control implementation
13422
13423 2004-07-13 09:33  jordi
13424
13425         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13426
13427 2004-07-13 09:31  jordi
13428
13429         * Control.cs, Form.cs: commit: new properties and fixes form size
13430           problems
13431
13432 2004-07-09 14:13  miguel
13433
13434         * ProgressBar.cs: Spelling
13435
13436 2004-07-09 11:25  pbartok
13437
13438         * ProgressBar.cs:
13439           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13440           faster
13441
13442 2004-07-09 11:17  miguel
13443
13444         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13445
13446                 * ProgressBar.cs: Fixed spelling for `block'
13447
13448                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13449                 style guidelines.
13450
13451                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13452
13453 2004-07-08 23:21  pbartok
13454
13455         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13456           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13457           BaseCollection.cs, Binding.cs, BindingContext.cs,
13458           BindingMemberInfo.cs, BindingsCollection.cs,
13459           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13460           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13461           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13462           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13463           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13464           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13465           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13466           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13467           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13468           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13469           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13470           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13471           InputLanguageChangedEventArgs.cs,
13472           InputLanguageChangedEventHandler.cs,
13473           InputLanguageChangingEventArgs.cs,
13474           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13475           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13476           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13477           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13478           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13479           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13480           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13481           QueryAccessibilityHelpEventArgs.cs,
13482           QueryAccessibilityHelpEventHandler.cs,
13483           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13484           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13485           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13486           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13487           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13488           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13489           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13490           XplatUIX11.cs, lang.cs:
13491           - Initial check-in
13492