2006-03-08 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2
3         * Control.cs:
4           - We now only destroy our double-buffering buffers when the
5             control is resized or disposed, but not when visibility
6             changes. (The code even re-created them twice every time)
7           - Now requiring a redraw of the buffer on visibility changes
8             (fixes bug 77654 part 2)
9           - Not passing OnParentVisibleChanged up unless the control
10             is visible
11           - CanFocus: Fixed to match MS documentation
12           - Focus: Fixed to return actual focus state and to check if
13             setting focus is legal before setting it
14         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15           when to draw focus rectangle by looking at parent focus and
16           selected state instead. This fixes TabPages on Linux sometimes
17           having none or multiple focus rectangles.
18         * XplatUIX11.cs (SetFocus): 
19           - Don't set the focus if the same window already has focus
20           - Use SendMessage instead of PostMessage (like it's Win32
21             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
22             to match MS behaviour
23         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24           are not selectable.
25
26 2006-03-07  Jackson Harper  <jackson@ximian.com>
27
28         * PictureBox.cs: Revert line I accidently committed last week.
29
30 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
31
32         * Control.cs: 
33           - Added new IsRecreating and ParentIsRecreating properties to
34             allow testing if RecreateHandle has been called on ourselves
35             or one of our parents
36           - WndProc(WM_DESTROY): If our control handle is being recreated
37             we immediately need to create the handle when receiving the
38             destroy, that way our child windows find a valid parent handle
39             when they themselves are being recreated upon WM_DESTROY receipt
40             (fix for bug #77654 part 1)
41         * XplatUIX11.cs:
42           - DestroyWindow: WM_DESTROY must be sent to our own window before
43             notifying any child windows. MS documents that child windows
44             are still valid when WM_DESTROY is received. (Control now relies on
45             this behaviour)
46           - Added some fine-grain debug options
47
48 2006-03-06  Jackson Harper  <jackson@ximian.com>
49
50         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
51         box and base calculations off this.
52         * MdiChildContext.cs:
53         * MdiWindowManager.cs: Don't need to ensure scrollbars here
54         anymore.
55         
56 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
57
58         * Splitter.cs: In situations where the affected control is added
59           to the parent's control list after the splitter, we would not
60           populate affected. Now we try populating it on mousedown, if
61           it's not already set, and force it to be re-set whenever our
62           parent changes.
63
64 2006-03-03  Matt Hargett  <matt@use.net>
65
66         * Control.cs: implement Control.Padding
67         * Padding.cs: -Padding.All returns -1 when constructing with the
68         implicit default ctor
69         -Padding.ToString() matches MS.NET
70         * ContainerControl.cs: implement
71         ContainerControl.AutoScaleDimensions
72         * ListControl.cs: implement ListControl.FormattingEnabled
73         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
74         * ButtonBase.cs:
75         * TabPage.cs: Implement UseVisualStyleBackColor.
76         * PictureBox.cs: Implement PictureBox.InitialImage.
77
78 2006-03-03  Mike Kestner  <mkestner@novell.com>
79
80         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
81         event declarations to proxy to base event.
82         * ListViewItem.cs: update to use ItemControl.
83         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
84         * ThemeWin32Classic.cs: update to new ListView theme API and fix
85         column header label rendering for 0 width columns.
86
87 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
88
89         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
90           that causes the control to be created. Fixes #77476.
91
92 2006-03-02  Jackson Harper  <jackson@ximian.com>
93
94         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
95         expose_pending.
96
97 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
98
99         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
100           passed in for the EventArgs (fixes #77690)
101
102 2006-03-01  Jackson Harper  <jackson@ximian.com>
103
104         * ScrollBar.cs: Refresh afterbeing resized.
105
106 2006-02-28  Mike Kestner  <mkestner@novell.com>
107
108         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
109         Clean up a tracker compile warning.
110         * MenuItem.cs: add internal PerformPopup method.
111         [Fixes #77457]
112
113 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
114
115         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
116           implicit expose) when the text is set to null
117
118 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
119
120         * RichTextBox.cs (FlushText): When newline is true, we always
121           need to split the line, even if no text is on it and we may
122           never eat newlines. (Fixes #77669)
123
124 2006-02-28  Mike Kestner  <mkestner@novell.com>
125
126         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
127         and set Selected instead.
128         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
129         collections.
130
131 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
132
133         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
134
135 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
136
137         * FontDialog.cs:
138           - Got rid of the panel. All controls are now directly added to
139             the dialog form
140           - It is now possible to set a font with the Font property
141           - MinSize and MaxSize property do now what they should
142           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
143           - Searching and selecting a font with the font textbox works now,
144             the same applies to the style and size textbox
145           - Draw the correct 3D border in the example panel
146           - Fixed a little mem leak (unused fonts didn't get disposed)
147           - Many other internal updates/rewrites...
148           - Fix typo
149
150 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
151
152         * TextControl.cs: 
153           - InsertRTFFromStream: Added 'number of characters inserted' argument
154           - set_SelectedRTF: Now using the number of characters to calculate
155             the new location for the selection and cursor (x/y cannot be used
156             due to potentially already wrapped text)
157
158 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
159
160         * TextControl.cs: Added property and implemented means to allow 
161           disabling recalculation of a document (can be used to speed up
162           multiple inserts and is needed to make RTF inserts predictable, see
163           bug #77659)
164         * RichTextBox.cs: Using the new NoRecalc property of Document to
165           keep x/y insert locations predictable. Also makes it faster inserting
166           large chunks of RTF
167
168 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
169
170         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
171           it's easier for a child control to handle the other messages without
172           having to duplicate the special functionality
173         * TextBoxBase.cs
174           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
175             code to handle processing the key ourselves, in order to get 
176             access to the result of KeyEventArgs.Handled. We now only call 
177             ProcessKey if they key hasn't been handled already. Fixes #77526.
178           - set_Text: If null or empty string is given, just clear the 
179             document. Fixes part of #77526
180
181 2006-02-27  Jackson Harper  <jackson@ximian.com>
182
183         * SizeGrip.cs: Paint the background color before painting the grip
184         so things look right.
185         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
186
187 2006-02-27  Mike Kestner  <mkestner@novell.com>
188
189         * ListView.cs:
190           - Restructure layout and invalidation model to remove a ton of
191           flicker from the control and speed up performance in general.
192           - Add manual column resize, flickers like crazy, but I already have
193           some ideas on how I'll fix that. (#76822)
194           - Merge the three Icon-based views into a single layout method.
195           - Move item selection interaction logic from the item since 
196           interaction with the collections is more appropriate to the view.
197           - Deselection on non-item clicks.
198         * ListViewItem.cs:
199           - Encapsulate most of the layout. Add some internal props to trigger
200           layout.  Move to a model where Items invalidate themselves instead
201           of just invalidating the whole control every time something changes.
202           - Invalidate on Text/Caption changes.
203           - switch to an offset based layout model to avoid having to absolute
204           position every element on item moves.
205           - correct checkbox layout to conform to MS layout.
206         * ThemeWin32Classic.cs:
207           - refactor some column header drawing code.
208           - fix string justification for column headers (#76821)
209           - make SmallIcon labels top justified for compat with MS impl.
210         * ThemeClearlooks.cs:
211           - adjust to new ListViewItem internal checkbox bounds api.
212
213 2006-02-27  Jackson Harper  <jackson@ximian.com>
214
215         * Control.cs:  Change where implicit controls fall in the zorder.
216         They are now on top of all children.
217         - Synced AddImplicit code with Add
218         - Removed unused enumerator.
219         * SizeGrip.cs: Remove the TODO as its been TODONE.
220
221 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
222
223         * TextControl.cs(Insert): Combine the last lines unless the insertion
224           string ends with \n\n, otherwise we leave one line too many (Fixes
225           something I noticed with the testapp for #77526; the bug itself was
226           already fixed in the previous checkin)
227
228 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
229
230         * RichTextBox.cs:
231           - SelectionColor and SelectionFont methods no longer set absolute
232             styles. Instead, the keep font or color respectively (This 
233             resolves a long-standing FIXME in the code)
234           - When flushing RTF text, the insert code now considers text trailing
235             behind the insertion point (Fixes the bug where when replacing
236             the selected text via SelectedRTF the remainder of the line behind 
237             the selection would stay on the first insertion line)
238         * TextBoxBase.cs:
239           - AppendText now updates the selection points after inserting text
240           - AppendText now ensures that the last tag (sometimes 0-length) of
241             the document is used for the style information (Fixes part of 
242             bug #77220)
243         * TextControl.cs:
244           - Created new FontDefiniton class to allow describing partial style
245             changes
246           - StreamLine() now takes a lines argument, to allow it to decide
247             whether an encountered zero-length tag is the last in the document
248             (which must be kept to not loose the font/color contained in it,
249             for later appends)
250           - Created Combine() and Split() methods for Marker structs, to 
251             support marker updates due to reformatted documents (soft line
252             wraps)
253           - Implemented Document.CaretTag setter
254           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
255             of the last line (Not the cause, but also exposed by bug #77220)
256           - Added LineTag argument to InsertString method, to allow callers
257             to force a certain tag to be used (required to force use of the
258             trailing zero-length tag of a document)
259           - Now updating markers in Combine(), to avoid stale tag markers
260           - Added some method descriptions to aid maintenance
261           - Implemented new FormatText concept, allowing additive/subtractive
262             formatting by only specifying the components that are to be 
263             changed. This was needed for resolving the RTB.SelectedColor/
264             RTB.SelectedFont fixmes
265           - Added Break() support method to allow breaking up linetags (used
266             for partial formatting)
267           - Added GenerateTextFormat() method. It is used for partial 
268             formatting and allows to generate a full font/color from given
269             attributes and an existing tag.
270
271 2006-02-26  Jackson Harper  <jackson@ximian.com>
272
273         * XplatUIX11.cs:  Use the correct caption height.
274         - Translate hittest coordinates to screen coords to match MS.
275         * XplatUIWin32.cs: When we create MDI windows we need to reset
276         some of the style flags, so we get a nice blank window, and can
277         draw all the decorations ourselves.
278         - Set a clipping rectangle on the non client paint event, the
279         window manager drawing code needs one.
280         * Form.cs: The window manager needs to know when the window state
281         has been updated.
282         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
283         don't need to factor in border and title sizes in these
284         methods. TODO: Remove the args and fix the call points.
285         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
286         properly.
287         - Let the driver set the cursors.
288         - Improve active window handling
289         - Correct sizes for title bars and buttons.
290         - Match MS drawing better
291         * MdiWindowManager.cs: We don't need to handle border style
292         updates specially anymore.
293         - Check for scrollbars when windows are done moving
294         - Handle Active properly.
295         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
296         correctly. I am spewing the exception though, so we don't hide the
297         bugs.
298         
299 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
300
301         * DataGridViewRowPostPaintEventArgs.cs,
302           DataGridViewCellPaintingEventArgs.cs,
303           DataGridViewRowCollection.cs,
304           DataGridViewRowPrePaintEventArgs.cs,
305           DataGridViewCell.cs: Clear a few warnings and implement a few
306           exceptions that should be thrown.
307
308 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
309
310         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
311           'inheriting' our parent's (non-default) cursor. (Part of
312            the fix for #77479)
313
314 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
315
316         * XplatUIX11.cs: Fixed cast to make csc happy
317
318 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
319
320         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
321           it's for the client area (part of fix for #77479 and needed
322           for MDI window cursor handling)
323         * XplatUIX11.cs
324           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
325             the appropriate default cursors and also passing the message
326             up the parent chain 
327           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
328             for non-client areas
329
330 2006-02-15  Jackson Harper  <jackson@ximian.com>
331
332         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
333         is a real MDI window
334
335 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
336
337         * X11DesktopColors.cs: Instead of checking the desktop session
338           string for "KDE" check if it starts with "KDE"
339
340 2006-02-10  Jackson Harper  <jackson@ximian.com>
341
342         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
343         systems).
344
345 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
346
347         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
348           errors
349         * ColorDialog.cs:
350           - Got rid of the panel. All controls are now directly added to
351             the dialog form
352           - Changed to mono coding style
353
354 2006-02-10  Jackson Harper  <jackson@ximian.com>
355
356         * InternalWindowManager.cs: We don't need the set visibility to
357         false hack anymore now that peter has written beautiful shutdown
358         code.
359
360 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
361
362         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
363           where already explicitly destroyed
364
365 2006-02-10  Jackson Harper  <jackson@ximian.com>
366
367         * MdiClient.cs: Handle the case where windows are too high or to
368         the left and we need scrollbars.
369
370 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
371
372         * MimeIcon.cs: Added some icons
373         * FileDialog.cs:
374           - Fixed bug #77477
375           - Got rid of the panel. All controls are now directly added to
376             the dialog form
377           - Changed to mono coding style
378           - On Linux "My Computer" and "My Network" will now show some
379             more usefull information. A new class, MasterMount, gathers
380             this information from /proc/mount. Updated MWFFileView to make
381             use of this information
382           - Fixed a bug that caused FileDialog to crash when
383             ".recently_used" file had a zero size
384           - FilterIndex does now what it should
385           - Some Refactoring
386         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
387             FileDialog changes
388
389 2006-02-09  Jackson Harper  <jackson@ximian.com>
390
391         * ComboBox.cs: Don't touch if null.
392
393 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
394
395         * Cursor.cs: 64bit safeness fix
396         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
397
398 2006-02-09  Jackson Harper  <jackson@ximian.com>
399
400         * Form.cs: If a form is made into an MDI form update the styles so
401         all the props can get set correctly.
402         - Kill the mdi_container when we dont need it anymore.
403         * InternalWindowManager.cs: Add missing NOT
404
405 2006-02-08  Jackson Harper  <jackson@ximian.com>
406
407         * InternalWindowManager.cs: Respek clipping when drawing MDi
408         decorations.
409
410 2006-02-08  Jackson Harper  <jackson@ximian.com>
411
412         * Hwnd.cs: Add bits to track non client expose events.
413         * XplatUIX11.cs: Track non client expose events on the hwnd. This
414         gives us a proper invalid rect and will allow for some nice
415         optimizations with NC client drawing
416         - MDI windows are children windows, so move their style handling
417         into the child window block.
418         * InternalWindowManager.cs: Remove a state reset that was
419         getting invoked at the wrong time. Fixes managed windows getting
420         into a 'stuck' captured state.
421
422 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
423
424         * TextControl.cs (Document.ctor): Now initializing 
425           selection_anchor. Fixes #77493
426
427 2006-02-07  Jackson Harper  <jackson@ximian.com>
428
429         * TrackBar.cs: The increment/decrements were backwards.
430
431 2006-02-07  Mike Kestner  <mkestner@novell.com>
432
433         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
434         to the instance itself.
435
436 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
437
438         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
439           on ulongs and pointers, the size differs between 32bit and 64bit
440           systems. 
441
442 2006-02-07  Mike Kestner  <mkestner@novell.com>
443
444         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
445         for 64 bit platforms to work around a metacity bug. 
446
447 2006-02-07  Jackson Harper  <jackson@ximian.com>
448
449         * TrackBar.cs: Process the input keys we need, and hookup to
450         KeyDown instead of using WndProc, so we get key messages.
451
452 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
453
454         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
455           machine we're on. 
456         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
457           we need to translate the XdndVersion atoms array before sending it
458
459 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
460
461         * XplatUIX11.cs: 
462           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
463             number of bits for the property, not the number of bytes. The
464             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
465             but would not crash since it specified 8 bits instead of 4 bits)
466           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
467             defined as XID -> long in the C headers)
468           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
469             references since those are now IntPtr to begin with
470           - Switched all Atom.XXX 'int' casts to IntPtr casts
471           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
472           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
473           - Added XChangeActivePointerGrab DllImport (for X11DnD)
474         * X11Structs.cs:
475           - Changed 'int' type for Atoms in XEvent structures to IntPtr
476           - Changed atom in HoverStruct to be IntPtr
477         * X11DnD.cs:
478           - Removed local DllImports, switched code to use those from XplatUIX11
479           - Removed/fixed casts related to the switch of Atom to be a IntPtr
480
481 2006-02-06  Mike Kestner  <mkestner@novell.com>
482
483         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
484         method signatures in the import region.  There may still be some
485         lingering struct marshaling issues, as I didn't drill down into those.
486         Yet.
487
488 2006-02-06  Jackson Harper  <jackson@ximian.com>
489
490         * ComboBox.cs: Dont manually set the top_item, this is computed
491         when the scrollbar position is set.
492
493 2006-02-06  Mike Kestner  <mkestner@novell.com>
494
495         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
496         startup crashes on amd64.  There's other fixes needed.  All pinvoke
497         usage of Atom needs to be mapped to IntPtr for example.  And there are
498         likely other int/long issues to be addressed.
499
500 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
501
502         * FileDialog.cs: One more...
503
504 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
505
506         * FileDialog.cs: Next try
507
508 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
509
510         * FileDialog.cs: First part of fix for #77464
511
512 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
513
514         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
515           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
516           AcceptButton border drawing.
517
518 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
519
520         * Form.cs: Moved positioning of form after auto scaling is applied,
521           otherwise it would possibly use wrong form size.
522
523 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
524
525         * Control.cs (RecreateHandle): No need to re-create any child
526           controls, the child windows will get destroyed automatically by
527           the windowing system or driver, and re-created when the handle
528           is being accessed the first time. Fixes #77456
529         * Form.cs: No longer setting the form to closing if the handle is 
530           being recreated. This seems like the right thing to do, don't
531           have a bug or testcase for this, though.
532
533 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
534
535         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
536           controls to avoid unwanted side effects
537
538 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
539
540         * Control.cs: 
541           - ScaleCore needs to scale the bounds, not the ClientSize of the 
542             control. Fixes #77416.
543           - DefaultSize is 0,0 for control
544         * TextBoxBase.cs: 
545           - DefaultSize is 100, 20
546           - SetBoundsCore: Now enforcing the height, no matter if the provided
547             height is more or less than the preferred one, as long as AutoSize
548             is on
549         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
550
551 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
552
553         * Control.cs:
554           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
555             call unless both performLayout is true *and* we have a pending
556             layout change
557           - ResumeLayout: MS does not completely nest Suspend and Resume,
558             they bottom out at 0, fixed our code to match that.
559           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
560             SetBoundsCore, we were updating even when we shouldn't. This fixes
561             swf-anchors mis-anchoring when resizing the app fast and lots.
562           - UpdateDistances: Now only setting the left and top distance if 
563             we have a parent and are not suspended, this is based on
564             a suggestion by Don Edvaldson in bug #77355.
565           - OnVisibleChanged: Fixed logic when to create the control. We may
566             not create the control if we have no parent or if it's not visible;
567             switched to using Visible property instead of is_visible field 
568             since the property also considers parent states. This fixes a bug
569             when starting Paint.Net
570
571 2006-02-02  Jackson Harper  <jackson@ximian.com>
572
573         * Form.cs: If the forms handle hasn't been created yet don't call
574         into xplatui to make it top most, just set the topmost flag on the
575         form in CreateParams
576         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
577
578 2006-02-01  Jackson Harper  <jackson@ximian.com>
579
580         * ScrollableControl.cs: Refactored the Recalculate method a
581         little, this wasn't handling all the variants of bottom and right
582         bars needed to be added and added/removed based on their
583         counterparts being added/removed (which changes the drawable
584         size). Also we special case client widths and heights of 0 and
585         don't add the scrollbar for those.
586
587 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
588
589         * XplatUIX11.cs: 
590           - Added method to get AbsoluteGeometry(); currently unused, but might
591             be used in the future, if we try again to figure out toplevel
592             coordinates with some more crappy window managers
593           - Added FrameExtents() method to retrieve the WM set decoration size
594           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
595             to deal with at least KDE, FVWM and metacity (Fixes #77092)
596         * Hwnd.cs: 
597           - Added whacky_wm tracking var for metacity
598           - Added logic to have default menu height if the actual menu height
599             has not yet been calculated (part of fix for #77426)
600         * Form.cs: Keep track whether client size has been set and re-set 
601           it if a menu is added/removed afterwards (Fixes #77426)
602
603 2006-01-31  Jackson Harper  <jackson@ximian.com>
604
605         * Control.cs: When a new Site is set on the component attempt to
606         pull the AmbientProperties from it.
607
608 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
609
610         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
611           in the background of the owning form. Fixes #77332
612
613 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
614
615         * MimeIcon.cs: Fix for #77409
616
617 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
618
619         * XplatUIX11GTK.cs: Initial import
620
621 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
622
623         * FixedSizeTextBox: fixes class signature
624
625 2006-01-30  Jackson Harper  <jackson@ximian.com>
626
627         * FixedSizeTextBox.cs: New internal class that represents a
628         textBox that will not be scaled.
629         * TreeView.cs:
630         * ComboBox.cs:
631         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
632         standard TextBox.
633                 
634 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
635
636         * XplatUIX11.cs: Retrieve default screen number instead of
637           assuming 0. Attempted fix for #77318
638
639 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
640
641         * XplatUIWin32.cs: 
642           - GetWindowPos: When a window is parented by FosterParent, use 
643             the desktop instead of FosterParent as the base to get coordinates
644           - CreateWindow: Don't make FosterParent the parent window for Popups
645             if we don't want a taskbar entry, Popups automatically don't get one
646         * Hwnd.cs: Need to call remove to actually remove the key from the
647           hash table
648
649 2006-01-30  Mike Kestner  <mkestner@novell.com>
650
651         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
652
653 2006-01-30  Jackson Harper  <jackson@ximian.com>
654
655         * TreeView.cs:
656         * TreeNode.cs: Raise events no matter how the treenode is
657         checked. Patch by Don Edvalson.
658
659 2006-01-30  Jackson Harper  <jackson@ximian.com>
660
661         * TreeNode.cs: Signature fix.
662
663 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
664
665         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
666
667 2006-01-20  Mike Kestner  <mkestner@novell.com>
668
669         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
670         event forwarding when menus are active.
671         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
672         Most of the patch is pdb's with a little rework.
673
674 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
675
676         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
677           Removed GetMenuDC and ReleaseMenuDC methods; replaced
678           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
679         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
680         * InternalWindowManager.cs: Added use of PaintEventStart/End to
681           handling of WM_NCPAINT message, now passing the PaintEventArgs to
682           the PaintWindowDecorations method
683         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
684         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
685         * MenuAPI.cs: Made tracker window invisible
686         * XplatUIWin32.cs:
687           - Removed GetMenuDC and ReleaseMenuDC methods
688           - Implemented the client=false path for PaintEventStart and
689             PaintEventEnd
690
691 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
692
693         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
694         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
695           styles
696         * Form.cs: 
697           - MaximizeBox, MinimizeBox: Recreate the handle when setting
698             the style
699           - CreateParams: Reworked the styles to match MS look'n'feel,
700             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
701             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
702
703 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
704
705         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
706           window is not mapped, since otherwise every form that's being 
707           created is considered minimized, which is wrong.
708         * Form.cs: Catching the exception and returning our internal value
709           instead
710
711 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
712
713         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
714           SetWindowMinMax() to have means to tell the driver about the minimum,
715           maximum and maximized state window sizes. (Part of the fix for #76485)
716         * Form.cs:
717           - Implemented tracking of minimum and maximum window size, now calling
718             new SetWindowMinMax() driver method to tell the driver (Part of the
719             fix for #76485)
720           - Finished handling of WM_GETMINMAXINFO method, now setting all values
721             (Completes fix for #76485)
722           - Calling new SetWindowMinMax driver method when the handle for a 
723             form is created, to make sure the driver knows about it even if
724             the values have been set before the window was created
725           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
726             to avoid messing up our anchoring calculations (partial fix
727             for #77355)
728         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
729         * XplatUIX11.cs:
730           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
731           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
732             (and presumably other freedesktop.org compliant WMs). Left the
733             assumption unmapped=minimized, needed for SetVisible to work.
734           - Now setting the window state when creating windows
735           - Fixed SetVisible to consider/set the window state when mapping
736             a Form. We cannot set the state before it's mapped, and we cannot
737             use Form.WindowState once it's mapped (since it would ask the
738             driver and get 'normal'. Therefore, we grab the state before
739             mapping, map, and then set state.
740           - Implmemented SetWindowMinMax method; Metacity does not seem to
741             honor the ZoomHints, though.
742         * XplatUIWin32.cs:
743           - Removed MINMAXINFO (moved to XplatUIStructs)
744           - Added SetWindowMinMax stub (on Win32 the only way to set that
745             information is in response to the WM_GETMINMAXINFO message, which
746             is handled in Form.cs)
747           - Added logic to SetVisible to set the proper window state when a 
748             form is made visible (fixes #75720)
749
750 2006-01-26  Jackson Harper  <jackson@ximian.com>
751
752         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
753         same way we handle them with Invoke.
754
755 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
756
757         * Form.cs:
758           - Added tracking of window state so CreateParams can return
759             the appropriate style
760           - Moved setting of WS_CAPTION style in CreateParams to allow
761             styles without caption
762         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
763           control if the TextBox property is accessed. Fixes #77345
764         * Control.cs:
765           - get_Created: now uses is_disposed and is_created to determine
766             return value (suggested by Jackson)
767           - CreateHandle: No longer exits if the handle is being recreated
768           - RecreateHandle: If the handle is not yet created call the 
769             appropriate method to create either control or handle. If the
770             control is already created CreateHandle will simply exit instead
771             of just creating the handle
772         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
773           now SendMessage WM_DESTROY directly to the control when DestroyWindow
774           is called.
775         * XplatUIX11.cs: 
776           - When DestroyWindow is called, instead of waiting for the 
777             DestroyNotification from X11, we directly post it to the WndProc
778             and immediately dispose the hwnd object.
779             Same applies to DestroyChildWindows, and this obsoletes the
780             expose_pending tracking. Contrary to Win32 behaviour we destroy our
781             child windows before our own, to avoid X11 errors.
782           - Removed the direct sending of WM_PAINT on UpdateWindow
783         * XplatUIWin32.cs:
784           - Reworked DoEvents and GetMessage to allow access to internal queue
785             even when trying non-blocking access to the queue.  Fixes #77335. 
786             Based on a patch suggestion by Don Edvalson. The new private
787             GetMessage can now also be used as a backend for a PeekMessage
788             frontend version.
789         * XplatUI.cs: Improved debug output for CreateWindow
790
791 2006-01-25  Jackson Harper  <jackson@ximian.com>
792
793         * Help.cs: Allow param to be null. Patch by Don Edvalson.
794
795 2006-01-24  Jackson Harper  <jackson@ximian.com>
796
797         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
798         when we have a MaxDropItems lower then the selected index.
799
800 2006-01-24  Jackson Harper  <jackson@ximian.com>
801
802         * Control.cs: Don't allow selection of non visible controls, allow
803         selection of controls without parents.
804
805 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
806
807         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
808         * DataGridDrawingLogic.cs: Add editing row only when is necessary
809
810 2006-01-23  Jackson Harper  <jackson@ximian.com>
811
812         * UpDownBase.cs: Make the textbox handle all the selection and
813         tabbing. This fixes tabing to updown controls.
814
815 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
816
817         * TextBoxBase.cs: fixes exception thown the object was null
818
819 2006-01-23  Jackson Harper  <jackson@ximian.com>
820
821         * ButtonBase.cs: Just use the base CreateParams. They set
822         visibility and enabled correctly.
823         * ComboBox.cs:
824         * TrackBar.cs:
825         * MonthCalendar.cs: Lets let the base set as much of the
826         createparams as possible so we don't have duplicate code all over
827         the place.
828
829 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
830
831         * ThemeGtk.cs: Added TrackBar and some experimental code to
832           get double buffering back
833
834 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
835
836         * DataGrid.cs: Allows row number set internally higher than the last
837         when creating a new row. Restores the editing functionality.
838
839 2006-01-20  Mike Kestner  <mkestner@novell.com>
840
841         * MimeIcon.cs: delay Image creation until the icons are accessed
842         instead of creating 190 scaled images on GnomeHandler startup.
843
844 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
845
846         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
847           first call base before processing the event. Fixes #77279
848
849 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
850
851         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
852           that the stride for the GDI bitmap would match the stride of
853           a DIB or a Cursor.
854
855 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
856
857         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
858
859 2006-01-19  Jackson Harper  <jackson@ximian.com>
860
861         * ComboBox.cs: Hookup the text controls keydown event so we get
862         those when the text control has the focus.
863
864 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
865
866         * Label.cs: Now using the base events instead of defining new ones;
867           this allows us to just call the base properties without having to
868           duplicate all base property logic 
869
870 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
871
872         * Label.cs: A label by default is not a tabstop (Fixes one of our
873           failing nunit tests)
874
875 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
876
877         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
878         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
879
880 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
881
882         * Cursor.cs: Reimplemented creating cursor bitmaps without using
883           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
884           This fixes #77218
885         * XplatUIWin32.cs: 
886           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
887             constructor creates images that can't be saved. Part of the fix
888             for #76103
889           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
890           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
891             bug fix for handling window state in forms properly)
892
893 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
894
895         * ThemeGtk.cs: Simplify ScrollBar drawing
896
897 2006-01-18  Jackson Harper  <jackson@ximian.com>
898
899         * Splitter.cs: Set the default dock style for the splitter control
900         in the constructor.
901
902 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
903
904         * ThemeGtk.cs: Corrected StateType and ShadowType for
905           gtk_paint_box
906
907 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
908
909         * Control.cs: Make use of Theme.DoubleBufferingSupported
910         * ThemeGtk.cs:
911           - Added drawing for flat style buttons
912           - Added ScrollBar drawing
913
914 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
915
916         * ThemeClearlooks.cs: Removed some unneeded code.
917         * ThemeGtk.cs: First part of ThemeGtk enhancements.
918
919 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
920
921         * LinkLabel.cs: We need to update the hover drawing when
922           leaving the control as well.
923
924 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
925
926         * DataGrid.cs: Clicking on non empty areas in the columns
927            area was giving an exception
928
929 2006-01-17  Jackson Harper  <jackson@ximian.com>
930
931         * ThemeWin32Classic.cs:
932         * ListView.cs: Do not draw/clip the headers when the header style
933         is None.
934
935 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
936
937         * DataGrid.cs: Fixes 77260
938         
939 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
940
941         * DataGrid.cs: Clicking on a column on a empty grid was giving
942           an exception
943
944 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
945
946         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
947           or any keypress will crash the grid.
948
949 2006-01-17  Mike Kestner  <mkestner@novell.com>
950
951         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
952         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
953         invisible/previously-visible items.
954         [Fixes #76909]
955
956 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
957
958         * ThemeClearlooks.cs:
959         - Added CL_Draw_Button method; now other theme controls that are 
960           not derived from button or do not have a button can draw buttons
961           too
962         - Updated ComboBox drawing
963         - Beautified RadioButton drawing
964         - Corrected drawing of bottom and left tabs
965         - Beautified DateTimePicker and MonthCalendar
966         - Added CPDrawButton and CPDrawRadioButton
967
968 2006-01-16  Jackson Harper  <jackson@ximian.com>
969
970         * ComboBox.cs: Set the initial value of the scrollbar to the
971         current index. Reduce the numbers of refreshs and IndexOfs called.
972
973 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
974
975         * FileDialog.cs: When the file listview is focused hitting the
976           backspace key moves the fileview to the parent directory
977
978 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
979
980         * Form.cs: 
981           - Added RecreateHandle call when changing taskbar visibility to 
982             trigger reparenting in Win32 driver (Fixes #75719)
983           - If a window has minimize or maximize buttons, it cannot have
984             a help button
985         * XplatUIWin32.cs:
986           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
987             the toplevel form with FosterParent (A toolwindow not on the
988             taskbar) (Fixes #75719)
989           - Made FosterParent a toolwindow
990
991 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
992
993         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
994
995 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
996
997         * ToolTip.cs: If SetToolTip is called from a control and the mouse
998           is currently over that control, make sure that tooltip_window.Text
999           gets updated
1000
1001 2006-01-13  Mike Kestner  <mkestner@novell.com>
1002
1003         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
1004
1005 2006-01-13  Jackson Harper  <jackson@ximian.com>
1006
1007         * TreeView.cs: On MS GetNodeAt never actually factors in the X
1008         value passed.  Also redraw the selected node when we recieve
1009         focus, so tabbing between trees works correctly.
1010
1011 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
1012
1013         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
1014           ~/.gconf/%gconf-tree.xml, so use
1015           .gconf/desktop/gnome/interface/%gconf.xml
1016
1017 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
1018
1019         * TextControl.cs: Draw text in gray if control is disabled
1020
1021 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
1022
1023         * TreeView.cs: Draw the focus rectangle outside the highlight, to
1024           make sure it's always visible. Fixes #76680.
1025
1026 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
1027
1028         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
1029
1030 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
1031
1032         * PageSetupDialog.cs: Added.
1033         * PrintDialog.cs: Attributes.
1034         * PrintPreviewControl.cs: Updates.
1035         * PrintPreviewDialog.cs: Updates.
1036         
1037 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
1038
1039         * Control.cs: Undid my selection check fix, since it's not needed
1040         * TextBoxBase.cs:
1041           - Now considering the presence of hscroll/vscroll when sizing
1042             vscroll/hscroll respectively. Fixed bug #77077
1043           - Added Left/Up/Down/Right to IsInputKey list to prevent
1044             ContainerControl from stealing them. This fixes what I broke
1045             with my last checkin.
1046
1047 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
1048
1049         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
1050           I finally understand how the property can be set without a setter :-)
1051
1052 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
1053
1054         * Application.cs:
1055           - Switched RunLoop to use static Message.Create to create a 
1056             Message object
1057           - Added PreProcessMessage call in runloop for keyboard events; this
1058             is part of the fix for #77219, I overlooked this originally in the
1059             MSDN doc for PreProcessMessage
1060         * Control.cs:
1061           - Removed call to PreProcessMessage from handling of keyboard 
1062             messages; it's supposed to be done in the message pump
1063           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
1064             per MSDN documentation.
1065           - IsInputChar: All chars are input chars by default; removed the 
1066             parent calling chain, MS does not document that
1067           - PreProcessMessage: If IsInputChar is true, we want to return false
1068             to allow dispatching of the message
1069           - When selecting the next control, now also check that we're not
1070             selecting ourselves again and therefore return a false positive.
1071         * TextBoxBase.cs:
1072           - Tried to match return values for IsInputKey and ProcessDialogKey
1073             to what MS returns; moved processing of our special keys outside
1074             ProcessDialogKey since MS does not seem to return true on those.
1075           - Moved code that previously was in ProcessDialogKey into new private
1076             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
1077           - Reworked handling of WM_CHAR to not have to duplicate code from
1078             Control.cs anymore, instead we simply call down to base.
1079            
1080 2006-01-12  Jackson Harper  <jackson@ximian.com>
1081
1082         * ComboBox.cs: We always need to refresh the text area when
1083         EndUpdate is called. Fixes the combobox in the file dialog.
1084         * Control.cs: Don't create the creator_thread until the controls
1085         handle is created.  Also in InvokeRequired we check if the
1086         creator_thread is null. This gives the effect of InvokeRequired
1087         returning true if the controls handle is not created yet, and
1088         matches MS.
1089
1090 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
1091
1092         * XplatUI.cs:
1093           - Added StartLoop() driver method. This is used to allow drivers to
1094             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
1095             loop for a particular thread
1096           - Added EndLoop() driver method. This is called once the message
1097             pump for the thread is shut down
1098           - Added SupportsTransparency method to allow the driver to indicate
1099             opacity support for windows
1100         * Form.cs:
1101           - Removed TODO attribute, completed AllowTransparency property
1102           - Added documented logic to Opacity
1103         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
1104           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
1105           versions of CompatibleTextRendering
1106         * X11Structs.cs: Added opacity atom to our atom enumeration
1107         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
1108           of a form might be set before it's reparented by the WM, and we need
1109           the opacity value without calling up to Form)
1110         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
1111           SupportsTransparency() driver methods
1112         * Application.cs: Now calling StartLoop and EndLoop driver methods
1113         * XplatUIX11.cs:
1114           - Added opacity atom registration
1115           - Added StartLoop()/EndLoop() methods. They're empty right now but
1116             will need to get implemented when we switch to a per-thread queue
1117           - Implemented SupportsTransparency() method
1118           - Implemented SetWindowTransparency() method
1119           - Added support for setting the opacity value when a window is
1120             reparented (since the opacity needs to be set on the WM frame)
1121         * XplatUIOSX.cs, XplatUIWin32.cs:
1122           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
1123
1124 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
1125
1126         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
1127
1128 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
1129
1130         * FileDialog.cs: Added ToolTip for MWFFileView
1131         * MimeIcon.cs: Rewrote GnomeHandler.
1132           - Get currently used gnome icon theme from
1133             ($HOME)/.gconf/%gconf-tree.xml
1134           - Make use of inherited icon themes
1135           - Support SVG icon themes like Tango via librsvg
1136
1137 2006-01-12  Miguel de Icaza  <miguel@novell.com>
1138
1139         Revert's Jackson's revert which broke 2.0 builds.   Fix both
1140         builds. 
1141         
1142         * Application.cs: Move the use_compatible_text_rendering outside
1143         the NET_2_0 define.  If we ever need to use the
1144         use_compatible_text_rendering on the individual controls they will
1145         access the variable from the common shared code paths.
1146
1147 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
1148
1149         * XplatUI.cs:
1150           - Added more granular debug options
1151           - Added method to print both window text and id
1152           - Switched debug output to use new Window() debug method
1153           - Added IsEnabled() driver method
1154           - Added EnableWindow() driver method
1155         * Form.cs:
1156           - Removed end_modal; no longer needed, new loop handles termination
1157             via 'closing' variable
1158           - If form is modal, setting DialogResult will now initiate loop
1159             termination via 'closing' variable
1160           - Added support for is_enabled/WS_DISABLED to CreateParams
1161           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
1162             does all the work
1163           - Removed code that's now in RunLoop from ShowDialog()
1164           - Added various documented sanity checks to ShowDialog()
1165           - Added handling of WM_DESTROY message; we set 'closing' on getting
1166             the message to indicate the message pump to terminate
1167           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
1168             send by the Application.ExitThread method. (We send the message
1169             to destroy the window after all other events have been
1170             processed through the queue, instead of destroying the handle 
1171             directly)
1172           - Moved code from Close() method to WM_CLOSE handler; added logic
1173             to only send close-related events if the form is not displayed
1174             modal
1175         * Splitter.cs (..ctor): Fixed typo in resource name
1176         * Control.cs:
1177           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
1178             brush now
1179           - set_Cursor: Now only setting calling into XplatUI if the handle for
1180             the control is already created; this avoids implict handle creation
1181             or crashes if it's not created
1182           - set_Enabled: Now setting the enabled state via the new driver method
1183             instead of just tracking it
1184           - CreateParams: Added logic to set WS_DISABLED based on enabled state
1185           - CreateControl: Reordered event firing and method calls to more
1186             closely fire events in the order MS does. Now setting the
1187             enabled state in the driver when creating the control.
1188           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
1189             match MS order
1190         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
1191           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
1192         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
1193         * Hwnd.cs:
1194           - Added tracking of window enabled state (get_Enabled/set_Enabled)
1195           - Added EnabledHwnd property to easily allow a driver to find the
1196             handle of the first enabled window in the parent chain (this is
1197             used by drivers to pass up input events of disabled windows)
1198         * XplatUIDriver.cs: Added IsEnabled() method
1199         * Application.cs:
1200           - Removed crude and obsolete exiting tracking variable
1201           - Removed internal ModalRun(); replaced by RunLoop()
1202           - Implemented private CloseForms() method to allow closing all 
1203             windows owned by a particular (or all) threads
1204           - Exit() now properly closes all windows without forcing the message
1205             pump to quit
1206           - Removed obsolete InternalExit() method
1207           - Changed Run() methods to use new RunLoop() message pump
1208           - Implemented new RunLoop() method for both modal and non-modal forms
1209         * CommonDialog.cs:
1210           - get_CreateParams: Added setting of WS_DISABLED
1211           - Simplified ShowDialog(); now all the work is done in RunLoop(),
1212             invoked via Form.ShowDialog()
1213         * NativeWindow.cs: We don't remove the window from the collection when
1214           the handle is destroyed; there might still be messages for it in the
1215           queue (mainly the resulting WM_DESTROY); instead it will be removed
1216           when Control calls InvalidateHandle in the WM_DESTROY handler
1217         * XplatUIX11.cs:
1218           - CreateWindow: Added logic to handle the WS_DISABLED window style
1219           - EnableWindow: Implemented based on Hwnd.Enabled
1220           - GetMessage: Reset PostQuitState so the method can be called again
1221           - Implemented support for disabled windows (passing messages to the
1222             first enabled parent) in handling all input messages
1223           - Added optimizations for handling Expose events
1224           - Implemeted new driver method IsEnabled()
1225           - Now always resetting paint pending tracking vars when we start paint
1226           - Re-implemented UpdateWindow via just sending a WM_PAINT message
1227         * XplatUIOSX.cs: Added IsEnabled method stub
1228         * XplatUIWin32.cs: Implemented new IsEnabled() method
1229
1230 2006-01-11  Jackson Harper  <jackson@ximian.com>
1231
1232         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
1233         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
1234         variables a little.
1235         * ColorDialog.cs: Clear out the old form before adding the new
1236         panel.  
1237
1238 2006-01-11  Jackson Harper  <jackson@ximian.com>
1239
1240         * X11Dnd.cs: Make sure to add all the text formats when adding
1241         strings to the data object.
1242         * TreeNodeCollection.cs: When adding to a sorted tree we need to
1243         do some redrawing too.  Also change the UpdateNode to an
1244         UpdateBelow so the newly added node gets painted.
1245         
1246 2006-01-11  Miguel de Icaza  <miguel@novell.com>
1247
1248         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
1249         LinkLabel.cs, PropertyGrid.cs: Implement the
1250         UseCompatibleTextRendering property for 2.x
1251
1252         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
1253
1254 2006-01-11  Jackson Harper  <jackson@ximian.com>
1255
1256         * TreeView.cs: Use the property for setting the selected node so
1257         the correct events get raised.
1258         * TreeNode.cs: Update the tree when the fore/back colours of a
1259         node are set.
1260
1261 2006-01-10  Jackson Harper  <jackson@ximian.com>
1262
1263         * TreeView.cs: Allow setting SelectedNode to null.
1264
1265 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1266
1267         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
1268
1269 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1270
1271         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
1272
1273 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1274
1275         * PrintDialog.cs: Added attributes and set default property values.
1276
1277 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1278
1279         * PrintControllerWithStatusDialog.cs: 
1280         Added PrintControllerWithStatusDialog.
1281
1282 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1283
1284         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
1285         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
1286
1287 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
1288
1289         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
1290
1291 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
1292
1293         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
1294         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
1295
1296 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
1297
1298         * MimeIcon.cs: Added internal class SVGUtil.
1299
1300 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
1301
1302         * FileDialog.cs: Don't crash if there are two files with the
1303           same name but different locations.
1304
1305 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
1306
1307         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
1308         dates across multiple month grids. Used to not highlight entire 
1309         month, but does now.
1310         
1311 2006-01-06  Jackson Harper  <jackson@ximian.com>
1312
1313         * MonthCalendar.cs: Removed DoEvents call to prevent a running
1314         message loop. Change timer intervals to numbers that seem more
1315         natural.
1316
1317 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
1318
1319         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
1320           object for location info since screen object is now implemented.
1321
1322 2006-01-05  Jackson Harper  <jackson@ximian.com>
1323
1324         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
1325         * AsyncMethodResult.cs: We no longer use a WeakReference for the
1326         AsyncMethodResult, this is because we ALWAYS want the
1327         ManualResetEvent to get set.
1328         * Control.cs: When disposing use an async invoke to call shutdown
1329         code, so that thigns don't block on the finalizer thread.  Also
1330         check if we even have a message loop before trying to send
1331         messages, if we don't then don't bother sending messages.
1332         - No more weak references for async methods
1333         * XplatUIDriver.cs: No more weak references for async methods.
1334
1335 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
1336
1337         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
1338           returns two FontFamily with the same name
1339
1340 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
1341
1342         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
1343           drawing disabled text. Instead using the ColorGrayText color
1344
1345 2006-01-04  Jackson Harper  <jackson@ximian.com>
1346
1347         * TreeNode.cs: redraw the node when its image index is changed.
1348
1349 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
1350
1351         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
1352           time I checked there are no others like it.
1353
1354 2006-01-04  Jackson Harper  <jackson@ximian.com>
1355
1356         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
1357         this gives the behavoir I was looking for.
1358         * Control.cs: Special case Invoking EventHandlers, this matches MS
1359         and fixes part of bug #76326.
1360
1361 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
1362
1363         * ThemeClearlooks.cs, FileDialog.cs:
1364           - Reflect the latest Theme class changes
1365           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
1366             with DateTime
1367             
1368 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
1369
1370         * Theme.cs: Cache UI resource images and resize them if needed
1371
1372 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
1373
1374         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
1375           is called. This fixes the crash in Nexxia when setting the font
1376           attributes in the chat. [However, RTF needs a look-over to make sure
1377           that all SelectionXXX methods handle the special case that selection
1378           is empty and therefore the change must be applied to all text starting
1379           at the cursor/selection start]
1380
1381 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
1382
1383         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
1384           XplatUIOSX.cs: Added SendMessage and PostMessage methods
1385         * X11Keyboard.cs: Switched to new way of calling PostMessage
1386
1387 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
1388
1389         * Theme.cs: Added theme interface for images to allow the theme to
1390           control what images are used for things like FileDialog, MessageBox
1391           icons, etc.
1392         * MessageBox.cs: Now uses the new Theme icon/image interfaces
1393
1394 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
1395
1396         * FileDialog.cs:
1397           - Removed some dead code
1398           - Opening a recently used file does work now
1399           - Small UI enhancements
1400           - Refactoring
1401
1402 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
1403
1404         * FileDialog.cs: Forgot too add __MonoCS__
1405
1406 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
1407
1408         * FileDialog.cs: We are able to read recently used files now let's
1409           go on and write them.
1410
1411 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
1412
1413         * FileDialog.cs: Breathe some life into "last open"/"recently used"
1414           button
1415         * MimeIcon.cs: Do a check for the top level media type also
1416
1417 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
1418
1419         * ThemeClearlooks.cs:
1420           - Added CPDrawStringDisabled
1421           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
1422             some chars if the text doesn't fit into text_rect
1423           - DrawListViewItem: If View = View.LargeIcon center the image;
1424             rewrote the drawing of ListViewItem.Text if View = 
1425             View.LargeIcon
1426
1427 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
1428
1429         * MimeIcon.cs: Use default KDE icon theme if there is no
1430           "48x48" directory for the current icon theme, fixes #77114
1431         * Mime.cs: Disable not working and actually not used code. 
1432         * ThemeWin32Classic.cs:
1433           - Replace "new SolidBrush" in GetControlBackBrush and
1434             GetControlForeBrush with ResPool.GetSolidBrush
1435           - Changed DrawListViewItem from private to protected virtual
1436         * FileDialog.cs:
1437           - Added form.MaximizeBox = true
1438           - Don't throw an exception if there is a broken symbolic link
1439
1440 2005-12-23  Jackson Harper  <jackson@ximian.com>
1441
1442         * TabControl.cs: Give the panels focus, keyboard navigation is
1443         fixed so this works correctly now.
1444         - We need these key events also.
1445         * ToolBar.cs: Remove some of the poor mans double buffering.
1446         
1447 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
1448
1449         * ComboBox.cs: The internal TextBox now returns the focus.
1450
1451 2005-12-23  Jackson Harper  <jackson@ximian.com>
1452
1453         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
1454
1455 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
1456
1457         * Control.cs: Removed debug code
1458         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
1459           implicit children
1460
1461 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
1462
1463         * Control.cs: When creating the control, update the Z-order after
1464           all it's children are created, too. (Fixes nexxia not showing
1465           picturebox bug)
1466
1467 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
1468
1469         * Control.cs: Do not update the anchoring distances if layout is
1470           suspended, instead do it once layout is resumed
1471
1472 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
1473
1474         * Control.cs: 
1475           - After many hours of debugging, for both Jackson and
1476             myself, it turns out that it helps to set the parent of a control
1477             if you want to actually see it onscreen. In the spirit of that
1478             discovery, we're now setting the parent of the control and
1479             it's children when the control's handle is created. This fix
1480             will make Lutz Roeder's Reflector run happily. 
1481           - now just creating the handle instead of the whole control when
1482             getting a graphics context for the control.
1483
1484 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
1485
1486         * ScrollableControl.cs: When calculating the canvas, don't consider
1487           the scrollbar widths. Instead, predict if horizontal scrollbar
1488           will affect canvas when deciding on vertical display and vice versa.
1489
1490 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
1491
1492         * RichTextBox.cs: Set default RTF font for documents that don't
1493           have a font table (Fixes #77076)
1494
1495 2005-12-22  Jackson Harper  <jackson@ximian.com>
1496
1497         * TextBoxBase.cs: It's difficult to do, but you can have an empty
1498         clipboard. This prevents a NullRef in that case.
1499         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
1500         clipboard. PRIMARY is for the currently selected text only. (We
1501         should implement PRIMARY at some point.
1502
1503 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
1504
1505         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
1506           a Unicode function with a structure that was defined in Ansi way.
1507           This fixes #76942.
1508
1509 2005-12-21  Jackson Harper  <jackson@ximian.com>
1510
1511         * StatusBar.cs: Statusbar handles its fore/back colours on it's
1512         on. Because thats how it rolls. (and this avoids it using ambient
1513         colours).
1514         * ThemeWin32Classic.cs: Use the proper back color for filling.
1515         * Menu.cs: Use the system menu bar color for drawing menu
1516         bars. Using the window back color will bring ambient colours into
1517         the picture.
1518
1519 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
1520
1521         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
1522           Bitmaps were created and not disposed.
1523
1524 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
1525
1526         * Control.cs (CreateControl): Don't do anything if the control is
1527           already created, otherwise we'd fire the OnCreated event more than
1528           once
1529
1530 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
1531
1532         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
1533           will always match. Instead return -1. Fixes #76464.
1534
1535 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
1536
1537         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
1538           neither the beginning nor the end of the line (Fixes bug #76479)
1539
1540 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
1541
1542         * Control.cs:
1543           - ControlNativeWindow.ControlFromHandle(): Now handling situation
1544             where handle is invalid
1545           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
1546             instead of slower linear search
1547         * NativeWindow.cs: Don't remove the window from the hashtable until
1548           after the driver has destroyed it (since the driver might use
1549           Control.FromHandle to lookup the control object
1550         * Hwnd.cs: Added DestroyPending property to track if a window is 
1551           already destroyed as far as the driver is concerned and only hasn't
1552           yet notified the control
1553         * XplatUIX11.cs:
1554           - Activate(): Check if the window is still valid before using the 
1555             handle
1556           - Implemented DestroyChildWindow() method to mark child windows as
1557             destroyed when a window is destroyed. This prevents situations 
1558             where we might call an X method based on queued events for a
1559             window that already has been destroyed but we haven't yet pulled
1560             the destroy method from the queue.
1561           - Added a call to the new DestroyChildWindow() method to the drivers
1562             DestroyWindow code. Also now marking the destroyed window itself
1563             as pending
1564
1565 2005-12-20  Jackson Harper  <jackson@ximian.com>
1566
1567         * StatusBar.cs:
1568         * StatusBarPanel.cs: Don't calculate panel sizes on draw
1569         anymore. Just do them when needed, also track the rects of panels
1570         so that we can optimize refreshing more in the future.
1571
1572 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
1573
1574         * ColorDialog.cs: Fixed focus drawing in small color controls
1575
1576 2005-12-19  Jackson Harper  <jackson@ximian.com>
1577
1578         * InternalWindowManager.cs:
1579         * MdiWindowManager.cs: Cleanup some coordinate system changes so
1580         moving windows works properly.
1581
1582 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
1583
1584         * Control.cs: 
1585           - Removed call to InitLayout() from SetBoundsCore(); doc says
1586             it's only called when a control is added to a container
1587           - Split InitLayout logic, moved to separate UpdateDistances() method
1588             since we need to perform those calculations more often than just
1589             when adding the control to a container. (Needed to fix #77022)
1590           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
1591           - Reduced the OnBindingContextChanged events count, don't send them
1592             unless the control is created, we still aren't totally matching
1593             MS, but I can't quite figure out some of their rules
1594
1595 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
1596
1597         * ThemeClearlooks.cs: Corrected distance between ProgressBar
1598           stripes
1599
1600 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
1601
1602         * ThemeClearlooks.cs:
1603           - Updated ProgressBar drawing
1604           - Corrected drawing of ScrollBars and scroll buttons
1605           - Some temporary fixes for minor pixel artefacts
1606
1607 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
1608
1609         * Control.cs:
1610           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
1611             cause events to be sent in the same order as MS does.
1612           - Added ChangeParent() method to trigger various OnXXXChanged events
1613             that need to be fired when a parent changes (This is a reworking
1614             of the patch from r54254, with the X11 errors fixed)
1615           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
1616             since on MS we get OnLayoutChanged events when calling Clear()
1617           - Changed Enabled property to consider parent state as well, if a
1618             parent is not enabled, the control will not be either
1619           - Changed Parent property to simply call Controls.Add() since that
1620             now does all the work required, this way we avoid code duplication
1621           - Threw in a few OnBindingsContextChanged calls to try and match
1622             when MS sends them. We seem to send a few too many, though.
1623           - Added call to CreateControl when adding the control to a parent.
1624             We were never calling CreateControl. Still needs some work, in
1625             some places we treat HandleCreated and ControlCreated as equal, 
1626             which is wrong
1627           - Removed obsolete commented out code from UpdateZOrder()
1628
1629 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
1630
1631         * ThemeClearlooks.cs: Updated TrackBar drawing.
1632
1633 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
1634
1635         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
1636
1637 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
1638
1639         * FileDialog.cs: Add the Help button and the open readonly
1640           checkbox only if needed
1641
1642 2005-12-16  Jackson Harper  <jackson@ximian.com>
1643
1644         * Control.cs: Make sure we have an active menu before trying to
1645         process commands on it. Prevents menu-less forms from crashing
1646         when Alt is pressed.
1647         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
1648         Dieter Bremes.
1649         * RichTextBox.cs: Expand statement to help out gmcs and fix the
1650         2.0 build.
1651
1652 2005-12-16  Jackson Harper  <jackson@ximian.com>
1653
1654         * InternalWindowManager.cs: Don't translate tool windows screen
1655         coordinates. This fixes windows 'bouncing' around when being moved.
1656
1657 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
1658
1659         * TextBoxBase.cs:
1660           - MaxLength now treats 2^31-1 equal to unlimited length (this is
1661             not quite MS compatible, MS uses that number only for single line
1662             and 2^32-1 for multi-line, but I figure it won't hurt keeping
1663             the limit at 2GB)
1664           - Now enforcing the MaxLength limit when entering characters
1665           - Added argument to internal Paste() method to track if it's called
1666             from programatically or via keyboard, since keyboard driven pastes
1667             need to enforce max-length
1668           - Added logic to Paste to only paste as many chars as MaxLength 
1669             allows
1670         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
1671         * TextControl.cs:
1672           - Added Length property to return number of characters in document
1673           - Added private CharCount property which only tracks actual chars
1674             in the document (no linefeeds) and fires event when CharCount
1675             changes
1676           - Added tracking of character count to all methods that alter it
1677           - Added LengthChanged event to allow applications to subscribe
1678             to any changes to the document
1679
1680 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
1681
1682         * TextBox.cs: 
1683           - Removed local password_char field (moved to TextBoxBase)
1684           - Now setting the document's password var when password is
1685             set
1686         * TextBoxBase.cs:
1687           - Added password_char field (needed here so MultiLine can
1688             access it)
1689           - Added logic to MultiLine property setter to set the document's
1690             variable when password display is allowed
1691           - Removed debug code and made some debug code conditional
1692         * TextControl.cs:
1693           - Added RecalculatePasswordLine() method to handle special password
1694             char only lines
1695           - Added PasswordChar property, also added related tracking vars
1696           - Draw() method now uses local text var for grabbing text to draw,
1697             this var is set to line.text unless we're doing password display,
1698             then it is set to the pre-generated all-password-chars line
1699           - Added calling RecalculatePasswordLine() method for password lines
1700
1701 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
1702
1703         * Hwnd.cs: 
1704           - Added Reparented property to allow tracking of Window Manager
1705             reparenting actions (which affect X/Y calculations of toplevel 
1706             windows)
1707           - Made ToString() print window handles in hex
1708         * XplatUIX11.cs:
1709           - AddConfigureNotify(): Now uses reparented state off Hwnd to
1710             determine if X/Y needs offsetting
1711           - AddConfigureNotify(): Fixed offset calculations
1712           - Now adds ReparentNotify messages into the queue
1713           - Now processes ReparentNotify messages and causes a 
1714             WM_WINDOWPOSCHANGED message to be sent upstream if a window
1715             is reparented (as most likely it's X/Y coordinates are changed
1716             due to that)
1717
1718 2005-12-14  Jackson Harper  <jackson@ximian.com>
1719
1720         * XplatUIX11.cs: Tool windows still need to respek focus.
1721
1722 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
1723
1724         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
1725           have a working release
1726
1727 2005-12-13  Jackson Harper  <jackson@ximian.com>
1728
1729         * Form.cs: Update styles after setting the border style regardless
1730         of whether or not the window is using a window manager.
1731
1732 2005-12-13  Jackson Harper  <jackson@ximian.com>
1733
1734         * Form.cs: We now hook into an internal window manager instead of just an
1735         MDI subsystem, this is so we can have properly behaving tool windows.
1736         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
1737         * InternalWindowManager.cs: New internal class that acts as a
1738         window manager for tool windows and as a base for mdi windows.
1739         * MdiWindowManager.cs: New class that acts as a window manager for
1740         mdi windows.
1741
1742 2005-12-12  Jackson Harper  <jackson@ximian.com>
1743
1744         * Control.cs: Updates so we match behavoir for for implicit
1745         controls. Fixes explosions in MDI.
1746
1747 2005-12-12  Jackson Harper  <jackson@ximian.com>
1748
1749         * Control.cs: Implement Invalidate (Region).
1750
1751 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
1752
1753         * Control.cs: 
1754           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
1755             the same events as MS does. MS fires events for each property 
1756             except, for unknown reasons, Cursor, when the control is reparented. 
1757             I can't seem to totally match add/remove since MS also fires some 
1758             VisibleChanged events, which makes no sense. Consolidated the
1759             parenting code into a separate method so it can be called from
1760             both Add and Remove. set_Parent no longer needs any special logic
1761             as it calls the parent's add method which implicitly fires
1762             all events
1763           - Removed some obsolete code and debug output
1764           - Enabled state is inherited from parents, if this is enabled
1765
1766 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
1767
1768         * Form.cs: Removed commented out code
1769
1770 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
1771
1772         * Control.cs:
1773           - Added internal version of Invoke, with additional argument 
1774             indicating if we're calling it from a Dispose() handler. That
1775             way we can avoid BeginInvoke throwing an exception if we're
1776             calling for an already destroyed window.
1777           - Added a dispose argument to BeginInvokeInternal, and made the
1778             check if a valid window handle chain exists conditional on
1779             it not being a dispose call
1780           - Removed code in DestroyHandle to destroy our children. Since we
1781             now handle the WM_DESTROY message we will catch all our children
1782             being destroyed.
1783           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
1784         * Form.cs:
1785           - Added a field to track the application context of the form.
1786           - No need to set closing variable as response to WM_CLOSE, instead
1787             we destroy the window. We also call PostQuitMessage if the form
1788             has an application context (which makes it the main app form,
1789             which, when closed terminates the app)
1790         * XplatUI.cs:
1791           - Dropped Exit() method, it's naming was confusing
1792           - Added PostQuitMessage() which causes GetMessage to return false
1793             once the message queue is empty
1794         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
1795           PostQuitMessage()
1796         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
1797           no longer a valid XplatUI method, but left it in since it's used
1798           internally. Added empty PostQuitMessage() method.
1799         * MenuAPI.cs: Replaced call to Exit() with call to
1800           PostQuitMessage, even though this is probably no longer needed.
1801         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
1802         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
1803         * Application.cs:
1804           - Replaced call to XplatUI.Exit() with PostQuitMessage()
1805           - Removed old debug code that would call XplatUI for exception
1806             display, enabled standard exception handling (Still not enabled
1807             though, until NativeWindow's ExternalExceptionHandler define
1808             is removed
1809         * NativeWindow.cs:
1810           - Added internal method to allow control to update NativeWindow
1811             after a window has been destroyed
1812           - Added handling of already destroyed windows when calling i
1813             DestroyWindow
1814           - Added removal of handle from list on ReleaseHandle
1815         * XplatUIX11.cs:
1816           - Dropped GetMessageResult var and related code
1817           - Added PostQuitState to field to track if PostQuitMessage has been
1818             called
1819           - Dropped Exit() method
1820           - Added PostQuitMessage() method
1821           - GetMessage now will return false if PostQuitState is set and no
1822             more messages are in the queue.
1823           - Expose handler will no longer generate WM_PAINT messages if we are
1824             in PostQuitState since it's very likely any windows have already
1825             been destroyed, and since Hwnd won't get updated until we have
1826             processed the DestroyNotify we'd be causing X errors.
1827         
1828 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
1829
1830         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
1831           Thanks to Mike for pointing out the err of my ways.
1832
1833 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
1834
1835         * Control.cs(PreProcessMessage): Moved menu handling back, but
1836           after all other key handling, to match MS (who handles Menu in
1837           DefWndProc)
1838         * Menu.cs (WndProc): Removed my brainfart
1839
1840 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
1841
1842         * Control.cs(PreProcessMessage): Removed special menu handling 
1843         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
1844
1845 2005-12-07  Mike Kestner  <mkestner@novell.com>
1846
1847         * Control.cs : special case SYSKEYUP so that we can adjust keynav
1848         state according in tracker.
1849         * Menu.cs : promote tracker field to base class and provide a tracker
1850         lookup capability.  Add/Remove shortcuts dynamically if the top menu
1851         has a tracker. Unparent items that are removed from the collection.
1852         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
1853         * Theme*.cs: add always_show_hotkeys field to support configurability
1854         of mnemonic display.  win32 doesn't show mnemonics until Alt is
1855         pressed.
1856
1857 2005-12-07  Jackson Harper  <jackson@ximian.com>
1858
1859         * MdiChildContext.cs: Use Control.ResetCursor.
1860         * Control.cs: ResetCursor needs to set the property so that the
1861         correct XplatUI call gets made.
1862
1863 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
1864
1865         * Control.cs: More fixes to make our key events match MS. We
1866           were not setting the modifier state on KeyData, and we were
1867           not generating any events when Alt was pressed with a key
1868           since handling of WM_SYSxxx was missing for the OnKey methods.
1869
1870 2005-12-07  Jackson Harper  <jackson@ximian.com>
1871
1872         * MdiChildContext.cs: reenable the sizing code.
1873         - When the mouse leaves a window reset its cursor.
1874
1875 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
1876
1877         * ThemeClearlooks.cs: Reflect latest Hwnd changes
1878
1879 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
1880
1881         * Hwnd.cs: Now using the theme 3d bordersize to calculate
1882           widths of Fixed3D borders
1883
1884 2005-12-07  Jackson Harper  <jackson@ximian.com>
1885
1886         * MdiClient.cs: Fix warnings. Earn Mike's love.
1887
1888 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
1889
1890         * ThemeClearlooks.cs:
1891           - Adjusted mouse over button color
1892           - Added first parts of CheckBox drawing
1893           - Added correct color for selected text background
1894           - Fixed ComboBox drawing
1895           - Added CPDrawBorder3D and CPDrawBorder
1896
1897 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
1898
1899         * XplatUIX11.cs: Added call to XBell for AudibleAlert
1900
1901 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
1902
1903         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
1904           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
1905           alert users via sound. We could add an enum arg with different
1906           types of alerts in the future
1907
1908 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
1909
1910         * Control.cs: Fix behaviour problems pointed out by Mike
1911
1912 2005-12-05  Mike Kestner  <mkestner@novell.com>
1913
1914         * StatusBarPanel.cs: add Invalidate method and hook it into all the
1915         prop setters.  Calls parent.Refresh for now, but could be maybe be
1916         optimized with an internal method on StatusBar at some point.
1917         [Fixes #76513]
1918
1919 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
1920
1921         * RichTextBox.cs: Implemented get_SelectionColor
1922
1923 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
1924
1925         * ThemeClearlooks.cs:
1926           - Removed dead code
1927           - Draw black button border only if button is Form.AcceptButton
1928           - Draw correct button color for pressed RadioButton if the mouse 
1929             has entered the button
1930           - Updated ProgressBar drawing!
1931           - Updated CPDrawSizeGrip drawing
1932           - Updated StatusBarPanel drawing
1933
1934 2005-12-05  Mike Kestner  <mkestner@novell.com>
1935
1936         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
1937         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
1938
1939 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
1940
1941         * ThemeClearlooks.cs: Initial check-in, activate with
1942           export MONO_THEME=clearlooks
1943         * ThemeEngine.cs: Added ThemeClearlooks
1944
1945 2005-12-03  Mike Kestner  <mkestner@novell.com>
1946
1947         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
1948         [Fixes #76897]
1949
1950 2005-12-02  Jackson Harper  <jackson@ximian.com>
1951
1952         * Form.cs: If the child form has no menu the default main menu is
1953         used as the active menu.
1954
1955 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
1956
1957         * ListBox.cs: Check if any items exist before trying to resolve 
1958           coordinates into items
1959
1960 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
1961
1962         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
1963           as the second color for the background hatch
1964
1965 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
1966
1967         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
1968         * RichTextBox.cs: FormatText position arguments are 1-based, now making
1969           sure that what we pass to FormatText is always 1-based. Fixes #76885
1970
1971 2005-11-29  Miguel de Icaza  <miguel@novell.com>
1972
1973         * NumericUpDown.cs (EndInit): When we are done initializing,
1974         reflect any updates on the UI.
1975
1976 2005-12-02  Jackson Harper  <jackson@ximian.com>
1977
1978         * ImplicitHScrollBar.cs:
1979         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
1980         their container controls.
1981         * TreeView.cs: Use the new implicit scrollbars.
1982
1983 2005-12-02  Jackson Harper  <jackson@ximian.com>
1984
1985         * TreeView.cs: Make top_node internal so the TreeNodeCollections
1986         can play with it.
1987         * TreeNodeCollection.cs: If we remove the topnode we need to
1988         update topnode to the next node in line.
1989         - When clearing nodes go through the same process as removing
1990         them, so they get depareneted and checked if they are top node.
1991
1992 2005-12-01  Jackson Harper  <jackson@ximian.com>
1993
1994         * TreeView.cs: When imagelists are used the image area is
1995         selectable as well as the text.
1996         - If there are no selected nodes select the first one.
1997         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
1998         so don't do it more then we need to.
1999
2000 2005-12-01  Jackson Harper  <jackson@ximian.com>
2001
2002         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
2003         that arrows can be scaled.
2004
2005 2005-12-01  Jackson Harper  <jackson@ximian.com>
2006
2007         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
2008         fail. Patch by Dieter Bremes
2009
2010 2005-11-30  Jackson Harper  <jackson@ximian.com>
2011
2012         * Form.cs: Property is 2.0 only
2013         * PrintDialog.cs: Signature fix.
2014
2015 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
2016
2017         * TextControl.cs: 
2018           - No longer artificially moves text 2 pixels down (now that we have
2019             borders this is no longer needed)
2020           - Added calcs for left, hanging and right indent
2021
2022 2005-11-23  Mike Kestner  <mkestner@novell.com>
2023
2024         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
2025
2026 2005-11-30  Jackson Harper  <jackson@ximian.com>
2027
2028         * MdiChildContext.cs: Set the cloned menus forms, as these don't
2029         get cloned as part of CloneMenu ().
2030         * Menu.cs: Make sure the parent of the items get set correctly
2031         when they are added.  And the owners are notified of the changes.
2032         * Form.cs: Create an ActiveMenu property, so that when MDI is used
2033         we can change the menu being displayed/handled by the form without
2034         changing the menu assosciated with the form.
2035         - Don't let Mdi children draw/handle menus.
2036         
2037 2005-11-30  Jackson Harper  <jackson@ximian.com>
2038
2039         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
2040         a MenuChanged event. Just to make the API a little more
2041         consistent.
2042         * MainMenu.cs:
2043         * MenuItem.cs: Use the new OnMenuChanged
2044         * MdiChildContext.cs: Handle menu merging.
2045         * Form.cs: Implement MergedMenu.
2046         
2047 2005-11-30  Jackson Harper  <jackson@ximian.com>
2048
2049         * Menu.cs: We were misusing Add. Add goes behind the specified
2050         index according to the docs, and does not replace the specified
2051         index. So I added an Insert method.
2052
2053 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
2054
2055         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
2056           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
2057           is for Jackson
2058         * RichTextBox.cs: Added calls to base for DnD events
2059
2060 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
2061
2062         * TextControl.cs:
2063           - Fixed drag-selection related crash; style fixes
2064           - Implemented undo class
2065             o Implemented method to capture document state for specified
2066               range in document tree
2067             o Implemented method to restore captured document state
2068             o Implemented cursor tracking
2069             o Implemented basic undo stack
2070           - Added undo cursor tracking to methods altering cursor location
2071           - Added undo tracking to selection deletion (still missing
2072             other text-altering hookups)
2073         * RichTextBox.cs:
2074           - Added SelectionLength property
2075           - Implemented CanPaste()
2076           - Implemented Paste()
2077           - Added missing protected methods
2078           - Fixed RTF->Document conversion; now uses font index 0 and color 
2079             index 0 as the default font for the parsed text
2080           - Fixed RTF<->Document font size translation
2081           - Fixed RTF generation, now properly handles cross-tag boundaries
2082             for single line selection
2083           - No longer always appends blank line to generated RTF
2084           - Removed TODOs
2085           - Added missing attributes
2086           - Hooked up undo-related methods
2087         * TextBoxBase.cs:
2088           - Implemented Copy()
2089           - Implemented Paste()
2090           - Implemented Cut()
2091           - Fixed caret mis-behaviour on backspace across line-boundaries
2092
2093 2005-11-29  Jackson Harper  <jackson@ximian.com>
2094
2095         * MdiClient.cs: Add a method for activating mdi children. Very
2096         basic right now. I imagine someday it might need more girth.
2097         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
2098         children windows names are added to the menu item.
2099         * ThemeWin32Classic.cs: Draw the arrow if the item is an
2100         mdilist. This happens regardless of whether or not there are any
2101         mdi windows to see in the list, and according to my tests happens
2102         before the items are even added. Also happens if there isn't even
2103         an mdi client to get windows from.
2104
2105 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
2106
2107         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
2108         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
2109
2110 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
2111
2112         * DataGridTableStyle.cs:
2113           - Create always the styles for the missing columns even if they are
2114             provided by the user (not default table style)
2115         * DataGrid.cs:
2116           - Fixes bug 76770
2117           - Fixes SetDataBinding (always re-attach source)
2118           - Fixes SetNewDataSource (only clear styles if they are not for 
2119             this source)
2120          -  Expands OnTableStylesCollectionChanged to handle style refresh 
2121             and remove properly
2122
2123 2005-11-29  Jackson Harper  <jackson@ximian.com>
2124
2125         * FileDialog.cs: Implement missing bits, remove some dead
2126         code.
2127         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
2128         creation of the panel so that the options set on the dialog are
2129         seen when the panel is created.
2130         * TreeView.cs: raise a click when items are clicked.
2131         
2132 2005-11-29  Jackson Harper  <jackson@ximian.com>
2133
2134         * MdiClient.cs: Pass some signature methods through to base.
2135
2136 2005-11-28  Jackson Harper  <jackson@ximian.com>
2137
2138         * ListView.cs: Raise the click event when items are clicked.
2139
2140 2005-11-28  Jackson Harper  <jackson@ximian.com>
2141
2142         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
2143         a nullref.
2144
2145 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
2146
2147         * ThemeNice.cs: - Removed 1 pixel bitmaps
2148           - Use SmoothingMode.AntiAlias where it makes sense
2149             (ScrollButton arrow for example)
2150           - Enhanced Button focus drawing
2151           - Fixed ComboBox drawing (no artefacts anymore, focus
2152             rectangle is back again, reduced size of ComboButton, etc.)
2153           - Fixed RadioButton focus drawing for Appearence.Button
2154           - Slight ScrollButton redesign
2155           - Some LinearGradientBrush size fixes
2156           - GroupBoxes have now rounded edges
2157           - Fixed StatusBar drawing
2158
2159 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
2160
2161         * ThemeNice.cs: - Remove dead code
2162           - use correct background colors for menus, etc.
2163           - Fake pixel drawing with 1 pixel bitmaps
2164
2165 2005-11-24  Jackson Harper  <jackson@ximian.com>
2166
2167         * MdiClient.cs: Size the scrollbars when resizing the window.
2168         - Resize the maximized windows when the client is resized
2169         * Form.cs: Make the child context available
2170         
2171 2005-11-23  Jackson Harper  <jackson@ximian.com>
2172
2173         * MdiChildContext.cs: Don't size windows if they are maximized.
2174
2175 2005-11-23  Mike Kestner  <mkestner@novell.com>
2176
2177         * ContextMenu.cs: use MenuTracker.
2178         * Control.cs: remove menu handle usage.
2179         * Form.cs: remove menu handle usage.
2180         * Hwnd.cs: remove menu handle usage.
2181         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
2182         motion and clicks to the new Tracker handlers.
2183         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
2184         and handle usage.
2185         * MenuAPI.cs: refactored to combine popup and menubar event handling.
2186         Killed the MENU and MENUITEM data types and associated collections
2187         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
2188         MenuTracker class that exposes the leftovers from the old MenuAPI
2189         static methods. Restructured Capture handling so that only one grab is
2190         done for the entire menu hierarchy instead of handing off grabs to
2191         submenus. Tracker now has an invisible control to Capture when active.
2192         * MenuItem.cs: add sizing accessors, kill Create
2193         and handle usage.
2194         * Theme.cs: remove menu handle and MENU(ITEM) usage.
2195         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
2196         MENU(ITEM). remove menu handle usage, use Menu directly.
2197         * XplatUIDriver.cs: remove menu handle usage.
2198         * XplatUIOSX.cs: remove menu handle usage.
2199         * XplatUIWin32.cs: remove menu handle usage.
2200         * XplatUIX11.cs: remove menu handle usage.
2201
2202 2005-11-22  Jackson Harper  <jackson@ximian.com>
2203
2204         * Hwnd.cs: Don't compute the menu size for
2205         DefaultClientRectangle.
2206         - Reenable menu sizes being computed for GetClienRectangle.
2207         * Form.cs: Remove comment of trechery
2208         
2209 2005-11-22  Jackson Harper  <jackson@ximian.com>
2210
2211         * Hwnd.cs: The adjustments for the menu bar are made when it is
2212         attached to the form.
2213
2214 2005-11-19  Jackson Harper  <jackson@ximian.com>
2215
2216         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
2217         (just like on windows).
2218
2219 2005-11-19  Jackson Harper  <jackson@ximian.com>
2220
2221         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
2222         use real buttons anymore because they are in non client area. The
2223         one TODO here is that I need to somehow invalidate a section of
2224         the non client area.
2225
2226 2005-11-18  Jackson Harper  <jackson@ximian.com>
2227
2228         * Control.cs: Put the enum check back in now that MDI doesnt have
2229         to use this to set border styles.
2230         * Form.cs: Only set mdi child windows borders if the handle has
2231         been created.
2232         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
2233         this directly on to the driver.
2234         - Get the move start position before adjusting for the titlebar
2235         height, this fixes the windows "skipping" when they are first
2236         moved.
2237
2238 2005-11-18  Jackson Harper  <jackson@ximian.com>
2239
2240         * XplatUIX11.cs: Just compute the mdi borders separately as they
2241         don't totally match up with normal form borders.
2242
2243 2005-11-18  Jackson Harper  <jackson@ximian.com>
2244
2245         * Control.cs: Set WS_ styles for borders, so that the driver does
2246         not have to retrieve the control instance to figure out what kind
2247         of borders it should have.
2248         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
2249         driver can know its an mdi child easily.
2250         * XplatUIX11.cs: Get the border styles and whether the window is
2251         MDI from the Styles and ExStyles params instead of having to get a
2252         control. This prevents a chicken and egg problem.       
2253
2254 2005-11-18  Jackson Harper  <jackson@ximian.com>
2255
2256         * MdiClient.cs: Fix typo so scrollbars show up correctly.
2257
2258 2005-11-18  Jackson Harper  <jackson@ximian.com>
2259
2260         * MdiClient.cs: Calculate when to add and remove scrollbars
2261         correctly.
2262         * MdiChildContext.cs: Adjust the y position to take the titlebar
2263         into account.
2264         - No height for FormBorderStyle.None
2265
2266 2005-11-18  Jackson Harper  <jackson@ximian.com>
2267
2268         * Control.cs: Allow non enum values to be used for
2269         InternalBorderStyle.  MDI does this to set a special border style.
2270         - New utility methods for converting points to/from client coords
2271         - Add the newly created control to the Controls collection before
2272         updating its style. This way UpdateStyle can walk the control
2273         heirarchy to find the control if needed.
2274         so I don't need to create a new Point object all the time.
2275         * Form.cs: Let MDI windows handle their border styles.
2276         - Set styles on MDI windows so the correct title style is derived.
2277         * MdiChildContext.cs: Move all the painting and window handling
2278         into the non client area.
2279         - Use correct sizing and put correct buttons on frames based on
2280         the FormBorderStyle.
2281         - Notify the mdi client about scrolling
2282         - Need to handle the buttons ourselves now, because they are all
2283         in non client areas and we can't add controls there.
2284         * MdiClient.cs: Halfway to scrolling, this implementation is
2285         somewhat broken though, we need to check to make sure other
2286         windows aren't causing scrolling before removing the bars. Also
2287         the bars need to be drawn on top, maybe I can switch implicit
2288         controls to be on top.
2289         * Hwnd.cs: caption_height and tool_caption_height are now
2290         properties of an hwnd, this way they can be set by the driver
2291         based on the type of window they are.  In X11 the window manager
2292         handles the decorations so caption_height is zero unless its an
2293         MDI window.
2294         - Add 3 pixel borders for MDI windows (0xFFFF).
2295         - Get rid of some code duplication, have DefaultClientRectanle
2296         just call GetClientRectangle.
2297         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
2298         Hwnd now.
2299         - Set border styles differently for mdi windows.
2300         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
2301         Hwnd now.
2302         
2303 2005-11-15  Mike Kestner  <mkestner@novell.com>
2304
2305         * Menu.cs: when adding an item to the collection, if item is already 
2306         parented, remove it from the parent.
2307
2308 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
2309
2310         * X11DesktopColors.cs: Added KDE support
2311
2312 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
2313
2314         * XplatUIWin32.cs: 
2315           - Clipboard methods now can translate Rtf format
2316           - No longer removes clipboard contents whenever a new format is added
2317             to allow placing multiple formats on the clipboard
2318         * Clipboard.cs: Clipboard now supports getting a IDataObject and
2319           will place all formats contained in it onto the clipboard. Also
2320           now cleans the clipboard before placing a new object onto it
2321         * RichTextBox.cs:
2322           - Implemented set_Rtf
2323           - Implemented set_SelectedRtf
2324           - Created InsertRTFFromStream() method to allow single code base
2325             for all properties and methods that insert RTF into document
2326           - Removed debug output
2327         * TextControl.cs:
2328           - Fixed Delete(int) to fix up line numbers
2329           - Fixed ReplaceSelection to combine start and end line
2330           - Fixed serious DeleteChars bug that would leave the document tree
2331             broken
2332           - Improved DumpTree with several logic checks to detect broken
2333             document trees
2334           - Removed debug lines
2335           - Fixed Caret.WordForward/WordBack moving code, now always also 
2336             updates caret.tag (fixes crash when word-selecting across tag
2337             boundaries via keyboard)
2338           - Added Insert() method for inserting multiline text into documents
2339           - Fixed DeleteChars() calculation errors that would cause a broken
2340             tag chain with multiple tag lines
2341           - DeleteChars() no longer crashes on multi-tag lines if not all tags
2342           - Split() no longer moves caret if split is at caret location
2343           - ReplaceSelection() now updates the cursor and re-displays it
2344           - ReplaceSelection() now uses new Insert() method to avoid code
2345             duplication
2346           - FormatText() can now handle formatting partial lines
2347         * TextBoxBase.cs:
2348           - Append now uses new TextControl.Insert() method (this avoids 
2349             duplicate code)
2350           - Implemented Ctrl-X (Cut) (
2351           - Implemented Ctrl-C (Copy)
2352           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
2353             regeneration when pasting text; roundtripping Copy&Paste within
2354             edit control still fails due to some calculation bugs in GenerateRTF)
2355           - The Delete key will now remove the current selection if it is visible
2356         * TextBox.cs: Removed debug lines
2357         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
2358           driver to be initialized and can't therefore be done via a static ctor)
2359
2360 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
2361
2362         * TextControl.cs: Added backend code for finding char arrays and strings
2363         * TextBoxBase.cs:
2364           - Added mouse wheel scroll support
2365           - Added support for VScroll and HScroll events
2366         * RichTextBox.cs:
2367           - Implemented all seven Find() variants
2368           - Implemented GetCharFromPosition()
2369           - Implemented GetCharIndexFromPosition()
2370           - Implemented GetLineFromIndex()
2371           - Implemented GetPositionFromCharIndex();
2372           - Implemented SaveFile for PlainText and UnicodeText
2373           - Fixed set_Font, now setting a new font applies that font to
2374             the whole document
2375           - Implemented generic Document to RTF converter
2376           - Implemented SaveFile for RichText format (still missing unicode
2377             conversion for non-ansi chars)
2378           - Implemented get_Rtf
2379           - Implemented get_SelectedRtf
2380
2381 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
2382
2383         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
2384           to allow any captures to be released before triggering OnClick. This
2385           way a click handler may capture the mouse without interference.
2386         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
2387           This way we send them even though X may not allow a grab (if the window
2388           isn't visible, for example)
2389
2390 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
2391
2392         * DataGridViewRowEventArgs.cs: DataGridView implementation
2393         * DataGridViewElement.cs: DataGridView implementation
2394         * DataGridViewComboBoxCell.cs: DataGridView implementation
2395         * DataGridViewDataErrorContexts.cs: DataGridView implementation
2396         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
2397         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
2398         * ImageLayout.cs: DataGridView implementation
2399         * DataGridViewComboBoxColumn.cs: DataGridView implementation
2400         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
2401         * DataGridViewSelectionMode.cs: DataGridView implementation
2402         * IDataGridViewEditingControl.cs: DataGridView implementation
2403         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
2404         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
2405         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
2406         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
2407         * DataGridViewColumnSortMode.cs: DataGridView implementation
2408         * DataGridView.cs: DataGridView implementation
2409         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
2410         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
2411         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
2412         * Padding.cs: DataGridView implementation
2413         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
2414         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
2415         * DataGridViewRowEventHandler.cs: DataGridView implementation
2416         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
2417         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
2418         * DataGridViewButtonCell.cs: DataGridView implementation
2419         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
2420         * DataGridViewEditMode.cs: DataGridView implementation
2421         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
2422         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
2423         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
2424         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
2425         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
2426         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
2427         * DataGridViewCellEventHandler.cs: DataGridView implementation
2428         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
2429         * DataGridViewCellStyleConverter.cs: DataGridView implementation
2430         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
2431         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
2432         * DataGridViewColumnEventArgs.cs: DataGridView implementation
2433         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
2434         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
2435         * QuestionEventArgs.cs: DataGridView implementation
2436         * IDataGridViewEditingCell.cs: DataGridView implementation
2437         * DataGridViewTriState.cs: DataGridView implementation
2438         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
2439         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
2440         * DataGridViewColumnCollection.cs: DataGridView implementation
2441         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
2442         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
2443         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
2444         * DataGridViewColumn.cs: DataGridView implementation
2445         * DataGridViewCellBorderStyle.cs: DataGridView implementation
2446         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
2447         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
2448         * DataGridViewRow.cs: DataGridView implementation
2449         * DataGridViewImageCellLayout.cs: DataGridView implementation
2450         * DataGridViewImageCell.cs: DataGridView implementation
2451         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
2452         * DataGridViewCheckBoxCell.cs: DataGridView implementation
2453         * DataGridViewHeaderCell.cs: DataGridView implementation
2454         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
2455         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
2456         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
2457         * DataGridViewTextBoxColumn.cs: DataGridView implementation
2458         * QuestionEventHandler.cs: DataGridView implementation
2459         * DataGridViewCellStyleScopes.cs: DataGridView implementation
2460         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
2461         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
2462         * DataGridViewCell.cs: DataGridView implementation
2463         * DataGridViewCellEventArgs.cs: DataGridView implementation
2464         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
2465         * DataGridViewCellStyle.cs: DataGridView implementation
2466         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
2467         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
2468         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
2469         * TextFormatFlags.cs: DataGridView implementation
2470         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
2471         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
2472         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
2473         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
2474         * DataGridViewButtonColumn.cs: DataGridView implementation
2475         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
2476         * HandledMouseEventArgs.cs: DataGridView implementation
2477         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
2478         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
2479         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
2480         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
2481         * DataGridViewRowCollection.cs: DataGridView implementation
2482         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
2483         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
2484         * DataGridViewHitTestType.cs: DataGridView implementation
2485         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
2486         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
2487         * DataGridViewColumnEventHandler.cs: DataGridView implementation
2488         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
2489         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
2490         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
2491         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
2492         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
2493         * DataGridViewContentAlignment.cs: DataGridView implementation
2494         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
2495         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
2496         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
2497         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
2498         * DataGridViewPaintParts.cs: DataGridView implementation
2499         * DataGridViewCellCollection.cs: DataGridView implementation
2500         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
2501         * DataGridViewImageColumn.cs: DataGridView implementation
2502         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
2503         * DataGridViewElementStates.cs: DataGridView implementation
2504         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
2505         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
2506         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
2507         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
2508         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
2509         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
2510         * DataGridViewRowHeaderCell.cs: DataGridView implementation
2511         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
2512         * DataGridViewTextBoxCell.cs: DataGridView implementation
2513         * DataGridViewBand.cs: DataGridView implementation
2514         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
2515         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
2516         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
2517         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
2518         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
2519         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
2520         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
2521         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
2522         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
2523         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
2524         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
2525
2526 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
2527
2528         * ThemeWin32Classic.cs: 
2529           - Draw the outside focus rectangle around buttons
2530           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
2531             doesn't use end caps for every dash of a line anymore. This
2532             workaround ignores the forecolor.
2533
2534 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
2535
2536         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
2537           endian safe.
2538
2539 2005-11-07  Jackson Harper  <jackson@ximian.com>
2540
2541         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
2542
2543 2005-11-07  Jackson Harper  <jackson@ximian.com>
2544
2545         * ScrollableControl.cs: Calculate the maximum and change vars
2546         (more) correctly so that scrollbars appear as a sensible size.
2547
2548 2005-11-04  Jackson Harper  <jackson@ximian.com>
2549
2550         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
2551         collection.
2552         * TreeView.cs: When the tree is sorted null out the top_node so
2553         that it is recalculated.
2554         - Use dotted lines instead of dashed lines to match MS better.
2555
2556 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
2557
2558         * ListView.cs: 
2559           - Implements key search for items. Useful when browsing files with FileDialog
2560           - When changing view mode or when clear the items reset scrollbar positions
2561
2562 2005-11-04  Jackson Harper  <jackson@ximian.com>
2563
2564         * CurrencyManager.cs: Implement the MetaDataChanged event, the
2565         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
2566         as to what the method may do as there is no real way of creating a
2567         derived CurrencyManager and calling the method. 
2568
2569 2005-11-03  Jackson Harper  <jackson@ximian.com>
2570
2571         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
2572         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
2573         method which seems to just be used internally to refresh the tabs.
2574
2575 2005-11-03  Jackson Harper  <jackson@ximian.com>
2576
2577         * TabControl.cs: Implement the remove method. Fix some broken
2578         comments.
2579
2580 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
2581
2582         * DateTimePicker.cs:
2583           - Added missing DateTimePickerAccessibleObject class
2584           - Added missing events
2585           - Added OnFontChanged method
2586         * Form.cs: Added missing attributes
2587         * TreeView.cs: Added missing attributes
2588
2589 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
2590
2591         * GridItemCollection.cs: Fix signatures
2592
2593 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
2594
2595         * XplatUI.cs: Updated build rev/date
2596         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
2597           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
2598         * Application.cs: Trigger context-specific ExitThread events
2599
2600 2005-11-03  Jackson Harper  <jackson@ximian.com>
2601
2602         * Menu.cs:
2603         * MainMenu.cs:
2604         * GridTableStylesCollection.cs:
2605         * Timer.cs:
2606         * TabPage.cs:
2607         * HelpProvider.cs:
2608         * StatusBar.cs:
2609         * MonthCalendar.cs: Signature fixes
2610
2611 2005-11-03  Jackson Harper  <jackson@ximian.com>
2612
2613         * TreeNodeCollection.cs: Remove should not be virtual.
2614         * TreeView.cs: Implement the last of the missing methods.
2615
2616 2005-11-03  Jackson Harper  <jackson@ximian.com>
2617
2618         * TreeNodeConverter.cs: Implement to get off my class-status back.
2619
2620 2005-11-03  Jackson Harper  <jackson@ximian.com>
2621
2622         * TreeView.cs: Hookup the bits for drag and drop.
2623         * TreeNode.cs: Don't cache the tree_view or index anymore, now
2624         that nodes can be moved from tree to tree easily this just causes
2625         all sorts of problems.
2626         * TreeNodeCollection: Don't need to give treenodes an index and
2627         treeview anymore when they are added, these are computed on the
2628         fly. Also make sure to remove a node before its added.
2629
2630 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
2631
2632         * TextControl.cs:
2633           - Added CaretSelection enum
2634           - Added comparison methods to Marker struct, makes selection code
2635             more readable
2636           - Added SelectionStart and SelectionEnd as 'moveable' location for
2637             the CaretDirection enum and handler
2638           - Added selection_prev variable to track optimized invalidation for
2639             word and line selection
2640           - Added SelectionVisible property (returns true if there is a valid 
2641             selection)
2642           - Switched CaretHasFocus to only display the caret if there is no
2643             visible selection
2644           - Avoiding StringBuilder.ToString to retrieve a single char, instead
2645             using the direct character index; should be much faster
2646           - Added various conditional debug statements
2647           - Fixed invalidation calculation for selection ranges
2648           - Added ExpandSelection() method to support word and line selection
2649           - Switched SetSelectionToCaret to use new Marker compare overloads
2650           - Added central IsWordSeparator() method to determine word 
2651             separators/whitespace and FindWordSeparator() to streamline common
2652             usage of IsWordSeparator()
2653         * TextBoxBase.cs:
2654           - Removed unneeded grabbed variable, it was just mirroring
2655             Control.Capture
2656           - No longer firing OnTextChanged event when Text setter is called,
2657             since the base will fire the event for us
2658           - Added handling of Ctrl-Up/Down selection
2659           - Added handling of Shift-Cursorkey selection
2660           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
2661             words
2662           - Added handling of Shift and Ctrl-Shift-Home/End selection
2663           - Removed some debug output
2664           - Added handling for single/double/tripple-click to place caret/
2665             select word/select line respectively (Fixes bug #76031)
2666           - Added support for drag expansion of word/line selection
2667         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
2668           current selection
2669
2670 2005-11-02  Jackson Harper  <jackson@ximian.com>
2671
2672         * X11Dnd.cs: If the drag is going to and from a MWF window just
2673         copy the data instead of sending it out through the X Selection
2674         mechanism.
2675
2676 2005-11-02  Jackson Harper  <jackson@ximian.com>
2677
2678         * X11Dnd.cs:
2679         * XplatUIX11.cs: When in a drag we don't want motion notify
2680         messages to get passed on to the other controls. This prevents
2681         mouse move messages from showing up in the drag source.
2682
2683 2005-11-02  Jackson Harper  <jackson@ximian.com>
2684
2685         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
2686         the correct button is release to end a drag.
2687         * XplatUIX11.cs: Make the button state internal so the drag system
2688         can access it.  Dragging needs to know about all button releases,
2689         not just left button.
2690
2691 2005-11-02  Miguel de Icaza  <miguel@novell.com>
2692
2693         * Form.cs (Icon): If the icon is null, reset the icon to the
2694         default value. 
2695
2696         * Cursor.cs: When writing the AND-mask bitmap do not include the
2697         number of colors, but hardcode those to two (black and white),
2698         fixes the loading of color cursors (Paint Dot Net).
2699
2700         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
2701         turn off autoscaling.
2702
2703         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
2704
2705 2005-11-02  Jackson Harper  <jackson@ximian.com>
2706
2707         * X11Dnd.cs: Make sure to send a status message if the pointer
2708         enters a control that can not accept a drop, otherwise the cursor
2709         isn't updated correctly. Also tried to compress the lines of code
2710         a bit.
2711
2712 2005-11-02  Jackson Harper  <jackson@ximian.com>
2713
2714         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
2715         set actions correctly.  This isn't perfect as XDND and win32 have
2716         some differences on how you allow actions. I'll clear this up by
2717         adding a path for drag from MWF to MWF windows.
2718         * XplatUIX11.cs: Hook into the dnd system.
2719
2720 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
2721
2722         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
2723         previously shown but they are no longer need it. Very obvious when 
2724         browsing files with FileDialog.
2725
2726 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
2727
2728         * Control.cs: We always need to call OnPaintBackground. We pretty much
2729           ignore AllPaintingInWmPaint and always do the painting there, whether 
2730           it's set or not, since we always ignore the WM_ERASEBKGND message 
2731           (which we don't generate on X11). This fixes #76616.
2732         * Panel.cs: Removed unneeded background painting. This happens properly
2733           in Control.cs already
2734
2735 2005-10-31  Mike Kestner  <mkestner@novell.com>
2736
2737         * Menu.cs: Add items to collection before setting their index.
2738         * MenuItem.cs : add range checking with ArgumentException like MS.
2739         [Fixes #76510]
2740
2741 2005-10-31  Jackson Harper  <jackson@ximian.com>
2742
2743         * ListBox.cs: Invalidate if the area is visible at all not just
2744         contained in the visible rect. Fixes unselection of semi visible
2745         items.
2746
2747 2005-10-31  Jackson Harper  <jackson@ximian.com>
2748
2749         * Control.cs: Consistently name the dnd methods. Make them
2750         internal so we can override them to match some MS behavoir
2751         internally.
2752         * Win32DnD.cs: Use the new consistent names.
2753
2754 2005-10-31  Jackson Harper  <jackson@ximian.com>
2755
2756         * TreeView.cs: Don't draw the selected node when we lose focus.
2757
2758 2005-10-31  Jackson Harper  <jackson@ximian.com>
2759
2760         * X11Dnd.cs: We still need to reset the state even though a full
2761         reset isn't being done, otherwise status's still get sent all over
2762         the place.
2763
2764 2005-10-31  Jackson Harper  <jackson@ximian.com>
2765
2766         * Control.cs: Make the dnd_aware flag internal so the dnd
2767         subsystem can check it. Catch exceptions thrown in dnd handlers to
2768         match MS behavoir.
2769         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
2770         * X11Dnd.cs: Handle null data in the converters. Set the XDND
2771         version when sending a XdndEnter. Use the control/hwnd dnd_aware
2772         flags to reduce the number of dnd enters/status's sent.
2773
2774 2005-10-31  Jackson Harper  <jackson@ximian.com>
2775
2776         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
2777
2778 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
2779
2780         * PictureBox.cs: Fixes 76512
2781
2782 2005-10-28  Jackson Harper  <jackson@ximian.com>
2783
2784         * X11Dnd.cs: Early implementation to support winforms being a drag
2785         source for data on X11. Also restructured the converters so they
2786         can go both ways now.
2787         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
2788         
2789 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
2790
2791         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
2792           clipboard requests
2793
2794 2005-10-27  Jackson Harper  <jackson@ximian.com>
2795
2796         * TreeNode.cs: Implement serialization so my DnD examples will work.
2797
2798 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
2799
2800         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
2801           TreeView.cs: Don't dispose objects that are not owned.
2802           
2803 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
2804
2805         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
2806           should retrieve the current cursor and report that, but XplatUI
2807           doesn't (yet) have an interface for that (and I'm not sure I even
2808           can, on X11)
2809         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
2810           until any message loop processing is done (and the WM_SETCURSOR
2811           replaces the cursor to the proper one)
2812         * XplatUIX11.cs: 
2813           - Fixed override behaviour, we can't set the cursor globally on X11, 
2814             just for our windows.
2815           - Invalidating the System.Drawing X11 display handle when we are
2816             shutting down
2817         * Control.cs: Fix to make csc happy
2818
2819 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
2820
2821         * TextBoxBase.cs: 
2822           - get_Text: Add last line (without trailing newline) to returned
2823             value (Fixes 76212)
2824           - get_TextLength: Count last line in returned length
2825           - ToString: Call Text property instead of duplicating code
2826
2827 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
2828
2829         * ImageList.cs: Dispose ImageAttributes objects.
2830
2831 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
2832
2833         * ImageList.cs: Use attribute constructors with less arguments where
2834           possible.
2835
2836 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
2837
2838         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
2839           Use typeof instead of strings when assembly is referenced. Added
2840           some more comments.
2841
2842 2005-10-21  Jackson Harper  <jackson@ximian.com>
2843
2844         * ListView.cs: Raise a double click event. Also tried to somewhat
2845         fix when the selectedindexchanged event is raised. Its still
2846         broken though.
2847
2848 2005-10-21  Jackson Harper  <jackson@ximian.com>
2849
2850         * TreeView.cs: New method to invalidate the plus minus area of a
2851         node without invalidating the whole node (maybe this can be used
2852         in some more places).
2853         * TreeNodeCollection.cs: When adding to an empty node we need to
2854         invalidate its plus minus area so the little block shows up.
2855         
2856 2005-10-21  Jackson Harper  <jackson@ximian.com>
2857
2858         * TreeView.cs: Make sure that when we invalidate a node the bounds
2859         are big enough to cover the selected box and the focus
2860         rectangle. Use a different colour for the lines connecting nodes
2861         so they show up with all themes.
2862
2863 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
2864
2865         * NativeWindow.cs: Don't call anything that could call into the driver,
2866           we might be on a different thread.
2867
2868 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
2869
2870         * Control.cs(Dispose): Since Dispose might run on a different thread,
2871           make sure that we call methods that could call into the driver via
2872           invoke, to avoid thread issues
2873
2874 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
2875
2876         * XplatUI.cs: Removed finalizer
2877         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
2878           not allowing to be called on the finalizer thread.
2879
2880 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
2881
2882         * ImageList.cs:
2883           - Reverted r51889 and r51891.
2884           - Added ImageListItem class that stores unmodified image items and image
2885             properties required to create list images until handle is created.
2886           - Added AddItem and moved image creation logic to AddItemInternal.
2887           - Added CreateHandle method that creates images based on unmodified items.
2888           - Added DestroyHandle that changes state to store unmodified items.
2889           - Add and AddStrip methods no more create handle.
2890           - ReduceColorDepth has no return value.
2891           - Dispose destroys handle.
2892           - Modified other methods to reflect the above changes.
2893           - Implemented key support.
2894           - Added profile 2.0 members and attributes.
2895           - Added private Reset and ShouldSerialize methods that provide the same
2896             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
2897             them as they are private.
2898           - Added some more comments about implementation details.
2899
2900 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
2901
2902         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
2903
2904 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
2905
2906         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
2907
2908 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
2909
2910         * DataGridDrawingLogic.cs: Fixes column hit calcultation
2911         * DataGridColumnStyle.cs: Remove debug message
2912
2913 2005-10-20  Jackson Harper  <jackson@ximian.com>
2914
2915         * TreeView.cs: We can always get input keys regardless of whether
2916         or not editing is enabled. They are used for navigation.
2917
2918 2005-10-20  Jackson Harper  <jackson@ximian.com>
2919
2920         * TreeNode.cs: Use the viewport rect for determining if a node
2921         needs to be moved for visibility. Don't use Begin/End edit. This
2922         calls a full refresh when its done.
2923         * TreeView.cs: New SetBottom works correctly.  Make the viewport
2924         rect property internal so the treenodes can see it. When clicking
2925         on a node we need to ensure that its visible because it might just
2926         be partly visible when clicked.
2927
2928 2005-10-20  Jackson Harper  <jackson@ximian.com>
2929
2930         * TreeNodeCollection.cs: Remove debug code.
2931
2932 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
2933
2934         * Datagrid.cs: Implements column sorting in Datagrid
2935         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
2936
2937 2005-10-20  Jackson Harper  <jackson@ximian.com>
2938
2939         * TreeNodeCollection.cs: Remove items properly. Update the correct
2940         area after removing them.
2941
2942 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
2943
2944         * Datagrid.cs: Should not call base.OnPaintBackground
2945
2946 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
2947
2948         * XplatUIX11.cs (GetMessage):
2949           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
2950             window instead of client window
2951           - Now properly calculates NC_xBUTTONUP message coordinates
2952           - ScreenToMenu now properly calculates it's coordinates of whole 
2953             window, since menus are in the whole window, not in the client
2954             window
2955           - Added WholeToScreen coordinate translation method
2956
2957 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
2958
2959         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
2960           want to return a message, loop back to the beginning of the function
2961           and grab the next real message to process instead.
2962
2963 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
2964
2965         * Splitter.cs: Properly set limits if no filler control is used
2966
2967 2005-10-19  Jackson Harper  <jackson@ximian.com>
2968
2969         * ColorDialog.cs: Don't show the help button if it is not enabled
2970         instead of disabling it (this is what MS does). Don't create the
2971         panel until the dialog is run, otherwise the vars (such as
2972         ShowHelp) are not set yet.
2973
2974 2005-10-19  Jackson Harper  <jackson@ximian.com>
2975
2976         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
2977         are reduced when adding nodes.
2978         * TreeNode.cs:
2979         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
2980         tree.
2981         
2982 2005-10-19  Jackson Harper  <jackson@ximian.com>
2983
2984         * FolderBrowserDialog.cs: End editing our treeview so the window
2985         actually gets refreshed.
2986
2987 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
2988
2989         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
2990           Obsoleted handling of WM_ERASEBKGND, now always draws our background
2991           inside of WM_PAINT
2992
2993 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
2994
2995         * MenuAPI.cs: Returns after Hidding window
2996         * XplatUIX11.cs: Added TODO found while debugging menu issues
2997
2998 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
2999
3000         * XplatUIX11.cs: Do not re-map the whole window when it's size
3001           becomes non-zero unless it's supposed to be actually visible
3002
3003 2005-10-18  Jackson Harper  <jackson@ximian.com>
3004
3005         * TreeView.cs: We don't need to keep a count anymore.
3006         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
3007         use the Grow method.
3008
3009 2005-10-18  Jackson Harper  <jackson@ximian.com>
3010
3011         * TreeNodeCollection.cs: Insert is not supported on arrays, so
3012         implement it manually here.
3013
3014 2005-10-18  Jackson Harper  <jackson@ximian.com>
3015
3016         * ImageList.cs: Dont kill the list when the colour depth is
3017         changed, just change the colour depth of all the images.
3018         - Same goes for setting the image size. Just resize them all
3019         instead of killing the list softly.
3020
3021 2005-10-18  Jackson Harper  <jackson@ximian.com>
3022
3023         * Control.cs: Don't invalidate empty rectangles.
3024
3025 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
3026
3027         * ListViewItem.cs:
3028           - Adds checked item to the Checked/Item lists (where empty before)
3029           - Do not add items to the Selected lists if they are already present
3030         * ListView.cs:
3031           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
3032           - When deleting items make sure that we delete them for the Selected
3033           and Checked list also.
3034
3035 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
3036
3037         * Label.cs: Dispose objects no longer used
3038         * ThemeWin32Classic.cs: Dispose objects no longer used
3039
3040 2005-10-18  Jackson Harper  <jackson@ximian.com>
3041
3042         * TabControl.cs: Don't refresh the whole control when the tabs are
3043         scrolled, we just need to refresh the tab area.
3044
3045 2005-10-17  Jackson Harper  <jackson@ximian.com>
3046
3047         * XplatUIX11.cs: Compress code a little bit. Only calculate the
3048         after handle when we need it.
3049
3050 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
3051
3052         * Control.cs: When the parent size changes, recalculate anchor 
3053           positions. Partial fix for #76462
3054
3055 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
3056
3057         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
3058           drawn. Fixes #76462
3059
3060 2005-10-17  Jackson Harper  <jackson@ximian.com>
3061
3062         * MonthCalendar.cs: Don't create the numeric up down until our
3063         handle is created. Otherwise our handle is created in the
3064         constructor and we don't know if we are a WS_CHILD or WS_POPUP
3065         yet.
3066
3067 2005-10-17  Jackson Harper  <jackson@ximian.com>
3068
3069         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
3070         correctly.
3071
3072 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
3073         * TreeNode.cs : small logical fix (was using local var instead of field)
3074         
3075 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
3076
3077         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
3078
3079 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
3080
3081         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
3082
3083 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
3084
3085         * Control.cs: 
3086           - Re-implemented anchoring code. My first version was really broken.
3087             This fixes bug #76033. Unlike the previous implementation we will
3088             no longer have round errors since all numbers are calculated from
3089             scratch every time. Removed various anchor-related obsolete vars.
3090           - InitLayout no longer causes layout event firing and layout to be 
3091             performed
3092
3093 2005-10-16  Jackson Harper  <jackson@ximian.com>
3094
3095         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
3096         which was broken).
3097
3098 2005-10-16  Jackson Harper  <jackson@ximian.com>
3099
3100         * TabControl.cs: Remove debug code.
3101
3102 2005-10-16  Jackson Harper  <jackson@ximian.com>
3103
3104         * XEventQueue.cs: Increase the default queue size (very simple
3105         apps needed to grow the queue).
3106         * Hwnd.cs: No finalizer so we don't need to suppress
3107         finalization. Compute the invalid area manually so a new rectangle
3108         does not newto be created.
3109         * ScrollableControl.cs: Don't set any params (otherwise visibility
3110         isn't set correctly).
3111         * MdiChildContext.cs: New constructor takes the mdi parent so it
3112         doesn't have to be computed and avoids a crash on windows. Draw
3113         the window icon properly, and allow the text to be seen.
3114         * Form.cs: Use new MdiChildContext constructor. Make sure the
3115         child context isn't null in wndproc.
3116         * TabControl.cs: Don't set focus, this is muddling keyboard
3117         behavoir. Expand the tab rows when a window size increase will
3118         allow extra tabs to be seen. Don't allow tabs smaller than the
3119         width of a window to be scrolled out of view.
3120         * TreeNode.cs:
3121         * TreeView.cs: Use measure string to calculate a nodes width, the
3122         width is cached and only updated when the text or the font is
3123         changed. Don't check for expand/collapse clicks on the first level
3124         nodes if root lines are disabled.
3125         
3126 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
3127
3128         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
3129
3130 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
3131
3132         * DataGridBoolColumn.cs: fixes warning
3133
3134 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
3135
3136         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
3137         to match more to match more precisely the MS Net behavior
3138
3139 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
3140
3141         * Hwnd.cs: Added field to track if window is mapped
3142         * XplatUIX11.cs: 
3143           - Unmap windows if they become 0-size, re-map when 
3144             they are >0 again; fixes #76035
3145           - Re-set our error handler after initializing X11Desktop
3146             to override any error handlers Gtk or whatever was called
3147             may have set.
3148
3149 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
3150
3151         * CheckedListBox.cs: Removed unused vars
3152         * ListView.cs: Fixed signatures
3153         * RichTextBox.cs: Removed unused vars
3154         * TextBoxBase.cs: Removed unused vars
3155         * XplatUIWin32.cs: Removed unused vars
3156         * XplatUIX11.cs: Removed unused vars
3157         * XplatUI.cs: Updated version and date to latest published
3158
3159 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
3160
3161         * Cursor.cs: Added private .ctor to work around a bug in
3162           resourceset (Thanks to Geoff Norton for the help on this)
3163         * SplitterEventArgs.cs: Made fields accessible so we don't
3164           waste boatloads of objects and can reuse the same one
3165           in Splitter
3166         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
3167           any captions and borders when generating screen coordinates
3168         * Splitter.cs: Reimplemented control, now fully complete, uses
3169           rubberband drawing, supports and obeys all properties, has
3170           proper cursors
3171
3172 2005-10-13  Miguel de Icaza  <miguel@novell.com>
3173
3174         * Form.cs (Form): Setup default values for autoscale and
3175         autoscale_base_size;  Make these instance variables, not static
3176         variables. 
3177
3178         (OnLoad): on the first load, adjust the size of the form.
3179
3180 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
3181
3182         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
3183           width argument to DrawReversibleRectangle()
3184         * XplatUIWin32.cs, XplatUIX11.cs: 
3185           - Implemented width for DrawReversibleRectangle()
3186           - Added logic to DrawReversibleRectangle that recognizes a zero
3187             width or height and only draws a line in that situation
3188         
3189 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
3190
3191         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
3192         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
3193         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
3194           method (it uses our FosterParent window to get a graphics context)
3195
3196 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
3197
3198         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
3199           and SetWindowBackground methods
3200         * Control.cs:
3201           - Setting proper ControlStyles
3202           - We no longer call XplatUI.SetWindowBackground and XplatUI.
3203             EraseWindowBackground, instead we draw the window background
3204             ourselves in PaintControlBackground. This behaviour is
3205             required to match MS, where, when OnPaintBackground is not
3206             called, the background is not drawn.
3207           - Removed unneeded Refresh() in set_Text
3208         * Hwnd.cs: Dropped the ErasePending support. No longer needed
3209         * XplatUIX11.cs:
3210           - Created DeriveStyles method to translate from CreateParams to
3211             FormBorderStyle and TitleStyle, also handles BorderStyle (which
3212             matches FormBorderStyle enum values)
3213           - Consolidated SetHwndStyles and CalculateWindowRect border/title
3214             style calculations into single DeriveStyles method
3215           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
3216             from redrawing the whole window on any resize or expose.
3217           - Fixed CreateWindow usage of SetWindowValuemask. Before not
3218             all styles were applied to our whole/client window appropriately
3219           - Removed EraseWindowBackground() and SetWindowBackground() methods
3220           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
3221             no longer clear/redraw the background through X
3222           - Removed handling of erase_pending bit, we have no use for it (or
3223             so it seems)
3224         * XplatUIOSX.cs:
3225           - Removed generation and handling of WM_ERASEBKGND message
3226           - Removed EraseWindowBackground() and SetWindowBackground() methods
3227           - Removed handling of hwnd.ErasePending flag
3228         * XplatUIWin32.cs:
3229           - Removed EraseWindowBackground() and SetWindowBackground() methods
3230           - We no longer call EraseWindowBackground on PaintEventStart, we 
3231             ignore the fErase flag, erasing is handled in Control in the
3232             background handler
3233         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
3234           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
3235           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
3236           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
3237           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
3238           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
3239           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
3240
3241 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
3242
3243         * PropertyGrids.cs: Get sub properties
3244         * PropertyGridView.cs: Fix drawing code
3245
3246 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
3247
3248         * ListBox.cs: Fixes 76383
3249
3250 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
3251
3252         * DataGridTextBoxColumn.cs: Sets location and size before attachment
3253         * ThemeWin32Classic.cs: Fixes border drawing and calculations
3254         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
3255
3256
3257 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
3258
3259         * ComboBox.cs: Fixes border drawing
3260
3261 2005-10-10  Miguel de Icaza  <miguel@novell.com>
3262
3263         * MimeIcon.cs: Ignore errors if the file can not be read.
3264
3265 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
3266
3267         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
3268          - Fixed border calculations
3269          - Fixed horizontal scrolling in single column listboxes
3270          - Fixed drawing issues
3271
3272 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
3273
3274         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
3275           FormBorderStyle enum
3276         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
3277           code to determine FormBorderStyles from CreateParams
3278         * Form.cs:
3279           - Fixed bug where we'd set the wrong window styles if we were
3280             not creating an MDI window
3281           - Added call to XplatUI.SetBorderStyle when form borders are set
3282         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
3283         * Hwnd.cs:
3284           - Removed obsolete edge style
3285           - Switched from BorderStyle to FormBorderStyle
3286         
3287 2005-10-10  Jackson Harper  <jackson@ximian.com>
3288
3289         * Form.cs: Use the property to get the window handle instead of
3290         accessing it directly. Prevents a null reference exception.
3291
3292 2005-10-10  Jackson Harper  <jackson@ximian.com>
3293
3294         * TreeView.cs: Don't adjust the rect given to DrawString now that
3295         our libgdiplus draws correctly.
3296
3297 2005-10-08  Jackson Harper  <jackson@ximian.com>
3298
3299         * TreeView.cs: Don't try to find the clicked on node if there are
3300         no nodes in the tree.
3301
3302 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
3303
3304         * RichTextBox.cs:
3305
3306           restore
3307
3308 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
3309
3310         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
3311           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
3312           ErrorProvider.cs:
3313           Use ResPool for brushes and dispose System.Drawing objects that
3314           are not used anymore.
3315
3316 2005-10-07  Jackson Harper  <jackson@ximian.com>
3317
3318         * MdiChildContext.cs: Use the new borders instead of drawing them
3319         ourselves.
3320
3321 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
3322
3323         * Calling UpdateBounds after changing the window's BorderStyle 
3324         since the style can change the ClientSize
3325
3326 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
3327
3328         * Control.cs: Made PaintControlBackground virtual
3329         * Panel.cs: Overriding PaintControlBackground instead of using paint
3330           event; paint event method was interfering with 'real' users of the
3331           event.
3332
3333 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
3334
3335         * ThemeWin32Classic.cs: remove border drawing since it is handled
3336         by the base control class now and was causing double border drawing.
3337
3338 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
3339
3340         * Panel.cs: Redraw our background on paint. Not a pretty solution,
3341           but it does seem to match MS behaviour. This fixes bug #75324
3342
3343 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
3344
3345         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
3346           somewhat hackish looking
3347
3348 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
3349
3350         * TextBoxBase.cs:
3351           - We now accept Enter even if AcceptEnter is false, if the containing
3352             form does not have an AcceptButton configured (fixes bug #76355)
3353           - Calculations are now fixed to no longer use Width/Height, but
3354             ClientSize.Width/Height, since we now support borders (this was
3355             a result of fixing borders and therefore bug #76166)
3356           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
3357             true (fixes bug #76354)
3358         
3359 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
3360
3361         * Control.cs: 
3362           - Defaulting BorderStyle and setting it in XplatUI when our window 
3363             is created
3364           - Added enum check to InternalBorderStyle setter
3365         * XplatUIX11.cs: 
3366           - Added drawing of window borders
3367           - Now properly calculates WM decorations offset for toplevel 
3368             windows (fixes bug #74763)
3369         * XplatUIWin32.cs: 
3370           - Implemented BorderStyles for windows (we're letting win32 draw 
3371             the border for us)
3372           - Fixed the signature for SetWindowLong
3373         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
3374           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
3375           setting borders
3376         * UpDownBase.cs: Remove drawing of borders, this is handled by
3377           the driver, outside the client area
3378         * ListView.cs: Removed bogus border calculations. The control should
3379           be oblivious to borders, since those are not part of the client
3380           area. 
3381         * X11DesktopColors.cs: Commented out (currently) unneeded variables
3382         * ThemeWin32Classic.cs: Removed border calculations from ListView 
3383           drawing code
3384
3385 2005-10-06  Jackson Harper  <jackson@ximian.com>
3386
3387         * MdiChildContext.cs: Clear out the old virtual position remove
3388         all the unneeded calls to CreateGraphics.
3389
3390 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
3391
3392         * TextControl.cs: Use proper color for highlighted text; fixes #76350
3393
3394 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
3395
3396         * Form.cs: 
3397           - Added loading and setting of our new default icon
3398           - Only set icon if window is already created
3399
3400 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
3401
3402         * Label.cs:
3403           - Do not explicitly set the foreground and background colors, to
3404             allow inheriting from parents (fixes #76302)
3405           - Use Control's InternalBorderStyle property to deal with borders
3406
3407 2005-10-06  Jackson Harper  <jackson@ximian.com>
3408
3409         * MdiChildContext.cs: Use the new xplatui function to draw a
3410         reversible rect.
3411
3412 2005-10-06  Jackson Harper  <jackson@ximian.com>
3413
3414         * Form.cs: Add the parent before creating the child context cause
3415         we need the parent when setting up the child.
3416
3417 2005-10-06  Jackson Harper  <jackson@ximian.com>
3418
3419         * FolderBrowserDialog.cs: redo the tree population code so a
3420         second thread isn't used. Should be a lot faster and more stable
3421         now.
3422
3423 2005-10-05  Jackson Harper  <jackson@ximian.com>
3424
3425         * TreeView.cs: There are no expand/collapse boxes if the node has
3426         no children.
3427
3428 2005-10-05  Jackson Harper  <jackson@ximian.com>
3429
3430         * X11DesktopColors.cs: Get menu colours for the gtk theme.
3431
3432 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
3433
3434         * FileDialog.cs: Fix InitialDirectory
3435
3436 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
3437
3438         * ComboBox.cs:
3439                 - Fixes changing between styles
3440                 - Fixes simple mode
3441                 - Fixes last item crashing when navigating with keyboard
3442
3443 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
3444
3445         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
3446
3447 2005-10-05  Jackson Harper  <jackson@ximian.com>
3448
3449         * TreeView.cs: If updating the root node do a full refresh.
3450         * TreeNode.cs: The root node should be expanded by default. Also
3451         added a utility prop to tell if we are the root node.
3452         * TreeNodeCollection.cs: Only refresh if the node we are being
3453         added to is expanded. Also added a comment on a potential
3454         optimization.
3455         
3456 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
3457
3458         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
3459           in dispose method. Fixes #76330
3460
3461 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
3462
3463         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
3464
3465                 - Implements vertical and horizontal scrolling using XplatUI
3466                 - Fixes keyboard navagation
3467                 - Fixes EnsureVisible
3468                 - Drawing fixes
3469                 - Handles and draws focus properly
3470
3471
3472 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
3473
3474         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
3475           Create handle. NET_2_0: Destroy handle when value is null.
3476
3477 2005-10-03  Jackson Harper  <jackson@ximian.com>
3478
3479         * ScrollBar.cs: My last scrollbar patch was broken. This is a
3480         revert and a new patch to prevent the thumb from refreshing so
3481         much.
3482
3483 2005-10-02  Jackson Harper  <jackson@ximian.com>
3484
3485         * ScrollBar.cs: Don't update position if it hasn't actually
3486         changed. This occurs when you hold down the increment/decrement
3487         buttons and the thumb gets to the max/min.
3488
3489 2005-10-01  Jackson Harper  <jackson@ximian.com>
3490
3491         * Form.cs:
3492         * MdiChildContext.cs:
3493         * MdiClient.cs: Implement ActiveMdiChild in Form.
3494
3495 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
3496
3497         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
3498
3499 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
3500
3501         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
3502           be found
3503
3504 2005-09-30  Jackson Harper  <jackson@ximian.com>
3505
3506         * ListBox.cs: Don't do a full refresh unless some data has
3507         actually changed.
3508
3509 2005-09-30  Jackson Harper  <jackson@ximian.com>
3510
3511         * TreeView.cs: Make sure that the checkboxes size is factored in
3512         even when not visible.
3513
3514 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
3515
3516         * FileDialog.cs: Fix Jordi's build break
3517
3518 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
3519
3520         * FileDialog.cs: 
3521                 - Use standard the Windows colours for the combobox as espected
3522                 - Dispose objects that use resouces when no longer need them
3523
3524 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
3525
3526         * X11DesktopColors.cs: Initial incomplete implementation
3527         * XplatUIX11.cs: Added call to initialize X11DesktopColors
3528
3529 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
3530
3531         * Theme.cs: 
3532           - Switched Theme color names to match the names defined in 
3533             System.Drawing.KnownColors. Life's hard enough, no need to make 
3534             it harder.
3535           - Added setters to all theme color properties so themes can set
3536             their color schemes. The setters also propagate the color changes
3537             to System.Drawing.KnownColors via reflection
3538         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
3539           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
3540           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
3541           use the new, more logical theme color names
3542         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
3543           post-NT colors
3544         * ThemeWin32Classic.cs:
3545           - Removed code to set the old classic Windows colors. Instead it
3546             now relies on the colors returned by System.Drawing.KnownColors
3547             which will be either modern static colors (Unix) or colors
3548             read from the user's configuration (Win32)
3549           - Updated to use the new, more logical theme color names
3550           - Switched DataGrid drawing code to use only Theme colors instead of
3551             a mix of System.Drawing.KnownColors and Theme colors
3552           - DrawFrameControl(): Removed code that fills the button area, the
3553             fill would overwrite any previous fill done by a control. This
3554             fixes bug #75338 
3555           - Added DrawReversibleRectangle() stub
3556         * ScrollableControl.cs: Set visible state to false when scrollbars
3557           are removed (pdn fix)
3558         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
3559           DrawReversibleRectangle() method to allow drawing primitive 
3560           'rubber bands'
3561         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
3562
3563 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3564
3565         * ImageList.cs: Add(Icon): Create handle.
3566
3567 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
3568
3569         * ListView.cs:
3570         * ThemeWin32Classic.cs:
3571                 - Fixes detail mode
3572                 - Sets clippings
3573                 - Issues with drawing
3574
3575 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3576
3577         * ImageList.cs: Moved RecreateHandle back to ImageList as event
3578           source has to be the ImageList.
3579
3580 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3581
3582         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
3583
3584 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3585
3586         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
3587
3588 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3589
3590         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
3591
3592 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
3593         * GridItem.cs: Fixed TODOs
3594         * GridItemCollection.cs: Added ICollection interface
3595
3596 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
3597
3598         * ImageList.cs: Resize icons when needed.
3599
3600 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
3601
3602         * ListViewItem.cs
3603                 - Fixes GetBounds and returns on screen rects
3604         * ListView.cs:
3605                 - Fixes vertical and horzintal scrolling of items
3606         * ThemeWin32Classic.cs:
3607                 - Fixes drawing
3608                 
3609 2005-09-29  Raja R Harinath  <harinath@gmail.com>
3610
3611         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
3612
3613 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
3614
3615         * ImageList.cs: Added comments about handle creation. Moved Handle,
3616           HandleCreated and OnRecreateHandle implementations to ImageCollection.
3617           Handle is created in Add methods.
3618
3619 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
3620          
3621         * DataGridDrawingLogic.cs: 
3622                 - Takes rows into account on Colum calculations
3623                 - Returns the column when clickig
3624         * DataGrid.cs:
3625                 - Fixes default HitTestInfo values
3626                 - Fixes HitTestInfo.ToString
3627                 - Fixes ResetBackColor          
3628         
3629 2005-09-28  Jackson Harper  <jackson@ximian.com>
3630
3631         * MdiChildContext.cs: Obey rules for fixed sized windows (no
3632         sizing or cursor changes). Also added some temp code to draw the
3633         titlebars text (Makes dev a little easier).
3634
3635 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
3636
3637         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
3638
3639 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
3640          
3641         * ListBox.cs: Fixes bug 76253
3642
3643 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
3644
3645         * ImageList.cs: Added comments about the current implementation. Added
3646           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
3647           Format32bppArgb to preserve transparency and can use Graphics.FromImage
3648           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
3649           with Bitmap.LockBits for better performance. Revised the whole file to
3650           match MS.NET behaviour and provide better performance. Non-public
3651           interface members are calling public members even when they throw
3652           NotSupportedException for better maintainability. Moved ColorDepth,
3653           ImageSize, ImageStream and TransparentColor implementations to
3654           ImageCollection for better performance as these properties are not used
3655           by ImageList.
3656         * ImageListStreamer.cs: Added a new internal constructor that takes an
3657           ImageList.ImageCollection and serializes Images based on
3658           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
3659           match ImageList property name.
3660
3661 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
3662
3663         * ListBox.cs: Fixes IndexFromPoint for last item
3664
3665 2005-09-27  Jackson Harper  <jackson@ximian.com>
3666
3667         * Form.cs: Set the position of new mdi children correctly.
3668
3669 2005-09-27  Jackson Harper  <jackson@ximian.com>
3670
3671         * MdiClient.cs: New mdi children need to be added to the back of
3672         the controls collection so the zorder is set correctly. Also add a
3673         count of all the child windows that have been created.
3674
3675 2005-09-27  Jackson Harper  <jackson@ximian.com>
3676
3677         * Form.cs (CreateParams): Setup MDI forms correctly.
3678
3679 2005-09-27  Jackson Harper  <jackson@ximian.com>
3680
3681         * MdiChildContext.cs:
3682         * MonthCalendar.cs:
3683         * UpDownBase.cs:
3684         * ListBox.cs:
3685         * ListView.cs:
3686         * TextBoxBase.cs:
3687         * TreeView.cs:
3688         * ScrollableControl.cs:
3689         * ComboBox.cs: Add implicit controls using the new implict control
3690         functionality in ControlCollection. Also try to block multiple
3691         control add in a suspend/resume layout to save some cycles.
3692         
3693 2005-09-27  Jackson Harper  <jackson@ximian.com>
3694
3695         * Control.cs: Add functionality to the controls collection to add
3696         'implicit controls' these are controls that are created by the
3697         containing control but should not be exposed to the user. Such as
3698         scrollbars in the treeview.
3699         * Form.cs: The list var of the ControlsCollection is no longer
3700         available because of the potential of implicit controls getting
3701         ignored by someone accessing the list directly.
3702
3703 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
3704
3705         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
3706           loose it's parent. (Fixed bug introduced in r49103 when we added
3707           setting the child parent to null on Remove)
3708
3709 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
3710
3711         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
3712         * Splitter.cs: Added missing attributes for BorderStyle property.
3713         * TextBoxBase.cs: Marked Calculate* methods internal.
3714         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
3715         MS.NET.
3716
3717 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
3718          
3719         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
3720
3721 2005-09-25  Jackson Harper  <jackson@ximian.com>
3722
3723         * TreeView.cs: Update the node bounds correctly regardless of
3724         whether the node is visible.
3725
3726 2005-09-25  Jackson Harper  <jackson@ximian.com>
3727
3728         * ImageList.cs: Don't dispose the image after it is added to the
3729         image list. Only reformat images that need to be resized.
3730
3731 2005-09-25  Jackson Harper  <jackson@ximian.com>
3732
3733         * ImageList.cs: Don't set the format when changing the image.
3734
3735 2005-09-25  Jackson Harper  <jackson@ximian.com>
3736
3737         * TreeView.cs: We can't just assume the node has a font. Use the
3738         treeviews font if no node font is available.
3739
3740 2005-09-25  Jackson Harper  <jackson@ximian.com>
3741
3742         * TreeView.cs: Allow the scrollbars to be reset with negative
3743         values.
3744         - Don't add scrollbars to negative sized windows.
3745
3746 2005-09-23  Jackson Harper  <jackson@ximian.com>
3747
3748         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
3749         old Mono.Posix. Also remove some stray code that shouldn't have
3750         been committed.
3751
3752 2005-09-23  Jackson Harper  <jackson@ximian.com>
3753
3754         * TreeView.cs: Attempt at proper sizing of the horizontal
3755         scrollbar. Also don't resize the scrollbars unless they are
3756         visible.
3757
3758 2005-09-23  Jackson Harper  <jackson@ximian.com>
3759
3760         * TreeView.cs: We don't need to expand the invalid area when the
3761         selection changes, as this is all drawn in the node's bounding
3762         box. The area needs to be expanded (previous typo was contracting
3763         it) when the focus rect moves.
3764
3765 2005-09-23  Jackson Harper  <jackson@ximian.com>
3766
3767         * TreeView.cs: Display the selection box under the correct
3768         circumstances. We were rendering white text with no selection box
3769         before.
3770
3771 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
3772
3773         * TextControl.cs(Split): Now updates selection start/end if it points 
3774           into a line that's being split. Fixes a FIXME and bug #75258
3775
3776 2005-09-23  Jackson Harper  <jackson@ximian.com>
3777
3778         * Binding.cs:
3779         * ListControl.cs: Don't use the path when retrieving binding
3780         managers from the binding context. My bat sense tells me that the
3781         path is only used on insertion.
3782
3783 2005-09-22  Jackson Harper  <jackson@ximian.com>
3784
3785         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
3786
3787 2005-09-22  Jackson Harper  <jackson@ximian.com>
3788
3789         * Splitter.cs: There are special cursors used for splitting.
3790         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
3791
3792 2005-09-22  Jackson Harper  <jackson@ximian.com>
3793
3794         * Splitter.cs: Change the cursor appropriately when the splitter
3795         is moused over, so the user actually knows there is a splitter
3796         there.
3797
3798 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
3799
3800        * Label.cs : Fix ToString method to give same output as MS.NET
3801
3802 2005-09-22  Jackson Harper  <jackson@ximian.com>
3803
3804         * TreeView.cs: Create the scrollbars when the handle is created
3805         and add them right away, just make them invisble. Also account for
3806         the window being shrunk vertically to the point that the vert
3807         scrollbar needs to be added.
3808         - Remove some 0.5 adjustments to get around anti aliasing issues.
3809         
3810 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
3811          
3812         * MainMenu.cs: Fixes default value
3813         * MenuItem.cs: Fixes default value
3814
3815 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
3816
3817         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
3818
3819 2005-09-21  Jackson Harper  <jackson@ximian.com>
3820
3821         * Control.cs: Don't try to set the border style on the window if
3822         it hasn't been created. When the window is created the border
3823         style will be used.
3824
3825 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
3826
3827         * Control.cs (Update): Don't call XplatUI if we don't have a
3828           window handle yet
3829
3830 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
3831
3832         * ContainerControl.cs: Instead of throwing an exception, print
3833           a one-time warning about Validate not being implemented
3834         * XplatUIWin32.cs: Removed debug output
3835
3836 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
3837
3838         * Control.cs: Only set XplatUI background if we expect the windowing
3839           system to handle the background. This stops controls that draw their
3840           own background from flickering
3841
3842         * XplatUIX11.cs: Support custom visuals and colormaps for window 
3843           creation. This allows, amongst other things, using MWF X11 windows 
3844           with OpenGL.
3845
3846 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
3847
3848         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
3849           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
3850           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
3851           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
3852           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
3853           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
3854           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
3855           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
3856           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
3857           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
3858           GridColumnStylesCollection.cs, 
3859           IDataGridColumnStyleEditingNotificationService.cs,
3860           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
3861           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
3862           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
3863           TreeNodeCollection.cs, AmbientProperties.cs, 
3864           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
3865           DataObject.cs, ErrorProvider.cs, Splitter.cs,
3866           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
3867           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
3868           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
3869           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
3870           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
3871           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
3872           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
3873           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
3874           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
3875           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
3876           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
3877           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
3878           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
3879           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
3880           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
3881           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
3882           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
3883           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
3884           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
3885           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
3886           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
3887           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
3888           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
3889           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
3890           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
3891           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
3892           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
3893           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
3894           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
3895           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
3896           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
3897           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
3898           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
3899           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
3900           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
3901
3902 2005-09-21  Jackson Harper  <jackson@ximian.com>
3903
3904         * TreeNode.cs: Call Before/After Expand not Collapse when
3905         expanding.
3906
3907 2005-09-20  Jackson Harper  <jackson@ximian.com>
3908         
3909         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
3910
3911 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
3912          
3913         * ListViewItem.cs:
3914                 - Fixes bug 76120
3915                 - Fixes proper storing of subitems
3916                 - Fixes not updated items
3917
3918 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
3919
3920         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
3921           things if our window handle isn't created yet. Also disabled 
3922           debug for TextBoxBase
3923
3924 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
3925
3926         * MenuAPI.cs: Remove filtering of events to allow menu usage
3927
3928 2005-09-20  Miguel de Icaza  <miguel@novell.com>
3929
3930         * Cursor.cs: Allow null to be passed to Cursor.Current.
3931
3932 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
3933
3934         * ThemeWin32Classic.cs:
3935           - Change some private methods/fields to protected virtual so that 
3936             they can be accessed and overriden in derived classes
3937           - First refactoring of some methods. Derived themes now don't 
3938             need to duplicate the complete code from ThemeWin32Classic
3939         * ThemeNice.cs:
3940           - Added nice StatusBar
3941           - Derive from ThemeWin32Classic and not Theme
3942           - Removed duplicate ThemeWin32Classic code
3943
3944 2005-09-20  Miguel de Icaza  <miguel@novell.com>
3945
3946         * Control.cs (ControlCollection.Add): If the value null is passed
3947         the control is ignored. 
3948
3949         Optimize this loop.
3950
3951 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
3952
3953         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
3954           PostQuitMessage state.
3955         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
3956
3957 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
3958
3959         * Application.cs: Our constructor will never get called, move 
3960           initialization to fields; fixes bug #75933
3961
3962 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
3963
3964         * FileDialog.cs :
3965                 - Allow files to be selected properly using file name
3966                 combo box.
3967                 - Add ability to change diretory (absolute / relative)
3968                 using file name combo box.
3969
3970 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
3971          
3972         * ListBox.cs: 
3973                 - Fixes Multicolumn listboxes item wrong calculations
3974                 - Allows to click when only one item is in the listbox
3975                 - Fixes crash when no items using keyboard navigation
3976
3977 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
3978
3979         * ComboBox.cs: Reverted almost everything from the latest patch which
3980           broke ComboBox
3981
3982 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
3983         
3984         * ToolTip.cs:
3985                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
3986         * ComboBox.cs:
3987                 - When DropDownStyle is Simple, it does not show scrollbar 
3988                 to the last item of the list.
3989                 - When DropDownStyle is Simple, it crashed when the list was 
3990                 scrolled down with the down cursor key.
3991                 - Fixed a bug that when DropDownStyle is DropDownList, the 
3992                 selected item was not shown.
3993                 - The position of the selected item was not preserved when 
3994                 the next dropdown happened.
3995         * ThemeWin32Classic.cs:
3996                 - Items were wrapped at the right end.
3997         * CheckedListBox.cs:
3998                 - Fixed Add method
3999         * ListBox.cs:
4000                 - Items should be fully shown.
4001                 - When resizing and vertical scrollbar disappeared, the item 
4002                 of index 0 should be on the top of the list.
4003                 - GetItemRectangle should consider the size of ver. scrollbar
4004         * StatusBar.cs:
4005                 - SizingGrip area should not be allocated when it is not 
4006                 displayed.
4007                 - Now it reflects MinWidth of the containing panel and 
4008                 fixed a crash that happens when its width becomes so small.
4009
4010 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
4011
4012         * CheckedListBox.cs: Fixes bug 76028
4013         * ListBox.cs: Fixes bug 76028
4014
4015 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
4016
4017         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
4018         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
4019
4020 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
4021
4022         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
4023
4024 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4025
4026         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
4027
4028 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4029
4030         * IRootGridEntry.cs: Added
4031         * PropertyGridCommands.cs: Added
4032         * PropertiesTab.cs: Added missing methods and property
4033         * PropertyGridView.cs: Made class internal
4034         * PropertyGridTextBox.cs: Made class internal
4035
4036 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
4037
4038         * MimeIcon.cs: Try to check some other environment variables
4039           if "DESKTOP_SESSION" returns "default"
4040
4041 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
4042
4043         * ThemeNice.cs: Corrected background colors (e.g. menus)
4044         * ColorDialog.cs: Use correct background colors for controls
4045
4046 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
4047
4048         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
4049
4050 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
4051
4052         * RichTextBox.cs: Added initial implementation
4053         * lang.cs: Removed. Was accidentally checked in long time ago
4054         * TODO: Removed. Contents were obsolete
4055
4056 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
4057                                                                                 
4058         * PropertiesTab.cs : Added
4059
4060 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
4061                                                                                 
4062         * PropertyGrid.cs : Update
4063         * PropertyGridView.cs : Update
4064         * System.Windows.Forms.resx : Added images and strings
4065
4066 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
4067
4068         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
4069  
4070 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
4071
4072         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
4073           a busy loop right after the Ungrab the X11 display is otherwise 
4074           blocked
4075
4076 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
4077
4078         * ThemeWin32Classic.cs: Optimise the use of clipping
4079
4080 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
4081
4082         * DataGrid.cs: fixes recursion bug
4083
4084 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
4085
4086         * ThemeNice.cs: 
4087           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
4088           - Cleanup
4089
4090 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
4091
4092         * ThemeNice.cs: Draw nice ProgressBars
4093
4094 2005-09-01  Miguel de Icaza  <miguel@novell.com>
4095
4096         * VScrollBar.cs: Another buglet found by Aaron's tool. 
4097
4098         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
4099         bug finder.
4100
4101 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
4102
4103         * ThemeNice.cs:
4104           - Added nicer menu drawing
4105           - Updated DrawTab
4106           - some refactoring
4107
4108 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
4109
4110         * CreateParams.cs (ToString): Made output match MS
4111         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
4112             handle is already created (to avoid forcing window creation)
4113         * XplatUIX11.cs: Set window text to caption after creating window,
4114           in case Text was set before window was created
4115         * Form.cs: Use this.Text instead of a static string as caption
4116
4117 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
4118
4119         * NotifyIcon.cs: Don't set the window to visible; this screws
4120           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
4121           OnPaint without a bitmap)
4122         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
4123           happen very often anyway; we could add the check to the WM_PAINT 
4124           event generation code
4125
4126 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
4127
4128         * NotifyIcon.cs: Fill the icon area with a background color, to 
4129           avoid 'residue' when transparent icons are drawn
4130         * XplatUIX11.cs:
4131           - Handle whole_window == client_window when destroying windows
4132           - SystrayAdd(): Set client_window to whole_window value to
4133             get mouse and other events passed to NotifyIcon
4134
4135 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
4136
4137         * Form.cs: Set proper default for Opacity property
4138         * NotifyIcon.cs:
4139           - ShowSystray(): Don't bother creating telling the OS
4140             about the systray item if no icon is provided
4141           - Now handles WM_NCPAINT message to deal with whole/client window
4142             split
4143           - Create window as visible to not get caught by Expose optimization
4144         * Hwnd.cs: Removed debug message
4145         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
4146           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
4147             PaintEventStart/End to use new client argument
4148         * TextBoxBase.cs:
4149           - Commented out debug messages
4150           - Switched PaintEventStart/End to use new client argument
4151         * XplatUI.cs: Added client window bool to PaintEventStart()/
4152           PaintEventEnd() calls, to support drawing in non-client areas
4153         * XplatUIDriver.cs: 
4154           - Added client window bool to PaintEventStart()/PaintEventEnd() 
4155             calls, to support drawing in non-client areas
4156           - Added conditional compile to allow using MWF BeginInvoke 
4157             on MS runtime
4158         * XplatUIX11.cs:
4159           - Added some conditional debug output
4160           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
4161             whole/client window split
4162           - Implemented handling of client argument to PaintEventStart()/End()
4163         * Control.cs:
4164           - Throw exception if BeginInvoke() is called and the window handle
4165             or one of the window's parent handles is not created
4166           - Added conditional compile to allow using MWF BeginInvoke on
4167             MS runtime
4168           - get_Parent(): Only sets parent if handle is created. This avoids
4169             forcing window handle creation when parent is set.
4170           - Now fires Layout and Parent changed events in proper order
4171           - Switched to use Handle instead of window.Handle for Z-Order setting,
4172             the get_Parent() patch above causes us to possibly get null for 'window'
4173           - Implemented handling of client argument to PaintEventStart()/End()
4174           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
4175             default handling)
4176           - Now sends a Refresh() to all child windows when Refresh() is called
4177
4178 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
4179
4180         * Form.cs: Added (non-functional) Opacity property
4181         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
4182
4183 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
4184         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
4185           use export MONO_THEME=nice to activate it.
4186           Currently supported controls:
4187           - Button
4188           - ComboBox
4189           - ScrollBar
4190           - TabControl (TabAlignment.Top only, other will follow)
4191         * ThemeEngine.cs: Add theme nice
4192         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
4193           if enabled
4194
4195 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
4196
4197         * Splitter.cs: Resize docked control and its neighbor.
4198
4199 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
4200         -- Making Windows with Menus layout correctly --
4201         * Form.cs : The first leg of the fix
4202                 Menu setter - adjust Client Size as needed to make space for the menu
4203                 SetClientSizeCore - doesn't call base version to be able to pass the 
4204                         menu handle to XplatUI.CalculateWindowRect
4205         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
4206         * XplatUIX11.cs: The critical second leg of the fix
4207                 GetWindowPos needs to use a recalculated client_rect
4208                 so that resizing the window doesn't break layout of child controls. 
4209                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
4210                 Lots of \t\n killed
4211
4212 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
4213
4214         * Label.cs: Now properly recalculates width and height on Font and Text
4215           changes if AutoSize is set
4216
4217 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
4218         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
4219
4220 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
4221
4222         * ImageList.cs: Makes ToString method compatible with MS
4223
4224 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
4225
4226         * MenuAPI.cs: fixes bug 75716
4227
4228 2005-08-11 Umadevi S <sumadevi@novell.com>
4229         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
4230
4231 2005-08-11 Umadevi S <sumadevi@novell.com>
4232         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
4233
4234 2005-08-10  Umadevi S <sumadevi@novell.com>
4235         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
4236
4237 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
4238
4239         * Menu.cs: fixes bug 75700
4240         * MenuAPI.cs: fixes navigation issues
4241
4242 2005-08-09  Umadevi S <sumadevi@novell.com>
4243         * CheckedListBox.cs - simple fix for GetItemChecked.
4244
4245 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
4246
4247         * ComboBox.cs: Serveral fixes
4248         * ListBox.cs: Serveral fixes
4249
4250 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
4251
4252         * ComboBox.cs: Fixes FindString methods and GetItemHeight
4253         * ListBox.cs: Fixes FindString methods
4254
4255 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
4256
4257         * DataGrid.cs: fixes bugs exposed by new tests
4258
4259 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
4260
4261         * Mime.cs: Compile Mono assembly references only if compiling
4262           with Mono (Allows to build with VS.Net again)
4263
4264 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
4265
4266         * Control.cs (PaintControlBackground): Draw background image
4267         corrrectly.
4268         (CheckForIllegalCrossThreadCalls): Stubbed.
4269         
4270         * Form.cs (OnCreateControl): Center when should be centered.
4271         
4272         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
4273
4274 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
4275
4276         * Binding.cs: Binding to properties should be case unsensitive
4277
4278 2005-07-18 vlindos@nucleusys.com
4279
4280         * DataGrid.cs: fixes setmember order
4281
4282 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
4283
4284         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
4285         * FileDialog.cs: FileDialog is now resizable and uses the new
4286           MimeIconEngine
4287
4288 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
4289
4290         * DataGridTextBoxColumn.cs: default value
4291         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
4292         * GridTableStylesCollection.cs: fixes checking MappingName
4293         * DataGridDrawingLogic.cs: fixes drawing logic issues
4294         * DataSourceHelper.cs: rewritten to make compatible with more data sources
4295         * DataGrid.cs: fixes    
4296
4297 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
4298
4299         * MimeGenerated.cs: Use case sensitive comparer for
4300           NameValueCollections
4301
4302 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
4303
4304         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
4305         * ThemeWin32Classic.cs: bug fixes, code refactoring
4306         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
4307         * DataGrid.cs: bug fixes, code refactoring
4308         * DataGridTextBox.cs: bug fixes, code refactoring
4309         * DataGridColumnStyle.cs:  bug fixes, code refactoring
4310         * Theme.cs:  bug fixes, code refactoring
4311
4312 2005-07-01  Peter Bartok  <pbartok@novell.com> 
4313
4314         * TextControl.cs: Quick fix for the reported crash on ColorDialog
4315           and other text box usage
4316
4317 2005-07-01  Jackson Harper  <jackson@ximian.com>
4318
4319         * TabControl.cs: Make sure the bottom of the tab covers the pages
4320         border.
4321
4322 2005-06-30  Peter Bartok  <pbartok@novell.com> 
4323
4324         * Form.cs (ShowDialog): Assign owner of the dialog
4325         * TextBoxBase.cs: Always refresh caret size when deleting, caret
4326           might have been moved to a tag with different height
4327
4328 2005-06-30  Jackson Harper  <jackson@ximian.com>
4329
4330         * Form.cs: Don't create an infinite loop when setting focus
4331         * MenuItem.cs: Don't dirty the parents if we don't have any
4332
4333 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
4334
4335         * LibSupport.cs: Rename
4336
4337 2005-06-29  Peter Bartok  <pbartok@novell.com>
4338
4339         * TextBoxBase.cs: Re-align caret after deleting a character
4340         * TextControl.cs:
4341           - DeleteChars(): Ensure that tag covers the provided position
4342           - StreamLine(): Drop reference for dropped tag
4343
4344 2005-06-29  Peter Bartok  <pbartok@novell.com> 
4345
4346         * TextControl.cs: 
4347           - Selections now work properly, anchoring at the initial location
4348             and properly extending in either direction (SetSelectionToCaret(),
4349             SetSelectionStart() and SetSelectionEnd())
4350           - No longer redraws the whole control on selection change, now
4351             calculates delta between previous and new selection and only
4352             invalidates/redraws that area
4353           - Fixed FindPos() math off-by-one errors
4354           - Changed DeleteChars() to verify the provided tag covers the
4355             provided position, selections may have a tag that doesn't cover
4356             the position if the selection is at a tag border
4357           - Fixed off-by-one errors in DeleteChars()
4358           - Added missing streamlining check in DeleteChars() to remove
4359             zero-length tags
4360           - Implemented Invalidate() method, now properly calculates exposures
4361             between two given lines/positions
4362           - Implemented SetSelection()
4363           - Obsoleted and removed FixupSelection()
4364           - Improved RecalculateDocument() logic, removing code duplication
4365
4366 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4367
4368         * LibSupport.cs: changes to match different input/output arguments.
4369
4370 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4371
4372         * LibSupport.cs: added libsupport.so init routine.
4373
4374 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
4375         
4376         * ControlBindingsCollection.cs
4377                 - Throws an exception on null datasource when adding
4378                 - Checks for duplicated bindings when adding
4379
4380 2005-06-28  Jackson Harper  <jackson@ximian.com>
4381
4382         * TreeView.cs (OnKeyDown): Support left and right properly
4383         (navigates as well as expanding and collapsing.
4384         - Add support for Multiply, this expands all the selected nodes
4385         children.
4386         - Fix some tabbing.
4387
4388 2005-06-28  Jackson Harper  <jackson@ximian.com>
4389
4390         * TreeView.cs: Implement keyboard navigation, currently supports,
4391         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
4392         support for toggling checkboxes with the space bar.
4393
4394 2005-06-28  Jackson Harper  <jackson@ximian.com>
4395
4396         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
4397         tree.
4398
4399 2005-06-28  Jackson Harper  <jackson@ximian.com>
4400
4401         * TreeView.cs: Add missing event.
4402
4403 2005-06-27  Peter Bartok  <pbartok@novell.com> 
4404
4405         * TextControl.cs:
4406           - Made line ending size configurable (now allows for counting 
4407             lineendings as \n or \r\n)
4408           - Added margin to viewport to keep caret visible on right side
4409           - Fixed translation routines for line/pos to documentpos to consider
4410             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
4411           - Fixed some line-endings to be unix style
4412           - Fixed Document.FormatText to perform it's calculations 1-based
4413           - Added descriptions for a few methods that might otherwise get 
4414             used wrong
4415           - Added NOTE section with some basic conventions to remember at 
4416             the top of the file
4417           - Major fixup for RichTextBox selection drawing:
4418             * Fixed crashes when multiple tags on a single line were selected
4419             * fixed selection box drawing not overlaying text
4420             * fixed bogus offset calculation for tags not starting at index 1
4421             * Switched behaviour from using multiple Substrings of a 
4422               StringBuilder.ToString() to using multiple 
4423               StringBuilder.ToString(start, length) statements, hoping this is
4424               faster (kept original version commented out in the code, in case
4425               original version was faster)
4426         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
4427           alignment != Left
4428         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
4429           call it as well
4430
4431 2005-06-27  Jackson Harper  <jackson@ximian.com>
4432
4433         * TabControl.cs: Move to the left and right with the arrow
4434         keys. These keys don't cycle beyond first and last like
4435         tab. Refresh all the tabs when scrolling them to the left or
4436         right.
4437
4438 2005-06-27  Jackson Harper  <jackson@ximian.com>
4439
4440         * TabControl.cs:
4441           - ToString: Added method
4442           - CreateParams: Remove TODO and comment
4443           - OnKeyDown: Cycle through bounds properly.
4444           - SelectedIndex: Scroll to the right or left if we need to
4445           display the newly selected tab.
4446
4447 2005-06-23  Jackson Harper  <jackson@ximian.com>
4448
4449         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
4450         set.
4451
4452 2005-06-23  Jackson Harper  <jackson@ximian.com>
4453
4454         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
4455         CTRL-SHIFT-TAB, and HOME, END are there any others?
4456
4457 2005-06-23  Jackson Harper  <jackson@ximian.com>
4458
4459         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
4460
4461 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
4462         
4463         * DataGridTextBoxColumn.cs: fixes and enhancements
4464         * ThemeWin32Classic.cs: fixes and enhancements
4465         * DataGridBoolColumn.cs:  fixes and enhancements
4466         * DataGridDrawingLogic.cs:  fixes and enhancements
4467         * CurrencyManager.cs: fixes and enhancements
4468         * DataGrid.cs: fixes and enhancements
4469         * DataGridColumnStyle.cs:  fixes and enhancements
4470
4471 2005-06-22  Jackson Harper  <jackson@ximian.com>
4472
4473         * TabControl.cs: Add some missing methods that just call into the
4474         base. Make the TabPageCollection's IList interface behave in the
4475         same manner as the MS implementation.
4476
4477 2005-06-22  Peter Bartok  <pbartok@novell.com> 
4478
4479         * TextControl.cs: Added sanity check
4480         * TextBoxBase.cs: 
4481           - Fixed wrapping behaviour, don't set wrap on single line controls
4482             (this fixes the breakage of colordialog introduced in an earlier
4483              checkin)
4484           - Added rudimentary support for autoscrolling right-aligned controls
4485             (still needs fixing, also, center alignment scroll is missing)
4486
4487 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
4488         
4489         * ScrollBar.cs: Fixes thumbpos on Maximum values
4490
4491 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
4492         
4493         * PropertyGridView.cs: Pass context information to UITypeEditors 
4494
4495 2005-06-21  Peter Bartok  <pbartok@novell.com> 
4496
4497         * TextBoxBase.cs:
4498           - Now calling PositionCaret with absolute space coordinates
4499           - Enabled vertical scrolling
4500           - Better tracking of scrollbar changes, tied into WidthChange
4501             event
4502           - Improved cursor tracking
4503           - Removed debug output
4504         * TextControl.cs:
4505           - PositionCaret coordinates are now works in absolute space, not 
4506             the canvas
4507           - Improved tracking of document size
4508           - Added events for width and height changes
4509
4510 2005-06-21  Peter Bartok  <pbartok@novell.com>
4511
4512         * Form.cs: Set focus to active control when form is activated
4513         * TextControl.cs: 
4514           - Added word-wrap functionality to RecalculateLine() 
4515           - Added some short function descriptions for VS.Net to aid in
4516             writing dependent controls
4517           - Added Caret property, returning the current coords of the caret
4518           - Added ViewPortWidth and ViewPortHeight properties
4519           - Added Wrap property
4520           - Added CaretMoved event
4521           - Removed some old debug code
4522           - Split() can now create soft splits
4523           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
4524           - Added method to format existing text
4525           - Fixed size/alignment calculations to use viewport
4526           - RecalculateDocument now can handle changing line-numbers while
4527             calculating lines
4528
4529         * TextBox.cs:
4530           - Added some wrap logic, we don't wrap if alignment is not left
4531           - Added casts for scrollbar var, base class switched types to
4532             also support RichTextBoxA
4533           - Implemented handling of scrollbar visibility flags
4534
4535         * TextBoxBase.cs:
4536           - Switched scrollbars type to RichTextBoxScrollBars to support
4537             RichTextBox
4538           - Added tracking of canvas width/height
4539           - Switched scrollbars to be not selectable (to keep focus on text)
4540           - Added central CalculateDocument() method to handle all redraw
4541             requirements
4542           - Added ReadOnly support
4543           - Added WordWrap support
4544           - Fixed handling of Enter key (we now treat it as a DialogKey)
4545           - Fixed caret positioning when h or v scroll is not zero
4546           - Fixed placing/generation of vertical scrollbar
4547           - Added CalculateScrollBars() method to allow updating scrollbar
4548             limits and visibility
4549           - Fixed handling of horizontal scroll
4550           - Added handling of vertical scroll
4551           - Implemented auto-'jump' when caret moves to close to a left or
4552             right border and there is text to be scrolled into view (currently
4553             there's the potential for a stack overflow, until a bug in
4554             scrollbar is fixed)
4555
4556 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
4557         
4558         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
4559
4560 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
4561
4562         * Mime.cs:
4563         - added inodes.
4564         - return application/x-zerosize for files with size zero
4565           (if no extension pattern matches).
4566         - check matches collection for strings too.
4567         - return only the first mime type if the name value
4568           collection has more than one mime type.
4569
4570 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
4571         
4572         * PropertyGrid.cs: Cleaned up some TODOs
4573         * PropertyGridView.cs: Added support for UITypeEditors
4574
4575 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
4576         
4577         * DataGrid.cs: clears cached value
4578
4579 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
4580
4581         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
4582         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
4583         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
4584         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
4585         
4586 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
4587
4588         * ThemeWin32Classic.cs: fixes colour
4589
4590 2005-06-15  Peter Bartok  <pbartok@novell.com>
4591
4592         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
4593         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
4594         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
4595         * Control.cs: Added some MWFCategory and MWFDescription attributes
4596         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
4597
4598 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
4599
4600         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
4601         usage
4602
4603 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
4604
4605         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
4606         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
4607         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
4608         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
4609         * DataGrid.cs: default datagrid settings for Default Styles, fixes
4610         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
4611
4612 2005-06-13  Jackson Harper  <jackson@ximian.com>
4613
4614         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
4615         isn't printed when the user enables dropping. (X11 does accept
4616         drops).
4617         
4618 2005-06-13  Jackson Harper  <jackson@ximian.com>
4619
4620         * TreeView.cs: Remove some TODOS.
4621
4622 2005-06-13  Jackson Harper  <jackson@ximian.com>
4623
4624         * Form.cs: Hook into the mdi framework.
4625         * MdiClient.cs: Use the base control collections add method so
4626         parents get setup correctly. Set the default back colour and dock
4627         style.
4628         * MdiChildContext.cs: New class, this bad actor handles an
4629         instance of an MDI window. Right now there is only basic
4630         support. You can drag, close, and resize windows. Minimize and
4631         Maximize are partially implemented.
4632
4633 2005-06-13  Jackson Harper  <jackson@ximian.com>
4634
4635         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
4636         freaky when both vals are negative. NOTE: There are probably other
4637         places in XplatUIX11 that this needs to be done.
4638
4639 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
4640
4641         * DataGrid.cs: implement missing methods, move KeyboardNavigation
4642         * DataGridColumnStyle.cs: fixes signature
4643
4644 2005-06-12  Jackson Harper  <jackson@ximian.com>
4645
4646         * XplatUIX11.cs: Use sizing cursors similar to the ones on
4647         windows.
4648
4649 2005-06-11  Jackson Harper  <jackson@ximian.com>
4650
4651         * StatusBarPanel.cs: Signature cleanups. Implement
4652         BeginInit/EndInit.
4653
4654 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
4655
4656         * DataGridTextBoxColumn.cs: Honors aligment
4657         * GridColumnStylesCollection.cs: Contains is case unsensitive
4658         * GridTableStylesCollection.cs: several fixes
4659         * DataGridTableStyle.cs: default column creation
4660         * DataGridDrawingLogic.cs: fixes
4661         * CurrencyManager.cs: ListName property
4662         * DataGrid.cs: multiple styles support
4663         * DataGridColumnStyle.cs: fixes
4664         
4665
4666 2005-06-10  Peter Bartok  <pbartok@novell.com>
4667
4668         * Control.cs(Select): Moved SetFocus call to avoid potential
4669           loops if controls change the active control when getting focus
4670         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
4671           the up/down buttons
4672
4673 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
4674
4675         * ImageListConverter.cs: Implemented
4676
4677 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
4678
4679         * MonthCalendar.cs: Wired in NumericUpDown control for year
4680
4681 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
4682
4683         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
4684           DoubleClick events, since they are not meant to be fired.
4685
4686 2005-06-09  Peter Bartok  <pbartok@novell.com>
4687
4688         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
4689           Jonathan's standalone controls into MWF, implemented missing
4690           events, attributes and methods; added xxxAccessible classes
4691         * AccessibleObject.cs: Made fields internal so other classes
4692           can change them if needed
4693
4694 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
4695
4696         * UpDownBase.cs: Complete implementation
4697         * NumericUpDown.cs: Complete implementation
4698         * DomainUpDown.cs: Complete implementation
4699
4700 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
4701
4702         * DataGridTextBoxColumn.cs: drawing fixes
4703         * DataGridCell.cs: fixes ToString method to match MSNet
4704         * DataGridTableStyle.cs: fixes
4705         * DataGridBoolColumn.cs: fixes, drawing
4706         * DataGridDrawingLogic.cs: fixes, new methods
4707         * DataGridTextBox.cs: Keyboard and fixes
4708         * DataGrid.cs:
4709                 - Keyboard navigation
4710                 - Scrolling fixes
4711                 - Row selection (single, multiple, deletion, etc)
4712                 - Lots of fixes
4713         
4714 2005-06-07  Jackson Harper  <jackson@ximian.com>
4715
4716         * ThemeWin32Classic.cs: Clear the background area when drawing
4717         buttons.
4718
4719 2005-06-06  Peter Bartok  <pbartok@novell.com>
4720
4721         * ImageListStreamer.cs: Fixed signature for GetData
4722         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
4723         * ComboBox.cs:
4724           - Added missing ChildAccessibleObject class
4725           - Added missing OnXXXFocus overrides, switched to using those
4726             instead of the event handler
4727         * Control.cs:
4728           - Added Parent property for ControlAccessibleObject
4729           - Fixed signatures
4730           - Fixed attributes
4731           - Added ResetBindings()
4732         * ListBindingConverter.cs: Implemented some methods
4733         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
4734         * ImageList.cs: Implemented basic handle scheme, removed TODOs
4735         * ContainerControl.cs: Fixed signature, now subscribing to the
4736           ControlRemoved event instead of overriding the handler, LAMESPEC
4737         * CurrencyManager.cs: Added missing attribute
4738         * MonthCalendar.cs: Added missing properties
4739
4740 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
4741
4742         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
4743         
4744 2005-06-06  Gaurav Vaish and Ankit Jain
4745
4746         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
4747         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
4748         
4749 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
4750
4751         * Control.cs: fixes CreateParams Width / Height.
4752
4753 2005-06-05  Peter Bartok  <pbartok@novell.com>
4754
4755         * Win32DnD.cs: Removed compilation warnings
4756
4757 2005-06-05  Peter Bartok  <pbartok@novell.com>
4758
4759         * Control.cs (CreateParams): Since we don't know if one of the
4760           properties we use is overridden, lets make sure if we fail accessing
4761           we continue with a backup plan
4762
4763 2005-06-05  Peter Bartok  <pbartok@novell.com>
4764
4765         * Win32DnD.cs:
4766           - Removed debug output
4767           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
4768             struct
4769           - Plugged resource leak
4770         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
4771           MS size
4772
4773 2005-06-05  Peter Bartok  <pbartok@novell.com>
4774
4775         * XplatUIWin32.cs: Removed DnD code
4776         * Win32DnD.cs: Implemented drop source and drop target functionality
4777
4778 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4779
4780         * UpDownBase.cs: remove duplicate addition of event, enable some code
4781         that was commented out.
4782         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
4783         Validate input when a key is pressed. It works fine now for every
4784         combination of Hexadecimal. Only missing some drawing love when sharing
4785         space with other controls.
4786
4787 2005-06-04  Peter Bartok  <pbartok@novell.com>
4788
4789         * Control.cs:
4790           - We need to pass a window for DragDrop, so enable callback events
4791           - Added DnD callback events when being a DragSource
4792         * XplatUI.cs (StartDrag): Added window handle argument
4793         * XplatUIDriver.cs (StartDrag): Added window handle argument
4794         * QueryContinueDragEventArgs: Made fields internally accessible so
4795           drivers can set them
4796         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
4797           can set them
4798
4799 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
4800
4801         * DataGridTextBoxColumn.cs: column text editing
4802         * DataGridTableStyle.cs: Respect columns styles created by the user
4803         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
4804         * DataGridBoolColumn.cs: bool column editing
4805         * DataGrid.cs: fixes to scrolling, properties, etc
4806         * DataGridTextBox.cs: handle keyboard
4807         * DataGridColumnStyle.cs: fixes
4808
4809 2005-06-02  Jackson Harper  <jackson@ximian.com>
4810
4811         * ImageListStreamer.cs: Somewhat broken implementation of
4812         GetObjectData. The RLE needs some work to match MS properly.
4813
4814 2005-06-02  Jackson Harper  <jackson@ximian.com>
4815
4816         * X11Dnd.cs: Attempting to keep at least one file in MWF
4817         monostyled.
4818
4819 2005-06-02  Peter Bartok  <pbartok@novell.com>
4820
4821         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
4822           that way
4823
4824 2005-06-02  Peter Bartok  <pbartok@novell.com>
4825
4826         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
4827         * XplatUI.cs: Added DoDragDrop() method
4828         * XplatUIDriver.cs: Added DoDragDrop() method
4829
4830 2005-06-02  Jackson Harper  <jackson@ximian.com>
4831
4832         * Splitter.cs: Implement BorderStyle.
4833
4834 2005-06-02  Jackson Harper  <jackson@ximian.com>
4835
4836         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
4837         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
4838         X11 using XDND.
4839
4840 2005-06-02  Peter Bartok  <pbartok@novell.com>
4841
4842         * DataObject.cs:
4843           - Added Data setter
4844           - Fixed broken insertion code for SetData, now also
4845             overwrites any existing entry of the same format name
4846         * Hwnd.cs: Added list of pointers that automatically gets
4847           freed when the window is disposed
4848         * XplatUI.cs: Call driver initialization method when loading
4849           a driver
4850         * Control.cs:
4851           - OnDragLeave takes EventArgs, not DragEventArgs
4852           - Added setting of WS_EX_ACCEPTFILES style when dropping is
4853             supported
4854           - Forces style update when drop state changes
4855         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
4856           not perfect since we cannot (yet) call the IDataObject.GetData()
4857           method, we keep getting 0x80004005 error, dunno why)
4858
4859 2005-06-02  Peter Bartok  <pbartok@novell.com>
4860
4861         * DragEventArgs.cs: Make fields internal so we can cache the
4862           object and re-set the fields from XplatUI
4863
4864 2005-06-02  Jackson Harper  <jackson@ximian.com>
4865
4866         * Control.cs: Add some internal methods so the DnD subsystem can
4867         raise DnD events. Also call into the driver when AllowDrop is set.
4868         * XplatUI.cs:
4869         * XplatUIDriver.cs: New method for setting whether or not a window
4870         is allowed to accept drag and drop messages.
4871                 
4872 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
4873         
4874         * ScrollBar.cs: Make sure that values sent in Scroll events
4875         are always between Maximum and Minimum.
4876
4877 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
4878
4879         * Menu.cs: Call MenuChanged when menuitem visibility has been
4880         changed.
4881         * MenuItem.cs: Rebuild menu when item is (not) visible.
4882         * MainMenu.cs: MainMenu has special MenuChanged.
4883         * Theme.cs: Caption and FrameBorderSize are not fixed.
4884         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
4885         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
4886         * XplatUIX11.cs,
4887         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
4888         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
4889
4890 2005-05-30  Jackson Harper  <jackson@ximian.com>
4891
4892         * DataFormat.cs: We can't statically initialize this stuff because
4893         it calls into the xplatui and could create a loop. So we lazy init
4894         it.
4895
4896 2005-05-28  Jackson Harper  <jackson@ximian.com>
4897
4898         * Control.cs: Proper implementation of Product(Name/Version).
4899
4900 2005-05-27  Jackson Harper  <jackson@ximian.com>
4901
4902         * DataObject.cs: Dont crash if no data is found.
4903
4904 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
4905         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
4906                 as per status page, guessing it should be set to true
4907
4908 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
4909
4910         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
4911         * DataGridTableStyle.cs: set proper formatting text, def header text
4912         * ThemeWin32Classic.cs: new themable paramaters
4913         * DataGridBoolColumn.cs: paint check box, get data, fixes
4914         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
4915         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
4916         * DataGridColumnStyle.cs: fixes
4917         * Theme.cs: new themable paramaters
4918                 
4919 2005-05-26  Peter Bartok  <pbartok@novell.com>
4920
4921         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
4922
4923 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
4924         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
4925
4926 2005-05-24  Peter Bartok  <pbartok@novell.com>
4927
4928         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
4929           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
4930           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
4931           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
4932           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
4933           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
4934           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
4935           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
4936           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
4937           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
4938           missing attributes, etc
4939         * DataGridPreferredColumnWidthTypeConverter.cs: Added
4940
4941 2005-05-24  Peter Bartok  <pbartok@novell.com>
4942
4943         * Help.cs: Added, implemented trivial functions, throws up MessageBox
4944           when user tries to get help
4945         * DataObject.cs, DataFormats.cs, LinkArea.cs,
4946           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
4947           to suppress warnings
4948         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
4949           avoid unreachable code warning
4950
4951 2005-05-20  Peter Bartok  <pbartok@novell.com>
4952
4953         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
4954
4955 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
4956
4957         * DataGridTextBoxColumn.cs: Basic painting methods
4958         * DataGridTableStyle.cs: Set table style in the column
4959         * ThemeWin32Classic.cs: Use Theme for colors
4960         * DataGridDrawingLogic.cs: Implement more drawing
4961         * DataGrid.cs: drawing, theming, enhacements, fixes
4962         * DataGridColumnStyle.cs: fixes, drawing
4963         * Theme.cs: theming for Datagrid
4964
4965 2005-05-20  Peter Bartok  <pbartok@novell.com>
4966
4967         * Cursor.cs: Implemented GetObjectData() method
4968
4969 2005-05-20  Peter Bartok  <pbartok@novell.com>
4970
4971         * Cursors.cs: Added setting of cursor name
4972         * Cursor.cs:
4973           - Implemented constructors
4974           - Implemented Draw and DrawStretched
4975           - Implemented Current property
4976           - Implemented == and != operators
4977           - Implemented Dispose()
4978           - Implemented ToString
4979           - Added missing attributes
4980         * XplatUIX11.cs:
4981           - Added missing reset for OverrideCursor when DoEvents is called
4982           - Fixed creation of cursor, logic was wrong
4983         * XplatUIWin32.cs:
4984           - Added missing reset for OverrideCursor when DoEvents is called
4985           - Fixed creation of cursor, bit arrays were swapped
4986         * Clipboard.cs: Removed obsolete MonoTODO attribute
4987
4988 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
4989
4990         * ComboBox.cs: fixes OnSelectedItemChanged
4991         * ControlBindingsCollection.cs: fixes item range check
4992
4993 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
4994
4995         * UpDownBase.cs:
4996                 - Calc preferred height properly
4997                 - Implement missing properties
4998                 
4999         * NumericUpDown.cs: Implement missing events
5000
5001 2005-05-19  Jackson Harper  <jackson@ximian.com>
5002
5003         * TabControl.cs: New method that resizes the tab pages before
5004         redrawing them. This as needed as the control is double buffered
5005         and sizing will not be recalculated unless ResizeTabPages is
5006         called.
5007         * TabPage.cs: Set base.Text instead of Text in the constructor so
5008         that UpdateOwner does not get called. Use the new Redraw method of
5009         TabControl instead of Refresh so the sizing is recalculated.
5010         * ThemeWin32Classic.cs: Draw the text for button tabs.
5011
5012 2005-05-19  Jackson Harper  <jackson@ximian.com>
5013
5014         * Control.cs: Paint control background images. Fix typo where
5015         PaintControlBackground was not getting called correctly.
5016
5017 2005-05-19  Peter Bartok  <pbartok@novell.com>
5018
5019         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
5020           I can investigate, apparently I broke FileDialog
5021
5022 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
5023
5024         * AxHost.cs: Some simple properties.
5025         * Control.cs: window must be accessible after ctor.
5026         * Form.cs: Added TransparencyKey property.
5027         * TextBoxBase.cs: Implemented Clear. Text property can be null.
5028         * XplatUIWin32.cs: SetBorderStyle implemented.
5029
5030 2005-05-18  Peter Bartok  <pbartok@novell.com>
5031
5032         * DataObject.cs: Entries are not global but particular to the
5033           DataObject, now it behaves that way
5034         * XplatUIWin32.cs: Implemented Clipboard methods
5035         * Clipboard.cs: Implemented
5036         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
5037         * XplatUIOSX.cs: Updated to final clipboard prototypes
5038         * XplatUIX11.cs: Implemented Clipboard methods
5039         * XplatUIDriver.cs: Updated to final clipboard prototypes
5040         * XplatUIStructs.cs:
5041           - Added BITMAPINFOHEADER struct
5042           - Added ClipboardFormats enum
5043         * X11Structs.cs:
5044           - Added ClipboardStruct
5045           - Added Atom enum items for clipboard types
5046           - Fixed atom types for Selection event structures
5047         * DataFormats.cs:
5048           - Added internal properties and methods for drivers to enumerate
5049             all known formats
5050           - Switched initialization method to allow drivers to assign their
5051             own IDs even for the MS predefined clipboard IDs
5052         * XplatUI.cs: Updated to final clipboard interface
5053
5054 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
5055         * PropertyGridView.cs: Fixed compiler warnings.
5056
5057 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
5058         * PropertyGrid.cs: Added some event calls
5059         * PropertyGridView.cs: Change drawing code to use double buffering
5060         * PropertyGridTextBox.cs: Changed Text property name
5061         * GridItem.cs: Added Bounds property.
5062         * GridEntry.cs: Added Bounds property.
5063
5064 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
5065
5066         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
5067         since GetType() may not return the correct type if the object is
5068         a remoting proxy.
5069
5070 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
5071
5072         * TreeNodeCollection.cs: fixes get/set item ranges
5073         
5074 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
5075
5076         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
5077                 
5078 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
5079
5080         * ComboBox.cs: Fix item range comparation
5081         * ListView.cs: Fix item range comparation
5082
5083 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
5084
5085         * FontDialog.cs:
5086           - Clear example panel when OnPaint is called
5087           - Better solution for displaying the example panel text
5088           - Select default indexes in the ListBoxes
5089
5090 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
5091
5092         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
5093
5094 2005-05-11  Peter Bartok  <pbartok@novell.com>
5095
5096         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
5097         * SelectionRangeConverter.cs: Implemented
5098         * PropertyGrid.cs: Fixed attribute value
5099         * Control.cs:
5100           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
5101           - Added Sebastien Pouliot's CAS Stack Propagation fixes
5102         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
5103           that's common to all drivers. First methods to go there are
5104           Sebastien Pouliot's CAS Stack Propagation helper methods
5105         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
5106           Sebastien Pouliot for CAS Stack Propagation
5107
5108 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
5109
5110         * OSXStructs.cs:
5111           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
5112
5113 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
5114
5115         * DataGridTextBoxColumn.cs: fixed some members
5116         * GridColumnStylesCollection.cs: indexed column is case insensitive
5117         * DataGridTableStyle.cs: fixes
5118         * ThemeWin32Classic.cs: add new theme parameter
5119         * Theme.cs: add new theme parameter
5120         * DataGridDrawingLogic.cs: Datagrid's drawing logic
5121         * DataGrid.cs: fixes, new internal properties, etc.
5122         * DataGridColumnStyle.cs: allows to set grid value
5123         *
5124
5125 2005-05-10  Peter Bartok  <pbartok@novell.com>
5126
5127         * AccessibleObject.cs:
5128           - Removed MonoTODO attribute on help, method is correct
5129           - Fixed Bounds property
5130         * AxHost.cs: Moved MonoTODO
5131         * ButtonBase.cs: Now setting AccessibleObject properties
5132         * RadioButton.cs: Setting proper AccessibleObject role
5133         * CheckBox.cs: Setting proper AccessibleObject role
5134         * ControlBindingsCollection.cs: Added properties, methods and attributes
5135         * DataFormats.cs: Fixed awkward internal API, and changed to enable
5136           userdefined DataFormats.Format items as well
5137         * ListControl.cs: Removed data_member from the public eye
5138         * OpenFileDialog.cs:
5139           - Made class sealed
5140           - Added missing attributes
5141         * SaveFileDialog.cs: Added missing attributes
5142         * ImageListStreamer.cs: Fixed code that caused warnings
5143         * LinkLabel.cs: Removed unreachable code
5144         * TreeView.cs: Fixed code that caused warnings
5145         * PropertyGridView.cs: Fixed code that caused warnings
5146         * GridColumnStylesCollection.cs: Added missing attributes
5147         * GridTableStylesCollection: Added missing attribute
5148         * PropertyManager: Added .ctor
5149         * SecurityIDType: Added
5150         * DataObject.cs: Implemented class
5151         * LinkArea.cs: Added missing attribute
5152
5153 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
5154
5155         * RadioButton.cs: call base method to allow to fire OnClick event
5156         * UpDownBase.cs: OnMouseUp call base method
5157         * CheckedListBox.cs: call base method before returning
5158         * TrackBar.cs: call base method before returning
5159         
5160
5161 2005-05-10  Peter Bartok  <pbartok@novell.com>
5162
5163         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
5164           for messages
5165
5166 2005-05-10  Peter Bartok  <pbartok@novell.com>
5167
5168         * DataFormats.cs: Implemented
5169         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
5170           XplatUIX11.cs: Added Clipboard APIs
5171         * XplatUIWin32.cs: Implemented Clipboard APIs
5172         * FolderBrowserDialog.cs: Added missing event, attributes
5173
5174 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
5175
5176         * CheckBox.cs: call base method to allow to fire OnClick event
5177
5178 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
5179
5180         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
5181
5182 2005-05-06  Peter Bartok  <pbartok@novell.com>
5183
5184         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
5185         * Screen.cs: Implemented
5186         * HelpNavigator.cs: Added
5187         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
5188           property
5189         * HelpProvider.cs: Implemented all we can do until we have a CHM
5190           help library (which means that "What's This" does work now)
5191
5192 2005-05-06  Jackson Harper  <jackson@ximian.com>
5193
5194         * XplatUIX11.cs: Fix waking up the main loop.
5195                 
5196 2005-05-05  Peter Bartok  <pbartok@novell.com>
5197
5198         * XplatUI.cs: Updated revision
5199         * Form.cs: Removed enless loop
5200         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
5201         * Label.cs (OnPaint): Added call to base.OnPaint()
5202         * ToolTip.cs: Made ToolTipWindow reusable for other controls
5203         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
5204         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
5205         * AxHost.cs: Added
5206         * ButtonBase.cs: Moved base.OnPaint() call to end of method
5207         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
5208           to ToolTip.ToolTipWindow for drawing and size methods; this allows
5209           reuse of ToolTipWindow by other controls
5210         * SizeGrip.cs: Moved base.OnPaint() call to end of method
5211         * XplatUIX11.cs: Now clipping drawing area (experimental)
5212         * PictureBox.cs: Moved base.OnPaint() call to end of method
5213         * Theme.cs: Fixed ToolTip abstracts to match new format
5214         * ErrorProvider.cs: Implemented
5215
5216 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
5217
5218         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
5219         * LinkLabel.cs:
5220                 - Adds cursors
5221                 - Handles focus
5222                 - Implements LinkBehavior
5223                 - Fixes many issues
5224
5225 2005-05-03  Jackson Harper  <jackson@ximian.com>
5226
5227         * ListView.cs: Calculate the scrollbar positioning on resize and
5228         paint, so they get put in the correct place.
5229
5230 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
5231
5232         * ColorDialogs.cs: The small color panels are now handled by
5233           SmallColorControl. This fixes drawing of the focus rectangle
5234           and adds a 3D border.
5235
5236 2005-05-03  Peter Bartok  <pbartok@novell.com>
5237
5238         * Control.cs: Modified version of Jonathan Chamber's fix for
5239           double-buffering
5240
5241 2005-05-03  Jackson Harper  <jackson@ximian.com>
5242
5243         * ListView.cs: Remove redraw variable. Control now handles whether
5244         or not a redraw needs to be done, and will only raise the paint
5245         event if redrawing is needed.
5246
5247 2005-05-03  Jackson Harper  <jackson@ximian.com>
5248
5249         * Splitter.cs: No decorations for the splitter form. Cache the
5250         hatch brush.
5251
5252 2005-05-03  Jackson Harper  <jackson@ximian.com>
5253
5254         * TreeView.cs: Use dashed lines to connect nodes. Use the
5255         ControlPaint method for drawing the focus rect instead of doing
5256         that in treeview.
5257
5258 2005-05-02  Peter Bartok  <pbartok@novell.com>
5259
5260         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
5261
5262 2005-04-29  Jackson Harper  <jackson@ximian.com>
5263
5264         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
5265         entire image buffer. Just clear the clipping rectangle.
5266
5267 2005-04-29  Jackson Harper  <jackson@ximian.com>
5268
5269         * ThemeWin32Classic.cs: Don't draw list view items that are
5270         outside the clipping rectangle.
5271
5272 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
5273
5274         * ListBox.cs: added horizontal item scroll
5275
5276 2005-04-29  Jackson Harper  <jackson@ximian.com>
5277
5278         * ThemeWin32Classic.cs: Remove some old debug code that was
5279         causing flicker with the new double buffering code.
5280
5281 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
5282
5283         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
5284         behave like combobox and comboboxlist (still not sure if this is
5285         correct though).
5286
5287 2005-04-28  Jackson Harper  <jackson@ximian.com>
5288
5289         * ThemeWin32Classic.cs: Don't fill the middle of progress
5290         bars. This fills areas outside of the clip bounds that don't need
5291         to be filled.
5292
5293 2005-04-28  Jackson Harper  <jackson@ximian.com>
5294
5295         * Control.cs: Don't expose functionality to touch the image buffers.
5296         * ProgressBar.cs:
5297         * ListView.cs: We do not need to (and no longer can) manipulate
5298         the image buffers directly. All of this is handled by Control.
5299
5300 2005-04-28  Peter Bartok  <pbartok@novell.com>
5301
5302         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
5303           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
5304           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
5305
5306 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
5307
5308         * Combobox:
5309                 - Adjust control's height for non-simple comboboxes (bug fix)
5310                 - Remove dead code
5311         * MenuAPI.cs: remove unused var
5312         * ScrollBar.cs: remove unsed var
5313                  
5314         * ListBox.cs: unselect items when clearing
5315
5316 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
5317
5318         * ListControl.cs: honors OnPositionChanged and default Selected Item
5319         * ListBox.cs: unselect items when clearing
5320
5321 2005-04-27  Jackson Harper  <jackson@ximian.com>
5322
5323         * X11Keyboard.cs: Initialize a default keyboard and give a warning
5324         if a "correct" keyboard is not found. This will make us not crash,
5325         but might give some users bad keyboard layouts...seems to be the
5326         same thing rewind does.
5327
5328 2005-04-27  Jackson Harper  <jackson@ximian.com>
5329
5330         * BindingManagerBase.cs: Attach the current/position changed
5331         handlers to their respective events.
5332
5333 2005-04-27  Jackson Harper  <jackson@ximian.com>
5334
5335         * Control.cs: Make sure that the first WM_PAINT does a full draw,
5336         not just a blit.
5337         * ThemeWin32Classic.cs: Don't fill the background for picture
5338         boxes. This could overright user drawing.
5339         * ComboBox.cs: Just fill the clipping rect not the entire client
5340         rect when drawing the background. This prevents pieces of the
5341         image buffer from getting overwritten and is theoretically faster.
5342
5343 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
5344
5345         * ComboBox.cs: Databinding support fixes, fire missing events
5346         * ListControl.cs: implement missing methods and properties, fixes
5347         * ThemeWin32Classic.cs: Databiding support on Drawing
5348         * CheckedListBox.cs: Databinding support fixes, fire missing events
5349         * ListBox.cs: Databinding support fixes, fire missing events
5350         
5351 2005-04-25  Peter Bartok  <pbartok@novell.com>
5352
5353         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
5354
5355 2005-04-25  Jackson Harper  <jackson@ximian.com>
5356
5357         * TreeView.cs: Use the horizontal scrollbars height not width when
5358         determining how much of the client area is available.
5359
5360 2005-04-25  Jackson Harper  <jackson@ximian.com>
5361
5362         * Control.cs: Double buffering is handled differently now. As per
5363         the spec, the extra buffer is created in the WM_PAINT message and
5364         passed down to the control's drawing code.
5365         * GroupBox.cs:
5366         * Label.cs:
5367         * CheckBox.cs:
5368         * ProgressBar.cs:
5369         * RadioButton.cs:
5370         * ColorDialog.cs:
5371         * ComboBox.cs:
5372         * PropertyGridView.cs:
5373         * UpDownBase.cs:
5374         * MessageBox.cs:
5375         * MenuAPI.cs:
5376         * ListView.cs:
5377         * ButtonBase.cs:
5378         * SizeGrip.cs:
5379         * ScrollBar.cs:
5380         * ListBox.cs:
5381         * TrackBar.cs:
5382         * ToolBar.cs:
5383         * PictureBox.cs:
5384         * DateTimePicker.cs:
5385         * StatusBar.cs:
5386         * TreeView.cs: Update to new double buffering system.
5387         * MonthCalendar.cs: Uncomment block, as Capture is now
5388         working. Update to new double buffering
5389         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
5390         * PaintEventArgs.cs: New internal method allows us to set the
5391         graphics object. This is used for double buffering.
5392         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
5393         rectangle. The internal paint_area var has been removed from
5394         StatusBar. The clipping rect should be used instead.
5395         * Theme.cs: Give the PictureBox drawing method a clipping rect.
5396         * TabPage.cs: The RefreshTabs method was removed, so just call the
5397         tab controls Refresh method now.
5398         * TabControl.cs: Update to new double buffering. Make sure the
5399         handle is created before sizing the tab pages, otherwise we will
5400         get stuck in a loop.
5401
5402 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
5403
5404         * LinkLabel.cs: Fix typo, bug #74719; patch
5405           from Borja Sanchez Zamorano
5406
5407 2005-04-22  Jackson Harper  <jackson@ximian.com>
5408
5409         * TreeNode.cs: Implement Handle stuff.
5410         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
5411
5412 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
5413
5414         * DataGridTextBoxColumn.cs: call base constructors, fixes
5415         * GridColumnStylesCollection.cs: missing events, methods, and functionality
5416         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
5417         * DataGridTableStyle.cs: implements create default column styles
5418         * DataGridBoolColumn.cs: which types can handle
5419         * DataGrid.cs: missing methods, fixes, new functionality
5420         * DataGridColumnStyle.cs: fixes
5421
5422 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
5423         * FolderBrowserDialog.cs:
5424         - Use a thread to fill the TreeView
5425         - Adjusted some sizes
5426
5427 2005-04-19  Peter Bartok  <pbartok@novell.com>
5428
5429         * LinkLabel.cs: (Re-)create the pieces when setting the Text
5430           property. Fixes #74360.
5431
5432 2005-04-19  Jackson Harper  <jackson@ximian.com>
5433
5434         * XEventQueue.cs: Lock when getting the lockqueue size.
5435         * PictureBox.cs: Call base OnPaint
5436         
5437 2005-04-19  Peter Bartok  <pbartok@novell.com>
5438
5439         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
5440           messages were no longer being processed (this broke BeginInvoke)
5441
5442           
5443 2005-04-18  Jackson Harper  <jackson@ximian.com>
5444
5445         * TreeView.cs: buglet that caused node images to get drawn
5446         regardless of whether or not they were in the clipping rectangle.
5447
5448 2005-04-18  Jackson Harper  <jackson@ximian.com>
5449
5450         * CurrencyManager.cs: There are four rules for GetItemProperties:
5451         - If the type is an array use the element type of the array
5452         - If the type is a typed list, use the type
5453         - If the list contains an Item property that is not an object, use
5454         that property
5455         - use the first element of the list if there are any elements in
5456         the list.
5457         
5458 2005-04-17  Jackson Harper  <jackson@ximian.oom>
5459
5460         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
5461         click. This handles offsets for scrolling properly and reduces
5462         memory. Also fixed GetNode to not offset now that TopNode works
5463         properly.
5464         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
5465         
5466 2005-04-17  Jackson Harper  <jackson@ximian.com>
5467
5468         * CursorConverter.cs: Initial implementation.
5469
5470 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
5471
5472         * ListControl.cs: work towards complex data binding support on ListControl
5473         * CurrencyManager.cs: work towards complex data binding support on ListControl
5474         * ListBox.cs: work towards complex data binding support on ListControl
5475
5476
5477 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
5478
5479         * GridTableStylesCollection.cs: fixes name and constructor
5480         * DataGridTableStyle.cs: fixes
5481         * DataGridBoolColumn.cs: fixes names and constructors
5482         * DataGrid.cs: define methods and properties. Some init implementations
5483         * DataGridCell.cs: define methods and properties. Some init implementations
5484         * GridTablesFactory.cs: Define methods and properties
5485
5486 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
5487
5488         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
5489         graphics port changes.  We still want the coordinates in global screen
5490         coordinates.
5491
5492 2005-04-14  Jackson Harper  <jackson@ximian.com>
5493
5494         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
5495         check plus minus or checkbox clicks unless those features are enabled.
5496
5497 2005-04-14  Jackson Harper  <jackson@ximian.com>
5498
5499         * TreeView.cs: Add methods for setting the top and bottom visible
5500         nodes. TreeNode::EnsureVisible uses these methods.
5501         * TreeNode.cs: Implement EnsureVisible
5502
5503 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
5504
5505         * Form.cs: Pospone menu assignation if the window has not been created yet
5506         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
5507         size and position
5508
5509 2005-04-12  Jackson Harper  <jackson@ximian.com>
5510
5511         * TreeView.cs: Set the TopNode properly when scrolling
5512         occurs. This has the added benifit of reducing the amount of
5513         walking that needs to be done when drawing. Also removed an old
5514         misleading TODO.
5515         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
5516         
5517 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
5518
5519         * Timer.cs: fixes interval setting when the timer is already enabled
5520         
5521 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
5522
5523         * FolderBrowserDialog.cs: First approach
5524
5525 2005-04-09  Peter Bartok  <pbartok@novell.com>
5526
5527         * FolderBrowserDialog: Added
5528
5529 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
5530
5531         * LinkLabel.cs: move drawing code into the theme
5532         * ThemeWin32Classic.cs: drawing code and painting background bugfix
5533         * Theme.cs: define DrawLinkLabel method
5534
5535 2005-04-05  Jackson Harper  <jackson@ximian.com>
5536
5537         * BindingContext.cs: Use weak references so these bad actors don't
5538         stay alive longer then they need to.
5539
5540 2005-04-05  Jackson Harper  <jackson@ximian.com>
5541
5542         * ListControl.cs: Basic implementation of complex databinding.
5543         * ComboBox.cs:
5544         * ListBox.cs: Add calls to ListControl databinding methods.
5545
5546 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
5547
5548         * FileDialog.cs:
5549           - Don't change PopupButtonState to Normal when the
5550             PopupButton gets pressed several times.
5551           - Renamed ButtonPanel to PopupButtonPanel
5552
5553 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
5554
5555         * ColorDialog.cs: Use cached objects instead of creating them
5556         * LinkLabel.cs: Use cached objects instead of creating them
5557         * Splitter.cs: Use cached objects instead of creating them
5558         * FontDialog.cs: Use cached objects instead of creating them
5559         * PropertyGridView.cs: Use cached objects instead of creating them
5560         * MessageBox.cs: Use cached objects instead of creating them
5561         * FileDialog.cs: Use cached objects instead of creating them
5562         * ThemeWin32Classic.cs: Use cached objects instead of creating them
5563         * TreeView.cs: Use cached objects instead of creating them
5564         
5565 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
5566
5567         * Control.cs: use Equals to compare the font since no == op
5568         * ScrollBar.cs: use Equals to compare the font since no == op
5569
5570 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
5571
5572         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
5573
5574 2005-04-01  Jackson Harper  <jackson@ximian.com>
5575
5576         * Binding.cs: Implement IsBinding.
5577         * BindingManagerBase.cs:
5578         * PropertyManager.cs:
5579         * CurrencyManager.cs: Add IsSuspended property.
5580
5581 2005-04-01  Jackson Harper  <jackson@ximian.com>
5582
5583         * Binding.cs: Had some IsAssignableFrom calls backwards.
5584
5585 2005-04-01  Jackson Harper  <jackson@ximian.com>
5586
5587         * Binding.cs: Handle null data members when pulling data.
5588         * PropertyManager.cs: Handle the data member being a property that
5589         does not exist.
5590
5591 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
5592
5593         * DataGridTextBoxColumn.cs: fixes signature
5594         * DataGrid.cs: calls right constructor
5595
5596 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
5597
5598         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
5599         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
5600         * GridTableStylesCollection.cs: implements GridTableStylesCollection
5601         * DataGridTableStyle.cs: implements DataGridTableStyle
5602         * DataGridBoolColumn.cs: implements DataGridBoolColumn
5603         * DataGridTextBox.cs: implements DataGridTextBox
5604         * DataGridColumnStyle.cs: implements DataGridColumnStyle
5605
5606 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
5607
5608         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
5609
5610 2005-03-29  Peter Bartok  <pbartok@novell.com>
5611
5612         * Application.cs:
5613           - Properly implemented CompanyName property
5614           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
5615             returns a path that includes CompanyName, ProductName and
5616             Version (fixes bug #70330)
5617
5618 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
5619
5620         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
5621           fixes bug #72588.
5622
5623 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
5624
5625         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
5626         
5627           - Added ReadOnly CheckBox
5628           - Further refactoring: moved some code from Open-/SaveFileDialog
5629             to FileDialog
5630
5631 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
5632
5633         * OpenFileDialog.cs: Fixed CheckFileExists
5634         * FileDialog.cs:
5635           Moved FileView and DirComboBox outside FileDialog class.
5636           They can now be used outside FileDialog
5637
5638 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
5639
5640         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
5641         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
5642
5643 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
5644
5645         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
5646           - Added missing CreatePrompt property in SaveDialog
5647           - Overall SaveDialog handling should be better now
5648           - Added non standard ShowHiddenFiles property
5649           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
5650           - Added InitialDirectory and RestoreDirectory support
5651
5652 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
5653
5654         * FileDialog.cs: Made dirComboBox usable
5655
5656 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
5657
5658         * FileDialog.cs: Added Filter support (case sensitiv)
5659
5660 2005-03-24  Jackson Harper  <jackson@ximian.com>
5661
5662         * TabControl.cs: Need a couple more pixels for the lines.
5663
5664 2005-03-23  Jackson Harper  <jackson@ximian.com>
5665
5666         * TabControl.cs: Give the tab page focus when it is selected.
5667
5668 2005-03-23  Jackson Harper  <jackson@ximian.com>
5669
5670         * TabControl.cs: Account for the drawing of tabs borders when
5671         invalidating. If the slider was clicked dont do click detection on
5672         the tabs.
5673
5674 2005-03-23  Jackson Harper  <jackson@ximian.com>
5675
5676         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
5677
5678 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
5679
5680         * CategoryGridEntry.cs: Added
5681         * GridItem.cs: Added helper properties
5682         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
5683         * GridEntry.cs: Updated code for collection
5684         * PropertyGrid.cs: Cleaned up some formatting
5685         * PropertyGridView.cs: Added drop down functionality for enums.
5686         * GridItemCollection.cs: Added enumerator logic
5687         * PropertyGridEntry.cs: Added
5688
5689 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
5690
5691         * FileDialog.cs:
5692           - Removed unnecessary commented code
5693           - Fixed handling for entering the filename manually in the combobox
5694
5695 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
5696
5697         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
5698
5699 2005-03-18  Peter Bartok  <pbartok@novell.com>
5700
5701         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
5702           them being touching the border
5703
5704 2005-03-18  Peter Bartok  <pbartok@novell.com>
5705
5706         * TextControl.cs: Quick hack to center text better
5707
5708 2005-03-18  Peter Bartok  <pbartok@novell.com>
5709
5710         * ControlPaint.cs:
5711           - Don't throw NotImplemented exceptions, just print a notice once
5712             instead (requested by Miguel). This makes running existing SWF
5713             apps a bit easier
5714         * Control.cs:
5715           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
5716           - Added context menu trigger on right click
5717         * Panel.cs: Trigger invalidate on resize
5718         * StatusBar.cs:
5719           - Removed old double-buffer drawing
5720           - Added ResizeRedraw style to force proper update of statusbar
5721         * ListView.cs:
5722           - Removed debug output
5723         * ThemeWin32Classic.cs:
5724           - Fixed drawing of status bar, now draws Text property if there
5725             are no defined panels
5726
5727 2005-03-18  Jackson Harper  <jackson@ximian.com>
5728
5729         * ImageList.cs: When the image stream is set pull all the images
5730         from it.
5731         * ImageListStreamer.cs: Implement reading image list streams.
5732
5733 2005-03-18  Peter Bartok  <pbartok@novell.com>
5734
5735         * ThemeWin32Classic.cs (DrawPictureBox):
5736           - Fixed calculations for centered drawing
5737           - Fixed drawing for normal mode, not scaling the image on normal
5738
5739 2005-03-18  Peter Bartok  <pbartok@novell.com>
5740
5741         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
5742           textbox
5743         * FileDialog.cs:
5744           - Made Open/Save button the accept button for FileDialog
5745           - Tied the cancel button to the IButtonControl cancel button
5746           - Save/Open now properly builds the pathname
5747           - Now handles user-entered text
5748           - Preventing crash on right-click if no item is selected
5749           - Fixed Text property, now uses contents of textbox
5750           - Fixed SelectedText property, now just returns the text part that
5751             is selected in the text box
5752
5753 2005-03-18  Jackson Harper  <jackson@ximian.com>
5754
5755         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
5756         rect, make sure to de-adjust the interior rect after drawing the
5757         tab text.
5758
5759 2005-03-18  Peter Bartok  <pbartok@novell.com>
5760
5761         * MenuAPI.cs: Remove menu *before* executing selected action to
5762           prevent the menu from 'hanging around'
5763           
5764 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
5765
5766         * XplatUIOSX.cs: Implemented WorkingArea property
5767
5768 2005-03-17  Peter Bartok  <pbartok@novell.com>
5769
5770         * XplatUIX11.cs: Fixed menu coord calculations
5771         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
5772           for calculating offsets
5773
5774 2005-03-17  Peter Bartok  <pbartok@novell.com>
5775
5776         * Hwnd.cs: Do not consider menu presence for default client
5777           rectangle location/size
5778         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
5779           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
5780           translation functions
5781         * FileDialog.cs: Fixed (what I presume is a) typo
5782
5783 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
5784
5785         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
5786           X access (avoids X-Async errors)
5787
5788 2005-03-16  Jackson Harper  <jackson@ximian.com>
5789
5790         * TabControl.cs: Raise the SelectedIndexChanged event.
5791
5792 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
5793
5794         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
5795           - Removed vertical ToolBar and replaced it with a custom panel
5796             (desktop and home button already work)
5797           - Added Help button (some controls get resized or relocated then)
5798           - Draw correct text depending on Open or Save.
5799           - Fixed some typos...
5800
5801 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
5802
5803         * ScrollBar.cs:
5804           - Only change Maximum and Minimum when need it (bug fix)
5805
5806 2005-03-15  Peter Bartok  <pbartok@novell.com>
5807
5808         * Form.cs: Use Handle for icon, to trigger creation if
5809           the window does not yet exist
5810         * Control.cs:
5811           - CanSelect: Slight performance improvement
5812           - Focus(): Preventing possible recursion
5813           - Invalidate(): Removed ControlStyle based clear flag setting
5814           - WM_PAINT: fixed logic for calling OnPaintBackground
5815           - WM_ERASEBKGND: Fixed logic, added call to new driver method
5816             EraseWindowBackground if the control doesn't paint background
5817         * XplatUIWin32.cs:
5818           - Moved EraseWindowBackground() method to internal methods
5819           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
5820             is sent via SendMessage on BeginPaint call on Win32
5821         * XplatUIX11.cs:
5822           - Added EraseWindowBackground() method
5823           - No longer sends WM_ERASEBKGND on .Expose, but on call to
5824             PaintEventStart, which more closely matches Win32 behaviour
5825           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
5826           - Fixed SetFocus() to properly deal with client and whole windows
5827         * Hwnd.cs: Added ErasePending property
5828         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
5829         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
5830
5831 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
5832
5833         * XplatUIOSX.cs:
5834           - Fix hard loop when timers exist.
5835           - Fix bugs with middle and right click for 3 button mice.
5836
5837 2005-03-11  Peter Bartok  <pbartok@novell.com>
5838
5839         * XplatUIX11.cs:
5840           - get_WorkingArea: Need to call X directly, GetWindowPos only
5841             returns cached data now
5842           - Added sanity check to GetWindowPos hwnd usage
5843
5844 2005-03-11  Jackson Harper  <jackson@ximian.com>
5845
5846         * BindingManagerBase.cs: This method isn't used anymore as
5847         PullData now updates the data in the control.
5848
5849 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
5850
5851         * Form.cs: fixes menu drawing on X11
5852         * MenuAPI.cs:  fixes menu drawing on X11
5853
5854 2005-03-11  Peter Bartok  <pbartok@novell.com>
5855
5856         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
5857           from Jonathan Gilbert; should fix bug #73606
5858         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
5859           in Screen coordinates. Thanks, Jordi.
5860         * Form.cs: Added missing attribute
5861
5862 2005-03-11  Peter Bartok  <pbartok@novell.com>
5863
5864         * Form.cs:
5865           - Rudimentary Mdi support
5866           - Removed outdated FormParent code
5867           - Implemented lots of missing properties and methods, still missing
5868             transparency support
5869           - Added missing attributes
5870           - Implemented support for MaximumBounds
5871           - Added firing of various events
5872         * XplatUI.cs: Added SetIcon() method
5873         * XplatUIDriver.cs: Added SetIcon() abstract
5874         * XplatUIOSX.cs: Stubbed out SetIcon() method
5875         * XplatUIX11.cs:
5876           - Implemented SetIcon() support
5877           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
5878           - Switched to unix line endings
5879         * XplatUIWin32.cs:
5880           - Made POINT internal so for can access it as part of MINMAX
5881           - Implemented SetIcon() support
5882           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
5883             native Mdi support again, might have to go managed)
5884         * Control.cs: Now fires the StyleChanged event
5885         * MdiClient.cs: Added; still mostly empty
5886
5887 2005-03-10  Peter Bartok  <pbartok@novell.com>
5888
5889         * SaveFileDialog.cs: Added emtpy file
5890
5891 2005-03-08  Peter Bartok  <pbartok@novell.com>
5892
5893         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
5894           in turn triggers OnCreateContro) when creating a handle for the
5895           first time.
5896         * TextControl.cs: Fixed endless loop in certain cases when
5897           replacing the current selection
5898
5899 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
5900
5901         * ScrollBar.cs:
5902           - Honors NewValue changes in Scroll events allowing apps to change it
5903           - Adds First and Last Scroll events
5904           - Fixes Thumb events
5905
5906 2005-03-07  Peter Bartok  <pbartok@novell.com>
5907
5908         * Hwnd.cs: Added DefaultClientRectangle property
5909         * XplatUI.cs: Now using the X11 driver Where() method, which provides
5910           more detailed debug information
5911         * XplatUIX11.cs:
5912           - Fixed size-change feedback loop, where we would pull an old size
5913             off the queue and mistakenly change our window's size to an
5914             earlier value
5915           - Now compressing ConfigureNotify events, to reduce looping and
5916             redraw issues
5917         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
5918           is called
5919
5920 2005-03-07  Jackson Harper  <jackson@ximian.com>
5921
5922         * Binding.cs: Push data pushes from data -> property. Check if the
5923         property is readonly when attempting to set it.
5924
5925 2005-03-07  Jackson Harper  <jackson@ximian.com>
5926
5927         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
5928         instead of IsSubclassOf. Pulling data now sets the value on the
5929         control.
5930         * PropertyManager.cs:
5931         * CurrencyManager.cs: Just need to pull data when updating now,
5932         because PullData will set the value on the control.
5933
5934 2005-03-04  Jackson Harper  <jackson@ximian.com>
5935
5936         * Binding.cs: Implement data type parsing and converting on pulled
5937         data. TODO: Are there more ways the data can be converted?
5938
5939 2005-03-04  Jackson Harper  <jackson@ximian.com>
5940
5941         * Binding.cs: Support <Property>IsNull checks. Also bind to the
5942         controls Validating method so we can repull the data when the
5943         control loses focus.
5944
5945 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
5946
5947         * ColumnHeader.cs:
5948           - Fixes null string format
5949           
5950         * ListView.cs:
5951           - Adds enum type checks
5952           - Fixes redrawing and recalc need after changing some properties
5953           - Fixes on focus_item set after the event
5954           - Fixes adding columns after the control has been created
5955           
5956         * ThemeWin32Classic.cs:
5957           - Fixes CheckBox focus rectangle
5958           - Fixes ColumnHeader drawing
5959
5960
5961 2005-03-03  Jackson Harper  <jackson@ximian.com>
5962
5963         * Binding.cs: Bind to <Property>Changed events so we can detect
5964         when properties are changed and update the data.
5965
5966 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
5967
5968         * ImageList.cs:
5969           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
5970           - Fixes ImageList constructor with ImageList container
5971           - Fixes image scaling (wrong parameters at DrawImage)
5972
5973 2005-02-02  Jackson Harper  <jackson@ximian.com>
5974
5975         * Binding.cs: Make property searches case-insensitive. Eliminate
5976         some duplicated code.
5977
5978 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
5979
5980         * ComboBox.cs:
5981                 - Handle focus event
5982                 - Fix scrollbar events
5983                 - Discard highlighted item if remove it
5984                 - Fixes SelectedItem with strings
5985
5986 2005-03-01  Peter Bartok  <pbartok@novell.com>
5987
5988         * Control.cs:
5989           - Fixed Visible property, now follows (once again) parent chain
5990             to return false if any control in the chain is visible=false
5991           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
5992           - Fixed several places where is_visible instead of Visible was used
5993           - Implemented FIXME related to focus selection when setting focused
5994             control to be invisible
5995
5996         * XplatUIWin32.cs: Now using proper method to find out if window is
5997           visible. Thanks to Jordi for pointing it out
5998
5999 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
6000
6001         * ComboBox.cs: show/hide scrollbar instead of creating it
6002
6003 2005-02-27  Jackson Harper  <jackson@ximian.com>
6004
6005         * CurrencyManager.cs: Add PositionChanged stuff.
6006
6007 2005-02-27  Peter Bartok  <pbartok@novell.com>
6008
6009         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
6010         * XplatUIOSX.cs: Added GetMenuOrigin() stub
6011         * XplatUIWin32.cs: Implemented GetMenuOrigin()
6012         * XplatUIX11.cs:
6013           - Implemented GetMenuDC()
6014           - Implemented GetMenuOrigin()
6015           - Implemented ReleaseMenuDC()
6016           - Implemented generation of WM_NCPAINT message
6017           - Implemented generation and handling of WM_NCCALCSIZE message
6018         * Form.cs: Added debug helper message for Jordi's menu work
6019         * Hwnd.cs:
6020           - Modified ClientRect property; added setter, fixed getter to handle
6021             setting of ClientRect
6022           - Added MenuOrigin property
6023
6024 2005-02-26  Peter Bartok  <pbartok@novell.com>
6025
6026         * XplatUIX11.cs:
6027           - Destroys the caret if a window that's being destroyed contains it
6028           - Ignores expose events coming from the X11 queue for windows that
6029             already are destroyed
6030           - Now uses the proper variable for handling DestroyNotify, before we
6031             marked the wrong window as destroyed
6032           - Improved/added some debug output
6033
6034 2005-02-26  Peter Bartok  <pbartok@novell.com>
6035
6036         * X11Keyboard.cs: Fixes to work on 64bit systems
6037
6038 2005-02-26  Peter Bartok  <pbartok@novell.com>
6039
6040         * Control.cs:
6041           - Now calling OnHandleDestroyed from DestroyHandle()
6042             instead of Dispose()
6043           - Removed bogus call to controls.Remove() from DestroyHandle()
6044
6045 2005-02-26  Peter Bartok  <pbartok@novell.com>
6046
6047         * Control.cs: Properly destroy child windows when our handle is
6048           destroyed
6049
6050 2005-02-25  Peter Bartok  <pbartok@novell.com>
6051
6052         * XplatUI.cs:
6053           - Added 'DriverDebug' define to allow tracing XplatUI API calls
6054           - Alphabetized Static Methods and Subclasses
6055
6056         * XplatUIX11.cs:
6057           - Added XException class to allow custom handling of X11 exceptions
6058           - Created custom X11 error handler, tied into XException class
6059           - Added support for MONO_XEXCEPTIONS env var to allow the user
6060             to either throw an exception on X errors or continue running
6061             after displaying the error
6062           - Added handling of DestroyNotify message
6063           - Added handler for CreateNotify message (still disabled)
6064           - Improved (tried to at least) Where method to provide file and lineno
6065         * X11Structs.cs:
6066           - Added XErrorHandler delegate
6067           - Added XRequest enumeration (to suppor translation of errors)
6068
6069 2005-02-25  Jackson Harper  <jackson@ximian.com>
6070
6071         * PropertyManager.cs: Implement editing features
6072         * CurrencyManager.cs:
6073         * Binding.cs: First attempt at UpdateIsBinding
6074         * BindingManagerBase.cs: Call UpdateIsBinding before
6075         pushing/pulling data.
6076
6077 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
6078
6079         * MenuAPI.cs: Respect disabled items
6080         * ThemeWin32Classic.cs
6081                 - Caches ImageAttributes creation for DrawImageDisabled
6082                 - Fixes vertical menu line drawing
6083                 - Draws disabled arrows in disable menu items
6084
6085 2005-02-24  Peter Bartok  <pbartok@novell.com>
6086
6087         * Hwnd.cs:
6088           - Added UserData property to allow associating arbitrary objects
6089             with the handle
6090           - Fixed leak; now removing Hwnd references from static windows array
6091         * XplatUIWin32.cs:
6092           - Fixed Graphics leak in PaintEventEnd
6093           - Removed usage of HandleData, switched over to Hwnd class
6094         * HandleData.cs: Removed, obsoleted by Hwnd.cs
6095
6096 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
6097
6098         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
6099         * ScrollBar.cs: Fixes bug
6100         * TrackBar.cs: removes death code, clipping, mimize refreshes,
6101          keyboard navigation enhancements
6102
6103 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
6104
6105         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
6106         * GroupBox.cs: Add control styles
6107         * Label.cs: Add control styles
6108         * UpDownBase.cs: Add control styles
6109         * ListBox.cs: Add control styles
6110         * XplatUIWin32.cs: Fixes wrong parameter order
6111
6112
6113 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
6114
6115         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
6116
6117 2005-02-23  Jackson Harper  <jackson@ximian.com>
6118
6119         * PropertyManager.cs: Implement property binding. This doesn't
6120         seem to work yet though as (I think) there are some bugs in
6121         System.ComponentModel.PropertyDescriptor.
6122         * BindingContext.cs: Use new PropertyManager constructor.
6123
6124 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
6125
6126         * ProgressBar.cs: use clip region in ProgressBar
6127         * ThemeWin32Classic.cs: use clip region in ProgressBar
6128
6129 2004-02-22  Jackson Harper  <jackson@ximian.com>
6130
6131         * BindingsCollection.cs: Remove some debug code.
6132
6133 2005-02-22  Jackson Harper  <jackson@ximian.com>
6134
6135         * BindingContext.cs:
6136         * ControlBindingsCollection.cs:
6137         * CurrencyManager.cs:
6138         * Binding.cs:
6139         * BindingManagerBase.cs: Initial implementation
6140         * BindingsCollection.cs: Add an internal contains method that the
6141         BindingManagerBase uses to ensure bindings aren't added twice to
6142         the collection.
6143         * PropertyManager.cs: Stubbed out.
6144         * Control.cs:
6145         * ContainerControl.cs: Hook up databinding
6146         
6147 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
6148
6149         * XplatUIOSX.cs:
6150           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
6151           Fixed Invalidate/Update chain.
6152           Fixed tons of other minor bugs (this is almost a complete rewrite).
6153
6154 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
6155
6156         * ComboBox.cs: do subcontrol creation when the control is created
6157
6158 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
6159
6160         * Label.cs: fixes image drawing (image and imagelist)
6161         * ThemeWin32Classic.cs: cache brushes
6162         
6163 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
6164
6165         * Form.cs: Move menu drawing code to Theme class
6166         * ComboBox.cs: Move ComboBox drawing code to Theme class
6167         * MenuItem.cs: Move menu drawing code to Theme class
6168         * MenuAPI.cs: Move menu drawing code to Theme class
6169         * ThemeWin32Classic.cs: New methods
6170         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
6171         * ListBox.cs: Move Listbox drawing code to Theme class
6172         * Theme.cs: New methods
6173
6174 2005-02-20  Peter Bartok  <pbartok@novell.com>
6175
6176         * Control.cs:
6177           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
6178             only process mnemonics on those)
6179           - Fixed event sequence for key handling; first calling
6180             ProcessKeyEventArgs now
6181         * TextBoxBase.cs:
6182           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
6183             for processing non-character keys
6184           - Fixed WM_CHAR to generate proper event sequence before processing
6185         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
6186           generation
6187
6188 2005-02-19  Peter Bartok  <pbartok@novell.com>
6189
6190         * UserControl.cs: Added TextChanged event; added attributes
6191         * SizeGrip.cs: Implemented resizing and optional display of grip
6192         * Form.cs: Fixed attribute
6193         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
6194           Changed meaning of ScrollWindow bool argument; instead of the
6195           clear attribute (which will be true usually anyway), it gives the
6196           option of moving child controls as well.
6197         * XplatUIX11.cs:
6198           - Changed to match new ScrollWindow argument
6199           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
6200             now handles the implicit parent window a WM puts around us
6201         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
6202           to work)
6203         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
6204         * TreeView.cs: Adjusted to new ScrollWindow arguments
6205
6206 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
6207
6208         * Form.cs: Menu integration with non-client area
6209         * MenuItem.cs: Menu integration with non-client area
6210         * MenuAPI.cs: Menu integration with non-client area
6211
6212 2005-02-18  Peter Bartok  <pbartok@novell.com>
6213
6214         * MethodInvoker.cs: Added
6215         * MdiLayout.cs: Added
6216         * SendKeys.cs: Started implementation
6217         * ErrorIconAlignment.cs: Added
6218
6219 2005-02-18  Peter Bartok  <pbartok@novell.com>
6220
6221         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
6222         * Form.cs: Added handling for Menu-related Non-client messages
6223
6224 2005-02-17  Peter Bartok  <pbartok@novell.com>
6225
6226         * UpDownBase.cs: Fixed typo, compilation errors
6227         * DomainUpDown.cs: Fixed attribute value
6228
6229 2005-02-16  Miguel de Icaza  <miguel@novell.com>
6230
6231         * UpDownBase.cs: Attach entry events.
6232         Propagate events.
6233         Add ForeColor property, Focused, InterceptArrowKeys (interception
6234         does not work yet).
6235
6236 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
6237
6238         * Form.cs:
6239                 - Redraw non client are on Setmenu
6240                 - Calc proper menu starting point
6241
6242 2005-02-17  Peter Bartok  <pbartok@novell.com>
6243
6244         * Application.cs: Fixed message_filter check
6245
6246 2005-02-17  Peter Bartok  <pbartok@novell.com>
6247
6248         * Application.cs: Now calls registered message filters
6249         * DockStyle.cs: Fixed attribute
6250         * Form.cs: Fixed attribute
6251         * Menu.cs: Fixed attribute
6252         * ToolTip.cs: Fixed attribute
6253         * TreeNode.cs: Added missing attributes and arranged in regions
6254         * PropertyGrid.cs: Fixed signatures
6255         * TreeNodeCollection.cs: Added attributes
6256         * Splitter.cs: Added missing attributes; arranged into regions
6257         * TabPage.cs: Added missing attributes; arranged into regions
6258         * TextBoxBase.cs: Added missing attributes
6259         * TextBox.cs: Added missing attributes
6260         * ArrangeDirection.cs: Added missing attributes
6261         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
6262         * ToolBarButton.cs: Fixed attributes
6263         * AnchorStyles.cs: Fixed attribute
6264         * TrackBar.cs: Fixed attributes
6265         * TabControl.cs: Added missing attributes and arranged into regions
6266         * ToolBar.cs: Fixed attribute
6267         * StatusBar.cs: Fixed signature, organized into regions and added
6268           attributes
6269         * StatusBarPanel.cs: Fixed attributes
6270         * ContentsResizedEventArgs.cs: Implemented
6271         * ContentsResizedEventHandler.cs: Implemented
6272         * DateBoldEventArgs.cs: Implemented
6273         * DateBoldEventHandler.cs: Implemented
6274         * UpDownEventArgs.cs: Implemented
6275         * UpDownEventHandler.cs: Implemented
6276         
6277 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
6278
6279         * Form.cs: first Menu NC refactoring
6280         * MenuAPI.cs: first Menu NC refactoring
6281         
6282 2005-02-16  Peter Bartok  <pbartok@novell.com>
6283
6284         * ImeMode.cs: Added missing attributes
6285         * Menu.cs: Fixed attribute
6286         * GroupBox.cs: Fixed attribute
6287         * Label.cs: Fixed attribute
6288         * ColorDialog.cs (RunDialog): Removed TODO attribute
6289         * ComboBox.cs: Fixed attributes
6290         * ListControl.cs: Added missing attributes
6291         * PropertyGrid.cs: Fixed attributes
6292         * Control.cs: Fixed attributes
6293         * ListViewItem.cs: Added TypeConverter attribute
6294         * NotifyIcon.cs: Fixed attributes
6295         * ListView.cs: Fixed attributes
6296         * ButtonBase.cs: Fixed attribute
6297         * ImageList.cs: Added missing attributes
6298         * ContainerControl.cs: Fixed signature
6299         * CheckedListBox.cs: Fixed attribute; added missing attributes
6300         * Panel.cs: Fixed attributes
6301         * PropertyTabChangedEventArgs.cs: Added missing attribute
6302         * PropertyValueChangedEventArgs.cs: Added missing attribute
6303         * Binding.cs: Fixed attribute
6304         * ListViewItemConverter: Implemented ListViewSubItemConverter class
6305         * ListBox.cs: Fixed attribute; added missing attributes;
6306         * ScrollableControl.cs: Added missing attributes
6307         * PictureBox.cs: Added missing attributes; implemented missing property
6308         * DateTimePicker.cs: Added missing attributes
6309         * Theme.cs (ToolWindowCaptionHeight): Fixed type
6310         * MonthCalendar.cs: Fixed attributes
6311         * StatusBarPanel.cs: Added missing attributes
6312         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
6313
6314 2005-02-16  Peter Bartok  <pbartok@novell.com>
6315
6316         * TextBoxBase.cs: The previous method to enforce height yet remember
6317           the requested high was less than ideal, this is an attempt to do
6318           it better.
6319         * Control.cs: Added comment about possible problem
6320         * Copyright: Updated format
6321         * GridItemType.cs: Fixed swapped values
6322
6323 2005-02-15  Jackson Harper  <jackson@ximian.com>
6324
6325         * BaseCollection.cs: Use property so we never access an
6326         uninitialized list. Also initialize the list in the property.
6327
6328 2005-02-15  Peter Bartok  <pbartok@novell.com>
6329
6330         * GroupBox.cs (ProcessMnemonic): Implemented
6331         * Label.cs (ProcessMnemonic): Implemented
6332         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
6333           hotkeys
6334
6335 2005-02-15  Peter Bartok  <pbartok@novell.com>
6336
6337         * RadioButton.cs (ProcessMnemonic): Implemented
6338         * CheckBox.cs (ProcessMnemonic): Implemented
6339         * Control.cs:
6340           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
6341             handling
6342           - Added internal method to allow calling ProcessMnemonic from other
6343             controls
6344         * ContainerControl.cs:
6345           - Started support for handling validation chain handling
6346           - Implemented ProcessMnemonic support
6347           - Added Select() call to Active, to make sure the active control
6348             receives focus
6349         * Form.cs: Setting toplevel flag for Forms (this was lost in the
6350           FormParent rewrite)
6351         * ThemeWin32Classic.cs:
6352           - DrawCheckBox(): Fixed stringformat to show hotkeys
6353           - DrawRadioButton(): Fixed stringformat to show hotkeys
6354         * CommonDialog.cs: Removed WndProc override, not needed
6355
6356 2005-02-14  Peter Bartok  <pbartok@novell.com>
6357
6358         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
6359           missed those in the rewrite
6360
6361 2005-02-14  Miguel de Icaza  <miguel@novell.com>
6362
6363         * NumericUpDown.cs (Increment, ToString): Add.
6364         (DecimalPlaces): implement.
6365         
6366         Add attributes.
6367         
6368         * UpDownBase.cs: Add the designer attributes.
6369
6370 2005-02-13  Peter Bartok  <pbartok@novell.com>
6371
6372         * Panel.cs: Removed border_style, now in Control
6373         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
6374           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
6375
6376 2005-02-13  Peter Bartok  <pbartok@novell.com>
6377
6378         * MouseButtons.cs: Added missing attributes
6379         * XplatUIStructs.cs: Added enumeration for title styles
6380         * LeftRightAlignment.cs: Added missing attributes
6381         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
6382           it compatible with Graphics.FromHwnd()
6383         * SelectedGridItemChangedEventArgs.cs: Fixed property type
6384         * Keys.cs: Added missing attributes
6385         * SelectionRange.cs: Added missing attributes
6386         * SelectionRangeConverter.cs: Added
6387         * XplatUI.cs:
6388           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
6389             ReleaseMenuDC methods
6390           - Renamed ReleaseWindow to UngrabWindow
6391           - Added proper startup notice to allow version identification
6392         * Form.cs:
6393           - Added missing attributes
6394           - Removed FormParent concept
6395         * Label.cs: Removed border_style field, now in Control
6396         * RadioButton.cs: Now properly selects RadioButton when focus is
6397           received
6398         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
6399         * Control.cs:
6400           - Added missing attributes
6401           - Added borderstyle handling
6402           - Removed FormParent concept support
6403           - Fixed calls to XplatUI to match changed APIs
6404           - Fixed bug that would case us to use disposed Graphics objects
6405           - Removed unneeded internal methods
6406           - PerformLayout(): Fixed to handle DockStyle.Fill properly
6407           - SelectNextControl(): Fixed to properly check common parents
6408         * TextBoxBase.cs: Removed border_style field (now in Control)
6409         * MessageBox.cs:
6410           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
6411             fixed calculations for form size
6412           - Added support for localized strings and icons
6413           - Improved form size calculations, added border
6414         * ListView.cs: Removed border_style field (now in Control)
6415         * X11Structs.cs: Moved several structs from X11 driver here
6416         * X11Keyboard.cs: Changed debug message
6417         * Application.cs: Removed FormParent concept support
6418         * CommonDialog.cs:
6419           - Resetting end_modal flag
6420           - Removed FormParent concept support
6421         * NativeWindow.cs: Removed FormParent concept support
6422         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
6423           Client area and Non-Client whole window to allow support for WM_NC
6424           messages
6425         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
6426           prevent using it until it supports Hwnd as per Geoff Norton's request
6427         * ToolBar.cs: Fixed drawing, was not doing proper drawing
6428         * PictureBox.cs: Removed border_style field, now in Control
6429         * XplatUIWin32.cs: Added new driver methods
6430
6431 2005-02-12  Peter Bartok  <pbartok@novell.com>
6432
6433         * OpacityConverter.cs: Implemented
6434         * Hwnd.cs: Internal class to support drivers that need to emulate
6435           client area/non-client area window behaviour
6436
6437 2005-02-11  Peter Bartok  <pbartok@novell.com>
6438
6439         * KeysConverter.cs: Implemented
6440
6441 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
6442
6443         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
6444         * LinkLabel: Added missing attributes
6445         * MainMenu.cs: fixes ToString
6446         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
6447         * ListBox.cs: fixes event position
6448         * TrackBar.cs: adds missing attributes and events
6449         
6450 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
6451
6452         * MenuItem.cs: Use SystemInformation and bug fixes
6453         * MenuAPI.cs: Use SystemInformation and bug fixes
6454
6455 2005-02-09  Jackson Harper  <jackson@ximian.com>
6456
6457         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
6458         their keystate otherwise things like VK_MENU get stuck "on".
6459
6460 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
6461
6462         * ListBox.cs: Fixes AddRange bug
6463         
6464 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
6465
6466         * ProgressBar.cs
6467                 - Add missing attributes
6468                 - Add missing method
6469                 
6470         * CheckedListBox.cs: Added missing attributes
6471                 - Add missing attributes
6472                 - Remove extra method
6473         
6474         * ComboBox.cs: Added missing attributes
6475         * VScrollBar.cs: Added missing attributes
6476         * ScrollBar.cs:  Added missing attributes
6477         * ListBox.cs: Fixes signature, add missing consts
6478         * LinkArea.cs:   Added missing attributes
6479         
6480
6481 2005-02-08  Peter Bartok  <pbartok@novell.com>
6482
6483         * Menu.cs: Added missing attributes
6484         * MainMenu.cs: Added missing attributes
6485         * GroupBox.cs: Added missing attributes
6486         * Label.cs: Added missing attributes
6487         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
6488         * ColorDialog.cs:
6489           - Added Instance and Options properties
6490           - Added missing attributes
6491         * Cursor.cs: Made Serializable
6492         * NotifyIcon: Added missing attributes
6493         * MenuItem.cs: Added missing attributes
6494         * TextBoxBase.cs: Implemented AppendText() and Select() methods
6495         * Panel.cs: Added Missing attributes
6496         * MonthCalendar.cs: Fixed CreateParams
6497
6498 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
6499         
6500         * LinkLabel.cs:
6501                 - Fixes signature
6502                 - Fixes issues with links
6503                 - Adds the class attributes
6504
6505 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
6506         
6507         * ComboBox.cs:
6508                 - Fixes button when no items available in dropdown
6509                 - Fixes repainting problems
6510                 - Adds the class attributes
6511                 
6512 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
6513
6514         * XplatUIOSX.cs: Detect the menu bar and title bar height from
6515         the current theme.  Cache these on startup.
6516
6517 2005-02-07  Jackson Harper  <jackson@ximian.com>
6518
6519         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
6520         the scrollbar buttons when they are depressed.
6521
6522 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
6523
6524         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
6525         Get the display size from the main displayid.  We currently dont
6526         support multiple display configurations.
6527
6528 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
6529
6530         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
6531
6532 2005-02-07  Miguel de Icaza  <miguel@novell.com>
6533
6534         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
6535
6536 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
6537
6538         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
6539
6540 2005-02-04  Jackson Harper  <jackson@ximian.com>
6541
6542         * ThemeWin32Classic.cs: Respect the clipping rect when
6543         drawing. Only fill the intersection of clips and rects so there
6544         isn't a lot of large fills.
6545         * ScrollBar.cs: Pass the correct clipping rect to the theme
6546         engine. Remove some debug code.
6547
6548 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
6549         
6550         * DateTimePicker.cs:
6551                 - Fixed crash on DateTime.Parse, use Constructor instead
6552
6553 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
6554         
6555         * MenuItem.cs:
6556         * MenuAPI.cs:
6557                 - Owner draw support (MeasureItem and DrawItem)
6558
6559 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
6560         
6561         *  Menu.cs:
6562                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
6563                 - Fixes MenuItems.Add range
6564         * MenuItem.cs:
6565                 - MergeMenu and Clone and CloneMenu functions
6566
6567 2005-02-03  Jackson Harper  <jackson@ximian.com>
6568
6569         * ScrollBar.cs: Make abstract
6570         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
6571         is abstract.
6572
6573 2005-02-03  Jackson Harper  <jackson@ximian.com>
6574
6575         * ScrollBar.cs: First part of my scrollbar fixups. This removes
6576         all the unneeded refreshes and uses invalidates with properly
6577         computed rects.
6578
6579 2005-02-03  Peter Bartok  <pbartok@novell.com>
6580
6581         * ComponentModel.cs: Added
6582         * IDataGridEditingService.cs: Added
6583         * Timer.cs: Added missing attributes
6584         * ToolTip.cs: Added missing attributes
6585
6586 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
6587
6588         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
6589
6590 2005-02-03  Peter Bartok  <pbartok@novell.com>
6591
6592         * ListBox.cs: Added missing attributes
6593
6594 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
6595         
6596         * ListBox.cs:
6597                 - Fixes font height after font change
6598                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
6599                 
6600 2005-02-02  Peter Bartok  <pbartok@novell.com>
6601
6602         * HandleData.cs: Introduced static methods to allow class
6603           to be more self-contained and track it's own HandleData objects
6604         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
6605           HandleData to use new static methods
6606
6607 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
6608
6609         * Combobox.cs:
6610                 - Fixes default size and PreferredHeight
6611                 - Missing events
6612                 - ObjectCollection.Insert implementation
6613                 
6614         * ListControl.cs
6615                 - Fixes signature
6616         * ListBox.cs:
6617                 - Several fixes
6618                 - ObjectCollection.Insert implementation
6619                 - No selection after clean
6620                 - Small fixes
6621
6622 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
6623
6624         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
6625
6626 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
6627
6628         * Combobox.cs:
6629                 - Caches ItemHeight calculation for OwnerDrawVariable
6630                 - Handles dropdown properly
6631                 - Fixes several minor bugs
6632
6633 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
6634
6635         * ListBox.cs:
6636                 - Fixes 71946 and 71950
6637                 - Fixes changing Multicolumn on the fly
6638                 - Fixes keyboard navigation on Multicolumn listboxes
6639
6640 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
6641         
6642         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
6643         crash reporter log.
6644
6645 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
6646
6647         * XplatUIOSX.cs: Allow applications to actually exit.
6648
6649 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
6650
6651         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
6652         their parent at creation time rather than lazily later.  Fixes a major
6653         regression we were experiencing.
6654
6655 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
6656
6657         * ThemeWin32Classic.cs: more date time picker painting fixes
6658         * DateTimePicker.cs: more monthcalendar drop down fixes
6659         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
6660
6661 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
6662
6663         * ScrollBar.cs:
6664                 - When moving the thumb going outside the control should stop the moving
6665                 - Adds the firing of missing events
6666                 - Fixes no button show if Size is not specified
6667                 - End / Home keys for keyboard navigation
6668
6669 2005-01-30  Peter Bartok  <pbartok@novell.com>
6670
6671         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
6672           sanity check to prevent theoretical loop
6673         * XplatUIWin32.cs (SetVisible): Removed debug output
6674         * XplatUIX11.cs (SystrayChange): Added sanity check
6675         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
6676         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
6677           behaviour, valid until the X11 client window rewrite is done
6678         * TextBox.cs (ctor): Setting proper default foreground and background
6679           colors
6680
6681 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
6682
6683         * Theme: Added DrawDateTimePicker to interface
6684         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
6685         * DateTimePicker.cs: Created (still needs keys and painting code)
6686         * DateTimePickerFormat.cs: added
6687         * MonthCalendar.cs: fixed CreateParams for popup window mode
6688           
6689 2005-01-29  Peter Bartok  <pbartok@novell.com>
6690
6691         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
6692           this should also the calculations for ligher/darker
6693         * Theme.cs: Fixed defaults for ScrollBar widths/heights
6694
6695 2005-01-29  Peter Bartok  <pbartok@novell.com>
6696
6697         * ArrangeDirection.cs: Added
6698         * ArrangeStartingPositon.cs: Added
6699         * SystemInformation.cs: Implemented
6700         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6701           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
6702           used by SystemInformation class
6703         * X11Strucs.cs: Added XSizeHints structure
6704         * MenuAPI.cs:
6705           - Fixed CreateParams to make sure the menu window is always visible
6706           - TrackPopupMenu: Added check to make sure we don't draw the
6707             menu offscreen
6708
6709 2005-01-29  Peter Bartok  <pbartok@novell.com>
6710
6711         * HandleData.cs: Added method for altering invalid area
6712         * TextBoxBase.cs: Implemented TextLength
6713
6714 2005-01-28  Peter Bartok  <pbartok@novell.com>
6715
6716         * XplatUIX11.cs: Improvement over last patch, not sending
6717           the WM_PAINT directly anymore, instead we scroll any pending
6718           exposed areas and let the system pick out the WM_PAINT later
6719
6720 2005-01-28  Peter Bartok  <pbartok@novell.com>
6721
6722         * SWF.csproj: Deleted, no longer used. Instead,
6723           Managed.Windows.Forms/SWF.csproj should be used
6724         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
6725           directly, to avoid a potential race condition with the next
6726           scroll
6727
6728 2005-01-28  Peter Bartok  <pbartok@novell.com>
6729
6730         * XplatUI.cs: Made class internal
6731
6732 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
6733
6734         * CheckedListBox.cs:
6735                 - Draw focus
6736                 - Fixed Drawing
6737                 - Missing methods and events
6738
6739 2005-01-27  Peter Bartok  <pbartok@novell.com>
6740
6741         * Application.cs (Run): Don't use form if we don't have one
6742
6743 2005-01-27  Peter Bartok  <pbartok@novell.com>
6744
6745         * TextBoxBase.cs (get_Lines): Fixed index off by one error
6746
6747 2005-01-27  Peter Bartok  <pbartok@novell.com>
6748
6749         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
6750         * GridItem.cs: Added; Patch by Jonathan S. Chambers
6751         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
6752         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
6753         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
6754         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
6755         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
6756         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
6757         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
6758         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
6759         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
6760         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
6761
6762 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
6763
6764         * Combobox.cs:
6765                 - Draw focus on Simple Combobox
6766                 - Fixes drawing issues
6767                 - fixes 71834
6768
6769 2005-01-27  Peter Bartok  <pbartok@novell.com>
6770
6771         * Form.cs:
6772           - Place window in default location, instead of hardcoded 0/0
6773           - Send initial LocationChanged event
6774         * Control.cs:
6775           - UpdateBounds after creation to find out where the WM placed us
6776           - Make sure that if the ParentForm changes location the Form
6777             is notified
6778         * XplatUIX11.cs: XGetGeometry will not return the coords relative
6779             to the root, but to whatever the WM placed around us.
6780             Translate to root coordinates before returning toplevel
6781             coordinates
6782         * XplatUIWin32.cs: Removed debug output
6783         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
6784           flag to GetWindowPos, to allow translation of coordinates on X11
6785
6786 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
6787
6788         * ListBox.cs: connect LostFocus Event
6789
6790 2005-01-27  Peter Bartok  <pbartok@novell.com>
6791
6792         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
6793           XplatUIX11.cs: Extended the Systray API
6794         * Form.cs: Removed debug output
6795         * Application.cs: Fixed focus assignment, always need to call
6796           XplatUI.Activate() since Form.Activate() has rules that may
6797           prevent activation
6798         * NotifyIcon.cs: Should be complete now
6799         * ToolTip.cs: Worked around possible timer bug
6800
6801 2005-01-27  Jackson Harper  <jackson@ximian.com>
6802
6803         * TabControl.cs:
6804         - Only invalidate the effected tabs when the
6805         selected index changes. This reduces drawing and gets rid of some
6806         flicker.
6807         - Only refresh if the tabs need to be shifted, otherwise only
6808         invalidate the slider button.
6809         - On windows the tabs are not filled to right if the slider is
6810         visible.
6811         
6812 2005-01-27  Jackson Harper  <jackson@ximian.com>
6813
6814         * TabControl.cs: Only refresh on mouseup if we are showing the
6815         slider. Also only invalidate the button whose state has changed.
6816
6817 2005-01-26  Peter Bartok  <pbartok@novell.com>
6818
6819         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
6820         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
6821           and SystrayRemove() methods
6822         * XplatUIOSX.cs: Stubbed Systray methods
6823         * XplatUIX11.cs:
6824           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
6825             methods
6826           - Fixed broken XChangeProperty calls (marshalling messed up things)
6827         * X11Structs.cs: Added enums and structs required for Size hinting
6828         * NotifyIcon.cs: Added & implemented
6829
6830 2005-01-26  Jackson Harper  <jackson@ximian.com>
6831
6832         * TabControl.cs: Space vertically layed out tabs properly.
6833
6834 2005-01-26  Peter Bartok  <pbartok@novell.com>
6835
6836         * Form.cs (CreateClientParams): Always set the location to 0,0
6837           since we're a child window.
6838
6839         * Control.cs (SetVisibleCore): Always explicitly setting the location
6840           of a toplevel window, apparently X11 doesn't like to move windows
6841           while they're not mapped.
6842
6843 2005-01-26  Jackson Harper  <jackson@ximian.com>
6844
6845         * TabControl.cs: Implement FillToRight size mode with vertically
6846         rendered tabs.
6847
6848 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
6849
6850         * ControlPaint.cs, ThemeWin32Classic.cs
6851                 - Fixes DrawFocusRectangle
6852
6853 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
6854
6855         * MenuAPI.cs:
6856                 - MenuBar tracking only starts when item is first clicked
6857                 - Fixes menu hidding for multiple subitems
6858                 - Unselect item in MenuBar when item Executed
6859                 - Fixes bug 71495
6860
6861 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
6862
6863         * ListControl.cs:
6864                 - IsInputKey for ListBox
6865         * ListBox.cs:
6866                 - Focus item
6867                 - Shift and Control item selection
6868                 - Implement SelectionMode.MultiExtended
6869                 - Fixes RightToLeft
6870         * ComboBox.cs:
6871                 - IsInputKey implemented
6872                 - Do not generate OnTextChangedEdit on internal txt changes
6873                 
6874 2005-01-23  Peter Bartok  <pbartok@novell.com>
6875
6876         * AccessibleObject.cs: Partially implemented Select()
6877         * MonthCalendar.cs: Added missing attributes and events
6878         * Form.cs: Fixed CreateParams behaviour, now controls derived from
6879           form can properly override CreateParams.
6880         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6881           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
6882           Control performs Invalidate & Update
6883         * NativeWindow (CreateHandle): Added special handling for Form
6884           and Form.FormParent classes to allow overriding of From.CreateParams
6885         * Control.cs:
6886           - ControlNativeWindow: Renamed 'control' variable to more intuitive
6887             name 'owner'
6888           - ControlNativeWindow: Added Owner property
6889           - Removed usage of Refresh() on property changes, changed into
6890             Invalidate(), we need to wait until the queue is processed for
6891             updates, direct calls might cause problems if not all vars for
6892             Paint are initialized
6893           - Added call to UpdateStyles() when creating the window, to set any
6894             styles that CreateWindow might have ignored.
6895           - Added support for Form CreateParent overrides to UpdateStyles()
6896         * MessageBox.cs: Removed no longer needed FormParent override stuff,
6897           CreateParams are now properly overridable
6898         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
6899           CreateParams are now properly overridable
6900
6901 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
6902
6903         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
6904         OnTextBoxChanged.
6905
6906         Capture LostFocus and OnTextBoxChanged.  The later introduces a
6907         recursive invocation that I have not figured out yet.
6908
6909         Reset the timer when not using (it was accumulating).
6910
6911
6912         (OnTextBoxChanged): Set UserEdit to true here to track whether the
6913         user has made changes that require validation.
6914
6915         Reset changing to avoid loops.
6916
6917 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
6918
6919         * NumericUpDown.cs: Display value at startup.
6920
6921         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
6922         ValidateEditText.
6923
6924         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
6925         filled in.  Added some basic parsing of text.
6926
6927         Still missing the OnXXX method overrides, and figuring out the
6928         events that must be emitted.
6929
6930         * UpDownBase.cs: Handle UserEdit on the Text property.
6931         
6932 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
6933
6934         * ComboBox.cs:
6935           - Fixes IntegralHeight
6936           - ToString method
6937
6938 2005-01-21  Jackson Harper  <jackson@ximian.com>
6939
6940         * TabControl.cs: Set the SelectedIndex property when SelectedTab
6941         is set so that the page visibility is updated and the tabs are
6942         sized correctly.
6943
6944 2005-01-21  Jackson Harper  <jackson@ximian.com>
6945
6946         * TabControl.cs: Use cliping rectangle for blitting. Give the
6947         theme the clipping rect so we can do clipping while
6948         drawing. Remove some debug code.
6949
6950 2005-01-21  Jackson Harper  <jackson@ximian.com>
6951
6952         * TabPage.cs: Add a new method so tab pages can force the tab
6953         control to recalculate the tab page sizes.
6954         * TabControl.cs: UpdateOwner needs to make the tab control recalc
6955         sizes.
6956
6957 2005-01-20  Jackson Harper  <jackson@ximian.com>
6958
6959         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
6960
6961 2005-01-20  Jackson Harper  <jackson@ximian.com>
6962
6963         * TreeView.cs: Set the bounds for nodes properly. They were
6964         getting screwed up when checkboxes were not enabled, but images
6965         were.
6966
6967 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
6968
6969         * ListBox.cs:
6970                 - Owner draw support
6971                 - Fixes
6972                 
6973 2005-01-20  Jackson Harper  <jackson@ximian.com>
6974
6975         * XplatUIStructs.cs: More misc keys
6976         * X11Keyboard.cs: Ignore some control keys.
6977
6978 2005-01-20  Jackson Harper  <jackson@ximian.com>
6979
6980         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
6981         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
6982
6983 2005-01-19  Peter Bartok  <pbartok@novell.com>
6984
6985         * Control.cs: Un-selecting the control when it is loosing focus
6986
6987 2005-01-19  Jackson Harper  <jackson@ximian.com>
6988
6989         * TreeView.cs: Hook up to the text controls leave event so we can
6990         end editing when the users clicks outside the text box.
6991         
6992 2005-01-19  Jackson Harper  <jackson@ximian.com>
6993
6994         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
6995         get set in the conversion array.
6996
6997 2005-01-19  Peter Bartok  <pbartok@novell.com>
6998
6999         * Application.cs (ModalRun): Added a call to CreateControl to ensure
7000           focus is properly set
7001         * Button.cs:
7002           - Added missing attributes
7003           - removed styles, those are already set in the base class
7004         * ButtonBase.cs:
7005           - Added missing attributes
7006           - Added clip window styles
7007         * CheckBox.cs: Added missing attributes
7008         * CommonDialog.cs:
7009           - FormParentWindow.CreateParams: Added required clip styles
7010         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
7011           also filters modifier keys
7012         * MessageBox.cs:
7013           - Added assignment of Accept and Cancel button to enable Enter
7014             and Esc keys in MessageBox dialogs
7015           - FormParentWindow.CreateParams: Added required clip styles
7016         * RadioButton.cs: Added missing attributes
7017         * TextControl.cs: No longer draws selection if control does not
7018           have focus
7019         * TextBoxBase.cs:
7020           - Now draws simple rectangle around test area to make it obvious
7021             there's a control. This is a hack until we properly support borders
7022           - A few simple fixes to support selections better, now erases selected
7023             text when typing, and resets selection when using movement keys
7024
7025 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
7026
7027         * UpDownBase.cs: Added some new properties.
7028
7029         * DomainUpDown.cs: Implement a lot to get my test working.
7030
7031 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
7032
7033         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
7034
7035 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
7036
7037         * OSXStructs (WindowAttributes): Fixed csc complaints
7038
7039 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
7040
7041         * XplayUIOSX.cs:
7042           OSXStructs.cs: Initial refactor to move enums and consts into
7043           OSXStructs and use them in the driver for greater readability.
7044
7045 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
7046
7047         * XplatUIOSX.cs: Initial support for Standard Cursors.
7048         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
7049
7050 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
7051
7052         * ComboBox.cs: ability to change style when the ctrl is already
7053         created, missing methods and events, bug fixes, signature fixes
7054
7055 2005-01-19  Peter Bartok  <pbartok@novell.com>
7056
7057         * Cursors.cs (ctor): Added ctor to fix signature
7058
7059 2005-01-18  Peter Bartok  <pbartok@novell.com>
7060
7061         * Button.cs: Implemented DoubleClick event
7062         * ButtonBase.cs:
7063           - Fixed keyboard handling to behave like MS, where the press of
7064             Spacebar is equivalent to a mousedown, and the key release is
7065             equivalent to mouseup. Now a spacebar push will give the same
7066             visual feedback like a mouse click.
7067           - Added missing attributes
7068           - Added ImeModeChanged event
7069           - Added support for generating DoubleClick event for derived classes
7070         * CheckBox.cs:
7071           - Implemented DoubleClick event
7072           - Added missing attributes
7073         * CommonDialog.cs: Added missing attribute
7074         * ContextMenu.cs: Added missing attributes
7075         * RadioButton.cs:
7076           - AutoChecked buttons do not allow to be unselected when clicked
7077             (otherwise we might end up with no selected buttons in a group)
7078           - Added missing attributes
7079           - Implemented DoubleClickEvent
7080         * ThreadExceptionDialog.cs: Enabled TextBox code
7081
7082 2005-01-18  Peter Bartok  <pbartok@novell.com>
7083
7084         * Form.cs: Removed debug output
7085         * Button.cs: Added support for DoubleClick method
7086
7087 2005-01-18  Peter Bartok  <pbartok@novell.com>
7088
7089         * Form.cs:
7090           - Added method to parent window that allows triggering size
7091             calculations when a menu is added/removed
7092           - set_Menu: Cleaned up mess from early days of Form and Control,
7093             now properly triggers a recalc when a menu is added/removed
7094           - Added case to select form itself as focused form if no child
7095             controls exist
7096           - Added PerformLayout call when showing dialog, to ensure properly
7097             placed controls
7098         * Control.cs:
7099           - Select(): Made internal so Form can access it
7100           - Focus(): Only call Xplat layer if required (avoids loop), and sets
7101             status
7102         * Application.cs (Run): Removed hack and calls PerformLayout instead
7103           to trigger calculation when Form becomes visible
7104
7105 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
7106
7107         * ComboBox.cs: fixes for ownerdraw
7108
7109 2005-01-18  Peter Bartok  <pbartok@novell.com>
7110
7111         * TextControl.cs:
7112           - Sentinel is no longer static, each Document gets it's own, this
7113             avoids locking or alternatively overwrite problems when more
7114             than one text control is used simultaneously.
7115           - Switched to use Hilight and HilightText brushes for text selection
7116
7117         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
7118
7119 2005-01-18  Peter Bartok  <pbartok@novell.com>
7120
7121         * Control.cs:
7122           - Hooked up the following events:
7123                 o ControlAdded
7124                 o ControlRemoved
7125                 o HandleDestroyed
7126                 o ImeModeChanged
7127                 o ParentChanged
7128                 o TabStopChanged
7129                 o Invalidated
7130                 o SystemColorsChanged
7131                 o ParentFontChanged
7132                 o Move
7133           - Removed debug output
7134           - Added a call to the current theme's ResetDefaults when a color change
7135             is detected
7136         * Form.cs: Now setting the proper ImeMode
7137         * Theme.cs: Defined a method to force recreation of cached resources
7138           and rereading of system defaults (ResetDefaults())
7139         * ThemeWin32Classic.cs: Added ResetDefaults() stub
7140
7141 2005-01-17  Peter Bartok  <pbartok@novell.com>
7142
7143         * Control.cs: Added missing attributes
7144
7145 2005-01-17  Jackson Harper  <jackson@ximian.com>
7146
7147         * TreeNode.cs: Implement editing. Add missing properties selected
7148         and visible.
7149         * TreeView.cs: Implement node editing. Also some fixes to use
7150         Invalidate (invalid area) instead of Refresh when selecting.
7151
7152 2005-01-17  Peter Bartok  <pbartok@novell.com>
7153
7154         * Control.cs:
7155           - Implemented InvokeGotFocus() method
7156           - Implemented InvokeLostFocus() method
7157           - Implemented InvokePaint() method
7158           - Implemented InvokePaintBackground() method
7159           - Implemented InvokeClick() method
7160           - Implemented FindForm() method
7161           - Implemented RectangleToClient() method
7162           - Implemented ClientToRectangle() method
7163           - Implemented ResetBackColor() method
7164           - Implemented ResetCursor() method
7165           - Implemented ResetFont() method
7166           - Implemented ResteForeColor() method
7167           - Implemented ResetImeMode() method
7168           - Implemented ResetLeftToRight() method
7169           - Implemented ResetText() method
7170           - Implemented Scale() methods
7171           - Implemented ScaleCore() method
7172           - Implemented Update() method
7173           - Removed unused variables
7174           - Stubbed AccessibilityNotifyClients and
7175             ControlAccessibleObject.NotifyClients() methods (dunno what to do
7176             with those yet)
7177           - Now setting proper default for RightToLeft property
7178           - Fixed bug in SetClientSizeCore that would cause windows to get
7179             really big
7180           - Now sending Click/DoubleClick events
7181           - Now selecting controls when left mouse button is clicked on
7182             selectable control
7183         * AccessibleEvents.cs: Added
7184         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
7185         * XplatUIOSX.cs: Stubbed UpdateWindow() method
7186         * XplatUIWin32.cs: Implemented UpdateWindow() method
7187         * XplatUIX11.cs: Implemented UpdateWindow() method
7188         * Form.cs: Removed stray semicolon causing CS0162 warning
7189         * ThemeWin32Classic.cs: Fixed unused variable warnings
7190         * ScrollableControl.cs: Now calls base method for ScaleCore
7191         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
7192           style to avoid interference with internal click handler (which is
7193           different than standard Control click handling)
7194         * RadioButton.cs:
7195           - Now unchecks all sibling radio buttons when control is
7196             selected (Fixes #68756)
7197           - Removed internal tabstop variable, using the one inherited from
7198             Control
7199
7200 2005-01-17  Jackson Harper  <jackson@ximian.com>
7201
7202         * NavigateEventArgs.cs: Fix base type.
7203         * LinkLabel.cs: Sig fix
7204         
7205 2005-01-17  Jackson Harper  <jackson@ximian.com>
7206
7207         * TreeView.cs: Only invalidate the effected nodes bounds when
7208         selecting nodes.
7209
7210 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
7211
7212         * XplatUIWin32.cs: fixes Win32 marshaling
7213         * XplatUIX11.cs: fixes method signature
7214
7215 2005-01-17  Peter Bartok  <pbartok@novell.com>
7216
7217         * XplatUIX11.cs: Clean up resources when we no longer need them
7218
7219 2005-01-17  Peter Bartok  <pbartok@novell.com>
7220
7221         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
7222           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
7223           and DestroyCursor() methods.
7224         * Cursor.cs: Partially implemented, now supports standard cursors;
7225           still contains some debug code
7226         * Cursors.cs: Implemented class
7227         * Control.cs:
7228           - WndProc(): Added handling of WM_SETCURSOR message, setting the
7229             appropriate cursor
7230           - Implemented Cursor property
7231           - Replaced break; with return; more straightforwar and possibly
7232             faster
7233           - Now properly setting the result for WM_HELP
7234         * X11Structs.cs: Added CursorFontShape enum
7235         * XplatUIStructs.cs:
7236           - Added StdCursor enum (to support DefineStdCursor() method)
7237           - Added HitTest enum (to support sending WM_SETCURSOR message)
7238         * XplatUIX11.cs:
7239           - Now sends the WM_SETCURSOR message
7240           - Implemented new cursor methods
7241         * XplatUIOSX.cs: Stubbed new cursor methods
7242         * XplatUIWin32.cs:
7243           - Implemented new cursor methods
7244           - Added GetSystemMetrics function and associated enumeration
7245
7246 2005-01-15  Peter Bartok  <pbartok@novell.com>
7247
7248         * Control.cs:
7249           - WndProc(): Now handles EnableNotifyMessage
7250           - SelectNextControl(): Fixed bug where if no child or sibling
7251             controls exist we looped endlessly
7252
7253 2005-01-14  Jackson Harper  <jackson@ximian.com>
7254
7255         * TreeView.cs: Recalculate the tab pages when a new one is added
7256         so that the proper bounding rects are created.
7257
7258 2005-01-14  Jackson Harper  <jackson@ximian.com>
7259
7260         * TreeView.cs: Draw a gray box instead of a grip in the lower
7261         right hand corner when there are both horizontal and vertical
7262         scroll bars.
7263
7264 2005-01-14  Jackson Harper  <jackson@ximian.com>
7265
7266         * Control.cs: When erasing backgrounds use FromHwnd instead of
7267         FromHdc when there is a NULL wparam. This occurs on the X driver.
7268         * XplatUIX11.cs: Set the wparam to NULL.
7269
7270 2005-01-13  Jackson Harper  <jackson@ximian.com>
7271
7272         * PictureBox.cs: Implement missing methods (except ToString, need
7273         to test that on windows) and events. When visibility is changed we
7274         need to redraw the image because the buffers are killed. When size
7275         is changed refresh if the sizemode needs it.
7276
7277 2005-01-13  Peter Bartok  <pbartok@novell.com>
7278
7279         * Control.cs (SelectNextControl): Was using wrong method to select
7280           a control
7281
7282 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
7283
7284         * ComboBox.cs: fixes dropstyle
7285
7286 2005-01-13  Peter Bartok  <pbartok@novell.com>
7287
7288         * Form.cs:
7289           - Implemented Select() override
7290           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
7291           - Now sets keyboard focus on startup
7292         * Control.cs (SelectNextControl): Now properly handles directed=true
7293         * TextBoxBase.cs:
7294           - WndProc: Now passes tab key on to base if AcceptTabChar=false
7295           - Added (really bad) focus rectangle (mostly for testing)
7296         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
7297           to enforce redraw on focus changes
7298         * ContainerControl.cs:
7299           - Fixed detection of Shift-Tab key presses
7300           - Fixed traversal with arrow keys
7301         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
7302           gonna keep this or if it's complete yet
7303         
7304 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
7305
7306         * ComboBox.cs: missing properties, fixes
7307
7308 2005-01-13  Peter Bartok  <pbartok@novell.com>
7309
7310         * Panel.cs (ctor): Setting Selectable window style to off
7311         * Splitter.cs (ctor): Setting Selectable window style to off
7312         * GroupBox.cs (ctor): Setting Selectable window style to off
7313         * Label.cs (ctor): Setting Selectable window style to off
7314
7315 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
7316
7317         * UpDownBase.cs (InitTimer): If the timer has been already
7318         created, enable it.
7319
7320         Use a TextBox instead of a Label.
7321
7322 2005-01-12  Jackson Harper  <jackson@ximian.com>
7323
7324         * TreeView.cs: Refresh the tree after sorting the nodes. Always
7325         draw the connecting node lines (when ShowLines is true).
7326         * TreeNode.cs: The nodes index can now be updated. This is used
7327         when a node collection is sorted.
7328         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
7329         insert or an existing unsorted node collection can be sorted.
7330         
7331 2005-01-12  Peter Bartok  <pbartok@novell.com>
7332
7333         * ContainerControl.cs: Implemented ProcessDialogKeys()
7334
7335 2005-01-12  Peter Bartok  <pbartok@novell.com>
7336
7337         * Control.cs:
7338           - Implemented SelectNextControl() method
7339           - Several focus related bug fixes
7340           - Fixed Docking calculations to match MS documentation and
7341             behaviour
7342
7343 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
7344
7345         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
7346         bug fixes
7347
7348 2005-01-12  Peter Bartok  <pbartok@novell.com>
7349
7350         * Control.cs:
7351           - Fixed broken Contains() method
7352           - Implemented GetNextControl() method. Finally. This is the pre-
7353             requisite for focus handling.
7354
7355 2005-01-12  Peter Bartok  <pbartok@novell.com>
7356
7357         * OSXStrucs.cs: Added
7358
7359 2005-01-12  Peter Bartok  <pbartok@novell.com>
7360
7361         * XplatUIWin32.cs:
7362           - Removed PeekMessageFlags
7363           - Implemented SetWindowStyle() method
7364         * XplatUIStructs.cs: Added PeekMessageFlags
7365         * X11Structs: Added missing border_width field to XWindowChanges struct
7366         * XplatUIX11.cs:
7367           - PeekMessage: Now throws exception if flags which are not yet
7368             supported are passed
7369           - Implemented SetWindowStyle() method
7370           - Fixed SetZOrder to handle AfterHwnd properly
7371         * XplatUI.cs: Added SetWindowStyle() method
7372         * XplatUIDriver.cs: Added SetWindowStyle() abstract
7373         * Control.cs:
7374           - Implemented UpdateStyles() method
7375           - Implemented UpdateZOrder() method
7376         * XplatUIOSX.cs: Added SetWindowStyle() stub
7377
7378 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
7379
7380         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
7381         button mouse).
7382
7383
7384 2005-01-11  Jackson Harper  <jackson@ximian.com>
7385
7386         * TreeView.cs: Still need to draw lines to siblings even if out of
7387         the current node is out of the clip.
7388
7389 2005-01-11  Jackson Harper  <jackson@ximian.com>
7390
7391         * TreeView.cs: When setting the hbar/vbar/grip position use
7392         SetBounds so that perform layout is only called once. Also suspend
7393         and resume layout so layout is only done once for all controls.
7394         - Removed some debug fluff
7395         * SizeGrip.cs: Call base implmentation in overriding methods.
7396         - When visibility is changed the drawing buffers are killed so we
7397         need to redraw.
7398
7399 2005-01-11  Jackson Harper  <jackson@ximian.com>
7400
7401         * TreeView.cs: Calculate the open node count while drawing. This
7402         saves us an entire tree traversal for every paint operation. Use
7403         a member var for the open node count so less vars are passed around.
7404
7405 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
7406
7407         * MonthCalendar.cs:
7408         - fixed selection to use mousemove, not mouse polling on timer
7409         * ThemeWin32Classic.cs
7410         - removed redundant unused variable "no_more_content"
7411         
7412 2005-01-11  Peter Bartok  <pbartok@novell.com>
7413
7414         * XplatUIX11.cs (DoEvents): Needs to return when no more events
7415           are pending, so it now calls PeekMessage instead of GetMessage;
7416           implemented a incomplete version of PeekMessage
7417         
7418 2005-01-11  Peter Bartok  <pbartok@novell.com>
7419
7420         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
7421           I18n issues
7422         * TextBoxBase.cs: Added sending of TextChanged event
7423
7424 2005-01-10  Jackson Harper  <jackson@ximian.com>
7425
7426         * TreeView.cs: Try not to draw outside the clipping rectangle on
7427         each node element.
7428
7429 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
7430
7431         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
7432
7433 2005-01-10  Jackson Harper  <jackson@ximian.com>
7434
7435         * TreeView.cs:
7436         - Implement fast scrolling. Now only the newly
7437         exposed nodes are drawn and the old image is moved using the
7438         XplatUI::ScrollWindow method.
7439         - Factor in height of nodes when calculating whether or not the
7440         node is in the clipping rect.
7441
7442 2005-01-10  Jackson Harper  <jackson@ximian.com>
7443
7444         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
7445
7446 2005-01-10  Peter Bartok  <pbartok@novell.com>
7447
7448         * Application.cs: Added temporary hack to resolve all our resize
7449           required issues on startup. This will get fixed properly at
7450           some point in the future
7451
7452 2005-01-10  Jackson Harper  <jackson@ximian.com>
7453
7454         * SizeGrip.cs: New internal class that is used as a sizing
7455         grip control...hence the name.
7456
7457 2005-01-10  Peter Bartok  <pbartok@novell.com>
7458
7459         * Control.cs: Implemented proper TabIndex handling, now assigning
7460           a tabindex when a control is added to a container
7461         * GroupBox.cs (ctor): Now sets the Container style bit, required
7462           for Control.GetNextControl()
7463
7464 2005-01-09  Jackson Harper  <jackson@ximian.com>
7465
7466         * TextBoxBase.cs: Clear window when scrolling (fixes build).
7467
7468 2005-01-09  Peter Bartok <pbartok@novell.com>
7469
7470         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7471           XplatUIX11.cs: Added ability to control ScrollWindow expose and
7472           an overload for ScrollWindow to allow only scrolling a rectangle
7473
7474 2005-01-09  Peter Bartok <pbartok@novell.com>
7475
7476         * Form.cs:
7477           - Implemented SetDesktopBounds method
7478           - Implemented SetDesktopLocation method
7479
7480 2005-01-08  Jackson Harper  <jackson@ximian.com>
7481
7482         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
7483         the node count has changed, this removes to VScroll::Refresh calls
7484         when drawing.
7485
7486 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
7487
7488         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
7489
7490 2005-01-07  Jackson Harper  <jackson@ximian.com>
7491
7492         * TreeNode.cs: Just update the single node when it is
7493         checked. Don't refresh after toggling, the Expand/Collapse already
7494         handles this.
7495         * TreeView.cs: Respect clipping a little more when drawing. Try
7496         not to redraw things that don't need to be redrawn. Just hide the
7497         scrollbars when they are no longer needed instead of removing
7498         them, so they don't have to be created again and again.
7499         
7500 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
7501
7502         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
7503         coordinates to window space to place the caret properly, FIXED.
7504         Implement GetWindowState & SetWindowState
7505
7506 2005-01-06  Peter Bartok <pbartok@novell.com>
7507
7508         * Form.cs:
7509           - Implemented ClientSize property
7510           - Implemented DesktopBounds property
7511           - Implemented DesktopLocation property
7512           - Implemented IsRestrictedWindow property
7513           - Implemented Size property
7514           - Implemented TopLevel property
7515           - Implemented FormWindowState property
7516         * Control.cs:
7517           - Implemented GetTopLevel() method
7518           - Implemented SetTopLevel() method
7519         * X11Structs.cs (Atom):
7520           - Added AnyPropertyType definition
7521           - Added MapState definiton and updated XWindowAttribute struct
7522         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
7523         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
7524         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
7525         * XplatUIWin32.cs:
7526           - Implemented GetWindowState() and SetWindowState() methods
7527           - Fixed Win32GetWindowLong return type
7528         * XplatUIX11.cs:
7529           - Introduced central function for sending NET_WM messages
7530           - Implemented GetWindowState() and SetWindowState() methods
7531         * TextBoxBase.cs (set_Lines):
7532           - Now uses Foreground color for text added via Text property (Duh!)
7533           - Added code to remember programmatically requested size (fixes
7534             behaviour when Multiline is set after Size)
7535           - Added AutoSize logic
7536
7537 2005-01-06  Jackson Harper  <jackson@ximian.com>
7538
7539         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
7540
7541 2005-01-06  Jackson Harper  <jackson@ximian.com>
7542
7543         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
7544         set to less then 0.
7545
7546 2005-01-06  Jackson Harper  <jackson@ximian.com>
7547
7548         * ScrollableControl.cs: Lazy init the scrollbars.
7549         
7550 2005-01-06  Jackson Harper  <jackson@ximian.com>
7551
7552         * Theme.cs: Speed up getting pens and solid brushes, by using
7553         their ARGB as a hash instead of tostring and not calling Contains.
7554
7555 2005-01-06  Peter Bartok <pbartok@novell.com>
7556
7557         * Form.cs:
7558           - Implemented OnActivated and OnDeactivate event trigger
7559           - Implemented Activate() method
7560           - Fixed ShowDialog() to activate the form that was active before
7561             the dialog was shown
7562         * XplatUIX11.cs:
7563           - Added global active_window var that tracks the currently active
7564             X11 window
7565           - Now always grabs Property changes from the root window to always
7566             catch changes on the active window property
7567           - Added code to PropertyNotify handler to send Active/Inactive
7568             messages when state changes. This puts X11 and Win32 en par on
7569             WM_ACTIVATE notifications (except for double notifications when
7570             the user clicks away from our modal window to another one of our
7571             windows)
7572
7573 2005-01-05  Jackson Harper  <jackson@ximian.com>
7574
7575         * ImageList.cs: Implment ctor
7576
7577 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
7578
7579         * XplatUIOSX.cs: Implement Activate/SetTopmost
7580
7581 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
7582
7583         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
7584
7585 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
7586
7587         * XplatUIOSX.cs: Implement GetActive/SetFocus.
7588
7589 2005-01-05  Peter Bartok <pbartok@novell.com>
7590
7591         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
7592           XplatUIOSX.cs: Added GetActive method to return the currently
7593           active window for the application (or null, if none is active)
7594         * Form.cs:
7595           - Implemented ActiveForm
7596           - Commented out owner assignment for modal dialogs (causes problems
7597             on Win32, since the owner will be disabled)
7598           - Reworked some Active/Focus handling (still incomplete)
7599         * CommonDialog.cs: Commented out owner assignment for modal dialogs
7600           (causes problems on Win32, since the owner will be disabled)
7601         * IWin32Window: Added ComVisible attribute
7602
7603 2005-01-05  Peter Bartok <pbartok@novell.com>
7604
7605         * ToolTip.cs (WndProc): Enable setting focus now that we have the
7606           required XplatUI functions.
7607
7608 2005-01-05  Peter Bartok <pbartok@novell.com>
7609
7610         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
7611           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
7612           to implement focus and activation handling; still incomplete and
7613           with debug output
7614
7615 2005-01-04  Peter Bartok <pbartok@novell.com>
7616
7617         * TextBoxBase.cs: Changed access level for Document property to
7618           match switch to internal for TextControl
7619
7620 2005-01-04  Peter Bartok <pbartok@novell.com>
7621
7622         * AccessibleObject: Added ComVisible attribute
7623
7624 2005-01-04  Jackson Harper  <jackson@ximian.com>
7625
7626         * X11Keyboard.cs: Remove unneeded var.
7627
7628 2005-01-04  Jackson Harper  <jackson@ximian.com>
7629
7630         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
7631         but PAINT.
7632         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
7633         ClientMessage. This makes apps exit cleanly (more often).
7634         
7635 2005-01-04  Jackson Harper  <jackson@ximian.com>
7636
7637         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
7638         handling focus, return correct colors and fonts,
7639         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
7640         handle selection, horizontal scrolling, and mouse interaction.
7641
7642 2005-01-04  Peter Bartok <pbartok@novell.com>
7643
7644         * ICommandExecutor.cs: Added
7645         * IDataGridColumnStyleEditingNotificationService.cs: Added
7646         * IFeatureSupport.cs: Added
7647         * IFileReaderService.cs: Added
7648         * IDataObject.cs: Added ComVisible attribute
7649         * AmbientProperties.cs: Added
7650         * BaseCollection.cs: Added missing attributes
7651         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
7652         * BaseCollection.cs: Added missing attributes
7653         * Binding.cs: Added TypeConverter attribute
7654         * BindingContext.cs: Added DefaultEvent attribute
7655         * BindingsCollection.cs: Added DefaultEvent attribute
7656         * Button.cs: Added DefaultValue attribute
7657         * DragEventArgs.cs: Added ComVisible attribute
7658         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
7659         * KeyEventArgs.cs: Added ComVisible attribute
7660         * KeyPressEventArgs.cs: Added ComVisible attribute
7661         * MouseEventArgs.cs: Added ComVisible attribute
7662         * NavigateEventArgs.cs: Added
7663         * NavigateEventHandler.cs: Added
7664         * FeatureSupport.cs: Added
7665         * OSFeature.cs: Added
7666         * Theme.cs: Added abstract Version property to support OSFeature
7667         * ThemeWin32Classic.cs: Added Version property to
7668           support OSFeature.Themes
7669         * ProgressBar.cs: Removed OnPaintBackground override, not required since
7670           the proper styles to avoid background drawing are set, also doesn't
7671           match MS signature
7672         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
7673         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
7674         * ScrollEventArgs.cs: Added ComVisible attribute
7675         * SplitterEventArgs.cs: Added ComVisible attribute
7676         * AccessibleSelection.cs: Added Flags attribute
7677         * Appearance.cs: Added ComVisible attribute
7678         * Border3DSide.cs: Added ComVisible attribute
7679         * Border3DStyle.cs: Added ComVisible attribute
7680         * BorderStyle.cs: Added ComVisible attribute
7681         * DragAction.cs: Added ComVisible attribute
7682         * ErrorBlinkStyle.cs: Added
7683         * ScrollEventType.cs: Added ComVisible attribute
7684         * AnchorStyles.cs: Added Editor attribute
7685         * DockStyle.cs: Added Editor attribute
7686         * HorizontalAlignment.cs: Added ComVisible attribute
7687         * HelpEventArgs.cs: Added ComVisible attribute
7688         * PaintEventArgs.cs: Added IDisposable
7689
7690 2005-01-04  Peter Bartok <pbartok@novell.com>
7691
7692         * TextControl.cs: Switched Line, LineTag and Document classes to
7693           internal
7694
7695 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
7696
7697         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
7698         Simple mode, fixes, IntegralHeight, etc.
7699
7700 2005-01-04  Peter Bartok <pbartok@novell.com>
7701
7702         * TextBoxBase.cs: Using proper font variable now
7703
7704 2005-01-04  Peter Bartok <pbartok@novell.com>
7705
7706         * Form.cs (ShowDialog): Set parent to owner, if provided
7707         * GroupBox.cs: Removed unused vars
7708         * TextControl.cs:
7709           - Added GetHashCode() for Document and LineTag classes
7710           - Removed unused variables
7711           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
7712             to allow translation between continuous char position and line/pos
7713         * CheckBox.cs: Removed vars that are provided by base class
7714         * RadioButton.cs: Removed vars that are provided by base class, added
7715           new keyword where required
7716         * LinkLabel.cs: Added new keyword where required
7717         * Control.cs (WndProc): Removed unused variable
7718         * TextBoxBase.cs:
7719           - Finished SelectionLength property
7720           - Implemented SelectionStart property
7721           - Implemented Text property
7722           - Removed unused vars
7723         * MessageBox.cs: Added new keyword where required
7724         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
7725           WndProc signature
7726         * MenuAPI.cs: Added new keyword where required
7727         * ButtonBase.cs: Removed vars that are provided by base class, added
7728           new keyword where required
7729         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
7730           argument to double, to allow compiling with csc 2.0 (Atsushi ran
7731           into this)
7732         * Application.cs (Run): Now triggers the ThreadExit event
7733         * CommonDialog.cs: Added new keyword where required; now properly sets
7734           parent (owner) for dialog
7735         * XplatUIX11.cs: Commented out unused vars
7736         * StatusBar.cs: Fixed signature for Text property
7737         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
7738
7739 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
7740
7741         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
7742         TrackBar.cs, MonthCalendar.cs: remove unused vars
7743
7744 2005-01-03  Jackson Harper  <jackson@ximian.com>
7745
7746         * ThemeWin32Classic.cs:
7747         * X11Keyboard.cs: Remove unused vars.
7748
7749 2005-01-03  Peter Bartok  <pbartok@novell.com>
7750
7751         * TextBox.cs:
7752           - set_Text: Tied into TextControl
7753           - set_TextAlignment: Tied into TextControl
7754         * TextControl.cs:
7755           - Added alignment properties and implemented alignment handling
7756             and drawing (still has a bug, not generating proper expose events)
7757           - Added new Line() constructor to allow passing the line alignment
7758           - Fixed selection setting, properly handling end<start now
7759           - Added aligment considerations to RecalculateDocument()
7760         * TextBoxBase.cs:
7761           - Now properly enforces control height for single line controls
7762           - Added support for CharacterCasing
7763           - Added IsInputKey override
7764           - Fixed Keys.Enter logic
7765           - Added SetBoundsCore override
7766           - Fixed mouse selection handling
7767
7768 2005-01-03  Jackson Harper  <jackson@ximian.com>
7769
7770         * TreeView.cs:
7771           - Collapse and uncheck all nodes when CheckBoxes is disabled.
7772           - Checkboxes are always aligned to the bottom of the node,
7773           regardless of item height.
7774           - Use the node bounds to draw the text so we can center it when
7775           the item height is greater then the font height.
7776           - Node::Bounds are only the text part of the node.
7777         * TreeNode.cs: New method to combine collapsing and unchecking all
7778           nodes recursively.
7779
7780 2005-01-02  Jackson Harper  <jackson@ximian.com>
7781
7782         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
7783         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
7784         tree when a check is changed. TODO: Only refresh the checked node.
7785
7786 2004-12-30  Jackson Harper  <jackson@ximian.com>
7787
7788         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
7789         * TreeNode.cs: When collapsing make sure to never collapse the
7790         root node.
7791
7792 2004-12-29  Jackson Harper  <jackson@ximian.com>
7793
7794         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
7795         
7796 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
7797
7798         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
7799
7800 2004-12-28  Peter Bartok  <pbartok@novell.com>
7801
7802         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
7803           not yet assigned
7804
7805 2004-12-28  Peter Bartok  <pbartok@novell.com>
7806
7807         * Control.cs (WndProc): Added WM_HELP handler, now generates
7808           HelpRequested event
7809         * Form.cs: Added HelpButton property and required support code
7810         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
7811
7812 2004-12-28  Peter Bartok  <pbartok@novell.com>
7813
7814         * CommonDialog.cs:
7815           - Made DialogForm.owner variable internal
7816           - Added check to ensure owner form is set before setting
7817             owner properties in CreateParams
7818
7819 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
7820
7821         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
7822           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
7823           GetCursorPos.  Fix major visibility issues.  Rework the windowing
7824           system to support borderless/titleless windows (implements menus).
7825           Fix GetWindowPos.  Implement initial background color support for
7826           views.
7827
7828 2004-12-28  Peter Bartok  <pbartok@novell.com>
7829
7830         * Form.cs (get_CreateParams): Make sure we have an owner before using
7831           the owner variable. Implement proper default if no owner exists
7832
7833 2004-12-28  Peter Bartok  <pbartok@novell.com>
7834
7835         * In preparation for making Managed.Windows.Forms the default build target
7836           for System.Windows.Forms, the following stubbed files were added.
7837           Dialogs are currently being implemented by contributors and are only
7838           short-term place holders.
7839         * ColorDialog.cs: Initial check-in (minmal stub)
7840         * DataGrid.cs: Initial check-in (minimal stub)
7841         * DataGridLineStyle.cs: Initial check-in (minimal stub)
7842         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
7843         * DataGridTableStyle.cs: Initial check-in (minimal stub)
7844         * FontDialog.cs: Initial check-in (minimal stub)
7845         * FileDialog.cs: Initial check-in (minimal stub)
7846         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
7847         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
7848         * OpenFileDialog: Initial check-in (minimal stub)
7849         * IComponentEditorPageSite.cs: Initial check-in
7850         * Splitter.cs: Initial check-in (for Jackson)
7851         * SplitterEventArgs.cs: Initial check-in (for Jackson)
7852         * SplitterEventHandler.cs: Initial check-in (for Jackson)
7853         * TextBox.cs: Initial check-in; still needs some wiring to
7854           TextControl backend
7855         * Form.cs: Implemented ControlBox property
7856         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
7857         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
7858         * TextControl.cs: Added selection functionality; added todo header
7859         * TextBoxBase.cs:
7860           - Implemented Lines property
7861           - Implemented TextHeight property
7862           - Implemented SelectedText property
7863           - Implemented SelectionLength property
7864           - Implemented SelectAll method
7865           - Implemented ToString method
7866           - Removed and cleaned up some debug code
7867           - Implemented (still buggy) mouse text selection
7868
7869 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
7870
7871         * ComboBox.cs: Complete DropDownList implementation, fixes.
7872
7873 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
7874
7875         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
7876         * ComboBoxStyle.cs: ComboBoxStyle enum
7877         * ComboBox.cs: Initial work on ComboBox control
7878
7879 2004-12-21  Peter Bartok  <pbartok@novell.com>
7880
7881         * Control.cs (ctor, CreateParams): Moved setting of is_visible
7882           forward so that anything that creates a window gets the default,
7883           also no longer uses Visible property in CreateParams to avoid
7884           walking up the parent chain and possibly get the wrong visible
7885           status. Fixed IsVisible to no longer walk up to the parent.
7886
7887 2004-12-21  Peter Bartok  <pbartok@novell.com>
7888
7889         * Form.cs (ShowDialog): Unset modality for the proper window
7890  
7891 2004-12-20  Peter Bartok  <pbartok@novell.com>
7892
7893         * CommonDialog.cs: Initial check-in
7894
7895 2004-12-20  Peter Bartok  <pbartok@novell.com>
7896
7897         * Control.cs (Visible): Now uses the parent window instead of the
7898           client area window for the property
7899
7900         * Form.cs
7901           - ShowDialog(): Now uses the proper window for modality
7902           - The default visibility state for the form parent is now false. This
7903             will prevent the user from seeing all the changes to the form and
7904             its controls before the application hits Application.Run()
7905           - Removed some stale commented out code
7906
7907         * NativeWindow.cs:
7908           - Added FindWindow() method to have a method to check for existence
7909             of a window handle
7910           - Added ability to override default exception handling (for example
7911             when debugging with VS.Net; to do this the ExternalExceptionHandler
7912             define must be set
7913           - Removed some useless debug output
7914
7915         * XplatUIX11.cs:
7916           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
7917             not working as expected
7918           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
7919             property to allow switching back to the modal window if focus is
7920             given to another one of our windows (Application Modal)
7921           - Now only sets override_redirect if we create a window
7922             without WS_CAPTION
7923           - Moved EventMask selection before mapping of newly created window
7924             so we can catch the map event as well
7925           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
7926           - Added various Atom related DllImports
7927           - Implemented Exit() method
7928           - .ctor() : No longer shows window if WS_VISIBLE is not defined
7929             in the CreateParams
7930
7931         * MessageBox.cs: Now properly deals with the FormParent window by
7932           providing an override the FormParent CreateParams property to
7933           set as POPUP instead of OVERLAPPED window.
7934
7935 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
7936
7937         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
7938         Minor code cleanup.
7939
7940 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
7941         
7942         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
7943
7944 2004-12-18  Peter Bartok  <pbartok@novell.com>
7945
7946         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
7947           implementing SetModal() method
7948
7949 2004-12-18  Peter Bartok  <pbartok@novell.com>
7950
7951         * X11Structs.cs (XGCValues): Fixed type of function element
7952         * XplatUI.cs: Added ScrollWindow() method
7953         * XplatUIDriver.cs: Added ScrollWindow() abstract
7954         * XplatUIWin32.cs: Implemented ScrollWindow() method
7955         * XplatUIX11.cs: Implemented ScrollWindow() method
7956         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
7957
7958 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
7959
7960         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
7961         Some more keyboard support (INCOMPLETE)
7962
7963 2004-12-17  Peter Bartok  <pbartok@novell.com>
7964
7965         * TextControl.cs:
7966         - Added color attribute to line tags.
7967         - Added color argument to all functions dealing with tags
7968         - Added color argument support to various functions
7969         - Fixed miss-calculation of baseline/shift in certain circumstances
7970
7971         * TextBoxBase.cs: Added new color option to test code
7972
7973 2004-12-17  Jackson Harper  <jackson@ximian.com>
7974
7975         * TreeNode.cs:
7976         * MonthCalendar.cs: Signature fixes
7977
7978 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
7979
7980         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
7981         keyboard event moved it.  Create a new graphics context for each paint resolves this
7982
7983 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
7984
7985         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
7986         Make caret exist and go blink blink.  Initial keyboard support.
7987         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
7988         works.
7989
7990 2004-12-17  Jackson Harper  <jackson@ximian.com>
7991
7992         * XplatUIStructs.cs: Updated set of virtual keycodes.
7993         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
7994
7995 2004-12-17  Jackson Harper  <jackson@ximian.com>
7996
7997         * XplatUIX11.cs: Prune old keyboard code.
7998
7999 2004-12-17  Jackson Harper  <jackson@ximian.com>
8000
8001         * XplatUIX11.cs: When generating mouse wparams get the modifier
8002         keys from the ModifierKeys property.
8003
8004 2004-12-17  Jackson Harper  <jackson@ximian.com>
8005
8006         * X11Keyboard.cs: Send up/down input when generating
8007         messages. Remove some unused vars.
8008
8009 2004-12-17  Jackson Harper  <jackson@ximian.com>
8010
8011         * TabControl.cs:
8012         * TreeView.cs: get rid of warnings.
8013
8014 2004-12-17  Jackson Harper  <jackson@ximian.com>
8015
8016         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
8017
8018 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
8019
8020         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
8021           CheckedListBox.cs: Implementation
8022
8023 2004-12-17  Peter Bartok  <pbartok@novell.com>
8024
8025         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
8026
8027 2004-12-16  Peter Bartok  <pbartok@novell.com>
8028
8029         * TextControl.cs:
8030           - InsertCharAtCaret(): Fixed start pos fixup
8031           - CaretLine_get: No longer derives the line from the tag, the tag
8032             could be stale if lines in the document have been added or deleted
8033           - RebalanceAfterDelete(): Fixed bug in balancing code
8034           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
8035           - Line.Streamline(): Now can also elminate leading empty tags
8036           - DumpTree(): Added a few more tests and prevented exception on
8037             uninitialized data
8038           - Added Debug section for Combining lines
8039           - Delete(): Now copies all remaining properties of a line
8040           
8041         * TextBoxBase.cs:
8042           - Left mousebutton now sets the caret (and middle button still acts
8043             as formatting tester, which must go away soon)
8044           - Added Debug section for Deleting/Combining lines
8045           - Fixed calculations for UpdateView after Combining lines
8046
8047 2004-12-16  Peter Bartok  <pbartok@novell.com>
8048
8049         * TextControl.cs: Now properly aligns text on a baseline, using the
8050           new XplatUI.GetFontMetrics() method. Simplified several calculations
8051         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
8052           defined
8053
8054 2004-12-16  Peter Bartok  <pbartok@novell.com>
8055
8056         * XplatUI.cs: Added GetFontMetrics() method
8057         * XplatUIDriver.cs: Added GetFontMetrics() abstract
8058         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
8059           into libgdiplus, our private GetFontMetrics function
8060         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
8061         * XplatUIWin32.cs: Implemented GetFontMetrics() method
8062
8063 2004-12-16  Jackson Harper  <jackson@ximain.com>
8064
8065         * XplatUIStruct.cs: Add enum for dead keys
8066         * X11Keyboard.cs: Map and unmap dead keys.
8067
8068 2004-12-16  Jackson Harper  <jackson@ximian.com>
8069
8070         * X11Keyboard.cs: Detect and use the num lock mask.
8071
8072 2004-12-16  Peter Bartok  <pbartok@novell.com>
8073
8074         * Control.cs (CreateGraphics): Added check to make sure the
8075           handle of the window exists before calling Graphics.FromHwnd()
8076
8077 2004-12-16  Peter Bartok  <pbartok@novell.com>
8078
8079         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
8080           contains a lot of code that's not supposed to be there for the
8081           real thing, but required for developing/testing the textbox
8082           backend.
8083
8084 2004-12-16  Peter Bartok  <pbartok@novell.com>
8085
8086         * TextControl.cs:
8087         - Fixed Streamline method
8088         - Added FindTag method to Line
8089         - Added DumpTree method for debugging
8090         - Added DecrementLines() method for deleting lines
8091         - Fixed UpdateView to update the cursor to end-of-line on single-line
8092           updates
8093         - Added PositionCaret() method
8094         - Fixed MoveCaret(LineDown) to move into the last line, too
8095         - Added InsertChar overload
8096         - Fixed InsertChar tag offset calculations
8097         - Added DeleteChar() method
8098         - Added Combine() method for folding lines
8099         - Fixed Delete() method, no longer allocates wasted Line object and
8100           now copies all properties when swapping nodes
8101         - Delete() method now updates document line counter
8102
8103 2004-12-15  Jackson Harper  <jackson@ximian.com>
8104
8105         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
8106         * X11Keyboard.cs: Expose the currently selected modifier keys
8107         through a property.
8108
8109 2004-12-15  Peter Bartok  <pbartok@novell.com>
8110
8111         * TextControl.cs: Initial check-in. Still incomplete
8112
8113 2004-12-15  Jackson Harper  <jackson@ximian.com>
8114
8115         * TreeNode.cs:
8116         * TreeView.cs: Fix build on csc (second time today ;-))
8117
8118 2004-12-15  Jackson Harper  <jackson@ximian.com>
8119
8120         * TreeView.cs: Store the treenodes plus/minus box bounds when it
8121         is calculated and use this for click testing.
8122         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
8123
8124 2004-12-15  Jackson Harper  <jackson@ximian.com>
8125
8126         * TreeView.cs: Pass the nodes image index to the image list when
8127         drawing that image.
8128
8129 2004-12-15  Jackson Harper  <jackson@ximian.com>
8130
8131         * X11Keyboard.cs: Set messages hwnd.
8132         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
8133         post_message calls.
8134
8135 2004-12-15  Jackson Harper  <jackson@ximian.com>
8136
8137         * X11Keyboard.cs: Fix to compile with csc.
8138         
8139 2004-12-15  Jackson Harper  <jackson@ximian.com>
8140
8141         * X11Structs.cs: Add key mask values
8142         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
8143         * X11Keyboard.cs: New file - Extrapolates and interpolates key
8144         down/up foo into WM_CHAR foo
8145         * KeyboardLayouts.cs: Common keyboard layouts
8146         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
8147         post messages into the main queue.
8148
8149 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
8150
8151         * Button.cs: implement ProcessMnemonic
8152         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
8153           brushes everytime
8154         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
8155         * ButtonBase.cs: Show HotkeyPrefix (not the &)
8156
8157 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
8158         
8159         * MonthCalendar.cs: Implemented click-hold for next/previous month
8160           and date selection
8161           
8162 2004-12-11  Peter Bartok  <pbartok@novell.com>
8163
8164         * X11Structs.cs:
8165           - Added XKeyboardState (moved from XplatUIX11.cs)
8166           - Added XCreateGC related enums and structures
8167           - Added GXFunction for XSetFunction
8168
8169         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
8170
8171         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
8172           CaretVisible() calls
8173
8174         * ToolTip.cs: Added code to prevent stealing focus from app windows
8175
8176         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
8177           DestroyCaret, SetCaretPos and CaretVisible)
8178
8179         * XplatUIX11.cs:
8180           - Added implementation for caret functions
8181           - Moved hover variables into a struct, to make it a bit easier
8182             on the eyes and to debug
8183           - Removed XKeyboardState (moved to XplatUIX11.cs)
8184           - Moved Keyboard properties into the properties region
8185
8186         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
8187           call to get a graphics context for our control
8188
8189         * XplatUIOSX.cs: Added empty overrides for the new caret functions
8190
8191         * TreeView.cs: Fixed bug. No matter what color was set it would always
8192           return SystemColors.Window
8193
8194         * XplatUIWin32.cs: Implemented caret overrides
8195
8196 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
8197
8198         * ListBox.cs: fire events, implement missing methods and properties,
8199         sorting.
8200
8201 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
8202
8203         * MonthCalendar.cs: invalidation bug fixing
8204         * ThemeWin32Classic.cs: paint fixing
8205
8206 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
8207
8208         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
8209         prepare the CGContextRef there now.
8210
8211 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
8212
8213         * MonthCalendar.cs:
8214           - optimisationL only invalidate areas that have changed
8215         * ThemeWin32Classic.cs:
8216           - only paint parts that intersect with clip_area
8217
8218 2004-12-09  Peter Bartok  <pbartok@novell.com>
8219
8220         * Application.cs: Undid changes from r37004 which cause problems
8221         on X11
8222
8223 2004-12-09  Ravindra  <rkumar@novell.com>
8224
8225         * ToolBar.cs: Added support for displaying ContextMenu
8226         attached to a button on ToolBar.
8227         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
8228         property.
8229
8230 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
8231
8232         * Label.cs: autosize works in text change and removes unnecessary
8233         invalidate
8234
8235 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
8236
8237         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8238         remove warnings
8239
8240 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
8241
8242         * XplatUIOSX.cs: Added mouse move/click/grab support
8243         Remove some debugging WriteLines not needed anymore.
8244         Add window resizing/positioning.
8245         Fix visibility on reparenting.
8246
8247 2004-12-08  Peter Bartok  <pbartok@novell.com>
8248
8249         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
8250
8251 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
8252
8253         * XplatUIOSX.cs: Initial checkin
8254         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
8255
8256 2004-12-03  Ravindra <rkumar@novell.com>
8257
8258         * ListView.cs: Added some keybindings and fixed scrolling.
8259         ScrollBars listen to ValueChanged event instead of Scroll
8260         Event. This would let us take care of all changes being
8261         done in the scrollbars' values programmatically or manually.
8262         * ListView.cs (CanMultiselect): Added a check for shift key.
8263         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
8264         * ListViewItem.cs (Clone): Fixed. We need to make a copy
8265         of ListViewSubItemCollection as well.
8266
8267 2004-12-06  Peter Bartok <pbartok@novell.com>
8268
8269         * Control.cs (Parent): Added check and exception to prevent
8270         circular parenting
8271
8272 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
8273
8274         * ListBox.cs: implemented clipping, selection single and multiple,
8275         bug fixing
8276
8277 2004-12-03  Ravindra <rkumar@novell.com>
8278
8279         * ListView.cs (ListView_KeyDown):
8280         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
8281         when CTRL key is pressed.
8282         * ListViewItem.cs (Selected): Fixed setting the property.
8283
8284 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
8285
8286         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
8287
8288         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
8289         MinimizeBox, ShowInTaskbar, TopMost properties.
8290
8291         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
8292         will be implemented).
8293
8294 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
8295
8296         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
8297
8298         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
8299         tests.
8300         
8301         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
8302         
8303         * TreeView.cs: BackColor is Colors.Window.
8304
8305 2004-12-01  Jackson Harper  <jackson@ximian.com>
8306
8307         * TreeView.cs: When resizing the tree if the user is making it
8308         smaller we don't get expose events, so we need to handle adding
8309         the horizontal scrollbar in the size changed handler as well as
8310         the expose handler.
8311
8312 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
8313
8314         * DrawItemState.cs: fixes wrong enum values
8315
8316 2004-12-01  Jackson Harper  <jackson@ximian.com>
8317
8318         * TreeView.cs: Resize the hbar as well as the vbar on resize.
8319
8320 2004-12-01  Jackson Harper  <jackson@ximian.com>
8321
8322         * NodeLabelEditEventArgs.cs:
8323         * NodeLabelEditEventHandler.cs:
8324         * OpenTreeNodeEnumerator.cs:
8325         * TreeNode.cs:
8326         * TreeNodeCollection.cs:
8327         * TreeView.cs:
8328         * TreeViewAction.cs:
8329         * TreeViewCancelEventArgs.cs:
8330         * TreeViewCancelEventHandler.cs:
8331         * TreeViewEventArgs.cs:
8332         * TreeViewEventHandler.cs: Initial implementation.
8333
8334 2004-12-01  Ravindra <rkumar@novell.com>
8335
8336         * ListView.cs (CalculateListView): Fixed scrolling related
8337         calculations. Also, removed some debug statements from other
8338         places.
8339         * ListViewItem.cs: Changed access to 'selected' instance variable
8340         from private to internal.
8341         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
8342
8343 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
8344
8345         * ThemeWin32Classic.cs: remove cache of brush and pens for
8346         specific controls and use the global system, fixes scrollbutton
8347         bugs (for small sizes, disabled, etc)
8348         
8349         * ScrollBar.cs: does not show the thumb for very small controls
8350         (as MS) and allow smaller buttons that the regular size
8351
8352 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
8353
8354         * UpDownBase.cs: Add abstract methods for the interface.
8355         Add new virtual methods (need to be hooked up to TextEntry when it
8356         exists).
8357         Add override methods for most features.
8358         Computes the size, forces the height of the text entry.
8359
8360         * NumericUpDown.cs: Put here the current testing code.
8361
8362         * Set eol-style property on all files that do not have mixed line
8363         endings, to minimize the future problems.  There are still a few
8364         files with mixed endings, and someone should choose whether they
8365         want to move it or not.
8366
8367 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
8368
8369         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
8370         System.Colors
8371         
8372 2004-11-30  Ravindra <rkumar@novell.com>
8373
8374         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
8375         drawing and replaced use of SystemColors by theme colors.
8376         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
8377         * ListView.cs (ListViewItemCollection.Add): Throw exception when
8378         same ListViewItem is being added more than once.
8379
8380 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
8381
8382         * MonthCalendar.cs:
8383           - ControlStyles love to make the control not flicker
8384           
8385 2004-11-30  Peter Bartok  <pbartok@novell.com>
8386
8387         * CharacterCasing.cs: Added
8388
8389 2004-11-29  Peter Bartok  <pbartok@novell.com>
8390
8391         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
8392           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
8393           I am removing these files as they conflict with already completed
8394           work. While it is fantastic to get contributions to MWF, I
8395           respectfully ask that everyone please coordinate their contributions
8396           through mono-winforms-list or #mono-winforms at this time. We're
8397           explicitly avoiding stubbing and don't want controls that don't have
8398           their basic functionality implemented in svn. Please also see
8399           http://www.mono-project.com/contributing/winforms.html
8400
8401
8402 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
8403
8404         * Application.cs (ModalRun): Don't hang after exit.
8405
8406         * Theme.cs: New TreeViewDefaultSize property.
8407
8408         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
8409         with less hardcoded SystemColors constant.
8410         Implemented TreeViewDefaultSize.
8411
8412         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
8413         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
8414
8415
8416 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
8417
8418         * MonthCalendar.cs:
8419           - Fix NextMonthDate and PrevMonthDate click moving calendar
8420
8421 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
8422
8423         * MonthCalendar.cs:
8424           - Fix usage of ScrollChange Property when scrolling months
8425
8426 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
8427
8428         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
8429          - Fixes menu destroying
8430          - Support adding and removing items on already created menus
8431
8432 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
8433
8434         * MonthCalendar.cs:
8435           - Re-worked all bolded dates handling to match win32
8436         * ThemeWin32Classic.cs:
8437           - Fixed rendering with bolded dates
8438
8439 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
8440
8441         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
8442         - Horizontal scroolbar
8443         - Multicolumn
8444         - Fixes
8445
8446
8447 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
8448
8449         * MonthCalendar.cs:
8450           - Fix Usage of MaxSelectionCount from SelectionRange
8451           - Fixed Shift + Cursor Selection
8452           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
8453           - Fixed normal cursor selection to be compat with win32
8454           - Fixed Shift + Mouse Click selection
8455
8456 2004-11-24  Peter Bartok <pbartok@novell.com>
8457
8458         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
8459         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
8460         * XplatUIX11.cs:
8461           - CreatedKeyBoardMsg now updates keystate with Alt key
8462           - Added workaround for timer crash to CheckTimers, Jackson will
8463             develop a proper fix and check in later
8464           - Implemented DispatchMessage
8465           - Removed calling the native window proc from GetMessage (call
8466             now moved to DispatchMessage)
8467
8468         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
8469           the keydata (Fixes bug #69831)
8470
8471         * XplatUIWin32.cs:
8472           - (DispatchMessage): Switched to return IntPtr
8473           - Added DllImport for SetFocus
8474
8475 2004-11-24  Ravindra <rkumar@novell.com>
8476
8477         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
8478         background drawing.
8479         * ListViewItem.cs: Fixed various properties, calculations
8480         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
8481         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
8482         and some internal properties. Fixed MouseDown handler and Paint
8483         method.
8484
8485 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
8486
8487         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
8488
8489 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
8490
8491         * ContainerControl.cs: correct accidental check in of local changes
8492
8493 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
8494
8495         * ThemeWin32Classic.cs:
8496                 - Fixed Drawing Last month in grid (sometimes not showing)
8497         * MonthCalendar.cs:
8498                 - Fixed title width calculation bug (makeing title small)
8499
8500 2004-11-23  Peter Bartok <pbartok@novell.com>
8501
8502         * XplatUIX11.cs:
8503           - Added generation of WM_MOUSEHOVER event
8504           - Added missing assignment of async_method atom
8505           - Fixed WM_ERASEBKGND; now only redraws the exposed area
8506
8507 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
8508
8509         * ThemeWin32Classic.cs:
8510                 - Fixed Drawing of today circle when showtodaycircle not set
8511                 - fixed drawing of first and last month in the grid (gay dates)
8512         * MonthCalendar.cs:
8513                 - Fixed Drawing of today circle
8514                 - Fixed drawing of grady dates
8515                 - Fixed HitTest for today link when ShowToday set to false
8516                 - Fixed DefaultSize to obey ShowToday
8517
8518 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
8519
8520         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
8521         * System.Windows.Forms/Theme.cs
8522         * MonthCalendar.cs: added for MonthCalendar
8523         * SelectionRange.cs: added for MonthCalendar
8524         * Day.cs: added for MonthCalendar: added for MonthCalendar
8525         * DateRangeEventArgs.cs: added for MonthCalendar
8526         * DateRangeEventHandler.cs: added for MonthCalendar
8527
8528 2004-11-22  Ravindra <rkumar@novell.com>
8529
8530         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
8531         property.
8532
8533 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
8534
8535         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
8536         event handler.
8537         
8538         * NumericUpDown.cs: Added new implementation.
8539         * UpDownBase.cs: Added new implementation.
8540
8541         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
8542         implementations.
8543         
8544         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
8545         implementations.
8546
8547         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
8548         methods.
8549
8550 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
8551
8552         * Timer.cs  (Dispose): Should call the base dispose when
8553         overriding.
8554
8555 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
8556
8557         * ScrollBar.cs: updates thumb position when max, min or increment
8558         is changed
8559
8560 2004-11-21  Ravindra <rkumar@novell.com>
8561
8562         * ListView.cs: Implemented item selection, activation and
8563         column header style. Fixed properties to do a redraw, if
8564         required. Added support for MouseHover, DoubleClick, KeyDown
8565         and KeyUp event handling and some minor fixes.
8566         * ListViewItem.cs: Fixed constructor.
8567         * ThemeWin32Classic.cs: Improved drawing for ListView.
8568
8569 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
8570
8571         * ThemeWin32Classic.cs: initial listbox drawing code
8572         * DrawMode.cs: new enumerator
8573         * ListControl.cs: stubbed class
8574         * ListBox.cs: initial implementation
8575         * Theme.cs: new methods definitions
8576         * SelectionMode.cs: new enumerator
8577
8578 2004-11-17  Peter Bartok  <pbartok@novell.com>
8579
8580         * XplatUIWin32.cs: Added double-click events to the class style
8581         * Control.cs (WndProc):
8582           - Added handling of click-count to MouseDown/ MouseUp events.
8583           - Added handling of middle and right mouse buttons
8584           - Removed old debug code
8585
8586 2004-11-17  Jackson Harper  <jackson@ximian.com>
8587
8588         * XplatUIX11.cs: Use the new Mono.Unix namespace.
8589
8590 2004-11-17  Ravindra <rkumar@novell.com>
8591
8592         * ListView.cs: Added event handling for MouseMove/Up/Down.
8593         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
8594         * ThemeWin32Classic.cs: We need to clear the graphics context and
8595         draw column header in a proper state.
8596
8597
8598 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
8599
8600         *  Menu.cs: fixes signature
8601
8602 2004-11-16  Peter Bartok  <pbartok@novell.com>
8603
8604         * XplatUIX11.cs (GetMessage): Implemented generation of
8605           double click mouse messages
8606
8607 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
8608
8609         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
8610         not by menu
8611
8612 2004-11-11  Peter Bartok  <pbartok@novell.com>
8613
8614         * HandleData.cs: Added Visible property
8615         * XplatUIX11.cs (IsVisible): Now uses Visible property from
8616           HandleData
8617         * XplatUIX11.cs: Removed old debug leftovers
8618         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
8619         * Control.cs (WndProc): Removed old debug leftovers,
8620           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
8621           needed WM_SIZE handling
8622
8623 2004-11-11  Jackson Harper  <jackson@ximian.com>
8624
8625         * OwnerDrawPropertyBag.cs:
8626         * TreeViewImageIndexConverter.cs: Initial implementation
8627
8628 2004-11-10  Jackson Harper  <jackson@ximian.com>
8629
8630         * ThemeWin32Classic.cs:
8631         * TabControl.cs: instead of moving tabs by the slider pos just
8632         start drawing at the tab that is offset by the slider. This way
8633         scrolling always moves by exactly one tab.
8634
8635 2004-11-10  Jackson Harper  <jackson@ximian.com>
8636
8637         * TabControl.cs: You can only scroll left when the slider has
8638         already ben moved right.
8639         
8640 2004-11-10  Jackson Harper  <jackson@ximian.com>
8641
8642         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
8643         the clip area.
8644         
8645 2004-11-10  Jackson Harper  <jackson@ximian.com>
8646
8647         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
8648         clip area.
8649         
8650 2004-11-09  Jackson Harper  <jackson@ximian.com>
8651
8652         * TabControl.cs (CalcXPos): New helper method so we can determine
8653         the proper place to start drawing vertical tabs.
8654         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
8655         
8656 2004-11-09  Jackson Harper  <jackson@ximian.com>
8657
8658         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
8659         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
8660         and Bottom, left and right are illegal values for this and
8661         multiline is enabled when the alignment is set to left or right.
8662         (DrawTab): Each alignment block should draw the text itself now
8663         because Left requires special love. Also add rendering for Left
8664         aligned tabs.
8665         
8666 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
8667
8668         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
8669         does not destroy the windows, removes debugging messages
8670
8671 2004-11-09  jba  <jba-mono@optusnet.com.au>
8672
8673         * ThemeWin32Classic.cs
8674         (DrawButtonBase): Fix verticle text rect clipping in windows
8675         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
8676         rendering and incorrect text rect clipping
8677         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
8678         rendering and incorrect text rect clipping
8679         
8680 2004-11-08  Jackson Harper  <jackson@ximian.com>
8681
8682         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
8683         bottom when they are bottom aligned so the bottoms of the tabs get
8684         displayed.
8685         * TabControl.cs (DropRow): Move rows up instead of down when the
8686         tab control is bottom aligned.
8687
8688 2004-11-08 13:59  pbartok
8689
8690         * XplatUIX11.cs:
8691           - Added handling for various window styles
8692           - Added handling for popup windows
8693           - Added SetTopmost handling
8694
8695 2004-11-08 13:55  pbartok
8696
8697         * XplatUIWin32.cs:
8698           - Added argument to SetTopmost method
8699           - Fixed broken ClientToScreen function
8700
8701 2004-11-08 13:53  pbartok
8702
8703         * XplatUIStructs.cs:
8704           - Added missing WS_EX styles
8705
8706 2004-11-08 13:53  pbartok
8707
8708         * XplatUI.cs, XplatUIDriver.cs:
8709           - Added argument to SetTopmost
8710
8711 2004-11-08 13:52  pbartok
8712
8713         * X11Structs.cs:
8714           - Added XSetWindowAttributes structure
8715           - Improved XWindowAttributes structure
8716           - Added SetWindowValuemask enum
8717           - Added window creation arguments enum
8718           - Added gravity enum
8719           - Added Motif hints structure
8720           - Added various Motif flags and enums
8721           - Added PropertyMode enum for property functions
8722
8723 2004-11-08 13:50  pbartok
8724
8725         * Form.cs:
8726           - Fixed arguments for updated SetTopmost method
8727
8728 2004-11-08 13:49  pbartok
8729
8730         * ToolTip.cs:
8731           - Fixed arguments for updated SetTopmost function
8732           - Fixed usage of PointToClient
8733
8734 2004-11-08 13:44  pbartok
8735
8736         * MenuAPI.cs:
8737           - Added Clipping of children and siblings
8738
8739 2004-11-08 13:41  pbartok
8740
8741         * MainMenu.cs:
8742           - Removed SetMenuBarWindow call. We do this in Form.cs
8743
8744 2004-11-08 13:40  jackson
8745
8746         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
8747           scrolling jimmi in the correct location with bottom aligned tabs
8748
8749 2004-11-08 13:36  pbartok
8750
8751         * ContainerControl.cs:
8752           - Implemented BindingContext
8753           - Implemented ParentForm
8754
8755 2004-11-08 12:46  jackson
8756
8757         * TabControl.cs: Put bottom rendered tabs in the right location
8758
8759 2004-11-08 07:15  jordi
8760
8761         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
8762           removes dead code
8763
8764 2004-11-05 17:30  jackson
8765
8766         * TabControl.cs: When selected tabs are expanded make sure they
8767           don't go beyond the edges of the tab control
8768
8769 2004-11-05 14:57  jackson
8770
8771         * TabControl.cs: Reset show_slider so if the control is resized to
8772           a size where it is no longer needed it's not displayed anymore
8773
8774 2004-11-05 13:16  jackson
8775
8776         * TabControl.cs: Make tab pages non visible when added to the
8777           control
8778
8779 2004-11-05 12:42  jackson
8780
8781         * TabControl.cs: Implement SizeMode.FillToRight
8782
8783 2004-11-05 12:16  jackson
8784
8785         * Control.cs: Do not call CreateHandle if the handle is already
8786           created
8787
8788 2004-11-05 11:46  jackson
8789
8790         * TabControl.cs: Remove superflous call to CalcTabRows
8791
8792 2004-11-05 09:07  jackson
8793
8794         * XplatUIX11.cs: Update for Mono.Posix changes
8795
8796 2004-11-05 07:00  ravindra
8797
8798         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
8799           scrolling.
8800
8801 2004-11-04 22:47  jba
8802
8803         * ThemeWin32Classic.cs:
8804           - Fix Button rendering for FlatStyle = Flat or Popup
8805           - Fix RadioButton and CheckBox rendering when Appearance = Button
8806             (normal and flatstyle).
8807           - Correct outer rectangle color when drawing focus rectangle
8808           - Adjust button bounds to be 1 px smaller when focused
8809           - Make button not draw sunken 3d border when pushed (windows compat)
8810           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
8811           - Offset the text in RadioButton and Checkbox when being rendered as
8812           a button.
8813           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
8814           radiobuttons
8815           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
8816           - Fixed disabled text rendering for normally rendered radiobuttons
8817
8818 2004-11-04 10:26  jackson
8819
8820         * TabControl.cs: Recalculate tab rows when resizing
8821
8822 2004-11-04 07:47  jordi
8823
8824         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
8825           collection completion, drawing issues, missing features
8826
8827 2004-11-04 05:03  ravindra
8828
8829         * ScrollBar.cs:
8830                 - We need to recalculate the Thumb area when
8831                 LargeChange/maximum/minimum values are changed.
8832           - We set the 'pos' in UpdatePos() method to minimum, if it's less
8833                 than minimum. This is required to handle the case if large_change is
8834                 more than max, and use LargeChange property instead of large_change
8835                 variable.
8836           - We return max+1 when large_change is more than max, like MS does.
8837
8838 2004-11-04 04:29  ravindra
8839
8840         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
8841                 - Changed default value signatures (prefixed all with ListView).
8842                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
8843                 ListView.
8844           - Fixed calculations for ListViewItem and implemented Clone()
8845           method.
8846
8847 2004-11-04 04:26  ravindra
8848
8849         * Theme.cs, ThemeWin32Classic.cs:
8850                 - Changed default ListView values signatures (prefixed all with
8851                 ListView).
8852           - Fixed default size values for VScrollBar and HScrollBar.
8853                 - Fixed DrawListViewItem method.
8854
8855 2004-11-04 04:05  ravindra
8856
8857         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
8858
8859 2004-11-04 04:04  ravindra
8860
8861         * ImageList.cs: Implemented the missing overload for Draw method.
8862
8863 2004-11-03 19:29  jackson
8864
8865         * TabControl.cs: Handle dropping rows on selection properly
8866
8867 2004-11-03 11:59  jackson
8868
8869         * TabControl.cs: remove debug code
8870
8871 2004-11-03 11:52  jackson
8872
8873         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
8874           the scrolly widgerywoo
8875
8876 2004-11-02 13:52  jackson
8877
8878         * TabControl.cs: Resize the tab pages and tabs when the tab control
8879           is resized
8880
8881 2004-11-02 13:40  jackson
8882
8883         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
8884           selected tab to the bottom
8885
8886 2004-11-02 13:39  jackson
8887
8888         * TabPage.cs: Store the tab pages row
8889
8890 2004-11-02 12:33  jordi
8891
8892         * MenuItem.cs: fixes handle creation
8893
8894 2004-11-02 11:42  jackson
8895
8896         * TabControl.cs: signature fix
8897
8898 2004-11-02 08:56  jackson
8899
8900         * TabControl.cs: Calculate whether the tab is on an edge properly.
8901           Remove top secret debugging code
8902
8903 2004-11-01 19:57  jackson
8904
8905         * TabControl.cs: Add click handling, and proper sizing
8906
8907 2004-11-01 19:47  jackson
8908
8909         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
8910           tab controls
8911
8912 2004-11-01 19:39  jackson
8913
8914         * TabPage.cs: add internal property to store the bounds of a tab
8915           page
8916
8917 2004-10-30 04:23  ravindra
8918
8919         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
8920           values.
8921
8922 2004-10-30 04:21  ravindra
8923
8924         * ListView.cs, ListViewItem.cs: Added support for scrolling and
8925           fixed calculations.
8926
8927 2004-10-30 03:06  pbartok
8928
8929         * XplatUIX11.cs:
8930           - Removed extension of DllImported libs
8931
8932 2004-10-29 09:55  jordi
8933
8934         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
8935           navigation, itemcollection completion, menu fixes
8936
8937 2004-10-27 22:58  pbartok
8938
8939         * XplatUIX11.cs:
8940           - Now throws a nice error message when no X display could be opened
8941
8942 2004-10-26 13:51  jordi
8943
8944         * ListView.cs: removes warning
8945
8946 2004-10-26 03:55  ravindra
8947
8948         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
8949           ThemeWin32Classic.cs: Some formatting for my last checkins.
8950
8951 2004-10-26 03:36  ravindra
8952
8953         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
8954           control and default values.
8955
8956 2004-10-26 03:35  ravindra
8957
8958         * Theme.cs: Added some default values for ListView control.
8959
8960 2004-10-26 03:33  ravindra
8961
8962         * ToolBar.cs: ToolBar should use the user specified button size, if
8963           there is any. Added a size_specified flag for the same.
8964
8965 2004-10-26 03:33  ravindra
8966
8967         * ColumnHeader.cs: Added some internal members and calculations for
8968           ColumnHeader.
8969
8970 2004-10-26 03:32  ravindra
8971
8972         * ListViewItem.cs: Calculations for ListViewItem.
8973
8974 2004-10-26 03:31  ravindra
8975
8976         * ListView.cs: Added some internal members and calculations for
8977           ListView.
8978
8979 2004-10-22 13:31  jordi
8980
8981         * MenuAPI.cs: speedup menus drawing
8982
8983 2004-10-22 13:16  jackson
8984
8985         * XplatUIX11.cs: Make sure to update exposed regions when adding an
8986           expose event
8987
8988 2004-10-22 11:49  jackson
8989
8990         * Control.cs: oops
8991
8992 2004-10-22 11:41  jackson
8993
8994         * Control.cs: Check to see if the window should have its background
8995           repainted by X when drawing.
8996
8997 2004-10-22 11:31  jackson
8998
8999         * XplatUIX11.cs: When invalidating areas only use XClearArea if
9000           clear is true, this way we do not get flicker from X repainting the
9001           background
9002
9003 2004-10-22 11:28  jackson
9004
9005         * XEventQueue.cs: Queue properly
9006
9007 2004-10-21 09:38  jackson
9008
9009         * XEventQueue.cs: Fix access modifier
9010
9011 2004-10-21 09:36  jackson
9012
9013         * XEventQueue.cs: Don't loose messages
9014
9015 2004-10-21 09:22  jackson
9016
9017         * XEventQueue.cs: Don't loose messages
9018
9019 2004-10-20 04:15  jordi
9020
9021         * BootMode.cs: enum need it by SystemInfo
9022
9023 2004-10-19 21:58  pbartok
9024
9025         * XplatUIWin32.cs:
9026           - Small sanity check
9027
9028 2004-10-19 21:56  pbartok
9029
9030         * Form.cs:
9031           - Added private FormParentWindow class which acts as the container
9032             for our form and as the non-client area where menus are drawn
9033           - Added/Moved required tie-ins to Jordi's menus
9034           - Fixed/Implemented the FormStartPosition functionality
9035
9036 2004-10-19 21:52  pbartok
9037
9038         * Control.cs:
9039           - Removed unneeded locals
9040           - Added code to all size and location properties to understand and
9041             deal with the parent container of Form
9042
9043 2004-10-19 21:33  pbartok
9044
9045         * Application.cs:
9046           - Fixed to deal with new Form subclasses for menus
9047
9048 2004-10-19 17:48  jackson
9049
9050         * XEventQueue.cs: commit correct version of file
9051
9052 2004-10-19 16:50  jackson
9053
9054         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
9055
9056 2004-10-19 16:15  jordi
9057
9058         * MenuAPI.cs: MenuBarCalcSize returns the height
9059
9060 2004-10-19 08:31  pbartok
9061
9062         * Control.cs:
9063           - Added missing call to PreProcessMessage before calling OnXXXKey
9064           methods
9065
9066 2004-10-19 00:04  ravindra
9067
9068         * ToolTip.cs: Fixed constructor.
9069
9070 2004-10-18 09:31  jordi
9071
9072         * MenuAPI.cs: menuitems in menubars do not have shortcuts
9073
9074 2004-10-18 09:26  jordi
9075
9076         * MenuItem.cs: fixes MenuItem class signature
9077
9078 2004-10-18 08:56  jordi
9079
9080         * MenuAPI.cs: prevents windows from showing in the taskbar
9081
9082 2004-10-18 00:28  ravindra
9083
9084         * ToolTip.cs: Suppressed a warning message.
9085
9086 2004-10-18 00:27  ravindra
9087
9088         * Control.cs: Default value of visible property must be true.
9089
9090 2004-10-17 23:19  pbartok
9091
9092         * ToolTip.cs:
9093           - Complete implementation
9094
9095 2004-10-17 23:19  pbartok
9096
9097         * XplatUIX11.cs:
9098           - Added EnableWindow method
9099           - Added SetModal stub
9100           - Added generation of WM_ACTIVATE message (still needs testing)
9101           - Added SetTopMost stub
9102           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
9103
9104 2004-10-17 23:17  pbartok
9105
9106         * XplatUIWin32.cs:
9107           - Removed VirtualKeys to XplatUIStructs
9108           - Implemented SetTopMost method
9109           - Implemented EnableWindow method
9110           - Bugfix in ScreenToClient()
9111           - Bugfixes in ClientToScreen()
9112
9113 2004-10-17 22:51  pbartok
9114
9115         * XplatUIStructs.cs:
9116           - Added WS_EX styles to WindowStyles enumeration
9117
9118 2004-10-17 22:50  pbartok
9119
9120         * XplatUI.cs, XplatUIDriver.cs:
9121           - Added method for enabling/disabling windows
9122           - Added method for setting window modality
9123           - Added method for setting topmost window
9124
9125 2004-10-17 22:49  pbartok
9126
9127         * ThemeWin32Classic.cs:
9128           - Added ToolTip drawing code
9129
9130 2004-10-17 22:49  pbartok
9131
9132         * Theme.cs:
9133           - Added ToolTip abstracts
9134
9135 2004-10-17 22:47  pbartok
9136
9137         * Form.cs:
9138           - Fixed Form.ControlCollection to handle owner relations
9139           - Added Owner/OwnedForms handling
9140           - Implemented Z-Ordering for owned forms
9141           - Removed unneeded private overload of ShowDialog
9142           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
9143             so I hope)
9144           - Fixed Close(), had wrong default
9145           - Added firing of OnLoad event
9146           - Added some commented out debug code for Ownership handling
9147
9148 2004-10-17 22:16  pbartok
9149
9150         * Control.cs:
9151           - Fixed/implemented flat list of controls
9152
9153 2004-10-17 22:14  pbartok
9154
9155         * Application.cs:
9156           - Added code to simulate modal dialogs on Win32
9157
9158 2004-10-17 16:11  jordi
9159
9160         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
9161           mouse event
9162
9163 2004-10-17 13:39  jordi
9164
9165         * MenuAPI.cs: menu drawing fixes
9166
9167 2004-10-15 09:10  ravindra
9168
9169         * StructFormat.cs: General Enum.
9170
9171 2004-10-15 09:09  ravindra
9172
9173         * SizeGripStyle.cs: Enum for Form.
9174
9175 2004-10-15 09:08  ravindra
9176
9177         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
9178           in Theme for ListView.
9179
9180 2004-10-15 09:06  ravindra
9181
9182         * ColumnHeader.cs: Flushing some formatting changes.
9183
9184 2004-10-15 09:05  ravindra
9185
9186         * ListViewItem.cs: Implemented GetBounds method and fixed coding
9187           style.
9188
9189 2004-10-15 09:03  ravindra
9190
9191         * ListView.cs: Implemented Paint method and fixed coding style.
9192
9193 2004-10-15 07:34  jordi
9194
9195         * MenuAPI.cs: fix for X11
9196
9197 2004-10-15 07:32  ravindra
9198
9199         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
9200                 - Renamed Paint() method to Draw() for clarity. Also, moved
9201                 DrawImage() to OnPaint().
9202
9203 2004-10-15 07:25  ravindra
9204
9205         * CheckBox.cs, RadioButton.cs:
9206                 - Removed Redraw (), we get it from ButtonBase.
9207                 - Implemented Paint (), to do class specific painting.
9208
9209 2004-10-15 07:16  ravindra
9210
9211         * ButtonBase.cs:
9212                 - Redraw () is not virtual now.
9213                 - Added an internal virtual method Paint (), so that
9214                 derived classes can do their painting on their own.
9215                 - Modified OnPaint () to call Paint ().
9216
9217 2004-10-15 06:43  jordi
9218
9219         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
9220           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
9221
9222 2004-10-15 00:30  ravindra
9223
9224         * MessageBox.cs:
9225                 - MessageBox on windows does not have min/max buttons.
9226                 This change in CreateParams fixes this on Windows. We
9227                 still need to implement this windowstyle behavior in
9228                 our X11 driver.
9229
9230 2004-10-14 05:14  ravindra
9231
9232         * ToolBar.cs:
9233                 - Changed Redraw () to do a Refresh () always.
9234                 - Fixed the MouseMove event handling when mouse is pressed,
9235                 ie drag event handling.
9236                 - Replaced the usage of ToolBarButton.Pressed property to
9237                 ToolBarButton.pressed internal variable.
9238
9239 2004-10-14 05:10  ravindra
9240
9241         * ToolBarButton.cs:
9242                 - Added an internal member 'inside' to handle mouse move
9243                 with mouse pressed ie mouse drag event.
9244                 - Changed 'Pressed' property to return true only when
9245                 'inside' and 'pressed' are both true.
9246                 - Some coding style love.
9247
9248 2004-10-14 00:17  ravindra
9249
9250         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
9251           public method.
9252
9253 2004-10-14 00:15  ravindra
9254
9255         * ButtonBase.cs: Redraw () related improvements.
9256
9257 2004-10-14 00:14  ravindra
9258
9259         * MessageBox.cs: Moved InitFormSize () out of Paint method and
9260           removed unnecessary calls to Button.Show () method.
9261
9262 2004-10-13 17:50  pbartok
9263
9264         * XplatUIX11.cs:
9265           - Formatting fix
9266           - Removed destroying of window until we solve the problem of X
9267             destroying the window before us on shutdown
9268
9269 2004-10-13 16:32  pbartok
9270
9271         * ButtonBase.cs:
9272           - Now Redraws on MouseUp for FlatStyle Flat and Popup
9273
9274 2004-10-13 14:18  pbartok
9275
9276         * XplatUIX11.cs:
9277           - Added code to destroy the X window
9278
9279 2004-10-13 14:18  pbartok
9280
9281         * XplatUIWin32.cs:
9282           - Added code to destroy a window
9283
9284 2004-10-13 14:12  pbartok
9285
9286         * ButtonBase.cs:
9287           - Added the Redraw on Resize that got dropped in the last rev
9288
9289 2004-10-13 09:06  pbartok
9290
9291         * ThemeWin32Classic.cs:
9292           - Path from John BouAntoun:
9293             * Fix check rendering (centre correctly for normal style, offset
9294               correctly for FlatStyle).
9295             * Fix border color usage (use backcolor) for FlatStyle.Popup
9296             * Use checkbox.Capture instead of checkbox.is_pressed when
9297               rendering flatstyle states.
9298
9299 2004-10-12 21:48  pbartok
9300
9301         * ThemeWin32Classic.cs:
9302           - Removed all occurences of SystemColors and replaced them with the
9303             matching theme color
9304
9305 2004-10-12 21:41  pbartok
9306
9307         * ThemeWin32Classic.cs:
9308           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
9309             him using the function for flatstyle drawing
9310           - Changed functions to use the new version of CPDrawBorder3D
9311
9312 2004-10-12 21:15  pbartok
9313
9314         * ControlPaint.cs:
9315           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
9316             match MS documentation. They need to return defined colors if the
9317             passed color matches the configured control color. Thanks to John
9318             BouAntoun for pointing this out.
9319
9320 2004-10-12 20:57  pbartok
9321
9322         * Control.cs:
9323           - Fix from John BouAntoun: Raise ForeColorChanged event when text
9324             color is changed
9325
9326 2004-10-12 20:46  pbartok
9327
9328         * CheckBox.cs:
9329           - Fix from John BouAntoun: Now properly sets the Appearance property
9330
9331 2004-10-12 20:45  pbartok
9332
9333         * ThemeWin32Classic.cs:
9334           - Fixes from John BouAntoun: now handles forecolors and backcolors
9335             for flatstyle rendered controls much better; It also fixes normal
9336             checkbox rendering when pushed or disabled.
9337
9338 2004-10-08 02:50  jordi
9339
9340         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
9341           work
9342
9343 2004-10-07 08:56  jordi
9344
9345         * ThemeWin32Classic.cs: Removes deletion of cached brushes
9346
9347 2004-10-06 03:59  jordi
9348
9349         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
9350           XplatUIWin32.cs: removes warnings from compilation
9351
9352 2004-10-05 12:23  jackson
9353
9354         * RadioButton.cs: Fix ctor
9355
9356 2004-10-05 11:10  pbartok
9357
9358         * MessageBox.cs:
9359           - Partial implementation by Benjamin Dasnois
9360
9361 2004-10-05 10:15  jackson
9362
9363         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
9364           by John BouAntoun
9365
9366 2004-10-05 03:07  ravindra
9367
9368         * ToolBar.cs:
9369                 - Removed a private method, Draw ().
9370                 - Fixed the ButtonDropDown event handling.
9371                 - Fixed MouseMove event handling.
9372
9373 2004-10-05 03:04  ravindra
9374
9375         * ThemeWin32Classic.cs:
9376                 - Added DrawListView method and ListViewDefaultSize property.
9377                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
9378                 - Changed DOS style CRLF to Unix format (dos2unix).
9379
9380 2004-10-05 03:03  ravindra
9381
9382         * Theme.cs:
9383                 - Added DrawListView method and ListViewDefaultSize property.
9384
9385 2004-10-05 02:42  ravindra
9386
9387         * ToolBarButton.cs: Added an internal member dd_pressed to handle
9388           clicks on DropDown arrow.
9389
9390 2004-10-04 22:56  jackson
9391
9392         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
9393           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
9394           Control handle the buffers, derived classes should not have to
9395           CreateBuffers themselves.
9396
9397 2004-10-04 21:20  jackson
9398
9399         * StatusBar.cs: The control handles resizing the buffers now.
9400
9401 2004-10-04 21:18  jackson
9402
9403         * Control.cs: When resizing the buffers should be invalidated. This
9404           should be handled in Control not in derived classes.
9405
9406 2004-10-04 14:45  jackson
9407
9408         * TabPage.cs: oops
9409
9410 2004-10-04 02:14  pbartok
9411
9412         * LeftRightAlignment.cs:
9413           - Initial check-in
9414
9415 2004-10-04 01:09  jordi
9416
9417         * ThemeWin32Classic.cs: fixes right button position causing right
9418           button not showing on horizontal scrollbars
9419
9420 2004-10-02 13:12  pbartok
9421
9422         * XplatUIX11.cs:
9423           - Simplified the Invalidate method by using an X call instead of
9424             generating the expose ourselves
9425           - Added an expose when the window background is changed
9426           - Implemented ClientToScreen method
9427
9428 2004-10-02 13:08  pbartok
9429
9430         * XplatUIWin32.cs:
9431           - Added Win32EnableWindow method (test for implementing modal
9432           dialogs)
9433           - Added ClientToScreen method and imports
9434
9435 2004-10-02 13:07  pbartok
9436
9437         * XplatUI.cs, XplatUIDriver.cs:
9438           - Added ClientToScreen coordinate translation method
9439
9440 2004-10-02 13:06  pbartok
9441
9442         * KeyPressEventArgs.cs:
9443           - Fixed access level for constructor
9444
9445 2004-10-02 13:06  pbartok
9446
9447         * NativeWindow.cs:
9448           - Changed access level for the window_collection hash table
9449
9450 2004-10-02 13:05  pbartok
9451
9452         * Form.cs:
9453           - Added KeyPreview property
9454           - Added Menu property (still incomplete, pending Jordi's menu work)
9455           - Implemented ProcessCmdKey
9456           - Implemented ProcessDialogKey
9457           - Implemented ProcessKeyPreview
9458
9459 2004-10-02 13:02  pbartok
9460
9461         * Control.cs:
9462           - Added private method to get the Control object from the window
9463           handle
9464           - Implemented ContextMenu property
9465           - Implemented PointToScreen
9466           - Implemented PreProcessMessage
9467           - Implemented IsInputChar
9468           - Implemented IsInputKey
9469           - Implemented ProcessCmdKey
9470           - Completed ProcessKeyEventArgs
9471           - Fixed message loop to call the proper chain of functions on key
9472           events
9473           - Implemented ProcessDialogChar
9474           - Implemented ProcessDialogKey
9475           - Implemented ProcessKeyMessage
9476           - Implemented ProcessKeyPreview
9477           - Added RaiseDragEvent stub (MS internal method)
9478           - Added RaiseKeyEvent stub (MS internal method)
9479           - Added RaiseMouseEvent stub (MS Internal method)
9480           - Added RaisePaintEvent stub (MS Internal method)
9481           - Added ResetMouseEventArgs stub (MS Internal method)
9482           - Implemented RtlTranslateAlignment
9483           - Implemented RtlTranslateContent
9484           - Implemented RtlTranslateHorizontal
9485           - Implemented RtlTranslateLeftRight
9486           - Added generation of KeyPress event
9487
9488 2004-10-02 05:57  ravindra
9489
9490         * ListViewItem.cs: Added attributes.
9491
9492 2004-10-02 05:32  ravindra
9493
9494         * ListView.cs: Added attributes.
9495
9496 2004-10-01 11:53  jackson
9497
9498         * Form.cs: Implement the Close method so work on MessageBox can
9499           continue.
9500
9501 2004-09-30 14:06  pbartok
9502
9503         * XplatUIX11.cs:
9504           - Bug fixes
9505
9506 2004-09-30 11:34  jackson
9507
9508         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
9509
9510 2004-09-30 07:26  ravindra
9511
9512         * ListViewItemConverter.cs: Converter for ListViewItem.
9513
9514 2004-09-30 07:26  ravindra
9515
9516         * SortOrder.cs: Enum for ListView control.
9517
9518 2004-09-30 07:25  ravindra
9519
9520         * ColumnHeader.cs: Supporting class for ListView control.
9521
9522 2004-09-30 07:24  ravindra
9523
9524         * ListView.cs, ListViewItem.cs: Initial implementation.
9525
9526 2004-09-30 07:20  ravindra
9527
9528         * ItemActivation.cs: Enum for ListView Control.
9529
9530 2004-09-29 20:29  pbartok
9531
9532         * XplatUIX11.cs:
9533           - Added lookup of pixel value for background color; tries to get a
9534             color 'close' to the requested color, it avoids having to create a
9535             colormap.  Depending on the display this could mean the used color
9536             is slightly off the desired color. Might have to change it to a more
9537             resource intensive colormap approach, but it will work as a
9538           workaround to avoid red screens.
9539
9540 2004-09-29 14:27  jackson
9541
9542         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
9543
9544 2004-09-28 12:44  pbartok
9545
9546         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
9547           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
9548           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
9549           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
9550           TrackBar.cs, VScrollBar.cs:
9551           - Streamlined Theme interfaces:
9552             * Each DrawXXX method for a control now is passed the object for
9553               the control to be drawn in order to allow accessing any state the
9554               theme might require
9555
9556             * ControlPaint methods for the theme now have a CP prefix to avoid
9557               name clashes with the Draw methods for controls
9558
9559             * Every control now retrieves it's DefaultSize from the current
9560             theme
9561
9562 2004-09-28 12:17  jackson
9563
9564         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
9565           drawing
9566
9567 2004-09-24 14:57  jackson
9568
9569         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
9570           Gives us a nice little performance boost.
9571
9572 2004-09-24 12:02  jackson
9573
9574         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
9575           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
9576           Control and supporting classes. Initial checkin
9577
9578 2004-09-23 13:08  jackson
9579
9580         * Form.cs: Temp build fixage
9581
9582 2004-09-23 01:39  ravindra
9583
9584         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
9585           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
9586           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
9587           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
9588           EventHandlers needed by ListView Control.
9589
9590 2004-09-22 14:12  pbartok
9591
9592         * ScrollableControl.cs:
9593           - Implemented DockPadding property
9594           - Implemented AutoScroll property
9595           - Implemented AutoScrollMargin property
9596           - Implemented AutoScrollMinSize property
9597           - Implemented AutoScrollPosition property
9598           - Implemented DisplayRectangle property (still incomplete)
9599           - Implemented CreateParams property
9600           - Implemented HScroll property
9601           - Implemented VScroll property
9602           - Implemented OnVisibleChanged property
9603
9604 2004-09-22 14:09  pbartok
9605
9606         * Form.cs:
9607           - Added Form.ControllCollection class
9608           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
9609             RemoveOwnedForm (still incomplete, missing on-top and common
9610             minimize/maximize behaviour)
9611           - Added StartPosition property (still incomplete, does not use when
9612             creating the form)
9613           - Added ShowDialog() methods (still incomplete, missing forcing the
9614             dialog modal)
9615
9616 2004-09-22 14:05  pbartok
9617
9618         * Application.cs:
9619           - Added message loop for modal dialogs
9620
9621 2004-09-22 14:02  pbartok
9622
9623         * GroupBox.cs:
9624           - Fixed wrong types for events
9625
9626 2004-09-22 14:00  pbartok
9627
9628         * Shortcut.cs, FormWindowState.cs:
9629           - Fixed wrong values
9630
9631 2004-09-22 12:01  jackson
9632
9633         * Control.cs: Text is never null
9634
9635 2004-09-20 22:14  pbartok
9636
9637         * XplatUIWin32.cs:
9638           - Fixed accessibility level for Idle handler
9639
9640 2004-09-20 18:54  jackson
9641
9642         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
9643           XplatUIX11.cs: New message loop that uses poll so we don't get a
9644           busy loop
9645
9646 2004-09-17 10:43  pbartok
9647
9648         * ScrollBar.cs:
9649           - Fixed behaviour of arrow buttons. Now properly behaves like
9650             Buttons (and like Microsoft's scrollbar arrow buttons)
9651
9652 2004-09-17 10:14  pbartok
9653
9654         * ScrollBar.cs:
9655           - Added missing release of keyboard/mouse capture
9656
9657 2004-09-17 06:18  jordi
9658
9659         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
9660           Theme.cs: Very early menu support
9661
9662 2004-09-16 17:45  pbartok
9663
9664         * XplatUIWin32.cs:
9665           - Fixed sending a window to the front
9666           - Added overload for SetWindowPos to avoid casting
9667
9668 2004-09-16 17:44  pbartok
9669
9670         * Control.cs:
9671           - Added SendToBack and BringToFront methods
9672
9673 2004-09-16 07:00  ravindra
9674
9675         * Copyright: Added Novell URL.
9676
9677 2004-09-16 07:00  ravindra
9678
9679         * ToolBar.cs: Invalidate should be done before redrawing.
9680
9681 2004-09-15 21:19  ravindra
9682
9683         * ColumnHeaderStyle.cs: Enum for ListView Control.
9684
9685 2004-09-15 21:18  ravindra
9686
9687         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
9688           ListView Control.
9689
9690 2004-09-13 18:26  jackson
9691
9692         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
9693           properly
9694
9695 2004-09-13 18:13  jackson
9696
9697         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
9698           a second thread and post messages into the main threads message
9699           queue. This makes timing much more consistent. Both win2K and XP
9700           have a minimum timer value of 15 milliseconds, so we now do this
9701           too.
9702
9703 2004-09-13 15:18  pbartok
9704
9705         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
9706           XplatUIX11.cs:
9707           - Added Z-Ordering methods
9708
9709 2004-09-13 10:56  pbartok
9710
9711         * Form.cs:
9712           - Fixed #region names
9713           - Moved properties and methods into their proper #regions
9714
9715 2004-09-13 10:51  pbartok
9716
9717         * Form.cs:
9718           - Added Accept and CancelButton properties
9719           - Added ProcessDialogKey() method
9720
9721 2004-09-13 08:18  pbartok
9722
9723         * IWindowTarget.cs:
9724           - Initial check-in
9725
9726 2004-09-10 21:50  pbartok
9727
9728         * Control.cs:
9729           - Added DoDragDrop() [incomplete]
9730           - Properly implemented 'Visible' handling
9731           - Added SetVisibleCore()
9732           - Implemented FindChildAtPoint()
9733           - Implemented GetContainerControl()
9734           - Implemented Hide()
9735
9736 2004-09-10 19:28  pbartok
9737
9738         * Control.cs:
9739           - Moved methods into their appropriate #regions
9740           - Reordered methods within regions alphabetically
9741
9742 2004-09-10 18:57  pbartok
9743
9744         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
9745           - Added method to retrieve text from window
9746
9747 2004-09-10 18:56  pbartok
9748
9749         * Control.cs:
9750           - Moved some internal functions into the internal region
9751           - Implemented FontHeight
9752           - Implemented RenderRightToLeft
9753           - Implemented ResizeRedraw
9754           - Implemented ShowFocusCues
9755           - Implemented ShowKeyboardCues
9756           - Implemented FromChildHandle
9757           - Implemented FromHandle
9758           - Implemented IsMnemonic
9759           - Implemented ReflectMessage
9760           - All public and protected Static Methods are now complete
9761
9762 2004-09-10 16:54  pbartok
9763
9764         * Control.cs:
9765           - Implemented remaining missing public instance properties
9766           - Alphabetized some out of order properties
9767
9768 2004-09-10 05:51  ravindra
9769
9770         * PictureBox.cs: Added a check for null image.
9771
9772 2004-09-10 00:59  jordi
9773
9774         * GroupBox.cs: remove cvs tag
9775
9776 2004-09-09 05:25  ravindra
9777
9778         * ToolBar.cs: Make redraw accessible from ToolBarButton.
9779
9780 2004-09-09 05:23  ravindra
9781
9782         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
9783           parent redraw.
9784
9785 2004-09-09 02:28  pbartok
9786
9787         * ThemeWin32Classic.cs:
9788           - Improve disabled string look
9789
9790 2004-09-09 01:15  jordi
9791
9792         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
9793           args and handler
9794
9795 2004-09-08 23:56  ravindra
9796
9797         * ItemBoundsPortion.cs: It's enum, not a class!
9798
9799 2004-09-08 23:47  ravindra
9800
9801         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
9802           Enums for Form.
9803
9804 2004-09-08 21:13  ravindra
9805
9806         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
9807           ListView control.
9808
9809 2004-09-08 21:03  ravindra
9810
9811         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
9812           avoid crash.
9813
9814 2004-09-08 21:01  ravindra
9815
9816         * ScrollableControl.cs: Removed unreachable code.
9817
9818 2004-09-08 06:45  jordi
9819
9820         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
9821
9822 2004-09-08 01:00  jackson
9823
9824         * XplatUIX11.cs: Only run the timers when updating the message
9825           queue. This effectively gives X messages a higher priority then
9826           timer messages. Timers still need love though
9827
9828 2004-09-07 14:01  jackson
9829
9830         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
9831           this for us and the handle is no longer valid.
9832
9833 2004-09-07 13:59  jackson
9834
9835         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
9836           loop that manages to not crash. TODO: Add poll and cleanup timers
9837
9838 2004-09-07 11:12  jordi
9839
9840         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
9841
9842 2004-09-07 03:40  jordi
9843
9844         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
9845           fixes, methods, multiple links
9846
9847 2004-09-06 06:55  jordi
9848
9849         * Control.cs: Caches ClientRectangle rectangle value
9850
9851 2004-09-05 02:03  jordi
9852
9853         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
9854           certain situations
9855
9856 2004-09-04 11:10  jordi
9857
9858         * Label.cs: Refresh when font changed
9859
9860 2004-09-02 16:24  pbartok
9861
9862         * Control.cs:
9863           - Added sanity check to creation of double buffer bitmap
9864
9865 2004-09-02 16:24  pbartok
9866
9867         * ButtonBase.cs:
9868           - Fixed selection of text color
9869           - Fixed handling of resize event; now properly recreates double
9870             buffering bitmap
9871           - Added missing assignment of TextAlignment
9872           - Added proper default for TextAlignment
9873
9874 2004-09-02 14:26  pbartok
9875
9876         * RadioButton.cs:
9877           - Added missing RadioButton.RadioButtonAccessibleObject class
9878
9879 2004-09-02 14:26  pbartok
9880
9881         * Control.cs:
9882           - Added missing Control.ControlAccessibleObject class
9883           - Started to implement Select()ion mechanisms, still very incomplete
9884
9885 2004-09-02 14:25  pbartok
9886
9887         * AccessibleObject.cs:
9888           - Added missing methods
9889
9890 2004-09-02 14:23  pbartok
9891
9892         * AccessibleNavigation.cs, AccessibleSelection.cs:
9893           - Initial check-in
9894
9895 2004-09-02 10:32  jordi
9896
9897         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
9898           pool for pens, brushes, and hatchbruses
9899
9900 2004-09-01 15:30  jackson
9901
9902         * StatusBar.cs: Fix typo
9903
9904 2004-09-01 14:44  pbartok
9905
9906         * RadioButton.cs:
9907           - Fixed state
9908
9909 2004-09-01 14:39  pbartok
9910
9911         * Button.cs, RadioButton.cs:
9912           - Functional initial check-in
9913
9914 2004-09-01 14:01  pbartok
9915
9916         * CheckBox.cs:
9917           - Added missing default
9918           - Added missing region mark
9919
9920 2004-09-01 09:10  jordi
9921
9922         * Label.cs: fixes method signatures, new methods, events, fixes
9923           autosize
9924
9925 2004-09-01 07:19  jordi
9926
9927         * Control.cs: Init string variables with an empty object
9928
9929 2004-09-01 04:20  jordi
9930
9931         * Control.cs: fires OnFontChanged event
9932
9933 2004-08-31 20:07  pbartok
9934
9935         * ButtonBase.cs:
9936           - Enabled display of strings
9937
9938 2004-08-31 20:05  pbartok
9939
9940         * Form.cs:
9941           - Added (partial) implementation of DialogResult; rest needs to be
9942             implemented when the modal loop code is done
9943
9944 2004-08-31 19:55  pbartok
9945
9946         * CheckBox.cs:
9947           - Fixed to match the removal of the needs_redraw concept
9948
9949 2004-08-31 19:55  pbartok
9950
9951         * ButtonBase.cs:
9952           - Removed the rather odd split between 'needs redraw' and redrawing
9953           - Now handles the events that require regeneration (ambient
9954             properties and size)
9955
9956 2004-08-31 19:41  pbartok
9957
9958         * Control.cs:
9959           - Added firing of BackColorChanged event
9960           - Added TopLevelControl property
9961           - Fixed handling of WM_ERASEBKGRND message
9962
9963 2004-08-31 12:49  pbartok
9964
9965         * ButtonBase.cs:
9966           - Removed debug
9967           - Minor fixes
9968
9969 2004-08-31 12:48  pbartok
9970
9971         * CheckBox.cs:
9972           - Finished (famous last words)
9973
9974 2004-08-31 04:35  jordi
9975
9976         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
9977           scrolling bugs, adds new methods
9978
9979 2004-08-30 14:42  pbartok
9980
9981         * CheckBox.cs:
9982           - Implemented CheckBox drawing code
9983
9984 2004-08-30 14:42  pbartok
9985
9986         * ButtonBase.cs:
9987           - Made Redraw() and CheckRedraw() virtual
9988           - Improved mouse up/down/move logic to properly track buttons
9989
9990 2004-08-30 09:44  pbartok
9991
9992         * CheckBox.cs:
9993           - Updated to fix broken build. Not complete yet.
9994
9995 2004-08-30 09:28  pbartok
9996
9997         * CheckState.cs:
9998           - Initial checkin
9999
10000 2004-08-30 09:17  pbartok
10001
10002         * Appearance.cs:
10003           - Initial check-in
10004
10005 2004-08-27 16:12  ravindra
10006
10007         * ToolBarButton.cs: Added TypeConverter attribute.
10008
10009 2004-08-27 16:07  ravindra
10010
10011         * ImageIndexConverter.cs: Implemented.
10012
10013 2004-08-27 14:17  pbartok
10014
10015         * Control.cs:
10016           - Removed unneeded stack vars
10017           - First attempt to fix sizing issues when layout is suspended
10018
10019 2004-08-25 15:35  jordi
10020
10021         * ScrollBar.cs: more fixes to scrollbar
10022
10023 2004-08-25 14:04  ravindra
10024
10025         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
10026           Added the missing divider code and grip for ToolBar Control.
10027
10028 2004-08-25 13:20  pbartok
10029
10030         * Control.cs:
10031           - Control now properly passes the ambient background color to child
10032             controls
10033
10034 2004-08-25 13:20  jordi
10035
10036         * ScrollBar.cs: small bug fix regarding bar position
10037
10038 2004-08-25 12:33  pbartok
10039
10040         * Timer.cs:
10041           - Now only calls SetTimer or KillTimer if the enabled state has
10042           changed
10043
10044 2004-08-25 12:33  pbartok
10045
10046         * XplatUIWin32.cs:
10047           - Fixed timer handling, now seems to work
10048           - Improved error message for window creation
10049
10050 2004-08-25 12:32  pbartok
10051
10052         * Control.cs:
10053           - Fixed generation of MouseUp message
10054
10055 2004-08-25 12:29  jordi
10056
10057         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
10058           and fixes for progressbar
10059
10060 2004-08-24 18:43  ravindra
10061
10062         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
10063           in ToolBar control.
10064
10065 2004-08-24 17:15  pbartok
10066
10067         * Panel.cs:
10068           - Added #region
10069           - Added missing events
10070           - Alphabetized
10071
10072 2004-08-24 17:14  pbartok
10073
10074         * StatusBar.cs, PictureBox.cs:
10075           - Now uses Control's CreateParams
10076
10077 2004-08-24 16:36  pbartok
10078
10079         * XplatUIX11.cs:
10080           - Fixed background color handling
10081           - Fixed sending of enter/leave events on a grab
10082
10083 2004-08-24 16:35  pbartok
10084
10085         * X11Structs.cs:
10086           - Refined definitions for CrossingEvent
10087
10088 2004-08-24 12:37  jordi
10089
10090         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
10091           formmating, methods signature, and adds missing events
10092
10093 2004-08-24 12:24  jordi
10094
10095         * Control.cs: fire OnEnabledChanged event
10096
10097 2004-08-24 11:17  pbartok
10098
10099         * XplatUIWin32.cs:
10100           - Implemented SetTimer() and KillTimer()
10101
10102 2004-08-24 11:16  pbartok
10103
10104         * XplatUIX11.cs:
10105           - Now uses Remove instead of Add to kill the timer
10106
10107 2004-08-24 10:16  jackson
10108
10109         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
10110           picture boxes in the theme now. Draw picture box borders and obey
10111           sizing modes
10112
10113 2004-08-24 05:49  jackson
10114
10115         * Timer.cs: Remove top secret debugging code
10116
10117 2004-08-24 05:34  jackson
10118
10119         * PictureBox.cs: Temp hack to make picture boxes draw their full
10120           image
10121
10122 2004-08-24 05:29  jackson
10123
10124         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
10125           XplatUIX11.cs: Move timers to the driver level. On X they are
10126           queued by the driver and checked on idle.
10127
10128 2004-08-24 01:07  jackson
10129
10130         * XplatUIX11.cs: Use a queue for async messages instead of passing
10131           them as ClientMessages since that was totally broken. Also simply
10132           check for events and return an idle message if none are found. This
10133           gives us an idle handler, and prevents deadlocking when no messages
10134           are in the queue.
10135
10136 2004-08-23 18:19  ravindra
10137
10138         * XplatUIWin32.cs: Removed the unwanted destructor.
10139
10140 2004-08-23 17:27  pbartok
10141
10142         * ButtonBase.cs:
10143           - Finishing touches. Works now, just needs some optimizations.
10144
10145 2004-08-23 16:53  jordi
10146
10147         * ScrollBar.cs: small fix
10148
10149 2004-08-23 16:45  pbartok
10150
10151         * Application.cs:
10152           - Removed debug output
10153           - Simplifications
10154
10155 2004-08-23 16:43  jordi
10156
10157         * ScrollBar.cs: [no log message]
10158
10159 2004-08-23 16:10  pbartok
10160
10161         * Form.cs:
10162           - Fixed handling of WM_CLOSE message
10163           - Removed debug output
10164
10165 2004-08-23 16:09  pbartok
10166
10167         * Application.cs:
10168           - Added handling of Idle event
10169           - Added handling of form closing
10170           - Fixed reporting of MessageLoop property
10171           - Removed some unneeded code, should provide a bit of a speedup
10172
10173 2004-08-23 15:22  pbartok
10174
10175         * Control.cs:
10176           - Added InitLayout() method
10177           - Added code to properly perform layout when Anchor or Dock property
10178             is changed
10179           - Changed 'interpretation' of ResumeLayout. MS seems to have a
10180             LAMESPEC, tried to do it in a way that makes sense
10181
10182 2004-08-23 14:10  jordi
10183
10184         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
10185           properties and methods
10186
10187 2004-08-23 13:55  pbartok
10188
10189         * Control.cs:
10190           - Properly fixed Jordi's last fix
10191           - Now uses Cursor's Position property instead of calling XplatUI
10192           directly
10193
10194 2004-08-23 13:44  jordi
10195
10196         * PaintEventHandler.cs: Adding missing attribute
10197
10198 2004-08-23 13:39  pbartok
10199
10200         * Cursor.cs:
10201           - Implemented Position property
10202
10203 2004-08-23 13:39  pbartok
10204
10205         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
10206           - Added method to move mouse cursor
10207
10208 2004-08-23 13:39  pbartok
10209
10210         * XplatUIX11.cs:
10211           - Fixed setting of background color
10212           - Added method to move mouse cursor
10213
10214 2004-08-23 13:16  jordi
10215
10216         * Control.cs: avoids null exception
10217
10218 2004-08-22 17:46  jackson
10219
10220         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
10221           PictureBox
10222
10223 2004-08-22 17:40  jackson
10224
10225         * XplatUIX11.cs: Add some missing locks
10226
10227 2004-08-22 15:10  pbartok
10228
10229         * Control.cs, Form.cs:
10230           - Removed OverlappedWindow style from Control, instead it's default
10231             now is child
10232           - Made form windows OverlappedWindow by default
10233
10234 2004-08-22 13:34  jackson
10235
10236         * ScrollBar.cs: Update the position through the Value property so
10237           the OnValueChanged event is raised.
10238
10239 2004-08-22 12:04  pbartok
10240
10241         * SWF.csproj:
10242           - Added Cursor.cs and UserControl.cs
10243
10244 2004-08-22 12:03  pbartok
10245
10246         * Cursor.cs:
10247           - Started implementation, not usable yet
10248
10249 2004-08-22 12:00  pbartok
10250
10251         * UserControl.cs:
10252           - Implemented UserControl (complete)
10253
10254 2004-08-21 19:20  ravindra
10255
10256         * ToolBar.cs: Correcting the formatting mess of VS.NET.
10257
10258 2004-08-21 18:49  ravindra
10259
10260         * ToolBar.cs: Probably this completes the missing attributes in
10261           toolbar control.
10262
10263 2004-08-21 18:03  ravindra
10264
10265         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
10266           Fixed toolbar control signatures.
10267
10268 2004-08-21 16:32  pbartok
10269
10270         * LinkLabel.cs:
10271           - Signature Fixes
10272
10273 2004-08-21 16:30  pbartok
10274
10275         * Label.cs:
10276           - Signature fixes
10277
10278 2004-08-21 16:19  pbartok
10279
10280         * Control.cs, Label.cs:
10281           - Signature fixes
10282
10283 2004-08-21 15:57  pbartok
10284
10285         * ButtonBase.cs:
10286           - Added loads of debug output for development
10287           - Fixed typo in method name
10288
10289 2004-08-21 15:52  pbartok
10290
10291         * ToolBarButtonClickEventArgs.cs:
10292           - Added missing base class
10293
10294 2004-08-21 14:53  pbartok
10295
10296         * Control.cs:
10297           - Updated to match new GrabWindow signature
10298
10299 2004-08-21 14:51  pbartok
10300
10301         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
10302           - Added method to get default display size
10303
10304 2004-08-21 14:23  pbartok
10305
10306         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
10307           - Added method to query current grab state
10308           - Added argument to allow confining a grab to a window
10309
10310 2004-08-21 14:22  pbartok
10311
10312         * Keys.cs:
10313           - Added [Flags] attribute so that modifiers can be used in bitwise
10314           ops
10315
10316 2004-08-21 14:21  pbartok
10317
10318         * TrackBar.cs, ScrollBar.cs:
10319           - Replaced direct XplatUI calls with their Control counterpart
10320
10321 2004-08-21 13:32  pbartok
10322
10323         * Control.cs:
10324           - Implemented Created property
10325
10326 2004-08-21 13:28  pbartok
10327
10328         * Control.cs:
10329           - Implemented ContainsFocus
10330
10331 2004-08-21 13:26  pbartok
10332
10333         * Control.cs:
10334           - Implemented CausesValidation
10335
10336 2004-08-21 13:21  pbartok
10337
10338         * Control.cs:
10339           - Implemented CanFocus
10340           - Implemented CanSelect
10341           - Implemented Capture
10342
10343 2004-08-21 12:35  pbartok
10344
10345         * XplatUIWin32.cs:
10346           - Fixed bug with Async message handling
10347           - Implemented getting the ModifierKeys
10348
10349 2004-08-21 12:32  jackson
10350
10351         * AsyncMethodResult.cs: Make sure we have the mutex before we
10352           release it. Fixes BeginInvoke on windows
10353
10354 2004-08-21 11:31  pbartok
10355
10356         * XplatUIWin32.cs, XplatUIX11.cs:
10357           - Drivers now return proper mouse state
10358
10359 2004-08-21 10:54  jackson
10360
10361         * Control.cs: Implement EndInvoke
10362
10363 2004-08-21 10:48  jackson
10364
10365         * Timer.cs: Remove unneeded finalizer
10366
10367 2004-08-20 19:52  ravindra
10368
10369         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
10370           in mouse event handling in the ToolBar control.
10371
10372 2004-08-20 19:50  ravindra
10373
10374         * ImageList.cs: Changed draw method to use the arguments passed in
10375           to draw the image.
10376
10377 2004-08-20 18:58  pbartok
10378
10379         * XplatUIStructs.cs:
10380           - Added private message for async communication
10381
10382 2004-08-20 17:38  ravindra
10383
10384         * Control.cs: Made RightToLeft property virtual and removed a
10385           Console.WriteLine.
10386
10387 2004-08-20 14:39  jordi
10388
10389         * ThemeGtk.cs: use style_attach
10390
10391 2004-08-20 14:39  pbartok
10392
10393         * XplatUIWin32.cs:
10394           - Added jackson's Async code from X11 to Win32
10395
10396 2004-08-20 14:09  pbartok
10397
10398         * SWF.csproj:
10399           - Added all new files
10400
10401 2004-08-20 14:09  pbartok
10402
10403         * Control.cs:
10404           - Added call to set window background color
10405
10406 2004-08-20 14:03  pbartok
10407
10408         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
10409           - Added method for setting the window background
10410
10411 2004-08-20 14:02  pbartok
10412
10413         * XplatUIWin32.cs:
10414           - Added method for setting the background color
10415           - Added handling for erasing the window background
10416
10417 2004-08-20 13:45  jordi
10418
10419         * TrackBar.cs: fixes timer, new properties and methods
10420
10421 2004-08-20 13:34  jackson
10422
10423         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
10424           correct thread
10425
10426 2004-08-20 13:22  jackson
10427
10428         * Timer.cs: Timer Tick events are now handed through Controls Async
10429           mechanism so the callbacks are executed in the same thread as X
10430
10431 2004-08-20 13:19  jackson
10432
10433         * XplatUIDriver.cs: Expose functionality to send async messages
10434           through the driver
10435
10436 2004-08-20 13:18  jackson
10437
10438         * Control.cs: Implement Begininvoke
10439
10440 2004-08-20 13:14  jackson
10441
10442         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
10443           messages through the driver
10444
10445 2004-08-20 13:12  jackson
10446
10447         * XplatUIX11.cs: Lock before all X operations. Also added Async
10448           method functionality through XSendEvent
10449
10450 2004-08-20 13:11  jackson
10451
10452         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
10453           This will screw up on 64 bit systems)
10454
10455 2004-08-20 13:10  jackson
10456
10457         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
10458           Async messages through X/Win32
10459
10460 2004-08-19 19:39  pbartok
10461
10462         * XplatUIX11.cs:
10463           - Updated code to match new HandleData.DeviceContext type
10464
10465 2004-08-19 19:38  pbartok
10466
10467         * HandleData.cs:
10468           - Made DeviceContext a generic object to allow usage from various
10469           drivers
10470           - Added support for queueing Windows messages
10471
10472 2004-08-19 19:37  pbartok
10473
10474         * XplatUIWin32.cs:
10475           - Added generation of MouseEnter, MouseLeave and MouseHover events
10476           - Added cleanup on EndPaint
10477
10478 2004-08-19 19:17  pbartok
10479
10480         * Control.cs:
10481           - Added handling of WM_MOUSEHOVER
10482           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
10483           code
10484
10485 2004-08-19 18:55  jordi
10486
10487         * ThemeGtk.cs: fixes button order
10488
10489 2004-08-19 18:12  jordi
10490
10491         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
10492
10493 2004-08-19 17:09  pbartok
10494
10495         * Control.cs:
10496           - Added Right property
10497           - Added RightToLeft property
10498
10499 2004-08-19 16:27  jordi
10500
10501         * ThemeGtk.cs: experimental GTK theme support
10502
10503 2004-08-19 16:26  jordi
10504
10505         * ITheme.cs, Theme.cs: move themes from an interface to a class
10506
10507 2004-08-19 16:25  jordi
10508
10509         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
10510           theme enhancaments
10511
10512 2004-08-19 16:04  pbartok
10513
10514         * XplatUIX11.cs:
10515           - Added colormap basics
10516           - Added a way to re-initialize with a different display handle
10517           - Fixed setting of the window background color
10518           - Added various X11 imports related to colors and colormaps
10519
10520 2004-08-19 15:51  pbartok
10521
10522         * X11Structs.cs:
10523           - Removed packing hints (Paolo suggested this a while back)
10524           - fixed colormap type
10525           - Added default Atom types
10526           - Added Screen and color structs and enums
10527
10528 2004-08-19 15:39  pbartok
10529
10530         * ImageList.cs:
10531           - Added missing Draw() method
10532           - Added missing RecreateHandle event
10533
10534 2004-08-19 15:30  pbartok
10535
10536         * Form.cs:
10537           - Added handling of WM_CLOSE
10538
10539 2004-08-18 13:16  jordi
10540
10541         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
10542           a table
10543
10544 2004-08-18 09:56  jordi
10545
10546         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
10547
10548 2004-08-17 15:31  ravindra
10549
10550         * SWF.csproj: Updated project.
10551
10552 2004-08-17 15:25  pbartok
10553
10554         * Control.cs:
10555           - Drawing improvement; don't call UpdateBounds if we are not visible
10556             (or have been minimized)
10557
10558 2004-08-17 15:24  pbartok
10559
10560         * XplatUIWin32.cs:
10561           - Finished IsVisible
10562           - Added Win32GetWindowPlacement
10563
10564 2004-08-17 15:08  jackson
10565
10566         * Panel.cs: Initial checkin of the Panel
10567
10568 2004-08-17 14:25  pbartok
10569
10570         * Control.cs:
10571           - Fixed broken handling of default window sizes
10572
10573 2004-08-17 13:29  jackson
10574
10575         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
10576           has a large startup time.
10577
10578 2004-08-17 10:25  jackson
10579
10580         * HandleData.cs: union areas properly
10581
10582 2004-08-17 10:12  jackson
10583
10584         * HandleData.cs: union areas properly
10585
10586 2004-08-16 20:00  ravindra
10587
10588         * ToolBar.cs, ToolBarButton.cs: Added attributes.
10589
10590 2004-08-16 18:48  ravindra
10591
10592         * ToolBar.cs: Added attributes.
10593
10594 2004-08-16 17:17  ravindra
10595
10596         * SWF.csproj: Updated project.
10597
10598 2004-08-16 17:16  jackson
10599
10600         * XplatUIX11.cs: Check for more expose events before sending a
10601           WM_PAINT so they can all be grouped together. This makes dragging a
10602           window across another window redraw in a sane way.
10603
10604 2004-08-16 15:47  pbartok
10605
10606         * Control.cs:
10607           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
10608             support OnMouseEnter/Leave()
10609           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
10610             exposure handling
10611
10612 2004-08-16 15:46  pbartok
10613
10614         * XplatUIStructs.cs, XplatUIX11.cs:
10615           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
10616           OnMouseEnter/Leave()
10617
10618 2004-08-16 15:34  jackson
10619
10620         * XplatUIX11.cs: Group multiple expose events in HandleData, make
10621           sure messages get the message field set to WM_NULL if they are not
10622           handled.
10623
10624 2004-08-16 15:24  jackson
10625
10626         * HandleData.cs: HandleData is used for storing message information
10627           for window handles
10628
10629 2004-08-15 17:23  ravindra
10630
10631         * ColorDepth.cs: Added attribute.
10632
10633 2004-08-15 17:23  ravindra
10634
10635         * SWF.csproj: Updated project for ToolBar Control.
10636
10637 2004-08-15 17:20  ravindra
10638
10639         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
10640           control and also dos2unix format.
10641
10642 2004-08-15 17:13  ravindra
10643
10644         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
10645           ToolBarButtonClickEventArgs.cs,
10646           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
10647           ToolBarTextAlign.cs: First Implementation of ToolBar control.
10648
10649 2004-08-15 15:31  pbartok
10650
10651         * ButtonBase.cs:
10652           - First (mostly) working version
10653
10654 2004-08-13 16:15  pbartok
10655
10656         * Control.cs:
10657           - Fixed Anchor default
10658
10659 2004-08-13 15:43  pbartok
10660
10661         * Control.cs:
10662           - Changed GetCursorPos signature
10663
10664 2004-08-13 15:42  pbartok
10665
10666         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
10667           - Changed signature for GetCursorPos
10668
10669 2004-08-13 15:25  pbartok
10670
10671         * XplatUIX11.cs:
10672           - Cleanup
10673           - Fixed resizing/exposure handling
10674
10675 2004-08-13 15:22  jordi
10676
10677         * ThemeWin32Classic.cs: removes redundant code and fixes issues
10678           with tickposition
10679
10680 2004-08-13 14:55  jordi
10681
10682         * TrackBar.cs: change from wndproc to events
10683
10684 2004-08-13 13:00  jordi
10685
10686         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
10687           XplatUIX11.cs: implements PointToClient (ScreenToClient)
10688
10689 2004-08-13 12:53  pbartok
10690
10691         * XplatUIWin32.cs:
10692           - Changed GetWindowPos to also provide client area size
10693           - Fixed broken prototypes for several win32 functions
10694
10695 2004-08-13 12:53  pbartok
10696
10697         * XplatUI.cs, XplatUIDriver.cs:
10698           - Changed GetWindowPos to also provide client area size
10699
10700 2004-08-13 12:52  pbartok
10701
10702         * XplatUIX11.cs:
10703           - Added generation of WM_POSCHANGED
10704           - Changed GetWindowPos to also provide client area size
10705
10706 2004-08-13 12:52  pbartok
10707
10708         * Control.cs:
10709           - Added Dispose() and destructor
10710           - Fixed resizing and bounds calculation
10711           - Fixed Layout
10712           - Added memory savings for invisible windows
10713
10714 2004-08-13 12:46  jordi
10715
10716         * TrackBar.cs: adds timer and grap window
10717
10718 2004-08-13 10:25  jackson
10719
10720         * Timer.cs: SWF Timer
10721
10722 2004-08-12 16:59  pbartok
10723
10724         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
10725           - Implemented method to get current mouse position
10726
10727 2004-08-12 14:29  jordi
10728
10729         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
10730           enhancement, fix mouse problems, highli thumb, etc
10731
10732 2004-08-12 13:31  pbartok
10733
10734         * Control.cs:
10735           - Fixed Anchoring bugs
10736
10737 2004-08-12 13:01  jackson
10738
10739         * StatusBar.cs: Don't forget things
10740
10741 2004-08-12 12:54  jackson
10742
10743         * ThemeWin32Classic.cs: Handle owner draw status bars
10744
10745 2004-08-12 12:54  jackson
10746
10747         * StatusBar.cs: Implement missing properties, events, and methods.
10748           Handle mouse clicking
10749
10750 2004-08-12 10:19  jackson
10751
10752         * StatusBarPanelClickEventArgs.cs,
10753           StatusBarPanelClickEventHandler.cs: Classes for handling status
10754           bar panel click events
10755
10756 2004-08-12 10:10  jackson
10757
10758         * Control.cs: Add missing properties
10759
10760 2004-08-12 09:46  pbartok
10761
10762         * BindingsManagerBase.cs:
10763           - Name changed to BindingManagerBase.cs
10764
10765 2004-08-12 09:25  jordi
10766
10767         * ScrollableControl.cs: calls ctrlbase instead of exeception
10768
10769 2004-08-11 16:28  pbartok
10770
10771         * InputLanguageChangingEventArgs.cs:
10772           - Never check in before compiling. Fixes the last check-in
10773
10774 2004-08-11 16:26  pbartok
10775
10776         * InputLanguageChangingEventArgs.cs:
10777           - More signature fixes
10778
10779 2004-08-11 16:20  pbartok
10780
10781         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
10782           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
10783           ImageListStreamer.cs, InputLanguage.cs,
10784           InputLanguageChangedEventArgs.cs,
10785           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
10786           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
10787           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
10788           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
10789           - Signature fixes
10790
10791 2004-08-11 16:16  pbartok
10792
10793         * Application.cs:
10794           - Fixed Signature
10795           - Added .Net 1.1 method
10796
10797 2004-08-11 15:25  pbartok
10798
10799         * SWF.csproj:
10800           - Fixed BindingManagerBase.cs filename
10801
10802 2004-08-11 15:22  pbartok
10803
10804         * BindingManagerBase.cs:
10805           - Was checked in with wrong filename
10806
10807 2004-08-11 14:50  pbartok
10808
10809         * SWF.csproj:
10810           - Updated
10811
10812 2004-08-11 13:41  jordi
10813
10814         * XplatUIWin32.cs: Fixes ClientRect
10815
10816 2004-08-11 13:19  pbartok
10817
10818         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
10819           XplatUIX11.cs:
10820           - We had SetWindowPos and MoveWindow to set window positions and
10821             size, removed MoveWindow. We have GetWindowPos, so it made sense to
10822             keep SetWindowPos as matching counterpart
10823           - Added some X11 sanity checking
10824
10825 2004-08-11 12:59  pbartok
10826
10827         * Control.cs:
10828           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
10829             (It seems that SetBounds is just a front for SetBoundsCore and
10830              SetBoundsCore updates the underlying window system and
10831              UpdateBounds is responsible for updating the variables associated
10832              with the Control and sending the events)
10833           - Major cleanup of Size handling; we now have two sizes, client_size
10834             and bounds. Bounds defines the window with decorations, client_size
10835             without them.
10836
10837 2004-08-11 12:55  pbartok
10838
10839         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
10840           - Added method to calculate difference between decorated window and
10841             raw client area
10842
10843 2004-08-11 12:54  pbartok
10844
10845         * Label.cs:
10846           - Forcing redraw on resize
10847
10848 2004-08-11 11:43  pbartok
10849
10850         * ImageList.cs:
10851           - Removed disposing of the actual images when the list is disposed
10852
10853 2004-08-11 09:13  pbartok
10854
10855         * Control.cs:
10856           - Now properly reparents windows
10857
10858 2004-08-11 08:37  pbartok
10859
10860         * Control.cs:
10861           - Duh!
10862
10863 2004-08-11 07:47  pbartok
10864
10865         * Control.cs:
10866           - Rewrote the collection stuff. Might not be as fast now, not
10867             keeping the number of children around and accessible directly, but
10868             it's more straightforward
10869
10870 2004-08-11 07:44  pbartok
10871
10872         * AccessibleObject.cs:
10873           - Fixed to match ControlCollection rewrite
10874
10875 2004-08-11 07:43  pbartok
10876
10877         * ImageList.cs:
10878           - Added missing creation of the collection list
10879
10880 2004-08-10 20:08  jackson
10881
10882         * StatusBar.cs: Get the paint message from WndProc
10883
10884 2004-08-10 19:31  jackson
10885
10886         * ThemeWin32Classic.cs: Create Brushes as little as possible
10887
10888 2004-08-10 19:20  jackson
10889
10890         * UICues.cs: Add Flags attribute
10891
10892 2004-08-10 19:19  jackson
10893
10894         * StatusBarPanel.cs: Signature cleanup
10895
10896 2004-08-10 19:10  jackson
10897
10898         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
10899           Initial implementation of status bar item drawing
10900
10901 2004-08-10 17:27  jordi
10902
10903         * TrackBar.cs: add missing methods, properties, and restructure to
10904           hide extra ones
10905
10906 2004-08-10 16:24  jackson
10907
10908         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
10909           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
10910           attribute
10911
10912 2004-08-10 13:21  jordi
10913
10914         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
10915           enhancements and standarize on win colors defaults
10916
10917 2004-08-10 12:52  jackson
10918
10919         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
10920           ThemeWin32Classic.cs: Implement DrawItem functionality
10921
10922 2004-08-10 12:47  jordi
10923
10924         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
10925
10926 2004-08-10 12:32  jordi
10927
10928         * Control.cs: throw ontextchange event
10929
10930 2004-08-10 11:43  pbartok
10931
10932         * Control.cs:
10933           - Added more to the still unfinished Dock/Anchor layout code
10934
10935 2004-08-10 11:39  pbartok
10936
10937         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
10938           - Added GetWindowPos method
10939
10940 2004-08-10 11:36  pbartok
10941
10942         * XplatUIWin32.cs:
10943           - Implemented several methods
10944
10945 2004-08-10 09:47  jackson
10946
10947         * TrackBar.cs: Allow control to handle buffering
10948
10949 2004-08-10 09:41  jackson
10950
10951         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
10952
10953 2004-08-10 09:24  jackson
10954
10955         * Label.cs, LinkLabel.cs: Let Control handle buffering.
10956
10957 2004-08-10 09:09  jackson
10958
10959         * StatusBar.cs: Let Control handle all the buffering.
10960
10961 2004-08-10 09:08  jackson
10962
10963         * Control.cs: Control will now handle the buffering code, so each
10964           control does not have to implement this.
10965
10966 2004-08-10 08:34  jackson
10967
10968         * XplatUIDriver.cs: Use default colors from the theme
10969
10970 2004-08-09 17:12  pbartok
10971
10972         * ImageList.cs:
10973           - Fixed several bugs Ravindra pointed out
10974
10975 2004-08-09 16:11  pbartok
10976
10977         * Control.cs:
10978           - Added incomplete dock layout code
10979           - Added support for mouse wheel
10980
10981 2004-08-09 16:09  pbartok
10982
10983         * XplatUIX11.cs:
10984           - Added handling for middle and right mousebutton
10985           - Added handling for mouse wheel
10986           - Added handling for key state and mouse state and position
10987           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
10988           messages
10989
10990 2004-08-09 15:40  jackson
10991
10992         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
10993           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
10994           checkin
10995
10996 2004-08-09 15:37  jackson
10997
10998         * StatusBar.cs: Initial implementation of StatusBar
10999
11000 2004-08-09 15:36  jackson
11001
11002         * ITheme.cs: Add support for drawing status bar and getting status
11003           bar item sizes
11004
11005 2004-08-09 15:35  pbartok
11006
11007         * MouseButtons.cs:
11008           - Fixed values
11009
11010 2004-08-09 15:34  jackson
11011
11012         * ThemeWin32Classic.cs: Add support for drawing status bar and get
11013           status bar item sizes
11014
11015 2004-08-09 15:21  jackson
11016
11017         * ThemeWin32Classic.cs: Use known colors for default control
11018           colours
11019
11020 2004-08-09 15:12  jackson
11021
11022         * ThemeWin32Classic.cs: Make the default font static, it is static
11023           in control so this doesn't change functionality and creating fonts
11024           is sloooooow.
11025
11026 2004-08-09 14:56  pbartok
11027
11028         * X11Structs.cs:
11029           - Added GrabMode enum
11030
11031 2004-08-09 14:55  pbartok
11032
11033         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11034           - Removed Run method, was only required for initial development
11035
11036 2004-08-09 14:51  pbartok
11037
11038         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
11039           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
11040           capture
11041
11042 2004-08-09 13:48  pbartok
11043
11044         * XplatUIX11.cs:
11045           - Fixed default sizing for child windows
11046
11047 2004-08-09 12:56  pbartok
11048
11049         * XplatUIX11.cs:
11050           - Added generation of WM_DESTROY message
11051           - Added handling of window manager induced shutdown
11052
11053 2004-08-09 11:31  jackson
11054
11055         * ThemeWin32Classic.cs: New names for control properties
11056
11057 2004-08-09 11:25  jackson
11058
11059         * Control.cs: Use new color names
11060
11061 2004-08-09 11:02  jackson
11062
11063         * XplatUI.cs: Get default window properties from the theme
11064
11065 2004-08-09 11:01  jackson
11066
11067         * ITheme.cs: The theme engine now controls default window
11068           properties
11069
11070 2004-08-09 11:00  jackson
11071
11072         * ThemeWin32Classic.cs: Add default window color properties
11073
11074 2004-08-09 10:17  jackson
11075
11076         * ThemeWin32Classic.cs: Use correct default back color
11077
11078 2004-08-09 10:05  jackson
11079
11080         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
11081           the theme now.
11082
11083 2004-08-09 09:56  jackson
11084
11085         * XplatUI.cs: Remove defaults, these are handled by the theme now.
11086
11087 2004-08-09 09:54  jackson
11088
11089         * Control.cs: Get default properties from the theme.
11090
11091 2004-08-09 09:53  jackson
11092
11093         * ITheme.cs: Themes now handle default control properties
11094
11095 2004-08-09 09:53  jackson
11096
11097         * ThemeWin32Classic.cs: Themes now handle default control
11098           properties so coloring will be consistent
11099
11100 2004-08-08 16:54  jordi
11101
11102         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
11103
11104 2004-08-08 15:08  jordi
11105
11106         * XplatUIX11.cs: fixes keyboard crash
11107
11108 2004-08-08 13:47  jordi
11109
11110         * Label.cs: add cvs header info
11111
11112 2004-08-08 12:09  jackson
11113
11114         * ThemeWin32Classic.cs: Add pen_buttonface
11115
11116 2004-08-08 11:52  jordi
11117
11118         * Label.cs, LinkLabel.cs: [no log message]
11119
11120 2004-08-08 11:34  jordi
11121
11122         * ThemeWin32Classic.cs: Use Windows Standard Colours
11123
11124 2004-08-07 17:32  jordi
11125
11126         * TrackBar.cs: throw exceptions of invalid enums values
11127
11128 2004-08-07 17:31  jordi
11129
11130         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
11131           draw method name
11132
11133 2004-08-07 16:56  jackson
11134
11135         * HorizontalAlignment.cs: Initial checkin
11136
11137 2004-08-07 13:16  jordi
11138
11139         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
11140           methods
11141
11142 2004-08-07 13:05  jordi
11143
11144         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
11145           GetSysColor defines
11146
11147 2004-08-06 18:01  pbartok
11148
11149         * ThemeWin32Classic.cs:
11150           - Fixed some rounding issues with float/int
11151
11152 2004-08-06 18:00  jackson
11153
11154         * DockStyle.cs, AnchorStyles.cs:
11155
11156                   Add flags and serializable attributes.
11157
11158 2004-08-06 17:46  pbartok
11159
11160         * XplatUIX11.cs:
11161           - Implemented GetParent
11162
11163 2004-08-06 17:18  pbartok
11164
11165         * TrackBar.cs:
11166           - Fixed some rounding issues with float/int
11167
11168 2004-08-06 17:17  pbartok
11169
11170         * X11Structs.cs, XplatUIX11.cs:
11171           - Fixed Refresh and Invalidate
11172
11173 2004-08-06 15:30  pbartok
11174
11175         * Control.cs, X11Structs.cs, XplatUIX11.cs:
11176           - Fixed recursive loop when resizing
11177           - Improved/fixed redrawing on expose messages
11178
11179 2004-08-06 09:53  jordi
11180
11181         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
11182           keyboard navigation
11183
11184 2004-08-06 08:02  pbartok
11185
11186         * X11Structs.cs, XplatUIX11.cs:
11187           - Fixed reparenting
11188           - Fixed window border creation
11189
11190 2004-08-05 15:38  pbartok
11191
11192         * XplatUIX11.cs:
11193           - Attempted fix for reparenting problems
11194
11195 2004-08-04 15:14  pbartok
11196
11197         * Control.cs:
11198           - Fixed Invalidation bug (calculated wrong client area)
11199           - Added ClientSize setter
11200
11201 2004-08-04 15:13  pbartok
11202
11203         * Form.cs:
11204           - Added AutoScale properties
11205
11206 2004-08-04 15:13  pbartok
11207
11208         * SWF.csproj:
11209           - Added latest files
11210
11211 2004-08-04 14:11  pbartok
11212
11213         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
11214           XplatUIX11.cs:
11215           - Added Invalidate handling
11216
11217 2004-08-03 17:09  jordi
11218
11219         * XplatUIDriver.cs: fixes spelling mistake
11220
11221 2004-07-27 09:53  jordi
11222
11223         * TrackBar.cs: fixes trackbar events, def classname, methods
11224           signature
11225
11226 2004-07-27 09:29  jordi
11227
11228         * ScrollBar.cs: fixes scrollbar events
11229
11230 2004-07-27 04:38  jordi
11231
11232         * Control.cs: changes to be able to run winforms samples
11233
11234 2004-07-26 11:42  jordi
11235
11236         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
11237           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
11238
11239 2004-07-26 05:41  jordi
11240
11241         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
11242           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
11243           implementation
11244
11245 2004-07-22 09:22  jordi
11246
11247         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
11248           check link overlapping, implement events, and fixes
11249
11250 2004-07-21 10:28  jordi
11251
11252         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
11253
11254 2004-07-21 10:19  jordi
11255
11256         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
11257           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
11258           LinkLabelLinkClickedEventArgs.cs,
11259           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
11260           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
11261           implementation
11262
11263 2004-07-19 13:09  jordi
11264
11265         * Control.cs, Label.cs: label control re-written: added missing
11266           functionlity, events, and properties
11267
11268 2004-07-19 10:49  jordi
11269
11270         * Control.cs: fixes SetBounds logic
11271
11272 2004-07-19 01:29  jordi
11273
11274         * Control.cs: Call RefreshWindow only if the window has created
11275
11276 2004-07-15 14:05  pbartok
11277
11278         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
11279           - Implemented ImageList and ImageList.ImageCollection classes
11280           - Added ColorDepth enumeration
11281           - Updated SWF VS.Net project
11282
11283 2004-07-15 11:06  jordi
11284
11285         * XplatUIStructs.cs: added MsgButons enum
11286
11287 2004-07-15 11:03  jordi
11288
11289         * Control.cs: added basic mouse handeling events
11290
11291 2004-07-15 03:38  jordi
11292
11293         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
11294           Vertical TrackBar control implementation
11295
11296 2004-07-13 09:33  jordi
11297
11298         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
11299
11300 2004-07-13 09:31  jordi
11301
11302         * Control.cs, Form.cs: commit: new properties and fixes form size
11303           problems
11304
11305 2004-07-09 14:13  miguel
11306
11307         * ProgressBar.cs: Spelling
11308
11309 2004-07-09 11:25  pbartok
11310
11311         * ProgressBar.cs:
11312           - Removed usage of Rectangle for drawing. Miguel pointed out it's
11313           faster
11314
11315 2004-07-09 11:17  miguel
11316
11317         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
11318
11319                 * ProgressBar.cs: Fixed spelling for `block'
11320
11321                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
11322                 style guidelines.
11323
11324                 Avoid using the += on rect.X, that exposed a bug in the compiler.
11325
11326 2004-07-08 23:21  pbartok
11327
11328         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
11329           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
11330           BaseCollection.cs, Binding.cs, BindingContext.cs,
11331           BindingMemberInfo.cs, BindingsCollection.cs,
11332           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
11333           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
11334           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
11335           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
11336           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
11337           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
11338           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
11339           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
11340           FrameStyle.cs, GiveFeedbackEventArgs.cs,
11341           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
11342           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
11343           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
11344           InputLanguageChangedEventArgs.cs,
11345           InputLanguageChangedEventHandler.cs,
11346           InputLanguageChangingEventArgs.cs,
11347           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
11348           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
11349           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
11350           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
11351           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
11352           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
11353           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
11354           QueryAccessibilityHelpEventArgs.cs,
11355           QueryAccessibilityHelpEventHandler.cs,
11356           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
11357           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
11358           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
11359           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
11360           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
11361           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
11362           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
11363           XplatUIX11.cs, lang.cs:
11364           - Initial check-in
11365