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