* TreeNodeCollection.cs: Update scrollbars after clearing.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-11-06  Jackson Harper  <jackson@ximian.com>
2
3         * TreeNodeCollection.cs: Update scrollbars after clearing.
4
5 2006-11-06  Chris Toshok  <toshok@ximian.com>
6
7         * NumericUpDown.cs: fix the ToString method for some unit test
8         love.
9
10 2006-11-06  Chris Toshok  <toshok@ximian.com>
11
12         * PropertyGrid.cs:
13         - set the initial SelectedGridItem if we can.
14
15         - Exclude non-mergable properties only if we're merging > 1
16         object.  Merging 1 object isn't really merging, obviously.
17
18         - Handle PropertySort.NoSort just like Alphabetical, which is
19         wrong of course, but at least gets things on the screen.
20         
21         * PropertyGridView.cs:
22         - Add method "FindFirstItem" which finds the first property grid
23         item, so we can select it by default.
24
25         - make use of GridEntry.CanResetValue.
26
27         - Don't call RedrawBelowItemOnExpansion here anymore, the
28         individual GridEntry's will do that.
29
30         - Remove the ITypeDescriptorContextImpl internal class.
31         
32         * GridEntry.cs:
33         - this class needs to implement ITypeDescriptorContext, as it's
34         what MS's PropertyDescriptorGridEntry does, which means we can
35         remove the ITypeDescriptorContextImpl internal class from
36         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
37
38         - keep a reference to our PropertyGridView, and move the call to
39         RedrawBelowItemOnExpansion here from PGV.  This means
40         programmaticly setting Expanded actually does something visible.
41
42         - add a CanResetValue() function which takes into account our
43         possibly multiple "selected_objects" in the merged case.  Shifting
44         PropertyGridView to use this method fixes another unreported
45         crasher found running the test for #79829.
46
47         - when Top or Bounds is updated, make sure the PropertyGridTextBox
48         is updated to reflect this.
49
50         * CategoryGridEntry.cs: the ctor takes the PGV now.
51         
52 2006-11-06  Jackson Harper  <jackson@ximian.com>
53
54         * TextControl.cs: These are 1 based.
55         * TextBoxBase.cs: When setting the selected text, don't change the
56         selected text tags, this is done by ReplaceText, just position the
57         cursor at the end of the new text.
58
59 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
60
61         * ListView.cs: Allow label edit only when, when LabelEdit is
62           set to true.
63
64 2006-11-06  Jackson Harper  <jackson@ximian.com>
65
66         * TextControl.cs: If a suitable wrapping position isn't found,
67         just wrap right in the middle of a word.
68
69 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
70
71         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
72           bug #79820.
73
74 2006-11-06  Jackson Harper  <jackson@ximian.com>
75
76         * TreeView.cs: Can't use the VisibleCount property when setting
77         scrollbar heights, because this doesn't take into account whether
78         or not the horz scrollbar just came visible.
79
80 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
81
82         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
83         activated.  Fixes #79369, #79832.
84
85 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
86
87         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
88           had to remove support for links that point to a directory. FileInfo
89           returns no usefull information (means, the directory they point to)
90           for such links. Replaced some empty string ("") with String.Empty.
91
92 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
93
94         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
95         NullReferenceException when attempting to remove node that is not in
96         collection. Throw NullReferenceException when null is passed to 
97         Remove. Allow first element of the collection to be removed. Fixes
98         bug #79831.  In GetEnumerator ().Current return null if positioned 
99         before the first element of the collection. In GetEnumerator ().Reset,
100         position before first element of the collection.
101
102 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
103
104         * PropertyGrid.cs: To match MS, remove default title and description
105         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
106         buttons.
107
108 2006-11-04  Chris Toshok  <toshok@ximian.com>
109
110         * Theme.cs: add a Clamp method, just for kicks.
111
112         * ThemeWin32Classic.cs: clamp all color components to [0..255].
113
114 2006-11-04  Chris Toshok  <toshok@ximian.com>
115
116         * Form.cs: if the form isn't visible, Close() does nothing.
117
118 2006-11-03  Chris Toshok  <toshok@ximian.com>
119
120         * Form.cs (Close): if the form is modal, don't Dispose of it, only
121         Hide it.
122         (WndProc): don't Dispose after handling the WM_CLOSE message.
123
124         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
125         them as such, instead of using casts from Control to Form.  Also,
126         don't Dispose of the modal dialog when we fall out of the loop -
127         Close() it instead.
128
129         fixes bug #79813.
130
131 2006-11-03  Chris Toshok  <toshok@ximian.com>
132
133         * Control.cs (Dispose): only go through the dispose thing if we're
134         @disposing, and we haven't already been disposed.  Fixes bug
135         #79814.
136
137         * Form.cs: no reason to call "base.Dispose()" here instead of
138         "Dispose()".
139
140 2006-11-03  Mike Kestner  <mkestner@novell.com>
141
142         * ComboBox.cs : use ToString instead of casts in AddItem for
143         sorting functionality.  Fixes #79812.
144
145 2006-11-03  Chris Toshok  <toshok@ximian.com>
146
147         * Application.cs: pave the way for actually using the thread
148         exception dialog.  it's ifdefed out at the moment.
149
150 2006-11-03  Chris Toshok  <toshok@ximian.com>
151
152         * ThreadExceptionDialog.cs: until we get a better layout, actually
153         hide the details textbox and label when we shouldn't see them.
154
155 2006-11-03  Jackson Harper  <jackson@ximian.com>
156
157         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
158         multiline textboxes anymore.  This method also determines the
159         width/height of a textboxes canvas area.
160         - Sorta a revert of the last patch.  For multiline just position
161         the controls, then bail.  This way the scrollbar width won't be
162         altered.
163
164 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
165
166         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
167         it dont need.  Fixes #79537.
168
169 2006-11-02  Jackson Harper  <jackson@ximian.com>
170
171         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
172         send the status after firing the DndOver event.
173
174 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
175
176         * TrackBar.cs: Now orientation only switches height / width if
177         the control's handle is created (Win32 does it like this). Also 
178         fixed a typo in ToString() for a test to pass, changed the 
179         exception thrown in set_LargeChange and set_SmallChange to 
180         match Win32 behaviour, and added TrackBar tests to the unit 
181         tests.
182
183 2006-11-02  Chris Toshok  <toshok@ximian.com>
184
185         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
186         not _NET_WM_STATE_NO_TASKBAR.
187
188 2006-11-02  Jackson Harper  <jackson@ximian.com>
189
190         * TextControl.cs: Increment count by one, since in the update view
191         count - 1 is used.
192
193 2006-11-02  Jackson Harper  <jackson@ximian.com>
194
195         * TextBoxBase.cs: Use client rectangle not bounds for checking if
196         the mouse is in the client rectangle (duh).
197
198 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
199         
200         * TrackBar.cs: Fixed trackbar jumping around when clicking
201         on it - the trackbar was not detecting correctly at which
202         side of the thumb the click was done. (fixes #79718)
203
204 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
205
206         * ListBox.cs: scroll visible area when change SelectedIndex to
207         a non visible area.  Fixes #79481.
208
209 2006-11-01  Jackson Harper  <jackson@ximian.com>
210
211         * TextControl.cs: When replacing the selection move the selection
212         start/end/anchor to the end of the new text.
213
214 2006-11-01  Jackson Harper  <jackson@ximian.com>
215
216         * XplatUIWin32.cs: When setting the parent change the controls
217         visibility to it's visibility flag, not to it's old parents
218         visibility (.Visible walks the parent chain).
219
220 2006-11-01  Chris Toshok  <toshok@ximian.com>
221
222         * XplatUIX11.cs: revert the #79790 fix, as the simple.
223         XSetTransientForHint fix breaks paint .net's tool windows.  more
224         work needed for that one.
225
226 2006-11-01  Chris Toshok  <toshok@ximian.com>
227
228         * ScrollBar.cs: throw ArgumentException instead of Exception in
229         LargeChange/SmallChange setters.  fixes unit tests.
230
231 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
232
233         * ContainerControl.cs: reverted rev.67183 (which was itself
234         a reversion of rev.66853... eh).
235         
236         * Control.cs: Fixes Reflector hang by changing Focus() call
237         to what it was before rev.66643 (calling Select() here sets 
238         ActiveControl, which in some situations calls back Focus and 
239         eventually does a stack overflow). Temp fix.    
240         Changes to GetNextControl() to not look for children to select when
241         parent cannot be selectable (so it looks for siblings instead)  
242         
243 2006-10-31  Mike Kestner  <mkestner@novell.com>
244
245         * CheckedListBox.cs : off by one error in returned index from
246         ObjectCollection.Add.  Fixes #79758.
247
248 2006-10-31  Chris Toshok  <toshok@ximian.com>
249
250         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
251         calls for the textbox/spinner, to keep from recursing to the point
252         where we crash.  Fixes #79760.
253
254 2006-10-31  Chris Toshok  <toshok@ximian.com>
255
256         * ListControl.cs (set_SelectedValue): don't throw exceptions on
257         null/"" value, just return.  matches ms's behavior and fixes some
258         failing tests.
259
260 2006-10-31  Chris Toshok  <toshok@ximian.com>
261
262         * Control.cs (set_Capture): make a logic a little easier to
263         follow.
264
265         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
266         if it's being destroyed.  A necessary fix surely, but a bandaid
267         also, to fix the stuck capture problem in bug #78413.
268
269 2006-10-31  Chris Toshok  <toshok@ximian.com>
270
271         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
272         convention of clearing hwnd.ClientRect when we set the
273         width/height (so it'll be recalculated by Hwnd).
274
275 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
276
277         * ContainerControl.cs: reversed Contains check from
278         ActiveControl due to hanging problems. This fix
279         partly regresses #79667 (button does not have
280         initial focus), so this might be a symptom for 
281         a larger parenting problem (set_ActiveControl
282         is being called but the child control does
283         not have the parent set yet?)   
284         
285 2006-10-31  Mike Kestner  <mkestner@novell.com>
286
287         * MenuAPI.cs : fix keynav when menu is click activated.
288
289 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
290
291         * ToolStrip*: Version 0.2.
292
293         * MenuStrip.cs: Version 0.1.
294
295         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
296
297 2006-10-30  Chris Toshok  <toshok@ximian.com>
298
299         [ fixes the oversized notify icon issue in bug #79745 ]
300         
301         * NotifyIcon.cs: scale the icon down to the size we're given by
302         the XplatUI layer (this would be faster if we did it once instead
303         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
304         since it's never invoked.
305
306         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
307         pixels high by default, so let's hardcode our systray icon to that
308         size.  The SYSTEM_TRAY protocol should really have a way for
309         client apps to query for the correct icon size.. but oh well.  A
310         couple of patches to deal with the screwy client_window ==
311         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
312         instance, and also make sure we don't XSelectInput twice).
313
314 2006-10-30  Chris Toshok  <toshok@ximian.com>
315
316         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
317         recreating forms.  Control recreation is the bane of my existence.
318         Fix it in a way that keeps everyone happy.
319
320 2006-10-30  Chris Toshok  <toshok@ximian.com>
321
322         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
323         just non-CHILD ones.  otherwise sometimes scrollbars end up with
324         client_windows not being resized to the proper size (ReportBuilder
325         shows this extremely well).
326
327 2006-10-30  Chris Toshok  <toshok@ximian.com>
328
329         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
330         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
331         showing up in the gnome taskbar.  Fixes bug #79790.
332
333 2006-10-30  Chris Toshok  <toshok@ximian.com>
334
335         * ApplicationContext.cs: guard against a NRE.
336
337         * Application.cs: null out the old MainForm for the context, so we
338         don't try to use it again once it's disposed.  Fixes bug #79783.
339
340 2006-10-30  Chris Toshok  <toshok@ximian.com>
341
342         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
343         BindingContext, set the data source directly, otherwise do the
344         lazy approach - the actual ListManager will be created when we get
345         a BindingContext. Fixes bug #79700.
346
347 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
348
349         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
350           XplatUIX11.cs: Remove old 2 parameter SetVisible.
351
352         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
353
354 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
355
356         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
357         of SetVisible that allows a window to be shown, but not activated.
358         This is needed on Windows for MenuStrip, and can probably be used
359         with MainMenu and ComboBox to fix the focus stealing issues on
360         Windows.
361
362         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
363
364 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
365
366         * PictureBox.cs: Fix the output of the ToString method.
367
368 2006-10-29  Chris Toshok  <toshok@ximian.com>
369
370         * Control.cs (get_TopLevelControl): fix bug #79781.
371
372 2006-10-29  Chris Toshok  <toshok@ximian.com>
373
374         * ListControl.cs (set_DataSource): throw Exception here, not
375         ArgumentException, to match MS behavior.
376
377 2006-10-29  Chris Toshok  <toshok@ximian.com>
378
379         * Form.cs: remove the try-catch's around calls to GetWindowState.
380         We can just check the return value.
381
382         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
383         Instead return -1.
384
385         * XplatUI.cs: Add note about additional return value for
386         GetWindowState.
387
388 2006-10-29  Chris Toshok  <toshok@ximian.com>
389
390         * Control.cs (CreateHandle): when we create our handle, we also
391         create the handles of our child controls.  Fixes one of the
392         Control unit tests (CH11).
393
394 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
395
396         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
397
398 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
399
400         * ThemeClearlooks.cs: A little speedup.
401
402 2006-10-27  Chris Toshok  <toshok@ximian.com>
403
404         * Control.cs: implement Control.FromChildHandle in a way that
405         matches the docs (and fixes the failed test.)
406
407 2006-10-27  Chris Toshok  <toshok@ximian.com>
408
409         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
410         comments).
411
412         * DataGrid.cs: implement ResetForeColor such that the tests
413         succeed.
414         
415 2006-10-27  Chris Toshok  <toshok@ximian.com>
416
417         * ToolBarButton.cs: setting text/tooltiptext to null results in it
418         being set to "".  Fixes bug #79759.
419
420 2006-10-27  Jackson Harper  <jackson@ximian.com>
421
422         * TextControl.cs: We need to clear the entire selection area when
423         setting the start, otherwise multiline selections are still
424         visible.
425
426 2006-10-26  Chris Toshok  <toshok@ximian.com>
427
428         * PropertyGridView.cs: 
429
430         - ifdef all the code specific to the double
431         buffer case, and provide some alternatives in the non-doublebuffer
432         code, which makes heavy use of XplatUI.ScrollWindow to move things
433         around without having to invalidate (and cause flicker).  There
434         are still some drawing problems in the non-doublebuffered case, so
435         DOUBLEBUFFER is defined by default.
436
437         - Fix the way dropdowns are handled.  now we explicitly watch for
438         the events which might cause the dropdown to close, and break out
439         of the nested event loop there.  This gets rid of all Capture
440         code, at the expense of the Msg special casing.  Seems to work,
441         though, and fixes bug #79743.
442
443 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
444         * Control.cs: SetIsRecreating now recreates implicitly added
445         child controls as well. Finally fixes #79629. The flag passed to 
446         SetIsRecreating has also been removed since it wasn't used.
447         
448 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
449
450         * PageSetupDialog.cs: Clean some code, fix some bits, 
451         add some checks, and add a printer sub-dialog.
452
453 2006-10-26  Chris Toshok  <toshok@ximian.com>
454
455         * PropertyGrid.cs: make set_SelectedObject call
456         set_SelectedObjects, and move the duplicate logic to the
457         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
458
459         * PropertyGridView.cs: hide the textbox when we get a
460         SelectedObjectsChanged event.
461
462         Fixes bug #79748.
463
464 2006-10-26  Chris Toshok  <toshok@ximian.com>
465
466         * PropertyGridView.cs: deal with the type converter not supporting
467         GetStandardValues() or GetStandardValues() returning null, which
468         is does in the default case.  Fixes #79742.
469
470 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
471
472         * CheckedListBox.cs: nunit no longer crashes when selecting 
473         Project/Edit menu option
474         
475 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
476
477         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
478         is no menu selected. fixes #79739
479
480 2006-10-25  Chris Toshok  <toshok@ximian.com>
481
482         * PropertyGridView.cs: factor out the splitter invalidation code
483         into the SplitterPercent setter, and for kicks implement the
484         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
485         amount in either direction.
486
487 2006-10-25  Chris Toshok  <toshok@ximian.com>
488
489         * PropertyGridView.cs: do some cleanup of the brush used to draw
490         text - read only fields should be grayed out.  not sure how to do
491         this with the textbox, though.  but the textbox's should also be
492         readonly now at least.  Also, hide/show the textbox when resizing
493         the control.
494         
495         * CursorConverter.cs: use System.Reflection when getting the
496         properties of Cursors, as TypeDescriptor.GetProperties isn't
497         returning static properties.
498
499 2006-10-25  Chris Toshok  <toshok@ximian.com>
500
501         * PropertyGridView.cs: factor out the up/down handling, and reuse
502         it for page up/down.  also add End/Home support.
503
504 2006-10-25  Chris Toshok  <toshok@ximian.com>
505
506         * PropertyGridView.cs:
507
508         - ensure the selected grid item is visible in the scrolled area,
509         fixes bug #79572.
510
511         - fix Keys.Down handling when you're on the last item in the
512         propertygrid.
513
514 2006-10-25  Mike Kestner  <mkestner@novell.com>
515
516         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
517         clicks too.  Fixes #79725.
518
519 2006-10-24  Chris Toshok  <toshok@ximian.com>
520
521         * PropertyGrid.cs: use property.Converter instead of
522         TypeDescriptor.GetConverter(property.PropertyType), so we catch
523         TypeConverters declared on the property as well as on the
524         PropertyType.  Fixes bug #79678.
525
526 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
527
528         * MimeIcon.cs, Mime.cs:
529           Fallback to the default platform handler if no shared mime info
530           stuff exists (fixes #79693).
531
532 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
533         * ContainerControl.cs: Incorrect contains check in ActiveControl 
534         from previous fix (duh).
535
536 2006-10-20  Chris Toshok  <toshok@ximian.com>
537
538         * PropertyGridView.cs: the dropdown should be MIN(number of items
539         in list, 15).  Fixes #79551.
540
541 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
542         Fixes #79384, #79394, #79652, #79667
543         * Application.cs: 
544         
545         - Modal windows are now destroyed in the proper order for windows
546         
547         * ContainerControl.cs:
548         
549         - ActiveControl setter has more conditions on when to return:
550                 - if we're reselecting the active control, but it actually
551                 didn't have focus (window hidden or some such), it runs
552                 - if the active control being selected doesn't actually 
553                 exist in the container, it returns
554         
555         * Form.cs
556         
557         - The ShowDialog now gets the current form as the owner when
558         invoking without parameters, and correctly activates the owner 
559         when returning
560         
561         * MessageBox.cs
562         
563         - MessageBox now catches the Escape key to exit
564
565 2006-10-20  Chris Toshok  <toshok@ximian.com>
566
567         * PropertyGridView.cs: fix a number of issues (bug #78565, and
568         most of bug #79676):
569
570         - you can navigate around the property grid with the arrow keys.
571
572         - the dropdown is sized properly when the pg has a vertical
573         scrollbar.
574
575         - fix the indentation for subentries, and properly select the
576         entire label rect.
577
578         - fix the gray bar's drawing (only draw it to the last element,
579         not for the height of the control.  Also make sure we draw that
580         last horizontal grid line.
581
582         - use the same mechanism the datagrid uses wrt the editing textbox
583         when scrolling/resizing/etc.  Namely, we hide it first, do the
584         operation, then show it again (if it's still visible).
585         
586         - aggressively remove a lot of unnecessary refreshes (and also
587         calls to Invalidate(). call more limited variants, and only redraw
588         what we need.)
589         
590         * PropertyGrid.cs:
591
592         - when we're populating the merged collection, fill in the UI
593         parent with either the passed in item, or the category item we
594         create.
595
596         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
597
598         * GridItem.cs: drop some fully qualified names.
599         
600         * GridEntry.cs: add a "UIParent", which is basically the parent
601         treenode.
602
603         * GridItemCollection.cs: add an IndexOf method.
604
605 2006-10-20  Mike Kestner  <mkestner@novell.com>
606
607         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
608         a working win32 NC invalidation mechanism, we can't invalidate
609         menus.  [Fixes #79705]
610
611 2006-10-20  Mike Kestner  <mkestner@novell.com>
612
613         * ListBox.cs : don't update the VScrollbar if the list is empty,
614         just hide it.  [Fixes #79692]
615
616 2006-10-20  Jackson Harper  <jackson@ximian.com>
617
618         * RichTextBox.cs: Handle some special chars better, and don't skip
619         the entire group when we encounter a special char that we don't
620         handle correctly.
621
622 2006-10-18  Chris Toshok  <toshok@ximian.com>
623
624         * PropertyGridView.cs: address a number of issues from bug #79676,
625         mostly of the cosmetic variety.
626
627         - The highlight rectangle for indented items not extends all the
628         way to the left.
629
630         - Indented items aren't indented so much.
631
632         - the dropdown is properly sized width-wise if the pg has a
633         vertical scrollbar.
634
635 2006-10-18  Chris Toshok  <toshok@ximian.com>
636
637         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
638         systray stuff is rather convoluted to begin with.
639
640         systray icons are a single window for some reason (that I haven't
641         figured out yet), and for them, client_window == whole_window.
642         Given the way the tests are structured elsewhere to determine
643         which paints are pending (client vs. nc), that situation will
644         always yield PAINT, not NCPAINT.  So, if we have a pending
645         nc_expose and no pending expose, remove the hwnd from the paint
646         queue, and also set nc_expose_pending to false, to keep us from
647         blocking further expose's adding the hwnd to the paint queue.
648
649         phew.  like i said, a rather convoluted change.  Fixes the
650         notifyicon repaint issues in bug #79645.
651
652 2006-10-18  Chris Toshok  <toshok@ximian.com>
653
654         * Form.cs: when getting the backcolor of the form, don't get
655         base.BackColor, as this allows parents to influence the background
656         color.  This breaks mdi forms.  Instead, if the background_color
657         is empty, return the default.
658
659 2006-10-18  Chris Toshok  <toshok@ximian.com>
660
661         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
662         to being private instead of internal static.
663
664         * Control.cs: remove all the stupid ParentWaitingOnRecreation
665         crap, it wasn't working for more deeply nested controls anyway,
666         and we already have the is_recreating flag - use that instead.
667         Before calling DestroyHandle in RecreateHandle, recurse through
668         the control tree setting it to true.  this returns the recreate
669         code to much of its original simplicity, while now guaranteeing we
670         actually recreate everything we're supposed to.  This change gets
671         fyireporting actually showing mdi children.
672
673 2006-10-17  Chris Toshok  <toshok@ximian.com>
674
675         * Form.cs: remove some debug spew, and collapse some duplicate
676         code at the end of SetClientSizeCore.
677
678         * XplatUIX11.cs: 
679         - add some more debug spew here too wrt Destroy handling.
680         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
681         in Control's handling of WM_DESTROY.
682         - Remove the handling of zombie window DestroyNotifies from the
683         event loop - we don't need it.  Now the only DestroyNotifies we
684         actually handle are ones generated by X.
685         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
686         match gtk's (functioning) handling of this. This keep metacity
687         from leaving droppings in the form of wm borders with no window
688         contents all over the place.
689
690         * Control.cs:
691         - add a bunch of debug spew wrt control recreation.
692         - fix a bug where we weren't tracking Visible properly on
693         recreated hwnds.
694         - fixed the WM_PAINT double buffer handling to support re-entrant
695         calls (yes, i know it's gross, but it's happening to us).
696
697 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
698         * ThemeWin32Classic.cs: changed drawing of selected days
699         to make them look better.
700
701 2006-10-16  Chris Toshok  <toshok@ximian.com>
702
703         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
704         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
705
706         * XplatUIX11.cs: move away from using hwnd.client_dc and
707         hwnd.non_client_dc and on to a stack of dc's (and in window's
708         case, PAINTSTRUCT's), so we can deal with nested Paint calls
709         without puking or not disposing of Graphics objects.
710
711         * XplatUIOSX.cs: same.
712
713         * XplatUIWin32.cs: same.
714
715 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
716
717         * FileDialog.cs: Don't call on_directory_changed inside
718           OnSelectedIndexChanged (it changes the SelectedIndex too).
719           Instead move it to OnSelectionChangeCommitted.
720
721 2006-10-13  Chris Toshok  <toshok@ximian.com>
722
723         * XplatUIX11.cs: more Destroy work.  the current code does the
724         following things, in order:
725
726         1. Enumerates all handles of all controls at or below the one
727         being destroyed, in pre-order.  As it is doing this, it marks the
728         handles as zombie and clears all references to them.
729         
730         2. calls XDestroyWindow on the window passed in.
731
732         3. SendMessage's WM_DESTROY to all he handles in the accumulated
733         list.
734
735 2006-10-13  Chris Toshok  <toshok@ximian.com>
736
737         * XplatUIX11.cs: set hwnd.zombie to true before calling
738         SendMessage (WM_DESTROY).  this keeps us from marking the new
739         window a zombie, and also keeps us from calling sendmessage at
740         all.
741
742 2006-10-13  Jackson Harper  <jackson@ximian.com>
743
744         * TextControl.cs: Do not show the caret and selection at the same
745         time.  Reduces ugliness by 35%.
746
747 2006-10-13  Chris Toshok  <toshok@ximian.com>
748
749         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
750         zombie after we do the recursive call, so we actually do call
751         SendMessage on the children controls.
752         (GetMessage): if we find a pending paint event for a zombie hwnd,
753         remove the hwnd from the paint queue, or else it will always be
754         there (and we'll effectively loop infinitely)
755
756 2006-10-13  Mike Kestner  <mkestner@novell.com>
757
758         * MenuItem.cs : add Selected format under keynav too.
759         Fixes #79528.
760
761 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
762
763         * PropertyGrid.cs: Fixed some NRE's and small difference between our
764         implementation and that of MS.
765
766 2006-10-13  Chris Toshok  <toshok@ximian.com>
767
768         * Control.cs (OnInvalidated) only futz with the invalid_region if
769         the control is double buffered.  this fixes the apparent hang in
770         the ListView unit tests.  Someone needs to make the
771         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
772
773 2006-10-13  Chris Toshok  <toshok@ximian.com>
774
775         * PropertyGridView.cs:
776
777         - do a little refactoring so that only one place calls
778         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
779         else call that.  Also make it Refresh, since there are redraw bugs
780         otherwise (we should take a look at that...)
781
782         - do a little more refactoring work to share the body of code
783         involved with the drop down.  it was duplicated in the code
784         dealing with the listbox handling and in the code dealing with the
785         UITypeEditors.
786
787         - add a Capture to the dropdown form's control once it's
788         displayed, and add a MouseDown handler that checks to make sure
789         the position is inside the control.  If it's not, close the
790         dropdown.  This fixes #78190.
791
792         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
793         if the value is different than the initial value.
794         
795 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
796
797         * Control.cs: see #78650
798         - Fixed GetNextControl for several cases:
799                 - Changed FindFlatForward to return 
800                 correct sibling control when more than one
801                 control has same TabIndex as the currently 
802                 focused one.
803                 - Changed FindFlatBackward to loop children
804                 from last to first and apply same logic as in
805                 FindFlatForward
806                 - Changed FindControlForward to search for
807                 children when control is not a container
808                 but has children, or search for siblings if
809                 control is a container...
810                 - Changed FindControlBackward   to continue
811                 searching for child controls when hitting 
812                 Panel-like parents
813                 
814         - Fixed Focus method to update ActiveControl
815         (FocusTest.FocusSetsActive failure)
816         
817         * TabControl.cs:
818         - Focus rectangle now refreshes when gaining
819         or losing focus
820         - Removed grab for Tab key on IsInputKey that 
821         was keeping tab navigation from working (#78650)
822
823 2006-10-13  Chris Toshok  <toshok@ximian.com>
824
825         * PropertyGridView.cs:
826         - Rewrite SetPropertyValue to loop over SelectedGridItem's
827         SelectedObjects.
828
829         - Deal with GridItem.Value == null a few places.
830
831         * PropertyGrid.cs: 
832         - replace the PopulateGridItemCollection with a pair of methods
833         which compute the intersection of all the properties in the
834         SelectedObjects array.  Fixes #79615.
835
836         - Throw ArgumentException from set_SelectedObjects if there's a
837         null in the array.
838
839         - Add GetTarget method which can be used to traverse up the
840         GridItem.Parent chain.  It depends on the assumption that
841         selected_objects for different GridEntries are always in the same
842         order (a safe assumption).  Use this method and loop over all the
843         selected objects in the entry when calling RemoveValueChanged and
844         AddValueChanged.
845         
846         * GridEntry.cs: Make this handle multiple selected objects.
847         .Value returns null if not all the selected objects share the same
848         value.
849
850 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
851         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
852           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
853           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
854           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
855           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
856         add additional functionality.
857
858 2006-10-12  Mike Kestner  <mkestner@novell.com>
859
860         * ErrorProvider.cs : new ToolTipWindow ctor sig.
861         * HelpProvider.cs : new ToolTipWindow ctor sig.
862         * ToolTip.cs : remove ToolTip param from Window sig since it is
863         not used.
864         * ToolBar.cs : add tooltip support.  Fixes #79565.
865
866 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
867
868         * ComboBox.cs: move the events in set_SelectedIndex to 
869         after the call to HighlightIndex in order to avoid 
870         possible recursion and subsequent problems with the call
871         to HighlightIndex and include a range check in 
872         set_HighlightIndex. Fixes #79588
873         
874 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
875
876         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
877         to ui thread's settings instead of sunday. 
878         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
879
880 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
881
882         * DateTimePicker.cs
883         * MonthCalendar.cs
884         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
885         and implement missing functionality (selecting different parts 
886         of the date and edit them individually with the keyboard).
887         
888 2006-10-11  Chris Toshok  <toshok@ximian.com>
889
890         * Control.cs (OnInvalidated): fix NRE relating to last change.
891
892 2006-10-11  Chris Toshok  <toshok@ximian.com>
893
894         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
895         atoms in _NET_WM_STATE here if the window is maximized.  We need
896         to do this because we're *replacing* the existing _NET_WM_STATE
897         property, so those atoms will be lost otherwise, and any further
898         call to GetWindowState will return Normal for a window which is
899         actually maximized.  Fixes #79338.
900
901 2006-10-11  Jackson Harper  <jackson@ximian.com>
902
903         * TextControl.cs: Special case for setting selection end to
904         selection start, we basically kill the anchor.
905         - some todo comments.
906
907 2006-10-11  Chris Toshok  <toshok@ximian.com>
908
909         * Control.cs: switch to using an "invalid_region" to track which
910         parts of the image buffer need updating.  This is more code than
911         the simple fix from r66532.  That version just attempted to always
912         fill the entire buffer on redraw, which turns out to be
913         inefficient when invalidating small rectangles.  This version
914         simply adds the invalid rectangle to the invalid region.  When we
915         get any WM_PAINT message we see if it can be filled using the
916         image buffer, and if it can't (if the paint event's clip rectangle
917         is visible in the invalid region) we first fill the image buffer.
918         So, the image buffer is still a cache, we just fill it lazily.
919
920         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
921         need it any longer.
922
923 2006-10-11  Chris Toshok  <toshok@ximian.com>
924
925         * XplatUIX11.cs (SetWindowPos): we need to update both position as
926         well as size after calling XMoveResizeWindow.  This keeps us from
927         ignoring future SetWindowPos calls.  Fixes the disappearing
928         DateTimePicker in the ToolBarDockExample from bug #72499.
929
930 2006-10-11  Chris Toshok  <toshok@ximian.com>
931
932         * TextBoxBase.cs: reorder things a bit when it comes to
933         resizing-causing-recalculation.  we were recalculating the
934         document when our position was changed, which shouldn't happen.
935         We only care about size changes.  Clear up some more redundant
936         recalculation calls while I'm at it.  This makes the toolbar dock
937         example snappy when you're just dragging toolbars around (since it
938         causes a relayout whenever you move one.)
939
940 2006-10-11  Chris Toshok  <toshok@ximian.com>
941
942         * ToolBarButton.cs (get_Rectangle): this only returns
943         Rectangle.Empty if Visible == false, or Parent == null.
944         Parent.Visible doesn't matter.
945
946 2006-10-10  Chris Toshok  <toshok@ximian.com>
947
948         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
949         by .net 1.1, so switch to an internal method instead.
950
951 2006-10-10  Chris Toshok  <toshok@ximian.com>
952
953         * Control.cs (WM_PAINT): when a control is double buffered we draw
954         initially to the ImageBuffer and then copy from there.  But when a
955         parent control which has child controls is double buffered, the
956         initial drawing doesn't encompass the entire ClientRectangle of
957         the parent control, so we end up with uninitialized bits (this is
958         easily seen by dragging the top toolbar in
959         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
960         manually set the ClipRectangle of the paint_event (only the one we
961         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
962         of the nastiness in bug #72499.
963
964         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
965         which we use in Control.cs's WM_PAINT handling.
966
967 2006-10-10  Jackson Harper  <jackson@ximian.com>
968
969         * TextBoxBase.cs: Finish off the autoscrolling stuff.
970
971 2006-10-10  Chris Toshok  <toshok@ximian.com>
972
973         * Cursor.cs: Apply a slightly different patch to the one suggested
974         in #79609.
975
976 2006-10-10  Jackson Harper  <jackson@ximian.com>
977
978         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
979         not the parent form.
980         * TextControl.cs: use difference in old line count vs new count to
981         calculate how many lines were added, this takes into account soft
982         line breaks properly.
983
984 2006-10-10  Chris Toshok  <toshok@ximian.com>
985
986         * LinkLabel.cs: don't call MeasureCharacterRanges against a
987         rectangle located at 0,0 and the size of the text.  Use
988         ClientRectangle instead.  This fixes rendering of non-left aligned
989         link labels.
990
991 2006-10-10  Jackson Harper  <jackson@ximian.com>
992
993         * TextBoxBase.cs: When we set the selection start position the
994         caret.
995         * TextControl.cs: Need to update the caret when we decrement it to
996         zero.
997         - Make sure that the selection_visible flag gets reset to false if
998         the selection isn't visible.  Before this you could get it set to
999         visible by changing the selection start, then changing the end to
1000         equal the start.
1001
1002 2006-10-09  Jackson Harper  <jackson@ximian.com>
1003
1004         * TreeView.cs: Don't update scrollbars when we aren't visible.
1005         * TreeNodeCollection.cs: Only need to update scrollbars if being
1006         added to an expanded visible node or the root node.
1007
1008 2006-10-09  Chris Toshok  <toshok@ximian.com>
1009
1010         * XplatUIX11.cs (SendMessage): fix NRE.
1011
1012 2006-10-09  Jackson Harper  <jackson@ximian.com>
1013
1014         * TextBoxBase.cs: Implement horizontal autoscrolling.
1015         * TextControl.cs: Add a movement types that allows moving forward
1016         and backwards without wrapping.
1017
1018 2006-10-09  Mike Kestner  <mkestner@novell.com>
1019
1020         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
1021         with focus "expansion" of labels.  Fixes #79532 and then some.
1022         * ThemeWin32Classic.cs : add LineLimit to ListView label format
1023         when wrapping.
1024
1025 2006-10-09  Jackson Harper  <jackson@ximian.com>
1026
1027         * TextBoxBase.cs: Set the default max values to MaxValue since
1028         we use the scrollbar for autoscrolling and the default value is
1029         100.  If we don't do this the caret won't keep up with typing
1030         after about 18 characters.
1031         * TextControl.cs: Make sure the selection is offset by the
1032         viewport x.  This fixes selection when using auto scrolling.
1033
1034 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
1035         
1036         * Form.cs: The active control should be selected after the 
1037         OnLoad so that any child control initialization that affects
1038         the selection is done. Fixes #79406
1039
1040 2006-10-06  Chris Toshok  <toshok@ximian.com>
1041
1042         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
1043         to have no evil effects.
1044
1045         - Stop selecting StructureNotifyMask on non-toplevel windows.
1046
1047           The only way children should be resized is by using the SWF api,
1048           and we already send WM_WINDOWPOSCHANGED messages in those cases.
1049           Toplevel windows can be interacted with via the window manager,
1050           and so we keep the input mask there.
1051
1052           The other event StructureNotifyMask gives us (that we care
1053           about) is DestroyNotify.  The code is already structured such
1054           that it assumes we won't be getting a DestroyNotify event for
1055           the window we pass to XDestroyWindow (which is what
1056           StructureNotifyMask is supposed to guarantee.)  So, that code
1057           shouldn't be affected by this either.
1058
1059         - Stop selecting VisibilityChangeMask altogether.
1060
1061           We weren't doing anything with the resulting events anyway.
1062         
1063         This vastly reduces the number of X requests and events we see
1064         when resizing/laying out a large ui.
1065
1066 2006-10-06  Chris Toshok  <toshok@ximian.com>
1067
1068         * ScrollableControl.cs (DisplayRectangle): we need to take into
1069         account the DockPadding regardless of whether or not auto_scroll
1070         == true.  rework this slightly to this effect, and fix bug #79606,
1071         and part of #72499 (you can now see the drag handles and drag
1072         toolbars around).
1073
1074 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
1075
1076         * ListViewItem.cs: Collections of selected and checked items are now
1077         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
1078         we mark the collection "dirty".
1079         * ListView.cs: Marked collections readonly. Modified UpdateSelection
1080         to only clear SelectedItems when a new item is selected and MultiSelect
1081         is enabled. CheckedItems and SelectedItems now subscribe to Changed
1082         event of ListViewItemCollection, and mark its list dirty whenever
1083         that event is fire. This allows us to return selected/checked items 
1084         in the same order as they are in the Items collection. This matches
1085         the MS behavior.
1086
1087 2006-10-06  Chris Toshok  <toshok@ximian.com>
1088
1089         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
1090         right mouse clicks.  Fixes bug #79593.
1091
1092 2006-10-06  Chris Toshok  <toshok@ximian.com>
1093
1094         * Splitter.cs: doh, fix splitters that don't want to cancel the
1095         movement when you drag them.  Also, impose the limits on the
1096         values we send to the SplitterMovingEvent.  Fixes #79598.
1097
1098 2006-10-06  Jackson Harper  <jackson@ximian.com>
1099
1100         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
1101         since we use this for auto scrolling also.
1102
1103 2006-10-05  Chris Toshok  <toshok@ximian.com>
1104
1105         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
1106         beginning to think that most datagrid column types don't need this
1107         method.  Fixes bug #79392.
1108
1109 2006-10-05  Chris Toshok  <toshok@ximian.com>
1110
1111         * DataGrid.cs: move back to a more lazy scheme for creating the
1112         CurrencyManager, so we aren't updating it every time you set
1113         either DataSource or DataMember.  Also, don't call
1114         RecreateDataGridRows if the currency manager hasn't changed.
1115
1116 2006-10-05  Chris Toshok  <toshok@ximian.com>
1117
1118         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
1119         emitted, SelectedIndex should already be updated.  Fixes bug
1120         #78929.
1121
1122 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
1123
1124         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
1125           ToolStripTextBox.cs: Initial commit.
1126         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
1127
1128 2006-10-05  Jackson Harper  <jackson@ximian.com>
1129
1130         * TabControl.cs: We need to invalidate the tab control area when
1131         new ones are added (duh).
1132
1133 2006-10-03  Chris Toshok  <toshok@ximian.com>
1134
1135         * Form.cs (ProcessDialogKey): if the focused control is in this
1136         form and is a button, call its PerformClick method here.  Fixes
1137         #79534.
1138
1139 2006-10-04  Jackson Harper  <jackson@ximian.com>
1140
1141         * TabPage.cs: Ignore setting of Visible, and add an internal
1142         method for setting the controls visibility.  TabPage's Visible
1143         property is a little strange on MS, this seems to make us
1144         compatible, and fixes cases where people set all the tab pages to
1145         visible.
1146         * TabControl.cs: Use the new internal setting on tab pages
1147         visibility.
1148
1149 2006-10-03  Mike Kestner  <mkestner@novell.com>
1150
1151         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
1152
1153 2006-10-03  Mike Kestner  <mkestner@novell.com>
1154
1155         * ListView.cs : use is_visible instead of Visible to check if 
1156         scrollbars should be placed/sized.  Also some max_wrap_width
1157         love for LargeIcon view.  [Fixes #79533]
1158
1159 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
1160
1161         * TextControl.cs :
1162           Make set_TextAlign() do actually update the align. Fixed #78403.
1163
1164 2006-10-03  Chris Toshok  <toshok@ximian.com>
1165
1166         * DataGrid.cs: fix a crash when switching datasources if the
1167         vertical scrollbar is at someplace other than Value = 0.  Also,
1168         reduce the number of recalculation passes we do in SetDataSource
1169         from 2 to 1.
1170
1171 2006-10-03  Jackson Harper  <jackson@ximian.com>
1172
1173         * TextBoxBase.cs: Move the if value the same bail check up, we
1174         don't want to empty the document if it is already empty, this
1175         seems to severly mess up the caret.  TODO: I should probably fix
1176         the empty statement to update teh caret somehow.
1177
1178 2006-10-03  Chris Toshok  <toshok@ximian.com>
1179
1180         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
1181         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
1182         reflection, an internal row type, properties on said type, etc.)
1183         will work with our datagrid.  Fixes #79531.
1184
1185 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
1186
1187         * FileDialog.cs: Don't crash if a path is not accessible
1188           (System.UnauthorizedAccessException). Fixes #79569.
1189         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
1190           a ':' too. Return unknown icon for those paths/files.
1191
1192 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
1193
1194         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
1195         GetContainerControl returns null.
1196
1197 2006-10-02  Chris Toshok  <toshok@ximian.com>
1198
1199         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
1200         call to XGetWindowAttributes instead of "handle".  fixes an X
1201         error using notifyicon after the NotifyIconWindow to Form base
1202         class switch.
1203
1204 2006-10-02  Chris Toshok  <toshok@ximian.com>
1205
1206         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
1207         server grab and looping we need to do to get down to the most
1208         deeply nested child window.
1209         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
1210         QueryPointer again after the WarpPointer so we can generate a
1211         proper (fake) MotionNotify event to be enqueued in the destination
1212         window's queue.
1213         (GetCursorPos): call QueryPointer.
1214
1215         Fixes #79556.
1216
1217 2006-10-02  Jackson Harper  <jackson@ximian.com>
1218
1219         * NotifyIcon.cs: Derive the notify icon from a form, so things
1220         like FindForm work on it.
1221         - Swallow the WM_CONTEXTMENU message, since that is generated on
1222         mouse down, and context menu is a mouse up kinda guy.  I believe
1223         the correct fix here is probably to make the notify icon entirely
1224         NC area, but this seems to work fine for anyone not manipulating
1225         WndProc.
1226
1227 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
1228
1229         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
1230           ToolStripItemCollection.cs, ToolStripLabel.cs,
1231           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
1232           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
1233           Initial implementation.
1234         * TextRenderer.cs: Provide padding to MeasureText.
1235
1236 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
1237
1238         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
1239         of ButtonBaseAccessibleObject. Fix bug #79552.
1240
1241 2006-10-02  Jackson Harper  <jackson@ximian.com>
1242
1243         * MdiWindowManager.cs: When maximizing use the containers client
1244         rect, not it's bounds, so nc area is accounted correctly.
1245         - Use the parent form's size for the menu position, since the
1246         client isn't always the full form size.
1247
1248 2006-10-01  Chris Toshok  <toshok@ximian.com>
1249
1250         * ScrollableControl.cs: make sure neither right_edge or
1251         bottom_edge are < 0, since they're used as LargeChange for the
1252         horiz/vert scrollbars respectively.  Fixes #79539.
1253
1254 2006-10-01  Chris Toshok  <toshok@ximian.com>
1255
1256         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
1257         the xplatuix11 code can cause us to destroy/recreate our handle.
1258
1259         * XplatUIX11.cs
1260         (SystrayAdd):
1261         - this code can be invoked many times for the same Hwnd.  Make
1262           sure we only destroy the client window once (the first time this
1263           method is called).  This fixes bug #79544.
1264         - Remove the call to the improperly bound XSync.  why we had two
1265           bindings to this, I will never know, but this call resulted in
1266           events being discarded from the queue(!).
1267         - correct a misunderstanding of _XEMBED_INFO - the second atom is
1268           not our current state but the state we wish to be in.  So, 0 if
1269           we don't want to be mapped.  Change it to 1.
1270         (SystrayRemove): The XEMBED spec makes mention of the fact that
1271         gtk doesn't support the reparent of client windows away from the
1272         embedder.  Looking at gtksocket-x11.c seems to agree with this.
1273         The only avenue we have for removing systray icons is to destroy
1274         them.  We don't want the handle to go away for good, though, so
1275         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
1276         #79545.
1277         
1278 2006-10-01  Chris Toshok  <toshok@ximian.com>
1279
1280         * Form.cs (WndProc): inline the native_enabled variable usage into
1281         the cases in which it's used.  Fixes #79536.
1282
1283 2006-09-29  Mike Kestner  <mkestner@novell.com>
1284
1285         * ListView.cs : toggle the selection state for ctrl clicks in 
1286         multiselect mode. [Fixes #79417]
1287
1288 2006-09-29  Mike Kestner  <mkestner@novell.com>
1289
1290         * ListView.cs : kill CanMultiSelect and refactor the selection
1291         code to support multiselection in the absence of mod keys. Steal
1292         arrow/home/end keys by overriding InternalPreProcessMessage to
1293         restore regressed keynav behavior.
1294         [Fixes #79416]
1295
1296 2006-09-29  Jackson Harper  <jackson@ximian.com>
1297
1298         * MdiClient.cs: Repaint the titlebars when the active window is
1299         changed.
1300
1301 2006-09-29  Chris Toshok  <toshok@ximian.com>
1302
1303         * Application.cs: when entering a runloop with a modal, make sure
1304         the hwnd is enabled.  Fixes #79480.
1305
1306 2006-09-29  Chris Toshok  <toshok@ximian.com>
1307
1308         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
1309         when ListManager.CanAddRows == false, bump us back one.
1310
1311         * DataGridColumnStyle.cs (ParentReadOnly): remove the
1312         listmanager.CanAddRows check.  This makes ArrayLists uneditable
1313         using a datagrid, which is not right.
1314         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
1315         is an IEditable, but call property_descriptor.SetValue regardless.
1316         fixes #79435.
1317
1318 2006-09-29  Chris Toshok  <toshok@ximian.com>
1319
1320         * DataGridBoolColumn.cs: we need to test equality in the face of
1321         possible null values (as is the case with the default NullValue).
1322         This patch keeps us from crashing in that case.
1323
1324 2006-09-29  Jackson Harper  <jackson@ximian.com>
1325
1326         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
1327         here, since it will get called for every node collection in the
1328         tree. This is now done in the treeview once the sorting is
1329         finished.
1330         * TreeView.cs: Recalculate the visible order, and update the
1331         scrollbars after sorting, set the top nope to the root so that the
1332         recalc actually works.
1333
1334 2006-09-29  Chris Toshok  <toshok@ximian.com>
1335
1336         * LinkLabel.cs: more handling of the default link collection in
1337         the face of LinkArea manipulation.  The default link collection
1338         contains 1 element (start=0,length=-1).  If the user sets LinkArea
1339         to anything and the links collection is the default, clear it.
1340         Then only add the link if its nonempty.  Fixes #79518.
1341
1342 2006-09-29  Chris Toshok  <toshok@ximian.com>
1343
1344         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
1345         piece correctly when we hit a '\n'.  Fixes #79517.
1346
1347 2006-09-29  Chris Toshok  <toshok@ximian.com>
1348
1349         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
1350         change the binding of gdk_init_check to take two IntPtr's, and
1351         pass IntPtr.Zero for both of them.  Fixes #79520.
1352
1353 2006-09-29  Mike Kestner  <mkestner@novell.com>
1354
1355         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
1356         [Fixes #78779]
1357
1358 2006-09-28  Jackson Harper  <jackson@ximian.com>
1359
1360         * XplatUIX11.cs: When translating NC messages make sure we go from
1361         whole window to screen, not client window to screen.
1362         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
1363         method doesn't exist
1364         - Skip over controls that aren't forms when arranging.
1365
1366 2006-09-28  Jackson Harper  <jackson@ximian.com>
1367
1368         * XplatUIWin32.cs: Clip the rect to the parent window.
1369         * XplatUIStructs.cs: Add clipping modes struct.
1370         * InternalWindowManager.cs: New private method that factors title
1371         bar heights in when calculating the pos of an NC mouse message.
1372         - Use SendMessage to force a paint when the form's size is changed
1373         instead of painting the decorations immediately.
1374         - Don't let the NC button click messages get to DefWndProc,
1375         because they will attempt to handle windowing themself, and this
1376         messes up z-order (it will put them in front of the scrollbars).
1377         * XplatUIX11.cs: Make sure that we don't reset window managers if
1378         we already have one (ie the window is an MDI window).
1379
1380 2006-09-28  Chris Toshok  <toshok@ximian.com>
1381
1382         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
1383         menu code really needs going over.
1384
1385 2006-09-27  Chris Toshok  <toshok@ximian.com>
1386
1387         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
1388         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
1389         window is maximizable.  So, we need to make sure that even if we
1390         clear the border/wm frame of those functions, they're still
1391         available (basically, we remove the decoration without removing
1392         the function).  Half the fix for #79338.
1393
1394 2006-09-27  Chris Toshok  <toshok@ximian.com>
1395
1396         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
1397         Fixes bug #79515.
1398
1399 2006-09-27  Chris Toshok  <toshok@ximian.com>
1400
1401         * Splitter.cs: reorder things a bit so that we don't actually
1402         draw/move the splitter until after calling OnSplitterMoving.  This
1403         lets users cancel/disallow the movement by explicitly setting
1404         event.SplitX/SplitY.  Fixes #79372.
1405
1406 2006-09-27  Jackson Harper  <jackson@ximian.com>
1407
1408         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
1409         because it is most likely on a window being destroyed, and that
1410         will give us an X11 error.
1411
1412 2006-09-27  Chris Toshok  <toshok@ximian.com>
1413
1414         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
1415         the dropdown button now toggles between showing and hiding the
1416         dropdown.  Also, get rid of dropdown_form_showing and just use
1417         dropdown_form.Visible.  We still don't do a grab, but I'll leave
1418         that part to someone who has handled Capture-fu before.
1419
1420 2006-09-27  Chris Toshok  <toshok@ximian.com>
1421
1422         * DataGrid.cs: return false if alt isn't pressed when '0' is
1423         pressed.  this keeps the '0' key from being swallowed, and fixes
1424         bug #79350.
1425
1426 2006-09-27  Chris Toshok  <toshok@ximian.com>
1427
1428         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
1429         Calling Refresh (in response to a scrollbar event) screws up the
1430         scrollbar painting.  Fixes bug #78923.
1431
1432 2006-09-27  Chris Toshok  <toshok@ximian.com>
1433
1434         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
1435         then insert into hashtable" blocks threadsafe.
1436
1437 2006-09-27  Chris Toshok  <toshok@ximian.com>
1438
1439         * MessageBox.cs (CreateParams): the styles should be |'ed with our
1440         baseclass's, since otherwise the
1441         ControlBox/MinimizeBox/MaximizeBox assignments above have no
1442         effect.  This gets the close button back in messageboxes.
1443
1444 2006-09-27  Chris Toshok  <toshok@ximian.com>
1445
1446         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
1447         flag, not just != 0.  this makes flags that are actually multiple
1448         bits (like WS_CAPTION) work.  fixes bug #79508.
1449
1450 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
1451
1452         * PageSetupDialog.cs: add support for getting and settings the 
1453         paper size, source and orientation.
1454
1455 2006-09-26  Chris Toshok  <toshok@ximian.com>
1456
1457         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
1458         and caption == "", we need to remove the resize handles as well as
1459         the title bar.
1460
1461         * Control.cs (set_Text): turns out that setting Text on a form
1462         should change the WM styles on the window, since if ControlBox ==
1463         false, the only way to get a window border is to have a non-""
1464         Text property.  check winforms/forms/text.cs for an example.  so,
1465         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
1466         update both window styles and title.  This fixes a lot of dialogs
1467         (including the preferences dialog in MonoCalendar.)
1468
1469 2006-09-26  Chris Toshok  <toshok@ximian.com>
1470
1471         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
1472         control isn't a Form), call Win32ShowWindow to hide the window,
1473         but don't update the control Visible property.  When we reparent
1474         back to a parent control, call SetVisible in order for the
1475         window's visibility to be reinstated.
1476
1477         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
1478         the FosterParent.
1479
1480         * Control.cs (ControlCollection.Remove): remove that value.Hide()
1481         call for good, since it breaks MonoCalendar (and other things I'm
1482         sure.) Also, set all_controls to null *after* the owner calls,
1483         which end up regenerating it.
1484         (ChangeParent): allow new_parent to be == null, passing
1485         IntPtr.Zero down to XplatUI.
1486
1487         this fixes #79294 the right way.
1488
1489 2006-09-26  Mike Kestner  <mkestner@novell.com>
1490
1491         * GridEntry.cs : internal SetParent method.
1492         * PropertyGrid.cs : attach to property changed on the proper
1493         target if we have a hierarchical grid with subobjects. Setup
1494         GridItem.Parent for hierarchical items.
1495         * PropertyGridView.cs : Set value on the correct target for
1496         hierarchical grids. [Fixes #78903]
1497
1498 2006-09-26  Chris Toshok  <toshok@ximian.com>
1499
1500         * Control.cs (ChildNeedsRecreating): this should return true if
1501         either we're being recreated and the child is in our list, or our
1502         parent is waiting for our recreation.
1503
1504 2006-09-26  Chris Toshok  <toshok@ximian.com>
1505
1506         * Control.cs (ControlCollection.Remove): reinstate the
1507         value.Hide() call as suggested in bug #79294.
1508
1509 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
1510
1511         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
1512         coordinates (versus a relative move).
1513
1514 2006-09-26  Chris Toshok  <toshok@ximian.com>
1515
1516         * Control.cs: rework child recreation a little bit.  It turns out
1517         that we race between the DestroyNotify the WM_DESTROY message.  If
1518         the parent gets its DestroyNotify before the child gets the
1519         WM_DESTROY message, the child ends up not recreating (since the
1520         parent finishes its recreation on DestroyNotify, and the child
1521         checks ParentIsRecreating.)
1522
1523         So, instead we store off a list of all the child controls which
1524         need to be recreated when the parent control starts to recreate
1525         itself.  Then, when child controls get their WM_DESTROY message we
1526         check to see if they're in the parent's pending recreation list,
1527         and if so, we recreate.  This removes all dependency on ordering
1528         from the code and fixes the initial MonoCalendar upgrade dialog.
1529         
1530 2006-09-26  Jackson Harper  <jackson@ximian.com>
1531
1532         * TextControl.cs: Use the Line to get the length of the line,
1533         since soft line breaks can change the end line.
1534
1535 2006-09-26  Chris Toshok  <toshok@ximian.com>
1536
1537         * Control.cs (ControlCollection.AddImplicit): don't add the
1538         control again if it's already in one of our lists.  This keeps us
1539         from adding controls over and over again for comboboxes when their
1540         handle gets recreated (as the combobox adds implicit controls in
1541         OnHandleCreated).  Fixes the X11 errors in bug #79480.
1542
1543 2006-09-26  Jackson Harper  <jackson@ximian.com>
1544
1545         * TextControl.cs: When deleting characters make sure that any
1546         orphaned zero lengthed tags get deleted.
1547         - Fix ToString for zero lengthed tags.
1548
1549 2006-09-25  Jackson Harper  <jackson@ximian.com>
1550
1551         * TextControl.cs: When getting a tag at the location there can be
1552         multiple tags at the same spot, these are 0-lengthed tags that
1553         appear when extra formatting has been stuck in a location.  We
1554         need to pull out the last of these 0 lengthed tags.
1555
1556 2006-09-25  Jackson Harper  <jackson@ximian.com>
1557
1558         * TextControl.cs: Fix print out in debug method.
1559         * TextBoxBase.cs: When text is set bail if we are setting to the
1560         previous value.
1561         
1562 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
1563
1564         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
1565           It is now possible to change the selected index in a FontXXXListBox
1566           with the up and down arrow keys from the FontXXXTextBoxes.
1567           Also, send the FontXXXTextBox mouse wheel event to the corresponding
1568           FontXXXListBoxes to match ms.
1569
1570 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
1571
1572         * SystemInformation.cs: Return a clone of the theme's MenuFont because
1573         anyone can dispose it, anytime. All other properties returns enums, 
1574         structs or basic types so they don't need such tricks.
1575
1576 2006-09-22  Jackson Harper  <jackson@ximian.com>
1577
1578         * XplatUI.cs:
1579         * XplatUIWin32.cs:
1580         * Clipboard.cs:
1581         * DataFormats.cs:
1582         * XplatUIOSX.cs:
1583         * XplatUIDriver.cs: Update interface to add a primary selection
1584         flag, so the driver can use the primary selection buffer if
1585         needed.
1586         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
1587
1588         * RichTextBox.cs: We need to supply the data object to paste now
1589         (so we can choose to supply CLIPBOARD or PRIMARY).
1590         * TextBoxBase.cs: Supply data object to paste (see above).
1591         - Middle click uses the primary selection data object.
1592         
1593 2006-09-21  Chris Toshok  <toshok@ximian.com>
1594
1595         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
1596         of SetWMStyles.  It's still a rat's nest and is largely
1597         order-dependent which I dislike immensely.  This also fixes the X
1598         button disappearing from toplevel forms.
1599
1600 2006-09-21  Mike Kestner <mkestner@novell.com>
1601
1602         * ListBox.cs: move Jordi's click/dblclick raising code to the
1603         mouse up handler.
1604
1605 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
1606
1607         * ListBox.cs: Fixes 79450
1608
1609 2006-09-21  Mike Kestner <mkestner@novell.com>
1610
1611         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
1612         to deal with people updating the TreeNodeCollection after the tree
1613         is disposed.  "Fixes" 79330.
1614
1615 2006-09-20  Jackson Harper <jackson@ximian.com>
1616
1617         * TextControl.cs: Push the cursor record onto the undo stack
1618         before the delete action. This fixes 78651.
1619
1620 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
1621
1622         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
1623         CreateParams. Fixes 79329.
1624
1625 2006-09-19  Chris Toshok  <toshok@ximian.com>
1626
1627         * XplatUIX11.cs: a couple of blanket code massage passes to clean
1628         things up a bit.  First, get rid of the NetAtoms array (and the NA
1629         enum), and just embed the atoms as static fields.  Also, add a
1630         couple of functions (StyleSet and ExStyleSet) to clean up all the
1631         bitmask testing of styles.
1632
1633         * X11Structs.cs: remove the NA enum, not needed anymore.
1634         
1635 2006-09-19  Chris Toshok  <toshok@ximian.com>
1636
1637         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
1638         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
1639         added cleanup to get MessageBox titles appearing again, which were
1640         broken by my earlier fix for caption-less/ControlBox-less windows.
1641
1642 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
1643
1644         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
1645           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
1646           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
1647           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
1648           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
1649           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
1650           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
1651           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
1652           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
1653           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
1654           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
1655             Inital import.
1656         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
1657           ToolStripButton.cs: Stubs needed for above.
1658         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
1659
1660 2006-09-15  Chris Toshok  <toshok@ximian.com>
1661
1662         * XplatUIX11.cs:
1663         - make the MessageQueues hashtable Synchronized.
1664         
1665         - SendMessage: if the Hwnd is owned by a different thread, use the
1666         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
1667         thread.  Fixes bug #79201.
1668
1669 2006-09-15  Chris Toshok  <toshok@ximian.com>
1670
1671         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
1672         ControlBox == false, we disallow maximize/minimize/close.  If the
1673         form Caption is "" we also disallow move (and get rid of the Title
1674         decoration).  Unfortunately, regardless of how things are set,
1675         we're stuck with the Title and WM menu.
1676
1677 2006-09-15  Chris Toshok  <toshok@ximian.com>
1678
1679         * Application.cs: add locking around the static message_filters
1680         ArrayList, part of #79196.
1681
1682 2006-09-15  Chris Toshok  <toshok@ximian.com>
1683
1684         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
1685         Form.ControlBox == false, the window has no titlebar nor resize
1686         handles.  fixes bug #79368.
1687
1688 2006-09-15  Chris Toshok  <toshok@ximian.com>
1689
1690         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
1691         >= 0.  Fixes bug #79370.
1692
1693 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
1694         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
1695         * Control.cs:
1696             Add properties: LayoutEngine, Margin, DefaultMargin.
1697             Add method: GetPreferredSize.
1698             Move layout logic from PerformLayout to layout engines. 
1699
1700 2006-09-13  Chris Toshok  <toshok@ximian.com>
1701
1702         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
1703         fix for #79326 broke #78718, so this change addresses that.
1704
1705         - in SendWMDestroyMessages remove the call to
1706         CleanupCachedWindows, since we might be recreating the control and
1707         need to maintain the references to right Hwnd handles.  Also, set
1708         the zombie flag to true for each of the children in the hierarchy
1709         instead of calling hwnd.Dispose.  This will cause GetMessage to
1710         ignore all events for the window except for DestroyNotify.
1711
1712         - In GetMessage, ignore messages except for DestroyNotify for
1713         zombie hwnds.
1714         
1715         * Control.cs: revert the is_recreating fix from the last
1716         ChangeLog.  It's definitely "right", but it breaks switching from
1717         an MDI form to a non-MDI form.  Will need to revisit that.
1718
1719         * Hwnd.cs: add a zombie flag, which means "the
1720         client_window/whole_window handles are invalid, but we're waiting
1721         for the DestroyNotify event to come in for them".  Set the flag to
1722         false explicitly if setting WholeWindow/ClientWindow, and also
1723         when Disposing.
1724         
1725 2006-09-13  Chris Toshok  <toshok@ximian.com>
1726
1727         * XplatUIX11.cs: rework window destruction slightly.
1728
1729         - when destroying the windows associated with a control, we don't
1730         need 2 separate XDestroyWindow calls.  Just the one for the
1731         whole_window (or for client_window if whole_window is somehow
1732         IntPtr.Zero -- can this happen?) is enough.
1733
1734         - reworked SendWMDestroyMessages slightly, so we always dispose
1735         the child control hwnd's after sending the messages.
1736         
1737         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
1738         the two places it was used (one was even using hwnd.Handle and the
1739         other hwnd.client_window.  ugh), adding another call in
1740         SendWMDestroyMessages.  We need this new call because now the
1741         DestroyNotify events in the queue will be ignored for the child
1742         controls (as their hwnd's were disposed, and the window id's
1743         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
1744
1745         - this fixes bug #79326.
1746
1747 2006-09-13  Chris Toshok  <toshok@ximian.com>
1748
1749         * Control.cs: don't always set is_recreating to false at the end
1750         of RecreateHandle, since sometimes we're not done (and won't be
1751         until WndProc handles the WM_DESTROY message).  Also, set
1752         is_recreating to false in the WM_DESTROY handling code.  Part of
1753         the fix for bug #79326.
1754
1755 2006-09-13  Miguel de Icaza  <miguel@novell.com>
1756
1757         * X11DesktopColors.cs: Start the droppage of debugging messages.
1758
1759         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
1760
1761 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
1762
1763         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
1764
1765 2006-09-12  Chris Toshok  <toshok@ximian.com>
1766
1767         * DataGrid.cs (get_ListManager): if the list_manager is null, try
1768         to create it using SetDataSource.  Fixes bug #79151.
1769
1770 2006-09-11  Chris Toshok  <toshok@ximian.com>
1771
1772         * XEventQueue.cs: add a DispatchIdle property.
1773
1774         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
1775         either the queue is null, or the queue has DispatchIdle set to
1776         true.
1777         (DoEvents): set queue.DispatchIdle to false around the
1778         peek/translate/dispatch message loop in this method.  This keeps
1779         Application.Doevents from emitting idle events.  Part of the fix
1780         for #78823.
1781
1782 2006-09-11  Chris Toshok  <toshok@ximian.com>
1783
1784         * DataGrid.cs (set_DataSource): make this work for both the
1785         winforms/datagrid test and ReportBuilder.  It seems as though when
1786         we've created a ListManager (or maybe it's if we have a
1787         BindingContext?), when we set the DataSource it clears the
1788         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
1789         #79333.
1790
1791 2006-09-11  Chris Toshok  <toshok@ximian.com>
1792
1793         * XplatUIX11.cs: deal with queue being null, which happens in all
1794         the Clipboard functions.  Fixes one of the two problems mentioned
1795         in #78612.
1796
1797 2006-09-11  Chris Toshok  <toshok@ximian.com>
1798
1799         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
1800         button on various spots (including outside the menu) works closer
1801         to MS, and doesn't crash.  Fixes #79343.
1802
1803 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
1804
1805         * ListView.cs: Do not initialize item_sorter in init. To match MS,
1806         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
1807         and the internal comparer is set. When a new ListViewItemSorter is set,
1808         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
1809         was specified. No further processing is necessary if SortOrder is set
1810         to it's current value. If Sorting is modified to None, and View is
1811         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
1812         (either custom or our internal ItemComparer) to null, on 1.0 profile
1813         only set item_sorter to null if its our internal IComparer. If Sorting
1814         is modified to Ascending or Descending, then use our internal IComparer
1815         if none is set, and if the current IComparer is our internal one then:
1816         on 2.0 profile always replace it with one for new Sorting, and on 1.0
1817         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
1818         Enum.IsDefined to verify whether a valid View value is specified in
1819         its setter. Automatically sort listview items when listview is
1820         created. In Sort, do nothing if ListView is not yet created, or if
1821         no item_sorter is set (no Sorting was set, Sorting was explicitly set
1822         to None or ListViewItemSorter was set to null). Added Sort overload
1823         taking a bool to indicate whether the ListView should be redrawn when
1824         items are sorted (we use this in ListViewItemCollection to avoid double
1825         redraws). Modified our internal IComparer to take the sort order into
1826         account. In Add and AddRange methods of ListViewItemCollection, also
1827         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
1828         view), but use overload with noredraw option to avoid double redraw.
1829         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
1830         true when View is Tile, and do the same when attempting to set View to
1831         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
1832         for selected/checked indices, as it involves overhead when sorting is
1833         done while these collections are not used all that often. Instead
1834         we'll build the indices on demand. Modified IList implementation of
1835         CheckedIndexCollection to use public methods if object is int.
1836         Modified CheckedListViewItemCollection to hide checked items if
1837         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
1838         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
1839         IList implementation in SelectedIndexCollection to use public methods
1840         if object is int. Modified SelectedListViewItemCollection to hide
1841         selected items if listview is not yet created.
1842         * ListViewItem.cs: CheckedIndices list no longer needs to be
1843         maintained separately (see ListView changes). Also clone font, fixes
1844         test failure.
1845
1846 2006-09-11  Mike Kestner  <mkestner@novell.com>
1847
1848         * ComboBox.cs: if we are updating the contents of the currently
1849         selected index, refresh the control or the textbox selection.
1850         [Fixes #79066]
1851
1852 2006-09-11  Mike Kestner  <mkestner@novell.com>
1853
1854         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
1855         the 'specified' logic has been moved there.  This seems like a bug 
1856         in Control.cs, since our current SetBoundsCore completely ignores 
1857         the specified parameter.  Peter's commit seems to indicate that is 
1858         the way the MS control implementation works.  [Fixes #79325]
1859
1860 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
1861
1862         * XplatUI.cs: Set default_class_name to be composed
1863         of current domain id. This allows MWF to be loaded in multiple
1864         domains on Win32.
1865
1866 2006-09-09  Miguel de Icaza  <miguel@novell.com>
1867
1868         * X11Keyboard.cs: If we are unable to obtain the input method, do
1869         not call CreateXic to create the input context.   Should fix
1870         #78944/79276.
1871
1872 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
1873
1874         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
1875           Simplified gnome support by adding more pinvokes to get the
1876           icon for a file or mime type.
1877
1878 2006-09-08  Jackson Harper  <jackson@ximian.com>
1879
1880         * MenuAPI.cs: Deslect popup context menu items before closing the
1881         window, so that you don't see the previously selected item
1882         selected when you reopen the menu.
1883         * TextControl.cs: Update the cursor position even if we don't have
1884         focus.  This fixes typing in things like the ComboBox.  I'm not
1885         totally sure we should always set the visibility if we don't have
1886         focus, but couldn't find any corner cases where the cursor showed
1887         up when it shouldn't.
1888
1889 2006-09-08  Chris Toshok  <toshok@ximian.com>
1890
1891         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
1892         our arrays are length 256.  & 0xff before indexing.  Fixes the
1893         crash in bug #78077.
1894         
1895 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1896
1897         * ThemeWin32Classic.cs: 
1898         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
1899         is true. Handle that check box too.
1900
1901 2006-09-07  Chris Toshok  <toshok@ximian.com>
1902
1903         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
1904         79244.
1905
1906 2006-09-07  Chris Toshok  <toshok@ximian.com>
1907
1908         * Control.cs: in set_BackColor only do the work if
1909         background_color != value.
1910
1911         * XplatUIX11.cs: move the clearing of invalid areas (both client
1912         and nc) to the same block of code where we set (nc_)expose_pending
1913         to false.  That is, move it from PaintEventEnd to PaintEventStart,
1914         so things that cause invalidates from within OnPaint will trigger
1915         another call to OnPaint.  Fixes bug #79262.
1916
1917 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
1918
1919         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
1920         * FileDialog.cs: Fix typo
1921
1922 2006-09-07  Jackson Harper  <jackson@ximian.com>
1923
1924         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
1925         for tab pages if they have any.
1926
1927 2006-09-06  Mike Kestner  <mkestner@novell.com>
1928
1929         * Splitter.cs: use the "current" rect when finishing drag handle
1930         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
1931
1932 2006-09-06  Mike Kestner  <mkestner@novell.com>
1933
1934         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
1935         support offset splitters. [Fixes #79298]
1936
1937 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
1938
1939         * Mime.cs: Fixed a bug that could override the global mime type
1940           result.
1941
1942 2006-09-05  Jackson Harper  <jackson@ximian.com>
1943
1944         * TabControl.cs: Better calculation method for setting the slider
1945         pos. Prevents crashes on really wide tabs.
1946         - Draw Image on tab pages if an image list is used.
1947
1948 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1949
1950         * MonthCalendar.cs: When Font changes, the Size should be
1951         updated to fit the new font's space requirements.
1952
1953 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
1954
1955         * ListBox.cs: If the items are cleared with Items.Clear set
1956           top_index to 0.
1957
1958 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1959
1960         * MonthCalendar.cs: Handle arrow keys as input keys. Also
1961         fire DateChanged event instead of DateSelected event when
1962         the date was changed by keyboard interaction.
1963
1964 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1965
1966         * DateTimePicker.cs: Handle DateChanged for the associated
1967         month_calendar control, and set month_calendar.Font from 
1968         OnFontChanged method, as well as resize the height of the
1969         control when needed. Make PreferredHeight proportional.
1970
1971 2006-09-01  Chris Toshok  <toshok@ximian.com>
1972
1973         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
1974         properties.
1975
1976         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
1977
1978 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
1979
1980         * FileDialog.cs: Set ClientSize instead of window size, to allow space
1981           for decorations (Fixes #79219)
1982
1983 2006-09-01  Mike Kestner  <mkestner@novell.com>
1984
1985         * ComboBox.cs: first stab at sorting plus some selection handling
1986         fixes to bring us more in line with MS behavior.  Also switches back
1987         to index based selection.  Alternative patches for index-based 
1988         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
1989         and latency@gmx.de on bug 78848.  I assume they were similar to this
1990         code I've had simmering in my tree forever.
1991         [Fixes #78848]
1992
1993 2006-09-01  Chris Toshok  <toshok@ximian.com>
1994
1995         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
1996         when setting list position guard against ending up with a -1 index
1997         (the other part of the fix for #78812).  Should probably make sure
1998         we don't need the analogous fix in the ItemDeleted case.
1999
2000         * DataGrid.cs:
2001         - in SetDataSource, work around the fact that the way
2002         OnBindingContextChanged is invoked will cause us to re-enter this
2003         method.  I'll remove the hack once I investigate
2004         OnBindingContextChanged.
2005
2006         - fix the logic in set_DataSource and set_DataMember (basically
2007         what to do if the other of the two is null.)
2008         
2009         - in OnListManagerItemChanged, we need to take into account the
2010         edit row when deciding whether or not to call RecreateDataGridRows
2011         (part of the fix for #78812).
2012
2013 2006-09-01  Jackson Harper  <jackson@ximian.com>
2014
2015         * Splitter.cs: Don't do anything if there is no control to affect
2016         (prevents us from crashing in weird tet cases).
2017         * TreeView.cs: Bounding box for the mouse movement reverting
2018         focus/selection back to previously selected node.  This matches
2019         MS, and makes the tree a lot more useable.
2020         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
2021         use clipping so they are not drawn.  This fixes when the control
2022         is set to have a transparent background, or if it was over an
2023         image.
2024
2025 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
2026
2027         * MimeIcon.cs: Improved handling for reading default icons when
2028           using gnome (2.16 made it necessary). Check and read svg icons
2029           first, then 48x48 and then 32x32 icons.
2030
2031 2006-08-31  Chris Toshok  <toshok@ximian.com>
2032
2033         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
2034         visible.
2035
2036         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
2037         ProcessKeyPreview.  Fixes part of #77806.
2038
2039         * DataGrid.cs: big patch.
2040
2041         - revert the queueing up of DataSource/DataMember if inside
2042         BeginInit/EndInit calls.  That's not the way the datagrid achieves
2043         its delayed databinding.  Instead, call SetDataSource in
2044         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
2045         #78811.
2046
2047         - Also, it wasn't mentioned in #78811, but the test case exhibits
2048         behavior that was lacking in our datagrid implementation - Columns
2049         that have mapping names that don't exist in the datasource's
2050         properties aren't shown.  Yuck.  To fix this I added the bound
2051         field to the column style, and basically any calculation to figure
2052         out anything about columns uses a loop to find the bound columns.
2053         still need to investigate if I can cache an array of the bound
2054         columns or if the indices must be the same.
2055
2056         - When setting CurrentCell, we no longer abort if the cell being
2057         edited was in the add row.  This fixes the other part of #77806.
2058
2059         - The new code also fixes #78807.
2060         
2061         * ThemeWin32Classic.cs: perpetrate the same disgusting
2062         column.bound field hack, and only render bound fields.
2063
2064 2006-08-31  Chris Toshok  <toshok@ximian.com>
2065
2066         * DataGridColumnStyle.cs: add bound field.  this field is true if
2067         the datasource has a property corresponding to the mapping name.
2068
2069         * DataGridTableStyle.cs: set the bound field on the column styles
2070         depending on whether or not we have a column for that property.
2071
2072 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
2073
2074         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
2075           splitter control (fixes #79228)
2076
2077 2006-08-31  Chris Toshok  <toshok@ximian.com>
2078
2079         * DataGridColumnStyle.cs: we need to delay the assignment of
2080         property descriptor until the last possible moment due to the lazy
2081         databinding stuff in the datagrid.  Also, fix the exceptions
2082         thrown by CheckValidDataSource to match MS.
2083
2084 2006-08-31  Jackson Harper  <jackson@ximian.com>
2085
2086         * Form.cs: When activated select the active control, if there is
2087         no active control, we select the first control.
2088         * XplatUIX11.cs: If there is no focus control when we get a
2089         FocusIn event, find the toplevel form and activate it.  This
2090         occurs when you popup a window, it becomes the focus window, then
2091         you close that window, giving focus back to the main window.
2092
2093 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2094
2095         * MonthCalendar.cs: 
2096         * ThemeWin32Classic.cs: Cache Font in bold style, as well
2097         as StringFormat with Center alignments in MonthCalendar,
2098         instead of creating new ones when drawing the control. 
2099         Also, draw the month name in bold style.
2100
2101 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
2102
2103         * Control.cs:
2104           - PerformLayout(): It would seem MS performs the fill even if the 
2105             control is not visible (part of #79218 fix)
2106           - ResetBackColor(): Use the setter to reset the color, to allow
2107             overriders to catch the change.
2108         * Form.cs:
2109           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
2110           - CreateHandle(): dito (part of $79218 fix)
2111           - Don't set an icon if we have a dialog
2112         * ScrollableControl.cs:
2113           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
2114           - ScrollIntoView(): No need to scroll if control is already visible
2115             (resolves fixme and fixes #79218)
2116
2117 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2118
2119         * MonthCalendar.cs: Change proportions in SingleMonthSize
2120         to match the aspect of the original control.
2121
2122 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
2123
2124         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
2125           get updated when they get maximized.
2126
2127 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
2128
2129         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
2130
2131 2006-08-29  Chris Toshok  <toshok@ximian.com>
2132
2133         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
2134
2135 2006-08-29  Jackson Harper  <jackson@ximian.com>
2136
2137         * TreeView.cs: Need to track selected node and highlighted node,
2138         they aren't always the same thing, when the mouse is down on a
2139         node it is hilighted, but not selected yet.
2140         - Do the HideSelection stuff right
2141         - Need to focus on rbutton mouse down. And redraw selection when
2142         right click is mouse upped.
2143
2144 2006-08-29  Mike Kestner  <mkestner@novell.com>
2145
2146         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
2147         when SubItems.Count < Columns.Count.  [Fixes #79167]
2148
2149 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
2150
2151         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
2152
2153 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
2154
2155         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
2156           from X. Only send based on ConfigureNotify if we don't have the
2157           correct location in hwnd (if the window manager moved us)
2158
2159 2006-08-28  Mike Kestner  <mkestner@novell.com>
2160
2161         * ListView.cs: remove a TODO. 
2162         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
2163         [Fixes ListView part of #79166]
2164
2165 2006-08-28  Mike Kestner  <mkestner@novell.com>
2166
2167         * ListView.cs: move wheel handler to parent since it is focused
2168         instead of the item_control now.  [Fixes #79177]
2169
2170 2006-08-28  Mike Kestner  <mkestner@novell.com>
2171
2172         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
2173         when the control is focused. [Fixes #79171]
2174
2175 2006-08-28  Mike Kestner  <mkestner@novell.com>
2176
2177         * ListView.cs: size the item and header controls for empty and
2178         unscrollable views.
2179         * ThemeWin32Classic.cs: draw disabled backgrounds.
2180         [Fixes #79187]
2181
2182 2006-08-28  Chris Toshok  <toshok@ximian.com>
2183
2184         * Form.cs: remove unused "active_form" static field.
2185
2186         * Hwnd.cs: lock around accesses to static windows collection.
2187
2188         * Application.cs: lock threads in Exit ().
2189
2190 2006-08-28  Chris Toshok  <toshok@ximian.com>
2191
2192         * NativeWindow.cs: lock around accesses to window_collection.
2193         
2194 2006-08-28  Chris Toshok  <toshok@ximian.com>
2195
2196         * Control.cs: err, fix this the right way, by locking on controls
2197         when using it.  not by making it synchronized.
2198
2199 2006-08-28  Chris Toshok  <toshok@ximian.com>
2200
2201         * Control.cs: make the static "controls" field synchronized, as it
2202         gets updated from multiple threads.
2203
2204 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
2205
2206         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
2207           Prevent other threads from exiting when calling thread sets quit state.
2208         * XEventQueue.cs: Added PostQuitState property
2209
2210 2006-08-27  Chris Toshok  <toshok@ximian.com>
2211
2212         * AsyncMethodData.cs: add a slot for the window handle.
2213
2214         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
2215         window (the destination control's window, not the foster window).
2216
2217         * Control.cs (BeginInvokeInternal): store the window's handle in
2218         the AsyncMethodData.
2219         
2220
2221 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
2222
2223         * XplatUIX11.cs:
2224           - PostQuitMessage: Removed resetting S.D display handle, we might have
2225             another loop started after calling PostQuitMessage (Fixes #79119)
2226           - Created destructor to reset S.D handle
2227
2228 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
2229
2230         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
2231
2232 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2233
2234         * TextControl.cs (Insert): Update the caret position even if we don't
2235           have a handle yet, just don't call the driver in that case.
2236         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
2237           to the end of the new selection text (Fixes #79184)
2238
2239 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2240
2241         * Form.cs (Activate): Only activate if the handle is created)
2242         * Control.c:
2243           - Mark window as invisible when it's disposed
2244           - Check if window handle is created when setting window visible, 
2245             instead of relying just on the is_created variable
2246           - Check if object is disposed when creating the control (Fixes #79155)
2247
2248 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2249
2250         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
2251           when allowing layout again. Otherwise we re-generate the anchoring 
2252           distance to the border again and actually alter what the user wanted
2253           This is ugly, it'd be better if we used DisplayRectangle instead of
2254           ClientRectangle for Control.UpdateDistances, but that causes us to
2255           have other problems (initial anchoring positons would be wrong)
2256           (Fixes #78835)
2257
2258 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2259
2260         * Control.cs:
2261           - The size and location setters shouldn't go directly to 
2262             SetBoundsCore, but to SetBounds, which triggers layout on the
2263             parent, then calls SetBoundsCore. (Related to fix for #78835)
2264           - SetBounds: Moved actual location update code into this function
2265             from SetBoundsCore, to match MS. Added call to PerformLayout if
2266             we have a parent (to trigger resizing of anchored parents if the 
2267             child size has changed (see testcase for #78835) 
2268         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
2269           new control code
2270         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
2271
2272 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2273
2274         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
2275           System.Drawing when a toplevel window gets closed; there might
2276           be other toplevel windows belonging to the same app (Fixes #78052)
2277
2278 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
2279
2280         * FileDialog.cs: After reading FileDialog settings from mwf_config
2281           use Desktop prefix only if a real folder doesn't exist anymore.
2282         * FontDialog.cs: Added char sets.
2283           It is now possible to select the font, size or style with the
2284           textboxes.
2285
2286 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
2287
2288         * PrintPreviewDialog.cs: Use assembly name constants.
2289
2290 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2291
2292         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
2293           scrollbar from whacking it's buttons)
2294
2295 2006-08-24  Chris Toshok  <toshok@ximian.com>
2296
2297         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
2298         in this patch (aggregating setting Left/Top/Width/Height to
2299         setting Bounds on the scrollbars), but the crux of the fix is in
2300         Recalculate, where we scroll by the remaining scroll_position if
2301         we're hiding a scrollbar.  The 2*$5 reward in the comment is
2302         serious.
2303
2304 2006-08-24  Jackson Harper  <jackson@ximian.com>
2305
2306         * MdiClient.cs:
2307         * MdiWindowManager.cs: If the form is made a non-mdi window we
2308         need to remove the form closed event so that closing forms works
2309         correctly.
2310
2311 2006-08-24  Jackson Harper  <jackson@ximian.com>
2312
2313         * Control.cs: Make IsRecreating internal so that the driver can
2314         check it
2315         - Temporarily remove the Hide when controls are removed, its
2316         making a whole bunch of things not work because visibility isn't
2317         getting reset elsewhere correctly
2318         * Form.cs: Need to do a full handle recreation when the mdi parent
2319         is set.
2320         * XplatUIX11.cs: If we are recreating handles don't dispose the
2321         HWNDs.  What was happening is the handles were being recreated in
2322         SendWMDestroyMessages, but then flow continued on in that method
2323         and destroyed the new handles.
2324
2325 2006-08-23  Jackson Harper  <jackson@ximian.com>
2326
2327         * Form.cs: MdiClient is always at the back of the bus
2328         * Control.cs: When the order of items in the collection is changed
2329         we need to reset the all_controls array
2330         - do the same sorta setup thats done when adding a control when a
2331         control is set on the collection.
2332
2333 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2334
2335         * TextBoxBase.cs (get_Text): Return an empty array if our document
2336           is empty (fixes #79052)
2337
2338 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2339
2340         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
2341           on WM_SYSCHAR messages (fixes #79053)
2342
2343 2006-08-23  Chris Toshok  <toshok@ximian.com>
2344
2345         * DataGrid.cs: fix flickering when scrolling vertically.
2346
2347 2006-08-23  Chris Toshok  <toshok@ximian.com>
2348
2349         * DataGrid.cs (EndEdit): only invalidate the row header when we
2350         need to.
2351
2352 2006-08-23  Chris Toshok  <toshok@ximian.com>
2353
2354         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
2355         methods.  fixes the flicker when scrolling around.
2356
2357 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2358
2359         * FileDialog.cs: Making sure the control is created before we get a 
2360           chance to use it with BeginInvoke (Fixes #79096)
2361
2362 2006-08-23  Chris Toshok  <toshok@ximian.com>
2363
2364         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
2365         width to use when painting the rows.
2366
2367 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2368
2369         * TextBoxBase.cs:
2370           - Throw ArgumentException if a negative value is passed to SelectionLength
2371           - Update the selection end if start is moved. end needs to be always
2372             after start. (Fixes #79095)
2373           - Track selection length; MS keeps the selection length even if start
2374             is changed; reset on all other operations affection selection
2375
2376 2006-08-22  Jackson Harper  <jackson@ximian.com>
2377
2378         * TreeView.cs: Make sure both scrollbars get displayed and sized
2379         correctly when the other bar is visible.
2380         - Use the original clip rectangle for checking if the area between
2381         the two scrollbars is visible, not the viewport adjusted clipping
2382         rectangle.
2383
2384 2006-08-22  Jackson Harper  <jackson@ximian.com>
2385
2386         * Binding.cs: We don't use IsBinding because it requires the
2387         control to be created, which really shouldn't be necessary just to
2388         set a property on the control.
2389
2390 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2391
2392         * ComboBox.cs: Some CB.ObjectCollection methods must throw
2393         ArgumentNullReferenceException when the argument is null.
2394
2395 2006-08-21  Jackson Harper  <jackson@ximian.com>
2396
2397         * Timer.cs: Track the thread that the timer is started in (NOT
2398         CREATED), this way messages for it will only be triggered on its
2399         queue.
2400         * XEventQueue.cs: Track the timers here, this makes timers per
2401         thread, like MS.
2402         * XplatUIX11.cs: The timers are moved to the XEventQueue.
2403
2404 2006-08-19  Chris Toshok  <toshok@ximian.com>
2405
2406         * XplatUIX11.cs: after further communication with pdb, we get the
2407         best of both worlds.  SetZOrder working for un-Mapped windows, and
2408         no X errors for un-mapped windows.
2409
2410 2006-08-19  Chris Toshok  <toshok@ximian.com>
2411
2412         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
2413         as it was causing pdn toolbars to not have the correct stacking.
2414
2415 2006-08-18  Mike Kestner  <mkestner@novell.com> 
2416
2417         * ListView.cs : guard against negative ClientArea.Width in scrollbar
2418         calculation.  Not sure why control should ever be setting a negative
2419         width though.  Fixes #78931.
2420
2421 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2422
2423         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
2424         null items in ObjectCollection class.
2425         * ListBox.cs.: Likewise.
2426
2427 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
2428
2429         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
2430           as the base method in ThemeWin32Classic should work fine.
2431           Fixed bug #78607.
2432
2433 2006-08-18  Jackson Harper  <jackson@ximian.com>
2434
2435         * Binding.cs: When validating if the value entered doesn't convert
2436         properly reset to the old value.
2437         * RadioButton.cs: Don't fire click when we get focus.
2438
2439 2006-08-18  Jackson Harper  <jackson@ximian.com>
2440
2441         * FileDialog.cs: Paint the selection on the directory combobox the
2442         same way as on MS. 
2443
2444 2006-08-17  Jackson Harper  <jackson@ximian.com>
2445
2446         * ErrorProvider.cs: Don't allow the error control to be selected.
2447         * Control.cs: Don't send the SetFocus messages, the control
2448         activation will do this, and if we do it blindly here validation
2449         does not work.
2450
2451 2006-08-17  Jackson Harper  <jackson@ximian.com>
2452
2453         * Control.cs:
2454         * ContainerControl.cs: Make validation events fire in the correct
2455         order.  TODO: For some reason the first validation event is not
2456         getting fired.
2457
2458 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2459
2460         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
2461
2462 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2463
2464         * ComboBox.cs : implement scroll wheel support for popped-down
2465         state. Fixes #78945. 
2466
2467 2006-08-17  Jackson Harper  <jackson@ximian.com>
2468
2469         * TreeView.cs: Specify treeview actions (old patch that didn't get
2470         committed for some reason).
2471         - Don't let the mouse wheel scroll us too far.  Just want to make
2472         the bottom node visible, not scroll it all the ways to the top.
2473
2474 2006-08-17  Jackson Harper  <jackson@ximian.com>
2475
2476         * XplatUIX11.cs: Mouse wheel events go to the focused window.
2477
2478 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2479
2480         * ComboBox.cs : don't do mouseover selection in simple mode.
2481
2482 2006-08-16  Jackson Harper  <jackson@ximian.com>
2483
2484         * Form.cs: Fire the closing events for all the mdi child windows
2485         when a window is closed.  If the cancel args are set to true, the
2486         main window still gets the event fired, but it doesn't not close.
2487         * MdiWindowManager.cs: Do this closing cleanup in a Closed
2488         handler, instead of when the button is clicked, so cancelling the
2489         close works correctly.
2490         * ComboBox.cs: Send the mouse down to the scrollbar.
2491
2492 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2493
2494         * ListBox.cs: When passing 'null' to SelectedItem,
2495         set SelectedIndex to -1, to unselect items. This is the
2496         observed behaviour in .Net.
2497
2498 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
2499
2500         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
2501           MS flags saying there won't be any. (fixes #78800)
2502         * Control.cs (HandleClick): Made virtual
2503
2504 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
2505
2506         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
2507           cultures. Fixed bug #78399.
2508
2509 2006-08-16  Jackson Harper  <jackson@ximian.com>
2510
2511         * Form.cs: Use the MdiClients MdiChildren property to access
2512         MdiChildren instead of creating the array from the child controls.
2513         * MdiClient.cs: Maintain a separate array of the mdi children, so
2514         that insertion order is maintained when the Z-order is changed.
2515
2516 2006-08-16  Mike Kestner  <mkestner@novell.com> 
2517
2518         * ListView.cs : add an ItemComparer and default to it for sorting.
2519         Fixes #79076, but sorting needs a complete overhaul to be compat with
2520         MS.
2521
2522 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
2523
2524         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
2525
2526 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2527
2528         * Hwnd.cs (Mapped): Properly traverse the tree
2529
2530 2006-08-15  Chris Toshok  <toshok@ximian.com>
2531
2532         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
2533         pass manager.Current.GetType() to ParseData.  It has to be the
2534         property type.  So, hold off doing the ParseData until we're in
2535         SetPropertyValue where we know the type.  This fixes the crash in
2536         #78821 but the textbox is still empty.
2537
2538 2006-08-15  Chris Toshok  <toshok@ximian.com>
2539
2540         * DataGrid.cs:
2541         - when we're scrolling, only call Edit() again if the
2542         current cell is still unobscured. Fixes bug #78927.
2543         - when handling mousedown on a cell, ensure the cell is visible
2544         before calling Edit.
2545         - remove the properties from DataGridRow, and remove the
2546         DataGridParentRow class altogether.
2547         
2548
2549 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2550
2551         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
2552           fire OnTextChanged by ourselves. There's no point calling base,
2553           we don't set the base value anywhere else. Fixes #78773.
2554
2555 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2556
2557         * ListBox.cs: Call CollectionChanged when modifying
2558         an item from Items indexer, to update the actual items
2559         in the list box.
2560
2561 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2562
2563         * PrintDialog.cs: Small fixes for focus and a pair of checks,
2564         to match .Net behaviour.
2565
2566 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2567
2568         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
2569
2570 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
2571
2572         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
2573
2574 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2575
2576         * MessageBox.cs: Prevent potential NRE exception.
2577         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
2578
2579 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
2580
2581         * MessageBox.cs: Calculate the owner of a messagebox, also make
2582           it topmost. Fixes #78753
2583
2584 2006-08-14  Chris Toshok  <toshok@ximian.com>
2585
2586         * XplatUIX11.cs: A couple of fixes so that metacity will let us
2587         programmatically move windows.  first, set the PPosition hint as
2588         well as the USPosition hint.  Second include some code from pdb
2589         that sets the window type to NORMAL when we set the transient for
2590         hint.  This is because, in the absence of a window type, metacity
2591         thinks any window with TransientFor set is a dialog, and refuses
2592         to let us move it programmatically.  fascists.
2593
2594 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
2595
2596         * XplatUIX11.cs: When setting normal hints, take into consideration
2597           an different hints previously set so we don't delete them (fixes #78866)
2598
2599 2006-08-12  Chris Toshok  <toshok@ximian.com>
2600
2601         * ToolBarButton.cs: make Layout return a boolean, if something to
2602         do with the button's layout changed.
2603
2604         * ToolBar.cs:
2605         - add another parameter to Redraw, @force, which all existing
2606           calls set to true.
2607         - make the Layout function return a boolean which is true if the
2608           layout has actually changed.  Redraw now uses this (and @force)
2609           to determine when to invalidate.  At present the only place
2610           where @force can be false is the call from OnResize, when
2611           background_image == null.  So, resizing a toolbar when the
2612           layout doesn't change results in no drawing.
2613
2614 2006-08-12  Chris Toshok  <toshok@ximian.com>
2615
2616         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
2617         the VScrollBar and HScrollbar reversed.  oops.
2618
2619         * DataGrid.cs: fix the logic that assigns sizes to the implicit
2620         scrollbars.  we were assigning them twice (once in
2621         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
2622         therefore causing two scrollbar resizes (and redraws?) to happen
2623         per grid resize.
2624
2625 2006-08-12  Chris Toshok  <toshok@ximian.com>
2626
2627         * ToolBarButton.cs: redraw the entire button if the theme tells us
2628         to.
2629
2630         * Theme.cs: add ToolBarInvalidateEntireButton.
2631
2632         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
2633         buttons, just the border.
2634
2635         * ThemeNice.cs: redraw the entire toolbar button since we need to
2636         draw the highlight image.
2637
2638         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
2639         we need to redraw the entire button (not just the border).
2640
2641 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
2642
2643         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
2644           for vertical bars. Fixes the mismatches shown by #78513
2645
2646 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
2647
2648         * FileDialog.cs: If a saved/remembered path doesn't exist
2649           anymore, fall back to "Desktop".
2650
2651 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
2652
2653         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
2654           parent. It's apparently legal to not have one
2655         * XplatUIX11.cs:
2656           - SetZOrder: Don't try to set Z-Order on an unmapped window
2657           - CreateWindow: 0,0 are legal coordinates for a window. don't move
2658             it unless the coordinates are negative
2659
2660 2006-08-10  Mike Kestner  <mkestner@novell.com>
2661
2662         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
2663         when setting to null per msdn docs.  Fixes #78854.
2664
2665 2006-08-10  Chris Toshok  <toshok@ximian.com>
2666
2667         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
2668         flickering by setting a clip rectangle on the Graphics when we
2669         need to redraw just a particular menuitem.  Also, rename "OnClick"
2670         to "OnMouseDown" to reflect what it actually is.
2671         
2672         * Form.cs: track the OnMouseDown change.
2673
2674 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
2675
2676         * CommonDialog.cs: Properly inherit the CreateParams from the form
2677           and only change what we need. Fixes #78865
2678
2679 2006-08-10  Chris Toshok  <toshok@ximian.com>
2680
2681         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
2682         flickering in flat mode (and most of the flickering in general) by
2683         only invalidating the button border (and not the entire rectangle)
2684         when the state changes.  A couple of cases still flicker:
2685         ToggleButtons, and the dropdown arrow case when the user mouse
2686         ups.
2687
2688 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
2689
2690         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
2691           for german keyboards. Numlock state shouldn't affect the behaviour
2692           of the Del key. Fixes bug #78291.
2693
2694 2006-08-10  Chris Toshok  <toshok@ximian.com>
2695
2696         * ListControl.cs: remove the items.Clear line from BindDataItems,
2697         as this is the first thing done by both subclasses in their
2698         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
2699         passed -1, refresh the list.  This gets databinding working when
2700         the datasource is set on the list before the datasource is
2701         populated (as in wf-apps/ReportBuilder.)
2702
2703         * ComboBox.cs: remove the argument to BindDataItems.  This call
2704         should really go away, and be initiated by the ListControl code.
2705
2706         * ListBox.cs: same.
2707
2708 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
2709
2710         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
2711           if no data is in the document when the control is displayed
2712
2713 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
2714
2715         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
2716           yes (fixes #78806)
2717         * TextControl.cs: 
2718           - PositionCaret: Allow positioning of caret but don't call methods 
2719             requiring a handle if the window isn't created yet
2720           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
2721           - owner_HandleCreated: Don't position the caret, just update it's 
2722             location. User might have already set a different position
2723
2724 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
2725
2726         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
2727           windows. Screws up the returned coordinates for child windows. 
2728           Fixes #78825. I'm hoping this doesn't break something, since the
2729           code was explicitly put in 8 months ago, but no bug was attached.
2730           Menus still seem to work properly.
2731
2732 2006-08-08  Chris Toshok  <toshok@ximian.com>
2733
2734         * DataGrid.cs: make BeginInit/EndInit actually do what they're
2735         supposed to do - delay data binding until the EndInit call.  Also,
2736         make the table style collection's CollectionChangeAction.Refresh
2737         work properly.
2738
2739         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
2740         (with action = Refresh) when a consituent table's MappingName is
2741         changed.
2742
2743 2006-08-08  Chris Toshok  <toshok@ximian.com>
2744
2745         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
2746         Invalidate, since changing the text can change the size of the all
2747         toolbar buttons.
2748
2749 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
2750
2751         * Form.cs (AddOwnedForm): Still need to add the form to our listif
2752           we don't have it yet
2753
2754 2006-08-08  Chris Toshok  <toshok@ximian.com>
2755
2756         * PrintControllerWithStatusDialog.cs: don't .Close() the status
2757         dialog, as this causes X errors later on, since we actually
2758         destroy the window.  Instead, .Hide() it.
2759
2760 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
2761
2762         * ComboBox.cs: Added focus reflection for popup window
2763         * XplatUIX11.cs: 
2764           - Removed transient setting for non-app windows for now, not sure it
2765             was needed
2766           - Fixed logic checking if we have captions when deciding 
2767             override_redirect, WS_CAPTION is two bits and a 0 check was not
2768             sufficient
2769           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
2770             complicated
2771         * Form.cs: 
2772           - AddOwnedForm: Don't just add the form to the list, call the property
2773             to ensure the driver is informed about the ownership as well
2774           - CreateHandle: Set the TopMost status in the driver if we have an owner
2775         * XplatUI.cs: Fixed debug statement
2776
2777 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
2778         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2779           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
2780           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
2781           TrackBarRenderer.cs: Make constructor private.
2782         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
2783         * ProfessionalColorTable.cs: Make properties virtual.
2784
2785 2006-08-06  Duncan Mak  <duncan@novell.com>
2786
2787         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
2788         is not changing.
2789
2790 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2791         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2792           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
2793           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
2794           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
2795           Initial import of new 2.0 classes.
2796
2797 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2798         * Application.cs: Add 2.0 VisualStyles properties.
2799
2800 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2801         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2802           XplatUIX11.cs: Create property to allow access to existing private
2803           variable "themes_enabled"
2804
2805 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2806
2807         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
2808         file size, as otherwise our class libraries fail using windows. Fixes
2809         bug #78759.
2810
2811 2006-08-04  Jackson Harper  <jackson@ximian.com>
2812
2813         * Form.cs:
2814         * XplatUIX11.cs: Move the toolwindow window manager creation into
2815         the X11 driver, this way on win32 we can let windows create/handle
2816         the toolwindows.
2817
2818 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2819
2820         * PrintDialog.cs: Remove some redundant checks, add some others,
2821         clean some code, and move the focus to the text boxes when the
2822         values are incorrect.
2823
2824 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
2825
2826         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
2827
2828 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
2829
2830         * NumericUpDown.cs: Setting the Minimum and Maximum is now
2831           handled correctly. Fixes bug #79001.
2832
2833 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2834
2835         * PrintDialog.cs: The "Copies" numeric up down must have
2836         set the Minimum property to 1; only if the value is bigger
2837         than 1, activate "Collate" check box. This is the behaviour of .Net.
2838         Also modify the Document elements only if it is not null.
2839
2840 2006-08-03  Jackson Harper  <jackson@ximian.com>
2841
2842         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
2843         length. (We have a larger array then actual node count).
2844                 
2845 2006-08-03  Jackson Harper  <jackson@ximian.com>
2846
2847         * ComboBox.cs: Don't show selection by default.
2848         - The SelectAll isn't needed here, since the focus code should do
2849         that
2850         - DDL style lists to manual selection drawing, so when they
2851         get/lose focus they have to invalidate.
2852
2853 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
2854
2855         * TextBoxBase.cs: Don't always show all selections by default.
2856
2857 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
2858         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
2859           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
2860           Fixed various typos.
2861
2862 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
2863
2864         * Control.cs: Removing the controls in a ControlCollection with
2865           Clear now hides the controls as expected. Fixes bug #78804. 
2866
2867 2006-08-03  Jackson Harper  <jackson@ximian.com>
2868
2869         * Control.cs: Revert previous focus patch, it breaks reflector.
2870
2871 2006-08-03  Jackson Harper  <jackson@ximian.com>
2872
2873         * ComboBox.cs: Cleanup selection and focus with the combobox.
2874         This also eliminates some duplicated keyboard code, since now
2875         everything is handled by the main class.
2876         - Make list selection work on mouse up instead of down, to match
2877         MS.
2878
2879 2006-08-02  Jackson Harper  <jackson@ximian.com>
2880
2881         * Control.cs: Setting focus needs to go through the whole
2882         selection mechanism.
2883
2884 2006-08-02  Chris Toshok  <toshok@ximian.com>
2885
2886         * PrintPreviewDialog.cs: change MinimumSize to use
2887         base.MinimumSize so it works.
2888
2889 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
2890
2891         * TextControl.cs:
2892           - UpdateCaret: Added sanity check in case caret isn't defined yet
2893           - Line.Delete: Now updating selection and caret markers if we're
2894             transfering a node (Properly fixes #78323)
2895           - SetSelectionEnd: Added sanity check
2896         * TextBoxBase.cs: Removed broken attempt to fix #78323
2897
2898 2006-08-01  Chris Toshok  <toshok@ximian.com>
2899
2900         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
2901         Close() call is handled in Form, not here.
2902
2903 2006-08-01  Chris Toshok  <toshok@ximian.com>
2904
2905         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
2906         layout/rendering.
2907
2908         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
2909         for sizes < 100% zoom.  The code now aggressively attempts to keep
2910         from calling document.Print (), and tries not to use the scaling
2911         g.DrawImage whenever possible (it still does if you scale to >
2912         100%, since usually that involves huge images).
2913
2914         * PrintPreviewControl.cs: hook up the close button.
2915
2916 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
2917         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
2918           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
2919           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
2920           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
2921           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
2922           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
2923           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
2924           Removed [Serializable] for 2.0 Event Handlers.
2925
2926 2006-07-31  Jackson Harper  <jackson@ximian.com>
2927
2928         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
2929         * TextControl.cs: Uncomment out the body of this method.
2930
2931 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
2932
2933         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
2934           standard cursors.
2935
2936 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2937
2938         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
2939           that embed TextBox and need selections visible even if textbox is not
2940           focused to enforce that behaviour.
2941         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
2942           selection drawing
2943
2944 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2945
2946         * TextControl.cs:
2947           - Added new SetSelectionStart/SetSelectionEnd overloads
2948           - Fixed viewport width assignment to be accurate
2949           - Adjusted alignment line shift calculations to allow cursor on right
2950             aligned lines to be always visible at the right border (like MS)
2951         * TextBoxBase.cs:
2952           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
2953           - TextBoxBase_SizeChanged: recalculating canvas on size changes
2954           - CalculateScrollBars: Use ViewPort size instead of window size, to
2955             properly consider space occupied by the border and scrollbars 
2956             (Fixes #78661)
2957           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
2958             calculations; no longer leaves artifacts
2959           - CaretMoved: Adjusted window scrolling to match MS and fixed several
2960             calculation bugs (Still missing right/center align calculations)
2961
2962 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
2963
2964         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
2965           use of both scroll rect and clip rect, as they do the same.
2966
2967 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2968
2969         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
2970           in the event handler (fixes #78912)
2971
2972 2006-07-31  Chris Toshok  <toshok@ximian.com>
2973
2974         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
2975         grid.ListManager.Count, since grid.ListManager might be null.
2976         This of course begs the question "why are we drawing rows for a
2977         grid with no list manager (and therefor no rows)?"  Fixes the
2978         crash in bug #78929.
2979
2980 2006-07-31  Chris Toshok  <toshok@ximian.com>
2981
2982         * RelatedPropertyManager.cs: Don't always chain up to the parent
2983         ctor.  instead, call SetDataSource if the parent's position is !=
2984         -1.  Fixes the crash in #78822.
2985
2986 2006-07-31  Chris Toshok  <toshok@ximian.com>
2987
2988         * DataGrid.cs (get_ListManager): use field instead of property
2989         accessors for datasource and datamember.
2990         (RowsCount): make internal again.
2991         (OnMouseDown): end edits before resizing columns/rows.
2992         (OnMouseUp): restart edits after resizing columns/rows.
2993
2994 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
2995
2996         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
2997           This fixes the situation where the last set cursor is displayed
2998           whenever the mouse is over scrollbars.
2999
3000 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3001
3002         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
3003         Document properties, as well as initial values.
3004
3005 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
3006
3007         * XplatUIWin32.cs (SetBorderStyle): Setting both border
3008           and ClientEdge results in a 3-pixel border, which is
3009           wrong.
3010
3011 2006-07-28  Jackson Harper  <jackson@ximian.com>
3012
3013         * TreeNodeCollection.cs: Fix the clear method.
3014         - Fix the Shrink also
3015
3016 2006-07-27  Jackson Harper  <jackson@ximian.com>
3017
3018         * TreeView.cs: Make sure the visible order is computed when we
3019         attempt to size the scrollbars (for trees that mess with the
3020         scrolling when they shouldn't.
3021         - Make sure to give the scrollbars valid values.
3022
3023 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
3024
3025         * XplatUIX11.cs: Move motion compression code to where it
3026           has less performance impact
3027
3028 2006-07-26  Jackson Harper  <jackson@ximian.com>
3029
3030         * UpDownBase.cs: When the control is selected make the child
3031         controls non selectable, so that a click on them won't do a
3032         focus/unfocus cycle.
3033         - Don't give focus to the text box when the spinner is selected.
3034         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
3035
3036 2006-07-26  Chris Toshok  <toshok@ximian.com>
3037
3038         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
3039         satisfied with this solution.  If the bitmaps are small, we should
3040         just cache them in the PrintPreviewDialog and draw them here.
3041         Also, the layout is broken for the 2-up and 3-up cases.
3042
3043         * Theme.cs: add PrintPReviewControlPaint.
3044
3045         * PrintPreviewDialog.cs: first pass implementation.
3046
3047         * PrintPreviewControl.cs: first pass implementation.  No
3048         scrollbars yet.
3049
3050         * PrintDialog.cs: only validate fields if that particular portion
3051         of the UI is enabled.  Also, set the document's controller to a
3052         PrintControllerWithStatusDialog wrapping the document's print
3053         controller.
3054
3055         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
3056         bring up a SaveFileDialog (i hope we don't want to match the
3057         behavior of the crappy windows file entry) and set the
3058         PrinterSettings.PrintFileName accordingly.
3059
3060 2006-07-26  Jackson Harper  <jackson@ximian.com>
3061
3062         * ContainerControl.cs: Add a field that disables auto selecting
3063         the next control in a container when the container is activated.
3064         * UpDownBase.cs: Don't select the text box when the up down is
3065         selected.
3066
3067 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
3068
3069         * XEventQueue.cs: Added methods for peeking (used for compression
3070           of successive events)
3071         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
3072           mouse move events (fixes #78732)
3073
3074 2006-07-25  Jackson Harper  <jackson@ximian.com>
3075
3076         * UpDownBase.cs: Use an internal class for the textbox so that we
3077         can control focus.  the updown control should always have focus,
3078         if either the text area or the buttons are clicked.
3079         - Send the key messages to the textbox, since it never actually
3080         has focus
3081         - Activate and decativate the textbox caret.
3082
3083 2006-07-24  Jackson Harper  <jackson@ximian.com>
3084
3085         * Control.cs: Use the directed select when selecting a control,
3086         this way the container controls override will get called and the
3087         whole ActiveControl chain will get triggered.  TODO: probably need
3088         to make sure this gets done everywhere instead of the old
3089         Select(Control).
3090         * ContainerControl.cs: Implement the directed Select method to
3091         find and activate the correct child control.    
3092         
3093 2006-07-22  Mike Kestner  <mkestner@novell.com>
3094
3095         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
3096         menu handling code so that clicks without a grab work too.
3097         [Fixes #78914]
3098
3099 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
3100
3101         * FileDialog.cs: Enable the BackButton when dirstack has one element.
3102           Added some small optimizations.
3103
3104 2006-07-21  Matt Hargett  <matt@use.net>
3105
3106         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
3107
3108 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
3109
3110         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
3111           tests pass and match MS in some strange border cases.
3112
3113 2006-07-21  Chris Toshok  <toshok@ximian.com>
3114
3115         * ThemeWin32Classic.cs: handle drawing of the relation links and
3116         parent row buttons.
3117
3118         * Theme.cs: change args to DataGridPaintParentRow.
3119
3120         * DataGrid.cs: Don't use controls for the relation links and
3121         parent buttons, so we have to handle all their interactions in
3122         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
3123         when we're navigating through child tables, so we can reinstate
3124         selection, expanded state, current cell, etc.
3125
3126 2006-07-20  Chris Toshok  <toshok@ximian.com>
3127
3128         * ToolBar.cs: When we redraw a button, for whatever reason,
3129         there's no reason to redraw the entire toolbar.  Also, don't call
3130         Control.Refresh from within Redraw, as it's much heavier than
3131         Invalidate (which is really what we want).
3132
3133 2006-07-20  Chris Toshok  <toshok@ximian.com>
3134
3135         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
3136         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
3137         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
3138         traces from within a debug IBindingList datasource
3139         (in mono/winforms/datagrid) for *days*, I've finally gotten things
3140         to work in a similar fashion.
3141
3142 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3143
3144         * ListBox.cs: Don't call Sort () when setting 
3145         the Sorted property to false (avoid an unnecessary sort).
3146
3147 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3148
3149         * ListControl.cs: DataSource should throw an ArgumentException
3150         instead of a normal exception when the argument is not of the 
3151         correct type.
3152
3153 2006-07-20  Mike Kestner  <mkestner@novell.com>
3154
3155         * Control.cs: add InternalPreProcessMessage to allow us to steal
3156         key events before MWF gets its paws on them.  Adapted from a
3157         suggestion by eno.
3158         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
3159         up/down/left/right navigation. Override the new internal control
3160         method to steal the events since they never make it to WndProc.
3161         * ToolBarButton.cs: don't worry about pushed when setting hilight
3162         since the drawing code prefers pushed to hilight. Invalidate on 
3163         Hilight changes. Fixes #78547 and #78525.
3164
3165 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
3166
3167         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
3168           the canvas size. Fixes #78868
3169
3170 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
3171
3172         * Splitter.cs: Track requested split position until first layout
3173           is performed. Fixes #78871
3174
3175 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
3176
3177         * Application.cs: Removed code that forces 1.x for the version
3178           number if the version started with 0. Not sure why that code was
3179           there and I couldn't find any bugs that indicated we needed it.
3180           Fixes #78869
3181
3182 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
3183
3184         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
3185           ResetDefaults(), just write some output to the console until it's
3186           implemented. Fixes bug #78907 for now. Eliminated two warnings.
3187
3188 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
3189
3190         * PropertyGridView.cs: set StartPosition of drop down forms
3191         so they appear in correct initial spot.  Fixes #78190.
3192
3193 2006-07-19  Mike Kestner  <mkestner@novell.com>
3194
3195         * ThemeWin32Classic.cs: use parent background color when drawing
3196         flat toolbars.  Restructure the conditionals to make sure non-flat
3197         non-Divider toolbars are filled too.  Fixes #78837.
3198
3199 2006-07-19  Mike Kestner  <mkestner@novell.com>
3200
3201         * ListBox.cs: Sort on collection changes even if the handle
3202         isn't created yet.  Fixes #78813.
3203
3204 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3205
3206         * ListControl.cs: DisplayMember should never be null,
3207         and now we assign String.Empty when null is passed to it (this
3208         is the .Net way).
3209
3210 2006-07-17  Mike Kestner  <mkestner@novell.com>
3211
3212         * ListViewItem.cs: restructure Font and subitem Font handling 
3213         to hold a specific font and refer back to owner on null.
3214         Fixes #78761.
3215
3216 2006-07-17  Mike Kestner  <mkestner@novell.com>
3217
3218         * ToolBar.cs: bandaid for side-effect of previous patch which was
3219         discarding explicit heights for non-AutoSize toolbars.  Need to
3220         extend my format tester to deal with AutoSize=false. Fixes #78864.
3221
3222 2006-07-15  Jackson Harper  <jackson@ximian.com>
3223
3224         * LabelEditTextBox.cs:
3225         * TreeView.cs: Use a new LabelEdit class for node editing, this
3226         class automatically 'closes' itself when it gets the enter key or
3227         loses focus.
3228         - Use the client rectangle when setting the trees scrollbars, so
3229         border style is taken into account.
3230         
3231 2006-07-14  Jackson Harper  <jackson@ximian.com>
3232
3233         * TreeNode.cs:
3234         * TreeView.cs: Make the editing work similar to MSs, firing the
3235         events correctly and ending edits correctly.
3236
3237 2006-07-14  Mike Kestner  <mkestner@novell.com>
3238
3239         * ToolBarButton.cs:
3240         * ToolBar.cs: layout restructuring and redraw enhancements to support
3241         formatting changes gracefully, like setting TextAlign, ImageList, 
3242         ButtonSize, and Appearance.  Handles explicit button sizing quirks
3243         of the MS controls.  Things like flat toolbars ignoring button size
3244         but becoming constant sized at the largest button's size.  Normal
3245         toolbars with an image set cannot be shrunk smaller than the image,
3246         but text can be clipped/ignored.
3247         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
3248         is zero.  Seems like DrawString should be smart enough to not put
3249         anything on screen though. Also trim labels and ellipsize at the char
3250         boundary, not word.
3251         Fixes #78711 and #78483.
3252
3253 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3254
3255         * FolderBrowserDialog.cs: Disable "New Folder" button and
3256           "New Folder" contextmenu menuitem if a folder like "My Computer"
3257           is selected.
3258
3259 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3260
3261         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
3262         * FolderBrowserDialog.cs:
3263           - Use MWFConfig to store and read size and position settings
3264           - Added code to create a new folder (button or context menu).
3265             Use TreeView labeledit to change the name of the new folder.
3266
3267 2006-07-14  Jackson Harper  <jackson@ximian.com>
3268
3269         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
3270         when the tree is scrolled we end editing.
3271
3272 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3273
3274         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
3275           Down arrows
3276
3277 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
3278
3279         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
3280         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
3281         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
3282         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
3283         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
3284         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
3285         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
3286         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
3287         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
3288         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
3289         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
3290         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
3291         ListViewItemSelectionChangedEventHandler.cs,
3292         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
3293         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
3294         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
3295         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
3296         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
3297         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
3298         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
3299         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
3300         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
3301         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
3302         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
3303         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
3304         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
3305         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
3306         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
3307         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
3308         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
3309         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
3310         WebBrowserNavigatingEventHandler.cs, 
3311         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
3312
3313 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
3314
3315         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
3316         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
3317         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
3318         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
3319         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
3320         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
3321         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
3322         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
3323         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
3324         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
3325         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
3326         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
3327         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
3328         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
3329         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
3330         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
3331         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
3332         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
3333         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
3334         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
3335         ListViewItemStates.cs, MaskFormat.cs: Added
3336
3337 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
3338
3339         * PropertyGridView.cs: Fix keyboard navigation of drop down.
3340         Patch from eno for bug 78558.
3341         
3342 2006-07-13  Jackson Harper  <jackson@ximian.com>
3343
3344         * TreeView.cs: When an edit is finished make sure that the
3345         selected node is visible.
3346         - When setting the top/bottom use the scrollbars is_visible, so
3347         everything will be set correctly even if the tree isn't visible
3348         yet.
3349
3350 2006-07-13  Jackson Harper  <jackson@ximian.com>
3351
3352         * ComboBox.cs: Revert the item->index part of my previous patch.
3353         * TreeView.cs: Use LostFocus instead of Leave for detecting when
3354         the edit box has lost focus (duh).
3355         - Just make the edit box not visible when we get return, that will
3356         take the focus, which will call EndEdit
3357         * TreeNode.cs When we start editing, notify the treeview.
3358
3359 2006-07-12  Jackson Harper  <jackson@ximian.com>
3360
3361         * ComboBox.cs: Clear out old items before setting the item list.
3362         This prevents databound controls from having their items added
3363         twice.
3364         - Switch the combobox to use indices whereever possible instead of
3365         using Item's.  This allows usto navigate through lists that have
3366         more then one item with the same string value (ie a, b, b, a).
3367         - Scroll the listboxes scrollbar when a non visible item is
3368         highlighted
3369         - Allow keypress to cycle through all the possible values. For
3370         example if you have b1, b2, b3 and hold down the B key all the
3371         values will be cycled through.
3372         
3373 2006-07-12  Jackson Harper  <jackson@ximian.com>
3374
3375         * TextBoxBase.cs:
3376         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
3377         this using the internal methods.
3378         * Control.cs: Add OnGotFocusInternal.  A new method that allows
3379         controls to "override" OnGotFocus and change focus behavior if
3380         needed.
3381         - Same thing for LostFocus
3382         * ComboBox.cs: Pass off focus to the text control properly.
3383
3384 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
3385
3386         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
3387         * FolderBrowserDialog.cs: Almost a complete rewrite.
3388           - Better support for Environment.Specialfolders
3389           - Added support for MWFVFS
3390           - Made setting SelectedPath work
3391
3392 2006-07-12  Jackson Harper  <jackson@ximian.com>
3393
3394         * Control.cs: Optimze getting all the controls.
3395
3396 2006-07-11  Jackson Harper  <jackson@ximian.com>
3397
3398         * ContainerControl.cs: Override SETFOCUS in the container control,
3399         so that it is not selected on mouse click.
3400
3401 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
3402
3403         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
3404           Hopefully we will have a better way once all of focus is complete.
3405
3406 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
3407
3408         * ThemeWin32Classic.cs: Commented out some debug code and fixed
3409           a compile error with csc.
3410
3411 2006-07-11  Jackson Harper  <jackson@ximian.com>
3412
3413         * Control.cs: When hiding a control only select the next control
3414         if the current control was focused.
3415         - Don't handle enter/leave when setting/killing focus, this is
3416         done by the container control.
3417         - Remove is_selected, it's not needed anymore.
3418         - Add utility methods for selecting a child control, and for
3419         firing the Enter/Leave events.
3420         * ContainerControl.cs: When a control is activated fire the
3421         enter/leave events.
3422         - Don't wrap when processing the tab key, so that focus can be
3423         moved outside of the container.
3424         - Use the correct active control
3425
3426 2006-07-11  Jackson Harper  <jackson@ximian.com>
3427
3428         * ComboBox.cs: Remove some debug code that was blinding me.
3429         * UpDownBase.cs: These controls actually aren't implicit, they are
3430         visible to the user.
3431
3432 2006-07-10  Chris Toshok  <toshok@ximian.com>
3433
3434         * DataGrid.cs: move back to the is_adding boolean field.  god i
3435         hate this is_editing/is_adding/is_changing stuff.
3436
3437 2006-07-10  Chris Toshok  <toshok@ximian.com>
3438
3439         * DataGridTableStyle.cs: just check if the property type is bool.
3440         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
3441         Don't use CanRenderType.
3442
3443         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
3444         if our text == NullText.  Remove CanRenderType.
3445
3446         * DataGridBoolColumn.cs: nuke CanRenderType.
3447
3448         * DataGrid.cs: reenable some code to end the current edit inside
3449         of set_CurrentCell.  This fixes the other 1.1.16 regression.
3450         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
3451         Also, remove the visible_row_count arg from CalcRowHeaders, since
3452         we don't need to worry about the actual height of the area.
3453
3454 2006-07-10  Chris Toshok  <toshok@ximian.com>
3455
3456         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
3457         mode, just return.
3458
3459         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
3460         the real sense of the IsInEditOrNavigateMode property (true =
3461         navigate, false = edit).  Also, update OnKeyPress to reflect this.
3462
3463         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
3464         column style exists, we still need to set its property descriptor
3465         to match up with our list manager.
3466
3467 2006-07-10  Chris Toshok  <toshok@ximian.com>
3468
3469         * ThemeWin32Classic.cs: implement the new row/header painting
3470         approach.  The parent row painting will likely go away and
3471         replaced with label controls, but the rest seems to work ok (and
3472         efficiently).
3473
3474         * Theme.cs: change the way we draw datagrid rows.  we don't draw
3475         the row headers as a block now.  Instead we draw them in the
3476         normal draw-row loop.  Add some calls for drawing parent rows and
3477         relation rows.
3478
3479         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
3480         a default table style.  Set the defaults from ThemeEngine.Current,
3481         not SystemColors.  Fix lots of misc issues with property setters.
3482
3483         * DataGrid.cs: move loads of style information out of this class
3484         as it's being duplicated with DataGridTableStyle.  keep track of a
3485         special DataGridTableStyle for the properties we used to mirror
3486         here.  Switch all the style properties to access this table style
3487         instead of instance fields of this class.  Also add a internal
3488         class to represent parent rows (more needs to be stored here, like
3489         the selection state from the parent table, as well as the
3490         expansion state.)  Also, for datasources with relations, do the
3491         right thing for collapse/expand, and add support for the
3492         navigation/parent row buttons.
3493
3494         Lastly, fix the crash in the 1.1.16 build.
3495
3496         * GridTableStylesCollection.cs: make the explicit interface
3497         implementations call the class's methods as opposed to duplicating
3498         them.
3499
3500         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
3501         0 so the text doesn't jump around when we move the cursor.
3502
3503 2006-07-10  Jackson Harper  <jackson@ximian.com>
3504
3505         * TextBoxBase.cs:
3506         * ListBox.cs: Match MS's ToString (this makes debugging focus
3507         stuff infinitely easier).
3508
3509 2006-07-10  Jackson Harper  <jackson@ximian.com>
3510
3511         * Control.cs (SelectNextControl): When checking the control's
3512         parent use this instead of ctrl.parent so that null can be passed
3513         to SelectNextControl. (I have unit tests for this).
3514         - Remove unused var.
3515
3516 2006-07-10  Chris Toshok  <toshok@ximian.com>
3517
3518         * CurrencyManager.cs: correct one regression, the removal of the
3519         finalType field.  Also, add a MonoTODO on CanAddRows, implement
3520         Refresh() correctly, and fix some event emission in
3521         ListChangedHandler.
3522
3523 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
3524
3525         * FileDialog.cs: Don't use brackets for new folders if they exist
3526           under *nix. Instead use -(number of existing folders +1).
3527
3528 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
3529
3530         * FileDialog.cs:
3531           - Fixed really nasty bug #78771
3532           - Don't block the whole GUI when reading directories with a lot of
3533             entries. Use an other thread instead and call BeginInvoke to
3534             update the ListView in MWFFileView
3535
3536 2006-07-07  Chris Toshok  <toshok@ximian.com>
3537
3538         * Control.cs (Dispose): release any Capture when disposing.
3539
3540 2006-07-07  Chris Toshok  <toshok@ximian.com>
3541
3542         * LinkLabel.cs (Select): if we chain up to the parent, set
3543         focused_index to -1 so we'll search for the first available link
3544         the next time the user tabs into us.  Also, if the direction is
3545         backward and focused_index == -1, start the search from the last
3546         element.
3547
3548 2006-07-07  Chris Toshok  <toshok@ximian.com>
3549
3550         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
3551         is beyond the end of the text, don't do anything.
3552         (CreateLinkPieces): set our ControlStyles.Selectable based on
3553         whether or not we have any links.
3554         (Link.Invalidate): use a loop instead of foreach.
3555         (Link.set_Start): null out owner.sorted_links so it'll be
3556         recreated by CreateLinkPieces.
3557
3558 2006-07-06  Chris Toshok  <toshok@ximian.com>
3559
3560         * LinkLabel.cs: revert the SetStyle change.
3561
3562 2006-07-06  Chris Toshok  <toshok@ximian.com>
3563
3564         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
3565         (OnEnableChanged): s/Refresh/Invalidate
3566         (OnGotFocus): if we have a focused index already, refocus it (so
3567         if we mouse out/in to the window it'll focus the right link).
3568         (OnKeyDown): move the tab handling out of here.
3569         (OnLostFocus): don't set focused_index to -1, so we can refocus it
3570         when we lose focus.
3571         (OnMouseDown): don't Capture here - Control handles it.  Also,
3572         focus the active link.
3573         (OnMouseUp): don't deal with Capture.
3574         (OnPaintBackgroundInternal): remove.
3575         (OnTextAlignChanged): CreateLinkPieces before calling the
3576         superclass's method.
3577         (OnTextChanged): call CreateLinkPieces before calling superclass's
3578         method.
3579         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
3580         move around.
3581         (Select): implement this, moving the selection between different
3582         links, and call parent.SelectNextControl if we don't have another
3583         link to focus in the given direction.
3584         (CreateLinkPieces): call Invalidate instead of Refresh.
3585         
3586 2006-07-06  Chris Toshok  <toshok@ximian.com>
3587
3588         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
3589         new LinkLabel internals.
3590
3591         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
3592         over pieces looking for active/focused/etc links.  also, deal with
3593         runs of text (and links) with embedded \n's in them, and use
3594         MeasureCharacterRanges instead of MeasureString to figure out the
3595         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
3596         two-step.
3597
3598 2006-07-04  Jackson Harper  <jackson@ximian.com>
3599
3600         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
3601         XKB or key auto repeat, do it manually.  Without key auto repeat,
3602         when a key is held down we get key press, key release, key press,
3603         key release, ... with auto repeat we get key press, key press, key
3604         press ..., and then a release when the key is actually released.
3605
3606 2006-07-03  Jackson Harper  <jackson@ximian.com>
3607
3608         * TabControl.cs:
3609         * ThemeWin32Classic.cs: Tabs do not obey normal background color
3610         rules, they are always control color regardless of the background
3611         color.
3612
3613 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
3614
3615         * FileDialog.cs: Added internal class MWFConfig.
3616           Removed Registry support and replaced it with support for the new
3617           MWFConfig class. See MWFConfig comments for more information.
3618
3619 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
3620
3621         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
3622           rectangle. Added some patches from eno from bug #78490 and fixed
3623           the arrow position for small up and down CPDrawScrollButtons.
3624
3625 2006-06-30  Jackson Harper  <jackson@ximian.com>
3626
3627         * InternalWindowManager.cs: Remove some debug code.
3628         * Form.cs: When an MdiParent is set to null, the window is
3629         "detatched" and becomes a normal window.
3630         * MdiClient.cs: Don't bring the new child form to the front until
3631         it is activated (setting it as active does this), this makes the
3632         previously active forms titlebar get redrawn as inactive.
3633
3634 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
3635
3636         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
3637           with later controls
3638
3639 2006-06-29  Mike Kestner  <mkestner@novell.com>
3640
3641         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
3642         arrow in keynav state.  Fixes #78682.
3643
3644 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
3645
3646         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
3647           order (fixes #78393)
3648
3649 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
3650
3651         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
3652           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
3653           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
3654           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
3655           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
3656           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
3657           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
3658           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
3659           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
3660           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
3661           enumerations (FlagsAttribute, SerializableAttribute, added/removed
3662           values)
3663
3664 2006-06-28  Mike Kestner  <mkestner@novell.com>
3665
3666         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
3667
3668 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
3669
3670         * PropertyGrid.cs,
3671           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
3672           item lines from other area (It also makes BackColor consistent and
3673           compatible with .NET). Fixed bug #78564.
3674
3675 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
3676
3677         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
3678         Patch from Eno for #78555.
3679
3680 2006-06-27  Chris Toshok  <toshok@ximian.com>
3681
3682         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
3683
3684         * DataGridColumnStyle.cs: same.
3685
3686         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
3687         
3688         * DataGridDrawingLogic.cs: nuke.
3689
3690 2006-06-27  Chris Toshok  <toshok@ximian.com>
3691
3692         * DataGridTableStyle.cs: clean up the constructors, and build the
3693         list of child relations for this table.  I have no idea if this is
3694         where we should be doing it (it probably isn't), but since we're
3695         already iterating over the properties..
3696
3697         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
3698         struct and array for keeping track of row information, similar to
3699         what's shown in a hack on
3700         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
3701
3702         * Theme.cs: be consistent about the naming of DataGrid methods,
3703         prefering ColumnWidths and RowHeights over columnsWidths and
3704         RowsHeights.
3705
3706         * ThemeWin32Classic.cs: same, and also add support for variable
3707         sized rows (and the +/- expansion icons for related rows).
3708
3709 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
3710
3711         * TextBoxBase.cs: Applied Eno's patch from #78660
3712
3713 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
3714
3715         * Form.cs (ScaleCore): We don't want to scale our form if it's
3716           state is minimized or maximized, but we still need to scale our
3717           child windows. Also, added try/finally block to ensure layout
3718           gets reset (Fixes #78697)
3719
3720 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
3721
3722         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
3723
3724 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
3725
3726         * Form.cs: Fixed c+p error and added check to resize form if minimum
3727           size is bigger than current size (Fixes #78709)
3728
3729 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
3730
3731         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
3732
3733 2006-06-26  Mike Kestner  <mkestner@novell.com>
3734
3735         * ComboBox.cs: only do Keypress handling in the combo when there  
3736         are items in the collection. Fixes #78710.
3737
3738 2006-06-26  Chris Toshok  <toshok@ximian.com>
3739
3740         * Binding.cs: make this work bi-directionally.  also, clear up
3741         other mixups between Push/Pull Data (e.g. we're supposed to pull
3742         data when validating).
3743
3744         * BindingManagerBase.cs: trim some fully qualified collection
3745         types.
3746
3747         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
3748
3749 2006-06-23  Chris Toshok  <toshok@ximian.com>
3750
3751         * PropertyManager.cs: It appears (according to the unit tests)
3752         that PropertyManager doesn't use
3753         PropertyDescriptor.AddValueChanged to track propery value changes
3754         in its datasource, but uses the same scheme as Binding, where it
3755         looks for a <Property>Changed event and binds to it.
3756
3757         Also, according to the docs, IsSuspended always returns false for
3758         a property manager with a non-null datasource.
3759
3760 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
3761
3762         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
3763           need to update the actual DialogResult. (Fixes #78613)
3764
3765 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
3766
3767         * Form.cs (ShowDialog): Release any captures before running the
3768           new message pump (fixes #78680)
3769
3770 2006-06-22  Mike Kestner  <mkestner@novell.com>
3771
3772         * ListView.cs: Layout column widths properly in details mode even 
3773         if HeaderStyle.None is set.  Fixes #78691.
3774
3775 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
3776
3777         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
3778
3779 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
3780
3781         * Control.cs (ContainsFocus): Using new driver method to get focused
3782           window, instead of trying to use internal tracking var, which can
3783           recursion issues (Fixes #78685)
3784         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3785           XplatUIWin32.cs: Added GetFocus method to return focused window
3786
3787 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3788
3789         * ColorDialog.cs: when the mouse button is pressed inside the color
3790         matrix, don't let the cursor move out of it until the button is
3791         released, which is the behavior on windows. Changed 'colours' by
3792         'colors' to use the same word consistently.
3793
3794 2006-06-21  Chris Toshok  <toshok@ximian.com>
3795
3796         * DataGrid.cs: add in some basic navigation stuff (navigating to a
3797         child relation and back, using a stack).  Also, remove
3798         GetDataSource and the code that calls it - it's not needed.  Also,
3799         track CurrencyManager.ListName's removal.
3800
3801 2006-06-21  Chris Toshok  <toshok@ximian.com>
3802
3803         * CurrencyManager.cs: push some of the original type checking from
3804         BindingContext.CreateBindingManager to here, and remove some of
3805         the finalType stuff.  Need more tests to make sure I've got the
3806         ListName part right, and we might need more in SetDataSource.
3807
3808         * PropertyManager.cs: add a ctor that takes just the datasource,
3809         and no property name.  Make SetDataSource work with a null
3810         property_name, and make Current return the data_source if the
3811         property descriptor is null.  this makes 'string foo = "hi";
3812         BindingContext[foo].Current' return "hi" as it should.
3813
3814         * RelatedCurrencyManager.cs: make this code more generic - there's
3815         no reason the parent manager has to be CurrencyManager, and
3816         there's no reason to pass the DataRelation.  It suffices to use a
3817         BindingManagerBase and PropetyDescriptor.
3818
3819         * RelatedPropertyManager.cs: make a similar change here.
3820         
3821         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
3822         flower I knew it could be.
3823
3824 2006-06-20  Chris Toshok  <toshok@ximian.com>
3825
3826         * PropertyManager.cs: the PropertyChangedHandler is invoked when
3827         data in the source has changed and we need to update the control,
3828         so s/PullData/PushData.
3829
3830         * CurrencyManager.cs: Refresh is meant to update the control from
3831         data in the datasource.  So, s/PullData/PushData.
3832
3833         * BindingContext.cs: add more ugliness (we weren't handling the
3834         case where data_source = DataTable and data_member = column_name).
3835
3836         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
3837         from the perspective of the datasource.  PullData pulls from the
3838         control, PushData pushes to the control.
3839
3840 2006-06-20  Chris Toshok  <toshok@ximian.com>
3841
3842         * BindingContext.cs: rewrite the CreateBindingManager code to
3843         handle navigation paths more or less properly.  This could
3844         definitely stand some more work, in particular to push the
3845         recursion up to the toplevel.  But that relies on fixes in other
3846         places (System.Data comes to mind).
3847
3848         Also, move to a flat hashtable (and encode the twolevel nature of
3849         the dictionary into the hash key).  This lets us implement the
3850         IEnumerable.GetEnumerator method.
3851
3852         * RelatedCurrencyManager.cs: new class.  Update our view based on
3853         our relation and our parent CurrencyManager's position.
3854
3855         * CurrencyManager.cs: split out some logic from the ctor into
3856         SetView, so it can be called from the new RelatedCurrencyManager
3857         subclass.
3858
3859         * RelatedPropertyManager.cs: new class.  Update our datasource
3860         based on the position of our parent CurrencyManager.
3861
3862         * PropertyManager.cs: split out some logic from the ctor into
3863         SetDataSource, so it can be called from the new RelatedDataSource
3864         subclass.  Also, make the Current getter return the value
3865         of the PropertyDescriptor, not the data_source.
3866
3867         * Binding.cs: no need to duplicate the string splitting code here.
3868
3869 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
3870
3871         * Control.cs:
3872           - set_Enabled: OnEnabledChanged is not called if the inherited state 
3873             of the control is not altered, even though  we might be changing the
3874             internal state of the control (#78458)
3875           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
3876             OnEnabledChanged, to allow easy altering of any child window state
3877           - OnEnabledChanged: Added code to enable/disable driver window state
3878           - OnParentEnabledChanged: Instead of firing the event, call 
3879             OnEnabledChanged, which will fire the event and also a) set driver
3880             window state and pass the enabled state to any grandchildren (#78458)
3881
3882 2006-06-19  Jackson Harper  <jackson@ximian.com>
3883
3884         * InternalWindowManager.cs: We don't set the cursor explicitly
3885         thats done via the response to NCHITTESTs.
3886         - Don't need to adjust for titlebar heights anymore, the
3887         coordinates are coming in the correct coordinates now (see peters
3888         last patch).
3889
3890
3891 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
3892
3893         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
3894           being translated relative to whole window, instead of client window.
3895           That caused broken offsets on mouseclick (and caused gas for our
3896           InternalWindowManager)
3897
3898 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3899
3900         * TextControl.cs:
3901           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
3902           - Undo(): Added replay of cursor move on DeleteChars action; added
3903             calling Undo() again if a recorded cursor move is invalid (to
3904             ensure that some action is performed on Undo)
3905         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
3906
3907 2006-06-16  Jackson Harper  <jackson@ximian.com>
3908
3909         * MdiClient.cs: Instead of just sizing maximized windows when
3910         there is a resize we also have to adjust the Y of minimized
3911         windows, so they stay pinned to the bottom of the mdi container.
3912         - Eliminate separate tracking of the active control, we can just
3913         get this from the controls collection.
3914         - Paint the decorations for the newly activated titlebar so we get
3915         a pretty blue bar.
3916         * InternalWindowManager.cs:
3917         * ThemeWin32Classic.cs: Minimized windows get all three buttons
3918         even if they are a tool window.
3919         
3920 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3921
3922         * TextControl.cs (Undo): Handle non-existent cursor locations in the
3923           undo buffer, these can happen when text was deleted and the cursor
3924           was recorded first. Since we will also have a recorded cursor
3925           after the delete this is not an issue. (Fixes #78651)
3926
3927 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
3928
3929         * AccessibleObject.cs: Remove dependence on Control.is_selected;
3930           instead properly track control states internally (allows us to
3931           remove is_selected from Control)
3932
3933 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3934
3935         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
3936         whose width is not a multiple of 8.
3937
3938 2006-06-13  Jackson Harper  <jackson@ximian.com>
3939
3940         * MdiClient.cs:  Only maximize the next child if the current one
3941         is maximized.
3942
3943 2006-06-13  Chris Toshok  <toshok@ximian.com>
3944
3945         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
3946         modified.  Also, guard against grid or grid_drawing being null in
3947         Invalidate.
3948
3949         * DataGrid.cs: Reformat tons of getters/setters.  In the
3950         DataMember setter, just call SetNewDataSource instead of
3951         duplicating some of its functionality.  In SetNewDataSource, don't
3952         check ListManager for null, since the property getter creates the
3953         object if needed.
3954
3955         * DataGridTableStyle.cs: don't set TableStyle or call
3956         SetDataGridInternal on the column here, it's done in
3957         GridColumnStylesCollection.Add.
3958
3959         * GridColumnStylesCollection.cs: fix all the explicit interface
3960         implementations to just call our methods.  Nuke AddInternal() and
3961         move the body of it to Add().  Also, add a call to
3962         column.SetDataGridInternal to Add().
3963
3964         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
3965         base()+duplicate code.  Also, use the Format property instead of
3966         format to generate an Invalidate ala MS.  Lastly, create the
3967         textbox here, unconditionally.
3968         (set_Format): call Invalidate.
3969         (get_TextBox): no need to call EnsureTextBox.
3970         (Commit): remove the message box.
3971         (Edit) remove the call to EnsureTextBox.
3972         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
3973         (EnterNullValue): no need to check textbox for null.
3974         (HideEditBox): no need to check textbox for null.
3975         (SetDataGridInColumn): add the textbox to the grid's controls.
3976         (EnsureTextBox): nuke.
3977         
3978 2006-06-13  Jackson Harper  <jackson@ximian.com>
3979
3980         * MdiWindowManager.cs: Hook up to the maximized menus paint event
3981         and redraw the buttons when needed. Unhook when the window is
3982         unmaximized.
3983         * MainMenu.cs: Add an internal Paint event, the mdi window manager
3984         needs this so that it can redraw its buttons when the menu is
3985         repainted.
3986         * InternalWindowManager.cs:
3987         * Form.cs: The method order has changed for DrawMaximizedButtons,
3988         so that it can be a PaintEventHandler.
3989         
3990 2006-06-13  Jackson Harper  <jackson@ximian.com>
3991
3992         * MdiClient.cs: When we close a maximized mdi window, the next mdi
3993         window is activated and maximized, even if it wasn't before.
3994         - When  a new window is activated repaint the decorations of the
3995         old one, so that it no longer has the Active "look" (the blue
3996         titlebar).
3997         * InternalWindowManager.cs: Open up CreateButtons to base classes
3998         so they can recreate the buttons on state changes.
3999         - If a window is maximized give it all three buttons
4000         * MdiWindowManager.cs: Create the titlebar buttons when the state
4001         is changed, this is needed because a toolwindow will not have all
4002         three buttons until it is maximized.
4003
4004 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
4005
4006         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
4007           Fixed bug #78609.
4008
4009 2006-06-12  Jackson Harper  <jackson@ximian.com>
4010
4011         * KeysConverter.cs: Make sure we handle the Ctrl special case
4012         if its the only key.
4013         
4014 2006-06-12  Jackson Harper  <jackson@ximian.com>
4015
4016         * Theme.cs: Add a method to get the size of a managed window
4017         toolbar button.
4018         * InternalWindowManager.cs: Remove the ButtonSize property, this
4019         should be retrieved from the theme.
4020         * MdiWindowManager.cs: Get the button size from the theme
4021         * ThemeWin32Classic.cs: Make the method to get the managed window
4022         titlebar button size public.
4023         - Handle the different button sizes of maximized toolwindows
4024         (should match any maximized window).
4025         - Get the titlebar height from the theme, not the WM (which gets
4026         it from the theme).
4027
4028 2006-06-12  Jackson Harper  <jackson@ximian.com>
4029
4030         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
4031         event down to the mdi window manager.
4032         - Expose some extra stuff to base classes
4033         - Make sure to end the Capture on an NC Mouse up, so that we can
4034         get double clicks properly, and the sizing doens't stick.
4035         - When doing PointToClient contain it in the workable desktop
4036         area, this prevents windows from changing size when the cursor is
4037         pulled outside of the working area while sizing.
4038         * MdiWindowManager.cs: When we get a double click maximize the
4039         window.
4040         - Reset the cursor after handling mode changes.
4041
4042 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
4043
4044         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
4045           current desktop, instead of just assuming a 0, 0 origin. This
4046           is needed for our internal window manager, to know the top
4047           margin of the desktop
4048
4049 2006-06-12  Chris Toshok  <toshok@ximian.com>
4050
4051         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
4052         we need this to get rid of the selected background in the bool
4053         column.
4054         (CancelEditing): move the ConcedeFocus call to above the Abort
4055         call.  Also, set is_changing to false and invalidate the row
4056         header if we were changing before.
4057         (ProcessKeyPreviewInternal): remove, since noone outside this
4058         class calls it anymore.  Roll the code into ProcessKeyPreview.
4059         (EndEdit): remove the internal version.
4060         (InvalidateCurrentRowHeader): make private.
4061
4062         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
4063         Keys.Escape handling (and with it the last call to
4064         DataGrid.EndEdit from outside the class.)
4065
4066
4067 2006-06-12  Chris Toshok  <toshok@ximian.com>
4068
4069         * DataGridTextBox.cs (.ctor): isedit defaults to false.
4070         (OnKeyPress): set isedit to true.
4071         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
4072         already handled by the grid.
4073
4074         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
4075         right.  ugh.
4076         (set_DataSource): SetDataSource always returns true, so stop
4077         putting it in an if statement.
4078         (EndEdit): get rid of some {}'s
4079         (ProcessGridKey): return true in case Keys.Escape.
4080         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
4081         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
4082         PositionChanged, stopped connecting to CurrentChanged.
4083         (GetDataSource): simplify this a bunch.
4084         (SetDataSource): change return type from bool to void.
4085         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
4086         to this, and make sure we don't set ListManager.Position inside
4087         set_CurrentCell.
4088         (OnListManagerItemChanged): if we're passed an actual index,
4089         redraw that row.
4090
4091         * CurrencyManager.cs (set_Position): don't call PullData here.
4092
4093 2006-06-09  Jackson Harper  <jackson@ximian.com>
4094
4095         * TreeNode.cs:  Recalculate the visible order before doing the
4096         Expand/Collapse Below calls, because those calls generate an
4097         expose.
4098         - Reduce calls to the TreeView property, which is mildly expensive
4099         by using a local var.
4100         * Form.cs: Layout the MDI child windows when creating the parent
4101         form.
4102         - Don't use the internal constructor anymore
4103         * MdiClient.cs: use the parent form width/height (if available)
4104         when laying out the child windows, we do this because the
4105         mdiclient isn't docked yet when the initial layout is done.
4106         - Don't need an internal constructor anymore.
4107
4108 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4109
4110         * FileDialog.cs: handle access errors when trying to create a folder
4111         or changing to a directory. No need to initialize out parameters.
4112
4113 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
4114
4115         * FileDialog.cs: Append a number when creating a new folder if the
4116           folder already exists (use parenthesis instead of square brackets)
4117
4118 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
4119
4120         * FileDialog.cs:
4121           - Disabled registry support for windows and added better registry
4122             error checking for other systems (need to investigate why it
4123             works perfectly on my system)
4124           - If a folder already exist show an error MessageBox instead of
4125             trying to create an indexed name.
4126           - Fixed a non intentional typo.
4127
4128 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4129
4130         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
4131
4132 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
4133
4134         * FileDialog.cs: When creating a new folder don't crash if the
4135           folder already exists.
4136
4137 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
4138
4139         * FileDialog.cs: Allmost a complete rewrite.
4140           - added a "virtual" file system that handles the differences
4141             between unix and windows file systems (especially the directory
4142             structure). Moved most of the directory and file handling code
4143             into the vfs.
4144             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
4145             UnixFileSystem and FSEntry.
4146           - Recently used folder/directory, size, location and used file names
4147             (file name ComboBox) are now stored in the registry and get read
4148             before the dialog shows up (fixes part 6 of bug #78446).
4149           - Creation of new folders/directories is now possible (context menu
4150             or ToolBar). Added TextEntryDialog for this that fills in the gap
4151             until ListView.LabelEdit works.
4152           - Fixed cursor handling (bug #78527) and focus handling for
4153             PopupButtonPanel
4154           - Various "Search in" ComboBox enhancements. The content of the
4155             dropdown listbox now almost matches ms.
4156           - Changed the behaviour when the user switches to SpecialFolder
4157             Recent to show the ListView in View.Details.
4158           - Beside using the ToolBar to change the View property of the
4159             file ListView it is now possible to use the context menu too.
4160
4161 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
4162
4163         * ComboBox.cs: Don't create a new ObjectCollection when an item
4164           gets inserted. Just insert the item in the existing object_items
4165           ArrayList.
4166
4167 2006-06-08  Jackson Harper  <jackson@ximian.com>
4168
4169         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
4170         that the treeview and root node checks are done also, this fixes a
4171         regression i caused in the unit tests.
4172
4173 2006-06-07  Wade Berrier <wberrier@novell.com> 
4174
4175         * RichTextBox.cs: More ISO8859-1 -> unicode
4176
4177 2006-06-07  Mike Kestner  <mkestner@novell.com>
4178
4179         * ComboBox.cs : use items to hold highlight/selection so that
4180         collection insertions don't require synchronization.
4181
4182 2006-06-07  Jackson Harper  <jackson@ximian.com>
4183
4184         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
4185         routine.  We now always keep the sized edge at the cursor instead
4186         of computing movement and adjusting rects.  There is one buglet
4187         with this method though when the cursor is moved over area that
4188         the window can not expand too (such as the toolbars on the desktop).
4189
4190 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4191
4192         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
4193         here. Fixes crash on startup in AlbumSurfer.
4194
4195 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
4196
4197         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
4198           values
4199
4200 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4201
4202         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
4203         statement to avoid calling XNextEvent which will block if another thread
4204         took the event that we were expecting. Fixes bug #78605.
4205
4206 2006-06-07  Mike Kestner  <mkestner@novell.com>
4207
4208         * ListView.cs : isolated checkbox clicking from the selection logic.
4209         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
4210
4211 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4212
4213         * Form.cs: Check that the value passed to Form.DialogResult
4214         is a valid enum value.
4215
4216 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4217
4218         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
4219         Computer'. Clicking it in the network view goes to 'My Computer'.
4220         Added CIFS filesystem type. Display the mount point of filesystems.
4221         Avoid duplicate mount points (happens for me with CIFS);
4222
4223 2006-06-06  Jackson Harper  <jackson@ximian.com>
4224
4225         * InternalWindowManager.cs: Draw the maximized windows buttons
4226         when resizing.
4227
4228 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4229
4230         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
4231         all other dialogs. Fixes bug #78585.
4232
4233 2006-06-06  Mike Kestner  <mkestner@novell.com>
4234
4235         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
4236         Only invalidate checkbox on checkstate changes to avoid flicker.
4237         * ListBox.cs : avoid unselect/select when clicking selected item.
4238         avoid reselection flicker for already multiselected items.
4239         Fixes #78382.
4240
4241 2006-06-06  Jackson Harper  <jackson@ximian.com>
4242
4243         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
4244         the parent form so that the menu is removed if needed.
4245
4246 2006-06-06  Mike Kestner  <mkestner@novell.com>
4247
4248         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
4249         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
4250
4251 2006-06-06  Mike Kestner  <mkestner@novell.com>
4252
4253         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
4254
4255
4256 2006-06-06  Jackson Harper  <jackson@ximian.com>
4257
4258         * Control.cs: Use the property (instead of the field) to get the
4259         default cursor so it is instantiated correctly.
4260         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
4261         resizes so we need to manually repaint the window decorations here.
4262         - Set the titlebar button locations as soon as they are created,
4263         otherwise they are not set correctly on win32.
4264         
4265 2006-06-06  Chris Toshok  <toshok@ximian.com>
4266
4267         * CurrencyManager.cs (set_Position): call PullData before
4268         OnCurrentChanged.
4269         (AddNew): after calling IBindingList.AddNew, update our
4270         listposition, and call OnCurrentChanged/OnPositionChanged (without
4271         calling PullData).
4272         (OnCurrentChanged): remove the call to PullData from here.
4273         (OnItemChanged): remove the call to PushData from here.
4274         (OnPositionChanged): change the test from == null to != null to
4275         match the other methods.
4276         (ListChangedHandler): the grossest part of the patch.  Implement
4277         this such that it passes the unit tests in CurrencyManagerTest and
4278         the output more or less matches that of MS's implementation.
4279  
4280 2006-06-06  Mike Kestner  <mkestner@novell.com>
4281
4282         * ListView.cs : only update check state on single click.
4283         * ThemeWin32Classic.cs : fix focus drawing for details view without
4284         fullrowselect.  Fixes #78454.
4285         * XplatUIX11.cs : fix for double click emission.
4286
4287 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
4288
4289         * PropertyGridView.cs : Applied Atsushi's patch to fix
4290         font dialog bug  (#78197).
4291
4292 2006-06-05  Jackson Harper  <jackson@ximian.com>
4293
4294         * TreeNode.cs: Compute the next node for expanding/collapsing
4295         correctly. We now factor in nodes without a NextNode
4296         correctly. (Fixes somes cases in nunit-gui).
4297         * InternalWindowManager.cs: Set the bounds when updating the
4298         virtual position of a tool window.
4299         
4300 2006-06-05  Chris Toshok  <toshok@ximian.com>
4301
4302         * DataGrid.cs: rename cached_currencymgr to list_manager.
4303         (set_CurrentCell): move SetCurrentCell code here, and clean it up
4304         some.
4305         (CurrentRow, CurrentColumn): single accessors so we can make the
4306         cursor movement code a lot easier to understand.
4307         (CurrentRowIndex): implement this in terms of CurrentRow.
4308         (BeginEdit): clean this up a bit.
4309         (CancelEditing): sort out the is_editing/is_changing/is_adding
4310         stuff a little.
4311         (EndEdit): minor changes.
4312         (OnKeyDown): add a comment about a (most likely) unnecessary
4313         check.
4314         (OnMouseDown): cancel editing when we click on a row header.  And
4315         use the CurrentRow setter, not CurrentCell.
4316         (ProcessDialogKey): directly call ProcessGridKey.
4317         (UpdateSelectionAfterCursorMove): factor out this common block of
4318         code (it's used everywhere that we move the cursor by updating row
4319         or column).
4320         (ProcessGridKey): pretty substantial overhaul.  Use the
4321         CurrentRow/CurrentColumn properties to make the code a lot more
4322         readable.  Only use the CurrentCell property when we have to
4323         modify both row and column at once.  Tab behavior is still broken,
4324         and Delete is untested.
4325         (Select): if we have no selected rows, set selection_start to
4326         @row.
4327         (EditCurrentCell): rename EditCell this.  It was only ever invoked
4328         with CurrentCell as the arg, so drop the arg and rename it.
4329
4330         * DataGridColumnStyle.cs: clean up the constructors a little, and
4331         drop CommonConstructor().
4332
4333         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
4334         actually get notified when the user hits it.
4335         (ProcessKeyMessage): *substantially* simplify this method.
4336         There's no reason (that I can see) for the textbox to be making
4337         calls into the datagrid at all.  Remove all of them but the ones
4338         for Enter handling.  those will take some more work.
4339
4340         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
4341         calling HideEditBox.
4342         (HideEditBox): if we have an active textbox, render it invisible
4343         without causing a re-layout of the datagrid.
4344
4345 2006-06-05  Mike Kestner  <mkestner@novell.com>
4346
4347         * ListView.cs : fix NRE crasher when focuseditem is cleared by
4348         collection changes by resetting it to Items[0].  Fixes #78587.
4349
4350 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4351
4352         * MessageBox.cs: if the height of the text is larger than the icon_size,
4353         use that. Fixes bug #78575.
4354
4355 2006-06-05  Jackson Harper  <jackson@ximian.com>
4356
4357         * TreeView.cs: Fix line drawing when scrolling.  To do this each
4358         node is basically responsible for drawing its entire horizontal
4359         area.  When drawing a node it draws its parent node lines if
4360         needed.
4361         - Adjust the clip area to the viewport rectangle
4362         - Fix Left/Right key handling to match MS. (It expand/collapses
4363         and moves to parents/first child but does not move selection to
4364         sibling nodes).
4365         - Fix SetTop to work with new bound calculation code
4366         - When scrollbars are no longer needed we need to reset scrolling
4367         vars and recalculate the visible order so the redraw is correct
4368         * TreeNode.cs: We can't expand/collapse nodes with no children.
4369
4370 2006-06-03  John Luke  <john.luke@gmail.com> 
4371
4372         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
4373         so the colors work without dev packages
4374         
4375 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
4376
4377         * Control.cs 
4378           - Select: Implemented to just use activate. Seems to match MS 
4379             behaviour closest. Documented to only do actual control walking 
4380             based on it's parameters if in a container control so I moved 
4381             the code there.
4382           - Removed selection check logic from our internal Select() method
4383         * ContainerControl.cs:
4384           - Select: Moved selection logic from Control here, since MS documents
4385             that containers obey the bool arguments. No longer calling base
4386
4387 2006-06-02  Jackson Harper  <jackson@ximian.com>
4388
4389         * TreeView.cs: If the selected node isn't changed when we get
4390         focus update the previously selected node so that we see the
4391         selection box.
4392
4393 2006-06-02  Mike Kestner  <mkestner@novell.com>
4394
4395         * ComboBox.cs: restructure grab and general mouse event handling.
4396         Make the composite control raise mouse events like it was a single
4397         control for leaves/enters/motion/up/down events.  fix dropdown list
4398         coordinate mangling and refactor it into the scrollbar subclass to
4399         reduce code duplication.  Fixes #78282 #78361 and #78457.
4400
4401 2006-06-02  Mike Kestner  <mkestner@novell.com>
4402
4403         * ScrollBar.cs: remove Capture setting/clearing, as it happens
4404         automatically in the Control.WndProc.
4405
4406 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4407
4408         * FileDialog.cs: fix crash when running SharpChess, which sets the
4409         FilterIndex to 2 with only one Filter.
4410
4411 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4412
4413         * ToolBar.cs: add SizeSpecified property.
4414         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
4415         try to figure out our real size, otherwise fallback to what the
4416         container says.
4417
4418 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
4419
4420         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
4421         * Control.cs (WndProc): MS always calls the DefWndProc to pass
4422           up the event
4423
4424 2006-06-01  Mike Kestner  <mkestner@novell.com>
4425
4426         * ListView.cs: revamp the focus management in ListView.  It still
4427         causes churn of LostFocus/GotFocus emissions on clicks, but it's
4428         better than not handling focus at all.  Will revisit when pdb feels
4429         the general focus handling is solid.  Fixes #78526.
4430
4431 2006-06-01  Jackson Harper  <jackson@ximian.com>
4432
4433         * TreeView.cs: Set the default border style in the constructor.
4434         - Move painting to use OnPaintInternal instead of capturing
4435         WM_PAINT, this is the correct way of doing things
4436         - UpdateBelow shouldn't invalidate the scrollbar area
4437         - Cap the top on update below in case the node was above the top
4438         of the viewport rectangle.
4439         - ExpandBelow and Collapse below need to obey Begin/End Update.
4440         * TreeNode.cs: Make is_expanded internal so the treenode
4441         collection can change it without firing the whole event chain.
4442         * TreeNodeCollection.cs: When clearing all the child nodes make
4443         sure to recalc the visible order.
4444         - Improve algo for remove the top node
4445
4446 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
4447
4448         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
4449           SendMessage directly calling window procedures, which in turn might
4450           call SetFocus()
4451
4452 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
4453
4454         * Control.cs: Don't handle WM_SETFOCUS if the same window already
4455           has focus (works around X11 sending a FocusIn after our SetFocus)
4456         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
4457
4458 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
4459
4460         * Mime.cs: Fix for the NET_2_0 build.
4461           NameValueCollection needs StringComparer now.
4462
4463 2006-05-31  Chris Toshok  <toshok@ximian.com>
4464
4465         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
4466         return (via an out parameter) the starting X of the column.
4467         (UpdateVisibleColumn): track change to FromPixelToColumn.
4468         (HitTest): add a ColumnResize case here.
4469         (DrawResizeLine): new function, probably poorly named.
4470
4471         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
4472         only need to keep one reference.
4473         (set_ListManager): same.
4474         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
4475         Also, add support for HitTestType.ColumnResize.
4476         (OnMouseMove): add column resize behavior here, and change the
4477         cursor to the correct one as we move around the datagrid.
4478         (OnMouseUp): terminate the column resize if we're resizing.
4479         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
4480         for the current cell.
4481         (ConnectListManagerEvents): use cached_currencymgr.
4482         (DisconnectListManagerEvents): fill this in, using
4483         cached_currencymgr.
4484         (SetCurrentCell): remove cached_currencymgr_events handling.
4485         (SetDataMember): only call DisconnectListManagerEvents if
4486         cached_currencymgr is != null.
4487         (SetDataSource): same.
4488         (OnListManagerCurrentChanged): cached_currencymgr_events ->
4489         cached_currencymgr.
4490
4491 2006-05-31  Jackson Harper  <jackson@ximian.com>
4492
4493         * BindingManagerBase.cs: Remove somedebug code that creeped into
4494         SVN.
4495         * TreeNode.cs: We get the indent level dynamically right now, so
4496         don't track it as a member.
4497         * TreeNodeCollection.cs: Make sure all nodes added to the list
4498         have parents, treeviews/topnodes setup properly.
4499         - Don't attempt to track indent level.
4500
4501 2006-05-30  Jackson Harper  <jackson@ximian.com>
4502
4503         * BindingContext.cs: Create the currency manager tables here.
4504         This allows us to more easily create null tables (when bad data
4505         members are used), and more easily create related currency
4506         managers.
4507         * CurrencyManager.cs: All the table creation stuff is done by the
4508         binding context now.
4509         - Current should throw an exception if listposition is -1.
4510         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
4511         been bound yet.
4512
4513 2006-05-30  Mike Kestner  <mkestner@novell.com>
4514
4515         * ListView.cs: allow reexpansion of zero-width column headers.
4516         Fixes #78528.
4517
4518 2006-05-28  Chris Toshok  <toshok@ximian.com>
4519
4520         * CurrencyManager.cs (get_Current): after the late binding
4521         listposition = -1 fix, we need to guard against it here and return
4522         null, otherwise we raise an exception (which is swallowed
4523         elsewhere, and breaks datagrid databinding.)
4524
4525 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
4526
4527         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
4528           than WM_SYSKEY, don't throw if get something unexpected (#78507)
4529
4530 2006-05-26  Jackson Harper  <jackson@ximian.com>
4531
4532         * ControlPaint.cs:
4533         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
4534         values, it's faster and it's all we care about (we don't care if
4535         the names aren't equal).
4536         * KeyboardLayouts.cs: Eliminate some dead code.
4537         - Lazy init things
4538         * X11Keyboard.cs: Lazy init keyboard detection.
4539         - Cleanup access modifiers a little.
4540
4541 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
4542
4543         * XplatUIX11.cs: Once again, attempting to get layout just right.
4544
4545 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
4546
4547         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
4548           the sizes of each link section, that will result in sizes that
4549           match DrawString's layout (Fixes #78391)
4550
4551 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
4552
4553         * FileDialog.cs: If AddExtension property is true autocomplete the
4554           extensions in SaveFileDialog correctly. Fixes bug #78453.
4555           Set MyNetwork and MyComputer to "C:\" for windows. This should
4556           fix part 8 of bug #78446 for now.
4557
4558 2006-05-26  Chris Toshok  <toshok@ximian.com>
4559
4560         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
4561         invalidate the current row header if we need to, but presumably
4562         we'll invalidate the row corrsponding to the bounds or
4563         editingControl.
4564         (GridHScrolled): switch back to this method, as it's part of the
4565         public api.  *sigh*.
4566         (GridVScrolled): same.
4567         (OnMouseWheel): hack up something that more or less works.  Call
4568         GridHScrolled/GridVScrolled directly, instead of duplicating much
4569         of their code here.
4570         (EnsureCellVisibility): reinstate a bunch of this code, since we
4571         can't just set the scrollbar Value and expect to do all the work
4572         in the ValueChanged handler.  Also, Call Update() after scrolling
4573         in one direction so the other XplatX11.ScrollWindow call has the
4574         proper stuff in the proper places.
4575         (EditCell): set is_editing to true before calling .Edit.
4576
4577         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
4578         don't bother comparing first.
4579         (OnKeyPress): call grid.ColumnStartedEditing before calling
4580         base.OnKeyPress.  this will set is_changing and invalidate the row
4581         header if necessary.
4582         (ProcessKeyMessage): for WM_CHAR messages, call
4583         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
4584         and WM_KEYDOWN.
4585         
4586         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
4587         it's done in the DataGrid.
4588         (NextState): call grid.ColumnStartedEditing, which takes care of
4589         invalidating the row header (and setting is_changing).
4590
4591         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
4592         here.  it's done in the DataGrid.
4593
4594 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4595
4596         * Control.cs: allow changing the cursor when the mouse position is
4597         out of bounds but Capture is set.
4598         * LinkLabel.cs: handle the case when the mouse button is pressed on the
4599         linklabel but released somewhere else.
4600
4601 2006-05-25  Jackson Harper  <jackson@ximian.com>
4602
4603         * TreeView.cs: When we get focus if there is no selected node make
4604         it the top node
4605         - Remove some uneeded setup code from Draw.
4606         * TreeNodeCollection.cs: If the tree doesn't have a top node when
4607         a new node is inserted make the new node the top.
4608         * XplatUIX11.cs:
4609         * Timer.cs: Use Utc time so that no local time zone stuff needs to
4610         be used (should be faster).
4611         
4612 2006-05-25  Chris Toshok  <toshok@ximian.com>
4613
4614         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
4615         problem with the last commit.
4616
4617 2006-05-25  Chris Toshok  <toshok@ximian.com>
4618
4619         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
4620         need the invalidate call here, while scrolling right-to-left via
4621         the left arrow key (i.e. moving the editing cell while scrolling).
4622
4623         * DataGrid.cs (.ctor): remove the initialization of
4624         ctrl_pressed/shift_pressed.  We no longer track them using key
4625         up/down handlers, but by using Control.ModifierKeys.  Also, switch
4626         to using ValueChanged handlers on the scrollbars instead of
4627         Scrolled event handlers.  This simplifies a bunch of the scrolling
4628         code.
4629         (GridHValueChanged): rename from GridHScrolled, and change it to
4630         work with the new event args.
4631         (GridVValueChanged): same.
4632         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
4633         (OnMouseWheel): actually scroll the datagrid.  Don't change the
4634         selected cell.
4635         (ProcessGridKey): correct all the keyboard navigation stuff I
4636         could find.  Ctrl up/down/left/right/home/end work now.
4637         (EnsureCellVisibility): correct method name spelling.  Also,
4638         simplify this a touch by not explicitly calling the
4639         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
4640         scrollbar value.
4641         (OnKeyUpDG): no need for this method now.
4642         
4643 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4644
4645         * LinkLabel.cs: display the OverrideCursor when hovering the label.
4646         Fixes bug #78392.
4647
4648 2006-05-25  Chris Toshok  <toshok@ximian.com>
4649
4650         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
4651         r61019.
4652
4653 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
4654
4655         * Application.cs: Moved setting of is_modal and closing to before
4656           we create the control, to allow the event handlers called as a
4657           result of creation affect closing. Also removed Gonzalo's previous
4658           change to setting DialogResult, the behaviour has been moved to 
4659           Form.ShowDialog()
4660         * Form.cs: 
4661           - ShowDialog(): Removed explicit creation of the form, let RunLoop
4662             handle it instead
4663           - ShowDialog(): If no dialog result is set, we need to return Cancel
4664           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
4665             the close is cancelled
4666
4667 2006-05-25  Jackson Harper  <jackson@ximian.com>
4668
4669         * StatusBar.cs: We only need to update the sizes of the other
4670         panels when we have auto size contents.  Also we are only updating
4671         the contents of the panel, not the borders, so compensate for the
4672         border width (TODO: get this width from the theme somehow).
4673         * TreeView.cs: Scrollable is true by default
4674         - Use invalidate instead of refresh where needed
4675         - Factor the scrollable value into scrollbar updating
4676         - Update the scrollbars if the Scrollable property is altered
4677         - Update the selected node if its ImageIndex is changed
4678         - Handle null nodes in UpdateNode (mainly so we don't have to
4679         check if selected is null when updating it
4680         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
4681         are factored into the visible count
4682         - Use VisibleCount for clarity in the code
4683         - When the font is changed we need to recurse through all the
4684         nodes and invalidate their sizes
4685         
4686 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4687
4688         * Application.cs: set the DialogResult to fixed when the main form is
4689         hidden or destroyed while being modal.
4690
4691 2006-05-25  Miguel de Icaza  <miguel@novell.com>
4692
4693         * Theme.cs: Use Tangoified messagebox icons. 
4694
4695         (GetSizedResourceImage): Also cope with width = 0 and do not
4696         trigger a warning in that case (0 means "give me your icon from
4697         the resouce, no special size needed).
4698
4699 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
4700
4701         * Application.cs: Leave runloop if the the main modal form is 
4702           hidden (fixes #78484)
4703
4704 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
4705
4706         * BindingContext.cs : reject null datasource in Contains() and
4707           Item[].
4708         * CurrencyManager.cs : check data_member validity when data_source
4709           is dataset. When it is late binding, the initial position is -1.
4710
4711 2006-05-24  Jackson Harper  <jackson@ximian.com>
4712
4713         * TreeNodeCollection.cs: Dont't recalculate the visible order on
4714         inserted nodes that aren't visible.  This changes the
4715         max_visible_order which confuses scrollbar settings.
4716         - Use the enumerator to get the prev node instead of duplicating
4717         code.
4718         * TreeView.cs: Use new method for setting scrollbar values
4719         - Don't set the bounds every time the scrollbar is updated
4720         - When updating below the root node use an invalidate instead of a
4721         refresh to prevent the child controls (scrollbars) from being
4722         refreshed. (UpdateBelow still needs to be reworked anyways).
4723         - Reenable SetBottom now that visible orders are set correctly,
4724         added some debug code incase we ever get bad values there again.
4725         - Set the scrollbar max to 2 less then the max value, this
4726         compensates for the max value being one above the node count, and
4727         for scrollbars adding one extra "notch".
4728         - When drawing image nodes if there is an imagelist we draw the
4729         first image in the list if the supplied image index is out of the
4730         image list's bounds.
4731         
4732 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
4733
4734         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
4735           we receive a size change from the WM (Fixes #78503)
4736
4737 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
4738
4739         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
4740           rectangle (Fixes #78501)
4741
4742 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
4743
4744         * ButtonBase.cs: 
4745           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
4746             as a bitfield.
4747           - Fixed MouseMove to no longer switch pressed state unless the left
4748             mouse button is pressed. Atsushi provided the original patch (#78485)
4749           
4750 2006-05-24  Jackson Harper  <jackson@ximian.com>
4751
4752         * ScrollBar.cs: New internal methods that allow us to change a
4753         couple values on the scrollbar (the most common case is maximum
4754         and large change) without getting multiple invalidates.
4755
4756 2006-05-24  Chris Toshok  <toshok@ximian.com>
4757
4758         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
4759         (Edit): save off the original state in oldState, and set
4760         grid.is_editing to true.
4761         (OnKeyDown): abort editing if escape is pressed.  also, call
4762         NextState if space is pressed.
4763         (OnMouseDown): call NextState.
4764         (NextState): factor out shared code from OnKeyDown and OnMouseDown
4765         here.  Also, only invalidate the row header once (on the initial
4766         is_changing switch) to save on redraws.
4767
4768 2006-05-24  Chris Toshok  <toshok@ximian.com>
4769
4770         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
4771         if the value in the cell is different than it was before.  This
4772         keeps us from triggering a layout when we move around a datarid
4773         with a highlighted cell.
4774         (Edit): suspend layout when creating/positining the text box, and
4775         resume passing false so we don't ever actually re-layout.
4776         (ReleaseHostedControl): same.
4777         (EnsureTextBox): reformat slightly, and set WordWrap to false.
4778
4779         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
4780         control-key sequences should go to the datagrid - remove that
4781         lock.  Also, modify the conditions under which we move between
4782         cells when moving the cursor within a cell, and remove the "this"
4783         and "base" from field accesses.  We weren't even consistent, given
4784         they all were in the base class.
4785
4786 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
4787
4788         * Binding.cs : (.ctor)
4789           An obvious NRE fix for BindingTest.CtorNullTest().
4790
4791 2006-05-23  Chris Toshok  <toshok@ximian.com>
4792
4793         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
4794         them between lines.  This fixes some quirks editing cells in the
4795         datagrid.
4796
4797 2006-05-23  Jackson Harper  <jackson@ximian.com>
4798
4799         * TreeView.cs: Use begin/end update when doing expand/collapse all
4800         so that we don't get flicker on the scrollbar.
4801
4802 2006-05-23  Jackson Harper  <jackson@ximian.com>
4803
4804         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
4805         treenode calculations to be independant of the painting code. To
4806         do this nodes track a visible order which is calculated by the
4807         treeview.
4808         - Call new methods for expanding/collapsing nodes.  These methods
4809         use scrollwindow so we don't have to update everything below the
4810         node.
4811         * TreeView.cs: Refactored drawing and scrolling code.  We don't
4812         need to update nodes when drawing anymore or calculate scrollbar
4813         stuff.
4814         - Added new methods for expanding/collapsing nodes. These methods
4815         use ScrollWindow so as to not have to redraw all the nodes below.
4816         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
4817         we add/remove nodes or sort.
4818         - Handle removing the selected and the top node properly.
4819
4820 2006-05-23  Chris Toshok  <toshok@ximian.com>
4821
4822         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
4823         maybe this should actually happen in the datagrid code?
4824         (EndEdit): no need to invalidate anything, given that
4825         ReleaseHostedControl causes the datagrid to relayout, which
4826         invalidates everything anyway.
4827
4828         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
4829         in SetCurrentCell).
4830         (set_SelectionBackColor): call InvalidateSelection instead of
4831         Refresh.
4832         (set_SelectionForeColor): same.
4833         (BeginEdit): Flesh this out a bit.
4834         (CancelEditing): only do any of this if we're editing/adding.
4835         (EndEdit): same.
4836         (OnMouseDown): there's no need to cancel editing here, it's done
4837         in SetCurrentCell.
4838         (SetCurrentCell): only invalidate the current row header if it's a
4839         different row than the new one.
4840         (ShiftSelection): fix this to work like MS does.
4841         (ResetSelection): factor out the invalidation of selected_rows to
4842         InvalidateSelection.
4843         (SetDataSource): cancel any editing that's going on.
4844
4845         * DataGridColumnStyle.cs
4846         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
4847         call the non-interface version.
4848
4849         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
4850         header rectangle with the clip rectangle so we don't redraw the
4851         entire header for just a small area.  Gets rid of the last flicker
4852         when horizontally scrolling.
4853         (DataGridPaintRow): same.
4854
4855 2006-05-23  Mike Kestner  <mkestner@novell.com>
4856
4857         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
4858         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
4859         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
4860         Critical bug report.
4861
4862 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
4863
4864         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
4865           and this fixes #78493
4866
4867 2006-05-23  Miguel de Icaza  <miguel@novell.com>
4868
4869         * Theme.cs (GetSizedResourceImage): Scale images if the proper
4870         size is not found.  
4871         
4872         * FileDialog.cs: Do not change the background for the side bar as
4873         it wont work nicely with the theme, and also reduces the artifacts
4874         in rendering the icons (which I want to fix too).
4875
4876         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
4877         resources, not resgen resources. 
4878
4879         (PlatformDefaultHandler): Pull images using the new API.
4880
4881 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
4882
4883         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
4884           a reference to the hwnd and will not remove it unless there are
4885           no pending exposures (fixes #78341)
4886         * XplatUI.cs: Improved debug
4887
4888 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
4889
4890         * MenuAPI.cs : don't handle OnClick event when it was not the left
4891           button. Fixed bug #78487.
4892
4893 2006-05-23  Mike Kestner  <mkestner@novell.com>
4894
4895         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
4896         prefer submenus to the top menu for item lookup, to avoid popping down
4897         top-row items.
4898
4899 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
4900
4901         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
4902           Graphics.FillRectangle as the visual results are really bad (even
4903           on win). We now draw perfect arrows (and perfect shadows when the
4904           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
4905           Pen.DashPattern to draw the dots of each line.
4906
4907 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
4908
4909         * FileDialog.cs: Update the filename combobox when navigating through
4910           the ListView with the cursor keys. Fixes part 7 of bug #78446.
4911
4912 2006-05-22  Mike Kestner  <mkestner@novell.com>
4913
4914         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
4915         Fixes #78463.
4916
4917 2006-05-22  Mike Kestner  <mkestner@novell.com>
4918
4919         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
4920         requests. Fix a misspelled parameter and a copy paste exception error
4921         in Select.
4922
4923 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
4924
4925         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
4926           to get the same width/height (5/13) on X11 as the default font has on
4927           win32. This means that our DefaultFont emSize is smaller than the 
4928           the MS SWF equivalent (even thought the width/height stays the same)
4929
4930 2006-05-20  Jackson Harper  <jackson@ximian.com>
4931
4932         * MdiClient.cs:
4933         * MdiWindowManager.cs:
4934         * InternalWindowManager.cs: Make sure to use the border width from
4935         the theme.
4936
4937 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
4938
4939         * PrintDialog.cs: Implements printer details
4940
4941 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
4942
4943         * FileDialog.cs: Added focus handling for PopupButtonPanel.
4944           Fixes part 1 and 2 of bug #78446
4945
4946 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
4947
4948         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
4949           instead of sticking to the first ever calculated value
4950
4951 2006-05-19  Mike Kestner  <mkestner@novell.com>
4952
4953         * ComboBox.cs: fix mouse motion selection to use MousePosition and
4954         PointToClient, since Capture is set. Fixes #78344.
4955
4956 2006-05-19  Mike Kestner  <mkestner@novell.com>
4957
4958         * ListView.cs: match MS behavior in Details view where items are not
4959         drawn if Columns.Count == 0. 
4960         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
4961         Use a separate pen to draw the check, since changing the width affects
4962         the box as well.  Fixes #78454.
4963
4964 2006-05-18  Miguel de Icaza  <miguel@novell.com>
4965
4966         * ListView.cs: ArgumentOutOfRangeException, single versions of the
4967         exception should throw the name of the invalid argument.
4968
4969         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
4970         there are no files listed. 
4971
4972 2006-05-18  Jackson Harper  <jackson@ximian.com>
4973
4974         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
4975         up.
4976
4977 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
4978
4979         * Control.cs: Brought back our old UpdateZOrder method as a private
4980           function and switched our calls from UpdateZOrder to the new one.
4981           This fixes the Paint.Net canvas disappearing bug.
4982
4983 2006-05-18  Jackson Harper  <jackson@ximian.com>
4984
4985         * Theme.cs:
4986         * ThemeWin32Classic.cs:
4987         * InternalWindowManager.cs: Move the drawing into the theme,
4988         expose everything the theme should need from the window manager.
4989
4990 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4991
4992         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
4993           from the call to NativeWindow to avoid walking up the parent chain
4994           further than needed (speeds up setting cursors and avoids setting
4995           the wrong cursor if a parent has another cursor defined)
4996         * Cursor.cs: When loading an icon as cursor, MS uses the center of
4997           the icon as hotspot, not what's contained as hotspot in the icon
4998           file. This fixes the perceived drawing offset seen with Paint.Net
4999         
5000 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
5001
5002         * XplatUIX11.cs: 
5003           - Store the calculated rectangle in Hwnd object and use it when 
5004             setting the client size
5005           - Force Toolwindows to always be type Dock, to ensure they're on top
5006
5007 2006-05-18  Mike Kestner  <mkestner@novell.com>
5008
5009         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
5010         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
5011         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
5012         Substantial refactoring to remove confusing nested classes. Coding
5013         standard and Get+Set->property refactorings.  Shift to index based
5014         highlighting in ComboListBox instead of constantly using IndexOf and
5015         Items[]. Add invalidations on resize for DropDownList to fix ugliness
5016         in FileDialog growth.  Draw borders manually since Simple mode needs
5017         to look like two independent controls.  Make listbox border
5018         conditional to DropDownStyle.  Improved OwnerDraw support.
5019
5020 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
5021
5022         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
5023         Don't set the disposed graphics to null, so we can throw the "right"
5024         exception if the graphics is reused later (added a flag to avoid 
5025         double disposing). Some behaviours are different under 2.0 and are
5026         filled under bug #78448.
5027
5028 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
5029
5030         * Control.cs: When double-buffering is enabled, we need to reset
5031           our graphics context between paint calls. Otherwise, any 
5032           transformations and other alterations on the context will 
5033           become cumulative (#77734)
5034
5035 2006-05-18  Mike Kestner  <mkestner@novell.com>
5036
5037         * ListView.cs: do focused item selection like MS on clicks. 
5038         Rework focus handling for ItemControl so LostFocus invalidates as
5039         well.
5040         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
5041         the ListView ItemControl has focus.
5042
5043 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
5044
5045         * XplatUIX11.cs: If client_window ends up being width or height zero
5046           due to border settings, move it off window inside whole_window (#78433)
5047
5048 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
5049
5050         * Mime.cs: Shrink the mime file cache correctly.
5051
5052 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
5053
5054         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
5055
5056 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
5057
5058         * XplatUIX11.cs (AddExpose): More sanity checks
5059
5060 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
5061
5062         * XplatUIX11.cs:
5063           - AddExpose: Don't add expose ranges outside the size of our
5064             window
5065           - Cast opacity values to Int32 to avoid crashes with certain
5066             values
5067           - Added disabled code paths that protect against illegal cross-
5068             thread painting (Developers.exe)
5069
5070 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
5071
5072         * ProgressBar.cs: Invalidate the control when it's resized
5073           since block size is based on control size. (#78388)
5074
5075 2006-05-16  Miguel de Icaza  <miguel@novell.com>
5076
5077         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
5078         of setting the incoming argument to the "reset" value, we set the
5079         this.datamember to string.empty (before we were invalidating the
5080         incoming data).   
5081
5082         Fixes 78420
5083
5084 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
5085
5086         * Form.cs: Only apply transparency settings after the form
5087           is created. (Fixes #77800)
5088
5089 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
5090
5091         * ApplicationContext.cs: Grab the HandleDestroyed event so
5092           we know when to fire OnMainFormClosed 
5093
5094 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
5095
5096         * Application.cs: Introduced sub-class to allow tracking of
5097           threads and centralized triggering of the event mess for
5098           ThreadExit, AppExit, etc..  (#76156)
5099
5100 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
5101
5102         * MimeIcon.cs:
5103           - Do not return a null icon index value for a mime subclass.
5104             Instead try the main mime type class too.
5105           - Seems that some newer distributions don't have a link to some
5106             gnome default icons anymore. So check the default gnome dir too.
5107           
5108
5109 2006-05-16  Jackson Harper  <jackson@ximian.com>
5110
5111         * MdiClient.cs: Don't paint the parent background image if we have
5112         our own background image.
5113
5114 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
5115
5116         * Control.cs:
5117           - PerformLayout: Do not shrink space filled by DockStyle.Fill
5118             controls, all filled controls are supposed to overlap (#78080)
5119           - UpdateZOrder is supposed to update the control's z-order in the
5120             parent's z-order chain. Fixed to behave like that
5121           - BringToFront: Removed obsolete code
5122           - SendToBack: Simplyfied
5123           - SetChildIndex: Trigger layout calculations when Z-order changes
5124             since layout is done by z-order
5125
5126 2006-05-16  Chris Toshok  <toshok@ximian.com>
5127
5128         [ fixes bug #78410 ]
5129         * DataGrid.cs (set_AlternatingBackColor): use
5130         grid_drawing.InvalidateCells instead of Refresh().
5131         (set_BackColor): call grid_drawing.InvalidateCells.
5132         (set_BackgroundColor): use Invalidate instead of Refresh.
5133
5134         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
5135         invalidate the cell area.
5136
5137 2006-05-15  Chris Toshok  <toshok@ximian.com>
5138
5139         [ fixes bug #78011 ]
5140         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
5141         on to DataGridPaintRow.
5142         (DataGridPaintRow): take a clip argument, and only draw the cells
5143         which intersect it.  same with the not_usedarea.
5144
5145         * Theme.cs (DataGridPaintRow) add @clip parameter.
5146
5147         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
5148         XplatUI.ScrollWindow.
5149         (ScrollToRow): same.
5150
5151         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
5152         with last column which was causing a gray swath to appear with the
5153         XplatUI.ScrollWindow code.
5154
5155 2006-05-15  Chris Toshok  <toshok@ximian.com>
5156
5157         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
5158         use XplatUI.ScrollWindow.
5159         (VerticalScrollEvent): use XplatUI.ScrollWindow.
5160
5161 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
5162
5163         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
5164
5165 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
5166
5167         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
5168           file since there are no equivalent X11 cursors
5169
5170 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
5171
5172         * MonthCalendar.cs : DateTimePicker should reflect selected date
5173           on mouse*up*, not mouse*down*. Fixed originally reported part of
5174           bug #76474.
5175
5176 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
5177
5178         * TabControl.cs : When argument index is equal or more than tab
5179           count, just ignore. Fixed bug #78395.
5180
5181 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
5182
5183         * Control.cs: Dispose all child controls when control is diposed (#78394)
5184
5185 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
5186
5187         * ColorDialog.cs: Finally it is possible to select the color with
5188           the text boxes
5189
5190 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
5191
5192         * PrintDialog.cs: Fix typo
5193
5194 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
5195
5196         * PrintDialog.cs: PrintDialog is not resizable
5197         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
5198           color. Made some ToolBar drawing methods protected virtual.
5199
5200 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
5201
5202         * PrintDialog.cs: Implementation of the PrintDialog
5203
5204 2006-05-12  Chris Toshok  <toshok@ximian.com>
5205
5206         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
5207         thumb, instead use MoveThumb.  This has the side effect of making
5208         most of the other thumb moving machinery use MoveThumb as well.
5209         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
5210         need to actually invalidate the rectangle where the new thumb will
5211         go.
5212         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
5213         We force an Update() after, so it's not as fast as it could be,
5214         but at least there's zero flicker and no droppings.
5215         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
5216         (UpdateThumbPos): add another argument (dirty), which says whether
5217         or not to calculate/add dirty regions which we later invalidate.
5218         For cases where we know we're going to use MoveThumb, we pass
5219         false for this.  Otherwise, pass true.
5220
5221 2006-05-12  Jackson Harper  <jackson@ximian.com>
5222
5223         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
5224         the status bar.
5225         
5226 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
5227
5228         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
5229           and GetClipRegion methods and UserClipWontExposeParent property.
5230         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
5231           overriding UserClipWontExposeParent property, setting to false, since
5232           Win32 handles the required expose messages to draw our clipped parent
5233           areas internally
5234         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
5235           PaintEventStart to set the user clip region if set.
5236         * Control.cs: 
5237           - Now internally tracking the Region for the control since we need to
5238             store it if the handle is not yet created and only set it when it
5239             becomes created. Before setting the region forced handle creation
5240           - Added code to draw the parents underneath a user-clipped region
5241         * Hwnd.cs: Added UserClip property
5242
5243 2006-05-12  Chris Toshok  <toshok@ximian.com>
5244
5245         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
5246         (set_Maximum): same.
5247         (set_Minimum): same.
5248         (set_SmallChange): same.
5249         (OnMouseUpSB): remove the call to refresh when releasing the
5250         thumb.  We shouldn't need it.
5251         
5252 2006-05-12  Miguel de Icaza  <miguel@novell.com>
5253
5254         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
5255         AutoSize set to None, we do not need to relayout everything, we
5256         just need to invalidate the current region.
5257
5258         (Draw): Do not draw the entire ClientArea, just redraw the
5259         clip area being passed.
5260
5261         * MdiClient.cs: Make MdiClient constructor with the Form argument
5262         internal. 
5263
5264 2006-05-12  Jackson Harper  <jackson@ximian.com>
5265
5266         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
5267         parents background image,  but strangely not their own.
5268         - (DrawStatusBarPanel): Take into account horizontal alignment
5269         when drawing the strings and icons.
5270
5271 2006-05-12  Mike Kestner  <mkestner@novell.com>
5272
5273         * ListBox.cs: avoid invalidations for focus when the collection is
5274         empty. 
5275
5276 2006-05-12  Chris Toshok  <toshok@ximian.com>
5277
5278         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
5279         invalidate the entire thumb area.  Call InvalidateDirty which
5280         limits the redraw to the thumb itself and surrounding pixels.
5281
5282         * XplatUIX11.cs (ScrollWindow): optimize copying.
5283         
5284 2006-05-12  Chris Toshok  <toshok@ximian.com>
5285
5286         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
5287         Figure out the positioning/layout in a single pass instead of
5288         multiple recursive invocations.  Speeds up the initial display of
5289         the data grid.  Also, make many things private that were
5290         originally public but unused outside this class.
5291
5292 2006-05-11  Jackson Harper  <jackson@ximian.com>
5293
5294         * MdiClient.cs: Improved layout code.
5295
5296 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
5297
5298         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
5299           not SelectedObject.
5300
5301 2006-05-11  Chris Toshok  <toshok@ximian.com>
5302
5303         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
5304         union of that will always be {0,0,width,height}.
5305
5306 2006-05-11  Jackson Harper  <jackson@ximian.com>
5307
5308         * Form.cs: Match MS's DefaultSize for forms (they must have
5309         changed the size in sp2).
5310
5311 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
5312
5313         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
5314
5315 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
5316
5317         * TextControl.cs : Fixed bug #78109. This incorrect position
5318           comparison caused crash on automatic line split.
5319         * TextBoxBase.cs : reduce duplicate code.
5320
5321 2006-05-10  Jackson Harper  <jackson@ximian.com>
5322
5323         * MdiClient.cs: Active form is only sent to the back when using
5324         the Next form functionality, when a form is clicked the current
5325         active shouldn't be sent to the back.
5326         - Layout the mdi windows when the container is first made visible.
5327         * Form.cs: Give the MdiClient a ref to the containing form when we
5328         create it.
5329         
5330 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
5331
5332         * LinkLabel.cs : link_font could be uninitialized, so populate one
5333           before actual use. Fixed bug #78340.
5334
5335 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
5336
5337         * XplatUIX11.cs : clipboard format native value is IntPtr.
5338           Fixed bug #78283.
5339
5340 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5341
5342         * Control.cs: 
5343           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
5344             which is passed up the parent chain by DefWndProc
5345           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
5346             to DefWndProc (#77956)
5347         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
5348
5349 2006-05-10  Jackson Harper  <jackson@ximian.com>
5350
5351         * MdiClient.cs: We need to remove the controls from the mdi
5352         collection, when we close the window.
5353         * MdiWindowManager.cs: Special handling of closing mdi windows.
5354         * InternalWindowManager.cs: Make the close method virtual so the
5355         mdi window manager can handle it specially.
5356
5357 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
5358
5359         * DataGrid.cs:
5360           - Recalculate grid when the data source has changed
5361           - Matches styles provided by user from all data sources types
5362         * DataGridTableStyle.cs: For columns that provided by the user set the
5363         with the preferred value is there was unassigned.
5364         * CurrencyManager.cs: throw OnItemChanged event
5365
5366 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
5367
5368         * PictureBox.cs: Don't animate until handle is created. Start animation
5369           when handle is created.
5370
5371 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5372
5373         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
5374           current codebase.
5375         * XEventQueue.cs: We don't need to provide the extra info
5376
5377 2006-05-10  Jackson Harper  <jackson@ximian.com>
5378
5379         * MdiClient.cs: If the mdi clients parent form has a background
5380         image set, we draw that background image for the mdi area's
5381         background.
5382
5383 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5384
5385         * TextBoxBase.cs: Set IBeam cursor (#78347)
5386
5387 2006-05-10  Mike Kestner  <mkestner@novell.com>
5388
5389         * ToolBar.cs: fix some text padding issues with ButtonSize
5390         calculation. Update the default size to match MS documentation.
5391         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
5392         button size. Fixes #78296.
5393
5394 2006-05-10  Mike Kestner  <mkestner@novell.com>
5395
5396         * ListBox.cs: use is_visible for scrollbar positioning in case the
5397         control isn't on screen yet.  Fix off by one with Right vs Width
5398         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
5399         
5400 2006-05-10  Jackson Harper  <jackson@ximian.com>
5401
5402         * X11Dnd.cs: Drop to a control with another control on top of it.
5403         * ToolBar.cs: Work on a copy of the buttons list, so that it can
5404         be modified in click handlers. TODO: Look for similar problems in
5405         other controls.
5406
5407 2006-05-09  Jackson Harper  <jackson@ximian.com>
5408
5409         * Form.cs: Window managers need the old window state when setting
5410         window state now.
5411         * InternalWindowManager.cs: Allow the base mdi window manager to
5412         handle more of the MDI only stuff (like maximize buttons).
5413         * MdiWindowManager.cs: Fix some snafus in changing the window
5414         state.  Add all the menu functionality, for both popup and
5415         maximized menus.
5416         * MdiClient.cs: When a new form is selected the currently
5417         activated form is sent to the back, this matches MS.
5418         - Implement a new method to activate the next mdi child window.
5419
5420 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
5421
5422         * Control.cs: 
5423           - Added new InternalCapture method to allow controls to prevent
5424             the capture behaviour on the click handlers
5425           - Switched to use InternalCapture
5426         * ComboBox.cs:
5427           - Using InternalCapture to prevent mouse captures from being released
5428             on mouse button release (Fixes #78100)
5429         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
5430           returns Form borders if a caption is present. (Fixes #78310)
5431
5432 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
5433
5434         * TreeNode.cs: Changed serialization .ctor to not require every field
5435           to be present. (#78265)
5436         * OwnerDrawPropertyBag.cs: Added serialization .ctor
5437
5438 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
5439
5440         * MimeIcon.cs: for is faster than foreach for strings.
5441
5442 2006-05-05  Mike Kestner  <mkestner@novell.com>
5443
5444         * CheckedListBox.cs: update check handling code to not use selected.
5445         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
5446         behavior for visual feedback, motion response, shift/ctrl handling,
5447         and properly deal with all 4 selection modes. Updates to bounds
5448         handling logic.  Add scroll wheel support. [Fixes #77842]
5449
5450 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
5451
5452         * ListView.cs:
5453           - Moved adding of Implicit controls into .ctor. That way, subsequent
5454             creation of the controls will not cause them to think they are 
5455             toplevel windows (fixes #78200 header problem)
5456           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
5457           - Switched visibility setting of header control to use internal field
5458             to avoid triggering handle creation
5459           - Now checking if handle is created before causing a refresh when items
5460             are added (This makes us now match handle creation time with MS)
5461         * Splitter.cs: Removed loading of private splitter cursor, switched to
5462           Cursors version now that that is loading the right ones
5463         * Cursors.cs: Load proper splitter cursors from resources
5464         * Cursor.cs: Added second method of loading resource cursors for the 
5465           VS.Net users amongst us
5466
5467 2006-05-05  Mike Kestner  <mkestner@novell.com>
5468
5469         * ListView.cs: give header_control a minimum size based on the
5470         ListView size.
5471
5472 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
5473
5474         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
5475           window seems to do that with metacity, so set that type. (#78120)
5476
5477 2006-05-05  Mike Kestner  <mkestner@novell.com>
5478
5479         * ListViewItem.cs: fix Details mode checkbox layout bug.
5480         * ThemeWin32Classic.cs: draw a ListView column header for unused space
5481         at the end of the header, if it exists. [Fixes for #78200]
5482
5483 2006-05-04  Jackson Harper  <jackson@ximian.com>
5484
5485         * MdiClient.cs: Add a helper property to get the container form.
5486         * MdiWindowManager.cs: We have to make sure to use the menu origin
5487         when drawing the icons and buttons, this fixes maximized window
5488         icons/buttons on win32.
5489         * InternalWindowManager.cs: Reset the restore captions when a
5490         window goes from Maximized to Minimized and vice versa. Move the
5491         DrawMaximizedButtons into the MdiWindowManager source, tool
5492         windows can't be maximized. NOTE: This could use a little
5493         refactoring if time ever permits.
5494         
5495 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
5496
5497         * TextBox.cs: Add MWFCategoryAttributes
5498         * TextBoxBase.cs: Add MWFCategoryAttributes
5499         * Form.cs: Add MWFCategoryAttributes
5500
5501 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
5502
5503         * Control.cs: Add MWFCategoryAttributes
5504         * ScrollableControl.cs: Add MWFCategoryAttributes
5505
5506 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
5507
5508         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
5509           Divider is true. Fix a little glitch in PropertyToolBar
5510           drawing code
5511
5512 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
5513
5514         * Control.cs:
5515           - Dispose: Call base.Dispose, this causes the disposed event
5516             to be fired (and probably other, more important stuff)
5517           - SetVisibleCore: Set is_visible to true after creating the
5518             window so that the window still gets created invisible (if
5519             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
5520             to generate a WM_ACTIVE message
5521         * Form.cs: Call Dispose when we want to destroy the window, instead of
5522           just destroying the handle (Dispose will do that for us)
5523         * XplatUIX11.cs:
5524           - RootWindow also needs a queue, so we can properly process the
5525             property change events from RootWindow (like Activate)
5526           - Generatic synthetic WM_ACTIVE message when the active window is
5527             being destroyed
5528
5529 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
5530
5531         * LinkLabel.cs: Trigger a recalc of our label dimensions when
5532           bounds are changed
5533
5534 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
5535
5536         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
5537           for determining width and height (image might not be assigned if
5538           we're drawing an imagelist)
5539
5540 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
5541
5542         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
5543         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
5544           height from system
5545         * Theme.cs: No longer returns hardcoded menu height, instead calls
5546           new driver method
5547         * Form.cs (OnLoad): Scaling happens before triggering Load events 
5548           on MS (# 78257)
5549
5550 2006-05-01  Mike Kestner  <mkestner@novell.com>
5551
5552         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
5553
5554 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
5555
5556         * TextBoxBase.cs: Removed Fixme
5557         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
5558
5559 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
5560
5561         * XplatUIX11.cs:
5562           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
5563             the rectangle relative to the parent, considering borders. We
5564             don't really want that.
5565           - ScrollWindow: Fixed warning to be more understandable
5566         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
5567           scrollbars and scroll only the visible area
5568         * RichTextBox.cs: Removed debug output
5569
5570 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5571
5572         * NumericUpDown.cs (Text): Just use base
5573         * UpDownBase.cs: Ensure txtView is created before using it
5574
5575 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
5576
5577         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
5578           casting to IntPtr to avoid 64bit overflow errors
5579
5580 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5581
5582         * Control.cs:
5583           - AllowDrop: Don't force handle creation.
5584           - CreateHandle: Added call to tell driver if we're allowed to drop
5585
5586 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5587
5588         * FileDialog.cs: Remember the last directory not only for the
5589           current instance but also for new FileDialog instances.
5590
5591 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
5592         
5593         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
5594           broke sending async messages
5595
5596 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5597
5598         * XplatUIX11.cs:
5599           - ScrollWindow: Fixed method. We finally generate expose events again
5600             for scrolled areas. This was causing 'garbage' when scrolling
5601             textbox and other controls that used ScrollWindow
5602           - Switched from using the regular queue for paint events to the MS 
5603             model of 'generating' paint events when the queue is empty.
5604             We use the new XQueueEvent.Paint subclass to store which windows
5605             need painting.
5606           - AddExpose now takes the x/y/width/height of the exposed area
5607             and inserts the window into the paint queue if not already there
5608           - InvalidateWholeWindow: Switched to use new AddExpose method
5609           - UpdateMessageQueue: Added which queue to monitor for paint events
5610           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
5611             the unlikely case nothing above handles it. We reset the expose
5612             pending states to get them off the queue.
5613           - GetMessage: Now pulls a paint event if no other events are in the
5614             queue
5615           - Invalidate: Switched to new AddExpose method
5616           - PeekMessage: Updated to understand pending paint events
5617           - UpdateWindow: Fixed logic bug. We were only updating if the window
5618             didn't need updating. Also switched to sending WM_PAINT directly,
5619             like MS does.
5620         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
5621           and random access Remove(). The random access is needed to handle
5622           UpdateWindow() where a WM_PAINT is sent directly without accessing
5623           the queue.
5624         * ScrollBar.cs: Added Update() calls to cause immediate updates to
5625           allow for better feedback when scrolling. Scrollbars are small and
5626           the immediate update should make it 'feel' more responsive without
5627           slowing things down. ScrollBar still needs it's invaliate logic
5628           updated to not always invalidate the whole bar on certain changes.
5629
5630 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5631
5632         * Control.cs:
5633         (BackColor): if the control does not support a transparent background,
5634         return the default backcolor when the parent backcolor is transparent.
5635
5636 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
5637
5638         * Application.cs: Updated to new StartLoop/GetMessage API
5639         * RichTextBox.cs: Provide some output on RTF parsing errors
5640         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
5641           new queue_id argument to GetMessage and PeekMessage to allow faster
5642           handling of per-thread queues in drivers.
5643         * Hwnd.cs: Added Queue tracking and property
5644         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
5645         * XEventQueue.cs: Added thread trackingA
5646         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
5647         * XplatUIX11.cs:
5648           - Implemented new per-thread queue
5649           - GetMessage: Fixed return/break behaviour on several cases. We were
5650             returning stale messages in some cases, instead of just processing
5651             the next message
5652
5653 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
5654
5655         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
5656
5657 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
5658
5659         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
5660           fixed off-by-one comparisons between Width/Height and Right/Bottom.
5661
5662 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
5663
5664         * PropertyGridView.cs: Fix drop down width.
5665
5666 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5667
5668         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
5669           a mess in DrawToolBar, so I removed one of them.
5670
5671 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5672
5673         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
5674           needed (clip). Otherwise we get artifacts.
5675
5676 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
5677
5678         * FixedSizeTextBox.cs: Added constructor to allow specifying which
5679           dimension is fixed
5680         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
5681           and switched FixedSizeTextBox to only be fixed vertical (#78116)
5682         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
5683           if it matches the scale base font (avoids unneeded scaling)
5684
5685 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
5686
5687         * X11DesktopColors.cs: One gtk_init_check should be enough
5688
5689 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
5690
5691         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
5692           match MS behaviour
5693
5694 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
5695
5696         * TextBoxBase.cs: 
5697           - Generate OnTextChanged for Backspace even if we're only deleting
5698             the current selection
5699           - When setting the Text property, only select all text if the
5700             control does not have focus when it is being set. Otherwise
5701             just place the cursor at the beginning of the control
5702
5703 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
5704
5705         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
5706           Added a little helper to draw PropertyGrid ToolBar with a different
5707           border and a different BackColor.
5708         * PropertyGrid.cs: Some background parts didn't get painted with the
5709           correct background color. Added a class that helps us to draw the
5710           correct border for PropertyGridView and a class that helps us to
5711           draw ToolBars with a different backcolor
5712         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
5713
5714 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
5715
5716         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
5717         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
5718
5719 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
5720
5721         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
5722           into the palette entries. Also, since we're working on a copy
5723           we needed to copy the palette back onto the bitmap.
5724         * Cursor.cs: Same fix as XplatUIWin32.cs.
5725
5726 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
5727
5728         * ImageListStreamer.cs: Need to read the var (or we're off)
5729
5730 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
5731
5732         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
5733           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
5734           TextBoxBase.cs: Unused var fixes
5735         * AxHost.cs: Small 2.0 fix
5736         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
5737           as it seems that is what at least Metacity expects. This will make
5738           icons show up on 64bit platforms. We still have some 64bit size
5739           issues, though, since the startup app window size still won't match.
5740
5741 2006-04-25  Mike Kestner  <mkestner@novell.com>
5742
5743         * *.cs: cleanup newly reported exception var unused warnings.
5744
5745 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5746
5747         * ThemeWin32Classic.cs: Button image alignment now matches exactly
5748           ms
5749
5750 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5751
5752         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
5753           image. The image position is always the same, no matter if the
5754           button is pressed or not.
5755
5756 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5757
5758         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
5759           selection and set the correct filename for SaveFileDialog.
5760           Patch by Emery Conrad.
5761
5762 2006-04-24  Mike Kestner  <mkestner@novell.com>
5763
5764         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
5765         check for item.X outside the ClientRect instead of item.Y. Fixes
5766         #78151.
5767
5768 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5769
5770         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
5771         trust that value blindly and do some sanity check. Fixes bug #77814.
5772
5773 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5774
5775         * ImageListStreamer.cs: save the mask as a 1bpp image.
5776
5777 2006-04-21  Mike Kestner  <mkestner@novell.com>
5778
5779         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
5780         pass Checked and Indeterminate to the Theme Engine. Improve
5781         encapsulation with ListBox.
5782         * ListBox.cs: Keep a StringFormat instead of calculating it every item
5783         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
5784         nested types.  Move all CheckState functionality to CheckedListBox.
5785         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
5786         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
5787         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
5788         single base list. Fix scrollbar sizing and placement to mirror MS.
5789         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
5790         used.
5791         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
5792         for CheckedListBox by using new DrawItemState info.  Center the
5793         checkboxes on the items. Use new StringFormat property.
5794
5795 2006-04-18  Jackson Harper  <jackson@ximian.com>
5796
5797         * Form.cs: MdiChildren don't do default locations the same way as
5798         regular forms.  This prevents a crash when trying to position the
5799         mdi windows.
5800
5801 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
5802
5803         * PropertyGridTextBox.cs: Formatting, copyright
5804         * PropertiesTab.cs: Formatting
5805         * PropertyGrid.cs: Formatting
5806         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
5807           click toggling of values
5808           
5809 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
5810
5811         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
5812         * Control.cs (.ctor): verify_thread_handle is static, don't reset
5813           every time a control is created
5814         * Application.cs: Removed obsolete EnableRTLMirroring method
5815
5816 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
5817
5818         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
5819         SelectedIndex to -1. Fixes bug #78121.
5820
5821 2006-04-17  Jackson Harper  <jackson@ximian.com>
5822
5823         * Binding.cs: Handle null values for Current and BindingContext.
5824         This occurs when binding is a little delayed.
5825         * CurrencyManager.cs: return null for Current when there are no
5826         items in the list.
5827         - Hookup to the listchanged event on the DataView and update
5828         bindings when the list is changed.  This fixes late binding of
5829         controls.
5830
5831 2006-04-17  Jackson Harper  <jackson@ximian.com>
5832
5833         * X11Dnd.cs:
5834         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
5835         Ringenbach.
5836
5837 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
5838
5839         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
5840           place
5841         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
5842           with the correct ButtonState
5843
5844 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
5845
5846         * XplatUIX11.cs: Improved distinguishing between window types to
5847           tell the WM a type closer to what the app wants (Fixes #78107)
5848
5849 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
5850
5851         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
5852           GrabHandle
5853
5854 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
5855
5856         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
5857           drawing code to reflect the size grip changes
5858
5859 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5860
5861         * ImageListStreamer.cs: fix handling of the mask that follows the main
5862         bitmap when deserializing and serialize it properly. The generated mask
5863         should better be a 1bpp image, but I'll do that later.
5864
5865 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
5866
5867         * FileDialog.cs: Show something in the DirComboBox on *nix if the
5868           path doesn't fit into some of our Current.Places
5869
5870 2006-04-13  Jackson Harper  <jackson@ximian.com>
5871
5872         * ComboBox.cs: Use borders instead of drawing our own decorations,
5873         try to obey correct rules for heights.
5874         * Theme.cs:
5875         * ThemeNice.cs:
5876         * ThemeClearLooks.cs:
5877         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
5878         this is now handled by borders.
5879         - Remove unused DrawListBoxDecorationSize method.
5880         
5881 2006-04-13  Mike Kestner  <mkestner@novell.com>
5882
5883         * MenuAPI.cs: null guarding for the disbled click check fixes crash
5884         reported by Alex.
5885
5886 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
5887
5888         * ThemeWin32Classic.cs: 
5889           - Fixed CPDrawStringDisabled
5890           - Corrected drawing of disabled menu items
5891           - Fixed drawing of disabled radio buttons (bug #78095)
5892           - Draw check in a disabled CheckBox with color ControlDark 
5893
5894 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5895
5896         * Form.cs: Use the provided width when calculating the menu size;
5897           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
5898           and ClientSize.Width won't be updated yet
5899         * Application.cs: Use Visible instead of Show() to make form visible,
5900           this way we create the handle later and menusize is considered
5901
5902 2006-04-12  Mike Kestner  <mkestner@novell.com>
5903
5904         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
5905         reporting.
5906
5907 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5908
5909         * TextBox.cs: Implemented context menu
5910
5911 2006-04-12  Mike Kestner  <mkestner@novell.com>
5912
5913         * ListView.cs: implement box selection. fixes #77838.
5914         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
5915
5916 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5917
5918         * XplatUIX11.cs: Added setting of window type when transient window
5919           is created (metacity would move it otherwise)
5920         * X11Structs.cs: Added WINDOW_TYPE atoms
5921         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
5922           background (the control is Opaque but still wants transparent
5923           backgrounds)
5924
5925 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5926
5927         * Control.cs: Added OnPaintBackgroundInternal to allow controls
5928           that set Opaque but don't mean it (like all ButtonBase-derived
5929           controls) to still draw their background
5930         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
5931           the background
5932
5933 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5934
5935         * Control.cs (PaintControlBackground): Set the graphics object
5936           on our PaintEvent to null to prevent it from being disposed
5937           when the PaintEvent gets disposed
5938
5939 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
5940
5941         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
5942         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
5943
5944 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5945
5946         * Control.cs: 
5947           - Added transparency check to BackColor property. Transparent
5948             backgrounds are only allowed if the control styles permit it
5949           - Added recursive painting of parent control background and
5950             foreground if a control with a transparent backcolor is drawn
5951             (Thanks to Tim Ringenback for providing his 'hack' as a base
5952              for this patch) Fixes #77985 and #78026.
5953           - Added Opaque style check before calling OnPaintBackground, no
5954             need to draw the background if the control is opaque
5955           - Removed ControlAccessibleObject owner variable (inherited from
5956             base, no need to define again)
5957           - Added some documentation links explaining the drawing events
5958             and styles
5959
5960 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5961
5962         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
5963           that the affected control is the located at the left border of our
5964           parent (Fixes #77936)
5965
5966 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5967
5968         * TextBoxBase.cs: When rendering disabled or readonly controls,
5969           draw the background with 'Control' instead of 'Window' color as
5970           long as the user hasn't specifically set a color
5971
5972 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5973
5974         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
5975           since that won't be updated if the user types text (only if it's
5976           programatically set)
5977
5978 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5979
5980         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
5981           layout changes do to app-triggered resizes will have the proper
5982           display rectangle for layout
5983
5984 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
5985
5986         * ThemeWin32Classic.cs:
5987           - Make use of the SystemBrushes and SystemPens wherever possible
5988           - Corrected some highlight colors
5989           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
5990             drawing
5991         * Theme.cs: Added Empty field to CPColor struct
5992
5993 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5994
5995         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
5996           is displayed when calculating the display rectangle. Thanks to Mike
5997           for teaching me the err of my ways.
5998
5999 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
6000
6001         * ScrollableControl.cs:
6002           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
6003             (instead of 0,0) and we now return the real width/height instead of
6004             just the clientrectangle, adjusted for padding. The rectangle is
6005             now cached and created by the new CalculateDisplayRectangle method.
6006           - Created new CalculateDisplayRectange method, which basically does
6007             what get_DisplayRectangle() did originally, but now using the 
6008             right edge instead of DisplayRectangle to determine the size of
6009             our scrollbars
6010           - get_Canvas(): Fixed it to properly calculate canvas for 
6011             right/bottom controls which seem to be placed to the right/bottom
6012             of any controls that have a fixed location
6013           - Removed TODO that's taken care of
6014           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
6015             and SetDisplayRectLocation according to new MSDN2 docs
6016           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
6017             event when that is called, this is added for compatibility
6018           - ScrollControlIntoView(): Implemented.
6019           - Switched scrollbars to be implicit, they shouldn't be selectable
6020         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
6021           call it when the active control is set/changed
6022         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
6023         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
6024           implicit_control variable (used for native Win32 message generation)
6025         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
6026           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
6027         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
6028         * XplatUIStructs.cs: Added ScrollBarCommands enum
6029
6030 2006-04-10  Jackson Harper  <jackson@ximian.com>
6031
6032         * ButtonBase.cs:
6033         * CheckedListBox.cs:
6034         * ComboBox.cs:
6035         * DataGrid.cs:
6036         * DataGridView.cs:
6037         * Form.cs:
6038         * GroupBox.cs:
6039         * ListBox.cs:
6040         * PrintPreviewControl.cs:
6041         * ProgressBar.cs:
6042         * PropertyGrid.cs:
6043         * Splitter.cs:
6044         * StatusBar.cs:
6045         * TrackBar.cs:
6046         * UpDownBase.cs: Fixup base event overrides.
6047         
6048 2006-04-06  Mike Kestner  <mkestner@novell.com>
6049
6050         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
6051         all user-initiated value changes to min <= value <= max-thumbsz+1.
6052         (set_Value): check for vert/horiz when calculating new thumb position.
6053         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
6054         like MS does.
6055         (OnMouseMoveSB): refactor the thumb dragging code and refine
6056         invalidation logic to reduce flicker.
6057         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
6058         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
6059         (UpdateThumbPosition): small code readability cleanup
6060
6061 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
6062
6063         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
6064           different
6065
6066 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
6067
6068         * ThemeNice.cs: Use a better graphics effect when a button is pressed
6069
6070 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
6071
6072         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
6073         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
6074           This dramatically reduces the number of Pen.Dispose calls. 
6075           Where possible call ResPool methods only once instead of calling it
6076           over and over again (for example for the same color).
6077
6078 2006-04-06  Mike Kestner  <mkestner@novell.com>
6079
6080         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
6081         Also remove an unused private field on the collection. Fixes #77972.
6082
6083 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
6084
6085         * ThemeNice.cs: Added ToolBar drawing code
6086
6087 2006-04-06  Mike Kestner  <mkestner@novell.com>
6088
6089         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
6090         I'm assuming that means we need to look up the toplevel for the
6091         provided control. Fixes the crash trace in #77911 but exposes another
6092         crash in some strange reflection usage in NDocGui.
6093
6094 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
6095
6096         * ThemeNice.cs: Gave it a little silver touch and added Images
6097           method
6098         * FontDialog.cs: FontDialog is not resizable
6099         * FileDialg.cs: Added SizeGripStyle.Show
6100
6101 2006-04-05  Jackson Harper  <jackson@ximian.com>
6102
6103         * KeyboardLayouts.cs: Remove warning.
6104
6105 2006-04-05  Jackson Harper  <jackson@ximian.com>
6106
6107         * Control.cs: Enable OnPaintInternal so we can use it for drawing
6108         all of our controls instead of Paint +=.
6109         * ListBox.cs:
6110         * ListView.cs:
6111         * MenuAPI.cs:
6112         * MessageBox.cs:
6113         * NotifyIcon.cs:
6114         * ProgressBar.cs:
6115         * ScrollBar.cs:
6116         * Splitter.cs:
6117         * StatusBar.cs:
6118         * TabControl.cs:
6119         * TextBoxBase.cs:
6120         * ToolBar.cs:
6121         * TrackBar.cs:
6122         * UpDownBase.cs:
6123         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
6124         use OnPaintInternal. Remove Width/Height and Visible checks in
6125         paint handler, this is done at a higher level now.
6126         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
6127         * PaintEventArgs.cs: Add a handled flag so controls that don't
6128         want anymore painting after OnPaintInternal can make sure OnPaint
6129         isn't called.
6130
6131 2006-04-05  Mike Kestner  <mkestner@novell.com>
6132
6133         * Form.cs: fix the menu WndProc hacks to respect the native enabled
6134         state of the form, so that we don't process events when Modal dialogs
6135         are up. Fixes #77922.
6136
6137 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
6138
6139         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
6140           checking is done.
6141
6142 2006-04-05  Mike Kestner  <mkestner@novell.com>
6143
6144         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
6145
6146 2006-04-05  Mike Kestner  <mkestner@novell.com>
6147
6148         * ListView.cs (HeaderMouseMove): null guarding for the over column
6149         when setting up the drag_to_index.  Fixes #78015.
6150
6151 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
6152
6153         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
6154           in the taskbar. Transient windows seem to accomplish that.
6155
6156 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
6157
6158         * Form.cs:
6159           - Re-enabled CreateParams.X/Y code for FormStartPosition
6160           - Added code for manual placement when creating the Control
6161           - Incomplete patch to treat MDI forms differently when
6162             setting the ClientSizeCore. (Still need to figure out handling
6163             x/y coords there)
6164         * XplatUIX11.cs:
6165           - When we're explicitly setting the X/Y position of a non-Child
6166             window, let the WM know. Metacity really wants this.
6167
6168 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
6169
6170         * ThemeNice.cs: Added CPDrawButton
6171
6172 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
6173
6174         * ThemeNice.cs: Changed the color for focused buttons and activated
6175           the arrows for small scroll buttons.
6176
6177 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
6178
6179         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
6180           anymore. Changed some method modifiers to protected (virtual)
6181         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
6182           changes
6183         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
6184           Updated drawing of menus, buttons and progressbars; added
6185           CPDrawBorder3D 
6186
6187 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6188
6189         * ImageListStreamer.cs: implemented serialization/deserialization
6190         of the images.
6191
6192 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
6193
6194         * ThemeWin32Classic.cs:
6195           - Removed all the DrawFrameControl stuff; CPDrawButton,
6196             CPDrawCheckBox and CPDrawRadioButton are now handled directly
6197             inside the methods
6198           - Updated and corrected the drawing code of CPDrawButton,
6199             CPDrawCheckBox and CPDrawRadioButton to better match ms
6200           - Updated theme checkbox and radiobutton code to use the CP*
6201             methods
6202
6203 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
6204
6205         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
6206           bug is fixed
6207
6208 2006-03-31  Jackson Harper  <jackson@ximian.com>
6209
6210         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
6211         sometimes.
6212         * UpDownBase.cs: Don't CreateGraphics manually, use a
6213         Refresh. Ideally we would invalidate the correct areas here.
6214
6215 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
6216
6217         * XplatUIX11.cs: 
6218           - We now track the mapping state of windows. If a window (or 
6219             one of it's parents) is not mapped we no longer permit
6220             WM_PAINT messages to be generated since we'd otherwise get 
6221             lots of BadMatch X errors. Jackson did all the work figuring
6222             out the problem.
6223           - Destroying the caret if the window it's contained in is 
6224             destroyed. Can't use regular DestroyCaret method since it
6225             might fall into a drawing function (trying to remove the
6226             caret) and with that generate new BadMatch errors. Again,
6227             Jackson tracked this down.
6228           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
6229             make sure we send the messages to all windows. (The old code
6230             would send the WM_DESTROY to the window, and then all child
6231             windows would be 'gone' because the WM_DESTROY handle lookup
6232             would no longer find the destroyed window)
6233         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
6234         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
6235
6236 2006-03-31  Jackson Harper  <jackson@ximian.com>
6237
6238         * ScrollableControl.cs: Dont recalc if we are not visible.
6239
6240 2006-03-31  Mike Kestner  <mkestner@novell.com>
6241
6242         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
6243         the visibility branch.
6244
6245 2006-03-31  Jackson Harper  <jackson@ximian.com>
6246
6247         * ScrollBar.cs: Cap values when incrementing/decrementing.
6248
6249 2006-03-31  Mike Kestner  <mkestner@novell.com>
6250
6251         * MenuAPI.cs: setup menu.tracker for popup/context menus.
6252         * ToolTip.cs: guard against timer expirations with no active control.
6253         Not sure why it happened.
6254
6255 2006-03-31  Mike Kestner  <mkestner@novell.com>
6256
6257         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
6258         text.
6259         * ToolTip.cs: Position the tooltip based on where the cursor is at
6260         popup time, not at MouseEnter time.  Add a Down state so that we don't
6261         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
6262         positioning offset. Lookup DisplaySize at positioning time, since it
6263         can theoretically change during invocation.
6264         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
6265         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
6266
6267 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6268
6269         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
6270           Fixes behaviour when the Text property of the box is String.Empty
6271
6272 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
6273
6274         * XplatUIX11.cs: Only send mouseleave for our client windows, not
6275           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
6276           a window)
6277
6278 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6279
6280         * FileDialog.cs: Visual enhancement for the popup buttons in 
6281           PopupButtonPanel
6282
6283 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6284
6285         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
6286           code
6287
6288 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
6289
6290         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
6291           highlighted menu items to match ms
6292
6293 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
6294
6295         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
6296
6297 2006-03-30  Mike Kestner  <mkestner@novell.com>
6298
6299         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
6300         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
6301         go active to account for HotLight to Selected transition.
6302         * MenuItem.cs: add internal Selected prop. Fill out the Status
6303         property by calculating it from item info. Add HotLight,
6304         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
6305
6306 2006-03-30  Mike Kestner  <mkestner@novell.com>
6307
6308         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
6309
6310 2006-03-29  Jackson Harper  <jackson@ximian.com>
6311
6312         * Form.cs: Implement TODO.
6313
6314 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
6315
6316         * PrintPreviewDialog.cs: Implemented missing methods and events; still
6317           missing proper dialog setup in the constructor
6318
6319 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
6320
6321         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
6322         * Control.cs:
6323           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
6324           - Fixed ResetBindings and removed TODO
6325           - Added check for cross-thread calls to get_Handle()
6326           - Added Marshaller attribute for set_Font to satisfy class status
6327         * FontDialog.cs: Removed TODOs that seemed implemented
6328         * UpDownBase.cs: Removed unneeded TODO and Fixme
6329         * MessageBox.cs: Implemented support for Default button and removed TODO
6330         * FileDialog.cs: Removed obsolete TODO
6331         * DomainUpDown.cs: Removed obsolete TODO
6332         * ButtonBase.cs: Removed obsolete TODO
6333         * XplatUIWin32.cs: Removed obsolete TODO
6334         * Form.cs:
6335           - Removed obsolete TODO
6336           - Calling CheckAcceptButton when the acceptbutton is changed to allow
6337             internal status updates
6338           - Making sure the active control is selected when the control is created
6339         * CurrencyManager.cs: Removed obsolete TODO
6340
6341 2006-03-29  Mike Kestner  <mkestner@novell.com>
6342
6343         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
6344         of PrintPreviewDialog and RichTextBox.
6345
6346 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
6347
6348         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
6349           DarkDark, Light and LightLight colors for a specific color
6350         * ThemeWin32Classic.cs:
6351           - Use Button drawing code to draw RadioButtons and CheckBoxes with
6352             Appearance = Button 
6353           - Make use of the new ResPool helper CPColor
6354           - Draw ProgressBar and StatusBar with correct 3D borders
6355
6356 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
6357
6358         * ColorDialog.cs: Return selected color. Fixes bug #77940.
6359
6360 2006-03-28  Mike Kestner  <mkestner@novell.com>
6361
6362         * ListView.cs: fix Icon layout to plan for scrollbar widths when
6363         calculating col/row counts.
6364
6365 2006-03-28  Mike Kestner  <mkestner@novell.com>
6366
6367         * ColumnHeader.cs:
6368         * ListView.cs:
6369         * ListViewItem.cs:
6370         * Menu.cs: 
6371         switch to explicit interface method implementation for some methods
6372         corcompare identifies as inconsistent with MS.
6373
6374 2006-03-28  Mike Kestner  <mkestner@novell.com>
6375
6376         * MainMenu.cs: 
6377         * Menu.cs:
6378         add a few missing methods from the class status output.
6379
6380 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
6381
6382         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
6383           correct.
6384
6385 2006-03-28  Mike Kestner  <mkestner@novell.com>
6386
6387         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
6388
6389 2006-03-27  Mike Kestner  <mkestner@novell.com>
6390
6391         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
6392         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
6393
6394 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
6395
6396         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
6397
6398 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6399
6400         * ThemeWin32Classic.cs:
6401           - GroupBox: Inserted a little gap between the text and the lines
6402             on the right side
6403           - Made the code in CPDrawBorder3D more readable
6404           - Corrected the drawing location of the up and down arrows in 
6405             CPDrawScrollButton
6406
6407 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6408
6409         * ControlPaint.cs: Corrected line widths in DrawBorder for
6410           ButtonBorderStyle Inset and Outset
6411
6412 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6413
6414         * ThemeWin32Classic.cs:
6415           - Rewrote the totally broken CPDrawBorder3D method. That was
6416             one of the main problems for the terrific ThemeWin32Classic
6417             look
6418           - Updated and corrected Button drawing
6419           - Correct the dimensions of the SizeGrip to match ms ones
6420           - Removed a small drawing glitch in DrawComboBoxEditDecorations
6421         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
6422           Border3DStyle.Sunken to match ms.
6423
6424 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6425
6426         * ThemeWin32Classic.cs: First small part of the "de-uglify
6427           ThemeWin32Classic" effort, SizeGrip
6428
6429 2006-03-24  Jackson Harper  <jackson@ximian.com>
6430
6431         * XplatUIX11.cs: Give a max idle time of one second, this matches
6432         MS and forces an Idle event every second when there are no other
6433         events in the queue.
6434
6435 2006-03-24  Mike Kestner  <mkestner@novell.com>
6436
6437         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
6438         * ListView.Item.cs: fix layout issues with null image lists and images
6439         smaller than checkbox size.
6440         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
6441         mode like MS does.  It's weird, but consistent.  ;-)
6442         Fixes #77890.
6443
6444 2006-03-24  Mike Kestner  <mkestner@novell.com>
6445
6446         * ListView.cs: Scroll wheel support for the item control.  Fixes
6447         #77839.
6448
6449 2006-03-23  Jackson Harper  <jackson@ximian.com>
6450
6451         * ScrollableControl.cs: Special case negative sized areas, not
6452         zero.
6453         * MonthCalendar.cs: Save the rect of the clicked date so we can
6454         use it for invalidation.
6455         - Try to cut down on the number of invalidates
6456         - Invalidate the rect the mouse is over and was over when moving
6457         the mouse, so we get the focus box following the cursor.
6458
6459 2006-03-23  Mike Kestner  <mkestner@novell.com>
6460
6461         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
6462         focus rectangle drawing. Fixes #77835.
6463
6464 2006-03-23  Mike Kestner  <mkestner@novell.com>
6465
6466         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
6467         the if and else if and reverting back to the original == check on the
6468         None conditional.
6469
6470 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
6471
6472         * FontDialog.cs: Update the example panel if the selected index of
6473           the fontListBox changes.
6474
6475 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
6476
6477         * FileDialog.cs: Make FileDialog remember which directory it was in
6478           last in the same execution.
6479
6480 2006-03-22  Mike Kestner  <mkestner@novell.com>
6481
6482         * FileDialog.cs: make the DropDownMenu on the toolbar display
6483         RadioChecks since they are mutually exclusive and that's what MS does.
6484
6485 2006-03-22  Mike Kestner  <mkestner@novell.com>
6486
6487         * Theme.cs: add Color param to CPDrawMenuGlyph.
6488         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
6489         checks and radio marks and arrows are visible on highlighted items.
6490         * ControlPaint.cs: update to use new Theme signature.
6491
6492 2006-03-22  Mike Kestner  <mkestner@novell.com>
6493
6494         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
6495         is active. Fixes #77870.
6496
6497 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
6498
6499         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
6500           to be focused/selected after startup
6501
6502 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
6503
6504         * ColorDialog.cs: 
6505           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
6506             CustomColors and ShowHelp properties
6507           - Some internal rewrites to get better results when using the
6508             ColorMatrix
6509
6510 2006-03-22  Mike Kestner  <mkestner@novell.com>
6511
6512         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
6513         HoverSelection.  Fixes #77836.
6514
6515 2006-03-22  Mike Kestner  <mkestner@novell.com>
6516
6517         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
6518         ToggleButtons.  (De)Sensitize the Back button around a stack count of
6519         1, not 0.  Update ButtonSize based on a pixel count of the win32
6520         control.  Adjust the toolbar size/location for new button size.
6521
6522 2006-03-22  Jackson Harper  <jackson@ximian.com>
6523
6524         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
6525         true.
6526         * ScrollBar.cs: When doing increments and decrements we need to
6527         set the Value property so that ValueChanged gets raised. A
6528         possible optimization here would be to make an internal SetValue
6529         that doesn't invalidate immediately.
6530         * ToolTip.cs: Tooltips get added to their container (when
6531         supplied) so they get disposed when the container is disposed.
6532         - Don't create tooltips for String.Empty. This prevents all these
6533         little 2-3 pixel windows from showing up when running nunit-gui
6534         and driving me mad.
6535         * Form.cs: Don't set topmost when setting the owner if the handles
6536         haven't been created yet.  The topmost set will happen when the
6537         handles are created.
6538
6539 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
6540
6541         * XplatUIX11.cs:
6542           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
6543           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
6544             visible (to allow them to recalculate their sizes)
6545
6546 2006-03-21  Mike Kestner  <mkestner@novell.com>
6547
6548         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
6549         methods. Removed a ton of redundant code.  Still not really happy with
6550         the border rendering, but I think that's mainly because of the
6551         ControlDarkDark being black instead of a dark grey. Depending on how 
6552         close we want to be, we might want to revisit those color choices.
6553         Among the new features added during the refactor were DropDownArrow
6554         pressed rendering, Disabled image rendering.  Proper flat appearance
6555         boundary rendering.  Removed the Divider and Wrapping dividers since I
6556         can't figure out any combination of themes and conditions to make the
6557         MS control draw a horizontal line on a toolbar despite what the
6558         Divider property docs indicate.
6559         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
6560         conditions and incorrect layout.  Updated to coding standard.
6561         * ToolBarButton.cs: refactored layout and positioning code from
6562         ToolBar to here.  Invalidate wherever possible instead of forcing
6563         redraws of the whole toolbar. 
6564         (Known remaining issues: explicit ButtonSize smaller than provided
6565         images.)
6566
6567 2006-03-21  Mike Kestner  <mkestner@novell.com>
6568
6569         * ContextMenu.cs (Show): use the position parameter instead of just
6570         showing at the MousePosition.
6571
6572 2006-03-21  Jackson Harper  <jackson@ximian.com>
6573
6574         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
6575         control handle this.
6576         * TreeNodeCollection.cs: If we are clearing the root node we need
6577         to reset top_node so calcs can still happen.
6578         * ThemeWin32Classic.cs: This is a Flags so we need to check
6579         properly.
6580         
6581 2006-03-21  Jackson Harper  <jackson@ximian.com>
6582
6583         * DataGrid.cs: Create columns when the binding context has been
6584         changed.
6585         * X11Structs.cs: Keysyms are uints.
6586         - Add size to fix build.
6587
6588 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
6589
6590         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6591           XplatUIOSX.cs: 
6592           - Added ResetMouseHover method to allow controls to retrigger
6593             hovering if they need it more than once
6594           - Implemented MouseHoverTime and MouseHoverSize properties
6595         * Timer.cs: Start() must reset the interval
6596         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
6597           properties
6598
6599 2006-03-21  Jackson Harper  <jackson@ximian.com>
6600
6601         * X11Keyboard.cs: improved layout detection. Move the nonchar
6602         tables into this file.
6603         * KeyboardLayouts.cs: Move the tables into resource files.
6604
6605 2006-03-21  Mike Kestner  <mkestner@novell.com>
6606
6607         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
6608
6609 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
6610
6611         * Mime.cs: Various speed optimizations. Looking up mime types
6612           is now 2 times faster than before
6613
6614 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
6615
6616         * CreateParams.cs: Added internal menu field
6617         * Control.cs: 
6618           - Switched call order for UpdateBounds; now we always call
6619             the one that also takes ClientSize, and we're calculating the 
6620             client size via driver method in the others. The previous
6621             method of tracking client size by difference wasn't working
6622             for forms where even the starting client size wouldn't match
6623             the overall form size (due to borders) (Part of fix for #77729)
6624           - CreateParams(): Do not use parent.Handle unless the handle is
6625             already created. Causes havoc with Nexxia and throws off our
6626             creation of controls
6627         * XplatUIX11.cs:
6628           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
6629           - Switched handling of ConfigureNotify over to new PerformNCCalc 
6630             method (consolidates code)
6631           - Changed RequestNCRecalc to use new PerformNCCalc method
6632           - Added calls to RequestNCRecalc when menus and borders are changed
6633             to allow app to set NC size. (Part of fix for #77729) This matches
6634             when MS send a WM_NCRECALC on Win32 windows.
6635           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
6636             (Part of fix for #77729). This matches what MS does, they also
6637             send that message when the form is made visible.
6638           - XException.GetMessage: Improved usability of X errors by including
6639             a translation of the window into Hwnd and Control class
6640           - Improved debug info for window creation, reparenting and destruction
6641           - Created helper method WindowIsMapped() [Currently not used]
6642         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
6643         * Form.cs:
6644           - CreateParams: Now setting our menu on the new internal menu field
6645           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
6646             avoid calculating the same property twice
6647         * Hwnd.cs:
6648           - Improved usability of ToString() for debugging purposes
6649           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
6650             determine the height of the menu, instead of just the font. This
6651             required to also create a graphics context and to keep a bmp 
6652             around (for performance reasons)
6653
6654 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
6655
6656         * MenuAPI.cs: Added OnMouseUp method
6657         * Form.cs:
6658           - Now remembering the requested client size, avoids size errors
6659           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
6660             instead of base if the menu is active. This is required due to
6661             control now capturing and releasing on down/up and it would
6662             prematurely release our menu capture
6663
6664 2006-03-17  Jackson Harper  <jackson@ximian.com>
6665
6666         * KeyboardLayouts.cs: Add the czech layouts.
6667
6668 2006-03-16  Jackson Harper  <jackson@ximian.com>
6669
6670         * Control.cs: Use the viewport space when sizing not the controls
6671         client size, so things like ScrollableControl that effect the
6672         viewport size (when scrollbars are added) are computed correctly.
6673         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
6674         of ManagerEntrys.
6675         - Handle creating BindingManagers for null data sources.
6676         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
6677         source, otherwise when rows are added they are added to the 'fake'
6678         datasource and we will crash when trying to set the position in
6679         those rows.
6680         - Use Implicit scrollbars on the datagrid so they arent
6681         selectable.
6682         
6683 2006-03-16  Jackson Harper  <jackson@ximian.com>
6684
6685         * Binding.cs:
6686         * InternalWindowManager.cs:
6687         * MdiWindowManager.cs:
6688         * X11Keyboard.cs: I really want Mike to love me again (fix
6689         compiler warnings).
6690
6691 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
6692
6693         * DataGrid.cs:
6694           - OnMouseDown: Switch to editing mode when clicking on the cell
6695                          even if we're clicking on the cell that's currently 
6696                          selected
6697           - ProcessGridKey: Left/Right now wrap like MS.Net does
6698           - ProcessGridKey: Tab now knows to add a new row when tab is
6699                             pressed in the cell of the last column of the 
6700                             last row
6701           - ProcessGridKey: Enter now adds another row  if pressed in the last
6702                             row and selectes the new row, same column cell
6703           - ProcessGridKey: Home/End navigate columns, not rows, like 
6704                             originally implemented
6705           - Broke ProcessKeyPreview code out into an extra Internal method
6706             so it can be called from the edit code
6707         * DataGridTextBox.cs (ProcessKeyMessage):
6708           - Switched to accept Tab keypresses
6709           - Added F2 handling to allow jumping to the end of the edited cell
6710           - Added logic to allow moving caret left/right inside edited cell
6711             and making the edited cell jump when the caret hits cell borders
6712           - Tab and Enter are now passed to the datagrid after being handled
6713         * TextBoxBase.cs:
6714           - Removed capture code now that Control handles it
6715           - set_SelectionStart now ensures caret is visible
6716
6717 2006-03-16  Jackson Harper  <jackson@ximian.com>
6718
6719         * TrackBar.cs: Debackwards the increment/decrement for handling
6720         mouse clicks on the bar with vertical trackbars.
6721         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
6722         bottom to match MS.
6723
6724 2006-03-16  Mike Kestner  <mkestner@novell.com>
6725
6726         * ListView.cs: make shift/ctrl keyboard and mouse selection 
6727         consistent with the MS control. Fix a bug in
6728         SelectedListViewItemCollection.Clear that was pissing me off for the
6729         better part of a day because the collection was being altered
6730         underneath us as we walked the list.
6731
6732 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
6733
6734         * Control.cs: Not sure how we could miss this so long, but it seems
6735           that MS.Net has Capture set all the way from before calling 
6736           OnMouseDown through sending the mouse events until after
6737           OnMouseUp. This will fix DataGrid's selection being set to end
6738           at the location of the MouseUp.
6739
6740 2006-03-15  Jackson Harper  <jackson@ximian.com>
6741
6742         * BindingContext.cs: Check the binding after its added so that it
6743           can initialize the binding managers and hookup to events.
6744         * Binding.cs: Data members seem to sometimes include rows/cols in
6745           the format Row.Column we now take this into account.
6746           - Hookup to the position changed event so we can update the
6747           control when the position has changed in the data set.
6748         * CurrencyManager.cs: Take into account the row/col naming
6749           convention when creating dataset tables.
6750         * BindingContext.cs: Using a newer better way of storing
6751           datasource/datamember pairs.  Hopefully this better matches MS for
6752           looking up binding managers.
6753
6754
6755 2006-03-15  Jackson Harper  <jackson@ximian.com>
6756
6757         * BindingContext.cs: The currency manager needs the data member
6758         name, if the member is a data set we use the name to find the
6759         correct table.
6760         * CurrencyManager.cs: When creating the list prefer an IList over
6761         an IListSource.
6762         - Attempt to create a DataTable from a DataSet (TODO: might need
6763         some better error checking here, although MS doesn't seem to have much)
6764         - If we have a DataTable create a view and use it as our list.
6765
6766 2006-03-15  Mike Kestner  <mkestner@novell.com>
6767
6768         * ListView.cs: keep a matrix of the icon mode layout to facilitate
6769         keyboard navigation. Support Up/Down/Left/Right selection correctly
6770         for all 4 View modes.
6771         * ListViewItem.cs: add internal row/col fields for icon layouts.
6772
6773 2006-03-15  Jackson Harper  <jackson@ximian.com>
6774
6775         * TabControl.cs: Redraw the tabs when we resize so their newly
6776         calculated sizes are drawn on screen.
6777         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
6778         composite characters.
6779         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
6780         - filter events so that composite characters can be created
6781         patches by peter
6782         * X11Structs.cs: Add XIMProperties enum.
6783
6784 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
6785
6786         * Control.cs (BringToFront, SendToBack): Don't use window or handle
6787           unless it's created
6788
6789 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
6790
6791         * Control.cs (PerformLayout): We don't need to consider visiblity
6792           for anchoring, only for docking. This fixes 'whacky' alignment
6793           in listbox and other controls that use implicit scrollbars after
6794           the previous PerformLayout patch
6795         * ListBox.cs: Switched to use implicit scrollbars
6796           
6797 2006-03-14  Mike Kestner  <mkestner@novell.com>
6798
6799         * ToolBar.cs: 
6800         * VScrollBar.cs:
6801         - chain up the "new event" overrides to base and use
6802         OnEvent to raise them.  Part of fix for bug #76509.
6803
6804 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
6805
6806         * FileDialog.cs: Do not select an item in the parent directory
6807           on backspace
6808
6809 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
6810
6811         * Control.cs (PerformLayout): It would seem that we considered
6812           invisible windows for our layout. Not quite the right thing
6813           to do. Now we don't any longer, thereby fixing bug #76889.
6814
6815 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
6816
6817         * Control.cs (CanFocus): I goofed. A control can have focus 
6818           even though it's not selectable. Made it match MS docs.
6819
6820 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6821
6822         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
6823           center by default (fixes #76895)
6824         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
6825           all uses of Border3DSides.All with the explicit ORd together
6826           Left|Right|Top|Bottom because I assume that nobody was aware 
6827           that All also implies a center fill. Most places I checked had
6828           a fill right above.
6829         * ProgressBarStyle.cs: Added
6830
6831 2006-03-13  Mike Kestner  <mkestner@novell.com>
6832
6833         * ListView.cs: fix breakage in drag shadow header positioning 
6834         from Peter's csc compilation fix.
6835
6836 2006-03-13  Mike Kestner  <mkestner@novell.com>
6837
6838         * ListView.cs: fix NRE produced by backspacing twice in a focused
6839         FileDialog.
6840
6841 2006-03-13  Mike Kestner  <mkestner@novell.com>
6842
6843         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
6844
6845 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6846
6847         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
6848           be changed
6849         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
6850           the allowed size before making programmatic size changes
6851
6852 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
6853
6854         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
6855           set, metacity is broken and will still use the emty sizes in 
6856           the struct. (Fix for #77089)
6857
6858 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6859
6860         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
6861           WindowExStyles and marked both enums as Flags
6862         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
6863           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
6864           to match WindowStyles split
6865         * XplatUIX11.cs:
6866           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
6867           - Updated to match WindowStyles split
6868         * XplatUIWin32.cs:
6869           - Fixed FosterParent creation, was using ExStyle on the Style field
6870             (This should help with Popup focus issues)
6871           - Updated to match WindowStyles split
6872
6873 2006-03-13  Jackson Harper  <jackson@ximian.com>
6874
6875         * MdiWindowManager.cs: Use the system menu height. Fixes some
6876         strange sizing issues.
6877
6878 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
6879
6880         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
6881         * TextBoxBase.cs:
6882           - Scroll to caret after inserting text (#77672)
6883           - Make scroll range one pixel higher, fixes off-by-one error (and
6884             makes underlines visible on the last line)
6885
6886 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
6887
6888         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
6889           the keyboard state from being stuck with keys in 'pressed' state when
6890           focus is switched away via keyboard
6891         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
6892           reset the keyboard if no X11 KeyUp events are expected to come
6893         * X11Structs.cs: Switched type of Visible to bool to match driver
6894
6895 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
6896
6897         * TextControl.cs:
6898           - Switched caret to be just 1 pixel wide, matches MS and looks less
6899             clunky
6900           - Moved caret display 1 pixel down from the top of the control
6901             to improve view
6902           - InsertCharAtCharet: Update the selection start if moving the caret
6903             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
6904           - No longer always creating the caret when the caret methods are
6905             called. Only the actual ShowCaret/HideCaret will do that now
6906           - Only setting caret visible if the owner control has focus
6907           - UpdateView: Added invalidation-shortcut logic for center and right 
6908             aligned text. Previously we'd update all according to the left
6909             logic which caused drawing errors. Also fixed height of invalidated
6910             areas, now properly invalidating the whole area (was off-by-one)
6911           - owner_HandleCreated: Always generate the document when the
6912             handle is created; this ensures that 
6913         * TextBoxBase.cs:
6914           - Fixed situation where caret would disappear under the right
6915             window border, also improved scrolling behaviour on left-
6916             aligned textboxes
6917           - Fixed right-aligned textboxes to have a border to the
6918             right instead of the caret being under the right border
6919         * XplatUIX11.cs:
6920           - Switched from 'nested' to simple visible/not visible tracking 
6921             for caret (part of fix for #77671)
6922           - No longer passing through translated FocusIn/FocusOut messages
6923             since we were notifying too often and the wrong windows. Instead
6924             we just notify our focussed window of receiving or loosing focus
6925         * XplatUIWin32.cs: Switched from 'nested' show/hide 
6926           counting for caret to simple visible yes/no behaviour (part of 
6927           fix for #77671)
6928
6929 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6930
6931         * Mime.cs: Remove debug code...
6932
6933 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6934
6935         * MimeGenerated.cs: Removed
6936         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
6937           and subclasses) from /usr/(local/)share/mime and
6938           $HOME/.local/share/mime.
6939
6940 2006-03-10  Jackson Harper  <jackson@ximian.com>
6941
6942         * MdiWindowManager.cs: Recalc the NC area when a window is
6943         maximized/restored so that the menu area is drawn on forms that
6944         don't have a menu.
6945
6946 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6947
6948         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6949           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
6950           us to force a WM_NCCALCRESIZE message being sent. This is needed
6951           for MDI maximizing.
6952
6953 2006-03-10  Jackson Harper  <jackson@ximian.com>
6954
6955         * Form.cs: We need to use the ActiveMenu when calculating menu
6956         height.
6957         - Fix nullref when the window manager hasn't been created yet.
6958         * Control.cs: Fix nullref when we try to bring a control to the
6959         front that has no parent.
6960         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
6961         height.
6962         - Add a dummy item to the maximized menu so it always has the
6963         correct height. Otherwise when there are no menus we don't get our
6964         icon and buttons.
6965         
6966
6967 2006-03-10  Jackson Harper  <jackson@ximian.com>
6968
6969         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
6970         stuff.
6971         * Form.cs: Make the window_state internal so the window managers
6972         can track it.
6973         - When an MDI child is maximized let its window manager create the
6974         main menu (so it can add its icon).
6975         - Notify the window managers of state changes
6976         - Let the window manager paint its buttons and handle button
6977         clicks on the menu when it is maximized.
6978         * InternalWindowManager.cs: Move the prev_bounds into the mdi
6979         window manager, since tool windows don't use it, only mdi windows.
6980         - Tell the main form that we don't want it to handle NCPAINT
6981         itself to avoid extra painting.
6982         - Handle clicks on a maximized windows menu.
6983         - Handle window state changes
6984         - Handle minimize/maximize clicks correctly by setting the window state.
6985         * MdiWindowManager.cs: Add an icon menu that (the menu you get
6986         when clicking on the forms icon).
6987         - New method to create a forms maximized menu. This is its normal
6988         menu + an icon.
6989         - Handle window state changes.
6990         - Handle sizing of maximized windows.  Maximized windows are just
6991         drawn bigger then the parent visible area. All controls are still
6992         there, they are just outside the visible area (this matches windows).
6993         * MdiClient.cs: No scrollbars when a child window is maximized.
6994         - Let the children windows figure out how big they should be when
6995         sizing maximized windows.
6996         - Implement a version of ArrangeIconicWindows somewhat similar to
6997         Windows version.  There are some little differences, but I don't
6998         think any app will rely on the layout of minimized mdi windows.
6999
7000 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
7001
7002         * Padding.cs: Several fixes to allow compiling with csc 2.0
7003
7004 2006-03-09  Jackson Harper  <jackson@ximian.com>
7005
7006         * Menu.cs:
7007         * MenuItem.cs: Cheap hack so we can add items to the list without
7008         the events being raised.  This allows adding mdi items during
7009         drawing. TODO: Should probably find a better time to add the items.
7010
7011 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
7012
7013         * ThemeWin32Classic.cs:
7014           - CheckBox_DrawText: Added logic to not wrap if not enough space
7015             is available (Fix for bug #77727)
7016           - RadioButton_DrawText: Added logic not to wrap if not enough
7017             space is available (Fix for bug #77727). Also removed some
7018             duplicate code, DrawString always drawing the regular text
7019             before hitting the if statement.
7020
7021 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
7022
7023         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
7024
7025 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
7026
7027         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
7028         * ContainerControl.cs: Partial implementation of some 2.0 scaling
7029           methods. Moved the new 2.0 properties into alphabetical order with
7030           other properties and added MonoTODO tags
7031
7032 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
7033
7034         * AutoScaleMode.cs: Added. Fix build.
7035
7036 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
7037
7038         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
7039           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
7040           and was requiring premature handle creation for calls from above
7041         * Form.cs, Control.cs: Removed handle arguments from calls to
7042           CalculateClientRect()
7043
7044 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
7045
7046         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
7047           drag_column.column_rect is MarshalByRef and can't be used that way
7048
7049 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
7050
7051         * AxHost.cs: Added deserialization constructor for 
7052           AxHost+State (fixes 77743)
7053
7054 2006-03-09  Mike Kestner  <mkestner@novell.com>
7055
7056         * ListView.cs: 
7057         - Added column drag reordering for details view.
7058         - fixed behavior when mouse is dragged off column and
7059         AllowColumnReorder is false.
7060         * ColumnHeader.cs: clone the format too in Clone.
7061         * Theme.cs: add DrawListViewHeaderDragDetails method.
7062         * ThemeWin32Classic.cs:
7063         - impl new method for drawing drag column shadows and targets.
7064         - support column offset for details mode in DrawListViewItem.
7065
7066 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
7067
7068         * TextControl.cs: Reset the char_count when the document is cleared
7069           (Fixes bug reported on mono-winforms mailing list)
7070
7071 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
7072
7073         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
7074           of calling base we simply process the key ourselves, since both
7075           DefWindowProc and the handled method would set m.Result. 
7076           (Fixes #77732)
7077
7078 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
7079
7080         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
7081           method also moves the window; instead implemented a copy of
7082           Control.ScaleCore (Part of fix for #77456)
7083         * TextBoxBase.cs: 
7084           - Created new CreateGraphicsInternal method to allow providing
7085             a graphics context when no handle is created without triggering
7086             handle creation. (Part of fix for #77456)
7087           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
7088         * TextControl.cs: 
7089           - Switched Constructor to require TextBoxBase instead of Control (to
7090             allow uncast access to CreateGraphicsInternal)
7091           - Safeguarded use of owner.Handle property. No longer accessing it
7092             unless the handle is already created.
7093           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
7094           - Now triggering a recalc when owning control becomes visible
7095         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
7096           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
7097           premature handle creation (Part of fix for #77456)
7098         * Control.cs:
7099           - We now only destroy our double-buffering buffers when the
7100             control is resized or disposed, but not when visibility
7101             changes. (The code even re-created them twice every time)
7102           - Now requiring a redraw of the buffer on visibility changes
7103             (fixes bug 77654 part 2)
7104           - Not passing OnParentVisibleChanged up unless the control
7105             is visible
7106           - CanFocus: Fixed to match MS documentation
7107           - Focus: Fixed to return actual focus state and to check if
7108             setting focus is legal before setting it
7109
7110 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
7111
7112         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
7113           when to draw focus rectangle by looking at parent focus and
7114           selected state instead. This fixes TabPages on Linux sometimes
7115           having none or multiple focus rectangles.
7116         * XplatUIX11.cs (SetFocus): 
7117           - Don't set the focus if the same window already has focus
7118           - Use SendMessage instead of PostMessage (like it's Win32
7119             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
7120             to match MS behaviour
7121         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
7122           are not selectable.
7123
7124 2006-03-07  Jackson Harper  <jackson@ximian.com>
7125
7126         * PictureBox.cs: Revert line I accidently committed last week.
7127
7128 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
7129
7130         * Control.cs: 
7131           - Added new IsRecreating and ParentIsRecreating properties to
7132             allow testing if RecreateHandle has been called on ourselves
7133             or one of our parents
7134           - WndProc(WM_DESTROY): If our control handle is being recreated
7135             we immediately need to create the handle when receiving the
7136             destroy, that way our child windows find a valid parent handle
7137             when they themselves are being recreated upon WM_DESTROY receipt
7138             (fix for bug #77654 part 1)
7139         * XplatUIX11.cs:
7140           - DestroyWindow: WM_DESTROY must be sent to our own window before
7141             notifying any child windows. MS documents that child windows
7142             are still valid when WM_DESTROY is received. (Control now relies on
7143             this behaviour)
7144           - Added some fine-grain debug options
7145
7146 2006-03-06  Jackson Harper  <jackson@ximian.com>
7147
7148         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
7149         box and base calculations off this.
7150         * MdiChildContext.cs:
7151         * MdiWindowManager.cs: Don't need to ensure scrollbars here
7152         anymore.
7153         
7154 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
7155
7156         * Splitter.cs: In situations where the affected control is added
7157           to the parent's control list after the splitter, we would not
7158           populate affected. Now we try populating it on mousedown, if
7159           it's not already set, and force it to be re-set whenever our
7160           parent changes.
7161
7162 2006-03-03  Matt Hargett  <matt@use.net>
7163
7164         * Control.cs: implement Control.Padding
7165         * Padding.cs: -Padding.All returns -1 when constructing with the
7166         implicit default ctor
7167         -Padding.ToString() matches MS.NET
7168         * ContainerControl.cs: implement
7169         ContainerControl.AutoScaleDimensions
7170         * ListControl.cs: implement ListControl.FormattingEnabled
7171         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
7172         * ButtonBase.cs:
7173         * TabPage.cs: Implement UseVisualStyleBackColor.
7174         * PictureBox.cs: Implement PictureBox.InitialImage.
7175
7176 2006-03-03  Mike Kestner  <mkestner@novell.com>
7177
7178         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
7179         event declarations to proxy to base event.
7180         * ListViewItem.cs: update to use ItemControl.
7181         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
7182         * ThemeWin32Classic.cs: update to new ListView theme API and fix
7183         column header label rendering for 0 width columns.
7184
7185 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
7186
7187         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
7188           that causes the control to be created. Fixes #77476.
7189
7190 2006-03-02  Jackson Harper  <jackson@ximian.com>
7191
7192         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
7193         expose_pending.
7194
7195 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
7196
7197         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
7198           passed in for the EventArgs (fixes #77690)
7199
7200 2006-03-01  Jackson Harper  <jackson@ximian.com>
7201
7202         * ScrollBar.cs: Refresh afterbeing resized.
7203
7204 2006-02-28  Mike Kestner  <mkestner@novell.com>
7205
7206         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
7207         Clean up a tracker compile warning.
7208         * MenuItem.cs: add internal PerformPopup method.
7209         [Fixes #77457]
7210
7211 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
7212
7213         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
7214           implicit expose) when the text is set to null
7215
7216 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
7217
7218         * RichTextBox.cs (FlushText): When newline is true, we always
7219           need to split the line, even if no text is on it and we may
7220           never eat newlines. (Fixes #77669)
7221
7222 2006-02-28  Mike Kestner  <mkestner@novell.com>
7223
7224         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
7225         and set Selected instead.
7226         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
7227         collections.
7228
7229 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
7230
7231         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
7232
7233 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
7234
7235         * FontDialog.cs:
7236           - Got rid of the panel. All controls are now directly added to
7237             the dialog form
7238           - It is now possible to set a font with the Font property
7239           - MinSize and MaxSize property do now what they should
7240           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
7241           - Searching and selecting a font with the font textbox works now,
7242             the same applies to the style and size textbox
7243           - Draw the correct 3D border in the example panel
7244           - Fixed a little mem leak (unused fonts didn't get disposed)
7245           - Many other internal updates/rewrites...
7246           - Fix typo
7247
7248 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
7249
7250         * TextControl.cs: 
7251           - InsertRTFFromStream: Added 'number of characters inserted' argument
7252           - set_SelectedRTF: Now using the number of characters to calculate
7253             the new location for the selection and cursor (x/y cannot be used
7254             due to potentially already wrapped text)
7255
7256 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
7257
7258         * TextControl.cs: Added property and implemented means to allow 
7259           disabling recalculation of a document (can be used to speed up
7260           multiple inserts and is needed to make RTF inserts predictable, see
7261           bug #77659)
7262         * RichTextBox.cs: Using the new NoRecalc property of Document to
7263           keep x/y insert locations predictable. Also makes it faster inserting
7264           large chunks of RTF
7265
7266 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
7267
7268         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
7269           it's easier for a child control to handle the other messages without
7270           having to duplicate the special functionality
7271         * TextBoxBase.cs
7272           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
7273             code to handle processing the key ourselves, in order to get 
7274             access to the result of KeyEventArgs.Handled. We now only call 
7275             ProcessKey if they key hasn't been handled already. Fixes #77526.
7276           - set_Text: If null or empty string is given, just clear the 
7277             document. Fixes part of #77526
7278
7279 2006-02-27  Jackson Harper  <jackson@ximian.com>
7280
7281         * SizeGrip.cs: Paint the background color before painting the grip
7282         so things look right.
7283         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
7284
7285 2006-02-27  Mike Kestner  <mkestner@novell.com>
7286
7287         * ListView.cs:
7288           - Restructure layout and invalidation model to remove a ton of
7289           flicker from the control and speed up performance in general.
7290           - Add manual column resize, flickers like crazy, but I already have
7291           some ideas on how I'll fix that. (#76822)
7292           - Merge the three Icon-based views into a single layout method.
7293           - Move item selection interaction logic from the item since 
7294           interaction with the collections is more appropriate to the view.
7295           - Deselection on non-item clicks.
7296         * ListViewItem.cs:
7297           - Encapsulate most of the layout. Add some internal props to trigger
7298           layout.  Move to a model where Items invalidate themselves instead
7299           of just invalidating the whole control every time something changes.
7300           - Invalidate on Text/Caption changes.
7301           - switch to an offset based layout model to avoid having to absolute
7302           position every element on item moves.
7303           - correct checkbox layout to conform to MS layout.
7304         * ThemeWin32Classic.cs:
7305           - refactor some column header drawing code.
7306           - fix string justification for column headers (#76821)
7307           - make SmallIcon labels top justified for compat with MS impl.
7308         * ThemeClearlooks.cs:
7309           - adjust to new ListViewItem internal checkbox bounds api.
7310
7311 2006-02-27  Jackson Harper  <jackson@ximian.com>
7312
7313         * Control.cs:  Change where implicit controls fall in the zorder.
7314         They are now on top of all children.
7315         - Synced AddImplicit code with Add
7316         - Removed unused enumerator.
7317         * SizeGrip.cs: Remove the TODO as its been TODONE.
7318
7319 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
7320
7321         * TextControl.cs(Insert): Combine the last lines unless the insertion
7322           string ends with \n\n, otherwise we leave one line too many (Fixes
7323           something I noticed with the testapp for #77526; the bug itself was
7324           already fixed in the previous checkin)
7325
7326 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
7327
7328         * RichTextBox.cs:
7329           - SelectionColor and SelectionFont methods no longer set absolute
7330             styles. Instead, the keep font or color respectively (This 
7331             resolves a long-standing FIXME in the code)
7332           - When flushing RTF text, the insert code now considers text trailing
7333             behind the insertion point (Fixes the bug where when replacing
7334             the selected text via SelectedRTF the remainder of the line behind 
7335             the selection would stay on the first insertion line)
7336         * TextBoxBase.cs:
7337           - AppendText now updates the selection points after inserting text
7338           - AppendText now ensures that the last tag (sometimes 0-length) of
7339             the document is used for the style information (Fixes part of 
7340             bug #77220)
7341         * TextControl.cs:
7342           - Created new FontDefiniton class to allow describing partial style
7343             changes
7344           - StreamLine() now takes a lines argument, to allow it to decide
7345             whether an encountered zero-length tag is the last in the document
7346             (which must be kept to not loose the font/color contained in it,
7347             for later appends)
7348           - Created Combine() and Split() methods for Marker structs, to 
7349             support marker updates due to reformatted documents (soft line
7350             wraps)
7351           - Implemented Document.CaretTag setter
7352           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
7353             of the last line (Not the cause, but also exposed by bug #77220)
7354           - Added LineTag argument to InsertString method, to allow callers
7355             to force a certain tag to be used (required to force use of the
7356             trailing zero-length tag of a document)
7357           - Now updating markers in Combine(), to avoid stale tag markers
7358           - Added some method descriptions to aid maintenance
7359           - Implemented new FormatText concept, allowing additive/subtractive
7360             formatting by only specifying the components that are to be 
7361             changed. This was needed for resolving the RTB.SelectedColor/
7362             RTB.SelectedFont fixmes
7363           - Added Break() support method to allow breaking up linetags (used
7364             for partial formatting)
7365           - Added GenerateTextFormat() method. It is used for partial 
7366             formatting and allows to generate a full font/color from given
7367             attributes and an existing tag.
7368
7369 2006-02-26  Jackson Harper  <jackson@ximian.com>
7370
7371         * XplatUIX11.cs:  Use the correct caption height.
7372         - Translate hittest coordinates to screen coords to match MS.
7373         * XplatUIWin32.cs: When we create MDI windows we need to reset
7374         some of the style flags, so we get a nice blank window, and can
7375         draw all the decorations ourselves.
7376         - Set a clipping rectangle on the non client paint event, the
7377         window manager drawing code needs one.
7378         * Form.cs: The window manager needs to know when the window state
7379         has been updated.
7380         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
7381         don't need to factor in border and title sizes in these
7382         methods. TODO: Remove the args and fix the call points.
7383         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
7384         properly.
7385         - Let the driver set the cursors.
7386         - Improve active window handling
7387         - Correct sizes for title bars and buttons.
7388         - Match MS drawing better
7389         * MdiWindowManager.cs: We don't need to handle border style
7390         updates specially anymore.
7391         - Check for scrollbars when windows are done moving
7392         - Handle Active properly.
7393         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
7394         correctly. I am spewing the exception though, so we don't hide the
7395         bugs.
7396         
7397 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
7398
7399         * DataGridViewRowPostPaintEventArgs.cs,
7400           DataGridViewCellPaintingEventArgs.cs,
7401           DataGridViewRowCollection.cs,
7402           DataGridViewRowPrePaintEventArgs.cs,
7403           DataGridViewCell.cs: Clear a few warnings and implement a few
7404           exceptions that should be thrown.
7405
7406 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
7407
7408         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
7409           'inheriting' our parent's (non-default) cursor. (Part of
7410            the fix for #77479)
7411
7412 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
7413
7414         * XplatUIX11.cs: Fixed cast to make csc happy
7415
7416 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
7417
7418         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
7419           it's for the client area (part of fix for #77479 and needed
7420           for MDI window cursor handling)
7421         * XplatUIX11.cs
7422           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
7423             the appropriate default cursors and also passing the message
7424             up the parent chain 
7425           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
7426             for non-client areas
7427
7428 2006-02-15  Jackson Harper  <jackson@ximian.com>
7429
7430         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
7431         is a real MDI window
7432
7433 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
7434
7435         * X11DesktopColors.cs: Instead of checking the desktop session
7436           string for "KDE" check if it starts with "KDE"
7437
7438 2006-02-10  Jackson Harper  <jackson@ximian.com>
7439
7440         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
7441         systems).
7442
7443 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
7444
7445         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
7446           errors
7447         * ColorDialog.cs:
7448           - Got rid of the panel. All controls are now directly added to
7449             the dialog form
7450           - Changed to mono coding style
7451
7452 2006-02-10  Jackson Harper  <jackson@ximian.com>
7453
7454         * InternalWindowManager.cs: We don't need the set visibility to
7455         false hack anymore now that peter has written beautiful shutdown
7456         code.
7457
7458 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
7459
7460         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
7461           where already explicitly destroyed
7462
7463 2006-02-10  Jackson Harper  <jackson@ximian.com>
7464
7465         * MdiClient.cs: Handle the case where windows are too high or to
7466         the left and we need scrollbars.
7467
7468 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
7469
7470         * MimeIcon.cs: Added some icons
7471         * FileDialog.cs:
7472           - Fixed bug #77477
7473           - Got rid of the panel. All controls are now directly added to
7474             the dialog form
7475           - Changed to mono coding style
7476           - On Linux "My Computer" and "My Network" will now show some
7477             more usefull information. A new class, MasterMount, gathers
7478             this information from /proc/mount. Updated MWFFileView to make
7479             use of this information
7480           - Fixed a bug that caused FileDialog to crash when
7481             ".recently_used" file had a zero size
7482           - FilterIndex does now what it should
7483           - Some Refactoring
7484         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
7485             FileDialog changes
7486
7487 2006-02-09  Jackson Harper  <jackson@ximian.com>
7488
7489         * ComboBox.cs: Don't touch if null.
7490
7491 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
7492
7493         * Cursor.cs: 64bit safeness fix
7494         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
7495
7496 2006-02-09  Jackson Harper  <jackson@ximian.com>
7497
7498         * Form.cs: If a form is made into an MDI form update the styles so
7499         all the props can get set correctly.
7500         - Kill the mdi_container when we dont need it anymore.
7501         * InternalWindowManager.cs: Add missing NOT
7502
7503 2006-02-08  Jackson Harper  <jackson@ximian.com>
7504
7505         * InternalWindowManager.cs: Respek clipping when drawing MDi
7506         decorations.
7507
7508 2006-02-08  Jackson Harper  <jackson@ximian.com>
7509
7510         * Hwnd.cs: Add bits to track non client expose events.
7511         * XplatUIX11.cs: Track non client expose events on the hwnd. This
7512         gives us a proper invalid rect and will allow for some nice
7513         optimizations with NC client drawing
7514         - MDI windows are children windows, so move their style handling
7515         into the child window block.
7516         * InternalWindowManager.cs: Remove a state reset that was
7517         getting invoked at the wrong time. Fixes managed windows getting
7518         into a 'stuck' captured state.
7519
7520 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
7521
7522         * TextControl.cs (Document.ctor): Now initializing 
7523           selection_anchor. Fixes #77493
7524
7525 2006-02-07  Jackson Harper  <jackson@ximian.com>
7526
7527         * TrackBar.cs: The increment/decrements were backwards.
7528
7529 2006-02-07  Mike Kestner  <mkestner@novell.com>
7530
7531         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
7532         to the instance itself.
7533
7534 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
7535
7536         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
7537           on ulongs and pointers, the size differs between 32bit and 64bit
7538           systems. 
7539
7540 2006-02-07  Mike Kestner  <mkestner@novell.com>
7541
7542         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
7543         for 64 bit platforms to work around a metacity bug. 
7544
7545 2006-02-07  Jackson Harper  <jackson@ximian.com>
7546
7547         * TrackBar.cs: Process the input keys we need, and hookup to
7548         KeyDown instead of using WndProc, so we get key messages.
7549
7550 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
7551
7552         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
7553           machine we're on. 
7554         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
7555           we need to translate the XdndVersion atoms array before sending it
7556
7557 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
7558
7559         * XplatUIX11.cs: 
7560           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
7561             number of bits for the property, not the number of bytes. The
7562             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
7563             but would not crash since it specified 8 bits instead of 4 bits)
7564           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
7565             defined as XID -> long in the C headers)
7566           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
7567             references since those are now IntPtr to begin with
7568           - Switched all Atom.XXX 'int' casts to IntPtr casts
7569           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
7570           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
7571           - Added XChangeActivePointerGrab DllImport (for X11DnD)
7572         * X11Structs.cs:
7573           - Changed 'int' type for Atoms in XEvent structures to IntPtr
7574           - Changed atom in HoverStruct to be IntPtr
7575         * X11DnD.cs:
7576           - Removed local DllImports, switched code to use those from XplatUIX11
7577           - Removed/fixed casts related to the switch of Atom to be a IntPtr
7578
7579 2006-02-06  Mike Kestner  <mkestner@novell.com>
7580
7581         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
7582         method signatures in the import region.  There may still be some
7583         lingering struct marshaling issues, as I didn't drill down into those.
7584         Yet.
7585
7586 2006-02-06  Jackson Harper  <jackson@ximian.com>
7587
7588         * ComboBox.cs: Dont manually set the top_item, this is computed
7589         when the scrollbar position is set.
7590
7591 2006-02-06  Mike Kestner  <mkestner@novell.com>
7592
7593         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
7594         startup crashes on amd64.  There's other fixes needed.  All pinvoke
7595         usage of Atom needs to be mapped to IntPtr for example.  And there are
7596         likely other int/long issues to be addressed.
7597
7598 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
7599
7600         * FileDialog.cs: One more...
7601
7602 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7603
7604         * FileDialog.cs: Next try
7605
7606 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7607
7608         * FileDialog.cs: First part of fix for #77464
7609
7610 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7611
7612         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
7613           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
7614           AcceptButton border drawing.
7615
7616 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
7617
7618         * Form.cs: Moved positioning of form after auto scaling is applied,
7619           otherwise it would possibly use wrong form size.
7620
7621 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
7622
7623         * Control.cs (RecreateHandle): No need to re-create any child
7624           controls, the child windows will get destroyed automatically by
7625           the windowing system or driver, and re-created when the handle
7626           is being accessed the first time. Fixes #77456
7627         * Form.cs: No longer setting the form to closing if the handle is 
7628           being recreated. This seems like the right thing to do, don't
7629           have a bug or testcase for this, though.
7630
7631 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
7632
7633         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
7634           controls to avoid unwanted side effects
7635
7636 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
7637
7638         * Control.cs: 
7639           - ScaleCore needs to scale the bounds, not the ClientSize of the 
7640             control. Fixes #77416.
7641           - DefaultSize is 0,0 for control
7642         * TextBoxBase.cs: 
7643           - DefaultSize is 100, 20
7644           - SetBoundsCore: Now enforcing the height, no matter if the provided
7645             height is more or less than the preferred one, as long as AutoSize
7646             is on
7647         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
7648
7649 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
7650
7651         * Control.cs:
7652           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
7653             call unless both performLayout is true *and* we have a pending
7654             layout change
7655           - ResumeLayout: MS does not completely nest Suspend and Resume,
7656             they bottom out at 0, fixed our code to match that.
7657           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
7658             SetBoundsCore, we were updating even when we shouldn't. This fixes
7659             swf-anchors mis-anchoring when resizing the app fast and lots.
7660           - UpdateDistances: Now only setting the left and top distance if 
7661             we have a parent and are not suspended, this is based on
7662             a suggestion by Don Edvaldson in bug #77355.
7663           - OnVisibleChanged: Fixed logic when to create the control. We may
7664             not create the control if we have no parent or if it's not visible;
7665             switched to using Visible property instead of is_visible field 
7666             since the property also considers parent states. This fixes a bug
7667             when starting Paint.Net
7668
7669 2006-02-02  Jackson Harper  <jackson@ximian.com>
7670
7671         * Form.cs: If the forms handle hasn't been created yet don't call
7672         into xplatui to make it top most, just set the topmost flag on the
7673         form in CreateParams
7674         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
7675
7676 2006-02-01  Jackson Harper  <jackson@ximian.com>
7677
7678         * ScrollableControl.cs: Refactored the Recalculate method a
7679         little, this wasn't handling all the variants of bottom and right
7680         bars needed to be added and added/removed based on their
7681         counterparts being added/removed (which changes the drawable
7682         size). Also we special case client widths and heights of 0 and
7683         don't add the scrollbar for those.
7684
7685 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
7686
7687         * XplatUIX11.cs: 
7688           - Added method to get AbsoluteGeometry(); currently unused, but might
7689             be used in the future, if we try again to figure out toplevel
7690             coordinates with some more crappy window managers
7691           - Added FrameExtents() method to retrieve the WM set decoration size
7692           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
7693             to deal with at least KDE, FVWM and metacity (Fixes #77092)
7694         * Hwnd.cs: 
7695           - Added whacky_wm tracking var for metacity
7696           - Added logic to have default menu height if the actual menu height
7697             has not yet been calculated (part of fix for #77426)
7698         * Form.cs: Keep track whether client size has been set and re-set 
7699           it if a menu is added/removed afterwards (Fixes #77426)
7700
7701 2006-01-31  Jackson Harper  <jackson@ximian.com>
7702
7703         * Control.cs: When a new Site is set on the component attempt to
7704         pull the AmbientProperties from it.
7705
7706 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
7707
7708         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
7709           in the background of the owning form. Fixes #77332
7710
7711 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
7712
7713         * MimeIcon.cs: Fix for #77409
7714
7715 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
7716
7717         * XplatUIX11GTK.cs: Initial import
7718
7719 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
7720
7721         * FixedSizeTextBox: fixes class signature
7722
7723 2006-01-30  Jackson Harper  <jackson@ximian.com>
7724
7725         * FixedSizeTextBox.cs: New internal class that represents a
7726         textBox that will not be scaled.
7727         * TreeView.cs:
7728         * ComboBox.cs:
7729         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
7730         standard TextBox.
7731                 
7732 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
7733
7734         * XplatUIX11.cs: Retrieve default screen number instead of
7735           assuming 0. Attempted fix for #77318
7736
7737 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
7738
7739         * XplatUIWin32.cs: 
7740           - GetWindowPos: When a window is parented by FosterParent, use 
7741             the desktop instead of FosterParent as the base to get coordinates
7742           - CreateWindow: Don't make FosterParent the parent window for Popups
7743             if we don't want a taskbar entry, Popups automatically don't get one
7744         * Hwnd.cs: Need to call remove to actually remove the key from the
7745           hash table
7746
7747 2006-01-30  Mike Kestner  <mkestner@novell.com>
7748
7749         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
7750
7751 2006-01-30  Jackson Harper  <jackson@ximian.com>
7752
7753         * TreeView.cs:
7754         * TreeNode.cs: Raise events no matter how the treenode is
7755         checked. Patch by Don Edvalson.
7756
7757 2006-01-30  Jackson Harper  <jackson@ximian.com>
7758
7759         * TreeNode.cs: Signature fix.
7760
7761 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
7762
7763         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
7764
7765 2006-01-20  Mike Kestner  <mkestner@novell.com>
7766
7767         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
7768         event forwarding when menus are active.
7769         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
7770         Most of the patch is pdb's with a little rework.
7771
7772 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
7773
7774         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
7775           Removed GetMenuDC and ReleaseMenuDC methods; replaced
7776           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
7777         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
7778         * InternalWindowManager.cs: Added use of PaintEventStart/End to
7779           handling of WM_NCPAINT message, now passing the PaintEventArgs to
7780           the PaintWindowDecorations method
7781         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
7782         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
7783         * MenuAPI.cs: Made tracker window invisible
7784         * XplatUIWin32.cs:
7785           - Removed GetMenuDC and ReleaseMenuDC methods
7786           - Implemented the client=false path for PaintEventStart and
7787             PaintEventEnd
7788
7789 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
7790
7791         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
7792         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
7793           styles
7794         * Form.cs: 
7795           - MaximizeBox, MinimizeBox: Recreate the handle when setting
7796             the style
7797           - CreateParams: Reworked the styles to match MS look'n'feel,
7798             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
7799             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
7800
7801 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
7802
7803         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
7804           window is not mapped, since otherwise every form that's being 
7805           created is considered minimized, which is wrong.
7806         * Form.cs: Catching the exception and returning our internal value
7807           instead
7808
7809 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
7810
7811         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
7812           SetWindowMinMax() to have means to tell the driver about the minimum,
7813           maximum and maximized state window sizes. (Part of the fix for #76485)
7814         * Form.cs:
7815           - Implemented tracking of minimum and maximum window size, now calling
7816             new SetWindowMinMax() driver method to tell the driver (Part of the
7817             fix for #76485)
7818           - Finished handling of WM_GETMINMAXINFO method, now setting all values
7819             (Completes fix for #76485)
7820           - Calling new SetWindowMinMax driver method when the handle for a 
7821             form is created, to make sure the driver knows about it even if
7822             the values have been set before the window was created
7823           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
7824             to avoid messing up our anchoring calculations (partial fix
7825             for #77355)
7826         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
7827         * XplatUIX11.cs:
7828           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
7829           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
7830             (and presumably other freedesktop.org compliant WMs). Left the
7831             assumption unmapped=minimized, needed for SetVisible to work.
7832           - Now setting the window state when creating windows
7833           - Fixed SetVisible to consider/set the window state when mapping
7834             a Form. We cannot set the state before it's mapped, and we cannot
7835             use Form.WindowState once it's mapped (since it would ask the
7836             driver and get 'normal'. Therefore, we grab the state before
7837             mapping, map, and then set state.
7838           - Implmemented SetWindowMinMax method; Metacity does not seem to
7839             honor the ZoomHints, though.
7840         * XplatUIWin32.cs:
7841           - Removed MINMAXINFO (moved to XplatUIStructs)
7842           - Added SetWindowMinMax stub (on Win32 the only way to set that
7843             information is in response to the WM_GETMINMAXINFO message, which
7844             is handled in Form.cs)
7845           - Added logic to SetVisible to set the proper window state when a 
7846             form is made visible (fixes #75720)
7847
7848 2006-01-26  Jackson Harper  <jackson@ximian.com>
7849
7850         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
7851         same way we handle them with Invoke.
7852
7853 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
7854
7855         * Form.cs:
7856           - Added tracking of window state so CreateParams can return
7857             the appropriate style
7858           - Moved setting of WS_CAPTION style in CreateParams to allow
7859             styles without caption
7860         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
7861           control if the TextBox property is accessed. Fixes #77345
7862         * Control.cs:
7863           - get_Created: now uses is_disposed and is_created to determine
7864             return value (suggested by Jackson)
7865           - CreateHandle: No longer exits if the handle is being recreated
7866           - RecreateHandle: If the handle is not yet created call the 
7867             appropriate method to create either control or handle. If the
7868             control is already created CreateHandle will simply exit instead
7869             of just creating the handle
7870         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
7871           now SendMessage WM_DESTROY directly to the control when DestroyWindow
7872           is called.
7873         * XplatUIX11.cs: 
7874           - When DestroyWindow is called, instead of waiting for the 
7875             DestroyNotification from X11, we directly post it to the WndProc
7876             and immediately dispose the hwnd object.
7877             Same applies to DestroyChildWindows, and this obsoletes the
7878             expose_pending tracking. Contrary to Win32 behaviour we destroy our
7879             child windows before our own, to avoid X11 errors.
7880           - Removed the direct sending of WM_PAINT on UpdateWindow
7881         * XplatUIWin32.cs:
7882           - Reworked DoEvents and GetMessage to allow access to internal queue
7883             even when trying non-blocking access to the queue.  Fixes #77335. 
7884             Based on a patch suggestion by Don Edvalson. The new private
7885             GetMessage can now also be used as a backend for a PeekMessage
7886             frontend version.
7887         * XplatUI.cs: Improved debug output for CreateWindow
7888
7889 2006-01-25  Jackson Harper  <jackson@ximian.com>
7890
7891         * Help.cs: Allow param to be null. Patch by Don Edvalson.
7892
7893 2006-01-24  Jackson Harper  <jackson@ximian.com>
7894
7895         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
7896         when we have a MaxDropItems lower then the selected index.
7897
7898 2006-01-24  Jackson Harper  <jackson@ximian.com>
7899
7900         * Control.cs: Don't allow selection of non visible controls, allow
7901         selection of controls without parents.
7902
7903 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7904
7905         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
7906         * DataGridDrawingLogic.cs: Add editing row only when is necessary
7907
7908 2006-01-23  Jackson Harper  <jackson@ximian.com>
7909
7910         * UpDownBase.cs: Make the textbox handle all the selection and
7911         tabbing. This fixes tabing to updown controls.
7912
7913 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7914
7915         * TextBoxBase.cs: fixes exception thown the object was null
7916
7917 2006-01-23  Jackson Harper  <jackson@ximian.com>
7918
7919         * ButtonBase.cs: Just use the base CreateParams. They set
7920         visibility and enabled correctly.
7921         * ComboBox.cs:
7922         * TrackBar.cs:
7923         * MonthCalendar.cs: Lets let the base set as much of the
7924         createparams as possible so we don't have duplicate code all over
7925         the place.
7926
7927 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
7928
7929         * ThemeGtk.cs: Added TrackBar and some experimental code to
7930           get double buffering back
7931
7932 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
7933
7934         * DataGrid.cs: Allows row number set internally higher than the last
7935         when creating a new row. Restores the editing functionality.
7936
7937 2006-01-20  Mike Kestner  <mkestner@novell.com>
7938
7939         * MimeIcon.cs: delay Image creation until the icons are accessed
7940         instead of creating 190 scaled images on GnomeHandler startup.
7941
7942 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
7943
7944         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
7945           first call base before processing the event. Fixes #77279
7946
7947 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
7948
7949         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
7950           that the stride for the GDI bitmap would match the stride of
7951           a DIB or a Cursor.
7952
7953 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
7954
7955         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
7956
7957 2006-01-19  Jackson Harper  <jackson@ximian.com>
7958
7959         * ComboBox.cs: Hookup the text controls keydown event so we get
7960         those when the text control has the focus.
7961
7962 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7963
7964         * Label.cs: Now using the base events instead of defining new ones;
7965           this allows us to just call the base properties without having to
7966           duplicate all base property logic 
7967
7968 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7969
7970         * Label.cs: A label by default is not a tabstop (Fixes one of our
7971           failing nunit tests)
7972
7973 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7974
7975         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
7976         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
7977
7978 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7979
7980         * Cursor.cs: Reimplemented creating cursor bitmaps without using
7981           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
7982           This fixes #77218
7983         * XplatUIWin32.cs: 
7984           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
7985             constructor creates images that can't be saved. Part of the fix
7986             for #76103
7987           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
7988           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
7989             bug fix for handling window state in forms properly)
7990
7991 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7992
7993         * ThemeGtk.cs: Simplify ScrollBar drawing
7994
7995 2006-01-18  Jackson Harper  <jackson@ximian.com>
7996
7997         * Splitter.cs: Set the default dock style for the splitter control
7998         in the constructor.
7999
8000 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
8001
8002         * ThemeGtk.cs: Corrected StateType and ShadowType for
8003           gtk_paint_box
8004
8005 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
8006
8007         * Control.cs: Make use of Theme.DoubleBufferingSupported
8008         * ThemeGtk.cs:
8009           - Added drawing for flat style buttons
8010           - Added ScrollBar drawing
8011
8012 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
8013
8014         * ThemeClearlooks.cs: Removed some unneeded code.
8015         * ThemeGtk.cs: First part of ThemeGtk enhancements.
8016
8017 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
8018
8019         * LinkLabel.cs: We need to update the hover drawing when
8020           leaving the control as well.
8021
8022 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
8023
8024         * DataGrid.cs: Clicking on non empty areas in the columns
8025            area was giving an exception
8026
8027 2006-01-17  Jackson Harper  <jackson@ximian.com>
8028
8029         * ThemeWin32Classic.cs:
8030         * ListView.cs: Do not draw/clip the headers when the header style
8031         is None.
8032
8033 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
8034
8035         * DataGrid.cs: Fixes 77260
8036         
8037 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
8038
8039         * DataGrid.cs: Clicking on a column on a empty grid was giving
8040           an exception
8041
8042 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
8043
8044         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
8045           or any keypress will crash the grid.
8046
8047 2006-01-17  Mike Kestner  <mkestner@novell.com>
8048
8049         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
8050         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
8051         invisible/previously-visible items.
8052         [Fixes #76909]
8053
8054 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
8055
8056         * ThemeClearlooks.cs:
8057         - Added CL_Draw_Button method; now other theme controls that are 
8058           not derived from button or do not have a button can draw buttons
8059           too
8060         - Updated ComboBox drawing
8061         - Beautified RadioButton drawing
8062         - Corrected drawing of bottom and left tabs
8063         - Beautified DateTimePicker and MonthCalendar
8064         - Added CPDrawButton and CPDrawRadioButton
8065
8066 2006-01-16  Jackson Harper  <jackson@ximian.com>
8067
8068         * ComboBox.cs: Set the initial value of the scrollbar to the
8069         current index. Reduce the numbers of refreshs and IndexOfs called.
8070
8071 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
8072
8073         * FileDialog.cs: When the file listview is focused hitting the
8074           backspace key moves the fileview to the parent directory
8075
8076 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
8077
8078         * Form.cs: 
8079           - Added RecreateHandle call when changing taskbar visibility to 
8080             trigger reparenting in Win32 driver (Fixes #75719)
8081           - If a window has minimize or maximize buttons, it cannot have
8082             a help button
8083         * XplatUIWin32.cs:
8084           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
8085             the toplevel form with FosterParent (A toolwindow not on the
8086             taskbar) (Fixes #75719)
8087           - Made FosterParent a toolwindow
8088
8089 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
8090
8091         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
8092
8093 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
8094
8095         * ToolTip.cs: If SetToolTip is called from a control and the mouse
8096           is currently over that control, make sure that tooltip_window.Text
8097           gets updated
8098
8099 2006-01-13  Mike Kestner  <mkestner@novell.com>
8100
8101         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
8102
8103 2006-01-13  Jackson Harper  <jackson@ximian.com>
8104
8105         * TreeView.cs: On MS GetNodeAt never actually factors in the X
8106         value passed.  Also redraw the selected node when we recieve
8107         focus, so tabbing between trees works correctly.
8108
8109 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
8110
8111         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
8112           ~/.gconf/%gconf-tree.xml, so use
8113           .gconf/desktop/gnome/interface/%gconf.xml
8114
8115 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
8116
8117         * TextControl.cs: Draw text in gray if control is disabled
8118
8119 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
8120
8121         * TreeView.cs: Draw the focus rectangle outside the highlight, to
8122           make sure it's always visible. Fixes #76680.
8123
8124 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
8125
8126         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
8127
8128 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
8129
8130         * PageSetupDialog.cs: Added.
8131         * PrintDialog.cs: Attributes.
8132         * PrintPreviewControl.cs: Updates.
8133         * PrintPreviewDialog.cs: Updates.
8134         
8135 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
8136
8137         * Control.cs: Undid my selection check fix, since it's not needed
8138         * TextBoxBase.cs:
8139           - Now considering the presence of hscroll/vscroll when sizing
8140             vscroll/hscroll respectively. Fixed bug #77077
8141           - Added Left/Up/Down/Right to IsInputKey list to prevent
8142             ContainerControl from stealing them. This fixes what I broke
8143             with my last checkin.
8144
8145 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
8146
8147         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
8148           I finally understand how the property can be set without a setter :-)
8149
8150 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
8151
8152         * Application.cs:
8153           - Switched RunLoop to use static Message.Create to create a 
8154             Message object
8155           - Added PreProcessMessage call in runloop for keyboard events; this
8156             is part of the fix for #77219, I overlooked this originally in the
8157             MSDN doc for PreProcessMessage
8158         * Control.cs:
8159           - Removed call to PreProcessMessage from handling of keyboard 
8160             messages; it's supposed to be done in the message pump
8161           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
8162             per MSDN documentation.
8163           - IsInputChar: All chars are input chars by default; removed the 
8164             parent calling chain, MS does not document that
8165           - PreProcessMessage: If IsInputChar is true, we want to return false
8166             to allow dispatching of the message
8167           - When selecting the next control, now also check that we're not
8168             selecting ourselves again and therefore return a false positive.
8169         * TextBoxBase.cs:
8170           - Tried to match return values for IsInputKey and ProcessDialogKey
8171             to what MS returns; moved processing of our special keys outside
8172             ProcessDialogKey since MS does not seem to return true on those.
8173           - Moved code that previously was in ProcessDialogKey into new private
8174             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
8175           - Reworked handling of WM_CHAR to not have to duplicate code from
8176             Control.cs anymore, instead we simply call down to base.
8177            
8178 2006-01-12  Jackson Harper  <jackson@ximian.com>
8179
8180         * ComboBox.cs: We always need to refresh the text area when
8181         EndUpdate is called. Fixes the combobox in the file dialog.
8182         * Control.cs: Don't create the creator_thread until the controls
8183         handle is created.  Also in InvokeRequired we check if the
8184         creator_thread is null. This gives the effect of InvokeRequired
8185         returning true if the controls handle is not created yet, and
8186         matches MS.
8187
8188 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
8189
8190         * XplatUI.cs:
8191           - Added StartLoop() driver method. This is used to allow drivers to
8192             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
8193             loop for a particular thread
8194           - Added EndLoop() driver method. This is called once the message
8195             pump for the thread is shut down
8196           - Added SupportsTransparency method to allow the driver to indicate
8197             opacity support for windows
8198         * Form.cs:
8199           - Removed TODO attribute, completed AllowTransparency property
8200           - Added documented logic to Opacity
8201         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
8202           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
8203           versions of CompatibleTextRendering
8204         * X11Structs.cs: Added opacity atom to our atom enumeration
8205         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
8206           of a form might be set before it's reparented by the WM, and we need
8207           the opacity value without calling up to Form)
8208         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
8209           SupportsTransparency() driver methods
8210         * Application.cs: Now calling StartLoop and EndLoop driver methods
8211         * XplatUIX11.cs:
8212           - Added opacity atom registration
8213           - Added StartLoop()/EndLoop() methods. They're empty right now but
8214             will need to get implemented when we switch to a per-thread queue
8215           - Implemented SupportsTransparency() method
8216           - Implemented SetWindowTransparency() method
8217           - Added support for setting the opacity value when a window is
8218             reparented (since the opacity needs to be set on the WM frame)
8219         * XplatUIOSX.cs, XplatUIWin32.cs:
8220           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
8221
8222 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
8223
8224         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
8225
8226 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
8227
8228         * FileDialog.cs: Added ToolTip for MWFFileView
8229         * MimeIcon.cs: Rewrote GnomeHandler.
8230           - Get currently used gnome icon theme from
8231             ($HOME)/.gconf/%gconf-tree.xml
8232           - Make use of inherited icon themes
8233           - Support SVG icon themes like Tango via librsvg
8234
8235 2006-01-12  Miguel de Icaza  <miguel@novell.com>
8236
8237         Revert's Jackson's revert which broke 2.0 builds.   Fix both
8238         builds. 
8239         
8240         * Application.cs: Move the use_compatible_text_rendering outside
8241         the NET_2_0 define.  If we ever need to use the
8242         use_compatible_text_rendering on the individual controls they will
8243         access the variable from the common shared code paths.
8244
8245 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
8246
8247         * XplatUI.cs:
8248           - Added more granular debug options
8249           - Added method to print both window text and id
8250           - Switched debug output to use new Window() debug method
8251           - Added IsEnabled() driver method
8252           - Added EnableWindow() driver method
8253         * Form.cs:
8254           - Removed end_modal; no longer needed, new loop handles termination
8255             via 'closing' variable
8256           - If form is modal, setting DialogResult will now initiate loop
8257             termination via 'closing' variable
8258           - Added support for is_enabled/WS_DISABLED to CreateParams
8259           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
8260             does all the work
8261           - Removed code that's now in RunLoop from ShowDialog()
8262           - Added various documented sanity checks to ShowDialog()
8263           - Added handling of WM_DESTROY message; we set 'closing' on getting
8264             the message to indicate the message pump to terminate
8265           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
8266             send by the Application.ExitThread method. (We send the message
8267             to destroy the window after all other events have been
8268             processed through the queue, instead of destroying the handle 
8269             directly)
8270           - Moved code from Close() method to WM_CLOSE handler; added logic
8271             to only send close-related events if the form is not displayed
8272             modal
8273         * Splitter.cs (..ctor): Fixed typo in resource name
8274         * Control.cs:
8275           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
8276             brush now
8277           - set_Cursor: Now only setting calling into XplatUI if the handle for
8278             the control is already created; this avoids implict handle creation
8279             or crashes if it's not created
8280           - set_Enabled: Now setting the enabled state via the new driver method
8281             instead of just tracking it
8282           - CreateParams: Added logic to set WS_DISABLED based on enabled state
8283           - CreateControl: Reordered event firing and method calls to more
8284             closely fire events in the order MS does. Now setting the
8285             enabled state in the driver when creating the control.
8286           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
8287             match MS order
8288         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
8289           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
8290         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
8291         * Hwnd.cs:
8292           - Added tracking of window enabled state (get_Enabled/set_Enabled)
8293           - Added EnabledHwnd property to easily allow a driver to find the
8294             handle of the first enabled window in the parent chain (this is
8295             used by drivers to pass up input events of disabled windows)
8296         * XplatUIDriver.cs: Added IsEnabled() method
8297         * Application.cs:
8298           - Removed crude and obsolete exiting tracking variable
8299           - Removed internal ModalRun(); replaced by RunLoop()
8300           - Implemented private CloseForms() method to allow closing all 
8301             windows owned by a particular (or all) threads
8302           - Exit() now properly closes all windows without forcing the message
8303             pump to quit
8304           - Removed obsolete InternalExit() method
8305           - Changed Run() methods to use new RunLoop() message pump
8306           - Implemented new RunLoop() method for both modal and non-modal forms
8307         * CommonDialog.cs:
8308           - get_CreateParams: Added setting of WS_DISABLED
8309           - Simplified ShowDialog(); now all the work is done in RunLoop(),
8310             invoked via Form.ShowDialog()
8311         * NativeWindow.cs: We don't remove the window from the collection when
8312           the handle is destroyed; there might still be messages for it in the
8313           queue (mainly the resulting WM_DESTROY); instead it will be removed
8314           when Control calls InvalidateHandle in the WM_DESTROY handler
8315         * XplatUIX11.cs:
8316           - CreateWindow: Added logic to handle the WS_DISABLED window style
8317           - EnableWindow: Implemented based on Hwnd.Enabled
8318           - GetMessage: Reset PostQuitState so the method can be called again
8319           - Implemented support for disabled windows (passing messages to the
8320             first enabled parent) in handling all input messages
8321           - Added optimizations for handling Expose events
8322           - Implemeted new driver method IsEnabled()
8323           - Now always resetting paint pending tracking vars when we start paint
8324           - Re-implemented UpdateWindow via just sending a WM_PAINT message
8325         * XplatUIOSX.cs: Added IsEnabled method stub
8326         * XplatUIWin32.cs: Implemented new IsEnabled() method
8327
8328 2006-01-11  Jackson Harper  <jackson@ximian.com>
8329
8330         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8331         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
8332         variables a little.
8333         * ColorDialog.cs: Clear out the old form before adding the new
8334         panel.  
8335
8336 2006-01-11  Jackson Harper  <jackson@ximian.com>
8337
8338         * X11Dnd.cs: Make sure to add all the text formats when adding
8339         strings to the data object.
8340         * TreeNodeCollection.cs: When adding to a sorted tree we need to
8341         do some redrawing too.  Also change the UpdateNode to an
8342         UpdateBelow so the newly added node gets painted.
8343         
8344 2006-01-11  Miguel de Icaza  <miguel@novell.com>
8345
8346         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8347         LinkLabel.cs, PropertyGrid.cs: Implement the
8348         UseCompatibleTextRendering property for 2.x
8349
8350         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
8351
8352 2006-01-11  Jackson Harper  <jackson@ximian.com>
8353
8354         * TreeView.cs: Use the property for setting the selected node so
8355         the correct events get raised.
8356         * TreeNode.cs: Update the tree when the fore/back colours of a
8357         node are set.
8358
8359 2006-01-10  Jackson Harper  <jackson@ximian.com>
8360
8361         * TreeView.cs: Allow setting SelectedNode to null.
8362
8363 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8364
8365         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
8366
8367 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8368
8369         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
8370
8371 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8372
8373         * PrintDialog.cs: Added attributes and set default property values.
8374
8375 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8376
8377         * PrintControllerWithStatusDialog.cs: 
8378         Added PrintControllerWithStatusDialog.
8379
8380 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8381
8382         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
8383         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
8384
8385 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8386
8387         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
8388
8389 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
8390
8391         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
8392         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
8393
8394 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
8395
8396         * MimeIcon.cs: Added internal class SVGUtil.
8397
8398 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
8399
8400         * FileDialog.cs: Don't crash if there are two files with the
8401           same name but different locations.
8402
8403 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
8404
8405         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
8406         dates across multiple month grids. Used to not highlight entire 
8407         month, but does now.
8408         
8409 2006-01-06  Jackson Harper  <jackson@ximian.com>
8410
8411         * MonthCalendar.cs: Removed DoEvents call to prevent a running
8412         message loop. Change timer intervals to numbers that seem more
8413         natural.
8414
8415 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
8416
8417         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
8418           object for location info since screen object is now implemented.
8419
8420 2006-01-05  Jackson Harper  <jackson@ximian.com>
8421
8422         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
8423         * AsyncMethodResult.cs: We no longer use a WeakReference for the
8424         AsyncMethodResult, this is because we ALWAYS want the
8425         ManualResetEvent to get set.
8426         * Control.cs: When disposing use an async invoke to call shutdown
8427         code, so that thigns don't block on the finalizer thread.  Also
8428         check if we even have a message loop before trying to send
8429         messages, if we don't then don't bother sending messages.
8430         - No more weak references for async methods
8431         * XplatUIDriver.cs: No more weak references for async methods.
8432
8433 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8434
8435         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
8436           returns two FontFamily with the same name
8437
8438 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
8439
8440         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
8441           drawing disabled text. Instead using the ColorGrayText color
8442
8443 2006-01-04  Jackson Harper  <jackson@ximian.com>
8444
8445         * TreeNode.cs: redraw the node when its image index is changed.
8446
8447 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
8448
8449         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
8450           time I checked there are no others like it.
8451
8452 2006-01-04  Jackson Harper  <jackson@ximian.com>
8453
8454         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
8455         this gives the behavoir I was looking for.
8456         * Control.cs: Special case Invoking EventHandlers, this matches MS
8457         and fixes part of bug #76326.
8458
8459 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8460
8461         * ThemeClearlooks.cs, FileDialog.cs:
8462           - Reflect the latest Theme class changes
8463           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
8464             with DateTime
8465             
8466 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8467
8468         * Theme.cs: Cache UI resource images and resize them if needed
8469
8470 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
8471
8472         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
8473           is called. This fixes the crash in Nexxia when setting the font
8474           attributes in the chat. [However, RTF needs a look-over to make sure
8475           that all SelectionXXX methods handle the special case that selection
8476           is empty and therefore the change must be applied to all text starting
8477           at the cursor/selection start]
8478
8479 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
8480
8481         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8482           XplatUIOSX.cs: Added SendMessage and PostMessage methods
8483         * X11Keyboard.cs: Switched to new way of calling PostMessage
8484
8485 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
8486
8487         * Theme.cs: Added theme interface for images to allow the theme to
8488           control what images are used for things like FileDialog, MessageBox
8489           icons, etc.
8490         * MessageBox.cs: Now uses the new Theme icon/image interfaces
8491
8492 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
8493
8494         * FileDialog.cs:
8495           - Removed some dead code
8496           - Opening a recently used file does work now
8497           - Small UI enhancements
8498           - Refactoring
8499
8500 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
8501
8502         * FileDialog.cs: Forgot too add __MonoCS__
8503
8504 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
8505
8506         * FileDialog.cs: We are able to read recently used files now let's
8507           go on and write them.
8508
8509 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
8510
8511         * FileDialog.cs: Breathe some life into "last open"/"recently used"
8512           button
8513         * MimeIcon.cs: Do a check for the top level media type also
8514
8515 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
8516
8517         * ThemeClearlooks.cs:
8518           - Added CPDrawStringDisabled
8519           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
8520             some chars if the text doesn't fit into text_rect
8521           - DrawListViewItem: If View = View.LargeIcon center the image;
8522             rewrote the drawing of ListViewItem.Text if View = 
8523             View.LargeIcon
8524
8525 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
8526
8527         * MimeIcon.cs: Use default KDE icon theme if there is no
8528           "48x48" directory for the current icon theme, fixes #77114
8529         * Mime.cs: Disable not working and actually not used code. 
8530         * ThemeWin32Classic.cs:
8531           - Replace "new SolidBrush" in GetControlBackBrush and
8532             GetControlForeBrush with ResPool.GetSolidBrush
8533           - Changed DrawListViewItem from private to protected virtual
8534         * FileDialog.cs:
8535           - Added form.MaximizeBox = true
8536           - Don't throw an exception if there is a broken symbolic link
8537
8538 2005-12-23  Jackson Harper  <jackson@ximian.com>
8539
8540         * TabControl.cs: Give the panels focus, keyboard navigation is
8541         fixed so this works correctly now.
8542         - We need these key events also.
8543         * ToolBar.cs: Remove some of the poor mans double buffering.
8544         
8545 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
8546
8547         * ComboBox.cs: The internal TextBox now returns the focus.
8548
8549 2005-12-23  Jackson Harper  <jackson@ximian.com>
8550
8551         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
8552
8553 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
8554
8555         * Control.cs: Removed debug code
8556         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
8557           implicit children
8558
8559 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
8560
8561         * Control.cs: When creating the control, update the Z-order after
8562           all it's children are created, too. (Fixes nexxia not showing
8563           picturebox bug)
8564
8565 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
8566
8567         * Control.cs: Do not update the anchoring distances if layout is
8568           suspended, instead do it once layout is resumed
8569
8570 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
8571
8572         * Control.cs: 
8573           - After many hours of debugging, for both Jackson and
8574             myself, it turns out that it helps to set the parent of a control
8575             if you want to actually see it onscreen. In the spirit of that
8576             discovery, we're now setting the parent of the control and
8577             it's children when the control's handle is created. This fix
8578             will make Lutz Roeder's Reflector run happily. 
8579           - now just creating the handle instead of the whole control when
8580             getting a graphics context for the control.
8581
8582 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
8583
8584         * ScrollableControl.cs: When calculating the canvas, don't consider
8585           the scrollbar widths. Instead, predict if horizontal scrollbar
8586           will affect canvas when deciding on vertical display and vice versa.
8587
8588 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
8589
8590         * RichTextBox.cs: Set default RTF font for documents that don't
8591           have a font table (Fixes #77076)
8592
8593 2005-12-22  Jackson Harper  <jackson@ximian.com>
8594
8595         * TextBoxBase.cs: It's difficult to do, but you can have an empty
8596         clipboard. This prevents a NullRef in that case.
8597         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
8598         clipboard. PRIMARY is for the currently selected text only. (We
8599         should implement PRIMARY at some point.
8600
8601 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8602
8603         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
8604           a Unicode function with a structure that was defined in Ansi way.
8605           This fixes #76942.
8606
8607 2005-12-21  Jackson Harper  <jackson@ximian.com>
8608
8609         * StatusBar.cs: Statusbar handles its fore/back colours on it's
8610         on. Because thats how it rolls. (and this avoids it using ambient
8611         colours).
8612         * ThemeWin32Classic.cs: Use the proper back color for filling.
8613         * Menu.cs: Use the system menu bar color for drawing menu
8614         bars. Using the window back color will bring ambient colours into
8615         the picture.
8616
8617 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
8618
8619         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
8620           Bitmaps were created and not disposed.
8621
8622 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8623
8624         * Control.cs (CreateControl): Don't do anything if the control is
8625           already created, otherwise we'd fire the OnCreated event more than
8626           once
8627
8628 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
8629
8630         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
8631           will always match. Instead return -1. Fixes #76464.
8632
8633 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8634
8635         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
8636           neither the beginning nor the end of the line (Fixes bug #76479)
8637
8638 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
8639
8640         * Control.cs:
8641           - ControlNativeWindow.ControlFromHandle(): Now handling situation
8642             where handle is invalid
8643           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
8644             instead of slower linear search
8645         * NativeWindow.cs: Don't remove the window from the hashtable until
8646           after the driver has destroyed it (since the driver might use
8647           Control.FromHandle to lookup the control object
8648         * Hwnd.cs: Added DestroyPending property to track if a window is 
8649           already destroyed as far as the driver is concerned and only hasn't
8650           yet notified the control
8651         * XplatUIX11.cs:
8652           - Activate(): Check if the window is still valid before using the 
8653             handle
8654           - Implemented DestroyChildWindow() method to mark child windows as
8655             destroyed when a window is destroyed. This prevents situations 
8656             where we might call an X method based on queued events for a
8657             window that already has been destroyed but we haven't yet pulled
8658             the destroy method from the queue.
8659           - Added a call to the new DestroyChildWindow() method to the drivers
8660             DestroyWindow code. Also now marking the destroyed window itself
8661             as pending
8662
8663 2005-12-20  Jackson Harper  <jackson@ximian.com>
8664
8665         * StatusBar.cs:
8666         * StatusBarPanel.cs: Don't calculate panel sizes on draw
8667         anymore. Just do them when needed, also track the rects of panels
8668         so that we can optimize refreshing more in the future.
8669
8670 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
8671
8672         * ColorDialog.cs: Fixed focus drawing in small color controls
8673
8674 2005-12-19  Jackson Harper  <jackson@ximian.com>
8675
8676         * InternalWindowManager.cs:
8677         * MdiWindowManager.cs: Cleanup some coordinate system changes so
8678         moving windows works properly.
8679
8680 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
8681
8682         * Control.cs: 
8683           - Removed call to InitLayout() from SetBoundsCore(); doc says
8684             it's only called when a control is added to a container
8685           - Split InitLayout logic, moved to separate UpdateDistances() method
8686             since we need to perform those calculations more often than just
8687             when adding the control to a container. (Needed to fix #77022)
8688           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
8689           - Reduced the OnBindingContextChanged events count, don't send them
8690             unless the control is created, we still aren't totally matching
8691             MS, but I can't quite figure out some of their rules
8692
8693 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8694
8695         * ThemeClearlooks.cs: Corrected distance between ProgressBar
8696           stripes
8697
8698 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8699
8700         * ThemeClearlooks.cs:
8701           - Updated ProgressBar drawing
8702           - Corrected drawing of ScrollBars and scroll buttons
8703           - Some temporary fixes for minor pixel artefacts
8704
8705 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
8706
8707         * Control.cs:
8708           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
8709             cause events to be sent in the same order as MS does.
8710           - Added ChangeParent() method to trigger various OnXXXChanged events
8711             that need to be fired when a parent changes (This is a reworking
8712             of the patch from r54254, with the X11 errors fixed)
8713           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
8714             since on MS we get OnLayoutChanged events when calling Clear()
8715           - Changed Enabled property to consider parent state as well, if a
8716             parent is not enabled, the control will not be either
8717           - Changed Parent property to simply call Controls.Add() since that
8718             now does all the work required, this way we avoid code duplication
8719           - Threw in a few OnBindingsContextChanged calls to try and match
8720             when MS sends them. We seem to send a few too many, though.
8721           - Added call to CreateControl when adding the control to a parent.
8722             We were never calling CreateControl. Still needs some work, in
8723             some places we treat HandleCreated and ControlCreated as equal, 
8724             which is wrong
8725           - Removed obsolete commented out code from UpdateZOrder()
8726
8727 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8728
8729         * ThemeClearlooks.cs: Updated TrackBar drawing.
8730
8731 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
8732
8733         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
8734
8735 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
8736
8737         * FileDialog.cs: Add the Help button and the open readonly
8738           checkbox only if needed
8739
8740 2005-12-16  Jackson Harper  <jackson@ximian.com>
8741
8742         * Control.cs: Make sure we have an active menu before trying to
8743         process commands on it. Prevents menu-less forms from crashing
8744         when Alt is pressed.
8745         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
8746         Dieter Bremes.
8747         * RichTextBox.cs: Expand statement to help out gmcs and fix the
8748         2.0 build.
8749
8750 2005-12-16  Jackson Harper  <jackson@ximian.com>
8751
8752         * InternalWindowManager.cs: Don't translate tool windows screen
8753         coordinates. This fixes windows 'bouncing' around when being moved.
8754
8755 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
8756
8757         * TextBoxBase.cs:
8758           - MaxLength now treats 2^31-1 equal to unlimited length (this is
8759             not quite MS compatible, MS uses that number only for single line
8760             and 2^32-1 for multi-line, but I figure it won't hurt keeping
8761             the limit at 2GB)
8762           - Now enforcing the MaxLength limit when entering characters
8763           - Added argument to internal Paste() method to track if it's called
8764             from programatically or via keyboard, since keyboard driven pastes
8765             need to enforce max-length
8766           - Added logic to Paste to only paste as many chars as MaxLength 
8767             allows
8768         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
8769         * TextControl.cs:
8770           - Added Length property to return number of characters in document
8771           - Added private CharCount property which only tracks actual chars
8772             in the document (no linefeeds) and fires event when CharCount
8773             changes
8774           - Added tracking of character count to all methods that alter it
8775           - Added LengthChanged event to allow applications to subscribe
8776             to any changes to the document
8777
8778 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
8779
8780         * TextBox.cs: 
8781           - Removed local password_char field (moved to TextBoxBase)
8782           - Now setting the document's password var when password is
8783             set
8784         * TextBoxBase.cs:
8785           - Added password_char field (needed here so MultiLine can
8786             access it)
8787           - Added logic to MultiLine property setter to set the document's
8788             variable when password display is allowed
8789           - Removed debug code and made some debug code conditional
8790         * TextControl.cs:
8791           - Added RecalculatePasswordLine() method to handle special password
8792             char only lines
8793           - Added PasswordChar property, also added related tracking vars
8794           - Draw() method now uses local text var for grabbing text to draw,
8795             this var is set to line.text unless we're doing password display,
8796             then it is set to the pre-generated all-password-chars line
8797           - Added calling RecalculatePasswordLine() method for password lines
8798
8799 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
8800
8801         * Hwnd.cs: 
8802           - Added Reparented property to allow tracking of Window Manager
8803             reparenting actions (which affect X/Y calculations of toplevel 
8804             windows)
8805           - Made ToString() print window handles in hex
8806         * XplatUIX11.cs:
8807           - AddConfigureNotify(): Now uses reparented state off Hwnd to
8808             determine if X/Y needs offsetting
8809           - AddConfigureNotify(): Fixed offset calculations
8810           - Now adds ReparentNotify messages into the queue
8811           - Now processes ReparentNotify messages and causes a 
8812             WM_WINDOWPOSCHANGED message to be sent upstream if a window
8813             is reparented (as most likely it's X/Y coordinates are changed
8814             due to that)
8815
8816 2005-12-14  Jackson Harper  <jackson@ximian.com>
8817
8818         * XplatUIX11.cs: Tool windows still need to respek focus.
8819
8820 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
8821
8822         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
8823           have a working release
8824
8825 2005-12-13  Jackson Harper  <jackson@ximian.com>
8826
8827         * Form.cs: Update styles after setting the border style regardless
8828         of whether or not the window is using a window manager.
8829
8830 2005-12-13  Jackson Harper  <jackson@ximian.com>
8831
8832         * Form.cs: We now hook into an internal window manager instead of just an
8833         MDI subsystem, this is so we can have properly behaving tool windows.
8834         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
8835         * InternalWindowManager.cs: New internal class that acts as a
8836         window manager for tool windows and as a base for mdi windows.
8837         * MdiWindowManager.cs: New class that acts as a window manager for
8838         mdi windows.
8839
8840 2005-12-12  Jackson Harper  <jackson@ximian.com>
8841
8842         * Control.cs: Updates so we match behavoir for for implicit
8843         controls. Fixes explosions in MDI.
8844
8845 2005-12-12  Jackson Harper  <jackson@ximian.com>
8846
8847         * Control.cs: Implement Invalidate (Region).
8848
8849 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
8850
8851         * Control.cs: 
8852           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
8853             the same events as MS does. MS fires events for each property 
8854             except, for unknown reasons, Cursor, when the control is reparented. 
8855             I can't seem to totally match add/remove since MS also fires some 
8856             VisibleChanged events, which makes no sense. Consolidated the
8857             parenting code into a separate method so it can be called from
8858             both Add and Remove. set_Parent no longer needs any special logic
8859             as it calls the parent's add method which implicitly fires
8860             all events
8861           - Removed some obsolete code and debug output
8862           - Enabled state is inherited from parents, if this is enabled
8863
8864 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
8865
8866         * Form.cs: Removed commented out code
8867
8868 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
8869
8870         * Control.cs:
8871           - Added internal version of Invoke, with additional argument 
8872             indicating if we're calling it from a Dispose() handler. That
8873             way we can avoid BeginInvoke throwing an exception if we're
8874             calling for an already destroyed window.
8875           - Added a dispose argument to BeginInvokeInternal, and made the
8876             check if a valid window handle chain exists conditional on
8877             it not being a dispose call
8878           - Removed code in DestroyHandle to destroy our children. Since we
8879             now handle the WM_DESTROY message we will catch all our children
8880             being destroyed.
8881           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
8882         * Form.cs:
8883           - Added a field to track the application context of the form.
8884           - No need to set closing variable as response to WM_CLOSE, instead
8885             we destroy the window. We also call PostQuitMessage if the form
8886             has an application context (which makes it the main app form,
8887             which, when closed terminates the app)
8888         * XplatUI.cs:
8889           - Dropped Exit() method, it's naming was confusing
8890           - Added PostQuitMessage() which causes GetMessage to return false
8891             once the message queue is empty
8892         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
8893           PostQuitMessage()
8894         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
8895           no longer a valid XplatUI method, but left it in since it's used
8896           internally. Added empty PostQuitMessage() method.
8897         * MenuAPI.cs: Replaced call to Exit() with call to
8898           PostQuitMessage, even though this is probably no longer needed.
8899         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
8900         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
8901         * Application.cs:
8902           - Replaced call to XplatUI.Exit() with PostQuitMessage()
8903           - Removed old debug code that would call XplatUI for exception
8904             display, enabled standard exception handling (Still not enabled
8905             though, until NativeWindow's ExternalExceptionHandler define
8906             is removed
8907         * NativeWindow.cs:
8908           - Added internal method to allow control to update NativeWindow
8909             after a window has been destroyed
8910           - Added handling of already destroyed windows when calling i
8911             DestroyWindow
8912           - Added removal of handle from list on ReleaseHandle
8913         * XplatUIX11.cs:
8914           - Dropped GetMessageResult var and related code
8915           - Added PostQuitState to field to track if PostQuitMessage has been
8916             called
8917           - Dropped Exit() method
8918           - Added PostQuitMessage() method
8919           - GetMessage now will return false if PostQuitState is set and no
8920             more messages are in the queue.
8921           - Expose handler will no longer generate WM_PAINT messages if we are
8922             in PostQuitState since it's very likely any windows have already
8923             been destroyed, and since Hwnd won't get updated until we have
8924             processed the DestroyNotify we'd be causing X errors.
8925         
8926 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8927
8928         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
8929           Thanks to Mike for pointing out the err of my ways.
8930
8931 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8932
8933         * Control.cs(PreProcessMessage): Moved menu handling back, but
8934           after all other key handling, to match MS (who handles Menu in
8935           DefWndProc)
8936         * Menu.cs (WndProc): Removed my brainfart
8937
8938 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8939
8940         * Control.cs(PreProcessMessage): Removed special menu handling 
8941         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
8942
8943 2005-12-07  Mike Kestner  <mkestner@novell.com>
8944
8945         * Control.cs : special case SYSKEYUP so that we can adjust keynav
8946         state according in tracker.
8947         * Menu.cs : promote tracker field to base class and provide a tracker
8948         lookup capability.  Add/Remove shortcuts dynamically if the top menu
8949         has a tracker. Unparent items that are removed from the collection.
8950         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
8951         * Theme*.cs: add always_show_hotkeys field to support configurability
8952         of mnemonic display.  win32 doesn't show mnemonics until Alt is
8953         pressed.
8954
8955 2005-12-07  Jackson Harper  <jackson@ximian.com>
8956
8957         * MdiChildContext.cs: Use Control.ResetCursor.
8958         * Control.cs: ResetCursor needs to set the property so that the
8959         correct XplatUI call gets made.
8960
8961 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8962
8963         * Control.cs: More fixes to make our key events match MS. We
8964           were not setting the modifier state on KeyData, and we were
8965           not generating any events when Alt was pressed with a key
8966           since handling of WM_SYSxxx was missing for the OnKey methods.
8967
8968 2005-12-07  Jackson Harper  <jackson@ximian.com>
8969
8970         * MdiChildContext.cs: reenable the sizing code.
8971         - When the mouse leaves a window reset its cursor.
8972
8973 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8974
8975         * ThemeClearlooks.cs: Reflect latest Hwnd changes
8976
8977 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8978
8979         * Hwnd.cs: Now using the theme 3d bordersize to calculate
8980           widths of Fixed3D borders
8981
8982 2005-12-07  Jackson Harper  <jackson@ximian.com>
8983
8984         * MdiClient.cs: Fix warnings. Earn Mike's love.
8985
8986 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8987
8988         * ThemeClearlooks.cs:
8989           - Adjusted mouse over button color
8990           - Added first parts of CheckBox drawing
8991           - Added correct color for selected text background
8992           - Fixed ComboBox drawing
8993           - Added CPDrawBorder3D and CPDrawBorder
8994
8995 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
8996
8997         * XplatUIX11.cs: Added call to XBell for AudibleAlert
8998
8999 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
9000
9001         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9002           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
9003           alert users via sound. We could add an enum arg with different
9004           types of alerts in the future
9005
9006 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
9007
9008         * Control.cs: Fix behaviour problems pointed out by Mike
9009
9010 2005-12-05  Mike Kestner  <mkestner@novell.com>
9011
9012         * StatusBarPanel.cs: add Invalidate method and hook it into all the
9013         prop setters.  Calls parent.Refresh for now, but could be maybe be
9014         optimized with an internal method on StatusBar at some point.
9015         [Fixes #76513]
9016
9017 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
9018
9019         * RichTextBox.cs: Implemented get_SelectionColor
9020
9021 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
9022
9023         * ThemeClearlooks.cs:
9024           - Removed dead code
9025           - Draw black button border only if button is Form.AcceptButton
9026           - Draw correct button color for pressed RadioButton if the mouse 
9027             has entered the button
9028           - Updated ProgressBar drawing!
9029           - Updated CPDrawSizeGrip drawing
9030           - Updated StatusBarPanel drawing
9031
9032 2005-12-05  Mike Kestner  <mkestner@novell.com>
9033
9034         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
9035         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
9036
9037 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
9038
9039         * ThemeClearlooks.cs: Initial check-in, activate with
9040           export MONO_THEME=clearlooks
9041         * ThemeEngine.cs: Added ThemeClearlooks
9042
9043 2005-12-03  Mike Kestner  <mkestner@novell.com>
9044
9045         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
9046         [Fixes #76897]
9047
9048 2005-12-02  Jackson Harper  <jackson@ximian.com>
9049
9050         * Form.cs: If the child form has no menu the default main menu is
9051         used as the active menu.
9052
9053 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
9054
9055         * ListBox.cs: Check if any items exist before trying to resolve 
9056           coordinates into items
9057
9058 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
9059
9060         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
9061           as the second color for the background hatch
9062
9063 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
9064
9065         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
9066         * RichTextBox.cs: FormatText position arguments are 1-based, now making
9067           sure that what we pass to FormatText is always 1-based. Fixes #76885
9068
9069 2005-11-29  Miguel de Icaza  <miguel@novell.com>
9070
9071         * NumericUpDown.cs (EndInit): When we are done initializing,
9072         reflect any updates on the UI.
9073
9074 2005-12-02  Jackson Harper  <jackson@ximian.com>
9075
9076         * ImplicitHScrollBar.cs:
9077         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
9078         their container controls.
9079         * TreeView.cs: Use the new implicit scrollbars.
9080
9081 2005-12-02  Jackson Harper  <jackson@ximian.com>
9082
9083         * TreeView.cs: Make top_node internal so the TreeNodeCollections
9084         can play with it.
9085         * TreeNodeCollection.cs: If we remove the topnode we need to
9086         update topnode to the next node in line.
9087         - When clearing nodes go through the same process as removing
9088         them, so they get depareneted and checked if they are top node.
9089
9090 2005-12-01  Jackson Harper  <jackson@ximian.com>
9091
9092         * TreeView.cs: When imagelists are used the image area is
9093         selectable as well as the text.
9094         - If there are no selected nodes select the first one.
9095         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
9096         so don't do it more then we need to.
9097
9098 2005-12-01  Jackson Harper  <jackson@ximian.com>
9099
9100         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
9101         that arrows can be scaled.
9102
9103 2005-12-01  Jackson Harper  <jackson@ximian.com>
9104
9105         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
9106         fail. Patch by Dieter Bremes
9107
9108 2005-11-30  Jackson Harper  <jackson@ximian.com>
9109
9110         * Form.cs: Property is 2.0 only
9111         * PrintDialog.cs: Signature fix.
9112
9113 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
9114
9115         * TextControl.cs: 
9116           - No longer artificially moves text 2 pixels down (now that we have
9117             borders this is no longer needed)
9118           - Added calcs for left, hanging and right indent
9119
9120 2005-11-23  Mike Kestner  <mkestner@novell.com>
9121
9122         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
9123
9124 2005-11-30  Jackson Harper  <jackson@ximian.com>
9125
9126         * MdiChildContext.cs: Set the cloned menus forms, as these don't
9127         get cloned as part of CloneMenu ().
9128         * Menu.cs: Make sure the parent of the items get set correctly
9129         when they are added.  And the owners are notified of the changes.
9130         * Form.cs: Create an ActiveMenu property, so that when MDI is used
9131         we can change the menu being displayed/handled by the form without
9132         changing the menu assosciated with the form.
9133         - Don't let Mdi children draw/handle menus.
9134         
9135 2005-11-30  Jackson Harper  <jackson@ximian.com>
9136
9137         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
9138         a MenuChanged event. Just to make the API a little more
9139         consistent.
9140         * MainMenu.cs:
9141         * MenuItem.cs: Use the new OnMenuChanged
9142         * MdiChildContext.cs: Handle menu merging.
9143         * Form.cs: Implement MergedMenu.
9144         
9145 2005-11-30  Jackson Harper  <jackson@ximian.com>
9146
9147         * Menu.cs: We were misusing Add. Add goes behind the specified
9148         index according to the docs, and does not replace the specified
9149         index. So I added an Insert method.
9150
9151 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
9152
9153         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
9154           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
9155           is for Jackson
9156         * RichTextBox.cs: Added calls to base for DnD events
9157
9158 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
9159
9160         * TextControl.cs:
9161           - Fixed drag-selection related crash; style fixes
9162           - Implemented undo class
9163             o Implemented method to capture document state for specified
9164               range in document tree
9165             o Implemented method to restore captured document state
9166             o Implemented cursor tracking
9167             o Implemented basic undo stack
9168           - Added undo cursor tracking to methods altering cursor location
9169           - Added undo tracking to selection deletion (still missing
9170             other text-altering hookups)
9171         * RichTextBox.cs:
9172           - Added SelectionLength property
9173           - Implemented CanPaste()
9174           - Implemented Paste()
9175           - Added missing protected methods
9176           - Fixed RTF->Document conversion; now uses font index 0 and color 
9177             index 0 as the default font for the parsed text
9178           - Fixed RTF<->Document font size translation
9179           - Fixed RTF generation, now properly handles cross-tag boundaries
9180             for single line selection
9181           - No longer always appends blank line to generated RTF
9182           - Removed TODOs
9183           - Added missing attributes
9184           - Hooked up undo-related methods
9185         * TextBoxBase.cs:
9186           - Implemented Copy()
9187           - Implemented Paste()
9188           - Implemented Cut()
9189           - Fixed caret mis-behaviour on backspace across line-boundaries
9190
9191 2005-11-29  Jackson Harper  <jackson@ximian.com>
9192
9193         * MdiClient.cs: Add a method for activating mdi children. Very
9194         basic right now. I imagine someday it might need more girth.
9195         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
9196         children windows names are added to the menu item.
9197         * ThemeWin32Classic.cs: Draw the arrow if the item is an
9198         mdilist. This happens regardless of whether or not there are any
9199         mdi windows to see in the list, and according to my tests happens
9200         before the items are even added. Also happens if there isn't even
9201         an mdi client to get windows from.
9202
9203 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
9204
9205         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
9206         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
9207
9208 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
9209
9210         * DataGridTableStyle.cs:
9211           - Create always the styles for the missing columns even if they are
9212             provided by the user (not default table style)
9213         * DataGrid.cs:
9214           - Fixes bug 76770
9215           - Fixes SetDataBinding (always re-attach source)
9216           - Fixes SetNewDataSource (only clear styles if they are not for 
9217             this source)
9218          -  Expands OnTableStylesCollectionChanged to handle style refresh 
9219             and remove properly
9220
9221 2005-11-29  Jackson Harper  <jackson@ximian.com>
9222
9223         * FileDialog.cs: Implement missing bits, remove some dead
9224         code.
9225         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
9226         creation of the panel so that the options set on the dialog are
9227         seen when the panel is created.
9228         * TreeView.cs: raise a click when items are clicked.
9229         
9230 2005-11-29  Jackson Harper  <jackson@ximian.com>
9231
9232         * MdiClient.cs: Pass some signature methods through to base.
9233
9234 2005-11-28  Jackson Harper  <jackson@ximian.com>
9235
9236         * ListView.cs: Raise the click event when items are clicked.
9237
9238 2005-11-28  Jackson Harper  <jackson@ximian.com>
9239
9240         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
9241         a nullref.
9242
9243 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
9244
9245         * ThemeNice.cs: - Removed 1 pixel bitmaps
9246           - Use SmoothingMode.AntiAlias where it makes sense
9247             (ScrollButton arrow for example)
9248           - Enhanced Button focus drawing
9249           - Fixed ComboBox drawing (no artefacts anymore, focus
9250             rectangle is back again, reduced size of ComboButton, etc.)
9251           - Fixed RadioButton focus drawing for Appearence.Button
9252           - Slight ScrollButton redesign
9253           - Some LinearGradientBrush size fixes
9254           - GroupBoxes have now rounded edges
9255           - Fixed StatusBar drawing
9256
9257 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
9258
9259         * ThemeNice.cs: - Remove dead code
9260           - use correct background colors for menus, etc.
9261           - Fake pixel drawing with 1 pixel bitmaps
9262
9263 2005-11-24  Jackson Harper  <jackson@ximian.com>
9264
9265         * MdiClient.cs: Size the scrollbars when resizing the window.
9266         - Resize the maximized windows when the client is resized
9267         * Form.cs: Make the child context available
9268         
9269 2005-11-23  Jackson Harper  <jackson@ximian.com>
9270
9271         * MdiChildContext.cs: Don't size windows if they are maximized.
9272
9273 2005-11-23  Mike Kestner  <mkestner@novell.com>
9274
9275         * ContextMenu.cs: use MenuTracker.
9276         * Control.cs: remove menu handle usage.
9277         * Form.cs: remove menu handle usage.
9278         * Hwnd.cs: remove menu handle usage.
9279         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
9280         motion and clicks to the new Tracker handlers.
9281         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
9282         and handle usage.
9283         * MenuAPI.cs: refactored to combine popup and menubar event handling.
9284         Killed the MENU and MENUITEM data types and associated collections
9285         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
9286         MenuTracker class that exposes the leftovers from the old MenuAPI
9287         static methods. Restructured Capture handling so that only one grab is
9288         done for the entire menu hierarchy instead of handing off grabs to
9289         submenus. Tracker now has an invisible control to Capture when active.
9290         * MenuItem.cs: add sizing accessors, kill Create
9291         and handle usage.
9292         * Theme.cs: remove menu handle and MENU(ITEM) usage.
9293         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
9294         MENU(ITEM). remove menu handle usage, use Menu directly.
9295         * XplatUIDriver.cs: remove menu handle usage.
9296         * XplatUIOSX.cs: remove menu handle usage.
9297         * XplatUIWin32.cs: remove menu handle usage.
9298         * XplatUIX11.cs: remove menu handle usage.
9299
9300 2005-11-22  Jackson Harper  <jackson@ximian.com>
9301
9302         * Hwnd.cs: Don't compute the menu size for
9303         DefaultClientRectangle.
9304         - Reenable menu sizes being computed for GetClienRectangle.
9305         * Form.cs: Remove comment of trechery
9306         
9307 2005-11-22  Jackson Harper  <jackson@ximian.com>
9308
9309         * Hwnd.cs: The adjustments for the menu bar are made when it is
9310         attached to the form.
9311
9312 2005-11-19  Jackson Harper  <jackson@ximian.com>
9313
9314         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
9315         (just like on windows).
9316
9317 2005-11-19  Jackson Harper  <jackson@ximian.com>
9318
9319         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
9320         use real buttons anymore because they are in non client area. The
9321         one TODO here is that I need to somehow invalidate a section of
9322         the non client area.
9323
9324 2005-11-18  Jackson Harper  <jackson@ximian.com>
9325
9326         * Control.cs: Put the enum check back in now that MDI doesnt have
9327         to use this to set border styles.
9328         * Form.cs: Only set mdi child windows borders if the handle has
9329         been created.
9330         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
9331         this directly on to the driver.
9332         - Get the move start position before adjusting for the titlebar
9333         height, this fixes the windows "skipping" when they are first
9334         moved.
9335
9336 2005-11-18  Jackson Harper  <jackson@ximian.com>
9337
9338         * XplatUIX11.cs: Just compute the mdi borders separately as they
9339         don't totally match up with normal form borders.
9340
9341 2005-11-18  Jackson Harper  <jackson@ximian.com>
9342
9343         * Control.cs: Set WS_ styles for borders, so that the driver does
9344         not have to retrieve the control instance to figure out what kind
9345         of borders it should have.
9346         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
9347         driver can know its an mdi child easily.
9348         * XplatUIX11.cs: Get the border styles and whether the window is
9349         MDI from the Styles and ExStyles params instead of having to get a
9350         control. This prevents a chicken and egg problem.       
9351
9352 2005-11-18  Jackson Harper  <jackson@ximian.com>
9353
9354         * MdiClient.cs: Fix typo so scrollbars show up correctly.
9355
9356 2005-11-18  Jackson Harper  <jackson@ximian.com>
9357
9358         * MdiClient.cs: Calculate when to add and remove scrollbars
9359         correctly.
9360         * MdiChildContext.cs: Adjust the y position to take the titlebar
9361         into account.
9362         - No height for FormBorderStyle.None
9363
9364 2005-11-18  Jackson Harper  <jackson@ximian.com>
9365
9366         * Control.cs: Allow non enum values to be used for
9367         InternalBorderStyle.  MDI does this to set a special border style.
9368         - New utility methods for converting points to/from client coords
9369         - Add the newly created control to the Controls collection before
9370         updating its style. This way UpdateStyle can walk the control
9371         heirarchy to find the control if needed.
9372         so I don't need to create a new Point object all the time.
9373         * Form.cs: Let MDI windows handle their border styles.
9374         - Set styles on MDI windows so the correct title style is derived.
9375         * MdiChildContext.cs: Move all the painting and window handling
9376         into the non client area.
9377         - Use correct sizing and put correct buttons on frames based on
9378         the FormBorderStyle.
9379         - Notify the mdi client about scrolling
9380         - Need to handle the buttons ourselves now, because they are all
9381         in non client areas and we can't add controls there.
9382         * MdiClient.cs: Halfway to scrolling, this implementation is
9383         somewhat broken though, we need to check to make sure other
9384         windows aren't causing scrolling before removing the bars. Also
9385         the bars need to be drawn on top, maybe I can switch implicit
9386         controls to be on top.
9387         * Hwnd.cs: caption_height and tool_caption_height are now
9388         properties of an hwnd, this way they can be set by the driver
9389         based on the type of window they are.  In X11 the window manager
9390         handles the decorations so caption_height is zero unless its an
9391         MDI window.
9392         - Add 3 pixel borders for MDI windows (0xFFFF).
9393         - Get rid of some code duplication, have DefaultClientRectanle
9394         just call GetClientRectangle.
9395         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
9396         Hwnd now.
9397         - Set border styles differently for mdi windows.
9398         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
9399         Hwnd now.
9400         
9401 2005-11-15  Mike Kestner  <mkestner@novell.com>
9402
9403         * Menu.cs: when adding an item to the collection, if item is already 
9404         parented, remove it from the parent.
9405
9406 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
9407
9408         * X11DesktopColors.cs: Added KDE support
9409
9410 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
9411
9412         * XplatUIWin32.cs: 
9413           - Clipboard methods now can translate Rtf format
9414           - No longer removes clipboard contents whenever a new format is added
9415             to allow placing multiple formats on the clipboard
9416         * Clipboard.cs: Clipboard now supports getting a IDataObject and
9417           will place all formats contained in it onto the clipboard. Also
9418           now cleans the clipboard before placing a new object onto it
9419         * RichTextBox.cs:
9420           - Implemented set_Rtf
9421           - Implemented set_SelectedRtf
9422           - Created InsertRTFFromStream() method to allow single code base
9423             for all properties and methods that insert RTF into document
9424           - Removed debug output
9425         * TextControl.cs:
9426           - Fixed Delete(int) to fix up line numbers
9427           - Fixed ReplaceSelection to combine start and end line
9428           - Fixed serious DeleteChars bug that would leave the document tree
9429             broken
9430           - Improved DumpTree with several logic checks to detect broken
9431             document trees
9432           - Removed debug lines
9433           - Fixed Caret.WordForward/WordBack moving code, now always also 
9434             updates caret.tag (fixes crash when word-selecting across tag
9435             boundaries via keyboard)
9436           - Added Insert() method for inserting multiline text into documents
9437           - Fixed DeleteChars() calculation errors that would cause a broken
9438             tag chain with multiple tag lines
9439           - DeleteChars() no longer crashes on multi-tag lines if not all tags
9440           - Split() no longer moves caret if split is at caret location
9441           - ReplaceSelection() now updates the cursor and re-displays it
9442           - ReplaceSelection() now uses new Insert() method to avoid code
9443             duplication
9444           - FormatText() can now handle formatting partial lines
9445         * TextBoxBase.cs:
9446           - Append now uses new TextControl.Insert() method (this avoids 
9447             duplicate code)
9448           - Implemented Ctrl-X (Cut) (
9449           - Implemented Ctrl-C (Copy)
9450           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
9451             regeneration when pasting text; roundtripping Copy&Paste within
9452             edit control still fails due to some calculation bugs in GenerateRTF)
9453           - The Delete key will now remove the current selection if it is visible
9454         * TextBox.cs: Removed debug lines
9455         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
9456           driver to be initialized and can't therefore be done via a static ctor)
9457
9458 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
9459
9460         * TextControl.cs: Added backend code for finding char arrays and strings
9461         * TextBoxBase.cs:
9462           - Added mouse wheel scroll support
9463           - Added support for VScroll and HScroll events
9464         * RichTextBox.cs:
9465           - Implemented all seven Find() variants
9466           - Implemented GetCharFromPosition()
9467           - Implemented GetCharIndexFromPosition()
9468           - Implemented GetLineFromIndex()
9469           - Implemented GetPositionFromCharIndex();
9470           - Implemented SaveFile for PlainText and UnicodeText
9471           - Fixed set_Font, now setting a new font applies that font to
9472             the whole document
9473           - Implemented generic Document to RTF converter
9474           - Implemented SaveFile for RichText format (still missing unicode
9475             conversion for non-ansi chars)
9476           - Implemented get_Rtf
9477           - Implemented get_SelectedRtf
9478
9479 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
9480
9481         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
9482           to allow any captures to be released before triggering OnClick. This
9483           way a click handler may capture the mouse without interference.
9484         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
9485           This way we send them even though X may not allow a grab (if the window
9486           isn't visible, for example)
9487
9488 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
9489
9490         * DataGridViewRowEventArgs.cs: DataGridView implementation
9491         * DataGridViewElement.cs: DataGridView implementation
9492         * DataGridViewComboBoxCell.cs: DataGridView implementation
9493         * DataGridViewDataErrorContexts.cs: DataGridView implementation
9494         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
9495         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
9496         * ImageLayout.cs: DataGridView implementation
9497         * DataGridViewComboBoxColumn.cs: DataGridView implementation
9498         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
9499         * DataGridViewSelectionMode.cs: DataGridView implementation
9500         * IDataGridViewEditingControl.cs: DataGridView implementation
9501         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
9502         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
9503         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
9504         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
9505         * DataGridViewColumnSortMode.cs: DataGridView implementation
9506         * DataGridView.cs: DataGridView implementation
9507         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
9508         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
9509         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
9510         * Padding.cs: DataGridView implementation
9511         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
9512         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
9513         * DataGridViewRowEventHandler.cs: DataGridView implementation
9514         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
9515         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
9516         * DataGridViewButtonCell.cs: DataGridView implementation
9517         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
9518         * DataGridViewEditMode.cs: DataGridView implementation
9519         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
9520         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
9521         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
9522         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
9523         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
9524         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
9525         * DataGridViewCellEventHandler.cs: DataGridView implementation
9526         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
9527         * DataGridViewCellStyleConverter.cs: DataGridView implementation
9528         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
9529         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
9530         * DataGridViewColumnEventArgs.cs: DataGridView implementation
9531         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
9532         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
9533         * QuestionEventArgs.cs: DataGridView implementation
9534         * IDataGridViewEditingCell.cs: DataGridView implementation
9535         * DataGridViewTriState.cs: DataGridView implementation
9536         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
9537         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
9538         * DataGridViewColumnCollection.cs: DataGridView implementation
9539         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
9540         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
9541         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
9542         * DataGridViewColumn.cs: DataGridView implementation
9543         * DataGridViewCellBorderStyle.cs: DataGridView implementation
9544         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
9545         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
9546         * DataGridViewRow.cs: DataGridView implementation
9547         * DataGridViewImageCellLayout.cs: DataGridView implementation
9548         * DataGridViewImageCell.cs: DataGridView implementation
9549         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
9550         * DataGridViewCheckBoxCell.cs: DataGridView implementation
9551         * DataGridViewHeaderCell.cs: DataGridView implementation
9552         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
9553         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
9554         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
9555         * DataGridViewTextBoxColumn.cs: DataGridView implementation
9556         * QuestionEventHandler.cs: DataGridView implementation
9557         * DataGridViewCellStyleScopes.cs: DataGridView implementation
9558         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
9559         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
9560         * DataGridViewCell.cs: DataGridView implementation
9561         * DataGridViewCellEventArgs.cs: DataGridView implementation
9562         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
9563         * DataGridViewCellStyle.cs: DataGridView implementation
9564         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
9565         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
9566         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
9567         * TextFormatFlags.cs: DataGridView implementation
9568         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
9569         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
9570         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
9571         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
9572         * DataGridViewButtonColumn.cs: DataGridView implementation
9573         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
9574         * HandledMouseEventArgs.cs: DataGridView implementation
9575         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
9576         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
9577         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
9578         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
9579         * DataGridViewRowCollection.cs: DataGridView implementation
9580         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
9581         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
9582         * DataGridViewHitTestType.cs: DataGridView implementation
9583         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
9584         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
9585         * DataGridViewColumnEventHandler.cs: DataGridView implementation
9586         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
9587         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
9588         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
9589         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
9590         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
9591         * DataGridViewContentAlignment.cs: DataGridView implementation
9592         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
9593         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
9594         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
9595         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
9596         * DataGridViewPaintParts.cs: DataGridView implementation
9597         * DataGridViewCellCollection.cs: DataGridView implementation
9598         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
9599         * DataGridViewImageColumn.cs: DataGridView implementation
9600         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
9601         * DataGridViewElementStates.cs: DataGridView implementation
9602         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
9603         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
9604         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
9605         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
9606         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
9607         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
9608         * DataGridViewRowHeaderCell.cs: DataGridView implementation
9609         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
9610         * DataGridViewTextBoxCell.cs: DataGridView implementation
9611         * DataGridViewBand.cs: DataGridView implementation
9612         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
9613         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
9614         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
9615         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
9616         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
9617         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
9618         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
9619         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
9620         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
9621         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
9622         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
9623
9624 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
9625
9626         * ThemeWin32Classic.cs: 
9627           - Draw the outside focus rectangle around buttons
9628           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
9629             doesn't use end caps for every dash of a line anymore. This
9630             workaround ignores the forecolor.
9631
9632 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
9633
9634         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
9635           endian safe.
9636
9637 2005-11-07  Jackson Harper  <jackson@ximian.com>
9638
9639         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
9640
9641 2005-11-07  Jackson Harper  <jackson@ximian.com>
9642
9643         * ScrollableControl.cs: Calculate the maximum and change vars
9644         (more) correctly so that scrollbars appear as a sensible size.
9645
9646 2005-11-04  Jackson Harper  <jackson@ximian.com>
9647
9648         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
9649         collection.
9650         * TreeView.cs: When the tree is sorted null out the top_node so
9651         that it is recalculated.
9652         - Use dotted lines instead of dashed lines to match MS better.
9653
9654 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
9655
9656         * ListView.cs: 
9657           - Implements key search for items. Useful when browsing files with FileDialog
9658           - When changing view mode or when clear the items reset scrollbar positions
9659
9660 2005-11-04  Jackson Harper  <jackson@ximian.com>
9661
9662         * CurrencyManager.cs: Implement the MetaDataChanged event, the
9663         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
9664         as to what the method may do as there is no real way of creating a
9665         derived CurrencyManager and calling the method. 
9666
9667 2005-11-03  Jackson Harper  <jackson@ximian.com>
9668
9669         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
9670         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
9671         method which seems to just be used internally to refresh the tabs.
9672
9673 2005-11-03  Jackson Harper  <jackson@ximian.com>
9674
9675         * TabControl.cs: Implement the remove method. Fix some broken
9676         comments.
9677
9678 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9679
9680         * DateTimePicker.cs:
9681           - Added missing DateTimePickerAccessibleObject class
9682           - Added missing events
9683           - Added OnFontChanged method
9684         * Form.cs: Added missing attributes
9685         * TreeView.cs: Added missing attributes
9686
9687 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
9688
9689         * GridItemCollection.cs: Fix signatures
9690
9691 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9692
9693         * XplatUI.cs: Updated build rev/date
9694         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
9695           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
9696         * Application.cs: Trigger context-specific ExitThread events
9697
9698 2005-11-03  Jackson Harper  <jackson@ximian.com>
9699
9700         * Menu.cs:
9701         * MainMenu.cs:
9702         * GridTableStylesCollection.cs:
9703         * Timer.cs:
9704         * TabPage.cs:
9705         * HelpProvider.cs:
9706         * StatusBar.cs:
9707         * MonthCalendar.cs: Signature fixes
9708
9709 2005-11-03  Jackson Harper  <jackson@ximian.com>
9710
9711         * TreeNodeCollection.cs: Remove should not be virtual.
9712         * TreeView.cs: Implement the last of the missing methods.
9713
9714 2005-11-03  Jackson Harper  <jackson@ximian.com>
9715
9716         * TreeNodeConverter.cs: Implement to get off my class-status back.
9717
9718 2005-11-03  Jackson Harper  <jackson@ximian.com>
9719
9720         * TreeView.cs: Hookup the bits for drag and drop.
9721         * TreeNode.cs: Don't cache the tree_view or index anymore, now
9722         that nodes can be moved from tree to tree easily this just causes
9723         all sorts of problems.
9724         * TreeNodeCollection: Don't need to give treenodes an index and
9725         treeview anymore when they are added, these are computed on the
9726         fly. Also make sure to remove a node before its added.
9727
9728 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9729
9730         * TextControl.cs:
9731           - Added CaretSelection enum
9732           - Added comparison methods to Marker struct, makes selection code
9733             more readable
9734           - Added SelectionStart and SelectionEnd as 'moveable' location for
9735             the CaretDirection enum and handler
9736           - Added selection_prev variable to track optimized invalidation for
9737             word and line selection
9738           - Added SelectionVisible property (returns true if there is a valid 
9739             selection)
9740           - Switched CaretHasFocus to only display the caret if there is no
9741             visible selection
9742           - Avoiding StringBuilder.ToString to retrieve a single char, instead
9743             using the direct character index; should be much faster
9744           - Added various conditional debug statements
9745           - Fixed invalidation calculation for selection ranges
9746           - Added ExpandSelection() method to support word and line selection
9747           - Switched SetSelectionToCaret to use new Marker compare overloads
9748           - Added central IsWordSeparator() method to determine word 
9749             separators/whitespace and FindWordSeparator() to streamline common
9750             usage of IsWordSeparator()
9751         * TextBoxBase.cs:
9752           - Removed unneeded grabbed variable, it was just mirroring
9753             Control.Capture
9754           - No longer firing OnTextChanged event when Text setter is called,
9755             since the base will fire the event for us
9756           - Added handling of Ctrl-Up/Down selection
9757           - Added handling of Shift-Cursorkey selection
9758           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
9759             words
9760           - Added handling of Shift and Ctrl-Shift-Home/End selection
9761           - Removed some debug output
9762           - Added handling for single/double/tripple-click to place caret/
9763             select word/select line respectively (Fixes bug #76031)
9764           - Added support for drag expansion of word/line selection
9765         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
9766           current selection
9767
9768 2005-11-02  Jackson Harper  <jackson@ximian.com>
9769
9770         * X11Dnd.cs: If the drag is going to and from a MWF window just
9771         copy the data instead of sending it out through the X Selection
9772         mechanism.
9773
9774 2005-11-02  Jackson Harper  <jackson@ximian.com>
9775
9776         * X11Dnd.cs:
9777         * XplatUIX11.cs: When in a drag we don't want motion notify
9778         messages to get passed on to the other controls. This prevents
9779         mouse move messages from showing up in the drag source.
9780
9781 2005-11-02  Jackson Harper  <jackson@ximian.com>
9782
9783         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
9784         the correct button is release to end a drag.
9785         * XplatUIX11.cs: Make the button state internal so the drag system
9786         can access it.  Dragging needs to know about all button releases,
9787         not just left button.
9788
9789 2005-11-02  Miguel de Icaza  <miguel@novell.com>
9790
9791         * Form.cs (Icon): If the icon is null, reset the icon to the
9792         default value. 
9793
9794         * Cursor.cs: When writing the AND-mask bitmap do not include the
9795         number of colors, but hardcode those to two (black and white),
9796         fixes the loading of color cursors (Paint Dot Net).
9797
9798         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
9799         turn off autoscaling.
9800
9801         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
9802
9803 2005-11-02  Jackson Harper  <jackson@ximian.com>
9804
9805         * X11Dnd.cs: Make sure to send a status message if the pointer
9806         enters a control that can not accept a drop, otherwise the cursor
9807         isn't updated correctly. Also tried to compress the lines of code
9808         a bit.
9809
9810 2005-11-02  Jackson Harper  <jackson@ximian.com>
9811
9812         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
9813         set actions correctly.  This isn't perfect as XDND and win32 have
9814         some differences on how you allow actions. I'll clear this up by
9815         adding a path for drag from MWF to MWF windows.
9816         * XplatUIX11.cs: Hook into the dnd system.
9817
9818 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
9819
9820         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
9821         previously shown but they are no longer need it. Very obvious when 
9822         browsing files with FileDialog.
9823
9824 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
9825
9826         * Control.cs: We always need to call OnPaintBackground. We pretty much
9827           ignore AllPaintingInWmPaint and always do the painting there, whether 
9828           it's set or not, since we always ignore the WM_ERASEBKGND message 
9829           (which we don't generate on X11). This fixes #76616.
9830         * Panel.cs: Removed unneeded background painting. This happens properly
9831           in Control.cs already
9832
9833 2005-10-31  Mike Kestner  <mkestner@novell.com>
9834
9835         * Menu.cs: Add items to collection before setting their index.
9836         * MenuItem.cs : add range checking with ArgumentException like MS.
9837         [Fixes #76510]
9838
9839 2005-10-31  Jackson Harper  <jackson@ximian.com>
9840
9841         * ListBox.cs: Invalidate if the area is visible at all not just
9842         contained in the visible rect. Fixes unselection of semi visible
9843         items.
9844
9845 2005-10-31  Jackson Harper  <jackson@ximian.com>
9846
9847         * Control.cs: Consistently name the dnd methods. Make them
9848         internal so we can override them to match some MS behavoir
9849         internally.
9850         * Win32DnD.cs: Use the new consistent names.
9851
9852 2005-10-31  Jackson Harper  <jackson@ximian.com>
9853
9854         * TreeView.cs: Don't draw the selected node when we lose focus.
9855
9856 2005-10-31  Jackson Harper  <jackson@ximian.com>
9857
9858         * X11Dnd.cs: We still need to reset the state even though a full
9859         reset isn't being done, otherwise status's still get sent all over
9860         the place.
9861
9862 2005-10-31  Jackson Harper  <jackson@ximian.com>
9863
9864         * Control.cs: Make the dnd_aware flag internal so the dnd
9865         subsystem can check it. Catch exceptions thrown in dnd handlers to
9866         match MS behavoir.
9867         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
9868         * X11Dnd.cs: Handle null data in the converters. Set the XDND
9869         version when sending a XdndEnter. Use the control/hwnd dnd_aware
9870         flags to reduce the number of dnd enters/status's sent.
9871
9872 2005-10-31  Jackson Harper  <jackson@ximian.com>
9873
9874         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
9875
9876 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
9877
9878         * PictureBox.cs: Fixes 76512
9879
9880 2005-10-28  Jackson Harper  <jackson@ximian.com>
9881
9882         * X11Dnd.cs: Early implementation to support winforms being a drag
9883         source for data on X11. Also restructured the converters so they
9884         can go both ways now.
9885         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
9886         
9887 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
9888
9889         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
9890           clipboard requests
9891
9892 2005-10-27  Jackson Harper  <jackson@ximian.com>
9893
9894         * TreeNode.cs: Implement serialization so my DnD examples will work.
9895
9896 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
9897
9898         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
9899           TreeView.cs: Don't dispose objects that are not owned.
9900           
9901 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
9902
9903         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
9904           should retrieve the current cursor and report that, but XplatUI
9905           doesn't (yet) have an interface for that (and I'm not sure I even
9906           can, on X11)
9907         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
9908           until any message loop processing is done (and the WM_SETCURSOR
9909           replaces the cursor to the proper one)
9910         * XplatUIX11.cs: 
9911           - Fixed override behaviour, we can't set the cursor globally on X11, 
9912             just for our windows.
9913           - Invalidating the System.Drawing X11 display handle when we are
9914             shutting down
9915         * Control.cs: Fix to make csc happy
9916
9917 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
9918
9919         * TextBoxBase.cs: 
9920           - get_Text: Add last line (without trailing newline) to returned
9921             value (Fixes 76212)
9922           - get_TextLength: Count last line in returned length
9923           - ToString: Call Text property instead of duplicating code
9924
9925 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
9926
9927         * ImageList.cs: Dispose ImageAttributes objects.
9928
9929 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9930
9931         * ImageList.cs: Use attribute constructors with less arguments where
9932           possible.
9933
9934 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9935
9936         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
9937           Use typeof instead of strings when assembly is referenced. Added
9938           some more comments.
9939
9940 2005-10-21  Jackson Harper  <jackson@ximian.com>
9941
9942         * ListView.cs: Raise a double click event. Also tried to somewhat
9943         fix when the selectedindexchanged event is raised. Its still
9944         broken though.
9945
9946 2005-10-21  Jackson Harper  <jackson@ximian.com>
9947
9948         * TreeView.cs: New method to invalidate the plus minus area of a
9949         node without invalidating the whole node (maybe this can be used
9950         in some more places).
9951         * TreeNodeCollection.cs: When adding to an empty node we need to
9952         invalidate its plus minus area so the little block shows up.
9953         
9954 2005-10-21  Jackson Harper  <jackson@ximian.com>
9955
9956         * TreeView.cs: Make sure that when we invalidate a node the bounds
9957         are big enough to cover the selected box and the focus
9958         rectangle. Use a different colour for the lines connecting nodes
9959         so they show up with all themes.
9960
9961 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9962
9963         * NativeWindow.cs: Don't call anything that could call into the driver,
9964           we might be on a different thread.
9965
9966 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
9967
9968         * Control.cs(Dispose): Since Dispose might run on a different thread,
9969           make sure that we call methods that could call into the driver via
9970           invoke, to avoid thread issues
9971
9972 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9973
9974         * XplatUI.cs: Removed finalizer
9975         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
9976           not allowing to be called on the finalizer thread.
9977
9978 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
9979
9980         * ImageList.cs:
9981           - Reverted r51889 and r51891.
9982           - Added ImageListItem class that stores unmodified image items and image
9983             properties required to create list images until handle is created.
9984           - Added AddItem and moved image creation logic to AddItemInternal.
9985           - Added CreateHandle method that creates images based on unmodified items.
9986           - Added DestroyHandle that changes state to store unmodified items.
9987           - Add and AddStrip methods no more create handle.
9988           - ReduceColorDepth has no return value.
9989           - Dispose destroys handle.
9990           - Modified other methods to reflect the above changes.
9991           - Implemented key support.
9992           - Added profile 2.0 members and attributes.
9993           - Added private Reset and ShouldSerialize methods that provide the same
9994             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
9995             them as they are private.
9996           - Added some more comments about implementation details.
9997
9998 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9999
10000         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
10001
10002 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
10003
10004         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
10005
10006 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
10007
10008         * DataGridDrawingLogic.cs: Fixes column hit calcultation
10009         * DataGridColumnStyle.cs: Remove debug message
10010
10011 2005-10-20  Jackson Harper  <jackson@ximian.com>
10012
10013         * TreeView.cs: We can always get input keys regardless of whether
10014         or not editing is enabled. They are used for navigation.
10015
10016 2005-10-20  Jackson Harper  <jackson@ximian.com>
10017
10018         * TreeNode.cs: Use the viewport rect for determining if a node
10019         needs to be moved for visibility. Don't use Begin/End edit. This
10020         calls a full refresh when its done.
10021         * TreeView.cs: New SetBottom works correctly.  Make the viewport
10022         rect property internal so the treenodes can see it. When clicking
10023         on a node we need to ensure that its visible because it might just
10024         be partly visible when clicked.
10025
10026 2005-10-20  Jackson Harper  <jackson@ximian.com>
10027
10028         * TreeNodeCollection.cs: Remove debug code.
10029
10030 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
10031
10032         * Datagrid.cs: Implements column sorting in Datagrid
10033         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
10034
10035 2005-10-20  Jackson Harper  <jackson@ximian.com>
10036
10037         * TreeNodeCollection.cs: Remove items properly. Update the correct
10038         area after removing them.
10039
10040 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
10041
10042         * Datagrid.cs: Should not call base.OnPaintBackground
10043
10044 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
10045
10046         * XplatUIX11.cs (GetMessage):
10047           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
10048             window instead of client window
10049           - Now properly calculates NC_xBUTTONUP message coordinates
10050           - ScreenToMenu now properly calculates it's coordinates of whole 
10051             window, since menus are in the whole window, not in the client
10052             window
10053           - Added WholeToScreen coordinate translation method
10054
10055 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
10056
10057         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
10058           want to return a message, loop back to the beginning of the function
10059           and grab the next real message to process instead.
10060
10061 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
10062
10063         * Splitter.cs: Properly set limits if no filler control is used
10064
10065 2005-10-19  Jackson Harper  <jackson@ximian.com>
10066
10067         * ColorDialog.cs: Don't show the help button if it is not enabled
10068         instead of disabling it (this is what MS does). Don't create the
10069         panel until the dialog is run, otherwise the vars (such as
10070         ShowHelp) are not set yet.
10071
10072 2005-10-19  Jackson Harper  <jackson@ximian.com>
10073
10074         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
10075         are reduced when adding nodes.
10076         * TreeNode.cs:
10077         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
10078         tree.
10079         
10080 2005-10-19  Jackson Harper  <jackson@ximian.com>
10081
10082         * FolderBrowserDialog.cs: End editing our treeview so the window
10083         actually gets refreshed.
10084
10085 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
10086
10087         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
10088           Obsoleted handling of WM_ERASEBKGND, now always draws our background
10089           inside of WM_PAINT
10090
10091 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
10092
10093         * MenuAPI.cs: Returns after Hidding window
10094         * XplatUIX11.cs: Added TODO found while debugging menu issues
10095
10096 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
10097
10098         * XplatUIX11.cs: Do not re-map the whole window when it's size
10099           becomes non-zero unless it's supposed to be actually visible
10100
10101 2005-10-18  Jackson Harper  <jackson@ximian.com>
10102
10103         * TreeView.cs: We don't need to keep a count anymore.
10104         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
10105         use the Grow method.
10106
10107 2005-10-18  Jackson Harper  <jackson@ximian.com>
10108
10109         * TreeNodeCollection.cs: Insert is not supported on arrays, so
10110         implement it manually here.
10111
10112 2005-10-18  Jackson Harper  <jackson@ximian.com>
10113
10114         * ImageList.cs: Dont kill the list when the colour depth is
10115         changed, just change the colour depth of all the images.
10116         - Same goes for setting the image size. Just resize them all
10117         instead of killing the list softly.
10118
10119 2005-10-18  Jackson Harper  <jackson@ximian.com>
10120
10121         * Control.cs: Don't invalidate empty rectangles.
10122
10123 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
10124
10125         * ListViewItem.cs:
10126           - Adds checked item to the Checked/Item lists (where empty before)
10127           - Do not add items to the Selected lists if they are already present
10128         * ListView.cs:
10129           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
10130           - When deleting items make sure that we delete them for the Selected
10131           and Checked list also.
10132
10133 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
10134
10135         * Label.cs: Dispose objects no longer used
10136         * ThemeWin32Classic.cs: Dispose objects no longer used
10137
10138 2005-10-18  Jackson Harper  <jackson@ximian.com>
10139
10140         * TabControl.cs: Don't refresh the whole control when the tabs are
10141         scrolled, we just need to refresh the tab area.
10142
10143 2005-10-17  Jackson Harper  <jackson@ximian.com>
10144
10145         * XplatUIX11.cs: Compress code a little bit. Only calculate the
10146         after handle when we need it.
10147
10148 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
10149
10150         * Control.cs: When the parent size changes, recalculate anchor 
10151           positions. Partial fix for #76462
10152
10153 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
10154
10155         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
10156           drawn. Fixes #76462
10157
10158 2005-10-17  Jackson Harper  <jackson@ximian.com>
10159
10160         * MonthCalendar.cs: Don't create the numeric up down until our
10161         handle is created. Otherwise our handle is created in the
10162         constructor and we don't know if we are a WS_CHILD or WS_POPUP
10163         yet.
10164
10165 2005-10-17  Jackson Harper  <jackson@ximian.com>
10166
10167         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
10168         correctly.
10169
10170 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10171         * TreeNode.cs : small logical fix (was using local var instead of field)
10172         
10173 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
10174
10175         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
10176
10177 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
10178
10179         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
10180
10181 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
10182
10183         * Control.cs: 
10184           - Re-implemented anchoring code. My first version was really broken.
10185             This fixes bug #76033. Unlike the previous implementation we will
10186             no longer have round errors since all numbers are calculated from
10187             scratch every time. Removed various anchor-related obsolete vars.
10188           - InitLayout no longer causes layout event firing and layout to be 
10189             performed
10190
10191 2005-10-16  Jackson Harper  <jackson@ximian.com>
10192
10193         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
10194         which was broken).
10195
10196 2005-10-16  Jackson Harper  <jackson@ximian.com>
10197
10198         * TabControl.cs: Remove debug code.
10199
10200 2005-10-16  Jackson Harper  <jackson@ximian.com>
10201
10202         * XEventQueue.cs: Increase the default queue size (very simple
10203         apps needed to grow the queue).
10204         * Hwnd.cs: No finalizer so we don't need to suppress
10205         finalization. Compute the invalid area manually so a new rectangle
10206         does not newto be created.
10207         * ScrollableControl.cs: Don't set any params (otherwise visibility
10208         isn't set correctly).
10209         * MdiChildContext.cs: New constructor takes the mdi parent so it
10210         doesn't have to be computed and avoids a crash on windows. Draw
10211         the window icon properly, and allow the text to be seen.
10212         * Form.cs: Use new MdiChildContext constructor. Make sure the
10213         child context isn't null in wndproc.
10214         * TabControl.cs: Don't set focus, this is muddling keyboard
10215         behavoir. Expand the tab rows when a window size increase will
10216         allow extra tabs to be seen. Don't allow tabs smaller than the
10217         width of a window to be scrolled out of view.
10218         * TreeNode.cs:
10219         * TreeView.cs: Use measure string to calculate a nodes width, the
10220         width is cached and only updated when the text or the font is
10221         changed. Don't check for expand/collapse clicks on the first level
10222         nodes if root lines are disabled.
10223         
10224 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
10225
10226         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
10227
10228 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
10229
10230         * DataGridBoolColumn.cs: fixes warning
10231
10232 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
10233
10234         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
10235         to match more to match more precisely the MS Net behavior
10236
10237 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
10238
10239         * Hwnd.cs: Added field to track if window is mapped
10240         * XplatUIX11.cs: 
10241           - Unmap windows if they become 0-size, re-map when 
10242             they are >0 again; fixes #76035
10243           - Re-set our error handler after initializing X11Desktop
10244             to override any error handlers Gtk or whatever was called
10245             may have set.
10246
10247 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
10248
10249         * CheckedListBox.cs: Removed unused vars
10250         * ListView.cs: Fixed signatures
10251         * RichTextBox.cs: Removed unused vars
10252         * TextBoxBase.cs: Removed unused vars
10253         * XplatUIWin32.cs: Removed unused vars
10254         * XplatUIX11.cs: Removed unused vars
10255         * XplatUI.cs: Updated version and date to latest published
10256
10257 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
10258
10259         * Cursor.cs: Added private .ctor to work around a bug in
10260           resourceset (Thanks to Geoff Norton for the help on this)
10261         * SplitterEventArgs.cs: Made fields accessible so we don't
10262           waste boatloads of objects and can reuse the same one
10263           in Splitter
10264         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
10265           any captions and borders when generating screen coordinates
10266         * Splitter.cs: Reimplemented control, now fully complete, uses
10267           rubberband drawing, supports and obeys all properties, has
10268           proper cursors
10269
10270 2005-10-13  Miguel de Icaza  <miguel@novell.com>
10271
10272         * Form.cs (Form): Setup default values for autoscale and
10273         autoscale_base_size;  Make these instance variables, not static
10274         variables. 
10275
10276         (OnLoad): on the first load, adjust the size of the form.
10277
10278 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
10279
10280         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
10281           width argument to DrawReversibleRectangle()
10282         * XplatUIWin32.cs, XplatUIX11.cs: 
10283           - Implemented width for DrawReversibleRectangle()
10284           - Added logic to DrawReversibleRectangle that recognizes a zero
10285             width or height and only draws a line in that situation
10286         
10287 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
10288
10289         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
10290         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
10291         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
10292           method (it uses our FosterParent window to get a graphics context)
10293
10294 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
10295
10296         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
10297           and SetWindowBackground methods
10298         * Control.cs:
10299           - Setting proper ControlStyles
10300           - We no longer call XplatUI.SetWindowBackground and XplatUI.
10301             EraseWindowBackground, instead we draw the window background
10302             ourselves in PaintControlBackground. This behaviour is
10303             required to match MS, where, when OnPaintBackground is not
10304             called, the background is not drawn.
10305           - Removed unneeded Refresh() in set_Text
10306         * Hwnd.cs: Dropped the ErasePending support. No longer needed
10307         * XplatUIX11.cs:
10308           - Created DeriveStyles method to translate from CreateParams to
10309             FormBorderStyle and TitleStyle, also handles BorderStyle (which
10310             matches FormBorderStyle enum values)
10311           - Consolidated SetHwndStyles and CalculateWindowRect border/title
10312             style calculations into single DeriveStyles method
10313           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
10314             from redrawing the whole window on any resize or expose.
10315           - Fixed CreateWindow usage of SetWindowValuemask. Before not
10316             all styles were applied to our whole/client window appropriately
10317           - Removed EraseWindowBackground() and SetWindowBackground() methods
10318           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
10319             no longer clear/redraw the background through X
10320           - Removed handling of erase_pending bit, we have no use for it (or
10321             so it seems)
10322         * XplatUIOSX.cs:
10323           - Removed generation and handling of WM_ERASEBKGND message
10324           - Removed EraseWindowBackground() and SetWindowBackground() methods
10325           - Removed handling of hwnd.ErasePending flag
10326         * XplatUIWin32.cs:
10327           - Removed EraseWindowBackground() and SetWindowBackground() methods
10328           - We no longer call EraseWindowBackground on PaintEventStart, we 
10329             ignore the fErase flag, erasing is handled in Control in the
10330             background handler
10331         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
10332           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
10333           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
10334           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
10335           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
10336           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
10337           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
10338
10339 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
10340
10341         * PropertyGrids.cs: Get sub properties
10342         * PropertyGridView.cs: Fix drawing code
10343
10344 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10345
10346         * ListBox.cs: Fixes 76383
10347
10348 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10349
10350         * DataGridTextBoxColumn.cs: Sets location and size before attachment
10351         * ThemeWin32Classic.cs: Fixes border drawing and calculations
10352         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
10353
10354
10355 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10356
10357         * ComboBox.cs: Fixes border drawing
10358
10359 2005-10-10  Miguel de Icaza  <miguel@novell.com>
10360
10361         * MimeIcon.cs: Ignore errors if the file can not be read.
10362
10363 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10364
10365         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
10366          - Fixed border calculations
10367          - Fixed horizontal scrolling in single column listboxes
10368          - Fixed drawing issues
10369
10370 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
10371
10372         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
10373           FormBorderStyle enum
10374         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
10375           code to determine FormBorderStyles from CreateParams
10376         * Form.cs:
10377           - Fixed bug where we'd set the wrong window styles if we were
10378             not creating an MDI window
10379           - Added call to XplatUI.SetBorderStyle when form borders are set
10380         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
10381         * Hwnd.cs:
10382           - Removed obsolete edge style
10383           - Switched from BorderStyle to FormBorderStyle
10384         
10385 2005-10-10  Jackson Harper  <jackson@ximian.com>
10386
10387         * Form.cs: Use the property to get the window handle instead of
10388         accessing it directly. Prevents a null reference exception.
10389
10390 2005-10-10  Jackson Harper  <jackson@ximian.com>
10391
10392         * TreeView.cs: Don't adjust the rect given to DrawString now that
10393         our libgdiplus draws correctly.
10394
10395 2005-10-08  Jackson Harper  <jackson@ximian.com>
10396
10397         * TreeView.cs: Don't try to find the clicked on node if there are
10398         no nodes in the tree.
10399
10400 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
10401
10402         * RichTextBox.cs:
10403
10404           restore
10405
10406 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
10407
10408         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
10409           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
10410           ErrorProvider.cs:
10411           Use ResPool for brushes and dispose System.Drawing objects that
10412           are not used anymore.
10413
10414 2005-10-07  Jackson Harper  <jackson@ximian.com>
10415
10416         * MdiChildContext.cs: Use the new borders instead of drawing them
10417         ourselves.
10418
10419 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
10420
10421         * Calling UpdateBounds after changing the window's BorderStyle 
10422         since the style can change the ClientSize
10423
10424 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10425
10426         * Control.cs: Made PaintControlBackground virtual
10427         * Panel.cs: Overriding PaintControlBackground instead of using paint
10428           event; paint event method was interfering with 'real' users of the
10429           event.
10430
10431 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
10432
10433         * ThemeWin32Classic.cs: remove border drawing since it is handled
10434         by the base control class now and was causing double border drawing.
10435
10436 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10437
10438         * Panel.cs: Redraw our background on paint. Not a pretty solution,
10439           but it does seem to match MS behaviour. This fixes bug #75324
10440
10441 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10442
10443         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
10444           somewhat hackish looking
10445
10446 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10447
10448         * TextBoxBase.cs:
10449           - We now accept Enter even if AcceptEnter is false, if the containing
10450             form does not have an AcceptButton configured (fixes bug #76355)
10451           - Calculations are now fixed to no longer use Width/Height, but
10452             ClientSize.Width/Height, since we now support borders (this was
10453             a result of fixing borders and therefore bug #76166)
10454           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
10455             true (fixes bug #76354)
10456         
10457 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10458
10459         * Control.cs: 
10460           - Defaulting BorderStyle and setting it in XplatUI when our window 
10461             is created
10462           - Added enum check to InternalBorderStyle setter
10463         * XplatUIX11.cs: 
10464           - Added drawing of window borders
10465           - Now properly calculates WM decorations offset for toplevel 
10466             windows (fixes bug #74763)
10467         * XplatUIWin32.cs: 
10468           - Implemented BorderStyles for windows (we're letting win32 draw 
10469             the border for us)
10470           - Fixed the signature for SetWindowLong
10471         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
10472           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
10473           setting borders
10474         * UpDownBase.cs: Remove drawing of borders, this is handled by
10475           the driver, outside the client area
10476         * ListView.cs: Removed bogus border calculations. The control should
10477           be oblivious to borders, since those are not part of the client
10478           area. 
10479         * X11DesktopColors.cs: Commented out (currently) unneeded variables
10480         * ThemeWin32Classic.cs: Removed border calculations from ListView 
10481           drawing code
10482
10483 2005-10-06  Jackson Harper  <jackson@ximian.com>
10484
10485         * MdiChildContext.cs: Clear out the old virtual position remove
10486         all the unneeded calls to CreateGraphics.
10487
10488 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10489
10490         * TextControl.cs: Use proper color for highlighted text; fixes #76350
10491
10492 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10493
10494         * Form.cs: 
10495           - Added loading and setting of our new default icon
10496           - Only set icon if window is already created
10497
10498 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10499
10500         * Label.cs:
10501           - Do not explicitly set the foreground and background colors, to
10502             allow inheriting from parents (fixes #76302)
10503           - Use Control's InternalBorderStyle property to deal with borders
10504
10505 2005-10-06  Jackson Harper  <jackson@ximian.com>
10506
10507         * MdiChildContext.cs: Use the new xplatui function to draw a
10508         reversible rect.
10509
10510 2005-10-06  Jackson Harper  <jackson@ximian.com>
10511
10512         * Form.cs: Add the parent before creating the child context cause
10513         we need the parent when setting up the child.
10514
10515 2005-10-06  Jackson Harper  <jackson@ximian.com>
10516
10517         * FolderBrowserDialog.cs: redo the tree population code so a
10518         second thread isn't used. Should be a lot faster and more stable
10519         now.
10520
10521 2005-10-05  Jackson Harper  <jackson@ximian.com>
10522
10523         * TreeView.cs: There are no expand/collapse boxes if the node has
10524         no children.
10525
10526 2005-10-05  Jackson Harper  <jackson@ximian.com>
10527
10528         * X11DesktopColors.cs: Get menu colours for the gtk theme.
10529
10530 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
10531
10532         * FileDialog.cs: Fix InitialDirectory
10533
10534 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
10535
10536         * ComboBox.cs:
10537                 - Fixes changing between styles
10538                 - Fixes simple mode
10539                 - Fixes last item crashing when navigating with keyboard
10540
10541 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
10542
10543         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
10544
10545 2005-10-05  Jackson Harper  <jackson@ximian.com>
10546
10547         * TreeView.cs: If updating the root node do a full refresh.
10548         * TreeNode.cs: The root node should be expanded by default. Also
10549         added a utility prop to tell if we are the root node.
10550         * TreeNodeCollection.cs: Only refresh if the node we are being
10551         added to is expanded. Also added a comment on a potential
10552         optimization.
10553         
10554 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
10555
10556         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
10557           in dispose method. Fixes #76330
10558
10559 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
10560
10561         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
10562
10563                 - Implements vertical and horizontal scrolling using XplatUI
10564                 - Fixes keyboard navagation
10565                 - Fixes EnsureVisible
10566                 - Drawing fixes
10567                 - Handles and draws focus properly
10568
10569
10570 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
10571
10572         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
10573           Create handle. NET_2_0: Destroy handle when value is null.
10574
10575 2005-10-03  Jackson Harper  <jackson@ximian.com>
10576
10577         * ScrollBar.cs: My last scrollbar patch was broken. This is a
10578         revert and a new patch to prevent the thumb from refreshing so
10579         much.
10580
10581 2005-10-02  Jackson Harper  <jackson@ximian.com>
10582
10583         * ScrollBar.cs: Don't update position if it hasn't actually
10584         changed. This occurs when you hold down the increment/decrement
10585         buttons and the thumb gets to the max/min.
10586
10587 2005-10-01  Jackson Harper  <jackson@ximian.com>
10588
10589         * Form.cs:
10590         * MdiChildContext.cs:
10591         * MdiClient.cs: Implement ActiveMdiChild in Form.
10592
10593 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
10594
10595         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
10596
10597 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
10598
10599         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
10600           be found
10601
10602 2005-09-30  Jackson Harper  <jackson@ximian.com>
10603
10604         * ListBox.cs: Don't do a full refresh unless some data has
10605         actually changed.
10606
10607 2005-09-30  Jackson Harper  <jackson@ximian.com>
10608
10609         * TreeView.cs: Make sure that the checkboxes size is factored in
10610         even when not visible.
10611
10612 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
10613
10614         * FileDialog.cs: Fix Jordi's build break
10615
10616 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
10617
10618         * FileDialog.cs: 
10619                 - Use standard the Windows colours for the combobox as espected
10620                 - Dispose objects that use resouces when no longer need them
10621
10622 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
10623
10624         * X11DesktopColors.cs: Initial incomplete implementation
10625         * XplatUIX11.cs: Added call to initialize X11DesktopColors
10626
10627 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
10628
10629         * Theme.cs: 
10630           - Switched Theme color names to match the names defined in 
10631             System.Drawing.KnownColors. Life's hard enough, no need to make 
10632             it harder.
10633           - Added setters to all theme color properties so themes can set
10634             their color schemes. The setters also propagate the color changes
10635             to System.Drawing.KnownColors via reflection
10636         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
10637           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
10638           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
10639           use the new, more logical theme color names
10640         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
10641           post-NT colors
10642         * ThemeWin32Classic.cs:
10643           - Removed code to set the old classic Windows colors. Instead it
10644             now relies on the colors returned by System.Drawing.KnownColors
10645             which will be either modern static colors (Unix) or colors
10646             read from the user's configuration (Win32)
10647           - Updated to use the new, more logical theme color names
10648           - Switched DataGrid drawing code to use only Theme colors instead of
10649             a mix of System.Drawing.KnownColors and Theme colors
10650           - DrawFrameControl(): Removed code that fills the button area, the
10651             fill would overwrite any previous fill done by a control. This
10652             fixes bug #75338 
10653           - Added DrawReversibleRectangle() stub
10654         * ScrollableControl.cs: Set visible state to false when scrollbars
10655           are removed (pdn fix)
10656         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
10657           DrawReversibleRectangle() method to allow drawing primitive 
10658           'rubber bands'
10659         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
10660
10661 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10662
10663         * ImageList.cs: Add(Icon): Create handle.
10664
10665 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
10666
10667         * ListView.cs:
10668         * ThemeWin32Classic.cs:
10669                 - Fixes detail mode
10670                 - Sets clippings
10671                 - Issues with drawing
10672
10673 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10674
10675         * ImageList.cs: Moved RecreateHandle back to ImageList as event
10676           source has to be the ImageList.
10677
10678 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10679
10680         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
10681
10682 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10683
10684         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
10685
10686 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10687
10688         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
10689
10690 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
10691         * GridItem.cs: Fixed TODOs
10692         * GridItemCollection.cs: Added ICollection interface
10693
10694 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10695
10696         * ImageList.cs: Resize icons when needed.
10697
10698 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
10699
10700         * ListViewItem.cs
10701                 - Fixes GetBounds and returns on screen rects
10702         * ListView.cs:
10703                 - Fixes vertical and horzintal scrolling of items
10704         * ThemeWin32Classic.cs:
10705                 - Fixes drawing
10706                 
10707 2005-09-29  Raja R Harinath  <harinath@gmail.com>
10708
10709         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
10710
10711 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
10712
10713         * ImageList.cs: Added comments about handle creation. Moved Handle,
10714           HandleCreated and OnRecreateHandle implementations to ImageCollection.
10715           Handle is created in Add methods.
10716
10717 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
10718          
10719         * DataGridDrawingLogic.cs: 
10720                 - Takes rows into account on Colum calculations
10721                 - Returns the column when clickig
10722         * DataGrid.cs:
10723                 - Fixes default HitTestInfo values
10724                 - Fixes HitTestInfo.ToString
10725                 - Fixes ResetBackColor          
10726         
10727 2005-09-28  Jackson Harper  <jackson@ximian.com>
10728
10729         * MdiChildContext.cs: Obey rules for fixed sized windows (no
10730         sizing or cursor changes). Also added some temp code to draw the
10731         titlebars text (Makes dev a little easier).
10732
10733 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
10734
10735         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
10736
10737 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
10738          
10739         * ListBox.cs: Fixes bug 76253
10740
10741 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
10742
10743         * ImageList.cs: Added comments about the current implementation. Added
10744           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
10745           Format32bppArgb to preserve transparency and can use Graphics.FromImage
10746           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
10747           with Bitmap.LockBits for better performance. Revised the whole file to
10748           match MS.NET behaviour and provide better performance. Non-public
10749           interface members are calling public members even when they throw
10750           NotSupportedException for better maintainability. Moved ColorDepth,
10751           ImageSize, ImageStream and TransparentColor implementations to
10752           ImageCollection for better performance as these properties are not used
10753           by ImageList.
10754         * ImageListStreamer.cs: Added a new internal constructor that takes an
10755           ImageList.ImageCollection and serializes Images based on
10756           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
10757           match ImageList property name.
10758
10759 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
10760
10761         * ListBox.cs: Fixes IndexFromPoint for last item
10762
10763 2005-09-27  Jackson Harper  <jackson@ximian.com>
10764
10765         * Form.cs: Set the position of new mdi children correctly.
10766
10767 2005-09-27  Jackson Harper  <jackson@ximian.com>
10768
10769         * MdiClient.cs: New mdi children need to be added to the back of
10770         the controls collection so the zorder is set correctly. Also add a
10771         count of all the child windows that have been created.
10772
10773 2005-09-27  Jackson Harper  <jackson@ximian.com>
10774
10775         * Form.cs (CreateParams): Setup MDI forms correctly.
10776
10777 2005-09-27  Jackson Harper  <jackson@ximian.com>
10778
10779         * MdiChildContext.cs:
10780         * MonthCalendar.cs:
10781         * UpDownBase.cs:
10782         * ListBox.cs:
10783         * ListView.cs:
10784         * TextBoxBase.cs:
10785         * TreeView.cs:
10786         * ScrollableControl.cs:
10787         * ComboBox.cs: Add implicit controls using the new implict control
10788         functionality in ControlCollection. Also try to block multiple
10789         control add in a suspend/resume layout to save some cycles.
10790         
10791 2005-09-27  Jackson Harper  <jackson@ximian.com>
10792
10793         * Control.cs: Add functionality to the controls collection to add
10794         'implicit controls' these are controls that are created by the
10795         containing control but should not be exposed to the user. Such as
10796         scrollbars in the treeview.
10797         * Form.cs: The list var of the ControlsCollection is no longer
10798         available because of the potential of implicit controls getting
10799         ignored by someone accessing the list directly.
10800
10801 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
10802
10803         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
10804           loose it's parent. (Fixed bug introduced in r49103 when we added
10805           setting the child parent to null on Remove)
10806
10807 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
10808
10809         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
10810         * Splitter.cs: Added missing attributes for BorderStyle property.
10811         * TextBoxBase.cs: Marked Calculate* methods internal.
10812         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
10813         MS.NET.
10814
10815 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
10816          
10817         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
10818
10819 2005-09-25  Jackson Harper  <jackson@ximian.com>
10820
10821         * TreeView.cs: Update the node bounds correctly regardless of
10822         whether the node is visible.
10823
10824 2005-09-25  Jackson Harper  <jackson@ximian.com>
10825
10826         * ImageList.cs: Don't dispose the image after it is added to the
10827         image list. Only reformat images that need to be resized.
10828
10829 2005-09-25  Jackson Harper  <jackson@ximian.com>
10830
10831         * ImageList.cs: Don't set the format when changing the image.
10832
10833 2005-09-25  Jackson Harper  <jackson@ximian.com>
10834
10835         * TreeView.cs: We can't just assume the node has a font. Use the
10836         treeviews font if no node font is available.
10837
10838 2005-09-25  Jackson Harper  <jackson@ximian.com>
10839
10840         * TreeView.cs: Allow the scrollbars to be reset with negative
10841         values.
10842         - Don't add scrollbars to negative sized windows.
10843
10844 2005-09-23  Jackson Harper  <jackson@ximian.com>
10845
10846         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
10847         old Mono.Posix. Also remove some stray code that shouldn't have
10848         been committed.
10849
10850 2005-09-23  Jackson Harper  <jackson@ximian.com>
10851
10852         * TreeView.cs: Attempt at proper sizing of the horizontal
10853         scrollbar. Also don't resize the scrollbars unless they are
10854         visible.
10855
10856 2005-09-23  Jackson Harper  <jackson@ximian.com>
10857
10858         * TreeView.cs: We don't need to expand the invalid area when the
10859         selection changes, as this is all drawn in the node's bounding
10860         box. The area needs to be expanded (previous typo was contracting
10861         it) when the focus rect moves.
10862
10863 2005-09-23  Jackson Harper  <jackson@ximian.com>
10864
10865         * TreeView.cs: Display the selection box under the correct
10866         circumstances. We were rendering white text with no selection box
10867         before.
10868
10869 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
10870
10871         * TextControl.cs(Split): Now updates selection start/end if it points 
10872           into a line that's being split. Fixes a FIXME and bug #75258
10873
10874 2005-09-23  Jackson Harper  <jackson@ximian.com>
10875
10876         * Binding.cs:
10877         * ListControl.cs: Don't use the path when retrieving binding
10878         managers from the binding context. My bat sense tells me that the
10879         path is only used on insertion.
10880
10881 2005-09-22  Jackson Harper  <jackson@ximian.com>
10882
10883         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
10884
10885 2005-09-22  Jackson Harper  <jackson@ximian.com>
10886
10887         * Splitter.cs: There are special cursors used for splitting.
10888         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
10889
10890 2005-09-22  Jackson Harper  <jackson@ximian.com>
10891
10892         * Splitter.cs: Change the cursor appropriately when the splitter
10893         is moused over, so the user actually knows there is a splitter
10894         there.
10895
10896 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10897
10898        * Label.cs : Fix ToString method to give same output as MS.NET
10899
10900 2005-09-22  Jackson Harper  <jackson@ximian.com>
10901
10902         * TreeView.cs: Create the scrollbars when the handle is created
10903         and add them right away, just make them invisble. Also account for
10904         the window being shrunk vertically to the point that the vert
10905         scrollbar needs to be added.
10906         - Remove some 0.5 adjustments to get around anti aliasing issues.
10907         
10908 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
10909          
10910         * MainMenu.cs: Fixes default value
10911         * MenuItem.cs: Fixes default value
10912
10913 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
10914
10915         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
10916
10917 2005-09-21  Jackson Harper  <jackson@ximian.com>
10918
10919         * Control.cs: Don't try to set the border style on the window if
10920         it hasn't been created. When the window is created the border
10921         style will be used.
10922
10923 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10924
10925         * Control.cs (Update): Don't call XplatUI if we don't have a
10926           window handle yet
10927
10928 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10929
10930         * ContainerControl.cs: Instead of throwing an exception, print
10931           a one-time warning about Validate not being implemented
10932         * XplatUIWin32.cs: Removed debug output
10933
10934 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10935
10936         * Control.cs: Only set XplatUI background if we expect the windowing
10937           system to handle the background. This stops controls that draw their
10938           own background from flickering
10939
10940         * XplatUIX11.cs: Support custom visuals and colormaps for window 
10941           creation. This allows, amongst other things, using MWF X11 windows 
10942           with OpenGL.
10943
10944 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10945
10946         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
10947           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
10948           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
10949           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
10950           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
10951           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
10952           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
10953           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
10954           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
10955           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
10956           GridColumnStylesCollection.cs, 
10957           IDataGridColumnStyleEditingNotificationService.cs,
10958           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
10959           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
10960           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
10961           TreeNodeCollection.cs, AmbientProperties.cs, 
10962           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10963           DataObject.cs, ErrorProvider.cs, Splitter.cs,
10964           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
10965           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
10966           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
10967           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
10968           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
10969           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
10970           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
10971           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
10972           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
10973           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
10974           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
10975           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
10976           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
10977           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
10978           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
10979           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
10980           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
10981           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
10982           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
10983           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
10984           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
10985           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
10986           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
10987           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
10988           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
10989           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
10990           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
10991           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
10992           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
10993           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
10994           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
10995           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
10996           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
10997           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
10998           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
10999
11000 2005-09-21  Jackson Harper  <jackson@ximian.com>
11001
11002         * TreeNode.cs: Call Before/After Expand not Collapse when
11003         expanding.
11004
11005 2005-09-20  Jackson Harper  <jackson@ximian.com>
11006         
11007         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
11008
11009 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
11010          
11011         * ListViewItem.cs:
11012                 - Fixes bug 76120
11013                 - Fixes proper storing of subitems
11014                 - Fixes not updated items
11015
11016 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
11017
11018         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
11019           things if our window handle isn't created yet. Also disabled 
11020           debug for TextBoxBase
11021
11022 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
11023
11024         * MenuAPI.cs: Remove filtering of events to allow menu usage
11025
11026 2005-09-20  Miguel de Icaza  <miguel@novell.com>
11027
11028         * Cursor.cs: Allow null to be passed to Cursor.Current.
11029
11030 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
11031
11032         * ThemeWin32Classic.cs:
11033           - Change some private methods/fields to protected virtual so that 
11034             they can be accessed and overriden in derived classes
11035           - First refactoring of some methods. Derived themes now don't 
11036             need to duplicate the complete code from ThemeWin32Classic
11037         * ThemeNice.cs:
11038           - Added nice StatusBar
11039           - Derive from ThemeWin32Classic and not Theme
11040           - Removed duplicate ThemeWin32Classic code
11041
11042 2005-09-20  Miguel de Icaza  <miguel@novell.com>
11043
11044         * Control.cs (ControlCollection.Add): If the value null is passed
11045         the control is ignored. 
11046
11047         Optimize this loop.
11048
11049 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
11050
11051         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
11052           PostQuitMessage state.
11053         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
11054
11055 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
11056
11057         * Application.cs: Our constructor will never get called, move 
11058           initialization to fields; fixes bug #75933
11059
11060 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
11061
11062         * FileDialog.cs :
11063                 - Allow files to be selected properly using file name
11064                 combo box.
11065                 - Add ability to change diretory (absolute / relative)
11066                 using file name combo box.
11067
11068 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
11069          
11070         * ListBox.cs: 
11071                 - Fixes Multicolumn listboxes item wrong calculations
11072                 - Allows to click when only one item is in the listbox
11073                 - Fixes crash when no items using keyboard navigation
11074
11075 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
11076
11077         * ComboBox.cs: Reverted almost everything from the latest patch which
11078           broke ComboBox
11079
11080 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
11081         
11082         * ToolTip.cs:
11083                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
11084         * ComboBox.cs:
11085                 - When DropDownStyle is Simple, it does not show scrollbar 
11086                 to the last item of the list.
11087                 - When DropDownStyle is Simple, it crashed when the list was 
11088                 scrolled down with the down cursor key.
11089                 - Fixed a bug that when DropDownStyle is DropDownList, the 
11090                 selected item was not shown.
11091                 - The position of the selected item was not preserved when 
11092                 the next dropdown happened.
11093         * ThemeWin32Classic.cs:
11094                 - Items were wrapped at the right end.
11095         * CheckedListBox.cs:
11096                 - Fixed Add method
11097         * ListBox.cs:
11098                 - Items should be fully shown.
11099                 - When resizing and vertical scrollbar disappeared, the item 
11100                 of index 0 should be on the top of the list.
11101                 - GetItemRectangle should consider the size of ver. scrollbar
11102         * StatusBar.cs:
11103                 - SizingGrip area should not be allocated when it is not 
11104                 displayed.
11105                 - Now it reflects MinWidth of the containing panel and 
11106                 fixed a crash that happens when its width becomes so small.
11107
11108 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
11109
11110         * CheckedListBox.cs: Fixes bug 76028
11111         * ListBox.cs: Fixes bug 76028
11112
11113 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
11114
11115         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
11116         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
11117
11118 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
11119
11120         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
11121
11122 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
11123
11124         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
11125
11126 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
11127
11128         * IRootGridEntry.cs: Added
11129         * PropertyGridCommands.cs: Added
11130         * PropertiesTab.cs: Added missing methods and property
11131         * PropertyGridView.cs: Made class internal
11132         * PropertyGridTextBox.cs: Made class internal
11133
11134 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
11135
11136         * MimeIcon.cs: Try to check some other environment variables
11137           if "DESKTOP_SESSION" returns "default"
11138
11139 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
11140
11141         * ThemeNice.cs: Corrected background colors (e.g. menus)
11142         * ColorDialog.cs: Use correct background colors for controls
11143
11144 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
11145
11146         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
11147
11148 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
11149
11150         * RichTextBox.cs: Added initial implementation
11151         * lang.cs: Removed. Was accidentally checked in long time ago
11152         * TODO: Removed. Contents were obsolete
11153
11154 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
11155                                                                                 
11156         * PropertiesTab.cs : Added
11157
11158 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
11159                                                                                 
11160         * PropertyGrid.cs : Update
11161         * PropertyGridView.cs : Update
11162         * System.Windows.Forms.resx : Added images and strings
11163
11164 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
11165
11166         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
11167  
11168 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
11169
11170         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
11171           a busy loop right after the Ungrab the X11 display is otherwise 
11172           blocked
11173
11174 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
11175
11176         * ThemeWin32Classic.cs: Optimise the use of clipping
11177
11178 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
11179
11180         * DataGrid.cs: fixes recursion bug
11181
11182 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
11183
11184         * ThemeNice.cs: 
11185           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
11186           - Cleanup
11187
11188 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
11189
11190         * ThemeNice.cs: Draw nice ProgressBars
11191
11192 2005-09-01  Miguel de Icaza  <miguel@novell.com>
11193
11194         * VScrollBar.cs: Another buglet found by Aaron's tool. 
11195
11196         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
11197         bug finder.
11198
11199 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
11200
11201         * ThemeNice.cs:
11202           - Added nicer menu drawing
11203           - Updated DrawTab
11204           - some refactoring
11205
11206 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
11207
11208         * CreateParams.cs (ToString): Made output match MS
11209         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
11210             handle is already created (to avoid forcing window creation)
11211         * XplatUIX11.cs: Set window text to caption after creating window,
11212           in case Text was set before window was created
11213         * Form.cs: Use this.Text instead of a static string as caption
11214
11215 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
11216
11217         * NotifyIcon.cs: Don't set the window to visible; this screws
11218           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
11219           OnPaint without a bitmap)
11220         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
11221           happen very often anyway; we could add the check to the WM_PAINT 
11222           event generation code
11223
11224 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
11225
11226         * NotifyIcon.cs: Fill the icon area with a background color, to 
11227           avoid 'residue' when transparent icons are drawn
11228         * XplatUIX11.cs:
11229           - Handle whole_window == client_window when destroying windows
11230           - SystrayAdd(): Set client_window to whole_window value to
11231             get mouse and other events passed to NotifyIcon
11232
11233 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
11234
11235         * Form.cs: Set proper default for Opacity property
11236         * NotifyIcon.cs:
11237           - ShowSystray(): Don't bother creating telling the OS
11238             about the systray item if no icon is provided
11239           - Now handles WM_NCPAINT message to deal with whole/client window
11240             split
11241           - Create window as visible to not get caught by Expose optimization
11242         * Hwnd.cs: Removed debug message
11243         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
11244           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
11245             PaintEventStart/End to use new client argument
11246         * TextBoxBase.cs:
11247           - Commented out debug messages
11248           - Switched PaintEventStart/End to use new client argument
11249         * XplatUI.cs: Added client window bool to PaintEventStart()/
11250           PaintEventEnd() calls, to support drawing in non-client areas
11251         * XplatUIDriver.cs: 
11252           - Added client window bool to PaintEventStart()/PaintEventEnd() 
11253             calls, to support drawing in non-client areas
11254           - Added conditional compile to allow using MWF BeginInvoke 
11255             on MS runtime
11256         * XplatUIX11.cs:
11257           - Added some conditional debug output
11258           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
11259             whole/client window split
11260           - Implemented handling of client argument to PaintEventStart()/End()
11261         * Control.cs:
11262           - Throw exception if BeginInvoke() is called and the window handle
11263             or one of the window's parent handles is not created
11264           - Added conditional compile to allow using MWF BeginInvoke on
11265             MS runtime
11266           - get_Parent(): Only sets parent if handle is created. This avoids
11267             forcing window handle creation when parent is set.
11268           - Now fires Layout and Parent changed events in proper order
11269           - Switched to use Handle instead of window.Handle for Z-Order setting,
11270             the get_Parent() patch above causes us to possibly get null for 'window'
11271           - Implemented handling of client argument to PaintEventStart()/End()
11272           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
11273             default handling)
11274           - Now sends a Refresh() to all child windows when Refresh() is called
11275
11276 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
11277
11278         * Form.cs: Added (non-functional) Opacity property
11279         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
11280
11281 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
11282         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
11283           use export MONO_THEME=nice to activate it.
11284           Currently supported controls:
11285           - Button
11286           - ComboBox
11287           - ScrollBar
11288           - TabControl (TabAlignment.Top only, other will follow)
11289         * ThemeEngine.cs: Add theme nice
11290         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
11291           if enabled
11292
11293 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
11294
11295         * Splitter.cs: Resize docked control and its neighbor.
11296
11297 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11298         -- Making Windows with Menus layout correctly --
11299         * Form.cs : The first leg of the fix
11300                 Menu setter - adjust Client Size as needed to make space for the menu
11301                 SetClientSizeCore - doesn't call base version to be able to pass the 
11302                         menu handle to XplatUI.CalculateWindowRect
11303         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
11304         * XplatUIX11.cs: The critical second leg of the fix
11305                 GetWindowPos needs to use a recalculated client_rect
11306                 so that resizing the window doesn't break layout of child controls. 
11307                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
11308                 Lots of \t\n killed
11309
11310 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11311
11312         * Label.cs: Now properly recalculates width and height on Font and Text
11313           changes if AutoSize is set
11314
11315 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11316         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
11317
11318 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
11319
11320         * ImageList.cs: Makes ToString method compatible with MS
11321
11322 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
11323
11324         * MenuAPI.cs: fixes bug 75716
11325
11326 2005-08-11 Umadevi S <sumadevi@novell.com>
11327         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
11328
11329 2005-08-11 Umadevi S <sumadevi@novell.com>
11330         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
11331
11332 2005-08-10  Umadevi S <sumadevi@novell.com>
11333         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
11334
11335 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
11336
11337         * Menu.cs: fixes bug 75700
11338         * MenuAPI.cs: fixes navigation issues
11339
11340 2005-08-09  Umadevi S <sumadevi@novell.com>
11341         * CheckedListBox.cs - simple fix for GetItemChecked.
11342
11343 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
11344
11345         * ComboBox.cs: Serveral fixes
11346         * ListBox.cs: Serveral fixes
11347
11348 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
11349
11350         * ComboBox.cs: Fixes FindString methods and GetItemHeight
11351         * ListBox.cs: Fixes FindString methods
11352
11353 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
11354
11355         * DataGrid.cs: fixes bugs exposed by new tests
11356
11357 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
11358
11359         * Mime.cs: Compile Mono assembly references only if compiling
11360           with Mono (Allows to build with VS.Net again)
11361
11362 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
11363
11364         * Control.cs (PaintControlBackground): Draw background image
11365         corrrectly.
11366         (CheckForIllegalCrossThreadCalls): Stubbed.
11367         
11368         * Form.cs (OnCreateControl): Center when should be centered.
11369         
11370         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
11371
11372 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
11373
11374         * Binding.cs: Binding to properties should be case unsensitive
11375
11376 2005-07-18 vlindos@nucleusys.com
11377
11378         * DataGrid.cs: fixes setmember order
11379
11380 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
11381
11382         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
11383         * FileDialog.cs: FileDialog is now resizable and uses the new
11384           MimeIconEngine
11385
11386 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
11387
11388         * DataGridTextBoxColumn.cs: default value
11389         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
11390         * GridTableStylesCollection.cs: fixes checking MappingName
11391         * DataGridDrawingLogic.cs: fixes drawing logic issues
11392         * DataSourceHelper.cs: rewritten to make compatible with more data sources
11393         * DataGrid.cs: fixes    
11394
11395 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
11396
11397         * MimeGenerated.cs: Use case sensitive comparer for
11398           NameValueCollections
11399
11400 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
11401
11402         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
11403         * ThemeWin32Classic.cs: bug fixes, code refactoring
11404         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
11405         * DataGrid.cs: bug fixes, code refactoring
11406         * DataGridTextBox.cs: bug fixes, code refactoring
11407         * DataGridColumnStyle.cs:  bug fixes, code refactoring
11408         * Theme.cs:  bug fixes, code refactoring
11409
11410 2005-07-01  Peter Bartok  <pbartok@novell.com> 
11411
11412         * TextControl.cs: Quick fix for the reported crash on ColorDialog
11413           and other text box usage
11414
11415 2005-07-01  Jackson Harper  <jackson@ximian.com>
11416
11417         * TabControl.cs: Make sure the bottom of the tab covers the pages
11418         border.
11419
11420 2005-06-30  Peter Bartok  <pbartok@novell.com> 
11421
11422         * Form.cs (ShowDialog): Assign owner of the dialog
11423         * TextBoxBase.cs: Always refresh caret size when deleting, caret
11424           might have been moved to a tag with different height
11425
11426 2005-06-30  Jackson Harper  <jackson@ximian.com>
11427
11428         * Form.cs: Don't create an infinite loop when setting focus
11429         * MenuItem.cs: Don't dirty the parents if we don't have any
11430
11431 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
11432
11433         * LibSupport.cs: Rename
11434
11435 2005-06-29  Peter Bartok  <pbartok@novell.com>
11436
11437         * TextBoxBase.cs: Re-align caret after deleting a character
11438         * TextControl.cs:
11439           - DeleteChars(): Ensure that tag covers the provided position
11440           - StreamLine(): Drop reference for dropped tag
11441
11442 2005-06-29  Peter Bartok  <pbartok@novell.com> 
11443
11444         * TextControl.cs: 
11445           - Selections now work properly, anchoring at the initial location
11446             and properly extending in either direction (SetSelectionToCaret(),
11447             SetSelectionStart() and SetSelectionEnd())
11448           - No longer redraws the whole control on selection change, now
11449             calculates delta between previous and new selection and only
11450             invalidates/redraws that area
11451           - Fixed FindPos() math off-by-one errors
11452           - Changed DeleteChars() to verify the provided tag covers the
11453             provided position, selections may have a tag that doesn't cover
11454             the position if the selection is at a tag border
11455           - Fixed off-by-one errors in DeleteChars()
11456           - Added missing streamlining check in DeleteChars() to remove
11457             zero-length tags
11458           - Implemented Invalidate() method, now properly calculates exposures
11459             between two given lines/positions
11460           - Implemented SetSelection()
11461           - Obsoleted and removed FixupSelection()
11462           - Improved RecalculateDocument() logic, removing code duplication
11463
11464 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11465
11466         * LibSupport.cs: changes to match different input/output arguments.
11467
11468 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11469
11470         * LibSupport.cs: added libsupport.so init routine.
11471
11472 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
11473         
11474         * ControlBindingsCollection.cs
11475                 - Throws an exception on null datasource when adding
11476                 - Checks for duplicated bindings when adding
11477
11478 2005-06-28  Jackson Harper  <jackson@ximian.com>
11479
11480         * TreeView.cs (OnKeyDown): Support left and right properly
11481         (navigates as well as expanding and collapsing.
11482         - Add support for Multiply, this expands all the selected nodes
11483         children.
11484         - Fix some tabbing.
11485
11486 2005-06-28  Jackson Harper  <jackson@ximian.com>
11487
11488         * TreeView.cs: Implement keyboard navigation, currently supports,
11489         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
11490         support for toggling checkboxes with the space bar.
11491
11492 2005-06-28  Jackson Harper  <jackson@ximian.com>
11493
11494         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
11495         tree.
11496
11497 2005-06-28  Jackson Harper  <jackson@ximian.com>
11498
11499         * TreeView.cs: Add missing event.
11500
11501 2005-06-27  Peter Bartok  <pbartok@novell.com> 
11502
11503         * TextControl.cs:
11504           - Made line ending size configurable (now allows for counting 
11505             lineendings as \n or \r\n)
11506           - Added margin to viewport to keep caret visible on right side
11507           - Fixed translation routines for line/pos to documentpos to consider
11508             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
11509           - Fixed some line-endings to be unix style
11510           - Fixed Document.FormatText to perform it's calculations 1-based
11511           - Added descriptions for a few methods that might otherwise get 
11512             used wrong
11513           - Added NOTE section with some basic conventions to remember at 
11514             the top of the file
11515           - Major fixup for RichTextBox selection drawing:
11516             * Fixed crashes when multiple tags on a single line were selected
11517             * fixed selection box drawing not overlaying text
11518             * fixed bogus offset calculation for tags not starting at index 1
11519             * Switched behaviour from using multiple Substrings of a 
11520               StringBuilder.ToString() to using multiple 
11521               StringBuilder.ToString(start, length) statements, hoping this is
11522               faster (kept original version commented out in the code, in case
11523               original version was faster)
11524         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
11525           alignment != Left
11526         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
11527           call it as well
11528
11529 2005-06-27  Jackson Harper  <jackson@ximian.com>
11530
11531         * TabControl.cs: Move to the left and right with the arrow
11532         keys. These keys don't cycle beyond first and last like
11533         tab. Refresh all the tabs when scrolling them to the left or
11534         right.
11535
11536 2005-06-27  Jackson Harper  <jackson@ximian.com>
11537
11538         * TabControl.cs:
11539           - ToString: Added method
11540           - CreateParams: Remove TODO and comment
11541           - OnKeyDown: Cycle through bounds properly.
11542           - SelectedIndex: Scroll to the right or left if we need to
11543           display the newly selected tab.
11544
11545 2005-06-23  Jackson Harper  <jackson@ximian.com>
11546
11547         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
11548         set.
11549
11550 2005-06-23  Jackson Harper  <jackson@ximian.com>
11551
11552         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
11553         CTRL-SHIFT-TAB, and HOME, END are there any others?
11554
11555 2005-06-23  Jackson Harper  <jackson@ximian.com>
11556
11557         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
11558
11559 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
11560         
11561         * DataGridTextBoxColumn.cs: fixes and enhancements
11562         * ThemeWin32Classic.cs: fixes and enhancements
11563         * DataGridBoolColumn.cs:  fixes and enhancements
11564         * DataGridDrawingLogic.cs:  fixes and enhancements
11565         * CurrencyManager.cs: fixes and enhancements
11566         * DataGrid.cs: fixes and enhancements
11567         * DataGridColumnStyle.cs:  fixes and enhancements
11568
11569 2005-06-22  Jackson Harper  <jackson@ximian.com>
11570
11571         * TabControl.cs: Add some missing methods that just call into the
11572         base. Make the TabPageCollection's IList interface behave in the
11573         same manner as the MS implementation.
11574
11575 2005-06-22  Peter Bartok  <pbartok@novell.com> 
11576
11577         * TextControl.cs: Added sanity check
11578         * TextBoxBase.cs: 
11579           - Fixed wrapping behaviour, don't set wrap on single line controls
11580             (this fixes the breakage of colordialog introduced in an earlier
11581              checkin)
11582           - Added rudimentary support for autoscrolling right-aligned controls
11583             (still needs fixing, also, center alignment scroll is missing)
11584
11585 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
11586         
11587         * ScrollBar.cs: Fixes thumbpos on Maximum values
11588
11589 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
11590         
11591         * PropertyGridView.cs: Pass context information to UITypeEditors 
11592
11593 2005-06-21  Peter Bartok  <pbartok@novell.com> 
11594
11595         * TextBoxBase.cs:
11596           - Now calling PositionCaret with absolute space coordinates
11597           - Enabled vertical scrolling
11598           - Better tracking of scrollbar changes, tied into WidthChange
11599             event
11600           - Improved cursor tracking
11601           - Removed debug output
11602         * TextControl.cs:
11603           - PositionCaret coordinates are now works in absolute space, not 
11604             the canvas
11605           - Improved tracking of document size
11606           - Added events for width and height changes
11607
11608 2005-06-21  Peter Bartok  <pbartok@novell.com>
11609
11610         * Form.cs: Set focus to active control when form is activated
11611         * TextControl.cs: 
11612           - Added word-wrap functionality to RecalculateLine() 
11613           - Added some short function descriptions for VS.Net to aid in
11614             writing dependent controls
11615           - Added Caret property, returning the current coords of the caret
11616           - Added ViewPortWidth and ViewPortHeight properties
11617           - Added Wrap property
11618           - Added CaretMoved event
11619           - Removed some old debug code
11620           - Split() can now create soft splits
11621           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
11622           - Added method to format existing text
11623           - Fixed size/alignment calculations to use viewport
11624           - RecalculateDocument now can handle changing line-numbers while
11625             calculating lines
11626
11627         * TextBox.cs:
11628           - Added some wrap logic, we don't wrap if alignment is not left
11629           - Added casts for scrollbar var, base class switched types to
11630             also support RichTextBoxA
11631           - Implemented handling of scrollbar visibility flags
11632
11633         * TextBoxBase.cs:
11634           - Switched scrollbars type to RichTextBoxScrollBars to support
11635             RichTextBox
11636           - Added tracking of canvas width/height
11637           - Switched scrollbars to be not selectable (to keep focus on text)
11638           - Added central CalculateDocument() method to handle all redraw
11639             requirements
11640           - Added ReadOnly support
11641           - Added WordWrap support
11642           - Fixed handling of Enter key (we now treat it as a DialogKey)
11643           - Fixed caret positioning when h or v scroll is not zero
11644           - Fixed placing/generation of vertical scrollbar
11645           - Added CalculateScrollBars() method to allow updating scrollbar
11646             limits and visibility
11647           - Fixed handling of horizontal scroll
11648           - Added handling of vertical scroll
11649           - Implemented auto-'jump' when caret moves to close to a left or
11650             right border and there is text to be scrolled into view (currently
11651             there's the potential for a stack overflow, until a bug in
11652             scrollbar is fixed)
11653
11654 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
11655         
11656         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
11657
11658 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
11659
11660         * Mime.cs:
11661         - added inodes.
11662         - return application/x-zerosize for files with size zero
11663           (if no extension pattern matches).
11664         - check matches collection for strings too.
11665         - return only the first mime type if the name value
11666           collection has more than one mime type.
11667
11668 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
11669         
11670         * PropertyGrid.cs: Cleaned up some TODOs
11671         * PropertyGridView.cs: Added support for UITypeEditors
11672
11673 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
11674         
11675         * DataGrid.cs: clears cached value
11676
11677 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
11678
11679         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
11680         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
11681         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
11682         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
11683         
11684 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
11685
11686         * ThemeWin32Classic.cs: fixes colour
11687
11688 2005-06-15  Peter Bartok  <pbartok@novell.com>
11689
11690         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
11691         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
11692         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
11693         * Control.cs: Added some MWFCategory and MWFDescription attributes
11694         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
11695
11696 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
11697
11698         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
11699         usage
11700
11701 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
11702
11703         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
11704         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
11705         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
11706         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
11707         * DataGrid.cs: default datagrid settings for Default Styles, fixes
11708         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
11709
11710 2005-06-13  Jackson Harper  <jackson@ximian.com>
11711
11712         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
11713         isn't printed when the user enables dropping. (X11 does accept
11714         drops).
11715         
11716 2005-06-13  Jackson Harper  <jackson@ximian.com>
11717
11718         * TreeView.cs: Remove some TODOS.
11719
11720 2005-06-13  Jackson Harper  <jackson@ximian.com>
11721
11722         * Form.cs: Hook into the mdi framework.
11723         * MdiClient.cs: Use the base control collections add method so
11724         parents get setup correctly. Set the default back colour and dock
11725         style.
11726         * MdiChildContext.cs: New class, this bad actor handles an
11727         instance of an MDI window. Right now there is only basic
11728         support. You can drag, close, and resize windows. Minimize and
11729         Maximize are partially implemented.
11730
11731 2005-06-13  Jackson Harper  <jackson@ximian.com>
11732
11733         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
11734         freaky when both vals are negative. NOTE: There are probably other
11735         places in XplatUIX11 that this needs to be done.
11736
11737 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
11738
11739         * DataGrid.cs: implement missing methods, move KeyboardNavigation
11740         * DataGridColumnStyle.cs: fixes signature
11741
11742 2005-06-12  Jackson Harper  <jackson@ximian.com>
11743
11744         * XplatUIX11.cs: Use sizing cursors similar to the ones on
11745         windows.
11746
11747 2005-06-11  Jackson Harper  <jackson@ximian.com>
11748
11749         * StatusBarPanel.cs: Signature cleanups. Implement
11750         BeginInit/EndInit.
11751
11752 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
11753
11754         * DataGridTextBoxColumn.cs: Honors aligment
11755         * GridColumnStylesCollection.cs: Contains is case unsensitive
11756         * GridTableStylesCollection.cs: several fixes
11757         * DataGridTableStyle.cs: default column creation
11758         * DataGridDrawingLogic.cs: fixes
11759         * CurrencyManager.cs: ListName property
11760         * DataGrid.cs: multiple styles support
11761         * DataGridColumnStyle.cs: fixes
11762         
11763
11764 2005-06-10  Peter Bartok  <pbartok@novell.com>
11765
11766         * Control.cs(Select): Moved SetFocus call to avoid potential
11767           loops if controls change the active control when getting focus
11768         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
11769           the up/down buttons
11770
11771 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
11772
11773         * ImageListConverter.cs: Implemented
11774
11775 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
11776
11777         * MonthCalendar.cs: Wired in NumericUpDown control for year
11778
11779 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
11780
11781         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
11782           DoubleClick events, since they are not meant to be fired.
11783
11784 2005-06-09  Peter Bartok  <pbartok@novell.com>
11785
11786         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
11787           Jonathan's standalone controls into MWF, implemented missing
11788           events, attributes and methods; added xxxAccessible classes
11789         * AccessibleObject.cs: Made fields internal so other classes
11790           can change them if needed
11791
11792 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
11793
11794         * UpDownBase.cs: Complete implementation
11795         * NumericUpDown.cs: Complete implementation
11796         * DomainUpDown.cs: Complete implementation
11797
11798 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
11799
11800         * DataGridTextBoxColumn.cs: drawing fixes
11801         * DataGridCell.cs: fixes ToString method to match MSNet
11802         * DataGridTableStyle.cs: fixes
11803         * DataGridBoolColumn.cs: fixes, drawing
11804         * DataGridDrawingLogic.cs: fixes, new methods
11805         * DataGridTextBox.cs: Keyboard and fixes
11806         * DataGrid.cs:
11807                 - Keyboard navigation
11808                 - Scrolling fixes
11809                 - Row selection (single, multiple, deletion, etc)
11810                 - Lots of fixes
11811         
11812 2005-06-07  Jackson Harper  <jackson@ximian.com>
11813
11814         * ThemeWin32Classic.cs: Clear the background area when drawing
11815         buttons.
11816
11817 2005-06-06  Peter Bartok  <pbartok@novell.com>
11818
11819         * ImageListStreamer.cs: Fixed signature for GetData
11820         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
11821         * ComboBox.cs:
11822           - Added missing ChildAccessibleObject class
11823           - Added missing OnXXXFocus overrides, switched to using those
11824             instead of the event handler
11825         * Control.cs:
11826           - Added Parent property for ControlAccessibleObject
11827           - Fixed signatures
11828           - Fixed attributes
11829           - Added ResetBindings()
11830         * ListBindingConverter.cs: Implemented some methods
11831         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
11832         * ImageList.cs: Implemented basic handle scheme, removed TODOs
11833         * ContainerControl.cs: Fixed signature, now subscribing to the
11834           ControlRemoved event instead of overriding the handler, LAMESPEC
11835         * CurrencyManager.cs: Added missing attribute
11836         * MonthCalendar.cs: Added missing properties
11837
11838 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
11839
11840         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
11841         
11842 2005-06-06  Gaurav Vaish and Ankit Jain
11843
11844         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
11845         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
11846         
11847 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
11848
11849         * Control.cs: fixes CreateParams Width / Height.
11850
11851 2005-06-05  Peter Bartok  <pbartok@novell.com>
11852
11853         * Win32DnD.cs: Removed compilation warnings
11854
11855 2005-06-05  Peter Bartok  <pbartok@novell.com>
11856
11857         * Control.cs (CreateParams): Since we don't know if one of the
11858           properties we use is overridden, lets make sure if we fail accessing
11859           we continue with a backup plan
11860
11861 2005-06-05  Peter Bartok  <pbartok@novell.com>
11862
11863         * Win32DnD.cs:
11864           - Removed debug output
11865           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
11866             struct
11867           - Plugged resource leak
11868         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
11869           MS size
11870
11871 2005-06-05  Peter Bartok  <pbartok@novell.com>
11872
11873         * XplatUIWin32.cs: Removed DnD code
11874         * Win32DnD.cs: Implemented drop source and drop target functionality
11875
11876 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11877
11878         * UpDownBase.cs: remove duplicate addition of event, enable some code
11879         that was commented out.
11880         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
11881         Validate input when a key is pressed. It works fine now for every
11882         combination of Hexadecimal. Only missing some drawing love when sharing
11883         space with other controls.
11884
11885 2005-06-04  Peter Bartok  <pbartok@novell.com>
11886
11887         * Control.cs:
11888           - We need to pass a window for DragDrop, so enable callback events
11889           - Added DnD callback events when being a DragSource
11890         * XplatUI.cs (StartDrag): Added window handle argument
11891         * XplatUIDriver.cs (StartDrag): Added window handle argument
11892         * QueryContinueDragEventArgs: Made fields internally accessible so
11893           drivers can set them
11894         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
11895           can set them
11896
11897 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
11898
11899         * DataGridTextBoxColumn.cs: column text editing
11900         * DataGridTableStyle.cs: Respect columns styles created by the user
11901         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
11902         * DataGridBoolColumn.cs: bool column editing
11903         * DataGrid.cs: fixes to scrolling, properties, etc
11904         * DataGridTextBox.cs: handle keyboard
11905         * DataGridColumnStyle.cs: fixes
11906
11907 2005-06-02  Jackson Harper  <jackson@ximian.com>
11908
11909         * ImageListStreamer.cs: Somewhat broken implementation of
11910         GetObjectData. The RLE needs some work to match MS properly.
11911
11912 2005-06-02  Jackson Harper  <jackson@ximian.com>
11913
11914         * X11Dnd.cs: Attempting to keep at least one file in MWF
11915         monostyled.
11916
11917 2005-06-02  Peter Bartok  <pbartok@novell.com>
11918
11919         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
11920           that way
11921
11922 2005-06-02  Peter Bartok  <pbartok@novell.com>
11923
11924         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
11925         * XplatUI.cs: Added DoDragDrop() method
11926         * XplatUIDriver.cs: Added DoDragDrop() method
11927
11928 2005-06-02  Jackson Harper  <jackson@ximian.com>
11929
11930         * Splitter.cs: Implement BorderStyle.
11931
11932 2005-06-02  Jackson Harper  <jackson@ximian.com>
11933
11934         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
11935         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
11936         X11 using XDND.
11937
11938 2005-06-02  Peter Bartok  <pbartok@novell.com>
11939
11940         * DataObject.cs:
11941           - Added Data setter
11942           - Fixed broken insertion code for SetData, now also
11943             overwrites any existing entry of the same format name
11944         * Hwnd.cs: Added list of pointers that automatically gets
11945           freed when the window is disposed
11946         * XplatUI.cs: Call driver initialization method when loading
11947           a driver
11948         * Control.cs:
11949           - OnDragLeave takes EventArgs, not DragEventArgs
11950           - Added setting of WS_EX_ACCEPTFILES style when dropping is
11951             supported
11952           - Forces style update when drop state changes
11953         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
11954           not perfect since we cannot (yet) call the IDataObject.GetData()
11955           method, we keep getting 0x80004005 error, dunno why)
11956
11957 2005-06-02  Peter Bartok  <pbartok@novell.com>
11958
11959         * DragEventArgs.cs: Make fields internal so we can cache the
11960           object and re-set the fields from XplatUI
11961
11962 2005-06-02  Jackson Harper  <jackson@ximian.com>
11963
11964         * Control.cs: Add some internal methods so the DnD subsystem can
11965         raise DnD events. Also call into the driver when AllowDrop is set.
11966         * XplatUI.cs:
11967         * XplatUIDriver.cs: New method for setting whether or not a window
11968         is allowed to accept drag and drop messages.
11969                 
11970 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
11971         
11972         * ScrollBar.cs: Make sure that values sent in Scroll events
11973         are always between Maximum and Minimum.
11974
11975 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
11976
11977         * Menu.cs: Call MenuChanged when menuitem visibility has been
11978         changed.
11979         * MenuItem.cs: Rebuild menu when item is (not) visible.
11980         * MainMenu.cs: MainMenu has special MenuChanged.
11981         * Theme.cs: Caption and FrameBorderSize are not fixed.
11982         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
11983         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
11984         * XplatUIX11.cs,
11985         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
11986         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
11987
11988 2005-05-30  Jackson Harper  <jackson@ximian.com>
11989
11990         * DataFormat.cs: We can't statically initialize this stuff because
11991         it calls into the xplatui and could create a loop. So we lazy init
11992         it.
11993
11994 2005-05-28  Jackson Harper  <jackson@ximian.com>
11995
11996         * Control.cs: Proper implementation of Product(Name/Version).
11997
11998 2005-05-27  Jackson Harper  <jackson@ximian.com>
11999
12000         * DataObject.cs: Dont crash if no data is found.
12001
12002 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
12003         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
12004                 as per status page, guessing it should be set to true
12005
12006 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
12007
12008         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
12009         * DataGridTableStyle.cs: set proper formatting text, def header text
12010         * ThemeWin32Classic.cs: new themable paramaters
12011         * DataGridBoolColumn.cs: paint check box, get data, fixes
12012         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
12013         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
12014         * DataGridColumnStyle.cs: fixes
12015         * Theme.cs: new themable paramaters
12016                 
12017 2005-05-26  Peter Bartok  <pbartok@novell.com>
12018
12019         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
12020
12021 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12022         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
12023
12024 2005-05-24  Peter Bartok  <pbartok@novell.com>
12025
12026         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
12027           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
12028           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
12029           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
12030           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
12031           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
12032           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
12033           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
12034           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
12035           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
12036           missing attributes, etc
12037         * DataGridPreferredColumnWidthTypeConverter.cs: Added
12038
12039 2005-05-24  Peter Bartok  <pbartok@novell.com>
12040
12041         * Help.cs: Added, implemented trivial functions, throws up MessageBox
12042           when user tries to get help
12043         * DataObject.cs, DataFormats.cs, LinkArea.cs,
12044           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
12045           to suppress warnings
12046         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
12047           avoid unreachable code warning
12048
12049 2005-05-20  Peter Bartok  <pbartok@novell.com>
12050
12051         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
12052
12053 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
12054
12055         * DataGridTextBoxColumn.cs: Basic painting methods
12056         * DataGridTableStyle.cs: Set table style in the column
12057         * ThemeWin32Classic.cs: Use Theme for colors
12058         * DataGridDrawingLogic.cs: Implement more drawing
12059         * DataGrid.cs: drawing, theming, enhacements, fixes
12060         * DataGridColumnStyle.cs: fixes, drawing
12061         * Theme.cs: theming for Datagrid
12062
12063 2005-05-20  Peter Bartok  <pbartok@novell.com>
12064
12065         * Cursor.cs: Implemented GetObjectData() method
12066
12067 2005-05-20  Peter Bartok  <pbartok@novell.com>
12068
12069         * Cursors.cs: Added setting of cursor name
12070         * Cursor.cs:
12071           - Implemented constructors
12072           - Implemented Draw and DrawStretched
12073           - Implemented Current property
12074           - Implemented == and != operators
12075           - Implemented Dispose()
12076           - Implemented ToString
12077           - Added missing attributes
12078         * XplatUIX11.cs:
12079           - Added missing reset for OverrideCursor when DoEvents is called
12080           - Fixed creation of cursor, logic was wrong
12081         * XplatUIWin32.cs:
12082           - Added missing reset for OverrideCursor when DoEvents is called
12083           - Fixed creation of cursor, bit arrays were swapped
12084         * Clipboard.cs: Removed obsolete MonoTODO attribute
12085
12086 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
12087
12088         * ComboBox.cs: fixes OnSelectedItemChanged
12089         * ControlBindingsCollection.cs: fixes item range check
12090
12091 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
12092
12093         * UpDownBase.cs:
12094                 - Calc preferred height properly
12095                 - Implement missing properties
12096                 
12097         * NumericUpDown.cs: Implement missing events
12098
12099 2005-05-19  Jackson Harper  <jackson@ximian.com>
12100
12101         * TabControl.cs: New method that resizes the tab pages before
12102         redrawing them. This as needed as the control is double buffered
12103         and sizing will not be recalculated unless ResizeTabPages is
12104         called.
12105         * TabPage.cs: Set base.Text instead of Text in the constructor so
12106         that UpdateOwner does not get called. Use the new Redraw method of
12107         TabControl instead of Refresh so the sizing is recalculated.
12108         * ThemeWin32Classic.cs: Draw the text for button tabs.
12109
12110 2005-05-19  Jackson Harper  <jackson@ximian.com>
12111
12112         * Control.cs: Paint control background images. Fix typo where
12113         PaintControlBackground was not getting called correctly.
12114
12115 2005-05-19  Peter Bartok  <pbartok@novell.com>
12116
12117         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
12118           I can investigate, apparently I broke FileDialog
12119
12120 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
12121
12122         * AxHost.cs: Some simple properties.
12123         * Control.cs: window must be accessible after ctor.
12124         * Form.cs: Added TransparencyKey property.
12125         * TextBoxBase.cs: Implemented Clear. Text property can be null.
12126         * XplatUIWin32.cs: SetBorderStyle implemented.
12127
12128 2005-05-18  Peter Bartok  <pbartok@novell.com>
12129
12130         * DataObject.cs: Entries are not global but particular to the
12131           DataObject, now it behaves that way
12132         * XplatUIWin32.cs: Implemented Clipboard methods
12133         * Clipboard.cs: Implemented
12134         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
12135         * XplatUIOSX.cs: Updated to final clipboard prototypes
12136         * XplatUIX11.cs: Implemented Clipboard methods
12137         * XplatUIDriver.cs: Updated to final clipboard prototypes
12138         * XplatUIStructs.cs:
12139           - Added BITMAPINFOHEADER struct
12140           - Added ClipboardFormats enum
12141         * X11Structs.cs:
12142           - Added ClipboardStruct
12143           - Added Atom enum items for clipboard types
12144           - Fixed atom types for Selection event structures
12145         * DataFormats.cs:
12146           - Added internal properties and methods for drivers to enumerate
12147             all known formats
12148           - Switched initialization method to allow drivers to assign their
12149             own IDs even for the MS predefined clipboard IDs
12150         * XplatUI.cs: Updated to final clipboard interface
12151
12152 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12153         * PropertyGridView.cs: Fixed compiler warnings.
12154
12155 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
12156         * PropertyGrid.cs: Added some event calls
12157         * PropertyGridView.cs: Change drawing code to use double buffering
12158         * PropertyGridTextBox.cs: Changed Text property name
12159         * GridItem.cs: Added Bounds property.
12160         * GridEntry.cs: Added Bounds property.
12161
12162 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
12163
12164         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
12165         since GetType() may not return the correct type if the object is
12166         a remoting proxy.
12167
12168 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
12169
12170         * TreeNodeCollection.cs: fixes get/set item ranges
12171         
12172 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
12173
12174         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
12175                 
12176 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
12177
12178         * ComboBox.cs: Fix item range comparation
12179         * ListView.cs: Fix item range comparation
12180
12181 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
12182
12183         * FontDialog.cs:
12184           - Clear example panel when OnPaint is called
12185           - Better solution for displaying the example panel text
12186           - Select default indexes in the ListBoxes
12187
12188 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
12189
12190         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
12191
12192 2005-05-11  Peter Bartok  <pbartok@novell.com>
12193
12194         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
12195         * SelectionRangeConverter.cs: Implemented
12196         * PropertyGrid.cs: Fixed attribute value
12197         * Control.cs:
12198           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
12199           - Added Sebastien Pouliot's CAS Stack Propagation fixes
12200         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
12201           that's common to all drivers. First methods to go there are
12202           Sebastien Pouliot's CAS Stack Propagation helper methods
12203         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
12204           Sebastien Pouliot for CAS Stack Propagation
12205
12206 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
12207
12208         * OSXStructs.cs:
12209           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
12210
12211 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
12212
12213         * DataGridTextBoxColumn.cs: fixed some members
12214         * GridColumnStylesCollection.cs: indexed column is case insensitive
12215         * DataGridTableStyle.cs: fixes
12216         * ThemeWin32Classic.cs: add new theme parameter
12217         * Theme.cs: add new theme parameter
12218         * DataGridDrawingLogic.cs: Datagrid's drawing logic
12219         * DataGrid.cs: fixes, new internal properties, etc.
12220         * DataGridColumnStyle.cs: allows to set grid value
12221         *
12222
12223 2005-05-10  Peter Bartok  <pbartok@novell.com>
12224
12225         * AccessibleObject.cs:
12226           - Removed MonoTODO attribute on help, method is correct
12227           - Fixed Bounds property
12228         * AxHost.cs: Moved MonoTODO
12229         * ButtonBase.cs: Now setting AccessibleObject properties
12230         * RadioButton.cs: Setting proper AccessibleObject role
12231         * CheckBox.cs: Setting proper AccessibleObject role
12232         * ControlBindingsCollection.cs: Added properties, methods and attributes
12233         * DataFormats.cs: Fixed awkward internal API, and changed to enable
12234           userdefined DataFormats.Format items as well
12235         * ListControl.cs: Removed data_member from the public eye
12236         * OpenFileDialog.cs:
12237           - Made class sealed
12238           - Added missing attributes
12239         * SaveFileDialog.cs: Added missing attributes
12240         * ImageListStreamer.cs: Fixed code that caused warnings
12241         * LinkLabel.cs: Removed unreachable code
12242         * TreeView.cs: Fixed code that caused warnings
12243         * PropertyGridView.cs: Fixed code that caused warnings
12244         * GridColumnStylesCollection.cs: Added missing attributes
12245         * GridTableStylesCollection: Added missing attribute
12246         * PropertyManager: Added .ctor
12247         * SecurityIDType: Added
12248         * DataObject.cs: Implemented class
12249         * LinkArea.cs: Added missing attribute
12250
12251 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
12252
12253         * RadioButton.cs: call base method to allow to fire OnClick event
12254         * UpDownBase.cs: OnMouseUp call base method
12255         * CheckedListBox.cs: call base method before returning
12256         * TrackBar.cs: call base method before returning
12257         
12258
12259 2005-05-10  Peter Bartok  <pbartok@novell.com>
12260
12261         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
12262           for messages
12263
12264 2005-05-10  Peter Bartok  <pbartok@novell.com>
12265
12266         * DataFormats.cs: Implemented
12267         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
12268           XplatUIX11.cs: Added Clipboard APIs
12269         * XplatUIWin32.cs: Implemented Clipboard APIs
12270         * FolderBrowserDialog.cs: Added missing event, attributes
12271
12272 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
12273
12274         * CheckBox.cs: call base method to allow to fire OnClick event
12275
12276 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
12277
12278         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
12279
12280 2005-05-06  Peter Bartok  <pbartok@novell.com>
12281
12282         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
12283         * Screen.cs: Implemented
12284         * HelpNavigator.cs: Added
12285         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
12286           property
12287         * HelpProvider.cs: Implemented all we can do until we have a CHM
12288           help library (which means that "What's This" does work now)
12289
12290 2005-05-06  Jackson Harper  <jackson@ximian.com>
12291
12292         * XplatUIX11.cs: Fix waking up the main loop.
12293                 
12294 2005-05-05  Peter Bartok  <pbartok@novell.com>
12295
12296         * XplatUI.cs: Updated revision
12297         * Form.cs: Removed enless loop
12298         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
12299         * Label.cs (OnPaint): Added call to base.OnPaint()
12300         * ToolTip.cs: Made ToolTipWindow reusable for other controls
12301         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
12302         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
12303         * AxHost.cs: Added
12304         * ButtonBase.cs: Moved base.OnPaint() call to end of method
12305         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
12306           to ToolTip.ToolTipWindow for drawing and size methods; this allows
12307           reuse of ToolTipWindow by other controls
12308         * SizeGrip.cs: Moved base.OnPaint() call to end of method
12309         * XplatUIX11.cs: Now clipping drawing area (experimental)
12310         * PictureBox.cs: Moved base.OnPaint() call to end of method
12311         * Theme.cs: Fixed ToolTip abstracts to match new format
12312         * ErrorProvider.cs: Implemented
12313
12314 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
12315
12316         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
12317         * LinkLabel.cs:
12318                 - Adds cursors
12319                 - Handles focus
12320                 - Implements LinkBehavior
12321                 - Fixes many issues
12322
12323 2005-05-03  Jackson Harper  <jackson@ximian.com>
12324
12325         * ListView.cs: Calculate the scrollbar positioning on resize and
12326         paint, so they get put in the correct place.
12327
12328 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
12329
12330         * ColorDialogs.cs: The small color panels are now handled by
12331           SmallColorControl. This fixes drawing of the focus rectangle
12332           and adds a 3D border.
12333
12334 2005-05-03  Peter Bartok  <pbartok@novell.com>
12335
12336         * Control.cs: Modified version of Jonathan Chamber's fix for
12337           double-buffering
12338
12339 2005-05-03  Jackson Harper  <jackson@ximian.com>
12340
12341         * ListView.cs: Remove redraw variable. Control now handles whether
12342         or not a redraw needs to be done, and will only raise the paint
12343         event if redrawing is needed.
12344
12345 2005-05-03  Jackson Harper  <jackson@ximian.com>
12346
12347         * Splitter.cs: No decorations for the splitter form. Cache the
12348         hatch brush.
12349
12350 2005-05-03  Jackson Harper  <jackson@ximian.com>
12351
12352         * TreeView.cs: Use dashed lines to connect nodes. Use the
12353         ControlPaint method for drawing the focus rect instead of doing
12354         that in treeview.
12355
12356 2005-05-02  Peter Bartok  <pbartok@novell.com>
12357
12358         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
12359
12360 2005-04-29  Jackson Harper  <jackson@ximian.com>
12361
12362         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
12363         entire image buffer. Just clear the clipping rectangle.
12364
12365 2005-04-29  Jackson Harper  <jackson@ximian.com>
12366
12367         * ThemeWin32Classic.cs: Don't draw list view items that are
12368         outside the clipping rectangle.
12369
12370 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
12371
12372         * ListBox.cs: added horizontal item scroll
12373
12374 2005-04-29  Jackson Harper  <jackson@ximian.com>
12375
12376         * ThemeWin32Classic.cs: Remove some old debug code that was
12377         causing flicker with the new double buffering code.
12378
12379 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
12380
12381         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
12382         behave like combobox and comboboxlist (still not sure if this is
12383         correct though).
12384
12385 2005-04-28  Jackson Harper  <jackson@ximian.com>
12386
12387         * ThemeWin32Classic.cs: Don't fill the middle of progress
12388         bars. This fills areas outside of the clip bounds that don't need
12389         to be filled.
12390
12391 2005-04-28  Jackson Harper  <jackson@ximian.com>
12392
12393         * Control.cs: Don't expose functionality to touch the image buffers.
12394         * ProgressBar.cs:
12395         * ListView.cs: We do not need to (and no longer can) manipulate
12396         the image buffers directly. All of this is handled by Control.
12397
12398 2005-04-28  Peter Bartok  <pbartok@novell.com>
12399
12400         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12401           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
12402           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
12403
12404 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
12405
12406         * Combobox:
12407                 - Adjust control's height for non-simple comboboxes (bug fix)
12408                 - Remove dead code
12409         * MenuAPI.cs: remove unused var
12410         * ScrollBar.cs: remove unsed var
12411                  
12412         * ListBox.cs: unselect items when clearing
12413
12414 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
12415
12416         * ListControl.cs: honors OnPositionChanged and default Selected Item
12417         * ListBox.cs: unselect items when clearing
12418
12419 2005-04-27  Jackson Harper  <jackson@ximian.com>
12420
12421         * X11Keyboard.cs: Initialize a default keyboard and give a warning
12422         if a "correct" keyboard is not found. This will make us not crash,
12423         but might give some users bad keyboard layouts...seems to be the
12424         same thing rewind does.
12425
12426 2005-04-27  Jackson Harper  <jackson@ximian.com>
12427
12428         * BindingManagerBase.cs: Attach the current/position changed
12429         handlers to their respective events.
12430
12431 2005-04-27  Jackson Harper  <jackson@ximian.com>
12432
12433         * Control.cs: Make sure that the first WM_PAINT does a full draw,
12434         not just a blit.
12435         * ThemeWin32Classic.cs: Don't fill the background for picture
12436         boxes. This could overright user drawing.
12437         * ComboBox.cs: Just fill the clipping rect not the entire client
12438         rect when drawing the background. This prevents pieces of the
12439         image buffer from getting overwritten and is theoretically faster.
12440
12441 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
12442
12443         * ComboBox.cs: Databinding support fixes, fire missing events
12444         * ListControl.cs: implement missing methods and properties, fixes
12445         * ThemeWin32Classic.cs: Databiding support on Drawing
12446         * CheckedListBox.cs: Databinding support fixes, fire missing events
12447         * ListBox.cs: Databinding support fixes, fire missing events
12448         
12449 2005-04-25  Peter Bartok  <pbartok@novell.com>
12450
12451         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
12452
12453 2005-04-25  Jackson Harper  <jackson@ximian.com>
12454
12455         * TreeView.cs: Use the horizontal scrollbars height not width when
12456         determining how much of the client area is available.
12457
12458 2005-04-25  Jackson Harper  <jackson@ximian.com>
12459
12460         * Control.cs: Double buffering is handled differently now. As per
12461         the spec, the extra buffer is created in the WM_PAINT message and
12462         passed down to the control's drawing code.
12463         * GroupBox.cs:
12464         * Label.cs:
12465         * CheckBox.cs:
12466         * ProgressBar.cs:
12467         * RadioButton.cs:
12468         * ColorDialog.cs:
12469         * ComboBox.cs:
12470         * PropertyGridView.cs:
12471         * UpDownBase.cs:
12472         * MessageBox.cs:
12473         * MenuAPI.cs:
12474         * ListView.cs:
12475         * ButtonBase.cs:
12476         * SizeGrip.cs:
12477         * ScrollBar.cs:
12478         * ListBox.cs:
12479         * TrackBar.cs:
12480         * ToolBar.cs:
12481         * PictureBox.cs:
12482         * DateTimePicker.cs:
12483         * StatusBar.cs:
12484         * TreeView.cs: Update to new double buffering system.
12485         * MonthCalendar.cs: Uncomment block, as Capture is now
12486         working. Update to new double buffering
12487         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
12488         * PaintEventArgs.cs: New internal method allows us to set the
12489         graphics object. This is used for double buffering.
12490         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
12491         rectangle. The internal paint_area var has been removed from
12492         StatusBar. The clipping rect should be used instead.
12493         * Theme.cs: Give the PictureBox drawing method a clipping rect.
12494         * TabPage.cs: The RefreshTabs method was removed, so just call the
12495         tab controls Refresh method now.
12496         * TabControl.cs: Update to new double buffering. Make sure the
12497         handle is created before sizing the tab pages, otherwise we will
12498         get stuck in a loop.
12499
12500 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
12501
12502         * LinkLabel.cs: Fix typo, bug #74719; patch
12503           from Borja Sanchez Zamorano
12504
12505 2005-04-22  Jackson Harper  <jackson@ximian.com>
12506
12507         * TreeNode.cs: Implement Handle stuff.
12508         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
12509
12510 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
12511
12512         * DataGridTextBoxColumn.cs: call base constructors, fixes
12513         * GridColumnStylesCollection.cs: missing events, methods, and functionality
12514         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
12515         * DataGridTableStyle.cs: implements create default column styles
12516         * DataGridBoolColumn.cs: which types can handle
12517         * DataGrid.cs: missing methods, fixes, new functionality
12518         * DataGridColumnStyle.cs: fixes
12519
12520 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
12521         * FolderBrowserDialog.cs:
12522         - Use a thread to fill the TreeView
12523         - Adjusted some sizes
12524
12525 2005-04-19  Peter Bartok  <pbartok@novell.com>
12526
12527         * LinkLabel.cs: (Re-)create the pieces when setting the Text
12528           property. Fixes #74360.
12529
12530 2005-04-19  Jackson Harper  <jackson@ximian.com>
12531
12532         * XEventQueue.cs: Lock when getting the lockqueue size.
12533         * PictureBox.cs: Call base OnPaint
12534         
12535 2005-04-19  Peter Bartok  <pbartok@novell.com>
12536
12537         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
12538           messages were no longer being processed (this broke BeginInvoke)
12539
12540           
12541 2005-04-18  Jackson Harper  <jackson@ximian.com>
12542
12543         * TreeView.cs: buglet that caused node images to get drawn
12544         regardless of whether or not they were in the clipping rectangle.
12545
12546 2005-04-18  Jackson Harper  <jackson@ximian.com>
12547
12548         * CurrencyManager.cs: There are four rules for GetItemProperties:
12549         - If the type is an array use the element type of the array
12550         - If the type is a typed list, use the type
12551         - If the list contains an Item property that is not an object, use
12552         that property
12553         - use the first element of the list if there are any elements in
12554         the list.
12555         
12556 2005-04-17  Jackson Harper  <jackson@ximian.oom>
12557
12558         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
12559         click. This handles offsets for scrolling properly and reduces
12560         memory. Also fixed GetNode to not offset now that TopNode works
12561         properly.
12562         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
12563         
12564 2005-04-17  Jackson Harper  <jackson@ximian.com>
12565
12566         * CursorConverter.cs: Initial implementation.
12567
12568 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
12569
12570         * ListControl.cs: work towards complex data binding support on ListControl
12571         * CurrencyManager.cs: work towards complex data binding support on ListControl
12572         * ListBox.cs: work towards complex data binding support on ListControl
12573
12574
12575 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
12576
12577         * GridTableStylesCollection.cs: fixes name and constructor
12578         * DataGridTableStyle.cs: fixes
12579         * DataGridBoolColumn.cs: fixes names and constructors
12580         * DataGrid.cs: define methods and properties. Some init implementations
12581         * DataGridCell.cs: define methods and properties. Some init implementations
12582         * GridTablesFactory.cs: Define methods and properties
12583
12584 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
12585
12586         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
12587         graphics port changes.  We still want the coordinates in global screen
12588         coordinates.
12589
12590 2005-04-14  Jackson Harper  <jackson@ximian.com>
12591
12592         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
12593         check plus minus or checkbox clicks unless those features are enabled.
12594
12595 2005-04-14  Jackson Harper  <jackson@ximian.com>
12596
12597         * TreeView.cs: Add methods for setting the top and bottom visible
12598         nodes. TreeNode::EnsureVisible uses these methods.
12599         * TreeNode.cs: Implement EnsureVisible
12600
12601 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
12602
12603         * Form.cs: Pospone menu assignation if the window has not been created yet
12604         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
12605         size and position
12606
12607 2005-04-12  Jackson Harper  <jackson@ximian.com>
12608
12609         * TreeView.cs: Set the TopNode properly when scrolling
12610         occurs. This has the added benifit of reducing the amount of
12611         walking that needs to be done when drawing. Also removed an old
12612         misleading TODO.
12613         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
12614         
12615 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
12616
12617         * Timer.cs: fixes interval setting when the timer is already enabled
12618         
12619 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
12620
12621         * FolderBrowserDialog.cs: First approach
12622
12623 2005-04-09  Peter Bartok  <pbartok@novell.com>
12624
12625         * FolderBrowserDialog: Added
12626
12627 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
12628
12629         * LinkLabel.cs: move drawing code into the theme
12630         * ThemeWin32Classic.cs: drawing code and painting background bugfix
12631         * Theme.cs: define DrawLinkLabel method
12632
12633 2005-04-05  Jackson Harper  <jackson@ximian.com>
12634
12635         * BindingContext.cs: Use weak references so these bad actors don't
12636         stay alive longer then they need to.
12637
12638 2005-04-05  Jackson Harper  <jackson@ximian.com>
12639
12640         * ListControl.cs: Basic implementation of complex databinding.
12641         * ComboBox.cs:
12642         * ListBox.cs: Add calls to ListControl databinding methods.
12643
12644 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
12645
12646         * FileDialog.cs:
12647           - Don't change PopupButtonState to Normal when the
12648             PopupButton gets pressed several times.
12649           - Renamed ButtonPanel to PopupButtonPanel
12650
12651 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
12652
12653         * ColorDialog.cs: Use cached objects instead of creating them
12654         * LinkLabel.cs: Use cached objects instead of creating them
12655         * Splitter.cs: Use cached objects instead of creating them
12656         * FontDialog.cs: Use cached objects instead of creating them
12657         * PropertyGridView.cs: Use cached objects instead of creating them
12658         * MessageBox.cs: Use cached objects instead of creating them
12659         * FileDialog.cs: Use cached objects instead of creating them
12660         * ThemeWin32Classic.cs: Use cached objects instead of creating them
12661         * TreeView.cs: Use cached objects instead of creating them
12662         
12663 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
12664
12665         * Control.cs: use Equals to compare the font since no == op
12666         * ScrollBar.cs: use Equals to compare the font since no == op
12667
12668 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
12669
12670         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
12671
12672 2005-04-01  Jackson Harper  <jackson@ximian.com>
12673
12674         * Binding.cs: Implement IsBinding.
12675         * BindingManagerBase.cs:
12676         * PropertyManager.cs:
12677         * CurrencyManager.cs: Add IsSuspended property.
12678
12679 2005-04-01  Jackson Harper  <jackson@ximian.com>
12680
12681         * Binding.cs: Had some IsAssignableFrom calls backwards.
12682
12683 2005-04-01  Jackson Harper  <jackson@ximian.com>
12684
12685         * Binding.cs: Handle null data members when pulling data.
12686         * PropertyManager.cs: Handle the data member being a property that
12687         does not exist.
12688
12689 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
12690
12691         * DataGridTextBoxColumn.cs: fixes signature
12692         * DataGrid.cs: calls right constructor
12693
12694 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
12695
12696         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
12697         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
12698         * GridTableStylesCollection.cs: implements GridTableStylesCollection
12699         * DataGridTableStyle.cs: implements DataGridTableStyle
12700         * DataGridBoolColumn.cs: implements DataGridBoolColumn
12701         * DataGridTextBox.cs: implements DataGridTextBox
12702         * DataGridColumnStyle.cs: implements DataGridColumnStyle
12703
12704 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
12705
12706         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
12707
12708 2005-03-29  Peter Bartok  <pbartok@novell.com>
12709
12710         * Application.cs:
12711           - Properly implemented CompanyName property
12712           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
12713             returns a path that includes CompanyName, ProductName and
12714             Version (fixes bug #70330)
12715
12716 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
12717
12718         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
12719           fixes bug #72588.
12720
12721 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
12722
12723         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
12724         
12725           - Added ReadOnly CheckBox
12726           - Further refactoring: moved some code from Open-/SaveFileDialog
12727             to FileDialog
12728
12729 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
12730
12731         * OpenFileDialog.cs: Fixed CheckFileExists
12732         * FileDialog.cs:
12733           Moved FileView and DirComboBox outside FileDialog class.
12734           They can now be used outside FileDialog
12735
12736 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
12737
12738         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
12739         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
12740
12741 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
12742
12743         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12744           - Added missing CreatePrompt property in SaveDialog
12745           - Overall SaveDialog handling should be better now
12746           - Added non standard ShowHiddenFiles property
12747           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
12748           - Added InitialDirectory and RestoreDirectory support
12749
12750 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
12751
12752         * FileDialog.cs: Made dirComboBox usable
12753
12754 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
12755
12756         * FileDialog.cs: Added Filter support (case sensitiv)
12757
12758 2005-03-24  Jackson Harper  <jackson@ximian.com>
12759
12760         * TabControl.cs: Need a couple more pixels for the lines.
12761
12762 2005-03-23  Jackson Harper  <jackson@ximian.com>
12763
12764         * TabControl.cs: Give the tab page focus when it is selected.
12765
12766 2005-03-23  Jackson Harper  <jackson@ximian.com>
12767
12768         * TabControl.cs: Account for the drawing of tabs borders when
12769         invalidating. If the slider was clicked dont do click detection on
12770         the tabs.
12771
12772 2005-03-23  Jackson Harper  <jackson@ximian.com>
12773
12774         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
12775
12776 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
12777
12778         * CategoryGridEntry.cs: Added
12779         * GridItem.cs: Added helper properties
12780         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
12781         * GridEntry.cs: Updated code for collection
12782         * PropertyGrid.cs: Cleaned up some formatting
12783         * PropertyGridView.cs: Added drop down functionality for enums.
12784         * GridItemCollection.cs: Added enumerator logic
12785         * PropertyGridEntry.cs: Added
12786
12787 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
12788
12789         * FileDialog.cs:
12790           - Removed unnecessary commented code
12791           - Fixed handling for entering the filename manually in the combobox
12792
12793 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
12794
12795         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
12796
12797 2005-03-18  Peter Bartok  <pbartok@novell.com>
12798
12799         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
12800           them being touching the border
12801
12802 2005-03-18  Peter Bartok  <pbartok@novell.com>
12803
12804         * TextControl.cs: Quick hack to center text better
12805
12806 2005-03-18  Peter Bartok  <pbartok@novell.com>
12807
12808         * ControlPaint.cs:
12809           - Don't throw NotImplemented exceptions, just print a notice once
12810             instead (requested by Miguel). This makes running existing SWF
12811             apps a bit easier
12812         * Control.cs:
12813           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
12814           - Added context menu trigger on right click
12815         * Panel.cs: Trigger invalidate on resize
12816         * StatusBar.cs:
12817           - Removed old double-buffer drawing
12818           - Added ResizeRedraw style to force proper update of statusbar
12819         * ListView.cs:
12820           - Removed debug output
12821         * ThemeWin32Classic.cs:
12822           - Fixed drawing of status bar, now draws Text property if there
12823             are no defined panels
12824
12825 2005-03-18  Jackson Harper  <jackson@ximian.com>
12826
12827         * ImageList.cs: When the image stream is set pull all the images
12828         from it.
12829         * ImageListStreamer.cs: Implement reading image list streams.
12830
12831 2005-03-18  Peter Bartok  <pbartok@novell.com>
12832
12833         * ThemeWin32Classic.cs (DrawPictureBox):
12834           - Fixed calculations for centered drawing
12835           - Fixed drawing for normal mode, not scaling the image on normal
12836
12837 2005-03-18  Peter Bartok  <pbartok@novell.com>
12838
12839         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
12840           textbox
12841         * FileDialog.cs:
12842           - Made Open/Save button the accept button for FileDialog
12843           - Tied the cancel button to the IButtonControl cancel button
12844           - Save/Open now properly builds the pathname
12845           - Now handles user-entered text
12846           - Preventing crash on right-click if no item is selected
12847           - Fixed Text property, now uses contents of textbox
12848           - Fixed SelectedText property, now just returns the text part that
12849             is selected in the text box
12850
12851 2005-03-18  Jackson Harper  <jackson@ximian.com>
12852
12853         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
12854         rect, make sure to de-adjust the interior rect after drawing the
12855         tab text.
12856
12857 2005-03-18  Peter Bartok  <pbartok@novell.com>
12858
12859         * MenuAPI.cs: Remove menu *before* executing selected action to
12860           prevent the menu from 'hanging around'
12861           
12862 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
12863
12864         * XplatUIOSX.cs: Implemented WorkingArea property
12865
12866 2005-03-17  Peter Bartok  <pbartok@novell.com>
12867
12868         * XplatUIX11.cs: Fixed menu coord calculations
12869         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
12870           for calculating offsets
12871
12872 2005-03-17  Peter Bartok  <pbartok@novell.com>
12873
12874         * Hwnd.cs: Do not consider menu presence for default client
12875           rectangle location/size
12876         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
12877           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
12878           translation functions
12879         * FileDialog.cs: Fixed (what I presume is a) typo
12880
12881 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
12882
12883         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
12884           X access (avoids X-Async errors)
12885
12886 2005-03-16  Jackson Harper  <jackson@ximian.com>
12887
12888         * TabControl.cs: Raise the SelectedIndexChanged event.
12889
12890 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
12891
12892         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12893           - Removed vertical ToolBar and replaced it with a custom panel
12894             (desktop and home button already work)
12895           - Added Help button (some controls get resized or relocated then)
12896           - Draw correct text depending on Open or Save.
12897           - Fixed some typos...
12898
12899 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
12900
12901         * ScrollBar.cs:
12902           - Only change Maximum and Minimum when need it (bug fix)
12903
12904 2005-03-15  Peter Bartok  <pbartok@novell.com>
12905
12906         * Form.cs: Use Handle for icon, to trigger creation if
12907           the window does not yet exist
12908         * Control.cs:
12909           - CanSelect: Slight performance improvement
12910           - Focus(): Preventing possible recursion
12911           - Invalidate(): Removed ControlStyle based clear flag setting
12912           - WM_PAINT: fixed logic for calling OnPaintBackground
12913           - WM_ERASEBKGND: Fixed logic, added call to new driver method
12914             EraseWindowBackground if the control doesn't paint background
12915         * XplatUIWin32.cs:
12916           - Moved EraseWindowBackground() method to internal methods
12917           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
12918             is sent via SendMessage on BeginPaint call on Win32
12919         * XplatUIX11.cs:
12920           - Added EraseWindowBackground() method
12921           - No longer sends WM_ERASEBKGND on .Expose, but on call to
12922             PaintEventStart, which more closely matches Win32 behaviour
12923           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
12924           - Fixed SetFocus() to properly deal with client and whole windows
12925         * Hwnd.cs: Added ErasePending property
12926         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
12927         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
12928
12929 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
12930
12931         * XplatUIOSX.cs:
12932           - Fix hard loop when timers exist.
12933           - Fix bugs with middle and right click for 3 button mice.
12934
12935 2005-03-11  Peter Bartok  <pbartok@novell.com>
12936
12937         * XplatUIX11.cs:
12938           - get_WorkingArea: Need to call X directly, GetWindowPos only
12939             returns cached data now
12940           - Added sanity check to GetWindowPos hwnd usage
12941
12942 2005-03-11  Jackson Harper  <jackson@ximian.com>
12943
12944         * BindingManagerBase.cs: This method isn't used anymore as
12945         PullData now updates the data in the control.
12946
12947 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
12948
12949         * Form.cs: fixes menu drawing on X11
12950         * MenuAPI.cs:  fixes menu drawing on X11
12951
12952 2005-03-11  Peter Bartok  <pbartok@novell.com>
12953
12954         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
12955           from Jonathan Gilbert; should fix bug #73606
12956         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
12957           in Screen coordinates. Thanks, Jordi.
12958         * Form.cs: Added missing attribute
12959
12960 2005-03-11  Peter Bartok  <pbartok@novell.com>
12961
12962         * Form.cs:
12963           - Rudimentary Mdi support
12964           - Removed outdated FormParent code
12965           - Implemented lots of missing properties and methods, still missing
12966             transparency support
12967           - Added missing attributes
12968           - Implemented support for MaximumBounds
12969           - Added firing of various events
12970         * XplatUI.cs: Added SetIcon() method
12971         * XplatUIDriver.cs: Added SetIcon() abstract
12972         * XplatUIOSX.cs: Stubbed out SetIcon() method
12973         * XplatUIX11.cs:
12974           - Implemented SetIcon() support
12975           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
12976           - Switched to unix line endings
12977         * XplatUIWin32.cs:
12978           - Made POINT internal so for can access it as part of MINMAX
12979           - Implemented SetIcon() support
12980           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
12981             native Mdi support again, might have to go managed)
12982         * Control.cs: Now fires the StyleChanged event
12983         * MdiClient.cs: Added; still mostly empty
12984
12985 2005-03-10  Peter Bartok  <pbartok@novell.com>
12986
12987         * SaveFileDialog.cs: Added emtpy file
12988
12989 2005-03-08  Peter Bartok  <pbartok@novell.com>
12990
12991         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
12992           in turn triggers OnCreateContro) when creating a handle for the
12993           first time.
12994         * TextControl.cs: Fixed endless loop in certain cases when
12995           replacing the current selection
12996
12997 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
12998
12999         * ScrollBar.cs:
13000           - Honors NewValue changes in Scroll events allowing apps to change it
13001           - Adds First and Last Scroll events
13002           - Fixes Thumb events
13003
13004 2005-03-07  Peter Bartok  <pbartok@novell.com>
13005
13006         * Hwnd.cs: Added DefaultClientRectangle property
13007         * XplatUI.cs: Now using the X11 driver Where() method, which provides
13008           more detailed debug information
13009         * XplatUIX11.cs:
13010           - Fixed size-change feedback loop, where we would pull an old size
13011             off the queue and mistakenly change our window's size to an
13012             earlier value
13013           - Now compressing ConfigureNotify events, to reduce looping and
13014             redraw issues
13015         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
13016           is called
13017
13018 2005-03-07  Jackson Harper  <jackson@ximian.com>
13019
13020         * Binding.cs: Push data pushes from data -> property. Check if the
13021         property is readonly when attempting to set it.
13022
13023 2005-03-07  Jackson Harper  <jackson@ximian.com>
13024
13025         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
13026         instead of IsSubclassOf. Pulling data now sets the value on the
13027         control.
13028         * PropertyManager.cs:
13029         * CurrencyManager.cs: Just need to pull data when updating now,
13030         because PullData will set the value on the control.
13031
13032 2005-03-04  Jackson Harper  <jackson@ximian.com>
13033
13034         * Binding.cs: Implement data type parsing and converting on pulled
13035         data. TODO: Are there more ways the data can be converted?
13036
13037 2005-03-04  Jackson Harper  <jackson@ximian.com>
13038
13039         * Binding.cs: Support <Property>IsNull checks. Also bind to the
13040         controls Validating method so we can repull the data when the
13041         control loses focus.
13042
13043 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
13044
13045         * ColumnHeader.cs:
13046           - Fixes null string format
13047           
13048         * ListView.cs:
13049           - Adds enum type checks
13050           - Fixes redrawing and recalc need after changing some properties
13051           - Fixes on focus_item set after the event
13052           - Fixes adding columns after the control has been created
13053           
13054         * ThemeWin32Classic.cs:
13055           - Fixes CheckBox focus rectangle
13056           - Fixes ColumnHeader drawing
13057
13058
13059 2005-03-03  Jackson Harper  <jackson@ximian.com>
13060
13061         * Binding.cs: Bind to <Property>Changed events so we can detect
13062         when properties are changed and update the data.
13063
13064 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
13065
13066         * ImageList.cs:
13067           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
13068           - Fixes ImageList constructor with ImageList container
13069           - Fixes image scaling (wrong parameters at DrawImage)
13070
13071 2005-02-02  Jackson Harper  <jackson@ximian.com>
13072
13073         * Binding.cs: Make property searches case-insensitive. Eliminate
13074         some duplicated code.
13075
13076 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
13077
13078         * ComboBox.cs:
13079                 - Handle focus event
13080                 - Fix scrollbar events
13081                 - Discard highlighted item if remove it
13082                 - Fixes SelectedItem with strings
13083
13084 2005-03-01  Peter Bartok  <pbartok@novell.com>
13085
13086         * Control.cs:
13087           - Fixed Visible property, now follows (once again) parent chain
13088             to return false if any control in the chain is visible=false
13089           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
13090           - Fixed several places where is_visible instead of Visible was used
13091           - Implemented FIXME related to focus selection when setting focused
13092             control to be invisible
13093
13094         * XplatUIWin32.cs: Now using proper method to find out if window is
13095           visible. Thanks to Jordi for pointing it out
13096
13097 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
13098
13099         * ComboBox.cs: show/hide scrollbar instead of creating it
13100
13101 2005-02-27  Jackson Harper  <jackson@ximian.com>
13102
13103         * CurrencyManager.cs: Add PositionChanged stuff.
13104
13105 2005-02-27  Peter Bartok  <pbartok@novell.com>
13106
13107         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
13108         * XplatUIOSX.cs: Added GetMenuOrigin() stub
13109         * XplatUIWin32.cs: Implemented GetMenuOrigin()
13110         * XplatUIX11.cs:
13111           - Implemented GetMenuDC()
13112           - Implemented GetMenuOrigin()
13113           - Implemented ReleaseMenuDC()
13114           - Implemented generation of WM_NCPAINT message
13115           - Implemented generation and handling of WM_NCCALCSIZE message
13116         * Form.cs: Added debug helper message for Jordi's menu work
13117         * Hwnd.cs:
13118           - Modified ClientRect property; added setter, fixed getter to handle
13119             setting of ClientRect
13120           - Added MenuOrigin property
13121
13122 2005-02-26  Peter Bartok  <pbartok@novell.com>
13123
13124         * XplatUIX11.cs:
13125           - Destroys the caret if a window that's being destroyed contains it
13126           - Ignores expose events coming from the X11 queue for windows that
13127             already are destroyed
13128           - Now uses the proper variable for handling DestroyNotify, before we
13129             marked the wrong window as destroyed
13130           - Improved/added some debug output
13131
13132 2005-02-26  Peter Bartok  <pbartok@novell.com>
13133
13134         * X11Keyboard.cs: Fixes to work on 64bit systems
13135
13136 2005-02-26  Peter Bartok  <pbartok@novell.com>
13137
13138         * Control.cs:
13139           - Now calling OnHandleDestroyed from DestroyHandle()
13140             instead of Dispose()
13141           - Removed bogus call to controls.Remove() from DestroyHandle()
13142
13143 2005-02-26  Peter Bartok  <pbartok@novell.com>
13144
13145         * Control.cs: Properly destroy child windows when our handle is
13146           destroyed
13147
13148 2005-02-25  Peter Bartok  <pbartok@novell.com>
13149
13150         * XplatUI.cs:
13151           - Added 'DriverDebug' define to allow tracing XplatUI API calls
13152           - Alphabetized Static Methods and Subclasses
13153
13154         * XplatUIX11.cs:
13155           - Added XException class to allow custom handling of X11 exceptions
13156           - Created custom X11 error handler, tied into XException class
13157           - Added support for MONO_XEXCEPTIONS env var to allow the user
13158             to either throw an exception on X errors or continue running
13159             after displaying the error
13160           - Added handling of DestroyNotify message
13161           - Added handler for CreateNotify message (still disabled)
13162           - Improved (tried to at least) Where method to provide file and lineno
13163         * X11Structs.cs:
13164           - Added XErrorHandler delegate
13165           - Added XRequest enumeration (to suppor translation of errors)
13166
13167 2005-02-25  Jackson Harper  <jackson@ximian.com>
13168
13169         * PropertyManager.cs: Implement editing features
13170         * CurrencyManager.cs:
13171         * Binding.cs: First attempt at UpdateIsBinding
13172         * BindingManagerBase.cs: Call UpdateIsBinding before
13173         pushing/pulling data.
13174
13175 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
13176
13177         * MenuAPI.cs: Respect disabled items
13178         * ThemeWin32Classic.cs
13179                 - Caches ImageAttributes creation for DrawImageDisabled
13180                 - Fixes vertical menu line drawing
13181                 - Draws disabled arrows in disable menu items
13182
13183 2005-02-24  Peter Bartok  <pbartok@novell.com>
13184
13185         * Hwnd.cs:
13186           - Added UserData property to allow associating arbitrary objects
13187             with the handle
13188           - Fixed leak; now removing Hwnd references from static windows array
13189         * XplatUIWin32.cs:
13190           - Fixed Graphics leak in PaintEventEnd
13191           - Removed usage of HandleData, switched over to Hwnd class
13192         * HandleData.cs: Removed, obsoleted by Hwnd.cs
13193
13194 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
13195
13196         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
13197         * ScrollBar.cs: Fixes bug
13198         * TrackBar.cs: removes death code, clipping, mimize refreshes,
13199          keyboard navigation enhancements
13200
13201 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
13202
13203         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
13204         * GroupBox.cs: Add control styles
13205         * Label.cs: Add control styles
13206         * UpDownBase.cs: Add control styles
13207         * ListBox.cs: Add control styles
13208         * XplatUIWin32.cs: Fixes wrong parameter order
13209
13210
13211 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
13212
13213         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
13214
13215 2005-02-23  Jackson Harper  <jackson@ximian.com>
13216
13217         * PropertyManager.cs: Implement property binding. This doesn't
13218         seem to work yet though as (I think) there are some bugs in
13219         System.ComponentModel.PropertyDescriptor.
13220         * BindingContext.cs: Use new PropertyManager constructor.
13221
13222 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
13223
13224         * ProgressBar.cs: use clip region in ProgressBar
13225         * ThemeWin32Classic.cs: use clip region in ProgressBar
13226
13227 2004-02-22  Jackson Harper  <jackson@ximian.com>
13228
13229         * BindingsCollection.cs: Remove some debug code.
13230
13231 2005-02-22  Jackson Harper  <jackson@ximian.com>
13232
13233         * BindingContext.cs:
13234         * ControlBindingsCollection.cs:
13235         * CurrencyManager.cs:
13236         * Binding.cs:
13237         * BindingManagerBase.cs: Initial implementation
13238         * BindingsCollection.cs: Add an internal contains method that the
13239         BindingManagerBase uses to ensure bindings aren't added twice to
13240         the collection.
13241         * PropertyManager.cs: Stubbed out.
13242         * Control.cs:
13243         * ContainerControl.cs: Hook up databinding
13244         
13245 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
13246
13247         * XplatUIOSX.cs:
13248           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
13249           Fixed Invalidate/Update chain.
13250           Fixed tons of other minor bugs (this is almost a complete rewrite).
13251
13252 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
13253
13254         * ComboBox.cs: do subcontrol creation when the control is created
13255
13256 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13257
13258         * Label.cs: fixes image drawing (image and imagelist)
13259         * ThemeWin32Classic.cs: cache brushes
13260         
13261 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13262
13263         * Form.cs: Move menu drawing code to Theme class
13264         * ComboBox.cs: Move ComboBox drawing code to Theme class
13265         * MenuItem.cs: Move menu drawing code to Theme class
13266         * MenuAPI.cs: Move menu drawing code to Theme class
13267         * ThemeWin32Classic.cs: New methods
13268         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
13269         * ListBox.cs: Move Listbox drawing code to Theme class
13270         * Theme.cs: New methods
13271
13272 2005-02-20  Peter Bartok  <pbartok@novell.com>
13273
13274         * Control.cs:
13275           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
13276             only process mnemonics on those)
13277           - Fixed event sequence for key handling; first calling
13278             ProcessKeyEventArgs now
13279         * TextBoxBase.cs:
13280           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
13281             for processing non-character keys
13282           - Fixed WM_CHAR to generate proper event sequence before processing
13283         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
13284           generation
13285
13286 2005-02-19  Peter Bartok  <pbartok@novell.com>
13287
13288         * UserControl.cs: Added TextChanged event; added attributes
13289         * SizeGrip.cs: Implemented resizing and optional display of grip
13290         * Form.cs: Fixed attribute
13291         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13292           Changed meaning of ScrollWindow bool argument; instead of the
13293           clear attribute (which will be true usually anyway), it gives the
13294           option of moving child controls as well.
13295         * XplatUIX11.cs:
13296           - Changed to match new ScrollWindow argument
13297           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
13298             now handles the implicit parent window a WM puts around us
13299         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
13300           to work)
13301         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
13302         * TreeView.cs: Adjusted to new ScrollWindow arguments
13303
13304 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13305
13306         * Form.cs: Menu integration with non-client area
13307         * MenuItem.cs: Menu integration with non-client area
13308         * MenuAPI.cs: Menu integration with non-client area
13309
13310 2005-02-18  Peter Bartok  <pbartok@novell.com>
13311
13312         * MethodInvoker.cs: Added
13313         * MdiLayout.cs: Added
13314         * SendKeys.cs: Started implementation
13315         * ErrorIconAlignment.cs: Added
13316
13317 2005-02-18  Peter Bartok  <pbartok@novell.com>
13318
13319         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
13320         * Form.cs: Added handling for Menu-related Non-client messages
13321
13322 2005-02-17  Peter Bartok  <pbartok@novell.com>
13323
13324         * UpDownBase.cs: Fixed typo, compilation errors
13325         * DomainUpDown.cs: Fixed attribute value
13326
13327 2005-02-16  Miguel de Icaza  <miguel@novell.com>
13328
13329         * UpDownBase.cs: Attach entry events.
13330         Propagate events.
13331         Add ForeColor property, Focused, InterceptArrowKeys (interception
13332         does not work yet).
13333
13334 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
13335
13336         * Form.cs:
13337                 - Redraw non client are on Setmenu
13338                 - Calc proper menu starting point
13339
13340 2005-02-17  Peter Bartok  <pbartok@novell.com>
13341
13342         * Application.cs: Fixed message_filter check
13343
13344 2005-02-17  Peter Bartok  <pbartok@novell.com>
13345
13346         * Application.cs: Now calls registered message filters
13347         * DockStyle.cs: Fixed attribute
13348         * Form.cs: Fixed attribute
13349         * Menu.cs: Fixed attribute
13350         * ToolTip.cs: Fixed attribute
13351         * TreeNode.cs: Added missing attributes and arranged in regions
13352         * PropertyGrid.cs: Fixed signatures
13353         * TreeNodeCollection.cs: Added attributes
13354         * Splitter.cs: Added missing attributes; arranged into regions
13355         * TabPage.cs: Added missing attributes; arranged into regions
13356         * TextBoxBase.cs: Added missing attributes
13357         * TextBox.cs: Added missing attributes
13358         * ArrangeDirection.cs: Added missing attributes
13359         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
13360         * ToolBarButton.cs: Fixed attributes
13361         * AnchorStyles.cs: Fixed attribute
13362         * TrackBar.cs: Fixed attributes
13363         * TabControl.cs: Added missing attributes and arranged into regions
13364         * ToolBar.cs: Fixed attribute
13365         * StatusBar.cs: Fixed signature, organized into regions and added
13366           attributes
13367         * StatusBarPanel.cs: Fixed attributes
13368         * ContentsResizedEventArgs.cs: Implemented
13369         * ContentsResizedEventHandler.cs: Implemented
13370         * DateBoldEventArgs.cs: Implemented
13371         * DateBoldEventHandler.cs: Implemented
13372         * UpDownEventArgs.cs: Implemented
13373         * UpDownEventHandler.cs: Implemented
13374         
13375 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
13376
13377         * Form.cs: first Menu NC refactoring
13378         * MenuAPI.cs: first Menu NC refactoring
13379         
13380 2005-02-16  Peter Bartok  <pbartok@novell.com>
13381
13382         * ImeMode.cs: Added missing attributes
13383         * Menu.cs: Fixed attribute
13384         * GroupBox.cs: Fixed attribute
13385         * Label.cs: Fixed attribute
13386         * ColorDialog.cs (RunDialog): Removed TODO attribute
13387         * ComboBox.cs: Fixed attributes
13388         * ListControl.cs: Added missing attributes
13389         * PropertyGrid.cs: Fixed attributes
13390         * Control.cs: Fixed attributes
13391         * ListViewItem.cs: Added TypeConverter attribute
13392         * NotifyIcon.cs: Fixed attributes
13393         * ListView.cs: Fixed attributes
13394         * ButtonBase.cs: Fixed attribute
13395         * ImageList.cs: Added missing attributes
13396         * ContainerControl.cs: Fixed signature
13397         * CheckedListBox.cs: Fixed attribute; added missing attributes
13398         * Panel.cs: Fixed attributes
13399         * PropertyTabChangedEventArgs.cs: Added missing attribute
13400         * PropertyValueChangedEventArgs.cs: Added missing attribute
13401         * Binding.cs: Fixed attribute
13402         * ListViewItemConverter: Implemented ListViewSubItemConverter class
13403         * ListBox.cs: Fixed attribute; added missing attributes;
13404         * ScrollableControl.cs: Added missing attributes
13405         * PictureBox.cs: Added missing attributes; implemented missing property
13406         * DateTimePicker.cs: Added missing attributes
13407         * Theme.cs (ToolWindowCaptionHeight): Fixed type
13408         * MonthCalendar.cs: Fixed attributes
13409         * StatusBarPanel.cs: Added missing attributes
13410         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
13411
13412 2005-02-16  Peter Bartok  <pbartok@novell.com>
13413
13414         * TextBoxBase.cs: The previous method to enforce height yet remember
13415           the requested high was less than ideal, this is an attempt to do
13416           it better.
13417         * Control.cs: Added comment about possible problem
13418         * Copyright: Updated format
13419         * GridItemType.cs: Fixed swapped values
13420
13421 2005-02-15  Jackson Harper  <jackson@ximian.com>
13422
13423         * BaseCollection.cs: Use property so we never access an
13424         uninitialized list. Also initialize the list in the property.
13425
13426 2005-02-15  Peter Bartok  <pbartok@novell.com>
13427
13428         * GroupBox.cs (ProcessMnemonic): Implemented
13429         * Label.cs (ProcessMnemonic): Implemented
13430         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
13431           hotkeys
13432
13433 2005-02-15  Peter Bartok  <pbartok@novell.com>
13434
13435         * RadioButton.cs (ProcessMnemonic): Implemented
13436         * CheckBox.cs (ProcessMnemonic): Implemented
13437         * Control.cs:
13438           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
13439             handling
13440           - Added internal method to allow calling ProcessMnemonic from other
13441             controls
13442         * ContainerControl.cs:
13443           - Started support for handling validation chain handling
13444           - Implemented ProcessMnemonic support
13445           - Added Select() call to Active, to make sure the active control
13446             receives focus
13447         * Form.cs: Setting toplevel flag for Forms (this was lost in the
13448           FormParent rewrite)
13449         * ThemeWin32Classic.cs:
13450           - DrawCheckBox(): Fixed stringformat to show hotkeys
13451           - DrawRadioButton(): Fixed stringformat to show hotkeys
13452         * CommonDialog.cs: Removed WndProc override, not needed
13453
13454 2005-02-14  Peter Bartok  <pbartok@novell.com>
13455
13456         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
13457           missed those in the rewrite
13458
13459 2005-02-14  Miguel de Icaza  <miguel@novell.com>
13460
13461         * NumericUpDown.cs (Increment, ToString): Add.
13462         (DecimalPlaces): implement.
13463         
13464         Add attributes.
13465         
13466         * UpDownBase.cs: Add the designer attributes.
13467
13468 2005-02-13  Peter Bartok  <pbartok@novell.com>
13469
13470         * Panel.cs: Removed border_style, now in Control
13471         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
13472           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
13473
13474 2005-02-13  Peter Bartok  <pbartok@novell.com>
13475
13476         * MouseButtons.cs: Added missing attributes
13477         * XplatUIStructs.cs: Added enumeration for title styles
13478         * LeftRightAlignment.cs: Added missing attributes
13479         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
13480           it compatible with Graphics.FromHwnd()
13481         * SelectedGridItemChangedEventArgs.cs: Fixed property type
13482         * Keys.cs: Added missing attributes
13483         * SelectionRange.cs: Added missing attributes
13484         * SelectionRangeConverter.cs: Added
13485         * XplatUI.cs:
13486           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
13487             ReleaseMenuDC methods
13488           - Renamed ReleaseWindow to UngrabWindow
13489           - Added proper startup notice to allow version identification
13490         * Form.cs:
13491           - Added missing attributes
13492           - Removed FormParent concept
13493         * Label.cs: Removed border_style field, now in Control
13494         * RadioButton.cs: Now properly selects RadioButton when focus is
13495           received
13496         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
13497         * Control.cs:
13498           - Added missing attributes
13499           - Added borderstyle handling
13500           - Removed FormParent concept support
13501           - Fixed calls to XplatUI to match changed APIs
13502           - Fixed bug that would case us to use disposed Graphics objects
13503           - Removed unneeded internal methods
13504           - PerformLayout(): Fixed to handle DockStyle.Fill properly
13505           - SelectNextControl(): Fixed to properly check common parents
13506         * TextBoxBase.cs: Removed border_style field (now in Control)
13507         * MessageBox.cs:
13508           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
13509             fixed calculations for form size
13510           - Added support for localized strings and icons
13511           - Improved form size calculations, added border
13512         * ListView.cs: Removed border_style field (now in Control)
13513         * X11Structs.cs: Moved several structs from X11 driver here
13514         * X11Keyboard.cs: Changed debug message
13515         * Application.cs: Removed FormParent concept support
13516         * CommonDialog.cs:
13517           - Resetting end_modal flag
13518           - Removed FormParent concept support
13519         * NativeWindow.cs: Removed FormParent concept support
13520         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
13521           Client area and Non-Client whole window to allow support for WM_NC
13522           messages
13523         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
13524           prevent using it until it supports Hwnd as per Geoff Norton's request
13525         * ToolBar.cs: Fixed drawing, was not doing proper drawing
13526         * PictureBox.cs: Removed border_style field, now in Control
13527         * XplatUIWin32.cs: Added new driver methods
13528
13529 2005-02-12  Peter Bartok  <pbartok@novell.com>
13530
13531         * OpacityConverter.cs: Implemented
13532         * Hwnd.cs: Internal class to support drivers that need to emulate
13533           client area/non-client area window behaviour
13534
13535 2005-02-11  Peter Bartok  <pbartok@novell.com>
13536
13537         * KeysConverter.cs: Implemented
13538
13539 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
13540
13541         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
13542         * LinkLabel: Added missing attributes
13543         * MainMenu.cs: fixes ToString
13544         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
13545         * ListBox.cs: fixes event position
13546         * TrackBar.cs: adds missing attributes and events
13547         
13548 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
13549
13550         * MenuItem.cs: Use SystemInformation and bug fixes
13551         * MenuAPI.cs: Use SystemInformation and bug fixes
13552
13553 2005-02-09  Jackson Harper  <jackson@ximian.com>
13554
13555         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
13556         their keystate otherwise things like VK_MENU get stuck "on".
13557
13558 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
13559
13560         * ListBox.cs: Fixes AddRange bug
13561         
13562 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
13563
13564         * ProgressBar.cs
13565                 - Add missing attributes
13566                 - Add missing method
13567                 
13568         * CheckedListBox.cs: Added missing attributes
13569                 - Add missing attributes
13570                 - Remove extra method
13571         
13572         * ComboBox.cs: Added missing attributes
13573         * VScrollBar.cs: Added missing attributes
13574         * ScrollBar.cs:  Added missing attributes
13575         * ListBox.cs: Fixes signature, add missing consts
13576         * LinkArea.cs:   Added missing attributes
13577         
13578
13579 2005-02-08  Peter Bartok  <pbartok@novell.com>
13580
13581         * Menu.cs: Added missing attributes
13582         * MainMenu.cs: Added missing attributes
13583         * GroupBox.cs: Added missing attributes
13584         * Label.cs: Added missing attributes
13585         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
13586         * ColorDialog.cs:
13587           - Added Instance and Options properties
13588           - Added missing attributes
13589         * Cursor.cs: Made Serializable
13590         * NotifyIcon: Added missing attributes
13591         * MenuItem.cs: Added missing attributes
13592         * TextBoxBase.cs: Implemented AppendText() and Select() methods
13593         * Panel.cs: Added Missing attributes
13594         * MonthCalendar.cs: Fixed CreateParams
13595
13596 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
13597         
13598         * LinkLabel.cs:
13599                 - Fixes signature
13600                 - Fixes issues with links
13601                 - Adds the class attributes
13602
13603 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
13604         
13605         * ComboBox.cs:
13606                 - Fixes button when no items available in dropdown
13607                 - Fixes repainting problems
13608                 - Adds the class attributes
13609                 
13610 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13611
13612         * XplatUIOSX.cs: Detect the menu bar and title bar height from
13613         the current theme.  Cache these on startup.
13614
13615 2005-02-07  Jackson Harper  <jackson@ximian.com>
13616
13617         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
13618         the scrollbar buttons when they are depressed.
13619
13620 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13621
13622         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
13623         Get the display size from the main displayid.  We currently dont
13624         support multiple display configurations.
13625
13626 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13627
13628         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
13629
13630 2005-02-07  Miguel de Icaza  <miguel@novell.com>
13631
13632         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
13633
13634 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
13635
13636         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
13637
13638 2005-02-04  Jackson Harper  <jackson@ximian.com>
13639
13640         * ThemeWin32Classic.cs: Respect the clipping rect when
13641         drawing. Only fill the intersection of clips and rects so there
13642         isn't a lot of large fills.
13643         * ScrollBar.cs: Pass the correct clipping rect to the theme
13644         engine. Remove some debug code.
13645
13646 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
13647         
13648         * DateTimePicker.cs:
13649                 - Fixed crash on DateTime.Parse, use Constructor instead
13650
13651 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
13652         
13653         * MenuItem.cs:
13654         * MenuAPI.cs:
13655                 - Owner draw support (MeasureItem and DrawItem)
13656
13657 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
13658         
13659         *  Menu.cs:
13660                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
13661                 - Fixes MenuItems.Add range
13662         * MenuItem.cs:
13663                 - MergeMenu and Clone and CloneMenu functions
13664
13665 2005-02-03  Jackson Harper  <jackson@ximian.com>
13666
13667         * ScrollBar.cs: Make abstract
13668         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
13669         is abstract.
13670
13671 2005-02-03  Jackson Harper  <jackson@ximian.com>
13672
13673         * ScrollBar.cs: First part of my scrollbar fixups. This removes
13674         all the unneeded refreshes and uses invalidates with properly
13675         computed rects.
13676
13677 2005-02-03  Peter Bartok  <pbartok@novell.com>
13678
13679         * ComponentModel.cs: Added
13680         * IDataGridEditingService.cs: Added
13681         * Timer.cs: Added missing attributes
13682         * ToolTip.cs: Added missing attributes
13683
13684 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13685
13686         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
13687
13688 2005-02-03  Peter Bartok  <pbartok@novell.com>
13689
13690         * ListBox.cs: Added missing attributes
13691
13692 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
13693         
13694         * ListBox.cs:
13695                 - Fixes font height after font change
13696                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
13697                 
13698 2005-02-02  Peter Bartok  <pbartok@novell.com>
13699
13700         * HandleData.cs: Introduced static methods to allow class
13701           to be more self-contained and track it's own HandleData objects
13702         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
13703           HandleData to use new static methods
13704
13705 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
13706
13707         * Combobox.cs:
13708                 - Fixes default size and PreferredHeight
13709                 - Missing events
13710                 - ObjectCollection.Insert implementation
13711                 
13712         * ListControl.cs
13713                 - Fixes signature
13714         * ListBox.cs:
13715                 - Several fixes
13716                 - ObjectCollection.Insert implementation
13717                 - No selection after clean
13718                 - Small fixes
13719
13720 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
13721
13722         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
13723
13724 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
13725
13726         * Combobox.cs:
13727                 - Caches ItemHeight calculation for OwnerDrawVariable
13728                 - Handles dropdown properly
13729                 - Fixes several minor bugs
13730
13731 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
13732
13733         * ListBox.cs:
13734                 - Fixes 71946 and 71950
13735                 - Fixes changing Multicolumn on the fly
13736                 - Fixes keyboard navigation on Multicolumn listboxes
13737
13738 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13739         
13740         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
13741         crash reporter log.
13742
13743 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13744
13745         * XplatUIOSX.cs: Allow applications to actually exit.
13746
13747 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13748
13749         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
13750         their parent at creation time rather than lazily later.  Fixes a major
13751         regression we were experiencing.
13752
13753 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
13754
13755         * ThemeWin32Classic.cs: more date time picker painting fixes
13756         * DateTimePicker.cs: more monthcalendar drop down fixes
13757         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
13758
13759 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
13760
13761         * ScrollBar.cs:
13762                 - When moving the thumb going outside the control should stop the moving
13763                 - Adds the firing of missing events
13764                 - Fixes no button show if Size is not specified
13765                 - End / Home keys for keyboard navigation
13766
13767 2005-01-30  Peter Bartok  <pbartok@novell.com>
13768
13769         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
13770           sanity check to prevent theoretical loop
13771         * XplatUIWin32.cs (SetVisible): Removed debug output
13772         * XplatUIX11.cs (SystrayChange): Added sanity check
13773         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
13774         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
13775           behaviour, valid until the X11 client window rewrite is done
13776         * TextBox.cs (ctor): Setting proper default foreground and background
13777           colors
13778
13779 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
13780
13781         * Theme: Added DrawDateTimePicker to interface
13782         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
13783         * DateTimePicker.cs: Created (still needs keys and painting code)
13784         * DateTimePickerFormat.cs: added
13785         * MonthCalendar.cs: fixed CreateParams for popup window mode
13786           
13787 2005-01-29  Peter Bartok  <pbartok@novell.com>
13788
13789         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
13790           this should also the calculations for ligher/darker
13791         * Theme.cs: Fixed defaults for ScrollBar widths/heights
13792
13793 2005-01-29  Peter Bartok  <pbartok@novell.com>
13794
13795         * ArrangeDirection.cs: Added
13796         * ArrangeStartingPositon.cs: Added
13797         * SystemInformation.cs: Implemented
13798         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13799           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
13800           used by SystemInformation class
13801         * X11Strucs.cs: Added XSizeHints structure
13802         * MenuAPI.cs:
13803           - Fixed CreateParams to make sure the menu window is always visible
13804           - TrackPopupMenu: Added check to make sure we don't draw the
13805             menu offscreen
13806
13807 2005-01-29  Peter Bartok  <pbartok@novell.com>
13808
13809         * HandleData.cs: Added method for altering invalid area
13810         * TextBoxBase.cs: Implemented TextLength
13811
13812 2005-01-28  Peter Bartok  <pbartok@novell.com>
13813
13814         * XplatUIX11.cs: Improvement over last patch, not sending
13815           the WM_PAINT directly anymore, instead we scroll any pending
13816           exposed areas and let the system pick out the WM_PAINT later
13817
13818 2005-01-28  Peter Bartok  <pbartok@novell.com>
13819
13820         * SWF.csproj: Deleted, no longer used. Instead,
13821           Managed.Windows.Forms/SWF.csproj should be used
13822         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
13823           directly, to avoid a potential race condition with the next
13824           scroll
13825
13826 2005-01-28  Peter Bartok  <pbartok@novell.com>
13827
13828         * XplatUI.cs: Made class internal
13829
13830 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
13831
13832         * CheckedListBox.cs:
13833                 - Draw focus
13834                 - Fixed Drawing
13835                 - Missing methods and events
13836
13837 2005-01-27  Peter Bartok  <pbartok@novell.com>
13838
13839         * Application.cs (Run): Don't use form if we don't have one
13840
13841 2005-01-27  Peter Bartok  <pbartok@novell.com>
13842
13843         * TextBoxBase.cs (get_Lines): Fixed index off by one error
13844
13845 2005-01-27  Peter Bartok  <pbartok@novell.com>
13846
13847         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
13848         * GridItem.cs: Added; Patch by Jonathan S. Chambers
13849         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
13850         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
13851         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
13852         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
13853         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13854         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13855         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13856         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13857         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13858         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13859
13860 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
13861
13862         * Combobox.cs:
13863                 - Draw focus on Simple Combobox
13864                 - Fixes drawing issues
13865                 - fixes 71834
13866
13867 2005-01-27  Peter Bartok  <pbartok@novell.com>
13868
13869         * Form.cs:
13870           - Place window in default location, instead of hardcoded 0/0
13871           - Send initial LocationChanged event
13872         * Control.cs:
13873           - UpdateBounds after creation to find out where the WM placed us
13874           - Make sure that if the ParentForm changes location the Form
13875             is notified
13876         * XplatUIX11.cs: XGetGeometry will not return the coords relative
13877             to the root, but to whatever the WM placed around us.
13878             Translate to root coordinates before returning toplevel
13879             coordinates
13880         * XplatUIWin32.cs: Removed debug output
13881         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
13882           flag to GetWindowPos, to allow translation of coordinates on X11
13883
13884 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
13885
13886         * ListBox.cs: connect LostFocus Event
13887
13888 2005-01-27  Peter Bartok  <pbartok@novell.com>
13889
13890         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13891           XplatUIX11.cs: Extended the Systray API
13892         * Form.cs: Removed debug output
13893         * Application.cs: Fixed focus assignment, always need to call
13894           XplatUI.Activate() since Form.Activate() has rules that may
13895           prevent activation
13896         * NotifyIcon.cs: Should be complete now
13897         * ToolTip.cs: Worked around possible timer bug
13898
13899 2005-01-27  Jackson Harper  <jackson@ximian.com>
13900
13901         * TabControl.cs:
13902         - Only invalidate the effected tabs when the
13903         selected index changes. This reduces drawing and gets rid of some
13904         flicker.
13905         - Only refresh if the tabs need to be shifted, otherwise only
13906         invalidate the slider button.
13907         - On windows the tabs are not filled to right if the slider is
13908         visible.
13909         
13910 2005-01-27  Jackson Harper  <jackson@ximian.com>
13911
13912         * TabControl.cs: Only refresh on mouseup if we are showing the
13913         slider. Also only invalidate the button whose state has changed.
13914
13915 2005-01-26  Peter Bartok  <pbartok@novell.com>
13916
13917         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
13918         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
13919           and SystrayRemove() methods
13920         * XplatUIOSX.cs: Stubbed Systray methods
13921         * XplatUIX11.cs:
13922           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
13923             methods
13924           - Fixed broken XChangeProperty calls (marshalling messed up things)
13925         * X11Structs.cs: Added enums and structs required for Size hinting
13926         * NotifyIcon.cs: Added & implemented
13927
13928 2005-01-26  Jackson Harper  <jackson@ximian.com>
13929
13930         * TabControl.cs: Space vertically layed out tabs properly.
13931
13932 2005-01-26  Peter Bartok  <pbartok@novell.com>
13933
13934         * Form.cs (CreateClientParams): Always set the location to 0,0
13935           since we're a child window.
13936
13937         * Control.cs (SetVisibleCore): Always explicitly setting the location
13938           of a toplevel window, apparently X11 doesn't like to move windows
13939           while they're not mapped.
13940
13941 2005-01-26  Jackson Harper  <jackson@ximian.com>
13942
13943         * TabControl.cs: Implement FillToRight size mode with vertically
13944         rendered tabs.
13945
13946 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13947
13948         * ControlPaint.cs, ThemeWin32Classic.cs
13949                 - Fixes DrawFocusRectangle
13950
13951 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13952
13953         * MenuAPI.cs:
13954                 - MenuBar tracking only starts when item is first clicked
13955                 - Fixes menu hidding for multiple subitems
13956                 - Unselect item in MenuBar when item Executed
13957                 - Fixes bug 71495
13958
13959 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
13960
13961         * ListControl.cs:
13962                 - IsInputKey for ListBox
13963         * ListBox.cs:
13964                 - Focus item
13965                 - Shift and Control item selection
13966                 - Implement SelectionMode.MultiExtended
13967                 - Fixes RightToLeft
13968         * ComboBox.cs:
13969                 - IsInputKey implemented
13970                 - Do not generate OnTextChangedEdit on internal txt changes
13971                 
13972 2005-01-23  Peter Bartok  <pbartok@novell.com>
13973
13974         * AccessibleObject.cs: Partially implemented Select()
13975         * MonthCalendar.cs: Added missing attributes and events
13976         * Form.cs: Fixed CreateParams behaviour, now controls derived from
13977           form can properly override CreateParams.
13978         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13979           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
13980           Control performs Invalidate & Update
13981         * NativeWindow (CreateHandle): Added special handling for Form
13982           and Form.FormParent classes to allow overriding of From.CreateParams
13983         * Control.cs:
13984           - ControlNativeWindow: Renamed 'control' variable to more intuitive
13985             name 'owner'
13986           - ControlNativeWindow: Added Owner property
13987           - Removed usage of Refresh() on property changes, changed into
13988             Invalidate(), we need to wait until the queue is processed for
13989             updates, direct calls might cause problems if not all vars for
13990             Paint are initialized
13991           - Added call to UpdateStyles() when creating the window, to set any
13992             styles that CreateWindow might have ignored.
13993           - Added support for Form CreateParent overrides to UpdateStyles()
13994         * MessageBox.cs: Removed no longer needed FormParent override stuff,
13995           CreateParams are now properly overridable
13996         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
13997           CreateParams are now properly overridable
13998
13999 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
14000
14001         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
14002         OnTextBoxChanged.
14003
14004         Capture LostFocus and OnTextBoxChanged.  The later introduces a
14005         recursive invocation that I have not figured out yet.
14006
14007         Reset the timer when not using (it was accumulating).
14008
14009
14010         (OnTextBoxChanged): Set UserEdit to true here to track whether the
14011         user has made changes that require validation.
14012
14013         Reset changing to avoid loops.
14014
14015 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
14016
14017         * NumericUpDown.cs: Display value at startup.
14018
14019         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
14020         ValidateEditText.
14021
14022         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
14023         filled in.  Added some basic parsing of text.
14024
14025         Still missing the OnXXX method overrides, and figuring out the
14026         events that must be emitted.
14027
14028         * UpDownBase.cs: Handle UserEdit on the Text property.
14029         
14030 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
14031
14032         * ComboBox.cs:
14033           - Fixes IntegralHeight
14034           - ToString method
14035
14036 2005-01-21  Jackson Harper  <jackson@ximian.com>
14037
14038         * TabControl.cs: Set the SelectedIndex property when SelectedTab
14039         is set so that the page visibility is updated and the tabs are
14040         sized correctly.
14041
14042 2005-01-21  Jackson Harper  <jackson@ximian.com>
14043
14044         * TabControl.cs: Use cliping rectangle for blitting. Give the
14045         theme the clipping rect so we can do clipping while
14046         drawing. Remove some debug code.
14047
14048 2005-01-21  Jackson Harper  <jackson@ximian.com>
14049
14050         * TabPage.cs: Add a new method so tab pages can force the tab
14051         control to recalculate the tab page sizes.
14052         * TabControl.cs: UpdateOwner needs to make the tab control recalc
14053         sizes.
14054
14055 2005-01-20  Jackson Harper  <jackson@ximian.com>
14056
14057         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
14058
14059 2005-01-20  Jackson Harper  <jackson@ximian.com>
14060
14061         * TreeView.cs: Set the bounds for nodes properly. They were
14062         getting screwed up when checkboxes were not enabled, but images
14063         were.
14064
14065 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
14066
14067         * ListBox.cs:
14068                 - Owner draw support
14069                 - Fixes
14070                 
14071 2005-01-20  Jackson Harper  <jackson@ximian.com>
14072
14073         * XplatUIStructs.cs: More misc keys
14074         * X11Keyboard.cs: Ignore some control keys.
14075
14076 2005-01-20  Jackson Harper  <jackson@ximian.com>
14077
14078         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
14079         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
14080
14081 2005-01-19  Peter Bartok  <pbartok@novell.com>
14082
14083         * Control.cs: Un-selecting the control when it is loosing focus
14084
14085 2005-01-19  Jackson Harper  <jackson@ximian.com>
14086
14087         * TreeView.cs: Hook up to the text controls leave event so we can
14088         end editing when the users clicks outside the text box.
14089         
14090 2005-01-19  Jackson Harper  <jackson@ximian.com>
14091
14092         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
14093         get set in the conversion array.
14094
14095 2005-01-19  Peter Bartok  <pbartok@novell.com>
14096
14097         * Application.cs (ModalRun): Added a call to CreateControl to ensure
14098           focus is properly set
14099         * Button.cs:
14100           - Added missing attributes
14101           - removed styles, those are already set in the base class
14102         * ButtonBase.cs:
14103           - Added missing attributes
14104           - Added clip window styles
14105         * CheckBox.cs: Added missing attributes
14106         * CommonDialog.cs:
14107           - FormParentWindow.CreateParams: Added required clip styles
14108         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
14109           also filters modifier keys
14110         * MessageBox.cs:
14111           - Added assignment of Accept and Cancel button to enable Enter
14112             and Esc keys in MessageBox dialogs
14113           - FormParentWindow.CreateParams: Added required clip styles
14114         * RadioButton.cs: Added missing attributes
14115         * TextControl.cs: No longer draws selection if control does not
14116           have focus
14117         * TextBoxBase.cs:
14118           - Now draws simple rectangle around test area to make it obvious
14119             there's a control. This is a hack until we properly support borders
14120           - A few simple fixes to support selections better, now erases selected
14121             text when typing, and resets selection when using movement keys
14122
14123 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
14124
14125         * UpDownBase.cs: Added some new properties.
14126
14127         * DomainUpDown.cs: Implement a lot to get my test working.
14128
14129 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
14130
14131         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
14132
14133 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
14134
14135         * OSXStructs (WindowAttributes): Fixed csc complaints
14136
14137 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
14138
14139         * XplayUIOSX.cs:
14140           OSXStructs.cs: Initial refactor to move enums and consts into
14141           OSXStructs and use them in the driver for greater readability.
14142
14143 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
14144
14145         * XplatUIOSX.cs: Initial support for Standard Cursors.
14146         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
14147
14148 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
14149
14150         * ComboBox.cs: ability to change style when the ctrl is already
14151         created, missing methods and events, bug fixes, signature fixes
14152
14153 2005-01-19  Peter Bartok  <pbartok@novell.com>
14154
14155         * Cursors.cs (ctor): Added ctor to fix signature
14156
14157 2005-01-18  Peter Bartok  <pbartok@novell.com>
14158
14159         * Button.cs: Implemented DoubleClick event
14160         * ButtonBase.cs:
14161           - Fixed keyboard handling to behave like MS, where the press of
14162             Spacebar is equivalent to a mousedown, and the key release is
14163             equivalent to mouseup. Now a spacebar push will give the same
14164             visual feedback like a mouse click.
14165           - Added missing attributes
14166           - Added ImeModeChanged event
14167           - Added support for generating DoubleClick event for derived classes
14168         * CheckBox.cs:
14169           - Implemented DoubleClick event
14170           - Added missing attributes
14171         * CommonDialog.cs: Added missing attribute
14172         * ContextMenu.cs: Added missing attributes
14173         * RadioButton.cs:
14174           - AutoChecked buttons do not allow to be unselected when clicked
14175             (otherwise we might end up with no selected buttons in a group)
14176           - Added missing attributes
14177           - Implemented DoubleClickEvent
14178         * ThreadExceptionDialog.cs: Enabled TextBox code
14179
14180 2005-01-18  Peter Bartok  <pbartok@novell.com>
14181
14182         * Form.cs: Removed debug output
14183         * Button.cs: Added support for DoubleClick method
14184
14185 2005-01-18  Peter Bartok  <pbartok@novell.com>
14186
14187         * Form.cs:
14188           - Added method to parent window that allows triggering size
14189             calculations when a menu is added/removed
14190           - set_Menu: Cleaned up mess from early days of Form and Control,
14191             now properly triggers a recalc when a menu is added/removed
14192           - Added case to select form itself as focused form if no child
14193             controls exist
14194           - Added PerformLayout call when showing dialog, to ensure properly
14195             placed controls
14196         * Control.cs:
14197           - Select(): Made internal so Form can access it
14198           - Focus(): Only call Xplat layer if required (avoids loop), and sets
14199             status
14200         * Application.cs (Run): Removed hack and calls PerformLayout instead
14201           to trigger calculation when Form becomes visible
14202
14203 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
14204
14205         * ComboBox.cs: fixes for ownerdraw
14206
14207 2005-01-18  Peter Bartok  <pbartok@novell.com>
14208
14209         * TextControl.cs:
14210           - Sentinel is no longer static, each Document gets it's own, this
14211             avoids locking or alternatively overwrite problems when more
14212             than one text control is used simultaneously.
14213           - Switched to use Hilight and HilightText brushes for text selection
14214
14215         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
14216
14217 2005-01-18  Peter Bartok  <pbartok@novell.com>
14218
14219         * Control.cs:
14220           - Hooked up the following events:
14221                 o ControlAdded
14222                 o ControlRemoved
14223                 o HandleDestroyed
14224                 o ImeModeChanged
14225                 o ParentChanged
14226                 o TabStopChanged
14227                 o Invalidated
14228                 o SystemColorsChanged
14229                 o ParentFontChanged
14230                 o Move
14231           - Removed debug output
14232           - Added a call to the current theme's ResetDefaults when a color change
14233             is detected
14234         * Form.cs: Now setting the proper ImeMode
14235         * Theme.cs: Defined a method to force recreation of cached resources
14236           and rereading of system defaults (ResetDefaults())
14237         * ThemeWin32Classic.cs: Added ResetDefaults() stub
14238
14239 2005-01-17  Peter Bartok  <pbartok@novell.com>
14240
14241         * Control.cs: Added missing attributes
14242
14243 2005-01-17  Jackson Harper  <jackson@ximian.com>
14244
14245         * TreeNode.cs: Implement editing. Add missing properties selected
14246         and visible.
14247         * TreeView.cs: Implement node editing. Also some fixes to use
14248         Invalidate (invalid area) instead of Refresh when selecting.
14249
14250 2005-01-17  Peter Bartok  <pbartok@novell.com>
14251
14252         * Control.cs:
14253           - Implemented InvokeGotFocus() method
14254           - Implemented InvokeLostFocus() method
14255           - Implemented InvokePaint() method
14256           - Implemented InvokePaintBackground() method
14257           - Implemented InvokeClick() method
14258           - Implemented FindForm() method
14259           - Implemented RectangleToClient() method
14260           - Implemented ClientToRectangle() method
14261           - Implemented ResetBackColor() method
14262           - Implemented ResetCursor() method
14263           - Implemented ResetFont() method
14264           - Implemented ResteForeColor() method
14265           - Implemented ResetImeMode() method
14266           - Implemented ResetLeftToRight() method
14267           - Implemented ResetText() method
14268           - Implemented Scale() methods
14269           - Implemented ScaleCore() method
14270           - Implemented Update() method
14271           - Removed unused variables
14272           - Stubbed AccessibilityNotifyClients and
14273             ControlAccessibleObject.NotifyClients() methods (dunno what to do
14274             with those yet)
14275           - Now setting proper default for RightToLeft property
14276           - Fixed bug in SetClientSizeCore that would cause windows to get
14277             really big
14278           - Now sending Click/DoubleClick events
14279           - Now selecting controls when left mouse button is clicked on
14280             selectable control
14281         * AccessibleEvents.cs: Added
14282         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
14283         * XplatUIOSX.cs: Stubbed UpdateWindow() method
14284         * XplatUIWin32.cs: Implemented UpdateWindow() method
14285         * XplatUIX11.cs: Implemented UpdateWindow() method
14286         * Form.cs: Removed stray semicolon causing CS0162 warning
14287         * ThemeWin32Classic.cs: Fixed unused variable warnings
14288         * ScrollableControl.cs: Now calls base method for ScaleCore
14289         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
14290           style to avoid interference with internal click handler (which is
14291           different than standard Control click handling)
14292         * RadioButton.cs:
14293           - Now unchecks all sibling radio buttons when control is
14294             selected (Fixes #68756)
14295           - Removed internal tabstop variable, using the one inherited from
14296             Control
14297
14298 2005-01-17  Jackson Harper  <jackson@ximian.com>
14299
14300         * NavigateEventArgs.cs: Fix base type.
14301         * LinkLabel.cs: Sig fix
14302         
14303 2005-01-17  Jackson Harper  <jackson@ximian.com>
14304
14305         * TreeView.cs: Only invalidate the effected nodes bounds when
14306         selecting nodes.
14307
14308 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14309
14310         * XplatUIWin32.cs: fixes Win32 marshaling
14311         * XplatUIX11.cs: fixes method signature
14312
14313 2005-01-17  Peter Bartok  <pbartok@novell.com>
14314
14315         * XplatUIX11.cs: Clean up resources when we no longer need them
14316
14317 2005-01-17  Peter Bartok  <pbartok@novell.com>
14318
14319         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
14320           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
14321           and DestroyCursor() methods.
14322         * Cursor.cs: Partially implemented, now supports standard cursors;
14323           still contains some debug code
14324         * Cursors.cs: Implemented class
14325         * Control.cs:
14326           - WndProc(): Added handling of WM_SETCURSOR message, setting the
14327             appropriate cursor
14328           - Implemented Cursor property
14329           - Replaced break; with return; more straightforwar and possibly
14330             faster
14331           - Now properly setting the result for WM_HELP
14332         * X11Structs.cs: Added CursorFontShape enum
14333         * XplatUIStructs.cs:
14334           - Added StdCursor enum (to support DefineStdCursor() method)
14335           - Added HitTest enum (to support sending WM_SETCURSOR message)
14336         * XplatUIX11.cs:
14337           - Now sends the WM_SETCURSOR message
14338           - Implemented new cursor methods
14339         * XplatUIOSX.cs: Stubbed new cursor methods
14340         * XplatUIWin32.cs:
14341           - Implemented new cursor methods
14342           - Added GetSystemMetrics function and associated enumeration
14343
14344 2005-01-15  Peter Bartok  <pbartok@novell.com>
14345
14346         * Control.cs:
14347           - WndProc(): Now handles EnableNotifyMessage
14348           - SelectNextControl(): Fixed bug where if no child or sibling
14349             controls exist we looped endlessly
14350
14351 2005-01-14  Jackson Harper  <jackson@ximian.com>
14352
14353         * TreeView.cs: Recalculate the tab pages when a new one is added
14354         so that the proper bounding rects are created.
14355
14356 2005-01-14  Jackson Harper  <jackson@ximian.com>
14357
14358         * TreeView.cs: Draw a gray box instead of a grip in the lower
14359         right hand corner when there are both horizontal and vertical
14360         scroll bars.
14361
14362 2005-01-14  Jackson Harper  <jackson@ximian.com>
14363
14364         * Control.cs: When erasing backgrounds use FromHwnd instead of
14365         FromHdc when there is a NULL wparam. This occurs on the X driver.
14366         * XplatUIX11.cs: Set the wparam to NULL.
14367
14368 2005-01-13  Jackson Harper  <jackson@ximian.com>
14369
14370         * PictureBox.cs: Implement missing methods (except ToString, need
14371         to test that on windows) and events. When visibility is changed we
14372         need to redraw the image because the buffers are killed. When size
14373         is changed refresh if the sizemode needs it.
14374
14375 2005-01-13  Peter Bartok  <pbartok@novell.com>
14376
14377         * Control.cs (SelectNextControl): Was using wrong method to select
14378           a control
14379
14380 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14381
14382         * ComboBox.cs: fixes dropstyle
14383
14384 2005-01-13  Peter Bartok  <pbartok@novell.com>
14385
14386         * Form.cs:
14387           - Implemented Select() override
14388           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
14389           - Now sets keyboard focus on startup
14390         * Control.cs (SelectNextControl): Now properly handles directed=true
14391         * TextBoxBase.cs:
14392           - WndProc: Now passes tab key on to base if AcceptTabChar=false
14393           - Added (really bad) focus rectangle (mostly for testing)
14394         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
14395           to enforce redraw on focus changes
14396         * ContainerControl.cs:
14397           - Fixed detection of Shift-Tab key presses
14398           - Fixed traversal with arrow keys
14399         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
14400           gonna keep this or if it's complete yet
14401         
14402 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14403
14404         * ComboBox.cs: missing properties, fixes
14405
14406 2005-01-13  Peter Bartok  <pbartok@novell.com>
14407
14408         * Panel.cs (ctor): Setting Selectable window style to off
14409         * Splitter.cs (ctor): Setting Selectable window style to off
14410         * GroupBox.cs (ctor): Setting Selectable window style to off
14411         * Label.cs (ctor): Setting Selectable window style to off
14412
14413 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
14414
14415         * UpDownBase.cs (InitTimer): If the timer has been already
14416         created, enable it.
14417
14418         Use a TextBox instead of a Label.
14419
14420 2005-01-12  Jackson Harper  <jackson@ximian.com>
14421
14422         * TreeView.cs: Refresh the tree after sorting the nodes. Always
14423         draw the connecting node lines (when ShowLines is true).
14424         * TreeNode.cs: The nodes index can now be updated. This is used
14425         when a node collection is sorted.
14426         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
14427         insert or an existing unsorted node collection can be sorted.
14428         
14429 2005-01-12  Peter Bartok  <pbartok@novell.com>
14430
14431         * ContainerControl.cs: Implemented ProcessDialogKeys()
14432
14433 2005-01-12  Peter Bartok  <pbartok@novell.com>
14434
14435         * Control.cs:
14436           - Implemented SelectNextControl() method
14437           - Several focus related bug fixes
14438           - Fixed Docking calculations to match MS documentation and
14439             behaviour
14440
14441 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
14442
14443         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
14444         bug fixes
14445
14446 2005-01-12  Peter Bartok  <pbartok@novell.com>
14447
14448         * Control.cs:
14449           - Fixed broken Contains() method
14450           - Implemented GetNextControl() method. Finally. This is the pre-
14451             requisite for focus handling.
14452
14453 2005-01-12  Peter Bartok  <pbartok@novell.com>
14454
14455         * OSXStrucs.cs: Added
14456
14457 2005-01-12  Peter Bartok  <pbartok@novell.com>
14458
14459         * XplatUIWin32.cs:
14460           - Removed PeekMessageFlags
14461           - Implemented SetWindowStyle() method
14462         * XplatUIStructs.cs: Added PeekMessageFlags
14463         * X11Structs: Added missing border_width field to XWindowChanges struct
14464         * XplatUIX11.cs:
14465           - PeekMessage: Now throws exception if flags which are not yet
14466             supported are passed
14467           - Implemented SetWindowStyle() method
14468           - Fixed SetZOrder to handle AfterHwnd properly
14469         * XplatUI.cs: Added SetWindowStyle() method
14470         * XplatUIDriver.cs: Added SetWindowStyle() abstract
14471         * Control.cs:
14472           - Implemented UpdateStyles() method
14473           - Implemented UpdateZOrder() method
14474         * XplatUIOSX.cs: Added SetWindowStyle() stub
14475
14476 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
14477
14478         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
14479         button mouse).
14480
14481
14482 2005-01-11  Jackson Harper  <jackson@ximian.com>
14483
14484         * TreeView.cs: Still need to draw lines to siblings even if out of
14485         the current node is out of the clip.
14486
14487 2005-01-11  Jackson Harper  <jackson@ximian.com>
14488
14489         * TreeView.cs: When setting the hbar/vbar/grip position use
14490         SetBounds so that perform layout is only called once. Also suspend
14491         and resume layout so layout is only done once for all controls.
14492         - Removed some debug fluff
14493         * SizeGrip.cs: Call base implmentation in overriding methods.
14494         - When visibility is changed the drawing buffers are killed so we
14495         need to redraw.
14496
14497 2005-01-11  Jackson Harper  <jackson@ximian.com>
14498
14499         * TreeView.cs: Calculate the open node count while drawing. This
14500         saves us an entire tree traversal for every paint operation. Use
14501         a member var for the open node count so less vars are passed around.
14502
14503 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
14504
14505         * MonthCalendar.cs:
14506         - fixed selection to use mousemove, not mouse polling on timer
14507         * ThemeWin32Classic.cs
14508         - removed redundant unused variable "no_more_content"
14509         
14510 2005-01-11  Peter Bartok  <pbartok@novell.com>
14511
14512         * XplatUIX11.cs (DoEvents): Needs to return when no more events
14513           are pending, so it now calls PeekMessage instead of GetMessage;
14514           implemented a incomplete version of PeekMessage
14515         
14516 2005-01-11  Peter Bartok  <pbartok@novell.com>
14517
14518         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
14519           I18n issues
14520         * TextBoxBase.cs: Added sending of TextChanged event
14521
14522 2005-01-10  Jackson Harper  <jackson@ximian.com>
14523
14524         * TreeView.cs: Try not to draw outside the clipping rectangle on
14525         each node element.
14526
14527 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
14528
14529         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
14530
14531 2005-01-10  Jackson Harper  <jackson@ximian.com>
14532
14533         * TreeView.cs:
14534         - Implement fast scrolling. Now only the newly
14535         exposed nodes are drawn and the old image is moved using the
14536         XplatUI::ScrollWindow method.
14537         - Factor in height of nodes when calculating whether or not the
14538         node is in the clipping rect.
14539
14540 2005-01-10  Jackson Harper  <jackson@ximian.com>
14541
14542         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
14543
14544 2005-01-10  Peter Bartok  <pbartok@novell.com>
14545
14546         * Application.cs: Added temporary hack to resolve all our resize
14547           required issues on startup. This will get fixed properly at
14548           some point in the future
14549
14550 2005-01-10  Jackson Harper  <jackson@ximian.com>
14551
14552         * SizeGrip.cs: New internal class that is used as a sizing
14553         grip control...hence the name.
14554
14555 2005-01-10  Peter Bartok  <pbartok@novell.com>
14556
14557         * Control.cs: Implemented proper TabIndex handling, now assigning
14558           a tabindex when a control is added to a container
14559         * GroupBox.cs (ctor): Now sets the Container style bit, required
14560           for Control.GetNextControl()
14561
14562 2005-01-09  Jackson Harper  <jackson@ximian.com>
14563
14564         * TextBoxBase.cs: Clear window when scrolling (fixes build).
14565
14566 2005-01-09  Peter Bartok <pbartok@novell.com>
14567
14568         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
14569           XplatUIX11.cs: Added ability to control ScrollWindow expose and
14570           an overload for ScrollWindow to allow only scrolling a rectangle
14571
14572 2005-01-09  Peter Bartok <pbartok@novell.com>
14573
14574         * Form.cs:
14575           - Implemented SetDesktopBounds method
14576           - Implemented SetDesktopLocation method
14577
14578 2005-01-08  Jackson Harper  <jackson@ximian.com>
14579
14580         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
14581         the node count has changed, this removes to VScroll::Refresh calls
14582         when drawing.
14583
14584 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
14585
14586         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
14587
14588 2005-01-07  Jackson Harper  <jackson@ximian.com>
14589
14590         * TreeNode.cs: Just update the single node when it is
14591         checked. Don't refresh after toggling, the Expand/Collapse already
14592         handles this.
14593         * TreeView.cs: Respect clipping a little more when drawing. Try
14594         not to redraw things that don't need to be redrawn. Just hide the
14595         scrollbars when they are no longer needed instead of removing
14596         them, so they don't have to be created again and again.
14597         
14598 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
14599
14600         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
14601         coordinates to window space to place the caret properly, FIXED.
14602         Implement GetWindowState & SetWindowState
14603
14604 2005-01-06  Peter Bartok <pbartok@novell.com>
14605
14606         * Form.cs:
14607           - Implemented ClientSize property
14608           - Implemented DesktopBounds property
14609           - Implemented DesktopLocation property
14610           - Implemented IsRestrictedWindow property
14611           - Implemented Size property
14612           - Implemented TopLevel property
14613           - Implemented FormWindowState property
14614         * Control.cs:
14615           - Implemented GetTopLevel() method
14616           - Implemented SetTopLevel() method
14617         * X11Structs.cs (Atom):
14618           - Added AnyPropertyType definition
14619           - Added MapState definiton and updated XWindowAttribute struct
14620         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
14621         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
14622         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
14623         * XplatUIWin32.cs:
14624           - Implemented GetWindowState() and SetWindowState() methods
14625           - Fixed Win32GetWindowLong return type
14626         * XplatUIX11.cs:
14627           - Introduced central function for sending NET_WM messages
14628           - Implemented GetWindowState() and SetWindowState() methods
14629         * TextBoxBase.cs (set_Lines):
14630           - Now uses Foreground color for text added via Text property (Duh!)
14631           - Added code to remember programmatically requested size (fixes
14632             behaviour when Multiline is set after Size)
14633           - Added AutoSize logic
14634
14635 2005-01-06  Jackson Harper  <jackson@ximian.com>
14636
14637         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
14638
14639 2005-01-06  Jackson Harper  <jackson@ximian.com>
14640
14641         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
14642         set to less then 0.
14643
14644 2005-01-06  Jackson Harper  <jackson@ximian.com>
14645
14646         * ScrollableControl.cs: Lazy init the scrollbars.
14647         
14648 2005-01-06  Jackson Harper  <jackson@ximian.com>
14649
14650         * Theme.cs: Speed up getting pens and solid brushes, by using
14651         their ARGB as a hash instead of tostring and not calling Contains.
14652
14653 2005-01-06  Peter Bartok <pbartok@novell.com>
14654
14655         * Form.cs:
14656           - Implemented OnActivated and OnDeactivate event trigger
14657           - Implemented Activate() method
14658           - Fixed ShowDialog() to activate the form that was active before
14659             the dialog was shown
14660         * XplatUIX11.cs:
14661           - Added global active_window var that tracks the currently active
14662             X11 window
14663           - Now always grabs Property changes from the root window to always
14664             catch changes on the active window property
14665           - Added code to PropertyNotify handler to send Active/Inactive
14666             messages when state changes. This puts X11 and Win32 en par on
14667             WM_ACTIVATE notifications (except for double notifications when
14668             the user clicks away from our modal window to another one of our
14669             windows)
14670
14671 2005-01-05  Jackson Harper  <jackson@ximian.com>
14672
14673         * ImageList.cs: Implment ctor
14674
14675 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14676
14677         * XplatUIOSX.cs: Implement Activate/SetTopmost
14678
14679 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14680
14681         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
14682
14683 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14684
14685         * XplatUIOSX.cs: Implement GetActive/SetFocus.
14686
14687 2005-01-05  Peter Bartok <pbartok@novell.com>
14688
14689         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
14690           XplatUIOSX.cs: Added GetActive method to return the currently
14691           active window for the application (or null, if none is active)
14692         * Form.cs:
14693           - Implemented ActiveForm
14694           - Commented out owner assignment for modal dialogs (causes problems
14695             on Win32, since the owner will be disabled)
14696           - Reworked some Active/Focus handling (still incomplete)
14697         * CommonDialog.cs: Commented out owner assignment for modal dialogs
14698           (causes problems on Win32, since the owner will be disabled)
14699         * IWin32Window: Added ComVisible attribute
14700
14701 2005-01-05  Peter Bartok <pbartok@novell.com>
14702
14703         * ToolTip.cs (WndProc): Enable setting focus now that we have the
14704           required XplatUI functions.
14705
14706 2005-01-05  Peter Bartok <pbartok@novell.com>
14707
14708         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
14709           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
14710           to implement focus and activation handling; still incomplete and
14711           with debug output
14712
14713 2005-01-04  Peter Bartok <pbartok@novell.com>
14714
14715         * TextBoxBase.cs: Changed access level for Document property to
14716           match switch to internal for TextControl
14717
14718 2005-01-04  Peter Bartok <pbartok@novell.com>
14719
14720         * AccessibleObject: Added ComVisible attribute
14721
14722 2005-01-04  Jackson Harper  <jackson@ximian.com>
14723
14724         * X11Keyboard.cs: Remove unneeded var.
14725
14726 2005-01-04  Jackson Harper  <jackson@ximian.com>
14727
14728         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
14729         but PAINT.
14730         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
14731         ClientMessage. This makes apps exit cleanly (more often).
14732         
14733 2005-01-04  Jackson Harper  <jackson@ximian.com>
14734
14735         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
14736         handling focus, return correct colors and fonts,
14737         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
14738         handle selection, horizontal scrolling, and mouse interaction.
14739
14740 2005-01-04  Peter Bartok <pbartok@novell.com>
14741
14742         * ICommandExecutor.cs: Added
14743         * IDataGridColumnStyleEditingNotificationService.cs: Added
14744         * IFeatureSupport.cs: Added
14745         * IFileReaderService.cs: Added
14746         * IDataObject.cs: Added ComVisible attribute
14747         * AmbientProperties.cs: Added
14748         * BaseCollection.cs: Added missing attributes
14749         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
14750         * BaseCollection.cs: Added missing attributes
14751         * Binding.cs: Added TypeConverter attribute
14752         * BindingContext.cs: Added DefaultEvent attribute
14753         * BindingsCollection.cs: Added DefaultEvent attribute
14754         * Button.cs: Added DefaultValue attribute
14755         * DragEventArgs.cs: Added ComVisible attribute
14756         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
14757         * KeyEventArgs.cs: Added ComVisible attribute
14758         * KeyPressEventArgs.cs: Added ComVisible attribute
14759         * MouseEventArgs.cs: Added ComVisible attribute
14760         * NavigateEventArgs.cs: Added
14761         * NavigateEventHandler.cs: Added
14762         * FeatureSupport.cs: Added
14763         * OSFeature.cs: Added
14764         * Theme.cs: Added abstract Version property to support OSFeature
14765         * ThemeWin32Classic.cs: Added Version property to
14766           support OSFeature.Themes
14767         * ProgressBar.cs: Removed OnPaintBackground override, not required since
14768           the proper styles to avoid background drawing are set, also doesn't
14769           match MS signature
14770         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
14771         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
14772         * ScrollEventArgs.cs: Added ComVisible attribute
14773         * SplitterEventArgs.cs: Added ComVisible attribute
14774         * AccessibleSelection.cs: Added Flags attribute
14775         * Appearance.cs: Added ComVisible attribute
14776         * Border3DSide.cs: Added ComVisible attribute
14777         * Border3DStyle.cs: Added ComVisible attribute
14778         * BorderStyle.cs: Added ComVisible attribute
14779         * DragAction.cs: Added ComVisible attribute
14780         * ErrorBlinkStyle.cs: Added
14781         * ScrollEventType.cs: Added ComVisible attribute
14782         * AnchorStyles.cs: Added Editor attribute
14783         * DockStyle.cs: Added Editor attribute
14784         * HorizontalAlignment.cs: Added ComVisible attribute
14785         * HelpEventArgs.cs: Added ComVisible attribute
14786         * PaintEventArgs.cs: Added IDisposable
14787
14788 2005-01-04  Peter Bartok <pbartok@novell.com>
14789
14790         * TextControl.cs: Switched Line, LineTag and Document classes to
14791           internal
14792
14793 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
14794
14795         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
14796         Simple mode, fixes, IntegralHeight, etc.
14797
14798 2005-01-04  Peter Bartok <pbartok@novell.com>
14799
14800         * TextBoxBase.cs: Using proper font variable now
14801
14802 2005-01-04  Peter Bartok <pbartok@novell.com>
14803
14804         * Form.cs (ShowDialog): Set parent to owner, if provided
14805         * GroupBox.cs: Removed unused vars
14806         * TextControl.cs:
14807           - Added GetHashCode() for Document and LineTag classes
14808           - Removed unused variables
14809           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
14810             to allow translation between continuous char position and line/pos
14811         * CheckBox.cs: Removed vars that are provided by base class
14812         * RadioButton.cs: Removed vars that are provided by base class, added
14813           new keyword where required
14814         * LinkLabel.cs: Added new keyword where required
14815         * Control.cs (WndProc): Removed unused variable
14816         * TextBoxBase.cs:
14817           - Finished SelectionLength property
14818           - Implemented SelectionStart property
14819           - Implemented Text property
14820           - Removed unused vars
14821         * MessageBox.cs: Added new keyword where required
14822         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
14823           WndProc signature
14824         * MenuAPI.cs: Added new keyword where required
14825         * ButtonBase.cs: Removed vars that are provided by base class, added
14826           new keyword where required
14827         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
14828           argument to double, to allow compiling with csc 2.0 (Atsushi ran
14829           into this)
14830         * Application.cs (Run): Now triggers the ThreadExit event
14831         * CommonDialog.cs: Added new keyword where required; now properly sets
14832           parent (owner) for dialog
14833         * XplatUIX11.cs: Commented out unused vars
14834         * StatusBar.cs: Fixed signature for Text property
14835         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
14836
14837 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
14838
14839         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
14840         TrackBar.cs, MonthCalendar.cs: remove unused vars
14841
14842 2005-01-03  Jackson Harper  <jackson@ximian.com>
14843
14844         * ThemeWin32Classic.cs:
14845         * X11Keyboard.cs: Remove unused vars.
14846
14847 2005-01-03  Peter Bartok  <pbartok@novell.com>
14848
14849         * TextBox.cs:
14850           - set_Text: Tied into TextControl
14851           - set_TextAlignment: Tied into TextControl
14852         * TextControl.cs:
14853           - Added alignment properties and implemented alignment handling
14854             and drawing (still has a bug, not generating proper expose events)
14855           - Added new Line() constructor to allow passing the line alignment
14856           - Fixed selection setting, properly handling end<start now
14857           - Added aligment considerations to RecalculateDocument()
14858         * TextBoxBase.cs:
14859           - Now properly enforces control height for single line controls
14860           - Added support for CharacterCasing
14861           - Added IsInputKey override
14862           - Fixed Keys.Enter logic
14863           - Added SetBoundsCore override
14864           - Fixed mouse selection handling
14865
14866 2005-01-03  Jackson Harper  <jackson@ximian.com>
14867
14868         * TreeView.cs:
14869           - Collapse and uncheck all nodes when CheckBoxes is disabled.
14870           - Checkboxes are always aligned to the bottom of the node,
14871           regardless of item height.
14872           - Use the node bounds to draw the text so we can center it when
14873           the item height is greater then the font height.
14874           - Node::Bounds are only the text part of the node.
14875         * TreeNode.cs: New method to combine collapsing and unchecking all
14876           nodes recursively.
14877
14878 2005-01-02  Jackson Harper  <jackson@ximian.com>
14879
14880         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
14881         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
14882         tree when a check is changed. TODO: Only refresh the checked node.
14883
14884 2004-12-30  Jackson Harper  <jackson@ximian.com>
14885
14886         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
14887         * TreeNode.cs: When collapsing make sure to never collapse the
14888         root node.
14889
14890 2004-12-29  Jackson Harper  <jackson@ximian.com>
14891
14892         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
14893         
14894 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
14895
14896         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
14897
14898 2004-12-28  Peter Bartok  <pbartok@novell.com>
14899
14900         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
14901           not yet assigned
14902
14903 2004-12-28  Peter Bartok  <pbartok@novell.com>
14904
14905         * Control.cs (WndProc): Added WM_HELP handler, now generates
14906           HelpRequested event
14907         * Form.cs: Added HelpButton property and required support code
14908         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
14909
14910 2004-12-28  Peter Bartok  <pbartok@novell.com>
14911
14912         * CommonDialog.cs:
14913           - Made DialogForm.owner variable internal
14914           - Added check to ensure owner form is set before setting
14915             owner properties in CreateParams
14916
14917 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
14918
14919         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
14920           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
14921           GetCursorPos.  Fix major visibility issues.  Rework the windowing
14922           system to support borderless/titleless windows (implements menus).
14923           Fix GetWindowPos.  Implement initial background color support for
14924           views.
14925
14926 2004-12-28  Peter Bartok  <pbartok@novell.com>
14927
14928         * Form.cs (get_CreateParams): Make sure we have an owner before using
14929           the owner variable. Implement proper default if no owner exists
14930
14931 2004-12-28  Peter Bartok  <pbartok@novell.com>
14932
14933         * In preparation for making Managed.Windows.Forms the default build target
14934           for System.Windows.Forms, the following stubbed files were added.
14935           Dialogs are currently being implemented by contributors and are only
14936           short-term place holders.
14937         * ColorDialog.cs: Initial check-in (minmal stub)
14938         * DataGrid.cs: Initial check-in (minimal stub)
14939         * DataGridLineStyle.cs: Initial check-in (minimal stub)
14940         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
14941         * DataGridTableStyle.cs: Initial check-in (minimal stub)
14942         * FontDialog.cs: Initial check-in (minimal stub)
14943         * FileDialog.cs: Initial check-in (minimal stub)
14944         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
14945         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
14946         * OpenFileDialog: Initial check-in (minimal stub)
14947         * IComponentEditorPageSite.cs: Initial check-in
14948         * Splitter.cs: Initial check-in (for Jackson)
14949         * SplitterEventArgs.cs: Initial check-in (for Jackson)
14950         * SplitterEventHandler.cs: Initial check-in (for Jackson)
14951         * TextBox.cs: Initial check-in; still needs some wiring to
14952           TextControl backend
14953         * Form.cs: Implemented ControlBox property
14954         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
14955         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
14956         * TextControl.cs: Added selection functionality; added todo header
14957         * TextBoxBase.cs:
14958           - Implemented Lines property
14959           - Implemented TextHeight property
14960           - Implemented SelectedText property
14961           - Implemented SelectionLength property
14962           - Implemented SelectAll method
14963           - Implemented ToString method
14964           - Removed and cleaned up some debug code
14965           - Implemented (still buggy) mouse text selection
14966
14967 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
14968
14969         * ComboBox.cs: Complete DropDownList implementation, fixes.
14970
14971 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
14972
14973         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
14974         * ComboBoxStyle.cs: ComboBoxStyle enum
14975         * ComboBox.cs: Initial work on ComboBox control
14976
14977 2004-12-21  Peter Bartok  <pbartok@novell.com>
14978
14979         * Control.cs (ctor, CreateParams): Moved setting of is_visible
14980           forward so that anything that creates a window gets the default,
14981           also no longer uses Visible property in CreateParams to avoid
14982           walking up the parent chain and possibly get the wrong visible
14983           status. Fixed IsVisible to no longer walk up to the parent.
14984
14985 2004-12-21  Peter Bartok  <pbartok@novell.com>
14986
14987         * Form.cs (ShowDialog): Unset modality for the proper window
14988  
14989 2004-12-20  Peter Bartok  <pbartok@novell.com>
14990
14991         * CommonDialog.cs: Initial check-in
14992
14993 2004-12-20  Peter Bartok  <pbartok@novell.com>
14994
14995         * Control.cs (Visible): Now uses the parent window instead of the
14996           client area window for the property
14997
14998         * Form.cs
14999           - ShowDialog(): Now uses the proper window for modality
15000           - The default visibility state for the form parent is now false. This
15001             will prevent the user from seeing all the changes to the form and
15002             its controls before the application hits Application.Run()
15003           - Removed some stale commented out code
15004
15005         * NativeWindow.cs:
15006           - Added FindWindow() method to have a method to check for existence
15007             of a window handle
15008           - Added ability to override default exception handling (for example
15009             when debugging with VS.Net; to do this the ExternalExceptionHandler
15010             define must be set
15011           - Removed some useless debug output
15012
15013         * XplatUIX11.cs:
15014           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
15015             not working as expected
15016           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
15017             property to allow switching back to the modal window if focus is
15018             given to another one of our windows (Application Modal)
15019           - Now only sets override_redirect if we create a window
15020             without WS_CAPTION
15021           - Moved EventMask selection before mapping of newly created window
15022             so we can catch the map event as well
15023           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
15024           - Added various Atom related DllImports
15025           - Implemented Exit() method
15026           - .ctor() : No longer shows window if WS_VISIBLE is not defined
15027             in the CreateParams
15028
15029         * MessageBox.cs: Now properly deals with the FormParent window by
15030           providing an override the FormParent CreateParams property to
15031           set as POPUP instead of OVERLAPPED window.
15032
15033 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
15034
15035         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
15036         Minor code cleanup.
15037
15038 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
15039         
15040         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
15041
15042 2004-12-18  Peter Bartok  <pbartok@novell.com>
15043
15044         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
15045           implementing SetModal() method
15046
15047 2004-12-18  Peter Bartok  <pbartok@novell.com>
15048
15049         * X11Structs.cs (XGCValues): Fixed type of function element
15050         * XplatUI.cs: Added ScrollWindow() method
15051         * XplatUIDriver.cs: Added ScrollWindow() abstract
15052         * XplatUIWin32.cs: Implemented ScrollWindow() method
15053         * XplatUIX11.cs: Implemented ScrollWindow() method
15054         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
15055
15056 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
15057
15058         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
15059         Some more keyboard support (INCOMPLETE)
15060
15061 2004-12-17  Peter Bartok  <pbartok@novell.com>
15062
15063         * TextControl.cs:
15064         - Added color attribute to line tags.
15065         - Added color argument to all functions dealing with tags
15066         - Added color argument support to various functions
15067         - Fixed miss-calculation of baseline/shift in certain circumstances
15068
15069         * TextBoxBase.cs: Added new color option to test code
15070
15071 2004-12-17  Jackson Harper  <jackson@ximian.com>
15072
15073         * TreeNode.cs:
15074         * MonthCalendar.cs: Signature fixes
15075
15076 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
15077
15078         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
15079         keyboard event moved it.  Create a new graphics context for each paint resolves this
15080
15081 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
15082
15083         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
15084         Make caret exist and go blink blink.  Initial keyboard support.
15085         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
15086         works.
15087
15088 2004-12-17  Jackson Harper  <jackson@ximian.com>
15089
15090         * XplatUIStructs.cs: Updated set of virtual keycodes.
15091         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
15092
15093 2004-12-17  Jackson Harper  <jackson@ximian.com>
15094
15095         * XplatUIX11.cs: Prune old keyboard code.
15096
15097 2004-12-17  Jackson Harper  <jackson@ximian.com>
15098
15099         * XplatUIX11.cs: When generating mouse wparams get the modifier
15100         keys from the ModifierKeys property.
15101
15102 2004-12-17  Jackson Harper  <jackson@ximian.com>
15103
15104         * X11Keyboard.cs: Send up/down input when generating
15105         messages. Remove some unused vars.
15106
15107 2004-12-17  Jackson Harper  <jackson@ximian.com>
15108
15109         * TabControl.cs:
15110         * TreeView.cs: get rid of warnings.
15111
15112 2004-12-17  Jackson Harper  <jackson@ximian.com>
15113
15114         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
15115
15116 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
15117
15118         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
15119           CheckedListBox.cs: Implementation
15120
15121 2004-12-17  Peter Bartok  <pbartok@novell.com>
15122
15123         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
15124
15125 2004-12-16  Peter Bartok  <pbartok@novell.com>
15126
15127         * TextControl.cs:
15128           - InsertCharAtCaret(): Fixed start pos fixup
15129           - CaretLine_get: No longer derives the line from the tag, the tag
15130             could be stale if lines in the document have been added or deleted
15131           - RebalanceAfterDelete(): Fixed bug in balancing code
15132           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
15133           - Line.Streamline(): Now can also elminate leading empty tags
15134           - DumpTree(): Added a few more tests and prevented exception on
15135             uninitialized data
15136           - Added Debug section for Combining lines
15137           - Delete(): Now copies all remaining properties of a line
15138           
15139         * TextBoxBase.cs:
15140           - Left mousebutton now sets the caret (and middle button still acts
15141             as formatting tester, which must go away soon)
15142           - Added Debug section for Deleting/Combining lines
15143           - Fixed calculations for UpdateView after Combining lines
15144
15145 2004-12-16  Peter Bartok  <pbartok@novell.com>
15146
15147         * TextControl.cs: Now properly aligns text on a baseline, using the
15148           new XplatUI.GetFontMetrics() method. Simplified several calculations
15149         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
15150           defined
15151
15152 2004-12-16  Peter Bartok  <pbartok@novell.com>
15153
15154         * XplatUI.cs: Added GetFontMetrics() method
15155         * XplatUIDriver.cs: Added GetFontMetrics() abstract
15156         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
15157           into libgdiplus, our private GetFontMetrics function
15158         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
15159         * XplatUIWin32.cs: Implemented GetFontMetrics() method
15160
15161 2004-12-16  Jackson Harper  <jackson@ximain.com>
15162
15163         * XplatUIStruct.cs: Add enum for dead keys
15164         * X11Keyboard.cs: Map and unmap dead keys.
15165
15166 2004-12-16  Jackson Harper  <jackson@ximian.com>
15167
15168         * X11Keyboard.cs: Detect and use the num lock mask.
15169
15170 2004-12-16  Peter Bartok  <pbartok@novell.com>
15171
15172         * Control.cs (CreateGraphics): Added check to make sure the
15173           handle of the window exists before calling Graphics.FromHwnd()
15174
15175 2004-12-16  Peter Bartok  <pbartok@novell.com>
15176
15177         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
15178           contains a lot of code that's not supposed to be there for the
15179           real thing, but required for developing/testing the textbox
15180           backend.
15181
15182 2004-12-16  Peter Bartok  <pbartok@novell.com>
15183
15184         * TextControl.cs:
15185         - Fixed Streamline method
15186         - Added FindTag method to Line
15187         - Added DumpTree method for debugging
15188         - Added DecrementLines() method for deleting lines
15189         - Fixed UpdateView to update the cursor to end-of-line on single-line
15190           updates
15191         - Added PositionCaret() method
15192         - Fixed MoveCaret(LineDown) to move into the last line, too
15193         - Added InsertChar overload
15194         - Fixed InsertChar tag offset calculations
15195         - Added DeleteChar() method
15196         - Added Combine() method for folding lines
15197         - Fixed Delete() method, no longer allocates wasted Line object and
15198           now copies all properties when swapping nodes
15199         - Delete() method now updates document line counter
15200
15201 2004-12-15  Jackson Harper  <jackson@ximian.com>
15202
15203         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
15204         * X11Keyboard.cs: Expose the currently selected modifier keys
15205         through a property.
15206
15207 2004-12-15  Peter Bartok  <pbartok@novell.com>
15208
15209         * TextControl.cs: Initial check-in. Still incomplete
15210
15211 2004-12-15  Jackson Harper  <jackson@ximian.com>
15212
15213         * TreeNode.cs:
15214         * TreeView.cs: Fix build on csc (second time today ;-))
15215
15216 2004-12-15  Jackson Harper  <jackson@ximian.com>
15217
15218         * TreeView.cs: Store the treenodes plus/minus box bounds when it
15219         is calculated and use this for click testing.
15220         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
15221
15222 2004-12-15  Jackson Harper  <jackson@ximian.com>
15223
15224         * TreeView.cs: Pass the nodes image index to the image list when
15225         drawing that image.
15226
15227 2004-12-15  Jackson Harper  <jackson@ximian.com>
15228
15229         * X11Keyboard.cs: Set messages hwnd.
15230         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
15231         post_message calls.
15232
15233 2004-12-15  Jackson Harper  <jackson@ximian.com>
15234
15235         * X11Keyboard.cs: Fix to compile with csc.
15236         
15237 2004-12-15  Jackson Harper  <jackson@ximian.com>
15238
15239         * X11Structs.cs: Add key mask values
15240         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
15241         * X11Keyboard.cs: New file - Extrapolates and interpolates key
15242         down/up foo into WM_CHAR foo
15243         * KeyboardLayouts.cs: Common keyboard layouts
15244         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
15245         post messages into the main queue.
15246
15247 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
15248
15249         * Button.cs: implement ProcessMnemonic
15250         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
15251           brushes everytime
15252         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
15253         * ButtonBase.cs: Show HotkeyPrefix (not the &)
15254
15255 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
15256         
15257         * MonthCalendar.cs: Implemented click-hold for next/previous month
15258           and date selection
15259           
15260 2004-12-11  Peter Bartok  <pbartok@novell.com>
15261
15262         * X11Structs.cs:
15263           - Added XKeyboardState (moved from XplatUIX11.cs)
15264           - Added XCreateGC related enums and structures
15265           - Added GXFunction for XSetFunction
15266
15267         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
15268
15269         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
15270           CaretVisible() calls
15271
15272         * ToolTip.cs: Added code to prevent stealing focus from app windows
15273
15274         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
15275           DestroyCaret, SetCaretPos and CaretVisible)
15276
15277         * XplatUIX11.cs:
15278           - Added implementation for caret functions
15279           - Moved hover variables into a struct, to make it a bit easier
15280             on the eyes and to debug
15281           - Removed XKeyboardState (moved to XplatUIX11.cs)
15282           - Moved Keyboard properties into the properties region
15283
15284         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
15285           call to get a graphics context for our control
15286
15287         * XplatUIOSX.cs: Added empty overrides for the new caret functions
15288
15289         * TreeView.cs: Fixed bug. No matter what color was set it would always
15290           return SystemColors.Window
15291
15292         * XplatUIWin32.cs: Implemented caret overrides
15293
15294 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
15295
15296         * ListBox.cs: fire events, implement missing methods and properties,
15297         sorting.
15298
15299 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
15300
15301         * MonthCalendar.cs: invalidation bug fixing
15302         * ThemeWin32Classic.cs: paint fixing
15303
15304 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
15305
15306         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
15307         prepare the CGContextRef there now.
15308
15309 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
15310
15311         * MonthCalendar.cs:
15312           - optimisationL only invalidate areas that have changed
15313         * ThemeWin32Classic.cs:
15314           - only paint parts that intersect with clip_area
15315
15316 2004-12-09  Peter Bartok  <pbartok@novell.com>
15317
15318         * Application.cs: Undid changes from r37004 which cause problems
15319         on X11
15320
15321 2004-12-09  Ravindra  <rkumar@novell.com>
15322
15323         * ToolBar.cs: Added support for displaying ContextMenu
15324         attached to a button on ToolBar.
15325         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
15326         property.
15327
15328 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
15329
15330         * Label.cs: autosize works in text change and removes unnecessary
15331         invalidate
15332
15333 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
15334
15335         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
15336         remove warnings
15337
15338 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
15339
15340         * XplatUIOSX.cs: Added mouse move/click/grab support
15341         Remove some debugging WriteLines not needed anymore.
15342         Add window resizing/positioning.
15343         Fix visibility on reparenting.
15344
15345 2004-12-08  Peter Bartok  <pbartok@novell.com>
15346
15347         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
15348
15349 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
15350
15351         * XplatUIOSX.cs: Initial checkin
15352         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
15353
15354 2004-12-03  Ravindra <rkumar@novell.com>
15355
15356         * ListView.cs: Added some keybindings and fixed scrolling.
15357         ScrollBars listen to ValueChanged event instead of Scroll
15358         Event. This would let us take care of all changes being
15359         done in the scrollbars' values programmatically or manually.
15360         * ListView.cs (CanMultiselect): Added a check for shift key.
15361         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
15362         * ListViewItem.cs (Clone): Fixed. We need to make a copy
15363         of ListViewSubItemCollection as well.
15364
15365 2004-12-06  Peter Bartok <pbartok@novell.com>
15366
15367         * Control.cs (Parent): Added check and exception to prevent
15368         circular parenting
15369
15370 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
15371
15372         * ListBox.cs: implemented clipping, selection single and multiple,
15373         bug fixing
15374
15375 2004-12-03  Ravindra <rkumar@novell.com>
15376
15377         * ListView.cs (ListView_KeyDown):
15378         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
15379         when CTRL key is pressed.
15380         * ListViewItem.cs (Selected): Fixed setting the property.
15381
15382 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
15383
15384         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
15385
15386         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
15387         MinimizeBox, ShowInTaskbar, TopMost properties.
15388
15389         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
15390         will be implemented).
15391
15392 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
15393
15394         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
15395
15396         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
15397         tests.
15398         
15399         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
15400         
15401         * TreeView.cs: BackColor is Colors.Window.
15402
15403 2004-12-01  Jackson Harper  <jackson@ximian.com>
15404
15405         * TreeView.cs: When resizing the tree if the user is making it
15406         smaller we don't get expose events, so we need to handle adding
15407         the horizontal scrollbar in the size changed handler as well as
15408         the expose handler.
15409
15410 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
15411
15412         * DrawItemState.cs: fixes wrong enum values
15413
15414 2004-12-01  Jackson Harper  <jackson@ximian.com>
15415
15416         * TreeView.cs: Resize the hbar as well as the vbar on resize.
15417
15418 2004-12-01  Jackson Harper  <jackson@ximian.com>
15419
15420         * NodeLabelEditEventArgs.cs:
15421         * NodeLabelEditEventHandler.cs:
15422         * OpenTreeNodeEnumerator.cs:
15423         * TreeNode.cs:
15424         * TreeNodeCollection.cs:
15425         * TreeView.cs:
15426         * TreeViewAction.cs:
15427         * TreeViewCancelEventArgs.cs:
15428         * TreeViewCancelEventHandler.cs:
15429         * TreeViewEventArgs.cs:
15430         * TreeViewEventHandler.cs: Initial implementation.
15431
15432 2004-12-01  Ravindra <rkumar@novell.com>
15433
15434         * ListView.cs (CalculateListView): Fixed scrolling related
15435         calculations. Also, removed some debug statements from other
15436         places.
15437         * ListViewItem.cs: Changed access to 'selected' instance variable
15438         from private to internal.
15439         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
15440
15441 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
15442
15443         * ThemeWin32Classic.cs: remove cache of brush and pens for
15444         specific controls and use the global system, fixes scrollbutton
15445         bugs (for small sizes, disabled, etc)
15446         
15447         * ScrollBar.cs: does not show the thumb for very small controls
15448         (as MS) and allow smaller buttons that the regular size
15449
15450 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
15451
15452         * UpDownBase.cs: Add abstract methods for the interface.
15453         Add new virtual methods (need to be hooked up to TextEntry when it
15454         exists).
15455         Add override methods for most features.
15456         Computes the size, forces the height of the text entry.
15457
15458         * NumericUpDown.cs: Put here the current testing code.
15459
15460         * Set eol-style property on all files that do not have mixed line
15461         endings, to minimize the future problems.  There are still a few
15462         files with mixed endings, and someone should choose whether they
15463         want to move it or not.
15464
15465 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
15466
15467         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
15468         System.Colors
15469         
15470 2004-11-30  Ravindra <rkumar@novell.com>
15471
15472         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
15473         drawing and replaced use of SystemColors by theme colors.
15474         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
15475         * ListView.cs (ListViewItemCollection.Add): Throw exception when
15476         same ListViewItem is being added more than once.
15477
15478 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
15479
15480         * MonthCalendar.cs:
15481           - ControlStyles love to make the control not flicker
15482           
15483 2004-11-30  Peter Bartok  <pbartok@novell.com>
15484
15485         * CharacterCasing.cs: Added
15486
15487 2004-11-29  Peter Bartok  <pbartok@novell.com>
15488
15489         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15490           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
15491           I am removing these files as they conflict with already completed
15492           work. While it is fantastic to get contributions to MWF, I
15493           respectfully ask that everyone please coordinate their contributions
15494           through mono-winforms-list or #mono-winforms at this time. We're
15495           explicitly avoiding stubbing and don't want controls that don't have
15496           their basic functionality implemented in svn. Please also see
15497           http://www.mono-project.com/contributing/winforms.html
15498
15499
15500 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
15501
15502         * Application.cs (ModalRun): Don't hang after exit.
15503
15504         * Theme.cs: New TreeViewDefaultSize property.
15505
15506         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
15507         with less hardcoded SystemColors constant.
15508         Implemented TreeViewDefaultSize.
15509
15510         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15511         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
15512
15513
15514 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
15515
15516         * MonthCalendar.cs:
15517           - Fix NextMonthDate and PrevMonthDate click moving calendar
15518
15519 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
15520
15521         * MonthCalendar.cs:
15522           - Fix usage of ScrollChange Property when scrolling months
15523
15524 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
15525
15526         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
15527          - Fixes menu destroying
15528          - Support adding and removing items on already created menus
15529
15530 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
15531
15532         * MonthCalendar.cs:
15533           - Re-worked all bolded dates handling to match win32
15534         * ThemeWin32Classic.cs:
15535           - Fixed rendering with bolded dates
15536
15537 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
15538
15539         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
15540         - Horizontal scroolbar
15541         - Multicolumn
15542         - Fixes
15543
15544
15545 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
15546
15547         * MonthCalendar.cs:
15548           - Fix Usage of MaxSelectionCount from SelectionRange
15549           - Fixed Shift + Cursor Selection
15550           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
15551           - Fixed normal cursor selection to be compat with win32
15552           - Fixed Shift + Mouse Click selection
15553
15554 2004-11-24  Peter Bartok <pbartok@novell.com>
15555
15556         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
15557         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
15558         * XplatUIX11.cs:
15559           - CreatedKeyBoardMsg now updates keystate with Alt key
15560           - Added workaround for timer crash to CheckTimers, Jackson will
15561             develop a proper fix and check in later
15562           - Implemented DispatchMessage
15563           - Removed calling the native window proc from GetMessage (call
15564             now moved to DispatchMessage)
15565
15566         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
15567           the keydata (Fixes bug #69831)
15568
15569         * XplatUIWin32.cs:
15570           - (DispatchMessage): Switched to return IntPtr
15571           - Added DllImport for SetFocus
15572
15573 2004-11-24  Ravindra <rkumar@novell.com>
15574
15575         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
15576         background drawing.
15577         * ListViewItem.cs: Fixed various properties, calculations
15578         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
15579         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
15580         and some internal properties. Fixed MouseDown handler and Paint
15581         method.
15582
15583 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15584
15585         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
15586
15587 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15588
15589         * ContainerControl.cs: correct accidental check in of local changes
15590
15591 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15592
15593         * ThemeWin32Classic.cs:
15594                 - Fixed Drawing Last month in grid (sometimes not showing)
15595         * MonthCalendar.cs:
15596                 - Fixed title width calculation bug (makeing title small)
15597
15598 2004-11-23  Peter Bartok <pbartok@novell.com>
15599
15600         * XplatUIX11.cs:
15601           - Added generation of WM_MOUSEHOVER event
15602           - Added missing assignment of async_method atom
15603           - Fixed WM_ERASEBKGND; now only redraws the exposed area
15604
15605 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
15606
15607         * ThemeWin32Classic.cs:
15608                 - Fixed Drawing of today circle when showtodaycircle not set
15609                 - fixed drawing of first and last month in the grid (gay dates)
15610         * MonthCalendar.cs:
15611                 - Fixed Drawing of today circle
15612                 - Fixed drawing of grady dates
15613                 - Fixed HitTest for today link when ShowToday set to false
15614                 - Fixed DefaultSize to obey ShowToday
15615
15616 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
15617
15618         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
15619         * System.Windows.Forms/Theme.cs
15620         * MonthCalendar.cs: added for MonthCalendar
15621         * SelectionRange.cs: added for MonthCalendar
15622         * Day.cs: added for MonthCalendar: added for MonthCalendar
15623         * DateRangeEventArgs.cs: added for MonthCalendar
15624         * DateRangeEventHandler.cs: added for MonthCalendar
15625
15626 2004-11-22  Ravindra <rkumar@novell.com>
15627
15628         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
15629         property.
15630
15631 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
15632
15633         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
15634         event handler.
15635         
15636         * NumericUpDown.cs: Added new implementation.
15637         * UpDownBase.cs: Added new implementation.
15638
15639         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
15640         implementations.
15641         
15642         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
15643         implementations.
15644
15645         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
15646         methods.
15647
15648 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
15649
15650         * Timer.cs  (Dispose): Should call the base dispose when
15651         overriding.
15652
15653 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
15654
15655         * ScrollBar.cs: updates thumb position when max, min or increment
15656         is changed
15657
15658 2004-11-21  Ravindra <rkumar@novell.com>
15659
15660         * ListView.cs: Implemented item selection, activation and
15661         column header style. Fixed properties to do a redraw, if
15662         required. Added support for MouseHover, DoubleClick, KeyDown
15663         and KeyUp event handling and some minor fixes.
15664         * ListViewItem.cs: Fixed constructor.
15665         * ThemeWin32Classic.cs: Improved drawing for ListView.
15666
15667 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
15668
15669         * ThemeWin32Classic.cs: initial listbox drawing code
15670         * DrawMode.cs: new enumerator
15671         * ListControl.cs: stubbed class
15672         * ListBox.cs: initial implementation
15673         * Theme.cs: new methods definitions
15674         * SelectionMode.cs: new enumerator
15675
15676 2004-11-17  Peter Bartok  <pbartok@novell.com>
15677
15678         * XplatUIWin32.cs: Added double-click events to the class style
15679         * Control.cs (WndProc):
15680           - Added handling of click-count to MouseDown/ MouseUp events.
15681           - Added handling of middle and right mouse buttons
15682           - Removed old debug code
15683
15684 2004-11-17  Jackson Harper  <jackson@ximian.com>
15685
15686         * XplatUIX11.cs: Use the new Mono.Unix namespace.
15687
15688 2004-11-17  Ravindra <rkumar@novell.com>
15689
15690         * ListView.cs: Added event handling for MouseMove/Up/Down.
15691         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
15692         * ThemeWin32Classic.cs: We need to clear the graphics context and
15693         draw column header in a proper state.
15694
15695
15696 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
15697
15698         *  Menu.cs: fixes signature
15699
15700 2004-11-16  Peter Bartok  <pbartok@novell.com>
15701
15702         * XplatUIX11.cs (GetMessage): Implemented generation of
15703           double click mouse messages
15704
15705 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
15706
15707         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
15708         not by menu
15709
15710 2004-11-11  Peter Bartok  <pbartok@novell.com>
15711
15712         * HandleData.cs: Added Visible property
15713         * XplatUIX11.cs (IsVisible): Now uses Visible property from
15714           HandleData
15715         * XplatUIX11.cs: Removed old debug leftovers
15716         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
15717         * Control.cs (WndProc): Removed old debug leftovers,
15718           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
15719           needed WM_SIZE handling
15720
15721 2004-11-11  Jackson Harper  <jackson@ximian.com>
15722
15723         * OwnerDrawPropertyBag.cs:
15724         * TreeViewImageIndexConverter.cs: Initial implementation
15725
15726 2004-11-10  Jackson Harper  <jackson@ximian.com>
15727
15728         * ThemeWin32Classic.cs:
15729         * TabControl.cs: instead of moving tabs by the slider pos just
15730         start drawing at the tab that is offset by the slider. This way
15731         scrolling always moves by exactly one tab.
15732
15733 2004-11-10  Jackson Harper  <jackson@ximian.com>
15734
15735         * TabControl.cs: You can only scroll left when the slider has
15736         already ben moved right.
15737         
15738 2004-11-10  Jackson Harper  <jackson@ximian.com>
15739
15740         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
15741         the clip area.
15742         
15743 2004-11-10  Jackson Harper  <jackson@ximian.com>
15744
15745         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
15746         clip area.
15747         
15748 2004-11-09  Jackson Harper  <jackson@ximian.com>
15749
15750         * TabControl.cs (CalcXPos): New helper method so we can determine
15751         the proper place to start drawing vertical tabs.
15752         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
15753         
15754 2004-11-09  Jackson Harper  <jackson@ximian.com>
15755
15756         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
15757         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
15758         and Bottom, left and right are illegal values for this and
15759         multiline is enabled when the alignment is set to left or right.
15760         (DrawTab): Each alignment block should draw the text itself now
15761         because Left requires special love. Also add rendering for Left
15762         aligned tabs.
15763         
15764 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
15765
15766         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
15767         does not destroy the windows, removes debugging messages
15768
15769 2004-11-09  jba  <jba-mono@optusnet.com.au>
15770
15771         * ThemeWin32Classic.cs
15772         (DrawButtonBase): Fix verticle text rect clipping in windows
15773         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15774         rendering and incorrect text rect clipping
15775         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15776         rendering and incorrect text rect clipping
15777         
15778 2004-11-08  Jackson Harper  <jackson@ximian.com>
15779
15780         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
15781         bottom when they are bottom aligned so the bottoms of the tabs get
15782         displayed.
15783         * TabControl.cs (DropRow): Move rows up instead of down when the
15784         tab control is bottom aligned.
15785
15786 2004-11-08 13:59  pbartok
15787
15788         * XplatUIX11.cs:
15789           - Added handling for various window styles
15790           - Added handling for popup windows
15791           - Added SetTopmost handling
15792
15793 2004-11-08 13:55  pbartok
15794
15795         * XplatUIWin32.cs:
15796           - Added argument to SetTopmost method
15797           - Fixed broken ClientToScreen function
15798
15799 2004-11-08 13:53  pbartok
15800
15801         * XplatUIStructs.cs:
15802           - Added missing WS_EX styles
15803
15804 2004-11-08 13:53  pbartok
15805
15806         * XplatUI.cs, XplatUIDriver.cs:
15807           - Added argument to SetTopmost
15808
15809 2004-11-08 13:52  pbartok
15810
15811         * X11Structs.cs:
15812           - Added XSetWindowAttributes structure
15813           - Improved XWindowAttributes structure
15814           - Added SetWindowValuemask enum
15815           - Added window creation arguments enum
15816           - Added gravity enum
15817           - Added Motif hints structure
15818           - Added various Motif flags and enums
15819           - Added PropertyMode enum for property functions
15820
15821 2004-11-08 13:50  pbartok
15822
15823         * Form.cs:
15824           - Fixed arguments for updated SetTopmost method
15825
15826 2004-11-08 13:49  pbartok
15827
15828         * ToolTip.cs:
15829           - Fixed arguments for updated SetTopmost function
15830           - Fixed usage of PointToClient
15831
15832 2004-11-08 13:44  pbartok
15833
15834         * MenuAPI.cs:
15835           - Added Clipping of children and siblings
15836
15837 2004-11-08 13:41  pbartok
15838
15839         * MainMenu.cs:
15840           - Removed SetMenuBarWindow call. We do this in Form.cs
15841
15842 2004-11-08 13:40  jackson
15843
15844         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
15845           scrolling jimmi in the correct location with bottom aligned tabs
15846
15847 2004-11-08 13:36  pbartok
15848
15849         * ContainerControl.cs:
15850           - Implemented BindingContext
15851           - Implemented ParentForm
15852
15853 2004-11-08 12:46  jackson
15854
15855         * TabControl.cs: Put bottom rendered tabs in the right location
15856
15857 2004-11-08 07:15  jordi
15858
15859         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
15860           removes dead code
15861
15862 2004-11-05 17:30  jackson
15863
15864         * TabControl.cs: When selected tabs are expanded make sure they
15865           don't go beyond the edges of the tab control
15866
15867 2004-11-05 14:57  jackson
15868
15869         * TabControl.cs: Reset show_slider so if the control is resized to
15870           a size where it is no longer needed it's not displayed anymore
15871
15872 2004-11-05 13:16  jackson
15873
15874         * TabControl.cs: Make tab pages non visible when added to the
15875           control
15876
15877 2004-11-05 12:42  jackson
15878
15879         * TabControl.cs: Implement SizeMode.FillToRight
15880
15881 2004-11-05 12:16  jackson
15882
15883         * Control.cs: Do not call CreateHandle if the handle is already
15884           created
15885
15886 2004-11-05 11:46  jackson
15887
15888         * TabControl.cs: Remove superflous call to CalcTabRows
15889
15890 2004-11-05 09:07  jackson
15891
15892         * XplatUIX11.cs: Update for Mono.Posix changes
15893
15894 2004-11-05 07:00  ravindra
15895
15896         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
15897           scrolling.
15898
15899 2004-11-04 22:47  jba
15900
15901         * ThemeWin32Classic.cs:
15902           - Fix Button rendering for FlatStyle = Flat or Popup
15903           - Fix RadioButton and CheckBox rendering when Appearance = Button
15904             (normal and flatstyle).
15905           - Correct outer rectangle color when drawing focus rectangle
15906           - Adjust button bounds to be 1 px smaller when focused
15907           - Make button not draw sunken 3d border when pushed (windows compat)
15908           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
15909           - Offset the text in RadioButton and Checkbox when being rendered as
15910           a button.
15911           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
15912           radiobuttons
15913           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
15914           - Fixed disabled text rendering for normally rendered radiobuttons
15915
15916 2004-11-04 10:26  jackson
15917
15918         * TabControl.cs: Recalculate tab rows when resizing
15919
15920 2004-11-04 07:47  jordi
15921
15922         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
15923           collection completion, drawing issues, missing features
15924
15925 2004-11-04 05:03  ravindra
15926
15927         * ScrollBar.cs:
15928                 - We need to recalculate the Thumb area when
15929                 LargeChange/maximum/minimum values are changed.
15930           - We set the 'pos' in UpdatePos() method to minimum, if it's less
15931                 than minimum. This is required to handle the case if large_change is
15932                 more than max, and use LargeChange property instead of large_change
15933                 variable.
15934           - We return max+1 when large_change is more than max, like MS does.
15935
15936 2004-11-04 04:29  ravindra
15937
15938         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
15939                 - Changed default value signatures (prefixed all with ListView).
15940                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
15941                 ListView.
15942           - Fixed calculations for ListViewItem and implemented Clone()
15943           method.
15944
15945 2004-11-04 04:26  ravindra
15946
15947         * Theme.cs, ThemeWin32Classic.cs:
15948                 - Changed default ListView values signatures (prefixed all with
15949                 ListView).
15950           - Fixed default size values for VScrollBar and HScrollBar.
15951                 - Fixed DrawListViewItem method.
15952
15953 2004-11-04 04:05  ravindra
15954
15955         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
15956
15957 2004-11-04 04:04  ravindra
15958
15959         * ImageList.cs: Implemented the missing overload for Draw method.
15960
15961 2004-11-03 19:29  jackson
15962
15963         * TabControl.cs: Handle dropping rows on selection properly
15964
15965 2004-11-03 11:59  jackson
15966
15967         * TabControl.cs: remove debug code
15968
15969 2004-11-03 11:52  jackson
15970
15971         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
15972           the scrolly widgerywoo
15973
15974 2004-11-02 13:52  jackson
15975
15976         * TabControl.cs: Resize the tab pages and tabs when the tab control
15977           is resized
15978
15979 2004-11-02 13:40  jackson
15980
15981         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
15982           selected tab to the bottom
15983
15984 2004-11-02 13:39  jackson
15985
15986         * TabPage.cs: Store the tab pages row
15987
15988 2004-11-02 12:33  jordi
15989
15990         * MenuItem.cs: fixes handle creation
15991
15992 2004-11-02 11:42  jackson
15993
15994         * TabControl.cs: signature fix
15995
15996 2004-11-02 08:56  jackson
15997
15998         * TabControl.cs: Calculate whether the tab is on an edge properly.
15999           Remove top secret debugging code
16000
16001 2004-11-01 19:57  jackson
16002
16003         * TabControl.cs: Add click handling, and proper sizing
16004
16005 2004-11-01 19:47  jackson
16006
16007         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
16008           tab controls
16009
16010 2004-11-01 19:39  jackson
16011
16012         * TabPage.cs: add internal property to store the bounds of a tab
16013           page
16014
16015 2004-10-30 04:23  ravindra
16016
16017         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
16018           values.
16019
16020 2004-10-30 04:21  ravindra
16021
16022         * ListView.cs, ListViewItem.cs: Added support for scrolling and
16023           fixed calculations.
16024
16025 2004-10-30 03:06  pbartok
16026
16027         * XplatUIX11.cs:
16028           - Removed extension of DllImported libs
16029
16030 2004-10-29 09:55  jordi
16031
16032         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
16033           navigation, itemcollection completion, menu fixes
16034
16035 2004-10-27 22:58  pbartok
16036
16037         * XplatUIX11.cs:
16038           - Now throws a nice error message when no X display could be opened
16039
16040 2004-10-26 13:51  jordi
16041
16042         * ListView.cs: removes warning
16043
16044 2004-10-26 03:55  ravindra
16045
16046         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
16047           ThemeWin32Classic.cs: Some formatting for my last checkins.
16048
16049 2004-10-26 03:36  ravindra
16050
16051         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
16052           control and default values.
16053
16054 2004-10-26 03:35  ravindra
16055
16056         * Theme.cs: Added some default values for ListView control.
16057
16058 2004-10-26 03:33  ravindra
16059
16060         * ToolBar.cs: ToolBar should use the user specified button size, if
16061           there is any. Added a size_specified flag for the same.
16062
16063 2004-10-26 03:33  ravindra
16064
16065         * ColumnHeader.cs: Added some internal members and calculations for
16066           ColumnHeader.
16067
16068 2004-10-26 03:32  ravindra
16069
16070         * ListViewItem.cs: Calculations for ListViewItem.
16071
16072 2004-10-26 03:31  ravindra
16073
16074         * ListView.cs: Added some internal members and calculations for
16075           ListView.
16076
16077 2004-10-22 13:31  jordi
16078
16079         * MenuAPI.cs: speedup menus drawing
16080
16081 2004-10-22 13:16  jackson
16082
16083         * XplatUIX11.cs: Make sure to update exposed regions when adding an
16084           expose event
16085
16086 2004-10-22 11:49  jackson
16087
16088         * Control.cs: oops
16089
16090 2004-10-22 11:41  jackson
16091
16092         * Control.cs: Check to see if the window should have its background
16093           repainted by X when drawing.
16094
16095 2004-10-22 11:31  jackson
16096
16097         * XplatUIX11.cs: When invalidating areas only use XClearArea if
16098           clear is true, this way we do not get flicker from X repainting the
16099           background
16100
16101 2004-10-22 11:28  jackson
16102
16103         * XEventQueue.cs: Queue properly
16104
16105 2004-10-21 09:38  jackson
16106
16107         * XEventQueue.cs: Fix access modifier
16108
16109 2004-10-21 09:36  jackson
16110
16111         * XEventQueue.cs: Don't loose messages
16112
16113 2004-10-21 09:22  jackson
16114
16115         * XEventQueue.cs: Don't loose messages
16116
16117 2004-10-20 04:15  jordi
16118
16119         * BootMode.cs: enum need it by SystemInfo
16120
16121 2004-10-19 21:58  pbartok
16122
16123         * XplatUIWin32.cs:
16124           - Small sanity check
16125
16126 2004-10-19 21:56  pbartok
16127
16128         * Form.cs:
16129           - Added private FormParentWindow class which acts as the container
16130             for our form and as the non-client area where menus are drawn
16131           - Added/Moved required tie-ins to Jordi's menus
16132           - Fixed/Implemented the FormStartPosition functionality
16133
16134 2004-10-19 21:52  pbartok
16135
16136         * Control.cs:
16137           - Removed unneeded locals
16138           - Added code to all size and location properties to understand and
16139             deal with the parent container of Form
16140
16141 2004-10-19 21:33  pbartok
16142
16143         * Application.cs:
16144           - Fixed to deal with new Form subclasses for menus
16145
16146 2004-10-19 17:48  jackson
16147
16148         * XEventQueue.cs: commit correct version of file
16149
16150 2004-10-19 16:50  jackson
16151
16152         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
16153
16154 2004-10-19 16:15  jordi
16155
16156         * MenuAPI.cs: MenuBarCalcSize returns the height
16157
16158 2004-10-19 08:31  pbartok
16159
16160         * Control.cs:
16161           - Added missing call to PreProcessMessage before calling OnXXXKey
16162           methods
16163
16164 2004-10-19 00:04  ravindra
16165
16166         * ToolTip.cs: Fixed constructor.
16167
16168 2004-10-18 09:31  jordi
16169
16170         * MenuAPI.cs: menuitems in menubars do not have shortcuts
16171
16172 2004-10-18 09:26  jordi
16173
16174         * MenuItem.cs: fixes MenuItem class signature
16175
16176 2004-10-18 08:56  jordi
16177
16178         * MenuAPI.cs: prevents windows from showing in the taskbar
16179
16180 2004-10-18 00:28  ravindra
16181
16182         * ToolTip.cs: Suppressed a warning message.
16183
16184 2004-10-18 00:27  ravindra
16185
16186         * Control.cs: Default value of visible property must be true.
16187
16188 2004-10-17 23:19  pbartok
16189
16190         * ToolTip.cs:
16191           - Complete implementation
16192
16193 2004-10-17 23:19  pbartok
16194
16195         * XplatUIX11.cs:
16196           - Added EnableWindow method
16197           - Added SetModal stub
16198           - Added generation of WM_ACTIVATE message (still needs testing)
16199           - Added SetTopMost stub
16200           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
16201
16202 2004-10-17 23:17  pbartok
16203
16204         * XplatUIWin32.cs:
16205           - Removed VirtualKeys to XplatUIStructs
16206           - Implemented SetTopMost method
16207           - Implemented EnableWindow method
16208           - Bugfix in ScreenToClient()
16209           - Bugfixes in ClientToScreen()
16210
16211 2004-10-17 22:51  pbartok
16212
16213         * XplatUIStructs.cs:
16214           - Added WS_EX styles to WindowStyles enumeration
16215
16216 2004-10-17 22:50  pbartok
16217
16218         * XplatUI.cs, XplatUIDriver.cs:
16219           - Added method for enabling/disabling windows
16220           - Added method for setting window modality
16221           - Added method for setting topmost window
16222
16223 2004-10-17 22:49  pbartok
16224
16225         * ThemeWin32Classic.cs:
16226           - Added ToolTip drawing code
16227
16228 2004-10-17 22:49  pbartok
16229
16230         * Theme.cs:
16231           - Added ToolTip abstracts
16232
16233 2004-10-17 22:47  pbartok
16234
16235         * Form.cs:
16236           - Fixed Form.ControlCollection to handle owner relations
16237           - Added Owner/OwnedForms handling
16238           - Implemented Z-Ordering for owned forms
16239           - Removed unneeded private overload of ShowDialog
16240           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
16241             so I hope)
16242           - Fixed Close(), had wrong default
16243           - Added firing of OnLoad event
16244           - Added some commented out debug code for Ownership handling
16245
16246 2004-10-17 22:16  pbartok
16247
16248         * Control.cs:
16249           - Fixed/implemented flat list of controls
16250
16251 2004-10-17 22:14  pbartok
16252
16253         * Application.cs:
16254           - Added code to simulate modal dialogs on Win32
16255
16256 2004-10-17 16:11  jordi
16257
16258         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
16259           mouse event
16260
16261 2004-10-17 13:39  jordi
16262
16263         * MenuAPI.cs: menu drawing fixes
16264
16265 2004-10-15 09:10  ravindra
16266
16267         * StructFormat.cs: General Enum.
16268
16269 2004-10-15 09:09  ravindra
16270
16271         * SizeGripStyle.cs: Enum for Form.
16272
16273 2004-10-15 09:08  ravindra
16274
16275         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
16276           in Theme for ListView.
16277
16278 2004-10-15 09:06  ravindra
16279
16280         * ColumnHeader.cs: Flushing some formatting changes.
16281
16282 2004-10-15 09:05  ravindra
16283
16284         * ListViewItem.cs: Implemented GetBounds method and fixed coding
16285           style.
16286
16287 2004-10-15 09:03  ravindra
16288
16289         * ListView.cs: Implemented Paint method and fixed coding style.
16290
16291 2004-10-15 07:34  jordi
16292
16293         * MenuAPI.cs: fix for X11
16294
16295 2004-10-15 07:32  ravindra
16296
16297         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
16298                 - Renamed Paint() method to Draw() for clarity. Also, moved
16299                 DrawImage() to OnPaint().
16300
16301 2004-10-15 07:25  ravindra
16302
16303         * CheckBox.cs, RadioButton.cs:
16304                 - Removed Redraw (), we get it from ButtonBase.
16305                 - Implemented Paint (), to do class specific painting.
16306
16307 2004-10-15 07:16  ravindra
16308
16309         * ButtonBase.cs:
16310                 - Redraw () is not virtual now.
16311                 - Added an internal virtual method Paint (), so that
16312                 derived classes can do their painting on their own.
16313                 - Modified OnPaint () to call Paint ().
16314
16315 2004-10-15 06:43  jordi
16316
16317         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
16318           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
16319
16320 2004-10-15 00:30  ravindra
16321
16322         * MessageBox.cs:
16323                 - MessageBox on windows does not have min/max buttons.
16324                 This change in CreateParams fixes this on Windows. We
16325                 still need to implement this windowstyle behavior in
16326                 our X11 driver.
16327
16328 2004-10-14 05:14  ravindra
16329
16330         * ToolBar.cs:
16331                 - Changed Redraw () to do a Refresh () always.
16332                 - Fixed the MouseMove event handling when mouse is pressed,
16333                 ie drag event handling.
16334                 - Replaced the usage of ToolBarButton.Pressed property to
16335                 ToolBarButton.pressed internal variable.
16336
16337 2004-10-14 05:10  ravindra
16338
16339         * ToolBarButton.cs:
16340                 - Added an internal member 'inside' to handle mouse move
16341                 with mouse pressed ie mouse drag event.
16342                 - Changed 'Pressed' property to return true only when
16343                 'inside' and 'pressed' are both true.
16344                 - Some coding style love.
16345
16346 2004-10-14 00:17  ravindra
16347
16348         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
16349           public method.
16350
16351 2004-10-14 00:15  ravindra
16352
16353         * ButtonBase.cs: Redraw () related improvements.
16354
16355 2004-10-14 00:14  ravindra
16356
16357         * MessageBox.cs: Moved InitFormSize () out of Paint method and
16358           removed unnecessary calls to Button.Show () method.
16359
16360 2004-10-13 17:50  pbartok
16361
16362         * XplatUIX11.cs:
16363           - Formatting fix
16364           - Removed destroying of window until we solve the problem of X
16365             destroying the window before us on shutdown
16366
16367 2004-10-13 16:32  pbartok
16368
16369         * ButtonBase.cs:
16370           - Now Redraws on MouseUp for FlatStyle Flat and Popup
16371
16372 2004-10-13 14:18  pbartok
16373
16374         * XplatUIX11.cs:
16375           - Added code to destroy the X window
16376
16377 2004-10-13 14:18  pbartok
16378
16379         * XplatUIWin32.cs:
16380           - Added code to destroy a window
16381
16382 2004-10-13 14:12  pbartok
16383
16384         * ButtonBase.cs:
16385           - Added the Redraw on Resize that got dropped in the last rev
16386
16387 2004-10-13 09:06  pbartok
16388
16389         * ThemeWin32Classic.cs:
16390           - Path from John BouAntoun:
16391             * Fix check rendering (centre correctly for normal style, offset
16392               correctly for FlatStyle).
16393             * Fix border color usage (use backcolor) for FlatStyle.Popup
16394             * Use checkbox.Capture instead of checkbox.is_pressed when
16395               rendering flatstyle states.
16396
16397 2004-10-12 21:48  pbartok
16398
16399         * ThemeWin32Classic.cs:
16400           - Removed all occurences of SystemColors and replaced them with the
16401             matching theme color
16402
16403 2004-10-12 21:41  pbartok
16404
16405         * ThemeWin32Classic.cs:
16406           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
16407             him using the function for flatstyle drawing
16408           - Changed functions to use the new version of CPDrawBorder3D
16409
16410 2004-10-12 21:15  pbartok
16411
16412         * ControlPaint.cs:
16413           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
16414             match MS documentation. They need to return defined colors if the
16415             passed color matches the configured control color. Thanks to John
16416             BouAntoun for pointing this out.
16417
16418 2004-10-12 20:57  pbartok
16419
16420         * Control.cs:
16421           - Fix from John BouAntoun: Raise ForeColorChanged event when text
16422             color is changed
16423
16424 2004-10-12 20:46  pbartok
16425
16426         * CheckBox.cs:
16427           - Fix from John BouAntoun: Now properly sets the Appearance property
16428
16429 2004-10-12 20:45  pbartok
16430
16431         * ThemeWin32Classic.cs:
16432           - Fixes from John BouAntoun: now handles forecolors and backcolors
16433             for flatstyle rendered controls much better; It also fixes normal
16434             checkbox rendering when pushed or disabled.
16435
16436 2004-10-08 02:50  jordi
16437
16438         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
16439           work
16440
16441 2004-10-07 08:56  jordi
16442
16443         * ThemeWin32Classic.cs: Removes deletion of cached brushes
16444
16445 2004-10-06 03:59  jordi
16446
16447         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
16448           XplatUIWin32.cs: removes warnings from compilation
16449
16450 2004-10-05 12:23  jackson
16451
16452         * RadioButton.cs: Fix ctor
16453
16454 2004-10-05 11:10  pbartok
16455
16456         * MessageBox.cs:
16457           - Partial implementation by Benjamin Dasnois
16458
16459 2004-10-05 10:15  jackson
16460
16461         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
16462           by John BouAntoun
16463
16464 2004-10-05 03:07  ravindra
16465
16466         * ToolBar.cs:
16467                 - Removed a private method, Draw ().
16468                 - Fixed the ButtonDropDown event handling.
16469                 - Fixed MouseMove event handling.
16470
16471 2004-10-05 03:04  ravindra
16472
16473         * ThemeWin32Classic.cs:
16474                 - Added DrawListView method and ListViewDefaultSize property.
16475                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
16476                 - Changed DOS style CRLF to Unix format (dos2unix).
16477
16478 2004-10-05 03:03  ravindra
16479
16480         * Theme.cs:
16481                 - Added DrawListView method and ListViewDefaultSize property.
16482
16483 2004-10-05 02:42  ravindra
16484
16485         * ToolBarButton.cs: Added an internal member dd_pressed to handle
16486           clicks on DropDown arrow.
16487
16488 2004-10-04 22:56  jackson
16489
16490         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
16491           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
16492           Control handle the buffers, derived classes should not have to
16493           CreateBuffers themselves.
16494
16495 2004-10-04 21:20  jackson
16496
16497         * StatusBar.cs: The control handles resizing the buffers now.
16498
16499 2004-10-04 21:18  jackson
16500
16501         * Control.cs: When resizing the buffers should be invalidated. This
16502           should be handled in Control not in derived classes.
16503
16504 2004-10-04 14:45  jackson
16505
16506         * TabPage.cs: oops
16507
16508 2004-10-04 02:14  pbartok
16509
16510         * LeftRightAlignment.cs:
16511           - Initial check-in
16512
16513 2004-10-04 01:09  jordi
16514
16515         * ThemeWin32Classic.cs: fixes right button position causing right
16516           button not showing on horizontal scrollbars
16517
16518 2004-10-02 13:12  pbartok
16519
16520         * XplatUIX11.cs:
16521           - Simplified the Invalidate method by using an X call instead of
16522             generating the expose ourselves
16523           - Added an expose when the window background is changed
16524           - Implemented ClientToScreen method
16525
16526 2004-10-02 13:08  pbartok
16527
16528         * XplatUIWin32.cs:
16529           - Added Win32EnableWindow method (test for implementing modal
16530           dialogs)
16531           - Added ClientToScreen method and imports
16532
16533 2004-10-02 13:07  pbartok
16534
16535         * XplatUI.cs, XplatUIDriver.cs:
16536           - Added ClientToScreen coordinate translation method
16537
16538 2004-10-02 13:06  pbartok
16539
16540         * KeyPressEventArgs.cs:
16541           - Fixed access level for constructor
16542
16543 2004-10-02 13:06  pbartok
16544
16545         * NativeWindow.cs:
16546           - Changed access level for the window_collection hash table
16547
16548 2004-10-02 13:05  pbartok
16549
16550         * Form.cs:
16551           - Added KeyPreview property
16552           - Added Menu property (still incomplete, pending Jordi's menu work)
16553           - Implemented ProcessCmdKey
16554           - Implemented ProcessDialogKey
16555           - Implemented ProcessKeyPreview
16556
16557 2004-10-02 13:02  pbartok
16558
16559         * Control.cs:
16560           - Added private method to get the Control object from the window
16561           handle
16562           - Implemented ContextMenu property
16563           - Implemented PointToScreen
16564           - Implemented PreProcessMessage
16565           - Implemented IsInputChar
16566           - Implemented IsInputKey
16567           - Implemented ProcessCmdKey
16568           - Completed ProcessKeyEventArgs
16569           - Fixed message loop to call the proper chain of functions on key
16570           events
16571           - Implemented ProcessDialogChar
16572           - Implemented ProcessDialogKey
16573           - Implemented ProcessKeyMessage
16574           - Implemented ProcessKeyPreview
16575           - Added RaiseDragEvent stub (MS internal method)
16576           - Added RaiseKeyEvent stub (MS internal method)
16577           - Added RaiseMouseEvent stub (MS Internal method)
16578           - Added RaisePaintEvent stub (MS Internal method)
16579           - Added ResetMouseEventArgs stub (MS Internal method)
16580           - Implemented RtlTranslateAlignment
16581           - Implemented RtlTranslateContent
16582           - Implemented RtlTranslateHorizontal
16583           - Implemented RtlTranslateLeftRight
16584           - Added generation of KeyPress event
16585
16586 2004-10-02 05:57  ravindra
16587
16588         * ListViewItem.cs: Added attributes.
16589
16590 2004-10-02 05:32  ravindra
16591
16592         * ListView.cs: Added attributes.
16593
16594 2004-10-01 11:53  jackson
16595
16596         * Form.cs: Implement the Close method so work on MessageBox can
16597           continue.
16598
16599 2004-09-30 14:06  pbartok
16600
16601         * XplatUIX11.cs:
16602           - Bug fixes
16603
16604 2004-09-30 11:34  jackson
16605
16606         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
16607
16608 2004-09-30 07:26  ravindra
16609
16610         * ListViewItemConverter.cs: Converter for ListViewItem.
16611
16612 2004-09-30 07:26  ravindra
16613
16614         * SortOrder.cs: Enum for ListView control.
16615
16616 2004-09-30 07:25  ravindra
16617
16618         * ColumnHeader.cs: Supporting class for ListView control.
16619
16620 2004-09-30 07:24  ravindra
16621
16622         * ListView.cs, ListViewItem.cs: Initial implementation.
16623
16624 2004-09-30 07:20  ravindra
16625
16626         * ItemActivation.cs: Enum for ListView Control.
16627
16628 2004-09-29 20:29  pbartok
16629
16630         * XplatUIX11.cs:
16631           - Added lookup of pixel value for background color; tries to get a
16632             color 'close' to the requested color, it avoids having to create a
16633             colormap.  Depending on the display this could mean the used color
16634             is slightly off the desired color. Might have to change it to a more
16635             resource intensive colormap approach, but it will work as a
16636           workaround to avoid red screens.
16637
16638 2004-09-29 14:27  jackson
16639
16640         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
16641
16642 2004-09-28 12:44  pbartok
16643
16644         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
16645           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
16646           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
16647           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
16648           TrackBar.cs, VScrollBar.cs:
16649           - Streamlined Theme interfaces:
16650             * Each DrawXXX method for a control now is passed the object for
16651               the control to be drawn in order to allow accessing any state the
16652               theme might require
16653
16654             * ControlPaint methods for the theme now have a CP prefix to avoid
16655               name clashes with the Draw methods for controls
16656
16657             * Every control now retrieves it's DefaultSize from the current
16658             theme
16659
16660 2004-09-28 12:17  jackson
16661
16662         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
16663           drawing
16664
16665 2004-09-24 14:57  jackson
16666
16667         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
16668           Gives us a nice little performance boost.
16669
16670 2004-09-24 12:02  jackson
16671
16672         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
16673           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
16674           Control and supporting classes. Initial checkin
16675
16676 2004-09-23 13:08  jackson
16677
16678         * Form.cs: Temp build fixage
16679
16680 2004-09-23 01:39  ravindra
16681
16682         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
16683           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
16684           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
16685           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
16686           EventHandlers needed by ListView Control.
16687
16688 2004-09-22 14:12  pbartok
16689
16690         * ScrollableControl.cs:
16691           - Implemented DockPadding property
16692           - Implemented AutoScroll property
16693           - Implemented AutoScrollMargin property
16694           - Implemented AutoScrollMinSize property
16695           - Implemented AutoScrollPosition property
16696           - Implemented DisplayRectangle property (still incomplete)
16697           - Implemented CreateParams property
16698           - Implemented HScroll property
16699           - Implemented VScroll property
16700           - Implemented OnVisibleChanged property
16701
16702 2004-09-22 14:09  pbartok
16703
16704         * Form.cs:
16705           - Added Form.ControllCollection class
16706           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
16707             RemoveOwnedForm (still incomplete, missing on-top and common
16708             minimize/maximize behaviour)
16709           - Added StartPosition property (still incomplete, does not use when
16710             creating the form)
16711           - Added ShowDialog() methods (still incomplete, missing forcing the
16712             dialog modal)
16713
16714 2004-09-22 14:05  pbartok
16715
16716         * Application.cs:
16717           - Added message loop for modal dialogs
16718
16719 2004-09-22 14:02  pbartok
16720
16721         * GroupBox.cs:
16722           - Fixed wrong types for events
16723
16724 2004-09-22 14:00  pbartok
16725
16726         * Shortcut.cs, FormWindowState.cs:
16727           - Fixed wrong values
16728
16729 2004-09-22 12:01  jackson
16730
16731         * Control.cs: Text is never null
16732
16733 2004-09-20 22:14  pbartok
16734
16735         * XplatUIWin32.cs:
16736           - Fixed accessibility level for Idle handler
16737
16738 2004-09-20 18:54  jackson
16739
16740         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16741           XplatUIX11.cs: New message loop that uses poll so we don't get a
16742           busy loop
16743
16744 2004-09-17 10:43  pbartok
16745
16746         * ScrollBar.cs:
16747           - Fixed behaviour of arrow buttons. Now properly behaves like
16748             Buttons (and like Microsoft's scrollbar arrow buttons)
16749
16750 2004-09-17 10:14  pbartok
16751
16752         * ScrollBar.cs:
16753           - Added missing release of keyboard/mouse capture
16754
16755 2004-09-17 06:18  jordi
16756
16757         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
16758           Theme.cs: Very early menu support
16759
16760 2004-09-16 17:45  pbartok
16761
16762         * XplatUIWin32.cs:
16763           - Fixed sending a window to the front
16764           - Added overload for SetWindowPos to avoid casting
16765
16766 2004-09-16 17:44  pbartok
16767
16768         * Control.cs:
16769           - Added SendToBack and BringToFront methods
16770
16771 2004-09-16 07:00  ravindra
16772
16773         * Copyright: Added Novell URL.
16774
16775 2004-09-16 07:00  ravindra
16776
16777         * ToolBar.cs: Invalidate should be done before redrawing.
16778
16779 2004-09-15 21:19  ravindra
16780
16781         * ColumnHeaderStyle.cs: Enum for ListView Control.
16782
16783 2004-09-15 21:18  ravindra
16784
16785         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
16786           ListView Control.
16787
16788 2004-09-13 18:26  jackson
16789
16790         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
16791           properly
16792
16793 2004-09-13 18:13  jackson
16794
16795         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
16796           a second thread and post messages into the main threads message
16797           queue. This makes timing much more consistent. Both win2K and XP
16798           have a minimum timer value of 15 milliseconds, so we now do this
16799           too.
16800
16801 2004-09-13 15:18  pbartok
16802
16803         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16804           XplatUIX11.cs:
16805           - Added Z-Ordering methods
16806
16807 2004-09-13 10:56  pbartok
16808
16809         * Form.cs:
16810           - Fixed #region names
16811           - Moved properties and methods into their proper #regions
16812
16813 2004-09-13 10:51  pbartok
16814
16815         * Form.cs:
16816           - Added Accept and CancelButton properties
16817           - Added ProcessDialogKey() method
16818
16819 2004-09-13 08:18  pbartok
16820
16821         * IWindowTarget.cs:
16822           - Initial check-in
16823
16824 2004-09-10 21:50  pbartok
16825
16826         * Control.cs:
16827           - Added DoDragDrop() [incomplete]
16828           - Properly implemented 'Visible' handling
16829           - Added SetVisibleCore()
16830           - Implemented FindChildAtPoint()
16831           - Implemented GetContainerControl()
16832           - Implemented Hide()
16833
16834 2004-09-10 19:28  pbartok
16835
16836         * Control.cs:
16837           - Moved methods into their appropriate #regions
16838           - Reordered methods within regions alphabetically
16839
16840 2004-09-10 18:57  pbartok
16841
16842         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16843           - Added method to retrieve text from window
16844
16845 2004-09-10 18:56  pbartok
16846
16847         * Control.cs:
16848           - Moved some internal functions into the internal region
16849           - Implemented FontHeight
16850           - Implemented RenderRightToLeft
16851           - Implemented ResizeRedraw
16852           - Implemented ShowFocusCues
16853           - Implemented ShowKeyboardCues
16854           - Implemented FromChildHandle
16855           - Implemented FromHandle
16856           - Implemented IsMnemonic
16857           - Implemented ReflectMessage
16858           - All public and protected Static Methods are now complete
16859
16860 2004-09-10 16:54  pbartok
16861
16862         * Control.cs:
16863           - Implemented remaining missing public instance properties
16864           - Alphabetized some out of order properties
16865
16866 2004-09-10 05:51  ravindra
16867
16868         * PictureBox.cs: Added a check for null image.
16869
16870 2004-09-10 00:59  jordi
16871
16872         * GroupBox.cs: remove cvs tag
16873
16874 2004-09-09 05:25  ravindra
16875
16876         * ToolBar.cs: Make redraw accessible from ToolBarButton.
16877
16878 2004-09-09 05:23  ravindra
16879
16880         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
16881           parent redraw.
16882
16883 2004-09-09 02:28  pbartok
16884
16885         * ThemeWin32Classic.cs:
16886           - Improve disabled string look
16887
16888 2004-09-09 01:15  jordi
16889
16890         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
16891           args and handler
16892
16893 2004-09-08 23:56  ravindra
16894
16895         * ItemBoundsPortion.cs: It's enum, not a class!
16896
16897 2004-09-08 23:47  ravindra
16898
16899         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
16900           Enums for Form.
16901
16902 2004-09-08 21:13  ravindra
16903
16904         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
16905           ListView control.
16906
16907 2004-09-08 21:03  ravindra
16908
16909         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
16910           avoid crash.
16911
16912 2004-09-08 21:01  ravindra
16913
16914         * ScrollableControl.cs: Removed unreachable code.
16915
16916 2004-09-08 06:45  jordi
16917
16918         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
16919
16920 2004-09-08 01:00  jackson
16921
16922         * XplatUIX11.cs: Only run the timers when updating the message
16923           queue. This effectively gives X messages a higher priority then
16924           timer messages. Timers still need love though
16925
16926 2004-09-07 14:01  jackson
16927
16928         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
16929           this for us and the handle is no longer valid.
16930
16931 2004-09-07 13:59  jackson
16932
16933         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
16934           loop that manages to not crash. TODO: Add poll and cleanup timers
16935
16936 2004-09-07 11:12  jordi
16937
16938         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
16939
16940 2004-09-07 03:40  jordi
16941
16942         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
16943           fixes, methods, multiple links
16944
16945 2004-09-06 06:55  jordi
16946
16947         * Control.cs: Caches ClientRectangle rectangle value
16948
16949 2004-09-05 02:03  jordi
16950
16951         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
16952           certain situations
16953
16954 2004-09-04 11:10  jordi
16955
16956         * Label.cs: Refresh when font changed
16957
16958 2004-09-02 16:24  pbartok
16959
16960         * Control.cs:
16961           - Added sanity check to creation of double buffer bitmap
16962
16963 2004-09-02 16:24  pbartok
16964
16965         * ButtonBase.cs:
16966           - Fixed selection of text color
16967           - Fixed handling of resize event; now properly recreates double
16968             buffering bitmap
16969           - Added missing assignment of TextAlignment
16970           - Added proper default for TextAlignment
16971
16972 2004-09-02 14:26  pbartok
16973
16974         * RadioButton.cs:
16975           - Added missing RadioButton.RadioButtonAccessibleObject class
16976
16977 2004-09-02 14:26  pbartok
16978
16979         * Control.cs:
16980           - Added missing Control.ControlAccessibleObject class
16981           - Started to implement Select()ion mechanisms, still very incomplete
16982
16983 2004-09-02 14:25  pbartok
16984
16985         * AccessibleObject.cs:
16986           - Added missing methods
16987
16988 2004-09-02 14:23  pbartok
16989
16990         * AccessibleNavigation.cs, AccessibleSelection.cs:
16991           - Initial check-in
16992
16993 2004-09-02 10:32  jordi
16994
16995         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
16996           pool for pens, brushes, and hatchbruses
16997
16998 2004-09-01 15:30  jackson
16999
17000         * StatusBar.cs: Fix typo
17001
17002 2004-09-01 14:44  pbartok
17003
17004         * RadioButton.cs:
17005           - Fixed state
17006
17007 2004-09-01 14:39  pbartok
17008
17009         * Button.cs, RadioButton.cs:
17010           - Functional initial check-in
17011
17012 2004-09-01 14:01  pbartok
17013
17014         * CheckBox.cs:
17015           - Added missing default
17016           - Added missing region mark
17017
17018 2004-09-01 09:10  jordi
17019
17020         * Label.cs: fixes method signatures, new methods, events, fixes
17021           autosize
17022
17023 2004-09-01 07:19  jordi
17024
17025         * Control.cs: Init string variables with an empty object
17026
17027 2004-09-01 04:20  jordi
17028
17029         * Control.cs: fires OnFontChanged event
17030
17031 2004-08-31 20:07  pbartok
17032
17033         * ButtonBase.cs:
17034           - Enabled display of strings
17035
17036 2004-08-31 20:05  pbartok
17037
17038         * Form.cs:
17039           - Added (partial) implementation of DialogResult; rest needs to be
17040             implemented when the modal loop code is done
17041
17042 2004-08-31 19:55  pbartok
17043
17044         * CheckBox.cs:
17045           - Fixed to match the removal of the needs_redraw concept
17046
17047 2004-08-31 19:55  pbartok
17048
17049         * ButtonBase.cs:
17050           - Removed the rather odd split between 'needs redraw' and redrawing
17051           - Now handles the events that require regeneration (ambient
17052             properties and size)
17053
17054 2004-08-31 19:41  pbartok
17055
17056         * Control.cs:
17057           - Added firing of BackColorChanged event
17058           - Added TopLevelControl property
17059           - Fixed handling of WM_ERASEBKGRND message
17060
17061 2004-08-31 12:49  pbartok
17062
17063         * ButtonBase.cs:
17064           - Removed debug
17065           - Minor fixes
17066
17067 2004-08-31 12:48  pbartok
17068
17069         * CheckBox.cs:
17070           - Finished (famous last words)
17071
17072 2004-08-31 04:35  jordi
17073
17074         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
17075           scrolling bugs, adds new methods
17076
17077 2004-08-30 14:42  pbartok
17078
17079         * CheckBox.cs:
17080           - Implemented CheckBox drawing code
17081
17082 2004-08-30 14:42  pbartok
17083
17084         * ButtonBase.cs:
17085           - Made Redraw() and CheckRedraw() virtual
17086           - Improved mouse up/down/move logic to properly track buttons
17087
17088 2004-08-30 09:44  pbartok
17089
17090         * CheckBox.cs:
17091           - Updated to fix broken build. Not complete yet.
17092
17093 2004-08-30 09:28  pbartok
17094
17095         * CheckState.cs:
17096           - Initial checkin
17097
17098 2004-08-30 09:17  pbartok
17099
17100         * Appearance.cs:
17101           - Initial check-in
17102
17103 2004-08-27 16:12  ravindra
17104
17105         * ToolBarButton.cs: Added TypeConverter attribute.
17106
17107 2004-08-27 16:07  ravindra
17108
17109         * ImageIndexConverter.cs: Implemented.
17110
17111 2004-08-27 14:17  pbartok
17112
17113         * Control.cs:
17114           - Removed unneeded stack vars
17115           - First attempt to fix sizing issues when layout is suspended
17116
17117 2004-08-25 15:35  jordi
17118
17119         * ScrollBar.cs: more fixes to scrollbar
17120
17121 2004-08-25 14:04  ravindra
17122
17123         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
17124           Added the missing divider code and grip for ToolBar Control.
17125
17126 2004-08-25 13:20  pbartok
17127
17128         * Control.cs:
17129           - Control now properly passes the ambient background color to child
17130             controls
17131
17132 2004-08-25 13:20  jordi
17133
17134         * ScrollBar.cs: small bug fix regarding bar position
17135
17136 2004-08-25 12:33  pbartok
17137
17138         * Timer.cs:
17139           - Now only calls SetTimer or KillTimer if the enabled state has
17140           changed
17141
17142 2004-08-25 12:33  pbartok
17143
17144         * XplatUIWin32.cs:
17145           - Fixed timer handling, now seems to work
17146           - Improved error message for window creation
17147
17148 2004-08-25 12:32  pbartok
17149
17150         * Control.cs:
17151           - Fixed generation of MouseUp message
17152
17153 2004-08-25 12:29  jordi
17154
17155         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
17156           and fixes for progressbar
17157
17158 2004-08-24 18:43  ravindra
17159
17160         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
17161           in ToolBar control.
17162
17163 2004-08-24 17:15  pbartok
17164
17165         * Panel.cs:
17166           - Added #region
17167           - Added missing events
17168           - Alphabetized
17169
17170 2004-08-24 17:14  pbartok
17171
17172         * StatusBar.cs, PictureBox.cs:
17173           - Now uses Control's CreateParams
17174
17175 2004-08-24 16:36  pbartok
17176
17177         * XplatUIX11.cs:
17178           - Fixed background color handling
17179           - Fixed sending of enter/leave events on a grab
17180
17181 2004-08-24 16:35  pbartok
17182
17183         * X11Structs.cs:
17184           - Refined definitions for CrossingEvent
17185
17186 2004-08-24 12:37  jordi
17187
17188         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
17189           formmating, methods signature, and adds missing events
17190
17191 2004-08-24 12:24  jordi
17192
17193         * Control.cs: fire OnEnabledChanged event
17194
17195 2004-08-24 11:17  pbartok
17196
17197         * XplatUIWin32.cs:
17198           - Implemented SetTimer() and KillTimer()
17199
17200 2004-08-24 11:16  pbartok
17201
17202         * XplatUIX11.cs:
17203           - Now uses Remove instead of Add to kill the timer
17204
17205 2004-08-24 10:16  jackson
17206
17207         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
17208           picture boxes in the theme now. Draw picture box borders and obey
17209           sizing modes
17210
17211 2004-08-24 05:49  jackson
17212
17213         * Timer.cs: Remove top secret debugging code
17214
17215 2004-08-24 05:34  jackson
17216
17217         * PictureBox.cs: Temp hack to make picture boxes draw their full
17218           image
17219
17220 2004-08-24 05:29  jackson
17221
17222         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17223           XplatUIX11.cs: Move timers to the driver level. On X they are
17224           queued by the driver and checked on idle.
17225
17226 2004-08-24 01:07  jackson
17227
17228         * XplatUIX11.cs: Use a queue for async messages instead of passing
17229           them as ClientMessages since that was totally broken. Also simply
17230           check for events and return an idle message if none are found. This
17231           gives us an idle handler, and prevents deadlocking when no messages
17232           are in the queue.
17233
17234 2004-08-23 18:19  ravindra
17235
17236         * XplatUIWin32.cs: Removed the unwanted destructor.
17237
17238 2004-08-23 17:27  pbartok
17239
17240         * ButtonBase.cs:
17241           - Finishing touches. Works now, just needs some optimizations.
17242
17243 2004-08-23 16:53  jordi
17244
17245         * ScrollBar.cs: small fix
17246
17247 2004-08-23 16:45  pbartok
17248
17249         * Application.cs:
17250           - Removed debug output
17251           - Simplifications
17252
17253 2004-08-23 16:43  jordi
17254
17255         * ScrollBar.cs: [no log message]
17256
17257 2004-08-23 16:10  pbartok
17258
17259         * Form.cs:
17260           - Fixed handling of WM_CLOSE message
17261           - Removed debug output
17262
17263 2004-08-23 16:09  pbartok
17264
17265         * Application.cs:
17266           - Added handling of Idle event
17267           - Added handling of form closing
17268           - Fixed reporting of MessageLoop property
17269           - Removed some unneeded code, should provide a bit of a speedup
17270
17271 2004-08-23 15:22  pbartok
17272
17273         * Control.cs:
17274           - Added InitLayout() method
17275           - Added code to properly perform layout when Anchor or Dock property
17276             is changed
17277           - Changed 'interpretation' of ResumeLayout. MS seems to have a
17278             LAMESPEC, tried to do it in a way that makes sense
17279
17280 2004-08-23 14:10  jordi
17281
17282         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
17283           properties and methods
17284
17285 2004-08-23 13:55  pbartok
17286
17287         * Control.cs:
17288           - Properly fixed Jordi's last fix
17289           - Now uses Cursor's Position property instead of calling XplatUI
17290           directly
17291
17292 2004-08-23 13:44  jordi
17293
17294         * PaintEventHandler.cs: Adding missing attribute
17295
17296 2004-08-23 13:39  pbartok
17297
17298         * Cursor.cs:
17299           - Implemented Position property
17300
17301 2004-08-23 13:39  pbartok
17302
17303         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17304           - Added method to move mouse cursor
17305
17306 2004-08-23 13:39  pbartok
17307
17308         * XplatUIX11.cs:
17309           - Fixed setting of background color
17310           - Added method to move mouse cursor
17311
17312 2004-08-23 13:16  jordi
17313
17314         * Control.cs: avoids null exception
17315
17316 2004-08-22 17:46  jackson
17317
17318         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
17319           PictureBox
17320
17321 2004-08-22 17:40  jackson
17322
17323         * XplatUIX11.cs: Add some missing locks
17324
17325 2004-08-22 15:10  pbartok
17326
17327         * Control.cs, Form.cs:
17328           - Removed OverlappedWindow style from Control, instead it's default
17329             now is child
17330           - Made form windows OverlappedWindow by default
17331
17332 2004-08-22 13:34  jackson
17333
17334         * ScrollBar.cs: Update the position through the Value property so
17335           the OnValueChanged event is raised.
17336
17337 2004-08-22 12:04  pbartok
17338
17339         * SWF.csproj:
17340           - Added Cursor.cs and UserControl.cs
17341
17342 2004-08-22 12:03  pbartok
17343
17344         * Cursor.cs:
17345           - Started implementation, not usable yet
17346
17347 2004-08-22 12:00  pbartok
17348
17349         * UserControl.cs:
17350           - Implemented UserControl (complete)
17351
17352 2004-08-21 19:20  ravindra
17353
17354         * ToolBar.cs: Correcting the formatting mess of VS.NET.
17355
17356 2004-08-21 18:49  ravindra
17357
17358         * ToolBar.cs: Probably this completes the missing attributes in
17359           toolbar control.
17360
17361 2004-08-21 18:03  ravindra
17362
17363         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
17364           Fixed toolbar control signatures.
17365
17366 2004-08-21 16:32  pbartok
17367
17368         * LinkLabel.cs:
17369           - Signature Fixes
17370
17371 2004-08-21 16:30  pbartok
17372
17373         * Label.cs:
17374           - Signature fixes
17375
17376 2004-08-21 16:19  pbartok
17377
17378         * Control.cs, Label.cs:
17379           - Signature fixes
17380
17381 2004-08-21 15:57  pbartok
17382
17383         * ButtonBase.cs:
17384           - Added loads of debug output for development
17385           - Fixed typo in method name
17386
17387 2004-08-21 15:52  pbartok
17388
17389         * ToolBarButtonClickEventArgs.cs:
17390           - Added missing base class
17391
17392 2004-08-21 14:53  pbartok
17393
17394         * Control.cs:
17395           - Updated to match new GrabWindow signature
17396
17397 2004-08-21 14:51  pbartok
17398
17399         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17400           - Added method to get default display size
17401
17402 2004-08-21 14:23  pbartok
17403
17404         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17405           - Added method to query current grab state
17406           - Added argument to allow confining a grab to a window
17407
17408 2004-08-21 14:22  pbartok
17409
17410         * Keys.cs:
17411           - Added [Flags] attribute so that modifiers can be used in bitwise
17412           ops
17413
17414 2004-08-21 14:21  pbartok
17415
17416         * TrackBar.cs, ScrollBar.cs:
17417           - Replaced direct XplatUI calls with their Control counterpart
17418
17419 2004-08-21 13:32  pbartok
17420
17421         * Control.cs:
17422           - Implemented Created property
17423
17424 2004-08-21 13:28  pbartok
17425
17426         * Control.cs:
17427           - Implemented ContainsFocus
17428
17429 2004-08-21 13:26  pbartok
17430
17431         * Control.cs:
17432           - Implemented CausesValidation
17433
17434 2004-08-21 13:21  pbartok
17435
17436         * Control.cs:
17437           - Implemented CanFocus
17438           - Implemented CanSelect
17439           - Implemented Capture
17440
17441 2004-08-21 12:35  pbartok
17442
17443         * XplatUIWin32.cs:
17444           - Fixed bug with Async message handling
17445           - Implemented getting the ModifierKeys
17446
17447 2004-08-21 12:32  jackson
17448
17449         * AsyncMethodResult.cs: Make sure we have the mutex before we
17450           release it. Fixes BeginInvoke on windows
17451
17452 2004-08-21 11:31  pbartok
17453
17454         * XplatUIWin32.cs, XplatUIX11.cs:
17455           - Drivers now return proper mouse state
17456
17457 2004-08-21 10:54  jackson
17458
17459         * Control.cs: Implement EndInvoke
17460
17461 2004-08-21 10:48  jackson
17462
17463         * Timer.cs: Remove unneeded finalizer
17464
17465 2004-08-20 19:52  ravindra
17466
17467         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
17468           in mouse event handling in the ToolBar control.
17469
17470 2004-08-20 19:50  ravindra
17471
17472         * ImageList.cs: Changed draw method to use the arguments passed in
17473           to draw the image.
17474
17475 2004-08-20 18:58  pbartok
17476
17477         * XplatUIStructs.cs:
17478           - Added private message for async communication
17479
17480 2004-08-20 17:38  ravindra
17481
17482         * Control.cs: Made RightToLeft property virtual and removed a
17483           Console.WriteLine.
17484
17485 2004-08-20 14:39  jordi
17486
17487         * ThemeGtk.cs: use style_attach
17488
17489 2004-08-20 14:39  pbartok
17490
17491         * XplatUIWin32.cs:
17492           - Added jackson's Async code from X11 to Win32
17493
17494 2004-08-20 14:09  pbartok
17495
17496         * SWF.csproj:
17497           - Added all new files
17498
17499 2004-08-20 14:09  pbartok
17500
17501         * Control.cs:
17502           - Added call to set window background color
17503
17504 2004-08-20 14:03  pbartok
17505
17506         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17507           - Added method for setting the window background
17508
17509 2004-08-20 14:02  pbartok
17510
17511         * XplatUIWin32.cs:
17512           - Added method for setting the background color
17513           - Added handling for erasing the window background
17514
17515 2004-08-20 13:45  jordi
17516
17517         * TrackBar.cs: fixes timer, new properties and methods
17518
17519 2004-08-20 13:34  jackson
17520
17521         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
17522           correct thread
17523
17524 2004-08-20 13:22  jackson
17525
17526         * Timer.cs: Timer Tick events are now handed through Controls Async
17527           mechanism so the callbacks are executed in the same thread as X
17528
17529 2004-08-20 13:19  jackson
17530
17531         * XplatUIDriver.cs: Expose functionality to send async messages
17532           through the driver
17533
17534 2004-08-20 13:18  jackson
17535
17536         * Control.cs: Implement Begininvoke
17537
17538 2004-08-20 13:14  jackson
17539
17540         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
17541           messages through the driver
17542
17543 2004-08-20 13:12  jackson
17544
17545         * XplatUIX11.cs: Lock before all X operations. Also added Async
17546           method functionality through XSendEvent
17547
17548 2004-08-20 13:11  jackson
17549
17550         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
17551           This will screw up on 64 bit systems)
17552
17553 2004-08-20 13:10  jackson
17554
17555         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
17556           Async messages through X/Win32
17557
17558 2004-08-19 19:39  pbartok
17559
17560         * XplatUIX11.cs:
17561           - Updated code to match new HandleData.DeviceContext type
17562
17563 2004-08-19 19:38  pbartok
17564
17565         * HandleData.cs:
17566           - Made DeviceContext a generic object to allow usage from various
17567           drivers
17568           - Added support for queueing Windows messages
17569
17570 2004-08-19 19:37  pbartok
17571
17572         * XplatUIWin32.cs:
17573           - Added generation of MouseEnter, MouseLeave and MouseHover events
17574           - Added cleanup on EndPaint
17575
17576 2004-08-19 19:17  pbartok
17577
17578         * Control.cs:
17579           - Added handling of WM_MOUSEHOVER
17580           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
17581           code
17582
17583 2004-08-19 18:55  jordi
17584
17585         * ThemeGtk.cs: fixes button order
17586
17587 2004-08-19 18:12  jordi
17588
17589         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
17590
17591 2004-08-19 17:09  pbartok
17592
17593         * Control.cs:
17594           - Added Right property
17595           - Added RightToLeft property
17596
17597 2004-08-19 16:27  jordi
17598
17599         * ThemeGtk.cs: experimental GTK theme support
17600
17601 2004-08-19 16:26  jordi
17602
17603         * ITheme.cs, Theme.cs: move themes from an interface to a class
17604
17605 2004-08-19 16:25  jordi
17606
17607         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
17608           theme enhancaments
17609
17610 2004-08-19 16:04  pbartok
17611
17612         * XplatUIX11.cs:
17613           - Added colormap basics
17614           - Added a way to re-initialize with a different display handle
17615           - Fixed setting of the window background color
17616           - Added various X11 imports related to colors and colormaps
17617
17618 2004-08-19 15:51  pbartok
17619
17620         * X11Structs.cs:
17621           - Removed packing hints (Paolo suggested this a while back)
17622           - fixed colormap type
17623           - Added default Atom types
17624           - Added Screen and color structs and enums
17625
17626 2004-08-19 15:39  pbartok
17627
17628         * ImageList.cs:
17629           - Added missing Draw() method
17630           - Added missing RecreateHandle event
17631
17632 2004-08-19 15:30  pbartok
17633
17634         * Form.cs:
17635           - Added handling of WM_CLOSE
17636
17637 2004-08-18 13:16  jordi
17638
17639         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
17640           a table
17641
17642 2004-08-18 09:56  jordi
17643
17644         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
17645
17646 2004-08-17 15:31  ravindra
17647
17648         * SWF.csproj: Updated project.
17649
17650 2004-08-17 15:25  pbartok
17651
17652         * Control.cs:
17653           - Drawing improvement; don't call UpdateBounds if we are not visible
17654             (or have been minimized)
17655
17656 2004-08-17 15:24  pbartok
17657
17658         * XplatUIWin32.cs:
17659           - Finished IsVisible
17660           - Added Win32GetWindowPlacement
17661
17662 2004-08-17 15:08  jackson
17663
17664         * Panel.cs: Initial checkin of the Panel
17665
17666 2004-08-17 14:25  pbartok
17667
17668         * Control.cs:
17669           - Fixed broken handling of default window sizes
17670
17671 2004-08-17 13:29  jackson
17672
17673         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
17674           has a large startup time.
17675
17676 2004-08-17 10:25  jackson
17677
17678         * HandleData.cs: union areas properly
17679
17680 2004-08-17 10:12  jackson
17681
17682         * HandleData.cs: union areas properly
17683
17684 2004-08-16 20:00  ravindra
17685
17686         * ToolBar.cs, ToolBarButton.cs: Added attributes.
17687
17688 2004-08-16 18:48  ravindra
17689
17690         * ToolBar.cs: Added attributes.
17691
17692 2004-08-16 17:17  ravindra
17693
17694         * SWF.csproj: Updated project.
17695
17696 2004-08-16 17:16  jackson
17697
17698         * XplatUIX11.cs: Check for more expose events before sending a
17699           WM_PAINT so they can all be grouped together. This makes dragging a
17700           window across another window redraw in a sane way.
17701
17702 2004-08-16 15:47  pbartok
17703
17704         * Control.cs:
17705           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
17706             support OnMouseEnter/Leave()
17707           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
17708             exposure handling
17709
17710 2004-08-16 15:46  pbartok
17711
17712         * XplatUIStructs.cs, XplatUIX11.cs:
17713           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
17714           OnMouseEnter/Leave()
17715
17716 2004-08-16 15:34  jackson
17717
17718         * XplatUIX11.cs: Group multiple expose events in HandleData, make
17719           sure messages get the message field set to WM_NULL if they are not
17720           handled.
17721
17722 2004-08-16 15:24  jackson
17723
17724         * HandleData.cs: HandleData is used for storing message information
17725           for window handles
17726
17727 2004-08-15 17:23  ravindra
17728
17729         * ColorDepth.cs: Added attribute.
17730
17731 2004-08-15 17:23  ravindra
17732
17733         * SWF.csproj: Updated project for ToolBar Control.
17734
17735 2004-08-15 17:20  ravindra
17736
17737         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
17738           control and also dos2unix format.
17739
17740 2004-08-15 17:13  ravindra
17741
17742         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
17743           ToolBarButtonClickEventArgs.cs,
17744           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
17745           ToolBarTextAlign.cs: First Implementation of ToolBar control.
17746
17747 2004-08-15 15:31  pbartok
17748
17749         * ButtonBase.cs:
17750           - First (mostly) working version
17751
17752 2004-08-13 16:15  pbartok
17753
17754         * Control.cs:
17755           - Fixed Anchor default
17756
17757 2004-08-13 15:43  pbartok
17758
17759         * Control.cs:
17760           - Changed GetCursorPos signature
17761
17762 2004-08-13 15:42  pbartok
17763
17764         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17765           - Changed signature for GetCursorPos
17766
17767 2004-08-13 15:25  pbartok
17768
17769         * XplatUIX11.cs:
17770           - Cleanup
17771           - Fixed resizing/exposure handling
17772
17773 2004-08-13 15:22  jordi
17774
17775         * ThemeWin32Classic.cs: removes redundant code and fixes issues
17776           with tickposition
17777
17778 2004-08-13 14:55  jordi
17779
17780         * TrackBar.cs: change from wndproc to events
17781
17782 2004-08-13 13:00  jordi
17783
17784         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17785           XplatUIX11.cs: implements PointToClient (ScreenToClient)
17786
17787 2004-08-13 12:53  pbartok
17788
17789         * XplatUIWin32.cs:
17790           - Changed GetWindowPos to also provide client area size
17791           - Fixed broken prototypes for several win32 functions
17792
17793 2004-08-13 12:53  pbartok
17794
17795         * XplatUI.cs, XplatUIDriver.cs:
17796           - Changed GetWindowPos to also provide client area size
17797
17798 2004-08-13 12:52  pbartok
17799
17800         * XplatUIX11.cs:
17801           - Added generation of WM_POSCHANGED
17802           - Changed GetWindowPos to also provide client area size
17803
17804 2004-08-13 12:52  pbartok
17805
17806         * Control.cs:
17807           - Added Dispose() and destructor
17808           - Fixed resizing and bounds calculation
17809           - Fixed Layout
17810           - Added memory savings for invisible windows
17811
17812 2004-08-13 12:46  jordi
17813
17814         * TrackBar.cs: adds timer and grap window
17815
17816 2004-08-13 10:25  jackson
17817
17818         * Timer.cs: SWF Timer
17819
17820 2004-08-12 16:59  pbartok
17821
17822         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17823           - Implemented method to get current mouse position
17824
17825 2004-08-12 14:29  jordi
17826
17827         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
17828           enhancement, fix mouse problems, highli thumb, etc
17829
17830 2004-08-12 13:31  pbartok
17831
17832         * Control.cs:
17833           - Fixed Anchoring bugs
17834
17835 2004-08-12 13:01  jackson
17836
17837         * StatusBar.cs: Don't forget things
17838
17839 2004-08-12 12:54  jackson
17840
17841         * ThemeWin32Classic.cs: Handle owner draw status bars
17842
17843 2004-08-12 12:54  jackson
17844
17845         * StatusBar.cs: Implement missing properties, events, and methods.
17846           Handle mouse clicking
17847
17848 2004-08-12 10:19  jackson
17849
17850         * StatusBarPanelClickEventArgs.cs,
17851           StatusBarPanelClickEventHandler.cs: Classes for handling status
17852           bar panel click events
17853
17854 2004-08-12 10:10  jackson
17855
17856         * Control.cs: Add missing properties
17857
17858 2004-08-12 09:46  pbartok
17859
17860         * BindingsManagerBase.cs:
17861           - Name changed to BindingManagerBase.cs
17862
17863 2004-08-12 09:25  jordi
17864
17865         * ScrollableControl.cs: calls ctrlbase instead of exeception
17866
17867 2004-08-11 16:28  pbartok
17868
17869         * InputLanguageChangingEventArgs.cs:
17870           - Never check in before compiling. Fixes the last check-in
17871
17872 2004-08-11 16:26  pbartok
17873
17874         * InputLanguageChangingEventArgs.cs:
17875           - More signature fixes
17876
17877 2004-08-11 16:20  pbartok
17878
17879         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
17880           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
17881           ImageListStreamer.cs, InputLanguage.cs,
17882           InputLanguageChangedEventArgs.cs,
17883           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
17884           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
17885           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
17886           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17887           - Signature fixes
17888
17889 2004-08-11 16:16  pbartok
17890
17891         * Application.cs:
17892           - Fixed Signature
17893           - Added .Net 1.1 method
17894
17895 2004-08-11 15:25  pbartok
17896
17897         * SWF.csproj:
17898           - Fixed BindingManagerBase.cs filename
17899
17900 2004-08-11 15:22  pbartok
17901
17902         * BindingManagerBase.cs:
17903           - Was checked in with wrong filename
17904
17905 2004-08-11 14:50  pbartok
17906
17907         * SWF.csproj:
17908           - Updated
17909
17910 2004-08-11 13:41  jordi
17911
17912         * XplatUIWin32.cs: Fixes ClientRect
17913
17914 2004-08-11 13:19  pbartok
17915
17916         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17917           XplatUIX11.cs:
17918           - We had SetWindowPos and MoveWindow to set window positions and
17919             size, removed MoveWindow. We have GetWindowPos, so it made sense to
17920             keep SetWindowPos as matching counterpart
17921           - Added some X11 sanity checking
17922
17923 2004-08-11 12:59  pbartok
17924
17925         * Control.cs:
17926           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
17927             (It seems that SetBounds is just a front for SetBoundsCore and
17928              SetBoundsCore updates the underlying window system and
17929              UpdateBounds is responsible for updating the variables associated
17930              with the Control and sending the events)
17931           - Major cleanup of Size handling; we now have two sizes, client_size
17932             and bounds. Bounds defines the window with decorations, client_size
17933             without them.
17934
17935 2004-08-11 12:55  pbartok
17936
17937         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17938           - Added method to calculate difference between decorated window and
17939             raw client area
17940
17941 2004-08-11 12:54  pbartok
17942
17943         * Label.cs:
17944           - Forcing redraw on resize
17945
17946 2004-08-11 11:43  pbartok
17947
17948         * ImageList.cs:
17949           - Removed disposing of the actual images when the list is disposed
17950
17951 2004-08-11 09:13  pbartok
17952
17953         * Control.cs:
17954           - Now properly reparents windows
17955
17956 2004-08-11 08:37  pbartok
17957
17958         * Control.cs:
17959           - Duh!
17960
17961 2004-08-11 07:47  pbartok
17962
17963         * Control.cs:
17964           - Rewrote the collection stuff. Might not be as fast now, not
17965             keeping the number of children around and accessible directly, but
17966             it's more straightforward
17967
17968 2004-08-11 07:44  pbartok
17969
17970         * AccessibleObject.cs:
17971           - Fixed to match ControlCollection rewrite
17972
17973 2004-08-11 07:43  pbartok
17974
17975         * ImageList.cs:
17976           - Added missing creation of the collection list
17977
17978 2004-08-10 20:08  jackson
17979
17980         * StatusBar.cs: Get the paint message from WndProc
17981
17982 2004-08-10 19:31  jackson
17983
17984         * ThemeWin32Classic.cs: Create Brushes as little as possible
17985
17986 2004-08-10 19:20  jackson
17987
17988         * UICues.cs: Add Flags attribute
17989
17990 2004-08-10 19:19  jackson
17991
17992         * StatusBarPanel.cs: Signature cleanup
17993
17994 2004-08-10 19:10  jackson
17995
17996         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
17997           Initial implementation of status bar item drawing
17998
17999 2004-08-10 17:27  jordi
18000
18001         * TrackBar.cs: add missing methods, properties, and restructure to
18002           hide extra ones
18003
18004 2004-08-10 16:24  jackson
18005
18006         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
18007           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
18008           attribute
18009
18010 2004-08-10 13:21  jordi
18011
18012         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
18013           enhancements and standarize on win colors defaults
18014
18015 2004-08-10 12:52  jackson
18016
18017         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
18018           ThemeWin32Classic.cs: Implement DrawItem functionality
18019
18020 2004-08-10 12:47  jordi
18021
18022         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
18023
18024 2004-08-10 12:32  jordi
18025
18026         * Control.cs: throw ontextchange event
18027
18028 2004-08-10 11:43  pbartok
18029
18030         * Control.cs:
18031           - Added more to the still unfinished Dock/Anchor layout code
18032
18033 2004-08-10 11:39  pbartok
18034
18035         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
18036           - Added GetWindowPos method
18037
18038 2004-08-10 11:36  pbartok
18039
18040         * XplatUIWin32.cs:
18041           - Implemented several methods
18042
18043 2004-08-10 09:47  jackson
18044
18045         * TrackBar.cs: Allow control to handle buffering
18046
18047 2004-08-10 09:41  jackson
18048
18049         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
18050
18051 2004-08-10 09:24  jackson
18052
18053         * Label.cs, LinkLabel.cs: Let Control handle buffering.
18054
18055 2004-08-10 09:09  jackson
18056
18057         * StatusBar.cs: Let Control handle all the buffering.
18058
18059 2004-08-10 09:08  jackson
18060
18061         * Control.cs: Control will now handle the buffering code, so each
18062           control does not have to implement this.
18063
18064 2004-08-10 08:34  jackson
18065
18066         * XplatUIDriver.cs: Use default colors from the theme
18067
18068 2004-08-09 17:12  pbartok
18069
18070         * ImageList.cs:
18071           - Fixed several bugs Ravindra pointed out
18072
18073 2004-08-09 16:11  pbartok
18074
18075         * Control.cs:
18076           - Added incomplete dock layout code
18077           - Added support for mouse wheel
18078
18079 2004-08-09 16:09  pbartok
18080
18081         * XplatUIX11.cs:
18082           - Added handling for middle and right mousebutton
18083           - Added handling for mouse wheel
18084           - Added handling for key state and mouse state and position
18085           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
18086           messages
18087
18088 2004-08-09 15:40  jackson
18089
18090         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
18091           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
18092           checkin
18093
18094 2004-08-09 15:37  jackson
18095
18096         * StatusBar.cs: Initial implementation of StatusBar
18097
18098 2004-08-09 15:36  jackson
18099
18100         * ITheme.cs: Add support for drawing status bar and getting status
18101           bar item sizes
18102
18103 2004-08-09 15:35  pbartok
18104
18105         * MouseButtons.cs:
18106           - Fixed values
18107
18108 2004-08-09 15:34  jackson
18109
18110         * ThemeWin32Classic.cs: Add support for drawing status bar and get
18111           status bar item sizes
18112
18113 2004-08-09 15:21  jackson
18114
18115         * ThemeWin32Classic.cs: Use known colors for default control
18116           colours
18117
18118 2004-08-09 15:12  jackson
18119
18120         * ThemeWin32Classic.cs: Make the default font static, it is static
18121           in control so this doesn't change functionality and creating fonts
18122           is sloooooow.
18123
18124 2004-08-09 14:56  pbartok
18125
18126         * X11Structs.cs:
18127           - Added GrabMode enum
18128
18129 2004-08-09 14:55  pbartok
18130
18131         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18132           - Removed Run method, was only required for initial development
18133
18134 2004-08-09 14:51  pbartok
18135
18136         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18137           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
18138           capture
18139
18140 2004-08-09 13:48  pbartok
18141
18142         * XplatUIX11.cs:
18143           - Fixed default sizing for child windows
18144
18145 2004-08-09 12:56  pbartok
18146
18147         * XplatUIX11.cs:
18148           - Added generation of WM_DESTROY message
18149           - Added handling of window manager induced shutdown
18150
18151 2004-08-09 11:31  jackson
18152
18153         * ThemeWin32Classic.cs: New names for control properties
18154
18155 2004-08-09 11:25  jackson
18156
18157         * Control.cs: Use new color names
18158
18159 2004-08-09 11:02  jackson
18160
18161         * XplatUI.cs: Get default window properties from the theme
18162
18163 2004-08-09 11:01  jackson
18164
18165         * ITheme.cs: The theme engine now controls default window
18166           properties
18167
18168 2004-08-09 11:00  jackson
18169
18170         * ThemeWin32Classic.cs: Add default window color properties
18171
18172 2004-08-09 10:17  jackson
18173
18174         * ThemeWin32Classic.cs: Use correct default back color
18175
18176 2004-08-09 10:05  jackson
18177
18178         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
18179           the theme now.
18180
18181 2004-08-09 09:56  jackson
18182
18183         * XplatUI.cs: Remove defaults, these are handled by the theme now.
18184
18185 2004-08-09 09:54  jackson
18186
18187         * Control.cs: Get default properties from the theme.
18188
18189 2004-08-09 09:53  jackson
18190
18191         * ITheme.cs: Themes now handle default control properties
18192
18193 2004-08-09 09:53  jackson
18194
18195         * ThemeWin32Classic.cs: Themes now handle default control
18196           properties so coloring will be consistent
18197
18198 2004-08-08 16:54  jordi
18199
18200         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
18201
18202 2004-08-08 15:08  jordi
18203
18204         * XplatUIX11.cs: fixes keyboard crash
18205
18206 2004-08-08 13:47  jordi
18207
18208         * Label.cs: add cvs header info
18209
18210 2004-08-08 12:09  jackson
18211
18212         * ThemeWin32Classic.cs: Add pen_buttonface
18213
18214 2004-08-08 11:52  jordi
18215
18216         * Label.cs, LinkLabel.cs: [no log message]
18217
18218 2004-08-08 11:34  jordi
18219
18220         * ThemeWin32Classic.cs: Use Windows Standard Colours
18221
18222 2004-08-07 17:32  jordi
18223
18224         * TrackBar.cs: throw exceptions of invalid enums values
18225
18226 2004-08-07 17:31  jordi
18227
18228         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
18229           draw method name
18230
18231 2004-08-07 16:56  jackson
18232
18233         * HorizontalAlignment.cs: Initial checkin
18234
18235 2004-08-07 13:16  jordi
18236
18237         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
18238           methods
18239
18240 2004-08-07 13:05  jordi
18241
18242         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
18243           GetSysColor defines
18244
18245 2004-08-06 18:01  pbartok
18246
18247         * ThemeWin32Classic.cs:
18248           - Fixed some rounding issues with float/int
18249
18250 2004-08-06 18:00  jackson
18251
18252         * DockStyle.cs, AnchorStyles.cs:
18253
18254                   Add flags and serializable attributes.
18255
18256 2004-08-06 17:46  pbartok
18257
18258         * XplatUIX11.cs:
18259           - Implemented GetParent
18260
18261 2004-08-06 17:18  pbartok
18262
18263         * TrackBar.cs:
18264           - Fixed some rounding issues with float/int
18265
18266 2004-08-06 17:17  pbartok
18267
18268         * X11Structs.cs, XplatUIX11.cs:
18269           - Fixed Refresh and Invalidate
18270
18271 2004-08-06 15:30  pbartok
18272
18273         * Control.cs, X11Structs.cs, XplatUIX11.cs:
18274           - Fixed recursive loop when resizing
18275           - Improved/fixed redrawing on expose messages
18276
18277 2004-08-06 09:53  jordi
18278
18279         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
18280           keyboard navigation
18281
18282 2004-08-06 08:02  pbartok
18283
18284         * X11Structs.cs, XplatUIX11.cs:
18285           - Fixed reparenting
18286           - Fixed window border creation
18287
18288 2004-08-05 15:38  pbartok
18289
18290         * XplatUIX11.cs:
18291           - Attempted fix for reparenting problems
18292
18293 2004-08-04 15:14  pbartok
18294
18295         * Control.cs:
18296           - Fixed Invalidation bug (calculated wrong client area)
18297           - Added ClientSize setter
18298
18299 2004-08-04 15:13  pbartok
18300
18301         * Form.cs:
18302           - Added AutoScale properties
18303
18304 2004-08-04 15:13  pbartok
18305
18306         * SWF.csproj:
18307           - Added latest files
18308
18309 2004-08-04 14:11  pbartok
18310
18311         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18312           XplatUIX11.cs:
18313           - Added Invalidate handling
18314
18315 2004-08-03 17:09  jordi
18316
18317         * XplatUIDriver.cs: fixes spelling mistake
18318
18319 2004-07-27 09:53  jordi
18320
18321         * TrackBar.cs: fixes trackbar events, def classname, methods
18322           signature
18323
18324 2004-07-27 09:29  jordi
18325
18326         * ScrollBar.cs: fixes scrollbar events
18327
18328 2004-07-27 04:38  jordi
18329
18330         * Control.cs: changes to be able to run winforms samples
18331
18332 2004-07-26 11:42  jordi
18333
18334         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
18335           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
18336
18337 2004-07-26 05:41  jordi
18338
18339         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
18340           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
18341           implementation
18342
18343 2004-07-22 09:22  jordi
18344
18345         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
18346           check link overlapping, implement events, and fixes
18347
18348 2004-07-21 10:28  jordi
18349
18350         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
18351
18352 2004-07-21 10:19  jordi
18353
18354         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
18355           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
18356           LinkLabelLinkClickedEventArgs.cs,
18357           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
18358           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
18359           implementation
18360
18361 2004-07-19 13:09  jordi
18362
18363         * Control.cs, Label.cs: label control re-written: added missing
18364           functionlity, events, and properties
18365
18366 2004-07-19 10:49  jordi
18367
18368         * Control.cs: fixes SetBounds logic
18369
18370 2004-07-19 01:29  jordi
18371
18372         * Control.cs: Call RefreshWindow only if the window has created
18373
18374 2004-07-15 14:05  pbartok
18375
18376         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
18377           - Implemented ImageList and ImageList.ImageCollection classes
18378           - Added ColorDepth enumeration
18379           - Updated SWF VS.Net project
18380
18381 2004-07-15 11:06  jordi
18382
18383         * XplatUIStructs.cs: added MsgButons enum
18384
18385 2004-07-15 11:03  jordi
18386
18387         * Control.cs: added basic mouse handeling events
18388
18389 2004-07-15 03:38  jordi
18390
18391         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
18392           Vertical TrackBar control implementation
18393
18394 2004-07-13 09:33  jordi
18395
18396         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
18397
18398 2004-07-13 09:31  jordi
18399
18400         * Control.cs, Form.cs: commit: new properties and fixes form size
18401           problems
18402
18403 2004-07-09 14:13  miguel
18404
18405         * ProgressBar.cs: Spelling
18406
18407 2004-07-09 11:25  pbartok
18408
18409         * ProgressBar.cs:
18410           - Removed usage of Rectangle for drawing. Miguel pointed out it's
18411           faster
18412
18413 2004-07-09 11:17  miguel
18414
18415         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
18416
18417                 * ProgressBar.cs: Fixed spelling for `block'
18418
18419                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
18420                 style guidelines.
18421
18422                 Avoid using the += on rect.X, that exposed a bug in the compiler.
18423
18424 2004-07-08 23:21  pbartok
18425
18426         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
18427           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
18428           BaseCollection.cs, Binding.cs, BindingContext.cs,
18429           BindingMemberInfo.cs, BindingsCollection.cs,
18430           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
18431           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
18432           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
18433           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
18434           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
18435           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
18436           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
18437           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
18438           FrameStyle.cs, GiveFeedbackEventArgs.cs,
18439           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
18440           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
18441           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
18442           InputLanguageChangedEventArgs.cs,
18443           InputLanguageChangedEventHandler.cs,
18444           InputLanguageChangingEventArgs.cs,
18445           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
18446           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
18447           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
18448           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
18449           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
18450           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
18451           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
18452           QueryAccessibilityHelpEventArgs.cs,
18453           QueryAccessibilityHelpEventHandler.cs,
18454           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
18455           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
18456           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
18457           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
18458           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
18459           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
18460           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
18461           XplatUIX11.cs, lang.cs:
18462           - Initial check-in
18463