* XplatUIX11.cs:
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-25  Jackson Harper  <jackson@ximian.com>
2
3         * TreeView.cs: When we get focus if there is no selected node make
4         it the top node
5         - Remove some uneeded setup code from Draw.
6         * TreeNodeCollection.cs: If the tree doesn't have a top node when
7         a new node is inserted make the new node the top.
8         * XplatUIX11.cs:
9         * Timer.cs: Use Utc time so that no local time zone stuff needs to
10         be used (should be faster).
11         
12 2006-05-25  Chris Toshok  <toshok@ximian.com>
13
14         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
15         problem with the last commit.
16
17 2006-05-25  Chris Toshok  <toshok@ximian.com>
18
19         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20         need the invalidate call here, while scrolling right-to-left via
21         the left arrow key (i.e. moving the editing cell while scrolling).
22
23         * DataGrid.cs (.ctor): remove the initialization of
24         ctrl_pressed/shift_pressed.  We no longer track them using key
25         up/down handlers, but by using Control.ModifierKeys.  Also, switch
26         to using ValueChanged handlers on the scrollbars instead of
27         Scrolled event handlers.  This simplifies a bunch of the scrolling
28         code.
29         (GridHValueChanged): rename from GridHScrolled, and change it to
30         work with the new event args.
31         (GridVValueChanged): same.
32         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
33         (OnMouseWheel): actually scroll the datagrid.  Don't change the
34         selected cell.
35         (ProcessGridKey): correct all the keyboard navigation stuff I
36         could find.  Ctrl up/down/left/right/home/end work now.
37         (EnsureCellVisibility): correct method name spelling.  Also,
38         simplify this a touch by not explicitly calling the
39         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
40         scrollbar value.
41         (OnKeyUpDG): no need for this method now.
42         
43 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
44
45         * LinkLabel.cs: display the OverrideCursor when hovering the label.
46         Fixes bug #78392.
47
48 2006-05-25  Chris Toshok  <toshok@ximian.com>
49
50         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
51         r61019.
52
53 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
54
55         * Application.cs: Moved setting of is_modal and closing to before
56           we create the control, to allow the event handlers called as a
57           result of creation affect closing. Also removed Gonzalo's previous
58           change to setting DialogResult, the behaviour has been moved to 
59           Form.ShowDialog()
60         * Form.cs: 
61           - ShowDialog(): Removed explicit creation of the form, let RunLoop
62             handle it instead
63           - ShowDialog(): If no dialog result is set, we need to return Cancel
64           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
65             the close is cancelled
66
67 2006-05-25  Jackson Harper  <jackson@ximian.com>
68
69         * StatusBar.cs: We only need to update the sizes of the other
70         panels when we have auto size contents.  Also we are only updating
71         the contents of the panel, not the borders, so compensate for the
72         border width (TODO: get this width from the theme somehow).
73         * TreeView.cs: Scrollable is true by default
74         - Use invalidate instead of refresh where needed
75         - Factor the scrollable value into scrollbar updating
76         - Update the scrollbars if the Scrollable property is altered
77         - Update the selected node if its ImageIndex is changed
78         - Handle null nodes in UpdateNode (mainly so we don't have to
79         check if selected is null when updating it
80         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
81         are factored into the visible count
82         - Use VisibleCount for clarity in the code
83         - When the font is changed we need to recurse through all the
84         nodes and invalidate their sizes
85         
86 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
87
88         * Application.cs: set the DialogResult to fixed when the main form is
89         hidden or destroyed while being modal.
90
91 2006-05-25  Miguel de Icaza  <miguel@novell.com>
92
93         * Theme.cs: Use Tangoified messagebox icons. 
94
95         (GetSizedResourceImage): Also cope with width = 0 and do not
96         trigger a warning in that case (0 means "give me your icon from
97         the resouce, no special size needed).
98
99 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
100
101         * Application.cs: Leave runloop if the the main modal form is 
102           hidden (fixes #78484)
103
104 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
105
106         * BindingContext.cs : reject null datasource in Contains() and
107           Item[].
108         * CurrencyManager.cs : check data_member validity when data_source
109           is dataset. When it is late binding, the initial position is -1.
110
111 2006-05-24  Jackson Harper  <jackson@ximian.com>
112
113         * TreeNodeCollection.cs: Dont't recalculate the visible order on
114         inserted nodes that aren't visible.  This changes the
115         max_visible_order which confuses scrollbar settings.
116         - Use the enumerator to get the prev node instead of duplicating
117         code.
118         * TreeView.cs: Use new method for setting scrollbar values
119         - Don't set the bounds every time the scrollbar is updated
120         - When updating below the root node use an invalidate instead of a
121         refresh to prevent the child controls (scrollbars) from being
122         refreshed. (UpdateBelow still needs to be reworked anyways).
123         - Reenable SetBottom now that visible orders are set correctly,
124         added some debug code incase we ever get bad values there again.
125         - Set the scrollbar max to 2 less then the max value, this
126         compensates for the max value being one above the node count, and
127         for scrollbars adding one extra "notch".
128         - When drawing image nodes if there is an imagelist we draw the
129         first image in the list if the supplied image index is out of the
130         image list's bounds.
131         
132 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
133
134         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
135           we receive a size change from the WM (Fixes #78503)
136
137 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
138
139         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
140           rectangle (Fixes #78501)
141
142 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
143
144         * ButtonBase.cs: 
145           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
146             as a bitfield.
147           - Fixed MouseMove to no longer switch pressed state unless the left
148             mouse button is pressed. Atsushi provided the original patch (#78485)
149           
150 2006-05-24  Jackson Harper  <jackson@ximian.com>
151
152         * ScrollBar.cs: New internal methods that allow us to change a
153         couple values on the scrollbar (the most common case is maximum
154         and large change) without getting multiple invalidates.
155
156 2006-05-24  Chris Toshok  <toshok@ximian.com>
157
158         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
159         (Edit): save off the original state in oldState, and set
160         grid.is_editing to true.
161         (OnKeyDown): abort editing if escape is pressed.  also, call
162         NextState if space is pressed.
163         (OnMouseDown): call NextState.
164         (NextState): factor out shared code from OnKeyDown and OnMouseDown
165         here.  Also, only invalidate the row header once (on the initial
166         is_changing switch) to save on redraws.
167
168 2006-05-24  Chris Toshok  <toshok@ximian.com>
169
170         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
171         if the value in the cell is different than it was before.  This
172         keeps us from triggering a layout when we move around a datarid
173         with a highlighted cell.
174         (Edit): suspend layout when creating/positining the text box, and
175         resume passing false so we don't ever actually re-layout.
176         (ReleaseHostedControl): same.
177         (EnsureTextBox): reformat slightly, and set WordWrap to false.
178
179         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
180         control-key sequences should go to the datagrid - remove that
181         lock.  Also, modify the conditions under which we move between
182         cells when moving the cursor within a cell, and remove the "this"
183         and "base" from field accesses.  We weren't even consistent, given
184         they all were in the base class.
185
186 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
187
188         * Binding.cs : (.ctor)
189           An obvious NRE fix for BindingTest.CtorNullTest().
190
191 2006-05-23  Chris Toshok  <toshok@ximian.com>
192
193         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
194         them between lines.  This fixes some quirks editing cells in the
195         datagrid.
196
197 2006-05-23  Jackson Harper  <jackson@ximian.com>
198
199         * TreeView.cs: Use begin/end update when doing expand/collapse all
200         so that we don't get flicker on the scrollbar.
201
202 2006-05-23  Jackson Harper  <jackson@ximian.com>
203
204         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
205         treenode calculations to be independant of the painting code. To
206         do this nodes track a visible order which is calculated by the
207         treeview.
208         - Call new methods for expanding/collapsing nodes.  These methods
209         use scrollwindow so we don't have to update everything below the
210         node.
211         * TreeView.cs: Refactored drawing and scrolling code.  We don't
212         need to update nodes when drawing anymore or calculate scrollbar
213         stuff.
214         - Added new methods for expanding/collapsing nodes. These methods
215         use ScrollWindow so as to not have to redraw all the nodes below.
216         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
217         we add/remove nodes or sort.
218         - Handle removing the selected and the top node properly.
219
220 2006-05-23  Chris Toshok  <toshok@ximian.com>
221
222         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
223         maybe this should actually happen in the datagrid code?
224         (EndEdit): no need to invalidate anything, given that
225         ReleaseHostedControl causes the datagrid to relayout, which
226         invalidates everything anyway.
227
228         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
229         in SetCurrentCell).
230         (set_SelectionBackColor): call InvalidateSelection instead of
231         Refresh.
232         (set_SelectionForeColor): same.
233         (BeginEdit): Flesh this out a bit.
234         (CancelEditing): only do any of this if we're editing/adding.
235         (EndEdit): same.
236         (OnMouseDown): there's no need to cancel editing here, it's done
237         in SetCurrentCell.
238         (SetCurrentCell): only invalidate the current row header if it's a
239         different row than the new one.
240         (ShiftSelection): fix this to work like MS does.
241         (ResetSelection): factor out the invalidation of selected_rows to
242         InvalidateSelection.
243         (SetDataSource): cancel any editing that's going on.
244
245         * DataGridColumnStyle.cs
246         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
247         call the non-interface version.
248
249         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
250         header rectangle with the clip rectangle so we don't redraw the
251         entire header for just a small area.  Gets rid of the last flicker
252         when horizontally scrolling.
253         (DataGridPaintRow): same.
254
255 2006-05-23  Mike Kestner  <mkestner@novell.com>
256
257         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
258         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
259         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
260         Critical bug report.
261
262 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
263
264         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
265           and this fixes #78493
266
267 2006-05-23  Miguel de Icaza  <miguel@novell.com>
268
269         * Theme.cs (GetSizedResourceImage): Scale images if the proper
270         size is not found.  
271         
272         * FileDialog.cs: Do not change the background for the side bar as
273         it wont work nicely with the theme, and also reduces the artifacts
274         in rendering the icons (which I want to fix too).
275
276         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
277         resources, not resgen resources. 
278
279         (PlatformDefaultHandler): Pull images using the new API.
280
281 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
282
283         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
284           a reference to the hwnd and will not remove it unless there are
285           no pending exposures (fixes #78341)
286         * XplatUI.cs: Improved debug
287
288 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
289
290         * MenuAPI.cs : don't handle OnClick event when it was not the left
291           button. Fixed bug #78487.
292
293 2006-05-23  Mike Kestner  <mkestner@novell.com>
294
295         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
296         prefer submenus to the top menu for item lookup, to avoid popping down
297         top-row items.
298
299 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
300
301         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
302           Graphics.FillRectangle as the visual results are really bad (even
303           on win). We now draw perfect arrows (and perfect shadows when the
304           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
305           Pen.DashPattern to draw the dots of each line.
306
307 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
308
309         * FileDialog.cs: Update the filename combobox when navigating through
310           the ListView with the cursor keys. Fixes part 7 of bug #78446.
311
312 2006-05-22  Mike Kestner  <mkestner@novell.com>
313
314         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
315         Fixes #78463.
316
317 2006-05-22  Mike Kestner  <mkestner@novell.com>
318
319         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
320         requests. Fix a misspelled parameter and a copy paste exception error
321         in Select.
322
323 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
324
325         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
326           to get the same width/height (5/13) on X11 as the default font has on
327           win32. This means that our DefaultFont emSize is smaller than the 
328           the MS SWF equivalent (even thought the width/height stays the same)
329
330 2006-05-20  Jackson Harper  <jackson@ximian.com>
331
332         * MdiClient.cs:
333         * MdiWindowManager.cs:
334         * InternalWindowManager.cs: Make sure to use the border width from
335         the theme.
336
337 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
338
339         * PrintDialog.cs: Implements printer details
340
341 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
342
343         * FileDialog.cs: Added focus handling for PopupButtonPanel.
344           Fixes part 1 and 2 of bug #78446
345
346 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
347
348         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
349           instead of sticking to the first ever calculated value
350
351 2006-05-19  Mike Kestner  <mkestner@novell.com>
352
353         * ComboBox.cs: fix mouse motion selection to use MousePosition and
354         PointToClient, since Capture is set. Fixes #78344.
355
356 2006-05-19  Mike Kestner  <mkestner@novell.com>
357
358         * ListView.cs: match MS behavior in Details view where items are not
359         drawn if Columns.Count == 0. 
360         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
361         Use a separate pen to draw the check, since changing the width affects
362         the box as well.  Fixes #78454.
363
364 2006-05-18  Miguel de Icaza  <miguel@novell.com>
365
366         * ListView.cs: ArgumentOutOfRangeException, single versions of the
367         exception should throw the name of the invalid argument.
368
369         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
370         there are no files listed. 
371
372 2006-05-18  Jackson Harper  <jackson@ximian.com>
373
374         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
375         up.
376
377 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
378
379         * Control.cs: Brought back our old UpdateZOrder method as a private
380           function and switched our calls from UpdateZOrder to the new one.
381           This fixes the Paint.Net canvas disappearing bug.
382
383 2006-05-18  Jackson Harper  <jackson@ximian.com>
384
385         * Theme.cs:
386         * ThemeWin32Classic.cs:
387         * InternalWindowManager.cs: Move the drawing into the theme,
388         expose everything the theme should need from the window manager.
389
390 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
391
392         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
393           from the call to NativeWindow to avoid walking up the parent chain
394           further than needed (speeds up setting cursors and avoids setting
395           the wrong cursor if a parent has another cursor defined)
396         * Cursor.cs: When loading an icon as cursor, MS uses the center of
397           the icon as hotspot, not what's contained as hotspot in the icon
398           file. This fixes the perceived drawing offset seen with Paint.Net
399         
400 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
401
402         * XplatUIX11.cs: 
403           - Store the calculated rectangle in Hwnd object and use it when 
404             setting the client size
405           - Force Toolwindows to always be type Dock, to ensure they're on top
406
407 2006-05-18  Mike Kestner  <mkestner@novell.com>
408
409         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
410         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
411         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
412         Substantial refactoring to remove confusing nested classes. Coding
413         standard and Get+Set->property refactorings.  Shift to index based
414         highlighting in ComboListBox instead of constantly using IndexOf and
415         Items[]. Add invalidations on resize for DropDownList to fix ugliness
416         in FileDialog growth.  Draw borders manually since Simple mode needs
417         to look like two independent controls.  Make listbox border
418         conditional to DropDownStyle.  Improved OwnerDraw support.
419
420 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
421
422         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
423         Don't set the disposed graphics to null, so we can throw the "right"
424         exception if the graphics is reused later (added a flag to avoid 
425         double disposing). Some behaviours are different under 2.0 and are
426         filled under bug #78448.
427
428 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
429
430         * Control.cs: When double-buffering is enabled, we need to reset
431           our graphics context between paint calls. Otherwise, any 
432           transformations and other alterations on the context will 
433           become cumulative (#77734)
434
435 2006-05-18  Mike Kestner  <mkestner@novell.com>
436
437         * ListView.cs: do focused item selection like MS on clicks. 
438         Rework focus handling for ItemControl so LostFocus invalidates as
439         well.
440         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
441         the ListView ItemControl has focus.
442
443 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
444
445         * XplatUIX11.cs: If client_window ends up being width or height zero
446           due to border settings, move it off window inside whole_window (#78433)
447
448 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
449
450         * Mime.cs: Shrink the mime file cache correctly.
451
452 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
453
454         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
455
456 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
457
458         * XplatUIX11.cs (AddExpose): More sanity checks
459
460 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
461
462         * XplatUIX11.cs:
463           - AddExpose: Don't add expose ranges outside the size of our
464             window
465           - Cast opacity values to Int32 to avoid crashes with certain
466             values
467           - Added disabled code paths that protect against illegal cross-
468             thread painting (Developers.exe)
469
470 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
471
472         * ProgressBar.cs: Invalidate the control when it's resized
473           since block size is based on control size. (#78388)
474
475 2006-05-16  Miguel de Icaza  <miguel@novell.com>
476
477         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
478         of setting the incoming argument to the "reset" value, we set the
479         this.datamember to string.empty (before we were invalidating the
480         incoming data).   
481
482         Fixes 78420
483
484 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
485
486         * Form.cs: Only apply transparency settings after the form
487           is created. (Fixes #77800)
488
489 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
490
491         * ApplicationContext.cs: Grab the HandleDestroyed event so
492           we know when to fire OnMainFormClosed 
493
494 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
495
496         * Application.cs: Introduced sub-class to allow tracking of
497           threads and centralized triggering of the event mess for
498           ThreadExit, AppExit, etc..  (#76156)
499
500 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
501
502         * MimeIcon.cs:
503           - Do not return a null icon index value for a mime subclass.
504             Instead try the main mime type class too.
505           - Seems that some newer distributions don't have a link to some
506             gnome default icons anymore. So check the default gnome dir too.
507           
508
509 2006-05-16  Jackson Harper  <jackson@ximian.com>
510
511         * MdiClient.cs: Don't paint the parent background image if we have
512         our own background image.
513
514 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
515
516         * Control.cs:
517           - PerformLayout: Do not shrink space filled by DockStyle.Fill
518             controls, all filled controls are supposed to overlap (#78080)
519           - UpdateZOrder is supposed to update the control's z-order in the
520             parent's z-order chain. Fixed to behave like that
521           - BringToFront: Removed obsolete code
522           - SendToBack: Simplyfied
523           - SetChildIndex: Trigger layout calculations when Z-order changes
524             since layout is done by z-order
525
526 2006-05-16  Chris Toshok  <toshok@ximian.com>
527
528         [ fixes bug #78410 ]
529         * DataGrid.cs (set_AlternatingBackColor): use
530         grid_drawing.InvalidateCells instead of Refresh().
531         (set_BackColor): call grid_drawing.InvalidateCells.
532         (set_BackgroundColor): use Invalidate instead of Refresh.
533
534         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
535         invalidate the cell area.
536
537 2006-05-15  Chris Toshok  <toshok@ximian.com>
538
539         [ fixes bug #78011 ]
540         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
541         on to DataGridPaintRow.
542         (DataGridPaintRow): take a clip argument, and only draw the cells
543         which intersect it.  same with the not_usedarea.
544
545         * Theme.cs (DataGridPaintRow) add @clip parameter.
546
547         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
548         XplatUI.ScrollWindow.
549         (ScrollToRow): same.
550
551         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
552         with last column which was causing a gray swath to appear with the
553         XplatUI.ScrollWindow code.
554
555 2006-05-15  Chris Toshok  <toshok@ximian.com>
556
557         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
558         use XplatUI.ScrollWindow.
559         (VerticalScrollEvent): use XplatUI.ScrollWindow.
560
561 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
562
563         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
564
565 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
566
567         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
568           file since there are no equivalent X11 cursors
569
570 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
571
572         * MonthCalendar.cs : DateTimePicker should reflect selected date
573           on mouse*up*, not mouse*down*. Fixed originally reported part of
574           bug #76474.
575
576 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
577
578         * TabControl.cs : When argument index is equal or more than tab
579           count, just ignore. Fixed bug #78395.
580
581 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
582
583         * Control.cs: Dispose all child controls when control is diposed (#78394)
584
585 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
586
587         * ColorDialog.cs: Finally it is possible to select the color with
588           the text boxes
589
590 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
591
592         * PrintDialog.cs: Fix typo
593
594 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
595
596         * PrintDialog.cs: PrintDialog is not resizable
597         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
598           color. Made some ToolBar drawing methods protected virtual.
599
600 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
601
602         * PrintDialog.cs: Implementation of the PrintDialog
603
604 2006-05-12  Chris Toshok  <toshok@ximian.com>
605
606         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
607         thumb, instead use MoveThumb.  This has the side effect of making
608         most of the other thumb moving machinery use MoveThumb as well.
609         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
610         need to actually invalidate the rectangle where the new thumb will
611         go.
612         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
613         We force an Update() after, so it's not as fast as it could be,
614         but at least there's zero flicker and no droppings.
615         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
616         (UpdateThumbPos): add another argument (dirty), which says whether
617         or not to calculate/add dirty regions which we later invalidate.
618         For cases where we know we're going to use MoveThumb, we pass
619         false for this.  Otherwise, pass true.
620
621 2006-05-12  Jackson Harper  <jackson@ximian.com>
622
623         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
624         the status bar.
625         
626 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
627
628         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
629           and GetClipRegion methods and UserClipWontExposeParent property.
630         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
631           overriding UserClipWontExposeParent property, setting to false, since
632           Win32 handles the required expose messages to draw our clipped parent
633           areas internally
634         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
635           PaintEventStart to set the user clip region if set.
636         * Control.cs: 
637           - Now internally tracking the Region for the control since we need to
638             store it if the handle is not yet created and only set it when it
639             becomes created. Before setting the region forced handle creation
640           - Added code to draw the parents underneath a user-clipped region
641         * Hwnd.cs: Added UserClip property
642
643 2006-05-12  Chris Toshok  <toshok@ximian.com>
644
645         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
646         (set_Maximum): same.
647         (set_Minimum): same.
648         (set_SmallChange): same.
649         (OnMouseUpSB): remove the call to refresh when releasing the
650         thumb.  We shouldn't need it.
651         
652 2006-05-12  Miguel de Icaza  <miguel@novell.com>
653
654         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
655         AutoSize set to None, we do not need to relayout everything, we
656         just need to invalidate the current region.
657
658         (Draw): Do not draw the entire ClientArea, just redraw the
659         clip area being passed.
660
661         * MdiClient.cs: Make MdiClient constructor with the Form argument
662         internal. 
663
664 2006-05-12  Jackson Harper  <jackson@ximian.com>
665
666         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
667         parents background image,  but strangely not their own.
668         - (DrawStatusBarPanel): Take into account horizontal alignment
669         when drawing the strings and icons.
670
671 2006-05-12  Mike Kestner  <mkestner@novell.com>
672
673         * ListBox.cs: avoid invalidations for focus when the collection is
674         empty. 
675
676 2006-05-12  Chris Toshok  <toshok@ximian.com>
677
678         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
679         invalidate the entire thumb area.  Call InvalidateDirty which
680         limits the redraw to the thumb itself and surrounding pixels.
681
682         * XplatUIX11.cs (ScrollWindow): optimize copying.
683         
684 2006-05-12  Chris Toshok  <toshok@ximian.com>
685
686         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
687         Figure out the positioning/layout in a single pass instead of
688         multiple recursive invocations.  Speeds up the initial display of
689         the data grid.  Also, make many things private that were
690         originally public but unused outside this class.
691
692 2006-05-11  Jackson Harper  <jackson@ximian.com>
693
694         * MdiClient.cs: Improved layout code.
695
696 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
697
698         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
699           not SelectedObject.
700
701 2006-05-11  Chris Toshok  <toshok@ximian.com>
702
703         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
704         union of that will always be {0,0,width,height}.
705
706 2006-05-11  Jackson Harper  <jackson@ximian.com>
707
708         * Form.cs: Match MS's DefaultSize for forms (they must have
709         changed the size in sp2).
710
711 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
712
713         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
714
715 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
716
717         * TextControl.cs : Fixed bug #78109. This incorrect position
718           comparison caused crash on automatic line split.
719         * TextBoxBase.cs : reduce duplicate code.
720
721 2006-05-10  Jackson Harper  <jackson@ximian.com>
722
723         * MdiClient.cs: Active form is only sent to the back when using
724         the Next form functionality, when a form is clicked the current
725         active shouldn't be sent to the back.
726         - Layout the mdi windows when the container is first made visible.
727         * Form.cs: Give the MdiClient a ref to the containing form when we
728         create it.
729         
730 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
731
732         * LinkLabel.cs : link_font could be uninitialized, so populate one
733           before actual use. Fixed bug #78340.
734
735 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
736
737         * XplatUIX11.cs : clipboard format native value is IntPtr.
738           Fixed bug #78283.
739
740 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
741
742         * Control.cs: 
743           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
744             which is passed up the parent chain by DefWndProc
745           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
746             to DefWndProc (#77956)
747         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
748
749 2006-05-10  Jackson Harper  <jackson@ximian.com>
750
751         * MdiClient.cs: We need to remove the controls from the mdi
752         collection, when we close the window.
753         * MdiWindowManager.cs: Special handling of closing mdi windows.
754         * InternalWindowManager.cs: Make the close method virtual so the
755         mdi window manager can handle it specially.
756
757 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
758
759         * DataGrid.cs:
760           - Recalculate grid when the data source has changed
761           - Matches styles provided by user from all data sources types
762         * DataGridTableStyle.cs: For columns that provided by the user set the
763         with the preferred value is there was unassigned.
764         * CurrencyManager.cs: throw OnItemChanged event
765
766 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
767
768         * PictureBox.cs: Don't animate until handle is created. Start animation
769           when handle is created.
770
771 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
772
773         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
774           current codebase.
775         * XEventQueue.cs: We don't need to provide the extra info
776
777 2006-05-10  Jackson Harper  <jackson@ximian.com>
778
779         * MdiClient.cs: If the mdi clients parent form has a background
780         image set, we draw that background image for the mdi area's
781         background.
782
783 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
784
785         * TextBoxBase.cs: Set IBeam cursor (#78347)
786
787 2006-05-10  Mike Kestner  <mkestner@novell.com>
788
789         * ToolBar.cs: fix some text padding issues with ButtonSize
790         calculation. Update the default size to match MS documentation.
791         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
792         button size. Fixes #78296.
793
794 2006-05-10  Mike Kestner  <mkestner@novell.com>
795
796         * ListBox.cs: use is_visible for scrollbar positioning in case the
797         control isn't on screen yet.  Fix off by one with Right vs Width
798         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
799         
800 2006-05-10  Jackson Harper  <jackson@ximian.com>
801
802         * X11Dnd.cs: Drop to a control with another control on top of it.
803         * ToolBar.cs: Work on a copy of the buttons list, so that it can
804         be modified in click handlers. TODO: Look for similar problems in
805         other controls.
806
807 2006-05-09  Jackson Harper  <jackson@ximian.com>
808
809         * Form.cs: Window managers need the old window state when setting
810         window state now.
811         * InternalWindowManager.cs: Allow the base mdi window manager to
812         handle more of the MDI only stuff (like maximize buttons).
813         * MdiWindowManager.cs: Fix some snafus in changing the window
814         state.  Add all the menu functionality, for both popup and
815         maximized menus.
816         * MdiClient.cs: When a new form is selected the currently
817         activated form is sent to the back, this matches MS.
818         - Implement a new method to activate the next mdi child window.
819
820 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
821
822         * Control.cs: 
823           - Added new InternalCapture method to allow controls to prevent
824             the capture behaviour on the click handlers
825           - Switched to use InternalCapture
826         * ComboBox.cs:
827           - Using InternalCapture to prevent mouse captures from being released
828             on mouse button release (Fixes #78100)
829         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
830           returns Form borders if a caption is present. (Fixes #78310)
831
832 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
833
834         * TreeNode.cs: Changed serialization .ctor to not require every field
835           to be present. (#78265)
836         * OwnerDrawPropertyBag.cs: Added serialization .ctor
837
838 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
839
840         * MimeIcon.cs: for is faster than foreach for strings.
841
842 2006-05-05  Mike Kestner  <mkestner@novell.com>
843
844         * CheckedListBox.cs: update check handling code to not use selected.
845         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
846         behavior for visual feedback, motion response, shift/ctrl handling,
847         and properly deal with all 4 selection modes. Updates to bounds
848         handling logic.  Add scroll wheel support. [Fixes #77842]
849
850 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
851
852         * ListView.cs:
853           - Moved adding of Implicit controls into .ctor. That way, subsequent
854             creation of the controls will not cause them to think they are 
855             toplevel windows (fixes #78200 header problem)
856           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
857           - Switched visibility setting of header control to use internal field
858             to avoid triggering handle creation
859           - Now checking if handle is created before causing a refresh when items
860             are added (This makes us now match handle creation time with MS)
861         * Splitter.cs: Removed loading of private splitter cursor, switched to
862           Cursors version now that that is loading the right ones
863         * Cursors.cs: Load proper splitter cursors from resources
864         * Cursor.cs: Added second method of loading resource cursors for the 
865           VS.Net users amongst us
866
867 2006-05-05  Mike Kestner  <mkestner@novell.com>
868
869         * ListView.cs: give header_control a minimum size based on the
870         ListView size.
871
872 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
873
874         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
875           window seems to do that with metacity, so set that type. (#78120)
876
877 2006-05-05  Mike Kestner  <mkestner@novell.com>
878
879         * ListViewItem.cs: fix Details mode checkbox layout bug.
880         * ThemeWin32Classic.cs: draw a ListView column header for unused space
881         at the end of the header, if it exists. [Fixes for #78200]
882
883 2006-05-04  Jackson Harper  <jackson@ximian.com>
884
885         * MdiClient.cs: Add a helper property to get the container form.
886         * MdiWindowManager.cs: We have to make sure to use the menu origin
887         when drawing the icons and buttons, this fixes maximized window
888         icons/buttons on win32.
889         * InternalWindowManager.cs: Reset the restore captions when a
890         window goes from Maximized to Minimized and vice versa. Move the
891         DrawMaximizedButtons into the MdiWindowManager source, tool
892         windows can't be maximized. NOTE: This could use a little
893         refactoring if time ever permits.
894         
895 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
896
897         * TextBox.cs: Add MWFCategoryAttributes
898         * TextBoxBase.cs: Add MWFCategoryAttributes
899         * Form.cs: Add MWFCategoryAttributes
900
901 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
902
903         * Control.cs: Add MWFCategoryAttributes
904         * ScrollableControl.cs: Add MWFCategoryAttributes
905
906 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
907
908         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
909           Divider is true. Fix a little glitch in PropertyToolBar
910           drawing code
911
912 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
913
914         * Control.cs:
915           - Dispose: Call base.Dispose, this causes the disposed event
916             to be fired (and probably other, more important stuff)
917           - SetVisibleCore: Set is_visible to true after creating the
918             window so that the window still gets created invisible (if
919             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
920             to generate a WM_ACTIVE message
921         * Form.cs: Call Dispose when we want to destroy the window, instead of
922           just destroying the handle (Dispose will do that for us)
923         * XplatUIX11.cs:
924           - RootWindow also needs a queue, so we can properly process the
925             property change events from RootWindow (like Activate)
926           - Generatic synthetic WM_ACTIVE message when the active window is
927             being destroyed
928
929 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
930
931         * LinkLabel.cs: Trigger a recalc of our label dimensions when
932           bounds are changed
933
934 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
935
936         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
937           for determining width and height (image might not be assigned if
938           we're drawing an imagelist)
939
940 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
941
942         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
943         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
944           height from system
945         * Theme.cs: No longer returns hardcoded menu height, instead calls
946           new driver method
947         * Form.cs (OnLoad): Scaling happens before triggering Load events 
948           on MS (# 78257)
949
950 2006-05-01  Mike Kestner  <mkestner@novell.com>
951
952         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
953
954 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
955
956         * TextBoxBase.cs: Removed Fixme
957         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
958
959 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
960
961         * XplatUIX11.cs:
962           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
963             the rectangle relative to the parent, considering borders. We
964             don't really want that.
965           - ScrollWindow: Fixed warning to be more understandable
966         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
967           scrollbars and scroll only the visible area
968         * RichTextBox.cs: Removed debug output
969
970 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
971
972         * NumericUpDown.cs (Text): Just use base
973         * UpDownBase.cs: Ensure txtView is created before using it
974
975 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
976
977         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
978           casting to IntPtr to avoid 64bit overflow errors
979
980 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
981
982         * Control.cs:
983           - AllowDrop: Don't force handle creation.
984           - CreateHandle: Added call to tell driver if we're allowed to drop
985
986 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
987
988         * FileDialog.cs: Remember the last directory not only for the
989           current instance but also for new FileDialog instances.
990
991 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
992         
993         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
994           broke sending async messages
995
996 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
997
998         * XplatUIX11.cs:
999           - ScrollWindow: Fixed method. We finally generate expose events again
1000             for scrolled areas. This was causing 'garbage' when scrolling
1001             textbox and other controls that used ScrollWindow
1002           - Switched from using the regular queue for paint events to the MS 
1003             model of 'generating' paint events when the queue is empty.
1004             We use the new XQueueEvent.Paint subclass to store which windows
1005             need painting.
1006           - AddExpose now takes the x/y/width/height of the exposed area
1007             and inserts the window into the paint queue if not already there
1008           - InvalidateWholeWindow: Switched to use new AddExpose method
1009           - UpdateMessageQueue: Added which queue to monitor for paint events
1010           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1011             the unlikely case nothing above handles it. We reset the expose
1012             pending states to get them off the queue.
1013           - GetMessage: Now pulls a paint event if no other events are in the
1014             queue
1015           - Invalidate: Switched to new AddExpose method
1016           - PeekMessage: Updated to understand pending paint events
1017           - UpdateWindow: Fixed logic bug. We were only updating if the window
1018             didn't need updating. Also switched to sending WM_PAINT directly,
1019             like MS does.
1020         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1021           and random access Remove(). The random access is needed to handle
1022           UpdateWindow() where a WM_PAINT is sent directly without accessing
1023           the queue.
1024         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1025           allow for better feedback when scrolling. Scrollbars are small and
1026           the immediate update should make it 'feel' more responsive without
1027           slowing things down. ScrollBar still needs it's invaliate logic
1028           updated to not always invalidate the whole bar on certain changes.
1029
1030 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1031
1032         * Control.cs:
1033         (BackColor): if the control does not support a transparent background,
1034         return the default backcolor when the parent backcolor is transparent.
1035
1036 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1037
1038         * Application.cs: Updated to new StartLoop/GetMessage API
1039         * RichTextBox.cs: Provide some output on RTF parsing errors
1040         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1041           new queue_id argument to GetMessage and PeekMessage to allow faster
1042           handling of per-thread queues in drivers.
1043         * Hwnd.cs: Added Queue tracking and property
1044         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1045         * XEventQueue.cs: Added thread trackingA
1046         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1047         * XplatUIX11.cs:
1048           - Implemented new per-thread queue
1049           - GetMessage: Fixed return/break behaviour on several cases. We were
1050             returning stale messages in some cases, instead of just processing
1051             the next message
1052
1053 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1054
1055         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1056
1057 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1058
1059         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1060           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1061
1062 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1063
1064         * PropertyGridView.cs: Fix drop down width.
1065
1066 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1067
1068         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1069           a mess in DrawToolBar, so I removed one of them.
1070
1071 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1072
1073         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1074           needed (clip). Otherwise we get artifacts.
1075
1076 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1077
1078         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1079           dimension is fixed
1080         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1081           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1082         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1083           if it matches the scale base font (avoids unneeded scaling)
1084
1085 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1086
1087         * X11DesktopColors.cs: One gtk_init_check should be enough
1088
1089 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1090
1091         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1092           match MS behaviour
1093
1094 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1095
1096         * TextBoxBase.cs: 
1097           - Generate OnTextChanged for Backspace even if we're only deleting
1098             the current selection
1099           - When setting the Text property, only select all text if the
1100             control does not have focus when it is being set. Otherwise
1101             just place the cursor at the beginning of the control
1102
1103 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1104
1105         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1106           Added a little helper to draw PropertyGrid ToolBar with a different
1107           border and a different BackColor.
1108         * PropertyGrid.cs: Some background parts didn't get painted with the
1109           correct background color. Added a class that helps us to draw the
1110           correct border for PropertyGridView and a class that helps us to
1111           draw ToolBars with a different backcolor
1112         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1113
1114 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1115
1116         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1117         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1118
1119 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1120
1121         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1122           into the palette entries. Also, since we're working on a copy
1123           we needed to copy the palette back onto the bitmap.
1124         * Cursor.cs: Same fix as XplatUIWin32.cs.
1125
1126 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1127
1128         * ImageListStreamer.cs: Need to read the var (or we're off)
1129
1130 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1131
1132         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1133           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1134           TextBoxBase.cs: Unused var fixes
1135         * AxHost.cs: Small 2.0 fix
1136         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1137           as it seems that is what at least Metacity expects. This will make
1138           icons show up on 64bit platforms. We still have some 64bit size
1139           issues, though, since the startup app window size still won't match.
1140
1141 2006-04-25  Mike Kestner  <mkestner@novell.com>
1142
1143         * *.cs: cleanup newly reported exception var unused warnings.
1144
1145 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1146
1147         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1148           ms
1149
1150 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1151
1152         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1153           image. The image position is always the same, no matter if the
1154           button is pressed or not.
1155
1156 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1157
1158         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1159           selection and set the correct filename for SaveFileDialog.
1160           Patch by Emery Conrad.
1161
1162 2006-04-24  Mike Kestner  <mkestner@novell.com>
1163
1164         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1165         check for item.X outside the ClientRect instead of item.Y. Fixes
1166         #78151.
1167
1168 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1169
1170         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1171         trust that value blindly and do some sanity check. Fixes bug #77814.
1172
1173 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1174
1175         * ImageListStreamer.cs: save the mask as a 1bpp image.
1176
1177 2006-04-21  Mike Kestner  <mkestner@novell.com>
1178
1179         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1180         pass Checked and Indeterminate to the Theme Engine. Improve
1181         encapsulation with ListBox.
1182         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1183         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1184         nested types.  Move all CheckState functionality to CheckedListBox.
1185         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1186         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1187         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1188         single base list. Fix scrollbar sizing and placement to mirror MS.
1189         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1190         used.
1191         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1192         for CheckedListBox by using new DrawItemState info.  Center the
1193         checkboxes on the items. Use new StringFormat property.
1194
1195 2006-04-18  Jackson Harper  <jackson@ximian.com>
1196
1197         * Form.cs: MdiChildren don't do default locations the same way as
1198         regular forms.  This prevents a crash when trying to position the
1199         mdi windows.
1200
1201 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1202
1203         * PropertyGridTextBox.cs: Formatting, copyright
1204         * PropertiesTab.cs: Formatting
1205         * PropertyGrid.cs: Formatting
1206         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1207           click toggling of values
1208           
1209 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1210
1211         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1212         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1213           every time a control is created
1214         * Application.cs: Removed obsolete EnableRTLMirroring method
1215
1216 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1217
1218         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1219         SelectedIndex to -1. Fixes bug #78121.
1220
1221 2006-04-17  Jackson Harper  <jackson@ximian.com>
1222
1223         * Binding.cs: Handle null values for Current and BindingContext.
1224         This occurs when binding is a little delayed.
1225         * CurrencyManager.cs: return null for Current when there are no
1226         items in the list.
1227         - Hookup to the listchanged event on the DataView and update
1228         bindings when the list is changed.  This fixes late binding of
1229         controls.
1230
1231 2006-04-17  Jackson Harper  <jackson@ximian.com>
1232
1233         * X11Dnd.cs:
1234         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1235         Ringenbach.
1236
1237 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1238
1239         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1240           place
1241         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1242           with the correct ButtonState
1243
1244 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1245
1246         * XplatUIX11.cs: Improved distinguishing between window types to
1247           tell the WM a type closer to what the app wants (Fixes #78107)
1248
1249 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1250
1251         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1252           GrabHandle
1253
1254 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1255
1256         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1257           drawing code to reflect the size grip changes
1258
1259 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1260
1261         * ImageListStreamer.cs: fix handling of the mask that follows the main
1262         bitmap when deserializing and serialize it properly. The generated mask
1263         should better be a 1bpp image, but I'll do that later.
1264
1265 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1266
1267         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1268           path doesn't fit into some of our Current.Places
1269
1270 2006-04-13  Jackson Harper  <jackson@ximian.com>
1271
1272         * ComboBox.cs: Use borders instead of drawing our own decorations,
1273         try to obey correct rules for heights.
1274         * Theme.cs:
1275         * ThemeNice.cs:
1276         * ThemeClearLooks.cs:
1277         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1278         this is now handled by borders.
1279         - Remove unused DrawListBoxDecorationSize method.
1280         
1281 2006-04-13  Mike Kestner  <mkestner@novell.com>
1282
1283         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1284         reported by Alex.
1285
1286 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1287
1288         * ThemeWin32Classic.cs: 
1289           - Fixed CPDrawStringDisabled
1290           - Corrected drawing of disabled menu items
1291           - Fixed drawing of disabled radio buttons (bug #78095)
1292           - Draw check in a disabled CheckBox with color ControlDark 
1293
1294 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1295
1296         * Form.cs: Use the provided width when calculating the menu size;
1297           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1298           and ClientSize.Width won't be updated yet
1299         * Application.cs: Use Visible instead of Show() to make form visible,
1300           this way we create the handle later and menusize is considered
1301
1302 2006-04-12  Mike Kestner  <mkestner@novell.com>
1303
1304         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1305         reporting.
1306
1307 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1308
1309         * TextBox.cs: Implemented context menu
1310
1311 2006-04-12  Mike Kestner  <mkestner@novell.com>
1312
1313         * ListView.cs: implement box selection. fixes #77838.
1314         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1315
1316 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1317
1318         * XplatUIX11.cs: Added setting of window type when transient window
1319           is created (metacity would move it otherwise)
1320         * X11Structs.cs: Added WINDOW_TYPE atoms
1321         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1322           background (the control is Opaque but still wants transparent
1323           backgrounds)
1324
1325 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1326
1327         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1328           that set Opaque but don't mean it (like all ButtonBase-derived
1329           controls) to still draw their background
1330         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1331           the background
1332
1333 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1334
1335         * Control.cs (PaintControlBackground): Set the graphics object
1336           on our PaintEvent to null to prevent it from being disposed
1337           when the PaintEvent gets disposed
1338
1339 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1340
1341         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1342         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1343
1344 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1345
1346         * Control.cs: 
1347           - Added transparency check to BackColor property. Transparent
1348             backgrounds are only allowed if the control styles permit it
1349           - Added recursive painting of parent control background and
1350             foreground if a control with a transparent backcolor is drawn
1351             (Thanks to Tim Ringenback for providing his 'hack' as a base
1352              for this patch) Fixes #77985 and #78026.
1353           - Added Opaque style check before calling OnPaintBackground, no
1354             need to draw the background if the control is opaque
1355           - Removed ControlAccessibleObject owner variable (inherited from
1356             base, no need to define again)
1357           - Added some documentation links explaining the drawing events
1358             and styles
1359
1360 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1361
1362         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1363           that the affected control is the located at the left border of our
1364           parent (Fixes #77936)
1365
1366 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1367
1368         * TextBoxBase.cs: When rendering disabled or readonly controls,
1369           draw the background with 'Control' instead of 'Window' color as
1370           long as the user hasn't specifically set a color
1371
1372 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1373
1374         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1375           since that won't be updated if the user types text (only if it's
1376           programatically set)
1377
1378 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1379
1380         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1381           layout changes do to app-triggered resizes will have the proper
1382           display rectangle for layout
1383
1384 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1385
1386         * ThemeWin32Classic.cs:
1387           - Make use of the SystemBrushes and SystemPens wherever possible
1388           - Corrected some highlight colors
1389           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1390             drawing
1391         * Theme.cs: Added Empty field to CPColor struct
1392
1393 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1394
1395         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1396           is displayed when calculating the display rectangle. Thanks to Mike
1397           for teaching me the err of my ways.
1398
1399 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1400
1401         * ScrollableControl.cs:
1402           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1403             (instead of 0,0) and we now return the real width/height instead of
1404             just the clientrectangle, adjusted for padding. The rectangle is
1405             now cached and created by the new CalculateDisplayRectangle method.
1406           - Created new CalculateDisplayRectange method, which basically does
1407             what get_DisplayRectangle() did originally, but now using the 
1408             right edge instead of DisplayRectangle to determine the size of
1409             our scrollbars
1410           - get_Canvas(): Fixed it to properly calculate canvas for 
1411             right/bottom controls which seem to be placed to the right/bottom
1412             of any controls that have a fixed location
1413           - Removed TODO that's taken care of
1414           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1415             and SetDisplayRectLocation according to new MSDN2 docs
1416           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1417             event when that is called, this is added for compatibility
1418           - ScrollControlIntoView(): Implemented.
1419           - Switched scrollbars to be implicit, they shouldn't be selectable
1420         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1421           call it when the active control is set/changed
1422         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1423         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1424           implicit_control variable (used for native Win32 message generation)
1425         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1426           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1427         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1428         * XplatUIStructs.cs: Added ScrollBarCommands enum
1429
1430 2006-04-10  Jackson Harper  <jackson@ximian.com>
1431
1432         * ButtonBase.cs:
1433         * CheckedListBox.cs:
1434         * ComboBox.cs:
1435         * DataGrid.cs:
1436         * DataGridView.cs:
1437         * Form.cs:
1438         * GroupBox.cs:
1439         * ListBox.cs:
1440         * PrintPreviewControl.cs:
1441         * ProgressBar.cs:
1442         * PropertyGrid.cs:
1443         * Splitter.cs:
1444         * StatusBar.cs:
1445         * TrackBar.cs:
1446         * UpDownBase.cs: Fixup base event overrides.
1447         
1448 2006-04-06  Mike Kestner  <mkestner@novell.com>
1449
1450         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1451         all user-initiated value changes to min <= value <= max-thumbsz+1.
1452         (set_Value): check for vert/horiz when calculating new thumb position.
1453         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1454         like MS does.
1455         (OnMouseMoveSB): refactor the thumb dragging code and refine
1456         invalidation logic to reduce flicker.
1457         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1458         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1459         (UpdateThumbPosition): small code readability cleanup
1460
1461 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1462
1463         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1464           different
1465
1466 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1467
1468         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1469
1470 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1471
1472         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1473         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1474           This dramatically reduces the number of Pen.Dispose calls. 
1475           Where possible call ResPool methods only once instead of calling it
1476           over and over again (for example for the same color).
1477
1478 2006-04-06  Mike Kestner  <mkestner@novell.com>
1479
1480         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1481         Also remove an unused private field on the collection. Fixes #77972.
1482
1483 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1484
1485         * ThemeNice.cs: Added ToolBar drawing code
1486
1487 2006-04-06  Mike Kestner  <mkestner@novell.com>
1488
1489         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1490         I'm assuming that means we need to look up the toplevel for the
1491         provided control. Fixes the crash trace in #77911 but exposes another
1492         crash in some strange reflection usage in NDocGui.
1493
1494 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1495
1496         * ThemeNice.cs: Gave it a little silver touch and added Images
1497           method
1498         * FontDialog.cs: FontDialog is not resizable
1499         * FileDialg.cs: Added SizeGripStyle.Show
1500
1501 2006-04-05  Jackson Harper  <jackson@ximian.com>
1502
1503         * KeyboardLayouts.cs: Remove warning.
1504
1505 2006-04-05  Jackson Harper  <jackson@ximian.com>
1506
1507         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1508         all of our controls instead of Paint +=.
1509         * ListBox.cs:
1510         * ListView.cs:
1511         * MenuAPI.cs:
1512         * MessageBox.cs:
1513         * NotifyIcon.cs:
1514         * ProgressBar.cs:
1515         * ScrollBar.cs:
1516         * Splitter.cs:
1517         * StatusBar.cs:
1518         * TabControl.cs:
1519         * TextBoxBase.cs:
1520         * ToolBar.cs:
1521         * TrackBar.cs:
1522         * UpDownBase.cs:
1523         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1524         use OnPaintInternal. Remove Width/Height and Visible checks in
1525         paint handler, this is done at a higher level now.
1526         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1527         * PaintEventArgs.cs: Add a handled flag so controls that don't
1528         want anymore painting after OnPaintInternal can make sure OnPaint
1529         isn't called.
1530
1531 2006-04-05  Mike Kestner  <mkestner@novell.com>
1532
1533         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1534         state of the form, so that we don't process events when Modal dialogs
1535         are up. Fixes #77922.
1536
1537 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1538
1539         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1540           checking is done.
1541
1542 2006-04-05  Mike Kestner  <mkestner@novell.com>
1543
1544         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1545
1546 2006-04-05  Mike Kestner  <mkestner@novell.com>
1547
1548         * ListView.cs (HeaderMouseMove): null guarding for the over column
1549         when setting up the drag_to_index.  Fixes #78015.
1550
1551 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1552
1553         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1554           in the taskbar. Transient windows seem to accomplish that.
1555
1556 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1557
1558         * Form.cs:
1559           - Re-enabled CreateParams.X/Y code for FormStartPosition
1560           - Added code for manual placement when creating the Control
1561           - Incomplete patch to treat MDI forms differently when
1562             setting the ClientSizeCore. (Still need to figure out handling
1563             x/y coords there)
1564         * XplatUIX11.cs:
1565           - When we're explicitly setting the X/Y position of a non-Child
1566             window, let the WM know. Metacity really wants this.
1567
1568 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1569
1570         * ThemeNice.cs: Added CPDrawButton
1571
1572 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1573
1574         * ThemeNice.cs: Changed the color for focused buttons and activated
1575           the arrows for small scroll buttons.
1576
1577 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1578
1579         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1580           anymore. Changed some method modifiers to protected (virtual)
1581         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1582           changes
1583         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1584           Updated drawing of menus, buttons and progressbars; added
1585           CPDrawBorder3D 
1586
1587 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1588
1589         * ImageListStreamer.cs: implemented serialization/deserialization
1590         of the images.
1591
1592 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1593
1594         * ThemeWin32Classic.cs:
1595           - Removed all the DrawFrameControl stuff; CPDrawButton,
1596             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1597             inside the methods
1598           - Updated and corrected the drawing code of CPDrawButton,
1599             CPDrawCheckBox and CPDrawRadioButton to better match ms
1600           - Updated theme checkbox and radiobutton code to use the CP*
1601             methods
1602
1603 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1604
1605         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1606           bug is fixed
1607
1608 2006-03-31  Jackson Harper  <jackson@ximian.com>
1609
1610         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1611         sometimes.
1612         * UpDownBase.cs: Don't CreateGraphics manually, use a
1613         Refresh. Ideally we would invalidate the correct areas here.
1614
1615 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1616
1617         * XplatUIX11.cs: 
1618           - We now track the mapping state of windows. If a window (or 
1619             one of it's parents) is not mapped we no longer permit
1620             WM_PAINT messages to be generated since we'd otherwise get 
1621             lots of BadMatch X errors. Jackson did all the work figuring
1622             out the problem.
1623           - Destroying the caret if the window it's contained in is 
1624             destroyed. Can't use regular DestroyCaret method since it
1625             might fall into a drawing function (trying to remove the
1626             caret) and with that generate new BadMatch errors. Again,
1627             Jackson tracked this down.
1628           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1629             make sure we send the messages to all windows. (The old code
1630             would send the WM_DESTROY to the window, and then all child
1631             windows would be 'gone' because the WM_DESTROY handle lookup
1632             would no longer find the destroyed window)
1633         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1634         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1635
1636 2006-03-31  Jackson Harper  <jackson@ximian.com>
1637
1638         * ScrollableControl.cs: Dont recalc if we are not visible.
1639
1640 2006-03-31  Mike Kestner  <mkestner@novell.com>
1641
1642         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1643         the visibility branch.
1644
1645 2006-03-31  Jackson Harper  <jackson@ximian.com>
1646
1647         * ScrollBar.cs: Cap values when incrementing/decrementing.
1648
1649 2006-03-31  Mike Kestner  <mkestner@novell.com>
1650
1651         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1652         * ToolTip.cs: guard against timer expirations with no active control.
1653         Not sure why it happened.
1654
1655 2006-03-31  Mike Kestner  <mkestner@novell.com>
1656
1657         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1658         text.
1659         * ToolTip.cs: Position the tooltip based on where the cursor is at
1660         popup time, not at MouseEnter time.  Add a Down state so that we don't
1661         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1662         positioning offset. Lookup DisplaySize at positioning time, since it
1663         can theoretically change during invocation.
1664         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1665         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1666
1667 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1668
1669         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1670           Fixes behaviour when the Text property of the box is String.Empty
1671
1672 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1673
1674         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1675           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1676           a window)
1677
1678 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1679
1680         * FileDialog.cs: Visual enhancement for the popup buttons in 
1681           PopupButtonPanel
1682
1683 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1684
1685         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1686           code
1687
1688 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1689
1690         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1691           highlighted menu items to match ms
1692
1693 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1694
1695         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1696
1697 2006-03-30  Mike Kestner  <mkestner@novell.com>
1698
1699         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1700         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1701         go active to account for HotLight to Selected transition.
1702         * MenuItem.cs: add internal Selected prop. Fill out the Status
1703         property by calculating it from item info. Add HotLight,
1704         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1705
1706 2006-03-30  Mike Kestner  <mkestner@novell.com>
1707
1708         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1709
1710 2006-03-29  Jackson Harper  <jackson@ximian.com>
1711
1712         * Form.cs: Implement TODO.
1713
1714 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1715
1716         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1717           missing proper dialog setup in the constructor
1718
1719 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1720
1721         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1722         * Control.cs:
1723           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1724           - Fixed ResetBindings and removed TODO
1725           - Added check for cross-thread calls to get_Handle()
1726           - Added Marshaller attribute for set_Font to satisfy class status
1727         * FontDialog.cs: Removed TODOs that seemed implemented
1728         * UpDownBase.cs: Removed unneeded TODO and Fixme
1729         * MessageBox.cs: Implemented support for Default button and removed TODO
1730         * FileDialog.cs: Removed obsolete TODO
1731         * DomainUpDown.cs: Removed obsolete TODO
1732         * ButtonBase.cs: Removed obsolete TODO
1733         * XplatUIWin32.cs: Removed obsolete TODO
1734         * Form.cs:
1735           - Removed obsolete TODO
1736           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1737             internal status updates
1738           - Making sure the active control is selected when the control is created
1739         * CurrencyManager.cs: Removed obsolete TODO
1740
1741 2006-03-29  Mike Kestner  <mkestner@novell.com>
1742
1743         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1744         of PrintPreviewDialog and RichTextBox.
1745
1746 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1747
1748         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1749           DarkDark, Light and LightLight colors for a specific color
1750         * ThemeWin32Classic.cs:
1751           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1752             Appearance = Button 
1753           - Make use of the new ResPool helper CPColor
1754           - Draw ProgressBar and StatusBar with correct 3D borders
1755
1756 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1757
1758         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1759
1760 2006-03-28  Mike Kestner  <mkestner@novell.com>
1761
1762         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1763         calculating col/row counts.
1764
1765 2006-03-28  Mike Kestner  <mkestner@novell.com>
1766
1767         * ColumnHeader.cs:
1768         * ListView.cs:
1769         * ListViewItem.cs:
1770         * Menu.cs: 
1771         switch to explicit interface method implementation for some methods
1772         corcompare identifies as inconsistent with MS.
1773
1774 2006-03-28  Mike Kestner  <mkestner@novell.com>
1775
1776         * MainMenu.cs: 
1777         * Menu.cs:
1778         add a few missing methods from the class status output.
1779
1780 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1781
1782         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1783           correct.
1784
1785 2006-03-28  Mike Kestner  <mkestner@novell.com>
1786
1787         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1788
1789 2006-03-27  Mike Kestner  <mkestner@novell.com>
1790
1791         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1792         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1793
1794 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1795
1796         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1797
1798 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1799
1800         * ThemeWin32Classic.cs:
1801           - GroupBox: Inserted a little gap between the text and the lines
1802             on the right side
1803           - Made the code in CPDrawBorder3D more readable
1804           - Corrected the drawing location of the up and down arrows in 
1805             CPDrawScrollButton
1806
1807 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1808
1809         * ControlPaint.cs: Corrected line widths in DrawBorder for
1810           ButtonBorderStyle Inset and Outset
1811
1812 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1813
1814         * ThemeWin32Classic.cs:
1815           - Rewrote the totally broken CPDrawBorder3D method. That was
1816             one of the main problems for the terrific ThemeWin32Classic
1817             look
1818           - Updated and corrected Button drawing
1819           - Correct the dimensions of the SizeGrip to match ms ones
1820           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1821         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1822           Border3DStyle.Sunken to match ms.
1823
1824 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1825
1826         * ThemeWin32Classic.cs: First small part of the "de-uglify
1827           ThemeWin32Classic" effort, SizeGrip
1828
1829 2006-03-24  Jackson Harper  <jackson@ximian.com>
1830
1831         * XplatUIX11.cs: Give a max idle time of one second, this matches
1832         MS and forces an Idle event every second when there are no other
1833         events in the queue.
1834
1835 2006-03-24  Mike Kestner  <mkestner@novell.com>
1836
1837         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1838         * ListView.Item.cs: fix layout issues with null image lists and images
1839         smaller than checkbox size.
1840         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1841         mode like MS does.  It's weird, but consistent.  ;-)
1842         Fixes #77890.
1843
1844 2006-03-24  Mike Kestner  <mkestner@novell.com>
1845
1846         * ListView.cs: Scroll wheel support for the item control.  Fixes
1847         #77839.
1848
1849 2006-03-23  Jackson Harper  <jackson@ximian.com>
1850
1851         * ScrollableControl.cs: Special case negative sized areas, not
1852         zero.
1853         * MonthCalendar.cs: Save the rect of the clicked date so we can
1854         use it for invalidation.
1855         - Try to cut down on the number of invalidates
1856         - Invalidate the rect the mouse is over and was over when moving
1857         the mouse, so we get the focus box following the cursor.
1858
1859 2006-03-23  Mike Kestner  <mkestner@novell.com>
1860
1861         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1862         focus rectangle drawing. Fixes #77835.
1863
1864 2006-03-23  Mike Kestner  <mkestner@novell.com>
1865
1866         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1867         the if and else if and reverting back to the original == check on the
1868         None conditional.
1869
1870 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1871
1872         * FontDialog.cs: Update the example panel if the selected index of
1873           the fontListBox changes.
1874
1875 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1876
1877         * FileDialog.cs: Make FileDialog remember which directory it was in
1878           last in the same execution.
1879
1880 2006-03-22  Mike Kestner  <mkestner@novell.com>
1881
1882         * FileDialog.cs: make the DropDownMenu on the toolbar display
1883         RadioChecks since they are mutually exclusive and that's what MS does.
1884
1885 2006-03-22  Mike Kestner  <mkestner@novell.com>
1886
1887         * Theme.cs: add Color param to CPDrawMenuGlyph.
1888         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1889         checks and radio marks and arrows are visible on highlighted items.
1890         * ControlPaint.cs: update to use new Theme signature.
1891
1892 2006-03-22  Mike Kestner  <mkestner@novell.com>
1893
1894         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1895         is active. Fixes #77870.
1896
1897 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1898
1899         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1900           to be focused/selected after startup
1901
1902 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1903
1904         * ColorDialog.cs: 
1905           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1906             CustomColors and ShowHelp properties
1907           - Some internal rewrites to get better results when using the
1908             ColorMatrix
1909
1910 2006-03-22  Mike Kestner  <mkestner@novell.com>
1911
1912         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1913         HoverSelection.  Fixes #77836.
1914
1915 2006-03-22  Mike Kestner  <mkestner@novell.com>
1916
1917         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1918         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1919         1, not 0.  Update ButtonSize based on a pixel count of the win32
1920         control.  Adjust the toolbar size/location for new button size.
1921
1922 2006-03-22  Jackson Harper  <jackson@ximian.com>
1923
1924         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1925         true.
1926         * ScrollBar.cs: When doing increments and decrements we need to
1927         set the Value property so that ValueChanged gets raised. A
1928         possible optimization here would be to make an internal SetValue
1929         that doesn't invalidate immediately.
1930         * ToolTip.cs: Tooltips get added to their container (when
1931         supplied) so they get disposed when the container is disposed.
1932         - Don't create tooltips for String.Empty. This prevents all these
1933         little 2-3 pixel windows from showing up when running nunit-gui
1934         and driving me mad.
1935         * Form.cs: Don't set topmost when setting the owner if the handles
1936         haven't been created yet.  The topmost set will happen when the
1937         handles are created.
1938
1939 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
1940
1941         * XplatUIX11.cs:
1942           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
1943           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
1944             visible (to allow them to recalculate their sizes)
1945
1946 2006-03-21  Mike Kestner  <mkestner@novell.com>
1947
1948         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
1949         methods. Removed a ton of redundant code.  Still not really happy with
1950         the border rendering, but I think that's mainly because of the
1951         ControlDarkDark being black instead of a dark grey. Depending on how 
1952         close we want to be, we might want to revisit those color choices.
1953         Among the new features added during the refactor were DropDownArrow
1954         pressed rendering, Disabled image rendering.  Proper flat appearance
1955         boundary rendering.  Removed the Divider and Wrapping dividers since I
1956         can't figure out any combination of themes and conditions to make the
1957         MS control draw a horizontal line on a toolbar despite what the
1958         Divider property docs indicate.
1959         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
1960         conditions and incorrect layout.  Updated to coding standard.
1961         * ToolBarButton.cs: refactored layout and positioning code from
1962         ToolBar to here.  Invalidate wherever possible instead of forcing
1963         redraws of the whole toolbar. 
1964         (Known remaining issues: explicit ButtonSize smaller than provided
1965         images.)
1966
1967 2006-03-21  Mike Kestner  <mkestner@novell.com>
1968
1969         * ContextMenu.cs (Show): use the position parameter instead of just
1970         showing at the MousePosition.
1971
1972 2006-03-21  Jackson Harper  <jackson@ximian.com>
1973
1974         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
1975         control handle this.
1976         * TreeNodeCollection.cs: If we are clearing the root node we need
1977         to reset top_node so calcs can still happen.
1978         * ThemeWin32Classic.cs: This is a Flags so we need to check
1979         properly.
1980         
1981 2006-03-21  Jackson Harper  <jackson@ximian.com>
1982
1983         * DataGrid.cs: Create columns when the binding context has been
1984         changed.
1985         * X11Structs.cs: Keysyms are uints.
1986         - Add size to fix build.
1987
1988 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
1989
1990         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
1991           XplatUIOSX.cs: 
1992           - Added ResetMouseHover method to allow controls to retrigger
1993             hovering if they need it more than once
1994           - Implemented MouseHoverTime and MouseHoverSize properties
1995         * Timer.cs: Start() must reset the interval
1996         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
1997           properties
1998
1999 2006-03-21  Jackson Harper  <jackson@ximian.com>
2000
2001         * X11Keyboard.cs: improved layout detection. Move the nonchar
2002         tables into this file.
2003         * KeyboardLayouts.cs: Move the tables into resource files.
2004
2005 2006-03-21  Mike Kestner  <mkestner@novell.com>
2006
2007         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2008
2009 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2010
2011         * Mime.cs: Various speed optimizations. Looking up mime types
2012           is now 2 times faster than before
2013
2014 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2015
2016         * CreateParams.cs: Added internal menu field
2017         * Control.cs: 
2018           - Switched call order for UpdateBounds; now we always call
2019             the one that also takes ClientSize, and we're calculating the 
2020             client size via driver method in the others. The previous
2021             method of tracking client size by difference wasn't working
2022             for forms where even the starting client size wouldn't match
2023             the overall form size (due to borders) (Part of fix for #77729)
2024           - CreateParams(): Do not use parent.Handle unless the handle is
2025             already created. Causes havoc with Nexxia and throws off our
2026             creation of controls
2027         * XplatUIX11.cs:
2028           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2029           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2030             method (consolidates code)
2031           - Changed RequestNCRecalc to use new PerformNCCalc method
2032           - Added calls to RequestNCRecalc when menus and borders are changed
2033             to allow app to set NC size. (Part of fix for #77729) This matches
2034             when MS send a WM_NCRECALC on Win32 windows.
2035           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2036             (Part of fix for #77729). This matches what MS does, they also
2037             send that message when the form is made visible.
2038           - XException.GetMessage: Improved usability of X errors by including
2039             a translation of the window into Hwnd and Control class
2040           - Improved debug info for window creation, reparenting and destruction
2041           - Created helper method WindowIsMapped() [Currently not used]
2042         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2043         * Form.cs:
2044           - CreateParams: Now setting our menu on the new internal menu field
2045           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2046             avoid calculating the same property twice
2047         * Hwnd.cs:
2048           - Improved usability of ToString() for debugging purposes
2049           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2050             determine the height of the menu, instead of just the font. This
2051             required to also create a graphics context and to keep a bmp 
2052             around (for performance reasons)
2053
2054 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2055
2056         * MenuAPI.cs: Added OnMouseUp method
2057         * Form.cs:
2058           - Now remembering the requested client size, avoids size errors
2059           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2060             instead of base if the menu is active. This is required due to
2061             control now capturing and releasing on down/up and it would
2062             prematurely release our menu capture
2063
2064 2006-03-17  Jackson Harper  <jackson@ximian.com>
2065
2066         * KeyboardLayouts.cs: Add the czech layouts.
2067
2068 2006-03-16  Jackson Harper  <jackson@ximian.com>
2069
2070         * Control.cs: Use the viewport space when sizing not the controls
2071         client size, so things like ScrollableControl that effect the
2072         viewport size (when scrollbars are added) are computed correctly.
2073         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2074         of ManagerEntrys.
2075         - Handle creating BindingManagers for null data sources.
2076         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2077         source, otherwise when rows are added they are added to the 'fake'
2078         datasource and we will crash when trying to set the position in
2079         those rows.
2080         - Use Implicit scrollbars on the datagrid so they arent
2081         selectable.
2082         
2083 2006-03-16  Jackson Harper  <jackson@ximian.com>
2084
2085         * Binding.cs:
2086         * InternalWindowManager.cs:
2087         * MdiWindowManager.cs:
2088         * X11Keyboard.cs: I really want Mike to love me again (fix
2089         compiler warnings).
2090
2091 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2092
2093         * DataGrid.cs:
2094           - OnMouseDown: Switch to editing mode when clicking on the cell
2095                          even if we're clicking on the cell that's currently 
2096                          selected
2097           - ProcessGridKey: Left/Right now wrap like MS.Net does
2098           - ProcessGridKey: Tab now knows to add a new row when tab is
2099                             pressed in the cell of the last column of the 
2100                             last row
2101           - ProcessGridKey: Enter now adds another row  if pressed in the last
2102                             row and selectes the new row, same column cell
2103           - ProcessGridKey: Home/End navigate columns, not rows, like 
2104                             originally implemented
2105           - Broke ProcessKeyPreview code out into an extra Internal method
2106             so it can be called from the edit code
2107         * DataGridTextBox.cs (ProcessKeyMessage):
2108           - Switched to accept Tab keypresses
2109           - Added F2 handling to allow jumping to the end of the edited cell
2110           - Added logic to allow moving caret left/right inside edited cell
2111             and making the edited cell jump when the caret hits cell borders
2112           - Tab and Enter are now passed to the datagrid after being handled
2113         * TextBoxBase.cs:
2114           - Removed capture code now that Control handles it
2115           - set_SelectionStart now ensures caret is visible
2116
2117 2006-03-16  Jackson Harper  <jackson@ximian.com>
2118
2119         * TrackBar.cs: Debackwards the increment/decrement for handling
2120         mouse clicks on the bar with vertical trackbars.
2121         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2122         bottom to match MS.
2123
2124 2006-03-16  Mike Kestner  <mkestner@novell.com>
2125
2126         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2127         consistent with the MS control. Fix a bug in
2128         SelectedListViewItemCollection.Clear that was pissing me off for the
2129         better part of a day because the collection was being altered
2130         underneath us as we walked the list.
2131
2132 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2133
2134         * Control.cs: Not sure how we could miss this so long, but it seems
2135           that MS.Net has Capture set all the way from before calling 
2136           OnMouseDown through sending the mouse events until after
2137           OnMouseUp. This will fix DataGrid's selection being set to end
2138           at the location of the MouseUp.
2139
2140 2006-03-15  Jackson Harper  <jackson@ximian.com>
2141
2142         * BindingContext.cs: Check the binding after its added so that it
2143           can initialize the binding managers and hookup to events.
2144         * Binding.cs: Data members seem to sometimes include rows/cols in
2145           the format Row.Column we now take this into account.
2146           - Hookup to the position changed event so we can update the
2147           control when the position has changed in the data set.
2148         * CurrencyManager.cs: Take into account the row/col naming
2149           convention when creating dataset tables.
2150         * BindingContext.cs: Using a newer better way of storing
2151           datasource/datamember pairs.  Hopefully this better matches MS for
2152           looking up binding managers.
2153
2154
2155 2006-03-15  Jackson Harper  <jackson@ximian.com>
2156
2157         * BindingContext.cs: The currency manager needs the data member
2158         name, if the member is a data set we use the name to find the
2159         correct table.
2160         * CurrencyManager.cs: When creating the list prefer an IList over
2161         an IListSource.
2162         - Attempt to create a DataTable from a DataSet (TODO: might need
2163         some better error checking here, although MS doesn't seem to have much)
2164         - If we have a DataTable create a view and use it as our list.
2165
2166 2006-03-15  Mike Kestner  <mkestner@novell.com>
2167
2168         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2169         keyboard navigation. Support Up/Down/Left/Right selection correctly
2170         for all 4 View modes.
2171         * ListViewItem.cs: add internal row/col fields for icon layouts.
2172
2173 2006-03-15  Jackson Harper  <jackson@ximian.com>
2174
2175         * TabControl.cs: Redraw the tabs when we resize so their newly
2176         calculated sizes are drawn on screen.
2177         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2178         composite characters.
2179         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2180         - filter events so that composite characters can be created
2181         patches by peter
2182         * X11Structs.cs: Add XIMProperties enum.
2183
2184 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2185
2186         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2187           unless it's created
2188
2189 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2190
2191         * Control.cs (PerformLayout): We don't need to consider visiblity
2192           for anchoring, only for docking. This fixes 'whacky' alignment
2193           in listbox and other controls that use implicit scrollbars after
2194           the previous PerformLayout patch
2195         * ListBox.cs: Switched to use implicit scrollbars
2196           
2197 2006-03-14  Mike Kestner  <mkestner@novell.com>
2198
2199         * ToolBar.cs: 
2200         * VScrollBar.cs:
2201         - chain up the "new event" overrides to base and use
2202         OnEvent to raise them.  Part of fix for bug #76509.
2203
2204 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2205
2206         * FileDialog.cs: Do not select an item in the parent directory
2207           on backspace
2208
2209 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2210
2211         * Control.cs (PerformLayout): It would seem that we considered
2212           invisible windows for our layout. Not quite the right thing
2213           to do. Now we don't any longer, thereby fixing bug #76889.
2214
2215 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2216
2217         * Control.cs (CanFocus): I goofed. A control can have focus 
2218           even though it's not selectable. Made it match MS docs.
2219
2220 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2221
2222         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2223           center by default (fixes #76895)
2224         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2225           all uses of Border3DSides.All with the explicit ORd together
2226           Left|Right|Top|Bottom because I assume that nobody was aware 
2227           that All also implies a center fill. Most places I checked had
2228           a fill right above.
2229         * ProgressBarStyle.cs: Added
2230
2231 2006-03-13  Mike Kestner  <mkestner@novell.com>
2232
2233         * ListView.cs: fix breakage in drag shadow header positioning 
2234         from Peter's csc compilation fix.
2235
2236 2006-03-13  Mike Kestner  <mkestner@novell.com>
2237
2238         * ListView.cs: fix NRE produced by backspacing twice in a focused
2239         FileDialog.
2240
2241 2006-03-13  Mike Kestner  <mkestner@novell.com>
2242
2243         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2244
2245 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2246
2247         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2248           be changed
2249         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2250           the allowed size before making programmatic size changes
2251
2252 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2253
2254         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2255           set, metacity is broken and will still use the emty sizes in 
2256           the struct. (Fix for #77089)
2257
2258 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2259
2260         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2261           WindowExStyles and marked both enums as Flags
2262         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2263           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2264           to match WindowStyles split
2265         * XplatUIX11.cs:
2266           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2267           - Updated to match WindowStyles split
2268         * XplatUIWin32.cs:
2269           - Fixed FosterParent creation, was using ExStyle on the Style field
2270             (This should help with Popup focus issues)
2271           - Updated to match WindowStyles split
2272
2273 2006-03-13  Jackson Harper  <jackson@ximian.com>
2274
2275         * MdiWindowManager.cs: Use the system menu height. Fixes some
2276         strange sizing issues.
2277
2278 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2279
2280         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2281         * TextBoxBase.cs:
2282           - Scroll to caret after inserting text (#77672)
2283           - Make scroll range one pixel higher, fixes off-by-one error (and
2284             makes underlines visible on the last line)
2285
2286 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2287
2288         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2289           the keyboard state from being stuck with keys in 'pressed' state when
2290           focus is switched away via keyboard
2291         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2292           reset the keyboard if no X11 KeyUp events are expected to come
2293         * X11Structs.cs: Switched type of Visible to bool to match driver
2294
2295 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2296
2297         * TextControl.cs:
2298           - Switched caret to be just 1 pixel wide, matches MS and looks less
2299             clunky
2300           - Moved caret display 1 pixel down from the top of the control
2301             to improve view
2302           - InsertCharAtCharet: Update the selection start if moving the caret
2303             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2304           - No longer always creating the caret when the caret methods are
2305             called. Only the actual ShowCaret/HideCaret will do that now
2306           - Only setting caret visible if the owner control has focus
2307           - UpdateView: Added invalidation-shortcut logic for center and right 
2308             aligned text. Previously we'd update all according to the left
2309             logic which caused drawing errors. Also fixed height of invalidated
2310             areas, now properly invalidating the whole area (was off-by-one)
2311           - owner_HandleCreated: Always generate the document when the
2312             handle is created; this ensures that 
2313         * TextBoxBase.cs:
2314           - Fixed situation where caret would disappear under the right
2315             window border, also improved scrolling behaviour on left-
2316             aligned textboxes
2317           - Fixed right-aligned textboxes to have a border to the
2318             right instead of the caret being under the right border
2319         * XplatUIX11.cs:
2320           - Switched from 'nested' to simple visible/not visible tracking 
2321             for caret (part of fix for #77671)
2322           - No longer passing through translated FocusIn/FocusOut messages
2323             since we were notifying too often and the wrong windows. Instead
2324             we just notify our focussed window of receiving or loosing focus
2325         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2326           counting for caret to simple visible yes/no behaviour (part of 
2327           fix for #77671)
2328
2329 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2330
2331         * Mime.cs: Remove debug code...
2332
2333 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2334
2335         * MimeGenerated.cs: Removed
2336         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2337           and subclasses) from /usr/(local/)share/mime and
2338           $HOME/.local/share/mime.
2339
2340 2006-03-10  Jackson Harper  <jackson@ximian.com>
2341
2342         * MdiWindowManager.cs: Recalc the NC area when a window is
2343         maximized/restored so that the menu area is drawn on forms that
2344         don't have a menu.
2345
2346 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2347
2348         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2349           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2350           us to force a WM_NCCALCRESIZE message being sent. This is needed
2351           for MDI maximizing.
2352
2353 2006-03-10  Jackson Harper  <jackson@ximian.com>
2354
2355         * Form.cs: We need to use the ActiveMenu when calculating menu
2356         height.
2357         - Fix nullref when the window manager hasn't been created yet.
2358         * Control.cs: Fix nullref when we try to bring a control to the
2359         front that has no parent.
2360         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2361         height.
2362         - Add a dummy item to the maximized menu so it always has the
2363         correct height. Otherwise when there are no menus we don't get our
2364         icon and buttons.
2365         
2366
2367 2006-03-10  Jackson Harper  <jackson@ximian.com>
2368
2369         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2370         stuff.
2371         * Form.cs: Make the window_state internal so the window managers
2372         can track it.
2373         - When an MDI child is maximized let its window manager create the
2374         main menu (so it can add its icon).
2375         - Notify the window managers of state changes
2376         - Let the window manager paint its buttons and handle button
2377         clicks on the menu when it is maximized.
2378         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2379         window manager, since tool windows don't use it, only mdi windows.
2380         - Tell the main form that we don't want it to handle NCPAINT
2381         itself to avoid extra painting.
2382         - Handle clicks on a maximized windows menu.
2383         - Handle window state changes
2384         - Handle minimize/maximize clicks correctly by setting the window state.
2385         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2386         when clicking on the forms icon).
2387         - New method to create a forms maximized menu. This is its normal
2388         menu + an icon.
2389         - Handle window state changes.
2390         - Handle sizing of maximized windows.  Maximized windows are just
2391         drawn bigger then the parent visible area. All controls are still
2392         there, they are just outside the visible area (this matches windows).
2393         * MdiClient.cs: No scrollbars when a child window is maximized.
2394         - Let the children windows figure out how big they should be when
2395         sizing maximized windows.
2396         - Implement a version of ArrangeIconicWindows somewhat similar to
2397         Windows version.  There are some little differences, but I don't
2398         think any app will rely on the layout of minimized mdi windows.
2399
2400 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2401
2402         * Padding.cs: Several fixes to allow compiling with csc 2.0
2403
2404 2006-03-09  Jackson Harper  <jackson@ximian.com>
2405
2406         * Menu.cs:
2407         * MenuItem.cs: Cheap hack so we can add items to the list without
2408         the events being raised.  This allows adding mdi items during
2409         drawing. TODO: Should probably find a better time to add the items.
2410
2411 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2412
2413         * ThemeWin32Classic.cs:
2414           - CheckBox_DrawText: Added logic to not wrap if not enough space
2415             is available (Fix for bug #77727)
2416           - RadioButton_DrawText: Added logic not to wrap if not enough
2417             space is available (Fix for bug #77727). Also removed some
2418             duplicate code, DrawString always drawing the regular text
2419             before hitting the if statement.
2420
2421 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2422
2423         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2424
2425 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2426
2427         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2428         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2429           methods. Moved the new 2.0 properties into alphabetical order with
2430           other properties and added MonoTODO tags
2431
2432 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2433
2434         * AutoScaleMode.cs: Added. Fix build.
2435
2436 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2437
2438         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2439           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2440           and was requiring premature handle creation for calls from above
2441         * Form.cs, Control.cs: Removed handle arguments from calls to
2442           CalculateClientRect()
2443
2444 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2445
2446         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2447           drag_column.column_rect is MarshalByRef and can't be used that way
2448
2449 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2450
2451         * AxHost.cs: Added deserialization constructor for 
2452           AxHost+State (fixes 77743)
2453
2454 2006-03-09  Mike Kestner  <mkestner@novell.com>
2455
2456         * ListView.cs: 
2457         - Added column drag reordering for details view.
2458         - fixed behavior when mouse is dragged off column and
2459         AllowColumnReorder is false.
2460         * ColumnHeader.cs: clone the format too in Clone.
2461         * Theme.cs: add DrawListViewHeaderDragDetails method.
2462         * ThemeWin32Classic.cs:
2463         - impl new method for drawing drag column shadows and targets.
2464         - support column offset for details mode in DrawListViewItem.
2465
2466 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2467
2468         * TextControl.cs: Reset the char_count when the document is cleared
2469           (Fixes bug reported on mono-winforms mailing list)
2470
2471 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2472
2473         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2474           of calling base we simply process the key ourselves, since both
2475           DefWindowProc and the handled method would set m.Result. 
2476           (Fixes #77732)
2477
2478 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2479
2480         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2481           method also moves the window; instead implemented a copy of
2482           Control.ScaleCore (Part of fix for #77456)
2483         * TextBoxBase.cs: 
2484           - Created new CreateGraphicsInternal method to allow providing
2485             a graphics context when no handle is created without triggering
2486             handle creation. (Part of fix for #77456)
2487           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2488         * TextControl.cs: 
2489           - Switched Constructor to require TextBoxBase instead of Control (to
2490             allow uncast access to CreateGraphicsInternal)
2491           - Safeguarded use of owner.Handle property. No longer accessing it
2492             unless the handle is already created.
2493           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2494           - Now triggering a recalc when owning control becomes visible
2495         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2496           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2497           premature handle creation (Part of fix for #77456)
2498         * Control.cs:
2499           - We now only destroy our double-buffering buffers when the
2500             control is resized or disposed, but not when visibility
2501             changes. (The code even re-created them twice every time)
2502           - Now requiring a redraw of the buffer on visibility changes
2503             (fixes bug 77654 part 2)
2504           - Not passing OnParentVisibleChanged up unless the control
2505             is visible
2506           - CanFocus: Fixed to match MS documentation
2507           - Focus: Fixed to return actual focus state and to check if
2508             setting focus is legal before setting it
2509
2510 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2511
2512         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2513           when to draw focus rectangle by looking at parent focus and
2514           selected state instead. This fixes TabPages on Linux sometimes
2515           having none or multiple focus rectangles.
2516         * XplatUIX11.cs (SetFocus): 
2517           - Don't set the focus if the same window already has focus
2518           - Use SendMessage instead of PostMessage (like it's Win32
2519             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2520             to match MS behaviour
2521         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2522           are not selectable.
2523
2524 2006-03-07  Jackson Harper  <jackson@ximian.com>
2525
2526         * PictureBox.cs: Revert line I accidently committed last week.
2527
2528 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2529
2530         * Control.cs: 
2531           - Added new IsRecreating and ParentIsRecreating properties to
2532             allow testing if RecreateHandle has been called on ourselves
2533             or one of our parents
2534           - WndProc(WM_DESTROY): If our control handle is being recreated
2535             we immediately need to create the handle when receiving the
2536             destroy, that way our child windows find a valid parent handle
2537             when they themselves are being recreated upon WM_DESTROY receipt
2538             (fix for bug #77654 part 1)
2539         * XplatUIX11.cs:
2540           - DestroyWindow: WM_DESTROY must be sent to our own window before
2541             notifying any child windows. MS documents that child windows
2542             are still valid when WM_DESTROY is received. (Control now relies on
2543             this behaviour)
2544           - Added some fine-grain debug options
2545
2546 2006-03-06  Jackson Harper  <jackson@ximian.com>
2547
2548         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2549         box and base calculations off this.
2550         * MdiChildContext.cs:
2551         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2552         anymore.
2553         
2554 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2555
2556         * Splitter.cs: In situations where the affected control is added
2557           to the parent's control list after the splitter, we would not
2558           populate affected. Now we try populating it on mousedown, if
2559           it's not already set, and force it to be re-set whenever our
2560           parent changes.
2561
2562 2006-03-03  Matt Hargett  <matt@use.net>
2563
2564         * Control.cs: implement Control.Padding
2565         * Padding.cs: -Padding.All returns -1 when constructing with the
2566         implicit default ctor
2567         -Padding.ToString() matches MS.NET
2568         * ContainerControl.cs: implement
2569         ContainerControl.AutoScaleDimensions
2570         * ListControl.cs: implement ListControl.FormattingEnabled
2571         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2572         * ButtonBase.cs:
2573         * TabPage.cs: Implement UseVisualStyleBackColor.
2574         * PictureBox.cs: Implement PictureBox.InitialImage.
2575
2576 2006-03-03  Mike Kestner  <mkestner@novell.com>
2577
2578         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2579         event declarations to proxy to base event.
2580         * ListViewItem.cs: update to use ItemControl.
2581         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2582         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2583         column header label rendering for 0 width columns.
2584
2585 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2586
2587         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2588           that causes the control to be created. Fixes #77476.
2589
2590 2006-03-02  Jackson Harper  <jackson@ximian.com>
2591
2592         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2593         expose_pending.
2594
2595 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2596
2597         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2598           passed in for the EventArgs (fixes #77690)
2599
2600 2006-03-01  Jackson Harper  <jackson@ximian.com>
2601
2602         * ScrollBar.cs: Refresh afterbeing resized.
2603
2604 2006-02-28  Mike Kestner  <mkestner@novell.com>
2605
2606         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2607         Clean up a tracker compile warning.
2608         * MenuItem.cs: add internal PerformPopup method.
2609         [Fixes #77457]
2610
2611 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2612
2613         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2614           implicit expose) when the text is set to null
2615
2616 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2617
2618         * RichTextBox.cs (FlushText): When newline is true, we always
2619           need to split the line, even if no text is on it and we may
2620           never eat newlines. (Fixes #77669)
2621
2622 2006-02-28  Mike Kestner  <mkestner@novell.com>
2623
2624         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2625         and set Selected instead.
2626         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2627         collections.
2628
2629 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2630
2631         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2632
2633 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2634
2635         * FontDialog.cs:
2636           - Got rid of the panel. All controls are now directly added to
2637             the dialog form
2638           - It is now possible to set a font with the Font property
2639           - MinSize and MaxSize property do now what they should
2640           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2641           - Searching and selecting a font with the font textbox works now,
2642             the same applies to the style and size textbox
2643           - Draw the correct 3D border in the example panel
2644           - Fixed a little mem leak (unused fonts didn't get disposed)
2645           - Many other internal updates/rewrites...
2646           - Fix typo
2647
2648 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2649
2650         * TextControl.cs: 
2651           - InsertRTFFromStream: Added 'number of characters inserted' argument
2652           - set_SelectedRTF: Now using the number of characters to calculate
2653             the new location for the selection and cursor (x/y cannot be used
2654             due to potentially already wrapped text)
2655
2656 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2657
2658         * TextControl.cs: Added property and implemented means to allow 
2659           disabling recalculation of a document (can be used to speed up
2660           multiple inserts and is needed to make RTF inserts predictable, see
2661           bug #77659)
2662         * RichTextBox.cs: Using the new NoRecalc property of Document to
2663           keep x/y insert locations predictable. Also makes it faster inserting
2664           large chunks of RTF
2665
2666 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2667
2668         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2669           it's easier for a child control to handle the other messages without
2670           having to duplicate the special functionality
2671         * TextBoxBase.cs
2672           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2673             code to handle processing the key ourselves, in order to get 
2674             access to the result of KeyEventArgs.Handled. We now only call 
2675             ProcessKey if they key hasn't been handled already. Fixes #77526.
2676           - set_Text: If null or empty string is given, just clear the 
2677             document. Fixes part of #77526
2678
2679 2006-02-27  Jackson Harper  <jackson@ximian.com>
2680
2681         * SizeGrip.cs: Paint the background color before painting the grip
2682         so things look right.
2683         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2684
2685 2006-02-27  Mike Kestner  <mkestner@novell.com>
2686
2687         * ListView.cs:
2688           - Restructure layout and invalidation model to remove a ton of
2689           flicker from the control and speed up performance in general.
2690           - Add manual column resize, flickers like crazy, but I already have
2691           some ideas on how I'll fix that. (#76822)
2692           - Merge the three Icon-based views into a single layout method.
2693           - Move item selection interaction logic from the item since 
2694           interaction with the collections is more appropriate to the view.
2695           - Deselection on non-item clicks.
2696         * ListViewItem.cs:
2697           - Encapsulate most of the layout. Add some internal props to trigger
2698           layout.  Move to a model where Items invalidate themselves instead
2699           of just invalidating the whole control every time something changes.
2700           - Invalidate on Text/Caption changes.
2701           - switch to an offset based layout model to avoid having to absolute
2702           position every element on item moves.
2703           - correct checkbox layout to conform to MS layout.
2704         * ThemeWin32Classic.cs:
2705           - refactor some column header drawing code.
2706           - fix string justification for column headers (#76821)
2707           - make SmallIcon labels top justified for compat with MS impl.
2708         * ThemeClearlooks.cs:
2709           - adjust to new ListViewItem internal checkbox bounds api.
2710
2711 2006-02-27  Jackson Harper  <jackson@ximian.com>
2712
2713         * Control.cs:  Change where implicit controls fall in the zorder.
2714         They are now on top of all children.
2715         - Synced AddImplicit code with Add
2716         - Removed unused enumerator.
2717         * SizeGrip.cs: Remove the TODO as its been TODONE.
2718
2719 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2720
2721         * TextControl.cs(Insert): Combine the last lines unless the insertion
2722           string ends with \n\n, otherwise we leave one line too many (Fixes
2723           something I noticed with the testapp for #77526; the bug itself was
2724           already fixed in the previous checkin)
2725
2726 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2727
2728         * RichTextBox.cs:
2729           - SelectionColor and SelectionFont methods no longer set absolute
2730             styles. Instead, the keep font or color respectively (This 
2731             resolves a long-standing FIXME in the code)
2732           - When flushing RTF text, the insert code now considers text trailing
2733             behind the insertion point (Fixes the bug where when replacing
2734             the selected text via SelectedRTF the remainder of the line behind 
2735             the selection would stay on the first insertion line)
2736         * TextBoxBase.cs:
2737           - AppendText now updates the selection points after inserting text
2738           - AppendText now ensures that the last tag (sometimes 0-length) of
2739             the document is used for the style information (Fixes part of 
2740             bug #77220)
2741         * TextControl.cs:
2742           - Created new FontDefiniton class to allow describing partial style
2743             changes
2744           - StreamLine() now takes a lines argument, to allow it to decide
2745             whether an encountered zero-length tag is the last in the document
2746             (which must be kept to not loose the font/color contained in it,
2747             for later appends)
2748           - Created Combine() and Split() methods for Marker structs, to 
2749             support marker updates due to reformatted documents (soft line
2750             wraps)
2751           - Implemented Document.CaretTag setter
2752           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2753             of the last line (Not the cause, but also exposed by bug #77220)
2754           - Added LineTag argument to InsertString method, to allow callers
2755             to force a certain tag to be used (required to force use of the
2756             trailing zero-length tag of a document)
2757           - Now updating markers in Combine(), to avoid stale tag markers
2758           - Added some method descriptions to aid maintenance
2759           - Implemented new FormatText concept, allowing additive/subtractive
2760             formatting by only specifying the components that are to be 
2761             changed. This was needed for resolving the RTB.SelectedColor/
2762             RTB.SelectedFont fixmes
2763           - Added Break() support method to allow breaking up linetags (used
2764             for partial formatting)
2765           - Added GenerateTextFormat() method. It is used for partial 
2766             formatting and allows to generate a full font/color from given
2767             attributes and an existing tag.
2768
2769 2006-02-26  Jackson Harper  <jackson@ximian.com>
2770
2771         * XplatUIX11.cs:  Use the correct caption height.
2772         - Translate hittest coordinates to screen coords to match MS.
2773         * XplatUIWin32.cs: When we create MDI windows we need to reset
2774         some of the style flags, so we get a nice blank window, and can
2775         draw all the decorations ourselves.
2776         - Set a clipping rectangle on the non client paint event, the
2777         window manager drawing code needs one.
2778         * Form.cs: The window manager needs to know when the window state
2779         has been updated.
2780         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2781         don't need to factor in border and title sizes in these
2782         methods. TODO: Remove the args and fix the call points.
2783         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2784         properly.
2785         - Let the driver set the cursors.
2786         - Improve active window handling
2787         - Correct sizes for title bars and buttons.
2788         - Match MS drawing better
2789         * MdiWindowManager.cs: We don't need to handle border style
2790         updates specially anymore.
2791         - Check for scrollbars when windows are done moving
2792         - Handle Active properly.
2793         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2794         correctly. I am spewing the exception though, so we don't hide the
2795         bugs.
2796         
2797 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2798
2799         * DataGridViewRowPostPaintEventArgs.cs,
2800           DataGridViewCellPaintingEventArgs.cs,
2801           DataGridViewRowCollection.cs,
2802           DataGridViewRowPrePaintEventArgs.cs,
2803           DataGridViewCell.cs: Clear a few warnings and implement a few
2804           exceptions that should be thrown.
2805
2806 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2807
2808         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2809           'inheriting' our parent's (non-default) cursor. (Part of
2810            the fix for #77479)
2811
2812 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2813
2814         * XplatUIX11.cs: Fixed cast to make csc happy
2815
2816 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2817
2818         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2819           it's for the client area (part of fix for #77479 and needed
2820           for MDI window cursor handling)
2821         * XplatUIX11.cs
2822           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2823             the appropriate default cursors and also passing the message
2824             up the parent chain 
2825           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2826             for non-client areas
2827
2828 2006-02-15  Jackson Harper  <jackson@ximian.com>
2829
2830         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2831         is a real MDI window
2832
2833 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2834
2835         * X11DesktopColors.cs: Instead of checking the desktop session
2836           string for "KDE" check if it starts with "KDE"
2837
2838 2006-02-10  Jackson Harper  <jackson@ximian.com>
2839
2840         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2841         systems).
2842
2843 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2844
2845         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2846           errors
2847         * ColorDialog.cs:
2848           - Got rid of the panel. All controls are now directly added to
2849             the dialog form
2850           - Changed to mono coding style
2851
2852 2006-02-10  Jackson Harper  <jackson@ximian.com>
2853
2854         * InternalWindowManager.cs: We don't need the set visibility to
2855         false hack anymore now that peter has written beautiful shutdown
2856         code.
2857
2858 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2859
2860         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2861           where already explicitly destroyed
2862
2863 2006-02-10  Jackson Harper  <jackson@ximian.com>
2864
2865         * MdiClient.cs: Handle the case where windows are too high or to
2866         the left and we need scrollbars.
2867
2868 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2869
2870         * MimeIcon.cs: Added some icons
2871         * FileDialog.cs:
2872           - Fixed bug #77477
2873           - Got rid of the panel. All controls are now directly added to
2874             the dialog form
2875           - Changed to mono coding style
2876           - On Linux "My Computer" and "My Network" will now show some
2877             more usefull information. A new class, MasterMount, gathers
2878             this information from /proc/mount. Updated MWFFileView to make
2879             use of this information
2880           - Fixed a bug that caused FileDialog to crash when
2881             ".recently_used" file had a zero size
2882           - FilterIndex does now what it should
2883           - Some Refactoring
2884         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2885             FileDialog changes
2886
2887 2006-02-09  Jackson Harper  <jackson@ximian.com>
2888
2889         * ComboBox.cs: Don't touch if null.
2890
2891 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2892
2893         * Cursor.cs: 64bit safeness fix
2894         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2895
2896 2006-02-09  Jackson Harper  <jackson@ximian.com>
2897
2898         * Form.cs: If a form is made into an MDI form update the styles so
2899         all the props can get set correctly.
2900         - Kill the mdi_container when we dont need it anymore.
2901         * InternalWindowManager.cs: Add missing NOT
2902
2903 2006-02-08  Jackson Harper  <jackson@ximian.com>
2904
2905         * InternalWindowManager.cs: Respek clipping when drawing MDi
2906         decorations.
2907
2908 2006-02-08  Jackson Harper  <jackson@ximian.com>
2909
2910         * Hwnd.cs: Add bits to track non client expose events.
2911         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2912         gives us a proper invalid rect and will allow for some nice
2913         optimizations with NC client drawing
2914         - MDI windows are children windows, so move their style handling
2915         into the child window block.
2916         * InternalWindowManager.cs: Remove a state reset that was
2917         getting invoked at the wrong time. Fixes managed windows getting
2918         into a 'stuck' captured state.
2919
2920 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2921
2922         * TextControl.cs (Document.ctor): Now initializing 
2923           selection_anchor. Fixes #77493
2924
2925 2006-02-07  Jackson Harper  <jackson@ximian.com>
2926
2927         * TrackBar.cs: The increment/decrements were backwards.
2928
2929 2006-02-07  Mike Kestner  <mkestner@novell.com>
2930
2931         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2932         to the instance itself.
2933
2934 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2935
2936         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
2937           on ulongs and pointers, the size differs between 32bit and 64bit
2938           systems. 
2939
2940 2006-02-07  Mike Kestner  <mkestner@novell.com>
2941
2942         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
2943         for 64 bit platforms to work around a metacity bug. 
2944
2945 2006-02-07  Jackson Harper  <jackson@ximian.com>
2946
2947         * TrackBar.cs: Process the input keys we need, and hookup to
2948         KeyDown instead of using WndProc, so we get key messages.
2949
2950 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
2951
2952         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
2953           machine we're on. 
2954         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
2955           we need to translate the XdndVersion atoms array before sending it
2956
2957 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
2958
2959         * XplatUIX11.cs: 
2960           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
2961             number of bits for the property, not the number of bytes. The
2962             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
2963             but would not crash since it specified 8 bits instead of 4 bits)
2964           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
2965             defined as XID -> long in the C headers)
2966           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
2967             references since those are now IntPtr to begin with
2968           - Switched all Atom.XXX 'int' casts to IntPtr casts
2969           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
2970           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
2971           - Added XChangeActivePointerGrab DllImport (for X11DnD)
2972         * X11Structs.cs:
2973           - Changed 'int' type for Atoms in XEvent structures to IntPtr
2974           - Changed atom in HoverStruct to be IntPtr
2975         * X11DnD.cs:
2976           - Removed local DllImports, switched code to use those from XplatUIX11
2977           - Removed/fixed casts related to the switch of Atom to be a IntPtr
2978
2979 2006-02-06  Mike Kestner  <mkestner@novell.com>
2980
2981         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
2982         method signatures in the import region.  There may still be some
2983         lingering struct marshaling issues, as I didn't drill down into those.
2984         Yet.
2985
2986 2006-02-06  Jackson Harper  <jackson@ximian.com>
2987
2988         * ComboBox.cs: Dont manually set the top_item, this is computed
2989         when the scrollbar position is set.
2990
2991 2006-02-06  Mike Kestner  <mkestner@novell.com>
2992
2993         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
2994         startup crashes on amd64.  There's other fixes needed.  All pinvoke
2995         usage of Atom needs to be mapped to IntPtr for example.  And there are
2996         likely other int/long issues to be addressed.
2997
2998 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
2999
3000         * FileDialog.cs: One more...
3001
3002 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3003
3004         * FileDialog.cs: Next try
3005
3006 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3007
3008         * FileDialog.cs: First part of fix for #77464
3009
3010 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3011
3012         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3013           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3014           AcceptButton border drawing.
3015
3016 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3017
3018         * Form.cs: Moved positioning of form after auto scaling is applied,
3019           otherwise it would possibly use wrong form size.
3020
3021 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3022
3023         * Control.cs (RecreateHandle): No need to re-create any child
3024           controls, the child windows will get destroyed automatically by
3025           the windowing system or driver, and re-created when the handle
3026           is being accessed the first time. Fixes #77456
3027         * Form.cs: No longer setting the form to closing if the handle is 
3028           being recreated. This seems like the right thing to do, don't
3029           have a bug or testcase for this, though.
3030
3031 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3032
3033         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3034           controls to avoid unwanted side effects
3035
3036 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3037
3038         * Control.cs: 
3039           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3040             control. Fixes #77416.
3041           - DefaultSize is 0,0 for control
3042         * TextBoxBase.cs: 
3043           - DefaultSize is 100, 20
3044           - SetBoundsCore: Now enforcing the height, no matter if the provided
3045             height is more or less than the preferred one, as long as AutoSize
3046             is on
3047         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3048
3049 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3050
3051         * Control.cs:
3052           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3053             call unless both performLayout is true *and* we have a pending
3054             layout change
3055           - ResumeLayout: MS does not completely nest Suspend and Resume,
3056             they bottom out at 0, fixed our code to match that.
3057           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3058             SetBoundsCore, we were updating even when we shouldn't. This fixes
3059             swf-anchors mis-anchoring when resizing the app fast and lots.
3060           - UpdateDistances: Now only setting the left and top distance if 
3061             we have a parent and are not suspended, this is based on
3062             a suggestion by Don Edvaldson in bug #77355.
3063           - OnVisibleChanged: Fixed logic when to create the control. We may
3064             not create the control if we have no parent or if it's not visible;
3065             switched to using Visible property instead of is_visible field 
3066             since the property also considers parent states. This fixes a bug
3067             when starting Paint.Net
3068
3069 2006-02-02  Jackson Harper  <jackson@ximian.com>
3070
3071         * Form.cs: If the forms handle hasn't been created yet don't call
3072         into xplatui to make it top most, just set the topmost flag on the
3073         form in CreateParams
3074         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3075
3076 2006-02-01  Jackson Harper  <jackson@ximian.com>
3077
3078         * ScrollableControl.cs: Refactored the Recalculate method a
3079         little, this wasn't handling all the variants of bottom and right
3080         bars needed to be added and added/removed based on their
3081         counterparts being added/removed (which changes the drawable
3082         size). Also we special case client widths and heights of 0 and
3083         don't add the scrollbar for those.
3084
3085 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3086
3087         * XplatUIX11.cs: 
3088           - Added method to get AbsoluteGeometry(); currently unused, but might
3089             be used in the future, if we try again to figure out toplevel
3090             coordinates with some more crappy window managers
3091           - Added FrameExtents() method to retrieve the WM set decoration size
3092           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3093             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3094         * Hwnd.cs: 
3095           - Added whacky_wm tracking var for metacity
3096           - Added logic to have default menu height if the actual menu height
3097             has not yet been calculated (part of fix for #77426)
3098         * Form.cs: Keep track whether client size has been set and re-set 
3099           it if a menu is added/removed afterwards (Fixes #77426)
3100
3101 2006-01-31  Jackson Harper  <jackson@ximian.com>
3102
3103         * Control.cs: When a new Site is set on the component attempt to
3104         pull the AmbientProperties from it.
3105
3106 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3107
3108         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3109           in the background of the owning form. Fixes #77332
3110
3111 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3112
3113         * MimeIcon.cs: Fix for #77409
3114
3115 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3116
3117         * XplatUIX11GTK.cs: Initial import
3118
3119 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3120
3121         * FixedSizeTextBox: fixes class signature
3122
3123 2006-01-30  Jackson Harper  <jackson@ximian.com>
3124
3125         * FixedSizeTextBox.cs: New internal class that represents a
3126         textBox that will not be scaled.
3127         * TreeView.cs:
3128         * ComboBox.cs:
3129         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3130         standard TextBox.
3131                 
3132 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3133
3134         * XplatUIX11.cs: Retrieve default screen number instead of
3135           assuming 0. Attempted fix for #77318
3136
3137 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3138
3139         * XplatUIWin32.cs: 
3140           - GetWindowPos: When a window is parented by FosterParent, use 
3141             the desktop instead of FosterParent as the base to get coordinates
3142           - CreateWindow: Don't make FosterParent the parent window for Popups
3143             if we don't want a taskbar entry, Popups automatically don't get one
3144         * Hwnd.cs: Need to call remove to actually remove the key from the
3145           hash table
3146
3147 2006-01-30  Mike Kestner  <mkestner@novell.com>
3148
3149         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3150
3151 2006-01-30  Jackson Harper  <jackson@ximian.com>
3152
3153         * TreeView.cs:
3154         * TreeNode.cs: Raise events no matter how the treenode is
3155         checked. Patch by Don Edvalson.
3156
3157 2006-01-30  Jackson Harper  <jackson@ximian.com>
3158
3159         * TreeNode.cs: Signature fix.
3160
3161 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3162
3163         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3164
3165 2006-01-20  Mike Kestner  <mkestner@novell.com>
3166
3167         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3168         event forwarding when menus are active.
3169         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3170         Most of the patch is pdb's with a little rework.
3171
3172 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3173
3174         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3175           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3176           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3177         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3178         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3179           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3180           the PaintWindowDecorations method
3181         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3182         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3183         * MenuAPI.cs: Made tracker window invisible
3184         * XplatUIWin32.cs:
3185           - Removed GetMenuDC and ReleaseMenuDC methods
3186           - Implemented the client=false path for PaintEventStart and
3187             PaintEventEnd
3188
3189 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3190
3191         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3192         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3193           styles
3194         * Form.cs: 
3195           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3196             the style
3197           - CreateParams: Reworked the styles to match MS look'n'feel,
3198             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3199             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3200
3201 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3202
3203         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3204           window is not mapped, since otherwise every form that's being 
3205           created is considered minimized, which is wrong.
3206         * Form.cs: Catching the exception and returning our internal value
3207           instead
3208
3209 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3210
3211         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3212           SetWindowMinMax() to have means to tell the driver about the minimum,
3213           maximum and maximized state window sizes. (Part of the fix for #76485)
3214         * Form.cs:
3215           - Implemented tracking of minimum and maximum window size, now calling
3216             new SetWindowMinMax() driver method to tell the driver (Part of the
3217             fix for #76485)
3218           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3219             (Completes fix for #76485)
3220           - Calling new SetWindowMinMax driver method when the handle for a 
3221             form is created, to make sure the driver knows about it even if
3222             the values have been set before the window was created
3223           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3224             to avoid messing up our anchoring calculations (partial fix
3225             for #77355)
3226         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3227         * XplatUIX11.cs:
3228           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3229           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3230             (and presumably other freedesktop.org compliant WMs). Left the
3231             assumption unmapped=minimized, needed for SetVisible to work.
3232           - Now setting the window state when creating windows
3233           - Fixed SetVisible to consider/set the window state when mapping
3234             a Form. We cannot set the state before it's mapped, and we cannot
3235             use Form.WindowState once it's mapped (since it would ask the
3236             driver and get 'normal'. Therefore, we grab the state before
3237             mapping, map, and then set state.
3238           - Implmemented SetWindowMinMax method; Metacity does not seem to
3239             honor the ZoomHints, though.
3240         * XplatUIWin32.cs:
3241           - Removed MINMAXINFO (moved to XplatUIStructs)
3242           - Added SetWindowMinMax stub (on Win32 the only way to set that
3243             information is in response to the WM_GETMINMAXINFO message, which
3244             is handled in Form.cs)
3245           - Added logic to SetVisible to set the proper window state when a 
3246             form is made visible (fixes #75720)
3247
3248 2006-01-26  Jackson Harper  <jackson@ximian.com>
3249
3250         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3251         same way we handle them with Invoke.
3252
3253 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3254
3255         * Form.cs:
3256           - Added tracking of window state so CreateParams can return
3257             the appropriate style
3258           - Moved setting of WS_CAPTION style in CreateParams to allow
3259             styles without caption
3260         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3261           control if the TextBox property is accessed. Fixes #77345
3262         * Control.cs:
3263           - get_Created: now uses is_disposed and is_created to determine
3264             return value (suggested by Jackson)
3265           - CreateHandle: No longer exits if the handle is being recreated
3266           - RecreateHandle: If the handle is not yet created call the 
3267             appropriate method to create either control or handle. If the
3268             control is already created CreateHandle will simply exit instead
3269             of just creating the handle
3270         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3271           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3272           is called.
3273         * XplatUIX11.cs: 
3274           - When DestroyWindow is called, instead of waiting for the 
3275             DestroyNotification from X11, we directly post it to the WndProc
3276             and immediately dispose the hwnd object.
3277             Same applies to DestroyChildWindows, and this obsoletes the
3278             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3279             child windows before our own, to avoid X11 errors.
3280           - Removed the direct sending of WM_PAINT on UpdateWindow
3281         * XplatUIWin32.cs:
3282           - Reworked DoEvents and GetMessage to allow access to internal queue
3283             even when trying non-blocking access to the queue.  Fixes #77335. 
3284             Based on a patch suggestion by Don Edvalson. The new private
3285             GetMessage can now also be used as a backend for a PeekMessage
3286             frontend version.
3287         * XplatUI.cs: Improved debug output for CreateWindow
3288
3289 2006-01-25  Jackson Harper  <jackson@ximian.com>
3290
3291         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3292
3293 2006-01-24  Jackson Harper  <jackson@ximian.com>
3294
3295         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3296         when we have a MaxDropItems lower then the selected index.
3297
3298 2006-01-24  Jackson Harper  <jackson@ximian.com>
3299
3300         * Control.cs: Don't allow selection of non visible controls, allow
3301         selection of controls without parents.
3302
3303 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3304
3305         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3306         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3307
3308 2006-01-23  Jackson Harper  <jackson@ximian.com>
3309
3310         * UpDownBase.cs: Make the textbox handle all the selection and
3311         tabbing. This fixes tabing to updown controls.
3312
3313 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3314
3315         * TextBoxBase.cs: fixes exception thown the object was null
3316
3317 2006-01-23  Jackson Harper  <jackson@ximian.com>
3318
3319         * ButtonBase.cs: Just use the base CreateParams. They set
3320         visibility and enabled correctly.
3321         * ComboBox.cs:
3322         * TrackBar.cs:
3323         * MonthCalendar.cs: Lets let the base set as much of the
3324         createparams as possible so we don't have duplicate code all over
3325         the place.
3326
3327 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3328
3329         * ThemeGtk.cs: Added TrackBar and some experimental code to
3330           get double buffering back
3331
3332 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3333
3334         * DataGrid.cs: Allows row number set internally higher than the last
3335         when creating a new row. Restores the editing functionality.
3336
3337 2006-01-20  Mike Kestner  <mkestner@novell.com>
3338
3339         * MimeIcon.cs: delay Image creation until the icons are accessed
3340         instead of creating 190 scaled images on GnomeHandler startup.
3341
3342 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3343
3344         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3345           first call base before processing the event. Fixes #77279
3346
3347 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3348
3349         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3350           that the stride for the GDI bitmap would match the stride of
3351           a DIB or a Cursor.
3352
3353 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3354
3355         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3356
3357 2006-01-19  Jackson Harper  <jackson@ximian.com>
3358
3359         * ComboBox.cs: Hookup the text controls keydown event so we get
3360         those when the text control has the focus.
3361
3362 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3363
3364         * Label.cs: Now using the base events instead of defining new ones;
3365           this allows us to just call the base properties without having to
3366           duplicate all base property logic 
3367
3368 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3369
3370         * Label.cs: A label by default is not a tabstop (Fixes one of our
3371           failing nunit tests)
3372
3373 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3374
3375         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3376         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3377
3378 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3379
3380         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3381           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3382           This fixes #77218
3383         * XplatUIWin32.cs: 
3384           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3385             constructor creates images that can't be saved. Part of the fix
3386             for #76103
3387           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3388           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3389             bug fix for handling window state in forms properly)
3390
3391 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3392
3393         * ThemeGtk.cs: Simplify ScrollBar drawing
3394
3395 2006-01-18  Jackson Harper  <jackson@ximian.com>
3396
3397         * Splitter.cs: Set the default dock style for the splitter control
3398         in the constructor.
3399
3400 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3401
3402         * ThemeGtk.cs: Corrected StateType and ShadowType for
3403           gtk_paint_box
3404
3405 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3406
3407         * Control.cs: Make use of Theme.DoubleBufferingSupported
3408         * ThemeGtk.cs:
3409           - Added drawing for flat style buttons
3410           - Added ScrollBar drawing
3411
3412 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3413
3414         * ThemeClearlooks.cs: Removed some unneeded code.
3415         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3416
3417 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3418
3419         * LinkLabel.cs: We need to update the hover drawing when
3420           leaving the control as well.
3421
3422 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3423
3424         * DataGrid.cs: Clicking on non empty areas in the columns
3425            area was giving an exception
3426
3427 2006-01-17  Jackson Harper  <jackson@ximian.com>
3428
3429         * ThemeWin32Classic.cs:
3430         * ListView.cs: Do not draw/clip the headers when the header style
3431         is None.
3432
3433 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3434
3435         * DataGrid.cs: Fixes 77260
3436         
3437 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3438
3439         * DataGrid.cs: Clicking on a column on a empty grid was giving
3440           an exception
3441
3442 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3443
3444         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3445           or any keypress will crash the grid.
3446
3447 2006-01-17  Mike Kestner  <mkestner@novell.com>
3448
3449         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3450         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3451         invisible/previously-visible items.
3452         [Fixes #76909]
3453
3454 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3455
3456         * ThemeClearlooks.cs:
3457         - Added CL_Draw_Button method; now other theme controls that are 
3458           not derived from button or do not have a button can draw buttons
3459           too
3460         - Updated ComboBox drawing
3461         - Beautified RadioButton drawing
3462         - Corrected drawing of bottom and left tabs
3463         - Beautified DateTimePicker and MonthCalendar
3464         - Added CPDrawButton and CPDrawRadioButton
3465
3466 2006-01-16  Jackson Harper  <jackson@ximian.com>
3467
3468         * ComboBox.cs: Set the initial value of the scrollbar to the
3469         current index. Reduce the numbers of refreshs and IndexOfs called.
3470
3471 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3472
3473         * FileDialog.cs: When the file listview is focused hitting the
3474           backspace key moves the fileview to the parent directory
3475
3476 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3477
3478         * Form.cs: 
3479           - Added RecreateHandle call when changing taskbar visibility to 
3480             trigger reparenting in Win32 driver (Fixes #75719)
3481           - If a window has minimize or maximize buttons, it cannot have
3482             a help button
3483         * XplatUIWin32.cs:
3484           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3485             the toplevel form with FosterParent (A toolwindow not on the
3486             taskbar) (Fixes #75719)
3487           - Made FosterParent a toolwindow
3488
3489 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3490
3491         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3492
3493 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3494
3495         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3496           is currently over that control, make sure that tooltip_window.Text
3497           gets updated
3498
3499 2006-01-13  Mike Kestner  <mkestner@novell.com>
3500
3501         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3502
3503 2006-01-13  Jackson Harper  <jackson@ximian.com>
3504
3505         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3506         value passed.  Also redraw the selected node when we recieve
3507         focus, so tabbing between trees works correctly.
3508
3509 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3510
3511         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3512           ~/.gconf/%gconf-tree.xml, so use
3513           .gconf/desktop/gnome/interface/%gconf.xml
3514
3515 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3516
3517         * TextControl.cs: Draw text in gray if control is disabled
3518
3519 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3520
3521         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3522           make sure it's always visible. Fixes #76680.
3523
3524 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3525
3526         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3527
3528 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3529
3530         * PageSetupDialog.cs: Added.
3531         * PrintDialog.cs: Attributes.
3532         * PrintPreviewControl.cs: Updates.
3533         * PrintPreviewDialog.cs: Updates.
3534         
3535 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3536
3537         * Control.cs: Undid my selection check fix, since it's not needed
3538         * TextBoxBase.cs:
3539           - Now considering the presence of hscroll/vscroll when sizing
3540             vscroll/hscroll respectively. Fixed bug #77077
3541           - Added Left/Up/Down/Right to IsInputKey list to prevent
3542             ContainerControl from stealing them. This fixes what I broke
3543             with my last checkin.
3544
3545 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3546
3547         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3548           I finally understand how the property can be set without a setter :-)
3549
3550 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3551
3552         * Application.cs:
3553           - Switched RunLoop to use static Message.Create to create a 
3554             Message object
3555           - Added PreProcessMessage call in runloop for keyboard events; this
3556             is part of the fix for #77219, I overlooked this originally in the
3557             MSDN doc for PreProcessMessage
3558         * Control.cs:
3559           - Removed call to PreProcessMessage from handling of keyboard 
3560             messages; it's supposed to be done in the message pump
3561           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3562             per MSDN documentation.
3563           - IsInputChar: All chars are input chars by default; removed the 
3564             parent calling chain, MS does not document that
3565           - PreProcessMessage: If IsInputChar is true, we want to return false
3566             to allow dispatching of the message
3567           - When selecting the next control, now also check that we're not
3568             selecting ourselves again and therefore return a false positive.
3569         * TextBoxBase.cs:
3570           - Tried to match return values for IsInputKey and ProcessDialogKey
3571             to what MS returns; moved processing of our special keys outside
3572             ProcessDialogKey since MS does not seem to return true on those.
3573           - Moved code that previously was in ProcessDialogKey into new private
3574             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3575           - Reworked handling of WM_CHAR to not have to duplicate code from
3576             Control.cs anymore, instead we simply call down to base.
3577            
3578 2006-01-12  Jackson Harper  <jackson@ximian.com>
3579
3580         * ComboBox.cs: We always need to refresh the text area when
3581         EndUpdate is called. Fixes the combobox in the file dialog.
3582         * Control.cs: Don't create the creator_thread until the controls
3583         handle is created.  Also in InvokeRequired we check if the
3584         creator_thread is null. This gives the effect of InvokeRequired
3585         returning true if the controls handle is not created yet, and
3586         matches MS.
3587
3588 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3589
3590         * XplatUI.cs:
3591           - Added StartLoop() driver method. This is used to allow drivers to
3592             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3593             loop for a particular thread
3594           - Added EndLoop() driver method. This is called once the message
3595             pump for the thread is shut down
3596           - Added SupportsTransparency method to allow the driver to indicate
3597             opacity support for windows
3598         * Form.cs:
3599           - Removed TODO attribute, completed AllowTransparency property
3600           - Added documented logic to Opacity
3601         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3602           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3603           versions of CompatibleTextRendering
3604         * X11Structs.cs: Added opacity atom to our atom enumeration
3605         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3606           of a form might be set before it's reparented by the WM, and we need
3607           the opacity value without calling up to Form)
3608         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3609           SupportsTransparency() driver methods
3610         * Application.cs: Now calling StartLoop and EndLoop driver methods
3611         * XplatUIX11.cs:
3612           - Added opacity atom registration
3613           - Added StartLoop()/EndLoop() methods. They're empty right now but
3614             will need to get implemented when we switch to a per-thread queue
3615           - Implemented SupportsTransparency() method
3616           - Implemented SetWindowTransparency() method
3617           - Added support for setting the opacity value when a window is
3618             reparented (since the opacity needs to be set on the WM frame)
3619         * XplatUIOSX.cs, XplatUIWin32.cs:
3620           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3621
3622 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3623
3624         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3625
3626 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3627
3628         * FileDialog.cs: Added ToolTip for MWFFileView
3629         * MimeIcon.cs: Rewrote GnomeHandler.
3630           - Get currently used gnome icon theme from
3631             ($HOME)/.gconf/%gconf-tree.xml
3632           - Make use of inherited icon themes
3633           - Support SVG icon themes like Tango via librsvg
3634
3635 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3636
3637         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3638         builds. 
3639         
3640         * Application.cs: Move the use_compatible_text_rendering outside
3641         the NET_2_0 define.  If we ever need to use the
3642         use_compatible_text_rendering on the individual controls they will
3643         access the variable from the common shared code paths.
3644
3645 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3646
3647         * XplatUI.cs:
3648           - Added more granular debug options
3649           - Added method to print both window text and id
3650           - Switched debug output to use new Window() debug method
3651           - Added IsEnabled() driver method
3652           - Added EnableWindow() driver method
3653         * Form.cs:
3654           - Removed end_modal; no longer needed, new loop handles termination
3655             via 'closing' variable
3656           - If form is modal, setting DialogResult will now initiate loop
3657             termination via 'closing' variable
3658           - Added support for is_enabled/WS_DISABLED to CreateParams
3659           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3660             does all the work
3661           - Removed code that's now in RunLoop from ShowDialog()
3662           - Added various documented sanity checks to ShowDialog()
3663           - Added handling of WM_DESTROY message; we set 'closing' on getting
3664             the message to indicate the message pump to terminate
3665           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3666             send by the Application.ExitThread method. (We send the message
3667             to destroy the window after all other events have been
3668             processed through the queue, instead of destroying the handle 
3669             directly)
3670           - Moved code from Close() method to WM_CLOSE handler; added logic
3671             to only send close-related events if the form is not displayed
3672             modal
3673         * Splitter.cs (..ctor): Fixed typo in resource name
3674         * Control.cs:
3675           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3676             brush now
3677           - set_Cursor: Now only setting calling into XplatUI if the handle for
3678             the control is already created; this avoids implict handle creation
3679             or crashes if it's not created
3680           - set_Enabled: Now setting the enabled state via the new driver method
3681             instead of just tracking it
3682           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3683           - CreateControl: Reordered event firing and method calls to more
3684             closely fire events in the order MS does. Now setting the
3685             enabled state in the driver when creating the control.
3686           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3687             match MS order
3688         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3689           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3690         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3691         * Hwnd.cs:
3692           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3693           - Added EnabledHwnd property to easily allow a driver to find the
3694             handle of the first enabled window in the parent chain (this is
3695             used by drivers to pass up input events of disabled windows)
3696         * XplatUIDriver.cs: Added IsEnabled() method
3697         * Application.cs:
3698           - Removed crude and obsolete exiting tracking variable
3699           - Removed internal ModalRun(); replaced by RunLoop()
3700           - Implemented private CloseForms() method to allow closing all 
3701             windows owned by a particular (or all) threads
3702           - Exit() now properly closes all windows without forcing the message
3703             pump to quit
3704           - Removed obsolete InternalExit() method
3705           - Changed Run() methods to use new RunLoop() message pump
3706           - Implemented new RunLoop() method for both modal and non-modal forms
3707         * CommonDialog.cs:
3708           - get_CreateParams: Added setting of WS_DISABLED
3709           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3710             invoked via Form.ShowDialog()
3711         * NativeWindow.cs: We don't remove the window from the collection when
3712           the handle is destroyed; there might still be messages for it in the
3713           queue (mainly the resulting WM_DESTROY); instead it will be removed
3714           when Control calls InvalidateHandle in the WM_DESTROY handler
3715         * XplatUIX11.cs:
3716           - CreateWindow: Added logic to handle the WS_DISABLED window style
3717           - EnableWindow: Implemented based on Hwnd.Enabled
3718           - GetMessage: Reset PostQuitState so the method can be called again
3719           - Implemented support for disabled windows (passing messages to the
3720             first enabled parent) in handling all input messages
3721           - Added optimizations for handling Expose events
3722           - Implemeted new driver method IsEnabled()
3723           - Now always resetting paint pending tracking vars when we start paint
3724           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3725         * XplatUIOSX.cs: Added IsEnabled method stub
3726         * XplatUIWin32.cs: Implemented new IsEnabled() method
3727
3728 2006-01-11  Jackson Harper  <jackson@ximian.com>
3729
3730         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3731         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3732         variables a little.
3733         * ColorDialog.cs: Clear out the old form before adding the new
3734         panel.  
3735
3736 2006-01-11  Jackson Harper  <jackson@ximian.com>
3737
3738         * X11Dnd.cs: Make sure to add all the text formats when adding
3739         strings to the data object.
3740         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3741         do some redrawing too.  Also change the UpdateNode to an
3742         UpdateBelow so the newly added node gets painted.
3743         
3744 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3745
3746         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3747         LinkLabel.cs, PropertyGrid.cs: Implement the
3748         UseCompatibleTextRendering property for 2.x
3749
3750         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3751
3752 2006-01-11  Jackson Harper  <jackson@ximian.com>
3753
3754         * TreeView.cs: Use the property for setting the selected node so
3755         the correct events get raised.
3756         * TreeNode.cs: Update the tree when the fore/back colours of a
3757         node are set.
3758
3759 2006-01-10  Jackson Harper  <jackson@ximian.com>
3760
3761         * TreeView.cs: Allow setting SelectedNode to null.
3762
3763 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3764
3765         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3766
3767 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3768
3769         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3770
3771 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3772
3773         * PrintDialog.cs: Added attributes and set default property values.
3774
3775 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3776
3777         * PrintControllerWithStatusDialog.cs: 
3778         Added PrintControllerWithStatusDialog.
3779
3780 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3781
3782         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3783         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3784
3785 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3786
3787         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3788
3789 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3790
3791         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3792         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3793
3794 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3795
3796         * MimeIcon.cs: Added internal class SVGUtil.
3797
3798 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3799
3800         * FileDialog.cs: Don't crash if there are two files with the
3801           same name but different locations.
3802
3803 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3804
3805         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3806         dates across multiple month grids. Used to not highlight entire 
3807         month, but does now.
3808         
3809 2006-01-06  Jackson Harper  <jackson@ximian.com>
3810
3811         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3812         message loop. Change timer intervals to numbers that seem more
3813         natural.
3814
3815 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3816
3817         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3818           object for location info since screen object is now implemented.
3819
3820 2006-01-05  Jackson Harper  <jackson@ximian.com>
3821
3822         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3823         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3824         AsyncMethodResult, this is because we ALWAYS want the
3825         ManualResetEvent to get set.
3826         * Control.cs: When disposing use an async invoke to call shutdown
3827         code, so that thigns don't block on the finalizer thread.  Also
3828         check if we even have a message loop before trying to send
3829         messages, if we don't then don't bother sending messages.
3830         - No more weak references for async methods
3831         * XplatUIDriver.cs: No more weak references for async methods.
3832
3833 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3834
3835         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3836           returns two FontFamily with the same name
3837
3838 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3839
3840         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3841           drawing disabled text. Instead using the ColorGrayText color
3842
3843 2006-01-04  Jackson Harper  <jackson@ximian.com>
3844
3845         * TreeNode.cs: redraw the node when its image index is changed.
3846
3847 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3848
3849         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3850           time I checked there are no others like it.
3851
3852 2006-01-04  Jackson Harper  <jackson@ximian.com>
3853
3854         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3855         this gives the behavoir I was looking for.
3856         * Control.cs: Special case Invoking EventHandlers, this matches MS
3857         and fixes part of bug #76326.
3858
3859 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3860
3861         * ThemeClearlooks.cs, FileDialog.cs:
3862           - Reflect the latest Theme class changes
3863           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3864             with DateTime
3865             
3866 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3867
3868         * Theme.cs: Cache UI resource images and resize them if needed
3869
3870 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3871
3872         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3873           is called. This fixes the crash in Nexxia when setting the font
3874           attributes in the chat. [However, RTF needs a look-over to make sure
3875           that all SelectionXXX methods handle the special case that selection
3876           is empty and therefore the change must be applied to all text starting
3877           at the cursor/selection start]
3878
3879 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3880
3881         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3882           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3883         * X11Keyboard.cs: Switched to new way of calling PostMessage
3884
3885 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3886
3887         * Theme.cs: Added theme interface for images to allow the theme to
3888           control what images are used for things like FileDialog, MessageBox
3889           icons, etc.
3890         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3891
3892 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3893
3894         * FileDialog.cs:
3895           - Removed some dead code
3896           - Opening a recently used file does work now
3897           - Small UI enhancements
3898           - Refactoring
3899
3900 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3901
3902         * FileDialog.cs: Forgot too add __MonoCS__
3903
3904 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3905
3906         * FileDialog.cs: We are able to read recently used files now let's
3907           go on and write them.
3908
3909 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3910
3911         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3912           button
3913         * MimeIcon.cs: Do a check for the top level media type also
3914
3915 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3916
3917         * ThemeClearlooks.cs:
3918           - Added CPDrawStringDisabled
3919           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3920             some chars if the text doesn't fit into text_rect
3921           - DrawListViewItem: If View = View.LargeIcon center the image;
3922             rewrote the drawing of ListViewItem.Text if View = 
3923             View.LargeIcon
3924
3925 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3926
3927         * MimeIcon.cs: Use default KDE icon theme if there is no
3928           "48x48" directory for the current icon theme, fixes #77114
3929         * Mime.cs: Disable not working and actually not used code. 
3930         * ThemeWin32Classic.cs:
3931           - Replace "new SolidBrush" in GetControlBackBrush and
3932             GetControlForeBrush with ResPool.GetSolidBrush
3933           - Changed DrawListViewItem from private to protected virtual
3934         * FileDialog.cs:
3935           - Added form.MaximizeBox = true
3936           - Don't throw an exception if there is a broken symbolic link
3937
3938 2005-12-23  Jackson Harper  <jackson@ximian.com>
3939
3940         * TabControl.cs: Give the panels focus, keyboard navigation is
3941         fixed so this works correctly now.
3942         - We need these key events also.
3943         * ToolBar.cs: Remove some of the poor mans double buffering.
3944         
3945 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
3946
3947         * ComboBox.cs: The internal TextBox now returns the focus.
3948
3949 2005-12-23  Jackson Harper  <jackson@ximian.com>
3950
3951         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
3952
3953 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3954
3955         * Control.cs: Removed debug code
3956         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
3957           implicit children
3958
3959 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
3960
3961         * Control.cs: When creating the control, update the Z-order after
3962           all it's children are created, too. (Fixes nexxia not showing
3963           picturebox bug)
3964
3965 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
3966
3967         * Control.cs: Do not update the anchoring distances if layout is
3968           suspended, instead do it once layout is resumed
3969
3970 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
3971
3972         * Control.cs: 
3973           - After many hours of debugging, for both Jackson and
3974             myself, it turns out that it helps to set the parent of a control
3975             if you want to actually see it onscreen. In the spirit of that
3976             discovery, we're now setting the parent of the control and
3977             it's children when the control's handle is created. This fix
3978             will make Lutz Roeder's Reflector run happily. 
3979           - now just creating the handle instead of the whole control when
3980             getting a graphics context for the control.
3981
3982 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3983
3984         * ScrollableControl.cs: When calculating the canvas, don't consider
3985           the scrollbar widths. Instead, predict if horizontal scrollbar
3986           will affect canvas when deciding on vertical display and vice versa.
3987
3988 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
3989
3990         * RichTextBox.cs: Set default RTF font for documents that don't
3991           have a font table (Fixes #77076)
3992
3993 2005-12-22  Jackson Harper  <jackson@ximian.com>
3994
3995         * TextBoxBase.cs: It's difficult to do, but you can have an empty
3996         clipboard. This prevents a NullRef in that case.
3997         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
3998         clipboard. PRIMARY is for the currently selected text only. (We
3999         should implement PRIMARY at some point.
4000
4001 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4002
4003         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4004           a Unicode function with a structure that was defined in Ansi way.
4005           This fixes #76942.
4006
4007 2005-12-21  Jackson Harper  <jackson@ximian.com>
4008
4009         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4010         on. Because thats how it rolls. (and this avoids it using ambient
4011         colours).
4012         * ThemeWin32Classic.cs: Use the proper back color for filling.
4013         * Menu.cs: Use the system menu bar color for drawing menu
4014         bars. Using the window back color will bring ambient colours into
4015         the picture.
4016
4017 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4018
4019         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4020           Bitmaps were created and not disposed.
4021
4022 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4023
4024         * Control.cs (CreateControl): Don't do anything if the control is
4025           already created, otherwise we'd fire the OnCreated event more than
4026           once
4027
4028 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4029
4030         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4031           will always match. Instead return -1. Fixes #76464.
4032
4033 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4034
4035         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4036           neither the beginning nor the end of the line (Fixes bug #76479)
4037
4038 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4039
4040         * Control.cs:
4041           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4042             where handle is invalid
4043           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4044             instead of slower linear search
4045         * NativeWindow.cs: Don't remove the window from the hashtable until
4046           after the driver has destroyed it (since the driver might use
4047           Control.FromHandle to lookup the control object
4048         * Hwnd.cs: Added DestroyPending property to track if a window is 
4049           already destroyed as far as the driver is concerned and only hasn't
4050           yet notified the control
4051         * XplatUIX11.cs:
4052           - Activate(): Check if the window is still valid before using the 
4053             handle
4054           - Implemented DestroyChildWindow() method to mark child windows as
4055             destroyed when a window is destroyed. This prevents situations 
4056             where we might call an X method based on queued events for a
4057             window that already has been destroyed but we haven't yet pulled
4058             the destroy method from the queue.
4059           - Added a call to the new DestroyChildWindow() method to the drivers
4060             DestroyWindow code. Also now marking the destroyed window itself
4061             as pending
4062
4063 2005-12-20  Jackson Harper  <jackson@ximian.com>
4064
4065         * StatusBar.cs:
4066         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4067         anymore. Just do them when needed, also track the rects of panels
4068         so that we can optimize refreshing more in the future.
4069
4070 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4071
4072         * ColorDialog.cs: Fixed focus drawing in small color controls
4073
4074 2005-12-19  Jackson Harper  <jackson@ximian.com>
4075
4076         * InternalWindowManager.cs:
4077         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4078         moving windows works properly.
4079
4080 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4081
4082         * Control.cs: 
4083           - Removed call to InitLayout() from SetBoundsCore(); doc says
4084             it's only called when a control is added to a container
4085           - Split InitLayout logic, moved to separate UpdateDistances() method
4086             since we need to perform those calculations more often than just
4087             when adding the control to a container. (Needed to fix #77022)
4088           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4089           - Reduced the OnBindingContextChanged events count, don't send them
4090             unless the control is created, we still aren't totally matching
4091             MS, but I can't quite figure out some of their rules
4092
4093 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4094
4095         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4096           stripes
4097
4098 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4099
4100         * ThemeClearlooks.cs:
4101           - Updated ProgressBar drawing
4102           - Corrected drawing of ScrollBars and scroll buttons
4103           - Some temporary fixes for minor pixel artefacts
4104
4105 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4106
4107         * Control.cs:
4108           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4109             cause events to be sent in the same order as MS does.
4110           - Added ChangeParent() method to trigger various OnXXXChanged events
4111             that need to be fired when a parent changes (This is a reworking
4112             of the patch from r54254, with the X11 errors fixed)
4113           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4114             since on MS we get OnLayoutChanged events when calling Clear()
4115           - Changed Enabled property to consider parent state as well, if a
4116             parent is not enabled, the control will not be either
4117           - Changed Parent property to simply call Controls.Add() since that
4118             now does all the work required, this way we avoid code duplication
4119           - Threw in a few OnBindingsContextChanged calls to try and match
4120             when MS sends them. We seem to send a few too many, though.
4121           - Added call to CreateControl when adding the control to a parent.
4122             We were never calling CreateControl. Still needs some work, in
4123             some places we treat HandleCreated and ControlCreated as equal, 
4124             which is wrong
4125           - Removed obsolete commented out code from UpdateZOrder()
4126
4127 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4128
4129         * ThemeClearlooks.cs: Updated TrackBar drawing.
4130
4131 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4132
4133         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4134
4135 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4136
4137         * FileDialog.cs: Add the Help button and the open readonly
4138           checkbox only if needed
4139
4140 2005-12-16  Jackson Harper  <jackson@ximian.com>
4141
4142         * Control.cs: Make sure we have an active menu before trying to
4143         process commands on it. Prevents menu-less forms from crashing
4144         when Alt is pressed.
4145         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4146         Dieter Bremes.
4147         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4148         2.0 build.
4149
4150 2005-12-16  Jackson Harper  <jackson@ximian.com>
4151
4152         * InternalWindowManager.cs: Don't translate tool windows screen
4153         coordinates. This fixes windows 'bouncing' around when being moved.
4154
4155 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4156
4157         * TextBoxBase.cs:
4158           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4159             not quite MS compatible, MS uses that number only for single line
4160             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4161             the limit at 2GB)
4162           - Now enforcing the MaxLength limit when entering characters
4163           - Added argument to internal Paste() method to track if it's called
4164             from programatically or via keyboard, since keyboard driven pastes
4165             need to enforce max-length
4166           - Added logic to Paste to only paste as many chars as MaxLength 
4167             allows
4168         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4169         * TextControl.cs:
4170           - Added Length property to return number of characters in document
4171           - Added private CharCount property which only tracks actual chars
4172             in the document (no linefeeds) and fires event when CharCount
4173             changes
4174           - Added tracking of character count to all methods that alter it
4175           - Added LengthChanged event to allow applications to subscribe
4176             to any changes to the document
4177
4178 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4179
4180         * TextBox.cs: 
4181           - Removed local password_char field (moved to TextBoxBase)
4182           - Now setting the document's password var when password is
4183             set
4184         * TextBoxBase.cs:
4185           - Added password_char field (needed here so MultiLine can
4186             access it)
4187           - Added logic to MultiLine property setter to set the document's
4188             variable when password display is allowed
4189           - Removed debug code and made some debug code conditional
4190         * TextControl.cs:
4191           - Added RecalculatePasswordLine() method to handle special password
4192             char only lines
4193           - Added PasswordChar property, also added related tracking vars
4194           - Draw() method now uses local text var for grabbing text to draw,
4195             this var is set to line.text unless we're doing password display,
4196             then it is set to the pre-generated all-password-chars line
4197           - Added calling RecalculatePasswordLine() method for password lines
4198
4199 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4200
4201         * Hwnd.cs: 
4202           - Added Reparented property to allow tracking of Window Manager
4203             reparenting actions (which affect X/Y calculations of toplevel 
4204             windows)
4205           - Made ToString() print window handles in hex
4206         * XplatUIX11.cs:
4207           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4208             determine if X/Y needs offsetting
4209           - AddConfigureNotify(): Fixed offset calculations
4210           - Now adds ReparentNotify messages into the queue
4211           - Now processes ReparentNotify messages and causes a 
4212             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4213             is reparented (as most likely it's X/Y coordinates are changed
4214             due to that)
4215
4216 2005-12-14  Jackson Harper  <jackson@ximian.com>
4217
4218         * XplatUIX11.cs: Tool windows still need to respek focus.
4219
4220 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4221
4222         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4223           have a working release
4224
4225 2005-12-13  Jackson Harper  <jackson@ximian.com>
4226
4227         * Form.cs: Update styles after setting the border style regardless
4228         of whether or not the window is using a window manager.
4229
4230 2005-12-13  Jackson Harper  <jackson@ximian.com>
4231
4232         * Form.cs: We now hook into an internal window manager instead of just an
4233         MDI subsystem, this is so we can have properly behaving tool windows.
4234         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4235         * InternalWindowManager.cs: New internal class that acts as a
4236         window manager for tool windows and as a base for mdi windows.
4237         * MdiWindowManager.cs: New class that acts as a window manager for
4238         mdi windows.
4239
4240 2005-12-12  Jackson Harper  <jackson@ximian.com>
4241
4242         * Control.cs: Updates so we match behavoir for for implicit
4243         controls. Fixes explosions in MDI.
4244
4245 2005-12-12  Jackson Harper  <jackson@ximian.com>
4246
4247         * Control.cs: Implement Invalidate (Region).
4248
4249 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4250
4251         * Control.cs: 
4252           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4253             the same events as MS does. MS fires events for each property 
4254             except, for unknown reasons, Cursor, when the control is reparented. 
4255             I can't seem to totally match add/remove since MS also fires some 
4256             VisibleChanged events, which makes no sense. Consolidated the
4257             parenting code into a separate method so it can be called from
4258             both Add and Remove. set_Parent no longer needs any special logic
4259             as it calls the parent's add method which implicitly fires
4260             all events
4261           - Removed some obsolete code and debug output
4262           - Enabled state is inherited from parents, if this is enabled
4263
4264 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4265
4266         * Form.cs: Removed commented out code
4267
4268 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4269
4270         * Control.cs:
4271           - Added internal version of Invoke, with additional argument 
4272             indicating if we're calling it from a Dispose() handler. That
4273             way we can avoid BeginInvoke throwing an exception if we're
4274             calling for an already destroyed window.
4275           - Added a dispose argument to BeginInvokeInternal, and made the
4276             check if a valid window handle chain exists conditional on
4277             it not being a dispose call
4278           - Removed code in DestroyHandle to destroy our children. Since we
4279             now handle the WM_DESTROY message we will catch all our children
4280             being destroyed.
4281           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4282         * Form.cs:
4283           - Added a field to track the application context of the form.
4284           - No need to set closing variable as response to WM_CLOSE, instead
4285             we destroy the window. We also call PostQuitMessage if the form
4286             has an application context (which makes it the main app form,
4287             which, when closed terminates the app)
4288         * XplatUI.cs:
4289           - Dropped Exit() method, it's naming was confusing
4290           - Added PostQuitMessage() which causes GetMessage to return false
4291             once the message queue is empty
4292         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4293           PostQuitMessage()
4294         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4295           no longer a valid XplatUI method, but left it in since it's used
4296           internally. Added empty PostQuitMessage() method.
4297         * MenuAPI.cs: Replaced call to Exit() with call to
4298           PostQuitMessage, even though this is probably no longer needed.
4299         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4300         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4301         * Application.cs:
4302           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4303           - Removed old debug code that would call XplatUI for exception
4304             display, enabled standard exception handling (Still not enabled
4305             though, until NativeWindow's ExternalExceptionHandler define
4306             is removed
4307         * NativeWindow.cs:
4308           - Added internal method to allow control to update NativeWindow
4309             after a window has been destroyed
4310           - Added handling of already destroyed windows when calling i
4311             DestroyWindow
4312           - Added removal of handle from list on ReleaseHandle
4313         * XplatUIX11.cs:
4314           - Dropped GetMessageResult var and related code
4315           - Added PostQuitState to field to track if PostQuitMessage has been
4316             called
4317           - Dropped Exit() method
4318           - Added PostQuitMessage() method
4319           - GetMessage now will return false if PostQuitState is set and no
4320             more messages are in the queue.
4321           - Expose handler will no longer generate WM_PAINT messages if we are
4322             in PostQuitState since it's very likely any windows have already
4323             been destroyed, and since Hwnd won't get updated until we have
4324             processed the DestroyNotify we'd be causing X errors.
4325         
4326 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4327
4328         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4329           Thanks to Mike for pointing out the err of my ways.
4330
4331 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4332
4333         * Control.cs(PreProcessMessage): Moved menu handling back, but
4334           after all other key handling, to match MS (who handles Menu in
4335           DefWndProc)
4336         * Menu.cs (WndProc): Removed my brainfart
4337
4338 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4339
4340         * Control.cs(PreProcessMessage): Removed special menu handling 
4341         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4342
4343 2005-12-07  Mike Kestner  <mkestner@novell.com>
4344
4345         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4346         state according in tracker.
4347         * Menu.cs : promote tracker field to base class and provide a tracker
4348         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4349         has a tracker. Unparent items that are removed from the collection.
4350         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4351         * Theme*.cs: add always_show_hotkeys field to support configurability
4352         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4353         pressed.
4354
4355 2005-12-07  Jackson Harper  <jackson@ximian.com>
4356
4357         * MdiChildContext.cs: Use Control.ResetCursor.
4358         * Control.cs: ResetCursor needs to set the property so that the
4359         correct XplatUI call gets made.
4360
4361 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4362
4363         * Control.cs: More fixes to make our key events match MS. We
4364           were not setting the modifier state on KeyData, and we were
4365           not generating any events when Alt was pressed with a key
4366           since handling of WM_SYSxxx was missing for the OnKey methods.
4367
4368 2005-12-07  Jackson Harper  <jackson@ximian.com>
4369
4370         * MdiChildContext.cs: reenable the sizing code.
4371         - When the mouse leaves a window reset its cursor.
4372
4373 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4374
4375         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4376
4377 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4378
4379         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4380           widths of Fixed3D borders
4381
4382 2005-12-07  Jackson Harper  <jackson@ximian.com>
4383
4384         * MdiClient.cs: Fix warnings. Earn Mike's love.
4385
4386 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4387
4388         * ThemeClearlooks.cs:
4389           - Adjusted mouse over button color
4390           - Added first parts of CheckBox drawing
4391           - Added correct color for selected text background
4392           - Fixed ComboBox drawing
4393           - Added CPDrawBorder3D and CPDrawBorder
4394
4395 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4396
4397         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4398
4399 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4400
4401         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4402           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4403           alert users via sound. We could add an enum arg with different
4404           types of alerts in the future
4405
4406 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4407
4408         * Control.cs: Fix behaviour problems pointed out by Mike
4409
4410 2005-12-05  Mike Kestner  <mkestner@novell.com>
4411
4412         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4413         prop setters.  Calls parent.Refresh for now, but could be maybe be
4414         optimized with an internal method on StatusBar at some point.
4415         [Fixes #76513]
4416
4417 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4418
4419         * RichTextBox.cs: Implemented get_SelectionColor
4420
4421 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4422
4423         * ThemeClearlooks.cs:
4424           - Removed dead code
4425           - Draw black button border only if button is Form.AcceptButton
4426           - Draw correct button color for pressed RadioButton if the mouse 
4427             has entered the button
4428           - Updated ProgressBar drawing!
4429           - Updated CPDrawSizeGrip drawing
4430           - Updated StatusBarPanel drawing
4431
4432 2005-12-05  Mike Kestner  <mkestner@novell.com>
4433
4434         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4435         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4436
4437 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4438
4439         * ThemeClearlooks.cs: Initial check-in, activate with
4440           export MONO_THEME=clearlooks
4441         * ThemeEngine.cs: Added ThemeClearlooks
4442
4443 2005-12-03  Mike Kestner  <mkestner@novell.com>
4444
4445         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4446         [Fixes #76897]
4447
4448 2005-12-02  Jackson Harper  <jackson@ximian.com>
4449
4450         * Form.cs: If the child form has no menu the default main menu is
4451         used as the active menu.
4452
4453 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4454
4455         * ListBox.cs: Check if any items exist before trying to resolve 
4456           coordinates into items
4457
4458 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4459
4460         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4461           as the second color for the background hatch
4462
4463 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4464
4465         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4466         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4467           sure that what we pass to FormatText is always 1-based. Fixes #76885
4468
4469 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4470
4471         * NumericUpDown.cs (EndInit): When we are done initializing,
4472         reflect any updates on the UI.
4473
4474 2005-12-02  Jackson Harper  <jackson@ximian.com>
4475
4476         * ImplicitHScrollBar.cs:
4477         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4478         their container controls.
4479         * TreeView.cs: Use the new implicit scrollbars.
4480
4481 2005-12-02  Jackson Harper  <jackson@ximian.com>
4482
4483         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4484         can play with it.
4485         * TreeNodeCollection.cs: If we remove the topnode we need to
4486         update topnode to the next node in line.
4487         - When clearing nodes go through the same process as removing
4488         them, so they get depareneted and checked if they are top node.
4489
4490 2005-12-01  Jackson Harper  <jackson@ximian.com>
4491
4492         * TreeView.cs: When imagelists are used the image area is
4493         selectable as well as the text.
4494         - If there are no selected nodes select the first one.
4495         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4496         so don't do it more then we need to.
4497
4498 2005-12-01  Jackson Harper  <jackson@ximian.com>
4499
4500         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4501         that arrows can be scaled.
4502
4503 2005-12-01  Jackson Harper  <jackson@ximian.com>
4504
4505         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4506         fail. Patch by Dieter Bremes
4507
4508 2005-11-30  Jackson Harper  <jackson@ximian.com>
4509
4510         * Form.cs: Property is 2.0 only
4511         * PrintDialog.cs: Signature fix.
4512
4513 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4514
4515         * TextControl.cs: 
4516           - No longer artificially moves text 2 pixels down (now that we have
4517             borders this is no longer needed)
4518           - Added calcs for left, hanging and right indent
4519
4520 2005-11-23  Mike Kestner  <mkestner@novell.com>
4521
4522         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4523
4524 2005-11-30  Jackson Harper  <jackson@ximian.com>
4525
4526         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4527         get cloned as part of CloneMenu ().
4528         * Menu.cs: Make sure the parent of the items get set correctly
4529         when they are added.  And the owners are notified of the changes.
4530         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4531         we can change the menu being displayed/handled by the form without
4532         changing the menu assosciated with the form.
4533         - Don't let Mdi children draw/handle menus.
4534         
4535 2005-11-30  Jackson Harper  <jackson@ximian.com>
4536
4537         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4538         a MenuChanged event. Just to make the API a little more
4539         consistent.
4540         * MainMenu.cs:
4541         * MenuItem.cs: Use the new OnMenuChanged
4542         * MdiChildContext.cs: Handle menu merging.
4543         * Form.cs: Implement MergedMenu.
4544         
4545 2005-11-30  Jackson Harper  <jackson@ximian.com>
4546
4547         * Menu.cs: We were misusing Add. Add goes behind the specified
4548         index according to the docs, and does not replace the specified
4549         index. So I added an Insert method.
4550
4551 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4552
4553         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4554           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4555           is for Jackson
4556         * RichTextBox.cs: Added calls to base for DnD events
4557
4558 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4559
4560         * TextControl.cs:
4561           - Fixed drag-selection related crash; style fixes
4562           - Implemented undo class
4563             o Implemented method to capture document state for specified
4564               range in document tree
4565             o Implemented method to restore captured document state
4566             o Implemented cursor tracking
4567             o Implemented basic undo stack
4568           - Added undo cursor tracking to methods altering cursor location
4569           - Added undo tracking to selection deletion (still missing
4570             other text-altering hookups)
4571         * RichTextBox.cs:
4572           - Added SelectionLength property
4573           - Implemented CanPaste()
4574           - Implemented Paste()
4575           - Added missing protected methods
4576           - Fixed RTF->Document conversion; now uses font index 0 and color 
4577             index 0 as the default font for the parsed text
4578           - Fixed RTF<->Document font size translation
4579           - Fixed RTF generation, now properly handles cross-tag boundaries
4580             for single line selection
4581           - No longer always appends blank line to generated RTF
4582           - Removed TODOs
4583           - Added missing attributes
4584           - Hooked up undo-related methods
4585         * TextBoxBase.cs:
4586           - Implemented Copy()
4587           - Implemented Paste()
4588           - Implemented Cut()
4589           - Fixed caret mis-behaviour on backspace across line-boundaries
4590
4591 2005-11-29  Jackson Harper  <jackson@ximian.com>
4592
4593         * MdiClient.cs: Add a method for activating mdi children. Very
4594         basic right now. I imagine someday it might need more girth.
4595         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4596         children windows names are added to the menu item.
4597         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4598         mdilist. This happens regardless of whether or not there are any
4599         mdi windows to see in the list, and according to my tests happens
4600         before the items are even added. Also happens if there isn't even
4601         an mdi client to get windows from.
4602
4603 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4604
4605         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4606         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4607
4608 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4609
4610         * DataGridTableStyle.cs:
4611           - Create always the styles for the missing columns even if they are
4612             provided by the user (not default table style)
4613         * DataGrid.cs:
4614           - Fixes bug 76770
4615           - Fixes SetDataBinding (always re-attach source)
4616           - Fixes SetNewDataSource (only clear styles if they are not for 
4617             this source)
4618          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4619             and remove properly
4620
4621 2005-11-29  Jackson Harper  <jackson@ximian.com>
4622
4623         * FileDialog.cs: Implement missing bits, remove some dead
4624         code.
4625         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4626         creation of the panel so that the options set on the dialog are
4627         seen when the panel is created.
4628         * TreeView.cs: raise a click when items are clicked.
4629         
4630 2005-11-29  Jackson Harper  <jackson@ximian.com>
4631
4632         * MdiClient.cs: Pass some signature methods through to base.
4633
4634 2005-11-28  Jackson Harper  <jackson@ximian.com>
4635
4636         * ListView.cs: Raise the click event when items are clicked.
4637
4638 2005-11-28  Jackson Harper  <jackson@ximian.com>
4639
4640         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4641         a nullref.
4642
4643 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4644
4645         * ThemeNice.cs: - Removed 1 pixel bitmaps
4646           - Use SmoothingMode.AntiAlias where it makes sense
4647             (ScrollButton arrow for example)
4648           - Enhanced Button focus drawing
4649           - Fixed ComboBox drawing (no artefacts anymore, focus
4650             rectangle is back again, reduced size of ComboButton, etc.)
4651           - Fixed RadioButton focus drawing for Appearence.Button
4652           - Slight ScrollButton redesign
4653           - Some LinearGradientBrush size fixes
4654           - GroupBoxes have now rounded edges
4655           - Fixed StatusBar drawing
4656
4657 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4658
4659         * ThemeNice.cs: - Remove dead code
4660           - use correct background colors for menus, etc.
4661           - Fake pixel drawing with 1 pixel bitmaps
4662
4663 2005-11-24  Jackson Harper  <jackson@ximian.com>
4664
4665         * MdiClient.cs: Size the scrollbars when resizing the window.
4666         - Resize the maximized windows when the client is resized
4667         * Form.cs: Make the child context available
4668         
4669 2005-11-23  Jackson Harper  <jackson@ximian.com>
4670
4671         * MdiChildContext.cs: Don't size windows if they are maximized.
4672
4673 2005-11-23  Mike Kestner  <mkestner@novell.com>
4674
4675         * ContextMenu.cs: use MenuTracker.
4676         * Control.cs: remove menu handle usage.
4677         * Form.cs: remove menu handle usage.
4678         * Hwnd.cs: remove menu handle usage.
4679         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4680         motion and clicks to the new Tracker handlers.
4681         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4682         and handle usage.
4683         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4684         Killed the MENU and MENUITEM data types and associated collections
4685         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4686         MenuTracker class that exposes the leftovers from the old MenuAPI
4687         static methods. Restructured Capture handling so that only one grab is
4688         done for the entire menu hierarchy instead of handing off grabs to
4689         submenus. Tracker now has an invisible control to Capture when active.
4690         * MenuItem.cs: add sizing accessors, kill Create
4691         and handle usage.
4692         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4693         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4694         MENU(ITEM). remove menu handle usage, use Menu directly.
4695         * XplatUIDriver.cs: remove menu handle usage.
4696         * XplatUIOSX.cs: remove menu handle usage.
4697         * XplatUIWin32.cs: remove menu handle usage.
4698         * XplatUIX11.cs: remove menu handle usage.
4699
4700 2005-11-22  Jackson Harper  <jackson@ximian.com>
4701
4702         * Hwnd.cs: Don't compute the menu size for
4703         DefaultClientRectangle.
4704         - Reenable menu sizes being computed for GetClienRectangle.
4705         * Form.cs: Remove comment of trechery
4706         
4707 2005-11-22  Jackson Harper  <jackson@ximian.com>
4708
4709         * Hwnd.cs: The adjustments for the menu bar are made when it is
4710         attached to the form.
4711
4712 2005-11-19  Jackson Harper  <jackson@ximian.com>
4713
4714         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4715         (just like on windows).
4716
4717 2005-11-19  Jackson Harper  <jackson@ximian.com>
4718
4719         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4720         use real buttons anymore because they are in non client area. The
4721         one TODO here is that I need to somehow invalidate a section of
4722         the non client area.
4723
4724 2005-11-18  Jackson Harper  <jackson@ximian.com>
4725
4726         * Control.cs: Put the enum check back in now that MDI doesnt have
4727         to use this to set border styles.
4728         * Form.cs: Only set mdi child windows borders if the handle has
4729         been created.
4730         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4731         this directly on to the driver.
4732         - Get the move start position before adjusting for the titlebar
4733         height, this fixes the windows "skipping" when they are first
4734         moved.
4735
4736 2005-11-18  Jackson Harper  <jackson@ximian.com>
4737
4738         * XplatUIX11.cs: Just compute the mdi borders separately as they
4739         don't totally match up with normal form borders.
4740
4741 2005-11-18  Jackson Harper  <jackson@ximian.com>
4742
4743         * Control.cs: Set WS_ styles for borders, so that the driver does
4744         not have to retrieve the control instance to figure out what kind
4745         of borders it should have.
4746         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4747         driver can know its an mdi child easily.
4748         * XplatUIX11.cs: Get the border styles and whether the window is
4749         MDI from the Styles and ExStyles params instead of having to get a
4750         control. This prevents a chicken and egg problem.       
4751
4752 2005-11-18  Jackson Harper  <jackson@ximian.com>
4753
4754         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4755
4756 2005-11-18  Jackson Harper  <jackson@ximian.com>
4757
4758         * MdiClient.cs: Calculate when to add and remove scrollbars
4759         correctly.
4760         * MdiChildContext.cs: Adjust the y position to take the titlebar
4761         into account.
4762         - No height for FormBorderStyle.None
4763
4764 2005-11-18  Jackson Harper  <jackson@ximian.com>
4765
4766         * Control.cs: Allow non enum values to be used for
4767         InternalBorderStyle.  MDI does this to set a special border style.
4768         - New utility methods for converting points to/from client coords
4769         - Add the newly created control to the Controls collection before
4770         updating its style. This way UpdateStyle can walk the control
4771         heirarchy to find the control if needed.
4772         so I don't need to create a new Point object all the time.
4773         * Form.cs: Let MDI windows handle their border styles.
4774         - Set styles on MDI windows so the correct title style is derived.
4775         * MdiChildContext.cs: Move all the painting and window handling
4776         into the non client area.
4777         - Use correct sizing and put correct buttons on frames based on
4778         the FormBorderStyle.
4779         - Notify the mdi client about scrolling
4780         - Need to handle the buttons ourselves now, because they are all
4781         in non client areas and we can't add controls there.
4782         * MdiClient.cs: Halfway to scrolling, this implementation is
4783         somewhat broken though, we need to check to make sure other
4784         windows aren't causing scrolling before removing the bars. Also
4785         the bars need to be drawn on top, maybe I can switch implicit
4786         controls to be on top.
4787         * Hwnd.cs: caption_height and tool_caption_height are now
4788         properties of an hwnd, this way they can be set by the driver
4789         based on the type of window they are.  In X11 the window manager
4790         handles the decorations so caption_height is zero unless its an
4791         MDI window.
4792         - Add 3 pixel borders for MDI windows (0xFFFF).
4793         - Get rid of some code duplication, have DefaultClientRectanle
4794         just call GetClientRectangle.
4795         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4796         Hwnd now.
4797         - Set border styles differently for mdi windows.
4798         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4799         Hwnd now.
4800         
4801 2005-11-15  Mike Kestner  <mkestner@novell.com>
4802
4803         * Menu.cs: when adding an item to the collection, if item is already 
4804         parented, remove it from the parent.
4805
4806 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4807
4808         * X11DesktopColors.cs: Added KDE support
4809
4810 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4811
4812         * XplatUIWin32.cs: 
4813           - Clipboard methods now can translate Rtf format
4814           - No longer removes clipboard contents whenever a new format is added
4815             to allow placing multiple formats on the clipboard
4816         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4817           will place all formats contained in it onto the clipboard. Also
4818           now cleans the clipboard before placing a new object onto it
4819         * RichTextBox.cs:
4820           - Implemented set_Rtf
4821           - Implemented set_SelectedRtf
4822           - Created InsertRTFFromStream() method to allow single code base
4823             for all properties and methods that insert RTF into document
4824           - Removed debug output
4825         * TextControl.cs:
4826           - Fixed Delete(int) to fix up line numbers
4827           - Fixed ReplaceSelection to combine start and end line
4828           - Fixed serious DeleteChars bug that would leave the document tree
4829             broken
4830           - Improved DumpTree with several logic checks to detect broken
4831             document trees
4832           - Removed debug lines
4833           - Fixed Caret.WordForward/WordBack moving code, now always also 
4834             updates caret.tag (fixes crash when word-selecting across tag
4835             boundaries via keyboard)
4836           - Added Insert() method for inserting multiline text into documents
4837           - Fixed DeleteChars() calculation errors that would cause a broken
4838             tag chain with multiple tag lines
4839           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4840           - Split() no longer moves caret if split is at caret location
4841           - ReplaceSelection() now updates the cursor and re-displays it
4842           - ReplaceSelection() now uses new Insert() method to avoid code
4843             duplication
4844           - FormatText() can now handle formatting partial lines
4845         * TextBoxBase.cs:
4846           - Append now uses new TextControl.Insert() method (this avoids 
4847             duplicate code)
4848           - Implemented Ctrl-X (Cut) (
4849           - Implemented Ctrl-C (Copy)
4850           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4851             regeneration when pasting text; roundtripping Copy&Paste within
4852             edit control still fails due to some calculation bugs in GenerateRTF)
4853           - The Delete key will now remove the current selection if it is visible
4854         * TextBox.cs: Removed debug lines
4855         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4856           driver to be initialized and can't therefore be done via a static ctor)
4857
4858 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4859
4860         * TextControl.cs: Added backend code for finding char arrays and strings
4861         * TextBoxBase.cs:
4862           - Added mouse wheel scroll support
4863           - Added support for VScroll and HScroll events
4864         * RichTextBox.cs:
4865           - Implemented all seven Find() variants
4866           - Implemented GetCharFromPosition()
4867           - Implemented GetCharIndexFromPosition()
4868           - Implemented GetLineFromIndex()
4869           - Implemented GetPositionFromCharIndex();
4870           - Implemented SaveFile for PlainText and UnicodeText
4871           - Fixed set_Font, now setting a new font applies that font to
4872             the whole document
4873           - Implemented generic Document to RTF converter
4874           - Implemented SaveFile for RichText format (still missing unicode
4875             conversion for non-ansi chars)
4876           - Implemented get_Rtf
4877           - Implemented get_SelectedRtf
4878
4879 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4880
4881         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4882           to allow any captures to be released before triggering OnClick. This
4883           way a click handler may capture the mouse without interference.
4884         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4885           This way we send them even though X may not allow a grab (if the window
4886           isn't visible, for example)
4887
4888 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4889
4890         * DataGridViewRowEventArgs.cs: DataGridView implementation
4891         * DataGridViewElement.cs: DataGridView implementation
4892         * DataGridViewComboBoxCell.cs: DataGridView implementation
4893         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4894         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4895         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4896         * ImageLayout.cs: DataGridView implementation
4897         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4898         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4899         * DataGridViewSelectionMode.cs: DataGridView implementation
4900         * IDataGridViewEditingControl.cs: DataGridView implementation
4901         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4902         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4903         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4904         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4905         * DataGridViewColumnSortMode.cs: DataGridView implementation
4906         * DataGridView.cs: DataGridView implementation
4907         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4908         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4909         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4910         * Padding.cs: DataGridView implementation
4911         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4912         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4913         * DataGridViewRowEventHandler.cs: DataGridView implementation
4914         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4915         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4916         * DataGridViewButtonCell.cs: DataGridView implementation
4917         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4918         * DataGridViewEditMode.cs: DataGridView implementation
4919         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4920         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4921         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4922         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4923         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4924         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4925         * DataGridViewCellEventHandler.cs: DataGridView implementation
4926         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4927         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4928         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4929         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4930         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4931         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4932         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
4933         * QuestionEventArgs.cs: DataGridView implementation
4934         * IDataGridViewEditingCell.cs: DataGridView implementation
4935         * DataGridViewTriState.cs: DataGridView implementation
4936         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
4937         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
4938         * DataGridViewColumnCollection.cs: DataGridView implementation
4939         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
4940         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
4941         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
4942         * DataGridViewColumn.cs: DataGridView implementation
4943         * DataGridViewCellBorderStyle.cs: DataGridView implementation
4944         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
4945         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
4946         * DataGridViewRow.cs: DataGridView implementation
4947         * DataGridViewImageCellLayout.cs: DataGridView implementation
4948         * DataGridViewImageCell.cs: DataGridView implementation
4949         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
4950         * DataGridViewCheckBoxCell.cs: DataGridView implementation
4951         * DataGridViewHeaderCell.cs: DataGridView implementation
4952         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
4953         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
4954         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
4955         * DataGridViewTextBoxColumn.cs: DataGridView implementation
4956         * QuestionEventHandler.cs: DataGridView implementation
4957         * DataGridViewCellStyleScopes.cs: DataGridView implementation
4958         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
4959         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
4960         * DataGridViewCell.cs: DataGridView implementation
4961         * DataGridViewCellEventArgs.cs: DataGridView implementation
4962         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
4963         * DataGridViewCellStyle.cs: DataGridView implementation
4964         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
4965         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
4966         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
4967         * TextFormatFlags.cs: DataGridView implementation
4968         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
4969         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
4970         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
4971         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
4972         * DataGridViewButtonColumn.cs: DataGridView implementation
4973         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
4974         * HandledMouseEventArgs.cs: DataGridView implementation
4975         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
4976         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
4977         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
4978         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
4979         * DataGridViewRowCollection.cs: DataGridView implementation
4980         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
4981         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
4982         * DataGridViewHitTestType.cs: DataGridView implementation
4983         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
4984         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
4985         * DataGridViewColumnEventHandler.cs: DataGridView implementation
4986         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
4987         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
4988         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
4989         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
4990         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
4991         * DataGridViewContentAlignment.cs: DataGridView implementation
4992         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
4993         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
4994         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
4995         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
4996         * DataGridViewPaintParts.cs: DataGridView implementation
4997         * DataGridViewCellCollection.cs: DataGridView implementation
4998         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
4999         * DataGridViewImageColumn.cs: DataGridView implementation
5000         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5001         * DataGridViewElementStates.cs: DataGridView implementation
5002         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5003         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5004         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5005         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5006         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5007         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5008         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5009         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5010         * DataGridViewTextBoxCell.cs: DataGridView implementation
5011         * DataGridViewBand.cs: DataGridView implementation
5012         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5013         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5014         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5015         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5016         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5017         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5018         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5019         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5020         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5021         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5022         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5023
5024 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5025
5026         * ThemeWin32Classic.cs: 
5027           - Draw the outside focus rectangle around buttons
5028           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5029             doesn't use end caps for every dash of a line anymore. This
5030             workaround ignores the forecolor.
5031
5032 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5033
5034         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5035           endian safe.
5036
5037 2005-11-07  Jackson Harper  <jackson@ximian.com>
5038
5039         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5040
5041 2005-11-07  Jackson Harper  <jackson@ximian.com>
5042
5043         * ScrollableControl.cs: Calculate the maximum and change vars
5044         (more) correctly so that scrollbars appear as a sensible size.
5045
5046 2005-11-04  Jackson Harper  <jackson@ximian.com>
5047
5048         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5049         collection.
5050         * TreeView.cs: When the tree is sorted null out the top_node so
5051         that it is recalculated.
5052         - Use dotted lines instead of dashed lines to match MS better.
5053
5054 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5055
5056         * ListView.cs: 
5057           - Implements key search for items. Useful when browsing files with FileDialog
5058           - When changing view mode or when clear the items reset scrollbar positions
5059
5060 2005-11-04  Jackson Harper  <jackson@ximian.com>
5061
5062         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5063         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5064         as to what the method may do as there is no real way of creating a
5065         derived CurrencyManager and calling the method. 
5066
5067 2005-11-03  Jackson Harper  <jackson@ximian.com>
5068
5069         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5070         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5071         method which seems to just be used internally to refresh the tabs.
5072
5073 2005-11-03  Jackson Harper  <jackson@ximian.com>
5074
5075         * TabControl.cs: Implement the remove method. Fix some broken
5076         comments.
5077
5078 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5079
5080         * DateTimePicker.cs:
5081           - Added missing DateTimePickerAccessibleObject class
5082           - Added missing events
5083           - Added OnFontChanged method
5084         * Form.cs: Added missing attributes
5085         * TreeView.cs: Added missing attributes
5086
5087 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5088
5089         * GridItemCollection.cs: Fix signatures
5090
5091 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5092
5093         * XplatUI.cs: Updated build rev/date
5094         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5095           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5096         * Application.cs: Trigger context-specific ExitThread events
5097
5098 2005-11-03  Jackson Harper  <jackson@ximian.com>
5099
5100         * Menu.cs:
5101         * MainMenu.cs:
5102         * GridTableStylesCollection.cs:
5103         * Timer.cs:
5104         * TabPage.cs:
5105         * HelpProvider.cs:
5106         * StatusBar.cs:
5107         * MonthCalendar.cs: Signature fixes
5108
5109 2005-11-03  Jackson Harper  <jackson@ximian.com>
5110
5111         * TreeNodeCollection.cs: Remove should not be virtual.
5112         * TreeView.cs: Implement the last of the missing methods.
5113
5114 2005-11-03  Jackson Harper  <jackson@ximian.com>
5115
5116         * TreeNodeConverter.cs: Implement to get off my class-status back.
5117
5118 2005-11-03  Jackson Harper  <jackson@ximian.com>
5119
5120         * TreeView.cs: Hookup the bits for drag and drop.
5121         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5122         that nodes can be moved from tree to tree easily this just causes
5123         all sorts of problems.
5124         * TreeNodeCollection: Don't need to give treenodes an index and
5125         treeview anymore when they are added, these are computed on the
5126         fly. Also make sure to remove a node before its added.
5127
5128 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5129
5130         * TextControl.cs:
5131           - Added CaretSelection enum
5132           - Added comparison methods to Marker struct, makes selection code
5133             more readable
5134           - Added SelectionStart and SelectionEnd as 'moveable' location for
5135             the CaretDirection enum and handler
5136           - Added selection_prev variable to track optimized invalidation for
5137             word and line selection
5138           - Added SelectionVisible property (returns true if there is a valid 
5139             selection)
5140           - Switched CaretHasFocus to only display the caret if there is no
5141             visible selection
5142           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5143             using the direct character index; should be much faster
5144           - Added various conditional debug statements
5145           - Fixed invalidation calculation for selection ranges
5146           - Added ExpandSelection() method to support word and line selection
5147           - Switched SetSelectionToCaret to use new Marker compare overloads
5148           - Added central IsWordSeparator() method to determine word 
5149             separators/whitespace and FindWordSeparator() to streamline common
5150             usage of IsWordSeparator()
5151         * TextBoxBase.cs:
5152           - Removed unneeded grabbed variable, it was just mirroring
5153             Control.Capture
5154           - No longer firing OnTextChanged event when Text setter is called,
5155             since the base will fire the event for us
5156           - Added handling of Ctrl-Up/Down selection
5157           - Added handling of Shift-Cursorkey selection
5158           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5159             words
5160           - Added handling of Shift and Ctrl-Shift-Home/End selection
5161           - Removed some debug output
5162           - Added handling for single/double/tripple-click to place caret/
5163             select word/select line respectively (Fixes bug #76031)
5164           - Added support for drag expansion of word/line selection
5165         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5166           current selection
5167
5168 2005-11-02  Jackson Harper  <jackson@ximian.com>
5169
5170         * X11Dnd.cs: If the drag is going to and from a MWF window just
5171         copy the data instead of sending it out through the X Selection
5172         mechanism.
5173
5174 2005-11-02  Jackson Harper  <jackson@ximian.com>
5175
5176         * X11Dnd.cs:
5177         * XplatUIX11.cs: When in a drag we don't want motion notify
5178         messages to get passed on to the other controls. This prevents
5179         mouse move messages from showing up in the drag source.
5180
5181 2005-11-02  Jackson Harper  <jackson@ximian.com>
5182
5183         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5184         the correct button is release to end a drag.
5185         * XplatUIX11.cs: Make the button state internal so the drag system
5186         can access it.  Dragging needs to know about all button releases,
5187         not just left button.
5188
5189 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5190
5191         * Form.cs (Icon): If the icon is null, reset the icon to the
5192         default value. 
5193
5194         * Cursor.cs: When writing the AND-mask bitmap do not include the
5195         number of colors, but hardcode those to two (black and white),
5196         fixes the loading of color cursors (Paint Dot Net).
5197
5198         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5199         turn off autoscaling.
5200
5201         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5202
5203 2005-11-02  Jackson Harper  <jackson@ximian.com>
5204
5205         * X11Dnd.cs: Make sure to send a status message if the pointer
5206         enters a control that can not accept a drop, otherwise the cursor
5207         isn't updated correctly. Also tried to compress the lines of code
5208         a bit.
5209
5210 2005-11-02  Jackson Harper  <jackson@ximian.com>
5211
5212         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5213         set actions correctly.  This isn't perfect as XDND and win32 have
5214         some differences on how you allow actions. I'll clear this up by
5215         adding a path for drag from MWF to MWF windows.
5216         * XplatUIX11.cs: Hook into the dnd system.
5217
5218 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5219
5220         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5221         previously shown but they are no longer need it. Very obvious when 
5222         browsing files with FileDialog.
5223
5224 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5225
5226         * Control.cs: We always need to call OnPaintBackground. We pretty much
5227           ignore AllPaintingInWmPaint and always do the painting there, whether 
5228           it's set or not, since we always ignore the WM_ERASEBKGND message 
5229           (which we don't generate on X11). This fixes #76616.
5230         * Panel.cs: Removed unneeded background painting. This happens properly
5231           in Control.cs already
5232
5233 2005-10-31  Mike Kestner  <mkestner@novell.com>
5234
5235         * Menu.cs: Add items to collection before setting their index.
5236         * MenuItem.cs : add range checking with ArgumentException like MS.
5237         [Fixes #76510]
5238
5239 2005-10-31  Jackson Harper  <jackson@ximian.com>
5240
5241         * ListBox.cs: Invalidate if the area is visible at all not just
5242         contained in the visible rect. Fixes unselection of semi visible
5243         items.
5244
5245 2005-10-31  Jackson Harper  <jackson@ximian.com>
5246
5247         * Control.cs: Consistently name the dnd methods. Make them
5248         internal so we can override them to match some MS behavoir
5249         internally.
5250         * Win32DnD.cs: Use the new consistent names.
5251
5252 2005-10-31  Jackson Harper  <jackson@ximian.com>
5253
5254         * TreeView.cs: Don't draw the selected node when we lose focus.
5255
5256 2005-10-31  Jackson Harper  <jackson@ximian.com>
5257
5258         * X11Dnd.cs: We still need to reset the state even though a full
5259         reset isn't being done, otherwise status's still get sent all over
5260         the place.
5261
5262 2005-10-31  Jackson Harper  <jackson@ximian.com>
5263
5264         * Control.cs: Make the dnd_aware flag internal so the dnd
5265         subsystem can check it. Catch exceptions thrown in dnd handlers to
5266         match MS behavoir.
5267         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5268         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5269         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5270         flags to reduce the number of dnd enters/status's sent.
5271
5272 2005-10-31  Jackson Harper  <jackson@ximian.com>
5273
5274         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5275
5276 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5277
5278         * PictureBox.cs: Fixes 76512
5279
5280 2005-10-28  Jackson Harper  <jackson@ximian.com>
5281
5282         * X11Dnd.cs: Early implementation to support winforms being a drag
5283         source for data on X11. Also restructured the converters so they
5284         can go both ways now.
5285         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5286         
5287 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5288
5289         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5290           clipboard requests
5291
5292 2005-10-27  Jackson Harper  <jackson@ximian.com>
5293
5294         * TreeNode.cs: Implement serialization so my DnD examples will work.
5295
5296 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5297
5298         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5299           TreeView.cs: Don't dispose objects that are not owned.
5300           
5301 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5302
5303         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5304           should retrieve the current cursor and report that, but XplatUI
5305           doesn't (yet) have an interface for that (and I'm not sure I even
5306           can, on X11)
5307         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5308           until any message loop processing is done (and the WM_SETCURSOR
5309           replaces the cursor to the proper one)
5310         * XplatUIX11.cs: 
5311           - Fixed override behaviour, we can't set the cursor globally on X11, 
5312             just for our windows.
5313           - Invalidating the System.Drawing X11 display handle when we are
5314             shutting down
5315         * Control.cs: Fix to make csc happy
5316
5317 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5318
5319         * TextBoxBase.cs: 
5320           - get_Text: Add last line (without trailing newline) to returned
5321             value (Fixes 76212)
5322           - get_TextLength: Count last line in returned length
5323           - ToString: Call Text property instead of duplicating code
5324
5325 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5326
5327         * ImageList.cs: Dispose ImageAttributes objects.
5328
5329 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5330
5331         * ImageList.cs: Use attribute constructors with less arguments where
5332           possible.
5333
5334 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5335
5336         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5337           Use typeof instead of strings when assembly is referenced. Added
5338           some more comments.
5339
5340 2005-10-21  Jackson Harper  <jackson@ximian.com>
5341
5342         * ListView.cs: Raise a double click event. Also tried to somewhat
5343         fix when the selectedindexchanged event is raised. Its still
5344         broken though.
5345
5346 2005-10-21  Jackson Harper  <jackson@ximian.com>
5347
5348         * TreeView.cs: New method to invalidate the plus minus area of a
5349         node without invalidating the whole node (maybe this can be used
5350         in some more places).
5351         * TreeNodeCollection.cs: When adding to an empty node we need to
5352         invalidate its plus minus area so the little block shows up.
5353         
5354 2005-10-21  Jackson Harper  <jackson@ximian.com>
5355
5356         * TreeView.cs: Make sure that when we invalidate a node the bounds
5357         are big enough to cover the selected box and the focus
5358         rectangle. Use a different colour for the lines connecting nodes
5359         so they show up with all themes.
5360
5361 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5362
5363         * NativeWindow.cs: Don't call anything that could call into the driver,
5364           we might be on a different thread.
5365
5366 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5367
5368         * Control.cs(Dispose): Since Dispose might run on a different thread,
5369           make sure that we call methods that could call into the driver via
5370           invoke, to avoid thread issues
5371
5372 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5373
5374         * XplatUI.cs: Removed finalizer
5375         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5376           not allowing to be called on the finalizer thread.
5377
5378 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5379
5380         * ImageList.cs:
5381           - Reverted r51889 and r51891.
5382           - Added ImageListItem class that stores unmodified image items and image
5383             properties required to create list images until handle is created.
5384           - Added AddItem and moved image creation logic to AddItemInternal.
5385           - Added CreateHandle method that creates images based on unmodified items.
5386           - Added DestroyHandle that changes state to store unmodified items.
5387           - Add and AddStrip methods no more create handle.
5388           - ReduceColorDepth has no return value.
5389           - Dispose destroys handle.
5390           - Modified other methods to reflect the above changes.
5391           - Implemented key support.
5392           - Added profile 2.0 members and attributes.
5393           - Added private Reset and ShouldSerialize methods that provide the same
5394             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5395             them as they are private.
5396           - Added some more comments about implementation details.
5397
5398 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5399
5400         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5401
5402 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5403
5404         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5405
5406 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5407
5408         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5409         * DataGridColumnStyle.cs: Remove debug message
5410
5411 2005-10-20  Jackson Harper  <jackson@ximian.com>
5412
5413         * TreeView.cs: We can always get input keys regardless of whether
5414         or not editing is enabled. They are used for navigation.
5415
5416 2005-10-20  Jackson Harper  <jackson@ximian.com>
5417
5418         * TreeNode.cs: Use the viewport rect for determining if a node
5419         needs to be moved for visibility. Don't use Begin/End edit. This
5420         calls a full refresh when its done.
5421         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5422         rect property internal so the treenodes can see it. When clicking
5423         on a node we need to ensure that its visible because it might just
5424         be partly visible when clicked.
5425
5426 2005-10-20  Jackson Harper  <jackson@ximian.com>
5427
5428         * TreeNodeCollection.cs: Remove debug code.
5429
5430 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5431
5432         * Datagrid.cs: Implements column sorting in Datagrid
5433         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5434
5435 2005-10-20  Jackson Harper  <jackson@ximian.com>
5436
5437         * TreeNodeCollection.cs: Remove items properly. Update the correct
5438         area after removing them.
5439
5440 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5441
5442         * Datagrid.cs: Should not call base.OnPaintBackground
5443
5444 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5445
5446         * XplatUIX11.cs (GetMessage):
5447           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5448             window instead of client window
5449           - Now properly calculates NC_xBUTTONUP message coordinates
5450           - ScreenToMenu now properly calculates it's coordinates of whole 
5451             window, since menus are in the whole window, not in the client
5452             window
5453           - Added WholeToScreen coordinate translation method
5454
5455 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5456
5457         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5458           want to return a message, loop back to the beginning of the function
5459           and grab the next real message to process instead.
5460
5461 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5462
5463         * Splitter.cs: Properly set limits if no filler control is used
5464
5465 2005-10-19  Jackson Harper  <jackson@ximian.com>
5466
5467         * ColorDialog.cs: Don't show the help button if it is not enabled
5468         instead of disabling it (this is what MS does). Don't create the
5469         panel until the dialog is run, otherwise the vars (such as
5470         ShowHelp) are not set yet.
5471
5472 2005-10-19  Jackson Harper  <jackson@ximian.com>
5473
5474         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5475         are reduced when adding nodes.
5476         * TreeNode.cs:
5477         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5478         tree.
5479         
5480 2005-10-19  Jackson Harper  <jackson@ximian.com>
5481
5482         * FolderBrowserDialog.cs: End editing our treeview so the window
5483         actually gets refreshed.
5484
5485 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5486
5487         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5488           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5489           inside of WM_PAINT
5490
5491 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5492
5493         * MenuAPI.cs: Returns after Hidding window
5494         * XplatUIX11.cs: Added TODO found while debugging menu issues
5495
5496 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5497
5498         * XplatUIX11.cs: Do not re-map the whole window when it's size
5499           becomes non-zero unless it's supposed to be actually visible
5500
5501 2005-10-18  Jackson Harper  <jackson@ximian.com>
5502
5503         * TreeView.cs: We don't need to keep a count anymore.
5504         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5505         use the Grow method.
5506
5507 2005-10-18  Jackson Harper  <jackson@ximian.com>
5508
5509         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5510         implement it manually here.
5511
5512 2005-10-18  Jackson Harper  <jackson@ximian.com>
5513
5514         * ImageList.cs: Dont kill the list when the colour depth is
5515         changed, just change the colour depth of all the images.
5516         - Same goes for setting the image size. Just resize them all
5517         instead of killing the list softly.
5518
5519 2005-10-18  Jackson Harper  <jackson@ximian.com>
5520
5521         * Control.cs: Don't invalidate empty rectangles.
5522
5523 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5524
5525         * ListViewItem.cs:
5526           - Adds checked item to the Checked/Item lists (where empty before)
5527           - Do not add items to the Selected lists if they are already present
5528         * ListView.cs:
5529           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5530           - When deleting items make sure that we delete them for the Selected
5531           and Checked list also.
5532
5533 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5534
5535         * Label.cs: Dispose objects no longer used
5536         * ThemeWin32Classic.cs: Dispose objects no longer used
5537
5538 2005-10-18  Jackson Harper  <jackson@ximian.com>
5539
5540         * TabControl.cs: Don't refresh the whole control when the tabs are
5541         scrolled, we just need to refresh the tab area.
5542
5543 2005-10-17  Jackson Harper  <jackson@ximian.com>
5544
5545         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5546         after handle when we need it.
5547
5548 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5549
5550         * Control.cs: When the parent size changes, recalculate anchor 
5551           positions. Partial fix for #76462
5552
5553 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5554
5555         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5556           drawn. Fixes #76462
5557
5558 2005-10-17  Jackson Harper  <jackson@ximian.com>
5559
5560         * MonthCalendar.cs: Don't create the numeric up down until our
5561         handle is created. Otherwise our handle is created in the
5562         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5563         yet.
5564
5565 2005-10-17  Jackson Harper  <jackson@ximian.com>
5566
5567         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5568         correctly.
5569
5570 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5571         * TreeNode.cs : small logical fix (was using local var instead of field)
5572         
5573 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5574
5575         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5576
5577 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5578
5579         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5580
5581 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5582
5583         * Control.cs: 
5584           - Re-implemented anchoring code. My first version was really broken.
5585             This fixes bug #76033. Unlike the previous implementation we will
5586             no longer have round errors since all numbers are calculated from
5587             scratch every time. Removed various anchor-related obsolete vars.
5588           - InitLayout no longer causes layout event firing and layout to be 
5589             performed
5590
5591 2005-10-16  Jackson Harper  <jackson@ximian.com>
5592
5593         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5594         which was broken).
5595
5596 2005-10-16  Jackson Harper  <jackson@ximian.com>
5597
5598         * TabControl.cs: Remove debug code.
5599
5600 2005-10-16  Jackson Harper  <jackson@ximian.com>
5601
5602         * XEventQueue.cs: Increase the default queue size (very simple
5603         apps needed to grow the queue).
5604         * Hwnd.cs: No finalizer so we don't need to suppress
5605         finalization. Compute the invalid area manually so a new rectangle
5606         does not newto be created.
5607         * ScrollableControl.cs: Don't set any params (otherwise visibility
5608         isn't set correctly).
5609         * MdiChildContext.cs: New constructor takes the mdi parent so it
5610         doesn't have to be computed and avoids a crash on windows. Draw
5611         the window icon properly, and allow the text to be seen.
5612         * Form.cs: Use new MdiChildContext constructor. Make sure the
5613         child context isn't null in wndproc.
5614         * TabControl.cs: Don't set focus, this is muddling keyboard
5615         behavoir. Expand the tab rows when a window size increase will
5616         allow extra tabs to be seen. Don't allow tabs smaller than the
5617         width of a window to be scrolled out of view.
5618         * TreeNode.cs:
5619         * TreeView.cs: Use measure string to calculate a nodes width, the
5620         width is cached and only updated when the text or the font is
5621         changed. Don't check for expand/collapse clicks on the first level
5622         nodes if root lines are disabled.
5623         
5624 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5625
5626         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5627
5628 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5629
5630         * DataGridBoolColumn.cs: fixes warning
5631
5632 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5633
5634         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5635         to match more to match more precisely the MS Net behavior
5636
5637 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5638
5639         * Hwnd.cs: Added field to track if window is mapped
5640         * XplatUIX11.cs: 
5641           - Unmap windows if they become 0-size, re-map when 
5642             they are >0 again; fixes #76035
5643           - Re-set our error handler after initializing X11Desktop
5644             to override any error handlers Gtk or whatever was called
5645             may have set.
5646
5647 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5648
5649         * CheckedListBox.cs: Removed unused vars
5650         * ListView.cs: Fixed signatures
5651         * RichTextBox.cs: Removed unused vars
5652         * TextBoxBase.cs: Removed unused vars
5653         * XplatUIWin32.cs: Removed unused vars
5654         * XplatUIX11.cs: Removed unused vars
5655         * XplatUI.cs: Updated version and date to latest published
5656
5657 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5658
5659         * Cursor.cs: Added private .ctor to work around a bug in
5660           resourceset (Thanks to Geoff Norton for the help on this)
5661         * SplitterEventArgs.cs: Made fields accessible so we don't
5662           waste boatloads of objects and can reuse the same one
5663           in Splitter
5664         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5665           any captions and borders when generating screen coordinates
5666         * Splitter.cs: Reimplemented control, now fully complete, uses
5667           rubberband drawing, supports and obeys all properties, has
5668           proper cursors
5669
5670 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5671
5672         * Form.cs (Form): Setup default values for autoscale and
5673         autoscale_base_size;  Make these instance variables, not static
5674         variables. 
5675
5676         (OnLoad): on the first load, adjust the size of the form.
5677
5678 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5679
5680         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5681           width argument to DrawReversibleRectangle()
5682         * XplatUIWin32.cs, XplatUIX11.cs: 
5683           - Implemented width for DrawReversibleRectangle()
5684           - Added logic to DrawReversibleRectangle that recognizes a zero
5685             width or height and only draws a line in that situation
5686         
5687 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5688
5689         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5690         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5691         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5692           method (it uses our FosterParent window to get a graphics context)
5693
5694 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5695
5696         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5697           and SetWindowBackground methods
5698         * Control.cs:
5699           - Setting proper ControlStyles
5700           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5701             EraseWindowBackground, instead we draw the window background
5702             ourselves in PaintControlBackground. This behaviour is
5703             required to match MS, where, when OnPaintBackground is not
5704             called, the background is not drawn.
5705           - Removed unneeded Refresh() in set_Text
5706         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5707         * XplatUIX11.cs:
5708           - Created DeriveStyles method to translate from CreateParams to
5709             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5710             matches FormBorderStyle enum values)
5711           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5712             style calculations into single DeriveStyles method
5713           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5714             from redrawing the whole window on any resize or expose.
5715           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5716             all styles were applied to our whole/client window appropriately
5717           - Removed EraseWindowBackground() and SetWindowBackground() methods
5718           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5719             no longer clear/redraw the background through X
5720           - Removed handling of erase_pending bit, we have no use for it (or
5721             so it seems)
5722         * XplatUIOSX.cs:
5723           - Removed generation and handling of WM_ERASEBKGND message
5724           - Removed EraseWindowBackground() and SetWindowBackground() methods
5725           - Removed handling of hwnd.ErasePending flag
5726         * XplatUIWin32.cs:
5727           - Removed EraseWindowBackground() and SetWindowBackground() methods
5728           - We no longer call EraseWindowBackground on PaintEventStart, we 
5729             ignore the fErase flag, erasing is handled in Control in the
5730             background handler
5731         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5732           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5733           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5734           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5735           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5736           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5737           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5738
5739 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5740
5741         * PropertyGrids.cs: Get sub properties
5742         * PropertyGridView.cs: Fix drawing code
5743
5744 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5745
5746         * ListBox.cs: Fixes 76383
5747
5748 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5749
5750         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5751         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5752         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5753
5754
5755 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5756
5757         * ComboBox.cs: Fixes border drawing
5758
5759 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5760
5761         * MimeIcon.cs: Ignore errors if the file can not be read.
5762
5763 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5764
5765         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5766          - Fixed border calculations
5767          - Fixed horizontal scrolling in single column listboxes
5768          - Fixed drawing issues
5769
5770 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5771
5772         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5773           FormBorderStyle enum
5774         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5775           code to determine FormBorderStyles from CreateParams
5776         * Form.cs:
5777           - Fixed bug where we'd set the wrong window styles if we were
5778             not creating an MDI window
5779           - Added call to XplatUI.SetBorderStyle when form borders are set
5780         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5781         * Hwnd.cs:
5782           - Removed obsolete edge style
5783           - Switched from BorderStyle to FormBorderStyle
5784         
5785 2005-10-10  Jackson Harper  <jackson@ximian.com>
5786
5787         * Form.cs: Use the property to get the window handle instead of
5788         accessing it directly. Prevents a null reference exception.
5789
5790 2005-10-10  Jackson Harper  <jackson@ximian.com>
5791
5792         * TreeView.cs: Don't adjust the rect given to DrawString now that
5793         our libgdiplus draws correctly.
5794
5795 2005-10-08  Jackson Harper  <jackson@ximian.com>
5796
5797         * TreeView.cs: Don't try to find the clicked on node if there are
5798         no nodes in the tree.
5799
5800 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5801
5802         * RichTextBox.cs:
5803
5804           restore
5805
5806 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5807
5808         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5809           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5810           ErrorProvider.cs:
5811           Use ResPool for brushes and dispose System.Drawing objects that
5812           are not used anymore.
5813
5814 2005-10-07  Jackson Harper  <jackson@ximian.com>
5815
5816         * MdiChildContext.cs: Use the new borders instead of drawing them
5817         ourselves.
5818
5819 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5820
5821         * Calling UpdateBounds after changing the window's BorderStyle 
5822         since the style can change the ClientSize
5823
5824 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5825
5826         * Control.cs: Made PaintControlBackground virtual
5827         * Panel.cs: Overriding PaintControlBackground instead of using paint
5828           event; paint event method was interfering with 'real' users of the
5829           event.
5830
5831 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5832
5833         * ThemeWin32Classic.cs: remove border drawing since it is handled
5834         by the base control class now and was causing double border drawing.
5835
5836 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5837
5838         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5839           but it does seem to match MS behaviour. This fixes bug #75324
5840
5841 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5842
5843         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5844           somewhat hackish looking
5845
5846 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5847
5848         * TextBoxBase.cs:
5849           - We now accept Enter even if AcceptEnter is false, if the containing
5850             form does not have an AcceptButton configured (fixes bug #76355)
5851           - Calculations are now fixed to no longer use Width/Height, but
5852             ClientSize.Width/Height, since we now support borders (this was
5853             a result of fixing borders and therefore bug #76166)
5854           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5855             true (fixes bug #76354)
5856         
5857 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5858
5859         * Control.cs: 
5860           - Defaulting BorderStyle and setting it in XplatUI when our window 
5861             is created
5862           - Added enum check to InternalBorderStyle setter
5863         * XplatUIX11.cs: 
5864           - Added drawing of window borders
5865           - Now properly calculates WM decorations offset for toplevel 
5866             windows (fixes bug #74763)
5867         * XplatUIWin32.cs: 
5868           - Implemented BorderStyles for windows (we're letting win32 draw 
5869             the border for us)
5870           - Fixed the signature for SetWindowLong
5871         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5872           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5873           setting borders
5874         * UpDownBase.cs: Remove drawing of borders, this is handled by
5875           the driver, outside the client area
5876         * ListView.cs: Removed bogus border calculations. The control should
5877           be oblivious to borders, since those are not part of the client
5878           area. 
5879         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5880         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5881           drawing code
5882
5883 2005-10-06  Jackson Harper  <jackson@ximian.com>
5884
5885         * MdiChildContext.cs: Clear out the old virtual position remove
5886         all the unneeded calls to CreateGraphics.
5887
5888 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5889
5890         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5891
5892 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5893
5894         * Form.cs: 
5895           - Added loading and setting of our new default icon
5896           - Only set icon if window is already created
5897
5898 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5899
5900         * Label.cs:
5901           - Do not explicitly set the foreground and background colors, to
5902             allow inheriting from parents (fixes #76302)
5903           - Use Control's InternalBorderStyle property to deal with borders
5904
5905 2005-10-06  Jackson Harper  <jackson@ximian.com>
5906
5907         * MdiChildContext.cs: Use the new xplatui function to draw a
5908         reversible rect.
5909
5910 2005-10-06  Jackson Harper  <jackson@ximian.com>
5911
5912         * Form.cs: Add the parent before creating the child context cause
5913         we need the parent when setting up the child.
5914
5915 2005-10-06  Jackson Harper  <jackson@ximian.com>
5916
5917         * FolderBrowserDialog.cs: redo the tree population code so a
5918         second thread isn't used. Should be a lot faster and more stable
5919         now.
5920
5921 2005-10-05  Jackson Harper  <jackson@ximian.com>
5922
5923         * TreeView.cs: There are no expand/collapse boxes if the node has
5924         no children.
5925
5926 2005-10-05  Jackson Harper  <jackson@ximian.com>
5927
5928         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5929
5930 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5931
5932         * FileDialog.cs: Fix InitialDirectory
5933
5934 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5935
5936         * ComboBox.cs:
5937                 - Fixes changing between styles
5938                 - Fixes simple mode
5939                 - Fixes last item crashing when navigating with keyboard
5940
5941 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
5942
5943         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
5944
5945 2005-10-05  Jackson Harper  <jackson@ximian.com>
5946
5947         * TreeView.cs: If updating the root node do a full refresh.
5948         * TreeNode.cs: The root node should be expanded by default. Also
5949         added a utility prop to tell if we are the root node.
5950         * TreeNodeCollection.cs: Only refresh if the node we are being
5951         added to is expanded. Also added a comment on a potential
5952         optimization.
5953         
5954 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
5955
5956         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
5957           in dispose method. Fixes #76330
5958
5959 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
5960
5961         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
5962
5963                 - Implements vertical and horizontal scrolling using XplatUI
5964                 - Fixes keyboard navagation
5965                 - Fixes EnsureVisible
5966                 - Drawing fixes
5967                 - Handles and draws focus properly
5968
5969
5970 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
5971
5972         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
5973           Create handle. NET_2_0: Destroy handle when value is null.
5974
5975 2005-10-03  Jackson Harper  <jackson@ximian.com>
5976
5977         * ScrollBar.cs: My last scrollbar patch was broken. This is a
5978         revert and a new patch to prevent the thumb from refreshing so
5979         much.
5980
5981 2005-10-02  Jackson Harper  <jackson@ximian.com>
5982
5983         * ScrollBar.cs: Don't update position if it hasn't actually
5984         changed. This occurs when you hold down the increment/decrement
5985         buttons and the thumb gets to the max/min.
5986
5987 2005-10-01  Jackson Harper  <jackson@ximian.com>
5988
5989         * Form.cs:
5990         * MdiChildContext.cs:
5991         * MdiClient.cs: Implement ActiveMdiChild in Form.
5992
5993 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
5994
5995         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
5996
5997 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
5998
5999         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6000           be found
6001
6002 2005-09-30  Jackson Harper  <jackson@ximian.com>
6003
6004         * ListBox.cs: Don't do a full refresh unless some data has
6005         actually changed.
6006
6007 2005-09-30  Jackson Harper  <jackson@ximian.com>
6008
6009         * TreeView.cs: Make sure that the checkboxes size is factored in
6010         even when not visible.
6011
6012 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6013
6014         * FileDialog.cs: Fix Jordi's build break
6015
6016 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6017
6018         * FileDialog.cs: 
6019                 - Use standard the Windows colours for the combobox as espected
6020                 - Dispose objects that use resouces when no longer need them
6021
6022 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6023
6024         * X11DesktopColors.cs: Initial incomplete implementation
6025         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6026
6027 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6028
6029         * Theme.cs: 
6030           - Switched Theme color names to match the names defined in 
6031             System.Drawing.KnownColors. Life's hard enough, no need to make 
6032             it harder.
6033           - Added setters to all theme color properties so themes can set
6034             their color schemes. The setters also propagate the color changes
6035             to System.Drawing.KnownColors via reflection
6036         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6037           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6038           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6039           use the new, more logical theme color names
6040         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6041           post-NT colors
6042         * ThemeWin32Classic.cs:
6043           - Removed code to set the old classic Windows colors. Instead it
6044             now relies on the colors returned by System.Drawing.KnownColors
6045             which will be either modern static colors (Unix) or colors
6046             read from the user's configuration (Win32)
6047           - Updated to use the new, more logical theme color names
6048           - Switched DataGrid drawing code to use only Theme colors instead of
6049             a mix of System.Drawing.KnownColors and Theme colors
6050           - DrawFrameControl(): Removed code that fills the button area, the
6051             fill would overwrite any previous fill done by a control. This
6052             fixes bug #75338 
6053           - Added DrawReversibleRectangle() stub
6054         * ScrollableControl.cs: Set visible state to false when scrollbars
6055           are removed (pdn fix)
6056         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6057           DrawReversibleRectangle() method to allow drawing primitive 
6058           'rubber bands'
6059         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6060
6061 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6062
6063         * ImageList.cs: Add(Icon): Create handle.
6064
6065 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6066
6067         * ListView.cs:
6068         * ThemeWin32Classic.cs:
6069                 - Fixes detail mode
6070                 - Sets clippings
6071                 - Issues with drawing
6072
6073 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6074
6075         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6076           source has to be the ImageList.
6077
6078 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6079
6080         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6081
6082 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6083
6084         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6085
6086 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6087
6088         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6089
6090 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6091         * GridItem.cs: Fixed TODOs
6092         * GridItemCollection.cs: Added ICollection interface
6093
6094 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6095
6096         * ImageList.cs: Resize icons when needed.
6097
6098 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6099
6100         * ListViewItem.cs
6101                 - Fixes GetBounds and returns on screen rects
6102         * ListView.cs:
6103                 - Fixes vertical and horzintal scrolling of items
6104         * ThemeWin32Classic.cs:
6105                 - Fixes drawing
6106                 
6107 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6108
6109         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6110
6111 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6112
6113         * ImageList.cs: Added comments about handle creation. Moved Handle,
6114           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6115           Handle is created in Add methods.
6116
6117 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6118          
6119         * DataGridDrawingLogic.cs: 
6120                 - Takes rows into account on Colum calculations
6121                 - Returns the column when clickig
6122         * DataGrid.cs:
6123                 - Fixes default HitTestInfo values
6124                 - Fixes HitTestInfo.ToString
6125                 - Fixes ResetBackColor          
6126         
6127 2005-09-28  Jackson Harper  <jackson@ximian.com>
6128
6129         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6130         sizing or cursor changes). Also added some temp code to draw the
6131         titlebars text (Makes dev a little easier).
6132
6133 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6134
6135         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6136
6137 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6138          
6139         * ListBox.cs: Fixes bug 76253
6140
6141 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6142
6143         * ImageList.cs: Added comments about the current implementation. Added
6144           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6145           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6146           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6147           with Bitmap.LockBits for better performance. Revised the whole file to
6148           match MS.NET behaviour and provide better performance. Non-public
6149           interface members are calling public members even when they throw
6150           NotSupportedException for better maintainability. Moved ColorDepth,
6151           ImageSize, ImageStream and TransparentColor implementations to
6152           ImageCollection for better performance as these properties are not used
6153           by ImageList.
6154         * ImageListStreamer.cs: Added a new internal constructor that takes an
6155           ImageList.ImageCollection and serializes Images based on
6156           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6157           match ImageList property name.
6158
6159 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6160
6161         * ListBox.cs: Fixes IndexFromPoint for last item
6162
6163 2005-09-27  Jackson Harper  <jackson@ximian.com>
6164
6165         * Form.cs: Set the position of new mdi children correctly.
6166
6167 2005-09-27  Jackson Harper  <jackson@ximian.com>
6168
6169         * MdiClient.cs: New mdi children need to be added to the back of
6170         the controls collection so the zorder is set correctly. Also add a
6171         count of all the child windows that have been created.
6172
6173 2005-09-27  Jackson Harper  <jackson@ximian.com>
6174
6175         * Form.cs (CreateParams): Setup MDI forms correctly.
6176
6177 2005-09-27  Jackson Harper  <jackson@ximian.com>
6178
6179         * MdiChildContext.cs:
6180         * MonthCalendar.cs:
6181         * UpDownBase.cs:
6182         * ListBox.cs:
6183         * ListView.cs:
6184         * TextBoxBase.cs:
6185         * TreeView.cs:
6186         * ScrollableControl.cs:
6187         * ComboBox.cs: Add implicit controls using the new implict control
6188         functionality in ControlCollection. Also try to block multiple
6189         control add in a suspend/resume layout to save some cycles.
6190         
6191 2005-09-27  Jackson Harper  <jackson@ximian.com>
6192
6193         * Control.cs: Add functionality to the controls collection to add
6194         'implicit controls' these are controls that are created by the
6195         containing control but should not be exposed to the user. Such as
6196         scrollbars in the treeview.
6197         * Form.cs: The list var of the ControlsCollection is no longer
6198         available because of the potential of implicit controls getting
6199         ignored by someone accessing the list directly.
6200
6201 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6202
6203         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6204           loose it's parent. (Fixed bug introduced in r49103 when we added
6205           setting the child parent to null on Remove)
6206
6207 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6208
6209         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6210         * Splitter.cs: Added missing attributes for BorderStyle property.
6211         * TextBoxBase.cs: Marked Calculate* methods internal.
6212         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6213         MS.NET.
6214
6215 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6216          
6217         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6218
6219 2005-09-25  Jackson Harper  <jackson@ximian.com>
6220
6221         * TreeView.cs: Update the node bounds correctly regardless of
6222         whether the node is visible.
6223
6224 2005-09-25  Jackson Harper  <jackson@ximian.com>
6225
6226         * ImageList.cs: Don't dispose the image after it is added to the
6227         image list. Only reformat images that need to be resized.
6228
6229 2005-09-25  Jackson Harper  <jackson@ximian.com>
6230
6231         * ImageList.cs: Don't set the format when changing the image.
6232
6233 2005-09-25  Jackson Harper  <jackson@ximian.com>
6234
6235         * TreeView.cs: We can't just assume the node has a font. Use the
6236         treeviews font if no node font is available.
6237
6238 2005-09-25  Jackson Harper  <jackson@ximian.com>
6239
6240         * TreeView.cs: Allow the scrollbars to be reset with negative
6241         values.
6242         - Don't add scrollbars to negative sized windows.
6243
6244 2005-09-23  Jackson Harper  <jackson@ximian.com>
6245
6246         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6247         old Mono.Posix. Also remove some stray code that shouldn't have
6248         been committed.
6249
6250 2005-09-23  Jackson Harper  <jackson@ximian.com>
6251
6252         * TreeView.cs: Attempt at proper sizing of the horizontal
6253         scrollbar. Also don't resize the scrollbars unless they are
6254         visible.
6255
6256 2005-09-23  Jackson Harper  <jackson@ximian.com>
6257
6258         * TreeView.cs: We don't need to expand the invalid area when the
6259         selection changes, as this is all drawn in the node's bounding
6260         box. The area needs to be expanded (previous typo was contracting
6261         it) when the focus rect moves.
6262
6263 2005-09-23  Jackson Harper  <jackson@ximian.com>
6264
6265         * TreeView.cs: Display the selection box under the correct
6266         circumstances. We were rendering white text with no selection box
6267         before.
6268
6269 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6270
6271         * TextControl.cs(Split): Now updates selection start/end if it points 
6272           into a line that's being split. Fixes a FIXME and bug #75258
6273
6274 2005-09-23  Jackson Harper  <jackson@ximian.com>
6275
6276         * Binding.cs:
6277         * ListControl.cs: Don't use the path when retrieving binding
6278         managers from the binding context. My bat sense tells me that the
6279         path is only used on insertion.
6280
6281 2005-09-22  Jackson Harper  <jackson@ximian.com>
6282
6283         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6284
6285 2005-09-22  Jackson Harper  <jackson@ximian.com>
6286
6287         * Splitter.cs: There are special cursors used for splitting.
6288         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6289
6290 2005-09-22  Jackson Harper  <jackson@ximian.com>
6291
6292         * Splitter.cs: Change the cursor appropriately when the splitter
6293         is moused over, so the user actually knows there is a splitter
6294         there.
6295
6296 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6297
6298        * Label.cs : Fix ToString method to give same output as MS.NET
6299
6300 2005-09-22  Jackson Harper  <jackson@ximian.com>
6301
6302         * TreeView.cs: Create the scrollbars when the handle is created
6303         and add them right away, just make them invisble. Also account for
6304         the window being shrunk vertically to the point that the vert
6305         scrollbar needs to be added.
6306         - Remove some 0.5 adjustments to get around anti aliasing issues.
6307         
6308 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6309          
6310         * MainMenu.cs: Fixes default value
6311         * MenuItem.cs: Fixes default value
6312
6313 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6314
6315         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6316
6317 2005-09-21  Jackson Harper  <jackson@ximian.com>
6318
6319         * Control.cs: Don't try to set the border style on the window if
6320         it hasn't been created. When the window is created the border
6321         style will be used.
6322
6323 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6324
6325         * Control.cs (Update): Don't call XplatUI if we don't have a
6326           window handle yet
6327
6328 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6329
6330         * ContainerControl.cs: Instead of throwing an exception, print
6331           a one-time warning about Validate not being implemented
6332         * XplatUIWin32.cs: Removed debug output
6333
6334 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6335
6336         * Control.cs: Only set XplatUI background if we expect the windowing
6337           system to handle the background. This stops controls that draw their
6338           own background from flickering
6339
6340         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6341           creation. This allows, amongst other things, using MWF X11 windows 
6342           with OpenGL.
6343
6344 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6345
6346         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6347           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6348           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6349           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6350           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6351           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6352           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6353           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6354           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6355           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6356           GridColumnStylesCollection.cs, 
6357           IDataGridColumnStyleEditingNotificationService.cs,
6358           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6359           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6360           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6361           TreeNodeCollection.cs, AmbientProperties.cs, 
6362           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6363           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6364           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6365           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6366           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6367           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6368           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6369           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6370           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6371           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6372           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6373           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6374           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6375           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6376           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6377           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6378           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6379           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6380           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6381           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6382           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6383           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6384           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6385           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6386           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6387           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6388           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6389           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6390           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6391           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6392           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6393           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6394           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6395           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6396           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6397           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6398           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6399
6400 2005-09-21  Jackson Harper  <jackson@ximian.com>
6401
6402         * TreeNode.cs: Call Before/After Expand not Collapse when
6403         expanding.
6404
6405 2005-09-20  Jackson Harper  <jackson@ximian.com>
6406         
6407         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6408
6409 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6410          
6411         * ListViewItem.cs:
6412                 - Fixes bug 76120
6413                 - Fixes proper storing of subitems
6414                 - Fixes not updated items
6415
6416 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6417
6418         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6419           things if our window handle isn't created yet. Also disabled 
6420           debug for TextBoxBase
6421
6422 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6423
6424         * MenuAPI.cs: Remove filtering of events to allow menu usage
6425
6426 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6427
6428         * Cursor.cs: Allow null to be passed to Cursor.Current.
6429
6430 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6431
6432         * ThemeWin32Classic.cs:
6433           - Change some private methods/fields to protected virtual so that 
6434             they can be accessed and overriden in derived classes
6435           - First refactoring of some methods. Derived themes now don't 
6436             need to duplicate the complete code from ThemeWin32Classic
6437         * ThemeNice.cs:
6438           - Added nice StatusBar
6439           - Derive from ThemeWin32Classic and not Theme
6440           - Removed duplicate ThemeWin32Classic code
6441
6442 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6443
6444         * Control.cs (ControlCollection.Add): If the value null is passed
6445         the control is ignored. 
6446
6447         Optimize this loop.
6448
6449 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6450
6451         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6452           PostQuitMessage state.
6453         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6454
6455 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6456
6457         * Application.cs: Our constructor will never get called, move 
6458           initialization to fields; fixes bug #75933
6459
6460 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6461
6462         * FileDialog.cs :
6463                 - Allow files to be selected properly using file name
6464                 combo box.
6465                 - Add ability to change diretory (absolute / relative)
6466                 using file name combo box.
6467
6468 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6469          
6470         * ListBox.cs: 
6471                 - Fixes Multicolumn listboxes item wrong calculations
6472                 - Allows to click when only one item is in the listbox
6473                 - Fixes crash when no items using keyboard navigation
6474
6475 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6476
6477         * ComboBox.cs: Reverted almost everything from the latest patch which
6478           broke ComboBox
6479
6480 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6481         
6482         * ToolTip.cs:
6483                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6484         * ComboBox.cs:
6485                 - When DropDownStyle is Simple, it does not show scrollbar 
6486                 to the last item of the list.
6487                 - When DropDownStyle is Simple, it crashed when the list was 
6488                 scrolled down with the down cursor key.
6489                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6490                 selected item was not shown.
6491                 - The position of the selected item was not preserved when 
6492                 the next dropdown happened.
6493         * ThemeWin32Classic.cs:
6494                 - Items were wrapped at the right end.
6495         * CheckedListBox.cs:
6496                 - Fixed Add method
6497         * ListBox.cs:
6498                 - Items should be fully shown.
6499                 - When resizing and vertical scrollbar disappeared, the item 
6500                 of index 0 should be on the top of the list.
6501                 - GetItemRectangle should consider the size of ver. scrollbar
6502         * StatusBar.cs:
6503                 - SizingGrip area should not be allocated when it is not 
6504                 displayed.
6505                 - Now it reflects MinWidth of the containing panel and 
6506                 fixed a crash that happens when its width becomes so small.
6507
6508 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6509
6510         * CheckedListBox.cs: Fixes bug 76028
6511         * ListBox.cs: Fixes bug 76028
6512
6513 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6514
6515         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6516         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6517
6518 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6519
6520         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6521
6522 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6523
6524         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6525
6526 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6527
6528         * IRootGridEntry.cs: Added
6529         * PropertyGridCommands.cs: Added
6530         * PropertiesTab.cs: Added missing methods and property
6531         * PropertyGridView.cs: Made class internal
6532         * PropertyGridTextBox.cs: Made class internal
6533
6534 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6535
6536         * MimeIcon.cs: Try to check some other environment variables
6537           if "DESKTOP_SESSION" returns "default"
6538
6539 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6540
6541         * ThemeNice.cs: Corrected background colors (e.g. menus)
6542         * ColorDialog.cs: Use correct background colors for controls
6543
6544 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6545
6546         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6547
6548 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6549
6550         * RichTextBox.cs: Added initial implementation
6551         * lang.cs: Removed. Was accidentally checked in long time ago
6552         * TODO: Removed. Contents were obsolete
6553
6554 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6555                                                                                 
6556         * PropertiesTab.cs : Added
6557
6558 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6559                                                                                 
6560         * PropertyGrid.cs : Update
6561         * PropertyGridView.cs : Update
6562         * System.Windows.Forms.resx : Added images and strings
6563
6564 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6565
6566         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6567  
6568 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6569
6570         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6571           a busy loop right after the Ungrab the X11 display is otherwise 
6572           blocked
6573
6574 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6575
6576         * ThemeWin32Classic.cs: Optimise the use of clipping
6577
6578 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6579
6580         * DataGrid.cs: fixes recursion bug
6581
6582 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6583
6584         * ThemeNice.cs: 
6585           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6586           - Cleanup
6587
6588 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6589
6590         * ThemeNice.cs: Draw nice ProgressBars
6591
6592 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6593
6594         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6595
6596         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6597         bug finder.
6598
6599 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6600
6601         * ThemeNice.cs:
6602           - Added nicer menu drawing
6603           - Updated DrawTab
6604           - some refactoring
6605
6606 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6607
6608         * CreateParams.cs (ToString): Made output match MS
6609         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6610             handle is already created (to avoid forcing window creation)
6611         * XplatUIX11.cs: Set window text to caption after creating window,
6612           in case Text was set before window was created
6613         * Form.cs: Use this.Text instead of a static string as caption
6614
6615 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6616
6617         * NotifyIcon.cs: Don't set the window to visible; this screws
6618           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6619           OnPaint without a bitmap)
6620         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6621           happen very often anyway; we could add the check to the WM_PAINT 
6622           event generation code
6623
6624 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6625
6626         * NotifyIcon.cs: Fill the icon area with a background color, to 
6627           avoid 'residue' when transparent icons are drawn
6628         * XplatUIX11.cs:
6629           - Handle whole_window == client_window when destroying windows
6630           - SystrayAdd(): Set client_window to whole_window value to
6631             get mouse and other events passed to NotifyIcon
6632
6633 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6634
6635         * Form.cs: Set proper default for Opacity property
6636         * NotifyIcon.cs:
6637           - ShowSystray(): Don't bother creating telling the OS
6638             about the systray item if no icon is provided
6639           - Now handles WM_NCPAINT message to deal with whole/client window
6640             split
6641           - Create window as visible to not get caught by Expose optimization
6642         * Hwnd.cs: Removed debug message
6643         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6644           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6645             PaintEventStart/End to use new client argument
6646         * TextBoxBase.cs:
6647           - Commented out debug messages
6648           - Switched PaintEventStart/End to use new client argument
6649         * XplatUI.cs: Added client window bool to PaintEventStart()/
6650           PaintEventEnd() calls, to support drawing in non-client areas
6651         * XplatUIDriver.cs: 
6652           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6653             calls, to support drawing in non-client areas
6654           - Added conditional compile to allow using MWF BeginInvoke 
6655             on MS runtime
6656         * XplatUIX11.cs:
6657           - Added some conditional debug output
6658           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6659             whole/client window split
6660           - Implemented handling of client argument to PaintEventStart()/End()
6661         * Control.cs:
6662           - Throw exception if BeginInvoke() is called and the window handle
6663             or one of the window's parent handles is not created
6664           - Added conditional compile to allow using MWF BeginInvoke on
6665             MS runtime
6666           - get_Parent(): Only sets parent if handle is created. This avoids
6667             forcing window handle creation when parent is set.
6668           - Now fires Layout and Parent changed events in proper order
6669           - Switched to use Handle instead of window.Handle for Z-Order setting,
6670             the get_Parent() patch above causes us to possibly get null for 'window'
6671           - Implemented handling of client argument to PaintEventStart()/End()
6672           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6673             default handling)
6674           - Now sends a Refresh() to all child windows when Refresh() is called
6675
6676 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6677
6678         * Form.cs: Added (non-functional) Opacity property
6679         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6680
6681 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6682         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6683           use export MONO_THEME=nice to activate it.
6684           Currently supported controls:
6685           - Button
6686           - ComboBox
6687           - ScrollBar
6688           - TabControl (TabAlignment.Top only, other will follow)
6689         * ThemeEngine.cs: Add theme nice
6690         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6691           if enabled
6692
6693 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6694
6695         * Splitter.cs: Resize docked control and its neighbor.
6696
6697 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6698         -- Making Windows with Menus layout correctly --
6699         * Form.cs : The first leg of the fix
6700                 Menu setter - adjust Client Size as needed to make space for the menu
6701                 SetClientSizeCore - doesn't call base version to be able to pass the 
6702                         menu handle to XplatUI.CalculateWindowRect
6703         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6704         * XplatUIX11.cs: The critical second leg of the fix
6705                 GetWindowPos needs to use a recalculated client_rect
6706                 so that resizing the window doesn't break layout of child controls. 
6707                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6708                 Lots of \t\n killed
6709
6710 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6711
6712         * Label.cs: Now properly recalculates width and height on Font and Text
6713           changes if AutoSize is set
6714
6715 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6716         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6717
6718 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6719
6720         * ImageList.cs: Makes ToString method compatible with MS
6721
6722 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6723
6724         * MenuAPI.cs: fixes bug 75716
6725
6726 2005-08-11 Umadevi S <sumadevi@novell.com>
6727         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6728
6729 2005-08-11 Umadevi S <sumadevi@novell.com>
6730         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6731
6732 2005-08-10  Umadevi S <sumadevi@novell.com>
6733         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6734
6735 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6736
6737         * Menu.cs: fixes bug 75700
6738         * MenuAPI.cs: fixes navigation issues
6739
6740 2005-08-09  Umadevi S <sumadevi@novell.com>
6741         * CheckedListBox.cs - simple fix for GetItemChecked.
6742
6743 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6744
6745         * ComboBox.cs: Serveral fixes
6746         * ListBox.cs: Serveral fixes
6747
6748 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6749
6750         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6751         * ListBox.cs: Fixes FindString methods
6752
6753 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6754
6755         * DataGrid.cs: fixes bugs exposed by new tests
6756
6757 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6758
6759         * Mime.cs: Compile Mono assembly references only if compiling
6760           with Mono (Allows to build with VS.Net again)
6761
6762 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6763
6764         * Control.cs (PaintControlBackground): Draw background image
6765         corrrectly.
6766         (CheckForIllegalCrossThreadCalls): Stubbed.
6767         
6768         * Form.cs (OnCreateControl): Center when should be centered.
6769         
6770         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6771
6772 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6773
6774         * Binding.cs: Binding to properties should be case unsensitive
6775
6776 2005-07-18 vlindos@nucleusys.com
6777
6778         * DataGrid.cs: fixes setmember order
6779
6780 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6781
6782         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6783         * FileDialog.cs: FileDialog is now resizable and uses the new
6784           MimeIconEngine
6785
6786 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6787
6788         * DataGridTextBoxColumn.cs: default value
6789         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6790         * GridTableStylesCollection.cs: fixes checking MappingName
6791         * DataGridDrawingLogic.cs: fixes drawing logic issues
6792         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6793         * DataGrid.cs: fixes    
6794
6795 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6796
6797         * MimeGenerated.cs: Use case sensitive comparer for
6798           NameValueCollections
6799
6800 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6801
6802         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6803         * ThemeWin32Classic.cs: bug fixes, code refactoring
6804         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6805         * DataGrid.cs: bug fixes, code refactoring
6806         * DataGridTextBox.cs: bug fixes, code refactoring
6807         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6808         * Theme.cs:  bug fixes, code refactoring
6809
6810 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6811
6812         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6813           and other text box usage
6814
6815 2005-07-01  Jackson Harper  <jackson@ximian.com>
6816
6817         * TabControl.cs: Make sure the bottom of the tab covers the pages
6818         border.
6819
6820 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6821
6822         * Form.cs (ShowDialog): Assign owner of the dialog
6823         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6824           might have been moved to a tag with different height
6825
6826 2005-06-30  Jackson Harper  <jackson@ximian.com>
6827
6828         * Form.cs: Don't create an infinite loop when setting focus
6829         * MenuItem.cs: Don't dirty the parents if we don't have any
6830
6831 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6832
6833         * LibSupport.cs: Rename
6834
6835 2005-06-29  Peter Bartok  <pbartok@novell.com>
6836
6837         * TextBoxBase.cs: Re-align caret after deleting a character
6838         * TextControl.cs:
6839           - DeleteChars(): Ensure that tag covers the provided position
6840           - StreamLine(): Drop reference for dropped tag
6841
6842 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6843
6844         * TextControl.cs: 
6845           - Selections now work properly, anchoring at the initial location
6846             and properly extending in either direction (SetSelectionToCaret(),
6847             SetSelectionStart() and SetSelectionEnd())
6848           - No longer redraws the whole control on selection change, now
6849             calculates delta between previous and new selection and only
6850             invalidates/redraws that area
6851           - Fixed FindPos() math off-by-one errors
6852           - Changed DeleteChars() to verify the provided tag covers the
6853             provided position, selections may have a tag that doesn't cover
6854             the position if the selection is at a tag border
6855           - Fixed off-by-one errors in DeleteChars()
6856           - Added missing streamlining check in DeleteChars() to remove
6857             zero-length tags
6858           - Implemented Invalidate() method, now properly calculates exposures
6859             between two given lines/positions
6860           - Implemented SetSelection()
6861           - Obsoleted and removed FixupSelection()
6862           - Improved RecalculateDocument() logic, removing code duplication
6863
6864 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6865
6866         * LibSupport.cs: changes to match different input/output arguments.
6867
6868 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6869
6870         * LibSupport.cs: added libsupport.so init routine.
6871
6872 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6873         
6874         * ControlBindingsCollection.cs
6875                 - Throws an exception on null datasource when adding
6876                 - Checks for duplicated bindings when adding
6877
6878 2005-06-28  Jackson Harper  <jackson@ximian.com>
6879
6880         * TreeView.cs (OnKeyDown): Support left and right properly
6881         (navigates as well as expanding and collapsing.
6882         - Add support for Multiply, this expands all the selected nodes
6883         children.
6884         - Fix some tabbing.
6885
6886 2005-06-28  Jackson Harper  <jackson@ximian.com>
6887
6888         * TreeView.cs: Implement keyboard navigation, currently supports,
6889         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6890         support for toggling checkboxes with the space bar.
6891
6892 2005-06-28  Jackson Harper  <jackson@ximian.com>
6893
6894         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6895         tree.
6896
6897 2005-06-28  Jackson Harper  <jackson@ximian.com>
6898
6899         * TreeView.cs: Add missing event.
6900
6901 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6902
6903         * TextControl.cs:
6904           - Made line ending size configurable (now allows for counting 
6905             lineendings as \n or \r\n)
6906           - Added margin to viewport to keep caret visible on right side
6907           - Fixed translation routines for line/pos to documentpos to consider
6908             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6909           - Fixed some line-endings to be unix style
6910           - Fixed Document.FormatText to perform it's calculations 1-based
6911           - Added descriptions for a few methods that might otherwise get 
6912             used wrong
6913           - Added NOTE section with some basic conventions to remember at 
6914             the top of the file
6915           - Major fixup for RichTextBox selection drawing:
6916             * Fixed crashes when multiple tags on a single line were selected
6917             * fixed selection box drawing not overlaying text
6918             * fixed bogus offset calculation for tags not starting at index 1
6919             * Switched behaviour from using multiple Substrings of a 
6920               StringBuilder.ToString() to using multiple 
6921               StringBuilder.ToString(start, length) statements, hoping this is
6922               faster (kept original version commented out in the code, in case
6923               original version was faster)
6924         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6925           alignment != Left
6926         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6927           call it as well
6928
6929 2005-06-27  Jackson Harper  <jackson@ximian.com>
6930
6931         * TabControl.cs: Move to the left and right with the arrow
6932         keys. These keys don't cycle beyond first and last like
6933         tab. Refresh all the tabs when scrolling them to the left or
6934         right.
6935
6936 2005-06-27  Jackson Harper  <jackson@ximian.com>
6937
6938         * TabControl.cs:
6939           - ToString: Added method
6940           - CreateParams: Remove TODO and comment
6941           - OnKeyDown: Cycle through bounds properly.
6942           - SelectedIndex: Scroll to the right or left if we need to
6943           display the newly selected tab.
6944
6945 2005-06-23  Jackson Harper  <jackson@ximian.com>
6946
6947         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
6948         set.
6949
6950 2005-06-23  Jackson Harper  <jackson@ximian.com>
6951
6952         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
6953         CTRL-SHIFT-TAB, and HOME, END are there any others?
6954
6955 2005-06-23  Jackson Harper  <jackson@ximian.com>
6956
6957         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
6958
6959 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6960         
6961         * DataGridTextBoxColumn.cs: fixes and enhancements
6962         * ThemeWin32Classic.cs: fixes and enhancements
6963         * DataGridBoolColumn.cs:  fixes and enhancements
6964         * DataGridDrawingLogic.cs:  fixes and enhancements
6965         * CurrencyManager.cs: fixes and enhancements
6966         * DataGrid.cs: fixes and enhancements
6967         * DataGridColumnStyle.cs:  fixes and enhancements
6968
6969 2005-06-22  Jackson Harper  <jackson@ximian.com>
6970
6971         * TabControl.cs: Add some missing methods that just call into the
6972         base. Make the TabPageCollection's IList interface behave in the
6973         same manner as the MS implementation.
6974
6975 2005-06-22  Peter Bartok  <pbartok@novell.com> 
6976
6977         * TextControl.cs: Added sanity check
6978         * TextBoxBase.cs: 
6979           - Fixed wrapping behaviour, don't set wrap on single line controls
6980             (this fixes the breakage of colordialog introduced in an earlier
6981              checkin)
6982           - Added rudimentary support for autoscrolling right-aligned controls
6983             (still needs fixing, also, center alignment scroll is missing)
6984
6985 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
6986         
6987         * ScrollBar.cs: Fixes thumbpos on Maximum values
6988
6989 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
6990         
6991         * PropertyGridView.cs: Pass context information to UITypeEditors 
6992
6993 2005-06-21  Peter Bartok  <pbartok@novell.com> 
6994
6995         * TextBoxBase.cs:
6996           - Now calling PositionCaret with absolute space coordinates
6997           - Enabled vertical scrolling
6998           - Better tracking of scrollbar changes, tied into WidthChange
6999             event
7000           - Improved cursor tracking
7001           - Removed debug output
7002         * TextControl.cs:
7003           - PositionCaret coordinates are now works in absolute space, not 
7004             the canvas
7005           - Improved tracking of document size
7006           - Added events for width and height changes
7007
7008 2005-06-21  Peter Bartok  <pbartok@novell.com>
7009
7010         * Form.cs: Set focus to active control when form is activated
7011         * TextControl.cs: 
7012           - Added word-wrap functionality to RecalculateLine() 
7013           - Added some short function descriptions for VS.Net to aid in
7014             writing dependent controls
7015           - Added Caret property, returning the current coords of the caret
7016           - Added ViewPortWidth and ViewPortHeight properties
7017           - Added Wrap property
7018           - Added CaretMoved event
7019           - Removed some old debug code
7020           - Split() can now create soft splits
7021           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7022           - Added method to format existing text
7023           - Fixed size/alignment calculations to use viewport
7024           - RecalculateDocument now can handle changing line-numbers while
7025             calculating lines
7026
7027         * TextBox.cs:
7028           - Added some wrap logic, we don't wrap if alignment is not left
7029           - Added casts for scrollbar var, base class switched types to
7030             also support RichTextBoxA
7031           - Implemented handling of scrollbar visibility flags
7032
7033         * TextBoxBase.cs:
7034           - Switched scrollbars type to RichTextBoxScrollBars to support
7035             RichTextBox
7036           - Added tracking of canvas width/height
7037           - Switched scrollbars to be not selectable (to keep focus on text)
7038           - Added central CalculateDocument() method to handle all redraw
7039             requirements
7040           - Added ReadOnly support
7041           - Added WordWrap support
7042           - Fixed handling of Enter key (we now treat it as a DialogKey)
7043           - Fixed caret positioning when h or v scroll is not zero
7044           - Fixed placing/generation of vertical scrollbar
7045           - Added CalculateScrollBars() method to allow updating scrollbar
7046             limits and visibility
7047           - Fixed handling of horizontal scroll
7048           - Added handling of vertical scroll
7049           - Implemented auto-'jump' when caret moves to close to a left or
7050             right border and there is text to be scrolled into view (currently
7051             there's the potential for a stack overflow, until a bug in
7052             scrollbar is fixed)
7053
7054 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7055         
7056         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7057
7058 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7059
7060         * Mime.cs:
7061         - added inodes.
7062         - return application/x-zerosize for files with size zero
7063           (if no extension pattern matches).
7064         - check matches collection for strings too.
7065         - return only the first mime type if the name value
7066           collection has more than one mime type.
7067
7068 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7069         
7070         * PropertyGrid.cs: Cleaned up some TODOs
7071         * PropertyGridView.cs: Added support for UITypeEditors
7072
7073 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7074         
7075         * DataGrid.cs: clears cached value
7076
7077 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7078
7079         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7080         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7081         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7082         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7083         
7084 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7085
7086         * ThemeWin32Classic.cs: fixes colour
7087
7088 2005-06-15  Peter Bartok  <pbartok@novell.com>
7089
7090         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7091         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7092         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7093         * Control.cs: Added some MWFCategory and MWFDescription attributes
7094         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7095
7096 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7097
7098         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7099         usage
7100
7101 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7102
7103         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7104         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7105         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7106         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7107         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7108         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7109
7110 2005-06-13  Jackson Harper  <jackson@ximian.com>
7111
7112         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7113         isn't printed when the user enables dropping. (X11 does accept
7114         drops).
7115         
7116 2005-06-13  Jackson Harper  <jackson@ximian.com>
7117
7118         * TreeView.cs: Remove some TODOS.
7119
7120 2005-06-13  Jackson Harper  <jackson@ximian.com>
7121
7122         * Form.cs: Hook into the mdi framework.
7123         * MdiClient.cs: Use the base control collections add method so
7124         parents get setup correctly. Set the default back colour and dock
7125         style.
7126         * MdiChildContext.cs: New class, this bad actor handles an
7127         instance of an MDI window. Right now there is only basic
7128         support. You can drag, close, and resize windows. Minimize and
7129         Maximize are partially implemented.
7130
7131 2005-06-13  Jackson Harper  <jackson@ximian.com>
7132
7133         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7134         freaky when both vals are negative. NOTE: There are probably other
7135         places in XplatUIX11 that this needs to be done.
7136
7137 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7138
7139         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7140         * DataGridColumnStyle.cs: fixes signature
7141
7142 2005-06-12  Jackson Harper  <jackson@ximian.com>
7143
7144         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7145         windows.
7146
7147 2005-06-11  Jackson Harper  <jackson@ximian.com>
7148
7149         * StatusBarPanel.cs: Signature cleanups. Implement
7150         BeginInit/EndInit.
7151
7152 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7153
7154         * DataGridTextBoxColumn.cs: Honors aligment
7155         * GridColumnStylesCollection.cs: Contains is case unsensitive
7156         * GridTableStylesCollection.cs: several fixes
7157         * DataGridTableStyle.cs: default column creation
7158         * DataGridDrawingLogic.cs: fixes
7159         * CurrencyManager.cs: ListName property
7160         * DataGrid.cs: multiple styles support
7161         * DataGridColumnStyle.cs: fixes
7162         
7163
7164 2005-06-10  Peter Bartok  <pbartok@novell.com>
7165
7166         * Control.cs(Select): Moved SetFocus call to avoid potential
7167           loops if controls change the active control when getting focus
7168         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7169           the up/down buttons
7170
7171 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7172
7173         * ImageListConverter.cs: Implemented
7174
7175 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7176
7177         * MonthCalendar.cs: Wired in NumericUpDown control for year
7178
7179 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7180
7181         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7182           DoubleClick events, since they are not meant to be fired.
7183
7184 2005-06-09  Peter Bartok  <pbartok@novell.com>
7185
7186         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7187           Jonathan's standalone controls into MWF, implemented missing
7188           events, attributes and methods; added xxxAccessible classes
7189         * AccessibleObject.cs: Made fields internal so other classes
7190           can change them if needed
7191
7192 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7193
7194         * UpDownBase.cs: Complete implementation
7195         * NumericUpDown.cs: Complete implementation
7196         * DomainUpDown.cs: Complete implementation
7197
7198 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7199
7200         * DataGridTextBoxColumn.cs: drawing fixes
7201         * DataGridCell.cs: fixes ToString method to match MSNet
7202         * DataGridTableStyle.cs: fixes
7203         * DataGridBoolColumn.cs: fixes, drawing
7204         * DataGridDrawingLogic.cs: fixes, new methods
7205         * DataGridTextBox.cs: Keyboard and fixes
7206         * DataGrid.cs:
7207                 - Keyboard navigation
7208                 - Scrolling fixes
7209                 - Row selection (single, multiple, deletion, etc)
7210                 - Lots of fixes
7211         
7212 2005-06-07  Jackson Harper  <jackson@ximian.com>
7213
7214         * ThemeWin32Classic.cs: Clear the background area when drawing
7215         buttons.
7216
7217 2005-06-06  Peter Bartok  <pbartok@novell.com>
7218
7219         * ImageListStreamer.cs: Fixed signature for GetData
7220         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7221         * ComboBox.cs:
7222           - Added missing ChildAccessibleObject class
7223           - Added missing OnXXXFocus overrides, switched to using those
7224             instead of the event handler
7225         * Control.cs:
7226           - Added Parent property for ControlAccessibleObject
7227           - Fixed signatures
7228           - Fixed attributes
7229           - Added ResetBindings()
7230         * ListBindingConverter.cs: Implemented some methods
7231         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7232         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7233         * ContainerControl.cs: Fixed signature, now subscribing to the
7234           ControlRemoved event instead of overriding the handler, LAMESPEC
7235         * CurrencyManager.cs: Added missing attribute
7236         * MonthCalendar.cs: Added missing properties
7237
7238 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7239
7240         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7241         
7242 2005-06-06  Gaurav Vaish and Ankit Jain
7243
7244         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7245         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7246         
7247 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7248
7249         * Control.cs: fixes CreateParams Width / Height.
7250
7251 2005-06-05  Peter Bartok  <pbartok@novell.com>
7252
7253         * Win32DnD.cs: Removed compilation warnings
7254
7255 2005-06-05  Peter Bartok  <pbartok@novell.com>
7256
7257         * Control.cs (CreateParams): Since we don't know if one of the
7258           properties we use is overridden, lets make sure if we fail accessing
7259           we continue with a backup plan
7260
7261 2005-06-05  Peter Bartok  <pbartok@novell.com>
7262
7263         * Win32DnD.cs:
7264           - Removed debug output
7265           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7266             struct
7267           - Plugged resource leak
7268         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7269           MS size
7270
7271 2005-06-05  Peter Bartok  <pbartok@novell.com>
7272
7273         * XplatUIWin32.cs: Removed DnD code
7274         * Win32DnD.cs: Implemented drop source and drop target functionality
7275
7276 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7277
7278         * UpDownBase.cs: remove duplicate addition of event, enable some code
7279         that was commented out.
7280         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7281         Validate input when a key is pressed. It works fine now for every
7282         combination of Hexadecimal. Only missing some drawing love when sharing
7283         space with other controls.
7284
7285 2005-06-04  Peter Bartok  <pbartok@novell.com>
7286
7287         * Control.cs:
7288           - We need to pass a window for DragDrop, so enable callback events
7289           - Added DnD callback events when being a DragSource
7290         * XplatUI.cs (StartDrag): Added window handle argument
7291         * XplatUIDriver.cs (StartDrag): Added window handle argument
7292         * QueryContinueDragEventArgs: Made fields internally accessible so
7293           drivers can set them
7294         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7295           can set them
7296
7297 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7298
7299         * DataGridTextBoxColumn.cs: column text editing
7300         * DataGridTableStyle.cs: Respect columns styles created by the user
7301         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7302         * DataGridBoolColumn.cs: bool column editing
7303         * DataGrid.cs: fixes to scrolling, properties, etc
7304         * DataGridTextBox.cs: handle keyboard
7305         * DataGridColumnStyle.cs: fixes
7306
7307 2005-06-02  Jackson Harper  <jackson@ximian.com>
7308
7309         * ImageListStreamer.cs: Somewhat broken implementation of
7310         GetObjectData. The RLE needs some work to match MS properly.
7311
7312 2005-06-02  Jackson Harper  <jackson@ximian.com>
7313
7314         * X11Dnd.cs: Attempting to keep at least one file in MWF
7315         monostyled.
7316
7317 2005-06-02  Peter Bartok  <pbartok@novell.com>
7318
7319         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7320           that way
7321
7322 2005-06-02  Peter Bartok  <pbartok@novell.com>
7323
7324         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7325         * XplatUI.cs: Added DoDragDrop() method
7326         * XplatUIDriver.cs: Added DoDragDrop() method
7327
7328 2005-06-02  Jackson Harper  <jackson@ximian.com>
7329
7330         * Splitter.cs: Implement BorderStyle.
7331
7332 2005-06-02  Jackson Harper  <jackson@ximian.com>
7333
7334         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7335         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7336         X11 using XDND.
7337
7338 2005-06-02  Peter Bartok  <pbartok@novell.com>
7339
7340         * DataObject.cs:
7341           - Added Data setter
7342           - Fixed broken insertion code for SetData, now also
7343             overwrites any existing entry of the same format name
7344         * Hwnd.cs: Added list of pointers that automatically gets
7345           freed when the window is disposed
7346         * XplatUI.cs: Call driver initialization method when loading
7347           a driver
7348         * Control.cs:
7349           - OnDragLeave takes EventArgs, not DragEventArgs
7350           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7351             supported
7352           - Forces style update when drop state changes
7353         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7354           not perfect since we cannot (yet) call the IDataObject.GetData()
7355           method, we keep getting 0x80004005 error, dunno why)
7356
7357 2005-06-02  Peter Bartok  <pbartok@novell.com>
7358
7359         * DragEventArgs.cs: Make fields internal so we can cache the
7360           object and re-set the fields from XplatUI
7361
7362 2005-06-02  Jackson Harper  <jackson@ximian.com>
7363
7364         * Control.cs: Add some internal methods so the DnD subsystem can
7365         raise DnD events. Also call into the driver when AllowDrop is set.
7366         * XplatUI.cs:
7367         * XplatUIDriver.cs: New method for setting whether or not a window
7368         is allowed to accept drag and drop messages.
7369                 
7370 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7371         
7372         * ScrollBar.cs: Make sure that values sent in Scroll events
7373         are always between Maximum and Minimum.
7374
7375 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7376
7377         * Menu.cs: Call MenuChanged when menuitem visibility has been
7378         changed.
7379         * MenuItem.cs: Rebuild menu when item is (not) visible.
7380         * MainMenu.cs: MainMenu has special MenuChanged.
7381         * Theme.cs: Caption and FrameBorderSize are not fixed.
7382         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7383         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7384         * XplatUIX11.cs,
7385         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7386         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7387
7388 2005-05-30  Jackson Harper  <jackson@ximian.com>
7389
7390         * DataFormat.cs: We can't statically initialize this stuff because
7391         it calls into the xplatui and could create a loop. So we lazy init
7392         it.
7393
7394 2005-05-28  Jackson Harper  <jackson@ximian.com>
7395
7396         * Control.cs: Proper implementation of Product(Name/Version).
7397
7398 2005-05-27  Jackson Harper  <jackson@ximian.com>
7399
7400         * DataObject.cs: Dont crash if no data is found.
7401
7402 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7403         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7404                 as per status page, guessing it should be set to true
7405
7406 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7407
7408         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7409         * DataGridTableStyle.cs: set proper formatting text, def header text
7410         * ThemeWin32Classic.cs: new themable paramaters
7411         * DataGridBoolColumn.cs: paint check box, get data, fixes
7412         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7413         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7414         * DataGridColumnStyle.cs: fixes
7415         * Theme.cs: new themable paramaters
7416                 
7417 2005-05-26  Peter Bartok  <pbartok@novell.com>
7418
7419         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7420
7421 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7422         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7423
7424 2005-05-24  Peter Bartok  <pbartok@novell.com>
7425
7426         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7427           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7428           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7429           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7430           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7431           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7432           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7433           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7434           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7435           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7436           missing attributes, etc
7437         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7438
7439 2005-05-24  Peter Bartok  <pbartok@novell.com>
7440
7441         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7442           when user tries to get help
7443         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7444           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7445           to suppress warnings
7446         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7447           avoid unreachable code warning
7448
7449 2005-05-20  Peter Bartok  <pbartok@novell.com>
7450
7451         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7452
7453 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7454
7455         * DataGridTextBoxColumn.cs: Basic painting methods
7456         * DataGridTableStyle.cs: Set table style in the column
7457         * ThemeWin32Classic.cs: Use Theme for colors
7458         * DataGridDrawingLogic.cs: Implement more drawing
7459         * DataGrid.cs: drawing, theming, enhacements, fixes
7460         * DataGridColumnStyle.cs: fixes, drawing
7461         * Theme.cs: theming for Datagrid
7462
7463 2005-05-20  Peter Bartok  <pbartok@novell.com>
7464
7465         * Cursor.cs: Implemented GetObjectData() method
7466
7467 2005-05-20  Peter Bartok  <pbartok@novell.com>
7468
7469         * Cursors.cs: Added setting of cursor name
7470         * Cursor.cs:
7471           - Implemented constructors
7472           - Implemented Draw and DrawStretched
7473           - Implemented Current property
7474           - Implemented == and != operators
7475           - Implemented Dispose()
7476           - Implemented ToString
7477           - Added missing attributes
7478         * XplatUIX11.cs:
7479           - Added missing reset for OverrideCursor when DoEvents is called
7480           - Fixed creation of cursor, logic was wrong
7481         * XplatUIWin32.cs:
7482           - Added missing reset for OverrideCursor when DoEvents is called
7483           - Fixed creation of cursor, bit arrays were swapped
7484         * Clipboard.cs: Removed obsolete MonoTODO attribute
7485
7486 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7487
7488         * ComboBox.cs: fixes OnSelectedItemChanged
7489         * ControlBindingsCollection.cs: fixes item range check
7490
7491 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7492
7493         * UpDownBase.cs:
7494                 - Calc preferred height properly
7495                 - Implement missing properties
7496                 
7497         * NumericUpDown.cs: Implement missing events
7498
7499 2005-05-19  Jackson Harper  <jackson@ximian.com>
7500
7501         * TabControl.cs: New method that resizes the tab pages before
7502         redrawing them. This as needed as the control is double buffered
7503         and sizing will not be recalculated unless ResizeTabPages is
7504         called.
7505         * TabPage.cs: Set base.Text instead of Text in the constructor so
7506         that UpdateOwner does not get called. Use the new Redraw method of
7507         TabControl instead of Refresh so the sizing is recalculated.
7508         * ThemeWin32Classic.cs: Draw the text for button tabs.
7509
7510 2005-05-19  Jackson Harper  <jackson@ximian.com>
7511
7512         * Control.cs: Paint control background images. Fix typo where
7513         PaintControlBackground was not getting called correctly.
7514
7515 2005-05-19  Peter Bartok  <pbartok@novell.com>
7516
7517         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7518           I can investigate, apparently I broke FileDialog
7519
7520 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7521
7522         * AxHost.cs: Some simple properties.
7523         * Control.cs: window must be accessible after ctor.
7524         * Form.cs: Added TransparencyKey property.
7525         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7526         * XplatUIWin32.cs: SetBorderStyle implemented.
7527
7528 2005-05-18  Peter Bartok  <pbartok@novell.com>
7529
7530         * DataObject.cs: Entries are not global but particular to the
7531           DataObject, now it behaves that way
7532         * XplatUIWin32.cs: Implemented Clipboard methods
7533         * Clipboard.cs: Implemented
7534         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7535         * XplatUIOSX.cs: Updated to final clipboard prototypes
7536         * XplatUIX11.cs: Implemented Clipboard methods
7537         * XplatUIDriver.cs: Updated to final clipboard prototypes
7538         * XplatUIStructs.cs:
7539           - Added BITMAPINFOHEADER struct
7540           - Added ClipboardFormats enum
7541         * X11Structs.cs:
7542           - Added ClipboardStruct
7543           - Added Atom enum items for clipboard types
7544           - Fixed atom types for Selection event structures
7545         * DataFormats.cs:
7546           - Added internal properties and methods for drivers to enumerate
7547             all known formats
7548           - Switched initialization method to allow drivers to assign their
7549             own IDs even for the MS predefined clipboard IDs
7550         * XplatUI.cs: Updated to final clipboard interface
7551
7552 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7553         * PropertyGridView.cs: Fixed compiler warnings.
7554
7555 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7556         * PropertyGrid.cs: Added some event calls
7557         * PropertyGridView.cs: Change drawing code to use double buffering
7558         * PropertyGridTextBox.cs: Changed Text property name
7559         * GridItem.cs: Added Bounds property.
7560         * GridEntry.cs: Added Bounds property.
7561
7562 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7563
7564         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7565         since GetType() may not return the correct type if the object is
7566         a remoting proxy.
7567
7568 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7569
7570         * TreeNodeCollection.cs: fixes get/set item ranges
7571         
7572 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7573
7574         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7575                 
7576 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7577
7578         * ComboBox.cs: Fix item range comparation
7579         * ListView.cs: Fix item range comparation
7580
7581 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7582
7583         * FontDialog.cs:
7584           - Clear example panel when OnPaint is called
7585           - Better solution for displaying the example panel text
7586           - Select default indexes in the ListBoxes
7587
7588 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7589
7590         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7591
7592 2005-05-11  Peter Bartok  <pbartok@novell.com>
7593
7594         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7595         * SelectionRangeConverter.cs: Implemented
7596         * PropertyGrid.cs: Fixed attribute value
7597         * Control.cs:
7598           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7599           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7600         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7601           that's common to all drivers. First methods to go there are
7602           Sebastien Pouliot's CAS Stack Propagation helper methods
7603         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7604           Sebastien Pouliot for CAS Stack Propagation
7605
7606 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7607
7608         * OSXStructs.cs:
7609           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7610
7611 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7612
7613         * DataGridTextBoxColumn.cs: fixed some members
7614         * GridColumnStylesCollection.cs: indexed column is case insensitive
7615         * DataGridTableStyle.cs: fixes
7616         * ThemeWin32Classic.cs: add new theme parameter
7617         * Theme.cs: add new theme parameter
7618         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7619         * DataGrid.cs: fixes, new internal properties, etc.
7620         * DataGridColumnStyle.cs: allows to set grid value
7621         *
7622
7623 2005-05-10  Peter Bartok  <pbartok@novell.com>
7624
7625         * AccessibleObject.cs:
7626           - Removed MonoTODO attribute on help, method is correct
7627           - Fixed Bounds property
7628         * AxHost.cs: Moved MonoTODO
7629         * ButtonBase.cs: Now setting AccessibleObject properties
7630         * RadioButton.cs: Setting proper AccessibleObject role
7631         * CheckBox.cs: Setting proper AccessibleObject role
7632         * ControlBindingsCollection.cs: Added properties, methods and attributes
7633         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7634           userdefined DataFormats.Format items as well
7635         * ListControl.cs: Removed data_member from the public eye
7636         * OpenFileDialog.cs:
7637           - Made class sealed
7638           - Added missing attributes
7639         * SaveFileDialog.cs: Added missing attributes
7640         * ImageListStreamer.cs: Fixed code that caused warnings
7641         * LinkLabel.cs: Removed unreachable code
7642         * TreeView.cs: Fixed code that caused warnings
7643         * PropertyGridView.cs: Fixed code that caused warnings
7644         * GridColumnStylesCollection.cs: Added missing attributes
7645         * GridTableStylesCollection: Added missing attribute
7646         * PropertyManager: Added .ctor
7647         * SecurityIDType: Added
7648         * DataObject.cs: Implemented class
7649         * LinkArea.cs: Added missing attribute
7650
7651 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7652
7653         * RadioButton.cs: call base method to allow to fire OnClick event
7654         * UpDownBase.cs: OnMouseUp call base method
7655         * CheckedListBox.cs: call base method before returning
7656         * TrackBar.cs: call base method before returning
7657         
7658
7659 2005-05-10  Peter Bartok  <pbartok@novell.com>
7660
7661         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7662           for messages
7663
7664 2005-05-10  Peter Bartok  <pbartok@novell.com>
7665
7666         * DataFormats.cs: Implemented
7667         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7668           XplatUIX11.cs: Added Clipboard APIs
7669         * XplatUIWin32.cs: Implemented Clipboard APIs
7670         * FolderBrowserDialog.cs: Added missing event, attributes
7671
7672 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7673
7674         * CheckBox.cs: call base method to allow to fire OnClick event
7675
7676 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7677
7678         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7679
7680 2005-05-06  Peter Bartok  <pbartok@novell.com>
7681
7682         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7683         * Screen.cs: Implemented
7684         * HelpNavigator.cs: Added
7685         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7686           property
7687         * HelpProvider.cs: Implemented all we can do until we have a CHM
7688           help library (which means that "What's This" does work now)
7689
7690 2005-05-06  Jackson Harper  <jackson@ximian.com>
7691
7692         * XplatUIX11.cs: Fix waking up the main loop.
7693                 
7694 2005-05-05  Peter Bartok  <pbartok@novell.com>
7695
7696         * XplatUI.cs: Updated revision
7697         * Form.cs: Removed enless loop
7698         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7699         * Label.cs (OnPaint): Added call to base.OnPaint()
7700         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7701         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7702         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7703         * AxHost.cs: Added
7704         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7705         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7706           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7707           reuse of ToolTipWindow by other controls
7708         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7709         * XplatUIX11.cs: Now clipping drawing area (experimental)
7710         * PictureBox.cs: Moved base.OnPaint() call to end of method
7711         * Theme.cs: Fixed ToolTip abstracts to match new format
7712         * ErrorProvider.cs: Implemented
7713
7714 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7715
7716         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7717         * LinkLabel.cs:
7718                 - Adds cursors
7719                 - Handles focus
7720                 - Implements LinkBehavior
7721                 - Fixes many issues
7722
7723 2005-05-03  Jackson Harper  <jackson@ximian.com>
7724
7725         * ListView.cs: Calculate the scrollbar positioning on resize and
7726         paint, so they get put in the correct place.
7727
7728 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7729
7730         * ColorDialogs.cs: The small color panels are now handled by
7731           SmallColorControl. This fixes drawing of the focus rectangle
7732           and adds a 3D border.
7733
7734 2005-05-03  Peter Bartok  <pbartok@novell.com>
7735
7736         * Control.cs: Modified version of Jonathan Chamber's fix for
7737           double-buffering
7738
7739 2005-05-03  Jackson Harper  <jackson@ximian.com>
7740
7741         * ListView.cs: Remove redraw variable. Control now handles whether
7742         or not a redraw needs to be done, and will only raise the paint
7743         event if redrawing is needed.
7744
7745 2005-05-03  Jackson Harper  <jackson@ximian.com>
7746
7747         * Splitter.cs: No decorations for the splitter form. Cache the
7748         hatch brush.
7749
7750 2005-05-03  Jackson Harper  <jackson@ximian.com>
7751
7752         * TreeView.cs: Use dashed lines to connect nodes. Use the
7753         ControlPaint method for drawing the focus rect instead of doing
7754         that in treeview.
7755
7756 2005-05-02  Peter Bartok  <pbartok@novell.com>
7757
7758         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7759
7760 2005-04-29  Jackson Harper  <jackson@ximian.com>
7761
7762         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7763         entire image buffer. Just clear the clipping rectangle.
7764
7765 2005-04-29  Jackson Harper  <jackson@ximian.com>
7766
7767         * ThemeWin32Classic.cs: Don't draw list view items that are
7768         outside the clipping rectangle.
7769
7770 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7771
7772         * ListBox.cs: added horizontal item scroll
7773
7774 2005-04-29  Jackson Harper  <jackson@ximian.com>
7775
7776         * ThemeWin32Classic.cs: Remove some old debug code that was
7777         causing flicker with the new double buffering code.
7778
7779 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7780
7781         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7782         behave like combobox and comboboxlist (still not sure if this is
7783         correct though).
7784
7785 2005-04-28  Jackson Harper  <jackson@ximian.com>
7786
7787         * ThemeWin32Classic.cs: Don't fill the middle of progress
7788         bars. This fills areas outside of the clip bounds that don't need
7789         to be filled.
7790
7791 2005-04-28  Jackson Harper  <jackson@ximian.com>
7792
7793         * Control.cs: Don't expose functionality to touch the image buffers.
7794         * ProgressBar.cs:
7795         * ListView.cs: We do not need to (and no longer can) manipulate
7796         the image buffers directly. All of this is handled by Control.
7797
7798 2005-04-28  Peter Bartok  <pbartok@novell.com>
7799
7800         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7801           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7802           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7803
7804 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7805
7806         * Combobox:
7807                 - Adjust control's height for non-simple comboboxes (bug fix)
7808                 - Remove dead code
7809         * MenuAPI.cs: remove unused var
7810         * ScrollBar.cs: remove unsed var
7811                  
7812         * ListBox.cs: unselect items when clearing
7813
7814 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7815
7816         * ListControl.cs: honors OnPositionChanged and default Selected Item
7817         * ListBox.cs: unselect items when clearing
7818
7819 2005-04-27  Jackson Harper  <jackson@ximian.com>
7820
7821         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7822         if a "correct" keyboard is not found. This will make us not crash,
7823         but might give some users bad keyboard layouts...seems to be the
7824         same thing rewind does.
7825
7826 2005-04-27  Jackson Harper  <jackson@ximian.com>
7827
7828         * BindingManagerBase.cs: Attach the current/position changed
7829         handlers to their respective events.
7830
7831 2005-04-27  Jackson Harper  <jackson@ximian.com>
7832
7833         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7834         not just a blit.
7835         * ThemeWin32Classic.cs: Don't fill the background for picture
7836         boxes. This could overright user drawing.
7837         * ComboBox.cs: Just fill the clipping rect not the entire client
7838         rect when drawing the background. This prevents pieces of the
7839         image buffer from getting overwritten and is theoretically faster.
7840
7841 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7842
7843         * ComboBox.cs: Databinding support fixes, fire missing events
7844         * ListControl.cs: implement missing methods and properties, fixes
7845         * ThemeWin32Classic.cs: Databiding support on Drawing
7846         * CheckedListBox.cs: Databinding support fixes, fire missing events
7847         * ListBox.cs: Databinding support fixes, fire missing events
7848         
7849 2005-04-25  Peter Bartok  <pbartok@novell.com>
7850
7851         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7852
7853 2005-04-25  Jackson Harper  <jackson@ximian.com>
7854
7855         * TreeView.cs: Use the horizontal scrollbars height not width when
7856         determining how much of the client area is available.
7857
7858 2005-04-25  Jackson Harper  <jackson@ximian.com>
7859
7860         * Control.cs: Double buffering is handled differently now. As per
7861         the spec, the extra buffer is created in the WM_PAINT message and
7862         passed down to the control's drawing code.
7863         * GroupBox.cs:
7864         * Label.cs:
7865         * CheckBox.cs:
7866         * ProgressBar.cs:
7867         * RadioButton.cs:
7868         * ColorDialog.cs:
7869         * ComboBox.cs:
7870         * PropertyGridView.cs:
7871         * UpDownBase.cs:
7872         * MessageBox.cs:
7873         * MenuAPI.cs:
7874         * ListView.cs:
7875         * ButtonBase.cs:
7876         * SizeGrip.cs:
7877         * ScrollBar.cs:
7878         * ListBox.cs:
7879         * TrackBar.cs:
7880         * ToolBar.cs:
7881         * PictureBox.cs:
7882         * DateTimePicker.cs:
7883         * StatusBar.cs:
7884         * TreeView.cs: Update to new double buffering system.
7885         * MonthCalendar.cs: Uncomment block, as Capture is now
7886         working. Update to new double buffering
7887         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7888         * PaintEventArgs.cs: New internal method allows us to set the
7889         graphics object. This is used for double buffering.
7890         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7891         rectangle. The internal paint_area var has been removed from
7892         StatusBar. The clipping rect should be used instead.
7893         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7894         * TabPage.cs: The RefreshTabs method was removed, so just call the
7895         tab controls Refresh method now.
7896         * TabControl.cs: Update to new double buffering. Make sure the
7897         handle is created before sizing the tab pages, otherwise we will
7898         get stuck in a loop.
7899
7900 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7901
7902         * LinkLabel.cs: Fix typo, bug #74719; patch
7903           from Borja Sanchez Zamorano
7904
7905 2005-04-22  Jackson Harper  <jackson@ximian.com>
7906
7907         * TreeNode.cs: Implement Handle stuff.
7908         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7909
7910 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7911
7912         * DataGridTextBoxColumn.cs: call base constructors, fixes
7913         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7914         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7915         * DataGridTableStyle.cs: implements create default column styles
7916         * DataGridBoolColumn.cs: which types can handle
7917         * DataGrid.cs: missing methods, fixes, new functionality
7918         * DataGridColumnStyle.cs: fixes
7919
7920 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7921         * FolderBrowserDialog.cs:
7922         - Use a thread to fill the TreeView
7923         - Adjusted some sizes
7924
7925 2005-04-19  Peter Bartok  <pbartok@novell.com>
7926
7927         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7928           property. Fixes #74360.
7929
7930 2005-04-19  Jackson Harper  <jackson@ximian.com>
7931
7932         * XEventQueue.cs: Lock when getting the lockqueue size.
7933         * PictureBox.cs: Call base OnPaint
7934         
7935 2005-04-19  Peter Bartok  <pbartok@novell.com>
7936
7937         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
7938           messages were no longer being processed (this broke BeginInvoke)
7939
7940           
7941 2005-04-18  Jackson Harper  <jackson@ximian.com>
7942
7943         * TreeView.cs: buglet that caused node images to get drawn
7944         regardless of whether or not they were in the clipping rectangle.
7945
7946 2005-04-18  Jackson Harper  <jackson@ximian.com>
7947
7948         * CurrencyManager.cs: There are four rules for GetItemProperties:
7949         - If the type is an array use the element type of the array
7950         - If the type is a typed list, use the type
7951         - If the list contains an Item property that is not an object, use
7952         that property
7953         - use the first element of the list if there are any elements in
7954         the list.
7955         
7956 2005-04-17  Jackson Harper  <jackson@ximian.oom>
7957
7958         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
7959         click. This handles offsets for scrolling properly and reduces
7960         memory. Also fixed GetNode to not offset now that TopNode works
7961         properly.
7962         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
7963         
7964 2005-04-17  Jackson Harper  <jackson@ximian.com>
7965
7966         * CursorConverter.cs: Initial implementation.
7967
7968 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7969
7970         * ListControl.cs: work towards complex data binding support on ListControl
7971         * CurrencyManager.cs: work towards complex data binding support on ListControl
7972         * ListBox.cs: work towards complex data binding support on ListControl
7973
7974
7975 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
7976
7977         * GridTableStylesCollection.cs: fixes name and constructor
7978         * DataGridTableStyle.cs: fixes
7979         * DataGridBoolColumn.cs: fixes names and constructors
7980         * DataGrid.cs: define methods and properties. Some init implementations
7981         * DataGridCell.cs: define methods and properties. Some init implementations
7982         * GridTablesFactory.cs: Define methods and properties
7983
7984 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
7985
7986         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
7987         graphics port changes.  We still want the coordinates in global screen
7988         coordinates.
7989
7990 2005-04-14  Jackson Harper  <jackson@ximian.com>
7991
7992         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
7993         check plus minus or checkbox clicks unless those features are enabled.
7994
7995 2005-04-14  Jackson Harper  <jackson@ximian.com>
7996
7997         * TreeView.cs: Add methods for setting the top and bottom visible
7998         nodes. TreeNode::EnsureVisible uses these methods.
7999         * TreeNode.cs: Implement EnsureVisible
8000
8001 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8002
8003         * Form.cs: Pospone menu assignation if the window has not been created yet
8004         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8005         size and position
8006
8007 2005-04-12  Jackson Harper  <jackson@ximian.com>
8008
8009         * TreeView.cs: Set the TopNode properly when scrolling
8010         occurs. This has the added benifit of reducing the amount of
8011         walking that needs to be done when drawing. Also removed an old
8012         misleading TODO.
8013         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8014         
8015 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8016
8017         * Timer.cs: fixes interval setting when the timer is already enabled
8018         
8019 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8020
8021         * FolderBrowserDialog.cs: First approach
8022
8023 2005-04-09  Peter Bartok  <pbartok@novell.com>
8024
8025         * FolderBrowserDialog: Added
8026
8027 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8028
8029         * LinkLabel.cs: move drawing code into the theme
8030         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8031         * Theme.cs: define DrawLinkLabel method
8032
8033 2005-04-05  Jackson Harper  <jackson@ximian.com>
8034
8035         * BindingContext.cs: Use weak references so these bad actors don't
8036         stay alive longer then they need to.
8037
8038 2005-04-05  Jackson Harper  <jackson@ximian.com>
8039
8040         * ListControl.cs: Basic implementation of complex databinding.
8041         * ComboBox.cs:
8042         * ListBox.cs: Add calls to ListControl databinding methods.
8043
8044 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8045
8046         * FileDialog.cs:
8047           - Don't change PopupButtonState to Normal when the
8048             PopupButton gets pressed several times.
8049           - Renamed ButtonPanel to PopupButtonPanel
8050
8051 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8052
8053         * ColorDialog.cs: Use cached objects instead of creating them
8054         * LinkLabel.cs: Use cached objects instead of creating them
8055         * Splitter.cs: Use cached objects instead of creating them
8056         * FontDialog.cs: Use cached objects instead of creating them
8057         * PropertyGridView.cs: Use cached objects instead of creating them
8058         * MessageBox.cs: Use cached objects instead of creating them
8059         * FileDialog.cs: Use cached objects instead of creating them
8060         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8061         * TreeView.cs: Use cached objects instead of creating them
8062         
8063 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8064
8065         * Control.cs: use Equals to compare the font since no == op
8066         * ScrollBar.cs: use Equals to compare the font since no == op
8067
8068 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8069
8070         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8071
8072 2005-04-01  Jackson Harper  <jackson@ximian.com>
8073
8074         * Binding.cs: Implement IsBinding.
8075         * BindingManagerBase.cs:
8076         * PropertyManager.cs:
8077         * CurrencyManager.cs: Add IsSuspended property.
8078
8079 2005-04-01  Jackson Harper  <jackson@ximian.com>
8080
8081         * Binding.cs: Had some IsAssignableFrom calls backwards.
8082
8083 2005-04-01  Jackson Harper  <jackson@ximian.com>
8084
8085         * Binding.cs: Handle null data members when pulling data.
8086         * PropertyManager.cs: Handle the data member being a property that
8087         does not exist.
8088
8089 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8090
8091         * DataGridTextBoxColumn.cs: fixes signature
8092         * DataGrid.cs: calls right constructor
8093
8094 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8095
8096         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8097         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8098         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8099         * DataGridTableStyle.cs: implements DataGridTableStyle
8100         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8101         * DataGridTextBox.cs: implements DataGridTextBox
8102         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8103
8104 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8105
8106         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8107
8108 2005-03-29  Peter Bartok  <pbartok@novell.com>
8109
8110         * Application.cs:
8111           - Properly implemented CompanyName property
8112           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8113             returns a path that includes CompanyName, ProductName and
8114             Version (fixes bug #70330)
8115
8116 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8117
8118         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8119           fixes bug #72588.
8120
8121 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8122
8123         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8124         
8125           - Added ReadOnly CheckBox
8126           - Further refactoring: moved some code from Open-/SaveFileDialog
8127             to FileDialog
8128
8129 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8130
8131         * OpenFileDialog.cs: Fixed CheckFileExists
8132         * FileDialog.cs:
8133           Moved FileView and DirComboBox outside FileDialog class.
8134           They can now be used outside FileDialog
8135
8136 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8137
8138         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8139         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8140
8141 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8142
8143         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8144           - Added missing CreatePrompt property in SaveDialog
8145           - Overall SaveDialog handling should be better now
8146           - Added non standard ShowHiddenFiles property
8147           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8148           - Added InitialDirectory and RestoreDirectory support
8149
8150 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8151
8152         * FileDialog.cs: Made dirComboBox usable
8153
8154 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8155
8156         * FileDialog.cs: Added Filter support (case sensitiv)
8157
8158 2005-03-24  Jackson Harper  <jackson@ximian.com>
8159
8160         * TabControl.cs: Need a couple more pixels for the lines.
8161
8162 2005-03-23  Jackson Harper  <jackson@ximian.com>
8163
8164         * TabControl.cs: Give the tab page focus when it is selected.
8165
8166 2005-03-23  Jackson Harper  <jackson@ximian.com>
8167
8168         * TabControl.cs: Account for the drawing of tabs borders when
8169         invalidating. If the slider was clicked dont do click detection on
8170         the tabs.
8171
8172 2005-03-23  Jackson Harper  <jackson@ximian.com>
8173
8174         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8175
8176 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8177
8178         * CategoryGridEntry.cs: Added
8179         * GridItem.cs: Added helper properties
8180         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8181         * GridEntry.cs: Updated code for collection
8182         * PropertyGrid.cs: Cleaned up some formatting
8183         * PropertyGridView.cs: Added drop down functionality for enums.
8184         * GridItemCollection.cs: Added enumerator logic
8185         * PropertyGridEntry.cs: Added
8186
8187 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8188
8189         * FileDialog.cs:
8190           - Removed unnecessary commented code
8191           - Fixed handling for entering the filename manually in the combobox
8192
8193 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8194
8195         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8196
8197 2005-03-18  Peter Bartok  <pbartok@novell.com>
8198
8199         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8200           them being touching the border
8201
8202 2005-03-18  Peter Bartok  <pbartok@novell.com>
8203
8204         * TextControl.cs: Quick hack to center text better
8205
8206 2005-03-18  Peter Bartok  <pbartok@novell.com>
8207
8208         * ControlPaint.cs:
8209           - Don't throw NotImplemented exceptions, just print a notice once
8210             instead (requested by Miguel). This makes running existing SWF
8211             apps a bit easier
8212         * Control.cs:
8213           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8214           - Added context menu trigger on right click
8215         * Panel.cs: Trigger invalidate on resize
8216         * StatusBar.cs:
8217           - Removed old double-buffer drawing
8218           - Added ResizeRedraw style to force proper update of statusbar
8219         * ListView.cs:
8220           - Removed debug output
8221         * ThemeWin32Classic.cs:
8222           - Fixed drawing of status bar, now draws Text property if there
8223             are no defined panels
8224
8225 2005-03-18  Jackson Harper  <jackson@ximian.com>
8226
8227         * ImageList.cs: When the image stream is set pull all the images
8228         from it.
8229         * ImageListStreamer.cs: Implement reading image list streams.
8230
8231 2005-03-18  Peter Bartok  <pbartok@novell.com>
8232
8233         * ThemeWin32Classic.cs (DrawPictureBox):
8234           - Fixed calculations for centered drawing
8235           - Fixed drawing for normal mode, not scaling the image on normal
8236
8237 2005-03-18  Peter Bartok  <pbartok@novell.com>
8238
8239         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8240           textbox
8241         * FileDialog.cs:
8242           - Made Open/Save button the accept button for FileDialog
8243           - Tied the cancel button to the IButtonControl cancel button
8244           - Save/Open now properly builds the pathname
8245           - Now handles user-entered text
8246           - Preventing crash on right-click if no item is selected
8247           - Fixed Text property, now uses contents of textbox
8248           - Fixed SelectedText property, now just returns the text part that
8249             is selected in the text box
8250
8251 2005-03-18  Jackson Harper  <jackson@ximian.com>
8252
8253         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8254         rect, make sure to de-adjust the interior rect after drawing the
8255         tab text.
8256
8257 2005-03-18  Peter Bartok  <pbartok@novell.com>
8258
8259         * MenuAPI.cs: Remove menu *before* executing selected action to
8260           prevent the menu from 'hanging around'
8261           
8262 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8263
8264         * XplatUIOSX.cs: Implemented WorkingArea property
8265
8266 2005-03-17  Peter Bartok  <pbartok@novell.com>
8267
8268         * XplatUIX11.cs: Fixed menu coord calculations
8269         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8270           for calculating offsets
8271
8272 2005-03-17  Peter Bartok  <pbartok@novell.com>
8273
8274         * Hwnd.cs: Do not consider menu presence for default client
8275           rectangle location/size
8276         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8277           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8278           translation functions
8279         * FileDialog.cs: Fixed (what I presume is a) typo
8280
8281 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8282
8283         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8284           X access (avoids X-Async errors)
8285
8286 2005-03-16  Jackson Harper  <jackson@ximian.com>
8287
8288         * TabControl.cs: Raise the SelectedIndexChanged event.
8289
8290 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8291
8292         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8293           - Removed vertical ToolBar and replaced it with a custom panel
8294             (desktop and home button already work)
8295           - Added Help button (some controls get resized or relocated then)
8296           - Draw correct text depending on Open or Save.
8297           - Fixed some typos...
8298
8299 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8300
8301         * ScrollBar.cs:
8302           - Only change Maximum and Minimum when need it (bug fix)
8303
8304 2005-03-15  Peter Bartok  <pbartok@novell.com>
8305
8306         * Form.cs: Use Handle for icon, to trigger creation if
8307           the window does not yet exist
8308         * Control.cs:
8309           - CanSelect: Slight performance improvement
8310           - Focus(): Preventing possible recursion
8311           - Invalidate(): Removed ControlStyle based clear flag setting
8312           - WM_PAINT: fixed logic for calling OnPaintBackground
8313           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8314             EraseWindowBackground if the control doesn't paint background
8315         * XplatUIWin32.cs:
8316           - Moved EraseWindowBackground() method to internal methods
8317           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8318             is sent via SendMessage on BeginPaint call on Win32
8319         * XplatUIX11.cs:
8320           - Added EraseWindowBackground() method
8321           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8322             PaintEventStart, which more closely matches Win32 behaviour
8323           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8324           - Fixed SetFocus() to properly deal with client and whole windows
8325         * Hwnd.cs: Added ErasePending property
8326         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8327         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8328
8329 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8330
8331         * XplatUIOSX.cs:
8332           - Fix hard loop when timers exist.
8333           - Fix bugs with middle and right click for 3 button mice.
8334
8335 2005-03-11  Peter Bartok  <pbartok@novell.com>
8336
8337         * XplatUIX11.cs:
8338           - get_WorkingArea: Need to call X directly, GetWindowPos only
8339             returns cached data now
8340           - Added sanity check to GetWindowPos hwnd usage
8341
8342 2005-03-11  Jackson Harper  <jackson@ximian.com>
8343
8344         * BindingManagerBase.cs: This method isn't used anymore as
8345         PullData now updates the data in the control.
8346
8347 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8348
8349         * Form.cs: fixes menu drawing on X11
8350         * MenuAPI.cs:  fixes menu drawing on X11
8351
8352 2005-03-11  Peter Bartok  <pbartok@novell.com>
8353
8354         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8355           from Jonathan Gilbert; should fix bug #73606
8356         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8357           in Screen coordinates. Thanks, Jordi.
8358         * Form.cs: Added missing attribute
8359
8360 2005-03-11  Peter Bartok  <pbartok@novell.com>
8361
8362         * Form.cs:
8363           - Rudimentary Mdi support
8364           - Removed outdated FormParent code
8365           - Implemented lots of missing properties and methods, still missing
8366             transparency support
8367           - Added missing attributes
8368           - Implemented support for MaximumBounds
8369           - Added firing of various events
8370         * XplatUI.cs: Added SetIcon() method
8371         * XplatUIDriver.cs: Added SetIcon() abstract
8372         * XplatUIOSX.cs: Stubbed out SetIcon() method
8373         * XplatUIX11.cs:
8374           - Implemented SetIcon() support
8375           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8376           - Switched to unix line endings
8377         * XplatUIWin32.cs:
8378           - Made POINT internal so for can access it as part of MINMAX
8379           - Implemented SetIcon() support
8380           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8381             native Mdi support again, might have to go managed)
8382         * Control.cs: Now fires the StyleChanged event
8383         * MdiClient.cs: Added; still mostly empty
8384
8385 2005-03-10  Peter Bartok  <pbartok@novell.com>
8386
8387         * SaveFileDialog.cs: Added emtpy file
8388
8389 2005-03-08  Peter Bartok  <pbartok@novell.com>
8390
8391         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8392           in turn triggers OnCreateContro) when creating a handle for the
8393           first time.
8394         * TextControl.cs: Fixed endless loop in certain cases when
8395           replacing the current selection
8396
8397 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8398
8399         * ScrollBar.cs:
8400           - Honors NewValue changes in Scroll events allowing apps to change it
8401           - Adds First and Last Scroll events
8402           - Fixes Thumb events
8403
8404 2005-03-07  Peter Bartok  <pbartok@novell.com>
8405
8406         * Hwnd.cs: Added DefaultClientRectangle property
8407         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8408           more detailed debug information
8409         * XplatUIX11.cs:
8410           - Fixed size-change feedback loop, where we would pull an old size
8411             off the queue and mistakenly change our window's size to an
8412             earlier value
8413           - Now compressing ConfigureNotify events, to reduce looping and
8414             redraw issues
8415         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8416           is called
8417
8418 2005-03-07  Jackson Harper  <jackson@ximian.com>
8419
8420         * Binding.cs: Push data pushes from data -> property. Check if the
8421         property is readonly when attempting to set it.
8422
8423 2005-03-07  Jackson Harper  <jackson@ximian.com>
8424
8425         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8426         instead of IsSubclassOf. Pulling data now sets the value on the
8427         control.
8428         * PropertyManager.cs:
8429         * CurrencyManager.cs: Just need to pull data when updating now,
8430         because PullData will set the value on the control.
8431
8432 2005-03-04  Jackson Harper  <jackson@ximian.com>
8433
8434         * Binding.cs: Implement data type parsing and converting on pulled
8435         data. TODO: Are there more ways the data can be converted?
8436
8437 2005-03-04  Jackson Harper  <jackson@ximian.com>
8438
8439         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8440         controls Validating method so we can repull the data when the
8441         control loses focus.
8442
8443 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8444
8445         * ColumnHeader.cs:
8446           - Fixes null string format
8447           
8448         * ListView.cs:
8449           - Adds enum type checks
8450           - Fixes redrawing and recalc need after changing some properties
8451           - Fixes on focus_item set after the event
8452           - Fixes adding columns after the control has been created
8453           
8454         * ThemeWin32Classic.cs:
8455           - Fixes CheckBox focus rectangle
8456           - Fixes ColumnHeader drawing
8457
8458
8459 2005-03-03  Jackson Harper  <jackson@ximian.com>
8460
8461         * Binding.cs: Bind to <Property>Changed events so we can detect
8462         when properties are changed and update the data.
8463
8464 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8465
8466         * ImageList.cs:
8467           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8468           - Fixes ImageList constructor with ImageList container
8469           - Fixes image scaling (wrong parameters at DrawImage)
8470
8471 2005-02-02  Jackson Harper  <jackson@ximian.com>
8472
8473         * Binding.cs: Make property searches case-insensitive. Eliminate
8474         some duplicated code.
8475
8476 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8477
8478         * ComboBox.cs:
8479                 - Handle focus event
8480                 - Fix scrollbar events
8481                 - Discard highlighted item if remove it
8482                 - Fixes SelectedItem with strings
8483
8484 2005-03-01  Peter Bartok  <pbartok@novell.com>
8485
8486         * Control.cs:
8487           - Fixed Visible property, now follows (once again) parent chain
8488             to return false if any control in the chain is visible=false
8489           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8490           - Fixed several places where is_visible instead of Visible was used
8491           - Implemented FIXME related to focus selection when setting focused
8492             control to be invisible
8493
8494         * XplatUIWin32.cs: Now using proper method to find out if window is
8495           visible. Thanks to Jordi for pointing it out
8496
8497 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8498
8499         * ComboBox.cs: show/hide scrollbar instead of creating it
8500
8501 2005-02-27  Jackson Harper  <jackson@ximian.com>
8502
8503         * CurrencyManager.cs: Add PositionChanged stuff.
8504
8505 2005-02-27  Peter Bartok  <pbartok@novell.com>
8506
8507         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8508         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8509         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8510         * XplatUIX11.cs:
8511           - Implemented GetMenuDC()
8512           - Implemented GetMenuOrigin()
8513           - Implemented ReleaseMenuDC()
8514           - Implemented generation of WM_NCPAINT message
8515           - Implemented generation and handling of WM_NCCALCSIZE message
8516         * Form.cs: Added debug helper message for Jordi's menu work
8517         * Hwnd.cs:
8518           - Modified ClientRect property; added setter, fixed getter to handle
8519             setting of ClientRect
8520           - Added MenuOrigin property
8521
8522 2005-02-26  Peter Bartok  <pbartok@novell.com>
8523
8524         * XplatUIX11.cs:
8525           - Destroys the caret if a window that's being destroyed contains it
8526           - Ignores expose events coming from the X11 queue for windows that
8527             already are destroyed
8528           - Now uses the proper variable for handling DestroyNotify, before we
8529             marked the wrong window as destroyed
8530           - Improved/added some debug output
8531
8532 2005-02-26  Peter Bartok  <pbartok@novell.com>
8533
8534         * X11Keyboard.cs: Fixes to work on 64bit systems
8535
8536 2005-02-26  Peter Bartok  <pbartok@novell.com>
8537
8538         * Control.cs:
8539           - Now calling OnHandleDestroyed from DestroyHandle()
8540             instead of Dispose()
8541           - Removed bogus call to controls.Remove() from DestroyHandle()
8542
8543 2005-02-26  Peter Bartok  <pbartok@novell.com>
8544
8545         * Control.cs: Properly destroy child windows when our handle is
8546           destroyed
8547
8548 2005-02-25  Peter Bartok  <pbartok@novell.com>
8549
8550         * XplatUI.cs:
8551           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8552           - Alphabetized Static Methods and Subclasses
8553
8554         * XplatUIX11.cs:
8555           - Added XException class to allow custom handling of X11 exceptions
8556           - Created custom X11 error handler, tied into XException class
8557           - Added support for MONO_XEXCEPTIONS env var to allow the user
8558             to either throw an exception on X errors or continue running
8559             after displaying the error
8560           - Added handling of DestroyNotify message
8561           - Added handler for CreateNotify message (still disabled)
8562           - Improved (tried to at least) Where method to provide file and lineno
8563         * X11Structs.cs:
8564           - Added XErrorHandler delegate
8565           - Added XRequest enumeration (to suppor translation of errors)
8566
8567 2005-02-25  Jackson Harper  <jackson@ximian.com>
8568
8569         * PropertyManager.cs: Implement editing features
8570         * CurrencyManager.cs:
8571         * Binding.cs: First attempt at UpdateIsBinding
8572         * BindingManagerBase.cs: Call UpdateIsBinding before
8573         pushing/pulling data.
8574
8575 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8576
8577         * MenuAPI.cs: Respect disabled items
8578         * ThemeWin32Classic.cs
8579                 - Caches ImageAttributes creation for DrawImageDisabled
8580                 - Fixes vertical menu line drawing
8581                 - Draws disabled arrows in disable menu items
8582
8583 2005-02-24  Peter Bartok  <pbartok@novell.com>
8584
8585         * Hwnd.cs:
8586           - Added UserData property to allow associating arbitrary objects
8587             with the handle
8588           - Fixed leak; now removing Hwnd references from static windows array
8589         * XplatUIWin32.cs:
8590           - Fixed Graphics leak in PaintEventEnd
8591           - Removed usage of HandleData, switched over to Hwnd class
8592         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8593
8594 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8595
8596         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8597         * ScrollBar.cs: Fixes bug
8598         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8599          keyboard navigation enhancements
8600
8601 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8602
8603         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8604         * GroupBox.cs: Add control styles
8605         * Label.cs: Add control styles
8606         * UpDownBase.cs: Add control styles
8607         * ListBox.cs: Add control styles
8608         * XplatUIWin32.cs: Fixes wrong parameter order
8609
8610
8611 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8612
8613         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8614
8615 2005-02-23  Jackson Harper  <jackson@ximian.com>
8616
8617         * PropertyManager.cs: Implement property binding. This doesn't
8618         seem to work yet though as (I think) there are some bugs in
8619         System.ComponentModel.PropertyDescriptor.
8620         * BindingContext.cs: Use new PropertyManager constructor.
8621
8622 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8623
8624         * ProgressBar.cs: use clip region in ProgressBar
8625         * ThemeWin32Classic.cs: use clip region in ProgressBar
8626
8627 2004-02-22  Jackson Harper  <jackson@ximian.com>
8628
8629         * BindingsCollection.cs: Remove some debug code.
8630
8631 2005-02-22  Jackson Harper  <jackson@ximian.com>
8632
8633         * BindingContext.cs:
8634         * ControlBindingsCollection.cs:
8635         * CurrencyManager.cs:
8636         * Binding.cs:
8637         * BindingManagerBase.cs: Initial implementation
8638         * BindingsCollection.cs: Add an internal contains method that the
8639         BindingManagerBase uses to ensure bindings aren't added twice to
8640         the collection.
8641         * PropertyManager.cs: Stubbed out.
8642         * Control.cs:
8643         * ContainerControl.cs: Hook up databinding
8644         
8645 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8646
8647         * XplatUIOSX.cs:
8648           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8649           Fixed Invalidate/Update chain.
8650           Fixed tons of other minor bugs (this is almost a complete rewrite).
8651
8652 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8653
8654         * ComboBox.cs: do subcontrol creation when the control is created
8655
8656 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8657
8658         * Label.cs: fixes image drawing (image and imagelist)
8659         * ThemeWin32Classic.cs: cache brushes
8660         
8661 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8662
8663         * Form.cs: Move menu drawing code to Theme class
8664         * ComboBox.cs: Move ComboBox drawing code to Theme class
8665         * MenuItem.cs: Move menu drawing code to Theme class
8666         * MenuAPI.cs: Move menu drawing code to Theme class
8667         * ThemeWin32Classic.cs: New methods
8668         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8669         * ListBox.cs: Move Listbox drawing code to Theme class
8670         * Theme.cs: New methods
8671
8672 2005-02-20  Peter Bartok  <pbartok@novell.com>
8673
8674         * Control.cs:
8675           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8676             only process mnemonics on those)
8677           - Fixed event sequence for key handling; first calling
8678             ProcessKeyEventArgs now
8679         * TextBoxBase.cs:
8680           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8681             for processing non-character keys
8682           - Fixed WM_CHAR to generate proper event sequence before processing
8683         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8684           generation
8685
8686 2005-02-19  Peter Bartok  <pbartok@novell.com>
8687
8688         * UserControl.cs: Added TextChanged event; added attributes
8689         * SizeGrip.cs: Implemented resizing and optional display of grip
8690         * Form.cs: Fixed attribute
8691         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8692           Changed meaning of ScrollWindow bool argument; instead of the
8693           clear attribute (which will be true usually anyway), it gives the
8694           option of moving child controls as well.
8695         * XplatUIX11.cs:
8696           - Changed to match new ScrollWindow argument
8697           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8698             now handles the implicit parent window a WM puts around us
8699         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8700           to work)
8701         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8702         * TreeView.cs: Adjusted to new ScrollWindow arguments
8703
8704 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8705
8706         * Form.cs: Menu integration with non-client area
8707         * MenuItem.cs: Menu integration with non-client area
8708         * MenuAPI.cs: Menu integration with non-client area
8709
8710 2005-02-18  Peter Bartok  <pbartok@novell.com>
8711
8712         * MethodInvoker.cs: Added
8713         * MdiLayout.cs: Added
8714         * SendKeys.cs: Started implementation
8715         * ErrorIconAlignment.cs: Added
8716
8717 2005-02-18  Peter Bartok  <pbartok@novell.com>
8718
8719         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8720         * Form.cs: Added handling for Menu-related Non-client messages
8721
8722 2005-02-17  Peter Bartok  <pbartok@novell.com>
8723
8724         * UpDownBase.cs: Fixed typo, compilation errors
8725         * DomainUpDown.cs: Fixed attribute value
8726
8727 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8728
8729         * UpDownBase.cs: Attach entry events.
8730         Propagate events.
8731         Add ForeColor property, Focused, InterceptArrowKeys (interception
8732         does not work yet).
8733
8734 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8735
8736         * Form.cs:
8737                 - Redraw non client are on Setmenu
8738                 - Calc proper menu starting point
8739
8740 2005-02-17  Peter Bartok  <pbartok@novell.com>
8741
8742         * Application.cs: Fixed message_filter check
8743
8744 2005-02-17  Peter Bartok  <pbartok@novell.com>
8745
8746         * Application.cs: Now calls registered message filters
8747         * DockStyle.cs: Fixed attribute
8748         * Form.cs: Fixed attribute
8749         * Menu.cs: Fixed attribute
8750         * ToolTip.cs: Fixed attribute
8751         * TreeNode.cs: Added missing attributes and arranged in regions
8752         * PropertyGrid.cs: Fixed signatures
8753         * TreeNodeCollection.cs: Added attributes
8754         * Splitter.cs: Added missing attributes; arranged into regions
8755         * TabPage.cs: Added missing attributes; arranged into regions
8756         * TextBoxBase.cs: Added missing attributes
8757         * TextBox.cs: Added missing attributes
8758         * ArrangeDirection.cs: Added missing attributes
8759         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8760         * ToolBarButton.cs: Fixed attributes
8761         * AnchorStyles.cs: Fixed attribute
8762         * TrackBar.cs: Fixed attributes
8763         * TabControl.cs: Added missing attributes and arranged into regions
8764         * ToolBar.cs: Fixed attribute
8765         * StatusBar.cs: Fixed signature, organized into regions and added
8766           attributes
8767         * StatusBarPanel.cs: Fixed attributes
8768         * ContentsResizedEventArgs.cs: Implemented
8769         * ContentsResizedEventHandler.cs: Implemented
8770         * DateBoldEventArgs.cs: Implemented
8771         * DateBoldEventHandler.cs: Implemented
8772         * UpDownEventArgs.cs: Implemented
8773         * UpDownEventHandler.cs: Implemented
8774         
8775 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8776
8777         * Form.cs: first Menu NC refactoring
8778         * MenuAPI.cs: first Menu NC refactoring
8779         
8780 2005-02-16  Peter Bartok  <pbartok@novell.com>
8781
8782         * ImeMode.cs: Added missing attributes
8783         * Menu.cs: Fixed attribute
8784         * GroupBox.cs: Fixed attribute
8785         * Label.cs: Fixed attribute
8786         * ColorDialog.cs (RunDialog): Removed TODO attribute
8787         * ComboBox.cs: Fixed attributes
8788         * ListControl.cs: Added missing attributes
8789         * PropertyGrid.cs: Fixed attributes
8790         * Control.cs: Fixed attributes
8791         * ListViewItem.cs: Added TypeConverter attribute
8792         * NotifyIcon.cs: Fixed attributes
8793         * ListView.cs: Fixed attributes
8794         * ButtonBase.cs: Fixed attribute
8795         * ImageList.cs: Added missing attributes
8796         * ContainerControl.cs: Fixed signature
8797         * CheckedListBox.cs: Fixed attribute; added missing attributes
8798         * Panel.cs: Fixed attributes
8799         * PropertyTabChangedEventArgs.cs: Added missing attribute
8800         * PropertyValueChangedEventArgs.cs: Added missing attribute
8801         * Binding.cs: Fixed attribute
8802         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8803         * ListBox.cs: Fixed attribute; added missing attributes;
8804         * ScrollableControl.cs: Added missing attributes
8805         * PictureBox.cs: Added missing attributes; implemented missing property
8806         * DateTimePicker.cs: Added missing attributes
8807         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8808         * MonthCalendar.cs: Fixed attributes
8809         * StatusBarPanel.cs: Added missing attributes
8810         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8811
8812 2005-02-16  Peter Bartok  <pbartok@novell.com>
8813
8814         * TextBoxBase.cs: The previous method to enforce height yet remember
8815           the requested high was less than ideal, this is an attempt to do
8816           it better.
8817         * Control.cs: Added comment about possible problem
8818         * Copyright: Updated format
8819         * GridItemType.cs: Fixed swapped values
8820
8821 2005-02-15  Jackson Harper  <jackson@ximian.com>
8822
8823         * BaseCollection.cs: Use property so we never access an
8824         uninitialized list. Also initialize the list in the property.
8825
8826 2005-02-15  Peter Bartok  <pbartok@novell.com>
8827
8828         * GroupBox.cs (ProcessMnemonic): Implemented
8829         * Label.cs (ProcessMnemonic): Implemented
8830         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8831           hotkeys
8832
8833 2005-02-15  Peter Bartok  <pbartok@novell.com>
8834
8835         * RadioButton.cs (ProcessMnemonic): Implemented
8836         * CheckBox.cs (ProcessMnemonic): Implemented
8837         * Control.cs:
8838           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8839             handling
8840           - Added internal method to allow calling ProcessMnemonic from other
8841             controls
8842         * ContainerControl.cs:
8843           - Started support for handling validation chain handling
8844           - Implemented ProcessMnemonic support
8845           - Added Select() call to Active, to make sure the active control
8846             receives focus
8847         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8848           FormParent rewrite)
8849         * ThemeWin32Classic.cs:
8850           - DrawCheckBox(): Fixed stringformat to show hotkeys
8851           - DrawRadioButton(): Fixed stringformat to show hotkeys
8852         * CommonDialog.cs: Removed WndProc override, not needed
8853
8854 2005-02-14  Peter Bartok  <pbartok@novell.com>
8855
8856         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8857           missed those in the rewrite
8858
8859 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8860
8861         * NumericUpDown.cs (Increment, ToString): Add.
8862         (DecimalPlaces): implement.
8863         
8864         Add attributes.
8865         
8866         * UpDownBase.cs: Add the designer attributes.
8867
8868 2005-02-13  Peter Bartok  <pbartok@novell.com>
8869
8870         * Panel.cs: Removed border_style, now in Control
8871         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8872           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8873
8874 2005-02-13  Peter Bartok  <pbartok@novell.com>
8875
8876         * MouseButtons.cs: Added missing attributes
8877         * XplatUIStructs.cs: Added enumeration for title styles
8878         * LeftRightAlignment.cs: Added missing attributes
8879         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8880           it compatible with Graphics.FromHwnd()
8881         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8882         * Keys.cs: Added missing attributes
8883         * SelectionRange.cs: Added missing attributes
8884         * SelectionRangeConverter.cs: Added
8885         * XplatUI.cs:
8886           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8887             ReleaseMenuDC methods
8888           - Renamed ReleaseWindow to UngrabWindow
8889           - Added proper startup notice to allow version identification
8890         * Form.cs:
8891           - Added missing attributes
8892           - Removed FormParent concept
8893         * Label.cs: Removed border_style field, now in Control
8894         * RadioButton.cs: Now properly selects RadioButton when focus is
8895           received
8896         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8897         * Control.cs:
8898           - Added missing attributes
8899           - Added borderstyle handling
8900           - Removed FormParent concept support
8901           - Fixed calls to XplatUI to match changed APIs
8902           - Fixed bug that would case us to use disposed Graphics objects
8903           - Removed unneeded internal methods
8904           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8905           - SelectNextControl(): Fixed to properly check common parents
8906         * TextBoxBase.cs: Removed border_style field (now in Control)
8907         * MessageBox.cs:
8908           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8909             fixed calculations for form size
8910           - Added support for localized strings and icons
8911           - Improved form size calculations, added border
8912         * ListView.cs: Removed border_style field (now in Control)
8913         * X11Structs.cs: Moved several structs from X11 driver here
8914         * X11Keyboard.cs: Changed debug message
8915         * Application.cs: Removed FormParent concept support
8916         * CommonDialog.cs:
8917           - Resetting end_modal flag
8918           - Removed FormParent concept support
8919         * NativeWindow.cs: Removed FormParent concept support
8920         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8921           Client area and Non-Client whole window to allow support for WM_NC
8922           messages
8923         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8924           prevent using it until it supports Hwnd as per Geoff Norton's request
8925         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8926         * PictureBox.cs: Removed border_style field, now in Control
8927         * XplatUIWin32.cs: Added new driver methods
8928
8929 2005-02-12  Peter Bartok  <pbartok@novell.com>
8930
8931         * OpacityConverter.cs: Implemented
8932         * Hwnd.cs: Internal class to support drivers that need to emulate
8933           client area/non-client area window behaviour
8934
8935 2005-02-11  Peter Bartok  <pbartok@novell.com>
8936
8937         * KeysConverter.cs: Implemented
8938
8939 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
8940
8941         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
8942         * LinkLabel: Added missing attributes
8943         * MainMenu.cs: fixes ToString
8944         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
8945         * ListBox.cs: fixes event position
8946         * TrackBar.cs: adds missing attributes and events
8947         
8948 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
8949
8950         * MenuItem.cs: Use SystemInformation and bug fixes
8951         * MenuAPI.cs: Use SystemInformation and bug fixes
8952
8953 2005-02-09  Jackson Harper  <jackson@ximian.com>
8954
8955         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
8956         their keystate otherwise things like VK_MENU get stuck "on".
8957
8958 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
8959
8960         * ListBox.cs: Fixes AddRange bug
8961         
8962 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
8963
8964         * ProgressBar.cs
8965                 - Add missing attributes
8966                 - Add missing method
8967                 
8968         * CheckedListBox.cs: Added missing attributes
8969                 - Add missing attributes
8970                 - Remove extra method
8971         
8972         * ComboBox.cs: Added missing attributes
8973         * VScrollBar.cs: Added missing attributes
8974         * ScrollBar.cs:  Added missing attributes
8975         * ListBox.cs: Fixes signature, add missing consts
8976         * LinkArea.cs:   Added missing attributes
8977         
8978
8979 2005-02-08  Peter Bartok  <pbartok@novell.com>
8980
8981         * Menu.cs: Added missing attributes
8982         * MainMenu.cs: Added missing attributes
8983         * GroupBox.cs: Added missing attributes
8984         * Label.cs: Added missing attributes
8985         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
8986         * ColorDialog.cs:
8987           - Added Instance and Options properties
8988           - Added missing attributes
8989         * Cursor.cs: Made Serializable
8990         * NotifyIcon: Added missing attributes
8991         * MenuItem.cs: Added missing attributes
8992         * TextBoxBase.cs: Implemented AppendText() and Select() methods
8993         * Panel.cs: Added Missing attributes
8994         * MonthCalendar.cs: Fixed CreateParams
8995
8996 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
8997         
8998         * LinkLabel.cs:
8999                 - Fixes signature
9000                 - Fixes issues with links
9001                 - Adds the class attributes
9002
9003 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9004         
9005         * ComboBox.cs:
9006                 - Fixes button when no items available in dropdown
9007                 - Fixes repainting problems
9008                 - Adds the class attributes
9009                 
9010 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9011
9012         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9013         the current theme.  Cache these on startup.
9014
9015 2005-02-07  Jackson Harper  <jackson@ximian.com>
9016
9017         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9018         the scrollbar buttons when they are depressed.
9019
9020 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9021
9022         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9023         Get the display size from the main displayid.  We currently dont
9024         support multiple display configurations.
9025
9026 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9027
9028         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9029
9030 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9031
9032         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9033
9034 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9035
9036         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9037
9038 2005-02-04  Jackson Harper  <jackson@ximian.com>
9039
9040         * ThemeWin32Classic.cs: Respect the clipping rect when
9041         drawing. Only fill the intersection of clips and rects so there
9042         isn't a lot of large fills.
9043         * ScrollBar.cs: Pass the correct clipping rect to the theme
9044         engine. Remove some debug code.
9045
9046 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9047         
9048         * DateTimePicker.cs:
9049                 - Fixed crash on DateTime.Parse, use Constructor instead
9050
9051 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9052         
9053         * MenuItem.cs:
9054         * MenuAPI.cs:
9055                 - Owner draw support (MeasureItem and DrawItem)
9056
9057 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9058         
9059         *  Menu.cs:
9060                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9061                 - Fixes MenuItems.Add range
9062         * MenuItem.cs:
9063                 - MergeMenu and Clone and CloneMenu functions
9064
9065 2005-02-03  Jackson Harper  <jackson@ximian.com>
9066
9067         * ScrollBar.cs: Make abstract
9068         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9069         is abstract.
9070
9071 2005-02-03  Jackson Harper  <jackson@ximian.com>
9072
9073         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9074         all the unneeded refreshes and uses invalidates with properly
9075         computed rects.
9076
9077 2005-02-03  Peter Bartok  <pbartok@novell.com>
9078
9079         * ComponentModel.cs: Added
9080         * IDataGridEditingService.cs: Added
9081         * Timer.cs: Added missing attributes
9082         * ToolTip.cs: Added missing attributes
9083
9084 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9085
9086         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9087
9088 2005-02-03  Peter Bartok  <pbartok@novell.com>
9089
9090         * ListBox.cs: Added missing attributes
9091
9092 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9093         
9094         * ListBox.cs:
9095                 - Fixes font height after font change
9096                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9097                 
9098 2005-02-02  Peter Bartok  <pbartok@novell.com>
9099
9100         * HandleData.cs: Introduced static methods to allow class
9101           to be more self-contained and track it's own HandleData objects
9102         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9103           HandleData to use new static methods
9104
9105 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9106
9107         * Combobox.cs:
9108                 - Fixes default size and PreferredHeight
9109                 - Missing events
9110                 - ObjectCollection.Insert implementation
9111                 
9112         * ListControl.cs
9113                 - Fixes signature
9114         * ListBox.cs:
9115                 - Several fixes
9116                 - ObjectCollection.Insert implementation
9117                 - No selection after clean
9118                 - Small fixes
9119
9120 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9121
9122         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9123
9124 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9125
9126         * Combobox.cs:
9127                 - Caches ItemHeight calculation for OwnerDrawVariable
9128                 - Handles dropdown properly
9129                 - Fixes several minor bugs
9130
9131 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9132
9133         * ListBox.cs:
9134                 - Fixes 71946 and 71950
9135                 - Fixes changing Multicolumn on the fly
9136                 - Fixes keyboard navigation on Multicolumn listboxes
9137
9138 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9139         
9140         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9141         crash reporter log.
9142
9143 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9144
9145         * XplatUIOSX.cs: Allow applications to actually exit.
9146
9147 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9148
9149         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9150         their parent at creation time rather than lazily later.  Fixes a major
9151         regression we were experiencing.
9152
9153 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9154
9155         * ThemeWin32Classic.cs: more date time picker painting fixes
9156         * DateTimePicker.cs: more monthcalendar drop down fixes
9157         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9158
9159 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9160
9161         * ScrollBar.cs:
9162                 - When moving the thumb going outside the control should stop the moving
9163                 - Adds the firing of missing events
9164                 - Fixes no button show if Size is not specified
9165                 - End / Home keys for keyboard navigation
9166
9167 2005-01-30  Peter Bartok  <pbartok@novell.com>
9168
9169         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9170           sanity check to prevent theoretical loop
9171         * XplatUIWin32.cs (SetVisible): Removed debug output
9172         * XplatUIX11.cs (SystrayChange): Added sanity check
9173         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9174         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9175           behaviour, valid until the X11 client window rewrite is done
9176         * TextBox.cs (ctor): Setting proper default foreground and background
9177           colors
9178
9179 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9180
9181         * Theme: Added DrawDateTimePicker to interface
9182         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9183         * DateTimePicker.cs: Created (still needs keys and painting code)
9184         * DateTimePickerFormat.cs: added
9185         * MonthCalendar.cs: fixed CreateParams for popup window mode
9186           
9187 2005-01-29  Peter Bartok  <pbartok@novell.com>
9188
9189         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9190           this should also the calculations for ligher/darker
9191         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9192
9193 2005-01-29  Peter Bartok  <pbartok@novell.com>
9194
9195         * ArrangeDirection.cs: Added
9196         * ArrangeStartingPositon.cs: Added
9197         * SystemInformation.cs: Implemented
9198         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9199           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9200           used by SystemInformation class
9201         * X11Strucs.cs: Added XSizeHints structure
9202         * MenuAPI.cs:
9203           - Fixed CreateParams to make sure the menu window is always visible
9204           - TrackPopupMenu: Added check to make sure we don't draw the
9205             menu offscreen
9206
9207 2005-01-29  Peter Bartok  <pbartok@novell.com>
9208
9209         * HandleData.cs: Added method for altering invalid area
9210         * TextBoxBase.cs: Implemented TextLength
9211
9212 2005-01-28  Peter Bartok  <pbartok@novell.com>
9213
9214         * XplatUIX11.cs: Improvement over last patch, not sending
9215           the WM_PAINT directly anymore, instead we scroll any pending
9216           exposed areas and let the system pick out the WM_PAINT later
9217
9218 2005-01-28  Peter Bartok  <pbartok@novell.com>
9219
9220         * SWF.csproj: Deleted, no longer used. Instead,
9221           Managed.Windows.Forms/SWF.csproj should be used
9222         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9223           directly, to avoid a potential race condition with the next
9224           scroll
9225
9226 2005-01-28  Peter Bartok  <pbartok@novell.com>
9227
9228         * XplatUI.cs: Made class internal
9229
9230 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9231
9232         * CheckedListBox.cs:
9233                 - Draw focus
9234                 - Fixed Drawing
9235                 - Missing methods and events
9236
9237 2005-01-27  Peter Bartok  <pbartok@novell.com>
9238
9239         * Application.cs (Run): Don't use form if we don't have one
9240
9241 2005-01-27  Peter Bartok  <pbartok@novell.com>
9242
9243         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9244
9245 2005-01-27  Peter Bartok  <pbartok@novell.com>
9246
9247         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9248         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9249         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9250         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9251         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9252         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9253         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9254         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9255         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9256         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9257         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9258         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9259
9260 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9261
9262         * Combobox.cs:
9263                 - Draw focus on Simple Combobox
9264                 - Fixes drawing issues
9265                 - fixes 71834
9266
9267 2005-01-27  Peter Bartok  <pbartok@novell.com>
9268
9269         * Form.cs:
9270           - Place window in default location, instead of hardcoded 0/0
9271           - Send initial LocationChanged event
9272         * Control.cs:
9273           - UpdateBounds after creation to find out where the WM placed us
9274           - Make sure that if the ParentForm changes location the Form
9275             is notified
9276         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9277             to the root, but to whatever the WM placed around us.
9278             Translate to root coordinates before returning toplevel
9279             coordinates
9280         * XplatUIWin32.cs: Removed debug output
9281         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9282           flag to GetWindowPos, to allow translation of coordinates on X11
9283
9284 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9285
9286         * ListBox.cs: connect LostFocus Event
9287
9288 2005-01-27  Peter Bartok  <pbartok@novell.com>
9289
9290         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9291           XplatUIX11.cs: Extended the Systray API
9292         * Form.cs: Removed debug output
9293         * Application.cs: Fixed focus assignment, always need to call
9294           XplatUI.Activate() since Form.Activate() has rules that may
9295           prevent activation
9296         * NotifyIcon.cs: Should be complete now
9297         * ToolTip.cs: Worked around possible timer bug
9298
9299 2005-01-27  Jackson Harper  <jackson@ximian.com>
9300
9301         * TabControl.cs:
9302         - Only invalidate the effected tabs when the
9303         selected index changes. This reduces drawing and gets rid of some
9304         flicker.
9305         - Only refresh if the tabs need to be shifted, otherwise only
9306         invalidate the slider button.
9307         - On windows the tabs are not filled to right if the slider is
9308         visible.
9309         
9310 2005-01-27  Jackson Harper  <jackson@ximian.com>
9311
9312         * TabControl.cs: Only refresh on mouseup if we are showing the
9313         slider. Also only invalidate the button whose state has changed.
9314
9315 2005-01-26  Peter Bartok  <pbartok@novell.com>
9316
9317         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9318         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9319           and SystrayRemove() methods
9320         * XplatUIOSX.cs: Stubbed Systray methods
9321         * XplatUIX11.cs:
9322           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9323             methods
9324           - Fixed broken XChangeProperty calls (marshalling messed up things)
9325         * X11Structs.cs: Added enums and structs required for Size hinting
9326         * NotifyIcon.cs: Added & implemented
9327
9328 2005-01-26  Jackson Harper  <jackson@ximian.com>
9329
9330         * TabControl.cs: Space vertically layed out tabs properly.
9331
9332 2005-01-26  Peter Bartok  <pbartok@novell.com>
9333
9334         * Form.cs (CreateClientParams): Always set the location to 0,0
9335           since we're a child window.
9336
9337         * Control.cs (SetVisibleCore): Always explicitly setting the location
9338           of a toplevel window, apparently X11 doesn't like to move windows
9339           while they're not mapped.
9340
9341 2005-01-26  Jackson Harper  <jackson@ximian.com>
9342
9343         * TabControl.cs: Implement FillToRight size mode with vertically
9344         rendered tabs.
9345
9346 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9347
9348         * ControlPaint.cs, ThemeWin32Classic.cs
9349                 - Fixes DrawFocusRectangle
9350
9351 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9352
9353         * MenuAPI.cs:
9354                 - MenuBar tracking only starts when item is first clicked
9355                 - Fixes menu hidding for multiple subitems
9356                 - Unselect item in MenuBar when item Executed
9357                 - Fixes bug 71495
9358
9359 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9360
9361         * ListControl.cs:
9362                 - IsInputKey for ListBox
9363         * ListBox.cs:
9364                 - Focus item
9365                 - Shift and Control item selection
9366                 - Implement SelectionMode.MultiExtended
9367                 - Fixes RightToLeft
9368         * ComboBox.cs:
9369                 - IsInputKey implemented
9370                 - Do not generate OnTextChangedEdit on internal txt changes
9371                 
9372 2005-01-23  Peter Bartok  <pbartok@novell.com>
9373
9374         * AccessibleObject.cs: Partially implemented Select()
9375         * MonthCalendar.cs: Added missing attributes and events
9376         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9377           form can properly override CreateParams.
9378         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9379           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9380           Control performs Invalidate & Update
9381         * NativeWindow (CreateHandle): Added special handling for Form
9382           and Form.FormParent classes to allow overriding of From.CreateParams
9383         * Control.cs:
9384           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9385             name 'owner'
9386           - ControlNativeWindow: Added Owner property
9387           - Removed usage of Refresh() on property changes, changed into
9388             Invalidate(), we need to wait until the queue is processed for
9389             updates, direct calls might cause problems if not all vars for
9390             Paint are initialized
9391           - Added call to UpdateStyles() when creating the window, to set any
9392             styles that CreateWindow might have ignored.
9393           - Added support for Form CreateParent overrides to UpdateStyles()
9394         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9395           CreateParams are now properly overridable
9396         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9397           CreateParams are now properly overridable
9398
9399 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9400
9401         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9402         OnTextBoxChanged.
9403
9404         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9405         recursive invocation that I have not figured out yet.
9406
9407         Reset the timer when not using (it was accumulating).
9408
9409
9410         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9411         user has made changes that require validation.
9412
9413         Reset changing to avoid loops.
9414
9415 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9416
9417         * NumericUpDown.cs: Display value at startup.
9418
9419         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9420         ValidateEditText.
9421
9422         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9423         filled in.  Added some basic parsing of text.
9424
9425         Still missing the OnXXX method overrides, and figuring out the
9426         events that must be emitted.
9427
9428         * UpDownBase.cs: Handle UserEdit on the Text property.
9429         
9430 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9431
9432         * ComboBox.cs:
9433           - Fixes IntegralHeight
9434           - ToString method
9435
9436 2005-01-21  Jackson Harper  <jackson@ximian.com>
9437
9438         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9439         is set so that the page visibility is updated and the tabs are
9440         sized correctly.
9441
9442 2005-01-21  Jackson Harper  <jackson@ximian.com>
9443
9444         * TabControl.cs: Use cliping rectangle for blitting. Give the
9445         theme the clipping rect so we can do clipping while
9446         drawing. Remove some debug code.
9447
9448 2005-01-21  Jackson Harper  <jackson@ximian.com>
9449
9450         * TabPage.cs: Add a new method so tab pages can force the tab
9451         control to recalculate the tab page sizes.
9452         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9453         sizes.
9454
9455 2005-01-20  Jackson Harper  <jackson@ximian.com>
9456
9457         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9458
9459 2005-01-20  Jackson Harper  <jackson@ximian.com>
9460
9461         * TreeView.cs: Set the bounds for nodes properly. They were
9462         getting screwed up when checkboxes were not enabled, but images
9463         were.
9464
9465 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9466
9467         * ListBox.cs:
9468                 - Owner draw support
9469                 - Fixes
9470                 
9471 2005-01-20  Jackson Harper  <jackson@ximian.com>
9472
9473         * XplatUIStructs.cs: More misc keys
9474         * X11Keyboard.cs: Ignore some control keys.
9475
9476 2005-01-20  Jackson Harper  <jackson@ximian.com>
9477
9478         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9479         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9480
9481 2005-01-19  Peter Bartok  <pbartok@novell.com>
9482
9483         * Control.cs: Un-selecting the control when it is loosing focus
9484
9485 2005-01-19  Jackson Harper  <jackson@ximian.com>
9486
9487         * TreeView.cs: Hook up to the text controls leave event so we can
9488         end editing when the users clicks outside the text box.
9489         
9490 2005-01-19  Jackson Harper  <jackson@ximian.com>
9491
9492         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9493         get set in the conversion array.
9494
9495 2005-01-19  Peter Bartok  <pbartok@novell.com>
9496
9497         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9498           focus is properly set
9499         * Button.cs:
9500           - Added missing attributes
9501           - removed styles, those are already set in the base class
9502         * ButtonBase.cs:
9503           - Added missing attributes
9504           - Added clip window styles
9505         * CheckBox.cs: Added missing attributes
9506         * CommonDialog.cs:
9507           - FormParentWindow.CreateParams: Added required clip styles
9508         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9509           also filters modifier keys
9510         * MessageBox.cs:
9511           - Added assignment of Accept and Cancel button to enable Enter
9512             and Esc keys in MessageBox dialogs
9513           - FormParentWindow.CreateParams: Added required clip styles
9514         * RadioButton.cs: Added missing attributes
9515         * TextControl.cs: No longer draws selection if control does not
9516           have focus
9517         * TextBoxBase.cs:
9518           - Now draws simple rectangle around test area to make it obvious
9519             there's a control. This is a hack until we properly support borders
9520           - A few simple fixes to support selections better, now erases selected
9521             text when typing, and resets selection when using movement keys
9522
9523 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9524
9525         * UpDownBase.cs: Added some new properties.
9526
9527         * DomainUpDown.cs: Implement a lot to get my test working.
9528
9529 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9530
9531         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9532
9533 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9534
9535         * OSXStructs (WindowAttributes): Fixed csc complaints
9536
9537 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9538
9539         * XplayUIOSX.cs:
9540           OSXStructs.cs: Initial refactor to move enums and consts into
9541           OSXStructs and use them in the driver for greater readability.
9542
9543 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9544
9545         * XplatUIOSX.cs: Initial support for Standard Cursors.
9546         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9547
9548 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9549
9550         * ComboBox.cs: ability to change style when the ctrl is already
9551         created, missing methods and events, bug fixes, signature fixes
9552
9553 2005-01-19  Peter Bartok  <pbartok@novell.com>
9554
9555         * Cursors.cs (ctor): Added ctor to fix signature
9556
9557 2005-01-18  Peter Bartok  <pbartok@novell.com>
9558
9559         * Button.cs: Implemented DoubleClick event
9560         * ButtonBase.cs:
9561           - Fixed keyboard handling to behave like MS, where the press of
9562             Spacebar is equivalent to a mousedown, and the key release is
9563             equivalent to mouseup. Now a spacebar push will give the same
9564             visual feedback like a mouse click.
9565           - Added missing attributes
9566           - Added ImeModeChanged event
9567           - Added support for generating DoubleClick event for derived classes
9568         * CheckBox.cs:
9569           - Implemented DoubleClick event
9570           - Added missing attributes
9571         * CommonDialog.cs: Added missing attribute
9572         * ContextMenu.cs: Added missing attributes
9573         * RadioButton.cs:
9574           - AutoChecked buttons do not allow to be unselected when clicked
9575             (otherwise we might end up with no selected buttons in a group)
9576           - Added missing attributes
9577           - Implemented DoubleClickEvent
9578         * ThreadExceptionDialog.cs: Enabled TextBox code
9579
9580 2005-01-18  Peter Bartok  <pbartok@novell.com>
9581
9582         * Form.cs: Removed debug output
9583         * Button.cs: Added support for DoubleClick method
9584
9585 2005-01-18  Peter Bartok  <pbartok@novell.com>
9586
9587         * Form.cs:
9588           - Added method to parent window that allows triggering size
9589             calculations when a menu is added/removed
9590           - set_Menu: Cleaned up mess from early days of Form and Control,
9591             now properly triggers a recalc when a menu is added/removed
9592           - Added case to select form itself as focused form if no child
9593             controls exist
9594           - Added PerformLayout call when showing dialog, to ensure properly
9595             placed controls
9596         * Control.cs:
9597           - Select(): Made internal so Form can access it
9598           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9599             status
9600         * Application.cs (Run): Removed hack and calls PerformLayout instead
9601           to trigger calculation when Form becomes visible
9602
9603 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9604
9605         * ComboBox.cs: fixes for ownerdraw
9606
9607 2005-01-18  Peter Bartok  <pbartok@novell.com>
9608
9609         * TextControl.cs:
9610           - Sentinel is no longer static, each Document gets it's own, this
9611             avoids locking or alternatively overwrite problems when more
9612             than one text control is used simultaneously.
9613           - Switched to use Hilight and HilightText brushes for text selection
9614
9615         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9616
9617 2005-01-18  Peter Bartok  <pbartok@novell.com>
9618
9619         * Control.cs:
9620           - Hooked up the following events:
9621                 o ControlAdded
9622                 o ControlRemoved
9623                 o HandleDestroyed
9624                 o ImeModeChanged
9625                 o ParentChanged
9626                 o TabStopChanged
9627                 o Invalidated
9628                 o SystemColorsChanged
9629                 o ParentFontChanged
9630                 o Move
9631           - Removed debug output
9632           - Added a call to the current theme's ResetDefaults when a color change
9633             is detected
9634         * Form.cs: Now setting the proper ImeMode
9635         * Theme.cs: Defined a method to force recreation of cached resources
9636           and rereading of system defaults (ResetDefaults())
9637         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9638
9639 2005-01-17  Peter Bartok  <pbartok@novell.com>
9640
9641         * Control.cs: Added missing attributes
9642
9643 2005-01-17  Jackson Harper  <jackson@ximian.com>
9644
9645         * TreeNode.cs: Implement editing. Add missing properties selected
9646         and visible.
9647         * TreeView.cs: Implement node editing. Also some fixes to use
9648         Invalidate (invalid area) instead of Refresh when selecting.
9649
9650 2005-01-17  Peter Bartok  <pbartok@novell.com>
9651
9652         * Control.cs:
9653           - Implemented InvokeGotFocus() method
9654           - Implemented InvokeLostFocus() method
9655           - Implemented InvokePaint() method
9656           - Implemented InvokePaintBackground() method
9657           - Implemented InvokeClick() method
9658           - Implemented FindForm() method
9659           - Implemented RectangleToClient() method
9660           - Implemented ClientToRectangle() method
9661           - Implemented ResetBackColor() method
9662           - Implemented ResetCursor() method
9663           - Implemented ResetFont() method
9664           - Implemented ResteForeColor() method
9665           - Implemented ResetImeMode() method
9666           - Implemented ResetLeftToRight() method
9667           - Implemented ResetText() method
9668           - Implemented Scale() methods
9669           - Implemented ScaleCore() method
9670           - Implemented Update() method
9671           - Removed unused variables
9672           - Stubbed AccessibilityNotifyClients and
9673             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9674             with those yet)
9675           - Now setting proper default for RightToLeft property
9676           - Fixed bug in SetClientSizeCore that would cause windows to get
9677             really big
9678           - Now sending Click/DoubleClick events
9679           - Now selecting controls when left mouse button is clicked on
9680             selectable control
9681         * AccessibleEvents.cs: Added
9682         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9683         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9684         * XplatUIWin32.cs: Implemented UpdateWindow() method
9685         * XplatUIX11.cs: Implemented UpdateWindow() method
9686         * Form.cs: Removed stray semicolon causing CS0162 warning
9687         * ThemeWin32Classic.cs: Fixed unused variable warnings
9688         * ScrollableControl.cs: Now calls base method for ScaleCore
9689         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9690           style to avoid interference with internal click handler (which is
9691           different than standard Control click handling)
9692         * RadioButton.cs:
9693           - Now unchecks all sibling radio buttons when control is
9694             selected (Fixes #68756)
9695           - Removed internal tabstop variable, using the one inherited from
9696             Control
9697
9698 2005-01-17  Jackson Harper  <jackson@ximian.com>
9699
9700         * NavigateEventArgs.cs: Fix base type.
9701         * LinkLabel.cs: Sig fix
9702         
9703 2005-01-17  Jackson Harper  <jackson@ximian.com>
9704
9705         * TreeView.cs: Only invalidate the effected nodes bounds when
9706         selecting nodes.
9707
9708 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9709
9710         * XplatUIWin32.cs: fixes Win32 marshaling
9711         * XplatUIX11.cs: fixes method signature
9712
9713 2005-01-17  Peter Bartok  <pbartok@novell.com>
9714
9715         * XplatUIX11.cs: Clean up resources when we no longer need them
9716
9717 2005-01-17  Peter Bartok  <pbartok@novell.com>
9718
9719         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9720           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9721           and DestroyCursor() methods.
9722         * Cursor.cs: Partially implemented, now supports standard cursors;
9723           still contains some debug code
9724         * Cursors.cs: Implemented class
9725         * Control.cs:
9726           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9727             appropriate cursor
9728           - Implemented Cursor property
9729           - Replaced break; with return; more straightforwar and possibly
9730             faster
9731           - Now properly setting the result for WM_HELP
9732         * X11Structs.cs: Added CursorFontShape enum
9733         * XplatUIStructs.cs:
9734           - Added StdCursor enum (to support DefineStdCursor() method)
9735           - Added HitTest enum (to support sending WM_SETCURSOR message)
9736         * XplatUIX11.cs:
9737           - Now sends the WM_SETCURSOR message
9738           - Implemented new cursor methods
9739         * XplatUIOSX.cs: Stubbed new cursor methods
9740         * XplatUIWin32.cs:
9741           - Implemented new cursor methods
9742           - Added GetSystemMetrics function and associated enumeration
9743
9744 2005-01-15  Peter Bartok  <pbartok@novell.com>
9745
9746         * Control.cs:
9747           - WndProc(): Now handles EnableNotifyMessage
9748           - SelectNextControl(): Fixed bug where if no child or sibling
9749             controls exist we looped endlessly
9750
9751 2005-01-14  Jackson Harper  <jackson@ximian.com>
9752
9753         * TreeView.cs: Recalculate the tab pages when a new one is added
9754         so that the proper bounding rects are created.
9755
9756 2005-01-14  Jackson Harper  <jackson@ximian.com>
9757
9758         * TreeView.cs: Draw a gray box instead of a grip in the lower
9759         right hand corner when there are both horizontal and vertical
9760         scroll bars.
9761
9762 2005-01-14  Jackson Harper  <jackson@ximian.com>
9763
9764         * Control.cs: When erasing backgrounds use FromHwnd instead of
9765         FromHdc when there is a NULL wparam. This occurs on the X driver.
9766         * XplatUIX11.cs: Set the wparam to NULL.
9767
9768 2005-01-13  Jackson Harper  <jackson@ximian.com>
9769
9770         * PictureBox.cs: Implement missing methods (except ToString, need
9771         to test that on windows) and events. When visibility is changed we
9772         need to redraw the image because the buffers are killed. When size
9773         is changed refresh if the sizemode needs it.
9774
9775 2005-01-13  Peter Bartok  <pbartok@novell.com>
9776
9777         * Control.cs (SelectNextControl): Was using wrong method to select
9778           a control
9779
9780 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9781
9782         * ComboBox.cs: fixes dropstyle
9783
9784 2005-01-13  Peter Bartok  <pbartok@novell.com>
9785
9786         * Form.cs:
9787           - Implemented Select() override
9788           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9789           - Now sets keyboard focus on startup
9790         * Control.cs (SelectNextControl): Now properly handles directed=true
9791         * TextBoxBase.cs:
9792           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9793           - Added (really bad) focus rectangle (mostly for testing)
9794         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9795           to enforce redraw on focus changes
9796         * ContainerControl.cs:
9797           - Fixed detection of Shift-Tab key presses
9798           - Fixed traversal with arrow keys
9799         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9800           gonna keep this or if it's complete yet
9801         
9802 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9803
9804         * ComboBox.cs: missing properties, fixes
9805
9806 2005-01-13  Peter Bartok  <pbartok@novell.com>
9807
9808         * Panel.cs (ctor): Setting Selectable window style to off
9809         * Splitter.cs (ctor): Setting Selectable window style to off
9810         * GroupBox.cs (ctor): Setting Selectable window style to off
9811         * Label.cs (ctor): Setting Selectable window style to off
9812
9813 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9814
9815         * UpDownBase.cs (InitTimer): If the timer has been already
9816         created, enable it.
9817
9818         Use a TextBox instead of a Label.
9819
9820 2005-01-12  Jackson Harper  <jackson@ximian.com>
9821
9822         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9823         draw the connecting node lines (when ShowLines is true).
9824         * TreeNode.cs: The nodes index can now be updated. This is used
9825         when a node collection is sorted.
9826         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9827         insert or an existing unsorted node collection can be sorted.
9828         
9829 2005-01-12  Peter Bartok  <pbartok@novell.com>
9830
9831         * ContainerControl.cs: Implemented ProcessDialogKeys()
9832
9833 2005-01-12  Peter Bartok  <pbartok@novell.com>
9834
9835         * Control.cs:
9836           - Implemented SelectNextControl() method
9837           - Several focus related bug fixes
9838           - Fixed Docking calculations to match MS documentation and
9839             behaviour
9840
9841 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9842
9843         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9844         bug fixes
9845
9846 2005-01-12  Peter Bartok  <pbartok@novell.com>
9847
9848         * Control.cs:
9849           - Fixed broken Contains() method
9850           - Implemented GetNextControl() method. Finally. This is the pre-
9851             requisite for focus handling.
9852
9853 2005-01-12  Peter Bartok  <pbartok@novell.com>
9854
9855         * OSXStrucs.cs: Added
9856
9857 2005-01-12  Peter Bartok  <pbartok@novell.com>
9858
9859         * XplatUIWin32.cs:
9860           - Removed PeekMessageFlags
9861           - Implemented SetWindowStyle() method
9862         * XplatUIStructs.cs: Added PeekMessageFlags
9863         * X11Structs: Added missing border_width field to XWindowChanges struct
9864         * XplatUIX11.cs:
9865           - PeekMessage: Now throws exception if flags which are not yet
9866             supported are passed
9867           - Implemented SetWindowStyle() method
9868           - Fixed SetZOrder to handle AfterHwnd properly
9869         * XplatUI.cs: Added SetWindowStyle() method
9870         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9871         * Control.cs:
9872           - Implemented UpdateStyles() method
9873           - Implemented UpdateZOrder() method
9874         * XplatUIOSX.cs: Added SetWindowStyle() stub
9875
9876 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9877
9878         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9879         button mouse).
9880
9881
9882 2005-01-11  Jackson Harper  <jackson@ximian.com>
9883
9884         * TreeView.cs: Still need to draw lines to siblings even if out of
9885         the current node is out of the clip.
9886
9887 2005-01-11  Jackson Harper  <jackson@ximian.com>
9888
9889         * TreeView.cs: When setting the hbar/vbar/grip position use
9890         SetBounds so that perform layout is only called once. Also suspend
9891         and resume layout so layout is only done once for all controls.
9892         - Removed some debug fluff
9893         * SizeGrip.cs: Call base implmentation in overriding methods.
9894         - When visibility is changed the drawing buffers are killed so we
9895         need to redraw.
9896
9897 2005-01-11  Jackson Harper  <jackson@ximian.com>
9898
9899         * TreeView.cs: Calculate the open node count while drawing. This
9900         saves us an entire tree traversal for every paint operation. Use
9901         a member var for the open node count so less vars are passed around.
9902
9903 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9904
9905         * MonthCalendar.cs:
9906         - fixed selection to use mousemove, not mouse polling on timer
9907         * ThemeWin32Classic.cs
9908         - removed redundant unused variable "no_more_content"
9909         
9910 2005-01-11  Peter Bartok  <pbartok@novell.com>
9911
9912         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9913           are pending, so it now calls PeekMessage instead of GetMessage;
9914           implemented a incomplete version of PeekMessage
9915         
9916 2005-01-11  Peter Bartok  <pbartok@novell.com>
9917
9918         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9919           I18n issues
9920         * TextBoxBase.cs: Added sending of TextChanged event
9921
9922 2005-01-10  Jackson Harper  <jackson@ximian.com>
9923
9924         * TreeView.cs: Try not to draw outside the clipping rectangle on
9925         each node element.
9926
9927 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9928
9929         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9930
9931 2005-01-10  Jackson Harper  <jackson@ximian.com>
9932
9933         * TreeView.cs:
9934         - Implement fast scrolling. Now only the newly
9935         exposed nodes are drawn and the old image is moved using the
9936         XplatUI::ScrollWindow method.
9937         - Factor in height of nodes when calculating whether or not the
9938         node is in the clipping rect.
9939
9940 2005-01-10  Jackson Harper  <jackson@ximian.com>
9941
9942         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
9943
9944 2005-01-10  Peter Bartok  <pbartok@novell.com>
9945
9946         * Application.cs: Added temporary hack to resolve all our resize
9947           required issues on startup. This will get fixed properly at
9948           some point in the future
9949
9950 2005-01-10  Jackson Harper  <jackson@ximian.com>
9951
9952         * SizeGrip.cs: New internal class that is used as a sizing
9953         grip control...hence the name.
9954
9955 2005-01-10  Peter Bartok  <pbartok@novell.com>
9956
9957         * Control.cs: Implemented proper TabIndex handling, now assigning
9958           a tabindex when a control is added to a container
9959         * GroupBox.cs (ctor): Now sets the Container style bit, required
9960           for Control.GetNextControl()
9961
9962 2005-01-09  Jackson Harper  <jackson@ximian.com>
9963
9964         * TextBoxBase.cs: Clear window when scrolling (fixes build).
9965
9966 2005-01-09  Peter Bartok <pbartok@novell.com>
9967
9968         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9969           XplatUIX11.cs: Added ability to control ScrollWindow expose and
9970           an overload for ScrollWindow to allow only scrolling a rectangle
9971
9972 2005-01-09  Peter Bartok <pbartok@novell.com>
9973
9974         * Form.cs:
9975           - Implemented SetDesktopBounds method
9976           - Implemented SetDesktopLocation method
9977
9978 2005-01-08  Jackson Harper  <jackson@ximian.com>
9979
9980         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
9981         the node count has changed, this removes to VScroll::Refresh calls
9982         when drawing.
9983
9984 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
9985
9986         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
9987
9988 2005-01-07  Jackson Harper  <jackson@ximian.com>
9989
9990         * TreeNode.cs: Just update the single node when it is
9991         checked. Don't refresh after toggling, the Expand/Collapse already
9992         handles this.
9993         * TreeView.cs: Respect clipping a little more when drawing. Try
9994         not to redraw things that don't need to be redrawn. Just hide the
9995         scrollbars when they are no longer needed instead of removing
9996         them, so they don't have to be created again and again.
9997         
9998 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
9999
10000         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10001         coordinates to window space to place the caret properly, FIXED.
10002         Implement GetWindowState & SetWindowState
10003
10004 2005-01-06  Peter Bartok <pbartok@novell.com>
10005
10006         * Form.cs:
10007           - Implemented ClientSize property
10008           - Implemented DesktopBounds property
10009           - Implemented DesktopLocation property
10010           - Implemented IsRestrictedWindow property
10011           - Implemented Size property
10012           - Implemented TopLevel property
10013           - Implemented FormWindowState property
10014         * Control.cs:
10015           - Implemented GetTopLevel() method
10016           - Implemented SetTopLevel() method
10017         * X11Structs.cs (Atom):
10018           - Added AnyPropertyType definition
10019           - Added MapState definiton and updated XWindowAttribute struct
10020         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10021         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10022         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10023         * XplatUIWin32.cs:
10024           - Implemented GetWindowState() and SetWindowState() methods
10025           - Fixed Win32GetWindowLong return type
10026         * XplatUIX11.cs:
10027           - Introduced central function for sending NET_WM messages
10028           - Implemented GetWindowState() and SetWindowState() methods
10029         * TextBoxBase.cs (set_Lines):
10030           - Now uses Foreground color for text added via Text property (Duh!)
10031           - Added code to remember programmatically requested size (fixes
10032             behaviour when Multiline is set after Size)
10033           - Added AutoSize logic
10034
10035 2005-01-06  Jackson Harper  <jackson@ximian.com>
10036
10037         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10038
10039 2005-01-06  Jackson Harper  <jackson@ximian.com>
10040
10041         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10042         set to less then 0.
10043
10044 2005-01-06  Jackson Harper  <jackson@ximian.com>
10045
10046         * ScrollableControl.cs: Lazy init the scrollbars.
10047         
10048 2005-01-06  Jackson Harper  <jackson@ximian.com>
10049
10050         * Theme.cs: Speed up getting pens and solid brushes, by using
10051         their ARGB as a hash instead of tostring and not calling Contains.
10052
10053 2005-01-06  Peter Bartok <pbartok@novell.com>
10054
10055         * Form.cs:
10056           - Implemented OnActivated and OnDeactivate event trigger
10057           - Implemented Activate() method
10058           - Fixed ShowDialog() to activate the form that was active before
10059             the dialog was shown
10060         * XplatUIX11.cs:
10061           - Added global active_window var that tracks the currently active
10062             X11 window
10063           - Now always grabs Property changes from the root window to always
10064             catch changes on the active window property
10065           - Added code to PropertyNotify handler to send Active/Inactive
10066             messages when state changes. This puts X11 and Win32 en par on
10067             WM_ACTIVATE notifications (except for double notifications when
10068             the user clicks away from our modal window to another one of our
10069             windows)
10070
10071 2005-01-05  Jackson Harper  <jackson@ximian.com>
10072
10073         * ImageList.cs: Implment ctor
10074
10075 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10076
10077         * XplatUIOSX.cs: Implement Activate/SetTopmost
10078
10079 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10080
10081         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10082
10083 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10084
10085         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10086
10087 2005-01-05  Peter Bartok <pbartok@novell.com>
10088
10089         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10090           XplatUIOSX.cs: Added GetActive method to return the currently
10091           active window for the application (or null, if none is active)
10092         * Form.cs:
10093           - Implemented ActiveForm
10094           - Commented out owner assignment for modal dialogs (causes problems
10095             on Win32, since the owner will be disabled)
10096           - Reworked some Active/Focus handling (still incomplete)
10097         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10098           (causes problems on Win32, since the owner will be disabled)
10099         * IWin32Window: Added ComVisible attribute
10100
10101 2005-01-05  Peter Bartok <pbartok@novell.com>
10102
10103         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10104           required XplatUI functions.
10105
10106 2005-01-05  Peter Bartok <pbartok@novell.com>
10107
10108         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10109           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10110           to implement focus and activation handling; still incomplete and
10111           with debug output
10112
10113 2005-01-04  Peter Bartok <pbartok@novell.com>
10114
10115         * TextBoxBase.cs: Changed access level for Document property to
10116           match switch to internal for TextControl
10117
10118 2005-01-04  Peter Bartok <pbartok@novell.com>
10119
10120         * AccessibleObject: Added ComVisible attribute
10121
10122 2005-01-04  Jackson Harper  <jackson@ximian.com>
10123
10124         * X11Keyboard.cs: Remove unneeded var.
10125
10126 2005-01-04  Jackson Harper  <jackson@ximian.com>
10127
10128         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10129         but PAINT.
10130         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10131         ClientMessage. This makes apps exit cleanly (more often).
10132         
10133 2005-01-04  Jackson Harper  <jackson@ximian.com>
10134
10135         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10136         handling focus, return correct colors and fonts,
10137         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10138         handle selection, horizontal scrolling, and mouse interaction.
10139
10140 2005-01-04  Peter Bartok <pbartok@novell.com>
10141
10142         * ICommandExecutor.cs: Added
10143         * IDataGridColumnStyleEditingNotificationService.cs: Added
10144         * IFeatureSupport.cs: Added
10145         * IFileReaderService.cs: Added
10146         * IDataObject.cs: Added ComVisible attribute
10147         * AmbientProperties.cs: Added
10148         * BaseCollection.cs: Added missing attributes
10149         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10150         * BaseCollection.cs: Added missing attributes
10151         * Binding.cs: Added TypeConverter attribute
10152         * BindingContext.cs: Added DefaultEvent attribute
10153         * BindingsCollection.cs: Added DefaultEvent attribute
10154         * Button.cs: Added DefaultValue attribute
10155         * DragEventArgs.cs: Added ComVisible attribute
10156         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10157         * KeyEventArgs.cs: Added ComVisible attribute
10158         * KeyPressEventArgs.cs: Added ComVisible attribute
10159         * MouseEventArgs.cs: Added ComVisible attribute
10160         * NavigateEventArgs.cs: Added
10161         * NavigateEventHandler.cs: Added
10162         * FeatureSupport.cs: Added
10163         * OSFeature.cs: Added
10164         * Theme.cs: Added abstract Version property to support OSFeature
10165         * ThemeWin32Classic.cs: Added Version property to
10166           support OSFeature.Themes
10167         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10168           the proper styles to avoid background drawing are set, also doesn't
10169           match MS signature
10170         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10171         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10172         * ScrollEventArgs.cs: Added ComVisible attribute
10173         * SplitterEventArgs.cs: Added ComVisible attribute
10174         * AccessibleSelection.cs: Added Flags attribute
10175         * Appearance.cs: Added ComVisible attribute
10176         * Border3DSide.cs: Added ComVisible attribute
10177         * Border3DStyle.cs: Added ComVisible attribute
10178         * BorderStyle.cs: Added ComVisible attribute
10179         * DragAction.cs: Added ComVisible attribute
10180         * ErrorBlinkStyle.cs: Added
10181         * ScrollEventType.cs: Added ComVisible attribute
10182         * AnchorStyles.cs: Added Editor attribute
10183         * DockStyle.cs: Added Editor attribute
10184         * HorizontalAlignment.cs: Added ComVisible attribute
10185         * HelpEventArgs.cs: Added ComVisible attribute
10186         * PaintEventArgs.cs: Added IDisposable
10187
10188 2005-01-04  Peter Bartok <pbartok@novell.com>
10189
10190         * TextControl.cs: Switched Line, LineTag and Document classes to
10191           internal
10192
10193 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10194
10195         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10196         Simple mode, fixes, IntegralHeight, etc.
10197
10198 2005-01-04  Peter Bartok <pbartok@novell.com>
10199
10200         * TextBoxBase.cs: Using proper font variable now
10201
10202 2005-01-04  Peter Bartok <pbartok@novell.com>
10203
10204         * Form.cs (ShowDialog): Set parent to owner, if provided
10205         * GroupBox.cs: Removed unused vars
10206         * TextControl.cs:
10207           - Added GetHashCode() for Document and LineTag classes
10208           - Removed unused variables
10209           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10210             to allow translation between continuous char position and line/pos
10211         * CheckBox.cs: Removed vars that are provided by base class
10212         * RadioButton.cs: Removed vars that are provided by base class, added
10213           new keyword where required
10214         * LinkLabel.cs: Added new keyword where required
10215         * Control.cs (WndProc): Removed unused variable
10216         * TextBoxBase.cs:
10217           - Finished SelectionLength property
10218           - Implemented SelectionStart property
10219           - Implemented Text property
10220           - Removed unused vars
10221         * MessageBox.cs: Added new keyword where required
10222         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10223           WndProc signature
10224         * MenuAPI.cs: Added new keyword where required
10225         * ButtonBase.cs: Removed vars that are provided by base class, added
10226           new keyword where required
10227         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10228           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10229           into this)
10230         * Application.cs (Run): Now triggers the ThreadExit event
10231         * CommonDialog.cs: Added new keyword where required; now properly sets
10232           parent (owner) for dialog
10233         * XplatUIX11.cs: Commented out unused vars
10234         * StatusBar.cs: Fixed signature for Text property
10235         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10236
10237 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10238
10239         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10240         TrackBar.cs, MonthCalendar.cs: remove unused vars
10241
10242 2005-01-03  Jackson Harper  <jackson@ximian.com>
10243
10244         * ThemeWin32Classic.cs:
10245         * X11Keyboard.cs: Remove unused vars.
10246
10247 2005-01-03  Peter Bartok  <pbartok@novell.com>
10248
10249         * TextBox.cs:
10250           - set_Text: Tied into TextControl
10251           - set_TextAlignment: Tied into TextControl
10252         * TextControl.cs:
10253           - Added alignment properties and implemented alignment handling
10254             and drawing (still has a bug, not generating proper expose events)
10255           - Added new Line() constructor to allow passing the line alignment
10256           - Fixed selection setting, properly handling end<start now
10257           - Added aligment considerations to RecalculateDocument()
10258         * TextBoxBase.cs:
10259           - Now properly enforces control height for single line controls
10260           - Added support for CharacterCasing
10261           - Added IsInputKey override
10262           - Fixed Keys.Enter logic
10263           - Added SetBoundsCore override
10264           - Fixed mouse selection handling
10265
10266 2005-01-03  Jackson Harper  <jackson@ximian.com>
10267
10268         * TreeView.cs:
10269           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10270           - Checkboxes are always aligned to the bottom of the node,
10271           regardless of item height.
10272           - Use the node bounds to draw the text so we can center it when
10273           the item height is greater then the font height.
10274           - Node::Bounds are only the text part of the node.
10275         * TreeNode.cs: New method to combine collapsing and unchecking all
10276           nodes recursively.
10277
10278 2005-01-02  Jackson Harper  <jackson@ximian.com>
10279
10280         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10281         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10282         tree when a check is changed. TODO: Only refresh the checked node.
10283
10284 2004-12-30  Jackson Harper  <jackson@ximian.com>
10285
10286         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10287         * TreeNode.cs: When collapsing make sure to never collapse the
10288         root node.
10289
10290 2004-12-29  Jackson Harper  <jackson@ximian.com>
10291
10292         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10293         
10294 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10295
10296         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10297
10298 2004-12-28  Peter Bartok  <pbartok@novell.com>
10299
10300         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10301           not yet assigned
10302
10303 2004-12-28  Peter Bartok  <pbartok@novell.com>
10304
10305         * Control.cs (WndProc): Added WM_HELP handler, now generates
10306           HelpRequested event
10307         * Form.cs: Added HelpButton property and required support code
10308         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10309
10310 2004-12-28  Peter Bartok  <pbartok@novell.com>
10311
10312         * CommonDialog.cs:
10313           - Made DialogForm.owner variable internal
10314           - Added check to ensure owner form is set before setting
10315             owner properties in CreateParams
10316
10317 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10318
10319         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10320           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10321           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10322           system to support borderless/titleless windows (implements menus).
10323           Fix GetWindowPos.  Implement initial background color support for
10324           views.
10325
10326 2004-12-28  Peter Bartok  <pbartok@novell.com>
10327
10328         * Form.cs (get_CreateParams): Make sure we have an owner before using
10329           the owner variable. Implement proper default if no owner exists
10330
10331 2004-12-28  Peter Bartok  <pbartok@novell.com>
10332
10333         * In preparation for making Managed.Windows.Forms the default build target
10334           for System.Windows.Forms, the following stubbed files were added.
10335           Dialogs are currently being implemented by contributors and are only
10336           short-term place holders.
10337         * ColorDialog.cs: Initial check-in (minmal stub)
10338         * DataGrid.cs: Initial check-in (minimal stub)
10339         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10340         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10341         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10342         * FontDialog.cs: Initial check-in (minimal stub)
10343         * FileDialog.cs: Initial check-in (minimal stub)
10344         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10345         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10346         * OpenFileDialog: Initial check-in (minimal stub)
10347         * IComponentEditorPageSite.cs: Initial check-in
10348         * Splitter.cs: Initial check-in (for Jackson)
10349         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10350         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10351         * TextBox.cs: Initial check-in; still needs some wiring to
10352           TextControl backend
10353         * Form.cs: Implemented ControlBox property
10354         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10355         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10356         * TextControl.cs: Added selection functionality; added todo header
10357         * TextBoxBase.cs:
10358           - Implemented Lines property
10359           - Implemented TextHeight property
10360           - Implemented SelectedText property
10361           - Implemented SelectionLength property
10362           - Implemented SelectAll method
10363           - Implemented ToString method
10364           - Removed and cleaned up some debug code
10365           - Implemented (still buggy) mouse text selection
10366
10367 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10368
10369         * ComboBox.cs: Complete DropDownList implementation, fixes.
10370
10371 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10372
10373         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10374         * ComboBoxStyle.cs: ComboBoxStyle enum
10375         * ComboBox.cs: Initial work on ComboBox control
10376
10377 2004-12-21  Peter Bartok  <pbartok@novell.com>
10378
10379         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10380           forward so that anything that creates a window gets the default,
10381           also no longer uses Visible property in CreateParams to avoid
10382           walking up the parent chain and possibly get the wrong visible
10383           status. Fixed IsVisible to no longer walk up to the parent.
10384
10385 2004-12-21  Peter Bartok  <pbartok@novell.com>
10386
10387         * Form.cs (ShowDialog): Unset modality for the proper window
10388  
10389 2004-12-20  Peter Bartok  <pbartok@novell.com>
10390
10391         * CommonDialog.cs: Initial check-in
10392
10393 2004-12-20  Peter Bartok  <pbartok@novell.com>
10394
10395         * Control.cs (Visible): Now uses the parent window instead of the
10396           client area window for the property
10397
10398         * Form.cs
10399           - ShowDialog(): Now uses the proper window for modality
10400           - The default visibility state for the form parent is now false. This
10401             will prevent the user from seeing all the changes to the form and
10402             its controls before the application hits Application.Run()
10403           - Removed some stale commented out code
10404
10405         * NativeWindow.cs:
10406           - Added FindWindow() method to have a method to check for existence
10407             of a window handle
10408           - Added ability to override default exception handling (for example
10409             when debugging with VS.Net; to do this the ExternalExceptionHandler
10410             define must be set
10411           - Removed some useless debug output
10412
10413         * XplatUIX11.cs:
10414           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10415             not working as expected
10416           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10417             property to allow switching back to the modal window if focus is
10418             given to another one of our windows (Application Modal)
10419           - Now only sets override_redirect if we create a window
10420             without WS_CAPTION
10421           - Moved EventMask selection before mapping of newly created window
10422             so we can catch the map event as well
10423           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10424           - Added various Atom related DllImports
10425           - Implemented Exit() method
10426           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10427             in the CreateParams
10428
10429         * MessageBox.cs: Now properly deals with the FormParent window by
10430           providing an override the FormParent CreateParams property to
10431           set as POPUP instead of OVERLAPPED window.
10432
10433 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10434
10435         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10436         Minor code cleanup.
10437
10438 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10439         
10440         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10441
10442 2004-12-18  Peter Bartok  <pbartok@novell.com>
10443
10444         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10445           implementing SetModal() method
10446
10447 2004-12-18  Peter Bartok  <pbartok@novell.com>
10448
10449         * X11Structs.cs (XGCValues): Fixed type of function element
10450         * XplatUI.cs: Added ScrollWindow() method
10451         * XplatUIDriver.cs: Added ScrollWindow() abstract
10452         * XplatUIWin32.cs: Implemented ScrollWindow() method
10453         * XplatUIX11.cs: Implemented ScrollWindow() method
10454         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10455
10456 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10457
10458         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10459         Some more keyboard support (INCOMPLETE)
10460
10461 2004-12-17  Peter Bartok  <pbartok@novell.com>
10462
10463         * TextControl.cs:
10464         - Added color attribute to line tags.
10465         - Added color argument to all functions dealing with tags
10466         - Added color argument support to various functions
10467         - Fixed miss-calculation of baseline/shift in certain circumstances
10468
10469         * TextBoxBase.cs: Added new color option to test code
10470
10471 2004-12-17  Jackson Harper  <jackson@ximian.com>
10472
10473         * TreeNode.cs:
10474         * MonthCalendar.cs: Signature fixes
10475
10476 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10477
10478         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10479         keyboard event moved it.  Create a new graphics context for each paint resolves this
10480
10481 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10482
10483         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10484         Make caret exist and go blink blink.  Initial keyboard support.
10485         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10486         works.
10487
10488 2004-12-17  Jackson Harper  <jackson@ximian.com>
10489
10490         * XplatUIStructs.cs: Updated set of virtual keycodes.
10491         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10492
10493 2004-12-17  Jackson Harper  <jackson@ximian.com>
10494
10495         * XplatUIX11.cs: Prune old keyboard code.
10496
10497 2004-12-17  Jackson Harper  <jackson@ximian.com>
10498
10499         * XplatUIX11.cs: When generating mouse wparams get the modifier
10500         keys from the ModifierKeys property.
10501
10502 2004-12-17  Jackson Harper  <jackson@ximian.com>
10503
10504         * X11Keyboard.cs: Send up/down input when generating
10505         messages. Remove some unused vars.
10506
10507 2004-12-17  Jackson Harper  <jackson@ximian.com>
10508
10509         * TabControl.cs:
10510         * TreeView.cs: get rid of warnings.
10511
10512 2004-12-17  Jackson Harper  <jackson@ximian.com>
10513
10514         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10515
10516 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10517
10518         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10519           CheckedListBox.cs: Implementation
10520
10521 2004-12-17  Peter Bartok  <pbartok@novell.com>
10522
10523         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10524
10525 2004-12-16  Peter Bartok  <pbartok@novell.com>
10526
10527         * TextControl.cs:
10528           - InsertCharAtCaret(): Fixed start pos fixup
10529           - CaretLine_get: No longer derives the line from the tag, the tag
10530             could be stale if lines in the document have been added or deleted
10531           - RebalanceAfterDelete(): Fixed bug in balancing code
10532           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10533           - Line.Streamline(): Now can also elminate leading empty tags
10534           - DumpTree(): Added a few more tests and prevented exception on
10535             uninitialized data
10536           - Added Debug section for Combining lines
10537           - Delete(): Now copies all remaining properties of a line
10538           
10539         * TextBoxBase.cs:
10540           - Left mousebutton now sets the caret (and middle button still acts
10541             as formatting tester, which must go away soon)
10542           - Added Debug section for Deleting/Combining lines
10543           - Fixed calculations for UpdateView after Combining lines
10544
10545 2004-12-16  Peter Bartok  <pbartok@novell.com>
10546
10547         * TextControl.cs: Now properly aligns text on a baseline, using the
10548           new XplatUI.GetFontMetrics() method. Simplified several calculations
10549         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10550           defined
10551
10552 2004-12-16  Peter Bartok  <pbartok@novell.com>
10553
10554         * XplatUI.cs: Added GetFontMetrics() method
10555         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10556         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10557           into libgdiplus, our private GetFontMetrics function
10558         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10559         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10560
10561 2004-12-16  Jackson Harper  <jackson@ximain.com>
10562
10563         * XplatUIStruct.cs: Add enum for dead keys
10564         * X11Keyboard.cs: Map and unmap dead keys.
10565
10566 2004-12-16  Jackson Harper  <jackson@ximian.com>
10567
10568         * X11Keyboard.cs: Detect and use the num lock mask.
10569
10570 2004-12-16  Peter Bartok  <pbartok@novell.com>
10571
10572         * Control.cs (CreateGraphics): Added check to make sure the
10573           handle of the window exists before calling Graphics.FromHwnd()
10574
10575 2004-12-16  Peter Bartok  <pbartok@novell.com>
10576
10577         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10578           contains a lot of code that's not supposed to be there for the
10579           real thing, but required for developing/testing the textbox
10580           backend.
10581
10582 2004-12-16  Peter Bartok  <pbartok@novell.com>
10583
10584         * TextControl.cs:
10585         - Fixed Streamline method
10586         - Added FindTag method to Line
10587         - Added DumpTree method for debugging
10588         - Added DecrementLines() method for deleting lines
10589         - Fixed UpdateView to update the cursor to end-of-line on single-line
10590           updates
10591         - Added PositionCaret() method
10592         - Fixed MoveCaret(LineDown) to move into the last line, too
10593         - Added InsertChar overload
10594         - Fixed InsertChar tag offset calculations
10595         - Added DeleteChar() method
10596         - Added Combine() method for folding lines
10597         - Fixed Delete() method, no longer allocates wasted Line object and
10598           now copies all properties when swapping nodes
10599         - Delete() method now updates document line counter
10600
10601 2004-12-15  Jackson Harper  <jackson@ximian.com>
10602
10603         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10604         * X11Keyboard.cs: Expose the currently selected modifier keys
10605         through a property.
10606
10607 2004-12-15  Peter Bartok  <pbartok@novell.com>
10608
10609         * TextControl.cs: Initial check-in. Still incomplete
10610
10611 2004-12-15  Jackson Harper  <jackson@ximian.com>
10612
10613         * TreeNode.cs:
10614         * TreeView.cs: Fix build on csc (second time today ;-))
10615
10616 2004-12-15  Jackson Harper  <jackson@ximian.com>
10617
10618         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10619         is calculated and use this for click testing.
10620         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10621
10622 2004-12-15  Jackson Harper  <jackson@ximian.com>
10623
10624         * TreeView.cs: Pass the nodes image index to the image list when
10625         drawing that image.
10626
10627 2004-12-15  Jackson Harper  <jackson@ximian.com>
10628
10629         * X11Keyboard.cs: Set messages hwnd.
10630         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10631         post_message calls.
10632
10633 2004-12-15  Jackson Harper  <jackson@ximian.com>
10634
10635         * X11Keyboard.cs: Fix to compile with csc.
10636         
10637 2004-12-15  Jackson Harper  <jackson@ximian.com>
10638
10639         * X11Structs.cs: Add key mask values
10640         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10641         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10642         down/up foo into WM_CHAR foo
10643         * KeyboardLayouts.cs: Common keyboard layouts
10644         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10645         post messages into the main queue.
10646
10647 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10648
10649         * Button.cs: implement ProcessMnemonic
10650         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10651           brushes everytime
10652         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10653         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10654
10655 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10656         
10657         * MonthCalendar.cs: Implemented click-hold for next/previous month
10658           and date selection
10659           
10660 2004-12-11  Peter Bartok  <pbartok@novell.com>
10661
10662         * X11Structs.cs:
10663           - Added XKeyboardState (moved from XplatUIX11.cs)
10664           - Added XCreateGC related enums and structures
10665           - Added GXFunction for XSetFunction
10666
10667         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10668
10669         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10670           CaretVisible() calls
10671
10672         * ToolTip.cs: Added code to prevent stealing focus from app windows
10673
10674         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10675           DestroyCaret, SetCaretPos and CaretVisible)
10676
10677         * XplatUIX11.cs:
10678           - Added implementation for caret functions
10679           - Moved hover variables into a struct, to make it a bit easier
10680             on the eyes and to debug
10681           - Removed XKeyboardState (moved to XplatUIX11.cs)
10682           - Moved Keyboard properties into the properties region
10683
10684         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10685           call to get a graphics context for our control
10686
10687         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10688
10689         * TreeView.cs: Fixed bug. No matter what color was set it would always
10690           return SystemColors.Window
10691
10692         * XplatUIWin32.cs: Implemented caret overrides
10693
10694 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10695
10696         * ListBox.cs: fire events, implement missing methods and properties,
10697         sorting.
10698
10699 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10700
10701         * MonthCalendar.cs: invalidation bug fixing
10702         * ThemeWin32Classic.cs: paint fixing
10703
10704 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10705
10706         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10707         prepare the CGContextRef there now.
10708
10709 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10710
10711         * MonthCalendar.cs:
10712           - optimisationL only invalidate areas that have changed
10713         * ThemeWin32Classic.cs:
10714           - only paint parts that intersect with clip_area
10715
10716 2004-12-09  Peter Bartok  <pbartok@novell.com>
10717
10718         * Application.cs: Undid changes from r37004 which cause problems
10719         on X11
10720
10721 2004-12-09  Ravindra  <rkumar@novell.com>
10722
10723         * ToolBar.cs: Added support for displaying ContextMenu
10724         attached to a button on ToolBar.
10725         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10726         property.
10727
10728 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10729
10730         * Label.cs: autosize works in text change and removes unnecessary
10731         invalidate
10732
10733 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10734
10735         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10736         remove warnings
10737
10738 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10739
10740         * XplatUIOSX.cs: Added mouse move/click/grab support
10741         Remove some debugging WriteLines not needed anymore.
10742         Add window resizing/positioning.
10743         Fix visibility on reparenting.
10744
10745 2004-12-08  Peter Bartok  <pbartok@novell.com>
10746
10747         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10748
10749 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10750
10751         * XplatUIOSX.cs: Initial checkin
10752         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10753
10754 2004-12-03  Ravindra <rkumar@novell.com>
10755
10756         * ListView.cs: Added some keybindings and fixed scrolling.
10757         ScrollBars listen to ValueChanged event instead of Scroll
10758         Event. This would let us take care of all changes being
10759         done in the scrollbars' values programmatically or manually.
10760         * ListView.cs (CanMultiselect): Added a check for shift key.
10761         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10762         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10763         of ListViewSubItemCollection as well.
10764
10765 2004-12-06  Peter Bartok <pbartok@novell.com>
10766
10767         * Control.cs (Parent): Added check and exception to prevent
10768         circular parenting
10769
10770 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10771
10772         * ListBox.cs: implemented clipping, selection single and multiple,
10773         bug fixing
10774
10775 2004-12-03  Ravindra <rkumar@novell.com>
10776
10777         * ListView.cs (ListView_KeyDown):
10778         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10779         when CTRL key is pressed.
10780         * ListViewItem.cs (Selected): Fixed setting the property.
10781
10782 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10783
10784         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10785
10786         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10787         MinimizeBox, ShowInTaskbar, TopMost properties.
10788
10789         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10790         will be implemented).
10791
10792 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10793
10794         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10795
10796         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10797         tests.
10798         
10799         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10800         
10801         * TreeView.cs: BackColor is Colors.Window.
10802
10803 2004-12-01  Jackson Harper  <jackson@ximian.com>
10804
10805         * TreeView.cs: When resizing the tree if the user is making it
10806         smaller we don't get expose events, so we need to handle adding
10807         the horizontal scrollbar in the size changed handler as well as
10808         the expose handler.
10809
10810 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10811
10812         * DrawItemState.cs: fixes wrong enum values
10813
10814 2004-12-01  Jackson Harper  <jackson@ximian.com>
10815
10816         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10817
10818 2004-12-01  Jackson Harper  <jackson@ximian.com>
10819
10820         * NodeLabelEditEventArgs.cs:
10821         * NodeLabelEditEventHandler.cs:
10822         * OpenTreeNodeEnumerator.cs:
10823         * TreeNode.cs:
10824         * TreeNodeCollection.cs:
10825         * TreeView.cs:
10826         * TreeViewAction.cs:
10827         * TreeViewCancelEventArgs.cs:
10828         * TreeViewCancelEventHandler.cs:
10829         * TreeViewEventArgs.cs:
10830         * TreeViewEventHandler.cs: Initial implementation.
10831
10832 2004-12-01  Ravindra <rkumar@novell.com>
10833
10834         * ListView.cs (CalculateListView): Fixed scrolling related
10835         calculations. Also, removed some debug statements from other
10836         places.
10837         * ListViewItem.cs: Changed access to 'selected' instance variable
10838         from private to internal.
10839         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10840
10841 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10842
10843         * ThemeWin32Classic.cs: remove cache of brush and pens for
10844         specific controls and use the global system, fixes scrollbutton
10845         bugs (for small sizes, disabled, etc)
10846         
10847         * ScrollBar.cs: does not show the thumb for very small controls
10848         (as MS) and allow smaller buttons that the regular size
10849
10850 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10851
10852         * UpDownBase.cs: Add abstract methods for the interface.
10853         Add new virtual methods (need to be hooked up to TextEntry when it
10854         exists).
10855         Add override methods for most features.
10856         Computes the size, forces the height of the text entry.
10857
10858         * NumericUpDown.cs: Put here the current testing code.
10859
10860         * Set eol-style property on all files that do not have mixed line
10861         endings, to minimize the future problems.  There are still a few
10862         files with mixed endings, and someone should choose whether they
10863         want to move it or not.
10864
10865 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10866
10867         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10868         System.Colors
10869         
10870 2004-11-30  Ravindra <rkumar@novell.com>
10871
10872         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10873         drawing and replaced use of SystemColors by theme colors.
10874         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10875         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10876         same ListViewItem is being added more than once.
10877
10878 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10879
10880         * MonthCalendar.cs:
10881           - ControlStyles love to make the control not flicker
10882           
10883 2004-11-30  Peter Bartok  <pbartok@novell.com>
10884
10885         * CharacterCasing.cs: Added
10886
10887 2004-11-29  Peter Bartok  <pbartok@novell.com>
10888
10889         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10890           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10891           I am removing these files as they conflict with already completed
10892           work. While it is fantastic to get contributions to MWF, I
10893           respectfully ask that everyone please coordinate their contributions
10894           through mono-winforms-list or #mono-winforms at this time. We're
10895           explicitly avoiding stubbing and don't want controls that don't have
10896           their basic functionality implemented in svn. Please also see
10897           http://www.mono-project.com/contributing/winforms.html
10898
10899
10900 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10901
10902         * Application.cs (ModalRun): Don't hang after exit.
10903
10904         * Theme.cs: New TreeViewDefaultSize property.
10905
10906         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10907         with less hardcoded SystemColors constant.
10908         Implemented TreeViewDefaultSize.
10909
10910         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10911         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10912
10913
10914 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10915
10916         * MonthCalendar.cs:
10917           - Fix NextMonthDate and PrevMonthDate click moving calendar
10918
10919 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10920
10921         * MonthCalendar.cs:
10922           - Fix usage of ScrollChange Property when scrolling months
10923
10924 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10925
10926         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10927          - Fixes menu destroying
10928          - Support adding and removing items on already created menus
10929
10930 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10931
10932         * MonthCalendar.cs:
10933           - Re-worked all bolded dates handling to match win32
10934         * ThemeWin32Classic.cs:
10935           - Fixed rendering with bolded dates
10936
10937 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
10938
10939         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
10940         - Horizontal scroolbar
10941         - Multicolumn
10942         - Fixes
10943
10944
10945 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
10946
10947         * MonthCalendar.cs:
10948           - Fix Usage of MaxSelectionCount from SelectionRange
10949           - Fixed Shift + Cursor Selection
10950           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
10951           - Fixed normal cursor selection to be compat with win32
10952           - Fixed Shift + Mouse Click selection
10953
10954 2004-11-24  Peter Bartok <pbartok@novell.com>
10955
10956         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
10957         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
10958         * XplatUIX11.cs:
10959           - CreatedKeyBoardMsg now updates keystate with Alt key
10960           - Added workaround for timer crash to CheckTimers, Jackson will
10961             develop a proper fix and check in later
10962           - Implemented DispatchMessage
10963           - Removed calling the native window proc from GetMessage (call
10964             now moved to DispatchMessage)
10965
10966         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
10967           the keydata (Fixes bug #69831)
10968
10969         * XplatUIWin32.cs:
10970           - (DispatchMessage): Switched to return IntPtr
10971           - Added DllImport for SetFocus
10972
10973 2004-11-24  Ravindra <rkumar@novell.com>
10974
10975         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
10976         background drawing.
10977         * ListViewItem.cs: Fixed various properties, calculations
10978         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
10979         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
10980         and some internal properties. Fixed MouseDown handler and Paint
10981         method.
10982
10983 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10984
10985         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
10986
10987 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10988
10989         * ContainerControl.cs: correct accidental check in of local changes
10990
10991 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
10992
10993         * ThemeWin32Classic.cs:
10994                 - Fixed Drawing Last month in grid (sometimes not showing)
10995         * MonthCalendar.cs:
10996                 - Fixed title width calculation bug (makeing title small)
10997
10998 2004-11-23  Peter Bartok <pbartok@novell.com>
10999
11000         * XplatUIX11.cs:
11001           - Added generation of WM_MOUSEHOVER event
11002           - Added missing assignment of async_method atom
11003           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11004
11005 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11006
11007         * ThemeWin32Classic.cs:
11008                 - Fixed Drawing of today circle when showtodaycircle not set
11009                 - fixed drawing of first and last month in the grid (gay dates)
11010         * MonthCalendar.cs:
11011                 - Fixed Drawing of today circle
11012                 - Fixed drawing of grady dates
11013                 - Fixed HitTest for today link when ShowToday set to false
11014                 - Fixed DefaultSize to obey ShowToday
11015
11016 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11017
11018         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11019         * System.Windows.Forms/Theme.cs
11020         * MonthCalendar.cs: added for MonthCalendar
11021         * SelectionRange.cs: added for MonthCalendar
11022         * Day.cs: added for MonthCalendar: added for MonthCalendar
11023         * DateRangeEventArgs.cs: added for MonthCalendar
11024         * DateRangeEventHandler.cs: added for MonthCalendar
11025
11026 2004-11-22  Ravindra <rkumar@novell.com>
11027
11028         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11029         property.
11030
11031 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11032
11033         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11034         event handler.
11035         
11036         * NumericUpDown.cs: Added new implementation.
11037         * UpDownBase.cs: Added new implementation.
11038
11039         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11040         implementations.
11041         
11042         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11043         implementations.
11044
11045         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11046         methods.
11047
11048 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11049
11050         * Timer.cs  (Dispose): Should call the base dispose when
11051         overriding.
11052
11053 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11054
11055         * ScrollBar.cs: updates thumb position when max, min or increment
11056         is changed
11057
11058 2004-11-21  Ravindra <rkumar@novell.com>
11059
11060         * ListView.cs: Implemented item selection, activation and
11061         column header style. Fixed properties to do a redraw, if
11062         required. Added support for MouseHover, DoubleClick, KeyDown
11063         and KeyUp event handling and some minor fixes.
11064         * ListViewItem.cs: Fixed constructor.
11065         * ThemeWin32Classic.cs: Improved drawing for ListView.
11066
11067 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11068
11069         * ThemeWin32Classic.cs: initial listbox drawing code
11070         * DrawMode.cs: new enumerator
11071         * ListControl.cs: stubbed class
11072         * ListBox.cs: initial implementation
11073         * Theme.cs: new methods definitions
11074         * SelectionMode.cs: new enumerator
11075
11076 2004-11-17  Peter Bartok  <pbartok@novell.com>
11077
11078         * XplatUIWin32.cs: Added double-click events to the class style
11079         * Control.cs (WndProc):
11080           - Added handling of click-count to MouseDown/ MouseUp events.
11081           - Added handling of middle and right mouse buttons
11082           - Removed old debug code
11083
11084 2004-11-17  Jackson Harper  <jackson@ximian.com>
11085
11086         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11087
11088 2004-11-17  Ravindra <rkumar@novell.com>
11089
11090         * ListView.cs: Added event handling for MouseMove/Up/Down.
11091         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11092         * ThemeWin32Classic.cs: We need to clear the graphics context and
11093         draw column header in a proper state.
11094
11095
11096 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11097
11098         *  Menu.cs: fixes signature
11099
11100 2004-11-16  Peter Bartok  <pbartok@novell.com>
11101
11102         * XplatUIX11.cs (GetMessage): Implemented generation of
11103           double click mouse messages
11104
11105 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11106
11107         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11108         not by menu
11109
11110 2004-11-11  Peter Bartok  <pbartok@novell.com>
11111
11112         * HandleData.cs: Added Visible property
11113         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11114           HandleData
11115         * XplatUIX11.cs: Removed old debug leftovers
11116         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11117         * Control.cs (WndProc): Removed old debug leftovers,
11118           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11119           needed WM_SIZE handling
11120
11121 2004-11-11  Jackson Harper  <jackson@ximian.com>
11122
11123         * OwnerDrawPropertyBag.cs:
11124         * TreeViewImageIndexConverter.cs: Initial implementation
11125
11126 2004-11-10  Jackson Harper  <jackson@ximian.com>
11127
11128         * ThemeWin32Classic.cs:
11129         * TabControl.cs: instead of moving tabs by the slider pos just
11130         start drawing at the tab that is offset by the slider. This way
11131         scrolling always moves by exactly one tab.
11132
11133 2004-11-10  Jackson Harper  <jackson@ximian.com>
11134
11135         * TabControl.cs: You can only scroll left when the slider has
11136         already ben moved right.
11137         
11138 2004-11-10  Jackson Harper  <jackson@ximian.com>
11139
11140         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11141         the clip area.
11142         
11143 2004-11-10  Jackson Harper  <jackson@ximian.com>
11144
11145         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11146         clip area.
11147         
11148 2004-11-09  Jackson Harper  <jackson@ximian.com>
11149
11150         * TabControl.cs (CalcXPos): New helper method so we can determine
11151         the proper place to start drawing vertical tabs.
11152         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11153         
11154 2004-11-09  Jackson Harper  <jackson@ximian.com>
11155
11156         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11157         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11158         and Bottom, left and right are illegal values for this and
11159         multiline is enabled when the alignment is set to left or right.
11160         (DrawTab): Each alignment block should draw the text itself now
11161         because Left requires special love. Also add rendering for Left
11162         aligned tabs.
11163         
11164 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11165
11166         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11167         does not destroy the windows, removes debugging messages
11168
11169 2004-11-09  jba  <jba-mono@optusnet.com.au>
11170
11171         * ThemeWin32Classic.cs
11172         (DrawButtonBase): Fix verticle text rect clipping in windows
11173         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11174         rendering and incorrect text rect clipping
11175         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11176         rendering and incorrect text rect clipping
11177         
11178 2004-11-08  Jackson Harper  <jackson@ximian.com>
11179
11180         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11181         bottom when they are bottom aligned so the bottoms of the tabs get
11182         displayed.
11183         * TabControl.cs (DropRow): Move rows up instead of down when the
11184         tab control is bottom aligned.
11185
11186 2004-11-08 13:59  pbartok
11187
11188         * XplatUIX11.cs:
11189           - Added handling for various window styles
11190           - Added handling for popup windows
11191           - Added SetTopmost handling
11192
11193 2004-11-08 13:55  pbartok
11194
11195         * XplatUIWin32.cs:
11196           - Added argument to SetTopmost method
11197           - Fixed broken ClientToScreen function
11198
11199 2004-11-08 13:53  pbartok
11200
11201         * XplatUIStructs.cs:
11202           - Added missing WS_EX styles
11203
11204 2004-11-08 13:53  pbartok
11205
11206         * XplatUI.cs, XplatUIDriver.cs:
11207           - Added argument to SetTopmost
11208
11209 2004-11-08 13:52  pbartok
11210
11211         * X11Structs.cs:
11212           - Added XSetWindowAttributes structure
11213           - Improved XWindowAttributes structure
11214           - Added SetWindowValuemask enum
11215           - Added window creation arguments enum
11216           - Added gravity enum
11217           - Added Motif hints structure
11218           - Added various Motif flags and enums
11219           - Added PropertyMode enum for property functions
11220
11221 2004-11-08 13:50  pbartok
11222
11223         * Form.cs:
11224           - Fixed arguments for updated SetTopmost method
11225
11226 2004-11-08 13:49  pbartok
11227
11228         * ToolTip.cs:
11229           - Fixed arguments for updated SetTopmost function
11230           - Fixed usage of PointToClient
11231
11232 2004-11-08 13:44  pbartok
11233
11234         * MenuAPI.cs:
11235           - Added Clipping of children and siblings
11236
11237 2004-11-08 13:41  pbartok
11238
11239         * MainMenu.cs:
11240           - Removed SetMenuBarWindow call. We do this in Form.cs
11241
11242 2004-11-08 13:40  jackson
11243
11244         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11245           scrolling jimmi in the correct location with bottom aligned tabs
11246
11247 2004-11-08 13:36  pbartok
11248
11249         * ContainerControl.cs:
11250           - Implemented BindingContext
11251           - Implemented ParentForm
11252
11253 2004-11-08 12:46  jackson
11254
11255         * TabControl.cs: Put bottom rendered tabs in the right location
11256
11257 2004-11-08 07:15  jordi
11258
11259         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11260           removes dead code
11261
11262 2004-11-05 17:30  jackson
11263
11264         * TabControl.cs: When selected tabs are expanded make sure they
11265           don't go beyond the edges of the tab control
11266
11267 2004-11-05 14:57  jackson
11268
11269         * TabControl.cs: Reset show_slider so if the control is resized to
11270           a size where it is no longer needed it's not displayed anymore
11271
11272 2004-11-05 13:16  jackson
11273
11274         * TabControl.cs: Make tab pages non visible when added to the
11275           control
11276
11277 2004-11-05 12:42  jackson
11278
11279         * TabControl.cs: Implement SizeMode.FillToRight
11280
11281 2004-11-05 12:16  jackson
11282
11283         * Control.cs: Do not call CreateHandle if the handle is already
11284           created
11285
11286 2004-11-05 11:46  jackson
11287
11288         * TabControl.cs: Remove superflous call to CalcTabRows
11289
11290 2004-11-05 09:07  jackson
11291
11292         * XplatUIX11.cs: Update for Mono.Posix changes
11293
11294 2004-11-05 07:00  ravindra
11295
11296         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11297           scrolling.
11298
11299 2004-11-04 22:47  jba
11300
11301         * ThemeWin32Classic.cs:
11302           - Fix Button rendering for FlatStyle = Flat or Popup
11303           - Fix RadioButton and CheckBox rendering when Appearance = Button
11304             (normal and flatstyle).
11305           - Correct outer rectangle color when drawing focus rectangle
11306           - Adjust button bounds to be 1 px smaller when focused
11307           - Make button not draw sunken 3d border when pushed (windows compat)
11308           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11309           - Offset the text in RadioButton and Checkbox when being rendered as
11310           a button.
11311           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11312           radiobuttons
11313           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11314           - Fixed disabled text rendering for normally rendered radiobuttons
11315
11316 2004-11-04 10:26  jackson
11317
11318         * TabControl.cs: Recalculate tab rows when resizing
11319
11320 2004-11-04 07:47  jordi
11321
11322         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11323           collection completion, drawing issues, missing features
11324
11325 2004-11-04 05:03  ravindra
11326
11327         * ScrollBar.cs:
11328                 - We need to recalculate the Thumb area when
11329                 LargeChange/maximum/minimum values are changed.
11330           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11331                 than minimum. This is required to handle the case if large_change is
11332                 more than max, and use LargeChange property instead of large_change
11333                 variable.
11334           - We return max+1 when large_change is more than max, like MS does.
11335
11336 2004-11-04 04:29  ravindra
11337
11338         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11339                 - Changed default value signatures (prefixed all with ListView).
11340                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11341                 ListView.
11342           - Fixed calculations for ListViewItem and implemented Clone()
11343           method.
11344
11345 2004-11-04 04:26  ravindra
11346
11347         * Theme.cs, ThemeWin32Classic.cs:
11348                 - Changed default ListView values signatures (prefixed all with
11349                 ListView).
11350           - Fixed default size values for VScrollBar and HScrollBar.
11351                 - Fixed DrawListViewItem method.
11352
11353 2004-11-04 04:05  ravindra
11354
11355         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11356
11357 2004-11-04 04:04  ravindra
11358
11359         * ImageList.cs: Implemented the missing overload for Draw method.
11360
11361 2004-11-03 19:29  jackson
11362
11363         * TabControl.cs: Handle dropping rows on selection properly
11364
11365 2004-11-03 11:59  jackson
11366
11367         * TabControl.cs: remove debug code
11368
11369 2004-11-03 11:52  jackson
11370
11371         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11372           the scrolly widgerywoo
11373
11374 2004-11-02 13:52  jackson
11375
11376         * TabControl.cs: Resize the tab pages and tabs when the tab control
11377           is resized
11378
11379 2004-11-02 13:40  jackson
11380
11381         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11382           selected tab to the bottom
11383
11384 2004-11-02 13:39  jackson
11385
11386         * TabPage.cs: Store the tab pages row
11387
11388 2004-11-02 12:33  jordi
11389
11390         * MenuItem.cs: fixes handle creation
11391
11392 2004-11-02 11:42  jackson
11393
11394         * TabControl.cs: signature fix
11395
11396 2004-11-02 08:56  jackson
11397
11398         * TabControl.cs: Calculate whether the tab is on an edge properly.
11399           Remove top secret debugging code
11400
11401 2004-11-01 19:57  jackson
11402
11403         * TabControl.cs: Add click handling, and proper sizing
11404
11405 2004-11-01 19:47  jackson
11406
11407         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11408           tab controls
11409
11410 2004-11-01 19:39  jackson
11411
11412         * TabPage.cs: add internal property to store the bounds of a tab
11413           page
11414
11415 2004-10-30 04:23  ravindra
11416
11417         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11418           values.
11419
11420 2004-10-30 04:21  ravindra
11421
11422         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11423           fixed calculations.
11424
11425 2004-10-30 03:06  pbartok
11426
11427         * XplatUIX11.cs:
11428           - Removed extension of DllImported libs
11429
11430 2004-10-29 09:55  jordi
11431
11432         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11433           navigation, itemcollection completion, menu fixes
11434
11435 2004-10-27 22:58  pbartok
11436
11437         * XplatUIX11.cs:
11438           - Now throws a nice error message when no X display could be opened
11439
11440 2004-10-26 13:51  jordi
11441
11442         * ListView.cs: removes warning
11443
11444 2004-10-26 03:55  ravindra
11445
11446         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11447           ThemeWin32Classic.cs: Some formatting for my last checkins.
11448
11449 2004-10-26 03:36  ravindra
11450
11451         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11452           control and default values.
11453
11454 2004-10-26 03:35  ravindra
11455
11456         * Theme.cs: Added some default values for ListView control.
11457
11458 2004-10-26 03:33  ravindra
11459
11460         * ToolBar.cs: ToolBar should use the user specified button size, if
11461           there is any. Added a size_specified flag for the same.
11462
11463 2004-10-26 03:33  ravindra
11464
11465         * ColumnHeader.cs: Added some internal members and calculations for
11466           ColumnHeader.
11467
11468 2004-10-26 03:32  ravindra
11469
11470         * ListViewItem.cs: Calculations for ListViewItem.
11471
11472 2004-10-26 03:31  ravindra
11473
11474         * ListView.cs: Added some internal members and calculations for
11475           ListView.
11476
11477 2004-10-22 13:31  jordi
11478
11479         * MenuAPI.cs: speedup menus drawing
11480
11481 2004-10-22 13:16  jackson
11482
11483         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11484           expose event
11485
11486 2004-10-22 11:49  jackson
11487
11488         * Control.cs: oops
11489
11490 2004-10-22 11:41  jackson
11491
11492         * Control.cs: Check to see if the window should have its background
11493           repainted by X when drawing.
11494
11495 2004-10-22 11:31  jackson
11496
11497         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11498           clear is true, this way we do not get flicker from X repainting the
11499           background
11500
11501 2004-10-22 11:28  jackson
11502
11503         * XEventQueue.cs: Queue properly
11504
11505 2004-10-21 09:38  jackson
11506
11507         * XEventQueue.cs: Fix access modifier
11508
11509 2004-10-21 09:36  jackson
11510
11511         * XEventQueue.cs: Don't loose messages
11512
11513 2004-10-21 09:22  jackson
11514
11515         * XEventQueue.cs: Don't loose messages
11516
11517 2004-10-20 04:15  jordi
11518
11519         * BootMode.cs: enum need it by SystemInfo
11520
11521 2004-10-19 21:58  pbartok
11522
11523         * XplatUIWin32.cs:
11524           - Small sanity check
11525
11526 2004-10-19 21:56  pbartok
11527
11528         * Form.cs:
11529           - Added private FormParentWindow class which acts as the container
11530             for our form and as the non-client area where menus are drawn
11531           - Added/Moved required tie-ins to Jordi's menus
11532           - Fixed/Implemented the FormStartPosition functionality
11533
11534 2004-10-19 21:52  pbartok
11535
11536         * Control.cs:
11537           - Removed unneeded locals
11538           - Added code to all size and location properties to understand and
11539             deal with the parent container of Form
11540
11541 2004-10-19 21:33  pbartok
11542
11543         * Application.cs:
11544           - Fixed to deal with new Form subclasses for menus
11545
11546 2004-10-19 17:48  jackson
11547
11548         * XEventQueue.cs: commit correct version of file
11549
11550 2004-10-19 16:50  jackson
11551
11552         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11553
11554 2004-10-19 16:15  jordi
11555
11556         * MenuAPI.cs: MenuBarCalcSize returns the height
11557
11558 2004-10-19 08:31  pbartok
11559
11560         * Control.cs:
11561           - Added missing call to PreProcessMessage before calling OnXXXKey
11562           methods
11563
11564 2004-10-19 00:04  ravindra
11565
11566         * ToolTip.cs: Fixed constructor.
11567
11568 2004-10-18 09:31  jordi
11569
11570         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11571
11572 2004-10-18 09:26  jordi
11573
11574         * MenuItem.cs: fixes MenuItem class signature
11575
11576 2004-10-18 08:56  jordi
11577
11578         * MenuAPI.cs: prevents windows from showing in the taskbar
11579
11580 2004-10-18 00:28  ravindra
11581
11582         * ToolTip.cs: Suppressed a warning message.
11583
11584 2004-10-18 00:27  ravindra
11585
11586         * Control.cs: Default value of visible property must be true.
11587
11588 2004-10-17 23:19  pbartok
11589
11590         * ToolTip.cs:
11591           - Complete implementation
11592
11593 2004-10-17 23:19  pbartok
11594
11595         * XplatUIX11.cs:
11596           - Added EnableWindow method
11597           - Added SetModal stub
11598           - Added generation of WM_ACTIVATE message (still needs testing)
11599           - Added SetTopMost stub
11600           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11601
11602 2004-10-17 23:17  pbartok
11603
11604         * XplatUIWin32.cs:
11605           - Removed VirtualKeys to XplatUIStructs
11606           - Implemented SetTopMost method
11607           - Implemented EnableWindow method
11608           - Bugfix in ScreenToClient()
11609           - Bugfixes in ClientToScreen()
11610
11611 2004-10-17 22:51  pbartok
11612
11613         * XplatUIStructs.cs:
11614           - Added WS_EX styles to WindowStyles enumeration
11615
11616 2004-10-17 22:50  pbartok
11617
11618         * XplatUI.cs, XplatUIDriver.cs:
11619           - Added method for enabling/disabling windows
11620           - Added method for setting window modality
11621           - Added method for setting topmost window
11622
11623 2004-10-17 22:49  pbartok
11624
11625         * ThemeWin32Classic.cs:
11626           - Added ToolTip drawing code
11627
11628 2004-10-17 22:49  pbartok
11629
11630         * Theme.cs:
11631           - Added ToolTip abstracts
11632
11633 2004-10-17 22:47  pbartok
11634
11635         * Form.cs:
11636           - Fixed Form.ControlCollection to handle owner relations
11637           - Added Owner/OwnedForms handling
11638           - Implemented Z-Ordering for owned forms
11639           - Removed unneeded private overload of ShowDialog
11640           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11641             so I hope)
11642           - Fixed Close(), had wrong default
11643           - Added firing of OnLoad event
11644           - Added some commented out debug code for Ownership handling
11645
11646 2004-10-17 22:16  pbartok
11647
11648         * Control.cs:
11649           - Fixed/implemented flat list of controls
11650
11651 2004-10-17 22:14  pbartok
11652
11653         * Application.cs:
11654           - Added code to simulate modal dialogs on Win32
11655
11656 2004-10-17 16:11  jordi
11657
11658         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11659           mouse event
11660
11661 2004-10-17 13:39  jordi
11662
11663         * MenuAPI.cs: menu drawing fixes
11664
11665 2004-10-15 09:10  ravindra
11666
11667         * StructFormat.cs: General Enum.
11668
11669 2004-10-15 09:09  ravindra
11670
11671         * SizeGripStyle.cs: Enum for Form.
11672
11673 2004-10-15 09:08  ravindra
11674
11675         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11676           in Theme for ListView.
11677
11678 2004-10-15 09:06  ravindra
11679
11680         * ColumnHeader.cs: Flushing some formatting changes.
11681
11682 2004-10-15 09:05  ravindra
11683
11684         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11685           style.
11686
11687 2004-10-15 09:03  ravindra
11688
11689         * ListView.cs: Implemented Paint method and fixed coding style.
11690
11691 2004-10-15 07:34  jordi
11692
11693         * MenuAPI.cs: fix for X11
11694
11695 2004-10-15 07:32  ravindra
11696
11697         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11698                 - Renamed Paint() method to Draw() for clarity. Also, moved
11699                 DrawImage() to OnPaint().
11700
11701 2004-10-15 07:25  ravindra
11702
11703         * CheckBox.cs, RadioButton.cs:
11704                 - Removed Redraw (), we get it from ButtonBase.
11705                 - Implemented Paint (), to do class specific painting.
11706
11707 2004-10-15 07:16  ravindra
11708
11709         * ButtonBase.cs:
11710                 - Redraw () is not virtual now.
11711                 - Added an internal virtual method Paint (), so that
11712                 derived classes can do their painting on their own.
11713                 - Modified OnPaint () to call Paint ().
11714
11715 2004-10-15 06:43  jordi
11716
11717         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11718           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11719
11720 2004-10-15 00:30  ravindra
11721
11722         * MessageBox.cs:
11723                 - MessageBox on windows does not have min/max buttons.
11724                 This change in CreateParams fixes this on Windows. We
11725                 still need to implement this windowstyle behavior in
11726                 our X11 driver.
11727
11728 2004-10-14 05:14  ravindra
11729
11730         * ToolBar.cs:
11731                 - Changed Redraw () to do a Refresh () always.
11732                 - Fixed the MouseMove event handling when mouse is pressed,
11733                 ie drag event handling.
11734                 - Replaced the usage of ToolBarButton.Pressed property to
11735                 ToolBarButton.pressed internal variable.
11736
11737 2004-10-14 05:10  ravindra
11738
11739         * ToolBarButton.cs:
11740                 - Added an internal member 'inside' to handle mouse move
11741                 with mouse pressed ie mouse drag event.
11742                 - Changed 'Pressed' property to return true only when
11743                 'inside' and 'pressed' are both true.
11744                 - Some coding style love.
11745
11746 2004-10-14 00:17  ravindra
11747
11748         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11749           public method.
11750
11751 2004-10-14 00:15  ravindra
11752
11753         * ButtonBase.cs: Redraw () related improvements.
11754
11755 2004-10-14 00:14  ravindra
11756
11757         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11758           removed unnecessary calls to Button.Show () method.
11759
11760 2004-10-13 17:50  pbartok
11761
11762         * XplatUIX11.cs:
11763           - Formatting fix
11764           - Removed destroying of window until we solve the problem of X
11765             destroying the window before us on shutdown
11766
11767 2004-10-13 16:32  pbartok
11768
11769         * ButtonBase.cs:
11770           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11771
11772 2004-10-13 14:18  pbartok
11773
11774         * XplatUIX11.cs:
11775           - Added code to destroy the X window
11776
11777 2004-10-13 14:18  pbartok
11778
11779         * XplatUIWin32.cs:
11780           - Added code to destroy a window
11781
11782 2004-10-13 14:12  pbartok
11783
11784         * ButtonBase.cs:
11785           - Added the Redraw on Resize that got dropped in the last rev
11786
11787 2004-10-13 09:06  pbartok
11788
11789         * ThemeWin32Classic.cs:
11790           - Path from John BouAntoun:
11791             * Fix check rendering (centre correctly for normal style, offset
11792               correctly for FlatStyle).
11793             * Fix border color usage (use backcolor) for FlatStyle.Popup
11794             * Use checkbox.Capture instead of checkbox.is_pressed when
11795               rendering flatstyle states.
11796
11797 2004-10-12 21:48  pbartok
11798
11799         * ThemeWin32Classic.cs:
11800           - Removed all occurences of SystemColors and replaced them with the
11801             matching theme color
11802
11803 2004-10-12 21:41  pbartok
11804
11805         * ThemeWin32Classic.cs:
11806           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11807             him using the function for flatstyle drawing
11808           - Changed functions to use the new version of CPDrawBorder3D
11809
11810 2004-10-12 21:15  pbartok
11811
11812         * ControlPaint.cs:
11813           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11814             match MS documentation. They need to return defined colors if the
11815             passed color matches the configured control color. Thanks to John
11816             BouAntoun for pointing this out.
11817
11818 2004-10-12 20:57  pbartok
11819
11820         * Control.cs:
11821           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11822             color is changed
11823
11824 2004-10-12 20:46  pbartok
11825
11826         * CheckBox.cs:
11827           - Fix from John BouAntoun: Now properly sets the Appearance property
11828
11829 2004-10-12 20:45  pbartok
11830
11831         * ThemeWin32Classic.cs:
11832           - Fixes from John BouAntoun: now handles forecolors and backcolors
11833             for flatstyle rendered controls much better; It also fixes normal
11834             checkbox rendering when pushed or disabled.
11835
11836 2004-10-08 02:50  jordi
11837
11838         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11839           work
11840
11841 2004-10-07 08:56  jordi
11842
11843         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11844
11845 2004-10-06 03:59  jordi
11846
11847         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11848           XplatUIWin32.cs: removes warnings from compilation
11849
11850 2004-10-05 12:23  jackson
11851
11852         * RadioButton.cs: Fix ctor
11853
11854 2004-10-05 11:10  pbartok
11855
11856         * MessageBox.cs:
11857           - Partial implementation by Benjamin Dasnois
11858
11859 2004-10-05 10:15  jackson
11860
11861         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11862           by John BouAntoun
11863
11864 2004-10-05 03:07  ravindra
11865
11866         * ToolBar.cs:
11867                 - Removed a private method, Draw ().
11868                 - Fixed the ButtonDropDown event handling.
11869                 - Fixed MouseMove event handling.
11870
11871 2004-10-05 03:04  ravindra
11872
11873         * ThemeWin32Classic.cs:
11874                 - Added DrawListView method and ListViewDefaultSize property.
11875                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11876                 - Changed DOS style CRLF to Unix format (dos2unix).
11877
11878 2004-10-05 03:03  ravindra
11879
11880         * Theme.cs:
11881                 - Added DrawListView method and ListViewDefaultSize property.
11882
11883 2004-10-05 02:42  ravindra
11884
11885         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11886           clicks on DropDown arrow.
11887
11888 2004-10-04 22:56  jackson
11889
11890         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11891           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11892           Control handle the buffers, derived classes should not have to
11893           CreateBuffers themselves.
11894
11895 2004-10-04 21:20  jackson
11896
11897         * StatusBar.cs: The control handles resizing the buffers now.
11898
11899 2004-10-04 21:18  jackson
11900
11901         * Control.cs: When resizing the buffers should be invalidated. This
11902           should be handled in Control not in derived classes.
11903
11904 2004-10-04 14:45  jackson
11905
11906         * TabPage.cs: oops
11907
11908 2004-10-04 02:14  pbartok
11909
11910         * LeftRightAlignment.cs:
11911           - Initial check-in
11912
11913 2004-10-04 01:09  jordi
11914
11915         * ThemeWin32Classic.cs: fixes right button position causing right
11916           button not showing on horizontal scrollbars
11917
11918 2004-10-02 13:12  pbartok
11919
11920         * XplatUIX11.cs:
11921           - Simplified the Invalidate method by using an X call instead of
11922             generating the expose ourselves
11923           - Added an expose when the window background is changed
11924           - Implemented ClientToScreen method
11925
11926 2004-10-02 13:08  pbartok
11927
11928         * XplatUIWin32.cs:
11929           - Added Win32EnableWindow method (test for implementing modal
11930           dialogs)
11931           - Added ClientToScreen method and imports
11932
11933 2004-10-02 13:07  pbartok
11934
11935         * XplatUI.cs, XplatUIDriver.cs:
11936           - Added ClientToScreen coordinate translation method
11937
11938 2004-10-02 13:06  pbartok
11939
11940         * KeyPressEventArgs.cs:
11941           - Fixed access level for constructor
11942
11943 2004-10-02 13:06  pbartok
11944
11945         * NativeWindow.cs:
11946           - Changed access level for the window_collection hash table
11947
11948 2004-10-02 13:05  pbartok
11949
11950         * Form.cs:
11951           - Added KeyPreview property
11952           - Added Menu property (still incomplete, pending Jordi's menu work)
11953           - Implemented ProcessCmdKey
11954           - Implemented ProcessDialogKey
11955           - Implemented ProcessKeyPreview
11956
11957 2004-10-02 13:02  pbartok
11958
11959         * Control.cs:
11960           - Added private method to get the Control object from the window
11961           handle
11962           - Implemented ContextMenu property
11963           - Implemented PointToScreen
11964           - Implemented PreProcessMessage
11965           - Implemented IsInputChar
11966           - Implemented IsInputKey
11967           - Implemented ProcessCmdKey
11968           - Completed ProcessKeyEventArgs
11969           - Fixed message loop to call the proper chain of functions on key
11970           events
11971           - Implemented ProcessDialogChar
11972           - Implemented ProcessDialogKey
11973           - Implemented ProcessKeyMessage
11974           - Implemented ProcessKeyPreview
11975           - Added RaiseDragEvent stub (MS internal method)
11976           - Added RaiseKeyEvent stub (MS internal method)
11977           - Added RaiseMouseEvent stub (MS Internal method)
11978           - Added RaisePaintEvent stub (MS Internal method)
11979           - Added ResetMouseEventArgs stub (MS Internal method)
11980           - Implemented RtlTranslateAlignment
11981           - Implemented RtlTranslateContent
11982           - Implemented RtlTranslateHorizontal
11983           - Implemented RtlTranslateLeftRight
11984           - Added generation of KeyPress event
11985
11986 2004-10-02 05:57  ravindra
11987
11988         * ListViewItem.cs: Added attributes.
11989
11990 2004-10-02 05:32  ravindra
11991
11992         * ListView.cs: Added attributes.
11993
11994 2004-10-01 11:53  jackson
11995
11996         * Form.cs: Implement the Close method so work on MessageBox can
11997           continue.
11998
11999 2004-09-30 14:06  pbartok
12000
12001         * XplatUIX11.cs:
12002           - Bug fixes
12003
12004 2004-09-30 11:34  jackson
12005
12006         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12007
12008 2004-09-30 07:26  ravindra
12009
12010         * ListViewItemConverter.cs: Converter for ListViewItem.
12011
12012 2004-09-30 07:26  ravindra
12013
12014         * SortOrder.cs: Enum for ListView control.
12015
12016 2004-09-30 07:25  ravindra
12017
12018         * ColumnHeader.cs: Supporting class for ListView control.
12019
12020 2004-09-30 07:24  ravindra
12021
12022         * ListView.cs, ListViewItem.cs: Initial implementation.
12023
12024 2004-09-30 07:20  ravindra
12025
12026         * ItemActivation.cs: Enum for ListView Control.
12027
12028 2004-09-29 20:29  pbartok
12029
12030         * XplatUIX11.cs:
12031           - Added lookup of pixel value for background color; tries to get a
12032             color 'close' to the requested color, it avoids having to create a
12033             colormap.  Depending on the display this could mean the used color
12034             is slightly off the desired color. Might have to change it to a more
12035             resource intensive colormap approach, but it will work as a
12036           workaround to avoid red screens.
12037
12038 2004-09-29 14:27  jackson
12039
12040         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12041
12042 2004-09-28 12:44  pbartok
12043
12044         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12045           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12046           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12047           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12048           TrackBar.cs, VScrollBar.cs:
12049           - Streamlined Theme interfaces:
12050             * Each DrawXXX method for a control now is passed the object for
12051               the control to be drawn in order to allow accessing any state the
12052               theme might require
12053
12054             * ControlPaint methods for the theme now have a CP prefix to avoid
12055               name clashes with the Draw methods for controls
12056
12057             * Every control now retrieves it's DefaultSize from the current
12058             theme
12059
12060 2004-09-28 12:17  jackson
12061
12062         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12063           drawing
12064
12065 2004-09-24 14:57  jackson
12066
12067         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12068           Gives us a nice little performance boost.
12069
12070 2004-09-24 12:02  jackson
12071
12072         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12073           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12074           Control and supporting classes. Initial checkin
12075
12076 2004-09-23 13:08  jackson
12077
12078         * Form.cs: Temp build fixage
12079
12080 2004-09-23 01:39  ravindra
12081
12082         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12083           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12084           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12085           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12086           EventHandlers needed by ListView Control.
12087
12088 2004-09-22 14:12  pbartok
12089
12090         * ScrollableControl.cs:
12091           - Implemented DockPadding property
12092           - Implemented AutoScroll property
12093           - Implemented AutoScrollMargin property
12094           - Implemented AutoScrollMinSize property
12095           - Implemented AutoScrollPosition property
12096           - Implemented DisplayRectangle property (still incomplete)
12097           - Implemented CreateParams property
12098           - Implemented HScroll property
12099           - Implemented VScroll property
12100           - Implemented OnVisibleChanged property
12101
12102 2004-09-22 14:09  pbartok
12103
12104         * Form.cs:
12105           - Added Form.ControllCollection class
12106           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12107             RemoveOwnedForm (still incomplete, missing on-top and common
12108             minimize/maximize behaviour)
12109           - Added StartPosition property (still incomplete, does not use when
12110             creating the form)
12111           - Added ShowDialog() methods (still incomplete, missing forcing the
12112             dialog modal)
12113
12114 2004-09-22 14:05  pbartok
12115
12116         * Application.cs:
12117           - Added message loop for modal dialogs
12118
12119 2004-09-22 14:02  pbartok
12120
12121         * GroupBox.cs:
12122           - Fixed wrong types for events
12123
12124 2004-09-22 14:00  pbartok
12125
12126         * Shortcut.cs, FormWindowState.cs:
12127           - Fixed wrong values
12128
12129 2004-09-22 12:01  jackson
12130
12131         * Control.cs: Text is never null
12132
12133 2004-09-20 22:14  pbartok
12134
12135         * XplatUIWin32.cs:
12136           - Fixed accessibility level for Idle handler
12137
12138 2004-09-20 18:54  jackson
12139
12140         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12141           XplatUIX11.cs: New message loop that uses poll so we don't get a
12142           busy loop
12143
12144 2004-09-17 10:43  pbartok
12145
12146         * ScrollBar.cs:
12147           - Fixed behaviour of arrow buttons. Now properly behaves like
12148             Buttons (and like Microsoft's scrollbar arrow buttons)
12149
12150 2004-09-17 10:14  pbartok
12151
12152         * ScrollBar.cs:
12153           - Added missing release of keyboard/mouse capture
12154
12155 2004-09-17 06:18  jordi
12156
12157         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12158           Theme.cs: Very early menu support
12159
12160 2004-09-16 17:45  pbartok
12161
12162         * XplatUIWin32.cs:
12163           - Fixed sending a window to the front
12164           - Added overload for SetWindowPos to avoid casting
12165
12166 2004-09-16 17:44  pbartok
12167
12168         * Control.cs:
12169           - Added SendToBack and BringToFront methods
12170
12171 2004-09-16 07:00  ravindra
12172
12173         * Copyright: Added Novell URL.
12174
12175 2004-09-16 07:00  ravindra
12176
12177         * ToolBar.cs: Invalidate should be done before redrawing.
12178
12179 2004-09-15 21:19  ravindra
12180
12181         * ColumnHeaderStyle.cs: Enum for ListView Control.
12182
12183 2004-09-15 21:18  ravindra
12184
12185         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12186           ListView Control.
12187
12188 2004-09-13 18:26  jackson
12189
12190         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12191           properly
12192
12193 2004-09-13 18:13  jackson
12194
12195         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12196           a second thread and post messages into the main threads message
12197           queue. This makes timing much more consistent. Both win2K and XP
12198           have a minimum timer value of 15 milliseconds, so we now do this
12199           too.
12200
12201 2004-09-13 15:18  pbartok
12202
12203         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12204           XplatUIX11.cs:
12205           - Added Z-Ordering methods
12206
12207 2004-09-13 10:56  pbartok
12208
12209         * Form.cs:
12210           - Fixed #region names
12211           - Moved properties and methods into their proper #regions
12212
12213 2004-09-13 10:51  pbartok
12214
12215         * Form.cs:
12216           - Added Accept and CancelButton properties
12217           - Added ProcessDialogKey() method
12218
12219 2004-09-13 08:18  pbartok
12220
12221         * IWindowTarget.cs:
12222           - Initial check-in
12223
12224 2004-09-10 21:50  pbartok
12225
12226         * Control.cs:
12227           - Added DoDragDrop() [incomplete]
12228           - Properly implemented 'Visible' handling
12229           - Added SetVisibleCore()
12230           - Implemented FindChildAtPoint()
12231           - Implemented GetContainerControl()
12232           - Implemented Hide()
12233
12234 2004-09-10 19:28  pbartok
12235
12236         * Control.cs:
12237           - Moved methods into their appropriate #regions
12238           - Reordered methods within regions alphabetically
12239
12240 2004-09-10 18:57  pbartok
12241
12242         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12243           - Added method to retrieve text from window
12244
12245 2004-09-10 18:56  pbartok
12246
12247         * Control.cs:
12248           - Moved some internal functions into the internal region
12249           - Implemented FontHeight
12250           - Implemented RenderRightToLeft
12251           - Implemented ResizeRedraw
12252           - Implemented ShowFocusCues
12253           - Implemented ShowKeyboardCues
12254           - Implemented FromChildHandle
12255           - Implemented FromHandle
12256           - Implemented IsMnemonic
12257           - Implemented ReflectMessage
12258           - All public and protected Static Methods are now complete
12259
12260 2004-09-10 16:54  pbartok
12261
12262         * Control.cs:
12263           - Implemented remaining missing public instance properties
12264           - Alphabetized some out of order properties
12265
12266 2004-09-10 05:51  ravindra
12267
12268         * PictureBox.cs: Added a check for null image.
12269
12270 2004-09-10 00:59  jordi
12271
12272         * GroupBox.cs: remove cvs tag
12273
12274 2004-09-09 05:25  ravindra
12275
12276         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12277
12278 2004-09-09 05:23  ravindra
12279
12280         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12281           parent redraw.
12282
12283 2004-09-09 02:28  pbartok
12284
12285         * ThemeWin32Classic.cs:
12286           - Improve disabled string look
12287
12288 2004-09-09 01:15  jordi
12289
12290         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12291           args and handler
12292
12293 2004-09-08 23:56  ravindra
12294
12295         * ItemBoundsPortion.cs: It's enum, not a class!
12296
12297 2004-09-08 23:47  ravindra
12298
12299         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12300           Enums for Form.
12301
12302 2004-09-08 21:13  ravindra
12303
12304         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12305           ListView control.
12306
12307 2004-09-08 21:03  ravindra
12308
12309         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12310           avoid crash.
12311
12312 2004-09-08 21:01  ravindra
12313
12314         * ScrollableControl.cs: Removed unreachable code.
12315
12316 2004-09-08 06:45  jordi
12317
12318         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12319
12320 2004-09-08 01:00  jackson
12321
12322         * XplatUIX11.cs: Only run the timers when updating the message
12323           queue. This effectively gives X messages a higher priority then
12324           timer messages. Timers still need love though
12325
12326 2004-09-07 14:01  jackson
12327
12328         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12329           this for us and the handle is no longer valid.
12330
12331 2004-09-07 13:59  jackson
12332
12333         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12334           loop that manages to not crash. TODO: Add poll and cleanup timers
12335
12336 2004-09-07 11:12  jordi
12337
12338         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12339
12340 2004-09-07 03:40  jordi
12341
12342         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12343           fixes, methods, multiple links
12344
12345 2004-09-06 06:55  jordi
12346
12347         * Control.cs: Caches ClientRectangle rectangle value
12348
12349 2004-09-05 02:03  jordi
12350
12351         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12352           certain situations
12353
12354 2004-09-04 11:10  jordi
12355
12356         * Label.cs: Refresh when font changed
12357
12358 2004-09-02 16:24  pbartok
12359
12360         * Control.cs:
12361           - Added sanity check to creation of double buffer bitmap
12362
12363 2004-09-02 16:24  pbartok
12364
12365         * ButtonBase.cs:
12366           - Fixed selection of text color
12367           - Fixed handling of resize event; now properly recreates double
12368             buffering bitmap
12369           - Added missing assignment of TextAlignment
12370           - Added proper default for TextAlignment
12371
12372 2004-09-02 14:26  pbartok
12373
12374         * RadioButton.cs:
12375           - Added missing RadioButton.RadioButtonAccessibleObject class
12376
12377 2004-09-02 14:26  pbartok
12378
12379         * Control.cs:
12380           - Added missing Control.ControlAccessibleObject class
12381           - Started to implement Select()ion mechanisms, still very incomplete
12382
12383 2004-09-02 14:25  pbartok
12384
12385         * AccessibleObject.cs:
12386           - Added missing methods
12387
12388 2004-09-02 14:23  pbartok
12389
12390         * AccessibleNavigation.cs, AccessibleSelection.cs:
12391           - Initial check-in
12392
12393 2004-09-02 10:32  jordi
12394
12395         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12396           pool for pens, brushes, and hatchbruses
12397
12398 2004-09-01 15:30  jackson
12399
12400         * StatusBar.cs: Fix typo
12401
12402 2004-09-01 14:44  pbartok
12403
12404         * RadioButton.cs:
12405           - Fixed state
12406
12407 2004-09-01 14:39  pbartok
12408
12409         * Button.cs, RadioButton.cs:
12410           - Functional initial check-in
12411
12412 2004-09-01 14:01  pbartok
12413
12414         * CheckBox.cs:
12415           - Added missing default
12416           - Added missing region mark
12417
12418 2004-09-01 09:10  jordi
12419
12420         * Label.cs: fixes method signatures, new methods, events, fixes
12421           autosize
12422
12423 2004-09-01 07:19  jordi
12424
12425         * Control.cs: Init string variables with an empty object
12426
12427 2004-09-01 04:20  jordi
12428
12429         * Control.cs: fires OnFontChanged event
12430
12431 2004-08-31 20:07  pbartok
12432
12433         * ButtonBase.cs:
12434           - Enabled display of strings
12435
12436 2004-08-31 20:05  pbartok
12437
12438         * Form.cs:
12439           - Added (partial) implementation of DialogResult; rest needs to be
12440             implemented when the modal loop code is done
12441
12442 2004-08-31 19:55  pbartok
12443
12444         * CheckBox.cs:
12445           - Fixed to match the removal of the needs_redraw concept
12446
12447 2004-08-31 19:55  pbartok
12448
12449         * ButtonBase.cs:
12450           - Removed the rather odd split between 'needs redraw' and redrawing
12451           - Now handles the events that require regeneration (ambient
12452             properties and size)
12453
12454 2004-08-31 19:41  pbartok
12455
12456         * Control.cs:
12457           - Added firing of BackColorChanged event
12458           - Added TopLevelControl property
12459           - Fixed handling of WM_ERASEBKGRND message
12460
12461 2004-08-31 12:49  pbartok
12462
12463         * ButtonBase.cs:
12464           - Removed debug
12465           - Minor fixes
12466
12467 2004-08-31 12:48  pbartok
12468
12469         * CheckBox.cs:
12470           - Finished (famous last words)
12471
12472 2004-08-31 04:35  jordi
12473
12474         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12475           scrolling bugs, adds new methods
12476
12477 2004-08-30 14:42  pbartok
12478
12479         * CheckBox.cs:
12480           - Implemented CheckBox drawing code
12481
12482 2004-08-30 14:42  pbartok
12483
12484         * ButtonBase.cs:
12485           - Made Redraw() and CheckRedraw() virtual
12486           - Improved mouse up/down/move logic to properly track buttons
12487
12488 2004-08-30 09:44  pbartok
12489
12490         * CheckBox.cs:
12491           - Updated to fix broken build. Not complete yet.
12492
12493 2004-08-30 09:28  pbartok
12494
12495         * CheckState.cs:
12496           - Initial checkin
12497
12498 2004-08-30 09:17  pbartok
12499
12500         * Appearance.cs:
12501           - Initial check-in
12502
12503 2004-08-27 16:12  ravindra
12504
12505         * ToolBarButton.cs: Added TypeConverter attribute.
12506
12507 2004-08-27 16:07  ravindra
12508
12509         * ImageIndexConverter.cs: Implemented.
12510
12511 2004-08-27 14:17  pbartok
12512
12513         * Control.cs:
12514           - Removed unneeded stack vars
12515           - First attempt to fix sizing issues when layout is suspended
12516
12517 2004-08-25 15:35  jordi
12518
12519         * ScrollBar.cs: more fixes to scrollbar
12520
12521 2004-08-25 14:04  ravindra
12522
12523         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12524           Added the missing divider code and grip for ToolBar Control.
12525
12526 2004-08-25 13:20  pbartok
12527
12528         * Control.cs:
12529           - Control now properly passes the ambient background color to child
12530             controls
12531
12532 2004-08-25 13:20  jordi
12533
12534         * ScrollBar.cs: small bug fix regarding bar position
12535
12536 2004-08-25 12:33  pbartok
12537
12538         * Timer.cs:
12539           - Now only calls SetTimer or KillTimer if the enabled state has
12540           changed
12541
12542 2004-08-25 12:33  pbartok
12543
12544         * XplatUIWin32.cs:
12545           - Fixed timer handling, now seems to work
12546           - Improved error message for window creation
12547
12548 2004-08-25 12:32  pbartok
12549
12550         * Control.cs:
12551           - Fixed generation of MouseUp message
12552
12553 2004-08-25 12:29  jordi
12554
12555         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12556           and fixes for progressbar
12557
12558 2004-08-24 18:43  ravindra
12559
12560         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12561           in ToolBar control.
12562
12563 2004-08-24 17:15  pbartok
12564
12565         * Panel.cs:
12566           - Added #region
12567           - Added missing events
12568           - Alphabetized
12569
12570 2004-08-24 17:14  pbartok
12571
12572         * StatusBar.cs, PictureBox.cs:
12573           - Now uses Control's CreateParams
12574
12575 2004-08-24 16:36  pbartok
12576
12577         * XplatUIX11.cs:
12578           - Fixed background color handling
12579           - Fixed sending of enter/leave events on a grab
12580
12581 2004-08-24 16:35  pbartok
12582
12583         * X11Structs.cs:
12584           - Refined definitions for CrossingEvent
12585
12586 2004-08-24 12:37  jordi
12587
12588         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12589           formmating, methods signature, and adds missing events
12590
12591 2004-08-24 12:24  jordi
12592
12593         * Control.cs: fire OnEnabledChanged event
12594
12595 2004-08-24 11:17  pbartok
12596
12597         * XplatUIWin32.cs:
12598           - Implemented SetTimer() and KillTimer()
12599
12600 2004-08-24 11:16  pbartok
12601
12602         * XplatUIX11.cs:
12603           - Now uses Remove instead of Add to kill the timer
12604
12605 2004-08-24 10:16  jackson
12606
12607         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12608           picture boxes in the theme now. Draw picture box borders and obey
12609           sizing modes
12610
12611 2004-08-24 05:49  jackson
12612
12613         * Timer.cs: Remove top secret debugging code
12614
12615 2004-08-24 05:34  jackson
12616
12617         * PictureBox.cs: Temp hack to make picture boxes draw their full
12618           image
12619
12620 2004-08-24 05:29  jackson
12621
12622         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12623           XplatUIX11.cs: Move timers to the driver level. On X they are
12624           queued by the driver and checked on idle.
12625
12626 2004-08-24 01:07  jackson
12627
12628         * XplatUIX11.cs: Use a queue for async messages instead of passing
12629           them as ClientMessages since that was totally broken. Also simply
12630           check for events and return an idle message if none are found. This
12631           gives us an idle handler, and prevents deadlocking when no messages
12632           are in the queue.
12633
12634 2004-08-23 18:19  ravindra
12635
12636         * XplatUIWin32.cs: Removed the unwanted destructor.
12637
12638 2004-08-23 17:27  pbartok
12639
12640         * ButtonBase.cs:
12641           - Finishing touches. Works now, just needs some optimizations.
12642
12643 2004-08-23 16:53  jordi
12644
12645         * ScrollBar.cs: small fix
12646
12647 2004-08-23 16:45  pbartok
12648
12649         * Application.cs:
12650           - Removed debug output
12651           - Simplifications
12652
12653 2004-08-23 16:43  jordi
12654
12655         * ScrollBar.cs: [no log message]
12656
12657 2004-08-23 16:10  pbartok
12658
12659         * Form.cs:
12660           - Fixed handling of WM_CLOSE message
12661           - Removed debug output
12662
12663 2004-08-23 16:09  pbartok
12664
12665         * Application.cs:
12666           - Added handling of Idle event
12667           - Added handling of form closing
12668           - Fixed reporting of MessageLoop property
12669           - Removed some unneeded code, should provide a bit of a speedup
12670
12671 2004-08-23 15:22  pbartok
12672
12673         * Control.cs:
12674           - Added InitLayout() method
12675           - Added code to properly perform layout when Anchor or Dock property
12676             is changed
12677           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12678             LAMESPEC, tried to do it in a way that makes sense
12679
12680 2004-08-23 14:10  jordi
12681
12682         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12683           properties and methods
12684
12685 2004-08-23 13:55  pbartok
12686
12687         * Control.cs:
12688           - Properly fixed Jordi's last fix
12689           - Now uses Cursor's Position property instead of calling XplatUI
12690           directly
12691
12692 2004-08-23 13:44  jordi
12693
12694         * PaintEventHandler.cs: Adding missing attribute
12695
12696 2004-08-23 13:39  pbartok
12697
12698         * Cursor.cs:
12699           - Implemented Position property
12700
12701 2004-08-23 13:39  pbartok
12702
12703         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12704           - Added method to move mouse cursor
12705
12706 2004-08-23 13:39  pbartok
12707
12708         * XplatUIX11.cs:
12709           - Fixed setting of background color
12710           - Added method to move mouse cursor
12711
12712 2004-08-23 13:16  jordi
12713
12714         * Control.cs: avoids null exception
12715
12716 2004-08-22 17:46  jackson
12717
12718         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12719           PictureBox
12720
12721 2004-08-22 17:40  jackson
12722
12723         * XplatUIX11.cs: Add some missing locks
12724
12725 2004-08-22 15:10  pbartok
12726
12727         * Control.cs, Form.cs:
12728           - Removed OverlappedWindow style from Control, instead it's default
12729             now is child
12730           - Made form windows OverlappedWindow by default
12731
12732 2004-08-22 13:34  jackson
12733
12734         * ScrollBar.cs: Update the position through the Value property so
12735           the OnValueChanged event is raised.
12736
12737 2004-08-22 12:04  pbartok
12738
12739         * SWF.csproj:
12740           - Added Cursor.cs and UserControl.cs
12741
12742 2004-08-22 12:03  pbartok
12743
12744         * Cursor.cs:
12745           - Started implementation, not usable yet
12746
12747 2004-08-22 12:00  pbartok
12748
12749         * UserControl.cs:
12750           - Implemented UserControl (complete)
12751
12752 2004-08-21 19:20  ravindra
12753
12754         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12755
12756 2004-08-21 18:49  ravindra
12757
12758         * ToolBar.cs: Probably this completes the missing attributes in
12759           toolbar control.
12760
12761 2004-08-21 18:03  ravindra
12762
12763         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12764           Fixed toolbar control signatures.
12765
12766 2004-08-21 16:32  pbartok
12767
12768         * LinkLabel.cs:
12769           - Signature Fixes
12770
12771 2004-08-21 16:30  pbartok
12772
12773         * Label.cs:
12774           - Signature fixes
12775
12776 2004-08-21 16:19  pbartok
12777
12778         * Control.cs, Label.cs:
12779           - Signature fixes
12780
12781 2004-08-21 15:57  pbartok
12782
12783         * ButtonBase.cs:
12784           - Added loads of debug output for development
12785           - Fixed typo in method name
12786
12787 2004-08-21 15:52  pbartok
12788
12789         * ToolBarButtonClickEventArgs.cs:
12790           - Added missing base class
12791
12792 2004-08-21 14:53  pbartok
12793
12794         * Control.cs:
12795           - Updated to match new GrabWindow signature
12796
12797 2004-08-21 14:51  pbartok
12798
12799         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12800           - Added method to get default display size
12801
12802 2004-08-21 14:23  pbartok
12803
12804         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12805           - Added method to query current grab state
12806           - Added argument to allow confining a grab to a window
12807
12808 2004-08-21 14:22  pbartok
12809
12810         * Keys.cs:
12811           - Added [Flags] attribute so that modifiers can be used in bitwise
12812           ops
12813
12814 2004-08-21 14:21  pbartok
12815
12816         * TrackBar.cs, ScrollBar.cs:
12817           - Replaced direct XplatUI calls with their Control counterpart
12818
12819 2004-08-21 13:32  pbartok
12820
12821         * Control.cs:
12822           - Implemented Created property
12823
12824 2004-08-21 13:28  pbartok
12825
12826         * Control.cs:
12827           - Implemented ContainsFocus
12828
12829 2004-08-21 13:26  pbartok
12830
12831         * Control.cs:
12832           - Implemented CausesValidation
12833
12834 2004-08-21 13:21  pbartok
12835
12836         * Control.cs:
12837           - Implemented CanFocus
12838           - Implemented CanSelect
12839           - Implemented Capture
12840
12841 2004-08-21 12:35  pbartok
12842
12843         * XplatUIWin32.cs:
12844           - Fixed bug with Async message handling
12845           - Implemented getting the ModifierKeys
12846
12847 2004-08-21 12:32  jackson
12848
12849         * AsyncMethodResult.cs: Make sure we have the mutex before we
12850           release it. Fixes BeginInvoke on windows
12851
12852 2004-08-21 11:31  pbartok
12853
12854         * XplatUIWin32.cs, XplatUIX11.cs:
12855           - Drivers now return proper mouse state
12856
12857 2004-08-21 10:54  jackson
12858
12859         * Control.cs: Implement EndInvoke
12860
12861 2004-08-21 10:48  jackson
12862
12863         * Timer.cs: Remove unneeded finalizer
12864
12865 2004-08-20 19:52  ravindra
12866
12867         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12868           in mouse event handling in the ToolBar control.
12869
12870 2004-08-20 19:50  ravindra
12871
12872         * ImageList.cs: Changed draw method to use the arguments passed in
12873           to draw the image.
12874
12875 2004-08-20 18:58  pbartok
12876
12877         * XplatUIStructs.cs:
12878           - Added private message for async communication
12879
12880 2004-08-20 17:38  ravindra
12881
12882         * Control.cs: Made RightToLeft property virtual and removed a
12883           Console.WriteLine.
12884
12885 2004-08-20 14:39  jordi
12886
12887         * ThemeGtk.cs: use style_attach
12888
12889 2004-08-20 14:39  pbartok
12890
12891         * XplatUIWin32.cs:
12892           - Added jackson's Async code from X11 to Win32
12893
12894 2004-08-20 14:09  pbartok
12895
12896         * SWF.csproj:
12897           - Added all new files
12898
12899 2004-08-20 14:09  pbartok
12900
12901         * Control.cs:
12902           - Added call to set window background color
12903
12904 2004-08-20 14:03  pbartok
12905
12906         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12907           - Added method for setting the window background
12908
12909 2004-08-20 14:02  pbartok
12910
12911         * XplatUIWin32.cs:
12912           - Added method for setting the background color
12913           - Added handling for erasing the window background
12914
12915 2004-08-20 13:45  jordi
12916
12917         * TrackBar.cs: fixes timer, new properties and methods
12918
12919 2004-08-20 13:34  jackson
12920
12921         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12922           correct thread
12923
12924 2004-08-20 13:22  jackson
12925
12926         * Timer.cs: Timer Tick events are now handed through Controls Async
12927           mechanism so the callbacks are executed in the same thread as X
12928
12929 2004-08-20 13:19  jackson
12930
12931         * XplatUIDriver.cs: Expose functionality to send async messages
12932           through the driver
12933
12934 2004-08-20 13:18  jackson
12935
12936         * Control.cs: Implement Begininvoke
12937
12938 2004-08-20 13:14  jackson
12939
12940         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
12941           messages through the driver
12942
12943 2004-08-20 13:12  jackson
12944
12945         * XplatUIX11.cs: Lock before all X operations. Also added Async
12946           method functionality through XSendEvent
12947
12948 2004-08-20 13:11  jackson
12949
12950         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
12951           This will screw up on 64 bit systems)
12952
12953 2004-08-20 13:10  jackson
12954
12955         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
12956           Async messages through X/Win32
12957
12958 2004-08-19 19:39  pbartok
12959
12960         * XplatUIX11.cs:
12961           - Updated code to match new HandleData.DeviceContext type
12962
12963 2004-08-19 19:38  pbartok
12964
12965         * HandleData.cs:
12966           - Made DeviceContext a generic object to allow usage from various
12967           drivers
12968           - Added support for queueing Windows messages
12969
12970 2004-08-19 19:37  pbartok
12971
12972         * XplatUIWin32.cs:
12973           - Added generation of MouseEnter, MouseLeave and MouseHover events
12974           - Added cleanup on EndPaint
12975
12976 2004-08-19 19:17  pbartok
12977
12978         * Control.cs:
12979           - Added handling of WM_MOUSEHOVER
12980           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
12981           code
12982
12983 2004-08-19 18:55  jordi
12984
12985         * ThemeGtk.cs: fixes button order
12986
12987 2004-08-19 18:12  jordi
12988
12989         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
12990
12991 2004-08-19 17:09  pbartok
12992
12993         * Control.cs:
12994           - Added Right property
12995           - Added RightToLeft property
12996
12997 2004-08-19 16:27  jordi
12998
12999         * ThemeGtk.cs: experimental GTK theme support
13000
13001 2004-08-19 16:26  jordi
13002
13003         * ITheme.cs, Theme.cs: move themes from an interface to a class
13004
13005 2004-08-19 16:25  jordi
13006
13007         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13008           theme enhancaments
13009
13010 2004-08-19 16:04  pbartok
13011
13012         * XplatUIX11.cs:
13013           - Added colormap basics
13014           - Added a way to re-initialize with a different display handle
13015           - Fixed setting of the window background color
13016           - Added various X11 imports related to colors and colormaps
13017
13018 2004-08-19 15:51  pbartok
13019
13020         * X11Structs.cs:
13021           - Removed packing hints (Paolo suggested this a while back)
13022           - fixed colormap type
13023           - Added default Atom types
13024           - Added Screen and color structs and enums
13025
13026 2004-08-19 15:39  pbartok
13027
13028         * ImageList.cs:
13029           - Added missing Draw() method
13030           - Added missing RecreateHandle event
13031
13032 2004-08-19 15:30  pbartok
13033
13034         * Form.cs:
13035           - Added handling of WM_CLOSE
13036
13037 2004-08-18 13:16  jordi
13038
13039         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13040           a table
13041
13042 2004-08-18 09:56  jordi
13043
13044         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13045
13046 2004-08-17 15:31  ravindra
13047
13048         * SWF.csproj: Updated project.
13049
13050 2004-08-17 15:25  pbartok
13051
13052         * Control.cs:
13053           - Drawing improvement; don't call UpdateBounds if we are not visible
13054             (or have been minimized)
13055
13056 2004-08-17 15:24  pbartok
13057
13058         * XplatUIWin32.cs:
13059           - Finished IsVisible
13060           - Added Win32GetWindowPlacement
13061
13062 2004-08-17 15:08  jackson
13063
13064         * Panel.cs: Initial checkin of the Panel
13065
13066 2004-08-17 14:25  pbartok
13067
13068         * Control.cs:
13069           - Fixed broken handling of default window sizes
13070
13071 2004-08-17 13:29  jackson
13072
13073         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13074           has a large startup time.
13075
13076 2004-08-17 10:25  jackson
13077
13078         * HandleData.cs: union areas properly
13079
13080 2004-08-17 10:12  jackson
13081
13082         * HandleData.cs: union areas properly
13083
13084 2004-08-16 20:00  ravindra
13085
13086         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13087
13088 2004-08-16 18:48  ravindra
13089
13090         * ToolBar.cs: Added attributes.
13091
13092 2004-08-16 17:17  ravindra
13093
13094         * SWF.csproj: Updated project.
13095
13096 2004-08-16 17:16  jackson
13097
13098         * XplatUIX11.cs: Check for more expose events before sending a
13099           WM_PAINT so they can all be grouped together. This makes dragging a
13100           window across another window redraw in a sane way.
13101
13102 2004-08-16 15:47  pbartok
13103
13104         * Control.cs:
13105           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13106             support OnMouseEnter/Leave()
13107           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13108             exposure handling
13109
13110 2004-08-16 15:46  pbartok
13111
13112         * XplatUIStructs.cs, XplatUIX11.cs:
13113           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13114           OnMouseEnter/Leave()
13115
13116 2004-08-16 15:34  jackson
13117
13118         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13119           sure messages get the message field set to WM_NULL if they are not
13120           handled.
13121
13122 2004-08-16 15:24  jackson
13123
13124         * HandleData.cs: HandleData is used for storing message information
13125           for window handles
13126
13127 2004-08-15 17:23  ravindra
13128
13129         * ColorDepth.cs: Added attribute.
13130
13131 2004-08-15 17:23  ravindra
13132
13133         * SWF.csproj: Updated project for ToolBar Control.
13134
13135 2004-08-15 17:20  ravindra
13136
13137         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13138           control and also dos2unix format.
13139
13140 2004-08-15 17:13  ravindra
13141
13142         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13143           ToolBarButtonClickEventArgs.cs,
13144           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13145           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13146
13147 2004-08-15 15:31  pbartok
13148
13149         * ButtonBase.cs:
13150           - First (mostly) working version
13151
13152 2004-08-13 16:15  pbartok
13153
13154         * Control.cs:
13155           - Fixed Anchor default
13156
13157 2004-08-13 15:43  pbartok
13158
13159         * Control.cs:
13160           - Changed GetCursorPos signature
13161
13162 2004-08-13 15:42  pbartok
13163
13164         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13165           - Changed signature for GetCursorPos
13166
13167 2004-08-13 15:25  pbartok
13168
13169         * XplatUIX11.cs:
13170           - Cleanup
13171           - Fixed resizing/exposure handling
13172
13173 2004-08-13 15:22  jordi
13174
13175         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13176           with tickposition
13177
13178 2004-08-13 14:55  jordi
13179
13180         * TrackBar.cs: change from wndproc to events
13181
13182 2004-08-13 13:00  jordi
13183
13184         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13185           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13186
13187 2004-08-13 12:53  pbartok
13188
13189         * XplatUIWin32.cs:
13190           - Changed GetWindowPos to also provide client area size
13191           - Fixed broken prototypes for several win32 functions
13192
13193 2004-08-13 12:53  pbartok
13194
13195         * XplatUI.cs, XplatUIDriver.cs:
13196           - Changed GetWindowPos to also provide client area size
13197
13198 2004-08-13 12:52  pbartok
13199
13200         * XplatUIX11.cs:
13201           - Added generation of WM_POSCHANGED
13202           - Changed GetWindowPos to also provide client area size
13203
13204 2004-08-13 12:52  pbartok
13205
13206         * Control.cs:
13207           - Added Dispose() and destructor
13208           - Fixed resizing and bounds calculation
13209           - Fixed Layout
13210           - Added memory savings for invisible windows
13211
13212 2004-08-13 12:46  jordi
13213
13214         * TrackBar.cs: adds timer and grap window
13215
13216 2004-08-13 10:25  jackson
13217
13218         * Timer.cs: SWF Timer
13219
13220 2004-08-12 16:59  pbartok
13221
13222         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13223           - Implemented method to get current mouse position
13224
13225 2004-08-12 14:29  jordi
13226
13227         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13228           enhancement, fix mouse problems, highli thumb, etc
13229
13230 2004-08-12 13:31  pbartok
13231
13232         * Control.cs:
13233           - Fixed Anchoring bugs
13234
13235 2004-08-12 13:01  jackson
13236
13237         * StatusBar.cs: Don't forget things
13238
13239 2004-08-12 12:54  jackson
13240
13241         * ThemeWin32Classic.cs: Handle owner draw status bars
13242
13243 2004-08-12 12:54  jackson
13244
13245         * StatusBar.cs: Implement missing properties, events, and methods.
13246           Handle mouse clicking
13247
13248 2004-08-12 10:19  jackson
13249
13250         * StatusBarPanelClickEventArgs.cs,
13251           StatusBarPanelClickEventHandler.cs: Classes for handling status
13252           bar panel click events
13253
13254 2004-08-12 10:10  jackson
13255
13256         * Control.cs: Add missing properties
13257
13258 2004-08-12 09:46  pbartok
13259
13260         * BindingsManagerBase.cs:
13261           - Name changed to BindingManagerBase.cs
13262
13263 2004-08-12 09:25  jordi
13264
13265         * ScrollableControl.cs: calls ctrlbase instead of exeception
13266
13267 2004-08-11 16:28  pbartok
13268
13269         * InputLanguageChangingEventArgs.cs:
13270           - Never check in before compiling. Fixes the last check-in
13271
13272 2004-08-11 16:26  pbartok
13273
13274         * InputLanguageChangingEventArgs.cs:
13275           - More signature fixes
13276
13277 2004-08-11 16:20  pbartok
13278
13279         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13280           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13281           ImageListStreamer.cs, InputLanguage.cs,
13282           InputLanguageChangedEventArgs.cs,
13283           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13284           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13285           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13286           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13287           - Signature fixes
13288
13289 2004-08-11 16:16  pbartok
13290
13291         * Application.cs:
13292           - Fixed Signature
13293           - Added .Net 1.1 method
13294
13295 2004-08-11 15:25  pbartok
13296
13297         * SWF.csproj:
13298           - Fixed BindingManagerBase.cs filename
13299
13300 2004-08-11 15:22  pbartok
13301
13302         * BindingManagerBase.cs:
13303           - Was checked in with wrong filename
13304
13305 2004-08-11 14:50  pbartok
13306
13307         * SWF.csproj:
13308           - Updated
13309
13310 2004-08-11 13:41  jordi
13311
13312         * XplatUIWin32.cs: Fixes ClientRect
13313
13314 2004-08-11 13:19  pbartok
13315
13316         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13317           XplatUIX11.cs:
13318           - We had SetWindowPos and MoveWindow to set window positions and
13319             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13320             keep SetWindowPos as matching counterpart
13321           - Added some X11 sanity checking
13322
13323 2004-08-11 12:59  pbartok
13324
13325         * Control.cs:
13326           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13327             (It seems that SetBounds is just a front for SetBoundsCore and
13328              SetBoundsCore updates the underlying window system and
13329              UpdateBounds is responsible for updating the variables associated
13330              with the Control and sending the events)
13331           - Major cleanup of Size handling; we now have two sizes, client_size
13332             and bounds. Bounds defines the window with decorations, client_size
13333             without them.
13334
13335 2004-08-11 12:55  pbartok
13336
13337         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13338           - Added method to calculate difference between decorated window and
13339             raw client area
13340
13341 2004-08-11 12:54  pbartok
13342
13343         * Label.cs:
13344           - Forcing redraw on resize
13345
13346 2004-08-11 11:43  pbartok
13347
13348         * ImageList.cs:
13349           - Removed disposing of the actual images when the list is disposed
13350
13351 2004-08-11 09:13  pbartok
13352
13353         * Control.cs:
13354           - Now properly reparents windows
13355
13356 2004-08-11 08:37  pbartok
13357
13358         * Control.cs:
13359           - Duh!
13360
13361 2004-08-11 07:47  pbartok
13362
13363         * Control.cs:
13364           - Rewrote the collection stuff. Might not be as fast now, not
13365             keeping the number of children around and accessible directly, but
13366             it's more straightforward
13367
13368 2004-08-11 07:44  pbartok
13369
13370         * AccessibleObject.cs:
13371           - Fixed to match ControlCollection rewrite
13372
13373 2004-08-11 07:43  pbartok
13374
13375         * ImageList.cs:
13376           - Added missing creation of the collection list
13377
13378 2004-08-10 20:08  jackson
13379
13380         * StatusBar.cs: Get the paint message from WndProc
13381
13382 2004-08-10 19:31  jackson
13383
13384         * ThemeWin32Classic.cs: Create Brushes as little as possible
13385
13386 2004-08-10 19:20  jackson
13387
13388         * UICues.cs: Add Flags attribute
13389
13390 2004-08-10 19:19  jackson
13391
13392         * StatusBarPanel.cs: Signature cleanup
13393
13394 2004-08-10 19:10  jackson
13395
13396         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13397           Initial implementation of status bar item drawing
13398
13399 2004-08-10 17:27  jordi
13400
13401         * TrackBar.cs: add missing methods, properties, and restructure to
13402           hide extra ones
13403
13404 2004-08-10 16:24  jackson
13405
13406         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13407           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13408           attribute
13409
13410 2004-08-10 13:21  jordi
13411
13412         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13413           enhancements and standarize on win colors defaults
13414
13415 2004-08-10 12:52  jackson
13416
13417         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13418           ThemeWin32Classic.cs: Implement DrawItem functionality
13419
13420 2004-08-10 12:47  jordi
13421
13422         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13423
13424 2004-08-10 12:32  jordi
13425
13426         * Control.cs: throw ontextchange event
13427
13428 2004-08-10 11:43  pbartok
13429
13430         * Control.cs:
13431           - Added more to the still unfinished Dock/Anchor layout code
13432
13433 2004-08-10 11:39  pbartok
13434
13435         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13436           - Added GetWindowPos method
13437
13438 2004-08-10 11:36  pbartok
13439
13440         * XplatUIWin32.cs:
13441           - Implemented several methods
13442
13443 2004-08-10 09:47  jackson
13444
13445         * TrackBar.cs: Allow control to handle buffering
13446
13447 2004-08-10 09:41  jackson
13448
13449         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13450
13451 2004-08-10 09:24  jackson
13452
13453         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13454
13455 2004-08-10 09:09  jackson
13456
13457         * StatusBar.cs: Let Control handle all the buffering.
13458
13459 2004-08-10 09:08  jackson
13460
13461         * Control.cs: Control will now handle the buffering code, so each
13462           control does not have to implement this.
13463
13464 2004-08-10 08:34  jackson
13465
13466         * XplatUIDriver.cs: Use default colors from the theme
13467
13468 2004-08-09 17:12  pbartok
13469
13470         * ImageList.cs:
13471           - Fixed several bugs Ravindra pointed out
13472
13473 2004-08-09 16:11  pbartok
13474
13475         * Control.cs:
13476           - Added incomplete dock layout code
13477           - Added support for mouse wheel
13478
13479 2004-08-09 16:09  pbartok
13480
13481         * XplatUIX11.cs:
13482           - Added handling for middle and right mousebutton
13483           - Added handling for mouse wheel
13484           - Added handling for key state and mouse state and position
13485           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13486           messages
13487
13488 2004-08-09 15:40  jackson
13489
13490         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13491           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13492           checkin
13493
13494 2004-08-09 15:37  jackson
13495
13496         * StatusBar.cs: Initial implementation of StatusBar
13497
13498 2004-08-09 15:36  jackson
13499
13500         * ITheme.cs: Add support for drawing status bar and getting status
13501           bar item sizes
13502
13503 2004-08-09 15:35  pbartok
13504
13505         * MouseButtons.cs:
13506           - Fixed values
13507
13508 2004-08-09 15:34  jackson
13509
13510         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13511           status bar item sizes
13512
13513 2004-08-09 15:21  jackson
13514
13515         * ThemeWin32Classic.cs: Use known colors for default control
13516           colours
13517
13518 2004-08-09 15:12  jackson
13519
13520         * ThemeWin32Classic.cs: Make the default font static, it is static
13521           in control so this doesn't change functionality and creating fonts
13522           is sloooooow.
13523
13524 2004-08-09 14:56  pbartok
13525
13526         * X11Structs.cs:
13527           - Added GrabMode enum
13528
13529 2004-08-09 14:55  pbartok
13530
13531         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13532           - Removed Run method, was only required for initial development
13533
13534 2004-08-09 14:51  pbartok
13535
13536         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13537           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13538           capture
13539
13540 2004-08-09 13:48  pbartok
13541
13542         * XplatUIX11.cs:
13543           - Fixed default sizing for child windows
13544
13545 2004-08-09 12:56  pbartok
13546
13547         * XplatUIX11.cs:
13548           - Added generation of WM_DESTROY message
13549           - Added handling of window manager induced shutdown
13550
13551 2004-08-09 11:31  jackson
13552
13553         * ThemeWin32Classic.cs: New names for control properties
13554
13555 2004-08-09 11:25  jackson
13556
13557         * Control.cs: Use new color names
13558
13559 2004-08-09 11:02  jackson
13560
13561         * XplatUI.cs: Get default window properties from the theme
13562
13563 2004-08-09 11:01  jackson
13564
13565         * ITheme.cs: The theme engine now controls default window
13566           properties
13567
13568 2004-08-09 11:00  jackson
13569
13570         * ThemeWin32Classic.cs: Add default window color properties
13571
13572 2004-08-09 10:17  jackson
13573
13574         * ThemeWin32Classic.cs: Use correct default back color
13575
13576 2004-08-09 10:05  jackson
13577
13578         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13579           the theme now.
13580
13581 2004-08-09 09:56  jackson
13582
13583         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13584
13585 2004-08-09 09:54  jackson
13586
13587         * Control.cs: Get default properties from the theme.
13588
13589 2004-08-09 09:53  jackson
13590
13591         * ITheme.cs: Themes now handle default control properties
13592
13593 2004-08-09 09:53  jackson
13594
13595         * ThemeWin32Classic.cs: Themes now handle default control
13596           properties so coloring will be consistent
13597
13598 2004-08-08 16:54  jordi
13599
13600         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13601
13602 2004-08-08 15:08  jordi
13603
13604         * XplatUIX11.cs: fixes keyboard crash
13605
13606 2004-08-08 13:47  jordi
13607
13608         * Label.cs: add cvs header info
13609
13610 2004-08-08 12:09  jackson
13611
13612         * ThemeWin32Classic.cs: Add pen_buttonface
13613
13614 2004-08-08 11:52  jordi
13615
13616         * Label.cs, LinkLabel.cs: [no log message]
13617
13618 2004-08-08 11:34  jordi
13619
13620         * ThemeWin32Classic.cs: Use Windows Standard Colours
13621
13622 2004-08-07 17:32  jordi
13623
13624         * TrackBar.cs: throw exceptions of invalid enums values
13625
13626 2004-08-07 17:31  jordi
13627
13628         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13629           draw method name
13630
13631 2004-08-07 16:56  jackson
13632
13633         * HorizontalAlignment.cs: Initial checkin
13634
13635 2004-08-07 13:16  jordi
13636
13637         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13638           methods
13639
13640 2004-08-07 13:05  jordi
13641
13642         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13643           GetSysColor defines
13644
13645 2004-08-06 18:01  pbartok
13646
13647         * ThemeWin32Classic.cs:
13648           - Fixed some rounding issues with float/int
13649
13650 2004-08-06 18:00  jackson
13651
13652         * DockStyle.cs, AnchorStyles.cs:
13653
13654                   Add flags and serializable attributes.
13655
13656 2004-08-06 17:46  pbartok
13657
13658         * XplatUIX11.cs:
13659           - Implemented GetParent
13660
13661 2004-08-06 17:18  pbartok
13662
13663         * TrackBar.cs:
13664           - Fixed some rounding issues with float/int
13665
13666 2004-08-06 17:17  pbartok
13667
13668         * X11Structs.cs, XplatUIX11.cs:
13669           - Fixed Refresh and Invalidate
13670
13671 2004-08-06 15:30  pbartok
13672
13673         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13674           - Fixed recursive loop when resizing
13675           - Improved/fixed redrawing on expose messages
13676
13677 2004-08-06 09:53  jordi
13678
13679         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13680           keyboard navigation
13681
13682 2004-08-06 08:02  pbartok
13683
13684         * X11Structs.cs, XplatUIX11.cs:
13685           - Fixed reparenting
13686           - Fixed window border creation
13687
13688 2004-08-05 15:38  pbartok
13689
13690         * XplatUIX11.cs:
13691           - Attempted fix for reparenting problems
13692
13693 2004-08-04 15:14  pbartok
13694
13695         * Control.cs:
13696           - Fixed Invalidation bug (calculated wrong client area)
13697           - Added ClientSize setter
13698
13699 2004-08-04 15:13  pbartok
13700
13701         * Form.cs:
13702           - Added AutoScale properties
13703
13704 2004-08-04 15:13  pbartok
13705
13706         * SWF.csproj:
13707           - Added latest files
13708
13709 2004-08-04 14:11  pbartok
13710
13711         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13712           XplatUIX11.cs:
13713           - Added Invalidate handling
13714
13715 2004-08-03 17:09  jordi
13716
13717         * XplatUIDriver.cs: fixes spelling mistake
13718
13719 2004-07-27 09:53  jordi
13720
13721         * TrackBar.cs: fixes trackbar events, def classname, methods
13722           signature
13723
13724 2004-07-27 09:29  jordi
13725
13726         * ScrollBar.cs: fixes scrollbar events
13727
13728 2004-07-27 04:38  jordi
13729
13730         * Control.cs: changes to be able to run winforms samples
13731
13732 2004-07-26 11:42  jordi
13733
13734         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13735           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13736
13737 2004-07-26 05:41  jordi
13738
13739         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13740           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13741           implementation
13742
13743 2004-07-22 09:22  jordi
13744
13745         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13746           check link overlapping, implement events, and fixes
13747
13748 2004-07-21 10:28  jordi
13749
13750         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13751
13752 2004-07-21 10:19  jordi
13753
13754         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13755           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13756           LinkLabelLinkClickedEventArgs.cs,
13757           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13758           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13759           implementation
13760
13761 2004-07-19 13:09  jordi
13762
13763         * Control.cs, Label.cs: label control re-written: added missing
13764           functionlity, events, and properties
13765
13766 2004-07-19 10:49  jordi
13767
13768         * Control.cs: fixes SetBounds logic
13769
13770 2004-07-19 01:29  jordi
13771
13772         * Control.cs: Call RefreshWindow only if the window has created
13773
13774 2004-07-15 14:05  pbartok
13775
13776         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13777           - Implemented ImageList and ImageList.ImageCollection classes
13778           - Added ColorDepth enumeration
13779           - Updated SWF VS.Net project
13780
13781 2004-07-15 11:06  jordi
13782
13783         * XplatUIStructs.cs: added MsgButons enum
13784
13785 2004-07-15 11:03  jordi
13786
13787         * Control.cs: added basic mouse handeling events
13788
13789 2004-07-15 03:38  jordi
13790
13791         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13792           Vertical TrackBar control implementation
13793
13794 2004-07-13 09:33  jordi
13795
13796         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13797
13798 2004-07-13 09:31  jordi
13799
13800         * Control.cs, Form.cs: commit: new properties and fixes form size
13801           problems
13802
13803 2004-07-09 14:13  miguel
13804
13805         * ProgressBar.cs: Spelling
13806
13807 2004-07-09 11:25  pbartok
13808
13809         * ProgressBar.cs:
13810           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13811           faster
13812
13813 2004-07-09 11:17  miguel
13814
13815         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13816
13817                 * ProgressBar.cs: Fixed spelling for `block'
13818
13819                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13820                 style guidelines.
13821
13822                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13823
13824 2004-07-08 23:21  pbartok
13825
13826         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13827           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13828           BaseCollection.cs, Binding.cs, BindingContext.cs,
13829           BindingMemberInfo.cs, BindingsCollection.cs,
13830           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13831           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13832           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13833           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13834           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13835           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13836           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13837           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13838           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13839           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13840           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13841           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13842           InputLanguageChangedEventArgs.cs,
13843           InputLanguageChangedEventHandler.cs,
13844           InputLanguageChangingEventArgs.cs,
13845           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13846           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13847           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13848           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13849           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13850           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13851           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13852           QueryAccessibilityHelpEventArgs.cs,
13853           QueryAccessibilityHelpEventHandler.cs,
13854           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13855           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13856           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13857           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13858           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13859           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13860           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13861           XplatUIX11.cs, lang.cs:
13862           - Initial check-in
13863