2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * LinkLabel.cs: display the OverrideCursor when hovering the label.
4         Fixes bug #78392.
5
6 2006-05-25  Chris Toshok  <toshok@ximian.com>
7
8         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
9         r61019.
10
11 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
12
13         * Application.cs: Moved setting of is_modal and closing to before
14           we create the control, to allow the event handlers called as a
15           result of creation affect closing. Also removed Gonzalo's previous
16           change to setting DialogResult, the behaviour has been moved to 
17           Form.ShowDialog()
18         * Form.cs: 
19           - ShowDialog(): Removed explicit creation of the form, let RunLoop
20             handle it instead
21           - ShowDialog(): If no dialog result is set, we need to return Cancel
22           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
23             the close is cancelled
24
25 2006-05-25  Jackson Harper  <jackson@ximian.com>
26
27         * StatusBar.cs: We only need to update the sizes of the other
28         panels when we have auto size contents.  Also we are only updating
29         the contents of the panel, not the borders, so compensate for the
30         border width (TODO: get this width from the theme somehow).
31         * TreeView.cs: Scrollable is true by default
32         - Use invalidate instead of refresh where needed
33         - Factor the scrollable value into scrollbar updating
34         - Update the scrollbars if the Scrollable property is altered
35         - Update the selected node if its ImageIndex is changed
36         - Handle null nodes in UpdateNode (mainly so we don't have to
37         check if selected is null when updating it
38         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
39         are factored into the visible count
40         - Use VisibleCount for clarity in the code
41         - When the font is changed we need to recurse through all the
42         nodes and invalidate their sizes
43         
44 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
45
46         * Application.cs: set the DialogResult to fixed when the main form is
47         hidden or destroyed while being modal.
48
49 2006-05-25  Miguel de Icaza  <miguel@novell.com>
50
51         * Theme.cs: Use Tangoified messagebox icons. 
52
53         (GetSizedResourceImage): Also cope with width = 0 and do not
54         trigger a warning in that case (0 means "give me your icon from
55         the resouce, no special size needed).
56
57 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
58
59         * Application.cs: Leave runloop if the the main modal form is 
60           hidden (fixes #78484)
61
62 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
63
64         * BindingContext.cs : reject null datasource in Contains() and
65           Item[].
66         * CurrencyManager.cs : check data_member validity when data_source
67           is dataset. When it is late binding, the initial position is -1.
68
69 2006-05-24  Jackson Harper  <jackson@ximian.com>
70
71         * TreeNodeCollection.cs: Dont't recalculate the visible order on
72         inserted nodes that aren't visible.  This changes the
73         max_visible_order which confuses scrollbar settings.
74         - Use the enumerator to get the prev node instead of duplicating
75         code.
76         * TreeView.cs: Use new method for setting scrollbar values
77         - Don't set the bounds every time the scrollbar is updated
78         - When updating below the root node use an invalidate instead of a
79         refresh to prevent the child controls (scrollbars) from being
80         refreshed. (UpdateBelow still needs to be reworked anyways).
81         - Reenable SetBottom now that visible orders are set correctly,
82         added some debug code incase we ever get bad values there again.
83         - Set the scrollbar max to 2 less then the max value, this
84         compensates for the max value being one above the node count, and
85         for scrollbars adding one extra "notch".
86         - When drawing image nodes if there is an imagelist we draw the
87         first image in the list if the supplied image index is out of the
88         image list's bounds.
89         
90 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
91
92         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
93           we receive a size change from the WM (Fixes #78503)
94
95 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
96
97         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
98           rectangle (Fixes #78501)
99
100 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
101
102         * ButtonBase.cs: 
103           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
104             as a bitfield.
105           - Fixed MouseMove to no longer switch pressed state unless the left
106             mouse button is pressed. Atsushi provided the original patch (#78485)
107           
108 2006-05-24  Jackson Harper  <jackson@ximian.com>
109
110         * ScrollBar.cs: New internal methods that allow us to change a
111         couple values on the scrollbar (the most common case is maximum
112         and large change) without getting multiple invalidates.
113
114 2006-05-24  Chris Toshok  <toshok@ximian.com>
115
116         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
117         (Edit): save off the original state in oldState, and set
118         grid.is_editing to true.
119         (OnKeyDown): abort editing if escape is pressed.  also, call
120         NextState if space is pressed.
121         (OnMouseDown): call NextState.
122         (NextState): factor out shared code from OnKeyDown and OnMouseDown
123         here.  Also, only invalidate the row header once (on the initial
124         is_changing switch) to save on redraws.
125
126 2006-05-24  Chris Toshok  <toshok@ximian.com>
127
128         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
129         if the value in the cell is different than it was before.  This
130         keeps us from triggering a layout when we move around a datarid
131         with a highlighted cell.
132         (Edit): suspend layout when creating/positining the text box, and
133         resume passing false so we don't ever actually re-layout.
134         (ReleaseHostedControl): same.
135         (EnsureTextBox): reformat slightly, and set WordWrap to false.
136
137         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
138         control-key sequences should go to the datagrid - remove that
139         lock.  Also, modify the conditions under which we move between
140         cells when moving the cursor within a cell, and remove the "this"
141         and "base" from field accesses.  We weren't even consistent, given
142         they all were in the base class.
143
144 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
145
146         * Binding.cs : (.ctor)
147           An obvious NRE fix for BindingTest.CtorNullTest().
148
149 2006-05-23  Chris Toshok  <toshok@ximian.com>
150
151         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
152         them between lines.  This fixes some quirks editing cells in the
153         datagrid.
154
155 2006-05-23  Jackson Harper  <jackson@ximian.com>
156
157         * TreeView.cs: Use begin/end update when doing expand/collapse all
158         so that we don't get flicker on the scrollbar.
159
160 2006-05-23  Jackson Harper  <jackson@ximian.com>
161
162         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
163         treenode calculations to be independant of the painting code. To
164         do this nodes track a visible order which is calculated by the
165         treeview.
166         - Call new methods for expanding/collapsing nodes.  These methods
167         use scrollwindow so we don't have to update everything below the
168         node.
169         * TreeView.cs: Refactored drawing and scrolling code.  We don't
170         need to update nodes when drawing anymore or calculate scrollbar
171         stuff.
172         - Added new methods for expanding/collapsing nodes. These methods
173         use ScrollWindow so as to not have to redraw all the nodes below.
174         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
175         we add/remove nodes or sort.
176         - Handle removing the selected and the top node properly.
177
178 2006-05-23  Chris Toshok  <toshok@ximian.com>
179
180         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
181         maybe this should actually happen in the datagrid code?
182         (EndEdit): no need to invalidate anything, given that
183         ReleaseHostedControl causes the datagrid to relayout, which
184         invalidates everything anyway.
185
186         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
187         in SetCurrentCell).
188         (set_SelectionBackColor): call InvalidateSelection instead of
189         Refresh.
190         (set_SelectionForeColor): same.
191         (BeginEdit): Flesh this out a bit.
192         (CancelEditing): only do any of this if we're editing/adding.
193         (EndEdit): same.
194         (OnMouseDown): there's no need to cancel editing here, it's done
195         in SetCurrentCell.
196         (SetCurrentCell): only invalidate the current row header if it's a
197         different row than the new one.
198         (ShiftSelection): fix this to work like MS does.
199         (ResetSelection): factor out the invalidation of selected_rows to
200         InvalidateSelection.
201         (SetDataSource): cancel any editing that's going on.
202
203         * DataGridColumnStyle.cs
204         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
205         call the non-interface version.
206
207         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
208         header rectangle with the clip rectangle so we don't redraw the
209         entire header for just a small area.  Gets rid of the last flicker
210         when horizontally scrolling.
211         (DataGridPaintRow): same.
212
213 2006-05-23  Mike Kestner  <mkestner@novell.com>
214
215         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
216         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
217         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
218         Critical bug report.
219
220 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
221
222         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
223           and this fixes #78493
224
225 2006-05-23  Miguel de Icaza  <miguel@novell.com>
226
227         * Theme.cs (GetSizedResourceImage): Scale images if the proper
228         size is not found.  
229         
230         * FileDialog.cs: Do not change the background for the side bar as
231         it wont work nicely with the theme, and also reduces the artifacts
232         in rendering the icons (which I want to fix too).
233
234         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
235         resources, not resgen resources. 
236
237         (PlatformDefaultHandler): Pull images using the new API.
238
239 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
240
241         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
242           a reference to the hwnd and will not remove it unless there are
243           no pending exposures (fixes #78341)
244         * XplatUI.cs: Improved debug
245
246 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
247
248         * MenuAPI.cs : don't handle OnClick event when it was not the left
249           button. Fixed bug #78487.
250
251 2006-05-23  Mike Kestner  <mkestner@novell.com>
252
253         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
254         prefer submenus to the top menu for item lookup, to avoid popping down
255         top-row items.
256
257 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
258
259         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
260           Graphics.FillRectangle as the visual results are really bad (even
261           on win). We now draw perfect arrows (and perfect shadows when the
262           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
263           Pen.DashPattern to draw the dots of each line.
264
265 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
266
267         * FileDialog.cs: Update the filename combobox when navigating through
268           the ListView with the cursor keys. Fixes part 7 of bug #78446.
269
270 2006-05-22  Mike Kestner  <mkestner@novell.com>
271
272         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
273         Fixes #78463.
274
275 2006-05-22  Mike Kestner  <mkestner@novell.com>
276
277         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
278         requests. Fix a misspelled parameter and a copy paste exception error
279         in Select.
280
281 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
282
283         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
284           to get the same width/height (5/13) on X11 as the default font has on
285           win32. This means that our DefaultFont emSize is smaller than the 
286           the MS SWF equivalent (even thought the width/height stays the same)
287
288 2006-05-20  Jackson Harper  <jackson@ximian.com>
289
290         * MdiClient.cs:
291         * MdiWindowManager.cs:
292         * InternalWindowManager.cs: Make sure to use the border width from
293         the theme.
294
295 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
296
297         * PrintDialog.cs: Implements printer details
298
299 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
300
301         * FileDialog.cs: Added focus handling for PopupButtonPanel.
302           Fixes part 1 and 2 of bug #78446
303
304 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
305
306         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
307           instead of sticking to the first ever calculated value
308
309 2006-05-19  Mike Kestner  <mkestner@novell.com>
310
311         * ComboBox.cs: fix mouse motion selection to use MousePosition and
312         PointToClient, since Capture is set. Fixes #78344.
313
314 2006-05-19  Mike Kestner  <mkestner@novell.com>
315
316         * ListView.cs: match MS behavior in Details view where items are not
317         drawn if Columns.Count == 0. 
318         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
319         Use a separate pen to draw the check, since changing the width affects
320         the box as well.  Fixes #78454.
321
322 2006-05-18  Miguel de Icaza  <miguel@novell.com>
323
324         * ListView.cs: ArgumentOutOfRangeException, single versions of the
325         exception should throw the name of the invalid argument.
326
327         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
328         there are no files listed. 
329
330 2006-05-18  Jackson Harper  <jackson@ximian.com>
331
332         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
333         up.
334
335 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
336
337         * Control.cs: Brought back our old UpdateZOrder method as a private
338           function and switched our calls from UpdateZOrder to the new one.
339           This fixes the Paint.Net canvas disappearing bug.
340
341 2006-05-18  Jackson Harper  <jackson@ximian.com>
342
343         * Theme.cs:
344         * ThemeWin32Classic.cs:
345         * InternalWindowManager.cs: Move the drawing into the theme,
346         expose everything the theme should need from the window manager.
347
348 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
349
350         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
351           from the call to NativeWindow to avoid walking up the parent chain
352           further than needed (speeds up setting cursors and avoids setting
353           the wrong cursor if a parent has another cursor defined)
354         * Cursor.cs: When loading an icon as cursor, MS uses the center of
355           the icon as hotspot, not what's contained as hotspot in the icon
356           file. This fixes the perceived drawing offset seen with Paint.Net
357         
358 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
359
360         * XplatUIX11.cs: 
361           - Store the calculated rectangle in Hwnd object and use it when 
362             setting the client size
363           - Force Toolwindows to always be type Dock, to ensure they're on top
364
365 2006-05-18  Mike Kestner  <mkestner@novell.com>
366
367         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
368         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
369         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
370         Substantial refactoring to remove confusing nested classes. Coding
371         standard and Get+Set->property refactorings.  Shift to index based
372         highlighting in ComboListBox instead of constantly using IndexOf and
373         Items[]. Add invalidations on resize for DropDownList to fix ugliness
374         in FileDialog growth.  Draw borders manually since Simple mode needs
375         to look like two independent controls.  Make listbox border
376         conditional to DropDownStyle.  Improved OwnerDraw support.
377
378 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
379
380         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
381         Don't set the disposed graphics to null, so we can throw the "right"
382         exception if the graphics is reused later (added a flag to avoid 
383         double disposing). Some behaviours are different under 2.0 and are
384         filled under bug #78448.
385
386 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
387
388         * Control.cs: When double-buffering is enabled, we need to reset
389           our graphics context between paint calls. Otherwise, any 
390           transformations and other alterations on the context will 
391           become cumulative (#77734)
392
393 2006-05-18  Mike Kestner  <mkestner@novell.com>
394
395         * ListView.cs: do focused item selection like MS on clicks. 
396         Rework focus handling for ItemControl so LostFocus invalidates as
397         well.
398         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
399         the ListView ItemControl has focus.
400
401 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
402
403         * XplatUIX11.cs: If client_window ends up being width or height zero
404           due to border settings, move it off window inside whole_window (#78433)
405
406 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
407
408         * Mime.cs: Shrink the mime file cache correctly.
409
410 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
411
412         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
413
414 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
415
416         * XplatUIX11.cs (AddExpose): More sanity checks
417
418 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
419
420         * XplatUIX11.cs:
421           - AddExpose: Don't add expose ranges outside the size of our
422             window
423           - Cast opacity values to Int32 to avoid crashes with certain
424             values
425           - Added disabled code paths that protect against illegal cross-
426             thread painting (Developers.exe)
427
428 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
429
430         * ProgressBar.cs: Invalidate the control when it's resized
431           since block size is based on control size. (#78388)
432
433 2006-05-16  Miguel de Icaza  <miguel@novell.com>
434
435         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
436         of setting the incoming argument to the "reset" value, we set the
437         this.datamember to string.empty (before we were invalidating the
438         incoming data).   
439
440         Fixes 78420
441
442 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
443
444         * Form.cs: Only apply transparency settings after the form
445           is created. (Fixes #77800)
446
447 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
448
449         * ApplicationContext.cs: Grab the HandleDestroyed event so
450           we know when to fire OnMainFormClosed 
451
452 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
453
454         * Application.cs: Introduced sub-class to allow tracking of
455           threads and centralized triggering of the event mess for
456           ThreadExit, AppExit, etc..  (#76156)
457
458 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
459
460         * MimeIcon.cs:
461           - Do not return a null icon index value for a mime subclass.
462             Instead try the main mime type class too.
463           - Seems that some newer distributions don't have a link to some
464             gnome default icons anymore. So check the default gnome dir too.
465           
466
467 2006-05-16  Jackson Harper  <jackson@ximian.com>
468
469         * MdiClient.cs: Don't paint the parent background image if we have
470         our own background image.
471
472 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
473
474         * Control.cs:
475           - PerformLayout: Do not shrink space filled by DockStyle.Fill
476             controls, all filled controls are supposed to overlap (#78080)
477           - UpdateZOrder is supposed to update the control's z-order in the
478             parent's z-order chain. Fixed to behave like that
479           - BringToFront: Removed obsolete code
480           - SendToBack: Simplyfied
481           - SetChildIndex: Trigger layout calculations when Z-order changes
482             since layout is done by z-order
483
484 2006-05-16  Chris Toshok  <toshok@ximian.com>
485
486         [ fixes bug #78410 ]
487         * DataGrid.cs (set_AlternatingBackColor): use
488         grid_drawing.InvalidateCells instead of Refresh().
489         (set_BackColor): call grid_drawing.InvalidateCells.
490         (set_BackgroundColor): use Invalidate instead of Refresh.
491
492         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
493         invalidate the cell area.
494
495 2006-05-15  Chris Toshok  <toshok@ximian.com>
496
497         [ fixes bug #78011 ]
498         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
499         on to DataGridPaintRow.
500         (DataGridPaintRow): take a clip argument, and only draw the cells
501         which intersect it.  same with the not_usedarea.
502
503         * Theme.cs (DataGridPaintRow) add @clip parameter.
504
505         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
506         XplatUI.ScrollWindow.
507         (ScrollToRow): same.
508
509         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
510         with last column which was causing a gray swath to appear with the
511         XplatUI.ScrollWindow code.
512
513 2006-05-15  Chris Toshok  <toshok@ximian.com>
514
515         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
516         use XplatUI.ScrollWindow.
517         (VerticalScrollEvent): use XplatUI.ScrollWindow.
518
519 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
520
521         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
522
523 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
524
525         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
526           file since there are no equivalent X11 cursors
527
528 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
529
530         * MonthCalendar.cs : DateTimePicker should reflect selected date
531           on mouse*up*, not mouse*down*. Fixed originally reported part of
532           bug #76474.
533
534 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
535
536         * TabControl.cs : When argument index is equal or more than tab
537           count, just ignore. Fixed bug #78395.
538
539 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
540
541         * Control.cs: Dispose all child controls when control is diposed (#78394)
542
543 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
544
545         * ColorDialog.cs: Finally it is possible to select the color with
546           the text boxes
547
548 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
549
550         * PrintDialog.cs: Fix typo
551
552 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
553
554         * PrintDialog.cs: PrintDialog is not resizable
555         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
556           color. Made some ToolBar drawing methods protected virtual.
557
558 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
559
560         * PrintDialog.cs: Implementation of the PrintDialog
561
562 2006-05-12  Chris Toshok  <toshok@ximian.com>
563
564         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
565         thumb, instead use MoveThumb.  This has the side effect of making
566         most of the other thumb moving machinery use MoveThumb as well.
567         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
568         need to actually invalidate the rectangle where the new thumb will
569         go.
570         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
571         We force an Update() after, so it's not as fast as it could be,
572         but at least there's zero flicker and no droppings.
573         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
574         (UpdateThumbPos): add another argument (dirty), which says whether
575         or not to calculate/add dirty regions which we later invalidate.
576         For cases where we know we're going to use MoveThumb, we pass
577         false for this.  Otherwise, pass true.
578
579 2006-05-12  Jackson Harper  <jackson@ximian.com>
580
581         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
582         the status bar.
583         
584 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
585
586         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
587           and GetClipRegion methods and UserClipWontExposeParent property.
588         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
589           overriding UserClipWontExposeParent property, setting to false, since
590           Win32 handles the required expose messages to draw our clipped parent
591           areas internally
592         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
593           PaintEventStart to set the user clip region if set.
594         * Control.cs: 
595           - Now internally tracking the Region for the control since we need to
596             store it if the handle is not yet created and only set it when it
597             becomes created. Before setting the region forced handle creation
598           - Added code to draw the parents underneath a user-clipped region
599         * Hwnd.cs: Added UserClip property
600
601 2006-05-12  Chris Toshok  <toshok@ximian.com>
602
603         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
604         (set_Maximum): same.
605         (set_Minimum): same.
606         (set_SmallChange): same.
607         (OnMouseUpSB): remove the call to refresh when releasing the
608         thumb.  We shouldn't need it.
609         
610 2006-05-12  Miguel de Icaza  <miguel@novell.com>
611
612         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
613         AutoSize set to None, we do not need to relayout everything, we
614         just need to invalidate the current region.
615
616         (Draw): Do not draw the entire ClientArea, just redraw the
617         clip area being passed.
618
619         * MdiClient.cs: Make MdiClient constructor with the Form argument
620         internal. 
621
622 2006-05-12  Jackson Harper  <jackson@ximian.com>
623
624         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
625         parents background image,  but strangely not their own.
626         - (DrawStatusBarPanel): Take into account horizontal alignment
627         when drawing the strings and icons.
628
629 2006-05-12  Mike Kestner  <mkestner@novell.com>
630
631         * ListBox.cs: avoid invalidations for focus when the collection is
632         empty. 
633
634 2006-05-12  Chris Toshok  <toshok@ximian.com>
635
636         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
637         invalidate the entire thumb area.  Call InvalidateDirty which
638         limits the redraw to the thumb itself and surrounding pixels.
639
640         * XplatUIX11.cs (ScrollWindow): optimize copying.
641         
642 2006-05-12  Chris Toshok  <toshok@ximian.com>
643
644         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
645         Figure out the positioning/layout in a single pass instead of
646         multiple recursive invocations.  Speeds up the initial display of
647         the data grid.  Also, make many things private that were
648         originally public but unused outside this class.
649
650 2006-05-11  Jackson Harper  <jackson@ximian.com>
651
652         * MdiClient.cs: Improved layout code.
653
654 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
655
656         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
657           not SelectedObject.
658
659 2006-05-11  Chris Toshok  <toshok@ximian.com>
660
661         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
662         union of that will always be {0,0,width,height}.
663
664 2006-05-11  Jackson Harper  <jackson@ximian.com>
665
666         * Form.cs: Match MS's DefaultSize for forms (they must have
667         changed the size in sp2).
668
669 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
670
671         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
672
673 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
674
675         * TextControl.cs : Fixed bug #78109. This incorrect position
676           comparison caused crash on automatic line split.
677         * TextBoxBase.cs : reduce duplicate code.
678
679 2006-05-10  Jackson Harper  <jackson@ximian.com>
680
681         * MdiClient.cs: Active form is only sent to the back when using
682         the Next form functionality, when a form is clicked the current
683         active shouldn't be sent to the back.
684         - Layout the mdi windows when the container is first made visible.
685         * Form.cs: Give the MdiClient a ref to the containing form when we
686         create it.
687         
688 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
689
690         * LinkLabel.cs : link_font could be uninitialized, so populate one
691           before actual use. Fixed bug #78340.
692
693 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
694
695         * XplatUIX11.cs : clipboard format native value is IntPtr.
696           Fixed bug #78283.
697
698 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
699
700         * Control.cs: 
701           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
702             which is passed up the parent chain by DefWndProc
703           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
704             to DefWndProc (#77956)
705         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
706
707 2006-05-10  Jackson Harper  <jackson@ximian.com>
708
709         * MdiClient.cs: We need to remove the controls from the mdi
710         collection, when we close the window.
711         * MdiWindowManager.cs: Special handling of closing mdi windows.
712         * InternalWindowManager.cs: Make the close method virtual so the
713         mdi window manager can handle it specially.
714
715 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
716
717         * DataGrid.cs:
718           - Recalculate grid when the data source has changed
719           - Matches styles provided by user from all data sources types
720         * DataGridTableStyle.cs: For columns that provided by the user set the
721         with the preferred value is there was unassigned.
722         * CurrencyManager.cs: throw OnItemChanged event
723
724 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
725
726         * PictureBox.cs: Don't animate until handle is created. Start animation
727           when handle is created.
728
729 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
730
731         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
732           current codebase.
733         * XEventQueue.cs: We don't need to provide the extra info
734
735 2006-05-10  Jackson Harper  <jackson@ximian.com>
736
737         * MdiClient.cs: If the mdi clients parent form has a background
738         image set, we draw that background image for the mdi area's
739         background.
740
741 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
742
743         * TextBoxBase.cs: Set IBeam cursor (#78347)
744
745 2006-05-10  Mike Kestner  <mkestner@novell.com>
746
747         * ToolBar.cs: fix some text padding issues with ButtonSize
748         calculation. Update the default size to match MS documentation.
749         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
750         button size. Fixes #78296.
751
752 2006-05-10  Mike Kestner  <mkestner@novell.com>
753
754         * ListBox.cs: use is_visible for scrollbar positioning in case the
755         control isn't on screen yet.  Fix off by one with Right vs Width
756         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
757         
758 2006-05-10  Jackson Harper  <jackson@ximian.com>
759
760         * X11Dnd.cs: Drop to a control with another control on top of it.
761         * ToolBar.cs: Work on a copy of the buttons list, so that it can
762         be modified in click handlers. TODO: Look for similar problems in
763         other controls.
764
765 2006-05-09  Jackson Harper  <jackson@ximian.com>
766
767         * Form.cs: Window managers need the old window state when setting
768         window state now.
769         * InternalWindowManager.cs: Allow the base mdi window manager to
770         handle more of the MDI only stuff (like maximize buttons).
771         * MdiWindowManager.cs: Fix some snafus in changing the window
772         state.  Add all the menu functionality, for both popup and
773         maximized menus.
774         * MdiClient.cs: When a new form is selected the currently
775         activated form is sent to the back, this matches MS.
776         - Implement a new method to activate the next mdi child window.
777
778 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
779
780         * Control.cs: 
781           - Added new InternalCapture method to allow controls to prevent
782             the capture behaviour on the click handlers
783           - Switched to use InternalCapture
784         * ComboBox.cs:
785           - Using InternalCapture to prevent mouse captures from being released
786             on mouse button release (Fixes #78100)
787         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
788           returns Form borders if a caption is present. (Fixes #78310)
789
790 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
791
792         * TreeNode.cs: Changed serialization .ctor to not require every field
793           to be present. (#78265)
794         * OwnerDrawPropertyBag.cs: Added serialization .ctor
795
796 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
797
798         * MimeIcon.cs: for is faster than foreach for strings.
799
800 2006-05-05  Mike Kestner  <mkestner@novell.com>
801
802         * CheckedListBox.cs: update check handling code to not use selected.
803         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
804         behavior for visual feedback, motion response, shift/ctrl handling,
805         and properly deal with all 4 selection modes. Updates to bounds
806         handling logic.  Add scroll wheel support. [Fixes #77842]
807
808 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
809
810         * ListView.cs:
811           - Moved adding of Implicit controls into .ctor. That way, subsequent
812             creation of the controls will not cause them to think they are 
813             toplevel windows (fixes #78200 header problem)
814           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
815           - Switched visibility setting of header control to use internal field
816             to avoid triggering handle creation
817           - Now checking if handle is created before causing a refresh when items
818             are added (This makes us now match handle creation time with MS)
819         * Splitter.cs: Removed loading of private splitter cursor, switched to
820           Cursors version now that that is loading the right ones
821         * Cursors.cs: Load proper splitter cursors from resources
822         * Cursor.cs: Added second method of loading resource cursors for the 
823           VS.Net users amongst us
824
825 2006-05-05  Mike Kestner  <mkestner@novell.com>
826
827         * ListView.cs: give header_control a minimum size based on the
828         ListView size.
829
830 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
831
832         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
833           window seems to do that with metacity, so set that type. (#78120)
834
835 2006-05-05  Mike Kestner  <mkestner@novell.com>
836
837         * ListViewItem.cs: fix Details mode checkbox layout bug.
838         * ThemeWin32Classic.cs: draw a ListView column header for unused space
839         at the end of the header, if it exists. [Fixes for #78200]
840
841 2006-05-04  Jackson Harper  <jackson@ximian.com>
842
843         * MdiClient.cs: Add a helper property to get the container form.
844         * MdiWindowManager.cs: We have to make sure to use the menu origin
845         when drawing the icons and buttons, this fixes maximized window
846         icons/buttons on win32.
847         * InternalWindowManager.cs: Reset the restore captions when a
848         window goes from Maximized to Minimized and vice versa. Move the
849         DrawMaximizedButtons into the MdiWindowManager source, tool
850         windows can't be maximized. NOTE: This could use a little
851         refactoring if time ever permits.
852         
853 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
854
855         * TextBox.cs: Add MWFCategoryAttributes
856         * TextBoxBase.cs: Add MWFCategoryAttributes
857         * Form.cs: Add MWFCategoryAttributes
858
859 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
860
861         * Control.cs: Add MWFCategoryAttributes
862         * ScrollableControl.cs: Add MWFCategoryAttributes
863
864 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
865
866         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
867           Divider is true. Fix a little glitch in PropertyToolBar
868           drawing code
869
870 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
871
872         * Control.cs:
873           - Dispose: Call base.Dispose, this causes the disposed event
874             to be fired (and probably other, more important stuff)
875           - SetVisibleCore: Set is_visible to true after creating the
876             window so that the window still gets created invisible (if
877             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
878             to generate a WM_ACTIVE message
879         * Form.cs: Call Dispose when we want to destroy the window, instead of
880           just destroying the handle (Dispose will do that for us)
881         * XplatUIX11.cs:
882           - RootWindow also needs a queue, so we can properly process the
883             property change events from RootWindow (like Activate)
884           - Generatic synthetic WM_ACTIVE message when the active window is
885             being destroyed
886
887 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
888
889         * LinkLabel.cs: Trigger a recalc of our label dimensions when
890           bounds are changed
891
892 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
893
894         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
895           for determining width and height (image might not be assigned if
896           we're drawing an imagelist)
897
898 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
899
900         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
901         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
902           height from system
903         * Theme.cs: No longer returns hardcoded menu height, instead calls
904           new driver method
905         * Form.cs (OnLoad): Scaling happens before triggering Load events 
906           on MS (# 78257)
907
908 2006-05-01  Mike Kestner  <mkestner@novell.com>
909
910         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
911
912 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
913
914         * TextBoxBase.cs: Removed Fixme
915         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
916
917 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
918
919         * XplatUIX11.cs:
920           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
921             the rectangle relative to the parent, considering borders. We
922             don't really want that.
923           - ScrollWindow: Fixed warning to be more understandable
924         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
925           scrollbars and scroll only the visible area
926         * RichTextBox.cs: Removed debug output
927
928 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
929
930         * NumericUpDown.cs (Text): Just use base
931         * UpDownBase.cs: Ensure txtView is created before using it
932
933 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
934
935         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
936           casting to IntPtr to avoid 64bit overflow errors
937
938 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
939
940         * Control.cs:
941           - AllowDrop: Don't force handle creation.
942           - CreateHandle: Added call to tell driver if we're allowed to drop
943
944 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
945
946         * FileDialog.cs: Remember the last directory not only for the
947           current instance but also for new FileDialog instances.
948
949 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
950         
951         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
952           broke sending async messages
953
954 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
955
956         * XplatUIX11.cs:
957           - ScrollWindow: Fixed method. We finally generate expose events again
958             for scrolled areas. This was causing 'garbage' when scrolling
959             textbox and other controls that used ScrollWindow
960           - Switched from using the regular queue for paint events to the MS 
961             model of 'generating' paint events when the queue is empty.
962             We use the new XQueueEvent.Paint subclass to store which windows
963             need painting.
964           - AddExpose now takes the x/y/width/height of the exposed area
965             and inserts the window into the paint queue if not already there
966           - InvalidateWholeWindow: Switched to use new AddExpose method
967           - UpdateMessageQueue: Added which queue to monitor for paint events
968           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
969             the unlikely case nothing above handles it. We reset the expose
970             pending states to get them off the queue.
971           - GetMessage: Now pulls a paint event if no other events are in the
972             queue
973           - Invalidate: Switched to new AddExpose method
974           - PeekMessage: Updated to understand pending paint events
975           - UpdateWindow: Fixed logic bug. We were only updating if the window
976             didn't need updating. Also switched to sending WM_PAINT directly,
977             like MS does.
978         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
979           and random access Remove(). The random access is needed to handle
980           UpdateWindow() where a WM_PAINT is sent directly without accessing
981           the queue.
982         * ScrollBar.cs: Added Update() calls to cause immediate updates to
983           allow for better feedback when scrolling. Scrollbars are small and
984           the immediate update should make it 'feel' more responsive without
985           slowing things down. ScrollBar still needs it's invaliate logic
986           updated to not always invalidate the whole bar on certain changes.
987
988 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
989
990         * Control.cs:
991         (BackColor): if the control does not support a transparent background,
992         return the default backcolor when the parent backcolor is transparent.
993
994 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
995
996         * Application.cs: Updated to new StartLoop/GetMessage API
997         * RichTextBox.cs: Provide some output on RTF parsing errors
998         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
999           new queue_id argument to GetMessage and PeekMessage to allow faster
1000           handling of per-thread queues in drivers.
1001         * Hwnd.cs: Added Queue tracking and property
1002         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1003         * XEventQueue.cs: Added thread trackingA
1004         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1005         * XplatUIX11.cs:
1006           - Implemented new per-thread queue
1007           - GetMessage: Fixed return/break behaviour on several cases. We were
1008             returning stale messages in some cases, instead of just processing
1009             the next message
1010
1011 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1012
1013         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1014
1015 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1016
1017         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1018           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1019
1020 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1021
1022         * PropertyGridView.cs: Fix drop down width.
1023
1024 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1025
1026         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1027           a mess in DrawToolBar, so I removed one of them.
1028
1029 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1030
1031         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1032           needed (clip). Otherwise we get artifacts.
1033
1034 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1035
1036         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1037           dimension is fixed
1038         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1039           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1040         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1041           if it matches the scale base font (avoids unneeded scaling)
1042
1043 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1044
1045         * X11DesktopColors.cs: One gtk_init_check should be enough
1046
1047 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1048
1049         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1050           match MS behaviour
1051
1052 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1053
1054         * TextBoxBase.cs: 
1055           - Generate OnTextChanged for Backspace even if we're only deleting
1056             the current selection
1057           - When setting the Text property, only select all text if the
1058             control does not have focus when it is being set. Otherwise
1059             just place the cursor at the beginning of the control
1060
1061 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1062
1063         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1064           Added a little helper to draw PropertyGrid ToolBar with a different
1065           border and a different BackColor.
1066         * PropertyGrid.cs: Some background parts didn't get painted with the
1067           correct background color. Added a class that helps us to draw the
1068           correct border for PropertyGridView and a class that helps us to
1069           draw ToolBars with a different backcolor
1070         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1071
1072 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1073
1074         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1075         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1076
1077 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1078
1079         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1080           into the palette entries. Also, since we're working on a copy
1081           we needed to copy the palette back onto the bitmap.
1082         * Cursor.cs: Same fix as XplatUIWin32.cs.
1083
1084 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1085
1086         * ImageListStreamer.cs: Need to read the var (or we're off)
1087
1088 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1089
1090         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1091           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1092           TextBoxBase.cs: Unused var fixes
1093         * AxHost.cs: Small 2.0 fix
1094         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1095           as it seems that is what at least Metacity expects. This will make
1096           icons show up on 64bit platforms. We still have some 64bit size
1097           issues, though, since the startup app window size still won't match.
1098
1099 2006-04-25  Mike Kestner  <mkestner@novell.com>
1100
1101         * *.cs: cleanup newly reported exception var unused warnings.
1102
1103 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1104
1105         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1106           ms
1107
1108 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1109
1110         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1111           image. The image position is always the same, no matter if the
1112           button is pressed or not.
1113
1114 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1115
1116         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1117           selection and set the correct filename for SaveFileDialog.
1118           Patch by Emery Conrad.
1119
1120 2006-04-24  Mike Kestner  <mkestner@novell.com>
1121
1122         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1123         check for item.X outside the ClientRect instead of item.Y. Fixes
1124         #78151.
1125
1126 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1127
1128         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1129         trust that value blindly and do some sanity check. Fixes bug #77814.
1130
1131 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1132
1133         * ImageListStreamer.cs: save the mask as a 1bpp image.
1134
1135 2006-04-21  Mike Kestner  <mkestner@novell.com>
1136
1137         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1138         pass Checked and Indeterminate to the Theme Engine. Improve
1139         encapsulation with ListBox.
1140         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1141         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1142         nested types.  Move all CheckState functionality to CheckedListBox.
1143         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1144         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1145         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1146         single base list. Fix scrollbar sizing and placement to mirror MS.
1147         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1148         used.
1149         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1150         for CheckedListBox by using new DrawItemState info.  Center the
1151         checkboxes on the items. Use new StringFormat property.
1152
1153 2006-04-18  Jackson Harper  <jackson@ximian.com>
1154
1155         * Form.cs: MdiChildren don't do default locations the same way as
1156         regular forms.  This prevents a crash when trying to position the
1157         mdi windows.
1158
1159 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1160
1161         * PropertyGridTextBox.cs: Formatting, copyright
1162         * PropertiesTab.cs: Formatting
1163         * PropertyGrid.cs: Formatting
1164         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1165           click toggling of values
1166           
1167 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1168
1169         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1170         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1171           every time a control is created
1172         * Application.cs: Removed obsolete EnableRTLMirroring method
1173
1174 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1175
1176         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1177         SelectedIndex to -1. Fixes bug #78121.
1178
1179 2006-04-17  Jackson Harper  <jackson@ximian.com>
1180
1181         * Binding.cs: Handle null values for Current and BindingContext.
1182         This occurs when binding is a little delayed.
1183         * CurrencyManager.cs: return null for Current when there are no
1184         items in the list.
1185         - Hookup to the listchanged event on the DataView and update
1186         bindings when the list is changed.  This fixes late binding of
1187         controls.
1188
1189 2006-04-17  Jackson Harper  <jackson@ximian.com>
1190
1191         * X11Dnd.cs:
1192         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1193         Ringenbach.
1194
1195 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1196
1197         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1198           place
1199         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1200           with the correct ButtonState
1201
1202 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1203
1204         * XplatUIX11.cs: Improved distinguishing between window types to
1205           tell the WM a type closer to what the app wants (Fixes #78107)
1206
1207 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1208
1209         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1210           GrabHandle
1211
1212 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1213
1214         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1215           drawing code to reflect the size grip changes
1216
1217 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1218
1219         * ImageListStreamer.cs: fix handling of the mask that follows the main
1220         bitmap when deserializing and serialize it properly. The generated mask
1221         should better be a 1bpp image, but I'll do that later.
1222
1223 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1224
1225         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1226           path doesn't fit into some of our Current.Places
1227
1228 2006-04-13  Jackson Harper  <jackson@ximian.com>
1229
1230         * ComboBox.cs: Use borders instead of drawing our own decorations,
1231         try to obey correct rules for heights.
1232         * Theme.cs:
1233         * ThemeNice.cs:
1234         * ThemeClearLooks.cs:
1235         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1236         this is now handled by borders.
1237         - Remove unused DrawListBoxDecorationSize method.
1238         
1239 2006-04-13  Mike Kestner  <mkestner@novell.com>
1240
1241         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1242         reported by Alex.
1243
1244 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1245
1246         * ThemeWin32Classic.cs: 
1247           - Fixed CPDrawStringDisabled
1248           - Corrected drawing of disabled menu items
1249           - Fixed drawing of disabled radio buttons (bug #78095)
1250           - Draw check in a disabled CheckBox with color ControlDark 
1251
1252 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1253
1254         * Form.cs: Use the provided width when calculating the menu size;
1255           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1256           and ClientSize.Width won't be updated yet
1257         * Application.cs: Use Visible instead of Show() to make form visible,
1258           this way we create the handle later and menusize is considered
1259
1260 2006-04-12  Mike Kestner  <mkestner@novell.com>
1261
1262         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1263         reporting.
1264
1265 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1266
1267         * TextBox.cs: Implemented context menu
1268
1269 2006-04-12  Mike Kestner  <mkestner@novell.com>
1270
1271         * ListView.cs: implement box selection. fixes #77838.
1272         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1273
1274 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1275
1276         * XplatUIX11.cs: Added setting of window type when transient window
1277           is created (metacity would move it otherwise)
1278         * X11Structs.cs: Added WINDOW_TYPE atoms
1279         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1280           background (the control is Opaque but still wants transparent
1281           backgrounds)
1282
1283 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1284
1285         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1286           that set Opaque but don't mean it (like all ButtonBase-derived
1287           controls) to still draw their background
1288         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1289           the background
1290
1291 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1292
1293         * Control.cs (PaintControlBackground): Set the graphics object
1294           on our PaintEvent to null to prevent it from being disposed
1295           when the PaintEvent gets disposed
1296
1297 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1298
1299         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1300         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1301
1302 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1303
1304         * Control.cs: 
1305           - Added transparency check to BackColor property. Transparent
1306             backgrounds are only allowed if the control styles permit it
1307           - Added recursive painting of parent control background and
1308             foreground if a control with a transparent backcolor is drawn
1309             (Thanks to Tim Ringenback for providing his 'hack' as a base
1310              for this patch) Fixes #77985 and #78026.
1311           - Added Opaque style check before calling OnPaintBackground, no
1312             need to draw the background if the control is opaque
1313           - Removed ControlAccessibleObject owner variable (inherited from
1314             base, no need to define again)
1315           - Added some documentation links explaining the drawing events
1316             and styles
1317
1318 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1319
1320         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1321           that the affected control is the located at the left border of our
1322           parent (Fixes #77936)
1323
1324 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1325
1326         * TextBoxBase.cs: When rendering disabled or readonly controls,
1327           draw the background with 'Control' instead of 'Window' color as
1328           long as the user hasn't specifically set a color
1329
1330 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1331
1332         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1333           since that won't be updated if the user types text (only if it's
1334           programatically set)
1335
1336 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1337
1338         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1339           layout changes do to app-triggered resizes will have the proper
1340           display rectangle for layout
1341
1342 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1343
1344         * ThemeWin32Classic.cs:
1345           - Make use of the SystemBrushes and SystemPens wherever possible
1346           - Corrected some highlight colors
1347           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1348             drawing
1349         * Theme.cs: Added Empty field to CPColor struct
1350
1351 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1352
1353         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1354           is displayed when calculating the display rectangle. Thanks to Mike
1355           for teaching me the err of my ways.
1356
1357 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1358
1359         * ScrollableControl.cs:
1360           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1361             (instead of 0,0) and we now return the real width/height instead of
1362             just the clientrectangle, adjusted for padding. The rectangle is
1363             now cached and created by the new CalculateDisplayRectangle method.
1364           - Created new CalculateDisplayRectange method, which basically does
1365             what get_DisplayRectangle() did originally, but now using the 
1366             right edge instead of DisplayRectangle to determine the size of
1367             our scrollbars
1368           - get_Canvas(): Fixed it to properly calculate canvas for 
1369             right/bottom controls which seem to be placed to the right/bottom
1370             of any controls that have a fixed location
1371           - Removed TODO that's taken care of
1372           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1373             and SetDisplayRectLocation according to new MSDN2 docs
1374           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1375             event when that is called, this is added for compatibility
1376           - ScrollControlIntoView(): Implemented.
1377           - Switched scrollbars to be implicit, they shouldn't be selectable
1378         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1379           call it when the active control is set/changed
1380         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1381         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1382           implicit_control variable (used for native Win32 message generation)
1383         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1384           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1385         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1386         * XplatUIStructs.cs: Added ScrollBarCommands enum
1387
1388 2006-04-10  Jackson Harper  <jackson@ximian.com>
1389
1390         * ButtonBase.cs:
1391         * CheckedListBox.cs:
1392         * ComboBox.cs:
1393         * DataGrid.cs:
1394         * DataGridView.cs:
1395         * Form.cs:
1396         * GroupBox.cs:
1397         * ListBox.cs:
1398         * PrintPreviewControl.cs:
1399         * ProgressBar.cs:
1400         * PropertyGrid.cs:
1401         * Splitter.cs:
1402         * StatusBar.cs:
1403         * TrackBar.cs:
1404         * UpDownBase.cs: Fixup base event overrides.
1405         
1406 2006-04-06  Mike Kestner  <mkestner@novell.com>
1407
1408         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1409         all user-initiated value changes to min <= value <= max-thumbsz+1.
1410         (set_Value): check for vert/horiz when calculating new thumb position.
1411         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1412         like MS does.
1413         (OnMouseMoveSB): refactor the thumb dragging code and refine
1414         invalidation logic to reduce flicker.
1415         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1416         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1417         (UpdateThumbPosition): small code readability cleanup
1418
1419 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1420
1421         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1422           different
1423
1424 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1425
1426         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1427
1428 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1429
1430         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1431         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1432           This dramatically reduces the number of Pen.Dispose calls. 
1433           Where possible call ResPool methods only once instead of calling it
1434           over and over again (for example for the same color).
1435
1436 2006-04-06  Mike Kestner  <mkestner@novell.com>
1437
1438         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1439         Also remove an unused private field on the collection. Fixes #77972.
1440
1441 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1442
1443         * ThemeNice.cs: Added ToolBar drawing code
1444
1445 2006-04-06  Mike Kestner  <mkestner@novell.com>
1446
1447         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1448         I'm assuming that means we need to look up the toplevel for the
1449         provided control. Fixes the crash trace in #77911 but exposes another
1450         crash in some strange reflection usage in NDocGui.
1451
1452 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1453
1454         * ThemeNice.cs: Gave it a little silver touch and added Images
1455           method
1456         * FontDialog.cs: FontDialog is not resizable
1457         * FileDialg.cs: Added SizeGripStyle.Show
1458
1459 2006-04-05  Jackson Harper  <jackson@ximian.com>
1460
1461         * KeyboardLayouts.cs: Remove warning.
1462
1463 2006-04-05  Jackson Harper  <jackson@ximian.com>
1464
1465         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1466         all of our controls instead of Paint +=.
1467         * ListBox.cs:
1468         * ListView.cs:
1469         * MenuAPI.cs:
1470         * MessageBox.cs:
1471         * NotifyIcon.cs:
1472         * ProgressBar.cs:
1473         * ScrollBar.cs:
1474         * Splitter.cs:
1475         * StatusBar.cs:
1476         * TabControl.cs:
1477         * TextBoxBase.cs:
1478         * ToolBar.cs:
1479         * TrackBar.cs:
1480         * UpDownBase.cs:
1481         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1482         use OnPaintInternal. Remove Width/Height and Visible checks in
1483         paint handler, this is done at a higher level now.
1484         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1485         * PaintEventArgs.cs: Add a handled flag so controls that don't
1486         want anymore painting after OnPaintInternal can make sure OnPaint
1487         isn't called.
1488
1489 2006-04-05  Mike Kestner  <mkestner@novell.com>
1490
1491         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1492         state of the form, so that we don't process events when Modal dialogs
1493         are up. Fixes #77922.
1494
1495 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1496
1497         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1498           checking is done.
1499
1500 2006-04-05  Mike Kestner  <mkestner@novell.com>
1501
1502         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1503
1504 2006-04-05  Mike Kestner  <mkestner@novell.com>
1505
1506         * ListView.cs (HeaderMouseMove): null guarding for the over column
1507         when setting up the drag_to_index.  Fixes #78015.
1508
1509 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1510
1511         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1512           in the taskbar. Transient windows seem to accomplish that.
1513
1514 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1515
1516         * Form.cs:
1517           - Re-enabled CreateParams.X/Y code for FormStartPosition
1518           - Added code for manual placement when creating the Control
1519           - Incomplete patch to treat MDI forms differently when
1520             setting the ClientSizeCore. (Still need to figure out handling
1521             x/y coords there)
1522         * XplatUIX11.cs:
1523           - When we're explicitly setting the X/Y position of a non-Child
1524             window, let the WM know. Metacity really wants this.
1525
1526 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1527
1528         * ThemeNice.cs: Added CPDrawButton
1529
1530 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1531
1532         * ThemeNice.cs: Changed the color for focused buttons and activated
1533           the arrows for small scroll buttons.
1534
1535 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1536
1537         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1538           anymore. Changed some method modifiers to protected (virtual)
1539         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1540           changes
1541         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1542           Updated drawing of menus, buttons and progressbars; added
1543           CPDrawBorder3D 
1544
1545 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1546
1547         * ImageListStreamer.cs: implemented serialization/deserialization
1548         of the images.
1549
1550 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1551
1552         * ThemeWin32Classic.cs:
1553           - Removed all the DrawFrameControl stuff; CPDrawButton,
1554             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1555             inside the methods
1556           - Updated and corrected the drawing code of CPDrawButton,
1557             CPDrawCheckBox and CPDrawRadioButton to better match ms
1558           - Updated theme checkbox and radiobutton code to use the CP*
1559             methods
1560
1561 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1562
1563         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1564           bug is fixed
1565
1566 2006-03-31  Jackson Harper  <jackson@ximian.com>
1567
1568         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1569         sometimes.
1570         * UpDownBase.cs: Don't CreateGraphics manually, use a
1571         Refresh. Ideally we would invalidate the correct areas here.
1572
1573 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1574
1575         * XplatUIX11.cs: 
1576           - We now track the mapping state of windows. If a window (or 
1577             one of it's parents) is not mapped we no longer permit
1578             WM_PAINT messages to be generated since we'd otherwise get 
1579             lots of BadMatch X errors. Jackson did all the work figuring
1580             out the problem.
1581           - Destroying the caret if the window it's contained in is 
1582             destroyed. Can't use regular DestroyCaret method since it
1583             might fall into a drawing function (trying to remove the
1584             caret) and with that generate new BadMatch errors. Again,
1585             Jackson tracked this down.
1586           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1587             make sure we send the messages to all windows. (The old code
1588             would send the WM_DESTROY to the window, and then all child
1589             windows would be 'gone' because the WM_DESTROY handle lookup
1590             would no longer find the destroyed window)
1591         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1592         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1593
1594 2006-03-31  Jackson Harper  <jackson@ximian.com>
1595
1596         * ScrollableControl.cs: Dont recalc if we are not visible.
1597
1598 2006-03-31  Mike Kestner  <mkestner@novell.com>
1599
1600         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1601         the visibility branch.
1602
1603 2006-03-31  Jackson Harper  <jackson@ximian.com>
1604
1605         * ScrollBar.cs: Cap values when incrementing/decrementing.
1606
1607 2006-03-31  Mike Kestner  <mkestner@novell.com>
1608
1609         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1610         * ToolTip.cs: guard against timer expirations with no active control.
1611         Not sure why it happened.
1612
1613 2006-03-31  Mike Kestner  <mkestner@novell.com>
1614
1615         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1616         text.
1617         * ToolTip.cs: Position the tooltip based on where the cursor is at
1618         popup time, not at MouseEnter time.  Add a Down state so that we don't
1619         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1620         positioning offset. Lookup DisplaySize at positioning time, since it
1621         can theoretically change during invocation.
1622         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1623         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1624
1625 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1626
1627         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1628           Fixes behaviour when the Text property of the box is String.Empty
1629
1630 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1631
1632         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1633           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1634           a window)
1635
1636 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1637
1638         * FileDialog.cs: Visual enhancement for the popup buttons in 
1639           PopupButtonPanel
1640
1641 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1642
1643         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1644           code
1645
1646 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1647
1648         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1649           highlighted menu items to match ms
1650
1651 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1652
1653         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1654
1655 2006-03-30  Mike Kestner  <mkestner@novell.com>
1656
1657         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1658         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1659         go active to account for HotLight to Selected transition.
1660         * MenuItem.cs: add internal Selected prop. Fill out the Status
1661         property by calculating it from item info. Add HotLight,
1662         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1663
1664 2006-03-30  Mike Kestner  <mkestner@novell.com>
1665
1666         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1667
1668 2006-03-29  Jackson Harper  <jackson@ximian.com>
1669
1670         * Form.cs: Implement TODO.
1671
1672 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1673
1674         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1675           missing proper dialog setup in the constructor
1676
1677 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1678
1679         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1680         * Control.cs:
1681           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1682           - Fixed ResetBindings and removed TODO
1683           - Added check for cross-thread calls to get_Handle()
1684           - Added Marshaller attribute for set_Font to satisfy class status
1685         * FontDialog.cs: Removed TODOs that seemed implemented
1686         * UpDownBase.cs: Removed unneeded TODO and Fixme
1687         * MessageBox.cs: Implemented support for Default button and removed TODO
1688         * FileDialog.cs: Removed obsolete TODO
1689         * DomainUpDown.cs: Removed obsolete TODO
1690         * ButtonBase.cs: Removed obsolete TODO
1691         * XplatUIWin32.cs: Removed obsolete TODO
1692         * Form.cs:
1693           - Removed obsolete TODO
1694           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1695             internal status updates
1696           - Making sure the active control is selected when the control is created
1697         * CurrencyManager.cs: Removed obsolete TODO
1698
1699 2006-03-29  Mike Kestner  <mkestner@novell.com>
1700
1701         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1702         of PrintPreviewDialog and RichTextBox.
1703
1704 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1705
1706         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1707           DarkDark, Light and LightLight colors for a specific color
1708         * ThemeWin32Classic.cs:
1709           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1710             Appearance = Button 
1711           - Make use of the new ResPool helper CPColor
1712           - Draw ProgressBar and StatusBar with correct 3D borders
1713
1714 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1715
1716         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1717
1718 2006-03-28  Mike Kestner  <mkestner@novell.com>
1719
1720         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1721         calculating col/row counts.
1722
1723 2006-03-28  Mike Kestner  <mkestner@novell.com>
1724
1725         * ColumnHeader.cs:
1726         * ListView.cs:
1727         * ListViewItem.cs:
1728         * Menu.cs: 
1729         switch to explicit interface method implementation for some methods
1730         corcompare identifies as inconsistent with MS.
1731
1732 2006-03-28  Mike Kestner  <mkestner@novell.com>
1733
1734         * MainMenu.cs: 
1735         * Menu.cs:
1736         add a few missing methods from the class status output.
1737
1738 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1739
1740         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1741           correct.
1742
1743 2006-03-28  Mike Kestner  <mkestner@novell.com>
1744
1745         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1746
1747 2006-03-27  Mike Kestner  <mkestner@novell.com>
1748
1749         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1750         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1751
1752 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1753
1754         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1755
1756 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1757
1758         * ThemeWin32Classic.cs:
1759           - GroupBox: Inserted a little gap between the text and the lines
1760             on the right side
1761           - Made the code in CPDrawBorder3D more readable
1762           - Corrected the drawing location of the up and down arrows in 
1763             CPDrawScrollButton
1764
1765 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1766
1767         * ControlPaint.cs: Corrected line widths in DrawBorder for
1768           ButtonBorderStyle Inset and Outset
1769
1770 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1771
1772         * ThemeWin32Classic.cs:
1773           - Rewrote the totally broken CPDrawBorder3D method. That was
1774             one of the main problems for the terrific ThemeWin32Classic
1775             look
1776           - Updated and corrected Button drawing
1777           - Correct the dimensions of the SizeGrip to match ms ones
1778           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1779         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1780           Border3DStyle.Sunken to match ms.
1781
1782 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1783
1784         * ThemeWin32Classic.cs: First small part of the "de-uglify
1785           ThemeWin32Classic" effort, SizeGrip
1786
1787 2006-03-24  Jackson Harper  <jackson@ximian.com>
1788
1789         * XplatUIX11.cs: Give a max idle time of one second, this matches
1790         MS and forces an Idle event every second when there are no other
1791         events in the queue.
1792
1793 2006-03-24  Mike Kestner  <mkestner@novell.com>
1794
1795         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1796         * ListView.Item.cs: fix layout issues with null image lists and images
1797         smaller than checkbox size.
1798         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1799         mode like MS does.  It's weird, but consistent.  ;-)
1800         Fixes #77890.
1801
1802 2006-03-24  Mike Kestner  <mkestner@novell.com>
1803
1804         * ListView.cs: Scroll wheel support for the item control.  Fixes
1805         #77839.
1806
1807 2006-03-23  Jackson Harper  <jackson@ximian.com>
1808
1809         * ScrollableControl.cs: Special case negative sized areas, not
1810         zero.
1811         * MonthCalendar.cs: Save the rect of the clicked date so we can
1812         use it for invalidation.
1813         - Try to cut down on the number of invalidates
1814         - Invalidate the rect the mouse is over and was over when moving
1815         the mouse, so we get the focus box following the cursor.
1816
1817 2006-03-23  Mike Kestner  <mkestner@novell.com>
1818
1819         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1820         focus rectangle drawing. Fixes #77835.
1821
1822 2006-03-23  Mike Kestner  <mkestner@novell.com>
1823
1824         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1825         the if and else if and reverting back to the original == check on the
1826         None conditional.
1827
1828 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1829
1830         * FontDialog.cs: Update the example panel if the selected index of
1831           the fontListBox changes.
1832
1833 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1834
1835         * FileDialog.cs: Make FileDialog remember which directory it was in
1836           last in the same execution.
1837
1838 2006-03-22  Mike Kestner  <mkestner@novell.com>
1839
1840         * FileDialog.cs: make the DropDownMenu on the toolbar display
1841         RadioChecks since they are mutually exclusive and that's what MS does.
1842
1843 2006-03-22  Mike Kestner  <mkestner@novell.com>
1844
1845         * Theme.cs: add Color param to CPDrawMenuGlyph.
1846         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1847         checks and radio marks and arrows are visible on highlighted items.
1848         * ControlPaint.cs: update to use new Theme signature.
1849
1850 2006-03-22  Mike Kestner  <mkestner@novell.com>
1851
1852         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1853         is active. Fixes #77870.
1854
1855 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1856
1857         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1858           to be focused/selected after startup
1859
1860 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1861
1862         * ColorDialog.cs: 
1863           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1864             CustomColors and ShowHelp properties
1865           - Some internal rewrites to get better results when using the
1866             ColorMatrix
1867
1868 2006-03-22  Mike Kestner  <mkestner@novell.com>
1869
1870         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1871         HoverSelection.  Fixes #77836.
1872
1873 2006-03-22  Mike Kestner  <mkestner@novell.com>
1874
1875         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1876         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1877         1, not 0.  Update ButtonSize based on a pixel count of the win32
1878         control.  Adjust the toolbar size/location for new button size.
1879
1880 2006-03-22  Jackson Harper  <jackson@ximian.com>
1881
1882         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1883         true.
1884         * ScrollBar.cs: When doing increments and decrements we need to
1885         set the Value property so that ValueChanged gets raised. A
1886         possible optimization here would be to make an internal SetValue
1887         that doesn't invalidate immediately.
1888         * ToolTip.cs: Tooltips get added to their container (when
1889         supplied) so they get disposed when the container is disposed.
1890         - Don't create tooltips for String.Empty. This prevents all these
1891         little 2-3 pixel windows from showing up when running nunit-gui
1892         and driving me mad.
1893         * Form.cs: Don't set topmost when setting the owner if the handles
1894         haven't been created yet.  The topmost set will happen when the
1895         handles are created.
1896
1897 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1898
1899         * XplatUIX11.cs:
1900           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1901           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1902             visible (to allow them to recalculate their sizes)
1903
1904 2006-03-21  Mike Kestner  <mkestner@novell.com>
1905
1906         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1907         methods. Removed a ton of redundant code.  Still not really happy with
1908         the border rendering, but I think that's mainly because of the
1909         ControlDarkDark being black instead of a dark grey. Depending on how 
1910         close we want to be, we might want to revisit those color choices.
1911         Among the new features added during the refactor were DropDownArrow
1912         pressed rendering, Disabled image rendering.  Proper flat appearance
1913         boundary rendering.  Removed the Divider and Wrapping dividers since I
1914         can't figure out any combination of themes and conditions to make the
1915         MS control draw a horizontal line on a toolbar despite what the
1916         Divider property docs indicate.
1917         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1918         conditions and incorrect layout.  Updated to coding standard.
1919         * ToolBarButton.cs: refactored layout and positioning code from
1920         ToolBar to here.  Invalidate wherever possible instead of forcing
1921         redraws of the whole toolbar. 
1922         (Known remaining issues: explicit ButtonSize smaller than provided
1923         images.)
1924
1925 2006-03-21  Mike Kestner  <mkestner@novell.com>
1926
1927         * ContextMenu.cs (Show): use the position parameter instead of just
1928         showing at the MousePosition.
1929
1930 2006-03-21  Jackson Harper  <jackson@ximian.com>
1931
1932         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1933         control handle this.
1934         * TreeNodeCollection.cs: If we are clearing the root node we need
1935         to reset top_node so calcs can still happen.
1936         * ThemeWin32Classic.cs: This is a Flags so we need to check
1937         properly.
1938         
1939 2006-03-21  Jackson Harper  <jackson@ximian.com>
1940
1941         * DataGrid.cs: Create columns when the binding context has been
1942         changed.
1943         * X11Structs.cs: Keysyms are uints.
1944         - Add size to fix build.
1945
1946 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1947
1948         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1949           XplatUIOSX.cs: 
1950           - Added ResetMouseHover method to allow controls to retrigger
1951             hovering if they need it more than once
1952           - Implemented MouseHoverTime and MouseHoverSize properties
1953         * Timer.cs: Start() must reset the interval
1954         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1955           properties
1956
1957 2006-03-21  Jackson Harper  <jackson@ximian.com>
1958
1959         * X11Keyboard.cs: improved layout detection. Move the nonchar
1960         tables into this file.
1961         * KeyboardLayouts.cs: Move the tables into resource files.
1962
1963 2006-03-21  Mike Kestner  <mkestner@novell.com>
1964
1965         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
1966
1967 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
1968
1969         * Mime.cs: Various speed optimizations. Looking up mime types
1970           is now 2 times faster than before
1971
1972 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
1973
1974         * CreateParams.cs: Added internal menu field
1975         * Control.cs: 
1976           - Switched call order for UpdateBounds; now we always call
1977             the one that also takes ClientSize, and we're calculating the 
1978             client size via driver method in the others. The previous
1979             method of tracking client size by difference wasn't working
1980             for forms where even the starting client size wouldn't match
1981             the overall form size (due to borders) (Part of fix for #77729)
1982           - CreateParams(): Do not use parent.Handle unless the handle is
1983             already created. Causes havoc with Nexxia and throws off our
1984             creation of controls
1985         * XplatUIX11.cs:
1986           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
1987           - Switched handling of ConfigureNotify over to new PerformNCCalc 
1988             method (consolidates code)
1989           - Changed RequestNCRecalc to use new PerformNCCalc method
1990           - Added calls to RequestNCRecalc when menus and borders are changed
1991             to allow app to set NC size. (Part of fix for #77729) This matches
1992             when MS send a WM_NCRECALC on Win32 windows.
1993           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
1994             (Part of fix for #77729). This matches what MS does, they also
1995             send that message when the form is made visible.
1996           - XException.GetMessage: Improved usability of X errors by including
1997             a translation of the window into Hwnd and Control class
1998           - Improved debug info for window creation, reparenting and destruction
1999           - Created helper method WindowIsMapped() [Currently not used]
2000         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2001         * Form.cs:
2002           - CreateParams: Now setting our menu on the new internal menu field
2003           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2004             avoid calculating the same property twice
2005         * Hwnd.cs:
2006           - Improved usability of ToString() for debugging purposes
2007           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2008             determine the height of the menu, instead of just the font. This
2009             required to also create a graphics context and to keep a bmp 
2010             around (for performance reasons)
2011
2012 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2013
2014         * MenuAPI.cs: Added OnMouseUp method
2015         * Form.cs:
2016           - Now remembering the requested client size, avoids size errors
2017           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2018             instead of base if the menu is active. This is required due to
2019             control now capturing and releasing on down/up and it would
2020             prematurely release our menu capture
2021
2022 2006-03-17  Jackson Harper  <jackson@ximian.com>
2023
2024         * KeyboardLayouts.cs: Add the czech layouts.
2025
2026 2006-03-16  Jackson Harper  <jackson@ximian.com>
2027
2028         * Control.cs: Use the viewport space when sizing not the controls
2029         client size, so things like ScrollableControl that effect the
2030         viewport size (when scrollbars are added) are computed correctly.
2031         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2032         of ManagerEntrys.
2033         - Handle creating BindingManagers for null data sources.
2034         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2035         source, otherwise when rows are added they are added to the 'fake'
2036         datasource and we will crash when trying to set the position in
2037         those rows.
2038         - Use Implicit scrollbars on the datagrid so they arent
2039         selectable.
2040         
2041 2006-03-16  Jackson Harper  <jackson@ximian.com>
2042
2043         * Binding.cs:
2044         * InternalWindowManager.cs:
2045         * MdiWindowManager.cs:
2046         * X11Keyboard.cs: I really want Mike to love me again (fix
2047         compiler warnings).
2048
2049 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2050
2051         * DataGrid.cs:
2052           - OnMouseDown: Switch to editing mode when clicking on the cell
2053                          even if we're clicking on the cell that's currently 
2054                          selected
2055           - ProcessGridKey: Left/Right now wrap like MS.Net does
2056           - ProcessGridKey: Tab now knows to add a new row when tab is
2057                             pressed in the cell of the last column of the 
2058                             last row
2059           - ProcessGridKey: Enter now adds another row  if pressed in the last
2060                             row and selectes the new row, same column cell
2061           - ProcessGridKey: Home/End navigate columns, not rows, like 
2062                             originally implemented
2063           - Broke ProcessKeyPreview code out into an extra Internal method
2064             so it can be called from the edit code
2065         * DataGridTextBox.cs (ProcessKeyMessage):
2066           - Switched to accept Tab keypresses
2067           - Added F2 handling to allow jumping to the end of the edited cell
2068           - Added logic to allow moving caret left/right inside edited cell
2069             and making the edited cell jump when the caret hits cell borders
2070           - Tab and Enter are now passed to the datagrid after being handled
2071         * TextBoxBase.cs:
2072           - Removed capture code now that Control handles it
2073           - set_SelectionStart now ensures caret is visible
2074
2075 2006-03-16  Jackson Harper  <jackson@ximian.com>
2076
2077         * TrackBar.cs: Debackwards the increment/decrement for handling
2078         mouse clicks on the bar with vertical trackbars.
2079         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2080         bottom to match MS.
2081
2082 2006-03-16  Mike Kestner  <mkestner@novell.com>
2083
2084         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2085         consistent with the MS control. Fix a bug in
2086         SelectedListViewItemCollection.Clear that was pissing me off for the
2087         better part of a day because the collection was being altered
2088         underneath us as we walked the list.
2089
2090 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2091
2092         * Control.cs: Not sure how we could miss this so long, but it seems
2093           that MS.Net has Capture set all the way from before calling 
2094           OnMouseDown through sending the mouse events until after
2095           OnMouseUp. This will fix DataGrid's selection being set to end
2096           at the location of the MouseUp.
2097
2098 2006-03-15  Jackson Harper  <jackson@ximian.com>
2099
2100         * BindingContext.cs: Check the binding after its added so that it
2101           can initialize the binding managers and hookup to events.
2102         * Binding.cs: Data members seem to sometimes include rows/cols in
2103           the format Row.Column we now take this into account.
2104           - Hookup to the position changed event so we can update the
2105           control when the position has changed in the data set.
2106         * CurrencyManager.cs: Take into account the row/col naming
2107           convention when creating dataset tables.
2108         * BindingContext.cs: Using a newer better way of storing
2109           datasource/datamember pairs.  Hopefully this better matches MS for
2110           looking up binding managers.
2111
2112
2113 2006-03-15  Jackson Harper  <jackson@ximian.com>
2114
2115         * BindingContext.cs: The currency manager needs the data member
2116         name, if the member is a data set we use the name to find the
2117         correct table.
2118         * CurrencyManager.cs: When creating the list prefer an IList over
2119         an IListSource.
2120         - Attempt to create a DataTable from a DataSet (TODO: might need
2121         some better error checking here, although MS doesn't seem to have much)
2122         - If we have a DataTable create a view and use it as our list.
2123
2124 2006-03-15  Mike Kestner  <mkestner@novell.com>
2125
2126         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2127         keyboard navigation. Support Up/Down/Left/Right selection correctly
2128         for all 4 View modes.
2129         * ListViewItem.cs: add internal row/col fields for icon layouts.
2130
2131 2006-03-15  Jackson Harper  <jackson@ximian.com>
2132
2133         * TabControl.cs: Redraw the tabs when we resize so their newly
2134         calculated sizes are drawn on screen.
2135         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2136         composite characters.
2137         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2138         - filter events so that composite characters can be created
2139         patches by peter
2140         * X11Structs.cs: Add XIMProperties enum.
2141
2142 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2143
2144         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2145           unless it's created
2146
2147 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2148
2149         * Control.cs (PerformLayout): We don't need to consider visiblity
2150           for anchoring, only for docking. This fixes 'whacky' alignment
2151           in listbox and other controls that use implicit scrollbars after
2152           the previous PerformLayout patch
2153         * ListBox.cs: Switched to use implicit scrollbars
2154           
2155 2006-03-14  Mike Kestner  <mkestner@novell.com>
2156
2157         * ToolBar.cs: 
2158         * VScrollBar.cs:
2159         - chain up the "new event" overrides to base and use
2160         OnEvent to raise them.  Part of fix for bug #76509.
2161
2162 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2163
2164         * FileDialog.cs: Do not select an item in the parent directory
2165           on backspace
2166
2167 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2168
2169         * Control.cs (PerformLayout): It would seem that we considered
2170           invisible windows for our layout. Not quite the right thing
2171           to do. Now we don't any longer, thereby fixing bug #76889.
2172
2173 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2174
2175         * Control.cs (CanFocus): I goofed. A control can have focus 
2176           even though it's not selectable. Made it match MS docs.
2177
2178 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2179
2180         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2181           center by default (fixes #76895)
2182         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2183           all uses of Border3DSides.All with the explicit ORd together
2184           Left|Right|Top|Bottom because I assume that nobody was aware 
2185           that All also implies a center fill. Most places I checked had
2186           a fill right above.
2187         * ProgressBarStyle.cs: Added
2188
2189 2006-03-13  Mike Kestner  <mkestner@novell.com>
2190
2191         * ListView.cs: fix breakage in drag shadow header positioning 
2192         from Peter's csc compilation fix.
2193
2194 2006-03-13  Mike Kestner  <mkestner@novell.com>
2195
2196         * ListView.cs: fix NRE produced by backspacing twice in a focused
2197         FileDialog.
2198
2199 2006-03-13  Mike Kestner  <mkestner@novell.com>
2200
2201         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2202
2203 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2204
2205         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2206           be changed
2207         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2208           the allowed size before making programmatic size changes
2209
2210 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2211
2212         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2213           set, metacity is broken and will still use the emty sizes in 
2214           the struct. (Fix for #77089)
2215
2216 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2217
2218         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2219           WindowExStyles and marked both enums as Flags
2220         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2221           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2222           to match WindowStyles split
2223         * XplatUIX11.cs:
2224           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2225           - Updated to match WindowStyles split
2226         * XplatUIWin32.cs:
2227           - Fixed FosterParent creation, was using ExStyle on the Style field
2228             (This should help with Popup focus issues)
2229           - Updated to match WindowStyles split
2230
2231 2006-03-13  Jackson Harper  <jackson@ximian.com>
2232
2233         * MdiWindowManager.cs: Use the system menu height. Fixes some
2234         strange sizing issues.
2235
2236 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2237
2238         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2239         * TextBoxBase.cs:
2240           - Scroll to caret after inserting text (#77672)
2241           - Make scroll range one pixel higher, fixes off-by-one error (and
2242             makes underlines visible on the last line)
2243
2244 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2245
2246         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2247           the keyboard state from being stuck with keys in 'pressed' state when
2248           focus is switched away via keyboard
2249         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2250           reset the keyboard if no X11 KeyUp events are expected to come
2251         * X11Structs.cs: Switched type of Visible to bool to match driver
2252
2253 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2254
2255         * TextControl.cs:
2256           - Switched caret to be just 1 pixel wide, matches MS and looks less
2257             clunky
2258           - Moved caret display 1 pixel down from the top of the control
2259             to improve view
2260           - InsertCharAtCharet: Update the selection start if moving the caret
2261             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2262           - No longer always creating the caret when the caret methods are
2263             called. Only the actual ShowCaret/HideCaret will do that now
2264           - Only setting caret visible if the owner control has focus
2265           - UpdateView: Added invalidation-shortcut logic for center and right 
2266             aligned text. Previously we'd update all according to the left
2267             logic which caused drawing errors. Also fixed height of invalidated
2268             areas, now properly invalidating the whole area (was off-by-one)
2269           - owner_HandleCreated: Always generate the document when the
2270             handle is created; this ensures that 
2271         * TextBoxBase.cs:
2272           - Fixed situation where caret would disappear under the right
2273             window border, also improved scrolling behaviour on left-
2274             aligned textboxes
2275           - Fixed right-aligned textboxes to have a border to the
2276             right instead of the caret being under the right border
2277         * XplatUIX11.cs:
2278           - Switched from 'nested' to simple visible/not visible tracking 
2279             for caret (part of fix for #77671)
2280           - No longer passing through translated FocusIn/FocusOut messages
2281             since we were notifying too often and the wrong windows. Instead
2282             we just notify our focussed window of receiving or loosing focus
2283         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2284           counting for caret to simple visible yes/no behaviour (part of 
2285           fix for #77671)
2286
2287 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2288
2289         * Mime.cs: Remove debug code...
2290
2291 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2292
2293         * MimeGenerated.cs: Removed
2294         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2295           and subclasses) from /usr/(local/)share/mime and
2296           $HOME/.local/share/mime.
2297
2298 2006-03-10  Jackson Harper  <jackson@ximian.com>
2299
2300         * MdiWindowManager.cs: Recalc the NC area when a window is
2301         maximized/restored so that the menu area is drawn on forms that
2302         don't have a menu.
2303
2304 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2305
2306         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2307           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2308           us to force a WM_NCCALCRESIZE message being sent. This is needed
2309           for MDI maximizing.
2310
2311 2006-03-10  Jackson Harper  <jackson@ximian.com>
2312
2313         * Form.cs: We need to use the ActiveMenu when calculating menu
2314         height.
2315         - Fix nullref when the window manager hasn't been created yet.
2316         * Control.cs: Fix nullref when we try to bring a control to the
2317         front that has no parent.
2318         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2319         height.
2320         - Add a dummy item to the maximized menu so it always has the
2321         correct height. Otherwise when there are no menus we don't get our
2322         icon and buttons.
2323         
2324
2325 2006-03-10  Jackson Harper  <jackson@ximian.com>
2326
2327         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2328         stuff.
2329         * Form.cs: Make the window_state internal so the window managers
2330         can track it.
2331         - When an MDI child is maximized let its window manager create the
2332         main menu (so it can add its icon).
2333         - Notify the window managers of state changes
2334         - Let the window manager paint its buttons and handle button
2335         clicks on the menu when it is maximized.
2336         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2337         window manager, since tool windows don't use it, only mdi windows.
2338         - Tell the main form that we don't want it to handle NCPAINT
2339         itself to avoid extra painting.
2340         - Handle clicks on a maximized windows menu.
2341         - Handle window state changes
2342         - Handle minimize/maximize clicks correctly by setting the window state.
2343         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2344         when clicking on the forms icon).
2345         - New method to create a forms maximized menu. This is its normal
2346         menu + an icon.
2347         - Handle window state changes.
2348         - Handle sizing of maximized windows.  Maximized windows are just
2349         drawn bigger then the parent visible area. All controls are still
2350         there, they are just outside the visible area (this matches windows).
2351         * MdiClient.cs: No scrollbars when a child window is maximized.
2352         - Let the children windows figure out how big they should be when
2353         sizing maximized windows.
2354         - Implement a version of ArrangeIconicWindows somewhat similar to
2355         Windows version.  There are some little differences, but I don't
2356         think any app will rely on the layout of minimized mdi windows.
2357
2358 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2359
2360         * Padding.cs: Several fixes to allow compiling with csc 2.0
2361
2362 2006-03-09  Jackson Harper  <jackson@ximian.com>
2363
2364         * Menu.cs:
2365         * MenuItem.cs: Cheap hack so we can add items to the list without
2366         the events being raised.  This allows adding mdi items during
2367         drawing. TODO: Should probably find a better time to add the items.
2368
2369 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2370
2371         * ThemeWin32Classic.cs:
2372           - CheckBox_DrawText: Added logic to not wrap if not enough space
2373             is available (Fix for bug #77727)
2374           - RadioButton_DrawText: Added logic not to wrap if not enough
2375             space is available (Fix for bug #77727). Also removed some
2376             duplicate code, DrawString always drawing the regular text
2377             before hitting the if statement.
2378
2379 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2380
2381         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2382
2383 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2384
2385         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2386         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2387           methods. Moved the new 2.0 properties into alphabetical order with
2388           other properties and added MonoTODO tags
2389
2390 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2391
2392         * AutoScaleMode.cs: Added. Fix build.
2393
2394 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2395
2396         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2397           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2398           and was requiring premature handle creation for calls from above
2399         * Form.cs, Control.cs: Removed handle arguments from calls to
2400           CalculateClientRect()
2401
2402 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2403
2404         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2405           drag_column.column_rect is MarshalByRef and can't be used that way
2406
2407 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2408
2409         * AxHost.cs: Added deserialization constructor for 
2410           AxHost+State (fixes 77743)
2411
2412 2006-03-09  Mike Kestner  <mkestner@novell.com>
2413
2414         * ListView.cs: 
2415         - Added column drag reordering for details view.
2416         - fixed behavior when mouse is dragged off column and
2417         AllowColumnReorder is false.
2418         * ColumnHeader.cs: clone the format too in Clone.
2419         * Theme.cs: add DrawListViewHeaderDragDetails method.
2420         * ThemeWin32Classic.cs:
2421         - impl new method for drawing drag column shadows and targets.
2422         - support column offset for details mode in DrawListViewItem.
2423
2424 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2425
2426         * TextControl.cs: Reset the char_count when the document is cleared
2427           (Fixes bug reported on mono-winforms mailing list)
2428
2429 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2430
2431         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2432           of calling base we simply process the key ourselves, since both
2433           DefWindowProc and the handled method would set m.Result. 
2434           (Fixes #77732)
2435
2436 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2437
2438         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2439           method also moves the window; instead implemented a copy of
2440           Control.ScaleCore (Part of fix for #77456)
2441         * TextBoxBase.cs: 
2442           - Created new CreateGraphicsInternal method to allow providing
2443             a graphics context when no handle is created without triggering
2444             handle creation. (Part of fix for #77456)
2445           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2446         * TextControl.cs: 
2447           - Switched Constructor to require TextBoxBase instead of Control (to
2448             allow uncast access to CreateGraphicsInternal)
2449           - Safeguarded use of owner.Handle property. No longer accessing it
2450             unless the handle is already created.
2451           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2452           - Now triggering a recalc when owning control becomes visible
2453         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2454           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2455           premature handle creation (Part of fix for #77456)
2456         * Control.cs:
2457           - We now only destroy our double-buffering buffers when the
2458             control is resized or disposed, but not when visibility
2459             changes. (The code even re-created them twice every time)
2460           - Now requiring a redraw of the buffer on visibility changes
2461             (fixes bug 77654 part 2)
2462           - Not passing OnParentVisibleChanged up unless the control
2463             is visible
2464           - CanFocus: Fixed to match MS documentation
2465           - Focus: Fixed to return actual focus state and to check if
2466             setting focus is legal before setting it
2467
2468 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2469
2470         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2471           when to draw focus rectangle by looking at parent focus and
2472           selected state instead. This fixes TabPages on Linux sometimes
2473           having none or multiple focus rectangles.
2474         * XplatUIX11.cs (SetFocus): 
2475           - Don't set the focus if the same window already has focus
2476           - Use SendMessage instead of PostMessage (like it's Win32
2477             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2478             to match MS behaviour
2479         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2480           are not selectable.
2481
2482 2006-03-07  Jackson Harper  <jackson@ximian.com>
2483
2484         * PictureBox.cs: Revert line I accidently committed last week.
2485
2486 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2487
2488         * Control.cs: 
2489           - Added new IsRecreating and ParentIsRecreating properties to
2490             allow testing if RecreateHandle has been called on ourselves
2491             or one of our parents
2492           - WndProc(WM_DESTROY): If our control handle is being recreated
2493             we immediately need to create the handle when receiving the
2494             destroy, that way our child windows find a valid parent handle
2495             when they themselves are being recreated upon WM_DESTROY receipt
2496             (fix for bug #77654 part 1)
2497         * XplatUIX11.cs:
2498           - DestroyWindow: WM_DESTROY must be sent to our own window before
2499             notifying any child windows. MS documents that child windows
2500             are still valid when WM_DESTROY is received. (Control now relies on
2501             this behaviour)
2502           - Added some fine-grain debug options
2503
2504 2006-03-06  Jackson Harper  <jackson@ximian.com>
2505
2506         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2507         box and base calculations off this.
2508         * MdiChildContext.cs:
2509         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2510         anymore.
2511         
2512 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2513
2514         * Splitter.cs: In situations where the affected control is added
2515           to the parent's control list after the splitter, we would not
2516           populate affected. Now we try populating it on mousedown, if
2517           it's not already set, and force it to be re-set whenever our
2518           parent changes.
2519
2520 2006-03-03  Matt Hargett  <matt@use.net>
2521
2522         * Control.cs: implement Control.Padding
2523         * Padding.cs: -Padding.All returns -1 when constructing with the
2524         implicit default ctor
2525         -Padding.ToString() matches MS.NET
2526         * ContainerControl.cs: implement
2527         ContainerControl.AutoScaleDimensions
2528         * ListControl.cs: implement ListControl.FormattingEnabled
2529         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2530         * ButtonBase.cs:
2531         * TabPage.cs: Implement UseVisualStyleBackColor.
2532         * PictureBox.cs: Implement PictureBox.InitialImage.
2533
2534 2006-03-03  Mike Kestner  <mkestner@novell.com>
2535
2536         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2537         event declarations to proxy to base event.
2538         * ListViewItem.cs: update to use ItemControl.
2539         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2540         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2541         column header label rendering for 0 width columns.
2542
2543 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2544
2545         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2546           that causes the control to be created. Fixes #77476.
2547
2548 2006-03-02  Jackson Harper  <jackson@ximian.com>
2549
2550         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2551         expose_pending.
2552
2553 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2554
2555         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2556           passed in for the EventArgs (fixes #77690)
2557
2558 2006-03-01  Jackson Harper  <jackson@ximian.com>
2559
2560         * ScrollBar.cs: Refresh afterbeing resized.
2561
2562 2006-02-28  Mike Kestner  <mkestner@novell.com>
2563
2564         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2565         Clean up a tracker compile warning.
2566         * MenuItem.cs: add internal PerformPopup method.
2567         [Fixes #77457]
2568
2569 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2570
2571         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2572           implicit expose) when the text is set to null
2573
2574 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2575
2576         * RichTextBox.cs (FlushText): When newline is true, we always
2577           need to split the line, even if no text is on it and we may
2578           never eat newlines. (Fixes #77669)
2579
2580 2006-02-28  Mike Kestner  <mkestner@novell.com>
2581
2582         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2583         and set Selected instead.
2584         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2585         collections.
2586
2587 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2588
2589         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2590
2591 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2592
2593         * FontDialog.cs:
2594           - Got rid of the panel. All controls are now directly added to
2595             the dialog form
2596           - It is now possible to set a font with the Font property
2597           - MinSize and MaxSize property do now what they should
2598           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2599           - Searching and selecting a font with the font textbox works now,
2600             the same applies to the style and size textbox
2601           - Draw the correct 3D border in the example panel
2602           - Fixed a little mem leak (unused fonts didn't get disposed)
2603           - Many other internal updates/rewrites...
2604           - Fix typo
2605
2606 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2607
2608         * TextControl.cs: 
2609           - InsertRTFFromStream: Added 'number of characters inserted' argument
2610           - set_SelectedRTF: Now using the number of characters to calculate
2611             the new location for the selection and cursor (x/y cannot be used
2612             due to potentially already wrapped text)
2613
2614 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2615
2616         * TextControl.cs: Added property and implemented means to allow 
2617           disabling recalculation of a document (can be used to speed up
2618           multiple inserts and is needed to make RTF inserts predictable, see
2619           bug #77659)
2620         * RichTextBox.cs: Using the new NoRecalc property of Document to
2621           keep x/y insert locations predictable. Also makes it faster inserting
2622           large chunks of RTF
2623
2624 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2625
2626         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2627           it's easier for a child control to handle the other messages without
2628           having to duplicate the special functionality
2629         * TextBoxBase.cs
2630           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2631             code to handle processing the key ourselves, in order to get 
2632             access to the result of KeyEventArgs.Handled. We now only call 
2633             ProcessKey if they key hasn't been handled already. Fixes #77526.
2634           - set_Text: If null or empty string is given, just clear the 
2635             document. Fixes part of #77526
2636
2637 2006-02-27  Jackson Harper  <jackson@ximian.com>
2638
2639         * SizeGrip.cs: Paint the background color before painting the grip
2640         so things look right.
2641         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2642
2643 2006-02-27  Mike Kestner  <mkestner@novell.com>
2644
2645         * ListView.cs:
2646           - Restructure layout and invalidation model to remove a ton of
2647           flicker from the control and speed up performance in general.
2648           - Add manual column resize, flickers like crazy, but I already have
2649           some ideas on how I'll fix that. (#76822)
2650           - Merge the three Icon-based views into a single layout method.
2651           - Move item selection interaction logic from the item since 
2652           interaction with the collections is more appropriate to the view.
2653           - Deselection on non-item clicks.
2654         * ListViewItem.cs:
2655           - Encapsulate most of the layout. Add some internal props to trigger
2656           layout.  Move to a model where Items invalidate themselves instead
2657           of just invalidating the whole control every time something changes.
2658           - Invalidate on Text/Caption changes.
2659           - switch to an offset based layout model to avoid having to absolute
2660           position every element on item moves.
2661           - correct checkbox layout to conform to MS layout.
2662         * ThemeWin32Classic.cs:
2663           - refactor some column header drawing code.
2664           - fix string justification for column headers (#76821)
2665           - make SmallIcon labels top justified for compat with MS impl.
2666         * ThemeClearlooks.cs:
2667           - adjust to new ListViewItem internal checkbox bounds api.
2668
2669 2006-02-27  Jackson Harper  <jackson@ximian.com>
2670
2671         * Control.cs:  Change where implicit controls fall in the zorder.
2672         They are now on top of all children.
2673         - Synced AddImplicit code with Add
2674         - Removed unused enumerator.
2675         * SizeGrip.cs: Remove the TODO as its been TODONE.
2676
2677 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2678
2679         * TextControl.cs(Insert): Combine the last lines unless the insertion
2680           string ends with \n\n, otherwise we leave one line too many (Fixes
2681           something I noticed with the testapp for #77526; the bug itself was
2682           already fixed in the previous checkin)
2683
2684 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2685
2686         * RichTextBox.cs:
2687           - SelectionColor and SelectionFont methods no longer set absolute
2688             styles. Instead, the keep font or color respectively (This 
2689             resolves a long-standing FIXME in the code)
2690           - When flushing RTF text, the insert code now considers text trailing
2691             behind the insertion point (Fixes the bug where when replacing
2692             the selected text via SelectedRTF the remainder of the line behind 
2693             the selection would stay on the first insertion line)
2694         * TextBoxBase.cs:
2695           - AppendText now updates the selection points after inserting text
2696           - AppendText now ensures that the last tag (sometimes 0-length) of
2697             the document is used for the style information (Fixes part of 
2698             bug #77220)
2699         * TextControl.cs:
2700           - Created new FontDefiniton class to allow describing partial style
2701             changes
2702           - StreamLine() now takes a lines argument, to allow it to decide
2703             whether an encountered zero-length tag is the last in the document
2704             (which must be kept to not loose the font/color contained in it,
2705             for later appends)
2706           - Created Combine() and Split() methods for Marker structs, to 
2707             support marker updates due to reformatted documents (soft line
2708             wraps)
2709           - Implemented Document.CaretTag setter
2710           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2711             of the last line (Not the cause, but also exposed by bug #77220)
2712           - Added LineTag argument to InsertString method, to allow callers
2713             to force a certain tag to be used (required to force use of the
2714             trailing zero-length tag of a document)
2715           - Now updating markers in Combine(), to avoid stale tag markers
2716           - Added some method descriptions to aid maintenance
2717           - Implemented new FormatText concept, allowing additive/subtractive
2718             formatting by only specifying the components that are to be 
2719             changed. This was needed for resolving the RTB.SelectedColor/
2720             RTB.SelectedFont fixmes
2721           - Added Break() support method to allow breaking up linetags (used
2722             for partial formatting)
2723           - Added GenerateTextFormat() method. It is used for partial 
2724             formatting and allows to generate a full font/color from given
2725             attributes and an existing tag.
2726
2727 2006-02-26  Jackson Harper  <jackson@ximian.com>
2728
2729         * XplatUIX11.cs:  Use the correct caption height.
2730         - Translate hittest coordinates to screen coords to match MS.
2731         * XplatUIWin32.cs: When we create MDI windows we need to reset
2732         some of the style flags, so we get a nice blank window, and can
2733         draw all the decorations ourselves.
2734         - Set a clipping rectangle on the non client paint event, the
2735         window manager drawing code needs one.
2736         * Form.cs: The window manager needs to know when the window state
2737         has been updated.
2738         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2739         don't need to factor in border and title sizes in these
2740         methods. TODO: Remove the args and fix the call points.
2741         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2742         properly.
2743         - Let the driver set the cursors.
2744         - Improve active window handling
2745         - Correct sizes for title bars and buttons.
2746         - Match MS drawing better
2747         * MdiWindowManager.cs: We don't need to handle border style
2748         updates specially anymore.
2749         - Check for scrollbars when windows are done moving
2750         - Handle Active properly.
2751         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2752         correctly. I am spewing the exception though, so we don't hide the
2753         bugs.
2754         
2755 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2756
2757         * DataGridViewRowPostPaintEventArgs.cs,
2758           DataGridViewCellPaintingEventArgs.cs,
2759           DataGridViewRowCollection.cs,
2760           DataGridViewRowPrePaintEventArgs.cs,
2761           DataGridViewCell.cs: Clear a few warnings and implement a few
2762           exceptions that should be thrown.
2763
2764 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2765
2766         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2767           'inheriting' our parent's (non-default) cursor. (Part of
2768            the fix for #77479)
2769
2770 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2771
2772         * XplatUIX11.cs: Fixed cast to make csc happy
2773
2774 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2775
2776         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2777           it's for the client area (part of fix for #77479 and needed
2778           for MDI window cursor handling)
2779         * XplatUIX11.cs
2780           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2781             the appropriate default cursors and also passing the message
2782             up the parent chain 
2783           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2784             for non-client areas
2785
2786 2006-02-15  Jackson Harper  <jackson@ximian.com>
2787
2788         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2789         is a real MDI window
2790
2791 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2792
2793         * X11DesktopColors.cs: Instead of checking the desktop session
2794           string for "KDE" check if it starts with "KDE"
2795
2796 2006-02-10  Jackson Harper  <jackson@ximian.com>
2797
2798         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2799         systems).
2800
2801 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2802
2803         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2804           errors
2805         * ColorDialog.cs:
2806           - Got rid of the panel. All controls are now directly added to
2807             the dialog form
2808           - Changed to mono coding style
2809
2810 2006-02-10  Jackson Harper  <jackson@ximian.com>
2811
2812         * InternalWindowManager.cs: We don't need the set visibility to
2813         false hack anymore now that peter has written beautiful shutdown
2814         code.
2815
2816 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2817
2818         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2819           where already explicitly destroyed
2820
2821 2006-02-10  Jackson Harper  <jackson@ximian.com>
2822
2823         * MdiClient.cs: Handle the case where windows are too high or to
2824         the left and we need scrollbars.
2825
2826 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2827
2828         * MimeIcon.cs: Added some icons
2829         * FileDialog.cs:
2830           - Fixed bug #77477
2831           - Got rid of the panel. All controls are now directly added to
2832             the dialog form
2833           - Changed to mono coding style
2834           - On Linux "My Computer" and "My Network" will now show some
2835             more usefull information. A new class, MasterMount, gathers
2836             this information from /proc/mount. Updated MWFFileView to make
2837             use of this information
2838           - Fixed a bug that caused FileDialog to crash when
2839             ".recently_used" file had a zero size
2840           - FilterIndex does now what it should
2841           - Some Refactoring
2842         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2843             FileDialog changes
2844
2845 2006-02-09  Jackson Harper  <jackson@ximian.com>
2846
2847         * ComboBox.cs: Don't touch if null.
2848
2849 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2850
2851         * Cursor.cs: 64bit safeness fix
2852         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2853
2854 2006-02-09  Jackson Harper  <jackson@ximian.com>
2855
2856         * Form.cs: If a form is made into an MDI form update the styles so
2857         all the props can get set correctly.
2858         - Kill the mdi_container when we dont need it anymore.
2859         * InternalWindowManager.cs: Add missing NOT
2860
2861 2006-02-08  Jackson Harper  <jackson@ximian.com>
2862
2863         * InternalWindowManager.cs: Respek clipping when drawing MDi
2864         decorations.
2865
2866 2006-02-08  Jackson Harper  <jackson@ximian.com>
2867
2868         * Hwnd.cs: Add bits to track non client expose events.
2869         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2870         gives us a proper invalid rect and will allow for some nice
2871         optimizations with NC client drawing
2872         - MDI windows are children windows, so move their style handling
2873         into the child window block.
2874         * InternalWindowManager.cs: Remove a state reset that was
2875         getting invoked at the wrong time. Fixes managed windows getting
2876         into a 'stuck' captured state.
2877
2878 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2879
2880         * TextControl.cs (Document.ctor): Now initializing 
2881           selection_anchor. Fixes #77493
2882
2883 2006-02-07  Jackson Harper  <jackson@ximian.com>
2884
2885         * TrackBar.cs: The increment/decrements were backwards.
2886
2887 2006-02-07  Mike Kestner  <mkestner@novell.com>
2888
2889         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2890         to the instance itself.
2891
2892 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2893
2894         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2895           on ulongs and pointers, the size differs between 32bit and 64bit
2896           systems. 
2897
2898 2006-02-07  Mike Kestner  <mkestner@novell.com>
2899
2900         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2901         for 64 bit platforms to work around a metacity bug. 
2902
2903 2006-02-07  Jackson Harper  <jackson@ximian.com>
2904
2905         * TrackBar.cs: Process the input keys we need, and hookup to
2906         KeyDown instead of using WndProc, so we get key messages.
2907
2908 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2909
2910         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2911           machine we're on. 
2912         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2913           we need to translate the XdndVersion atoms array before sending it
2914
2915 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2916
2917         * XplatUIX11.cs: 
2918           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2919             number of bits for the property, not the number of bytes. The
2920             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2921             but would not crash since it specified 8 bits instead of 4 bits)
2922           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2923             defined as XID -> long in the C headers)
2924           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2925             references since those are now IntPtr to begin with
2926           - Switched all Atom.XXX 'int' casts to IntPtr casts
2927           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2928           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2929           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2930         * X11Structs.cs:
2931           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2932           - Changed atom in HoverStruct to be IntPtr
2933         * X11DnD.cs:
2934           - Removed local DllImports, switched code to use those from XplatUIX11
2935           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2936
2937 2006-02-06  Mike Kestner  <mkestner@novell.com>
2938
2939         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2940         method signatures in the import region.  There may still be some
2941         lingering struct marshaling issues, as I didn't drill down into those.
2942         Yet.
2943
2944 2006-02-06  Jackson Harper  <jackson@ximian.com>
2945
2946         * ComboBox.cs: Dont manually set the top_item, this is computed
2947         when the scrollbar position is set.
2948
2949 2006-02-06  Mike Kestner  <mkestner@novell.com>
2950
2951         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2952         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2953         usage of Atom needs to be mapped to IntPtr for example.  And there are
2954         likely other int/long issues to be addressed.
2955
2956 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2957
2958         * FileDialog.cs: One more...
2959
2960 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2961
2962         * FileDialog.cs: Next try
2963
2964 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2965
2966         * FileDialog.cs: First part of fix for #77464
2967
2968 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
2969
2970         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
2971           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
2972           AcceptButton border drawing.
2973
2974 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
2975
2976         * Form.cs: Moved positioning of form after auto scaling is applied,
2977           otherwise it would possibly use wrong form size.
2978
2979 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
2980
2981         * Control.cs (RecreateHandle): No need to re-create any child
2982           controls, the child windows will get destroyed automatically by
2983           the windowing system or driver, and re-created when the handle
2984           is being accessed the first time. Fixes #77456
2985         * Form.cs: No longer setting the form to closing if the handle is 
2986           being recreated. This seems like the right thing to do, don't
2987           have a bug or testcase for this, though.
2988
2989 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
2990
2991         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
2992           controls to avoid unwanted side effects
2993
2994 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
2995
2996         * Control.cs: 
2997           - ScaleCore needs to scale the bounds, not the ClientSize of the 
2998             control. Fixes #77416.
2999           - DefaultSize is 0,0 for control
3000         * TextBoxBase.cs: 
3001           - DefaultSize is 100, 20
3002           - SetBoundsCore: Now enforcing the height, no matter if the provided
3003             height is more or less than the preferred one, as long as AutoSize
3004             is on
3005         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3006
3007 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3008
3009         * Control.cs:
3010           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3011             call unless both performLayout is true *and* we have a pending
3012             layout change
3013           - ResumeLayout: MS does not completely nest Suspend and Resume,
3014             they bottom out at 0, fixed our code to match that.
3015           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3016             SetBoundsCore, we were updating even when we shouldn't. This fixes
3017             swf-anchors mis-anchoring when resizing the app fast and lots.
3018           - UpdateDistances: Now only setting the left and top distance if 
3019             we have a parent and are not suspended, this is based on
3020             a suggestion by Don Edvaldson in bug #77355.
3021           - OnVisibleChanged: Fixed logic when to create the control. We may
3022             not create the control if we have no parent or if it's not visible;
3023             switched to using Visible property instead of is_visible field 
3024             since the property also considers parent states. This fixes a bug
3025             when starting Paint.Net
3026
3027 2006-02-02  Jackson Harper  <jackson@ximian.com>
3028
3029         * Form.cs: If the forms handle hasn't been created yet don't call
3030         into xplatui to make it top most, just set the topmost flag on the
3031         form in CreateParams
3032         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3033
3034 2006-02-01  Jackson Harper  <jackson@ximian.com>
3035
3036         * ScrollableControl.cs: Refactored the Recalculate method a
3037         little, this wasn't handling all the variants of bottom and right
3038         bars needed to be added and added/removed based on their
3039         counterparts being added/removed (which changes the drawable
3040         size). Also we special case client widths and heights of 0 and
3041         don't add the scrollbar for those.
3042
3043 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3044
3045         * XplatUIX11.cs: 
3046           - Added method to get AbsoluteGeometry(); currently unused, but might
3047             be used in the future, if we try again to figure out toplevel
3048             coordinates with some more crappy window managers
3049           - Added FrameExtents() method to retrieve the WM set decoration size
3050           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3051             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3052         * Hwnd.cs: 
3053           - Added whacky_wm tracking var for metacity
3054           - Added logic to have default menu height if the actual menu height
3055             has not yet been calculated (part of fix for #77426)
3056         * Form.cs: Keep track whether client size has been set and re-set 
3057           it if a menu is added/removed afterwards (Fixes #77426)
3058
3059 2006-01-31  Jackson Harper  <jackson@ximian.com>
3060
3061         * Control.cs: When a new Site is set on the component attempt to
3062         pull the AmbientProperties from it.
3063
3064 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3065
3066         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3067           in the background of the owning form. Fixes #77332
3068
3069 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3070
3071         * MimeIcon.cs: Fix for #77409
3072
3073 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3074
3075         * XplatUIX11GTK.cs: Initial import
3076
3077 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3078
3079         * FixedSizeTextBox: fixes class signature
3080
3081 2006-01-30  Jackson Harper  <jackson@ximian.com>
3082
3083         * FixedSizeTextBox.cs: New internal class that represents a
3084         textBox that will not be scaled.
3085         * TreeView.cs:
3086         * ComboBox.cs:
3087         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3088         standard TextBox.
3089                 
3090 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3091
3092         * XplatUIX11.cs: Retrieve default screen number instead of
3093           assuming 0. Attempted fix for #77318
3094
3095 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3096
3097         * XplatUIWin32.cs: 
3098           - GetWindowPos: When a window is parented by FosterParent, use 
3099             the desktop instead of FosterParent as the base to get coordinates
3100           - CreateWindow: Don't make FosterParent the parent window for Popups
3101             if we don't want a taskbar entry, Popups automatically don't get one
3102         * Hwnd.cs: Need to call remove to actually remove the key from the
3103           hash table
3104
3105 2006-01-30  Mike Kestner  <mkestner@novell.com>
3106
3107         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3108
3109 2006-01-30  Jackson Harper  <jackson@ximian.com>
3110
3111         * TreeView.cs:
3112         * TreeNode.cs: Raise events no matter how the treenode is
3113         checked. Patch by Don Edvalson.
3114
3115 2006-01-30  Jackson Harper  <jackson@ximian.com>
3116
3117         * TreeNode.cs: Signature fix.
3118
3119 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3120
3121         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3122
3123 2006-01-20  Mike Kestner  <mkestner@novell.com>
3124
3125         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3126         event forwarding when menus are active.
3127         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3128         Most of the patch is pdb's with a little rework.
3129
3130 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3131
3132         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3133           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3134           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3135         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3136         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3137           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3138           the PaintWindowDecorations method
3139         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3140         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3141         * MenuAPI.cs: Made tracker window invisible
3142         * XplatUIWin32.cs:
3143           - Removed GetMenuDC and ReleaseMenuDC methods
3144           - Implemented the client=false path for PaintEventStart and
3145             PaintEventEnd
3146
3147 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3148
3149         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3150         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3151           styles
3152         * Form.cs: 
3153           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3154             the style
3155           - CreateParams: Reworked the styles to match MS look'n'feel,
3156             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3157             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3158
3159 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3160
3161         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3162           window is not mapped, since otherwise every form that's being 
3163           created is considered minimized, which is wrong.
3164         * Form.cs: Catching the exception and returning our internal value
3165           instead
3166
3167 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3168
3169         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3170           SetWindowMinMax() to have means to tell the driver about the minimum,
3171           maximum and maximized state window sizes. (Part of the fix for #76485)
3172         * Form.cs:
3173           - Implemented tracking of minimum and maximum window size, now calling
3174             new SetWindowMinMax() driver method to tell the driver (Part of the
3175             fix for #76485)
3176           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3177             (Completes fix for #76485)
3178           - Calling new SetWindowMinMax driver method when the handle for a 
3179             form is created, to make sure the driver knows about it even if
3180             the values have been set before the window was created
3181           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3182             to avoid messing up our anchoring calculations (partial fix
3183             for #77355)
3184         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3185         * XplatUIX11.cs:
3186           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3187           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3188             (and presumably other freedesktop.org compliant WMs). Left the
3189             assumption unmapped=minimized, needed for SetVisible to work.
3190           - Now setting the window state when creating windows
3191           - Fixed SetVisible to consider/set the window state when mapping
3192             a Form. We cannot set the state before it's mapped, and we cannot
3193             use Form.WindowState once it's mapped (since it would ask the
3194             driver and get 'normal'. Therefore, we grab the state before
3195             mapping, map, and then set state.
3196           - Implmemented SetWindowMinMax method; Metacity does not seem to
3197             honor the ZoomHints, though.
3198         * XplatUIWin32.cs:
3199           - Removed MINMAXINFO (moved to XplatUIStructs)
3200           - Added SetWindowMinMax stub (on Win32 the only way to set that
3201             information is in response to the WM_GETMINMAXINFO message, which
3202             is handled in Form.cs)
3203           - Added logic to SetVisible to set the proper window state when a 
3204             form is made visible (fixes #75720)
3205
3206 2006-01-26  Jackson Harper  <jackson@ximian.com>
3207
3208         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3209         same way we handle them with Invoke.
3210
3211 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3212
3213         * Form.cs:
3214           - Added tracking of window state so CreateParams can return
3215             the appropriate style
3216           - Moved setting of WS_CAPTION style in CreateParams to allow
3217             styles without caption
3218         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3219           control if the TextBox property is accessed. Fixes #77345
3220         * Control.cs:
3221           - get_Created: now uses is_disposed and is_created to determine
3222             return value (suggested by Jackson)
3223           - CreateHandle: No longer exits if the handle is being recreated
3224           - RecreateHandle: If the handle is not yet created call the 
3225             appropriate method to create either control or handle. If the
3226             control is already created CreateHandle will simply exit instead
3227             of just creating the handle
3228         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3229           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3230           is called.
3231         * XplatUIX11.cs: 
3232           - When DestroyWindow is called, instead of waiting for the 
3233             DestroyNotification from X11, we directly post it to the WndProc
3234             and immediately dispose the hwnd object.
3235             Same applies to DestroyChildWindows, and this obsoletes the
3236             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3237             child windows before our own, to avoid X11 errors.
3238           - Removed the direct sending of WM_PAINT on UpdateWindow
3239         * XplatUIWin32.cs:
3240           - Reworked DoEvents and GetMessage to allow access to internal queue
3241             even when trying non-blocking access to the queue.  Fixes #77335. 
3242             Based on a patch suggestion by Don Edvalson. The new private
3243             GetMessage can now also be used as a backend for a PeekMessage
3244             frontend version.
3245         * XplatUI.cs: Improved debug output for CreateWindow
3246
3247 2006-01-25  Jackson Harper  <jackson@ximian.com>
3248
3249         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3250
3251 2006-01-24  Jackson Harper  <jackson@ximian.com>
3252
3253         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3254         when we have a MaxDropItems lower then the selected index.
3255
3256 2006-01-24  Jackson Harper  <jackson@ximian.com>
3257
3258         * Control.cs: Don't allow selection of non visible controls, allow
3259         selection of controls without parents.
3260
3261 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3262
3263         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3264         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3265
3266 2006-01-23  Jackson Harper  <jackson@ximian.com>
3267
3268         * UpDownBase.cs: Make the textbox handle all the selection and
3269         tabbing. This fixes tabing to updown controls.
3270
3271 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3272
3273         * TextBoxBase.cs: fixes exception thown the object was null
3274
3275 2006-01-23  Jackson Harper  <jackson@ximian.com>
3276
3277         * ButtonBase.cs: Just use the base CreateParams. They set
3278         visibility and enabled correctly.
3279         * ComboBox.cs:
3280         * TrackBar.cs:
3281         * MonthCalendar.cs: Lets let the base set as much of the
3282         createparams as possible so we don't have duplicate code all over
3283         the place.
3284
3285 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3286
3287         * ThemeGtk.cs: Added TrackBar and some experimental code to
3288           get double buffering back
3289
3290 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3291
3292         * DataGrid.cs: Allows row number set internally higher than the last
3293         when creating a new row. Restores the editing functionality.
3294
3295 2006-01-20  Mike Kestner  <mkestner@novell.com>
3296
3297         * MimeIcon.cs: delay Image creation until the icons are accessed
3298         instead of creating 190 scaled images on GnomeHandler startup.
3299
3300 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3301
3302         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3303           first call base before processing the event. Fixes #77279
3304
3305 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3306
3307         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3308           that the stride for the GDI bitmap would match the stride of
3309           a DIB or a Cursor.
3310
3311 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3312
3313         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3314
3315 2006-01-19  Jackson Harper  <jackson@ximian.com>
3316
3317         * ComboBox.cs: Hookup the text controls keydown event so we get
3318         those when the text control has the focus.
3319
3320 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3321
3322         * Label.cs: Now using the base events instead of defining new ones;
3323           this allows us to just call the base properties without having to
3324           duplicate all base property logic 
3325
3326 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3327
3328         * Label.cs: A label by default is not a tabstop (Fixes one of our
3329           failing nunit tests)
3330
3331 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3332
3333         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3334         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3335
3336 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3337
3338         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3339           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3340           This fixes #77218
3341         * XplatUIWin32.cs: 
3342           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3343             constructor creates images that can't be saved. Part of the fix
3344             for #76103
3345           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3346           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3347             bug fix for handling window state in forms properly)
3348
3349 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3350
3351         * ThemeGtk.cs: Simplify ScrollBar drawing
3352
3353 2006-01-18  Jackson Harper  <jackson@ximian.com>
3354
3355         * Splitter.cs: Set the default dock style for the splitter control
3356         in the constructor.
3357
3358 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3359
3360         * ThemeGtk.cs: Corrected StateType and ShadowType for
3361           gtk_paint_box
3362
3363 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3364
3365         * Control.cs: Make use of Theme.DoubleBufferingSupported
3366         * ThemeGtk.cs:
3367           - Added drawing for flat style buttons
3368           - Added ScrollBar drawing
3369
3370 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3371
3372         * ThemeClearlooks.cs: Removed some unneeded code.
3373         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3374
3375 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3376
3377         * LinkLabel.cs: We need to update the hover drawing when
3378           leaving the control as well.
3379
3380 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3381
3382         * DataGrid.cs: Clicking on non empty areas in the columns
3383            area was giving an exception
3384
3385 2006-01-17  Jackson Harper  <jackson@ximian.com>
3386
3387         * ThemeWin32Classic.cs:
3388         * ListView.cs: Do not draw/clip the headers when the header style
3389         is None.
3390
3391 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3392
3393         * DataGrid.cs: Fixes 77260
3394         
3395 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3396
3397         * DataGrid.cs: Clicking on a column on a empty grid was giving
3398           an exception
3399
3400 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3401
3402         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3403           or any keypress will crash the grid.
3404
3405 2006-01-17  Mike Kestner  <mkestner@novell.com>
3406
3407         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3408         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3409         invisible/previously-visible items.
3410         [Fixes #76909]
3411
3412 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3413
3414         * ThemeClearlooks.cs:
3415         - Added CL_Draw_Button method; now other theme controls that are 
3416           not derived from button or do not have a button can draw buttons
3417           too
3418         - Updated ComboBox drawing
3419         - Beautified RadioButton drawing
3420         - Corrected drawing of bottom and left tabs
3421         - Beautified DateTimePicker and MonthCalendar
3422         - Added CPDrawButton and CPDrawRadioButton
3423
3424 2006-01-16  Jackson Harper  <jackson@ximian.com>
3425
3426         * ComboBox.cs: Set the initial value of the scrollbar to the
3427         current index. Reduce the numbers of refreshs and IndexOfs called.
3428
3429 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3430
3431         * FileDialog.cs: When the file listview is focused hitting the
3432           backspace key moves the fileview to the parent directory
3433
3434 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3435
3436         * Form.cs: 
3437           - Added RecreateHandle call when changing taskbar visibility to 
3438             trigger reparenting in Win32 driver (Fixes #75719)
3439           - If a window has minimize or maximize buttons, it cannot have
3440             a help button
3441         * XplatUIWin32.cs:
3442           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3443             the toplevel form with FosterParent (A toolwindow not on the
3444             taskbar) (Fixes #75719)
3445           - Made FosterParent a toolwindow
3446
3447 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3448
3449         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3450
3451 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3452
3453         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3454           is currently over that control, make sure that tooltip_window.Text
3455           gets updated
3456
3457 2006-01-13  Mike Kestner  <mkestner@novell.com>
3458
3459         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3460
3461 2006-01-13  Jackson Harper  <jackson@ximian.com>
3462
3463         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3464         value passed.  Also redraw the selected node when we recieve
3465         focus, so tabbing between trees works correctly.
3466
3467 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3468
3469         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3470           ~/.gconf/%gconf-tree.xml, so use
3471           .gconf/desktop/gnome/interface/%gconf.xml
3472
3473 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3474
3475         * TextControl.cs: Draw text in gray if control is disabled
3476
3477 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3478
3479         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3480           make sure it's always visible. Fixes #76680.
3481
3482 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3483
3484         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3485
3486 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3487
3488         * PageSetupDialog.cs: Added.
3489         * PrintDialog.cs: Attributes.
3490         * PrintPreviewControl.cs: Updates.
3491         * PrintPreviewDialog.cs: Updates.
3492         
3493 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3494
3495         * Control.cs: Undid my selection check fix, since it's not needed
3496         * TextBoxBase.cs:
3497           - Now considering the presence of hscroll/vscroll when sizing
3498             vscroll/hscroll respectively. Fixed bug #77077
3499           - Added Left/Up/Down/Right to IsInputKey list to prevent
3500             ContainerControl from stealing them. This fixes what I broke
3501             with my last checkin.
3502
3503 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3504
3505         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3506           I finally understand how the property can be set without a setter :-)
3507
3508 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3509
3510         * Application.cs:
3511           - Switched RunLoop to use static Message.Create to create a 
3512             Message object
3513           - Added PreProcessMessage call in runloop for keyboard events; this
3514             is part of the fix for #77219, I overlooked this originally in the
3515             MSDN doc for PreProcessMessage
3516         * Control.cs:
3517           - Removed call to PreProcessMessage from handling of keyboard 
3518             messages; it's supposed to be done in the message pump
3519           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3520             per MSDN documentation.
3521           - IsInputChar: All chars are input chars by default; removed the 
3522             parent calling chain, MS does not document that
3523           - PreProcessMessage: If IsInputChar is true, we want to return false
3524             to allow dispatching of the message
3525           - When selecting the next control, now also check that we're not
3526             selecting ourselves again and therefore return a false positive.
3527         * TextBoxBase.cs:
3528           - Tried to match return values for IsInputKey and ProcessDialogKey
3529             to what MS returns; moved processing of our special keys outside
3530             ProcessDialogKey since MS does not seem to return true on those.
3531           - Moved code that previously was in ProcessDialogKey into new private
3532             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3533           - Reworked handling of WM_CHAR to not have to duplicate code from
3534             Control.cs anymore, instead we simply call down to base.
3535            
3536 2006-01-12  Jackson Harper  <jackson@ximian.com>
3537
3538         * ComboBox.cs: We always need to refresh the text area when
3539         EndUpdate is called. Fixes the combobox in the file dialog.
3540         * Control.cs: Don't create the creator_thread until the controls
3541         handle is created.  Also in InvokeRequired we check if the
3542         creator_thread is null. This gives the effect of InvokeRequired
3543         returning true if the controls handle is not created yet, and
3544         matches MS.
3545
3546 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3547
3548         * XplatUI.cs:
3549           - Added StartLoop() driver method. This is used to allow drivers to
3550             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3551             loop for a particular thread
3552           - Added EndLoop() driver method. This is called once the message
3553             pump for the thread is shut down
3554           - Added SupportsTransparency method to allow the driver to indicate
3555             opacity support for windows
3556         * Form.cs:
3557           - Removed TODO attribute, completed AllowTransparency property
3558           - Added documented logic to Opacity
3559         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3560           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3561           versions of CompatibleTextRendering
3562         * X11Structs.cs: Added opacity atom to our atom enumeration
3563         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3564           of a form might be set before it's reparented by the WM, and we need
3565           the opacity value without calling up to Form)
3566         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3567           SupportsTransparency() driver methods
3568         * Application.cs: Now calling StartLoop and EndLoop driver methods
3569         * XplatUIX11.cs:
3570           - Added opacity atom registration
3571           - Added StartLoop()/EndLoop() methods. They're empty right now but
3572             will need to get implemented when we switch to a per-thread queue
3573           - Implemented SupportsTransparency() method
3574           - Implemented SetWindowTransparency() method
3575           - Added support for setting the opacity value when a window is
3576             reparented (since the opacity needs to be set on the WM frame)
3577         * XplatUIOSX.cs, XplatUIWin32.cs:
3578           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3579
3580 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3581
3582         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3583
3584 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3585
3586         * FileDialog.cs: Added ToolTip for MWFFileView
3587         * MimeIcon.cs: Rewrote GnomeHandler.
3588           - Get currently used gnome icon theme from
3589             ($HOME)/.gconf/%gconf-tree.xml
3590           - Make use of inherited icon themes
3591           - Support SVG icon themes like Tango via librsvg
3592
3593 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3594
3595         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3596         builds. 
3597         
3598         * Application.cs: Move the use_compatible_text_rendering outside
3599         the NET_2_0 define.  If we ever need to use the
3600         use_compatible_text_rendering on the individual controls they will
3601         access the variable from the common shared code paths.
3602
3603 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3604
3605         * XplatUI.cs:
3606           - Added more granular debug options
3607           - Added method to print both window text and id
3608           - Switched debug output to use new Window() debug method
3609           - Added IsEnabled() driver method
3610           - Added EnableWindow() driver method
3611         * Form.cs:
3612           - Removed end_modal; no longer needed, new loop handles termination
3613             via 'closing' variable
3614           - If form is modal, setting DialogResult will now initiate loop
3615             termination via 'closing' variable
3616           - Added support for is_enabled/WS_DISABLED to CreateParams
3617           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3618             does all the work
3619           - Removed code that's now in RunLoop from ShowDialog()
3620           - Added various documented sanity checks to ShowDialog()
3621           - Added handling of WM_DESTROY message; we set 'closing' on getting
3622             the message to indicate the message pump to terminate
3623           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3624             send by the Application.ExitThread method. (We send the message
3625             to destroy the window after all other events have been
3626             processed through the queue, instead of destroying the handle 
3627             directly)
3628           - Moved code from Close() method to WM_CLOSE handler; added logic
3629             to only send close-related events if the form is not displayed
3630             modal
3631         * Splitter.cs (..ctor): Fixed typo in resource name
3632         * Control.cs:
3633           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3634             brush now
3635           - set_Cursor: Now only setting calling into XplatUI if the handle for
3636             the control is already created; this avoids implict handle creation
3637             or crashes if it's not created
3638           - set_Enabled: Now setting the enabled state via the new driver method
3639             instead of just tracking it
3640           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3641           - CreateControl: Reordered event firing and method calls to more
3642             closely fire events in the order MS does. Now setting the
3643             enabled state in the driver when creating the control.
3644           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3645             match MS order
3646         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3647           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3648         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3649         * Hwnd.cs:
3650           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3651           - Added EnabledHwnd property to easily allow a driver to find the
3652             handle of the first enabled window in the parent chain (this is
3653             used by drivers to pass up input events of disabled windows)
3654         * XplatUIDriver.cs: Added IsEnabled() method
3655         * Application.cs:
3656           - Removed crude and obsolete exiting tracking variable
3657           - Removed internal ModalRun(); replaced by RunLoop()
3658           - Implemented private CloseForms() method to allow closing all 
3659             windows owned by a particular (or all) threads
3660           - Exit() now properly closes all windows without forcing the message
3661             pump to quit
3662           - Removed obsolete InternalExit() method
3663           - Changed Run() methods to use new RunLoop() message pump
3664           - Implemented new RunLoop() method for both modal and non-modal forms
3665         * CommonDialog.cs:
3666           - get_CreateParams: Added setting of WS_DISABLED
3667           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3668             invoked via Form.ShowDialog()
3669         * NativeWindow.cs: We don't remove the window from the collection when
3670           the handle is destroyed; there might still be messages for it in the
3671           queue (mainly the resulting WM_DESTROY); instead it will be removed
3672           when Control calls InvalidateHandle in the WM_DESTROY handler
3673         * XplatUIX11.cs:
3674           - CreateWindow: Added logic to handle the WS_DISABLED window style
3675           - EnableWindow: Implemented based on Hwnd.Enabled
3676           - GetMessage: Reset PostQuitState so the method can be called again
3677           - Implemented support for disabled windows (passing messages to the
3678             first enabled parent) in handling all input messages
3679           - Added optimizations for handling Expose events
3680           - Implemeted new driver method IsEnabled()
3681           - Now always resetting paint pending tracking vars when we start paint
3682           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3683         * XplatUIOSX.cs: Added IsEnabled method stub
3684         * XplatUIWin32.cs: Implemented new IsEnabled() method
3685
3686 2006-01-11  Jackson Harper  <jackson@ximian.com>
3687
3688         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3689         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3690         variables a little.
3691         * ColorDialog.cs: Clear out the old form before adding the new
3692         panel.  
3693
3694 2006-01-11  Jackson Harper  <jackson@ximian.com>
3695
3696         * X11Dnd.cs: Make sure to add all the text formats when adding
3697         strings to the data object.
3698         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3699         do some redrawing too.  Also change the UpdateNode to an
3700         UpdateBelow so the newly added node gets painted.
3701         
3702 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3703
3704         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3705         LinkLabel.cs, PropertyGrid.cs: Implement the
3706         UseCompatibleTextRendering property for 2.x
3707
3708         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3709
3710 2006-01-11  Jackson Harper  <jackson@ximian.com>
3711
3712         * TreeView.cs: Use the property for setting the selected node so
3713         the correct events get raised.
3714         * TreeNode.cs: Update the tree when the fore/back colours of a
3715         node are set.
3716
3717 2006-01-10  Jackson Harper  <jackson@ximian.com>
3718
3719         * TreeView.cs: Allow setting SelectedNode to null.
3720
3721 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3722
3723         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3724
3725 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3726
3727         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3728
3729 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3730
3731         * PrintDialog.cs: Added attributes and set default property values.
3732
3733 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3734
3735         * PrintControllerWithStatusDialog.cs: 
3736         Added PrintControllerWithStatusDialog.
3737
3738 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3739
3740         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3741         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3742
3743 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3744
3745         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3746
3747 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3748
3749         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3750         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3751
3752 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3753
3754         * MimeIcon.cs: Added internal class SVGUtil.
3755
3756 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3757
3758         * FileDialog.cs: Don't crash if there are two files with the
3759           same name but different locations.
3760
3761 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3762
3763         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3764         dates across multiple month grids. Used to not highlight entire 
3765         month, but does now.
3766         
3767 2006-01-06  Jackson Harper  <jackson@ximian.com>
3768
3769         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3770         message loop. Change timer intervals to numbers that seem more
3771         natural.
3772
3773 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3774
3775         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3776           object for location info since screen object is now implemented.
3777
3778 2006-01-05  Jackson Harper  <jackson@ximian.com>
3779
3780         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3781         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3782         AsyncMethodResult, this is because we ALWAYS want the
3783         ManualResetEvent to get set.
3784         * Control.cs: When disposing use an async invoke to call shutdown
3785         code, so that thigns don't block on the finalizer thread.  Also
3786         check if we even have a message loop before trying to send
3787         messages, if we don't then don't bother sending messages.
3788         - No more weak references for async methods
3789         * XplatUIDriver.cs: No more weak references for async methods.
3790
3791 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3792
3793         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3794           returns two FontFamily with the same name
3795
3796 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3797
3798         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3799           drawing disabled text. Instead using the ColorGrayText color
3800
3801 2006-01-04  Jackson Harper  <jackson@ximian.com>
3802
3803         * TreeNode.cs: redraw the node when its image index is changed.
3804
3805 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3806
3807         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3808           time I checked there are no others like it.
3809
3810 2006-01-04  Jackson Harper  <jackson@ximian.com>
3811
3812         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3813         this gives the behavoir I was looking for.
3814         * Control.cs: Special case Invoking EventHandlers, this matches MS
3815         and fixes part of bug #76326.
3816
3817 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3818
3819         * ThemeClearlooks.cs, FileDialog.cs:
3820           - Reflect the latest Theme class changes
3821           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3822             with DateTime
3823             
3824 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3825
3826         * Theme.cs: Cache UI resource images and resize them if needed
3827
3828 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3829
3830         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3831           is called. This fixes the crash in Nexxia when setting the font
3832           attributes in the chat. [However, RTF needs a look-over to make sure
3833           that all SelectionXXX methods handle the special case that selection
3834           is empty and therefore the change must be applied to all text starting
3835           at the cursor/selection start]
3836
3837 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3838
3839         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3840           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3841         * X11Keyboard.cs: Switched to new way of calling PostMessage
3842
3843 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3844
3845         * Theme.cs: Added theme interface for images to allow the theme to
3846           control what images are used for things like FileDialog, MessageBox
3847           icons, etc.
3848         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3849
3850 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3851
3852         * FileDialog.cs:
3853           - Removed some dead code
3854           - Opening a recently used file does work now
3855           - Small UI enhancements
3856           - Refactoring
3857
3858 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3859
3860         * FileDialog.cs: Forgot too add __MonoCS__
3861
3862 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3863
3864         * FileDialog.cs: We are able to read recently used files now let's
3865           go on and write them.
3866
3867 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3868
3869         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3870           button
3871         * MimeIcon.cs: Do a check for the top level media type also
3872
3873 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3874
3875         * ThemeClearlooks.cs:
3876           - Added CPDrawStringDisabled
3877           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3878             some chars if the text doesn't fit into text_rect
3879           - DrawListViewItem: If View = View.LargeIcon center the image;
3880             rewrote the drawing of ListViewItem.Text if View = 
3881             View.LargeIcon
3882
3883 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3884
3885         * MimeIcon.cs: Use default KDE icon theme if there is no
3886           "48x48" directory for the current icon theme, fixes #77114
3887         * Mime.cs: Disable not working and actually not used code. 
3888         * ThemeWin32Classic.cs:
3889           - Replace "new SolidBrush" in GetControlBackBrush and
3890             GetControlForeBrush with ResPool.GetSolidBrush
3891           - Changed DrawListViewItem from private to protected virtual
3892         * FileDialog.cs:
3893           - Added form.MaximizeBox = true
3894           - Don't throw an exception if there is a broken symbolic link
3895
3896 2005-12-23  Jackson Harper  <jackson@ximian.com>
3897
3898         * TabControl.cs: Give the panels focus, keyboard navigation is
3899         fixed so this works correctly now.
3900         - We need these key events also.
3901         * ToolBar.cs: Remove some of the poor mans double buffering.
3902         
3903 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3904
3905         * ComboBox.cs: The internal TextBox now returns the focus.
3906
3907 2005-12-23  Jackson Harper  <jackson@ximian.com>
3908
3909         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3910
3911 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3912
3913         * Control.cs: Removed debug code
3914         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3915           implicit children
3916
3917 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3918
3919         * Control.cs: When creating the control, update the Z-order after
3920           all it's children are created, too. (Fixes nexxia not showing
3921           picturebox bug)
3922
3923 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3924
3925         * Control.cs: Do not update the anchoring distances if layout is
3926           suspended, instead do it once layout is resumed
3927
3928 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3929
3930         * Control.cs: 
3931           - After many hours of debugging, for both Jackson and
3932             myself, it turns out that it helps to set the parent of a control
3933             if you want to actually see it onscreen. In the spirit of that
3934             discovery, we're now setting the parent of the control and
3935             it's children when the control's handle is created. This fix
3936             will make Lutz Roeder's Reflector run happily. 
3937           - now just creating the handle instead of the whole control when
3938             getting a graphics context for the control.
3939
3940 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3941
3942         * ScrollableControl.cs: When calculating the canvas, don't consider
3943           the scrollbar widths. Instead, predict if horizontal scrollbar
3944           will affect canvas when deciding on vertical display and vice versa.
3945
3946 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3947
3948         * RichTextBox.cs: Set default RTF font for documents that don't
3949           have a font table (Fixes #77076)
3950
3951 2005-12-22  Jackson Harper  <jackson@ximian.com>
3952
3953         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3954         clipboard. This prevents a NullRef in that case.
3955         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3956         clipboard. PRIMARY is for the currently selected text only. (We
3957         should implement PRIMARY at some point.
3958
3959 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3960
3961         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
3962           a Unicode function with a structure that was defined in Ansi way.
3963           This fixes #76942.
3964
3965 2005-12-21  Jackson Harper  <jackson@ximian.com>
3966
3967         * StatusBar.cs: Statusbar handles its fore/back colours on it's
3968         on. Because thats how it rolls. (and this avoids it using ambient
3969         colours).
3970         * ThemeWin32Classic.cs: Use the proper back color for filling.
3971         * Menu.cs: Use the system menu bar color for drawing menu
3972         bars. Using the window back color will bring ambient colours into
3973         the picture.
3974
3975 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
3976
3977         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
3978           Bitmaps were created and not disposed.
3979
3980 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3981
3982         * Control.cs (CreateControl): Don't do anything if the control is
3983           already created, otherwise we'd fire the OnCreated event more than
3984           once
3985
3986 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3987
3988         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
3989           will always match. Instead return -1. Fixes #76464.
3990
3991 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
3992
3993         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
3994           neither the beginning nor the end of the line (Fixes bug #76479)
3995
3996 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
3997
3998         * Control.cs:
3999           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4000             where handle is invalid
4001           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4002             instead of slower linear search
4003         * NativeWindow.cs: Don't remove the window from the hashtable until
4004           after the driver has destroyed it (since the driver might use
4005           Control.FromHandle to lookup the control object
4006         * Hwnd.cs: Added DestroyPending property to track if a window is 
4007           already destroyed as far as the driver is concerned and only hasn't
4008           yet notified the control
4009         * XplatUIX11.cs:
4010           - Activate(): Check if the window is still valid before using the 
4011             handle
4012           - Implemented DestroyChildWindow() method to mark child windows as
4013             destroyed when a window is destroyed. This prevents situations 
4014             where we might call an X method based on queued events for a
4015             window that already has been destroyed but we haven't yet pulled
4016             the destroy method from the queue.
4017           - Added a call to the new DestroyChildWindow() method to the drivers
4018             DestroyWindow code. Also now marking the destroyed window itself
4019             as pending
4020
4021 2005-12-20  Jackson Harper  <jackson@ximian.com>
4022
4023         * StatusBar.cs:
4024         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4025         anymore. Just do them when needed, also track the rects of panels
4026         so that we can optimize refreshing more in the future.
4027
4028 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4029
4030         * ColorDialog.cs: Fixed focus drawing in small color controls
4031
4032 2005-12-19  Jackson Harper  <jackson@ximian.com>
4033
4034         * InternalWindowManager.cs:
4035         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4036         moving windows works properly.
4037
4038 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4039
4040         * Control.cs: 
4041           - Removed call to InitLayout() from SetBoundsCore(); doc says
4042             it's only called when a control is added to a container
4043           - Split InitLayout logic, moved to separate UpdateDistances() method
4044             since we need to perform those calculations more often than just
4045             when adding the control to a container. (Needed to fix #77022)
4046           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4047           - Reduced the OnBindingContextChanged events count, don't send them
4048             unless the control is created, we still aren't totally matching
4049             MS, but I can't quite figure out some of their rules
4050
4051 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4052
4053         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4054           stripes
4055
4056 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4057
4058         * ThemeClearlooks.cs:
4059           - Updated ProgressBar drawing
4060           - Corrected drawing of ScrollBars and scroll buttons
4061           - Some temporary fixes for minor pixel artefacts
4062
4063 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4064
4065         * Control.cs:
4066           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4067             cause events to be sent in the same order as MS does.
4068           - Added ChangeParent() method to trigger various OnXXXChanged events
4069             that need to be fired when a parent changes (This is a reworking
4070             of the patch from r54254, with the X11 errors fixed)
4071           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4072             since on MS we get OnLayoutChanged events when calling Clear()
4073           - Changed Enabled property to consider parent state as well, if a
4074             parent is not enabled, the control will not be either
4075           - Changed Parent property to simply call Controls.Add() since that
4076             now does all the work required, this way we avoid code duplication
4077           - Threw in a few OnBindingsContextChanged calls to try and match
4078             when MS sends them. We seem to send a few too many, though.
4079           - Added call to CreateControl when adding the control to a parent.
4080             We were never calling CreateControl. Still needs some work, in
4081             some places we treat HandleCreated and ControlCreated as equal, 
4082             which is wrong
4083           - Removed obsolete commented out code from UpdateZOrder()
4084
4085 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4086
4087         * ThemeClearlooks.cs: Updated TrackBar drawing.
4088
4089 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4090
4091         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4092
4093 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4094
4095         * FileDialog.cs: Add the Help button and the open readonly
4096           checkbox only if needed
4097
4098 2005-12-16  Jackson Harper  <jackson@ximian.com>
4099
4100         * Control.cs: Make sure we have an active menu before trying to
4101         process commands on it. Prevents menu-less forms from crashing
4102         when Alt is pressed.
4103         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4104         Dieter Bremes.
4105         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4106         2.0 build.
4107
4108 2005-12-16  Jackson Harper  <jackson@ximian.com>
4109
4110         * InternalWindowManager.cs: Don't translate tool windows screen
4111         coordinates. This fixes windows 'bouncing' around when being moved.
4112
4113 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4114
4115         * TextBoxBase.cs:
4116           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4117             not quite MS compatible, MS uses that number only for single line
4118             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4119             the limit at 2GB)
4120           - Now enforcing the MaxLength limit when entering characters
4121           - Added argument to internal Paste() method to track if it's called
4122             from programatically or via keyboard, since keyboard driven pastes
4123             need to enforce max-length
4124           - Added logic to Paste to only paste as many chars as MaxLength 
4125             allows
4126         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4127         * TextControl.cs:
4128           - Added Length property to return number of characters in document
4129           - Added private CharCount property which only tracks actual chars
4130             in the document (no linefeeds) and fires event when CharCount
4131             changes
4132           - Added tracking of character count to all methods that alter it
4133           - Added LengthChanged event to allow applications to subscribe
4134             to any changes to the document
4135
4136 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4137
4138         * TextBox.cs: 
4139           - Removed local password_char field (moved to TextBoxBase)
4140           - Now setting the document's password var when password is
4141             set
4142         * TextBoxBase.cs:
4143           - Added password_char field (needed here so MultiLine can
4144             access it)
4145           - Added logic to MultiLine property setter to set the document's
4146             variable when password display is allowed
4147           - Removed debug code and made some debug code conditional
4148         * TextControl.cs:
4149           - Added RecalculatePasswordLine() method to handle special password
4150             char only lines
4151           - Added PasswordChar property, also added related tracking vars
4152           - Draw() method now uses local text var for grabbing text to draw,
4153             this var is set to line.text unless we're doing password display,
4154             then it is set to the pre-generated all-password-chars line
4155           - Added calling RecalculatePasswordLine() method for password lines
4156
4157 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4158
4159         * Hwnd.cs: 
4160           - Added Reparented property to allow tracking of Window Manager
4161             reparenting actions (which affect X/Y calculations of toplevel 
4162             windows)
4163           - Made ToString() print window handles in hex
4164         * XplatUIX11.cs:
4165           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4166             determine if X/Y needs offsetting
4167           - AddConfigureNotify(): Fixed offset calculations
4168           - Now adds ReparentNotify messages into the queue
4169           - Now processes ReparentNotify messages and causes a 
4170             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4171             is reparented (as most likely it's X/Y coordinates are changed
4172             due to that)
4173
4174 2005-12-14  Jackson Harper  <jackson@ximian.com>
4175
4176         * XplatUIX11.cs: Tool windows still need to respek focus.
4177
4178 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4179
4180         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4181           have a working release
4182
4183 2005-12-13  Jackson Harper  <jackson@ximian.com>
4184
4185         * Form.cs: Update styles after setting the border style regardless
4186         of whether or not the window is using a window manager.
4187
4188 2005-12-13  Jackson Harper  <jackson@ximian.com>
4189
4190         * Form.cs: We now hook into an internal window manager instead of just an
4191         MDI subsystem, this is so we can have properly behaving tool windows.
4192         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4193         * InternalWindowManager.cs: New internal class that acts as a
4194         window manager for tool windows and as a base for mdi windows.
4195         * MdiWindowManager.cs: New class that acts as a window manager for
4196         mdi windows.
4197
4198 2005-12-12  Jackson Harper  <jackson@ximian.com>
4199
4200         * Control.cs: Updates so we match behavoir for for implicit
4201         controls. Fixes explosions in MDI.
4202
4203 2005-12-12  Jackson Harper  <jackson@ximian.com>
4204
4205         * Control.cs: Implement Invalidate (Region).
4206
4207 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4208
4209         * Control.cs: 
4210           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4211             the same events as MS does. MS fires events for each property 
4212             except, for unknown reasons, Cursor, when the control is reparented. 
4213             I can't seem to totally match add/remove since MS also fires some 
4214             VisibleChanged events, which makes no sense. Consolidated the
4215             parenting code into a separate method so it can be called from
4216             both Add and Remove. set_Parent no longer needs any special logic
4217             as it calls the parent's add method which implicitly fires
4218             all events
4219           - Removed some obsolete code and debug output
4220           - Enabled state is inherited from parents, if this is enabled
4221
4222 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4223
4224         * Form.cs: Removed commented out code
4225
4226 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4227
4228         * Control.cs:
4229           - Added internal version of Invoke, with additional argument 
4230             indicating if we're calling it from a Dispose() handler. That
4231             way we can avoid BeginInvoke throwing an exception if we're
4232             calling for an already destroyed window.
4233           - Added a dispose argument to BeginInvokeInternal, and made the
4234             check if a valid window handle chain exists conditional on
4235             it not being a dispose call
4236           - Removed code in DestroyHandle to destroy our children. Since we
4237             now handle the WM_DESTROY message we will catch all our children
4238             being destroyed.
4239           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4240         * Form.cs:
4241           - Added a field to track the application context of the form.
4242           - No need to set closing variable as response to WM_CLOSE, instead
4243             we destroy the window. We also call PostQuitMessage if the form
4244             has an application context (which makes it the main app form,
4245             which, when closed terminates the app)
4246         * XplatUI.cs:
4247           - Dropped Exit() method, it's naming was confusing
4248           - Added PostQuitMessage() which causes GetMessage to return false
4249             once the message queue is empty
4250         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4251           PostQuitMessage()
4252         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4253           no longer a valid XplatUI method, but left it in since it's used
4254           internally. Added empty PostQuitMessage() method.
4255         * MenuAPI.cs: Replaced call to Exit() with call to
4256           PostQuitMessage, even though this is probably no longer needed.
4257         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4258         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4259         * Application.cs:
4260           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4261           - Removed old debug code that would call XplatUI for exception
4262             display, enabled standard exception handling (Still not enabled
4263             though, until NativeWindow's ExternalExceptionHandler define
4264             is removed
4265         * NativeWindow.cs:
4266           - Added internal method to allow control to update NativeWindow
4267             after a window has been destroyed
4268           - Added handling of already destroyed windows when calling i
4269             DestroyWindow
4270           - Added removal of handle from list on ReleaseHandle
4271         * XplatUIX11.cs:
4272           - Dropped GetMessageResult var and related code
4273           - Added PostQuitState to field to track if PostQuitMessage has been
4274             called
4275           - Dropped Exit() method
4276           - Added PostQuitMessage() method
4277           - GetMessage now will return false if PostQuitState is set and no
4278             more messages are in the queue.
4279           - Expose handler will no longer generate WM_PAINT messages if we are
4280             in PostQuitState since it's very likely any windows have already
4281             been destroyed, and since Hwnd won't get updated until we have
4282             processed the DestroyNotify we'd be causing X errors.
4283         
4284 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4285
4286         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4287           Thanks to Mike for pointing out the err of my ways.
4288
4289 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4290
4291         * Control.cs(PreProcessMessage): Moved menu handling back, but
4292           after all other key handling, to match MS (who handles Menu in
4293           DefWndProc)
4294         * Menu.cs (WndProc): Removed my brainfart
4295
4296 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4297
4298         * Control.cs(PreProcessMessage): Removed special menu handling 
4299         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4300
4301 2005-12-07  Mike Kestner  <mkestner@novell.com>
4302
4303         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4304         state according in tracker.
4305         * Menu.cs : promote tracker field to base class and provide a tracker
4306         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4307         has a tracker. Unparent items that are removed from the collection.
4308         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4309         * Theme*.cs: add always_show_hotkeys field to support configurability
4310         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4311         pressed.
4312
4313 2005-12-07  Jackson Harper  <jackson@ximian.com>
4314
4315         * MdiChildContext.cs: Use Control.ResetCursor.
4316         * Control.cs: ResetCursor needs to set the property so that the
4317         correct XplatUI call gets made.
4318
4319 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4320
4321         * Control.cs: More fixes to make our key events match MS. We
4322           were not setting the modifier state on KeyData, and we were
4323           not generating any events when Alt was pressed with a key
4324           since handling of WM_SYSxxx was missing for the OnKey methods.
4325
4326 2005-12-07  Jackson Harper  <jackson@ximian.com>
4327
4328         * MdiChildContext.cs: reenable the sizing code.
4329         - When the mouse leaves a window reset its cursor.
4330
4331 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4332
4333         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4334
4335 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4336
4337         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4338           widths of Fixed3D borders
4339
4340 2005-12-07  Jackson Harper  <jackson@ximian.com>
4341
4342         * MdiClient.cs: Fix warnings. Earn Mike's love.
4343
4344 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4345
4346         * ThemeClearlooks.cs:
4347           - Adjusted mouse over button color
4348           - Added first parts of CheckBox drawing
4349           - Added correct color for selected text background
4350           - Fixed ComboBox drawing
4351           - Added CPDrawBorder3D and CPDrawBorder
4352
4353 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4354
4355         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4356
4357 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4358
4359         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4360           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4361           alert users via sound. We could add an enum arg with different
4362           types of alerts in the future
4363
4364 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4365
4366         * Control.cs: Fix behaviour problems pointed out by Mike
4367
4368 2005-12-05  Mike Kestner  <mkestner@novell.com>
4369
4370         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4371         prop setters.  Calls parent.Refresh for now, but could be maybe be
4372         optimized with an internal method on StatusBar at some point.
4373         [Fixes #76513]
4374
4375 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4376
4377         * RichTextBox.cs: Implemented get_SelectionColor
4378
4379 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4380
4381         * ThemeClearlooks.cs:
4382           - Removed dead code
4383           - Draw black button border only if button is Form.AcceptButton
4384           - Draw correct button color for pressed RadioButton if the mouse 
4385             has entered the button
4386           - Updated ProgressBar drawing!
4387           - Updated CPDrawSizeGrip drawing
4388           - Updated StatusBarPanel drawing
4389
4390 2005-12-05  Mike Kestner  <mkestner@novell.com>
4391
4392         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4393         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4394
4395 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4396
4397         * ThemeClearlooks.cs: Initial check-in, activate with
4398           export MONO_THEME=clearlooks
4399         * ThemeEngine.cs: Added ThemeClearlooks
4400
4401 2005-12-03  Mike Kestner  <mkestner@novell.com>
4402
4403         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4404         [Fixes #76897]
4405
4406 2005-12-02  Jackson Harper  <jackson@ximian.com>
4407
4408         * Form.cs: If the child form has no menu the default main menu is
4409         used as the active menu.
4410
4411 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4412
4413         * ListBox.cs: Check if any items exist before trying to resolve 
4414           coordinates into items
4415
4416 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4417
4418         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4419           as the second color for the background hatch
4420
4421 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4422
4423         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4424         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4425           sure that what we pass to FormatText is always 1-based. Fixes #76885
4426
4427 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4428
4429         * NumericUpDown.cs (EndInit): When we are done initializing,
4430         reflect any updates on the UI.
4431
4432 2005-12-02  Jackson Harper  <jackson@ximian.com>
4433
4434         * ImplicitHScrollBar.cs:
4435         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4436         their container controls.
4437         * TreeView.cs: Use the new implicit scrollbars.
4438
4439 2005-12-02  Jackson Harper  <jackson@ximian.com>
4440
4441         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4442         can play with it.
4443         * TreeNodeCollection.cs: If we remove the topnode we need to
4444         update topnode to the next node in line.
4445         - When clearing nodes go through the same process as removing
4446         them, so they get depareneted and checked if they are top node.
4447
4448 2005-12-01  Jackson Harper  <jackson@ximian.com>
4449
4450         * TreeView.cs: When imagelists are used the image area is
4451         selectable as well as the text.
4452         - If there are no selected nodes select the first one.
4453         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4454         so don't do it more then we need to.
4455
4456 2005-12-01  Jackson Harper  <jackson@ximian.com>
4457
4458         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4459         that arrows can be scaled.
4460
4461 2005-12-01  Jackson Harper  <jackson@ximian.com>
4462
4463         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4464         fail. Patch by Dieter Bremes
4465
4466 2005-11-30  Jackson Harper  <jackson@ximian.com>
4467
4468         * Form.cs: Property is 2.0 only
4469         * PrintDialog.cs: Signature fix.
4470
4471 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4472
4473         * TextControl.cs: 
4474           - No longer artificially moves text 2 pixels down (now that we have
4475             borders this is no longer needed)
4476           - Added calcs for left, hanging and right indent
4477
4478 2005-11-23  Mike Kestner  <mkestner@novell.com>
4479
4480         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4481
4482 2005-11-30  Jackson Harper  <jackson@ximian.com>
4483
4484         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4485         get cloned as part of CloneMenu ().
4486         * Menu.cs: Make sure the parent of the items get set correctly
4487         when they are added.  And the owners are notified of the changes.
4488         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4489         we can change the menu being displayed/handled by the form without
4490         changing the menu assosciated with the form.
4491         - Don't let Mdi children draw/handle menus.
4492         
4493 2005-11-30  Jackson Harper  <jackson@ximian.com>
4494
4495         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4496         a MenuChanged event. Just to make the API a little more
4497         consistent.
4498         * MainMenu.cs:
4499         * MenuItem.cs: Use the new OnMenuChanged
4500         * MdiChildContext.cs: Handle menu merging.
4501         * Form.cs: Implement MergedMenu.
4502         
4503 2005-11-30  Jackson Harper  <jackson@ximian.com>
4504
4505         * Menu.cs: We were misusing Add. Add goes behind the specified
4506         index according to the docs, and does not replace the specified
4507         index. So I added an Insert method.
4508
4509 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4510
4511         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4512           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4513           is for Jackson
4514         * RichTextBox.cs: Added calls to base for DnD events
4515
4516 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4517
4518         * TextControl.cs:
4519           - Fixed drag-selection related crash; style fixes
4520           - Implemented undo class
4521             o Implemented method to capture document state for specified
4522               range in document tree
4523             o Implemented method to restore captured document state
4524             o Implemented cursor tracking
4525             o Implemented basic undo stack
4526           - Added undo cursor tracking to methods altering cursor location
4527           - Added undo tracking to selection deletion (still missing
4528             other text-altering hookups)
4529         * RichTextBox.cs:
4530           - Added SelectionLength property
4531           - Implemented CanPaste()
4532           - Implemented Paste()
4533           - Added missing protected methods
4534           - Fixed RTF->Document conversion; now uses font index 0 and color 
4535             index 0 as the default font for the parsed text
4536           - Fixed RTF<->Document font size translation
4537           - Fixed RTF generation, now properly handles cross-tag boundaries
4538             for single line selection
4539           - No longer always appends blank line to generated RTF
4540           - Removed TODOs
4541           - Added missing attributes
4542           - Hooked up undo-related methods
4543         * TextBoxBase.cs:
4544           - Implemented Copy()
4545           - Implemented Paste()
4546           - Implemented Cut()
4547           - Fixed caret mis-behaviour on backspace across line-boundaries
4548
4549 2005-11-29  Jackson Harper  <jackson@ximian.com>
4550
4551         * MdiClient.cs: Add a method for activating mdi children. Very
4552         basic right now. I imagine someday it might need more girth.
4553         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4554         children windows names are added to the menu item.
4555         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4556         mdilist. This happens regardless of whether or not there are any
4557         mdi windows to see in the list, and according to my tests happens
4558         before the items are even added. Also happens if there isn't even
4559         an mdi client to get windows from.
4560
4561 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4562
4563         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4564         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4565
4566 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4567
4568         * DataGridTableStyle.cs:
4569           - Create always the styles for the missing columns even if they are
4570             provided by the user (not default table style)
4571         * DataGrid.cs:
4572           - Fixes bug 76770
4573           - Fixes SetDataBinding (always re-attach source)
4574           - Fixes SetNewDataSource (only clear styles if they are not for 
4575             this source)
4576          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4577             and remove properly
4578
4579 2005-11-29  Jackson Harper  <jackson@ximian.com>
4580
4581         * FileDialog.cs: Implement missing bits, remove some dead
4582         code.
4583         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4584         creation of the panel so that the options set on the dialog are
4585         seen when the panel is created.
4586         * TreeView.cs: raise a click when items are clicked.
4587         
4588 2005-11-29  Jackson Harper  <jackson@ximian.com>
4589
4590         * MdiClient.cs: Pass some signature methods through to base.
4591
4592 2005-11-28  Jackson Harper  <jackson@ximian.com>
4593
4594         * ListView.cs: Raise the click event when items are clicked.
4595
4596 2005-11-28  Jackson Harper  <jackson@ximian.com>
4597
4598         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4599         a nullref.
4600
4601 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4602
4603         * ThemeNice.cs: - Removed 1 pixel bitmaps
4604           - Use SmoothingMode.AntiAlias where it makes sense
4605             (ScrollButton arrow for example)
4606           - Enhanced Button focus drawing
4607           - Fixed ComboBox drawing (no artefacts anymore, focus
4608             rectangle is back again, reduced size of ComboButton, etc.)
4609           - Fixed RadioButton focus drawing for Appearence.Button
4610           - Slight ScrollButton redesign
4611           - Some LinearGradientBrush size fixes
4612           - GroupBoxes have now rounded edges
4613           - Fixed StatusBar drawing
4614
4615 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4616
4617         * ThemeNice.cs: - Remove dead code
4618           - use correct background colors for menus, etc.
4619           - Fake pixel drawing with 1 pixel bitmaps
4620
4621 2005-11-24  Jackson Harper  <jackson@ximian.com>
4622
4623         * MdiClient.cs: Size the scrollbars when resizing the window.
4624         - Resize the maximized windows when the client is resized
4625         * Form.cs: Make the child context available
4626         
4627 2005-11-23  Jackson Harper  <jackson@ximian.com>
4628
4629         * MdiChildContext.cs: Don't size windows if they are maximized.
4630
4631 2005-11-23  Mike Kestner  <mkestner@novell.com>
4632
4633         * ContextMenu.cs: use MenuTracker.
4634         * Control.cs: remove menu handle usage.
4635         * Form.cs: remove menu handle usage.
4636         * Hwnd.cs: remove menu handle usage.
4637         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4638         motion and clicks to the new Tracker handlers.
4639         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4640         and handle usage.
4641         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4642         Killed the MENU and MENUITEM data types and associated collections
4643         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4644         MenuTracker class that exposes the leftovers from the old MenuAPI
4645         static methods. Restructured Capture handling so that only one grab is
4646         done for the entire menu hierarchy instead of handing off grabs to
4647         submenus. Tracker now has an invisible control to Capture when active.
4648         * MenuItem.cs: add sizing accessors, kill Create
4649         and handle usage.
4650         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4651         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4652         MENU(ITEM). remove menu handle usage, use Menu directly.
4653         * XplatUIDriver.cs: remove menu handle usage.
4654         * XplatUIOSX.cs: remove menu handle usage.
4655         * XplatUIWin32.cs: remove menu handle usage.
4656         * XplatUIX11.cs: remove menu handle usage.
4657
4658 2005-11-22  Jackson Harper  <jackson@ximian.com>
4659
4660         * Hwnd.cs: Don't compute the menu size for
4661         DefaultClientRectangle.
4662         - Reenable menu sizes being computed for GetClienRectangle.
4663         * Form.cs: Remove comment of trechery
4664         
4665 2005-11-22  Jackson Harper  <jackson@ximian.com>
4666
4667         * Hwnd.cs: The adjustments for the menu bar are made when it is
4668         attached to the form.
4669
4670 2005-11-19  Jackson Harper  <jackson@ximian.com>
4671
4672         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4673         (just like on windows).
4674
4675 2005-11-19  Jackson Harper  <jackson@ximian.com>
4676
4677         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4678         use real buttons anymore because they are in non client area. The
4679         one TODO here is that I need to somehow invalidate a section of
4680         the non client area.
4681
4682 2005-11-18  Jackson Harper  <jackson@ximian.com>
4683
4684         * Control.cs: Put the enum check back in now that MDI doesnt have
4685         to use this to set border styles.
4686         * Form.cs: Only set mdi child windows borders if the handle has
4687         been created.
4688         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4689         this directly on to the driver.
4690         - Get the move start position before adjusting for the titlebar
4691         height, this fixes the windows "skipping" when they are first
4692         moved.
4693
4694 2005-11-18  Jackson Harper  <jackson@ximian.com>
4695
4696         * XplatUIX11.cs: Just compute the mdi borders separately as they
4697         don't totally match up with normal form borders.
4698
4699 2005-11-18  Jackson Harper  <jackson@ximian.com>
4700
4701         * Control.cs: Set WS_ styles for borders, so that the driver does
4702         not have to retrieve the control instance to figure out what kind
4703         of borders it should have.
4704         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4705         driver can know its an mdi child easily.
4706         * XplatUIX11.cs: Get the border styles and whether the window is
4707         MDI from the Styles and ExStyles params instead of having to get a
4708         control. This prevents a chicken and egg problem.       
4709
4710 2005-11-18  Jackson Harper  <jackson@ximian.com>
4711
4712         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4713
4714 2005-11-18  Jackson Harper  <jackson@ximian.com>
4715
4716         * MdiClient.cs: Calculate when to add and remove scrollbars
4717         correctly.
4718         * MdiChildContext.cs: Adjust the y position to take the titlebar
4719         into account.
4720         - No height for FormBorderStyle.None
4721
4722 2005-11-18  Jackson Harper  <jackson@ximian.com>
4723
4724         * Control.cs: Allow non enum values to be used for
4725         InternalBorderStyle.  MDI does this to set a special border style.
4726         - New utility methods for converting points to/from client coords
4727         - Add the newly created control to the Controls collection before
4728         updating its style. This way UpdateStyle can walk the control
4729         heirarchy to find the control if needed.
4730         so I don't need to create a new Point object all the time.
4731         * Form.cs: Let MDI windows handle their border styles.
4732         - Set styles on MDI windows so the correct title style is derived.
4733         * MdiChildContext.cs: Move all the painting and window handling
4734         into the non client area.
4735         - Use correct sizing and put correct buttons on frames based on
4736         the FormBorderStyle.
4737         - Notify the mdi client about scrolling
4738         - Need to handle the buttons ourselves now, because they are all
4739         in non client areas and we can't add controls there.
4740         * MdiClient.cs: Halfway to scrolling, this implementation is
4741         somewhat broken though, we need to check to make sure other
4742         windows aren't causing scrolling before removing the bars. Also
4743         the bars need to be drawn on top, maybe I can switch implicit
4744         controls to be on top.
4745         * Hwnd.cs: caption_height and tool_caption_height are now
4746         properties of an hwnd, this way they can be set by the driver
4747         based on the type of window they are.  In X11 the window manager
4748         handles the decorations so caption_height is zero unless its an
4749         MDI window.
4750         - Add 3 pixel borders for MDI windows (0xFFFF).
4751         - Get rid of some code duplication, have DefaultClientRectanle
4752         just call GetClientRectangle.
4753         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4754         Hwnd now.
4755         - Set border styles differently for mdi windows.
4756         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4757         Hwnd now.
4758         
4759 2005-11-15  Mike Kestner  <mkestner@novell.com>
4760
4761         * Menu.cs: when adding an item to the collection, if item is already 
4762         parented, remove it from the parent.
4763
4764 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4765
4766         * X11DesktopColors.cs: Added KDE support
4767
4768 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4769
4770         * XplatUIWin32.cs: 
4771           - Clipboard methods now can translate Rtf format
4772           - No longer removes clipboard contents whenever a new format is added
4773             to allow placing multiple formats on the clipboard
4774         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4775           will place all formats contained in it onto the clipboard. Also
4776           now cleans the clipboard before placing a new object onto it
4777         * RichTextBox.cs:
4778           - Implemented set_Rtf
4779           - Implemented set_SelectedRtf
4780           - Created InsertRTFFromStream() method to allow single code base
4781             for all properties and methods that insert RTF into document
4782           - Removed debug output
4783         * TextControl.cs:
4784           - Fixed Delete(int) to fix up line numbers
4785           - Fixed ReplaceSelection to combine start and end line
4786           - Fixed serious DeleteChars bug that would leave the document tree
4787             broken
4788           - Improved DumpTree with several logic checks to detect broken
4789             document trees
4790           - Removed debug lines
4791           - Fixed Caret.WordForward/WordBack moving code, now always also 
4792             updates caret.tag (fixes crash when word-selecting across tag
4793             boundaries via keyboard)
4794           - Added Insert() method for inserting multiline text into documents
4795           - Fixed DeleteChars() calculation errors that would cause a broken
4796             tag chain with multiple tag lines
4797           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4798           - Split() no longer moves caret if split is at caret location
4799           - ReplaceSelection() now updates the cursor and re-displays it
4800           - ReplaceSelection() now uses new Insert() method to avoid code
4801             duplication
4802           - FormatText() can now handle formatting partial lines
4803         * TextBoxBase.cs:
4804           - Append now uses new TextControl.Insert() method (this avoids 
4805             duplicate code)
4806           - Implemented Ctrl-X (Cut) (
4807           - Implemented Ctrl-C (Copy)
4808           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4809             regeneration when pasting text; roundtripping Copy&Paste within
4810             edit control still fails due to some calculation bugs in GenerateRTF)
4811           - The Delete key will now remove the current selection if it is visible
4812         * TextBox.cs: Removed debug lines
4813         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4814           driver to be initialized and can't therefore be done via a static ctor)
4815
4816 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4817
4818         * TextControl.cs: Added backend code for finding char arrays and strings
4819         * TextBoxBase.cs:
4820           - Added mouse wheel scroll support
4821           - Added support for VScroll and HScroll events
4822         * RichTextBox.cs:
4823           - Implemented all seven Find() variants
4824           - Implemented GetCharFromPosition()
4825           - Implemented GetCharIndexFromPosition()
4826           - Implemented GetLineFromIndex()
4827           - Implemented GetPositionFromCharIndex();
4828           - Implemented SaveFile for PlainText and UnicodeText
4829           - Fixed set_Font, now setting a new font applies that font to
4830             the whole document
4831           - Implemented generic Document to RTF converter
4832           - Implemented SaveFile for RichText format (still missing unicode
4833             conversion for non-ansi chars)
4834           - Implemented get_Rtf
4835           - Implemented get_SelectedRtf
4836
4837 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4838
4839         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4840           to allow any captures to be released before triggering OnClick. This
4841           way a click handler may capture the mouse without interference.
4842         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4843           This way we send them even though X may not allow a grab (if the window
4844           isn't visible, for example)
4845
4846 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4847
4848         * DataGridViewRowEventArgs.cs: DataGridView implementation
4849         * DataGridViewElement.cs: DataGridView implementation
4850         * DataGridViewComboBoxCell.cs: DataGridView implementation
4851         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4852         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4853         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4854         * ImageLayout.cs: DataGridView implementation
4855         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4856         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4857         * DataGridViewSelectionMode.cs: DataGridView implementation
4858         * IDataGridViewEditingControl.cs: DataGridView implementation
4859         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4860         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4861         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4862         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4863         * DataGridViewColumnSortMode.cs: DataGridView implementation
4864         * DataGridView.cs: DataGridView implementation
4865         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4866         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4867         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4868         * Padding.cs: DataGridView implementation
4869         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4870         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4871         * DataGridViewRowEventHandler.cs: DataGridView implementation
4872         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4873         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4874         * DataGridViewButtonCell.cs: DataGridView implementation
4875         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4876         * DataGridViewEditMode.cs: DataGridView implementation
4877         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4878         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4879         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4880         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4881         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4882         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4883         * DataGridViewCellEventHandler.cs: DataGridView implementation
4884         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4885         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4886         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4887         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4888         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4889         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4890         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4891         * QuestionEventArgs.cs: DataGridView implementation
4892         * IDataGridViewEditingCell.cs: DataGridView implementation
4893         * DataGridViewTriState.cs: DataGridView implementation
4894         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4895         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4896         * DataGridViewColumnCollection.cs: DataGridView implementation
4897         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4898         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4899         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4900         * DataGridViewColumn.cs: DataGridView implementation
4901         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4902         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4903         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4904         * DataGridViewRow.cs: DataGridView implementation
4905         * DataGridViewImageCellLayout.cs: DataGridView implementation
4906         * DataGridViewImageCell.cs: DataGridView implementation
4907         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4908         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4909         * DataGridViewHeaderCell.cs: DataGridView implementation
4910         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4911         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4912         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4913         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4914         * QuestionEventHandler.cs: DataGridView implementation
4915         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4916         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4917         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4918         * DataGridViewCell.cs: DataGridView implementation
4919         * DataGridViewCellEventArgs.cs: DataGridView implementation
4920         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4921         * DataGridViewCellStyle.cs: DataGridView implementation
4922         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4923         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4924         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4925         * TextFormatFlags.cs: DataGridView implementation
4926         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4927         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4928         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4929         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4930         * DataGridViewButtonColumn.cs: DataGridView implementation
4931         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4932         * HandledMouseEventArgs.cs: DataGridView implementation
4933         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4934         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4935         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4936         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4937         * DataGridViewRowCollection.cs: DataGridView implementation
4938         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4939         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4940         * DataGridViewHitTestType.cs: DataGridView implementation
4941         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4942         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4943         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4944         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4945         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4946         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4947         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4948         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4949         * DataGridViewContentAlignment.cs: DataGridView implementation
4950         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4951         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4952         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4953         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4954         * DataGridViewPaintParts.cs: DataGridView implementation
4955         * DataGridViewCellCollection.cs: DataGridView implementation
4956         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4957         * DataGridViewImageColumn.cs: DataGridView implementation
4958         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
4959         * DataGridViewElementStates.cs: DataGridView implementation
4960         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
4961         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
4962         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
4963         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
4964         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
4965         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
4966         * DataGridViewRowHeaderCell.cs: DataGridView implementation
4967         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
4968         * DataGridViewTextBoxCell.cs: DataGridView implementation
4969         * DataGridViewBand.cs: DataGridView implementation
4970         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
4971         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
4972         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
4973         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
4974         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
4975         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
4976         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
4977         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
4978         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
4979         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
4980         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
4981
4982 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
4983
4984         * ThemeWin32Classic.cs: 
4985           - Draw the outside focus rectangle around buttons
4986           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
4987             doesn't use end caps for every dash of a line anymore. This
4988             workaround ignores the forecolor.
4989
4990 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
4991
4992         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
4993           endian safe.
4994
4995 2005-11-07  Jackson Harper  <jackson@ximian.com>
4996
4997         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
4998
4999 2005-11-07  Jackson Harper  <jackson@ximian.com>
5000
5001         * ScrollableControl.cs: Calculate the maximum and change vars
5002         (more) correctly so that scrollbars appear as a sensible size.
5003
5004 2005-11-04  Jackson Harper  <jackson@ximian.com>
5005
5006         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5007         collection.
5008         * TreeView.cs: When the tree is sorted null out the top_node so
5009         that it is recalculated.
5010         - Use dotted lines instead of dashed lines to match MS better.
5011
5012 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5013
5014         * ListView.cs: 
5015           - Implements key search for items. Useful when browsing files with FileDialog
5016           - When changing view mode or when clear the items reset scrollbar positions
5017
5018 2005-11-04  Jackson Harper  <jackson@ximian.com>
5019
5020         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5021         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5022         as to what the method may do as there is no real way of creating a
5023         derived CurrencyManager and calling the method. 
5024
5025 2005-11-03  Jackson Harper  <jackson@ximian.com>
5026
5027         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5028         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5029         method which seems to just be used internally to refresh the tabs.
5030
5031 2005-11-03  Jackson Harper  <jackson@ximian.com>
5032
5033         * TabControl.cs: Implement the remove method. Fix some broken
5034         comments.
5035
5036 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5037
5038         * DateTimePicker.cs:
5039           - Added missing DateTimePickerAccessibleObject class
5040           - Added missing events
5041           - Added OnFontChanged method
5042         * Form.cs: Added missing attributes
5043         * TreeView.cs: Added missing attributes
5044
5045 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5046
5047         * GridItemCollection.cs: Fix signatures
5048
5049 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5050
5051         * XplatUI.cs: Updated build rev/date
5052         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5053           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5054         * Application.cs: Trigger context-specific ExitThread events
5055
5056 2005-11-03  Jackson Harper  <jackson@ximian.com>
5057
5058         * Menu.cs:
5059         * MainMenu.cs:
5060         * GridTableStylesCollection.cs:
5061         * Timer.cs:
5062         * TabPage.cs:
5063         * HelpProvider.cs:
5064         * StatusBar.cs:
5065         * MonthCalendar.cs: Signature fixes
5066
5067 2005-11-03  Jackson Harper  <jackson@ximian.com>
5068
5069         * TreeNodeCollection.cs: Remove should not be virtual.
5070         * TreeView.cs: Implement the last of the missing methods.
5071
5072 2005-11-03  Jackson Harper  <jackson@ximian.com>
5073
5074         * TreeNodeConverter.cs: Implement to get off my class-status back.
5075
5076 2005-11-03  Jackson Harper  <jackson@ximian.com>
5077
5078         * TreeView.cs: Hookup the bits for drag and drop.
5079         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5080         that nodes can be moved from tree to tree easily this just causes
5081         all sorts of problems.
5082         * TreeNodeCollection: Don't need to give treenodes an index and
5083         treeview anymore when they are added, these are computed on the
5084         fly. Also make sure to remove a node before its added.
5085
5086 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5087
5088         * TextControl.cs:
5089           - Added CaretSelection enum
5090           - Added comparison methods to Marker struct, makes selection code
5091             more readable
5092           - Added SelectionStart and SelectionEnd as 'moveable' location for
5093             the CaretDirection enum and handler
5094           - Added selection_prev variable to track optimized invalidation for
5095             word and line selection
5096           - Added SelectionVisible property (returns true if there is a valid 
5097             selection)
5098           - Switched CaretHasFocus to only display the caret if there is no
5099             visible selection
5100           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5101             using the direct character index; should be much faster
5102           - Added various conditional debug statements
5103           - Fixed invalidation calculation for selection ranges
5104           - Added ExpandSelection() method to support word and line selection
5105           - Switched SetSelectionToCaret to use new Marker compare overloads
5106           - Added central IsWordSeparator() method to determine word 
5107             separators/whitespace and FindWordSeparator() to streamline common
5108             usage of IsWordSeparator()
5109         * TextBoxBase.cs:
5110           - Removed unneeded grabbed variable, it was just mirroring
5111             Control.Capture
5112           - No longer firing OnTextChanged event when Text setter is called,
5113             since the base will fire the event for us
5114           - Added handling of Ctrl-Up/Down selection
5115           - Added handling of Shift-Cursorkey selection
5116           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5117             words
5118           - Added handling of Shift and Ctrl-Shift-Home/End selection
5119           - Removed some debug output
5120           - Added handling for single/double/tripple-click to place caret/
5121             select word/select line respectively (Fixes bug #76031)
5122           - Added support for drag expansion of word/line selection
5123         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5124           current selection
5125
5126 2005-11-02  Jackson Harper  <jackson@ximian.com>
5127
5128         * X11Dnd.cs: If the drag is going to and from a MWF window just
5129         copy the data instead of sending it out through the X Selection
5130         mechanism.
5131
5132 2005-11-02  Jackson Harper  <jackson@ximian.com>
5133
5134         * X11Dnd.cs:
5135         * XplatUIX11.cs: When in a drag we don't want motion notify
5136         messages to get passed on to the other controls. This prevents
5137         mouse move messages from showing up in the drag source.
5138
5139 2005-11-02  Jackson Harper  <jackson@ximian.com>
5140
5141         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5142         the correct button is release to end a drag.
5143         * XplatUIX11.cs: Make the button state internal so the drag system
5144         can access it.  Dragging needs to know about all button releases,
5145         not just left button.
5146
5147 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5148
5149         * Form.cs (Icon): If the icon is null, reset the icon to the
5150         default value. 
5151
5152         * Cursor.cs: When writing the AND-mask bitmap do not include the
5153         number of colors, but hardcode those to two (black and white),
5154         fixes the loading of color cursors (Paint Dot Net).
5155
5156         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5157         turn off autoscaling.
5158
5159         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5160
5161 2005-11-02  Jackson Harper  <jackson@ximian.com>
5162
5163         * X11Dnd.cs: Make sure to send a status message if the pointer
5164         enters a control that can not accept a drop, otherwise the cursor
5165         isn't updated correctly. Also tried to compress the lines of code
5166         a bit.
5167
5168 2005-11-02  Jackson Harper  <jackson@ximian.com>
5169
5170         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5171         set actions correctly.  This isn't perfect as XDND and win32 have
5172         some differences on how you allow actions. I'll clear this up by
5173         adding a path for drag from MWF to MWF windows.
5174         * XplatUIX11.cs: Hook into the dnd system.
5175
5176 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5177
5178         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5179         previously shown but they are no longer need it. Very obvious when 
5180         browsing files with FileDialog.
5181
5182 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5183
5184         * Control.cs: We always need to call OnPaintBackground. We pretty much
5185           ignore AllPaintingInWmPaint and always do the painting there, whether 
5186           it's set or not, since we always ignore the WM_ERASEBKGND message 
5187           (which we don't generate on X11). This fixes #76616.
5188         * Panel.cs: Removed unneeded background painting. This happens properly
5189           in Control.cs already
5190
5191 2005-10-31  Mike Kestner  <mkestner@novell.com>
5192
5193         * Menu.cs: Add items to collection before setting their index.
5194         * MenuItem.cs : add range checking with ArgumentException like MS.
5195         [Fixes #76510]
5196
5197 2005-10-31  Jackson Harper  <jackson@ximian.com>
5198
5199         * ListBox.cs: Invalidate if the area is visible at all not just
5200         contained in the visible rect. Fixes unselection of semi visible
5201         items.
5202
5203 2005-10-31  Jackson Harper  <jackson@ximian.com>
5204
5205         * Control.cs: Consistently name the dnd methods. Make them
5206         internal so we can override them to match some MS behavoir
5207         internally.
5208         * Win32DnD.cs: Use the new consistent names.
5209
5210 2005-10-31  Jackson Harper  <jackson@ximian.com>
5211
5212         * TreeView.cs: Don't draw the selected node when we lose focus.
5213
5214 2005-10-31  Jackson Harper  <jackson@ximian.com>
5215
5216         * X11Dnd.cs: We still need to reset the state even though a full
5217         reset isn't being done, otherwise status's still get sent all over
5218         the place.
5219
5220 2005-10-31  Jackson Harper  <jackson@ximian.com>
5221
5222         * Control.cs: Make the dnd_aware flag internal so the dnd
5223         subsystem can check it. Catch exceptions thrown in dnd handlers to
5224         match MS behavoir.
5225         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5226         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5227         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5228         flags to reduce the number of dnd enters/status's sent.
5229
5230 2005-10-31  Jackson Harper  <jackson@ximian.com>
5231
5232         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5233
5234 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5235
5236         * PictureBox.cs: Fixes 76512
5237
5238 2005-10-28  Jackson Harper  <jackson@ximian.com>
5239
5240         * X11Dnd.cs: Early implementation to support winforms being a drag
5241         source for data on X11. Also restructured the converters so they
5242         can go both ways now.
5243         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5244         
5245 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5246
5247         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5248           clipboard requests
5249
5250 2005-10-27  Jackson Harper  <jackson@ximian.com>
5251
5252         * TreeNode.cs: Implement serialization so my DnD examples will work.
5253
5254 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5255
5256         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5257           TreeView.cs: Don't dispose objects that are not owned.
5258           
5259 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5260
5261         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5262           should retrieve the current cursor and report that, but XplatUI
5263           doesn't (yet) have an interface for that (and I'm not sure I even
5264           can, on X11)
5265         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5266           until any message loop processing is done (and the WM_SETCURSOR
5267           replaces the cursor to the proper one)
5268         * XplatUIX11.cs: 
5269           - Fixed override behaviour, we can't set the cursor globally on X11, 
5270             just for our windows.
5271           - Invalidating the System.Drawing X11 display handle when we are
5272             shutting down
5273         * Control.cs: Fix to make csc happy
5274
5275 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5276
5277         * TextBoxBase.cs: 
5278           - get_Text: Add last line (without trailing newline) to returned
5279             value (Fixes 76212)
5280           - get_TextLength: Count last line in returned length
5281           - ToString: Call Text property instead of duplicating code
5282
5283 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5284
5285         * ImageList.cs: Dispose ImageAttributes objects.
5286
5287 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5288
5289         * ImageList.cs: Use attribute constructors with less arguments where
5290           possible.
5291
5292 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5293
5294         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5295           Use typeof instead of strings when assembly is referenced. Added
5296           some more comments.
5297
5298 2005-10-21  Jackson Harper  <jackson@ximian.com>
5299
5300         * ListView.cs: Raise a double click event. Also tried to somewhat
5301         fix when the selectedindexchanged event is raised. Its still
5302         broken though.
5303
5304 2005-10-21  Jackson Harper  <jackson@ximian.com>
5305
5306         * TreeView.cs: New method to invalidate the plus minus area of a
5307         node without invalidating the whole node (maybe this can be used
5308         in some more places).
5309         * TreeNodeCollection.cs: When adding to an empty node we need to
5310         invalidate its plus minus area so the little block shows up.
5311         
5312 2005-10-21  Jackson Harper  <jackson@ximian.com>
5313
5314         * TreeView.cs: Make sure that when we invalidate a node the bounds
5315         are big enough to cover the selected box and the focus
5316         rectangle. Use a different colour for the lines connecting nodes
5317         so they show up with all themes.
5318
5319 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5320
5321         * NativeWindow.cs: Don't call anything that could call into the driver,
5322           we might be on a different thread.
5323
5324 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5325
5326         * Control.cs(Dispose): Since Dispose might run on a different thread,
5327           make sure that we call methods that could call into the driver via
5328           invoke, to avoid thread issues
5329
5330 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5331
5332         * XplatUI.cs: Removed finalizer
5333         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5334           not allowing to be called on the finalizer thread.
5335
5336 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5337
5338         * ImageList.cs:
5339           - Reverted r51889 and r51891.
5340           - Added ImageListItem class that stores unmodified image items and image
5341             properties required to create list images until handle is created.
5342           - Added AddItem and moved image creation logic to AddItemInternal.
5343           - Added CreateHandle method that creates images based on unmodified items.
5344           - Added DestroyHandle that changes state to store unmodified items.
5345           - Add and AddStrip methods no more create handle.
5346           - ReduceColorDepth has no return value.
5347           - Dispose destroys handle.
5348           - Modified other methods to reflect the above changes.
5349           - Implemented key support.
5350           - Added profile 2.0 members and attributes.
5351           - Added private Reset and ShouldSerialize methods that provide the same
5352             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5353             them as they are private.
5354           - Added some more comments about implementation details.
5355
5356 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5357
5358         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5359
5360 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5361
5362         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5363
5364 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5365
5366         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5367         * DataGridColumnStyle.cs: Remove debug message
5368
5369 2005-10-20  Jackson Harper  <jackson@ximian.com>
5370
5371         * TreeView.cs: We can always get input keys regardless of whether
5372         or not editing is enabled. They are used for navigation.
5373
5374 2005-10-20  Jackson Harper  <jackson@ximian.com>
5375
5376         * TreeNode.cs: Use the viewport rect for determining if a node
5377         needs to be moved for visibility. Don't use Begin/End edit. This
5378         calls a full refresh when its done.
5379         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5380         rect property internal so the treenodes can see it. When clicking
5381         on a node we need to ensure that its visible because it might just
5382         be partly visible when clicked.
5383
5384 2005-10-20  Jackson Harper  <jackson@ximian.com>
5385
5386         * TreeNodeCollection.cs: Remove debug code.
5387
5388 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5389
5390         * Datagrid.cs: Implements column sorting in Datagrid
5391         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5392
5393 2005-10-20  Jackson Harper  <jackson@ximian.com>
5394
5395         * TreeNodeCollection.cs: Remove items properly. Update the correct
5396         area after removing them.
5397
5398 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5399
5400         * Datagrid.cs: Should not call base.OnPaintBackground
5401
5402 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5403
5404         * XplatUIX11.cs (GetMessage):
5405           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5406             window instead of client window
5407           - Now properly calculates NC_xBUTTONUP message coordinates
5408           - ScreenToMenu now properly calculates it's coordinates of whole 
5409             window, since menus are in the whole window, not in the client
5410             window
5411           - Added WholeToScreen coordinate translation method
5412
5413 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5414
5415         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5416           want to return a message, loop back to the beginning of the function
5417           and grab the next real message to process instead.
5418
5419 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5420
5421         * Splitter.cs: Properly set limits if no filler control is used
5422
5423 2005-10-19  Jackson Harper  <jackson@ximian.com>
5424
5425         * ColorDialog.cs: Don't show the help button if it is not enabled
5426         instead of disabling it (this is what MS does). Don't create the
5427         panel until the dialog is run, otherwise the vars (such as
5428         ShowHelp) are not set yet.
5429
5430 2005-10-19  Jackson Harper  <jackson@ximian.com>
5431
5432         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5433         are reduced when adding nodes.
5434         * TreeNode.cs:
5435         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5436         tree.
5437         
5438 2005-10-19  Jackson Harper  <jackson@ximian.com>
5439
5440         * FolderBrowserDialog.cs: End editing our treeview so the window
5441         actually gets refreshed.
5442
5443 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5444
5445         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5446           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5447           inside of WM_PAINT
5448
5449 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5450
5451         * MenuAPI.cs: Returns after Hidding window
5452         * XplatUIX11.cs: Added TODO found while debugging menu issues
5453
5454 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5455
5456         * XplatUIX11.cs: Do not re-map the whole window when it's size
5457           becomes non-zero unless it's supposed to be actually visible
5458
5459 2005-10-18  Jackson Harper  <jackson@ximian.com>
5460
5461         * TreeView.cs: We don't need to keep a count anymore.
5462         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5463         use the Grow method.
5464
5465 2005-10-18  Jackson Harper  <jackson@ximian.com>
5466
5467         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5468         implement it manually here.
5469
5470 2005-10-18  Jackson Harper  <jackson@ximian.com>
5471
5472         * ImageList.cs: Dont kill the list when the colour depth is
5473         changed, just change the colour depth of all the images.
5474         - Same goes for setting the image size. Just resize them all
5475         instead of killing the list softly.
5476
5477 2005-10-18  Jackson Harper  <jackson@ximian.com>
5478
5479         * Control.cs: Don't invalidate empty rectangles.
5480
5481 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5482
5483         * ListViewItem.cs:
5484           - Adds checked item to the Checked/Item lists (where empty before)
5485           - Do not add items to the Selected lists if they are already present
5486         * ListView.cs:
5487           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5488           - When deleting items make sure that we delete them for the Selected
5489           and Checked list also.
5490
5491 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5492
5493         * Label.cs: Dispose objects no longer used
5494         * ThemeWin32Classic.cs: Dispose objects no longer used
5495
5496 2005-10-18  Jackson Harper  <jackson@ximian.com>
5497
5498         * TabControl.cs: Don't refresh the whole control when the tabs are
5499         scrolled, we just need to refresh the tab area.
5500
5501 2005-10-17  Jackson Harper  <jackson@ximian.com>
5502
5503         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5504         after handle when we need it.
5505
5506 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5507
5508         * Control.cs: When the parent size changes, recalculate anchor 
5509           positions. Partial fix for #76462
5510
5511 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5512
5513         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5514           drawn. Fixes #76462
5515
5516 2005-10-17  Jackson Harper  <jackson@ximian.com>
5517
5518         * MonthCalendar.cs: Don't create the numeric up down until our
5519         handle is created. Otherwise our handle is created in the
5520         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5521         yet.
5522
5523 2005-10-17  Jackson Harper  <jackson@ximian.com>
5524
5525         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5526         correctly.
5527
5528 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5529         * TreeNode.cs : small logical fix (was using local var instead of field)
5530         
5531 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5532
5533         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5534
5535 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5536
5537         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5538
5539 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5540
5541         * Control.cs: 
5542           - Re-implemented anchoring code. My first version was really broken.
5543             This fixes bug #76033. Unlike the previous implementation we will
5544             no longer have round errors since all numbers are calculated from
5545             scratch every time. Removed various anchor-related obsolete vars.
5546           - InitLayout no longer causes layout event firing and layout to be 
5547             performed
5548
5549 2005-10-16  Jackson Harper  <jackson@ximian.com>
5550
5551         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5552         which was broken).
5553
5554 2005-10-16  Jackson Harper  <jackson@ximian.com>
5555
5556         * TabControl.cs: Remove debug code.
5557
5558 2005-10-16  Jackson Harper  <jackson@ximian.com>
5559
5560         * XEventQueue.cs: Increase the default queue size (very simple
5561         apps needed to grow the queue).
5562         * Hwnd.cs: No finalizer so we don't need to suppress
5563         finalization. Compute the invalid area manually so a new rectangle
5564         does not newto be created.
5565         * ScrollableControl.cs: Don't set any params (otherwise visibility
5566         isn't set correctly).
5567         * MdiChildContext.cs: New constructor takes the mdi parent so it
5568         doesn't have to be computed and avoids a crash on windows. Draw
5569         the window icon properly, and allow the text to be seen.
5570         * Form.cs: Use new MdiChildContext constructor. Make sure the
5571         child context isn't null in wndproc.
5572         * TabControl.cs: Don't set focus, this is muddling keyboard
5573         behavoir. Expand the tab rows when a window size increase will
5574         allow extra tabs to be seen. Don't allow tabs smaller than the
5575         width of a window to be scrolled out of view.
5576         * TreeNode.cs:
5577         * TreeView.cs: Use measure string to calculate a nodes width, the
5578         width is cached and only updated when the text or the font is
5579         changed. Don't check for expand/collapse clicks on the first level
5580         nodes if root lines are disabled.
5581         
5582 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5583
5584         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5585
5586 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5587
5588         * DataGridBoolColumn.cs: fixes warning
5589
5590 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5591
5592         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5593         to match more to match more precisely the MS Net behavior
5594
5595 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5596
5597         * Hwnd.cs: Added field to track if window is mapped
5598         * XplatUIX11.cs: 
5599           - Unmap windows if they become 0-size, re-map when 
5600             they are >0 again; fixes #76035
5601           - Re-set our error handler after initializing X11Desktop
5602             to override any error handlers Gtk or whatever was called
5603             may have set.
5604
5605 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5606
5607         * CheckedListBox.cs: Removed unused vars
5608         * ListView.cs: Fixed signatures
5609         * RichTextBox.cs: Removed unused vars
5610         * TextBoxBase.cs: Removed unused vars
5611         * XplatUIWin32.cs: Removed unused vars
5612         * XplatUIX11.cs: Removed unused vars
5613         * XplatUI.cs: Updated version and date to latest published
5614
5615 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5616
5617         * Cursor.cs: Added private .ctor to work around a bug in
5618           resourceset (Thanks to Geoff Norton for the help on this)
5619         * SplitterEventArgs.cs: Made fields accessible so we don't
5620           waste boatloads of objects and can reuse the same one
5621           in Splitter
5622         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5623           any captions and borders when generating screen coordinates
5624         * Splitter.cs: Reimplemented control, now fully complete, uses
5625           rubberband drawing, supports and obeys all properties, has
5626           proper cursors
5627
5628 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5629
5630         * Form.cs (Form): Setup default values for autoscale and
5631         autoscale_base_size;  Make these instance variables, not static
5632         variables. 
5633
5634         (OnLoad): on the first load, adjust the size of the form.
5635
5636 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5637
5638         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5639           width argument to DrawReversibleRectangle()
5640         * XplatUIWin32.cs, XplatUIX11.cs: 
5641           - Implemented width for DrawReversibleRectangle()
5642           - Added logic to DrawReversibleRectangle that recognizes a zero
5643             width or height and only draws a line in that situation
5644         
5645 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5646
5647         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5648         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5649         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5650           method (it uses our FosterParent window to get a graphics context)
5651
5652 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5653
5654         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5655           and SetWindowBackground methods
5656         * Control.cs:
5657           - Setting proper ControlStyles
5658           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5659             EraseWindowBackground, instead we draw the window background
5660             ourselves in PaintControlBackground. This behaviour is
5661             required to match MS, where, when OnPaintBackground is not
5662             called, the background is not drawn.
5663           - Removed unneeded Refresh() in set_Text
5664         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5665         * XplatUIX11.cs:
5666           - Created DeriveStyles method to translate from CreateParams to
5667             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5668             matches FormBorderStyle enum values)
5669           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5670             style calculations into single DeriveStyles method
5671           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5672             from redrawing the whole window on any resize or expose.
5673           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5674             all styles were applied to our whole/client window appropriately
5675           - Removed EraseWindowBackground() and SetWindowBackground() methods
5676           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5677             no longer clear/redraw the background through X
5678           - Removed handling of erase_pending bit, we have no use for it (or
5679             so it seems)
5680         * XplatUIOSX.cs:
5681           - Removed generation and handling of WM_ERASEBKGND message
5682           - Removed EraseWindowBackground() and SetWindowBackground() methods
5683           - Removed handling of hwnd.ErasePending flag
5684         * XplatUIWin32.cs:
5685           - Removed EraseWindowBackground() and SetWindowBackground() methods
5686           - We no longer call EraseWindowBackground on PaintEventStart, we 
5687             ignore the fErase flag, erasing is handled in Control in the
5688             background handler
5689         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5690           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5691           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5692           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5693           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5694           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5695           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5696
5697 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5698
5699         * PropertyGrids.cs: Get sub properties
5700         * PropertyGridView.cs: Fix drawing code
5701
5702 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5703
5704         * ListBox.cs: Fixes 76383
5705
5706 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5707
5708         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5709         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5710         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5711
5712
5713 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5714
5715         * ComboBox.cs: Fixes border drawing
5716
5717 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5718
5719         * MimeIcon.cs: Ignore errors if the file can not be read.
5720
5721 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5722
5723         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5724          - Fixed border calculations
5725          - Fixed horizontal scrolling in single column listboxes
5726          - Fixed drawing issues
5727
5728 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5729
5730         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5731           FormBorderStyle enum
5732         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5733           code to determine FormBorderStyles from CreateParams
5734         * Form.cs:
5735           - Fixed bug where we'd set the wrong window styles if we were
5736             not creating an MDI window
5737           - Added call to XplatUI.SetBorderStyle when form borders are set
5738         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5739         * Hwnd.cs:
5740           - Removed obsolete edge style
5741           - Switched from BorderStyle to FormBorderStyle
5742         
5743 2005-10-10  Jackson Harper  <jackson@ximian.com>
5744
5745         * Form.cs: Use the property to get the window handle instead of
5746         accessing it directly. Prevents a null reference exception.
5747
5748 2005-10-10  Jackson Harper  <jackson@ximian.com>
5749
5750         * TreeView.cs: Don't adjust the rect given to DrawString now that
5751         our libgdiplus draws correctly.
5752
5753 2005-10-08  Jackson Harper  <jackson@ximian.com>
5754
5755         * TreeView.cs: Don't try to find the clicked on node if there are
5756         no nodes in the tree.
5757
5758 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5759
5760         * RichTextBox.cs:
5761
5762           restore
5763
5764 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5765
5766         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5767           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5768           ErrorProvider.cs:
5769           Use ResPool for brushes and dispose System.Drawing objects that
5770           are not used anymore.
5771
5772 2005-10-07  Jackson Harper  <jackson@ximian.com>
5773
5774         * MdiChildContext.cs: Use the new borders instead of drawing them
5775         ourselves.
5776
5777 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5778
5779         * Calling UpdateBounds after changing the window's BorderStyle 
5780         since the style can change the ClientSize
5781
5782 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5783
5784         * Control.cs: Made PaintControlBackground virtual
5785         * Panel.cs: Overriding PaintControlBackground instead of using paint
5786           event; paint event method was interfering with 'real' users of the
5787           event.
5788
5789 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5790
5791         * ThemeWin32Classic.cs: remove border drawing since it is handled
5792         by the base control class now and was causing double border drawing.
5793
5794 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5795
5796         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5797           but it does seem to match MS behaviour. This fixes bug #75324
5798
5799 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5800
5801         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5802           somewhat hackish looking
5803
5804 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5805
5806         * TextBoxBase.cs:
5807           - We now accept Enter even if AcceptEnter is false, if the containing
5808             form does not have an AcceptButton configured (fixes bug #76355)
5809           - Calculations are now fixed to no longer use Width/Height, but
5810             ClientSize.Width/Height, since we now support borders (this was
5811             a result of fixing borders and therefore bug #76166)
5812           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5813             true (fixes bug #76354)
5814         
5815 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5816
5817         * Control.cs: 
5818           - Defaulting BorderStyle and setting it in XplatUI when our window 
5819             is created
5820           - Added enum check to InternalBorderStyle setter
5821         * XplatUIX11.cs: 
5822           - Added drawing of window borders
5823           - Now properly calculates WM decorations offset for toplevel 
5824             windows (fixes bug #74763)
5825         * XplatUIWin32.cs: 
5826           - Implemented BorderStyles for windows (we're letting win32 draw 
5827             the border for us)
5828           - Fixed the signature for SetWindowLong
5829         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5830           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5831           setting borders
5832         * UpDownBase.cs: Remove drawing of borders, this is handled by
5833           the driver, outside the client area
5834         * ListView.cs: Removed bogus border calculations. The control should
5835           be oblivious to borders, since those are not part of the client
5836           area. 
5837         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5838         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5839           drawing code
5840
5841 2005-10-06  Jackson Harper  <jackson@ximian.com>
5842
5843         * MdiChildContext.cs: Clear out the old virtual position remove
5844         all the unneeded calls to CreateGraphics.
5845
5846 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5847
5848         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5849
5850 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5851
5852         * Form.cs: 
5853           - Added loading and setting of our new default icon
5854           - Only set icon if window is already created
5855
5856 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5857
5858         * Label.cs:
5859           - Do not explicitly set the foreground and background colors, to
5860             allow inheriting from parents (fixes #76302)
5861           - Use Control's InternalBorderStyle property to deal with borders
5862
5863 2005-10-06  Jackson Harper  <jackson@ximian.com>
5864
5865         * MdiChildContext.cs: Use the new xplatui function to draw a
5866         reversible rect.
5867
5868 2005-10-06  Jackson Harper  <jackson@ximian.com>
5869
5870         * Form.cs: Add the parent before creating the child context cause
5871         we need the parent when setting up the child.
5872
5873 2005-10-06  Jackson Harper  <jackson@ximian.com>
5874
5875         * FolderBrowserDialog.cs: redo the tree population code so a
5876         second thread isn't used. Should be a lot faster and more stable
5877         now.
5878
5879 2005-10-05  Jackson Harper  <jackson@ximian.com>
5880
5881         * TreeView.cs: There are no expand/collapse boxes if the node has
5882         no children.
5883
5884 2005-10-05  Jackson Harper  <jackson@ximian.com>
5885
5886         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5887
5888 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5889
5890         * FileDialog.cs: Fix InitialDirectory
5891
5892 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5893
5894         * ComboBox.cs:
5895                 - Fixes changing between styles
5896                 - Fixes simple mode
5897                 - Fixes last item crashing when navigating with keyboard
5898
5899 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5900
5901         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5902
5903 2005-10-05  Jackson Harper  <jackson@ximian.com>
5904
5905         * TreeView.cs: If updating the root node do a full refresh.
5906         * TreeNode.cs: The root node should be expanded by default. Also
5907         added a utility prop to tell if we are the root node.
5908         * TreeNodeCollection.cs: Only refresh if the node we are being
5909         added to is expanded. Also added a comment on a potential
5910         optimization.
5911         
5912 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5913
5914         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5915           in dispose method. Fixes #76330
5916
5917 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5918
5919         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5920
5921                 - Implements vertical and horizontal scrolling using XplatUI
5922                 - Fixes keyboard navagation
5923                 - Fixes EnsureVisible
5924                 - Drawing fixes
5925                 - Handles and draws focus properly
5926
5927
5928 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5929
5930         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5931           Create handle. NET_2_0: Destroy handle when value is null.
5932
5933 2005-10-03  Jackson Harper  <jackson@ximian.com>
5934
5935         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5936         revert and a new patch to prevent the thumb from refreshing so
5937         much.
5938
5939 2005-10-02  Jackson Harper  <jackson@ximian.com>
5940
5941         * ScrollBar.cs: Don't update position if it hasn't actually
5942         changed. This occurs when you hold down the increment/decrement
5943         buttons and the thumb gets to the max/min.
5944
5945 2005-10-01  Jackson Harper  <jackson@ximian.com>
5946
5947         * Form.cs:
5948         * MdiChildContext.cs:
5949         * MdiClient.cs: Implement ActiveMdiChild in Form.
5950
5951 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5952
5953         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5954
5955 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5956
5957         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
5958           be found
5959
5960 2005-09-30  Jackson Harper  <jackson@ximian.com>
5961
5962         * ListBox.cs: Don't do a full refresh unless some data has
5963         actually changed.
5964
5965 2005-09-30  Jackson Harper  <jackson@ximian.com>
5966
5967         * TreeView.cs: Make sure that the checkboxes size is factored in
5968         even when not visible.
5969
5970 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5971
5972         * FileDialog.cs: Fix Jordi's build break
5973
5974 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
5975
5976         * FileDialog.cs: 
5977                 - Use standard the Windows colours for the combobox as espected
5978                 - Dispose objects that use resouces when no longer need them
5979
5980 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
5981
5982         * X11DesktopColors.cs: Initial incomplete implementation
5983         * XplatUIX11.cs: Added call to initialize X11DesktopColors
5984
5985 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
5986
5987         * Theme.cs: 
5988           - Switched Theme color names to match the names defined in 
5989             System.Drawing.KnownColors. Life's hard enough, no need to make 
5990             it harder.
5991           - Added setters to all theme color properties so themes can set
5992             their color schemes. The setters also propagate the color changes
5993             to System.Drawing.KnownColors via reflection
5994         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
5995           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
5996           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
5997           use the new, more logical theme color names
5998         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
5999           post-NT colors
6000         * ThemeWin32Classic.cs:
6001           - Removed code to set the old classic Windows colors. Instead it
6002             now relies on the colors returned by System.Drawing.KnownColors
6003             which will be either modern static colors (Unix) or colors
6004             read from the user's configuration (Win32)
6005           - Updated to use the new, more logical theme color names
6006           - Switched DataGrid drawing code to use only Theme colors instead of
6007             a mix of System.Drawing.KnownColors and Theme colors
6008           - DrawFrameControl(): Removed code that fills the button area, the
6009             fill would overwrite any previous fill done by a control. This
6010             fixes bug #75338 
6011           - Added DrawReversibleRectangle() stub
6012         * ScrollableControl.cs: Set visible state to false when scrollbars
6013           are removed (pdn fix)
6014         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6015           DrawReversibleRectangle() method to allow drawing primitive 
6016           'rubber bands'
6017         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6018
6019 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6020
6021         * ImageList.cs: Add(Icon): Create handle.
6022
6023 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6024
6025         * ListView.cs:
6026         * ThemeWin32Classic.cs:
6027                 - Fixes detail mode
6028                 - Sets clippings
6029                 - Issues with drawing
6030
6031 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6032
6033         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6034           source has to be the ImageList.
6035
6036 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6037
6038         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6039
6040 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6041
6042         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6043
6044 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6045
6046         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6047
6048 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6049         * GridItem.cs: Fixed TODOs
6050         * GridItemCollection.cs: Added ICollection interface
6051
6052 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6053
6054         * ImageList.cs: Resize icons when needed.
6055
6056 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6057
6058         * ListViewItem.cs
6059                 - Fixes GetBounds and returns on screen rects
6060         * ListView.cs:
6061                 - Fixes vertical and horzintal scrolling of items
6062         * ThemeWin32Classic.cs:
6063                 - Fixes drawing
6064                 
6065 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6066
6067         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6068
6069 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6070
6071         * ImageList.cs: Added comments about handle creation. Moved Handle,
6072           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6073           Handle is created in Add methods.
6074
6075 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6076          
6077         * DataGridDrawingLogic.cs: 
6078                 - Takes rows into account on Colum calculations
6079                 - Returns the column when clickig
6080         * DataGrid.cs:
6081                 - Fixes default HitTestInfo values
6082                 - Fixes HitTestInfo.ToString
6083                 - Fixes ResetBackColor          
6084         
6085 2005-09-28  Jackson Harper  <jackson@ximian.com>
6086
6087         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6088         sizing or cursor changes). Also added some temp code to draw the
6089         titlebars text (Makes dev a little easier).
6090
6091 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6092
6093         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6094
6095 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6096          
6097         * ListBox.cs: Fixes bug 76253
6098
6099 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6100
6101         * ImageList.cs: Added comments about the current implementation. Added
6102           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6103           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6104           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6105           with Bitmap.LockBits for better performance. Revised the whole file to
6106           match MS.NET behaviour and provide better performance. Non-public
6107           interface members are calling public members even when they throw
6108           NotSupportedException for better maintainability. Moved ColorDepth,
6109           ImageSize, ImageStream and TransparentColor implementations to
6110           ImageCollection for better performance as these properties are not used
6111           by ImageList.
6112         * ImageListStreamer.cs: Added a new internal constructor that takes an
6113           ImageList.ImageCollection and serializes Images based on
6114           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6115           match ImageList property name.
6116
6117 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6118
6119         * ListBox.cs: Fixes IndexFromPoint for last item
6120
6121 2005-09-27  Jackson Harper  <jackson@ximian.com>
6122
6123         * Form.cs: Set the position of new mdi children correctly.
6124
6125 2005-09-27  Jackson Harper  <jackson@ximian.com>
6126
6127         * MdiClient.cs: New mdi children need to be added to the back of
6128         the controls collection so the zorder is set correctly. Also add a
6129         count of all the child windows that have been created.
6130
6131 2005-09-27  Jackson Harper  <jackson@ximian.com>
6132
6133         * Form.cs (CreateParams): Setup MDI forms correctly.
6134
6135 2005-09-27  Jackson Harper  <jackson@ximian.com>
6136
6137         * MdiChildContext.cs:
6138         * MonthCalendar.cs:
6139         * UpDownBase.cs:
6140         * ListBox.cs:
6141         * ListView.cs:
6142         * TextBoxBase.cs:
6143         * TreeView.cs:
6144         * ScrollableControl.cs:
6145         * ComboBox.cs: Add implicit controls using the new implict control
6146         functionality in ControlCollection. Also try to block multiple
6147         control add in a suspend/resume layout to save some cycles.
6148         
6149 2005-09-27  Jackson Harper  <jackson@ximian.com>
6150
6151         * Control.cs: Add functionality to the controls collection to add
6152         'implicit controls' these are controls that are created by the
6153         containing control but should not be exposed to the user. Such as
6154         scrollbars in the treeview.
6155         * Form.cs: The list var of the ControlsCollection is no longer
6156         available because of the potential of implicit controls getting
6157         ignored by someone accessing the list directly.
6158
6159 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6160
6161         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6162           loose it's parent. (Fixed bug introduced in r49103 when we added
6163           setting the child parent to null on Remove)
6164
6165 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6166
6167         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6168         * Splitter.cs: Added missing attributes for BorderStyle property.
6169         * TextBoxBase.cs: Marked Calculate* methods internal.
6170         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6171         MS.NET.
6172
6173 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6174          
6175         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6176
6177 2005-09-25  Jackson Harper  <jackson@ximian.com>
6178
6179         * TreeView.cs: Update the node bounds correctly regardless of
6180         whether the node is visible.
6181
6182 2005-09-25  Jackson Harper  <jackson@ximian.com>
6183
6184         * ImageList.cs: Don't dispose the image after it is added to the
6185         image list. Only reformat images that need to be resized.
6186
6187 2005-09-25  Jackson Harper  <jackson@ximian.com>
6188
6189         * ImageList.cs: Don't set the format when changing the image.
6190
6191 2005-09-25  Jackson Harper  <jackson@ximian.com>
6192
6193         * TreeView.cs: We can't just assume the node has a font. Use the
6194         treeviews font if no node font is available.
6195
6196 2005-09-25  Jackson Harper  <jackson@ximian.com>
6197
6198         * TreeView.cs: Allow the scrollbars to be reset with negative
6199         values.
6200         - Don't add scrollbars to negative sized windows.
6201
6202 2005-09-23  Jackson Harper  <jackson@ximian.com>
6203
6204         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6205         old Mono.Posix. Also remove some stray code that shouldn't have
6206         been committed.
6207
6208 2005-09-23  Jackson Harper  <jackson@ximian.com>
6209
6210         * TreeView.cs: Attempt at proper sizing of the horizontal
6211         scrollbar. Also don't resize the scrollbars unless they are
6212         visible.
6213
6214 2005-09-23  Jackson Harper  <jackson@ximian.com>
6215
6216         * TreeView.cs: We don't need to expand the invalid area when the
6217         selection changes, as this is all drawn in the node's bounding
6218         box. The area needs to be expanded (previous typo was contracting
6219         it) when the focus rect moves.
6220
6221 2005-09-23  Jackson Harper  <jackson@ximian.com>
6222
6223         * TreeView.cs: Display the selection box under the correct
6224         circumstances. We were rendering white text with no selection box
6225         before.
6226
6227 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6228
6229         * TextControl.cs(Split): Now updates selection start/end if it points 
6230           into a line that's being split. Fixes a FIXME and bug #75258
6231
6232 2005-09-23  Jackson Harper  <jackson@ximian.com>
6233
6234         * Binding.cs:
6235         * ListControl.cs: Don't use the path when retrieving binding
6236         managers from the binding context. My bat sense tells me that the
6237         path is only used on insertion.
6238
6239 2005-09-22  Jackson Harper  <jackson@ximian.com>
6240
6241         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6242
6243 2005-09-22  Jackson Harper  <jackson@ximian.com>
6244
6245         * Splitter.cs: There are special cursors used for splitting.
6246         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6247
6248 2005-09-22  Jackson Harper  <jackson@ximian.com>
6249
6250         * Splitter.cs: Change the cursor appropriately when the splitter
6251         is moused over, so the user actually knows there is a splitter
6252         there.
6253
6254 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6255
6256        * Label.cs : Fix ToString method to give same output as MS.NET
6257
6258 2005-09-22  Jackson Harper  <jackson@ximian.com>
6259
6260         * TreeView.cs: Create the scrollbars when the handle is created
6261         and add them right away, just make them invisble. Also account for
6262         the window being shrunk vertically to the point that the vert
6263         scrollbar needs to be added.
6264         - Remove some 0.5 adjustments to get around anti aliasing issues.
6265         
6266 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6267          
6268         * MainMenu.cs: Fixes default value
6269         * MenuItem.cs: Fixes default value
6270
6271 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6272
6273         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6274
6275 2005-09-21  Jackson Harper  <jackson@ximian.com>
6276
6277         * Control.cs: Don't try to set the border style on the window if
6278         it hasn't been created. When the window is created the border
6279         style will be used.
6280
6281 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6282
6283         * Control.cs (Update): Don't call XplatUI if we don't have a
6284           window handle yet
6285
6286 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6287
6288         * ContainerControl.cs: Instead of throwing an exception, print
6289           a one-time warning about Validate not being implemented
6290         * XplatUIWin32.cs: Removed debug output
6291
6292 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6293
6294         * Control.cs: Only set XplatUI background if we expect the windowing
6295           system to handle the background. This stops controls that draw their
6296           own background from flickering
6297
6298         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6299           creation. This allows, amongst other things, using MWF X11 windows 
6300           with OpenGL.
6301
6302 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6303
6304         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6305           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6306           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6307           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6308           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6309           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6310           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6311           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6312           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6313           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6314           GridColumnStylesCollection.cs, 
6315           IDataGridColumnStyleEditingNotificationService.cs,
6316           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6317           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6318           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6319           TreeNodeCollection.cs, AmbientProperties.cs, 
6320           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6321           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6322           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6323           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6324           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6325           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6326           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6327           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6328           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6329           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6330           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6331           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6332           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6333           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6334           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6335           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6336           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6337           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6338           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6339           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6340           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6341           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6342           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6343           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6344           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6345           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6346           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6347           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6348           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6349           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6350           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6351           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6352           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6353           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6354           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6355           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6356           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6357
6358 2005-09-21  Jackson Harper  <jackson@ximian.com>
6359
6360         * TreeNode.cs: Call Before/After Expand not Collapse when
6361         expanding.
6362
6363 2005-09-20  Jackson Harper  <jackson@ximian.com>
6364         
6365         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6366
6367 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6368          
6369         * ListViewItem.cs:
6370                 - Fixes bug 76120
6371                 - Fixes proper storing of subitems
6372                 - Fixes not updated items
6373
6374 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6375
6376         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6377           things if our window handle isn't created yet. Also disabled 
6378           debug for TextBoxBase
6379
6380 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6381
6382         * MenuAPI.cs: Remove filtering of events to allow menu usage
6383
6384 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6385
6386         * Cursor.cs: Allow null to be passed to Cursor.Current.
6387
6388 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6389
6390         * ThemeWin32Classic.cs:
6391           - Change some private methods/fields to protected virtual so that 
6392             they can be accessed and overriden in derived classes
6393           - First refactoring of some methods. Derived themes now don't 
6394             need to duplicate the complete code from ThemeWin32Classic
6395         * ThemeNice.cs:
6396           - Added nice StatusBar
6397           - Derive from ThemeWin32Classic and not Theme
6398           - Removed duplicate ThemeWin32Classic code
6399
6400 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6401
6402         * Control.cs (ControlCollection.Add): If the value null is passed
6403         the control is ignored. 
6404
6405         Optimize this loop.
6406
6407 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6408
6409         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6410           PostQuitMessage state.
6411         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6412
6413 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6414
6415         * Application.cs: Our constructor will never get called, move 
6416           initialization to fields; fixes bug #75933
6417
6418 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6419
6420         * FileDialog.cs :
6421                 - Allow files to be selected properly using file name
6422                 combo box.
6423                 - Add ability to change diretory (absolute / relative)
6424                 using file name combo box.
6425
6426 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6427          
6428         * ListBox.cs: 
6429                 - Fixes Multicolumn listboxes item wrong calculations
6430                 - Allows to click when only one item is in the listbox
6431                 - Fixes crash when no items using keyboard navigation
6432
6433 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6434
6435         * ComboBox.cs: Reverted almost everything from the latest patch which
6436           broke ComboBox
6437
6438 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6439         
6440         * ToolTip.cs:
6441                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6442         * ComboBox.cs:
6443                 - When DropDownStyle is Simple, it does not show scrollbar 
6444                 to the last item of the list.
6445                 - When DropDownStyle is Simple, it crashed when the list was 
6446                 scrolled down with the down cursor key.
6447                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6448                 selected item was not shown.
6449                 - The position of the selected item was not preserved when 
6450                 the next dropdown happened.
6451         * ThemeWin32Classic.cs:
6452                 - Items were wrapped at the right end.
6453         * CheckedListBox.cs:
6454                 - Fixed Add method
6455         * ListBox.cs:
6456                 - Items should be fully shown.
6457                 - When resizing and vertical scrollbar disappeared, the item 
6458                 of index 0 should be on the top of the list.
6459                 - GetItemRectangle should consider the size of ver. scrollbar
6460         * StatusBar.cs:
6461                 - SizingGrip area should not be allocated when it is not 
6462                 displayed.
6463                 - Now it reflects MinWidth of the containing panel and 
6464                 fixed a crash that happens when its width becomes so small.
6465
6466 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6467
6468         * CheckedListBox.cs: Fixes bug 76028
6469         * ListBox.cs: Fixes bug 76028
6470
6471 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6472
6473         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6474         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6475
6476 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6477
6478         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6479
6480 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6481
6482         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6483
6484 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6485
6486         * IRootGridEntry.cs: Added
6487         * PropertyGridCommands.cs: Added
6488         * PropertiesTab.cs: Added missing methods and property
6489         * PropertyGridView.cs: Made class internal
6490         * PropertyGridTextBox.cs: Made class internal
6491
6492 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6493
6494         * MimeIcon.cs: Try to check some other environment variables
6495           if "DESKTOP_SESSION" returns "default"
6496
6497 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6498
6499         * ThemeNice.cs: Corrected background colors (e.g. menus)
6500         * ColorDialog.cs: Use correct background colors for controls
6501
6502 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6503
6504         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6505
6506 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6507
6508         * RichTextBox.cs: Added initial implementation
6509         * lang.cs: Removed. Was accidentally checked in long time ago
6510         * TODO: Removed. Contents were obsolete
6511
6512 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6513                                                                                 
6514         * PropertiesTab.cs : Added
6515
6516 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6517                                                                                 
6518         * PropertyGrid.cs : Update
6519         * PropertyGridView.cs : Update
6520         * System.Windows.Forms.resx : Added images and strings
6521
6522 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6523
6524         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6525  
6526 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6527
6528         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6529           a busy loop right after the Ungrab the X11 display is otherwise 
6530           blocked
6531
6532 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6533
6534         * ThemeWin32Classic.cs: Optimise the use of clipping
6535
6536 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6537
6538         * DataGrid.cs: fixes recursion bug
6539
6540 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6541
6542         * ThemeNice.cs: 
6543           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6544           - Cleanup
6545
6546 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6547
6548         * ThemeNice.cs: Draw nice ProgressBars
6549
6550 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6551
6552         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6553
6554         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6555         bug finder.
6556
6557 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6558
6559         * ThemeNice.cs:
6560           - Added nicer menu drawing
6561           - Updated DrawTab
6562           - some refactoring
6563
6564 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6565
6566         * CreateParams.cs (ToString): Made output match MS
6567         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6568             handle is already created (to avoid forcing window creation)
6569         * XplatUIX11.cs: Set window text to caption after creating window,
6570           in case Text was set before window was created
6571         * Form.cs: Use this.Text instead of a static string as caption
6572
6573 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6574
6575         * NotifyIcon.cs: Don't set the window to visible; this screws
6576           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6577           OnPaint without a bitmap)
6578         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6579           happen very often anyway; we could add the check to the WM_PAINT 
6580           event generation code
6581
6582 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6583
6584         * NotifyIcon.cs: Fill the icon area with a background color, to 
6585           avoid 'residue' when transparent icons are drawn
6586         * XplatUIX11.cs:
6587           - Handle whole_window == client_window when destroying windows
6588           - SystrayAdd(): Set client_window to whole_window value to
6589             get mouse and other events passed to NotifyIcon
6590
6591 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6592
6593         * Form.cs: Set proper default for Opacity property
6594         * NotifyIcon.cs:
6595           - ShowSystray(): Don't bother creating telling the OS
6596             about the systray item if no icon is provided
6597           - Now handles WM_NCPAINT message to deal with whole/client window
6598             split
6599           - Create window as visible to not get caught by Expose optimization
6600         * Hwnd.cs: Removed debug message
6601         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6602           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6603             PaintEventStart/End to use new client argument
6604         * TextBoxBase.cs:
6605           - Commented out debug messages
6606           - Switched PaintEventStart/End to use new client argument
6607         * XplatUI.cs: Added client window bool to PaintEventStart()/
6608           PaintEventEnd() calls, to support drawing in non-client areas
6609         * XplatUIDriver.cs: 
6610           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6611             calls, to support drawing in non-client areas
6612           - Added conditional compile to allow using MWF BeginInvoke 
6613             on MS runtime
6614         * XplatUIX11.cs:
6615           - Added some conditional debug output
6616           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6617             whole/client window split
6618           - Implemented handling of client argument to PaintEventStart()/End()
6619         * Control.cs:
6620           - Throw exception if BeginInvoke() is called and the window handle
6621             or one of the window's parent handles is not created
6622           - Added conditional compile to allow using MWF BeginInvoke on
6623             MS runtime
6624           - get_Parent(): Only sets parent if handle is created. This avoids
6625             forcing window handle creation when parent is set.
6626           - Now fires Layout and Parent changed events in proper order
6627           - Switched to use Handle instead of window.Handle for Z-Order setting,
6628             the get_Parent() patch above causes us to possibly get null for 'window'
6629           - Implemented handling of client argument to PaintEventStart()/End()
6630           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6631             default handling)
6632           - Now sends a Refresh() to all child windows when Refresh() is called
6633
6634 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6635
6636         * Form.cs: Added (non-functional) Opacity property
6637         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6638
6639 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6640         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6641           use export MONO_THEME=nice to activate it.
6642           Currently supported controls:
6643           - Button
6644           - ComboBox
6645           - ScrollBar
6646           - TabControl (TabAlignment.Top only, other will follow)
6647         * ThemeEngine.cs: Add theme nice
6648         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6649           if enabled
6650
6651 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6652
6653         * Splitter.cs: Resize docked control and its neighbor.
6654
6655 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6656         -- Making Windows with Menus layout correctly --
6657         * Form.cs : The first leg of the fix
6658                 Menu setter - adjust Client Size as needed to make space for the menu
6659                 SetClientSizeCore - doesn't call base version to be able to pass the 
6660                         menu handle to XplatUI.CalculateWindowRect
6661         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6662         * XplatUIX11.cs: The critical second leg of the fix
6663                 GetWindowPos needs to use a recalculated client_rect
6664                 so that resizing the window doesn't break layout of child controls. 
6665                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6666                 Lots of \t\n killed
6667
6668 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6669
6670         * Label.cs: Now properly recalculates width and height on Font and Text
6671           changes if AutoSize is set
6672
6673 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6674         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6675
6676 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6677
6678         * ImageList.cs: Makes ToString method compatible with MS
6679
6680 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6681
6682         * MenuAPI.cs: fixes bug 75716
6683
6684 2005-08-11 Umadevi S <sumadevi@novell.com>
6685         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6686
6687 2005-08-11 Umadevi S <sumadevi@novell.com>
6688         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6689
6690 2005-08-10  Umadevi S <sumadevi@novell.com>
6691         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6692
6693 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6694
6695         * Menu.cs: fixes bug 75700
6696         * MenuAPI.cs: fixes navigation issues
6697
6698 2005-08-09  Umadevi S <sumadevi@novell.com>
6699         * CheckedListBox.cs - simple fix for GetItemChecked.
6700
6701 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6702
6703         * ComboBox.cs: Serveral fixes
6704         * ListBox.cs: Serveral fixes
6705
6706 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6707
6708         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6709         * ListBox.cs: Fixes FindString methods
6710
6711 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6712
6713         * DataGrid.cs: fixes bugs exposed by new tests
6714
6715 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6716
6717         * Mime.cs: Compile Mono assembly references only if compiling
6718           with Mono (Allows to build with VS.Net again)
6719
6720 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6721
6722         * Control.cs (PaintControlBackground): Draw background image
6723         corrrectly.
6724         (CheckForIllegalCrossThreadCalls): Stubbed.
6725         
6726         * Form.cs (OnCreateControl): Center when should be centered.
6727         
6728         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6729
6730 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6731
6732         * Binding.cs: Binding to properties should be case unsensitive
6733
6734 2005-07-18 vlindos@nucleusys.com
6735
6736         * DataGrid.cs: fixes setmember order
6737
6738 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6739
6740         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6741         * FileDialog.cs: FileDialog is now resizable and uses the new
6742           MimeIconEngine
6743
6744 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6745
6746         * DataGridTextBoxColumn.cs: default value
6747         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6748         * GridTableStylesCollection.cs: fixes checking MappingName
6749         * DataGridDrawingLogic.cs: fixes drawing logic issues
6750         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6751         * DataGrid.cs: fixes    
6752
6753 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6754
6755         * MimeGenerated.cs: Use case sensitive comparer for
6756           NameValueCollections
6757
6758 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6759
6760         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6761         * ThemeWin32Classic.cs: bug fixes, code refactoring
6762         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6763         * DataGrid.cs: bug fixes, code refactoring
6764         * DataGridTextBox.cs: bug fixes, code refactoring
6765         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6766         * Theme.cs:  bug fixes, code refactoring
6767
6768 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6769
6770         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6771           and other text box usage
6772
6773 2005-07-01  Jackson Harper  <jackson@ximian.com>
6774
6775         * TabControl.cs: Make sure the bottom of the tab covers the pages
6776         border.
6777
6778 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6779
6780         * Form.cs (ShowDialog): Assign owner of the dialog
6781         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6782           might have been moved to a tag with different height
6783
6784 2005-06-30  Jackson Harper  <jackson@ximian.com>
6785
6786         * Form.cs: Don't create an infinite loop when setting focus
6787         * MenuItem.cs: Don't dirty the parents if we don't have any
6788
6789 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6790
6791         * LibSupport.cs: Rename
6792
6793 2005-06-29  Peter Bartok  <pbartok@novell.com>
6794
6795         * TextBoxBase.cs: Re-align caret after deleting a character
6796         * TextControl.cs:
6797           - DeleteChars(): Ensure that tag covers the provided position
6798           - StreamLine(): Drop reference for dropped tag
6799
6800 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6801
6802         * TextControl.cs: 
6803           - Selections now work properly, anchoring at the initial location
6804             and properly extending in either direction (SetSelectionToCaret(),
6805             SetSelectionStart() and SetSelectionEnd())
6806           - No longer redraws the whole control on selection change, now
6807             calculates delta between previous and new selection and only
6808             invalidates/redraws that area
6809           - Fixed FindPos() math off-by-one errors
6810           - Changed DeleteChars() to verify the provided tag covers the
6811             provided position, selections may have a tag that doesn't cover
6812             the position if the selection is at a tag border
6813           - Fixed off-by-one errors in DeleteChars()
6814           - Added missing streamlining check in DeleteChars() to remove
6815             zero-length tags
6816           - Implemented Invalidate() method, now properly calculates exposures
6817             between two given lines/positions
6818           - Implemented SetSelection()
6819           - Obsoleted and removed FixupSelection()
6820           - Improved RecalculateDocument() logic, removing code duplication
6821
6822 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6823
6824         * LibSupport.cs: changes to match different input/output arguments.
6825
6826 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6827
6828         * LibSupport.cs: added libsupport.so init routine.
6829
6830 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6831         
6832         * ControlBindingsCollection.cs
6833                 - Throws an exception on null datasource when adding
6834                 - Checks for duplicated bindings when adding
6835
6836 2005-06-28  Jackson Harper  <jackson@ximian.com>
6837
6838         * TreeView.cs (OnKeyDown): Support left and right properly
6839         (navigates as well as expanding and collapsing.
6840         - Add support for Multiply, this expands all the selected nodes
6841         children.
6842         - Fix some tabbing.
6843
6844 2005-06-28  Jackson Harper  <jackson@ximian.com>
6845
6846         * TreeView.cs: Implement keyboard navigation, currently supports,
6847         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6848         support for toggling checkboxes with the space bar.
6849
6850 2005-06-28  Jackson Harper  <jackson@ximian.com>
6851
6852         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6853         tree.
6854
6855 2005-06-28  Jackson Harper  <jackson@ximian.com>
6856
6857         * TreeView.cs: Add missing event.
6858
6859 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6860
6861         * TextControl.cs:
6862           - Made line ending size configurable (now allows for counting 
6863             lineendings as \n or \r\n)
6864           - Added margin to viewport to keep caret visible on right side
6865           - Fixed translation routines for line/pos to documentpos to consider
6866             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6867           - Fixed some line-endings to be unix style
6868           - Fixed Document.FormatText to perform it's calculations 1-based
6869           - Added descriptions for a few methods that might otherwise get 
6870             used wrong
6871           - Added NOTE section with some basic conventions to remember at 
6872             the top of the file
6873           - Major fixup for RichTextBox selection drawing:
6874             * Fixed crashes when multiple tags on a single line were selected
6875             * fixed selection box drawing not overlaying text
6876             * fixed bogus offset calculation for tags not starting at index 1
6877             * Switched behaviour from using multiple Substrings of a 
6878               StringBuilder.ToString() to using multiple 
6879               StringBuilder.ToString(start, length) statements, hoping this is
6880               faster (kept original version commented out in the code, in case
6881               original version was faster)
6882         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6883           alignment != Left
6884         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6885           call it as well
6886
6887 2005-06-27  Jackson Harper  <jackson@ximian.com>
6888
6889         * TabControl.cs: Move to the left and right with the arrow
6890         keys. These keys don't cycle beyond first and last like
6891         tab. Refresh all the tabs when scrolling them to the left or
6892         right.
6893
6894 2005-06-27  Jackson Harper  <jackson@ximian.com>
6895
6896         * TabControl.cs:
6897           - ToString: Added method
6898           - CreateParams: Remove TODO and comment
6899           - OnKeyDown: Cycle through bounds properly.
6900           - SelectedIndex: Scroll to the right or left if we need to
6901           display the newly selected tab.
6902
6903 2005-06-23  Jackson Harper  <jackson@ximian.com>
6904
6905         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6906         set.
6907
6908 2005-06-23  Jackson Harper  <jackson@ximian.com>
6909
6910         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6911         CTRL-SHIFT-TAB, and HOME, END are there any others?
6912
6913 2005-06-23  Jackson Harper  <jackson@ximian.com>
6914
6915         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6916
6917 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6918         
6919         * DataGridTextBoxColumn.cs: fixes and enhancements
6920         * ThemeWin32Classic.cs: fixes and enhancements
6921         * DataGridBoolColumn.cs:  fixes and enhancements
6922         * DataGridDrawingLogic.cs:  fixes and enhancements
6923         * CurrencyManager.cs: fixes and enhancements
6924         * DataGrid.cs: fixes and enhancements
6925         * DataGridColumnStyle.cs:  fixes and enhancements
6926
6927 2005-06-22  Jackson Harper  <jackson@ximian.com>
6928
6929         * TabControl.cs: Add some missing methods that just call into the
6930         base. Make the TabPageCollection's IList interface behave in the
6931         same manner as the MS implementation.
6932
6933 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6934
6935         * TextControl.cs: Added sanity check
6936         * TextBoxBase.cs: 
6937           - Fixed wrapping behaviour, don't set wrap on single line controls
6938             (this fixes the breakage of colordialog introduced in an earlier
6939              checkin)
6940           - Added rudimentary support for autoscrolling right-aligned controls
6941             (still needs fixing, also, center alignment scroll is missing)
6942
6943 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6944         
6945         * ScrollBar.cs: Fixes thumbpos on Maximum values
6946
6947 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6948         
6949         * PropertyGridView.cs: Pass context information to UITypeEditors 
6950
6951 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6952
6953         * TextBoxBase.cs:
6954           - Now calling PositionCaret with absolute space coordinates
6955           - Enabled vertical scrolling
6956           - Better tracking of scrollbar changes, tied into WidthChange
6957             event
6958           - Improved cursor tracking
6959           - Removed debug output
6960         * TextControl.cs:
6961           - PositionCaret coordinates are now works in absolute space, not 
6962             the canvas
6963           - Improved tracking of document size
6964           - Added events for width and height changes
6965
6966 2005-06-21  Peter Bartok  <pbartok@novell.com>
6967
6968         * Form.cs: Set focus to active control when form is activated
6969         * TextControl.cs: 
6970           - Added word-wrap functionality to RecalculateLine() 
6971           - Added some short function descriptions for VS.Net to aid in
6972             writing dependent controls
6973           - Added Caret property, returning the current coords of the caret
6974           - Added ViewPortWidth and ViewPortHeight properties
6975           - Added Wrap property
6976           - Added CaretMoved event
6977           - Removed some old debug code
6978           - Split() can now create soft splits
6979           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
6980           - Added method to format existing text
6981           - Fixed size/alignment calculations to use viewport
6982           - RecalculateDocument now can handle changing line-numbers while
6983             calculating lines
6984
6985         * TextBox.cs:
6986           - Added some wrap logic, we don't wrap if alignment is not left
6987           - Added casts for scrollbar var, base class switched types to
6988             also support RichTextBoxA
6989           - Implemented handling of scrollbar visibility flags
6990
6991         * TextBoxBase.cs:
6992           - Switched scrollbars type to RichTextBoxScrollBars to support
6993             RichTextBox
6994           - Added tracking of canvas width/height
6995           - Switched scrollbars to be not selectable (to keep focus on text)
6996           - Added central CalculateDocument() method to handle all redraw
6997             requirements
6998           - Added ReadOnly support
6999           - Added WordWrap support
7000           - Fixed handling of Enter key (we now treat it as a DialogKey)
7001           - Fixed caret positioning when h or v scroll is not zero
7002           - Fixed placing/generation of vertical scrollbar
7003           - Added CalculateScrollBars() method to allow updating scrollbar
7004             limits and visibility
7005           - Fixed handling of horizontal scroll
7006           - Added handling of vertical scroll
7007           - Implemented auto-'jump' when caret moves to close to a left or
7008             right border and there is text to be scrolled into view (currently
7009             there's the potential for a stack overflow, until a bug in
7010             scrollbar is fixed)
7011
7012 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7013         
7014         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7015
7016 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7017
7018         * Mime.cs:
7019         - added inodes.
7020         - return application/x-zerosize for files with size zero
7021           (if no extension pattern matches).
7022         - check matches collection for strings too.
7023         - return only the first mime type if the name value
7024           collection has more than one mime type.
7025
7026 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7027         
7028         * PropertyGrid.cs: Cleaned up some TODOs
7029         * PropertyGridView.cs: Added support for UITypeEditors
7030
7031 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7032         
7033         * DataGrid.cs: clears cached value
7034
7035 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7036
7037         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7038         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7039         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7040         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7041         
7042 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7043
7044         * ThemeWin32Classic.cs: fixes colour
7045
7046 2005-06-15  Peter Bartok  <pbartok@novell.com>
7047
7048         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7049         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7050         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7051         * Control.cs: Added some MWFCategory and MWFDescription attributes
7052         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7053
7054 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7055
7056         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7057         usage
7058
7059 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7060
7061         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7062         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7063         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7064         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7065         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7066         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7067
7068 2005-06-13  Jackson Harper  <jackson@ximian.com>
7069
7070         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7071         isn't printed when the user enables dropping. (X11 does accept
7072         drops).
7073         
7074 2005-06-13  Jackson Harper  <jackson@ximian.com>
7075
7076         * TreeView.cs: Remove some TODOS.
7077
7078 2005-06-13  Jackson Harper  <jackson@ximian.com>
7079
7080         * Form.cs: Hook into the mdi framework.
7081         * MdiClient.cs: Use the base control collections add method so
7082         parents get setup correctly. Set the default back colour and dock
7083         style.
7084         * MdiChildContext.cs: New class, this bad actor handles an
7085         instance of an MDI window. Right now there is only basic
7086         support. You can drag, close, and resize windows. Minimize and
7087         Maximize are partially implemented.
7088
7089 2005-06-13  Jackson Harper  <jackson@ximian.com>
7090
7091         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7092         freaky when both vals are negative. NOTE: There are probably other
7093         places in XplatUIX11 that this needs to be done.
7094
7095 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7096
7097         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7098         * DataGridColumnStyle.cs: fixes signature
7099
7100 2005-06-12  Jackson Harper  <jackson@ximian.com>
7101
7102         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7103         windows.
7104
7105 2005-06-11  Jackson Harper  <jackson@ximian.com>
7106
7107         * StatusBarPanel.cs: Signature cleanups. Implement
7108         BeginInit/EndInit.
7109
7110 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7111
7112         * DataGridTextBoxColumn.cs: Honors aligment
7113         * GridColumnStylesCollection.cs: Contains is case unsensitive
7114         * GridTableStylesCollection.cs: several fixes
7115         * DataGridTableStyle.cs: default column creation
7116         * DataGridDrawingLogic.cs: fixes
7117         * CurrencyManager.cs: ListName property
7118         * DataGrid.cs: multiple styles support
7119         * DataGridColumnStyle.cs: fixes
7120         
7121
7122 2005-06-10  Peter Bartok  <pbartok@novell.com>
7123
7124         * Control.cs(Select): Moved SetFocus call to avoid potential
7125           loops if controls change the active control when getting focus
7126         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7127           the up/down buttons
7128
7129 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7130
7131         * ImageListConverter.cs: Implemented
7132
7133 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7134
7135         * MonthCalendar.cs: Wired in NumericUpDown control for year
7136
7137 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7138
7139         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7140           DoubleClick events, since they are not meant to be fired.
7141
7142 2005-06-09  Peter Bartok  <pbartok@novell.com>
7143
7144         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7145           Jonathan's standalone controls into MWF, implemented missing
7146           events, attributes and methods; added xxxAccessible classes
7147         * AccessibleObject.cs: Made fields internal so other classes
7148           can change them if needed
7149
7150 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7151
7152         * UpDownBase.cs: Complete implementation
7153         * NumericUpDown.cs: Complete implementation
7154         * DomainUpDown.cs: Complete implementation
7155
7156 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7157
7158         * DataGridTextBoxColumn.cs: drawing fixes
7159         * DataGridCell.cs: fixes ToString method to match MSNet
7160         * DataGridTableStyle.cs: fixes
7161         * DataGridBoolColumn.cs: fixes, drawing
7162         * DataGridDrawingLogic.cs: fixes, new methods
7163         * DataGridTextBox.cs: Keyboard and fixes
7164         * DataGrid.cs:
7165                 - Keyboard navigation
7166                 - Scrolling fixes
7167                 - Row selection (single, multiple, deletion, etc)
7168                 - Lots of fixes
7169         
7170 2005-06-07  Jackson Harper  <jackson@ximian.com>
7171
7172         * ThemeWin32Classic.cs: Clear the background area when drawing
7173         buttons.
7174
7175 2005-06-06  Peter Bartok  <pbartok@novell.com>
7176
7177         * ImageListStreamer.cs: Fixed signature for GetData
7178         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7179         * ComboBox.cs:
7180           - Added missing ChildAccessibleObject class
7181           - Added missing OnXXXFocus overrides, switched to using those
7182             instead of the event handler
7183         * Control.cs:
7184           - Added Parent property for ControlAccessibleObject
7185           - Fixed signatures
7186           - Fixed attributes
7187           - Added ResetBindings()
7188         * ListBindingConverter.cs: Implemented some methods
7189         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7190         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7191         * ContainerControl.cs: Fixed signature, now subscribing to the
7192           ControlRemoved event instead of overriding the handler, LAMESPEC
7193         * CurrencyManager.cs: Added missing attribute
7194         * MonthCalendar.cs: Added missing properties
7195
7196 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7197
7198         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7199         
7200 2005-06-06  Gaurav Vaish and Ankit Jain
7201
7202         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7203         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7204         
7205 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7206
7207         * Control.cs: fixes CreateParams Width / Height.
7208
7209 2005-06-05  Peter Bartok  <pbartok@novell.com>
7210
7211         * Win32DnD.cs: Removed compilation warnings
7212
7213 2005-06-05  Peter Bartok  <pbartok@novell.com>
7214
7215         * Control.cs (CreateParams): Since we don't know if one of the
7216           properties we use is overridden, lets make sure if we fail accessing
7217           we continue with a backup plan
7218
7219 2005-06-05  Peter Bartok  <pbartok@novell.com>
7220
7221         * Win32DnD.cs:
7222           - Removed debug output
7223           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7224             struct
7225           - Plugged resource leak
7226         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7227           MS size
7228
7229 2005-06-05  Peter Bartok  <pbartok@novell.com>
7230
7231         * XplatUIWin32.cs: Removed DnD code
7232         * Win32DnD.cs: Implemented drop source and drop target functionality
7233
7234 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7235
7236         * UpDownBase.cs: remove duplicate addition of event, enable some code
7237         that was commented out.
7238         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7239         Validate input when a key is pressed. It works fine now for every
7240         combination of Hexadecimal. Only missing some drawing love when sharing
7241         space with other controls.
7242
7243 2005-06-04  Peter Bartok  <pbartok@novell.com>
7244
7245         * Control.cs:
7246           - We need to pass a window for DragDrop, so enable callback events
7247           - Added DnD callback events when being a DragSource
7248         * XplatUI.cs (StartDrag): Added window handle argument
7249         * XplatUIDriver.cs (StartDrag): Added window handle argument
7250         * QueryContinueDragEventArgs: Made fields internally accessible so
7251           drivers can set them
7252         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7253           can set them
7254
7255 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7256
7257         * DataGridTextBoxColumn.cs: column text editing
7258         * DataGridTableStyle.cs: Respect columns styles created by the user
7259         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7260         * DataGridBoolColumn.cs: bool column editing
7261         * DataGrid.cs: fixes to scrolling, properties, etc
7262         * DataGridTextBox.cs: handle keyboard
7263         * DataGridColumnStyle.cs: fixes
7264
7265 2005-06-02  Jackson Harper  <jackson@ximian.com>
7266
7267         * ImageListStreamer.cs: Somewhat broken implementation of
7268         GetObjectData. The RLE needs some work to match MS properly.
7269
7270 2005-06-02  Jackson Harper  <jackson@ximian.com>
7271
7272         * X11Dnd.cs: Attempting to keep at least one file in MWF
7273         monostyled.
7274
7275 2005-06-02  Peter Bartok  <pbartok@novell.com>
7276
7277         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7278           that way
7279
7280 2005-06-02  Peter Bartok  <pbartok@novell.com>
7281
7282         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7283         * XplatUI.cs: Added DoDragDrop() method
7284         * XplatUIDriver.cs: Added DoDragDrop() method
7285
7286 2005-06-02  Jackson Harper  <jackson@ximian.com>
7287
7288         * Splitter.cs: Implement BorderStyle.
7289
7290 2005-06-02  Jackson Harper  <jackson@ximian.com>
7291
7292         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7293         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7294         X11 using XDND.
7295
7296 2005-06-02  Peter Bartok  <pbartok@novell.com>
7297
7298         * DataObject.cs:
7299           - Added Data setter
7300           - Fixed broken insertion code for SetData, now also
7301             overwrites any existing entry of the same format name
7302         * Hwnd.cs: Added list of pointers that automatically gets
7303           freed when the window is disposed
7304         * XplatUI.cs: Call driver initialization method when loading
7305           a driver
7306         * Control.cs:
7307           - OnDragLeave takes EventArgs, not DragEventArgs
7308           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7309             supported
7310           - Forces style update when drop state changes
7311         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7312           not perfect since we cannot (yet) call the IDataObject.GetData()
7313           method, we keep getting 0x80004005 error, dunno why)
7314
7315 2005-06-02  Peter Bartok  <pbartok@novell.com>
7316
7317         * DragEventArgs.cs: Make fields internal so we can cache the
7318           object and re-set the fields from XplatUI
7319
7320 2005-06-02  Jackson Harper  <jackson@ximian.com>
7321
7322         * Control.cs: Add some internal methods so the DnD subsystem can
7323         raise DnD events. Also call into the driver when AllowDrop is set.
7324         * XplatUI.cs:
7325         * XplatUIDriver.cs: New method for setting whether or not a window
7326         is allowed to accept drag and drop messages.
7327                 
7328 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7329         
7330         * ScrollBar.cs: Make sure that values sent in Scroll events
7331         are always between Maximum and Minimum.
7332
7333 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7334
7335         * Menu.cs: Call MenuChanged when menuitem visibility has been
7336         changed.
7337         * MenuItem.cs: Rebuild menu when item is (not) visible.
7338         * MainMenu.cs: MainMenu has special MenuChanged.
7339         * Theme.cs: Caption and FrameBorderSize are not fixed.
7340         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7341         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7342         * XplatUIX11.cs,
7343         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7344         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7345
7346 2005-05-30  Jackson Harper  <jackson@ximian.com>
7347
7348         * DataFormat.cs: We can't statically initialize this stuff because
7349         it calls into the xplatui and could create a loop. So we lazy init
7350         it.
7351
7352 2005-05-28  Jackson Harper  <jackson@ximian.com>
7353
7354         * Control.cs: Proper implementation of Product(Name/Version).
7355
7356 2005-05-27  Jackson Harper  <jackson@ximian.com>
7357
7358         * DataObject.cs: Dont crash if no data is found.
7359
7360 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7361         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7362                 as per status page, guessing it should be set to true
7363
7364 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7365
7366         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7367         * DataGridTableStyle.cs: set proper formatting text, def header text
7368         * ThemeWin32Classic.cs: new themable paramaters
7369         * DataGridBoolColumn.cs: paint check box, get data, fixes
7370         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7371         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7372         * DataGridColumnStyle.cs: fixes
7373         * Theme.cs: new themable paramaters
7374                 
7375 2005-05-26  Peter Bartok  <pbartok@novell.com>
7376
7377         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7378
7379 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7380         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7381
7382 2005-05-24  Peter Bartok  <pbartok@novell.com>
7383
7384         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7385           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7386           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7387           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7388           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7389           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7390           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7391           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7392           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7393           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7394           missing attributes, etc
7395         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7396
7397 2005-05-24  Peter Bartok  <pbartok@novell.com>
7398
7399         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7400           when user tries to get help
7401         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7402           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7403           to suppress warnings
7404         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7405           avoid unreachable code warning
7406
7407 2005-05-20  Peter Bartok  <pbartok@novell.com>
7408
7409         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7410
7411 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7412
7413         * DataGridTextBoxColumn.cs: Basic painting methods
7414         * DataGridTableStyle.cs: Set table style in the column
7415         * ThemeWin32Classic.cs: Use Theme for colors
7416         * DataGridDrawingLogic.cs: Implement more drawing
7417         * DataGrid.cs: drawing, theming, enhacements, fixes
7418         * DataGridColumnStyle.cs: fixes, drawing
7419         * Theme.cs: theming for Datagrid
7420
7421 2005-05-20  Peter Bartok  <pbartok@novell.com>
7422
7423         * Cursor.cs: Implemented GetObjectData() method
7424
7425 2005-05-20  Peter Bartok  <pbartok@novell.com>
7426
7427         * Cursors.cs: Added setting of cursor name
7428         * Cursor.cs:
7429           - Implemented constructors
7430           - Implemented Draw and DrawStretched
7431           - Implemented Current property
7432           - Implemented == and != operators
7433           - Implemented Dispose()
7434           - Implemented ToString
7435           - Added missing attributes
7436         * XplatUIX11.cs:
7437           - Added missing reset for OverrideCursor when DoEvents is called
7438           - Fixed creation of cursor, logic was wrong
7439         * XplatUIWin32.cs:
7440           - Added missing reset for OverrideCursor when DoEvents is called
7441           - Fixed creation of cursor, bit arrays were swapped
7442         * Clipboard.cs: Removed obsolete MonoTODO attribute
7443
7444 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7445
7446         * ComboBox.cs: fixes OnSelectedItemChanged
7447         * ControlBindingsCollection.cs: fixes item range check
7448
7449 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7450
7451         * UpDownBase.cs:
7452                 - Calc preferred height properly
7453                 - Implement missing properties
7454                 
7455         * NumericUpDown.cs: Implement missing events
7456
7457 2005-05-19  Jackson Harper  <jackson@ximian.com>
7458
7459         * TabControl.cs: New method that resizes the tab pages before
7460         redrawing them. This as needed as the control is double buffered
7461         and sizing will not be recalculated unless ResizeTabPages is
7462         called.
7463         * TabPage.cs: Set base.Text instead of Text in the constructor so
7464         that UpdateOwner does not get called. Use the new Redraw method of
7465         TabControl instead of Refresh so the sizing is recalculated.
7466         * ThemeWin32Classic.cs: Draw the text for button tabs.
7467
7468 2005-05-19  Jackson Harper  <jackson@ximian.com>
7469
7470         * Control.cs: Paint control background images. Fix typo where
7471         PaintControlBackground was not getting called correctly.
7472
7473 2005-05-19  Peter Bartok  <pbartok@novell.com>
7474
7475         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7476           I can investigate, apparently I broke FileDialog
7477
7478 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7479
7480         * AxHost.cs: Some simple properties.
7481         * Control.cs: window must be accessible after ctor.
7482         * Form.cs: Added TransparencyKey property.
7483         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7484         * XplatUIWin32.cs: SetBorderStyle implemented.
7485
7486 2005-05-18  Peter Bartok  <pbartok@novell.com>
7487
7488         * DataObject.cs: Entries are not global but particular to the
7489           DataObject, now it behaves that way
7490         * XplatUIWin32.cs: Implemented Clipboard methods
7491         * Clipboard.cs: Implemented
7492         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7493         * XplatUIOSX.cs: Updated to final clipboard prototypes
7494         * XplatUIX11.cs: Implemented Clipboard methods
7495         * XplatUIDriver.cs: Updated to final clipboard prototypes
7496         * XplatUIStructs.cs:
7497           - Added BITMAPINFOHEADER struct
7498           - Added ClipboardFormats enum
7499         * X11Structs.cs:
7500           - Added ClipboardStruct
7501           - Added Atom enum items for clipboard types
7502           - Fixed atom types for Selection event structures
7503         * DataFormats.cs:
7504           - Added internal properties and methods for drivers to enumerate
7505             all known formats
7506           - Switched initialization method to allow drivers to assign their
7507             own IDs even for the MS predefined clipboard IDs
7508         * XplatUI.cs: Updated to final clipboard interface
7509
7510 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7511         * PropertyGridView.cs: Fixed compiler warnings.
7512
7513 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7514         * PropertyGrid.cs: Added some event calls
7515         * PropertyGridView.cs: Change drawing code to use double buffering
7516         * PropertyGridTextBox.cs: Changed Text property name
7517         * GridItem.cs: Added Bounds property.
7518         * GridEntry.cs: Added Bounds property.
7519
7520 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7521
7522         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7523         since GetType() may not return the correct type if the object is
7524         a remoting proxy.
7525
7526 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7527
7528         * TreeNodeCollection.cs: fixes get/set item ranges
7529         
7530 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7531
7532         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7533                 
7534 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7535
7536         * ComboBox.cs: Fix item range comparation
7537         * ListView.cs: Fix item range comparation
7538
7539 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7540
7541         * FontDialog.cs:
7542           - Clear example panel when OnPaint is called
7543           - Better solution for displaying the example panel text
7544           - Select default indexes in the ListBoxes
7545
7546 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7547
7548         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7549
7550 2005-05-11  Peter Bartok  <pbartok@novell.com>
7551
7552         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7553         * SelectionRangeConverter.cs: Implemented
7554         * PropertyGrid.cs: Fixed attribute value
7555         * Control.cs:
7556           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7557           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7558         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7559           that's common to all drivers. First methods to go there are
7560           Sebastien Pouliot's CAS Stack Propagation helper methods
7561         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7562           Sebastien Pouliot for CAS Stack Propagation
7563
7564 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7565
7566         * OSXStructs.cs:
7567           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7568
7569 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7570
7571         * DataGridTextBoxColumn.cs: fixed some members
7572         * GridColumnStylesCollection.cs: indexed column is case insensitive
7573         * DataGridTableStyle.cs: fixes
7574         * ThemeWin32Classic.cs: add new theme parameter
7575         * Theme.cs: add new theme parameter
7576         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7577         * DataGrid.cs: fixes, new internal properties, etc.
7578         * DataGridColumnStyle.cs: allows to set grid value
7579         *
7580
7581 2005-05-10  Peter Bartok  <pbartok@novell.com>
7582
7583         * AccessibleObject.cs:
7584           - Removed MonoTODO attribute on help, method is correct
7585           - Fixed Bounds property
7586         * AxHost.cs: Moved MonoTODO
7587         * ButtonBase.cs: Now setting AccessibleObject properties
7588         * RadioButton.cs: Setting proper AccessibleObject role
7589         * CheckBox.cs: Setting proper AccessibleObject role
7590         * ControlBindingsCollection.cs: Added properties, methods and attributes
7591         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7592           userdefined DataFormats.Format items as well
7593         * ListControl.cs: Removed data_member from the public eye
7594         * OpenFileDialog.cs:
7595           - Made class sealed
7596           - Added missing attributes
7597         * SaveFileDialog.cs: Added missing attributes
7598         * ImageListStreamer.cs: Fixed code that caused warnings
7599         * LinkLabel.cs: Removed unreachable code
7600         * TreeView.cs: Fixed code that caused warnings
7601         * PropertyGridView.cs: Fixed code that caused warnings
7602         * GridColumnStylesCollection.cs: Added missing attributes
7603         * GridTableStylesCollection: Added missing attribute
7604         * PropertyManager: Added .ctor
7605         * SecurityIDType: Added
7606         * DataObject.cs: Implemented class
7607         * LinkArea.cs: Added missing attribute
7608
7609 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7610
7611         * RadioButton.cs: call base method to allow to fire OnClick event
7612         * UpDownBase.cs: OnMouseUp call base method
7613         * CheckedListBox.cs: call base method before returning
7614         * TrackBar.cs: call base method before returning
7615         
7616
7617 2005-05-10  Peter Bartok  <pbartok@novell.com>
7618
7619         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7620           for messages
7621
7622 2005-05-10  Peter Bartok  <pbartok@novell.com>
7623
7624         * DataFormats.cs: Implemented
7625         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7626           XplatUIX11.cs: Added Clipboard APIs
7627         * XplatUIWin32.cs: Implemented Clipboard APIs
7628         * FolderBrowserDialog.cs: Added missing event, attributes
7629
7630 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7631
7632         * CheckBox.cs: call base method to allow to fire OnClick event
7633
7634 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7635
7636         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7637
7638 2005-05-06  Peter Bartok  <pbartok@novell.com>
7639
7640         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7641         * Screen.cs: Implemented
7642         * HelpNavigator.cs: Added
7643         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7644           property
7645         * HelpProvider.cs: Implemented all we can do until we have a CHM
7646           help library (which means that "What's This" does work now)
7647
7648 2005-05-06  Jackson Harper  <jackson@ximian.com>
7649
7650         * XplatUIX11.cs: Fix waking up the main loop.
7651                 
7652 2005-05-05  Peter Bartok  <pbartok@novell.com>
7653
7654         * XplatUI.cs: Updated revision
7655         * Form.cs: Removed enless loop
7656         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7657         * Label.cs (OnPaint): Added call to base.OnPaint()
7658         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7659         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7660         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7661         * AxHost.cs: Added
7662         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7663         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7664           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7665           reuse of ToolTipWindow by other controls
7666         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7667         * XplatUIX11.cs: Now clipping drawing area (experimental)
7668         * PictureBox.cs: Moved base.OnPaint() call to end of method
7669         * Theme.cs: Fixed ToolTip abstracts to match new format
7670         * ErrorProvider.cs: Implemented
7671
7672 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7673
7674         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7675         * LinkLabel.cs:
7676                 - Adds cursors
7677                 - Handles focus
7678                 - Implements LinkBehavior
7679                 - Fixes many issues
7680
7681 2005-05-03  Jackson Harper  <jackson@ximian.com>
7682
7683         * ListView.cs: Calculate the scrollbar positioning on resize and
7684         paint, so they get put in the correct place.
7685
7686 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7687
7688         * ColorDialogs.cs: The small color panels are now handled by
7689           SmallColorControl. This fixes drawing of the focus rectangle
7690           and adds a 3D border.
7691
7692 2005-05-03  Peter Bartok  <pbartok@novell.com>
7693
7694         * Control.cs: Modified version of Jonathan Chamber's fix for
7695           double-buffering
7696
7697 2005-05-03  Jackson Harper  <jackson@ximian.com>
7698
7699         * ListView.cs: Remove redraw variable. Control now handles whether
7700         or not a redraw needs to be done, and will only raise the paint
7701         event if redrawing is needed.
7702
7703 2005-05-03  Jackson Harper  <jackson@ximian.com>
7704
7705         * Splitter.cs: No decorations for the splitter form. Cache the
7706         hatch brush.
7707
7708 2005-05-03  Jackson Harper  <jackson@ximian.com>
7709
7710         * TreeView.cs: Use dashed lines to connect nodes. Use the
7711         ControlPaint method for drawing the focus rect instead of doing
7712         that in treeview.
7713
7714 2005-05-02  Peter Bartok  <pbartok@novell.com>
7715
7716         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7717
7718 2005-04-29  Jackson Harper  <jackson@ximian.com>
7719
7720         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7721         entire image buffer. Just clear the clipping rectangle.
7722
7723 2005-04-29  Jackson Harper  <jackson@ximian.com>
7724
7725         * ThemeWin32Classic.cs: Don't draw list view items that are
7726         outside the clipping rectangle.
7727
7728 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7729
7730         * ListBox.cs: added horizontal item scroll
7731
7732 2005-04-29  Jackson Harper  <jackson@ximian.com>
7733
7734         * ThemeWin32Classic.cs: Remove some old debug code that was
7735         causing flicker with the new double buffering code.
7736
7737 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7738
7739         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7740         behave like combobox and comboboxlist (still not sure if this is
7741         correct though).
7742
7743 2005-04-28  Jackson Harper  <jackson@ximian.com>
7744
7745         * ThemeWin32Classic.cs: Don't fill the middle of progress
7746         bars. This fills areas outside of the clip bounds that don't need
7747         to be filled.
7748
7749 2005-04-28  Jackson Harper  <jackson@ximian.com>
7750
7751         * Control.cs: Don't expose functionality to touch the image buffers.
7752         * ProgressBar.cs:
7753         * ListView.cs: We do not need to (and no longer can) manipulate
7754         the image buffers directly. All of this is handled by Control.
7755
7756 2005-04-28  Peter Bartok  <pbartok@novell.com>
7757
7758         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7759           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7760           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7761
7762 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7763
7764         * Combobox:
7765                 - Adjust control's height for non-simple comboboxes (bug fix)
7766                 - Remove dead code
7767         * MenuAPI.cs: remove unused var
7768         * ScrollBar.cs: remove unsed var
7769                  
7770         * ListBox.cs: unselect items when clearing
7771
7772 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7773
7774         * ListControl.cs: honors OnPositionChanged and default Selected Item
7775         * ListBox.cs: unselect items when clearing
7776
7777 2005-04-27  Jackson Harper  <jackson@ximian.com>
7778
7779         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7780         if a "correct" keyboard is not found. This will make us not crash,
7781         but might give some users bad keyboard layouts...seems to be the
7782         same thing rewind does.
7783
7784 2005-04-27  Jackson Harper  <jackson@ximian.com>
7785
7786         * BindingManagerBase.cs: Attach the current/position changed
7787         handlers to their respective events.
7788
7789 2005-04-27  Jackson Harper  <jackson@ximian.com>
7790
7791         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7792         not just a blit.
7793         * ThemeWin32Classic.cs: Don't fill the background for picture
7794         boxes. This could overright user drawing.
7795         * ComboBox.cs: Just fill the clipping rect not the entire client
7796         rect when drawing the background. This prevents pieces of the
7797         image buffer from getting overwritten and is theoretically faster.
7798
7799 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7800
7801         * ComboBox.cs: Databinding support fixes, fire missing events
7802         * ListControl.cs: implement missing methods and properties, fixes
7803         * ThemeWin32Classic.cs: Databiding support on Drawing
7804         * CheckedListBox.cs: Databinding support fixes, fire missing events
7805         * ListBox.cs: Databinding support fixes, fire missing events
7806         
7807 2005-04-25  Peter Bartok  <pbartok@novell.com>
7808
7809         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7810
7811 2005-04-25  Jackson Harper  <jackson@ximian.com>
7812
7813         * TreeView.cs: Use the horizontal scrollbars height not width when
7814         determining how much of the client area is available.
7815
7816 2005-04-25  Jackson Harper  <jackson@ximian.com>
7817
7818         * Control.cs: Double buffering is handled differently now. As per
7819         the spec, the extra buffer is created in the WM_PAINT message and
7820         passed down to the control's drawing code.
7821         * GroupBox.cs:
7822         * Label.cs:
7823         * CheckBox.cs:
7824         * ProgressBar.cs:
7825         * RadioButton.cs:
7826         * ColorDialog.cs:
7827         * ComboBox.cs:
7828         * PropertyGridView.cs:
7829         * UpDownBase.cs:
7830         * MessageBox.cs:
7831         * MenuAPI.cs:
7832         * ListView.cs:
7833         * ButtonBase.cs:
7834         * SizeGrip.cs:
7835         * ScrollBar.cs:
7836         * ListBox.cs:
7837         * TrackBar.cs:
7838         * ToolBar.cs:
7839         * PictureBox.cs:
7840         * DateTimePicker.cs:
7841         * StatusBar.cs:
7842         * TreeView.cs: Update to new double buffering system.
7843         * MonthCalendar.cs: Uncomment block, as Capture is now
7844         working. Update to new double buffering
7845         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7846         * PaintEventArgs.cs: New internal method allows us to set the
7847         graphics object. This is used for double buffering.
7848         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7849         rectangle. The internal paint_area var has been removed from
7850         StatusBar. The clipping rect should be used instead.
7851         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7852         * TabPage.cs: The RefreshTabs method was removed, so just call the
7853         tab controls Refresh method now.
7854         * TabControl.cs: Update to new double buffering. Make sure the
7855         handle is created before sizing the tab pages, otherwise we will
7856         get stuck in a loop.
7857
7858 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7859
7860         * LinkLabel.cs: Fix typo, bug #74719; patch
7861           from Borja Sanchez Zamorano
7862
7863 2005-04-22  Jackson Harper  <jackson@ximian.com>
7864
7865         * TreeNode.cs: Implement Handle stuff.
7866         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7867
7868 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7869
7870         * DataGridTextBoxColumn.cs: call base constructors, fixes
7871         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7872         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7873         * DataGridTableStyle.cs: implements create default column styles
7874         * DataGridBoolColumn.cs: which types can handle
7875         * DataGrid.cs: missing methods, fixes, new functionality
7876         * DataGridColumnStyle.cs: fixes
7877
7878 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7879         * FolderBrowserDialog.cs:
7880         - Use a thread to fill the TreeView
7881         - Adjusted some sizes
7882
7883 2005-04-19  Peter Bartok  <pbartok@novell.com>
7884
7885         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7886           property. Fixes #74360.
7887
7888 2005-04-19  Jackson Harper  <jackson@ximian.com>
7889
7890         * XEventQueue.cs: Lock when getting the lockqueue size.
7891         * PictureBox.cs: Call base OnPaint
7892         
7893 2005-04-19  Peter Bartok  <pbartok@novell.com>
7894
7895         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7896           messages were no longer being processed (this broke BeginInvoke)
7897
7898           
7899 2005-04-18  Jackson Harper  <jackson@ximian.com>
7900
7901         * TreeView.cs: buglet that caused node images to get drawn
7902         regardless of whether or not they were in the clipping rectangle.
7903
7904 2005-04-18  Jackson Harper  <jackson@ximian.com>
7905
7906         * CurrencyManager.cs: There are four rules for GetItemProperties:
7907         - If the type is an array use the element type of the array
7908         - If the type is a typed list, use the type
7909         - If the list contains an Item property that is not an object, use
7910         that property
7911         - use the first element of the list if there are any elements in
7912         the list.
7913         
7914 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7915
7916         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7917         click. This handles offsets for scrolling properly and reduces
7918         memory. Also fixed GetNode to not offset now that TopNode works
7919         properly.
7920         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7921         
7922 2005-04-17  Jackson Harper  <jackson@ximian.com>
7923
7924         * CursorConverter.cs: Initial implementation.
7925
7926 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7927
7928         * ListControl.cs: work towards complex data binding support on ListControl
7929         * CurrencyManager.cs: work towards complex data binding support on ListControl
7930         * ListBox.cs: work towards complex data binding support on ListControl
7931
7932
7933 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7934
7935         * GridTableStylesCollection.cs: fixes name and constructor
7936         * DataGridTableStyle.cs: fixes
7937         * DataGridBoolColumn.cs: fixes names and constructors
7938         * DataGrid.cs: define methods and properties. Some init implementations
7939         * DataGridCell.cs: define methods and properties. Some init implementations
7940         * GridTablesFactory.cs: Define methods and properties
7941
7942 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7943
7944         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7945         graphics port changes.  We still want the coordinates in global screen
7946         coordinates.
7947
7948 2005-04-14  Jackson Harper  <jackson@ximian.com>
7949
7950         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7951         check plus minus or checkbox clicks unless those features are enabled.
7952
7953 2005-04-14  Jackson Harper  <jackson@ximian.com>
7954
7955         * TreeView.cs: Add methods for setting the top and bottom visible
7956         nodes. TreeNode::EnsureVisible uses these methods.
7957         * TreeNode.cs: Implement EnsureVisible
7958
7959 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
7960
7961         * Form.cs: Pospone menu assignation if the window has not been created yet
7962         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
7963         size and position
7964
7965 2005-04-12  Jackson Harper  <jackson@ximian.com>
7966
7967         * TreeView.cs: Set the TopNode properly when scrolling
7968         occurs. This has the added benifit of reducing the amount of
7969         walking that needs to be done when drawing. Also removed an old
7970         misleading TODO.
7971         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
7972         
7973 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
7974
7975         * Timer.cs: fixes interval setting when the timer is already enabled
7976         
7977 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
7978
7979         * FolderBrowserDialog.cs: First approach
7980
7981 2005-04-09  Peter Bartok  <pbartok@novell.com>
7982
7983         * FolderBrowserDialog: Added
7984
7985 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
7986
7987         * LinkLabel.cs: move drawing code into the theme
7988         * ThemeWin32Classic.cs: drawing code and painting background bugfix
7989         * Theme.cs: define DrawLinkLabel method
7990
7991 2005-04-05  Jackson Harper  <jackson@ximian.com>
7992
7993         * BindingContext.cs: Use weak references so these bad actors don't
7994         stay alive longer then they need to.
7995
7996 2005-04-05  Jackson Harper  <jackson@ximian.com>
7997
7998         * ListControl.cs: Basic implementation of complex databinding.
7999         * ComboBox.cs:
8000         * ListBox.cs: Add calls to ListControl databinding methods.
8001
8002 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8003
8004         * FileDialog.cs:
8005           - Don't change PopupButtonState to Normal when the
8006             PopupButton gets pressed several times.
8007           - Renamed ButtonPanel to PopupButtonPanel
8008
8009 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8010
8011         * ColorDialog.cs: Use cached objects instead of creating them
8012         * LinkLabel.cs: Use cached objects instead of creating them
8013         * Splitter.cs: Use cached objects instead of creating them
8014         * FontDialog.cs: Use cached objects instead of creating them
8015         * PropertyGridView.cs: Use cached objects instead of creating them
8016         * MessageBox.cs: Use cached objects instead of creating them
8017         * FileDialog.cs: Use cached objects instead of creating them
8018         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8019         * TreeView.cs: Use cached objects instead of creating them
8020         
8021 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8022
8023         * Control.cs: use Equals to compare the font since no == op
8024         * ScrollBar.cs: use Equals to compare the font since no == op
8025
8026 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8027
8028         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8029
8030 2005-04-01  Jackson Harper  <jackson@ximian.com>
8031
8032         * Binding.cs: Implement IsBinding.
8033         * BindingManagerBase.cs:
8034         * PropertyManager.cs:
8035         * CurrencyManager.cs: Add IsSuspended property.
8036
8037 2005-04-01  Jackson Harper  <jackson@ximian.com>
8038
8039         * Binding.cs: Had some IsAssignableFrom calls backwards.
8040
8041 2005-04-01  Jackson Harper  <jackson@ximian.com>
8042
8043         * Binding.cs: Handle null data members when pulling data.
8044         * PropertyManager.cs: Handle the data member being a property that
8045         does not exist.
8046
8047 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8048
8049         * DataGridTextBoxColumn.cs: fixes signature
8050         * DataGrid.cs: calls right constructor
8051
8052 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8053
8054         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8055         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8056         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8057         * DataGridTableStyle.cs: implements DataGridTableStyle
8058         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8059         * DataGridTextBox.cs: implements DataGridTextBox
8060         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8061
8062 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8063
8064         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8065
8066 2005-03-29  Peter Bartok  <pbartok@novell.com>
8067
8068         * Application.cs:
8069           - Properly implemented CompanyName property
8070           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8071             returns a path that includes CompanyName, ProductName and
8072             Version (fixes bug #70330)
8073
8074 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8075
8076         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8077           fixes bug #72588.
8078
8079 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8080
8081         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8082         
8083           - Added ReadOnly CheckBox
8084           - Further refactoring: moved some code from Open-/SaveFileDialog
8085             to FileDialog
8086
8087 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8088
8089         * OpenFileDialog.cs: Fixed CheckFileExists
8090         * FileDialog.cs:
8091           Moved FileView and DirComboBox outside FileDialog class.
8092           They can now be used outside FileDialog
8093
8094 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8095
8096         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8097         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8098
8099 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8100
8101         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8102           - Added missing CreatePrompt property in SaveDialog
8103           - Overall SaveDialog handling should be better now
8104           - Added non standard ShowHiddenFiles property
8105           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8106           - Added InitialDirectory and RestoreDirectory support
8107
8108 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8109
8110         * FileDialog.cs: Made dirComboBox usable
8111
8112 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8113
8114         * FileDialog.cs: Added Filter support (case sensitiv)
8115
8116 2005-03-24  Jackson Harper  <jackson@ximian.com>
8117
8118         * TabControl.cs: Need a couple more pixels for the lines.
8119
8120 2005-03-23  Jackson Harper  <jackson@ximian.com>
8121
8122         * TabControl.cs: Give the tab page focus when it is selected.
8123
8124 2005-03-23  Jackson Harper  <jackson@ximian.com>
8125
8126         * TabControl.cs: Account for the drawing of tabs borders when
8127         invalidating. If the slider was clicked dont do click detection on
8128         the tabs.
8129
8130 2005-03-23  Jackson Harper  <jackson@ximian.com>
8131
8132         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8133
8134 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8135
8136         * CategoryGridEntry.cs: Added
8137         * GridItem.cs: Added helper properties
8138         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8139         * GridEntry.cs: Updated code for collection
8140         * PropertyGrid.cs: Cleaned up some formatting
8141         * PropertyGridView.cs: Added drop down functionality for enums.
8142         * GridItemCollection.cs: Added enumerator logic
8143         * PropertyGridEntry.cs: Added
8144
8145 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8146
8147         * FileDialog.cs:
8148           - Removed unnecessary commented code
8149           - Fixed handling for entering the filename manually in the combobox
8150
8151 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8152
8153         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8154
8155 2005-03-18  Peter Bartok  <pbartok@novell.com>
8156
8157         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8158           them being touching the border
8159
8160 2005-03-18  Peter Bartok  <pbartok@novell.com>
8161
8162         * TextControl.cs: Quick hack to center text better
8163
8164 2005-03-18  Peter Bartok  <pbartok@novell.com>
8165
8166         * ControlPaint.cs:
8167           - Don't throw NotImplemented exceptions, just print a notice once
8168             instead (requested by Miguel). This makes running existing SWF
8169             apps a bit easier
8170         * Control.cs:
8171           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8172           - Added context menu trigger on right click
8173         * Panel.cs: Trigger invalidate on resize
8174         * StatusBar.cs:
8175           - Removed old double-buffer drawing
8176           - Added ResizeRedraw style to force proper update of statusbar
8177         * ListView.cs:
8178           - Removed debug output
8179         * ThemeWin32Classic.cs:
8180           - Fixed drawing of status bar, now draws Text property if there
8181             are no defined panels
8182
8183 2005-03-18  Jackson Harper  <jackson@ximian.com>
8184
8185         * ImageList.cs: When the image stream is set pull all the images
8186         from it.
8187         * ImageListStreamer.cs: Implement reading image list streams.
8188
8189 2005-03-18  Peter Bartok  <pbartok@novell.com>
8190
8191         * ThemeWin32Classic.cs (DrawPictureBox):
8192           - Fixed calculations for centered drawing
8193           - Fixed drawing for normal mode, not scaling the image on normal
8194
8195 2005-03-18  Peter Bartok  <pbartok@novell.com>
8196
8197         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8198           textbox
8199         * FileDialog.cs:
8200           - Made Open/Save button the accept button for FileDialog
8201           - Tied the cancel button to the IButtonControl cancel button
8202           - Save/Open now properly builds the pathname
8203           - Now handles user-entered text
8204           - Preventing crash on right-click if no item is selected
8205           - Fixed Text property, now uses contents of textbox
8206           - Fixed SelectedText property, now just returns the text part that
8207             is selected in the text box
8208
8209 2005-03-18  Jackson Harper  <jackson@ximian.com>
8210
8211         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8212         rect, make sure to de-adjust the interior rect after drawing the
8213         tab text.
8214
8215 2005-03-18  Peter Bartok  <pbartok@novell.com>
8216
8217         * MenuAPI.cs: Remove menu *before* executing selected action to
8218           prevent the menu from 'hanging around'
8219           
8220 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8221
8222         * XplatUIOSX.cs: Implemented WorkingArea property
8223
8224 2005-03-17  Peter Bartok  <pbartok@novell.com>
8225
8226         * XplatUIX11.cs: Fixed menu coord calculations
8227         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8228           for calculating offsets
8229
8230 2005-03-17  Peter Bartok  <pbartok@novell.com>
8231
8232         * Hwnd.cs: Do not consider menu presence for default client
8233           rectangle location/size
8234         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8235           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8236           translation functions
8237         * FileDialog.cs: Fixed (what I presume is a) typo
8238
8239 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8240
8241         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8242           X access (avoids X-Async errors)
8243
8244 2005-03-16  Jackson Harper  <jackson@ximian.com>
8245
8246         * TabControl.cs: Raise the SelectedIndexChanged event.
8247
8248 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8249
8250         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8251           - Removed vertical ToolBar and replaced it with a custom panel
8252             (desktop and home button already work)
8253           - Added Help button (some controls get resized or relocated then)
8254           - Draw correct text depending on Open or Save.
8255           - Fixed some typos...
8256
8257 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8258
8259         * ScrollBar.cs:
8260           - Only change Maximum and Minimum when need it (bug fix)
8261
8262 2005-03-15  Peter Bartok  <pbartok@novell.com>
8263
8264         * Form.cs: Use Handle for icon, to trigger creation if
8265           the window does not yet exist
8266         * Control.cs:
8267           - CanSelect: Slight performance improvement
8268           - Focus(): Preventing possible recursion
8269           - Invalidate(): Removed ControlStyle based clear flag setting
8270           - WM_PAINT: fixed logic for calling OnPaintBackground
8271           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8272             EraseWindowBackground if the control doesn't paint background
8273         * XplatUIWin32.cs:
8274           - Moved EraseWindowBackground() method to internal methods
8275           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8276             is sent via SendMessage on BeginPaint call on Win32
8277         * XplatUIX11.cs:
8278           - Added EraseWindowBackground() method
8279           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8280             PaintEventStart, which more closely matches Win32 behaviour
8281           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8282           - Fixed SetFocus() to properly deal with client and whole windows
8283         * Hwnd.cs: Added ErasePending property
8284         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8285         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8286
8287 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8288
8289         * XplatUIOSX.cs:
8290           - Fix hard loop when timers exist.
8291           - Fix bugs with middle and right click for 3 button mice.
8292
8293 2005-03-11  Peter Bartok  <pbartok@novell.com>
8294
8295         * XplatUIX11.cs:
8296           - get_WorkingArea: Need to call X directly, GetWindowPos only
8297             returns cached data now
8298           - Added sanity check to GetWindowPos hwnd usage
8299
8300 2005-03-11  Jackson Harper  <jackson@ximian.com>
8301
8302         * BindingManagerBase.cs: This method isn't used anymore as
8303         PullData now updates the data in the control.
8304
8305 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8306
8307         * Form.cs: fixes menu drawing on X11
8308         * MenuAPI.cs:  fixes menu drawing on X11
8309
8310 2005-03-11  Peter Bartok  <pbartok@novell.com>
8311
8312         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8313           from Jonathan Gilbert; should fix bug #73606
8314         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8315           in Screen coordinates. Thanks, Jordi.
8316         * Form.cs: Added missing attribute
8317
8318 2005-03-11  Peter Bartok  <pbartok@novell.com>
8319
8320         * Form.cs:
8321           - Rudimentary Mdi support
8322           - Removed outdated FormParent code
8323           - Implemented lots of missing properties and methods, still missing
8324             transparency support
8325           - Added missing attributes
8326           - Implemented support for MaximumBounds
8327           - Added firing of various events
8328         * XplatUI.cs: Added SetIcon() method
8329         * XplatUIDriver.cs: Added SetIcon() abstract
8330         * XplatUIOSX.cs: Stubbed out SetIcon() method
8331         * XplatUIX11.cs:
8332           - Implemented SetIcon() support
8333           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8334           - Switched to unix line endings
8335         * XplatUIWin32.cs:
8336           - Made POINT internal so for can access it as part of MINMAX
8337           - Implemented SetIcon() support
8338           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8339             native Mdi support again, might have to go managed)
8340         * Control.cs: Now fires the StyleChanged event
8341         * MdiClient.cs: Added; still mostly empty
8342
8343 2005-03-10  Peter Bartok  <pbartok@novell.com>
8344
8345         * SaveFileDialog.cs: Added emtpy file
8346
8347 2005-03-08  Peter Bartok  <pbartok@novell.com>
8348
8349         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8350           in turn triggers OnCreateContro) when creating a handle for the
8351           first time.
8352         * TextControl.cs: Fixed endless loop in certain cases when
8353           replacing the current selection
8354
8355 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8356
8357         * ScrollBar.cs:
8358           - Honors NewValue changes in Scroll events allowing apps to change it
8359           - Adds First and Last Scroll events
8360           - Fixes Thumb events
8361
8362 2005-03-07  Peter Bartok  <pbartok@novell.com>
8363
8364         * Hwnd.cs: Added DefaultClientRectangle property
8365         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8366           more detailed debug information
8367         * XplatUIX11.cs:
8368           - Fixed size-change feedback loop, where we would pull an old size
8369             off the queue and mistakenly change our window's size to an
8370             earlier value
8371           - Now compressing ConfigureNotify events, to reduce looping and
8372             redraw issues
8373         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8374           is called
8375
8376 2005-03-07  Jackson Harper  <jackson@ximian.com>
8377
8378         * Binding.cs: Push data pushes from data -> property. Check if the
8379         property is readonly when attempting to set it.
8380
8381 2005-03-07  Jackson Harper  <jackson@ximian.com>
8382
8383         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8384         instead of IsSubclassOf. Pulling data now sets the value on the
8385         control.
8386         * PropertyManager.cs:
8387         * CurrencyManager.cs: Just need to pull data when updating now,
8388         because PullData will set the value on the control.
8389
8390 2005-03-04  Jackson Harper  <jackson@ximian.com>
8391
8392         * Binding.cs: Implement data type parsing and converting on pulled
8393         data. TODO: Are there more ways the data can be converted?
8394
8395 2005-03-04  Jackson Harper  <jackson@ximian.com>
8396
8397         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8398         controls Validating method so we can repull the data when the
8399         control loses focus.
8400
8401 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8402
8403         * ColumnHeader.cs:
8404           - Fixes null string format
8405           
8406         * ListView.cs:
8407           - Adds enum type checks
8408           - Fixes redrawing and recalc need after changing some properties
8409           - Fixes on focus_item set after the event
8410           - Fixes adding columns after the control has been created
8411           
8412         * ThemeWin32Classic.cs:
8413           - Fixes CheckBox focus rectangle
8414           - Fixes ColumnHeader drawing
8415
8416
8417 2005-03-03  Jackson Harper  <jackson@ximian.com>
8418
8419         * Binding.cs: Bind to <Property>Changed events so we can detect
8420         when properties are changed and update the data.
8421
8422 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8423
8424         * ImageList.cs:
8425           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8426           - Fixes ImageList constructor with ImageList container
8427           - Fixes image scaling (wrong parameters at DrawImage)
8428
8429 2005-02-02  Jackson Harper  <jackson@ximian.com>
8430
8431         * Binding.cs: Make property searches case-insensitive. Eliminate
8432         some duplicated code.
8433
8434 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8435
8436         * ComboBox.cs:
8437                 - Handle focus event
8438                 - Fix scrollbar events
8439                 - Discard highlighted item if remove it
8440                 - Fixes SelectedItem with strings
8441
8442 2005-03-01  Peter Bartok  <pbartok@novell.com>
8443
8444         * Control.cs:
8445           - Fixed Visible property, now follows (once again) parent chain
8446             to return false if any control in the chain is visible=false
8447           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8448           - Fixed several places where is_visible instead of Visible was used
8449           - Implemented FIXME related to focus selection when setting focused
8450             control to be invisible
8451
8452         * XplatUIWin32.cs: Now using proper method to find out if window is
8453           visible. Thanks to Jordi for pointing it out
8454
8455 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8456
8457         * ComboBox.cs: show/hide scrollbar instead of creating it
8458
8459 2005-02-27  Jackson Harper  <jackson@ximian.com>
8460
8461         * CurrencyManager.cs: Add PositionChanged stuff.
8462
8463 2005-02-27  Peter Bartok  <pbartok@novell.com>
8464
8465         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8466         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8467         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8468         * XplatUIX11.cs:
8469           - Implemented GetMenuDC()
8470           - Implemented GetMenuOrigin()
8471           - Implemented ReleaseMenuDC()
8472           - Implemented generation of WM_NCPAINT message
8473           - Implemented generation and handling of WM_NCCALCSIZE message
8474         * Form.cs: Added debug helper message for Jordi's menu work
8475         * Hwnd.cs:
8476           - Modified ClientRect property; added setter, fixed getter to handle
8477             setting of ClientRect
8478           - Added MenuOrigin property
8479
8480 2005-02-26  Peter Bartok  <pbartok@novell.com>
8481
8482         * XplatUIX11.cs:
8483           - Destroys the caret if a window that's being destroyed contains it
8484           - Ignores expose events coming from the X11 queue for windows that
8485             already are destroyed
8486           - Now uses the proper variable for handling DestroyNotify, before we
8487             marked the wrong window as destroyed
8488           - Improved/added some debug output
8489
8490 2005-02-26  Peter Bartok  <pbartok@novell.com>
8491
8492         * X11Keyboard.cs: Fixes to work on 64bit systems
8493
8494 2005-02-26  Peter Bartok  <pbartok@novell.com>
8495
8496         * Control.cs:
8497           - Now calling OnHandleDestroyed from DestroyHandle()
8498             instead of Dispose()
8499           - Removed bogus call to controls.Remove() from DestroyHandle()
8500
8501 2005-02-26  Peter Bartok  <pbartok@novell.com>
8502
8503         * Control.cs: Properly destroy child windows when our handle is
8504           destroyed
8505
8506 2005-02-25  Peter Bartok  <pbartok@novell.com>
8507
8508         * XplatUI.cs:
8509           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8510           - Alphabetized Static Methods and Subclasses
8511
8512         * XplatUIX11.cs:
8513           - Added XException class to allow custom handling of X11 exceptions
8514           - Created custom X11 error handler, tied into XException class
8515           - Added support for MONO_XEXCEPTIONS env var to allow the user
8516             to either throw an exception on X errors or continue running
8517             after displaying the error
8518           - Added handling of DestroyNotify message
8519           - Added handler for CreateNotify message (still disabled)
8520           - Improved (tried to at least) Where method to provide file and lineno
8521         * X11Structs.cs:
8522           - Added XErrorHandler delegate
8523           - Added XRequest enumeration (to suppor translation of errors)
8524
8525 2005-02-25  Jackson Harper  <jackson@ximian.com>
8526
8527         * PropertyManager.cs: Implement editing features
8528         * CurrencyManager.cs:
8529         * Binding.cs: First attempt at UpdateIsBinding
8530         * BindingManagerBase.cs: Call UpdateIsBinding before
8531         pushing/pulling data.
8532
8533 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8534
8535         * MenuAPI.cs: Respect disabled items
8536         * ThemeWin32Classic.cs
8537                 - Caches ImageAttributes creation for DrawImageDisabled
8538                 - Fixes vertical menu line drawing
8539                 - Draws disabled arrows in disable menu items
8540
8541 2005-02-24  Peter Bartok  <pbartok@novell.com>
8542
8543         * Hwnd.cs:
8544           - Added UserData property to allow associating arbitrary objects
8545             with the handle
8546           - Fixed leak; now removing Hwnd references from static windows array
8547         * XplatUIWin32.cs:
8548           - Fixed Graphics leak in PaintEventEnd
8549           - Removed usage of HandleData, switched over to Hwnd class
8550         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8551
8552 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8553
8554         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8555         * ScrollBar.cs: Fixes bug
8556         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8557          keyboard navigation enhancements
8558
8559 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8560
8561         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8562         * GroupBox.cs: Add control styles
8563         * Label.cs: Add control styles
8564         * UpDownBase.cs: Add control styles
8565         * ListBox.cs: Add control styles
8566         * XplatUIWin32.cs: Fixes wrong parameter order
8567
8568
8569 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8570
8571         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8572
8573 2005-02-23  Jackson Harper  <jackson@ximian.com>
8574
8575         * PropertyManager.cs: Implement property binding. This doesn't
8576         seem to work yet though as (I think) there are some bugs in
8577         System.ComponentModel.PropertyDescriptor.
8578         * BindingContext.cs: Use new PropertyManager constructor.
8579
8580 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8581
8582         * ProgressBar.cs: use clip region in ProgressBar
8583         * ThemeWin32Classic.cs: use clip region in ProgressBar
8584
8585 2004-02-22  Jackson Harper  <jackson@ximian.com>
8586
8587         * BindingsCollection.cs: Remove some debug code.
8588
8589 2005-02-22  Jackson Harper  <jackson@ximian.com>
8590
8591         * BindingContext.cs:
8592         * ControlBindingsCollection.cs:
8593         * CurrencyManager.cs:
8594         * Binding.cs:
8595         * BindingManagerBase.cs: Initial implementation
8596         * BindingsCollection.cs: Add an internal contains method that the
8597         BindingManagerBase uses to ensure bindings aren't added twice to
8598         the collection.
8599         * PropertyManager.cs: Stubbed out.
8600         * Control.cs:
8601         * ContainerControl.cs: Hook up databinding
8602         
8603 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8604
8605         * XplatUIOSX.cs:
8606           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8607           Fixed Invalidate/Update chain.
8608           Fixed tons of other minor bugs (this is almost a complete rewrite).
8609
8610 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8611
8612         * ComboBox.cs: do subcontrol creation when the control is created
8613
8614 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8615
8616         * Label.cs: fixes image drawing (image and imagelist)
8617         * ThemeWin32Classic.cs: cache brushes
8618         
8619 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8620
8621         * Form.cs: Move menu drawing code to Theme class
8622         * ComboBox.cs: Move ComboBox drawing code to Theme class
8623         * MenuItem.cs: Move menu drawing code to Theme class
8624         * MenuAPI.cs: Move menu drawing code to Theme class
8625         * ThemeWin32Classic.cs: New methods
8626         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8627         * ListBox.cs: Move Listbox drawing code to Theme class
8628         * Theme.cs: New methods
8629
8630 2005-02-20  Peter Bartok  <pbartok@novell.com>
8631
8632         * Control.cs:
8633           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8634             only process mnemonics on those)
8635           - Fixed event sequence for key handling; first calling
8636             ProcessKeyEventArgs now
8637         * TextBoxBase.cs:
8638           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8639             for processing non-character keys
8640           - Fixed WM_CHAR to generate proper event sequence before processing
8641         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8642           generation
8643
8644 2005-02-19  Peter Bartok  <pbartok@novell.com>
8645
8646         * UserControl.cs: Added TextChanged event; added attributes
8647         * SizeGrip.cs: Implemented resizing and optional display of grip
8648         * Form.cs: Fixed attribute
8649         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8650           Changed meaning of ScrollWindow bool argument; instead of the
8651           clear attribute (which will be true usually anyway), it gives the
8652           option of moving child controls as well.
8653         * XplatUIX11.cs:
8654           - Changed to match new ScrollWindow argument
8655           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8656             now handles the implicit parent window a WM puts around us
8657         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8658           to work)
8659         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8660         * TreeView.cs: Adjusted to new ScrollWindow arguments
8661
8662 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8663
8664         * Form.cs: Menu integration with non-client area
8665         * MenuItem.cs: Menu integration with non-client area
8666         * MenuAPI.cs: Menu integration with non-client area
8667
8668 2005-02-18  Peter Bartok  <pbartok@novell.com>
8669
8670         * MethodInvoker.cs: Added
8671         * MdiLayout.cs: Added
8672         * SendKeys.cs: Started implementation
8673         * ErrorIconAlignment.cs: Added
8674
8675 2005-02-18  Peter Bartok  <pbartok@novell.com>
8676
8677         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8678         * Form.cs: Added handling for Menu-related Non-client messages
8679
8680 2005-02-17  Peter Bartok  <pbartok@novell.com>
8681
8682         * UpDownBase.cs: Fixed typo, compilation errors
8683         * DomainUpDown.cs: Fixed attribute value
8684
8685 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8686
8687         * UpDownBase.cs: Attach entry events.
8688         Propagate events.
8689         Add ForeColor property, Focused, InterceptArrowKeys (interception
8690         does not work yet).
8691
8692 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8693
8694         * Form.cs:
8695                 - Redraw non client are on Setmenu
8696                 - Calc proper menu starting point
8697
8698 2005-02-17  Peter Bartok  <pbartok@novell.com>
8699
8700         * Application.cs: Fixed message_filter check
8701
8702 2005-02-17  Peter Bartok  <pbartok@novell.com>
8703
8704         * Application.cs: Now calls registered message filters
8705         * DockStyle.cs: Fixed attribute
8706         * Form.cs: Fixed attribute
8707         * Menu.cs: Fixed attribute
8708         * ToolTip.cs: Fixed attribute
8709         * TreeNode.cs: Added missing attributes and arranged in regions
8710         * PropertyGrid.cs: Fixed signatures
8711         * TreeNodeCollection.cs: Added attributes
8712         * Splitter.cs: Added missing attributes; arranged into regions
8713         * TabPage.cs: Added missing attributes; arranged into regions
8714         * TextBoxBase.cs: Added missing attributes
8715         * TextBox.cs: Added missing attributes
8716         * ArrangeDirection.cs: Added missing attributes
8717         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8718         * ToolBarButton.cs: Fixed attributes
8719         * AnchorStyles.cs: Fixed attribute
8720         * TrackBar.cs: Fixed attributes
8721         * TabControl.cs: Added missing attributes and arranged into regions
8722         * ToolBar.cs: Fixed attribute
8723         * StatusBar.cs: Fixed signature, organized into regions and added
8724           attributes
8725         * StatusBarPanel.cs: Fixed attributes
8726         * ContentsResizedEventArgs.cs: Implemented
8727         * ContentsResizedEventHandler.cs: Implemented
8728         * DateBoldEventArgs.cs: Implemented
8729         * DateBoldEventHandler.cs: Implemented
8730         * UpDownEventArgs.cs: Implemented
8731         * UpDownEventHandler.cs: Implemented
8732         
8733 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8734
8735         * Form.cs: first Menu NC refactoring
8736         * MenuAPI.cs: first Menu NC refactoring
8737         
8738 2005-02-16  Peter Bartok  <pbartok@novell.com>
8739
8740         * ImeMode.cs: Added missing attributes
8741         * Menu.cs: Fixed attribute
8742         * GroupBox.cs: Fixed attribute
8743         * Label.cs: Fixed attribute
8744         * ColorDialog.cs (RunDialog): Removed TODO attribute
8745         * ComboBox.cs: Fixed attributes
8746         * ListControl.cs: Added missing attributes
8747         * PropertyGrid.cs: Fixed attributes
8748         * Control.cs: Fixed attributes
8749         * ListViewItem.cs: Added TypeConverter attribute
8750         * NotifyIcon.cs: Fixed attributes
8751         * ListView.cs: Fixed attributes
8752         * ButtonBase.cs: Fixed attribute
8753         * ImageList.cs: Added missing attributes
8754         * ContainerControl.cs: Fixed signature
8755         * CheckedListBox.cs: Fixed attribute; added missing attributes
8756         * Panel.cs: Fixed attributes
8757         * PropertyTabChangedEventArgs.cs: Added missing attribute
8758         * PropertyValueChangedEventArgs.cs: Added missing attribute
8759         * Binding.cs: Fixed attribute
8760         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8761         * ListBox.cs: Fixed attribute; added missing attributes;
8762         * ScrollableControl.cs: Added missing attributes
8763         * PictureBox.cs: Added missing attributes; implemented missing property
8764         * DateTimePicker.cs: Added missing attributes
8765         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8766         * MonthCalendar.cs: Fixed attributes
8767         * StatusBarPanel.cs: Added missing attributes
8768         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8769
8770 2005-02-16  Peter Bartok  <pbartok@novell.com>
8771
8772         * TextBoxBase.cs: The previous method to enforce height yet remember
8773           the requested high was less than ideal, this is an attempt to do
8774           it better.
8775         * Control.cs: Added comment about possible problem
8776         * Copyright: Updated format
8777         * GridItemType.cs: Fixed swapped values
8778
8779 2005-02-15  Jackson Harper  <jackson@ximian.com>
8780
8781         * BaseCollection.cs: Use property so we never access an
8782         uninitialized list. Also initialize the list in the property.
8783
8784 2005-02-15  Peter Bartok  <pbartok@novell.com>
8785
8786         * GroupBox.cs (ProcessMnemonic): Implemented
8787         * Label.cs (ProcessMnemonic): Implemented
8788         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8789           hotkeys
8790
8791 2005-02-15  Peter Bartok  <pbartok@novell.com>
8792
8793         * RadioButton.cs (ProcessMnemonic): Implemented
8794         * CheckBox.cs (ProcessMnemonic): Implemented
8795         * Control.cs:
8796           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8797             handling
8798           - Added internal method to allow calling ProcessMnemonic from other
8799             controls
8800         * ContainerControl.cs:
8801           - Started support for handling validation chain handling
8802           - Implemented ProcessMnemonic support
8803           - Added Select() call to Active, to make sure the active control
8804             receives focus
8805         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8806           FormParent rewrite)
8807         * ThemeWin32Classic.cs:
8808           - DrawCheckBox(): Fixed stringformat to show hotkeys
8809           - DrawRadioButton(): Fixed stringformat to show hotkeys
8810         * CommonDialog.cs: Removed WndProc override, not needed
8811
8812 2005-02-14  Peter Bartok  <pbartok@novell.com>
8813
8814         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8815           missed those in the rewrite
8816
8817 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8818
8819         * NumericUpDown.cs (Increment, ToString): Add.
8820         (DecimalPlaces): implement.
8821         
8822         Add attributes.
8823         
8824         * UpDownBase.cs: Add the designer attributes.
8825
8826 2005-02-13  Peter Bartok  <pbartok@novell.com>
8827
8828         * Panel.cs: Removed border_style, now in Control
8829         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8830           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8831
8832 2005-02-13  Peter Bartok  <pbartok@novell.com>
8833
8834         * MouseButtons.cs: Added missing attributes
8835         * XplatUIStructs.cs: Added enumeration for title styles
8836         * LeftRightAlignment.cs: Added missing attributes
8837         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8838           it compatible with Graphics.FromHwnd()
8839         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8840         * Keys.cs: Added missing attributes
8841         * SelectionRange.cs: Added missing attributes
8842         * SelectionRangeConverter.cs: Added
8843         * XplatUI.cs:
8844           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8845             ReleaseMenuDC methods
8846           - Renamed ReleaseWindow to UngrabWindow
8847           - Added proper startup notice to allow version identification
8848         * Form.cs:
8849           - Added missing attributes
8850           - Removed FormParent concept
8851         * Label.cs: Removed border_style field, now in Control
8852         * RadioButton.cs: Now properly selects RadioButton when focus is
8853           received
8854         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8855         * Control.cs:
8856           - Added missing attributes
8857           - Added borderstyle handling
8858           - Removed FormParent concept support
8859           - Fixed calls to XplatUI to match changed APIs
8860           - Fixed bug that would case us to use disposed Graphics objects
8861           - Removed unneeded internal methods
8862           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8863           - SelectNextControl(): Fixed to properly check common parents
8864         * TextBoxBase.cs: Removed border_style field (now in Control)
8865         * MessageBox.cs:
8866           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8867             fixed calculations for form size
8868           - Added support for localized strings and icons
8869           - Improved form size calculations, added border
8870         * ListView.cs: Removed border_style field (now in Control)
8871         * X11Structs.cs: Moved several structs from X11 driver here
8872         * X11Keyboard.cs: Changed debug message
8873         * Application.cs: Removed FormParent concept support
8874         * CommonDialog.cs:
8875           - Resetting end_modal flag
8876           - Removed FormParent concept support
8877         * NativeWindow.cs: Removed FormParent concept support
8878         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8879           Client area and Non-Client whole window to allow support for WM_NC
8880           messages
8881         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8882           prevent using it until it supports Hwnd as per Geoff Norton's request
8883         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8884         * PictureBox.cs: Removed border_style field, now in Control
8885         * XplatUIWin32.cs: Added new driver methods
8886
8887 2005-02-12  Peter Bartok  <pbartok@novell.com>
8888
8889         * OpacityConverter.cs: Implemented
8890         * Hwnd.cs: Internal class to support drivers that need to emulate
8891           client area/non-client area window behaviour
8892
8893 2005-02-11  Peter Bartok  <pbartok@novell.com>
8894
8895         * KeysConverter.cs: Implemented
8896
8897 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8898
8899         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8900         * LinkLabel: Added missing attributes
8901         * MainMenu.cs: fixes ToString
8902         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8903         * ListBox.cs: fixes event position
8904         * TrackBar.cs: adds missing attributes and events
8905         
8906 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8907
8908         * MenuItem.cs: Use SystemInformation and bug fixes
8909         * MenuAPI.cs: Use SystemInformation and bug fixes
8910
8911 2005-02-09  Jackson Harper  <jackson@ximian.com>
8912
8913         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8914         their keystate otherwise things like VK_MENU get stuck "on".
8915
8916 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8917
8918         * ListBox.cs: Fixes AddRange bug
8919         
8920 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8921
8922         * ProgressBar.cs
8923                 - Add missing attributes
8924                 - Add missing method
8925                 
8926         * CheckedListBox.cs: Added missing attributes
8927                 - Add missing attributes
8928                 - Remove extra method
8929         
8930         * ComboBox.cs: Added missing attributes
8931         * VScrollBar.cs: Added missing attributes
8932         * ScrollBar.cs:  Added missing attributes
8933         * ListBox.cs: Fixes signature, add missing consts
8934         * LinkArea.cs:   Added missing attributes
8935         
8936
8937 2005-02-08  Peter Bartok  <pbartok@novell.com>
8938
8939         * Menu.cs: Added missing attributes
8940         * MainMenu.cs: Added missing attributes
8941         * GroupBox.cs: Added missing attributes
8942         * Label.cs: Added missing attributes
8943         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8944         * ColorDialog.cs:
8945           - Added Instance and Options properties
8946           - Added missing attributes
8947         * Cursor.cs: Made Serializable
8948         * NotifyIcon: Added missing attributes
8949         * MenuItem.cs: Added missing attributes
8950         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8951         * Panel.cs: Added Missing attributes
8952         * MonthCalendar.cs: Fixed CreateParams
8953
8954 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8955         
8956         * LinkLabel.cs:
8957                 - Fixes signature
8958                 - Fixes issues with links
8959                 - Adds the class attributes
8960
8961 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8962         
8963         * ComboBox.cs:
8964                 - Fixes button when no items available in dropdown
8965                 - Fixes repainting problems
8966                 - Adds the class attributes
8967                 
8968 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8969
8970         * XplatUIOSX.cs: Detect the menu bar and title bar height from
8971         the current theme.  Cache these on startup.
8972
8973 2005-02-07  Jackson Harper  <jackson@ximian.com>
8974
8975         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
8976         the scrollbar buttons when they are depressed.
8977
8978 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8979
8980         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
8981         Get the display size from the main displayid.  We currently dont
8982         support multiple display configurations.
8983
8984 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
8985
8986         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
8987
8988 2005-02-07  Miguel de Icaza  <miguel@novell.com>
8989
8990         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
8991
8992 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
8993
8994         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
8995
8996 2005-02-04  Jackson Harper  <jackson@ximian.com>
8997
8998         * ThemeWin32Classic.cs: Respect the clipping rect when
8999         drawing. Only fill the intersection of clips and rects so there
9000         isn't a lot of large fills.
9001         * ScrollBar.cs: Pass the correct clipping rect to the theme
9002         engine. Remove some debug code.
9003
9004 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9005         
9006         * DateTimePicker.cs:
9007                 - Fixed crash on DateTime.Parse, use Constructor instead
9008
9009 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9010         
9011         * MenuItem.cs:
9012         * MenuAPI.cs:
9013                 - Owner draw support (MeasureItem and DrawItem)
9014
9015 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9016         
9017         *  Menu.cs:
9018                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9019                 - Fixes MenuItems.Add range
9020         * MenuItem.cs:
9021                 - MergeMenu and Clone and CloneMenu functions
9022
9023 2005-02-03  Jackson Harper  <jackson@ximian.com>
9024
9025         * ScrollBar.cs: Make abstract
9026         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9027         is abstract.
9028
9029 2005-02-03  Jackson Harper  <jackson@ximian.com>
9030
9031         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9032         all the unneeded refreshes and uses invalidates with properly
9033         computed rects.
9034
9035 2005-02-03  Peter Bartok  <pbartok@novell.com>
9036
9037         * ComponentModel.cs: Added
9038         * IDataGridEditingService.cs: Added
9039         * Timer.cs: Added missing attributes
9040         * ToolTip.cs: Added missing attributes
9041
9042 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9043
9044         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9045
9046 2005-02-03  Peter Bartok  <pbartok@novell.com>
9047
9048         * ListBox.cs: Added missing attributes
9049
9050 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9051         
9052         * ListBox.cs:
9053                 - Fixes font height after font change
9054                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9055                 
9056 2005-02-02  Peter Bartok  <pbartok@novell.com>
9057
9058         * HandleData.cs: Introduced static methods to allow class
9059           to be more self-contained and track it's own HandleData objects
9060         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9061           HandleData to use new static methods
9062
9063 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9064
9065         * Combobox.cs:
9066                 - Fixes default size and PreferredHeight
9067                 - Missing events
9068                 - ObjectCollection.Insert implementation
9069                 
9070         * ListControl.cs
9071                 - Fixes signature
9072         * ListBox.cs:
9073                 - Several fixes
9074                 - ObjectCollection.Insert implementation
9075                 - No selection after clean
9076                 - Small fixes
9077
9078 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9079
9080         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9081
9082 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9083
9084         * Combobox.cs:
9085                 - Caches ItemHeight calculation for OwnerDrawVariable
9086                 - Handles dropdown properly
9087                 - Fixes several minor bugs
9088
9089 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9090
9091         * ListBox.cs:
9092                 - Fixes 71946 and 71950
9093                 - Fixes changing Multicolumn on the fly
9094                 - Fixes keyboard navigation on Multicolumn listboxes
9095
9096 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9097         
9098         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9099         crash reporter log.
9100
9101 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9102
9103         * XplatUIOSX.cs: Allow applications to actually exit.
9104
9105 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9106
9107         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9108         their parent at creation time rather than lazily later.  Fixes a major
9109         regression we were experiencing.
9110
9111 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9112
9113         * ThemeWin32Classic.cs: more date time picker painting fixes
9114         * DateTimePicker.cs: more monthcalendar drop down fixes
9115         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9116
9117 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9118
9119         * ScrollBar.cs:
9120                 - When moving the thumb going outside the control should stop the moving
9121                 - Adds the firing of missing events
9122                 - Fixes no button show if Size is not specified
9123                 - End / Home keys for keyboard navigation
9124
9125 2005-01-30  Peter Bartok  <pbartok@novell.com>
9126
9127         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9128           sanity check to prevent theoretical loop
9129         * XplatUIWin32.cs (SetVisible): Removed debug output
9130         * XplatUIX11.cs (SystrayChange): Added sanity check
9131         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9132         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9133           behaviour, valid until the X11 client window rewrite is done
9134         * TextBox.cs (ctor): Setting proper default foreground and background
9135           colors
9136
9137 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9138
9139         * Theme: Added DrawDateTimePicker to interface
9140         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9141         * DateTimePicker.cs: Created (still needs keys and painting code)
9142         * DateTimePickerFormat.cs: added
9143         * MonthCalendar.cs: fixed CreateParams for popup window mode
9144           
9145 2005-01-29  Peter Bartok  <pbartok@novell.com>
9146
9147         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9148           this should also the calculations for ligher/darker
9149         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9150
9151 2005-01-29  Peter Bartok  <pbartok@novell.com>
9152
9153         * ArrangeDirection.cs: Added
9154         * ArrangeStartingPositon.cs: Added
9155         * SystemInformation.cs: Implemented
9156         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9157           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9158           used by SystemInformation class
9159         * X11Strucs.cs: Added XSizeHints structure
9160         * MenuAPI.cs:
9161           - Fixed CreateParams to make sure the menu window is always visible
9162           - TrackPopupMenu: Added check to make sure we don't draw the
9163             menu offscreen
9164
9165 2005-01-29  Peter Bartok  <pbartok@novell.com>
9166
9167         * HandleData.cs: Added method for altering invalid area
9168         * TextBoxBase.cs: Implemented TextLength
9169
9170 2005-01-28  Peter Bartok  <pbartok@novell.com>
9171
9172         * XplatUIX11.cs: Improvement over last patch, not sending
9173           the WM_PAINT directly anymore, instead we scroll any pending
9174           exposed areas and let the system pick out the WM_PAINT later
9175
9176 2005-01-28  Peter Bartok  <pbartok@novell.com>
9177
9178         * SWF.csproj: Deleted, no longer used. Instead,
9179           Managed.Windows.Forms/SWF.csproj should be used
9180         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9181           directly, to avoid a potential race condition with the next
9182           scroll
9183
9184 2005-01-28  Peter Bartok  <pbartok@novell.com>
9185
9186         * XplatUI.cs: Made class internal
9187
9188 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9189
9190         * CheckedListBox.cs:
9191                 - Draw focus
9192                 - Fixed Drawing
9193                 - Missing methods and events
9194
9195 2005-01-27  Peter Bartok  <pbartok@novell.com>
9196
9197         * Application.cs (Run): Don't use form if we don't have one
9198
9199 2005-01-27  Peter Bartok  <pbartok@novell.com>
9200
9201         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9202
9203 2005-01-27  Peter Bartok  <pbartok@novell.com>
9204
9205         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9206         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9207         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9208         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9209         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9210         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9211         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9212         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9213         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9214         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9215         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9216         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9217
9218 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9219
9220         * Combobox.cs:
9221                 - Draw focus on Simple Combobox
9222                 - Fixes drawing issues
9223                 - fixes 71834
9224
9225 2005-01-27  Peter Bartok  <pbartok@novell.com>
9226
9227         * Form.cs:
9228           - Place window in default location, instead of hardcoded 0/0
9229           - Send initial LocationChanged event
9230         * Control.cs:
9231           - UpdateBounds after creation to find out where the WM placed us
9232           - Make sure that if the ParentForm changes location the Form
9233             is notified
9234         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9235             to the root, but to whatever the WM placed around us.
9236             Translate to root coordinates before returning toplevel
9237             coordinates
9238         * XplatUIWin32.cs: Removed debug output
9239         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9240           flag to GetWindowPos, to allow translation of coordinates on X11
9241
9242 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9243
9244         * ListBox.cs: connect LostFocus Event
9245
9246 2005-01-27  Peter Bartok  <pbartok@novell.com>
9247
9248         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9249           XplatUIX11.cs: Extended the Systray API
9250         * Form.cs: Removed debug output
9251         * Application.cs: Fixed focus assignment, always need to call
9252           XplatUI.Activate() since Form.Activate() has rules that may
9253           prevent activation
9254         * NotifyIcon.cs: Should be complete now
9255         * ToolTip.cs: Worked around possible timer bug
9256
9257 2005-01-27  Jackson Harper  <jackson@ximian.com>
9258
9259         * TabControl.cs:
9260         - Only invalidate the effected tabs when the
9261         selected index changes. This reduces drawing and gets rid of some
9262         flicker.
9263         - Only refresh if the tabs need to be shifted, otherwise only
9264         invalidate the slider button.
9265         - On windows the tabs are not filled to right if the slider is
9266         visible.
9267         
9268 2005-01-27  Jackson Harper  <jackson@ximian.com>
9269
9270         * TabControl.cs: Only refresh on mouseup if we are showing the
9271         slider. Also only invalidate the button whose state has changed.
9272
9273 2005-01-26  Peter Bartok  <pbartok@novell.com>
9274
9275         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9276         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9277           and SystrayRemove() methods
9278         * XplatUIOSX.cs: Stubbed Systray methods
9279         * XplatUIX11.cs:
9280           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9281             methods
9282           - Fixed broken XChangeProperty calls (marshalling messed up things)
9283         * X11Structs.cs: Added enums and structs required for Size hinting
9284         * NotifyIcon.cs: Added & implemented
9285
9286 2005-01-26  Jackson Harper  <jackson@ximian.com>
9287
9288         * TabControl.cs: Space vertically layed out tabs properly.
9289
9290 2005-01-26  Peter Bartok  <pbartok@novell.com>
9291
9292         * Form.cs (CreateClientParams): Always set the location to 0,0
9293           since we're a child window.
9294
9295         * Control.cs (SetVisibleCore): Always explicitly setting the location
9296           of a toplevel window, apparently X11 doesn't like to move windows
9297           while they're not mapped.
9298
9299 2005-01-26  Jackson Harper  <jackson@ximian.com>
9300
9301         * TabControl.cs: Implement FillToRight size mode with vertically
9302         rendered tabs.
9303
9304 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9305
9306         * ControlPaint.cs, ThemeWin32Classic.cs
9307                 - Fixes DrawFocusRectangle
9308
9309 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9310
9311         * MenuAPI.cs:
9312                 - MenuBar tracking only starts when item is first clicked
9313                 - Fixes menu hidding for multiple subitems
9314                 - Unselect item in MenuBar when item Executed
9315                 - Fixes bug 71495
9316
9317 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9318
9319         * ListControl.cs:
9320                 - IsInputKey for ListBox
9321         * ListBox.cs:
9322                 - Focus item
9323                 - Shift and Control item selection
9324                 - Implement SelectionMode.MultiExtended
9325                 - Fixes RightToLeft
9326         * ComboBox.cs:
9327                 - IsInputKey implemented
9328                 - Do not generate OnTextChangedEdit on internal txt changes
9329                 
9330 2005-01-23  Peter Bartok  <pbartok@novell.com>
9331
9332         * AccessibleObject.cs: Partially implemented Select()
9333         * MonthCalendar.cs: Added missing attributes and events
9334         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9335           form can properly override CreateParams.
9336         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9337           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9338           Control performs Invalidate & Update
9339         * NativeWindow (CreateHandle): Added special handling for Form
9340           and Form.FormParent classes to allow overriding of From.CreateParams
9341         * Control.cs:
9342           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9343             name 'owner'
9344           - ControlNativeWindow: Added Owner property
9345           - Removed usage of Refresh() on property changes, changed into
9346             Invalidate(), we need to wait until the queue is processed for
9347             updates, direct calls might cause problems if not all vars for
9348             Paint are initialized
9349           - Added call to UpdateStyles() when creating the window, to set any
9350             styles that CreateWindow might have ignored.
9351           - Added support for Form CreateParent overrides to UpdateStyles()
9352         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9353           CreateParams are now properly overridable
9354         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9355           CreateParams are now properly overridable
9356
9357 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9358
9359         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9360         OnTextBoxChanged.
9361
9362         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9363         recursive invocation that I have not figured out yet.
9364
9365         Reset the timer when not using (it was accumulating).
9366
9367
9368         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9369         user has made changes that require validation.
9370
9371         Reset changing to avoid loops.
9372
9373 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9374
9375         * NumericUpDown.cs: Display value at startup.
9376
9377         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9378         ValidateEditText.
9379
9380         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9381         filled in.  Added some basic parsing of text.
9382
9383         Still missing the OnXXX method overrides, and figuring out the
9384         events that must be emitted.
9385
9386         * UpDownBase.cs: Handle UserEdit on the Text property.
9387         
9388 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9389
9390         * ComboBox.cs:
9391           - Fixes IntegralHeight
9392           - ToString method
9393
9394 2005-01-21  Jackson Harper  <jackson@ximian.com>
9395
9396         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9397         is set so that the page visibility is updated and the tabs are
9398         sized correctly.
9399
9400 2005-01-21  Jackson Harper  <jackson@ximian.com>
9401
9402         * TabControl.cs: Use cliping rectangle for blitting. Give the
9403         theme the clipping rect so we can do clipping while
9404         drawing. Remove some debug code.
9405
9406 2005-01-21  Jackson Harper  <jackson@ximian.com>
9407
9408         * TabPage.cs: Add a new method so tab pages can force the tab
9409         control to recalculate the tab page sizes.
9410         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9411         sizes.
9412
9413 2005-01-20  Jackson Harper  <jackson@ximian.com>
9414
9415         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9416
9417 2005-01-20  Jackson Harper  <jackson@ximian.com>
9418
9419         * TreeView.cs: Set the bounds for nodes properly. They were
9420         getting screwed up when checkboxes were not enabled, but images
9421         were.
9422
9423 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9424
9425         * ListBox.cs:
9426                 - Owner draw support
9427                 - Fixes
9428                 
9429 2005-01-20  Jackson Harper  <jackson@ximian.com>
9430
9431         * XplatUIStructs.cs: More misc keys
9432         * X11Keyboard.cs: Ignore some control keys.
9433
9434 2005-01-20  Jackson Harper  <jackson@ximian.com>
9435
9436         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9437         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9438
9439 2005-01-19  Peter Bartok  <pbartok@novell.com>
9440
9441         * Control.cs: Un-selecting the control when it is loosing focus
9442
9443 2005-01-19  Jackson Harper  <jackson@ximian.com>
9444
9445         * TreeView.cs: Hook up to the text controls leave event so we can
9446         end editing when the users clicks outside the text box.
9447         
9448 2005-01-19  Jackson Harper  <jackson@ximian.com>
9449
9450         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9451         get set in the conversion array.
9452
9453 2005-01-19  Peter Bartok  <pbartok@novell.com>
9454
9455         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9456           focus is properly set
9457         * Button.cs:
9458           - Added missing attributes
9459           - removed styles, those are already set in the base class
9460         * ButtonBase.cs:
9461           - Added missing attributes
9462           - Added clip window styles
9463         * CheckBox.cs: Added missing attributes
9464         * CommonDialog.cs:
9465           - FormParentWindow.CreateParams: Added required clip styles
9466         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9467           also filters modifier keys
9468         * MessageBox.cs:
9469           - Added assignment of Accept and Cancel button to enable Enter
9470             and Esc keys in MessageBox dialogs
9471           - FormParentWindow.CreateParams: Added required clip styles
9472         * RadioButton.cs: Added missing attributes
9473         * TextControl.cs: No longer draws selection if control does not
9474           have focus
9475         * TextBoxBase.cs:
9476           - Now draws simple rectangle around test area to make it obvious
9477             there's a control. This is a hack until we properly support borders
9478           - A few simple fixes to support selections better, now erases selected
9479             text when typing, and resets selection when using movement keys
9480
9481 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9482
9483         * UpDownBase.cs: Added some new properties.
9484
9485         * DomainUpDown.cs: Implement a lot to get my test working.
9486
9487 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9488
9489         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9490
9491 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9492
9493         * OSXStructs (WindowAttributes): Fixed csc complaints
9494
9495 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9496
9497         * XplayUIOSX.cs:
9498           OSXStructs.cs: Initial refactor to move enums and consts into
9499           OSXStructs and use them in the driver for greater readability.
9500
9501 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9502
9503         * XplatUIOSX.cs: Initial support for Standard Cursors.
9504         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9505
9506 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9507
9508         * ComboBox.cs: ability to change style when the ctrl is already
9509         created, missing methods and events, bug fixes, signature fixes
9510
9511 2005-01-19  Peter Bartok  <pbartok@novell.com>
9512
9513         * Cursors.cs (ctor): Added ctor to fix signature
9514
9515 2005-01-18  Peter Bartok  <pbartok@novell.com>
9516
9517         * Button.cs: Implemented DoubleClick event
9518         * ButtonBase.cs:
9519           - Fixed keyboard handling to behave like MS, where the press of
9520             Spacebar is equivalent to a mousedown, and the key release is
9521             equivalent to mouseup. Now a spacebar push will give the same
9522             visual feedback like a mouse click.
9523           - Added missing attributes
9524           - Added ImeModeChanged event
9525           - Added support for generating DoubleClick event for derived classes
9526         * CheckBox.cs:
9527           - Implemented DoubleClick event
9528           - Added missing attributes
9529         * CommonDialog.cs: Added missing attribute
9530         * ContextMenu.cs: Added missing attributes
9531         * RadioButton.cs:
9532           - AutoChecked buttons do not allow to be unselected when clicked
9533             (otherwise we might end up with no selected buttons in a group)
9534           - Added missing attributes
9535           - Implemented DoubleClickEvent
9536         * ThreadExceptionDialog.cs: Enabled TextBox code
9537
9538 2005-01-18  Peter Bartok  <pbartok@novell.com>
9539
9540         * Form.cs: Removed debug output
9541         * Button.cs: Added support for DoubleClick method
9542
9543 2005-01-18  Peter Bartok  <pbartok@novell.com>
9544
9545         * Form.cs:
9546           - Added method to parent window that allows triggering size
9547             calculations when a menu is added/removed
9548           - set_Menu: Cleaned up mess from early days of Form and Control,
9549             now properly triggers a recalc when a menu is added/removed
9550           - Added case to select form itself as focused form if no child
9551             controls exist
9552           - Added PerformLayout call when showing dialog, to ensure properly
9553             placed controls
9554         * Control.cs:
9555           - Select(): Made internal so Form can access it
9556           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9557             status
9558         * Application.cs (Run): Removed hack and calls PerformLayout instead
9559           to trigger calculation when Form becomes visible
9560
9561 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9562
9563         * ComboBox.cs: fixes for ownerdraw
9564
9565 2005-01-18  Peter Bartok  <pbartok@novell.com>
9566
9567         * TextControl.cs:
9568           - Sentinel is no longer static, each Document gets it's own, this
9569             avoids locking or alternatively overwrite problems when more
9570             than one text control is used simultaneously.
9571           - Switched to use Hilight and HilightText brushes for text selection
9572
9573         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9574
9575 2005-01-18  Peter Bartok  <pbartok@novell.com>
9576
9577         * Control.cs:
9578           - Hooked up the following events:
9579                 o ControlAdded
9580                 o ControlRemoved
9581                 o HandleDestroyed
9582                 o ImeModeChanged
9583                 o ParentChanged
9584                 o TabStopChanged
9585                 o Invalidated
9586                 o SystemColorsChanged
9587                 o ParentFontChanged
9588                 o Move
9589           - Removed debug output
9590           - Added a call to the current theme's ResetDefaults when a color change
9591             is detected
9592         * Form.cs: Now setting the proper ImeMode
9593         * Theme.cs: Defined a method to force recreation of cached resources
9594           and rereading of system defaults (ResetDefaults())
9595         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9596
9597 2005-01-17  Peter Bartok  <pbartok@novell.com>
9598
9599         * Control.cs: Added missing attributes
9600
9601 2005-01-17  Jackson Harper  <jackson@ximian.com>
9602
9603         * TreeNode.cs: Implement editing. Add missing properties selected
9604         and visible.
9605         * TreeView.cs: Implement node editing. Also some fixes to use
9606         Invalidate (invalid area) instead of Refresh when selecting.
9607
9608 2005-01-17  Peter Bartok  <pbartok@novell.com>
9609
9610         * Control.cs:
9611           - Implemented InvokeGotFocus() method
9612           - Implemented InvokeLostFocus() method
9613           - Implemented InvokePaint() method
9614           - Implemented InvokePaintBackground() method
9615           - Implemented InvokeClick() method
9616           - Implemented FindForm() method
9617           - Implemented RectangleToClient() method
9618           - Implemented ClientToRectangle() method
9619           - Implemented ResetBackColor() method
9620           - Implemented ResetCursor() method
9621           - Implemented ResetFont() method
9622           - Implemented ResteForeColor() method
9623           - Implemented ResetImeMode() method
9624           - Implemented ResetLeftToRight() method
9625           - Implemented ResetText() method
9626           - Implemented Scale() methods
9627           - Implemented ScaleCore() method
9628           - Implemented Update() method
9629           - Removed unused variables
9630           - Stubbed AccessibilityNotifyClients and
9631             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9632             with those yet)
9633           - Now setting proper default for RightToLeft property
9634           - Fixed bug in SetClientSizeCore that would cause windows to get
9635             really big
9636           - Now sending Click/DoubleClick events
9637           - Now selecting controls when left mouse button is clicked on
9638             selectable control
9639         * AccessibleEvents.cs: Added
9640         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9641         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9642         * XplatUIWin32.cs: Implemented UpdateWindow() method
9643         * XplatUIX11.cs: Implemented UpdateWindow() method
9644         * Form.cs: Removed stray semicolon causing CS0162 warning
9645         * ThemeWin32Classic.cs: Fixed unused variable warnings
9646         * ScrollableControl.cs: Now calls base method for ScaleCore
9647         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9648           style to avoid interference with internal click handler (which is
9649           different than standard Control click handling)
9650         * RadioButton.cs:
9651           - Now unchecks all sibling radio buttons when control is
9652             selected (Fixes #68756)
9653           - Removed internal tabstop variable, using the one inherited from
9654             Control
9655
9656 2005-01-17  Jackson Harper  <jackson@ximian.com>
9657
9658         * NavigateEventArgs.cs: Fix base type.
9659         * LinkLabel.cs: Sig fix
9660         
9661 2005-01-17  Jackson Harper  <jackson@ximian.com>
9662
9663         * TreeView.cs: Only invalidate the effected nodes bounds when
9664         selecting nodes.
9665
9666 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9667
9668         * XplatUIWin32.cs: fixes Win32 marshaling
9669         * XplatUIX11.cs: fixes method signature
9670
9671 2005-01-17  Peter Bartok  <pbartok@novell.com>
9672
9673         * XplatUIX11.cs: Clean up resources when we no longer need them
9674
9675 2005-01-17  Peter Bartok  <pbartok@novell.com>
9676
9677         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9678           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9679           and DestroyCursor() methods.
9680         * Cursor.cs: Partially implemented, now supports standard cursors;
9681           still contains some debug code
9682         * Cursors.cs: Implemented class
9683         * Control.cs:
9684           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9685             appropriate cursor
9686           - Implemented Cursor property
9687           - Replaced break; with return; more straightforwar and possibly
9688             faster
9689           - Now properly setting the result for WM_HELP
9690         * X11Structs.cs: Added CursorFontShape enum
9691         * XplatUIStructs.cs:
9692           - Added StdCursor enum (to support DefineStdCursor() method)
9693           - Added HitTest enum (to support sending WM_SETCURSOR message)
9694         * XplatUIX11.cs:
9695           - Now sends the WM_SETCURSOR message
9696           - Implemented new cursor methods
9697         * XplatUIOSX.cs: Stubbed new cursor methods
9698         * XplatUIWin32.cs:
9699           - Implemented new cursor methods
9700           - Added GetSystemMetrics function and associated enumeration
9701
9702 2005-01-15  Peter Bartok  <pbartok@novell.com>
9703
9704         * Control.cs:
9705           - WndProc(): Now handles EnableNotifyMessage
9706           - SelectNextControl(): Fixed bug where if no child or sibling
9707             controls exist we looped endlessly
9708
9709 2005-01-14  Jackson Harper  <jackson@ximian.com>
9710
9711         * TreeView.cs: Recalculate the tab pages when a new one is added
9712         so that the proper bounding rects are created.
9713
9714 2005-01-14  Jackson Harper  <jackson@ximian.com>
9715
9716         * TreeView.cs: Draw a gray box instead of a grip in the lower
9717         right hand corner when there are both horizontal and vertical
9718         scroll bars.
9719
9720 2005-01-14  Jackson Harper  <jackson@ximian.com>
9721
9722         * Control.cs: When erasing backgrounds use FromHwnd instead of
9723         FromHdc when there is a NULL wparam. This occurs on the X driver.
9724         * XplatUIX11.cs: Set the wparam to NULL.
9725
9726 2005-01-13  Jackson Harper  <jackson@ximian.com>
9727
9728         * PictureBox.cs: Implement missing methods (except ToString, need
9729         to test that on windows) and events. When visibility is changed we
9730         need to redraw the image because the buffers are killed. When size
9731         is changed refresh if the sizemode needs it.
9732
9733 2005-01-13  Peter Bartok  <pbartok@novell.com>
9734
9735         * Control.cs (SelectNextControl): Was using wrong method to select
9736           a control
9737
9738 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9739
9740         * ComboBox.cs: fixes dropstyle
9741
9742 2005-01-13  Peter Bartok  <pbartok@novell.com>
9743
9744         * Form.cs:
9745           - Implemented Select() override
9746           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9747           - Now sets keyboard focus on startup
9748         * Control.cs (SelectNextControl): Now properly handles directed=true
9749         * TextBoxBase.cs:
9750           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9751           - Added (really bad) focus rectangle (mostly for testing)
9752         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9753           to enforce redraw on focus changes
9754         * ContainerControl.cs:
9755           - Fixed detection of Shift-Tab key presses
9756           - Fixed traversal with arrow keys
9757         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9758           gonna keep this or if it's complete yet
9759         
9760 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9761
9762         * ComboBox.cs: missing properties, fixes
9763
9764 2005-01-13  Peter Bartok  <pbartok@novell.com>
9765
9766         * Panel.cs (ctor): Setting Selectable window style to off
9767         * Splitter.cs (ctor): Setting Selectable window style to off
9768         * GroupBox.cs (ctor): Setting Selectable window style to off
9769         * Label.cs (ctor): Setting Selectable window style to off
9770
9771 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9772
9773         * UpDownBase.cs (InitTimer): If the timer has been already
9774         created, enable it.
9775
9776         Use a TextBox instead of a Label.
9777
9778 2005-01-12  Jackson Harper  <jackson@ximian.com>
9779
9780         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9781         draw the connecting node lines (when ShowLines is true).
9782         * TreeNode.cs: The nodes index can now be updated. This is used
9783         when a node collection is sorted.
9784         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9785         insert or an existing unsorted node collection can be sorted.
9786         
9787 2005-01-12  Peter Bartok  <pbartok@novell.com>
9788
9789         * ContainerControl.cs: Implemented ProcessDialogKeys()
9790
9791 2005-01-12  Peter Bartok  <pbartok@novell.com>
9792
9793         * Control.cs:
9794           - Implemented SelectNextControl() method
9795           - Several focus related bug fixes
9796           - Fixed Docking calculations to match MS documentation and
9797             behaviour
9798
9799 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9800
9801         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9802         bug fixes
9803
9804 2005-01-12  Peter Bartok  <pbartok@novell.com>
9805
9806         * Control.cs:
9807           - Fixed broken Contains() method
9808           - Implemented GetNextControl() method. Finally. This is the pre-
9809             requisite for focus handling.
9810
9811 2005-01-12  Peter Bartok  <pbartok@novell.com>
9812
9813         * OSXStrucs.cs: Added
9814
9815 2005-01-12  Peter Bartok  <pbartok@novell.com>
9816
9817         * XplatUIWin32.cs:
9818           - Removed PeekMessageFlags
9819           - Implemented SetWindowStyle() method
9820         * XplatUIStructs.cs: Added PeekMessageFlags
9821         * X11Structs: Added missing border_width field to XWindowChanges struct
9822         * XplatUIX11.cs:
9823           - PeekMessage: Now throws exception if flags which are not yet
9824             supported are passed
9825           - Implemented SetWindowStyle() method
9826           - Fixed SetZOrder to handle AfterHwnd properly
9827         * XplatUI.cs: Added SetWindowStyle() method
9828         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9829         * Control.cs:
9830           - Implemented UpdateStyles() method
9831           - Implemented UpdateZOrder() method
9832         * XplatUIOSX.cs: Added SetWindowStyle() stub
9833
9834 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9835
9836         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9837         button mouse).
9838
9839
9840 2005-01-11  Jackson Harper  <jackson@ximian.com>
9841
9842         * TreeView.cs: Still need to draw lines to siblings even if out of
9843         the current node is out of the clip.
9844
9845 2005-01-11  Jackson Harper  <jackson@ximian.com>
9846
9847         * TreeView.cs: When setting the hbar/vbar/grip position use
9848         SetBounds so that perform layout is only called once. Also suspend
9849         and resume layout so layout is only done once for all controls.
9850         - Removed some debug fluff
9851         * SizeGrip.cs: Call base implmentation in overriding methods.
9852         - When visibility is changed the drawing buffers are killed so we
9853         need to redraw.
9854
9855 2005-01-11  Jackson Harper  <jackson@ximian.com>
9856
9857         * TreeView.cs: Calculate the open node count while drawing. This
9858         saves us an entire tree traversal for every paint operation. Use
9859         a member var for the open node count so less vars are passed around.
9860
9861 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9862
9863         * MonthCalendar.cs:
9864         - fixed selection to use mousemove, not mouse polling on timer
9865         * ThemeWin32Classic.cs
9866         - removed redundant unused variable "no_more_content"
9867         
9868 2005-01-11  Peter Bartok  <pbartok@novell.com>
9869
9870         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9871           are pending, so it now calls PeekMessage instead of GetMessage;
9872           implemented a incomplete version of PeekMessage
9873         
9874 2005-01-11  Peter Bartok  <pbartok@novell.com>
9875
9876         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9877           I18n issues
9878         * TextBoxBase.cs: Added sending of TextChanged event
9879
9880 2005-01-10  Jackson Harper  <jackson@ximian.com>
9881
9882         * TreeView.cs: Try not to draw outside the clipping rectangle on
9883         each node element.
9884
9885 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9886
9887         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9888
9889 2005-01-10  Jackson Harper  <jackson@ximian.com>
9890
9891         * TreeView.cs:
9892         - Implement fast scrolling. Now only the newly
9893         exposed nodes are drawn and the old image is moved using the
9894         XplatUI::ScrollWindow method.
9895         - Factor in height of nodes when calculating whether or not the
9896         node is in the clipping rect.
9897
9898 2005-01-10  Jackson Harper  <jackson@ximian.com>
9899
9900         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9901
9902 2005-01-10  Peter Bartok  <pbartok@novell.com>
9903
9904         * Application.cs: Added temporary hack to resolve all our resize
9905           required issues on startup. This will get fixed properly at
9906           some point in the future
9907
9908 2005-01-10  Jackson Harper  <jackson@ximian.com>
9909
9910         * SizeGrip.cs: New internal class that is used as a sizing
9911         grip control...hence the name.
9912
9913 2005-01-10  Peter Bartok  <pbartok@novell.com>
9914
9915         * Control.cs: Implemented proper TabIndex handling, now assigning
9916           a tabindex when a control is added to a container
9917         * GroupBox.cs (ctor): Now sets the Container style bit, required
9918           for Control.GetNextControl()
9919
9920 2005-01-09  Jackson Harper  <jackson@ximian.com>
9921
9922         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9923
9924 2005-01-09  Peter Bartok <pbartok@novell.com>
9925
9926         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9927           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9928           an overload for ScrollWindow to allow only scrolling a rectangle
9929
9930 2005-01-09  Peter Bartok <pbartok@novell.com>
9931
9932         * Form.cs:
9933           - Implemented SetDesktopBounds method
9934           - Implemented SetDesktopLocation method
9935
9936 2005-01-08  Jackson Harper  <jackson@ximian.com>
9937
9938         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9939         the node count has changed, this removes to VScroll::Refresh calls
9940         when drawing.
9941
9942 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9943
9944         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9945
9946 2005-01-07  Jackson Harper  <jackson@ximian.com>
9947
9948         * TreeNode.cs: Just update the single node when it is
9949         checked. Don't refresh after toggling, the Expand/Collapse already
9950         handles this.
9951         * TreeView.cs: Respect clipping a little more when drawing. Try
9952         not to redraw things that don't need to be redrawn. Just hide the
9953         scrollbars when they are no longer needed instead of removing
9954         them, so they don't have to be created again and again.
9955         
9956 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9957
9958         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
9959         coordinates to window space to place the caret properly, FIXED.
9960         Implement GetWindowState & SetWindowState
9961
9962 2005-01-06  Peter Bartok <pbartok@novell.com>
9963
9964         * Form.cs:
9965           - Implemented ClientSize property
9966           - Implemented DesktopBounds property
9967           - Implemented DesktopLocation property
9968           - Implemented IsRestrictedWindow property
9969           - Implemented Size property
9970           - Implemented TopLevel property
9971           - Implemented FormWindowState property
9972         * Control.cs:
9973           - Implemented GetTopLevel() method
9974           - Implemented SetTopLevel() method
9975         * X11Structs.cs (Atom):
9976           - Added AnyPropertyType definition
9977           - Added MapState definiton and updated XWindowAttribute struct
9978         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
9979         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
9980         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
9981         * XplatUIWin32.cs:
9982           - Implemented GetWindowState() and SetWindowState() methods
9983           - Fixed Win32GetWindowLong return type
9984         * XplatUIX11.cs:
9985           - Introduced central function for sending NET_WM messages
9986           - Implemented GetWindowState() and SetWindowState() methods
9987         * TextBoxBase.cs (set_Lines):
9988           - Now uses Foreground color for text added via Text property (Duh!)
9989           - Added code to remember programmatically requested size (fixes
9990             behaviour when Multiline is set after Size)
9991           - Added AutoSize logic
9992
9993 2005-01-06  Jackson Harper  <jackson@ximian.com>
9994
9995         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
9996
9997 2005-01-06  Jackson Harper  <jackson@ximian.com>
9998
9999         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10000         set to less then 0.
10001
10002 2005-01-06  Jackson Harper  <jackson@ximian.com>
10003
10004         * ScrollableControl.cs: Lazy init the scrollbars.
10005         
10006 2005-01-06  Jackson Harper  <jackson@ximian.com>
10007
10008         * Theme.cs: Speed up getting pens and solid brushes, by using
10009         their ARGB as a hash instead of tostring and not calling Contains.
10010
10011 2005-01-06  Peter Bartok <pbartok@novell.com>
10012
10013         * Form.cs:
10014           - Implemented OnActivated and OnDeactivate event trigger
10015           - Implemented Activate() method
10016           - Fixed ShowDialog() to activate the form that was active before
10017             the dialog was shown
10018         * XplatUIX11.cs:
10019           - Added global active_window var that tracks the currently active
10020             X11 window
10021           - Now always grabs Property changes from the root window to always
10022             catch changes on the active window property
10023           - Added code to PropertyNotify handler to send Active/Inactive
10024             messages when state changes. This puts X11 and Win32 en par on
10025             WM_ACTIVATE notifications (except for double notifications when
10026             the user clicks away from our modal window to another one of our
10027             windows)
10028
10029 2005-01-05  Jackson Harper  <jackson@ximian.com>
10030
10031         * ImageList.cs: Implment ctor
10032
10033 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10034
10035         * XplatUIOSX.cs: Implement Activate/SetTopmost
10036
10037 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10038
10039         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10040
10041 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10042
10043         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10044
10045 2005-01-05  Peter Bartok <pbartok@novell.com>
10046
10047         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10048           XplatUIOSX.cs: Added GetActive method to return the currently
10049           active window for the application (or null, if none is active)
10050         * Form.cs:
10051           - Implemented ActiveForm
10052           - Commented out owner assignment for modal dialogs (causes problems
10053             on Win32, since the owner will be disabled)
10054           - Reworked some Active/Focus handling (still incomplete)
10055         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10056           (causes problems on Win32, since the owner will be disabled)
10057         * IWin32Window: Added ComVisible attribute
10058
10059 2005-01-05  Peter Bartok <pbartok@novell.com>
10060
10061         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10062           required XplatUI functions.
10063
10064 2005-01-05  Peter Bartok <pbartok@novell.com>
10065
10066         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10067           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10068           to implement focus and activation handling; still incomplete and
10069           with debug output
10070
10071 2005-01-04  Peter Bartok <pbartok@novell.com>
10072
10073         * TextBoxBase.cs: Changed access level for Document property to
10074           match switch to internal for TextControl
10075
10076 2005-01-04  Peter Bartok <pbartok@novell.com>
10077
10078         * AccessibleObject: Added ComVisible attribute
10079
10080 2005-01-04  Jackson Harper  <jackson@ximian.com>
10081
10082         * X11Keyboard.cs: Remove unneeded var.
10083
10084 2005-01-04  Jackson Harper  <jackson@ximian.com>
10085
10086         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10087         but PAINT.
10088         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10089         ClientMessage. This makes apps exit cleanly (more often).
10090         
10091 2005-01-04  Jackson Harper  <jackson@ximian.com>
10092
10093         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10094         handling focus, return correct colors and fonts,
10095         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10096         handle selection, horizontal scrolling, and mouse interaction.
10097
10098 2005-01-04  Peter Bartok <pbartok@novell.com>
10099
10100         * ICommandExecutor.cs: Added
10101         * IDataGridColumnStyleEditingNotificationService.cs: Added
10102         * IFeatureSupport.cs: Added
10103         * IFileReaderService.cs: Added
10104         * IDataObject.cs: Added ComVisible attribute
10105         * AmbientProperties.cs: Added
10106         * BaseCollection.cs: Added missing attributes
10107         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10108         * BaseCollection.cs: Added missing attributes
10109         * Binding.cs: Added TypeConverter attribute
10110         * BindingContext.cs: Added DefaultEvent attribute
10111         * BindingsCollection.cs: Added DefaultEvent attribute
10112         * Button.cs: Added DefaultValue attribute
10113         * DragEventArgs.cs: Added ComVisible attribute
10114         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10115         * KeyEventArgs.cs: Added ComVisible attribute
10116         * KeyPressEventArgs.cs: Added ComVisible attribute
10117         * MouseEventArgs.cs: Added ComVisible attribute
10118         * NavigateEventArgs.cs: Added
10119         * NavigateEventHandler.cs: Added
10120         * FeatureSupport.cs: Added
10121         * OSFeature.cs: Added
10122         * Theme.cs: Added abstract Version property to support OSFeature
10123         * ThemeWin32Classic.cs: Added Version property to
10124           support OSFeature.Themes
10125         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10126           the proper styles to avoid background drawing are set, also doesn't
10127           match MS signature
10128         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10129         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10130         * ScrollEventArgs.cs: Added ComVisible attribute
10131         * SplitterEventArgs.cs: Added ComVisible attribute
10132         * AccessibleSelection.cs: Added Flags attribute
10133         * Appearance.cs: Added ComVisible attribute
10134         * Border3DSide.cs: Added ComVisible attribute
10135         * Border3DStyle.cs: Added ComVisible attribute
10136         * BorderStyle.cs: Added ComVisible attribute
10137         * DragAction.cs: Added ComVisible attribute
10138         * ErrorBlinkStyle.cs: Added
10139         * ScrollEventType.cs: Added ComVisible attribute
10140         * AnchorStyles.cs: Added Editor attribute
10141         * DockStyle.cs: Added Editor attribute
10142         * HorizontalAlignment.cs: Added ComVisible attribute
10143         * HelpEventArgs.cs: Added ComVisible attribute
10144         * PaintEventArgs.cs: Added IDisposable
10145
10146 2005-01-04  Peter Bartok <pbartok@novell.com>
10147
10148         * TextControl.cs: Switched Line, LineTag and Document classes to
10149           internal
10150
10151 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10152
10153         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10154         Simple mode, fixes, IntegralHeight, etc.
10155
10156 2005-01-04  Peter Bartok <pbartok@novell.com>
10157
10158         * TextBoxBase.cs: Using proper font variable now
10159
10160 2005-01-04  Peter Bartok <pbartok@novell.com>
10161
10162         * Form.cs (ShowDialog): Set parent to owner, if provided
10163         * GroupBox.cs: Removed unused vars
10164         * TextControl.cs:
10165           - Added GetHashCode() for Document and LineTag classes
10166           - Removed unused variables
10167           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10168             to allow translation between continuous char position and line/pos
10169         * CheckBox.cs: Removed vars that are provided by base class
10170         * RadioButton.cs: Removed vars that are provided by base class, added
10171           new keyword where required
10172         * LinkLabel.cs: Added new keyword where required
10173         * Control.cs (WndProc): Removed unused variable
10174         * TextBoxBase.cs:
10175           - Finished SelectionLength property
10176           - Implemented SelectionStart property
10177           - Implemented Text property
10178           - Removed unused vars
10179         * MessageBox.cs: Added new keyword where required
10180         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10181           WndProc signature
10182         * MenuAPI.cs: Added new keyword where required
10183         * ButtonBase.cs: Removed vars that are provided by base class, added
10184           new keyword where required
10185         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10186           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10187           into this)
10188         * Application.cs (Run): Now triggers the ThreadExit event
10189         * CommonDialog.cs: Added new keyword where required; now properly sets
10190           parent (owner) for dialog
10191         * XplatUIX11.cs: Commented out unused vars
10192         * StatusBar.cs: Fixed signature for Text property
10193         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10194
10195 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10196
10197         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10198         TrackBar.cs, MonthCalendar.cs: remove unused vars
10199
10200 2005-01-03  Jackson Harper  <jackson@ximian.com>
10201
10202         * ThemeWin32Classic.cs:
10203         * X11Keyboard.cs: Remove unused vars.
10204
10205 2005-01-03  Peter Bartok  <pbartok@novell.com>
10206
10207         * TextBox.cs:
10208           - set_Text: Tied into TextControl
10209           - set_TextAlignment: Tied into TextControl
10210         * TextControl.cs:
10211           - Added alignment properties and implemented alignment handling
10212             and drawing (still has a bug, not generating proper expose events)
10213           - Added new Line() constructor to allow passing the line alignment
10214           - Fixed selection setting, properly handling end<start now
10215           - Added aligment considerations to RecalculateDocument()
10216         * TextBoxBase.cs:
10217           - Now properly enforces control height for single line controls
10218           - Added support for CharacterCasing
10219           - Added IsInputKey override
10220           - Fixed Keys.Enter logic
10221           - Added SetBoundsCore override
10222           - Fixed mouse selection handling
10223
10224 2005-01-03  Jackson Harper  <jackson@ximian.com>
10225
10226         * TreeView.cs:
10227           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10228           - Checkboxes are always aligned to the bottom of the node,
10229           regardless of item height.
10230           - Use the node bounds to draw the text so we can center it when
10231           the item height is greater then the font height.
10232           - Node::Bounds are only the text part of the node.
10233         * TreeNode.cs: New method to combine collapsing and unchecking all
10234           nodes recursively.
10235
10236 2005-01-02  Jackson Harper  <jackson@ximian.com>
10237
10238         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10239         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10240         tree when a check is changed. TODO: Only refresh the checked node.
10241
10242 2004-12-30  Jackson Harper  <jackson@ximian.com>
10243
10244         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10245         * TreeNode.cs: When collapsing make sure to never collapse the
10246         root node.
10247
10248 2004-12-29  Jackson Harper  <jackson@ximian.com>
10249
10250         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10251         
10252 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10253
10254         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10255
10256 2004-12-28  Peter Bartok  <pbartok@novell.com>
10257
10258         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10259           not yet assigned
10260
10261 2004-12-28  Peter Bartok  <pbartok@novell.com>
10262
10263         * Control.cs (WndProc): Added WM_HELP handler, now generates
10264           HelpRequested event
10265         * Form.cs: Added HelpButton property and required support code
10266         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10267
10268 2004-12-28  Peter Bartok  <pbartok@novell.com>
10269
10270         * CommonDialog.cs:
10271           - Made DialogForm.owner variable internal
10272           - Added check to ensure owner form is set before setting
10273             owner properties in CreateParams
10274
10275 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10276
10277         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10278           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10279           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10280           system to support borderless/titleless windows (implements menus).
10281           Fix GetWindowPos.  Implement initial background color support for
10282           views.
10283
10284 2004-12-28  Peter Bartok  <pbartok@novell.com>
10285
10286         * Form.cs (get_CreateParams): Make sure we have an owner before using
10287           the owner variable. Implement proper default if no owner exists
10288
10289 2004-12-28  Peter Bartok  <pbartok@novell.com>
10290
10291         * In preparation for making Managed.Windows.Forms the default build target
10292           for System.Windows.Forms, the following stubbed files were added.
10293           Dialogs are currently being implemented by contributors and are only
10294           short-term place holders.
10295         * ColorDialog.cs: Initial check-in (minmal stub)
10296         * DataGrid.cs: Initial check-in (minimal stub)
10297         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10298         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10299         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10300         * FontDialog.cs: Initial check-in (minimal stub)
10301         * FileDialog.cs: Initial check-in (minimal stub)
10302         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10303         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10304         * OpenFileDialog: Initial check-in (minimal stub)
10305         * IComponentEditorPageSite.cs: Initial check-in
10306         * Splitter.cs: Initial check-in (for Jackson)
10307         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10308         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10309         * TextBox.cs: Initial check-in; still needs some wiring to
10310           TextControl backend
10311         * Form.cs: Implemented ControlBox property
10312         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10313         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10314         * TextControl.cs: Added selection functionality; added todo header
10315         * TextBoxBase.cs:
10316           - Implemented Lines property
10317           - Implemented TextHeight property
10318           - Implemented SelectedText property
10319           - Implemented SelectionLength property
10320           - Implemented SelectAll method
10321           - Implemented ToString method
10322           - Removed and cleaned up some debug code
10323           - Implemented (still buggy) mouse text selection
10324
10325 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10326
10327         * ComboBox.cs: Complete DropDownList implementation, fixes.
10328
10329 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10330
10331         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10332         * ComboBoxStyle.cs: ComboBoxStyle enum
10333         * ComboBox.cs: Initial work on ComboBox control
10334
10335 2004-12-21  Peter Bartok  <pbartok@novell.com>
10336
10337         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10338           forward so that anything that creates a window gets the default,
10339           also no longer uses Visible property in CreateParams to avoid
10340           walking up the parent chain and possibly get the wrong visible
10341           status. Fixed IsVisible to no longer walk up to the parent.
10342
10343 2004-12-21  Peter Bartok  <pbartok@novell.com>
10344
10345         * Form.cs (ShowDialog): Unset modality for the proper window
10346  
10347 2004-12-20  Peter Bartok  <pbartok@novell.com>
10348
10349         * CommonDialog.cs: Initial check-in
10350
10351 2004-12-20  Peter Bartok  <pbartok@novell.com>
10352
10353         * Control.cs (Visible): Now uses the parent window instead of the
10354           client area window for the property
10355
10356         * Form.cs
10357           - ShowDialog(): Now uses the proper window for modality
10358           - The default visibility state for the form parent is now false. This
10359             will prevent the user from seeing all the changes to the form and
10360             its controls before the application hits Application.Run()
10361           - Removed some stale commented out code
10362
10363         * NativeWindow.cs:
10364           - Added FindWindow() method to have a method to check for existence
10365             of a window handle
10366           - Added ability to override default exception handling (for example
10367             when debugging with VS.Net; to do this the ExternalExceptionHandler
10368             define must be set
10369           - Removed some useless debug output
10370
10371         * XplatUIX11.cs:
10372           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10373             not working as expected
10374           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10375             property to allow switching back to the modal window if focus is
10376             given to another one of our windows (Application Modal)
10377           - Now only sets override_redirect if we create a window
10378             without WS_CAPTION
10379           - Moved EventMask selection before mapping of newly created window
10380             so we can catch the map event as well
10381           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10382           - Added various Atom related DllImports
10383           - Implemented Exit() method
10384           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10385             in the CreateParams
10386
10387         * MessageBox.cs: Now properly deals with the FormParent window by
10388           providing an override the FormParent CreateParams property to
10389           set as POPUP instead of OVERLAPPED window.
10390
10391 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10392
10393         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10394         Minor code cleanup.
10395
10396 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10397         
10398         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10399
10400 2004-12-18  Peter Bartok  <pbartok@novell.com>
10401
10402         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10403           implementing SetModal() method
10404
10405 2004-12-18  Peter Bartok  <pbartok@novell.com>
10406
10407         * X11Structs.cs (XGCValues): Fixed type of function element
10408         * XplatUI.cs: Added ScrollWindow() method
10409         * XplatUIDriver.cs: Added ScrollWindow() abstract
10410         * XplatUIWin32.cs: Implemented ScrollWindow() method
10411         * XplatUIX11.cs: Implemented ScrollWindow() method
10412         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10413
10414 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10415
10416         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10417         Some more keyboard support (INCOMPLETE)
10418
10419 2004-12-17  Peter Bartok  <pbartok@novell.com>
10420
10421         * TextControl.cs:
10422         - Added color attribute to line tags.
10423         - Added color argument to all functions dealing with tags
10424         - Added color argument support to various functions
10425         - Fixed miss-calculation of baseline/shift in certain circumstances
10426
10427         * TextBoxBase.cs: Added new color option to test code
10428
10429 2004-12-17  Jackson Harper  <jackson@ximian.com>
10430
10431         * TreeNode.cs:
10432         * MonthCalendar.cs: Signature fixes
10433
10434 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10435
10436         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10437         keyboard event moved it.  Create a new graphics context for each paint resolves this
10438
10439 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10440
10441         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10442         Make caret exist and go blink blink.  Initial keyboard support.
10443         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10444         works.
10445
10446 2004-12-17  Jackson Harper  <jackson@ximian.com>
10447
10448         * XplatUIStructs.cs: Updated set of virtual keycodes.
10449         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10450
10451 2004-12-17  Jackson Harper  <jackson@ximian.com>
10452
10453         * XplatUIX11.cs: Prune old keyboard code.
10454
10455 2004-12-17  Jackson Harper  <jackson@ximian.com>
10456
10457         * XplatUIX11.cs: When generating mouse wparams get the modifier
10458         keys from the ModifierKeys property.
10459
10460 2004-12-17  Jackson Harper  <jackson@ximian.com>
10461
10462         * X11Keyboard.cs: Send up/down input when generating
10463         messages. Remove some unused vars.
10464
10465 2004-12-17  Jackson Harper  <jackson@ximian.com>
10466
10467         * TabControl.cs:
10468         * TreeView.cs: get rid of warnings.
10469
10470 2004-12-17  Jackson Harper  <jackson@ximian.com>
10471
10472         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10473
10474 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10475
10476         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10477           CheckedListBox.cs: Implementation
10478
10479 2004-12-17  Peter Bartok  <pbartok@novell.com>
10480
10481         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10482
10483 2004-12-16  Peter Bartok  <pbartok@novell.com>
10484
10485         * TextControl.cs:
10486           - InsertCharAtCaret(): Fixed start pos fixup
10487           - CaretLine_get: No longer derives the line from the tag, the tag
10488             could be stale if lines in the document have been added or deleted
10489           - RebalanceAfterDelete(): Fixed bug in balancing code
10490           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10491           - Line.Streamline(): Now can also elminate leading empty tags
10492           - DumpTree(): Added a few more tests and prevented exception on
10493             uninitialized data
10494           - Added Debug section for Combining lines
10495           - Delete(): Now copies all remaining properties of a line
10496           
10497         * TextBoxBase.cs:
10498           - Left mousebutton now sets the caret (and middle button still acts
10499             as formatting tester, which must go away soon)
10500           - Added Debug section for Deleting/Combining lines
10501           - Fixed calculations for UpdateView after Combining lines
10502
10503 2004-12-16  Peter Bartok  <pbartok@novell.com>
10504
10505         * TextControl.cs: Now properly aligns text on a baseline, using the
10506           new XplatUI.GetFontMetrics() method. Simplified several calculations
10507         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10508           defined
10509
10510 2004-12-16  Peter Bartok  <pbartok@novell.com>
10511
10512         * XplatUI.cs: Added GetFontMetrics() method
10513         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10514         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10515           into libgdiplus, our private GetFontMetrics function
10516         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10517         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10518
10519 2004-12-16  Jackson Harper  <jackson@ximain.com>
10520
10521         * XplatUIStruct.cs: Add enum for dead keys
10522         * X11Keyboard.cs: Map and unmap dead keys.
10523
10524 2004-12-16  Jackson Harper  <jackson@ximian.com>
10525
10526         * X11Keyboard.cs: Detect and use the num lock mask.
10527
10528 2004-12-16  Peter Bartok  <pbartok@novell.com>
10529
10530         * Control.cs (CreateGraphics): Added check to make sure the
10531           handle of the window exists before calling Graphics.FromHwnd()
10532
10533 2004-12-16  Peter Bartok  <pbartok@novell.com>
10534
10535         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10536           contains a lot of code that's not supposed to be there for the
10537           real thing, but required for developing/testing the textbox
10538           backend.
10539
10540 2004-12-16  Peter Bartok  <pbartok@novell.com>
10541
10542         * TextControl.cs:
10543         - Fixed Streamline method
10544         - Added FindTag method to Line
10545         - Added DumpTree method for debugging
10546         - Added DecrementLines() method for deleting lines
10547         - Fixed UpdateView to update the cursor to end-of-line on single-line
10548           updates
10549         - Added PositionCaret() method
10550         - Fixed MoveCaret(LineDown) to move into the last line, too
10551         - Added InsertChar overload
10552         - Fixed InsertChar tag offset calculations
10553         - Added DeleteChar() method
10554         - Added Combine() method for folding lines
10555         - Fixed Delete() method, no longer allocates wasted Line object and
10556           now copies all properties when swapping nodes
10557         - Delete() method now updates document line counter
10558
10559 2004-12-15  Jackson Harper  <jackson@ximian.com>
10560
10561         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10562         * X11Keyboard.cs: Expose the currently selected modifier keys
10563         through a property.
10564
10565 2004-12-15  Peter Bartok  <pbartok@novell.com>
10566
10567         * TextControl.cs: Initial check-in. Still incomplete
10568
10569 2004-12-15  Jackson Harper  <jackson@ximian.com>
10570
10571         * TreeNode.cs:
10572         * TreeView.cs: Fix build on csc (second time today ;-))
10573
10574 2004-12-15  Jackson Harper  <jackson@ximian.com>
10575
10576         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10577         is calculated and use this for click testing.
10578         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10579
10580 2004-12-15  Jackson Harper  <jackson@ximian.com>
10581
10582         * TreeView.cs: Pass the nodes image index to the image list when
10583         drawing that image.
10584
10585 2004-12-15  Jackson Harper  <jackson@ximian.com>
10586
10587         * X11Keyboard.cs: Set messages hwnd.
10588         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10589         post_message calls.
10590
10591 2004-12-15  Jackson Harper  <jackson@ximian.com>
10592
10593         * X11Keyboard.cs: Fix to compile with csc.
10594         
10595 2004-12-15  Jackson Harper  <jackson@ximian.com>
10596
10597         * X11Structs.cs: Add key mask values
10598         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10599         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10600         down/up foo into WM_CHAR foo
10601         * KeyboardLayouts.cs: Common keyboard layouts
10602         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10603         post messages into the main queue.
10604
10605 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10606
10607         * Button.cs: implement ProcessMnemonic
10608         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10609           brushes everytime
10610         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10611         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10612
10613 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10614         
10615         * MonthCalendar.cs: Implemented click-hold for next/previous month
10616           and date selection
10617           
10618 2004-12-11  Peter Bartok  <pbartok@novell.com>
10619
10620         * X11Structs.cs:
10621           - Added XKeyboardState (moved from XplatUIX11.cs)
10622           - Added XCreateGC related enums and structures
10623           - Added GXFunction for XSetFunction
10624
10625         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10626
10627         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10628           CaretVisible() calls
10629
10630         * ToolTip.cs: Added code to prevent stealing focus from app windows
10631
10632         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10633           DestroyCaret, SetCaretPos and CaretVisible)
10634
10635         * XplatUIX11.cs:
10636           - Added implementation for caret functions
10637           - Moved hover variables into a struct, to make it a bit easier
10638             on the eyes and to debug
10639           - Removed XKeyboardState (moved to XplatUIX11.cs)
10640           - Moved Keyboard properties into the properties region
10641
10642         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10643           call to get a graphics context for our control
10644
10645         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10646
10647         * TreeView.cs: Fixed bug. No matter what color was set it would always
10648           return SystemColors.Window
10649
10650         * XplatUIWin32.cs: Implemented caret overrides
10651
10652 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10653
10654         * ListBox.cs: fire events, implement missing methods and properties,
10655         sorting.
10656
10657 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10658
10659         * MonthCalendar.cs: invalidation bug fixing
10660         * ThemeWin32Classic.cs: paint fixing
10661
10662 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10663
10664         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10665         prepare the CGContextRef there now.
10666
10667 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10668
10669         * MonthCalendar.cs:
10670           - optimisationL only invalidate areas that have changed
10671         * ThemeWin32Classic.cs:
10672           - only paint parts that intersect with clip_area
10673
10674 2004-12-09  Peter Bartok  <pbartok@novell.com>
10675
10676         * Application.cs: Undid changes from r37004 which cause problems
10677         on X11
10678
10679 2004-12-09  Ravindra  <rkumar@novell.com>
10680
10681         * ToolBar.cs: Added support for displaying ContextMenu
10682         attached to a button on ToolBar.
10683         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10684         property.
10685
10686 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10687
10688         * Label.cs: autosize works in text change and removes unnecessary
10689         invalidate
10690
10691 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10692
10693         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10694         remove warnings
10695
10696 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10697
10698         * XplatUIOSX.cs: Added mouse move/click/grab support
10699         Remove some debugging WriteLines not needed anymore.
10700         Add window resizing/positioning.
10701         Fix visibility on reparenting.
10702
10703 2004-12-08  Peter Bartok  <pbartok@novell.com>
10704
10705         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10706
10707 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10708
10709         * XplatUIOSX.cs: Initial checkin
10710         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10711
10712 2004-12-03  Ravindra <rkumar@novell.com>
10713
10714         * ListView.cs: Added some keybindings and fixed scrolling.
10715         ScrollBars listen to ValueChanged event instead of Scroll
10716         Event. This would let us take care of all changes being
10717         done in the scrollbars' values programmatically or manually.
10718         * ListView.cs (CanMultiselect): Added a check for shift key.
10719         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10720         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10721         of ListViewSubItemCollection as well.
10722
10723 2004-12-06  Peter Bartok <pbartok@novell.com>
10724
10725         * Control.cs (Parent): Added check and exception to prevent
10726         circular parenting
10727
10728 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10729
10730         * ListBox.cs: implemented clipping, selection single and multiple,
10731         bug fixing
10732
10733 2004-12-03  Ravindra <rkumar@novell.com>
10734
10735         * ListView.cs (ListView_KeyDown):
10736         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10737         when CTRL key is pressed.
10738         * ListViewItem.cs (Selected): Fixed setting the property.
10739
10740 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10741
10742         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10743
10744         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10745         MinimizeBox, ShowInTaskbar, TopMost properties.
10746
10747         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10748         will be implemented).
10749
10750 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10751
10752         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10753
10754         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10755         tests.
10756         
10757         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10758         
10759         * TreeView.cs: BackColor is Colors.Window.
10760
10761 2004-12-01  Jackson Harper  <jackson@ximian.com>
10762
10763         * TreeView.cs: When resizing the tree if the user is making it
10764         smaller we don't get expose events, so we need to handle adding
10765         the horizontal scrollbar in the size changed handler as well as
10766         the expose handler.
10767
10768 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10769
10770         * DrawItemState.cs: fixes wrong enum values
10771
10772 2004-12-01  Jackson Harper  <jackson@ximian.com>
10773
10774         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10775
10776 2004-12-01  Jackson Harper  <jackson@ximian.com>
10777
10778         * NodeLabelEditEventArgs.cs:
10779         * NodeLabelEditEventHandler.cs:
10780         * OpenTreeNodeEnumerator.cs:
10781         * TreeNode.cs:
10782         * TreeNodeCollection.cs:
10783         * TreeView.cs:
10784         * TreeViewAction.cs:
10785         * TreeViewCancelEventArgs.cs:
10786         * TreeViewCancelEventHandler.cs:
10787         * TreeViewEventArgs.cs:
10788         * TreeViewEventHandler.cs: Initial implementation.
10789
10790 2004-12-01  Ravindra <rkumar@novell.com>
10791
10792         * ListView.cs (CalculateListView): Fixed scrolling related
10793         calculations. Also, removed some debug statements from other
10794         places.
10795         * ListViewItem.cs: Changed access to 'selected' instance variable
10796         from private to internal.
10797         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10798
10799 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10800
10801         * ThemeWin32Classic.cs: remove cache of brush and pens for
10802         specific controls and use the global system, fixes scrollbutton
10803         bugs (for small sizes, disabled, etc)
10804         
10805         * ScrollBar.cs: does not show the thumb for very small controls
10806         (as MS) and allow smaller buttons that the regular size
10807
10808 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10809
10810         * UpDownBase.cs: Add abstract methods for the interface.
10811         Add new virtual methods (need to be hooked up to TextEntry when it
10812         exists).
10813         Add override methods for most features.
10814         Computes the size, forces the height of the text entry.
10815
10816         * NumericUpDown.cs: Put here the current testing code.
10817
10818         * Set eol-style property on all files that do not have mixed line
10819         endings, to minimize the future problems.  There are still a few
10820         files with mixed endings, and someone should choose whether they
10821         want to move it or not.
10822
10823 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10824
10825         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10826         System.Colors
10827         
10828 2004-11-30  Ravindra <rkumar@novell.com>
10829
10830         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10831         drawing and replaced use of SystemColors by theme colors.
10832         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10833         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10834         same ListViewItem is being added more than once.
10835
10836 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10837
10838         * MonthCalendar.cs:
10839           - ControlStyles love to make the control not flicker
10840           
10841 2004-11-30  Peter Bartok  <pbartok@novell.com>
10842
10843         * CharacterCasing.cs: Added
10844
10845 2004-11-29  Peter Bartok  <pbartok@novell.com>
10846
10847         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10848           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10849           I am removing these files as they conflict with already completed
10850           work. While it is fantastic to get contributions to MWF, I
10851           respectfully ask that everyone please coordinate their contributions
10852           through mono-winforms-list or #mono-winforms at this time. We're
10853           explicitly avoiding stubbing and don't want controls that don't have
10854           their basic functionality implemented in svn. Please also see
10855           http://www.mono-project.com/contributing/winforms.html
10856
10857
10858 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10859
10860         * Application.cs (ModalRun): Don't hang after exit.
10861
10862         * Theme.cs: New TreeViewDefaultSize property.
10863
10864         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10865         with less hardcoded SystemColors constant.
10866         Implemented TreeViewDefaultSize.
10867
10868         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10869         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10870
10871
10872 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10873
10874         * MonthCalendar.cs:
10875           - Fix NextMonthDate and PrevMonthDate click moving calendar
10876
10877 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10878
10879         * MonthCalendar.cs:
10880           - Fix usage of ScrollChange Property when scrolling months
10881
10882 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10883
10884         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10885          - Fixes menu destroying
10886          - Support adding and removing items on already created menus
10887
10888 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10889
10890         * MonthCalendar.cs:
10891           - Re-worked all bolded dates handling to match win32
10892         * ThemeWin32Classic.cs:
10893           - Fixed rendering with bolded dates
10894
10895 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10896
10897         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10898         - Horizontal scroolbar
10899         - Multicolumn
10900         - Fixes
10901
10902
10903 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10904
10905         * MonthCalendar.cs:
10906           - Fix Usage of MaxSelectionCount from SelectionRange
10907           - Fixed Shift + Cursor Selection
10908           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10909           - Fixed normal cursor selection to be compat with win32
10910           - Fixed Shift + Mouse Click selection
10911
10912 2004-11-24  Peter Bartok <pbartok@novell.com>
10913
10914         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10915         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10916         * XplatUIX11.cs:
10917           - CreatedKeyBoardMsg now updates keystate with Alt key
10918           - Added workaround for timer crash to CheckTimers, Jackson will
10919             develop a proper fix and check in later
10920           - Implemented DispatchMessage
10921           - Removed calling the native window proc from GetMessage (call
10922             now moved to DispatchMessage)
10923
10924         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10925           the keydata (Fixes bug #69831)
10926
10927         * XplatUIWin32.cs:
10928           - (DispatchMessage): Switched to return IntPtr
10929           - Added DllImport for SetFocus
10930
10931 2004-11-24  Ravindra <rkumar@novell.com>
10932
10933         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10934         background drawing.
10935         * ListViewItem.cs: Fixed various properties, calculations
10936         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10937         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10938         and some internal properties. Fixed MouseDown handler and Paint
10939         method.
10940
10941 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10942
10943         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10944
10945 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10946
10947         * ContainerControl.cs: correct accidental check in of local changes
10948
10949 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10950
10951         * ThemeWin32Classic.cs:
10952                 - Fixed Drawing Last month in grid (sometimes not showing)
10953         * MonthCalendar.cs:
10954                 - Fixed title width calculation bug (makeing title small)
10955
10956 2004-11-23  Peter Bartok <pbartok@novell.com>
10957
10958         * XplatUIX11.cs:
10959           - Added generation of WM_MOUSEHOVER event
10960           - Added missing assignment of async_method atom
10961           - Fixed WM_ERASEBKGND; now only redraws the exposed area
10962
10963 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10964
10965         * ThemeWin32Classic.cs:
10966                 - Fixed Drawing of today circle when showtodaycircle not set
10967                 - fixed drawing of first and last month in the grid (gay dates)
10968         * MonthCalendar.cs:
10969                 - Fixed Drawing of today circle
10970                 - Fixed drawing of grady dates
10971                 - Fixed HitTest for today link when ShowToday set to false
10972                 - Fixed DefaultSize to obey ShowToday
10973
10974 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
10975
10976         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
10977         * System.Windows.Forms/Theme.cs
10978         * MonthCalendar.cs: added for MonthCalendar
10979         * SelectionRange.cs: added for MonthCalendar
10980         * Day.cs: added for MonthCalendar: added for MonthCalendar
10981         * DateRangeEventArgs.cs: added for MonthCalendar
10982         * DateRangeEventHandler.cs: added for MonthCalendar
10983
10984 2004-11-22  Ravindra <rkumar@novell.com>
10985
10986         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
10987         property.
10988
10989 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
10990
10991         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
10992         event handler.
10993         
10994         * NumericUpDown.cs: Added new implementation.
10995         * UpDownBase.cs: Added new implementation.
10996
10997         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
10998         implementations.
10999         
11000         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11001         implementations.
11002
11003         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11004         methods.
11005
11006 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11007
11008         * Timer.cs  (Dispose): Should call the base dispose when
11009         overriding.
11010
11011 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11012
11013         * ScrollBar.cs: updates thumb position when max, min or increment
11014         is changed
11015
11016 2004-11-21  Ravindra <rkumar@novell.com>
11017
11018         * ListView.cs: Implemented item selection, activation and
11019         column header style. Fixed properties to do a redraw, if
11020         required. Added support for MouseHover, DoubleClick, KeyDown
11021         and KeyUp event handling and some minor fixes.
11022         * ListViewItem.cs: Fixed constructor.
11023         * ThemeWin32Classic.cs: Improved drawing for ListView.
11024
11025 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11026
11027         * ThemeWin32Classic.cs: initial listbox drawing code
11028         * DrawMode.cs: new enumerator
11029         * ListControl.cs: stubbed class
11030         * ListBox.cs: initial implementation
11031         * Theme.cs: new methods definitions
11032         * SelectionMode.cs: new enumerator
11033
11034 2004-11-17  Peter Bartok  <pbartok@novell.com>
11035
11036         * XplatUIWin32.cs: Added double-click events to the class style
11037         * Control.cs (WndProc):
11038           - Added handling of click-count to MouseDown/ MouseUp events.
11039           - Added handling of middle and right mouse buttons
11040           - Removed old debug code
11041
11042 2004-11-17  Jackson Harper  <jackson@ximian.com>
11043
11044         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11045
11046 2004-11-17  Ravindra <rkumar@novell.com>
11047
11048         * ListView.cs: Added event handling for MouseMove/Up/Down.
11049         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11050         * ThemeWin32Classic.cs: We need to clear the graphics context and
11051         draw column header in a proper state.
11052
11053
11054 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11055
11056         *  Menu.cs: fixes signature
11057
11058 2004-11-16  Peter Bartok  <pbartok@novell.com>
11059
11060         * XplatUIX11.cs (GetMessage): Implemented generation of
11061           double click mouse messages
11062
11063 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11064
11065         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11066         not by menu
11067
11068 2004-11-11  Peter Bartok  <pbartok@novell.com>
11069
11070         * HandleData.cs: Added Visible property
11071         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11072           HandleData
11073         * XplatUIX11.cs: Removed old debug leftovers
11074         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11075         * Control.cs (WndProc): Removed old debug leftovers,
11076           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11077           needed WM_SIZE handling
11078
11079 2004-11-11  Jackson Harper  <jackson@ximian.com>
11080
11081         * OwnerDrawPropertyBag.cs:
11082         * TreeViewImageIndexConverter.cs: Initial implementation
11083
11084 2004-11-10  Jackson Harper  <jackson@ximian.com>
11085
11086         * ThemeWin32Classic.cs:
11087         * TabControl.cs: instead of moving tabs by the slider pos just
11088         start drawing at the tab that is offset by the slider. This way
11089         scrolling always moves by exactly one tab.
11090
11091 2004-11-10  Jackson Harper  <jackson@ximian.com>
11092
11093         * TabControl.cs: You can only scroll left when the slider has
11094         already ben moved right.
11095         
11096 2004-11-10  Jackson Harper  <jackson@ximian.com>
11097
11098         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11099         the clip area.
11100         
11101 2004-11-10  Jackson Harper  <jackson@ximian.com>
11102
11103         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11104         clip area.
11105         
11106 2004-11-09  Jackson Harper  <jackson@ximian.com>
11107
11108         * TabControl.cs (CalcXPos): New helper method so we can determine
11109         the proper place to start drawing vertical tabs.
11110         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11111         
11112 2004-11-09  Jackson Harper  <jackson@ximian.com>
11113
11114         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11115         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11116         and Bottom, left and right are illegal values for this and
11117         multiline is enabled when the alignment is set to left or right.
11118         (DrawTab): Each alignment block should draw the text itself now
11119         because Left requires special love. Also add rendering for Left
11120         aligned tabs.
11121         
11122 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11123
11124         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11125         does not destroy the windows, removes debugging messages
11126
11127 2004-11-09  jba  <jba-mono@optusnet.com.au>
11128
11129         * ThemeWin32Classic.cs
11130         (DrawButtonBase): Fix verticle text rect clipping in windows
11131         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11132         rendering and incorrect text rect clipping
11133         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11134         rendering and incorrect text rect clipping
11135         
11136 2004-11-08  Jackson Harper  <jackson@ximian.com>
11137
11138         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11139         bottom when they are bottom aligned so the bottoms of the tabs get
11140         displayed.
11141         * TabControl.cs (DropRow): Move rows up instead of down when the
11142         tab control is bottom aligned.
11143
11144 2004-11-08 13:59  pbartok
11145
11146         * XplatUIX11.cs:
11147           - Added handling for various window styles
11148           - Added handling for popup windows
11149           - Added SetTopmost handling
11150
11151 2004-11-08 13:55  pbartok
11152
11153         * XplatUIWin32.cs:
11154           - Added argument to SetTopmost method
11155           - Fixed broken ClientToScreen function
11156
11157 2004-11-08 13:53  pbartok
11158
11159         * XplatUIStructs.cs:
11160           - Added missing WS_EX styles
11161
11162 2004-11-08 13:53  pbartok
11163
11164         * XplatUI.cs, XplatUIDriver.cs:
11165           - Added argument to SetTopmost
11166
11167 2004-11-08 13:52  pbartok
11168
11169         * X11Structs.cs:
11170           - Added XSetWindowAttributes structure
11171           - Improved XWindowAttributes structure
11172           - Added SetWindowValuemask enum
11173           - Added window creation arguments enum
11174           - Added gravity enum
11175           - Added Motif hints structure
11176           - Added various Motif flags and enums
11177           - Added PropertyMode enum for property functions
11178
11179 2004-11-08 13:50  pbartok
11180
11181         * Form.cs:
11182           - Fixed arguments for updated SetTopmost method
11183
11184 2004-11-08 13:49  pbartok
11185
11186         * ToolTip.cs:
11187           - Fixed arguments for updated SetTopmost function
11188           - Fixed usage of PointToClient
11189
11190 2004-11-08 13:44  pbartok
11191
11192         * MenuAPI.cs:
11193           - Added Clipping of children and siblings
11194
11195 2004-11-08 13:41  pbartok
11196
11197         * MainMenu.cs:
11198           - Removed SetMenuBarWindow call. We do this in Form.cs
11199
11200 2004-11-08 13:40  jackson
11201
11202         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11203           scrolling jimmi in the correct location with bottom aligned tabs
11204
11205 2004-11-08 13:36  pbartok
11206
11207         * ContainerControl.cs:
11208           - Implemented BindingContext
11209           - Implemented ParentForm
11210
11211 2004-11-08 12:46  jackson
11212
11213         * TabControl.cs: Put bottom rendered tabs in the right location
11214
11215 2004-11-08 07:15  jordi
11216
11217         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11218           removes dead code
11219
11220 2004-11-05 17:30  jackson
11221
11222         * TabControl.cs: When selected tabs are expanded make sure they
11223           don't go beyond the edges of the tab control
11224
11225 2004-11-05 14:57  jackson
11226
11227         * TabControl.cs: Reset show_slider so if the control is resized to
11228           a size where it is no longer needed it's not displayed anymore
11229
11230 2004-11-05 13:16  jackson
11231
11232         * TabControl.cs: Make tab pages non visible when added to the
11233           control
11234
11235 2004-11-05 12:42  jackson
11236
11237         * TabControl.cs: Implement SizeMode.FillToRight
11238
11239 2004-11-05 12:16  jackson
11240
11241         * Control.cs: Do not call CreateHandle if the handle is already
11242           created
11243
11244 2004-11-05 11:46  jackson
11245
11246         * TabControl.cs: Remove superflous call to CalcTabRows
11247
11248 2004-11-05 09:07  jackson
11249
11250         * XplatUIX11.cs: Update for Mono.Posix changes
11251
11252 2004-11-05 07:00  ravindra
11253
11254         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11255           scrolling.
11256
11257 2004-11-04 22:47  jba
11258
11259         * ThemeWin32Classic.cs:
11260           - Fix Button rendering for FlatStyle = Flat or Popup
11261           - Fix RadioButton and CheckBox rendering when Appearance = Button
11262             (normal and flatstyle).
11263           - Correct outer rectangle color when drawing focus rectangle
11264           - Adjust button bounds to be 1 px smaller when focused
11265           - Make button not draw sunken 3d border when pushed (windows compat)
11266           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11267           - Offset the text in RadioButton and Checkbox when being rendered as
11268           a button.
11269           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11270           radiobuttons
11271           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11272           - Fixed disabled text rendering for normally rendered radiobuttons
11273
11274 2004-11-04 10:26  jackson
11275
11276         * TabControl.cs: Recalculate tab rows when resizing
11277
11278 2004-11-04 07:47  jordi
11279
11280         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11281           collection completion, drawing issues, missing features
11282
11283 2004-11-04 05:03  ravindra
11284
11285         * ScrollBar.cs:
11286                 - We need to recalculate the Thumb area when
11287                 LargeChange/maximum/minimum values are changed.
11288           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11289                 than minimum. This is required to handle the case if large_change is
11290                 more than max, and use LargeChange property instead of large_change
11291                 variable.
11292           - We return max+1 when large_change is more than max, like MS does.
11293
11294 2004-11-04 04:29  ravindra
11295
11296         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11297                 - Changed default value signatures (prefixed all with ListView).
11298                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11299                 ListView.
11300           - Fixed calculations for ListViewItem and implemented Clone()
11301           method.
11302
11303 2004-11-04 04:26  ravindra
11304
11305         * Theme.cs, ThemeWin32Classic.cs:
11306                 - Changed default ListView values signatures (prefixed all with
11307                 ListView).
11308           - Fixed default size values for VScrollBar and HScrollBar.
11309                 - Fixed DrawListViewItem method.
11310
11311 2004-11-04 04:05  ravindra
11312
11313         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11314
11315 2004-11-04 04:04  ravindra
11316
11317         * ImageList.cs: Implemented the missing overload for Draw method.
11318
11319 2004-11-03 19:29  jackson
11320
11321         * TabControl.cs: Handle dropping rows on selection properly
11322
11323 2004-11-03 11:59  jackson
11324
11325         * TabControl.cs: remove debug code
11326
11327 2004-11-03 11:52  jackson
11328
11329         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11330           the scrolly widgerywoo
11331
11332 2004-11-02 13:52  jackson
11333
11334         * TabControl.cs: Resize the tab pages and tabs when the tab control
11335           is resized
11336
11337 2004-11-02 13:40  jackson
11338
11339         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11340           selected tab to the bottom
11341
11342 2004-11-02 13:39  jackson
11343
11344         * TabPage.cs: Store the tab pages row
11345
11346 2004-11-02 12:33  jordi
11347
11348         * MenuItem.cs: fixes handle creation
11349
11350 2004-11-02 11:42  jackson
11351
11352         * TabControl.cs: signature fix
11353
11354 2004-11-02 08:56  jackson
11355
11356         * TabControl.cs: Calculate whether the tab is on an edge properly.
11357           Remove top secret debugging code
11358
11359 2004-11-01 19:57  jackson
11360
11361         * TabControl.cs: Add click handling, and proper sizing
11362
11363 2004-11-01 19:47  jackson
11364
11365         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11366           tab controls
11367
11368 2004-11-01 19:39  jackson
11369
11370         * TabPage.cs: add internal property to store the bounds of a tab
11371           page
11372
11373 2004-10-30 04:23  ravindra
11374
11375         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11376           values.
11377
11378 2004-10-30 04:21  ravindra
11379
11380         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11381           fixed calculations.
11382
11383 2004-10-30 03:06  pbartok
11384
11385         * XplatUIX11.cs:
11386           - Removed extension of DllImported libs
11387
11388 2004-10-29 09:55  jordi
11389
11390         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11391           navigation, itemcollection completion, menu fixes
11392
11393 2004-10-27 22:58  pbartok
11394
11395         * XplatUIX11.cs:
11396           - Now throws a nice error message when no X display could be opened
11397
11398 2004-10-26 13:51  jordi
11399
11400         * ListView.cs: removes warning
11401
11402 2004-10-26 03:55  ravindra
11403
11404         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11405           ThemeWin32Classic.cs: Some formatting for my last checkins.
11406
11407 2004-10-26 03:36  ravindra
11408
11409         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11410           control and default values.
11411
11412 2004-10-26 03:35  ravindra
11413
11414         * Theme.cs: Added some default values for ListView control.
11415
11416 2004-10-26 03:33  ravindra
11417
11418         * ToolBar.cs: ToolBar should use the user specified button size, if
11419           there is any. Added a size_specified flag for the same.
11420
11421 2004-10-26 03:33  ravindra
11422
11423         * ColumnHeader.cs: Added some internal members and calculations for
11424           ColumnHeader.
11425
11426 2004-10-26 03:32  ravindra
11427
11428         * ListViewItem.cs: Calculations for ListViewItem.
11429
11430 2004-10-26 03:31  ravindra
11431
11432         * ListView.cs: Added some internal members and calculations for
11433           ListView.
11434
11435 2004-10-22 13:31  jordi
11436
11437         * MenuAPI.cs: speedup menus drawing
11438
11439 2004-10-22 13:16  jackson
11440
11441         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11442           expose event
11443
11444 2004-10-22 11:49  jackson
11445
11446         * Control.cs: oops
11447
11448 2004-10-22 11:41  jackson
11449
11450         * Control.cs: Check to see if the window should have its background
11451           repainted by X when drawing.
11452
11453 2004-10-22 11:31  jackson
11454
11455         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11456           clear is true, this way we do not get flicker from X repainting the
11457           background
11458
11459 2004-10-22 11:28  jackson
11460
11461         * XEventQueue.cs: Queue properly
11462
11463 2004-10-21 09:38  jackson
11464
11465         * XEventQueue.cs: Fix access modifier
11466
11467 2004-10-21 09:36  jackson
11468
11469         * XEventQueue.cs: Don't loose messages
11470
11471 2004-10-21 09:22  jackson
11472
11473         * XEventQueue.cs: Don't loose messages
11474
11475 2004-10-20 04:15  jordi
11476
11477         * BootMode.cs: enum need it by SystemInfo
11478
11479 2004-10-19 21:58  pbartok
11480
11481         * XplatUIWin32.cs:
11482           - Small sanity check
11483
11484 2004-10-19 21:56  pbartok
11485
11486         * Form.cs:
11487           - Added private FormParentWindow class which acts as the container
11488             for our form and as the non-client area where menus are drawn
11489           - Added/Moved required tie-ins to Jordi's menus
11490           - Fixed/Implemented the FormStartPosition functionality
11491
11492 2004-10-19 21:52  pbartok
11493
11494         * Control.cs:
11495           - Removed unneeded locals
11496           - Added code to all size and location properties to understand and
11497             deal with the parent container of Form
11498
11499 2004-10-19 21:33  pbartok
11500
11501         * Application.cs:
11502           - Fixed to deal with new Form subclasses for menus
11503
11504 2004-10-19 17:48  jackson
11505
11506         * XEventQueue.cs: commit correct version of file
11507
11508 2004-10-19 16:50  jackson
11509
11510         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11511
11512 2004-10-19 16:15  jordi
11513
11514         * MenuAPI.cs: MenuBarCalcSize returns the height
11515
11516 2004-10-19 08:31  pbartok
11517
11518         * Control.cs:
11519           - Added missing call to PreProcessMessage before calling OnXXXKey
11520           methods
11521
11522 2004-10-19 00:04  ravindra
11523
11524         * ToolTip.cs: Fixed constructor.
11525
11526 2004-10-18 09:31  jordi
11527
11528         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11529
11530 2004-10-18 09:26  jordi
11531
11532         * MenuItem.cs: fixes MenuItem class signature
11533
11534 2004-10-18 08:56  jordi
11535
11536         * MenuAPI.cs: prevents windows from showing in the taskbar
11537
11538 2004-10-18 00:28  ravindra
11539
11540         * ToolTip.cs: Suppressed a warning message.
11541
11542 2004-10-18 00:27  ravindra
11543
11544         * Control.cs: Default value of visible property must be true.
11545
11546 2004-10-17 23:19  pbartok
11547
11548         * ToolTip.cs:
11549           - Complete implementation
11550
11551 2004-10-17 23:19  pbartok
11552
11553         * XplatUIX11.cs:
11554           - Added EnableWindow method
11555           - Added SetModal stub
11556           - Added generation of WM_ACTIVATE message (still needs testing)
11557           - Added SetTopMost stub
11558           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11559
11560 2004-10-17 23:17  pbartok
11561
11562         * XplatUIWin32.cs:
11563           - Removed VirtualKeys to XplatUIStructs
11564           - Implemented SetTopMost method
11565           - Implemented EnableWindow method
11566           - Bugfix in ScreenToClient()
11567           - Bugfixes in ClientToScreen()
11568
11569 2004-10-17 22:51  pbartok
11570
11571         * XplatUIStructs.cs:
11572           - Added WS_EX styles to WindowStyles enumeration
11573
11574 2004-10-17 22:50  pbartok
11575
11576         * XplatUI.cs, XplatUIDriver.cs:
11577           - Added method for enabling/disabling windows
11578           - Added method for setting window modality
11579           - Added method for setting topmost window
11580
11581 2004-10-17 22:49  pbartok
11582
11583         * ThemeWin32Classic.cs:
11584           - Added ToolTip drawing code
11585
11586 2004-10-17 22:49  pbartok
11587
11588         * Theme.cs:
11589           - Added ToolTip abstracts
11590
11591 2004-10-17 22:47  pbartok
11592
11593         * Form.cs:
11594           - Fixed Form.ControlCollection to handle owner relations
11595           - Added Owner/OwnedForms handling
11596           - Implemented Z-Ordering for owned forms
11597           - Removed unneeded private overload of ShowDialog
11598           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11599             so I hope)
11600           - Fixed Close(), had wrong default
11601           - Added firing of OnLoad event
11602           - Added some commented out debug code for Ownership handling
11603
11604 2004-10-17 22:16  pbartok
11605
11606         * Control.cs:
11607           - Fixed/implemented flat list of controls
11608
11609 2004-10-17 22:14  pbartok
11610
11611         * Application.cs:
11612           - Added code to simulate modal dialogs on Win32
11613
11614 2004-10-17 16:11  jordi
11615
11616         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11617           mouse event
11618
11619 2004-10-17 13:39  jordi
11620
11621         * MenuAPI.cs: menu drawing fixes
11622
11623 2004-10-15 09:10  ravindra
11624
11625         * StructFormat.cs: General Enum.
11626
11627 2004-10-15 09:09  ravindra
11628
11629         * SizeGripStyle.cs: Enum for Form.
11630
11631 2004-10-15 09:08  ravindra
11632
11633         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11634           in Theme for ListView.
11635
11636 2004-10-15 09:06  ravindra
11637
11638         * ColumnHeader.cs: Flushing some formatting changes.
11639
11640 2004-10-15 09:05  ravindra
11641
11642         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11643           style.
11644
11645 2004-10-15 09:03  ravindra
11646
11647         * ListView.cs: Implemented Paint method and fixed coding style.
11648
11649 2004-10-15 07:34  jordi
11650
11651         * MenuAPI.cs: fix for X11
11652
11653 2004-10-15 07:32  ravindra
11654
11655         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11656                 - Renamed Paint() method to Draw() for clarity. Also, moved
11657                 DrawImage() to OnPaint().
11658
11659 2004-10-15 07:25  ravindra
11660
11661         * CheckBox.cs, RadioButton.cs:
11662                 - Removed Redraw (), we get it from ButtonBase.
11663                 - Implemented Paint (), to do class specific painting.
11664
11665 2004-10-15 07:16  ravindra
11666
11667         * ButtonBase.cs:
11668                 - Redraw () is not virtual now.
11669                 - Added an internal virtual method Paint (), so that
11670                 derived classes can do their painting on their own.
11671                 - Modified OnPaint () to call Paint ().
11672
11673 2004-10-15 06:43  jordi
11674
11675         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11676           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11677
11678 2004-10-15 00:30  ravindra
11679
11680         * MessageBox.cs:
11681                 - MessageBox on windows does not have min/max buttons.
11682                 This change in CreateParams fixes this on Windows. We
11683                 still need to implement this windowstyle behavior in
11684                 our X11 driver.
11685
11686 2004-10-14 05:14  ravindra
11687
11688         * ToolBar.cs:
11689                 - Changed Redraw () to do a Refresh () always.
11690                 - Fixed the MouseMove event handling when mouse is pressed,
11691                 ie drag event handling.
11692                 - Replaced the usage of ToolBarButton.Pressed property to
11693                 ToolBarButton.pressed internal variable.
11694
11695 2004-10-14 05:10  ravindra
11696
11697         * ToolBarButton.cs:
11698                 - Added an internal member 'inside' to handle mouse move
11699                 with mouse pressed ie mouse drag event.
11700                 - Changed 'Pressed' property to return true only when
11701                 'inside' and 'pressed' are both true.
11702                 - Some coding style love.
11703
11704 2004-10-14 00:17  ravindra
11705
11706         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11707           public method.
11708
11709 2004-10-14 00:15  ravindra
11710
11711         * ButtonBase.cs: Redraw () related improvements.
11712
11713 2004-10-14 00:14  ravindra
11714
11715         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11716           removed unnecessary calls to Button.Show () method.
11717
11718 2004-10-13 17:50  pbartok
11719
11720         * XplatUIX11.cs:
11721           - Formatting fix
11722           - Removed destroying of window until we solve the problem of X
11723             destroying the window before us on shutdown
11724
11725 2004-10-13 16:32  pbartok
11726
11727         * ButtonBase.cs:
11728           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11729
11730 2004-10-13 14:18  pbartok
11731
11732         * XplatUIX11.cs:
11733           - Added code to destroy the X window
11734
11735 2004-10-13 14:18  pbartok
11736
11737         * XplatUIWin32.cs:
11738           - Added code to destroy a window
11739
11740 2004-10-13 14:12  pbartok
11741
11742         * ButtonBase.cs:
11743           - Added the Redraw on Resize that got dropped in the last rev
11744
11745 2004-10-13 09:06  pbartok
11746
11747         * ThemeWin32Classic.cs:
11748           - Path from John BouAntoun:
11749             * Fix check rendering (centre correctly for normal style, offset
11750               correctly for FlatStyle).
11751             * Fix border color usage (use backcolor) for FlatStyle.Popup
11752             * Use checkbox.Capture instead of checkbox.is_pressed when
11753               rendering flatstyle states.
11754
11755 2004-10-12 21:48  pbartok
11756
11757         * ThemeWin32Classic.cs:
11758           - Removed all occurences of SystemColors and replaced them with the
11759             matching theme color
11760
11761 2004-10-12 21:41  pbartok
11762
11763         * ThemeWin32Classic.cs:
11764           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11765             him using the function for flatstyle drawing
11766           - Changed functions to use the new version of CPDrawBorder3D
11767
11768 2004-10-12 21:15  pbartok
11769
11770         * ControlPaint.cs:
11771           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11772             match MS documentation. They need to return defined colors if the
11773             passed color matches the configured control color. Thanks to John
11774             BouAntoun for pointing this out.
11775
11776 2004-10-12 20:57  pbartok
11777
11778         * Control.cs:
11779           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11780             color is changed
11781
11782 2004-10-12 20:46  pbartok
11783
11784         * CheckBox.cs:
11785           - Fix from John BouAntoun: Now properly sets the Appearance property
11786
11787 2004-10-12 20:45  pbartok
11788
11789         * ThemeWin32Classic.cs:
11790           - Fixes from John BouAntoun: now handles forecolors and backcolors
11791             for flatstyle rendered controls much better; It also fixes normal
11792             checkbox rendering when pushed or disabled.
11793
11794 2004-10-08 02:50  jordi
11795
11796         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11797           work
11798
11799 2004-10-07 08:56  jordi
11800
11801         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11802
11803 2004-10-06 03:59  jordi
11804
11805         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11806           XplatUIWin32.cs: removes warnings from compilation
11807
11808 2004-10-05 12:23  jackson
11809
11810         * RadioButton.cs: Fix ctor
11811
11812 2004-10-05 11:10  pbartok
11813
11814         * MessageBox.cs:
11815           - Partial implementation by Benjamin Dasnois
11816
11817 2004-10-05 10:15  jackson
11818
11819         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11820           by John BouAntoun
11821
11822 2004-10-05 03:07  ravindra
11823
11824         * ToolBar.cs:
11825                 - Removed a private method, Draw ().
11826                 - Fixed the ButtonDropDown event handling.
11827                 - Fixed MouseMove event handling.
11828
11829 2004-10-05 03:04  ravindra
11830
11831         * ThemeWin32Classic.cs:
11832                 - Added DrawListView method and ListViewDefaultSize property.
11833                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11834                 - Changed DOS style CRLF to Unix format (dos2unix).
11835
11836 2004-10-05 03:03  ravindra
11837
11838         * Theme.cs:
11839                 - Added DrawListView method and ListViewDefaultSize property.
11840
11841 2004-10-05 02:42  ravindra
11842
11843         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11844           clicks on DropDown arrow.
11845
11846 2004-10-04 22:56  jackson
11847
11848         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11849           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11850           Control handle the buffers, derived classes should not have to
11851           CreateBuffers themselves.
11852
11853 2004-10-04 21:20  jackson
11854
11855         * StatusBar.cs: The control handles resizing the buffers now.
11856
11857 2004-10-04 21:18  jackson
11858
11859         * Control.cs: When resizing the buffers should be invalidated. This
11860           should be handled in Control not in derived classes.
11861
11862 2004-10-04 14:45  jackson
11863
11864         * TabPage.cs: oops
11865
11866 2004-10-04 02:14  pbartok
11867
11868         * LeftRightAlignment.cs:
11869           - Initial check-in
11870
11871 2004-10-04 01:09  jordi
11872
11873         * ThemeWin32Classic.cs: fixes right button position causing right
11874           button not showing on horizontal scrollbars
11875
11876 2004-10-02 13:12  pbartok
11877
11878         * XplatUIX11.cs:
11879           - Simplified the Invalidate method by using an X call instead of
11880             generating the expose ourselves
11881           - Added an expose when the window background is changed
11882           - Implemented ClientToScreen method
11883
11884 2004-10-02 13:08  pbartok
11885
11886         * XplatUIWin32.cs:
11887           - Added Win32EnableWindow method (test for implementing modal
11888           dialogs)
11889           - Added ClientToScreen method and imports
11890
11891 2004-10-02 13:07  pbartok
11892
11893         * XplatUI.cs, XplatUIDriver.cs:
11894           - Added ClientToScreen coordinate translation method
11895
11896 2004-10-02 13:06  pbartok
11897
11898         * KeyPressEventArgs.cs:
11899           - Fixed access level for constructor
11900
11901 2004-10-02 13:06  pbartok
11902
11903         * NativeWindow.cs:
11904           - Changed access level for the window_collection hash table
11905
11906 2004-10-02 13:05  pbartok
11907
11908         * Form.cs:
11909           - Added KeyPreview property
11910           - Added Menu property (still incomplete, pending Jordi's menu work)
11911           - Implemented ProcessCmdKey
11912           - Implemented ProcessDialogKey
11913           - Implemented ProcessKeyPreview
11914
11915 2004-10-02 13:02  pbartok
11916
11917         * Control.cs:
11918           - Added private method to get the Control object from the window
11919           handle
11920           - Implemented ContextMenu property
11921           - Implemented PointToScreen
11922           - Implemented PreProcessMessage
11923           - Implemented IsInputChar
11924           - Implemented IsInputKey
11925           - Implemented ProcessCmdKey
11926           - Completed ProcessKeyEventArgs
11927           - Fixed message loop to call the proper chain of functions on key
11928           events
11929           - Implemented ProcessDialogChar
11930           - Implemented ProcessDialogKey
11931           - Implemented ProcessKeyMessage
11932           - Implemented ProcessKeyPreview
11933           - Added RaiseDragEvent stub (MS internal method)
11934           - Added RaiseKeyEvent stub (MS internal method)
11935           - Added RaiseMouseEvent stub (MS Internal method)
11936           - Added RaisePaintEvent stub (MS Internal method)
11937           - Added ResetMouseEventArgs stub (MS Internal method)
11938           - Implemented RtlTranslateAlignment
11939           - Implemented RtlTranslateContent
11940           - Implemented RtlTranslateHorizontal
11941           - Implemented RtlTranslateLeftRight
11942           - Added generation of KeyPress event
11943
11944 2004-10-02 05:57  ravindra
11945
11946         * ListViewItem.cs: Added attributes.
11947
11948 2004-10-02 05:32  ravindra
11949
11950         * ListView.cs: Added attributes.
11951
11952 2004-10-01 11:53  jackson
11953
11954         * Form.cs: Implement the Close method so work on MessageBox can
11955           continue.
11956
11957 2004-09-30 14:06  pbartok
11958
11959         * XplatUIX11.cs:
11960           - Bug fixes
11961
11962 2004-09-30 11:34  jackson
11963
11964         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
11965
11966 2004-09-30 07:26  ravindra
11967
11968         * ListViewItemConverter.cs: Converter for ListViewItem.
11969
11970 2004-09-30 07:26  ravindra
11971
11972         * SortOrder.cs: Enum for ListView control.
11973
11974 2004-09-30 07:25  ravindra
11975
11976         * ColumnHeader.cs: Supporting class for ListView control.
11977
11978 2004-09-30 07:24  ravindra
11979
11980         * ListView.cs, ListViewItem.cs: Initial implementation.
11981
11982 2004-09-30 07:20  ravindra
11983
11984         * ItemActivation.cs: Enum for ListView Control.
11985
11986 2004-09-29 20:29  pbartok
11987
11988         * XplatUIX11.cs:
11989           - Added lookup of pixel value for background color; tries to get a
11990             color 'close' to the requested color, it avoids having to create a
11991             colormap.  Depending on the display this could mean the used color
11992             is slightly off the desired color. Might have to change it to a more
11993             resource intensive colormap approach, but it will work as a
11994           workaround to avoid red screens.
11995
11996 2004-09-29 14:27  jackson
11997
11998         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
11999
12000 2004-09-28 12:44  pbartok
12001
12002         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12003           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12004           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12005           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12006           TrackBar.cs, VScrollBar.cs:
12007           - Streamlined Theme interfaces:
12008             * Each DrawXXX method for a control now is passed the object for
12009               the control to be drawn in order to allow accessing any state the
12010               theme might require
12011
12012             * ControlPaint methods for the theme now have a CP prefix to avoid
12013               name clashes with the Draw methods for controls
12014
12015             * Every control now retrieves it's DefaultSize from the current
12016             theme
12017
12018 2004-09-28 12:17  jackson
12019
12020         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12021           drawing
12022
12023 2004-09-24 14:57  jackson
12024
12025         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12026           Gives us a nice little performance boost.
12027
12028 2004-09-24 12:02  jackson
12029
12030         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12031           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12032           Control and supporting classes. Initial checkin
12033
12034 2004-09-23 13:08  jackson
12035
12036         * Form.cs: Temp build fixage
12037
12038 2004-09-23 01:39  ravindra
12039
12040         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12041           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12042           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12043           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12044           EventHandlers needed by ListView Control.
12045
12046 2004-09-22 14:12  pbartok
12047
12048         * ScrollableControl.cs:
12049           - Implemented DockPadding property
12050           - Implemented AutoScroll property
12051           - Implemented AutoScrollMargin property
12052           - Implemented AutoScrollMinSize property
12053           - Implemented AutoScrollPosition property
12054           - Implemented DisplayRectangle property (still incomplete)
12055           - Implemented CreateParams property
12056           - Implemented HScroll property
12057           - Implemented VScroll property
12058           - Implemented OnVisibleChanged property
12059
12060 2004-09-22 14:09  pbartok
12061
12062         * Form.cs:
12063           - Added Form.ControllCollection class
12064           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12065             RemoveOwnedForm (still incomplete, missing on-top and common
12066             minimize/maximize behaviour)
12067           - Added StartPosition property (still incomplete, does not use when
12068             creating the form)
12069           - Added ShowDialog() methods (still incomplete, missing forcing the
12070             dialog modal)
12071
12072 2004-09-22 14:05  pbartok
12073
12074         * Application.cs:
12075           - Added message loop for modal dialogs
12076
12077 2004-09-22 14:02  pbartok
12078
12079         * GroupBox.cs:
12080           - Fixed wrong types for events
12081
12082 2004-09-22 14:00  pbartok
12083
12084         * Shortcut.cs, FormWindowState.cs:
12085           - Fixed wrong values
12086
12087 2004-09-22 12:01  jackson
12088
12089         * Control.cs: Text is never null
12090
12091 2004-09-20 22:14  pbartok
12092
12093         * XplatUIWin32.cs:
12094           - Fixed accessibility level for Idle handler
12095
12096 2004-09-20 18:54  jackson
12097
12098         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12099           XplatUIX11.cs: New message loop that uses poll so we don't get a
12100           busy loop
12101
12102 2004-09-17 10:43  pbartok
12103
12104         * ScrollBar.cs:
12105           - Fixed behaviour of arrow buttons. Now properly behaves like
12106             Buttons (and like Microsoft's scrollbar arrow buttons)
12107
12108 2004-09-17 10:14  pbartok
12109
12110         * ScrollBar.cs:
12111           - Added missing release of keyboard/mouse capture
12112
12113 2004-09-17 06:18  jordi
12114
12115         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12116           Theme.cs: Very early menu support
12117
12118 2004-09-16 17:45  pbartok
12119
12120         * XplatUIWin32.cs:
12121           - Fixed sending a window to the front
12122           - Added overload for SetWindowPos to avoid casting
12123
12124 2004-09-16 17:44  pbartok
12125
12126         * Control.cs:
12127           - Added SendToBack and BringToFront methods
12128
12129 2004-09-16 07:00  ravindra
12130
12131         * Copyright: Added Novell URL.
12132
12133 2004-09-16 07:00  ravindra
12134
12135         * ToolBar.cs: Invalidate should be done before redrawing.
12136
12137 2004-09-15 21:19  ravindra
12138
12139         * ColumnHeaderStyle.cs: Enum for ListView Control.
12140
12141 2004-09-15 21:18  ravindra
12142
12143         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12144           ListView Control.
12145
12146 2004-09-13 18:26  jackson
12147
12148         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12149           properly
12150
12151 2004-09-13 18:13  jackson
12152
12153         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12154           a second thread and post messages into the main threads message
12155           queue. This makes timing much more consistent. Both win2K and XP
12156           have a minimum timer value of 15 milliseconds, so we now do this
12157           too.
12158
12159 2004-09-13 15:18  pbartok
12160
12161         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12162           XplatUIX11.cs:
12163           - Added Z-Ordering methods
12164
12165 2004-09-13 10:56  pbartok
12166
12167         * Form.cs:
12168           - Fixed #region names
12169           - Moved properties and methods into their proper #regions
12170
12171 2004-09-13 10:51  pbartok
12172
12173         * Form.cs:
12174           - Added Accept and CancelButton properties
12175           - Added ProcessDialogKey() method
12176
12177 2004-09-13 08:18  pbartok
12178
12179         * IWindowTarget.cs:
12180           - Initial check-in
12181
12182 2004-09-10 21:50  pbartok
12183
12184         * Control.cs:
12185           - Added DoDragDrop() [incomplete]
12186           - Properly implemented 'Visible' handling
12187           - Added SetVisibleCore()
12188           - Implemented FindChildAtPoint()
12189           - Implemented GetContainerControl()
12190           - Implemented Hide()
12191
12192 2004-09-10 19:28  pbartok
12193
12194         * Control.cs:
12195           - Moved methods into their appropriate #regions
12196           - Reordered methods within regions alphabetically
12197
12198 2004-09-10 18:57  pbartok
12199
12200         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12201           - Added method to retrieve text from window
12202
12203 2004-09-10 18:56  pbartok
12204
12205         * Control.cs:
12206           - Moved some internal functions into the internal region
12207           - Implemented FontHeight
12208           - Implemented RenderRightToLeft
12209           - Implemented ResizeRedraw
12210           - Implemented ShowFocusCues
12211           - Implemented ShowKeyboardCues
12212           - Implemented FromChildHandle
12213           - Implemented FromHandle
12214           - Implemented IsMnemonic
12215           - Implemented ReflectMessage
12216           - All public and protected Static Methods are now complete
12217
12218 2004-09-10 16:54  pbartok
12219
12220         * Control.cs:
12221           - Implemented remaining missing public instance properties
12222           - Alphabetized some out of order properties
12223
12224 2004-09-10 05:51  ravindra
12225
12226         * PictureBox.cs: Added a check for null image.
12227
12228 2004-09-10 00:59  jordi
12229
12230         * GroupBox.cs: remove cvs tag
12231
12232 2004-09-09 05:25  ravindra
12233
12234         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12235
12236 2004-09-09 05:23  ravindra
12237
12238         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12239           parent redraw.
12240
12241 2004-09-09 02:28  pbartok
12242
12243         * ThemeWin32Classic.cs:
12244           - Improve disabled string look
12245
12246 2004-09-09 01:15  jordi
12247
12248         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12249           args and handler
12250
12251 2004-09-08 23:56  ravindra
12252
12253         * ItemBoundsPortion.cs: It's enum, not a class!
12254
12255 2004-09-08 23:47  ravindra
12256
12257         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12258           Enums for Form.
12259
12260 2004-09-08 21:13  ravindra
12261
12262         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12263           ListView control.
12264
12265 2004-09-08 21:03  ravindra
12266
12267         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12268           avoid crash.
12269
12270 2004-09-08 21:01  ravindra
12271
12272         * ScrollableControl.cs: Removed unreachable code.
12273
12274 2004-09-08 06:45  jordi
12275
12276         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12277
12278 2004-09-08 01:00  jackson
12279
12280         * XplatUIX11.cs: Only run the timers when updating the message
12281           queue. This effectively gives X messages a higher priority then
12282           timer messages. Timers still need love though
12283
12284 2004-09-07 14:01  jackson
12285
12286         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12287           this for us and the handle is no longer valid.
12288
12289 2004-09-07 13:59  jackson
12290
12291         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12292           loop that manages to not crash. TODO: Add poll and cleanup timers
12293
12294 2004-09-07 11:12  jordi
12295
12296         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12297
12298 2004-09-07 03:40  jordi
12299
12300         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12301           fixes, methods, multiple links
12302
12303 2004-09-06 06:55  jordi
12304
12305         * Control.cs: Caches ClientRectangle rectangle value
12306
12307 2004-09-05 02:03  jordi
12308
12309         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12310           certain situations
12311
12312 2004-09-04 11:10  jordi
12313
12314         * Label.cs: Refresh when font changed
12315
12316 2004-09-02 16:24  pbartok
12317
12318         * Control.cs:
12319           - Added sanity check to creation of double buffer bitmap
12320
12321 2004-09-02 16:24  pbartok
12322
12323         * ButtonBase.cs:
12324           - Fixed selection of text color
12325           - Fixed handling of resize event; now properly recreates double
12326             buffering bitmap
12327           - Added missing assignment of TextAlignment
12328           - Added proper default for TextAlignment
12329
12330 2004-09-02 14:26  pbartok
12331
12332         * RadioButton.cs:
12333           - Added missing RadioButton.RadioButtonAccessibleObject class
12334
12335 2004-09-02 14:26  pbartok
12336
12337         * Control.cs:
12338           - Added missing Control.ControlAccessibleObject class
12339           - Started to implement Select()ion mechanisms, still very incomplete
12340
12341 2004-09-02 14:25  pbartok
12342
12343         * AccessibleObject.cs:
12344           - Added missing methods
12345
12346 2004-09-02 14:23  pbartok
12347
12348         * AccessibleNavigation.cs, AccessibleSelection.cs:
12349           - Initial check-in
12350
12351 2004-09-02 10:32  jordi
12352
12353         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12354           pool for pens, brushes, and hatchbruses
12355
12356 2004-09-01 15:30  jackson
12357
12358         * StatusBar.cs: Fix typo
12359
12360 2004-09-01 14:44  pbartok
12361
12362         * RadioButton.cs:
12363           - Fixed state
12364
12365 2004-09-01 14:39  pbartok
12366
12367         * Button.cs, RadioButton.cs:
12368           - Functional initial check-in
12369
12370 2004-09-01 14:01  pbartok
12371
12372         * CheckBox.cs:
12373           - Added missing default
12374           - Added missing region mark
12375
12376 2004-09-01 09:10  jordi
12377
12378         * Label.cs: fixes method signatures, new methods, events, fixes
12379           autosize
12380
12381 2004-09-01 07:19  jordi
12382
12383         * Control.cs: Init string variables with an empty object
12384
12385 2004-09-01 04:20  jordi
12386
12387         * Control.cs: fires OnFontChanged event
12388
12389 2004-08-31 20:07  pbartok
12390
12391         * ButtonBase.cs:
12392           - Enabled display of strings
12393
12394 2004-08-31 20:05  pbartok
12395
12396         * Form.cs:
12397           - Added (partial) implementation of DialogResult; rest needs to be
12398             implemented when the modal loop code is done
12399
12400 2004-08-31 19:55  pbartok
12401
12402         * CheckBox.cs:
12403           - Fixed to match the removal of the needs_redraw concept
12404
12405 2004-08-31 19:55  pbartok
12406
12407         * ButtonBase.cs:
12408           - Removed the rather odd split between 'needs redraw' and redrawing
12409           - Now handles the events that require regeneration (ambient
12410             properties and size)
12411
12412 2004-08-31 19:41  pbartok
12413
12414         * Control.cs:
12415           - Added firing of BackColorChanged event
12416           - Added TopLevelControl property
12417           - Fixed handling of WM_ERASEBKGRND message
12418
12419 2004-08-31 12:49  pbartok
12420
12421         * ButtonBase.cs:
12422           - Removed debug
12423           - Minor fixes
12424
12425 2004-08-31 12:48  pbartok
12426
12427         * CheckBox.cs:
12428           - Finished (famous last words)
12429
12430 2004-08-31 04:35  jordi
12431
12432         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12433           scrolling bugs, adds new methods
12434
12435 2004-08-30 14:42  pbartok
12436
12437         * CheckBox.cs:
12438           - Implemented CheckBox drawing code
12439
12440 2004-08-30 14:42  pbartok
12441
12442         * ButtonBase.cs:
12443           - Made Redraw() and CheckRedraw() virtual
12444           - Improved mouse up/down/move logic to properly track buttons
12445
12446 2004-08-30 09:44  pbartok
12447
12448         * CheckBox.cs:
12449           - Updated to fix broken build. Not complete yet.
12450
12451 2004-08-30 09:28  pbartok
12452
12453         * CheckState.cs:
12454           - Initial checkin
12455
12456 2004-08-30 09:17  pbartok
12457
12458         * Appearance.cs:
12459           - Initial check-in
12460
12461 2004-08-27 16:12  ravindra
12462
12463         * ToolBarButton.cs: Added TypeConverter attribute.
12464
12465 2004-08-27 16:07  ravindra
12466
12467         * ImageIndexConverter.cs: Implemented.
12468
12469 2004-08-27 14:17  pbartok
12470
12471         * Control.cs:
12472           - Removed unneeded stack vars
12473           - First attempt to fix sizing issues when layout is suspended
12474
12475 2004-08-25 15:35  jordi
12476
12477         * ScrollBar.cs: more fixes to scrollbar
12478
12479 2004-08-25 14:04  ravindra
12480
12481         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12482           Added the missing divider code and grip for ToolBar Control.
12483
12484 2004-08-25 13:20  pbartok
12485
12486         * Control.cs:
12487           - Control now properly passes the ambient background color to child
12488             controls
12489
12490 2004-08-25 13:20  jordi
12491
12492         * ScrollBar.cs: small bug fix regarding bar position
12493
12494 2004-08-25 12:33  pbartok
12495
12496         * Timer.cs:
12497           - Now only calls SetTimer or KillTimer if the enabled state has
12498           changed
12499
12500 2004-08-25 12:33  pbartok
12501
12502         * XplatUIWin32.cs:
12503           - Fixed timer handling, now seems to work
12504           - Improved error message for window creation
12505
12506 2004-08-25 12:32  pbartok
12507
12508         * Control.cs:
12509           - Fixed generation of MouseUp message
12510
12511 2004-08-25 12:29  jordi
12512
12513         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12514           and fixes for progressbar
12515
12516 2004-08-24 18:43  ravindra
12517
12518         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12519           in ToolBar control.
12520
12521 2004-08-24 17:15  pbartok
12522
12523         * Panel.cs:
12524           - Added #region
12525           - Added missing events
12526           - Alphabetized
12527
12528 2004-08-24 17:14  pbartok
12529
12530         * StatusBar.cs, PictureBox.cs:
12531           - Now uses Control's CreateParams
12532
12533 2004-08-24 16:36  pbartok
12534
12535         * XplatUIX11.cs:
12536           - Fixed background color handling
12537           - Fixed sending of enter/leave events on a grab
12538
12539 2004-08-24 16:35  pbartok
12540
12541         * X11Structs.cs:
12542           - Refined definitions for CrossingEvent
12543
12544 2004-08-24 12:37  jordi
12545
12546         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12547           formmating, methods signature, and adds missing events
12548
12549 2004-08-24 12:24  jordi
12550
12551         * Control.cs: fire OnEnabledChanged event
12552
12553 2004-08-24 11:17  pbartok
12554
12555         * XplatUIWin32.cs:
12556           - Implemented SetTimer() and KillTimer()
12557
12558 2004-08-24 11:16  pbartok
12559
12560         * XplatUIX11.cs:
12561           - Now uses Remove instead of Add to kill the timer
12562
12563 2004-08-24 10:16  jackson
12564
12565         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12566           picture boxes in the theme now. Draw picture box borders and obey
12567           sizing modes
12568
12569 2004-08-24 05:49  jackson
12570
12571         * Timer.cs: Remove top secret debugging code
12572
12573 2004-08-24 05:34  jackson
12574
12575         * PictureBox.cs: Temp hack to make picture boxes draw their full
12576           image
12577
12578 2004-08-24 05:29  jackson
12579
12580         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12581           XplatUIX11.cs: Move timers to the driver level. On X they are
12582           queued by the driver and checked on idle.
12583
12584 2004-08-24 01:07  jackson
12585
12586         * XplatUIX11.cs: Use a queue for async messages instead of passing
12587           them as ClientMessages since that was totally broken. Also simply
12588           check for events and return an idle message if none are found. This
12589           gives us an idle handler, and prevents deadlocking when no messages
12590           are in the queue.
12591
12592 2004-08-23 18:19  ravindra
12593
12594         * XplatUIWin32.cs: Removed the unwanted destructor.
12595
12596 2004-08-23 17:27  pbartok
12597
12598         * ButtonBase.cs:
12599           - Finishing touches. Works now, just needs some optimizations.
12600
12601 2004-08-23 16:53  jordi
12602
12603         * ScrollBar.cs: small fix
12604
12605 2004-08-23 16:45  pbartok
12606
12607         * Application.cs:
12608           - Removed debug output
12609           - Simplifications
12610
12611 2004-08-23 16:43  jordi
12612
12613         * ScrollBar.cs: [no log message]
12614
12615 2004-08-23 16:10  pbartok
12616
12617         * Form.cs:
12618           - Fixed handling of WM_CLOSE message
12619           - Removed debug output
12620
12621 2004-08-23 16:09  pbartok
12622
12623         * Application.cs:
12624           - Added handling of Idle event
12625           - Added handling of form closing
12626           - Fixed reporting of MessageLoop property
12627           - Removed some unneeded code, should provide a bit of a speedup
12628
12629 2004-08-23 15:22  pbartok
12630
12631         * Control.cs:
12632           - Added InitLayout() method
12633           - Added code to properly perform layout when Anchor or Dock property
12634             is changed
12635           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12636             LAMESPEC, tried to do it in a way that makes sense
12637
12638 2004-08-23 14:10  jordi
12639
12640         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12641           properties and methods
12642
12643 2004-08-23 13:55  pbartok
12644
12645         * Control.cs:
12646           - Properly fixed Jordi's last fix
12647           - Now uses Cursor's Position property instead of calling XplatUI
12648           directly
12649
12650 2004-08-23 13:44  jordi
12651
12652         * PaintEventHandler.cs: Adding missing attribute
12653
12654 2004-08-23 13:39  pbartok
12655
12656         * Cursor.cs:
12657           - Implemented Position property
12658
12659 2004-08-23 13:39  pbartok
12660
12661         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12662           - Added method to move mouse cursor
12663
12664 2004-08-23 13:39  pbartok
12665
12666         * XplatUIX11.cs:
12667           - Fixed setting of background color
12668           - Added method to move mouse cursor
12669
12670 2004-08-23 13:16  jordi
12671
12672         * Control.cs: avoids null exception
12673
12674 2004-08-22 17:46  jackson
12675
12676         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12677           PictureBox
12678
12679 2004-08-22 17:40  jackson
12680
12681         * XplatUIX11.cs: Add some missing locks
12682
12683 2004-08-22 15:10  pbartok
12684
12685         * Control.cs, Form.cs:
12686           - Removed OverlappedWindow style from Control, instead it's default
12687             now is child
12688           - Made form windows OverlappedWindow by default
12689
12690 2004-08-22 13:34  jackson
12691
12692         * ScrollBar.cs: Update the position through the Value property so
12693           the OnValueChanged event is raised.
12694
12695 2004-08-22 12:04  pbartok
12696
12697         * SWF.csproj:
12698           - Added Cursor.cs and UserControl.cs
12699
12700 2004-08-22 12:03  pbartok
12701
12702         * Cursor.cs:
12703           - Started implementation, not usable yet
12704
12705 2004-08-22 12:00  pbartok
12706
12707         * UserControl.cs:
12708           - Implemented UserControl (complete)
12709
12710 2004-08-21 19:20  ravindra
12711
12712         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12713
12714 2004-08-21 18:49  ravindra
12715
12716         * ToolBar.cs: Probably this completes the missing attributes in
12717           toolbar control.
12718
12719 2004-08-21 18:03  ravindra
12720
12721         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12722           Fixed toolbar control signatures.
12723
12724 2004-08-21 16:32  pbartok
12725
12726         * LinkLabel.cs:
12727           - Signature Fixes
12728
12729 2004-08-21 16:30  pbartok
12730
12731         * Label.cs:
12732           - Signature fixes
12733
12734 2004-08-21 16:19  pbartok
12735
12736         * Control.cs, Label.cs:
12737           - Signature fixes
12738
12739 2004-08-21 15:57  pbartok
12740
12741         * ButtonBase.cs:
12742           - Added loads of debug output for development
12743           - Fixed typo in method name
12744
12745 2004-08-21 15:52  pbartok
12746
12747         * ToolBarButtonClickEventArgs.cs:
12748           - Added missing base class
12749
12750 2004-08-21 14:53  pbartok
12751
12752         * Control.cs:
12753           - Updated to match new GrabWindow signature
12754
12755 2004-08-21 14:51  pbartok
12756
12757         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12758           - Added method to get default display size
12759
12760 2004-08-21 14:23  pbartok
12761
12762         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12763           - Added method to query current grab state
12764           - Added argument to allow confining a grab to a window
12765
12766 2004-08-21 14:22  pbartok
12767
12768         * Keys.cs:
12769           - Added [Flags] attribute so that modifiers can be used in bitwise
12770           ops
12771
12772 2004-08-21 14:21  pbartok
12773
12774         * TrackBar.cs, ScrollBar.cs:
12775           - Replaced direct XplatUI calls with their Control counterpart
12776
12777 2004-08-21 13:32  pbartok
12778
12779         * Control.cs:
12780           - Implemented Created property
12781
12782 2004-08-21 13:28  pbartok
12783
12784         * Control.cs:
12785           - Implemented ContainsFocus
12786
12787 2004-08-21 13:26  pbartok
12788
12789         * Control.cs:
12790           - Implemented CausesValidation
12791
12792 2004-08-21 13:21  pbartok
12793
12794         * Control.cs:
12795           - Implemented CanFocus
12796           - Implemented CanSelect
12797           - Implemented Capture
12798
12799 2004-08-21 12:35  pbartok
12800
12801         * XplatUIWin32.cs:
12802           - Fixed bug with Async message handling
12803           - Implemented getting the ModifierKeys
12804
12805 2004-08-21 12:32  jackson
12806
12807         * AsyncMethodResult.cs: Make sure we have the mutex before we
12808           release it. Fixes BeginInvoke on windows
12809
12810 2004-08-21 11:31  pbartok
12811
12812         * XplatUIWin32.cs, XplatUIX11.cs:
12813           - Drivers now return proper mouse state
12814
12815 2004-08-21 10:54  jackson
12816
12817         * Control.cs: Implement EndInvoke
12818
12819 2004-08-21 10:48  jackson
12820
12821         * Timer.cs: Remove unneeded finalizer
12822
12823 2004-08-20 19:52  ravindra
12824
12825         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12826           in mouse event handling in the ToolBar control.
12827
12828 2004-08-20 19:50  ravindra
12829
12830         * ImageList.cs: Changed draw method to use the arguments passed in
12831           to draw the image.
12832
12833 2004-08-20 18:58  pbartok
12834
12835         * XplatUIStructs.cs:
12836           - Added private message for async communication
12837
12838 2004-08-20 17:38  ravindra
12839
12840         * Control.cs: Made RightToLeft property virtual and removed a
12841           Console.WriteLine.
12842
12843 2004-08-20 14:39  jordi
12844
12845         * ThemeGtk.cs: use style_attach
12846
12847 2004-08-20 14:39  pbartok
12848
12849         * XplatUIWin32.cs:
12850           - Added jackson's Async code from X11 to Win32
12851
12852 2004-08-20 14:09  pbartok
12853
12854         * SWF.csproj:
12855           - Added all new files
12856
12857 2004-08-20 14:09  pbartok
12858
12859         * Control.cs:
12860           - Added call to set window background color
12861
12862 2004-08-20 14:03  pbartok
12863
12864         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12865           - Added method for setting the window background
12866
12867 2004-08-20 14:02  pbartok
12868
12869         * XplatUIWin32.cs:
12870           - Added method for setting the background color
12871           - Added handling for erasing the window background
12872
12873 2004-08-20 13:45  jordi
12874
12875         * TrackBar.cs: fixes timer, new properties and methods
12876
12877 2004-08-20 13:34  jackson
12878
12879         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12880           correct thread
12881
12882 2004-08-20 13:22  jackson
12883
12884         * Timer.cs: Timer Tick events are now handed through Controls Async
12885           mechanism so the callbacks are executed in the same thread as X
12886
12887 2004-08-20 13:19  jackson
12888
12889         * XplatUIDriver.cs: Expose functionality to send async messages
12890           through the driver
12891
12892 2004-08-20 13:18  jackson
12893
12894         * Control.cs: Implement Begininvoke
12895
12896 2004-08-20 13:14  jackson
12897
12898         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12899           messages through the driver
12900
12901 2004-08-20 13:12  jackson
12902
12903         * XplatUIX11.cs: Lock before all X operations. Also added Async
12904           method functionality through XSendEvent
12905
12906 2004-08-20 13:11  jackson
12907
12908         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12909           This will screw up on 64 bit systems)
12910
12911 2004-08-20 13:10  jackson
12912
12913         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12914           Async messages through X/Win32
12915
12916 2004-08-19 19:39  pbartok
12917
12918         * XplatUIX11.cs:
12919           - Updated code to match new HandleData.DeviceContext type
12920
12921 2004-08-19 19:38  pbartok
12922
12923         * HandleData.cs:
12924           - Made DeviceContext a generic object to allow usage from various
12925           drivers
12926           - Added support for queueing Windows messages
12927
12928 2004-08-19 19:37  pbartok
12929
12930         * XplatUIWin32.cs:
12931           - Added generation of MouseEnter, MouseLeave and MouseHover events
12932           - Added cleanup on EndPaint
12933
12934 2004-08-19 19:17  pbartok
12935
12936         * Control.cs:
12937           - Added handling of WM_MOUSEHOVER
12938           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12939           code
12940
12941 2004-08-19 18:55  jordi
12942
12943         * ThemeGtk.cs: fixes button order
12944
12945 2004-08-19 18:12  jordi
12946
12947         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12948
12949 2004-08-19 17:09  pbartok
12950
12951         * Control.cs:
12952           - Added Right property
12953           - Added RightToLeft property
12954
12955 2004-08-19 16:27  jordi
12956
12957         * ThemeGtk.cs: experimental GTK theme support
12958
12959 2004-08-19 16:26  jordi
12960
12961         * ITheme.cs, Theme.cs: move themes from an interface to a class
12962
12963 2004-08-19 16:25  jordi
12964
12965         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
12966           theme enhancaments
12967
12968 2004-08-19 16:04  pbartok
12969
12970         * XplatUIX11.cs:
12971           - Added colormap basics
12972           - Added a way to re-initialize with a different display handle
12973           - Fixed setting of the window background color
12974           - Added various X11 imports related to colors and colormaps
12975
12976 2004-08-19 15:51  pbartok
12977
12978         * X11Structs.cs:
12979           - Removed packing hints (Paolo suggested this a while back)
12980           - fixed colormap type
12981           - Added default Atom types
12982           - Added Screen and color structs and enums
12983
12984 2004-08-19 15:39  pbartok
12985
12986         * ImageList.cs:
12987           - Added missing Draw() method
12988           - Added missing RecreateHandle event
12989
12990 2004-08-19 15:30  pbartok
12991
12992         * Form.cs:
12993           - Added handling of WM_CLOSE
12994
12995 2004-08-18 13:16  jordi
12996
12997         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
12998           a table
12999
13000 2004-08-18 09:56  jordi
13001
13002         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13003
13004 2004-08-17 15:31  ravindra
13005
13006         * SWF.csproj: Updated project.
13007
13008 2004-08-17 15:25  pbartok
13009
13010         * Control.cs:
13011           - Drawing improvement; don't call UpdateBounds if we are not visible
13012             (or have been minimized)
13013
13014 2004-08-17 15:24  pbartok
13015
13016         * XplatUIWin32.cs:
13017           - Finished IsVisible
13018           - Added Win32GetWindowPlacement
13019
13020 2004-08-17 15:08  jackson
13021
13022         * Panel.cs: Initial checkin of the Panel
13023
13024 2004-08-17 14:25  pbartok
13025
13026         * Control.cs:
13027           - Fixed broken handling of default window sizes
13028
13029 2004-08-17 13:29  jackson
13030
13031         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13032           has a large startup time.
13033
13034 2004-08-17 10:25  jackson
13035
13036         * HandleData.cs: union areas properly
13037
13038 2004-08-17 10:12  jackson
13039
13040         * HandleData.cs: union areas properly
13041
13042 2004-08-16 20:00  ravindra
13043
13044         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13045
13046 2004-08-16 18:48  ravindra
13047
13048         * ToolBar.cs: Added attributes.
13049
13050 2004-08-16 17:17  ravindra
13051
13052         * SWF.csproj: Updated project.
13053
13054 2004-08-16 17:16  jackson
13055
13056         * XplatUIX11.cs: Check for more expose events before sending a
13057           WM_PAINT so they can all be grouped together. This makes dragging a
13058           window across another window redraw in a sane way.
13059
13060 2004-08-16 15:47  pbartok
13061
13062         * Control.cs:
13063           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13064             support OnMouseEnter/Leave()
13065           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13066             exposure handling
13067
13068 2004-08-16 15:46  pbartok
13069
13070         * XplatUIStructs.cs, XplatUIX11.cs:
13071           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13072           OnMouseEnter/Leave()
13073
13074 2004-08-16 15:34  jackson
13075
13076         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13077           sure messages get the message field set to WM_NULL if they are not
13078           handled.
13079
13080 2004-08-16 15:24  jackson
13081
13082         * HandleData.cs: HandleData is used for storing message information
13083           for window handles
13084
13085 2004-08-15 17:23  ravindra
13086
13087         * ColorDepth.cs: Added attribute.
13088
13089 2004-08-15 17:23  ravindra
13090
13091         * SWF.csproj: Updated project for ToolBar Control.
13092
13093 2004-08-15 17:20  ravindra
13094
13095         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13096           control and also dos2unix format.
13097
13098 2004-08-15 17:13  ravindra
13099
13100         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13101           ToolBarButtonClickEventArgs.cs,
13102           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13103           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13104
13105 2004-08-15 15:31  pbartok
13106
13107         * ButtonBase.cs:
13108           - First (mostly) working version
13109
13110 2004-08-13 16:15  pbartok
13111
13112         * Control.cs:
13113           - Fixed Anchor default
13114
13115 2004-08-13 15:43  pbartok
13116
13117         * Control.cs:
13118           - Changed GetCursorPos signature
13119
13120 2004-08-13 15:42  pbartok
13121
13122         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13123           - Changed signature for GetCursorPos
13124
13125 2004-08-13 15:25  pbartok
13126
13127         * XplatUIX11.cs:
13128           - Cleanup
13129           - Fixed resizing/exposure handling
13130
13131 2004-08-13 15:22  jordi
13132
13133         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13134           with tickposition
13135
13136 2004-08-13 14:55  jordi
13137
13138         * TrackBar.cs: change from wndproc to events
13139
13140 2004-08-13 13:00  jordi
13141
13142         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13143           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13144
13145 2004-08-13 12:53  pbartok
13146
13147         * XplatUIWin32.cs:
13148           - Changed GetWindowPos to also provide client area size
13149           - Fixed broken prototypes for several win32 functions
13150
13151 2004-08-13 12:53  pbartok
13152
13153         * XplatUI.cs, XplatUIDriver.cs:
13154           - Changed GetWindowPos to also provide client area size
13155
13156 2004-08-13 12:52  pbartok
13157
13158         * XplatUIX11.cs:
13159           - Added generation of WM_POSCHANGED
13160           - Changed GetWindowPos to also provide client area size
13161
13162 2004-08-13 12:52  pbartok
13163
13164         * Control.cs:
13165           - Added Dispose() and destructor
13166           - Fixed resizing and bounds calculation
13167           - Fixed Layout
13168           - Added memory savings for invisible windows
13169
13170 2004-08-13 12:46  jordi
13171
13172         * TrackBar.cs: adds timer and grap window
13173
13174 2004-08-13 10:25  jackson
13175
13176         * Timer.cs: SWF Timer
13177
13178 2004-08-12 16:59  pbartok
13179
13180         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13181           - Implemented method to get current mouse position
13182
13183 2004-08-12 14:29  jordi
13184
13185         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13186           enhancement, fix mouse problems, highli thumb, etc
13187
13188 2004-08-12 13:31  pbartok
13189
13190         * Control.cs:
13191           - Fixed Anchoring bugs
13192
13193 2004-08-12 13:01  jackson
13194
13195         * StatusBar.cs: Don't forget things
13196
13197 2004-08-12 12:54  jackson
13198
13199         * ThemeWin32Classic.cs: Handle owner draw status bars
13200
13201 2004-08-12 12:54  jackson
13202
13203         * StatusBar.cs: Implement missing properties, events, and methods.
13204           Handle mouse clicking
13205
13206 2004-08-12 10:19  jackson
13207
13208         * StatusBarPanelClickEventArgs.cs,
13209           StatusBarPanelClickEventHandler.cs: Classes for handling status
13210           bar panel click events
13211
13212 2004-08-12 10:10  jackson
13213
13214         * Control.cs: Add missing properties
13215
13216 2004-08-12 09:46  pbartok
13217
13218         * BindingsManagerBase.cs:
13219           - Name changed to BindingManagerBase.cs
13220
13221 2004-08-12 09:25  jordi
13222
13223         * ScrollableControl.cs: calls ctrlbase instead of exeception
13224
13225 2004-08-11 16:28  pbartok
13226
13227         * InputLanguageChangingEventArgs.cs:
13228           - Never check in before compiling. Fixes the last check-in
13229
13230 2004-08-11 16:26  pbartok
13231
13232         * InputLanguageChangingEventArgs.cs:
13233           - More signature fixes
13234
13235 2004-08-11 16:20  pbartok
13236
13237         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13238           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13239           ImageListStreamer.cs, InputLanguage.cs,
13240           InputLanguageChangedEventArgs.cs,
13241           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13242           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13243           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13244           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13245           - Signature fixes
13246
13247 2004-08-11 16:16  pbartok
13248
13249         * Application.cs:
13250           - Fixed Signature
13251           - Added .Net 1.1 method
13252
13253 2004-08-11 15:25  pbartok
13254
13255         * SWF.csproj:
13256           - Fixed BindingManagerBase.cs filename
13257
13258 2004-08-11 15:22  pbartok
13259
13260         * BindingManagerBase.cs:
13261           - Was checked in with wrong filename
13262
13263 2004-08-11 14:50  pbartok
13264
13265         * SWF.csproj:
13266           - Updated
13267
13268 2004-08-11 13:41  jordi
13269
13270         * XplatUIWin32.cs: Fixes ClientRect
13271
13272 2004-08-11 13:19  pbartok
13273
13274         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13275           XplatUIX11.cs:
13276           - We had SetWindowPos and MoveWindow to set window positions and
13277             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13278             keep SetWindowPos as matching counterpart
13279           - Added some X11 sanity checking
13280
13281 2004-08-11 12:59  pbartok
13282
13283         * Control.cs:
13284           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13285             (It seems that SetBounds is just a front for SetBoundsCore and
13286              SetBoundsCore updates the underlying window system and
13287              UpdateBounds is responsible for updating the variables associated
13288              with the Control and sending the events)
13289           - Major cleanup of Size handling; we now have two sizes, client_size
13290             and bounds. Bounds defines the window with decorations, client_size
13291             without them.
13292
13293 2004-08-11 12:55  pbartok
13294
13295         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13296           - Added method to calculate difference between decorated window and
13297             raw client area
13298
13299 2004-08-11 12:54  pbartok
13300
13301         * Label.cs:
13302           - Forcing redraw on resize
13303
13304 2004-08-11 11:43  pbartok
13305
13306         * ImageList.cs:
13307           - Removed disposing of the actual images when the list is disposed
13308
13309 2004-08-11 09:13  pbartok
13310
13311         * Control.cs:
13312           - Now properly reparents windows
13313
13314 2004-08-11 08:37  pbartok
13315
13316         * Control.cs:
13317           - Duh!
13318
13319 2004-08-11 07:47  pbartok
13320
13321         * Control.cs:
13322           - Rewrote the collection stuff. Might not be as fast now, not
13323             keeping the number of children around and accessible directly, but
13324             it's more straightforward
13325
13326 2004-08-11 07:44  pbartok
13327
13328         * AccessibleObject.cs:
13329           - Fixed to match ControlCollection rewrite
13330
13331 2004-08-11 07:43  pbartok
13332
13333         * ImageList.cs:
13334           - Added missing creation of the collection list
13335
13336 2004-08-10 20:08  jackson
13337
13338         * StatusBar.cs: Get the paint message from WndProc
13339
13340 2004-08-10 19:31  jackson
13341
13342         * ThemeWin32Classic.cs: Create Brushes as little as possible
13343
13344 2004-08-10 19:20  jackson
13345
13346         * UICues.cs: Add Flags attribute
13347
13348 2004-08-10 19:19  jackson
13349
13350         * StatusBarPanel.cs: Signature cleanup
13351
13352 2004-08-10 19:10  jackson
13353
13354         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13355           Initial implementation of status bar item drawing
13356
13357 2004-08-10 17:27  jordi
13358
13359         * TrackBar.cs: add missing methods, properties, and restructure to
13360           hide extra ones
13361
13362 2004-08-10 16:24  jackson
13363
13364         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13365           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13366           attribute
13367
13368 2004-08-10 13:21  jordi
13369
13370         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13371           enhancements and standarize on win colors defaults
13372
13373 2004-08-10 12:52  jackson
13374
13375         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13376           ThemeWin32Classic.cs: Implement DrawItem functionality
13377
13378 2004-08-10 12:47  jordi
13379
13380         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13381
13382 2004-08-10 12:32  jordi
13383
13384         * Control.cs: throw ontextchange event
13385
13386 2004-08-10 11:43  pbartok
13387
13388         * Control.cs:
13389           - Added more to the still unfinished Dock/Anchor layout code
13390
13391 2004-08-10 11:39  pbartok
13392
13393         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13394           - Added GetWindowPos method
13395
13396 2004-08-10 11:36  pbartok
13397
13398         * XplatUIWin32.cs:
13399           - Implemented several methods
13400
13401 2004-08-10 09:47  jackson
13402
13403         * TrackBar.cs: Allow control to handle buffering
13404
13405 2004-08-10 09:41  jackson
13406
13407         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13408
13409 2004-08-10 09:24  jackson
13410
13411         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13412
13413 2004-08-10 09:09  jackson
13414
13415         * StatusBar.cs: Let Control handle all the buffering.
13416
13417 2004-08-10 09:08  jackson
13418
13419         * Control.cs: Control will now handle the buffering code, so each
13420           control does not have to implement this.
13421
13422 2004-08-10 08:34  jackson
13423
13424         * XplatUIDriver.cs: Use default colors from the theme
13425
13426 2004-08-09 17:12  pbartok
13427
13428         * ImageList.cs:
13429           - Fixed several bugs Ravindra pointed out
13430
13431 2004-08-09 16:11  pbartok
13432
13433         * Control.cs:
13434           - Added incomplete dock layout code
13435           - Added support for mouse wheel
13436
13437 2004-08-09 16:09  pbartok
13438
13439         * XplatUIX11.cs:
13440           - Added handling for middle and right mousebutton
13441           - Added handling for mouse wheel
13442           - Added handling for key state and mouse state and position
13443           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13444           messages
13445
13446 2004-08-09 15:40  jackson
13447
13448         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13449           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13450           checkin
13451
13452 2004-08-09 15:37  jackson
13453
13454         * StatusBar.cs: Initial implementation of StatusBar
13455
13456 2004-08-09 15:36  jackson
13457
13458         * ITheme.cs: Add support for drawing status bar and getting status
13459           bar item sizes
13460
13461 2004-08-09 15:35  pbartok
13462
13463         * MouseButtons.cs:
13464           - Fixed values
13465
13466 2004-08-09 15:34  jackson
13467
13468         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13469           status bar item sizes
13470
13471 2004-08-09 15:21  jackson
13472
13473         * ThemeWin32Classic.cs: Use known colors for default control
13474           colours
13475
13476 2004-08-09 15:12  jackson
13477
13478         * ThemeWin32Classic.cs: Make the default font static, it is static
13479           in control so this doesn't change functionality and creating fonts
13480           is sloooooow.
13481
13482 2004-08-09 14:56  pbartok
13483
13484         * X11Structs.cs:
13485           - Added GrabMode enum
13486
13487 2004-08-09 14:55  pbartok
13488
13489         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13490           - Removed Run method, was only required for initial development
13491
13492 2004-08-09 14:51  pbartok
13493
13494         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13495           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13496           capture
13497
13498 2004-08-09 13:48  pbartok
13499
13500         * XplatUIX11.cs:
13501           - Fixed default sizing for child windows
13502
13503 2004-08-09 12:56  pbartok
13504
13505         * XplatUIX11.cs:
13506           - Added generation of WM_DESTROY message
13507           - Added handling of window manager induced shutdown
13508
13509 2004-08-09 11:31  jackson
13510
13511         * ThemeWin32Classic.cs: New names for control properties
13512
13513 2004-08-09 11:25  jackson
13514
13515         * Control.cs: Use new color names
13516
13517 2004-08-09 11:02  jackson
13518
13519         * XplatUI.cs: Get default window properties from the theme
13520
13521 2004-08-09 11:01  jackson
13522
13523         * ITheme.cs: The theme engine now controls default window
13524           properties
13525
13526 2004-08-09 11:00  jackson
13527
13528         * ThemeWin32Classic.cs: Add default window color properties
13529
13530 2004-08-09 10:17  jackson
13531
13532         * ThemeWin32Classic.cs: Use correct default back color
13533
13534 2004-08-09 10:05  jackson
13535
13536         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13537           the theme now.
13538
13539 2004-08-09 09:56  jackson
13540
13541         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13542
13543 2004-08-09 09:54  jackson
13544
13545         * Control.cs: Get default properties from the theme.
13546
13547 2004-08-09 09:53  jackson
13548
13549         * ITheme.cs: Themes now handle default control properties
13550
13551 2004-08-09 09:53  jackson
13552
13553         * ThemeWin32Classic.cs: Themes now handle default control
13554           properties so coloring will be consistent
13555
13556 2004-08-08 16:54  jordi
13557
13558         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13559
13560 2004-08-08 15:08  jordi
13561
13562         * XplatUIX11.cs: fixes keyboard crash
13563
13564 2004-08-08 13:47  jordi
13565
13566         * Label.cs: add cvs header info
13567
13568 2004-08-08 12:09  jackson
13569
13570         * ThemeWin32Classic.cs: Add pen_buttonface
13571
13572 2004-08-08 11:52  jordi
13573
13574         * Label.cs, LinkLabel.cs: [no log message]
13575
13576 2004-08-08 11:34  jordi
13577
13578         * ThemeWin32Classic.cs: Use Windows Standard Colours
13579
13580 2004-08-07 17:32  jordi
13581
13582         * TrackBar.cs: throw exceptions of invalid enums values
13583
13584 2004-08-07 17:31  jordi
13585
13586         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13587           draw method name
13588
13589 2004-08-07 16:56  jackson
13590
13591         * HorizontalAlignment.cs: Initial checkin
13592
13593 2004-08-07 13:16  jordi
13594
13595         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13596           methods
13597
13598 2004-08-07 13:05  jordi
13599
13600         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13601           GetSysColor defines
13602
13603 2004-08-06 18:01  pbartok
13604
13605         * ThemeWin32Classic.cs:
13606           - Fixed some rounding issues with float/int
13607
13608 2004-08-06 18:00  jackson
13609
13610         * DockStyle.cs, AnchorStyles.cs:
13611
13612                   Add flags and serializable attributes.
13613
13614 2004-08-06 17:46  pbartok
13615
13616         * XplatUIX11.cs:
13617           - Implemented GetParent
13618
13619 2004-08-06 17:18  pbartok
13620
13621         * TrackBar.cs:
13622           - Fixed some rounding issues with float/int
13623
13624 2004-08-06 17:17  pbartok
13625
13626         * X11Structs.cs, XplatUIX11.cs:
13627           - Fixed Refresh and Invalidate
13628
13629 2004-08-06 15:30  pbartok
13630
13631         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13632           - Fixed recursive loop when resizing
13633           - Improved/fixed redrawing on expose messages
13634
13635 2004-08-06 09:53  jordi
13636
13637         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13638           keyboard navigation
13639
13640 2004-08-06 08:02  pbartok
13641
13642         * X11Structs.cs, XplatUIX11.cs:
13643           - Fixed reparenting
13644           - Fixed window border creation
13645
13646 2004-08-05 15:38  pbartok
13647
13648         * XplatUIX11.cs:
13649           - Attempted fix for reparenting problems
13650
13651 2004-08-04 15:14  pbartok
13652
13653         * Control.cs:
13654           - Fixed Invalidation bug (calculated wrong client area)
13655           - Added ClientSize setter
13656
13657 2004-08-04 15:13  pbartok
13658
13659         * Form.cs:
13660           - Added AutoScale properties
13661
13662 2004-08-04 15:13  pbartok
13663
13664         * SWF.csproj:
13665           - Added latest files
13666
13667 2004-08-04 14:11  pbartok
13668
13669         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13670           XplatUIX11.cs:
13671           - Added Invalidate handling
13672
13673 2004-08-03 17:09  jordi
13674
13675         * XplatUIDriver.cs: fixes spelling mistake
13676
13677 2004-07-27 09:53  jordi
13678
13679         * TrackBar.cs: fixes trackbar events, def classname, methods
13680           signature
13681
13682 2004-07-27 09:29  jordi
13683
13684         * ScrollBar.cs: fixes scrollbar events
13685
13686 2004-07-27 04:38  jordi
13687
13688         * Control.cs: changes to be able to run winforms samples
13689
13690 2004-07-26 11:42  jordi
13691
13692         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13693           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13694
13695 2004-07-26 05:41  jordi
13696
13697         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13698           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13699           implementation
13700
13701 2004-07-22 09:22  jordi
13702
13703         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13704           check link overlapping, implement events, and fixes
13705
13706 2004-07-21 10:28  jordi
13707
13708         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13709
13710 2004-07-21 10:19  jordi
13711
13712         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13713           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13714           LinkLabelLinkClickedEventArgs.cs,
13715           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13716           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13717           implementation
13718
13719 2004-07-19 13:09  jordi
13720
13721         * Control.cs, Label.cs: label control re-written: added missing
13722           functionlity, events, and properties
13723
13724 2004-07-19 10:49  jordi
13725
13726         * Control.cs: fixes SetBounds logic
13727
13728 2004-07-19 01:29  jordi
13729
13730         * Control.cs: Call RefreshWindow only if the window has created
13731
13732 2004-07-15 14:05  pbartok
13733
13734         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13735           - Implemented ImageList and ImageList.ImageCollection classes
13736           - Added ColorDepth enumeration
13737           - Updated SWF VS.Net project
13738
13739 2004-07-15 11:06  jordi
13740
13741         * XplatUIStructs.cs: added MsgButons enum
13742
13743 2004-07-15 11:03  jordi
13744
13745         * Control.cs: added basic mouse handeling events
13746
13747 2004-07-15 03:38  jordi
13748
13749         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13750           Vertical TrackBar control implementation
13751
13752 2004-07-13 09:33  jordi
13753
13754         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13755
13756 2004-07-13 09:31  jordi
13757
13758         * Control.cs, Form.cs: commit: new properties and fixes form size
13759           problems
13760
13761 2004-07-09 14:13  miguel
13762
13763         * ProgressBar.cs: Spelling
13764
13765 2004-07-09 11:25  pbartok
13766
13767         * ProgressBar.cs:
13768           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13769           faster
13770
13771 2004-07-09 11:17  miguel
13772
13773         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13774
13775                 * ProgressBar.cs: Fixed spelling for `block'
13776
13777                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13778                 style guidelines.
13779
13780                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13781
13782 2004-07-08 23:21  pbartok
13783
13784         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13785           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13786           BaseCollection.cs, Binding.cs, BindingContext.cs,
13787           BindingMemberInfo.cs, BindingsCollection.cs,
13788           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13789           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13790           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13791           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13792           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13793           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13794           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13795           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13796           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13797           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13798           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13799           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13800           InputLanguageChangedEventArgs.cs,
13801           InputLanguageChangedEventHandler.cs,
13802           InputLanguageChangingEventArgs.cs,
13803           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13804           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13805           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13806           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13807           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13808           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13809           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13810           QueryAccessibilityHelpEventArgs.cs,
13811           QueryAccessibilityHelpEventHandler.cs,
13812           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13813           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13814           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13815           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13816           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13817           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13818           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13819           XplatUIX11.cs, lang.cs:
13820           - Initial check-in
13821