2006-07-14 Alexander Olk <alex.olk@googlemail.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2
3         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
4           Down arrows
5
6 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
7
8         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
9         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
10         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
11         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
12         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
13         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
14         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
15         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
17         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
18         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
19         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20         ListViewItemSelectionChangedEventHandler.cs,
21         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
22         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
23         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
24         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
25         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
26         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
27         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
28         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
29         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
30         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
31         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
32         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
33         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
34         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
35         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
36         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
37         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
38         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
39         WebBrowserNavigatingEventHandler.cs, 
40         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
41
42 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
43
44         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
45         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
46         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
47         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
48         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
49         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
50         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
51         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
52         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
53         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
54         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
55         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
56         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
57         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
58         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
59         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
60         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
61         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
62         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
63         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
64         ListViewItemStates.cs, MaskFormat.cs: Added
65
66 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
67
68         * PropertyGridView.cs: Fix keyboard navigation of drop down.
69         Patch from eno for bug 78558.
70         
71 2006-07-13  Jackson Harper  <jackson@ximian.com>
72
73         * TreeView.cs: When an edit is finished make sure that the
74         selected node is visible.
75         - When setting the top/bottom use the scrollbars is_visible, so
76         everything will be set correctly even if the tree isn't visible
77         yet.
78
79 2006-07-13  Jackson Harper  <jackson@ximian.com>
80
81         * ComboBox.cs: Revert the item->index part of my previous patch.
82         * TreeView.cs: Use LostFocus instead of Leave for detecting when
83         the edit box has lost focus (duh).
84         - Just make the edit box not visible when we get return, that will
85         take the focus, which will call EndEdit
86         * TreeNode.cs When we start editing, notify the treeview.
87
88 2006-07-12  Jackson Harper  <jackson@ximian.com>
89
90         * ComboBox.cs: Clear out old items before setting the item list.
91         This prevents databound controls from having their items added
92         twice.
93         - Switch the combobox to use indices whereever possible instead of
94         using Item's.  This allows usto navigate through lists that have
95         more then one item with the same string value (ie a, b, b, a).
96         - Scroll the listboxes scrollbar when a non visible item is
97         highlighted
98         - Allow keypress to cycle through all the possible values. For
99         example if you have b1, b2, b3 and hold down the B key all the
100         values will be cycled through.
101         
102 2006-07-12  Jackson Harper  <jackson@ximian.com>
103
104         * TextBoxBase.cs:
105         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
106         this using the internal methods.
107         * Control.cs: Add OnGotFocusInternal.  A new method that allows
108         controls to "override" OnGotFocus and change focus behavior if
109         needed.
110         - Same thing for LostFocus
111         * ComboBox.cs: Pass off focus to the text control properly.
112
113 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
114
115         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
116         * FolderBrowserDialog.cs: Almost a complete rewrite.
117           - Better support for Environment.Specialfolders
118           - Added support for MWFVFS
119           - Made setting SelectedPath work
120
121 2006-07-12  Jackson Harper  <jackson@ximian.com>
122
123         * Control.cs: Optimze getting all the controls.
124
125 2006-07-11  Jackson Harper  <jackson@ximian.com>
126
127         * ContainerControl.cs: Override SETFOCUS in the container control,
128         so that it is not selected on mouse click.
129
130 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
131
132         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
133           Hopefully we will have a better way once all of focus is complete.
134
135 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
136
137         * ThemeWin32Classic.cs: Commented out some debug code and fixed
138           a compile error with csc.
139
140 2006-07-11  Jackson Harper  <jackson@ximian.com>
141
142         * Control.cs: When hiding a control only select the next control
143         if the current control was focused.
144         - Don't handle enter/leave when setting/killing focus, this is
145         done by the container control.
146         - Remove is_selected, it's not needed anymore.
147         - Add utility methods for selecting a child control, and for
148         firing the Enter/Leave events.
149         * ContainerControl.cs: When a control is activated fire the
150         enter/leave events.
151         - Don't wrap when processing the tab key, so that focus can be
152         moved outside of the container.
153         - Use the correct active control
154
155 2006-07-11  Jackson Harper  <jackson@ximian.com>
156
157         * ComboBox.cs: Remove some debug code that was blinding me.
158         * UpDownBase.cs: These controls actually aren't implicit, they are
159         visible to the user.
160
161 2006-07-10  Chris Toshok  <toshok@ximian.com>
162
163         * DataGridTableStyle.cs: just check if the property type is bool.
164         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
165         Don't use CanRenderType.
166
167         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
168         if our text == NullText.  Remove CanRenderType.
169
170         * DataGridBoolColumn.cs: nuke CanRenderType.
171
172         * DataGrid.cs: reenable some code to end the current edit inside
173         of set_CurrentCell.  This fixes the other 1.1.16 regression.
174         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
175         Also, remove the visible_row_count arg from CalcRowHeaders, since
176         we don't need to worry about the actual height of the area.
177
178 2006-07-10  Chris Toshok  <toshok@ximian.com>
179
180         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
181         mode, just return.
182
183         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
184         the real sense of the IsInEditOrNavigateMode property (true =
185         navigate, false = edit).  Also, update OnKeyPress to reflect this.
186
187         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
188         column style exists, we still need to set its property descriptor
189         to match up with our list manager.
190
191 2006-07-10  Chris Toshok  <toshok@ximian.com>
192
193         * ThemeWin32Classic.cs: implement the new row/header painting
194         approach.  The parent row painting will likely go away and
195         replaced with label controls, but the rest seems to work ok (and
196         efficiently).
197
198         * Theme.cs: change the way we draw datagrid rows.  we don't draw
199         the row headers as a block now.  Instead we draw them in the
200         normal draw-row loop.  Add some calls for drawing parent rows and
201         relation rows.
202
203         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
204         a default table style.  Set the defaults from ThemeEngine.Current,
205         not SystemColors.  Fix lots of misc issues with property setters.
206
207         * DataGrid.cs: move loads of style information out of this class
208         as it's being duplicated with DataGridTableStyle.  keep track of a
209         special DataGridTableStyle for the properties we used to mirror
210         here.  Switch all the style properties to access this table style
211         instead of instance fields of this class.  Also add a internal
212         class to represent parent rows (more needs to be stored here, like
213         the selection state from the parent table, as well as the
214         expansion state.)  Also, for datasources with relations, do the
215         right thing for collapse/expand, and add support for the
216         navigation/parent row buttons.
217
218         Lastly, fix the crash in the 1.1.16 build.
219
220         * GridTableStylesCollection.cs: make the explicit interface
221         implementations call the class's methods as opposed to duplicating
222         them.
223
224         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
225         0 so the text doesn't jump around when we move the cursor.
226
227 2006-07-10  Jackson Harper  <jackson@ximian.com>
228
229         * TextBoxBase.cs:
230         * ListBox.cs: Match MS's ToString (this makes debugging focus
231         stuff infinitely easier).
232
233 2006-07-10  Jackson Harper  <jackson@ximian.com>
234
235         * Control.cs (SelectNextControl): When checking the control's
236         parent use this instead of ctrl.parent so that null can be passed
237         to SelectNextControl. (I have unit tests for this).
238         - Remove unused var.
239
240 2006-07-10  Chris Toshok  <toshok@ximian.com>
241
242         * CurrencyManager.cs: correct one regression, the removal of the
243         finalType field.  Also, add a MonoTODO on CanAddRows, implement
244         Refresh() correctly, and fix some event emission in
245         ListChangedHandler.
246
247 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
248
249         * FileDialog.cs: Don't use brackets for new folders if they exist
250           under *nix. Instead use -(number of existing folders +1).
251
252 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
253
254         * FileDialog.cs:
255           - Fixed really nasty bug #78771
256           - Don't block the whole GUI when reading directories with a lot of
257             entries. Use an other thread instead and call BeginInvoke to
258             update the ListView in MWFFileView
259
260 2006-07-07  Chris Toshok  <toshok@ximian.com>
261
262         * Control.cs (Dispose): release any Capture when disposing.
263
264 2006-07-07  Chris Toshok  <toshok@ximian.com>
265
266         * LinkLabel.cs (Select): if we chain up to the parent, set
267         focused_index to -1 so we'll search for the first available link
268         the next time the user tabs into us.  Also, if the direction is
269         backward and focused_index == -1, start the search from the last
270         element.
271
272 2006-07-07  Chris Toshok  <toshok@ximian.com>
273
274         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
275         is beyond the end of the text, don't do anything.
276         (CreateLinkPieces): set our ControlStyles.Selectable based on
277         whether or not we have any links.
278         (Link.Invalidate): use a loop instead of foreach.
279         (Link.set_Start): null out owner.sorted_links so it'll be
280         recreated by CreateLinkPieces.
281
282 2006-07-06  Chris Toshok  <toshok@ximian.com>
283
284         * LinkLabel.cs: revert the SetStyle change.
285
286 2006-07-06  Chris Toshok  <toshok@ximian.com>
287
288         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
289         (OnEnableChanged): s/Refresh/Invalidate
290         (OnGotFocus): if we have a focused index already, refocus it (so
291         if we mouse out/in to the window it'll focus the right link).
292         (OnKeyDown): move the tab handling out of here.
293         (OnLostFocus): don't set focused_index to -1, so we can refocus it
294         when we lose focus.
295         (OnMouseDown): don't Capture here - Control handles it.  Also,
296         focus the active link.
297         (OnMouseUp): don't deal with Capture.
298         (OnPaintBackgroundInternal): remove.
299         (OnTextAlignChanged): CreateLinkPieces before calling the
300         superclass's method.
301         (OnTextChanged): call CreateLinkPieces before calling superclass's
302         method.
303         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
304         move around.
305         (Select): implement this, moving the selection between different
306         links, and call parent.SelectNextControl if we don't have another
307         link to focus in the given direction.
308         (CreateLinkPieces): call Invalidate instead of Refresh.
309         
310 2006-07-06  Chris Toshok  <toshok@ximian.com>
311
312         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
313         new LinkLabel internals.
314
315         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
316         over pieces looking for active/focused/etc links.  also, deal with
317         runs of text (and links) with embedded \n's in them, and use
318         MeasureCharacterRanges instead of MeasureString to figure out the
319         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
320         two-step.
321
322 2006-07-04  Jackson Harper  <jackson@ximian.com>
323
324         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
325         XKB or key auto repeat, do it manually.  Without key auto repeat,
326         when a key is held down we get key press, key release, key press,
327         key release, ... with auto repeat we get key press, key press, key
328         press ..., and then a release when the key is actually released.
329
330 2006-07-03  Jackson Harper  <jackson@ximian.com>
331
332         * TabControl.cs:
333         * ThemeWin32Classic.cs: Tabs do not obey normal background color
334         rules, they are always control color regardless of the background
335         color.
336
337 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
338
339         * FileDialog.cs: Added internal class MWFConfig.
340           Removed Registry support and replaced it with support for the new
341           MWFConfig class. See MWFConfig comments for more information.
342
343 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
344
345         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
346           rectangle. Added some patches from eno from bug #78490 and fixed
347           the arrow position for small up and down CPDrawScrollButtons.
348
349 2006-06-30  Jackson Harper  <jackson@ximian.com>
350
351         * InternalWindowManager.cs: Remove some debug code.
352         * Form.cs: When an MdiParent is set to null, the window is
353         "detatched" and becomes a normal window.
354         * MdiClient.cs: Don't bring the new child form to the front until
355         it is activated (setting it as active does this), this makes the
356         previously active forms titlebar get redrawn as inactive.
357
358 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
359
360         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
361           with later controls
362
363 2006-06-29  Mike Kestner  <mkestner@novell.com>
364
365         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
366         arrow in keynav state.  Fixes #78682.
367
368 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
369
370         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
371           order (fixes #78393)
372
373 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
374
375         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
376           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
377           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
378           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
379           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
380           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
381           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
382           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
383           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
384           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
385           enumerations (FlagsAttribute, SerializableAttribute, added/removed
386           values)
387
388 2006-06-28  Mike Kestner  <mkestner@novell.com>
389
390         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
391
392 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
393
394         * PropertyGrid.cs,
395           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
396           item lines from other area (It also makes BackColor consistent and
397           compatible with .NET). Fixed bug #78564.
398
399 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
400
401         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
402         Patch from Eno for #78555.
403
404 2006-06-27  Chris Toshok  <toshok@ximian.com>
405
406         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
407
408         * DataGridColumnStyle.cs: same.
409
410         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
411         
412         * DataGridDrawingLogic.cs: nuke.
413
414 2006-06-27  Chris Toshok  <toshok@ximian.com>
415
416         * DataGridTableStyle.cs: clean up the constructors, and build the
417         list of child relations for this table.  I have no idea if this is
418         where we should be doing it (it probably isn't), but since we're
419         already iterating over the properties..
420
421         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
422         struct and array for keeping track of row information, similar to
423         what's shown in a hack on
424         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
425
426         * Theme.cs: be consistent about the naming of DataGrid methods,
427         prefering ColumnWidths and RowHeights over columnsWidths and
428         RowsHeights.
429
430         * ThemeWin32Classic.cs: same, and also add support for variable
431         sized rows (and the +/- expansion icons for related rows).
432
433 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
434
435         * TextBoxBase.cs: Applied Eno's patch from #78660
436
437 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
438
439         * Form.cs (ScaleCore): We don't want to scale our form if it's
440           state is minimized or maximized, but we still need to scale our
441           child windows. Also, added try/finally block to ensure layout
442           gets reset (Fixes #78697)
443
444 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
445
446         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
447
448 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
449
450         * Form.cs: Fixed c+p error and added check to resize form if minimum
451           size is bigger than current size (Fixes #78709)
452
453 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
454
455         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
456
457 2006-06-26  Mike Kestner  <mkestner@novell.com>
458
459         * ComboBox.cs: only do Keypress handling in the combo when there  
460         are items in the collection. Fixes #78710.
461
462 2006-06-26  Chris Toshok  <toshok@ximian.com>
463
464         * Binding.cs: make this work bi-directionally.  also, clear up
465         other mixups between Push/Pull Data (e.g. we're supposed to pull
466         data when validating).
467
468         * BindingManagerBase.cs: trim some fully qualified collection
469         types.
470
471         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
472
473 2006-06-23  Chris Toshok  <toshok@ximian.com>
474
475         * PropertyManager.cs: It appears (according to the unit tests)
476         that PropertyManager doesn't use
477         PropertyDescriptor.AddValueChanged to track propery value changes
478         in its datasource, but uses the same scheme as Binding, where it
479         looks for a <Property>Changed event and binds to it.
480
481         Also, according to the docs, IsSuspended always returns false for
482         a property manager with a non-null datasource.
483
484 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
485
486         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
487           need to update the actual DialogResult. (Fixes #78613)
488
489 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
490
491         * Form.cs (ShowDialog): Release any captures before running the
492           new message pump (fixes #78680)
493
494 2006-06-22  Mike Kestner  <mkestner@novell.com>
495
496         * ListView.cs: Layout column widths properly in details mode even 
497         if HeaderStyle.None is set.  Fixes #78691.
498
499 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
500
501         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
502
503 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
504
505         * Control.cs (ContainsFocus): Using new driver method to get focused
506           window, instead of trying to use internal tracking var, which can
507           recursion issues (Fixes #78685)
508         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
509           XplatUIWin32.cs: Added GetFocus method to return focused window
510
511 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
512
513         * ColorDialog.cs: when the mouse button is pressed inside the color
514         matrix, don't let the cursor move out of it until the button is
515         released, which is the behavior on windows. Changed 'colours' by
516         'colors' to use the same word consistently.
517
518 2006-06-21  Chris Toshok  <toshok@ximian.com>
519
520         * DataGrid.cs: add in some basic navigation stuff (navigating to a
521         child relation and back, using a stack).  Also, remove
522         GetDataSource and the code that calls it - it's not needed.  Also,
523         track CurrencyManager.ListName's removal.
524
525 2006-06-21  Chris Toshok  <toshok@ximian.com>
526
527         * CurrencyManager.cs: push some of the original type checking from
528         BindingContext.CreateBindingManager to here, and remove some of
529         the finalType stuff.  Need more tests to make sure I've got the
530         ListName part right, and we might need more in SetDataSource.
531
532         * PropertyManager.cs: add a ctor that takes just the datasource,
533         and no property name.  Make SetDataSource work with a null
534         property_name, and make Current return the data_source if the
535         property descriptor is null.  this makes 'string foo = "hi";
536         BindingContext[foo].Current' return "hi" as it should.
537
538         * RelatedCurrencyManager.cs: make this code more generic - there's
539         no reason the parent manager has to be CurrencyManager, and
540         there's no reason to pass the DataRelation.  It suffices to use a
541         BindingManagerBase and PropetyDescriptor.
542
543         * RelatedPropertyManager.cs: make a similar change here.
544         
545         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
546         flower I knew it could be.
547
548 2006-06-20  Chris Toshok  <toshok@ximian.com>
549
550         * PropertyManager.cs: the PropertyChangedHandler is invoked when
551         data in the source has changed and we need to update the control,
552         so s/PullData/PushData.
553
554         * CurrencyManager.cs: Refresh is meant to update the control from
555         data in the datasource.  So, s/PullData/PushData.
556
557         * BindingContext.cs: add more ugliness (we weren't handling the
558         case where data_source = DataTable and data_member = column_name).
559
560         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
561         from the perspective of the datasource.  PullData pulls from the
562         control, PushData pushes to the control.
563
564 2006-06-20  Chris Toshok  <toshok@ximian.com>
565
566         * BindingContext.cs: rewrite the CreateBindingManager code to
567         handle navigation paths more or less properly.  This could
568         definitely stand some more work, in particular to push the
569         recursion up to the toplevel.  But that relies on fixes in other
570         places (System.Data comes to mind).
571
572         Also, move to a flat hashtable (and encode the twolevel nature of
573         the dictionary into the hash key).  This lets us implement the
574         IEnumerable.GetEnumerator method.
575
576         * RelatedCurrencyManager.cs: new class.  Update our view based on
577         our relation and our parent CurrencyManager's position.
578
579         * CurrencyManager.cs: split out some logic from the ctor into
580         SetView, so it can be called from the new RelatedCurrencyManager
581         subclass.
582
583         * RelatedPropertyManager.cs: new class.  Update our datasource
584         based on the position of our parent CurrencyManager.
585
586         * PropertyManager.cs: split out some logic from the ctor into
587         SetDataSource, so it can be called from the new RelatedDataSource
588         subclass.  Also, make the Current getter return the value
589         of the PropertyDescriptor, not the data_source.
590
591         * Binding.cs: no need to duplicate the string splitting code here.
592
593 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
594
595         * Control.cs:
596           - set_Enabled: OnEnabledChanged is not called if the inherited state 
597             of the control is not altered, even though  we might be changing the
598             internal state of the control (#78458)
599           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
600             OnEnabledChanged, to allow easy altering of any child window state
601           - OnEnabledChanged: Added code to enable/disable driver window state
602           - OnParentEnabledChanged: Instead of firing the event, call 
603             OnEnabledChanged, which will fire the event and also a) set driver
604             window state and pass the enabled state to any grandchildren (#78458)
605
606 2006-06-19  Jackson Harper  <jackson@ximian.com>
607
608         * InternalWindowManager.cs: We don't set the cursor explicitly
609         thats done via the response to NCHITTESTs.
610         - Don't need to adjust for titlebar heights anymore, the
611         coordinates are coming in the correct coordinates now (see peters
612         last patch).
613
614
615 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
616
617         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
618           being translated relative to whole window, instead of client window.
619           That caused broken offsets on mouseclick (and caused gas for our
620           InternalWindowManager)
621
622 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
623
624         * TextControl.cs:
625           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
626           - Undo(): Added replay of cursor move on DeleteChars action; added
627             calling Undo() again if a recorded cursor move is invalid (to
628             ensure that some action is performed on Undo)
629         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
630
631 2006-06-16  Jackson Harper  <jackson@ximian.com>
632
633         * MdiClient.cs: Instead of just sizing maximized windows when
634         there is a resize we also have to adjust the Y of minimized
635         windows, so they stay pinned to the bottom of the mdi container.
636         - Eliminate separate tracking of the active control, we can just
637         get this from the controls collection.
638         - Paint the decorations for the newly activated titlebar so we get
639         a pretty blue bar.
640         * InternalWindowManager.cs:
641         * ThemeWin32Classic.cs: Minimized windows get all three buttons
642         even if they are a tool window.
643         
644 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
645
646         * TextControl.cs (Undo): Handle non-existent cursor locations in the
647           undo buffer, these can happen when text was deleted and the cursor
648           was recorded first. Since we will also have a recorded cursor
649           after the delete this is not an issue. (Fixes #78651)
650
651 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
652
653         * AccessibleObject.cs: Remove dependence on Control.is_selected;
654           instead properly track control states internally (allows us to
655           remove is_selected from Control)
656
657 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
658
659         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
660         whose width is not a multiple of 8.
661
662 2006-06-13  Jackson Harper  <jackson@ximian.com>
663
664         * MdiClient.cs:  Only maximize the next child if the current one
665         is maximized.
666
667 2006-06-13  Chris Toshok  <toshok@ximian.com>
668
669         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
670         modified.  Also, guard against grid or grid_drawing being null in
671         Invalidate.
672
673         * DataGrid.cs: Reformat tons of getters/setters.  In the
674         DataMember setter, just call SetNewDataSource instead of
675         duplicating some of its functionality.  In SetNewDataSource, don't
676         check ListManager for null, since the property getter creates the
677         object if needed.
678
679         * DataGridTableStyle.cs: don't set TableStyle or call
680         SetDataGridInternal on the column here, it's done in
681         GridColumnStylesCollection.Add.
682
683         * GridColumnStylesCollection.cs: fix all the explicit interface
684         implementations to just call our methods.  Nuke AddInternal() and
685         move the body of it to Add().  Also, add a call to
686         column.SetDataGridInternal to Add().
687
688         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
689         base()+duplicate code.  Also, use the Format property instead of
690         format to generate an Invalidate ala MS.  Lastly, create the
691         textbox here, unconditionally.
692         (set_Format): call Invalidate.
693         (get_TextBox): no need to call EnsureTextBox.
694         (Commit): remove the message box.
695         (Edit) remove the call to EnsureTextBox.
696         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
697         (EnterNullValue): no need to check textbox for null.
698         (HideEditBox): no need to check textbox for null.
699         (SetDataGridInColumn): add the textbox to the grid's controls.
700         (EnsureTextBox): nuke.
701         
702 2006-06-13  Jackson Harper  <jackson@ximian.com>
703
704         * MdiWindowManager.cs: Hook up to the maximized menus paint event
705         and redraw the buttons when needed. Unhook when the window is
706         unmaximized.
707         * MainMenu.cs: Add an internal Paint event, the mdi window manager
708         needs this so that it can redraw its buttons when the menu is
709         repainted.
710         * InternalWindowManager.cs:
711         * Form.cs: The method order has changed for DrawMaximizedButtons,
712         so that it can be a PaintEventHandler.
713         
714 2006-06-13  Jackson Harper  <jackson@ximian.com>
715
716         * MdiClient.cs: When we close a maximized mdi window, the next mdi
717         window is activated and maximized, even if it wasn't before.
718         - When  a new window is activated repaint the decorations of the
719         old one, so that it no longer has the Active "look" (the blue
720         titlebar).
721         * InternalWindowManager.cs: Open up CreateButtons to base classes
722         so they can recreate the buttons on state changes.
723         - If a window is maximized give it all three buttons
724         * MdiWindowManager.cs: Create the titlebar buttons when the state
725         is changed, this is needed because a toolwindow will not have all
726         three buttons until it is maximized.
727
728 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
729
730         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
731           Fixed bug #78609.
732
733 2006-06-12  Jackson Harper  <jackson@ximian.com>
734
735         * KeysConverter.cs: Make sure we handle the Ctrl special case
736         if its the only key.
737         
738 2006-06-12  Jackson Harper  <jackson@ximian.com>
739
740         * Theme.cs: Add a method to get the size of a managed window
741         toolbar button.
742         * InternalWindowManager.cs: Remove the ButtonSize property, this
743         should be retrieved from the theme.
744         * MdiWindowManager.cs: Get the button size from the theme
745         * ThemeWin32Classic.cs: Make the method to get the managed window
746         titlebar button size public.
747         - Handle the different button sizes of maximized toolwindows
748         (should match any maximized window).
749         - Get the titlebar height from the theme, not the WM (which gets
750         it from the theme).
751
752 2006-06-12  Jackson Harper  <jackson@ximian.com>
753
754         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
755         event down to the mdi window manager.
756         - Expose some extra stuff to base classes
757         - Make sure to end the Capture on an NC Mouse up, so that we can
758         get double clicks properly, and the sizing doens't stick.
759         - When doing PointToClient contain it in the workable desktop
760         area, this prevents windows from changing size when the cursor is
761         pulled outside of the working area while sizing.
762         * MdiWindowManager.cs: When we get a double click maximize the
763         window.
764         - Reset the cursor after handling mode changes.
765
766 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
767
768         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
769           current desktop, instead of just assuming a 0, 0 origin. This
770           is needed for our internal window manager, to know the top
771           margin of the desktop
772
773 2006-06-12  Chris Toshok  <toshok@ximian.com>
774
775         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
776         we need this to get rid of the selected background in the bool
777         column.
778         (CancelEditing): move the ConcedeFocus call to above the Abort
779         call.  Also, set is_changing to false and invalidate the row
780         header if we were changing before.
781         (ProcessKeyPreviewInternal): remove, since noone outside this
782         class calls it anymore.  Roll the code into ProcessKeyPreview.
783         (EndEdit): remove the internal version.
784         (InvalidateCurrentRowHeader): make private.
785
786         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
787         Keys.Escape handling (and with it the last call to
788         DataGrid.EndEdit from outside the class.)
789
790
791 2006-06-12  Chris Toshok  <toshok@ximian.com>
792
793         * DataGridTextBox.cs (.ctor): isedit defaults to false.
794         (OnKeyPress): set isedit to true.
795         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
796         already handled by the grid.
797
798         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
799         right.  ugh.
800         (set_DataSource): SetDataSource always returns true, so stop
801         putting it in an if statement.
802         (EndEdit): get rid of some {}'s
803         (ProcessGridKey): return true in case Keys.Escape.
804         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
805         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
806         PositionChanged, stopped connecting to CurrentChanged.
807         (GetDataSource): simplify this a bunch.
808         (SetDataSource): change return type from bool to void.
809         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
810         to this, and make sure we don't set ListManager.Position inside
811         set_CurrentCell.
812         (OnListManagerItemChanged): if we're passed an actual index,
813         redraw that row.
814
815         * CurrencyManager.cs (set_Position): don't call PullData here.
816
817 2006-06-09  Jackson Harper  <jackson@ximian.com>
818
819         * TreeNode.cs:  Recalculate the visible order before doing the
820         Expand/Collapse Below calls, because those calls generate an
821         expose.
822         - Reduce calls to the TreeView property, which is mildly expensive
823         by using a local var.
824         * Form.cs: Layout the MDI child windows when creating the parent
825         form.
826         - Don't use the internal constructor anymore
827         * MdiClient.cs: use the parent form width/height (if available)
828         when laying out the child windows, we do this because the
829         mdiclient isn't docked yet when the initial layout is done.
830         - Don't need an internal constructor anymore.
831
832 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
833
834         * FileDialog.cs: handle access errors when trying to create a folder
835         or changing to a directory. No need to initialize out parameters.
836
837 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
838
839         * FileDialog.cs: Append a number when creating a new folder if the
840           folder already exists (use parenthesis instead of square brackets)
841
842 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
843
844         * FileDialog.cs:
845           - Disabled registry support for windows and added better registry
846             error checking for other systems (need to investigate why it
847             works perfectly on my system)
848           - If a folder already exist show an error MessageBox instead of
849             trying to create an indexed name.
850           - Fixed a non intentional typo.
851
852 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
853
854         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
855
856 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
857
858         * FileDialog.cs: When creating a new folder don't crash if the
859           folder already exists.
860
861 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
862
863         * FileDialog.cs: Allmost a complete rewrite.
864           - added a "virtual" file system that handles the differences
865             between unix and windows file systems (especially the directory
866             structure). Moved most of the directory and file handling code
867             into the vfs.
868             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
869             UnixFileSystem and FSEntry.
870           - Recently used folder/directory, size, location and used file names
871             (file name ComboBox) are now stored in the registry and get read
872             before the dialog shows up (fixes part 6 of bug #78446).
873           - Creation of new folders/directories is now possible (context menu
874             or ToolBar). Added TextEntryDialog for this that fills in the gap
875             until ListView.LabelEdit works.
876           - Fixed cursor handling (bug #78527) and focus handling for
877             PopupButtonPanel
878           - Various "Search in" ComboBox enhancements. The content of the
879             dropdown listbox now almost matches ms.
880           - Changed the behaviour when the user switches to SpecialFolder
881             Recent to show the ListView in View.Details.
882           - Beside using the ToolBar to change the View property of the
883             file ListView it is now possible to use the context menu too.
884
885 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
886
887         * ComboBox.cs: Don't create a new ObjectCollection when an item
888           gets inserted. Just insert the item in the existing object_items
889           ArrayList.
890
891 2006-06-08  Jackson Harper  <jackson@ximian.com>
892
893         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
894         that the treeview and root node checks are done also, this fixes a
895         regression i caused in the unit tests.
896
897 2006-06-07  Wade Berrier <wberrier@novell.com> 
898
899         * RichTextBox.cs: More ISO8859-1 -> unicode
900
901 2006-06-07  Mike Kestner  <mkestner@novell.com>
902
903         * ComboBox.cs : use items to hold highlight/selection so that
904         collection insertions don't require synchronization.
905
906 2006-06-07  Jackson Harper  <jackson@ximian.com>
907
908         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
909         routine.  We now always keep the sized edge at the cursor instead
910         of computing movement and adjusting rects.  There is one buglet
911         with this method though when the cursor is moved over area that
912         the window can not expand too (such as the toolbars on the desktop).
913
914 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
915
916         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
917         here. Fixes crash on startup in AlbumSurfer.
918
919 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
920
921         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
922           values
923
924 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
925
926         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
927         statement to avoid calling XNextEvent which will block if another thread
928         took the event that we were expecting. Fixes bug #78605.
929
930 2006-06-07  Mike Kestner  <mkestner@novell.com>
931
932         * ListView.cs : isolated checkbox clicking from the selection logic.
933         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
934
935 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
936
937         * Form.cs: Check that the value passed to Form.DialogResult
938         is a valid enum value.
939
940 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
941
942         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
943         Computer'. Clicking it in the network view goes to 'My Computer'.
944         Added CIFS filesystem type. Display the mount point of filesystems.
945         Avoid duplicate mount points (happens for me with CIFS);
946
947 2006-06-06  Jackson Harper  <jackson@ximian.com>
948
949         * InternalWindowManager.cs: Draw the maximized windows buttons
950         when resizing.
951
952 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
953
954         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
955         all other dialogs. Fixes bug #78585.
956
957 2006-06-06  Mike Kestner  <mkestner@novell.com>
958
959         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
960         Only invalidate checkbox on checkstate changes to avoid flicker.
961         * ListBox.cs : avoid unselect/select when clicking selected item.
962         avoid reselection flicker for already multiselected items.
963         Fixes #78382.
964
965 2006-06-06  Jackson Harper  <jackson@ximian.com>
966
967         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
968         the parent form so that the menu is removed if needed.
969
970 2006-06-06  Mike Kestner  <mkestner@novell.com>
971
972         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
973         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
974
975 2006-06-06  Mike Kestner  <mkestner@novell.com>
976
977         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
978
979
980 2006-06-06  Jackson Harper  <jackson@ximian.com>
981
982         * Control.cs: Use the property (instead of the field) to get the
983         default cursor so it is instantiated correctly.
984         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
985         resizes so we need to manually repaint the window decorations here.
986         - Set the titlebar button locations as soon as they are created,
987         otherwise they are not set correctly on win32.
988         
989 2006-06-06  Chris Toshok  <toshok@ximian.com>
990
991         * CurrencyManager.cs (set_Position): call PullData before
992         OnCurrentChanged.
993         (AddNew): after calling IBindingList.AddNew, update our
994         listposition, and call OnCurrentChanged/OnPositionChanged (without
995         calling PullData).
996         (OnCurrentChanged): remove the call to PullData from here.
997         (OnItemChanged): remove the call to PushData from here.
998         (OnPositionChanged): change the test from == null to != null to
999         match the other methods.
1000         (ListChangedHandler): the grossest part of the patch.  Implement
1001         this such that it passes the unit tests in CurrencyManagerTest and
1002         the output more or less matches that of MS's implementation.
1003  
1004 2006-06-06  Mike Kestner  <mkestner@novell.com>
1005
1006         * ListView.cs : only update check state on single click.
1007         * ThemeWin32Classic.cs : fix focus drawing for details view without
1008         fullrowselect.  Fixes #78454.
1009         * XplatUIX11.cs : fix for double click emission.
1010
1011 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
1012
1013         * PropertyGridView.cs : Applied Atsushi's patch to fix
1014         font dialog bug  (#78197).
1015
1016 2006-06-05  Jackson Harper  <jackson@ximian.com>
1017
1018         * TreeNode.cs: Compute the next node for expanding/collapsing
1019         correctly. We now factor in nodes without a NextNode
1020         correctly. (Fixes somes cases in nunit-gui).
1021         * InternalWindowManager.cs: Set the bounds when updating the
1022         virtual position of a tool window.
1023         
1024 2006-06-05  Chris Toshok  <toshok@ximian.com>
1025
1026         * DataGrid.cs: rename cached_currencymgr to list_manager.
1027         (set_CurrentCell): move SetCurrentCell code here, and clean it up
1028         some.
1029         (CurrentRow, CurrentColumn): single accessors so we can make the
1030         cursor movement code a lot easier to understand.
1031         (CurrentRowIndex): implement this in terms of CurrentRow.
1032         (BeginEdit): clean this up a bit.
1033         (CancelEditing): sort out the is_editing/is_changing/is_adding
1034         stuff a little.
1035         (EndEdit): minor changes.
1036         (OnKeyDown): add a comment about a (most likely) unnecessary
1037         check.
1038         (OnMouseDown): cancel editing when we click on a row header.  And
1039         use the CurrentRow setter, not CurrentCell.
1040         (ProcessDialogKey): directly call ProcessGridKey.
1041         (UpdateSelectionAfterCursorMove): factor out this common block of
1042         code (it's used everywhere that we move the cursor by updating row
1043         or column).
1044         (ProcessGridKey): pretty substantial overhaul.  Use the
1045         CurrentRow/CurrentColumn properties to make the code a lot more
1046         readable.  Only use the CurrentCell property when we have to
1047         modify both row and column at once.  Tab behavior is still broken,
1048         and Delete is untested.
1049         (Select): if we have no selected rows, set selection_start to
1050         @row.
1051         (EditCurrentCell): rename EditCell this.  It was only ever invoked
1052         with CurrentCell as the arg, so drop the arg and rename it.
1053
1054         * DataGridColumnStyle.cs: clean up the constructors a little, and
1055         drop CommonConstructor().
1056
1057         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
1058         actually get notified when the user hits it.
1059         (ProcessKeyMessage): *substantially* simplify this method.
1060         There's no reason (that I can see) for the textbox to be making
1061         calls into the datagrid at all.  Remove all of them but the ones
1062         for Enter handling.  those will take some more work.
1063
1064         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
1065         calling HideEditBox.
1066         (HideEditBox): if we have an active textbox, render it invisible
1067         without causing a re-layout of the datagrid.
1068
1069 2006-06-05  Mike Kestner  <mkestner@novell.com>
1070
1071         * ListView.cs : fix NRE crasher when focuseditem is cleared by
1072         collection changes by resetting it to Items[0].  Fixes #78587.
1073
1074 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1075
1076         * MessageBox.cs: if the height of the text is larger than the icon_size,
1077         use that. Fixes bug #78575.
1078
1079 2006-06-05  Jackson Harper  <jackson@ximian.com>
1080
1081         * TreeView.cs: Fix line drawing when scrolling.  To do this each
1082         node is basically responsible for drawing its entire horizontal
1083         area.  When drawing a node it draws its parent node lines if
1084         needed.
1085         - Adjust the clip area to the viewport rectangle
1086         - Fix Left/Right key handling to match MS. (It expand/collapses
1087         and moves to parents/first child but does not move selection to
1088         sibling nodes).
1089         - Fix SetTop to work with new bound calculation code
1090         - When scrollbars are no longer needed we need to reset scrolling
1091         vars and recalculate the visible order so the redraw is correct
1092         * TreeNode.cs: We can't expand/collapse nodes with no children.
1093
1094 2006-06-03  John Luke  <john.luke@gmail.com> 
1095
1096         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
1097         so the colors work without dev packages
1098         
1099 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
1100
1101         * Control.cs 
1102           - Select: Implemented to just use activate. Seems to match MS 
1103             behaviour closest. Documented to only do actual control walking 
1104             based on it's parameters if in a container control so I moved 
1105             the code there.
1106           - Removed selection check logic from our internal Select() method
1107         * ContainerControl.cs:
1108           - Select: Moved selection logic from Control here, since MS documents
1109             that containers obey the bool arguments. No longer calling base
1110
1111 2006-06-02  Jackson Harper  <jackson@ximian.com>
1112
1113         * TreeView.cs: If the selected node isn't changed when we get
1114         focus update the previously selected node so that we see the
1115         selection box.
1116
1117 2006-06-02  Mike Kestner  <mkestner@novell.com>
1118
1119         * ComboBox.cs: restructure grab and general mouse event handling.
1120         Make the composite control raise mouse events like it was a single
1121         control for leaves/enters/motion/up/down events.  fix dropdown list
1122         coordinate mangling and refactor it into the scrollbar subclass to
1123         reduce code duplication.  Fixes #78282 #78361 and #78457.
1124
1125 2006-06-02  Mike Kestner  <mkestner@novell.com>
1126
1127         * ScrollBar.cs: remove Capture setting/clearing, as it happens
1128         automatically in the Control.WndProc.
1129
1130 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1131
1132         * FileDialog.cs: fix crash when running SharpChess, which sets the
1133         FilterIndex to 2 with only one Filter.
1134
1135 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1136
1137         * ToolBar.cs: add SizeSpecified property.
1138         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
1139         try to figure out our real size, otherwise fallback to what the
1140         container says.
1141
1142 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
1143
1144         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
1145         * Control.cs (WndProc): MS always calls the DefWndProc to pass
1146           up the event
1147
1148 2006-06-01  Mike Kestner  <mkestner@novell.com>
1149
1150         * ListView.cs: revamp the focus management in ListView.  It still
1151         causes churn of LostFocus/GotFocus emissions on clicks, but it's
1152         better than not handling focus at all.  Will revisit when pdb feels
1153         the general focus handling is solid.  Fixes #78526.
1154
1155 2006-06-01  Jackson Harper  <jackson@ximian.com>
1156
1157         * TreeView.cs: Set the default border style in the constructor.
1158         - Move painting to use OnPaintInternal instead of capturing
1159         WM_PAINT, this is the correct way of doing things
1160         - UpdateBelow shouldn't invalidate the scrollbar area
1161         - Cap the top on update below in case the node was above the top
1162         of the viewport rectangle.
1163         - ExpandBelow and Collapse below need to obey Begin/End Update.
1164         * TreeNode.cs: Make is_expanded internal so the treenode
1165         collection can change it without firing the whole event chain.
1166         * TreeNodeCollection.cs: When clearing all the child nodes make
1167         sure to recalc the visible order.
1168         - Improve algo for remove the top node
1169
1170 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
1171
1172         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
1173           SendMessage directly calling window procedures, which in turn might
1174           call SetFocus()
1175
1176 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
1177
1178         * Control.cs: Don't handle WM_SETFOCUS if the same window already
1179           has focus (works around X11 sending a FocusIn after our SetFocus)
1180         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
1181
1182 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
1183
1184         * Mime.cs: Fix for the NET_2_0 build.
1185           NameValueCollection needs StringComparer now.
1186
1187 2006-05-31  Chris Toshok  <toshok@ximian.com>
1188
1189         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
1190         return (via an out parameter) the starting X of the column.
1191         (UpdateVisibleColumn): track change to FromPixelToColumn.
1192         (HitTest): add a ColumnResize case here.
1193         (DrawResizeLine): new function, probably poorly named.
1194
1195         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
1196         only need to keep one reference.
1197         (set_ListManager): same.
1198         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
1199         Also, add support for HitTestType.ColumnResize.
1200         (OnMouseMove): add column resize behavior here, and change the
1201         cursor to the correct one as we move around the datagrid.
1202         (OnMouseUp): terminate the column resize if we're resizing.
1203         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
1204         for the current cell.
1205         (ConnectListManagerEvents): use cached_currencymgr.
1206         (DisconnectListManagerEvents): fill this in, using
1207         cached_currencymgr.
1208         (SetCurrentCell): remove cached_currencymgr_events handling.
1209         (SetDataMember): only call DisconnectListManagerEvents if
1210         cached_currencymgr is != null.
1211         (SetDataSource): same.
1212         (OnListManagerCurrentChanged): cached_currencymgr_events ->
1213         cached_currencymgr.
1214
1215 2006-05-31  Jackson Harper  <jackson@ximian.com>
1216
1217         * BindingManagerBase.cs: Remove somedebug code that creeped into
1218         SVN.
1219         * TreeNode.cs: We get the indent level dynamically right now, so
1220         don't track it as a member.
1221         * TreeNodeCollection.cs: Make sure all nodes added to the list
1222         have parents, treeviews/topnodes setup properly.
1223         - Don't attempt to track indent level.
1224
1225 2006-05-30  Jackson Harper  <jackson@ximian.com>
1226
1227         * BindingContext.cs: Create the currency manager tables here.
1228         This allows us to more easily create null tables (when bad data
1229         members are used), and more easily create related currency
1230         managers.
1231         * CurrencyManager.cs: All the table creation stuff is done by the
1232         binding context now.
1233         - Current should throw an exception if listposition is -1.
1234         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
1235         been bound yet.
1236
1237 2006-05-30  Mike Kestner  <mkestner@novell.com>
1238
1239         * ListView.cs: allow reexpansion of zero-width column headers.
1240         Fixes #78528.
1241
1242 2006-05-28  Chris Toshok  <toshok@ximian.com>
1243
1244         * CurrencyManager.cs (get_Current): after the late binding
1245         listposition = -1 fix, we need to guard against it here and return
1246         null, otherwise we raise an exception (which is swallowed
1247         elsewhere, and breaks datagrid databinding.)
1248
1249 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
1250
1251         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
1252           than WM_SYSKEY, don't throw if get something unexpected (#78507)
1253
1254 2006-05-26  Jackson Harper  <jackson@ximian.com>
1255
1256         * ControlPaint.cs:
1257         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
1258         values, it's faster and it's all we care about (we don't care if
1259         the names aren't equal).
1260         * KeyboardLayouts.cs: Eliminate some dead code.
1261         - Lazy init things
1262         * X11Keyboard.cs: Lazy init keyboard detection.
1263         - Cleanup access modifiers a little.
1264
1265 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
1266
1267         * XplatUIX11.cs: Once again, attempting to get layout just right.
1268
1269 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
1270
1271         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
1272           the sizes of each link section, that will result in sizes that
1273           match DrawString's layout (Fixes #78391)
1274
1275 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
1276
1277         * FileDialog.cs: If AddExtension property is true autocomplete the
1278           extensions in SaveFileDialog correctly. Fixes bug #78453.
1279           Set MyNetwork and MyComputer to "C:\" for windows. This should
1280           fix part 8 of bug #78446 for now.
1281
1282 2006-05-26  Chris Toshok  <toshok@ximian.com>
1283
1284         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
1285         invalidate the current row header if we need to, but presumably
1286         we'll invalidate the row corrsponding to the bounds or
1287         editingControl.
1288         (GridHScrolled): switch back to this method, as it's part of the
1289         public api.  *sigh*.
1290         (GridVScrolled): same.
1291         (OnMouseWheel): hack up something that more or less works.  Call
1292         GridHScrolled/GridVScrolled directly, instead of duplicating much
1293         of their code here.
1294         (EnsureCellVisibility): reinstate a bunch of this code, since we
1295         can't just set the scrollbar Value and expect to do all the work
1296         in the ValueChanged handler.  Also, Call Update() after scrolling
1297         in one direction so the other XplatX11.ScrollWindow call has the
1298         proper stuff in the proper places.
1299         (EditCell): set is_editing to true before calling .Edit.
1300
1301         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
1302         don't bother comparing first.
1303         (OnKeyPress): call grid.ColumnStartedEditing before calling
1304         base.OnKeyPress.  this will set is_changing and invalidate the row
1305         header if necessary.
1306         (ProcessKeyMessage): for WM_CHAR messages, call
1307         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
1308         and WM_KEYDOWN.
1309         
1310         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
1311         it's done in the DataGrid.
1312         (NextState): call grid.ColumnStartedEditing, which takes care of
1313         invalidating the row header (and setting is_changing).
1314
1315         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
1316         here.  it's done in the DataGrid.
1317
1318 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1319
1320         * Control.cs: allow changing the cursor when the mouse position is
1321         out of bounds but Capture is set.
1322         * LinkLabel.cs: handle the case when the mouse button is pressed on the
1323         linklabel but released somewhere else.
1324
1325 2006-05-25  Jackson Harper  <jackson@ximian.com>
1326
1327         * TreeView.cs: When we get focus if there is no selected node make
1328         it the top node
1329         - Remove some uneeded setup code from Draw.
1330         * TreeNodeCollection.cs: If the tree doesn't have a top node when
1331         a new node is inserted make the new node the top.
1332         * XplatUIX11.cs:
1333         * Timer.cs: Use Utc time so that no local time zone stuff needs to
1334         be used (should be faster).
1335         
1336 2006-05-25  Chris Toshok  <toshok@ximian.com>
1337
1338         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
1339         problem with the last commit.
1340
1341 2006-05-25  Chris Toshok  <toshok@ximian.com>
1342
1343         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
1344         need the invalidate call here, while scrolling right-to-left via
1345         the left arrow key (i.e. moving the editing cell while scrolling).
1346
1347         * DataGrid.cs (.ctor): remove the initialization of
1348         ctrl_pressed/shift_pressed.  We no longer track them using key
1349         up/down handlers, but by using Control.ModifierKeys.  Also, switch
1350         to using ValueChanged handlers on the scrollbars instead of
1351         Scrolled event handlers.  This simplifies a bunch of the scrolling
1352         code.
1353         (GridHValueChanged): rename from GridHScrolled, and change it to
1354         work with the new event args.
1355         (GridVValueChanged): same.
1356         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
1357         (OnMouseWheel): actually scroll the datagrid.  Don't change the
1358         selected cell.
1359         (ProcessGridKey): correct all the keyboard navigation stuff I
1360         could find.  Ctrl up/down/left/right/home/end work now.
1361         (EnsureCellVisibility): correct method name spelling.  Also,
1362         simplify this a touch by not explicitly calling the
1363         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
1364         scrollbar value.
1365         (OnKeyUpDG): no need for this method now.
1366         
1367 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1368
1369         * LinkLabel.cs: display the OverrideCursor when hovering the label.
1370         Fixes bug #78392.
1371
1372 2006-05-25  Chris Toshok  <toshok@ximian.com>
1373
1374         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
1375         r61019.
1376
1377 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1378
1379         * Application.cs: Moved setting of is_modal and closing to before
1380           we create the control, to allow the event handlers called as a
1381           result of creation affect closing. Also removed Gonzalo's previous
1382           change to setting DialogResult, the behaviour has been moved to 
1383           Form.ShowDialog()
1384         * Form.cs: 
1385           - ShowDialog(): Removed explicit creation of the form, let RunLoop
1386             handle it instead
1387           - ShowDialog(): If no dialog result is set, we need to return Cancel
1388           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
1389             the close is cancelled
1390
1391 2006-05-25  Jackson Harper  <jackson@ximian.com>
1392
1393         * StatusBar.cs: We only need to update the sizes of the other
1394         panels when we have auto size contents.  Also we are only updating
1395         the contents of the panel, not the borders, so compensate for the
1396         border width (TODO: get this width from the theme somehow).
1397         * TreeView.cs: Scrollable is true by default
1398         - Use invalidate instead of refresh where needed
1399         - Factor the scrollable value into scrollbar updating
1400         - Update the scrollbars if the Scrollable property is altered
1401         - Update the selected node if its ImageIndex is changed
1402         - Handle null nodes in UpdateNode (mainly so we don't have to
1403         check if selected is null when updating it
1404         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
1405         are factored into the visible count
1406         - Use VisibleCount for clarity in the code
1407         - When the font is changed we need to recurse through all the
1408         nodes and invalidate their sizes
1409         
1410 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1411
1412         * Application.cs: set the DialogResult to fixed when the main form is
1413         hidden or destroyed while being modal.
1414
1415 2006-05-25  Miguel de Icaza  <miguel@novell.com>
1416
1417         * Theme.cs: Use Tangoified messagebox icons. 
1418
1419         (GetSizedResourceImage): Also cope with width = 0 and do not
1420         trigger a warning in that case (0 means "give me your icon from
1421         the resouce, no special size needed).
1422
1423 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1424
1425         * Application.cs: Leave runloop if the the main modal form is 
1426           hidden (fixes #78484)
1427
1428 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1429
1430         * BindingContext.cs : reject null datasource in Contains() and
1431           Item[].
1432         * CurrencyManager.cs : check data_member validity when data_source
1433           is dataset. When it is late binding, the initial position is -1.
1434
1435 2006-05-24  Jackson Harper  <jackson@ximian.com>
1436
1437         * TreeNodeCollection.cs: Dont't recalculate the visible order on
1438         inserted nodes that aren't visible.  This changes the
1439         max_visible_order which confuses scrollbar settings.
1440         - Use the enumerator to get the prev node instead of duplicating
1441         code.
1442         * TreeView.cs: Use new method for setting scrollbar values
1443         - Don't set the bounds every time the scrollbar is updated
1444         - When updating below the root node use an invalidate instead of a
1445         refresh to prevent the child controls (scrollbars) from being
1446         refreshed. (UpdateBelow still needs to be reworked anyways).
1447         - Reenable SetBottom now that visible orders are set correctly,
1448         added some debug code incase we ever get bad values there again.
1449         - Set the scrollbar max to 2 less then the max value, this
1450         compensates for the max value being one above the node count, and
1451         for scrollbars adding one extra "notch".
1452         - When drawing image nodes if there is an imagelist we draw the
1453         first image in the list if the supplied image index is out of the
1454         image list's bounds.
1455         
1456 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1457
1458         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
1459           we receive a size change from the WM (Fixes #78503)
1460
1461 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
1462
1463         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
1464           rectangle (Fixes #78501)
1465
1466 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1467
1468         * ButtonBase.cs: 
1469           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
1470             as a bitfield.
1471           - Fixed MouseMove to no longer switch pressed state unless the left
1472             mouse button is pressed. Atsushi provided the original patch (#78485)
1473           
1474 2006-05-24  Jackson Harper  <jackson@ximian.com>
1475
1476         * ScrollBar.cs: New internal methods that allow us to change a
1477         couple values on the scrollbar (the most common case is maximum
1478         and large change) without getting multiple invalidates.
1479
1480 2006-05-24  Chris Toshok  <toshok@ximian.com>
1481
1482         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
1483         (Edit): save off the original state in oldState, and set
1484         grid.is_editing to true.
1485         (OnKeyDown): abort editing if escape is pressed.  also, call
1486         NextState if space is pressed.
1487         (OnMouseDown): call NextState.
1488         (NextState): factor out shared code from OnKeyDown and OnMouseDown
1489         here.  Also, only invalidate the row header once (on the initial
1490         is_changing switch) to save on redraws.
1491
1492 2006-05-24  Chris Toshok  <toshok@ximian.com>
1493
1494         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
1495         if the value in the cell is different than it was before.  This
1496         keeps us from triggering a layout when we move around a datarid
1497         with a highlighted cell.
1498         (Edit): suspend layout when creating/positining the text box, and
1499         resume passing false so we don't ever actually re-layout.
1500         (ReleaseHostedControl): same.
1501         (EnsureTextBox): reformat slightly, and set WordWrap to false.
1502
1503         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
1504         control-key sequences should go to the datagrid - remove that
1505         lock.  Also, modify the conditions under which we move between
1506         cells when moving the cursor within a cell, and remove the "this"
1507         and "base" from field accesses.  We weren't even consistent, given
1508         they all were in the base class.
1509
1510 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
1511
1512         * Binding.cs : (.ctor)
1513           An obvious NRE fix for BindingTest.CtorNullTest().
1514
1515 2006-05-23  Chris Toshok  <toshok@ximian.com>
1516
1517         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1518         them between lines.  This fixes some quirks editing cells in the
1519         datagrid.
1520
1521 2006-05-23  Jackson Harper  <jackson@ximian.com>
1522
1523         * TreeView.cs: Use begin/end update when doing expand/collapse all
1524         so that we don't get flicker on the scrollbar.
1525
1526 2006-05-23  Jackson Harper  <jackson@ximian.com>
1527
1528         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
1529         treenode calculations to be independant of the painting code. To
1530         do this nodes track a visible order which is calculated by the
1531         treeview.
1532         - Call new methods for expanding/collapsing nodes.  These methods
1533         use scrollwindow so we don't have to update everything below the
1534         node.
1535         * TreeView.cs: Refactored drawing and scrolling code.  We don't
1536         need to update nodes when drawing anymore or calculate scrollbar
1537         stuff.
1538         - Added new methods for expanding/collapsing nodes. These methods
1539         use ScrollWindow so as to not have to redraw all the nodes below.
1540         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1541         we add/remove nodes or sort.
1542         - Handle removing the selected and the top node properly.
1543
1544 2006-05-23  Chris Toshok  <toshok@ximian.com>
1545
1546         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1547         maybe this should actually happen in the datagrid code?
1548         (EndEdit): no need to invalidate anything, given that
1549         ReleaseHostedControl causes the datagrid to relayout, which
1550         invalidates everything anyway.
1551
1552         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1553         in SetCurrentCell).
1554         (set_SelectionBackColor): call InvalidateSelection instead of
1555         Refresh.
1556         (set_SelectionForeColor): same.
1557         (BeginEdit): Flesh this out a bit.
1558         (CancelEditing): only do any of this if we're editing/adding.
1559         (EndEdit): same.
1560         (OnMouseDown): there's no need to cancel editing here, it's done
1561         in SetCurrentCell.
1562         (SetCurrentCell): only invalidate the current row header if it's a
1563         different row than the new one.
1564         (ShiftSelection): fix this to work like MS does.
1565         (ResetSelection): factor out the invalidation of selected_rows to
1566         InvalidateSelection.
1567         (SetDataSource): cancel any editing that's going on.
1568
1569         * DataGridColumnStyle.cs
1570         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1571         call the non-interface version.
1572
1573         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1574         header rectangle with the clip rectangle so we don't redraw the
1575         entire header for just a small area.  Gets rid of the last flicker
1576         when horizontally scrolling.
1577         (DataGridPaintRow): same.
1578
1579 2006-05-23  Mike Kestner  <mkestner@novell.com>
1580
1581         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1582         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
1583         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
1584         Critical bug report.
1585
1586 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1587
1588         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1589           and this fixes #78493
1590
1591 2006-05-23  Miguel de Icaza  <miguel@novell.com>
1592
1593         * Theme.cs (GetSizedResourceImage): Scale images if the proper
1594         size is not found.  
1595         
1596         * FileDialog.cs: Do not change the background for the side bar as
1597         it wont work nicely with the theme, and also reduces the artifacts
1598         in rendering the icons (which I want to fix too).
1599
1600         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1601         resources, not resgen resources. 
1602
1603         (PlatformDefaultHandler): Pull images using the new API.
1604
1605 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1606
1607         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1608           a reference to the hwnd and will not remove it unless there are
1609           no pending exposures (fixes #78341)
1610         * XplatUI.cs: Improved debug
1611
1612 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
1613
1614         * MenuAPI.cs : don't handle OnClick event when it was not the left
1615           button. Fixed bug #78487.
1616
1617 2006-05-23  Mike Kestner  <mkestner@novell.com>
1618
1619         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1620         prefer submenus to the top menu for item lookup, to avoid popping down
1621         top-row items.
1622
1623 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1624
1625         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1626           Graphics.FillRectangle as the visual results are really bad (even
1627           on win). We now draw perfect arrows (and perfect shadows when the
1628           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1629           Pen.DashPattern to draw the dots of each line.
1630
1631 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1632
1633         * FileDialog.cs: Update the filename combobox when navigating through
1634           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1635
1636 2006-05-22  Mike Kestner  <mkestner@novell.com>
1637
1638         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1639         Fixes #78463.
1640
1641 2006-05-22  Mike Kestner  <mkestner@novell.com>
1642
1643         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1644         requests. Fix a misspelled parameter and a copy paste exception error
1645         in Select.
1646
1647 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1648
1649         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1650           to get the same width/height (5/13) on X11 as the default font has on
1651           win32. This means that our DefaultFont emSize is smaller than the 
1652           the MS SWF equivalent (even thought the width/height stays the same)
1653
1654 2006-05-20  Jackson Harper  <jackson@ximian.com>
1655
1656         * MdiClient.cs:
1657         * MdiWindowManager.cs:
1658         * InternalWindowManager.cs: Make sure to use the border width from
1659         the theme.
1660
1661 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1662
1663         * PrintDialog.cs: Implements printer details
1664
1665 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1666
1667         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1668           Fixes part 1 and 2 of bug #78446
1669
1670 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1671
1672         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1673           instead of sticking to the first ever calculated value
1674
1675 2006-05-19  Mike Kestner  <mkestner@novell.com>
1676
1677         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1678         PointToClient, since Capture is set. Fixes #78344.
1679
1680 2006-05-19  Mike Kestner  <mkestner@novell.com>
1681
1682         * ListView.cs: match MS behavior in Details view where items are not
1683         drawn if Columns.Count == 0. 
1684         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1685         Use a separate pen to draw the check, since changing the width affects
1686         the box as well.  Fixes #78454.
1687
1688 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1689
1690         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1691         exception should throw the name of the invalid argument.
1692
1693         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1694         there are no files listed. 
1695
1696 2006-05-18  Jackson Harper  <jackson@ximian.com>
1697
1698         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1699         up.
1700
1701 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1702
1703         * Control.cs: Brought back our old UpdateZOrder method as a private
1704           function and switched our calls from UpdateZOrder to the new one.
1705           This fixes the Paint.Net canvas disappearing bug.
1706
1707 2006-05-18  Jackson Harper  <jackson@ximian.com>
1708
1709         * Theme.cs:
1710         * ThemeWin32Classic.cs:
1711         * InternalWindowManager.cs: Move the drawing into the theme,
1712         expose everything the theme should need from the window manager.
1713
1714 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1715
1716         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1717           from the call to NativeWindow to avoid walking up the parent chain
1718           further than needed (speeds up setting cursors and avoids setting
1719           the wrong cursor if a parent has another cursor defined)
1720         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1721           the icon as hotspot, not what's contained as hotspot in the icon
1722           file. This fixes the perceived drawing offset seen with Paint.Net
1723         
1724 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1725
1726         * XplatUIX11.cs: 
1727           - Store the calculated rectangle in Hwnd object and use it when 
1728             setting the client size
1729           - Force Toolwindows to always be type Dock, to ensure they're on top
1730
1731 2006-05-18  Mike Kestner  <mkestner@novell.com>
1732
1733         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1734         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1735         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1736         Substantial refactoring to remove confusing nested classes. Coding
1737         standard and Get+Set->property refactorings.  Shift to index based
1738         highlighting in ComboListBox instead of constantly using IndexOf and
1739         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1740         in FileDialog growth.  Draw borders manually since Simple mode needs
1741         to look like two independent controls.  Make listbox border
1742         conditional to DropDownStyle.  Improved OwnerDraw support.
1743
1744 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1745
1746         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1747         Don't set the disposed graphics to null, so we can throw the "right"
1748         exception if the graphics is reused later (added a flag to avoid 
1749         double disposing). Some behaviours are different under 2.0 and are
1750         filled under bug #78448.
1751
1752 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1753
1754         * Control.cs: When double-buffering is enabled, we need to reset
1755           our graphics context between paint calls. Otherwise, any 
1756           transformations and other alterations on the context will 
1757           become cumulative (#77734)
1758
1759 2006-05-18  Mike Kestner  <mkestner@novell.com>
1760
1761         * ListView.cs: do focused item selection like MS on clicks. 
1762         Rework focus handling for ItemControl so LostFocus invalidates as
1763         well.
1764         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1765         the ListView ItemControl has focus.
1766
1767 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1768
1769         * XplatUIX11.cs: If client_window ends up being width or height zero
1770           due to border settings, move it off window inside whole_window (#78433)
1771
1772 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1773
1774         * Mime.cs: Shrink the mime file cache correctly.
1775
1776 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1777
1778         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1779
1780 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1781
1782         * XplatUIX11.cs (AddExpose): More sanity checks
1783
1784 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1785
1786         * XplatUIX11.cs:
1787           - AddExpose: Don't add expose ranges outside the size of our
1788             window
1789           - Cast opacity values to Int32 to avoid crashes with certain
1790             values
1791           - Added disabled code paths that protect against illegal cross-
1792             thread painting (Developers.exe)
1793
1794 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1795
1796         * ProgressBar.cs: Invalidate the control when it's resized
1797           since block size is based on control size. (#78388)
1798
1799 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1800
1801         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1802         of setting the incoming argument to the "reset" value, we set the
1803         this.datamember to string.empty (before we were invalidating the
1804         incoming data).   
1805
1806         Fixes 78420
1807
1808 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1809
1810         * Form.cs: Only apply transparency settings after the form
1811           is created. (Fixes #77800)
1812
1813 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1814
1815         * ApplicationContext.cs: Grab the HandleDestroyed event so
1816           we know when to fire OnMainFormClosed 
1817
1818 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1819
1820         * Application.cs: Introduced sub-class to allow tracking of
1821           threads and centralized triggering of the event mess for
1822           ThreadExit, AppExit, etc..  (#76156)
1823
1824 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1825
1826         * MimeIcon.cs:
1827           - Do not return a null icon index value for a mime subclass.
1828             Instead try the main mime type class too.
1829           - Seems that some newer distributions don't have a link to some
1830             gnome default icons anymore. So check the default gnome dir too.
1831           
1832
1833 2006-05-16  Jackson Harper  <jackson@ximian.com>
1834
1835         * MdiClient.cs: Don't paint the parent background image if we have
1836         our own background image.
1837
1838 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1839
1840         * Control.cs:
1841           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1842             controls, all filled controls are supposed to overlap (#78080)
1843           - UpdateZOrder is supposed to update the control's z-order in the
1844             parent's z-order chain. Fixed to behave like that
1845           - BringToFront: Removed obsolete code
1846           - SendToBack: Simplyfied
1847           - SetChildIndex: Trigger layout calculations when Z-order changes
1848             since layout is done by z-order
1849
1850 2006-05-16  Chris Toshok  <toshok@ximian.com>
1851
1852         [ fixes bug #78410 ]
1853         * DataGrid.cs (set_AlternatingBackColor): use
1854         grid_drawing.InvalidateCells instead of Refresh().
1855         (set_BackColor): call grid_drawing.InvalidateCells.
1856         (set_BackgroundColor): use Invalidate instead of Refresh.
1857
1858         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1859         invalidate the cell area.
1860
1861 2006-05-15  Chris Toshok  <toshok@ximian.com>
1862
1863         [ fixes bug #78011 ]
1864         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1865         on to DataGridPaintRow.
1866         (DataGridPaintRow): take a clip argument, and only draw the cells
1867         which intersect it.  same with the not_usedarea.
1868
1869         * Theme.cs (DataGridPaintRow) add @clip parameter.
1870
1871         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1872         XplatUI.ScrollWindow.
1873         (ScrollToRow): same.
1874
1875         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1876         with last column which was causing a gray swath to appear with the
1877         XplatUI.ScrollWindow code.
1878
1879 2006-05-15  Chris Toshok  <toshok@ximian.com>
1880
1881         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1882         use XplatUI.ScrollWindow.
1883         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1884
1885 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1886
1887         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1888
1889 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1890
1891         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1892           file since there are no equivalent X11 cursors
1893
1894 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1895
1896         * MonthCalendar.cs : DateTimePicker should reflect selected date
1897           on mouse*up*, not mouse*down*. Fixed originally reported part of
1898           bug #76474.
1899
1900 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1901
1902         * TabControl.cs : When argument index is equal or more than tab
1903           count, just ignore. Fixed bug #78395.
1904
1905 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1906
1907         * Control.cs: Dispose all child controls when control is diposed (#78394)
1908
1909 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1910
1911         * ColorDialog.cs: Finally it is possible to select the color with
1912           the text boxes
1913
1914 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1915
1916         * PrintDialog.cs: Fix typo
1917
1918 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1919
1920         * PrintDialog.cs: PrintDialog is not resizable
1921         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1922           color. Made some ToolBar drawing methods protected virtual.
1923
1924 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1925
1926         * PrintDialog.cs: Implementation of the PrintDialog
1927
1928 2006-05-12  Chris Toshok  <toshok@ximian.com>
1929
1930         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1931         thumb, instead use MoveThumb.  This has the side effect of making
1932         most of the other thumb moving machinery use MoveThumb as well.
1933         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1934         need to actually invalidate the rectangle where the new thumb will
1935         go.
1936         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1937         We force an Update() after, so it's not as fast as it could be,
1938         but at least there's zero flicker and no droppings.
1939         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1940         (UpdateThumbPos): add another argument (dirty), which says whether
1941         or not to calculate/add dirty regions which we later invalidate.
1942         For cases where we know we're going to use MoveThumb, we pass
1943         false for this.  Otherwise, pass true.
1944
1945 2006-05-12  Jackson Harper  <jackson@ximian.com>
1946
1947         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1948         the status bar.
1949         
1950 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1951
1952         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1953           and GetClipRegion methods and UserClipWontExposeParent property.
1954         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1955           overriding UserClipWontExposeParent property, setting to false, since
1956           Win32 handles the required expose messages to draw our clipped parent
1957           areas internally
1958         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1959           PaintEventStart to set the user clip region if set.
1960         * Control.cs: 
1961           - Now internally tracking the Region for the control since we need to
1962             store it if the handle is not yet created and only set it when it
1963             becomes created. Before setting the region forced handle creation
1964           - Added code to draw the parents underneath a user-clipped region
1965         * Hwnd.cs: Added UserClip property
1966
1967 2006-05-12  Chris Toshok  <toshok@ximian.com>
1968
1969         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1970         (set_Maximum): same.
1971         (set_Minimum): same.
1972         (set_SmallChange): same.
1973         (OnMouseUpSB): remove the call to refresh when releasing the
1974         thumb.  We shouldn't need it.
1975         
1976 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1977
1978         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1979         AutoSize set to None, we do not need to relayout everything, we
1980         just need to invalidate the current region.
1981
1982         (Draw): Do not draw the entire ClientArea, just redraw the
1983         clip area being passed.
1984
1985         * MdiClient.cs: Make MdiClient constructor with the Form argument
1986         internal. 
1987
1988 2006-05-12  Jackson Harper  <jackson@ximian.com>
1989
1990         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1991         parents background image,  but strangely not their own.
1992         - (DrawStatusBarPanel): Take into account horizontal alignment
1993         when drawing the strings and icons.
1994
1995 2006-05-12  Mike Kestner  <mkestner@novell.com>
1996
1997         * ListBox.cs: avoid invalidations for focus when the collection is
1998         empty. 
1999
2000 2006-05-12  Chris Toshok  <toshok@ximian.com>
2001
2002         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
2003         invalidate the entire thumb area.  Call InvalidateDirty which
2004         limits the redraw to the thumb itself and surrounding pixels.
2005
2006         * XplatUIX11.cs (ScrollWindow): optimize copying.
2007         
2008 2006-05-12  Chris Toshok  <toshok@ximian.com>
2009
2010         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
2011         Figure out the positioning/layout in a single pass instead of
2012         multiple recursive invocations.  Speeds up the initial display of
2013         the data grid.  Also, make many things private that were
2014         originally public but unused outside this class.
2015
2016 2006-05-11  Jackson Harper  <jackson@ximian.com>
2017
2018         * MdiClient.cs: Improved layout code.
2019
2020 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
2021
2022         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
2023           not SelectedObject.
2024
2025 2006-05-11  Chris Toshok  <toshok@ximian.com>
2026
2027         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
2028         union of that will always be {0,0,width,height}.
2029
2030 2006-05-11  Jackson Harper  <jackson@ximian.com>
2031
2032         * Form.cs: Match MS's DefaultSize for forms (they must have
2033         changed the size in sp2).
2034
2035 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
2036
2037         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
2038
2039 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
2040
2041         * TextControl.cs : Fixed bug #78109. This incorrect position
2042           comparison caused crash on automatic line split.
2043         * TextBoxBase.cs : reduce duplicate code.
2044
2045 2006-05-10  Jackson Harper  <jackson@ximian.com>
2046
2047         * MdiClient.cs: Active form is only sent to the back when using
2048         the Next form functionality, when a form is clicked the current
2049         active shouldn't be sent to the back.
2050         - Layout the mdi windows when the container is first made visible.
2051         * Form.cs: Give the MdiClient a ref to the containing form when we
2052         create it.
2053         
2054 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
2055
2056         * LinkLabel.cs : link_font could be uninitialized, so populate one
2057           before actual use. Fixed bug #78340.
2058
2059 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
2060
2061         * XplatUIX11.cs : clipboard format native value is IntPtr.
2062           Fixed bug #78283.
2063
2064 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
2065
2066         * Control.cs: 
2067           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
2068             which is passed up the parent chain by DefWndProc
2069           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
2070             to DefWndProc (#77956)
2071         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
2072
2073 2006-05-10  Jackson Harper  <jackson@ximian.com>
2074
2075         * MdiClient.cs: We need to remove the controls from the mdi
2076         collection, when we close the window.
2077         * MdiWindowManager.cs: Special handling of closing mdi windows.
2078         * InternalWindowManager.cs: Make the close method virtual so the
2079         mdi window manager can handle it specially.
2080
2081 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
2082
2083         * DataGrid.cs:
2084           - Recalculate grid when the data source has changed
2085           - Matches styles provided by user from all data sources types
2086         * DataGridTableStyle.cs: For columns that provided by the user set the
2087         with the preferred value is there was unassigned.
2088         * CurrencyManager.cs: throw OnItemChanged event
2089
2090 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
2091
2092         * PictureBox.cs: Don't animate until handle is created. Start animation
2093           when handle is created.
2094
2095 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
2096
2097         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
2098           current codebase.
2099         * XEventQueue.cs: We don't need to provide the extra info
2100
2101 2006-05-10  Jackson Harper  <jackson@ximian.com>
2102
2103         * MdiClient.cs: If the mdi clients parent form has a background
2104         image set, we draw that background image for the mdi area's
2105         background.
2106
2107 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
2108
2109         * TextBoxBase.cs: Set IBeam cursor (#78347)
2110
2111 2006-05-10  Mike Kestner  <mkestner@novell.com>
2112
2113         * ToolBar.cs: fix some text padding issues with ButtonSize
2114         calculation. Update the default size to match MS documentation.
2115         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
2116         button size. Fixes #78296.
2117
2118 2006-05-10  Mike Kestner  <mkestner@novell.com>
2119
2120         * ListBox.cs: use is_visible for scrollbar positioning in case the
2121         control isn't on screen yet.  Fix off by one with Right vs Width
2122         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
2123         
2124 2006-05-10  Jackson Harper  <jackson@ximian.com>
2125
2126         * X11Dnd.cs: Drop to a control with another control on top of it.
2127         * ToolBar.cs: Work on a copy of the buttons list, so that it can
2128         be modified in click handlers. TODO: Look for similar problems in
2129         other controls.
2130
2131 2006-05-09  Jackson Harper  <jackson@ximian.com>
2132
2133         * Form.cs: Window managers need the old window state when setting
2134         window state now.
2135         * InternalWindowManager.cs: Allow the base mdi window manager to
2136         handle more of the MDI only stuff (like maximize buttons).
2137         * MdiWindowManager.cs: Fix some snafus in changing the window
2138         state.  Add all the menu functionality, for both popup and
2139         maximized menus.
2140         * MdiClient.cs: When a new form is selected the currently
2141         activated form is sent to the back, this matches MS.
2142         - Implement a new method to activate the next mdi child window.
2143
2144 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
2145
2146         * Control.cs: 
2147           - Added new InternalCapture method to allow controls to prevent
2148             the capture behaviour on the click handlers
2149           - Switched to use InternalCapture
2150         * ComboBox.cs:
2151           - Using InternalCapture to prevent mouse captures from being released
2152             on mouse button release (Fixes #78100)
2153         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
2154           returns Form borders if a caption is present. (Fixes #78310)
2155
2156 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
2157
2158         * TreeNode.cs: Changed serialization .ctor to not require every field
2159           to be present. (#78265)
2160         * OwnerDrawPropertyBag.cs: Added serialization .ctor
2161
2162 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
2163
2164         * MimeIcon.cs: for is faster than foreach for strings.
2165
2166 2006-05-05  Mike Kestner  <mkestner@novell.com>
2167
2168         * CheckedListBox.cs: update check handling code to not use selected.
2169         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
2170         behavior for visual feedback, motion response, shift/ctrl handling,
2171         and properly deal with all 4 selection modes. Updates to bounds
2172         handling logic.  Add scroll wheel support. [Fixes #77842]
2173
2174 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
2175
2176         * ListView.cs:
2177           - Moved adding of Implicit controls into .ctor. That way, subsequent
2178             creation of the controls will not cause them to think they are 
2179             toplevel windows (fixes #78200 header problem)
2180           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
2181           - Switched visibility setting of header control to use internal field
2182             to avoid triggering handle creation
2183           - Now checking if handle is created before causing a refresh when items
2184             are added (This makes us now match handle creation time with MS)
2185         * Splitter.cs: Removed loading of private splitter cursor, switched to
2186           Cursors version now that that is loading the right ones
2187         * Cursors.cs: Load proper splitter cursors from resources
2188         * Cursor.cs: Added second method of loading resource cursors for the 
2189           VS.Net users amongst us
2190
2191 2006-05-05  Mike Kestner  <mkestner@novell.com>
2192
2193         * ListView.cs: give header_control a minimum size based on the
2194         ListView size.
2195
2196 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
2197
2198         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
2199           window seems to do that with metacity, so set that type. (#78120)
2200
2201 2006-05-05  Mike Kestner  <mkestner@novell.com>
2202
2203         * ListViewItem.cs: fix Details mode checkbox layout bug.
2204         * ThemeWin32Classic.cs: draw a ListView column header for unused space
2205         at the end of the header, if it exists. [Fixes for #78200]
2206
2207 2006-05-04  Jackson Harper  <jackson@ximian.com>
2208
2209         * MdiClient.cs: Add a helper property to get the container form.
2210         * MdiWindowManager.cs: We have to make sure to use the menu origin
2211         when drawing the icons and buttons, this fixes maximized window
2212         icons/buttons on win32.
2213         * InternalWindowManager.cs: Reset the restore captions when a
2214         window goes from Maximized to Minimized and vice versa. Move the
2215         DrawMaximizedButtons into the MdiWindowManager source, tool
2216         windows can't be maximized. NOTE: This could use a little
2217         refactoring if time ever permits.
2218         
2219 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
2220
2221         * TextBox.cs: Add MWFCategoryAttributes
2222         * TextBoxBase.cs: Add MWFCategoryAttributes
2223         * Form.cs: Add MWFCategoryAttributes
2224
2225 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
2226
2227         * Control.cs: Add MWFCategoryAttributes
2228         * ScrollableControl.cs: Add MWFCategoryAttributes
2229
2230 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
2231
2232         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
2233           Divider is true. Fix a little glitch in PropertyToolBar
2234           drawing code
2235
2236 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
2237
2238         * Control.cs:
2239           - Dispose: Call base.Dispose, this causes the disposed event
2240             to be fired (and probably other, more important stuff)
2241           - SetVisibleCore: Set is_visible to true after creating the
2242             window so that the window still gets created invisible (if
2243             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
2244             to generate a WM_ACTIVE message
2245         * Form.cs: Call Dispose when we want to destroy the window, instead of
2246           just destroying the handle (Dispose will do that for us)
2247         * XplatUIX11.cs:
2248           - RootWindow also needs a queue, so we can properly process the
2249             property change events from RootWindow (like Activate)
2250           - Generatic synthetic WM_ACTIVE message when the active window is
2251             being destroyed
2252
2253 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
2254
2255         * LinkLabel.cs: Trigger a recalc of our label dimensions when
2256           bounds are changed
2257
2258 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
2259
2260         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
2261           for determining width and height (image might not be assigned if
2262           we're drawing an imagelist)
2263
2264 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
2265
2266         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
2267         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
2268           height from system
2269         * Theme.cs: No longer returns hardcoded menu height, instead calls
2270           new driver method
2271         * Form.cs (OnLoad): Scaling happens before triggering Load events 
2272           on MS (# 78257)
2273
2274 2006-05-01  Mike Kestner  <mkestner@novell.com>
2275
2276         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
2277
2278 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
2279
2280         * TextBoxBase.cs: Removed Fixme
2281         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
2282
2283 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
2284
2285         * XplatUIX11.cs:
2286           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
2287             the rectangle relative to the parent, considering borders. We
2288             don't really want that.
2289           - ScrollWindow: Fixed warning to be more understandable
2290         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
2291           scrollbars and scroll only the visible area
2292         * RichTextBox.cs: Removed debug output
2293
2294 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2295
2296         * NumericUpDown.cs (Text): Just use base
2297         * UpDownBase.cs: Ensure txtView is created before using it
2298
2299 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2300
2301         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
2302           casting to IntPtr to avoid 64bit overflow errors
2303
2304 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2305
2306         * Control.cs:
2307           - AllowDrop: Don't force handle creation.
2308           - CreateHandle: Added call to tell driver if we're allowed to drop
2309
2310 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2311
2312         * FileDialog.cs: Remember the last directory not only for the
2313           current instance but also for new FileDialog instances.
2314
2315 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2316         
2317         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
2318           broke sending async messages
2319
2320 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2321
2322         * XplatUIX11.cs:
2323           - ScrollWindow: Fixed method. We finally generate expose events again
2324             for scrolled areas. This was causing 'garbage' when scrolling
2325             textbox and other controls that used ScrollWindow
2326           - Switched from using the regular queue for paint events to the MS 
2327             model of 'generating' paint events when the queue is empty.
2328             We use the new XQueueEvent.Paint subclass to store which windows
2329             need painting.
2330           - AddExpose now takes the x/y/width/height of the exposed area
2331             and inserts the window into the paint queue if not already there
2332           - InvalidateWholeWindow: Switched to use new AddExpose method
2333           - UpdateMessageQueue: Added which queue to monitor for paint events
2334           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
2335             the unlikely case nothing above handles it. We reset the expose
2336             pending states to get them off the queue.
2337           - GetMessage: Now pulls a paint event if no other events are in the
2338             queue
2339           - Invalidate: Switched to new AddExpose method
2340           - PeekMessage: Updated to understand pending paint events
2341           - UpdateWindow: Fixed logic bug. We were only updating if the window
2342             didn't need updating. Also switched to sending WM_PAINT directly,
2343             like MS does.
2344         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
2345           and random access Remove(). The random access is needed to handle
2346           UpdateWindow() where a WM_PAINT is sent directly without accessing
2347           the queue.
2348         * ScrollBar.cs: Added Update() calls to cause immediate updates to
2349           allow for better feedback when scrolling. Scrollbars are small and
2350           the immediate update should make it 'feel' more responsive without
2351           slowing things down. ScrollBar still needs it's invaliate logic
2352           updated to not always invalidate the whole bar on certain changes.
2353
2354 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2355
2356         * Control.cs:
2357         (BackColor): if the control does not support a transparent background,
2358         return the default backcolor when the parent backcolor is transparent.
2359
2360 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
2361
2362         * Application.cs: Updated to new StartLoop/GetMessage API
2363         * RichTextBox.cs: Provide some output on RTF parsing errors
2364         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
2365           new queue_id argument to GetMessage and PeekMessage to allow faster
2366           handling of per-thread queues in drivers.
2367         * Hwnd.cs: Added Queue tracking and property
2368         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
2369         * XEventQueue.cs: Added thread trackingA
2370         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
2371         * XplatUIX11.cs:
2372           - Implemented new per-thread queue
2373           - GetMessage: Fixed return/break behaviour on several cases. We were
2374             returning stale messages in some cases, instead of just processing
2375             the next message
2376
2377 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2378
2379         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2380
2381 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
2382
2383         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
2384           fixed off-by-one comparisons between Width/Height and Right/Bottom.
2385
2386 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2387
2388         * PropertyGridView.cs: Fix drop down width.
2389
2390 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2391
2392         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
2393           a mess in DrawToolBar, so I removed one of them.
2394
2395 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2396
2397         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
2398           needed (clip). Otherwise we get artifacts.
2399
2400 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2401
2402         * FixedSizeTextBox.cs: Added constructor to allow specifying which
2403           dimension is fixed
2404         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
2405           and switched FixedSizeTextBox to only be fixed vertical (#78116)
2406         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
2407           if it matches the scale base font (avoids unneeded scaling)
2408
2409 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2410
2411         * X11DesktopColors.cs: One gtk_init_check should be enough
2412
2413 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
2414
2415         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
2416           match MS behaviour
2417
2418 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2419
2420         * TextBoxBase.cs: 
2421           - Generate OnTextChanged for Backspace even if we're only deleting
2422             the current selection
2423           - When setting the Text property, only select all text if the
2424             control does not have focus when it is being set. Otherwise
2425             just place the cursor at the beginning of the control
2426
2427 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2428
2429         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
2430           Added a little helper to draw PropertyGrid ToolBar with a different
2431           border and a different BackColor.
2432         * PropertyGrid.cs: Some background parts didn't get painted with the
2433           correct background color. Added a class that helps us to draw the
2434           correct border for PropertyGridView and a class that helps us to
2435           draw ToolBars with a different backcolor
2436         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
2437
2438 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
2439
2440         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
2441         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
2442
2443 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2444
2445         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
2446           into the palette entries. Also, since we're working on a copy
2447           we needed to copy the palette back onto the bitmap.
2448         * Cursor.cs: Same fix as XplatUIWin32.cs.
2449
2450 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
2451
2452         * ImageListStreamer.cs: Need to read the var (or we're off)
2453
2454 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2455
2456         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
2457           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
2458           TextBoxBase.cs: Unused var fixes
2459         * AxHost.cs: Small 2.0 fix
2460         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
2461           as it seems that is what at least Metacity expects. This will make
2462           icons show up on 64bit platforms. We still have some 64bit size
2463           issues, though, since the startup app window size still won't match.
2464
2465 2006-04-25  Mike Kestner  <mkestner@novell.com>
2466
2467         * *.cs: cleanup newly reported exception var unused warnings.
2468
2469 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2470
2471         * ThemeWin32Classic.cs: Button image alignment now matches exactly
2472           ms
2473
2474 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2475
2476         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
2477           image. The image position is always the same, no matter if the
2478           button is pressed or not.
2479
2480 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2481
2482         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
2483           selection and set the correct filename for SaveFileDialog.
2484           Patch by Emery Conrad.
2485
2486 2006-04-24  Mike Kestner  <mkestner@novell.com>
2487
2488         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
2489         check for item.X outside the ClientRect instead of item.Y. Fixes
2490         #78151.
2491
2492 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2493
2494         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
2495         trust that value blindly and do some sanity check. Fixes bug #77814.
2496
2497 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2498
2499         * ImageListStreamer.cs: save the mask as a 1bpp image.
2500
2501 2006-04-21  Mike Kestner  <mkestner@novell.com>
2502
2503         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
2504         pass Checked and Indeterminate to the Theme Engine. Improve
2505         encapsulation with ListBox.
2506         * ListBox.cs: Keep a StringFormat instead of calculating it every item
2507         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
2508         nested types.  Move all CheckState functionality to CheckedListBox.
2509         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
2510         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
2511         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2512         single base list. Fix scrollbar sizing and placement to mirror MS.
2513         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2514         used.
2515         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2516         for CheckedListBox by using new DrawItemState info.  Center the
2517         checkboxes on the items. Use new StringFormat property.
2518
2519 2006-04-18  Jackson Harper  <jackson@ximian.com>
2520
2521         * Form.cs: MdiChildren don't do default locations the same way as
2522         regular forms.  This prevents a crash when trying to position the
2523         mdi windows.
2524
2525 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
2526
2527         * PropertyGridTextBox.cs: Formatting, copyright
2528         * PropertiesTab.cs: Formatting
2529         * PropertyGrid.cs: Formatting
2530         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
2531           click toggling of values
2532           
2533 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
2534
2535         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2536         * Control.cs (.ctor): verify_thread_handle is static, don't reset
2537           every time a control is created
2538         * Application.cs: Removed obsolete EnableRTLMirroring method
2539
2540 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
2541
2542         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2543         SelectedIndex to -1. Fixes bug #78121.
2544
2545 2006-04-17  Jackson Harper  <jackson@ximian.com>
2546
2547         * Binding.cs: Handle null values for Current and BindingContext.
2548         This occurs when binding is a little delayed.
2549         * CurrencyManager.cs: return null for Current when there are no
2550         items in the list.
2551         - Hookup to the listchanged event on the DataView and update
2552         bindings when the list is changed.  This fixes late binding of
2553         controls.
2554
2555 2006-04-17  Jackson Harper  <jackson@ximian.com>
2556
2557         * X11Dnd.cs:
2558         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2559         Ringenbach.
2560
2561 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
2562
2563         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2564           place
2565         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2566           with the correct ButtonState
2567
2568 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
2569
2570         * XplatUIX11.cs: Improved distinguishing between window types to
2571           tell the WM a type closer to what the app wants (Fixes #78107)
2572
2573 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2574
2575         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2576           GrabHandle
2577
2578 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2579
2580         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2581           drawing code to reflect the size grip changes
2582
2583 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2584
2585         * ImageListStreamer.cs: fix handling of the mask that follows the main
2586         bitmap when deserializing and serialize it properly. The generated mask
2587         should better be a 1bpp image, but I'll do that later.
2588
2589 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2590
2591         * FileDialog.cs: Show something in the DirComboBox on *nix if the
2592           path doesn't fit into some of our Current.Places
2593
2594 2006-04-13  Jackson Harper  <jackson@ximian.com>
2595
2596         * ComboBox.cs: Use borders instead of drawing our own decorations,
2597         try to obey correct rules for heights.
2598         * Theme.cs:
2599         * ThemeNice.cs:
2600         * ThemeClearLooks.cs:
2601         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2602         this is now handled by borders.
2603         - Remove unused DrawListBoxDecorationSize method.
2604         
2605 2006-04-13  Mike Kestner  <mkestner@novell.com>
2606
2607         * MenuAPI.cs: null guarding for the disbled click check fixes crash
2608         reported by Alex.
2609
2610 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2611
2612         * ThemeWin32Classic.cs: 
2613           - Fixed CPDrawStringDisabled
2614           - Corrected drawing of disabled menu items
2615           - Fixed drawing of disabled radio buttons (bug #78095)
2616           - Draw check in a disabled CheckBox with color ControlDark 
2617
2618 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2619
2620         * Form.cs: Use the provided width when calculating the menu size;
2621           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2622           and ClientSize.Width won't be updated yet
2623         * Application.cs: Use Visible instead of Show() to make form visible,
2624           this way we create the handle later and menusize is considered
2625
2626 2006-04-12  Mike Kestner  <mkestner@novell.com>
2627
2628         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2629         reporting.
2630
2631 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2632
2633         * TextBox.cs: Implemented context menu
2634
2635 2006-04-12  Mike Kestner  <mkestner@novell.com>
2636
2637         * ListView.cs: implement box selection. fixes #77838.
2638         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2639
2640 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2641
2642         * XplatUIX11.cs: Added setting of window type when transient window
2643           is created (metacity would move it otherwise)
2644         * X11Structs.cs: Added WINDOW_TYPE atoms
2645         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2646           background (the control is Opaque but still wants transparent
2647           backgrounds)
2648
2649 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2650
2651         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2652           that set Opaque but don't mean it (like all ButtonBase-derived
2653           controls) to still draw their background
2654         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2655           the background
2656
2657 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2658
2659         * Control.cs (PaintControlBackground): Set the graphics object
2660           on our PaintEvent to null to prevent it from being disposed
2661           when the PaintEvent gets disposed
2662
2663 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2664
2665         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2666         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2667
2668 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2669
2670         * Control.cs: 
2671           - Added transparency check to BackColor property. Transparent
2672             backgrounds are only allowed if the control styles permit it
2673           - Added recursive painting of parent control background and
2674             foreground if a control with a transparent backcolor is drawn
2675             (Thanks to Tim Ringenback for providing his 'hack' as a base
2676              for this patch) Fixes #77985 and #78026.
2677           - Added Opaque style check before calling OnPaintBackground, no
2678             need to draw the background if the control is opaque
2679           - Removed ControlAccessibleObject owner variable (inherited from
2680             base, no need to define again)
2681           - Added some documentation links explaining the drawing events
2682             and styles
2683
2684 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2685
2686         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2687           that the affected control is the located at the left border of our
2688           parent (Fixes #77936)
2689
2690 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2691
2692         * TextBoxBase.cs: When rendering disabled or readonly controls,
2693           draw the background with 'Control' instead of 'Window' color as
2694           long as the user hasn't specifically set a color
2695
2696 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2697
2698         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2699           since that won't be updated if the user types text (only if it's
2700           programatically set)
2701
2702 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2703
2704         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2705           layout changes do to app-triggered resizes will have the proper
2706           display rectangle for layout
2707
2708 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2709
2710         * ThemeWin32Classic.cs:
2711           - Make use of the SystemBrushes and SystemPens wherever possible
2712           - Corrected some highlight colors
2713           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2714             drawing
2715         * Theme.cs: Added Empty field to CPColor struct
2716
2717 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2718
2719         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2720           is displayed when calculating the display rectangle. Thanks to Mike
2721           for teaching me the err of my ways.
2722
2723 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2724
2725         * ScrollableControl.cs:
2726           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2727             (instead of 0,0) and we now return the real width/height instead of
2728             just the clientrectangle, adjusted for padding. The rectangle is
2729             now cached and created by the new CalculateDisplayRectangle method.
2730           - Created new CalculateDisplayRectange method, which basically does
2731             what get_DisplayRectangle() did originally, but now using the 
2732             right edge instead of DisplayRectangle to determine the size of
2733             our scrollbars
2734           - get_Canvas(): Fixed it to properly calculate canvas for 
2735             right/bottom controls which seem to be placed to the right/bottom
2736             of any controls that have a fixed location
2737           - Removed TODO that's taken care of
2738           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2739             and SetDisplayRectLocation according to new MSDN2 docs
2740           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2741             event when that is called, this is added for compatibility
2742           - ScrollControlIntoView(): Implemented.
2743           - Switched scrollbars to be implicit, they shouldn't be selectable
2744         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2745           call it when the active control is set/changed
2746         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2747         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2748           implicit_control variable (used for native Win32 message generation)
2749         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2750           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2751         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2752         * XplatUIStructs.cs: Added ScrollBarCommands enum
2753
2754 2006-04-10  Jackson Harper  <jackson@ximian.com>
2755
2756         * ButtonBase.cs:
2757         * CheckedListBox.cs:
2758         * ComboBox.cs:
2759         * DataGrid.cs:
2760         * DataGridView.cs:
2761         * Form.cs:
2762         * GroupBox.cs:
2763         * ListBox.cs:
2764         * PrintPreviewControl.cs:
2765         * ProgressBar.cs:
2766         * PropertyGrid.cs:
2767         * Splitter.cs:
2768         * StatusBar.cs:
2769         * TrackBar.cs:
2770         * UpDownBase.cs: Fixup base event overrides.
2771         
2772 2006-04-06  Mike Kestner  <mkestner@novell.com>
2773
2774         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2775         all user-initiated value changes to min <= value <= max-thumbsz+1.
2776         (set_Value): check for vert/horiz when calculating new thumb position.
2777         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2778         like MS does.
2779         (OnMouseMoveSB): refactor the thumb dragging code and refine
2780         invalidation logic to reduce flicker.
2781         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2782         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2783         (UpdateThumbPosition): small code readability cleanup
2784
2785 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2786
2787         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2788           different
2789
2790 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2791
2792         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2793
2794 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2795
2796         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2797         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2798           This dramatically reduces the number of Pen.Dispose calls. 
2799           Where possible call ResPool methods only once instead of calling it
2800           over and over again (for example for the same color).
2801
2802 2006-04-06  Mike Kestner  <mkestner@novell.com>
2803
2804         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2805         Also remove an unused private field on the collection. Fixes #77972.
2806
2807 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2808
2809         * ThemeNice.cs: Added ToolBar drawing code
2810
2811 2006-04-06  Mike Kestner  <mkestner@novell.com>
2812
2813         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2814         I'm assuming that means we need to look up the toplevel for the
2815         provided control. Fixes the crash trace in #77911 but exposes another
2816         crash in some strange reflection usage in NDocGui.
2817
2818 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2819
2820         * ThemeNice.cs: Gave it a little silver touch and added Images
2821           method
2822         * FontDialog.cs: FontDialog is not resizable
2823         * FileDialg.cs: Added SizeGripStyle.Show
2824
2825 2006-04-05  Jackson Harper  <jackson@ximian.com>
2826
2827         * KeyboardLayouts.cs: Remove warning.
2828
2829 2006-04-05  Jackson Harper  <jackson@ximian.com>
2830
2831         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2832         all of our controls instead of Paint +=.
2833         * ListBox.cs:
2834         * ListView.cs:
2835         * MenuAPI.cs:
2836         * MessageBox.cs:
2837         * NotifyIcon.cs:
2838         * ProgressBar.cs:
2839         * ScrollBar.cs:
2840         * Splitter.cs:
2841         * StatusBar.cs:
2842         * TabControl.cs:
2843         * TextBoxBase.cs:
2844         * ToolBar.cs:
2845         * TrackBar.cs:
2846         * UpDownBase.cs:
2847         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2848         use OnPaintInternal. Remove Width/Height and Visible checks in
2849         paint handler, this is done at a higher level now.
2850         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2851         * PaintEventArgs.cs: Add a handled flag so controls that don't
2852         want anymore painting after OnPaintInternal can make sure OnPaint
2853         isn't called.
2854
2855 2006-04-05  Mike Kestner  <mkestner@novell.com>
2856
2857         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2858         state of the form, so that we don't process events when Modal dialogs
2859         are up. Fixes #77922.
2860
2861 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2862
2863         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2864           checking is done.
2865
2866 2006-04-05  Mike Kestner  <mkestner@novell.com>
2867
2868         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2869
2870 2006-04-05  Mike Kestner  <mkestner@novell.com>
2871
2872         * ListView.cs (HeaderMouseMove): null guarding for the over column
2873         when setting up the drag_to_index.  Fixes #78015.
2874
2875 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2876
2877         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2878           in the taskbar. Transient windows seem to accomplish that.
2879
2880 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2881
2882         * Form.cs:
2883           - Re-enabled CreateParams.X/Y code for FormStartPosition
2884           - Added code for manual placement when creating the Control
2885           - Incomplete patch to treat MDI forms differently when
2886             setting the ClientSizeCore. (Still need to figure out handling
2887             x/y coords there)
2888         * XplatUIX11.cs:
2889           - When we're explicitly setting the X/Y position of a non-Child
2890             window, let the WM know. Metacity really wants this.
2891
2892 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2893
2894         * ThemeNice.cs: Added CPDrawButton
2895
2896 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2897
2898         * ThemeNice.cs: Changed the color for focused buttons and activated
2899           the arrows for small scroll buttons.
2900
2901 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2902
2903         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2904           anymore. Changed some method modifiers to protected (virtual)
2905         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2906           changes
2907         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2908           Updated drawing of menus, buttons and progressbars; added
2909           CPDrawBorder3D 
2910
2911 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2912
2913         * ImageListStreamer.cs: implemented serialization/deserialization
2914         of the images.
2915
2916 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2917
2918         * ThemeWin32Classic.cs:
2919           - Removed all the DrawFrameControl stuff; CPDrawButton,
2920             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2921             inside the methods
2922           - Updated and corrected the drawing code of CPDrawButton,
2923             CPDrawCheckBox and CPDrawRadioButton to better match ms
2924           - Updated theme checkbox and radiobutton code to use the CP*
2925             methods
2926
2927 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2928
2929         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2930           bug is fixed
2931
2932 2006-03-31  Jackson Harper  <jackson@ximian.com>
2933
2934         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2935         sometimes.
2936         * UpDownBase.cs: Don't CreateGraphics manually, use a
2937         Refresh. Ideally we would invalidate the correct areas here.
2938
2939 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2940
2941         * XplatUIX11.cs: 
2942           - We now track the mapping state of windows. If a window (or 
2943             one of it's parents) is not mapped we no longer permit
2944             WM_PAINT messages to be generated since we'd otherwise get 
2945             lots of BadMatch X errors. Jackson did all the work figuring
2946             out the problem.
2947           - Destroying the caret if the window it's contained in is 
2948             destroyed. Can't use regular DestroyCaret method since it
2949             might fall into a drawing function (trying to remove the
2950             caret) and with that generate new BadMatch errors. Again,
2951             Jackson tracked this down.
2952           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2953             make sure we send the messages to all windows. (The old code
2954             would send the WM_DESTROY to the window, and then all child
2955             windows would be 'gone' because the WM_DESTROY handle lookup
2956             would no longer find the destroyed window)
2957         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2958         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2959
2960 2006-03-31  Jackson Harper  <jackson@ximian.com>
2961
2962         * ScrollableControl.cs: Dont recalc if we are not visible.
2963
2964 2006-03-31  Mike Kestner  <mkestner@novell.com>
2965
2966         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2967         the visibility branch.
2968
2969 2006-03-31  Jackson Harper  <jackson@ximian.com>
2970
2971         * ScrollBar.cs: Cap values when incrementing/decrementing.
2972
2973 2006-03-31  Mike Kestner  <mkestner@novell.com>
2974
2975         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2976         * ToolTip.cs: guard against timer expirations with no active control.
2977         Not sure why it happened.
2978
2979 2006-03-31  Mike Kestner  <mkestner@novell.com>
2980
2981         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2982         text.
2983         * ToolTip.cs: Position the tooltip based on where the cursor is at
2984         popup time, not at MouseEnter time.  Add a Down state so that we don't
2985         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2986         positioning offset. Lookup DisplaySize at positioning time, since it
2987         can theoretically change during invocation.
2988         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2989         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2990
2991 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2992
2993         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2994           Fixes behaviour when the Text property of the box is String.Empty
2995
2996 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2997
2998         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2999           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
3000           a window)
3001
3002 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
3003
3004         * FileDialog.cs: Visual enhancement for the popup buttons in 
3005           PopupButtonPanel
3006
3007 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
3008
3009         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
3010           code
3011
3012 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
3013
3014         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
3015           highlighted menu items to match ms
3016
3017 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
3018
3019         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
3020
3021 2006-03-30  Mike Kestner  <mkestner@novell.com>
3022
3023         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
3024         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
3025         go active to account for HotLight to Selected transition.
3026         * MenuItem.cs: add internal Selected prop. Fill out the Status
3027         property by calculating it from item info. Add HotLight,
3028         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
3029
3030 2006-03-30  Mike Kestner  <mkestner@novell.com>
3031
3032         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
3033
3034 2006-03-29  Jackson Harper  <jackson@ximian.com>
3035
3036         * Form.cs: Implement TODO.
3037
3038 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
3039
3040         * PrintPreviewDialog.cs: Implemented missing methods and events; still
3041           missing proper dialog setup in the constructor
3042
3043 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
3044
3045         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
3046         * Control.cs:
3047           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
3048           - Fixed ResetBindings and removed TODO
3049           - Added check for cross-thread calls to get_Handle()
3050           - Added Marshaller attribute for set_Font to satisfy class status
3051         * FontDialog.cs: Removed TODOs that seemed implemented
3052         * UpDownBase.cs: Removed unneeded TODO and Fixme
3053         * MessageBox.cs: Implemented support for Default button and removed TODO
3054         * FileDialog.cs: Removed obsolete TODO
3055         * DomainUpDown.cs: Removed obsolete TODO
3056         * ButtonBase.cs: Removed obsolete TODO
3057         * XplatUIWin32.cs: Removed obsolete TODO
3058         * Form.cs:
3059           - Removed obsolete TODO
3060           - Calling CheckAcceptButton when the acceptbutton is changed to allow
3061             internal status updates
3062           - Making sure the active control is selected when the control is created
3063         * CurrencyManager.cs: Removed obsolete TODO
3064
3065 2006-03-29  Mike Kestner  <mkestner@novell.com>
3066
3067         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
3068         of PrintPreviewDialog and RichTextBox.
3069
3070 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
3071
3072         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
3073           DarkDark, Light and LightLight colors for a specific color
3074         * ThemeWin32Classic.cs:
3075           - Use Button drawing code to draw RadioButtons and CheckBoxes with
3076             Appearance = Button 
3077           - Make use of the new ResPool helper CPColor
3078           - Draw ProgressBar and StatusBar with correct 3D borders
3079
3080 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
3081
3082         * ColorDialog.cs: Return selected color. Fixes bug #77940.
3083
3084 2006-03-28  Mike Kestner  <mkestner@novell.com>
3085
3086         * ListView.cs: fix Icon layout to plan for scrollbar widths when
3087         calculating col/row counts.
3088
3089 2006-03-28  Mike Kestner  <mkestner@novell.com>
3090
3091         * ColumnHeader.cs:
3092         * ListView.cs:
3093         * ListViewItem.cs:
3094         * Menu.cs: 
3095         switch to explicit interface method implementation for some methods
3096         corcompare identifies as inconsistent with MS.
3097
3098 2006-03-28  Mike Kestner  <mkestner@novell.com>
3099
3100         * MainMenu.cs: 
3101         * Menu.cs:
3102         add a few missing methods from the class status output.
3103
3104 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
3105
3106         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
3107           correct.
3108
3109 2006-03-28  Mike Kestner  <mkestner@novell.com>
3110
3111         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
3112
3113 2006-03-27  Mike Kestner  <mkestner@novell.com>
3114
3115         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
3116         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
3117
3118 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
3119
3120         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
3121
3122 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3123
3124         * ThemeWin32Classic.cs:
3125           - GroupBox: Inserted a little gap between the text and the lines
3126             on the right side
3127           - Made the code in CPDrawBorder3D more readable
3128           - Corrected the drawing location of the up and down arrows in 
3129             CPDrawScrollButton
3130
3131 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3132
3133         * ControlPaint.cs: Corrected line widths in DrawBorder for
3134           ButtonBorderStyle Inset and Outset
3135
3136 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3137
3138         * ThemeWin32Classic.cs:
3139           - Rewrote the totally broken CPDrawBorder3D method. That was
3140             one of the main problems for the terrific ThemeWin32Classic
3141             look
3142           - Updated and corrected Button drawing
3143           - Correct the dimensions of the SizeGrip to match ms ones
3144           - Removed a small drawing glitch in DrawComboBoxEditDecorations
3145         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
3146           Border3DStyle.Sunken to match ms.
3147
3148 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3149
3150         * ThemeWin32Classic.cs: First small part of the "de-uglify
3151           ThemeWin32Classic" effort, SizeGrip
3152
3153 2006-03-24  Jackson Harper  <jackson@ximian.com>
3154
3155         * XplatUIX11.cs: Give a max idle time of one second, this matches
3156         MS and forces an Idle event every second when there are no other
3157         events in the queue.
3158
3159 2006-03-24  Mike Kestner  <mkestner@novell.com>
3160
3161         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
3162         * ListView.Item.cs: fix layout issues with null image lists and images
3163         smaller than checkbox size.
3164         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
3165         mode like MS does.  It's weird, but consistent.  ;-)
3166         Fixes #77890.
3167
3168 2006-03-24  Mike Kestner  <mkestner@novell.com>
3169
3170         * ListView.cs: Scroll wheel support for the item control.  Fixes
3171         #77839.
3172
3173 2006-03-23  Jackson Harper  <jackson@ximian.com>
3174
3175         * ScrollableControl.cs: Special case negative sized areas, not
3176         zero.
3177         * MonthCalendar.cs: Save the rect of the clicked date so we can
3178         use it for invalidation.
3179         - Try to cut down on the number of invalidates
3180         - Invalidate the rect the mouse is over and was over when moving
3181         the mouse, so we get the focus box following the cursor.
3182
3183 2006-03-23  Mike Kestner  <mkestner@novell.com>
3184
3185         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
3186         focus rectangle drawing. Fixes #77835.
3187
3188 2006-03-23  Mike Kestner  <mkestner@novell.com>
3189
3190         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
3191         the if and else if and reverting back to the original == check on the
3192         None conditional.
3193
3194 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
3195
3196         * FontDialog.cs: Update the example panel if the selected index of
3197           the fontListBox changes.
3198
3199 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
3200
3201         * FileDialog.cs: Make FileDialog remember which directory it was in
3202           last in the same execution.
3203
3204 2006-03-22  Mike Kestner  <mkestner@novell.com>
3205
3206         * FileDialog.cs: make the DropDownMenu on the toolbar display
3207         RadioChecks since they are mutually exclusive and that's what MS does.
3208
3209 2006-03-22  Mike Kestner  <mkestner@novell.com>
3210
3211         * Theme.cs: add Color param to CPDrawMenuGlyph.
3212         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
3213         checks and radio marks and arrows are visible on highlighted items.
3214         * ControlPaint.cs: update to use new Theme signature.
3215
3216 2006-03-22  Mike Kestner  <mkestner@novell.com>
3217
3218         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
3219         is active. Fixes #77870.
3220
3221 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
3222
3223         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
3224           to be focused/selected after startup
3225
3226 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
3227
3228         * ColorDialog.cs: 
3229           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
3230             CustomColors and ShowHelp properties
3231           - Some internal rewrites to get better results when using the
3232             ColorMatrix
3233
3234 2006-03-22  Mike Kestner  <mkestner@novell.com>
3235
3236         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
3237         HoverSelection.  Fixes #77836.
3238
3239 2006-03-22  Mike Kestner  <mkestner@novell.com>
3240
3241         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
3242         ToggleButtons.  (De)Sensitize the Back button around a stack count of
3243         1, not 0.  Update ButtonSize based on a pixel count of the win32
3244         control.  Adjust the toolbar size/location for new button size.
3245
3246 2006-03-22  Jackson Harper  <jackson@ximian.com>
3247
3248         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
3249         true.
3250         * ScrollBar.cs: When doing increments and decrements we need to
3251         set the Value property so that ValueChanged gets raised. A
3252         possible optimization here would be to make an internal SetValue
3253         that doesn't invalidate immediately.
3254         * ToolTip.cs: Tooltips get added to their container (when
3255         supplied) so they get disposed when the container is disposed.
3256         - Don't create tooltips for String.Empty. This prevents all these
3257         little 2-3 pixel windows from showing up when running nunit-gui
3258         and driving me mad.
3259         * Form.cs: Don't set topmost when setting the owner if the handles
3260         haven't been created yet.  The topmost set will happen when the
3261         handles are created.
3262
3263 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
3264
3265         * XplatUIX11.cs:
3266           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
3267           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
3268             visible (to allow them to recalculate their sizes)
3269
3270 2006-03-21  Mike Kestner  <mkestner@novell.com>
3271
3272         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
3273         methods. Removed a ton of redundant code.  Still not really happy with
3274         the border rendering, but I think that's mainly because of the
3275         ControlDarkDark being black instead of a dark grey. Depending on how 
3276         close we want to be, we might want to revisit those color choices.
3277         Among the new features added during the refactor were DropDownArrow
3278         pressed rendering, Disabled image rendering.  Proper flat appearance
3279         boundary rendering.  Removed the Divider and Wrapping dividers since I
3280         can't figure out any combination of themes and conditions to make the
3281         MS control draw a horizontal line on a toolbar despite what the
3282         Divider property docs indicate.
3283         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
3284         conditions and incorrect layout.  Updated to coding standard.
3285         * ToolBarButton.cs: refactored layout and positioning code from
3286         ToolBar to here.  Invalidate wherever possible instead of forcing
3287         redraws of the whole toolbar. 
3288         (Known remaining issues: explicit ButtonSize smaller than provided
3289         images.)
3290
3291 2006-03-21  Mike Kestner  <mkestner@novell.com>
3292
3293         * ContextMenu.cs (Show): use the position parameter instead of just
3294         showing at the MousePosition.
3295
3296 2006-03-21  Jackson Harper  <jackson@ximian.com>
3297
3298         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
3299         control handle this.
3300         * TreeNodeCollection.cs: If we are clearing the root node we need
3301         to reset top_node so calcs can still happen.
3302         * ThemeWin32Classic.cs: This is a Flags so we need to check
3303         properly.
3304         
3305 2006-03-21  Jackson Harper  <jackson@ximian.com>
3306
3307         * DataGrid.cs: Create columns when the binding context has been
3308         changed.
3309         * X11Structs.cs: Keysyms are uints.
3310         - Add size to fix build.
3311
3312 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
3313
3314         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3315           XplatUIOSX.cs: 
3316           - Added ResetMouseHover method to allow controls to retrigger
3317             hovering if they need it more than once
3318           - Implemented MouseHoverTime and MouseHoverSize properties
3319         * Timer.cs: Start() must reset the interval
3320         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
3321           properties
3322
3323 2006-03-21  Jackson Harper  <jackson@ximian.com>
3324
3325         * X11Keyboard.cs: improved layout detection. Move the nonchar
3326         tables into this file.
3327         * KeyboardLayouts.cs: Move the tables into resource files.
3328
3329 2006-03-21  Mike Kestner  <mkestner@novell.com>
3330
3331         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
3332
3333 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
3334
3335         * Mime.cs: Various speed optimizations. Looking up mime types
3336           is now 2 times faster than before
3337
3338 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
3339
3340         * CreateParams.cs: Added internal menu field
3341         * Control.cs: 
3342           - Switched call order for UpdateBounds; now we always call
3343             the one that also takes ClientSize, and we're calculating the 
3344             client size via driver method in the others. The previous
3345             method of tracking client size by difference wasn't working
3346             for forms where even the starting client size wouldn't match
3347             the overall form size (due to borders) (Part of fix for #77729)
3348           - CreateParams(): Do not use parent.Handle unless the handle is
3349             already created. Causes havoc with Nexxia and throws off our
3350             creation of controls
3351         * XplatUIX11.cs:
3352           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
3353           - Switched handling of ConfigureNotify over to new PerformNCCalc 
3354             method (consolidates code)
3355           - Changed RequestNCRecalc to use new PerformNCCalc method
3356           - Added calls to RequestNCRecalc when menus and borders are changed
3357             to allow app to set NC size. (Part of fix for #77729) This matches
3358             when MS send a WM_NCRECALC on Win32 windows.
3359           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
3360             (Part of fix for #77729). This matches what MS does, they also
3361             send that message when the form is made visible.
3362           - XException.GetMessage: Improved usability of X errors by including
3363             a translation of the window into Hwnd and Control class
3364           - Improved debug info for window creation, reparenting and destruction
3365           - Created helper method WindowIsMapped() [Currently not used]
3366         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
3367         * Form.cs:
3368           - CreateParams: Now setting our menu on the new internal menu field
3369           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
3370             avoid calculating the same property twice
3371         * Hwnd.cs:
3372           - Improved usability of ToString() for debugging purposes
3373           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
3374             determine the height of the menu, instead of just the font. This
3375             required to also create a graphics context and to keep a bmp 
3376             around (for performance reasons)
3377
3378 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
3379
3380         * MenuAPI.cs: Added OnMouseUp method
3381         * Form.cs:
3382           - Now remembering the requested client size, avoids size errors
3383           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
3384             instead of base if the menu is active. This is required due to
3385             control now capturing and releasing on down/up and it would
3386             prematurely release our menu capture
3387
3388 2006-03-17  Jackson Harper  <jackson@ximian.com>
3389
3390         * KeyboardLayouts.cs: Add the czech layouts.
3391
3392 2006-03-16  Jackson Harper  <jackson@ximian.com>
3393
3394         * Control.cs: Use the viewport space when sizing not the controls
3395         client size, so things like ScrollableControl that effect the
3396         viewport size (when scrollbars are added) are computed correctly.
3397         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
3398         of ManagerEntrys.
3399         - Handle creating BindingManagers for null data sources.
3400         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
3401         source, otherwise when rows are added they are added to the 'fake'
3402         datasource and we will crash when trying to set the position in
3403         those rows.
3404         - Use Implicit scrollbars on the datagrid so they arent
3405         selectable.
3406         
3407 2006-03-16  Jackson Harper  <jackson@ximian.com>
3408
3409         * Binding.cs:
3410         * InternalWindowManager.cs:
3411         * MdiWindowManager.cs:
3412         * X11Keyboard.cs: I really want Mike to love me again (fix
3413         compiler warnings).
3414
3415 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
3416
3417         * DataGrid.cs:
3418           - OnMouseDown: Switch to editing mode when clicking on the cell
3419                          even if we're clicking on the cell that's currently 
3420                          selected
3421           - ProcessGridKey: Left/Right now wrap like MS.Net does
3422           - ProcessGridKey: Tab now knows to add a new row when tab is
3423                             pressed in the cell of the last column of the 
3424                             last row
3425           - ProcessGridKey: Enter now adds another row  if pressed in the last
3426                             row and selectes the new row, same column cell
3427           - ProcessGridKey: Home/End navigate columns, not rows, like 
3428                             originally implemented
3429           - Broke ProcessKeyPreview code out into an extra Internal method
3430             so it can be called from the edit code
3431         * DataGridTextBox.cs (ProcessKeyMessage):
3432           - Switched to accept Tab keypresses
3433           - Added F2 handling to allow jumping to the end of the edited cell
3434           - Added logic to allow moving caret left/right inside edited cell
3435             and making the edited cell jump when the caret hits cell borders
3436           - Tab and Enter are now passed to the datagrid after being handled
3437         * TextBoxBase.cs:
3438           - Removed capture code now that Control handles it
3439           - set_SelectionStart now ensures caret is visible
3440
3441 2006-03-16  Jackson Harper  <jackson@ximian.com>
3442
3443         * TrackBar.cs: Debackwards the increment/decrement for handling
3444         mouse clicks on the bar with vertical trackbars.
3445         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
3446         bottom to match MS.
3447
3448 2006-03-16  Mike Kestner  <mkestner@novell.com>
3449
3450         * ListView.cs: make shift/ctrl keyboard and mouse selection 
3451         consistent with the MS control. Fix a bug in
3452         SelectedListViewItemCollection.Clear that was pissing me off for the
3453         better part of a day because the collection was being altered
3454         underneath us as we walked the list.
3455
3456 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
3457
3458         * Control.cs: Not sure how we could miss this so long, but it seems
3459           that MS.Net has Capture set all the way from before calling 
3460           OnMouseDown through sending the mouse events until after
3461           OnMouseUp. This will fix DataGrid's selection being set to end
3462           at the location of the MouseUp.
3463
3464 2006-03-15  Jackson Harper  <jackson@ximian.com>
3465
3466         * BindingContext.cs: Check the binding after its added so that it
3467           can initialize the binding managers and hookup to events.
3468         * Binding.cs: Data members seem to sometimes include rows/cols in
3469           the format Row.Column we now take this into account.
3470           - Hookup to the position changed event so we can update the
3471           control when the position has changed in the data set.
3472         * CurrencyManager.cs: Take into account the row/col naming
3473           convention when creating dataset tables.
3474         * BindingContext.cs: Using a newer better way of storing
3475           datasource/datamember pairs.  Hopefully this better matches MS for
3476           looking up binding managers.
3477
3478
3479 2006-03-15  Jackson Harper  <jackson@ximian.com>
3480
3481         * BindingContext.cs: The currency manager needs the data member
3482         name, if the member is a data set we use the name to find the
3483         correct table.
3484         * CurrencyManager.cs: When creating the list prefer an IList over
3485         an IListSource.
3486         - Attempt to create a DataTable from a DataSet (TODO: might need
3487         some better error checking here, although MS doesn't seem to have much)
3488         - If we have a DataTable create a view and use it as our list.
3489
3490 2006-03-15  Mike Kestner  <mkestner@novell.com>
3491
3492         * ListView.cs: keep a matrix of the icon mode layout to facilitate
3493         keyboard navigation. Support Up/Down/Left/Right selection correctly
3494         for all 4 View modes.
3495         * ListViewItem.cs: add internal row/col fields for icon layouts.
3496
3497 2006-03-15  Jackson Harper  <jackson@ximian.com>
3498
3499         * TabControl.cs: Redraw the tabs when we resize so their newly
3500         calculated sizes are drawn on screen.
3501         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
3502         composite characters.
3503         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
3504         - filter events so that composite characters can be created
3505         patches by peter
3506         * X11Structs.cs: Add XIMProperties enum.
3507
3508 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3509
3510         * Control.cs (BringToFront, SendToBack): Don't use window or handle
3511           unless it's created
3512
3513 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3514
3515         * Control.cs (PerformLayout): We don't need to consider visiblity
3516           for anchoring, only for docking. This fixes 'whacky' alignment
3517           in listbox and other controls that use implicit scrollbars after
3518           the previous PerformLayout patch
3519         * ListBox.cs: Switched to use implicit scrollbars
3520           
3521 2006-03-14  Mike Kestner  <mkestner@novell.com>
3522
3523         * ToolBar.cs: 
3524         * VScrollBar.cs:
3525         - chain up the "new event" overrides to base and use
3526         OnEvent to raise them.  Part of fix for bug #76509.
3527
3528 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
3529
3530         * FileDialog.cs: Do not select an item in the parent directory
3531           on backspace
3532
3533 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3534
3535         * Control.cs (PerformLayout): It would seem that we considered
3536           invisible windows for our layout. Not quite the right thing
3537           to do. Now we don't any longer, thereby fixing bug #76889.
3538
3539 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3540
3541         * Control.cs (CanFocus): I goofed. A control can have focus 
3542           even though it's not selectable. Made it match MS docs.
3543
3544 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3545
3546         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3547           center by default (fixes #76895)
3548         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
3549           all uses of Border3DSides.All with the explicit ORd together
3550           Left|Right|Top|Bottom because I assume that nobody was aware 
3551           that All also implies a center fill. Most places I checked had
3552           a fill right above.
3553         * ProgressBarStyle.cs: Added
3554
3555 2006-03-13  Mike Kestner  <mkestner@novell.com>
3556
3557         * ListView.cs: fix breakage in drag shadow header positioning 
3558         from Peter's csc compilation fix.
3559
3560 2006-03-13  Mike Kestner  <mkestner@novell.com>
3561
3562         * ListView.cs: fix NRE produced by backspacing twice in a focused
3563         FileDialog.
3564
3565 2006-03-13  Mike Kestner  <mkestner@novell.com>
3566
3567         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3568
3569 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3570
3571         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3572           be changed
3573         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3574           the allowed size before making programmatic size changes
3575
3576 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
3577
3578         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
3579           set, metacity is broken and will still use the emty sizes in 
3580           the struct. (Fix for #77089)
3581
3582 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3583
3584         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
3585           WindowExStyles and marked both enums as Flags
3586         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3587           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3588           to match WindowStyles split
3589         * XplatUIX11.cs:
3590           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3591           - Updated to match WindowStyles split
3592         * XplatUIWin32.cs:
3593           - Fixed FosterParent creation, was using ExStyle on the Style field
3594             (This should help with Popup focus issues)
3595           - Updated to match WindowStyles split
3596
3597 2006-03-13  Jackson Harper  <jackson@ximian.com>
3598
3599         * MdiWindowManager.cs: Use the system menu height. Fixes some
3600         strange sizing issues.
3601
3602 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3603
3604         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3605         * TextBoxBase.cs:
3606           - Scroll to caret after inserting text (#77672)
3607           - Make scroll range one pixel higher, fixes off-by-one error (and
3608             makes underlines visible on the last line)
3609
3610 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
3611
3612         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3613           the keyboard state from being stuck with keys in 'pressed' state when
3614           focus is switched away via keyboard
3615         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3616           reset the keyboard if no X11 KeyUp events are expected to come
3617         * X11Structs.cs: Switched type of Visible to bool to match driver
3618
3619 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3620
3621         * TextControl.cs:
3622           - Switched caret to be just 1 pixel wide, matches MS and looks less
3623             clunky
3624           - Moved caret display 1 pixel down from the top of the control
3625             to improve view
3626           - InsertCharAtCharet: Update the selection start if moving the caret
3627             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3628           - No longer always creating the caret when the caret methods are
3629             called. Only the actual ShowCaret/HideCaret will do that now
3630           - Only setting caret visible if the owner control has focus
3631           - UpdateView: Added invalidation-shortcut logic for center and right 
3632             aligned text. Previously we'd update all according to the left
3633             logic which caused drawing errors. Also fixed height of invalidated
3634             areas, now properly invalidating the whole area (was off-by-one)
3635           - owner_HandleCreated: Always generate the document when the
3636             handle is created; this ensures that 
3637         * TextBoxBase.cs:
3638           - Fixed situation where caret would disappear under the right
3639             window border, also improved scrolling behaviour on left-
3640             aligned textboxes
3641           - Fixed right-aligned textboxes to have a border to the
3642             right instead of the caret being under the right border
3643         * XplatUIX11.cs:
3644           - Switched from 'nested' to simple visible/not visible tracking 
3645             for caret (part of fix for #77671)
3646           - No longer passing through translated FocusIn/FocusOut messages
3647             since we were notifying too often and the wrong windows. Instead
3648             we just notify our focussed window of receiving or loosing focus
3649         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3650           counting for caret to simple visible yes/no behaviour (part of 
3651           fix for #77671)
3652
3653 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3654
3655         * Mime.cs: Remove debug code...
3656
3657 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3658
3659         * MimeGenerated.cs: Removed
3660         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3661           and subclasses) from /usr/(local/)share/mime and
3662           $HOME/.local/share/mime.
3663
3664 2006-03-10  Jackson Harper  <jackson@ximian.com>
3665
3666         * MdiWindowManager.cs: Recalc the NC area when a window is
3667         maximized/restored so that the menu area is drawn on forms that
3668         don't have a menu.
3669
3670 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3671
3672         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3673           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3674           us to force a WM_NCCALCRESIZE message being sent. This is needed
3675           for MDI maximizing.
3676
3677 2006-03-10  Jackson Harper  <jackson@ximian.com>
3678
3679         * Form.cs: We need to use the ActiveMenu when calculating menu
3680         height.
3681         - Fix nullref when the window manager hasn't been created yet.
3682         * Control.cs: Fix nullref when we try to bring a control to the
3683         front that has no parent.
3684         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3685         height.
3686         - Add a dummy item to the maximized menu so it always has the
3687         correct height. Otherwise when there are no menus we don't get our
3688         icon and buttons.
3689         
3690
3691 2006-03-10  Jackson Harper  <jackson@ximian.com>
3692
3693         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3694         stuff.
3695         * Form.cs: Make the window_state internal so the window managers
3696         can track it.
3697         - When an MDI child is maximized let its window manager create the
3698         main menu (so it can add its icon).
3699         - Notify the window managers of state changes
3700         - Let the window manager paint its buttons and handle button
3701         clicks on the menu when it is maximized.
3702         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3703         window manager, since tool windows don't use it, only mdi windows.
3704         - Tell the main form that we don't want it to handle NCPAINT
3705         itself to avoid extra painting.
3706         - Handle clicks on a maximized windows menu.
3707         - Handle window state changes
3708         - Handle minimize/maximize clicks correctly by setting the window state.
3709         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3710         when clicking on the forms icon).
3711         - New method to create a forms maximized menu. This is its normal
3712         menu + an icon.
3713         - Handle window state changes.
3714         - Handle sizing of maximized windows.  Maximized windows are just
3715         drawn bigger then the parent visible area. All controls are still
3716         there, they are just outside the visible area (this matches windows).
3717         * MdiClient.cs: No scrollbars when a child window is maximized.
3718         - Let the children windows figure out how big they should be when
3719         sizing maximized windows.
3720         - Implement a version of ArrangeIconicWindows somewhat similar to
3721         Windows version.  There are some little differences, but I don't
3722         think any app will rely on the layout of minimized mdi windows.
3723
3724 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3725
3726         * Padding.cs: Several fixes to allow compiling with csc 2.0
3727
3728 2006-03-09  Jackson Harper  <jackson@ximian.com>
3729
3730         * Menu.cs:
3731         * MenuItem.cs: Cheap hack so we can add items to the list without
3732         the events being raised.  This allows adding mdi items during
3733         drawing. TODO: Should probably find a better time to add the items.
3734
3735 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3736
3737         * ThemeWin32Classic.cs:
3738           - CheckBox_DrawText: Added logic to not wrap if not enough space
3739             is available (Fix for bug #77727)
3740           - RadioButton_DrawText: Added logic not to wrap if not enough
3741             space is available (Fix for bug #77727). Also removed some
3742             duplicate code, DrawString always drawing the regular text
3743             before hitting the if statement.
3744
3745 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3746
3747         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3748
3749 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3750
3751         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3752         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3753           methods. Moved the new 2.0 properties into alphabetical order with
3754           other properties and added MonoTODO tags
3755
3756 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3757
3758         * AutoScaleMode.cs: Added. Fix build.
3759
3760 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3761
3762         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3763           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3764           and was requiring premature handle creation for calls from above
3765         * Form.cs, Control.cs: Removed handle arguments from calls to
3766           CalculateClientRect()
3767
3768 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3769
3770         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3771           drag_column.column_rect is MarshalByRef and can't be used that way
3772
3773 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3774
3775         * AxHost.cs: Added deserialization constructor for 
3776           AxHost+State (fixes 77743)
3777
3778 2006-03-09  Mike Kestner  <mkestner@novell.com>
3779
3780         * ListView.cs: 
3781         - Added column drag reordering for details view.
3782         - fixed behavior when mouse is dragged off column and
3783         AllowColumnReorder is false.
3784         * ColumnHeader.cs: clone the format too in Clone.
3785         * Theme.cs: add DrawListViewHeaderDragDetails method.
3786         * ThemeWin32Classic.cs:
3787         - impl new method for drawing drag column shadows and targets.
3788         - support column offset for details mode in DrawListViewItem.
3789
3790 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3791
3792         * TextControl.cs: Reset the char_count when the document is cleared
3793           (Fixes bug reported on mono-winforms mailing list)
3794
3795 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3796
3797         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3798           of calling base we simply process the key ourselves, since both
3799           DefWindowProc and the handled method would set m.Result. 
3800           (Fixes #77732)
3801
3802 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3803
3804         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3805           method also moves the window; instead implemented a copy of
3806           Control.ScaleCore (Part of fix for #77456)
3807         * TextBoxBase.cs: 
3808           - Created new CreateGraphicsInternal method to allow providing
3809             a graphics context when no handle is created without triggering
3810             handle creation. (Part of fix for #77456)
3811           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3812         * TextControl.cs: 
3813           - Switched Constructor to require TextBoxBase instead of Control (to
3814             allow uncast access to CreateGraphicsInternal)
3815           - Safeguarded use of owner.Handle property. No longer accessing it
3816             unless the handle is already created.
3817           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3818           - Now triggering a recalc when owning control becomes visible
3819         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3820           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3821           premature handle creation (Part of fix for #77456)
3822         * Control.cs:
3823           - We now only destroy our double-buffering buffers when the
3824             control is resized or disposed, but not when visibility
3825             changes. (The code even re-created them twice every time)
3826           - Now requiring a redraw of the buffer on visibility changes
3827             (fixes bug 77654 part 2)
3828           - Not passing OnParentVisibleChanged up unless the control
3829             is visible
3830           - CanFocus: Fixed to match MS documentation
3831           - Focus: Fixed to return actual focus state and to check if
3832             setting focus is legal before setting it
3833
3834 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3835
3836         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3837           when to draw focus rectangle by looking at parent focus and
3838           selected state instead. This fixes TabPages on Linux sometimes
3839           having none or multiple focus rectangles.
3840         * XplatUIX11.cs (SetFocus): 
3841           - Don't set the focus if the same window already has focus
3842           - Use SendMessage instead of PostMessage (like it's Win32
3843             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3844             to match MS behaviour
3845         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3846           are not selectable.
3847
3848 2006-03-07  Jackson Harper  <jackson@ximian.com>
3849
3850         * PictureBox.cs: Revert line I accidently committed last week.
3851
3852 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3853
3854         * Control.cs: 
3855           - Added new IsRecreating and ParentIsRecreating properties to
3856             allow testing if RecreateHandle has been called on ourselves
3857             or one of our parents
3858           - WndProc(WM_DESTROY): If our control handle is being recreated
3859             we immediately need to create the handle when receiving the
3860             destroy, that way our child windows find a valid parent handle
3861             when they themselves are being recreated upon WM_DESTROY receipt
3862             (fix for bug #77654 part 1)
3863         * XplatUIX11.cs:
3864           - DestroyWindow: WM_DESTROY must be sent to our own window before
3865             notifying any child windows. MS documents that child windows
3866             are still valid when WM_DESTROY is received. (Control now relies on
3867             this behaviour)
3868           - Added some fine-grain debug options
3869
3870 2006-03-06  Jackson Harper  <jackson@ximian.com>
3871
3872         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3873         box and base calculations off this.
3874         * MdiChildContext.cs:
3875         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3876         anymore.
3877         
3878 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3879
3880         * Splitter.cs: In situations where the affected control is added
3881           to the parent's control list after the splitter, we would not
3882           populate affected. Now we try populating it on mousedown, if
3883           it's not already set, and force it to be re-set whenever our
3884           parent changes.
3885
3886 2006-03-03  Matt Hargett  <matt@use.net>
3887
3888         * Control.cs: implement Control.Padding
3889         * Padding.cs: -Padding.All returns -1 when constructing with the
3890         implicit default ctor
3891         -Padding.ToString() matches MS.NET
3892         * ContainerControl.cs: implement
3893         ContainerControl.AutoScaleDimensions
3894         * ListControl.cs: implement ListControl.FormattingEnabled
3895         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3896         * ButtonBase.cs:
3897         * TabPage.cs: Implement UseVisualStyleBackColor.
3898         * PictureBox.cs: Implement PictureBox.InitialImage.
3899
3900 2006-03-03  Mike Kestner  <mkestner@novell.com>
3901
3902         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3903         event declarations to proxy to base event.
3904         * ListViewItem.cs: update to use ItemControl.
3905         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3906         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3907         column header label rendering for 0 width columns.
3908
3909 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3910
3911         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3912           that causes the control to be created. Fixes #77476.
3913
3914 2006-03-02  Jackson Harper  <jackson@ximian.com>
3915
3916         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3917         expose_pending.
3918
3919 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3920
3921         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3922           passed in for the EventArgs (fixes #77690)
3923
3924 2006-03-01  Jackson Harper  <jackson@ximian.com>
3925
3926         * ScrollBar.cs: Refresh afterbeing resized.
3927
3928 2006-02-28  Mike Kestner  <mkestner@novell.com>
3929
3930         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3931         Clean up a tracker compile warning.
3932         * MenuItem.cs: add internal PerformPopup method.
3933         [Fixes #77457]
3934
3935 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3936
3937         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3938           implicit expose) when the text is set to null
3939
3940 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3941
3942         * RichTextBox.cs (FlushText): When newline is true, we always
3943           need to split the line, even if no text is on it and we may
3944           never eat newlines. (Fixes #77669)
3945
3946 2006-02-28  Mike Kestner  <mkestner@novell.com>
3947
3948         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3949         and set Selected instead.
3950         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3951         collections.
3952
3953 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3954
3955         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3956
3957 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3958
3959         * FontDialog.cs:
3960           - Got rid of the panel. All controls are now directly added to
3961             the dialog form
3962           - It is now possible to set a font with the Font property
3963           - MinSize and MaxSize property do now what they should
3964           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3965           - Searching and selecting a font with the font textbox works now,
3966             the same applies to the style and size textbox
3967           - Draw the correct 3D border in the example panel
3968           - Fixed a little mem leak (unused fonts didn't get disposed)
3969           - Many other internal updates/rewrites...
3970           - Fix typo
3971
3972 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3973
3974         * TextControl.cs: 
3975           - InsertRTFFromStream: Added 'number of characters inserted' argument
3976           - set_SelectedRTF: Now using the number of characters to calculate
3977             the new location for the selection and cursor (x/y cannot be used
3978             due to potentially already wrapped text)
3979
3980 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3981
3982         * TextControl.cs: Added property and implemented means to allow 
3983           disabling recalculation of a document (can be used to speed up
3984           multiple inserts and is needed to make RTF inserts predictable, see
3985           bug #77659)
3986         * RichTextBox.cs: Using the new NoRecalc property of Document to
3987           keep x/y insert locations predictable. Also makes it faster inserting
3988           large chunks of RTF
3989
3990 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3991
3992         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3993           it's easier for a child control to handle the other messages without
3994           having to duplicate the special functionality
3995         * TextBoxBase.cs
3996           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3997             code to handle processing the key ourselves, in order to get 
3998             access to the result of KeyEventArgs.Handled. We now only call 
3999             ProcessKey if they key hasn't been handled already. Fixes #77526.
4000           - set_Text: If null or empty string is given, just clear the 
4001             document. Fixes part of #77526
4002
4003 2006-02-27  Jackson Harper  <jackson@ximian.com>
4004
4005         * SizeGrip.cs: Paint the background color before painting the grip
4006         so things look right.
4007         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
4008
4009 2006-02-27  Mike Kestner  <mkestner@novell.com>
4010
4011         * ListView.cs:
4012           - Restructure layout and invalidation model to remove a ton of
4013           flicker from the control and speed up performance in general.
4014           - Add manual column resize, flickers like crazy, but I already have
4015           some ideas on how I'll fix that. (#76822)
4016           - Merge the three Icon-based views into a single layout method.
4017           - Move item selection interaction logic from the item since 
4018           interaction with the collections is more appropriate to the view.
4019           - Deselection on non-item clicks.
4020         * ListViewItem.cs:
4021           - Encapsulate most of the layout. Add some internal props to trigger
4022           layout.  Move to a model where Items invalidate themselves instead
4023           of just invalidating the whole control every time something changes.
4024           - Invalidate on Text/Caption changes.
4025           - switch to an offset based layout model to avoid having to absolute
4026           position every element on item moves.
4027           - correct checkbox layout to conform to MS layout.
4028         * ThemeWin32Classic.cs:
4029           - refactor some column header drawing code.
4030           - fix string justification for column headers (#76821)
4031           - make SmallIcon labels top justified for compat with MS impl.
4032         * ThemeClearlooks.cs:
4033           - adjust to new ListViewItem internal checkbox bounds api.
4034
4035 2006-02-27  Jackson Harper  <jackson@ximian.com>
4036
4037         * Control.cs:  Change where implicit controls fall in the zorder.
4038         They are now on top of all children.
4039         - Synced AddImplicit code with Add
4040         - Removed unused enumerator.
4041         * SizeGrip.cs: Remove the TODO as its been TODONE.
4042
4043 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
4044
4045         * TextControl.cs(Insert): Combine the last lines unless the insertion
4046           string ends with \n\n, otherwise we leave one line too many (Fixes
4047           something I noticed with the testapp for #77526; the bug itself was
4048           already fixed in the previous checkin)
4049
4050 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
4051
4052         * RichTextBox.cs:
4053           - SelectionColor and SelectionFont methods no longer set absolute
4054             styles. Instead, the keep font or color respectively (This 
4055             resolves a long-standing FIXME in the code)
4056           - When flushing RTF text, the insert code now considers text trailing
4057             behind the insertion point (Fixes the bug where when replacing
4058             the selected text via SelectedRTF the remainder of the line behind 
4059             the selection would stay on the first insertion line)
4060         * TextBoxBase.cs:
4061           - AppendText now updates the selection points after inserting text
4062           - AppendText now ensures that the last tag (sometimes 0-length) of
4063             the document is used for the style information (Fixes part of 
4064             bug #77220)
4065         * TextControl.cs:
4066           - Created new FontDefiniton class to allow describing partial style
4067             changes
4068           - StreamLine() now takes a lines argument, to allow it to decide
4069             whether an encountered zero-length tag is the last in the document
4070             (which must be kept to not loose the font/color contained in it,
4071             for later appends)
4072           - Created Combine() and Split() methods for Marker structs, to 
4073             support marker updates due to reformatted documents (soft line
4074             wraps)
4075           - Implemented Document.CaretTag setter
4076           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
4077             of the last line (Not the cause, but also exposed by bug #77220)
4078           - Added LineTag argument to InsertString method, to allow callers
4079             to force a certain tag to be used (required to force use of the
4080             trailing zero-length tag of a document)
4081           - Now updating markers in Combine(), to avoid stale tag markers
4082           - Added some method descriptions to aid maintenance
4083           - Implemented new FormatText concept, allowing additive/subtractive
4084             formatting by only specifying the components that are to be 
4085             changed. This was needed for resolving the RTB.SelectedColor/
4086             RTB.SelectedFont fixmes
4087           - Added Break() support method to allow breaking up linetags (used
4088             for partial formatting)
4089           - Added GenerateTextFormat() method. It is used for partial 
4090             formatting and allows to generate a full font/color from given
4091             attributes and an existing tag.
4092
4093 2006-02-26  Jackson Harper  <jackson@ximian.com>
4094
4095         * XplatUIX11.cs:  Use the correct caption height.
4096         - Translate hittest coordinates to screen coords to match MS.
4097         * XplatUIWin32.cs: When we create MDI windows we need to reset
4098         some of the style flags, so we get a nice blank window, and can
4099         draw all the decorations ourselves.
4100         - Set a clipping rectangle on the non client paint event, the
4101         window manager drawing code needs one.
4102         * Form.cs: The window manager needs to know when the window state
4103         has been updated.
4104         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
4105         don't need to factor in border and title sizes in these
4106         methods. TODO: Remove the args and fix the call points.
4107         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
4108         properly.
4109         - Let the driver set the cursors.
4110         - Improve active window handling
4111         - Correct sizes for title bars and buttons.
4112         - Match MS drawing better
4113         * MdiWindowManager.cs: We don't need to handle border style
4114         updates specially anymore.
4115         - Check for scrollbars when windows are done moving
4116         - Handle Active properly.
4117         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
4118         correctly. I am spewing the exception though, so we don't hide the
4119         bugs.
4120         
4121 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
4122
4123         * DataGridViewRowPostPaintEventArgs.cs,
4124           DataGridViewCellPaintingEventArgs.cs,
4125           DataGridViewRowCollection.cs,
4126           DataGridViewRowPrePaintEventArgs.cs,
4127           DataGridViewCell.cs: Clear a few warnings and implement a few
4128           exceptions that should be thrown.
4129
4130 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
4131
4132         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
4133           'inheriting' our parent's (non-default) cursor. (Part of
4134            the fix for #77479)
4135
4136 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
4137
4138         * XplatUIX11.cs: Fixed cast to make csc happy
4139
4140 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
4141
4142         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
4143           it's for the client area (part of fix for #77479 and needed
4144           for MDI window cursor handling)
4145         * XplatUIX11.cs
4146           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
4147             the appropriate default cursors and also passing the message
4148             up the parent chain 
4149           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
4150             for non-client areas
4151
4152 2006-02-15  Jackson Harper  <jackson@ximian.com>
4153
4154         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
4155         is a real MDI window
4156
4157 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
4158
4159         * X11DesktopColors.cs: Instead of checking the desktop session
4160           string for "KDE" check if it starts with "KDE"
4161
4162 2006-02-10  Jackson Harper  <jackson@ximian.com>
4163
4164         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
4165         systems).
4166
4167 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
4168
4169         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
4170           errors
4171         * ColorDialog.cs:
4172           - Got rid of the panel. All controls are now directly added to
4173             the dialog form
4174           - Changed to mono coding style
4175
4176 2006-02-10  Jackson Harper  <jackson@ximian.com>
4177
4178         * InternalWindowManager.cs: We don't need the set visibility to
4179         false hack anymore now that peter has written beautiful shutdown
4180         code.
4181
4182 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
4183
4184         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
4185           where already explicitly destroyed
4186
4187 2006-02-10  Jackson Harper  <jackson@ximian.com>
4188
4189         * MdiClient.cs: Handle the case where windows are too high or to
4190         the left and we need scrollbars.
4191
4192 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
4193
4194         * MimeIcon.cs: Added some icons
4195         * FileDialog.cs:
4196           - Fixed bug #77477
4197           - Got rid of the panel. All controls are now directly added to
4198             the dialog form
4199           - Changed to mono coding style
4200           - On Linux "My Computer" and "My Network" will now show some
4201             more usefull information. A new class, MasterMount, gathers
4202             this information from /proc/mount. Updated MWFFileView to make
4203             use of this information
4204           - Fixed a bug that caused FileDialog to crash when
4205             ".recently_used" file had a zero size
4206           - FilterIndex does now what it should
4207           - Some Refactoring
4208         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
4209             FileDialog changes
4210
4211 2006-02-09  Jackson Harper  <jackson@ximian.com>
4212
4213         * ComboBox.cs: Don't touch if null.
4214
4215 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
4216
4217         * Cursor.cs: 64bit safeness fix
4218         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
4219
4220 2006-02-09  Jackson Harper  <jackson@ximian.com>
4221
4222         * Form.cs: If a form is made into an MDI form update the styles so
4223         all the props can get set correctly.
4224         - Kill the mdi_container when we dont need it anymore.
4225         * InternalWindowManager.cs: Add missing NOT
4226
4227 2006-02-08  Jackson Harper  <jackson@ximian.com>
4228
4229         * InternalWindowManager.cs: Respek clipping when drawing MDi
4230         decorations.
4231
4232 2006-02-08  Jackson Harper  <jackson@ximian.com>
4233
4234         * Hwnd.cs: Add bits to track non client expose events.
4235         * XplatUIX11.cs: Track non client expose events on the hwnd. This
4236         gives us a proper invalid rect and will allow for some nice
4237         optimizations with NC client drawing
4238         - MDI windows are children windows, so move their style handling
4239         into the child window block.
4240         * InternalWindowManager.cs: Remove a state reset that was
4241         getting invoked at the wrong time. Fixes managed windows getting
4242         into a 'stuck' captured state.
4243
4244 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
4245
4246         * TextControl.cs (Document.ctor): Now initializing 
4247           selection_anchor. Fixes #77493
4248
4249 2006-02-07  Jackson Harper  <jackson@ximian.com>
4250
4251         * TrackBar.cs: The increment/decrements were backwards.
4252
4253 2006-02-07  Mike Kestner  <mkestner@novell.com>
4254
4255         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
4256         to the instance itself.
4257
4258 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
4259
4260         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
4261           on ulongs and pointers, the size differs between 32bit and 64bit
4262           systems. 
4263
4264 2006-02-07  Mike Kestner  <mkestner@novell.com>
4265
4266         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
4267         for 64 bit platforms to work around a metacity bug. 
4268
4269 2006-02-07  Jackson Harper  <jackson@ximian.com>
4270
4271         * TrackBar.cs: Process the input keys we need, and hookup to
4272         KeyDown instead of using WndProc, so we get key messages.
4273
4274 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
4275
4276         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
4277           machine we're on. 
4278         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
4279           we need to translate the XdndVersion atoms array before sending it
4280
4281 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
4282
4283         * XplatUIX11.cs: 
4284           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
4285             number of bits for the property, not the number of bytes. The
4286             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
4287             but would not crash since it specified 8 bits instead of 4 bits)
4288           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
4289             defined as XID -> long in the C headers)
4290           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
4291             references since those are now IntPtr to begin with
4292           - Switched all Atom.XXX 'int' casts to IntPtr casts
4293           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
4294           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
4295           - Added XChangeActivePointerGrab DllImport (for X11DnD)
4296         * X11Structs.cs:
4297           - Changed 'int' type for Atoms in XEvent structures to IntPtr
4298           - Changed atom in HoverStruct to be IntPtr
4299         * X11DnD.cs:
4300           - Removed local DllImports, switched code to use those from XplatUIX11
4301           - Removed/fixed casts related to the switch of Atom to be a IntPtr
4302
4303 2006-02-06  Mike Kestner  <mkestner@novell.com>
4304
4305         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
4306         method signatures in the import region.  There may still be some
4307         lingering struct marshaling issues, as I didn't drill down into those.
4308         Yet.
4309
4310 2006-02-06  Jackson Harper  <jackson@ximian.com>
4311
4312         * ComboBox.cs: Dont manually set the top_item, this is computed
4313         when the scrollbar position is set.
4314
4315 2006-02-06  Mike Kestner  <mkestner@novell.com>
4316
4317         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
4318         startup crashes on amd64.  There's other fixes needed.  All pinvoke
4319         usage of Atom needs to be mapped to IntPtr for example.  And there are
4320         likely other int/long issues to be addressed.
4321
4322 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
4323
4324         * FileDialog.cs: One more...
4325
4326 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4327
4328         * FileDialog.cs: Next try
4329
4330 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4331
4332         * FileDialog.cs: First part of fix for #77464
4333
4334 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4335
4336         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
4337           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
4338           AcceptButton border drawing.
4339
4340 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
4341
4342         * Form.cs: Moved positioning of form after auto scaling is applied,
4343           otherwise it would possibly use wrong form size.
4344
4345 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
4346
4347         * Control.cs (RecreateHandle): No need to re-create any child
4348           controls, the child windows will get destroyed automatically by
4349           the windowing system or driver, and re-created when the handle
4350           is being accessed the first time. Fixes #77456
4351         * Form.cs: No longer setting the form to closing if the handle is 
4352           being recreated. This seems like the right thing to do, don't
4353           have a bug or testcase for this, though.
4354
4355 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4356
4357         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
4358           controls to avoid unwanted side effects
4359
4360 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
4361
4362         * Control.cs: 
4363           - ScaleCore needs to scale the bounds, not the ClientSize of the 
4364             control. Fixes #77416.
4365           - DefaultSize is 0,0 for control
4366         * TextBoxBase.cs: 
4367           - DefaultSize is 100, 20
4368           - SetBoundsCore: Now enforcing the height, no matter if the provided
4369             height is more or less than the preferred one, as long as AutoSize
4370             is on
4371         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
4372
4373 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4374
4375         * Control.cs:
4376           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
4377             call unless both performLayout is true *and* we have a pending
4378             layout change
4379           - ResumeLayout: MS does not completely nest Suspend and Resume,
4380             they bottom out at 0, fixed our code to match that.
4381           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
4382             SetBoundsCore, we were updating even when we shouldn't. This fixes
4383             swf-anchors mis-anchoring when resizing the app fast and lots.
4384           - UpdateDistances: Now only setting the left and top distance if 
4385             we have a parent and are not suspended, this is based on
4386             a suggestion by Don Edvaldson in bug #77355.
4387           - OnVisibleChanged: Fixed logic when to create the control. We may
4388             not create the control if we have no parent or if it's not visible;
4389             switched to using Visible property instead of is_visible field 
4390             since the property also considers parent states. This fixes a bug
4391             when starting Paint.Net
4392
4393 2006-02-02  Jackson Harper  <jackson@ximian.com>
4394
4395         * Form.cs: If the forms handle hasn't been created yet don't call
4396         into xplatui to make it top most, just set the topmost flag on the
4397         form in CreateParams
4398         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
4399
4400 2006-02-01  Jackson Harper  <jackson@ximian.com>
4401
4402         * ScrollableControl.cs: Refactored the Recalculate method a
4403         little, this wasn't handling all the variants of bottom and right
4404         bars needed to be added and added/removed based on their
4405         counterparts being added/removed (which changes the drawable
4406         size). Also we special case client widths and heights of 0 and
4407         don't add the scrollbar for those.
4408
4409 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
4410
4411         * XplatUIX11.cs: 
4412           - Added method to get AbsoluteGeometry(); currently unused, but might
4413             be used in the future, if we try again to figure out toplevel
4414             coordinates with some more crappy window managers
4415           - Added FrameExtents() method to retrieve the WM set decoration size
4416           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
4417             to deal with at least KDE, FVWM and metacity (Fixes #77092)
4418         * Hwnd.cs: 
4419           - Added whacky_wm tracking var for metacity
4420           - Added logic to have default menu height if the actual menu height
4421             has not yet been calculated (part of fix for #77426)
4422         * Form.cs: Keep track whether client size has been set and re-set 
4423           it if a menu is added/removed afterwards (Fixes #77426)
4424
4425 2006-01-31  Jackson Harper  <jackson@ximian.com>
4426
4427         * Control.cs: When a new Site is set on the component attempt to
4428         pull the AmbientProperties from it.
4429
4430 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
4431
4432         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
4433           in the background of the owning form. Fixes #77332
4434
4435 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4436
4437         * MimeIcon.cs: Fix for #77409
4438
4439 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4440
4441         * XplatUIX11GTK.cs: Initial import
4442
4443 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
4444
4445         * FixedSizeTextBox: fixes class signature
4446
4447 2006-01-30  Jackson Harper  <jackson@ximian.com>
4448
4449         * FixedSizeTextBox.cs: New internal class that represents a
4450         textBox that will not be scaled.
4451         * TreeView.cs:
4452         * ComboBox.cs:
4453         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
4454         standard TextBox.
4455                 
4456 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
4457
4458         * XplatUIX11.cs: Retrieve default screen number instead of
4459           assuming 0. Attempted fix for #77318
4460
4461 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
4462
4463         * XplatUIWin32.cs: 
4464           - GetWindowPos: When a window is parented by FosterParent, use 
4465             the desktop instead of FosterParent as the base to get coordinates
4466           - CreateWindow: Don't make FosterParent the parent window for Popups
4467             if we don't want a taskbar entry, Popups automatically don't get one
4468         * Hwnd.cs: Need to call remove to actually remove the key from the
4469           hash table
4470
4471 2006-01-30  Mike Kestner  <mkestner@novell.com>
4472
4473         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
4474
4475 2006-01-30  Jackson Harper  <jackson@ximian.com>
4476
4477         * TreeView.cs:
4478         * TreeNode.cs: Raise events no matter how the treenode is
4479         checked. Patch by Don Edvalson.
4480
4481 2006-01-30  Jackson Harper  <jackson@ximian.com>
4482
4483         * TreeNode.cs: Signature fix.
4484
4485 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
4486
4487         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
4488
4489 2006-01-20  Mike Kestner  <mkestner@novell.com>
4490
4491         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
4492         event forwarding when menus are active.
4493         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
4494         Most of the patch is pdb's with a little rework.
4495
4496 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4497
4498         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
4499           Removed GetMenuDC and ReleaseMenuDC methods; replaced
4500           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
4501         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
4502         * InternalWindowManager.cs: Added use of PaintEventStart/End to
4503           handling of WM_NCPAINT message, now passing the PaintEventArgs to
4504           the PaintWindowDecorations method
4505         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
4506         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
4507         * MenuAPI.cs: Made tracker window invisible
4508         * XplatUIWin32.cs:
4509           - Removed GetMenuDC and ReleaseMenuDC methods
4510           - Implemented the client=false path for PaintEventStart and
4511             PaintEventEnd
4512
4513 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4514
4515         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4516         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4517           styles
4518         * Form.cs: 
4519           - MaximizeBox, MinimizeBox: Recreate the handle when setting
4520             the style
4521           - CreateParams: Reworked the styles to match MS look'n'feel,
4522             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4523             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4524
4525 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4526
4527         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
4528           window is not mapped, since otherwise every form that's being 
4529           created is considered minimized, which is wrong.
4530         * Form.cs: Catching the exception and returning our internal value
4531           instead
4532
4533 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4534
4535         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4536           SetWindowMinMax() to have means to tell the driver about the minimum,
4537           maximum and maximized state window sizes. (Part of the fix for #76485)
4538         * Form.cs:
4539           - Implemented tracking of minimum and maximum window size, now calling
4540             new SetWindowMinMax() driver method to tell the driver (Part of the
4541             fix for #76485)
4542           - Finished handling of WM_GETMINMAXINFO method, now setting all values
4543             (Completes fix for #76485)
4544           - Calling new SetWindowMinMax driver method when the handle for a 
4545             form is created, to make sure the driver knows about it even if
4546             the values have been set before the window was created
4547           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4548             to avoid messing up our anchoring calculations (partial fix
4549             for #77355)
4550         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4551         * XplatUIX11.cs:
4552           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4553           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
4554             (and presumably other freedesktop.org compliant WMs). Left the
4555             assumption unmapped=minimized, needed for SetVisible to work.
4556           - Now setting the window state when creating windows
4557           - Fixed SetVisible to consider/set the window state when mapping
4558             a Form. We cannot set the state before it's mapped, and we cannot
4559             use Form.WindowState once it's mapped (since it would ask the
4560             driver and get 'normal'. Therefore, we grab the state before
4561             mapping, map, and then set state.
4562           - Implmemented SetWindowMinMax method; Metacity does not seem to
4563             honor the ZoomHints, though.
4564         * XplatUIWin32.cs:
4565           - Removed MINMAXINFO (moved to XplatUIStructs)
4566           - Added SetWindowMinMax stub (on Win32 the only way to set that
4567             information is in response to the WM_GETMINMAXINFO message, which
4568             is handled in Form.cs)
4569           - Added logic to SetVisible to set the proper window state when a 
4570             form is made visible (fixes #75720)
4571
4572 2006-01-26  Jackson Harper  <jackson@ximian.com>
4573
4574         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4575         same way we handle them with Invoke.
4576
4577 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
4578
4579         * Form.cs:
4580           - Added tracking of window state so CreateParams can return
4581             the appropriate style
4582           - Moved setting of WS_CAPTION style in CreateParams to allow
4583             styles without caption
4584         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
4585           control if the TextBox property is accessed. Fixes #77345
4586         * Control.cs:
4587           - get_Created: now uses is_disposed and is_created to determine
4588             return value (suggested by Jackson)
4589           - CreateHandle: No longer exits if the handle is being recreated
4590           - RecreateHandle: If the handle is not yet created call the 
4591             appropriate method to create either control or handle. If the
4592             control is already created CreateHandle will simply exit instead
4593             of just creating the handle
4594         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4595           now SendMessage WM_DESTROY directly to the control when DestroyWindow
4596           is called.
4597         * XplatUIX11.cs: 
4598           - When DestroyWindow is called, instead of waiting for the 
4599             DestroyNotification from X11, we directly post it to the WndProc
4600             and immediately dispose the hwnd object.
4601             Same applies to DestroyChildWindows, and this obsoletes the
4602             expose_pending tracking. Contrary to Win32 behaviour we destroy our
4603             child windows before our own, to avoid X11 errors.
4604           - Removed the direct sending of WM_PAINT on UpdateWindow
4605         * XplatUIWin32.cs:
4606           - Reworked DoEvents and GetMessage to allow access to internal queue
4607             even when trying non-blocking access to the queue.  Fixes #77335. 
4608             Based on a patch suggestion by Don Edvalson. The new private
4609             GetMessage can now also be used as a backend for a PeekMessage
4610             frontend version.
4611         * XplatUI.cs: Improved debug output for CreateWindow
4612
4613 2006-01-25  Jackson Harper  <jackson@ximian.com>
4614
4615         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4616
4617 2006-01-24  Jackson Harper  <jackson@ximian.com>
4618
4619         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4620         when we have a MaxDropItems lower then the selected index.
4621
4622 2006-01-24  Jackson Harper  <jackson@ximian.com>
4623
4624         * Control.cs: Don't allow selection of non visible controls, allow
4625         selection of controls without parents.
4626
4627 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4628
4629         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4630         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4631
4632 2006-01-23  Jackson Harper  <jackson@ximian.com>
4633
4634         * UpDownBase.cs: Make the textbox handle all the selection and
4635         tabbing. This fixes tabing to updown controls.
4636
4637 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4638
4639         * TextBoxBase.cs: fixes exception thown the object was null
4640
4641 2006-01-23  Jackson Harper  <jackson@ximian.com>
4642
4643         * ButtonBase.cs: Just use the base CreateParams. They set
4644         visibility and enabled correctly.
4645         * ComboBox.cs:
4646         * TrackBar.cs:
4647         * MonthCalendar.cs: Lets let the base set as much of the
4648         createparams as possible so we don't have duplicate code all over
4649         the place.
4650
4651 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4652
4653         * ThemeGtk.cs: Added TrackBar and some experimental code to
4654           get double buffering back
4655
4656 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4657
4658         * DataGrid.cs: Allows row number set internally higher than the last
4659         when creating a new row. Restores the editing functionality.
4660
4661 2006-01-20  Mike Kestner  <mkestner@novell.com>
4662
4663         * MimeIcon.cs: delay Image creation until the icons are accessed
4664         instead of creating 190 scaled images on GnomeHandler startup.
4665
4666 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4667
4668         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4669           first call base before processing the event. Fixes #77279
4670
4671 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4672
4673         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4674           that the stride for the GDI bitmap would match the stride of
4675           a DIB or a Cursor.
4676
4677 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4678
4679         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4680
4681 2006-01-19  Jackson Harper  <jackson@ximian.com>
4682
4683         * ComboBox.cs: Hookup the text controls keydown event so we get
4684         those when the text control has the focus.
4685
4686 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4687
4688         * Label.cs: Now using the base events instead of defining new ones;
4689           this allows us to just call the base properties without having to
4690           duplicate all base property logic 
4691
4692 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4693
4694         * Label.cs: A label by default is not a tabstop (Fixes one of our
4695           failing nunit tests)
4696
4697 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4698
4699         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4700         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4701
4702 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4703
4704         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4705           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4706           This fixes #77218
4707         * XplatUIWin32.cs: 
4708           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4709             constructor creates images that can't be saved. Part of the fix
4710             for #76103
4711           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4712           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4713             bug fix for handling window state in forms properly)
4714
4715 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4716
4717         * ThemeGtk.cs: Simplify ScrollBar drawing
4718
4719 2006-01-18  Jackson Harper  <jackson@ximian.com>
4720
4721         * Splitter.cs: Set the default dock style for the splitter control
4722         in the constructor.
4723
4724 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4725
4726         * ThemeGtk.cs: Corrected StateType and ShadowType for
4727           gtk_paint_box
4728
4729 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4730
4731         * Control.cs: Make use of Theme.DoubleBufferingSupported
4732         * ThemeGtk.cs:
4733           - Added drawing for flat style buttons
4734           - Added ScrollBar drawing
4735
4736 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4737
4738         * ThemeClearlooks.cs: Removed some unneeded code.
4739         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4740
4741 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4742
4743         * LinkLabel.cs: We need to update the hover drawing when
4744           leaving the control as well.
4745
4746 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4747
4748         * DataGrid.cs: Clicking on non empty areas in the columns
4749            area was giving an exception
4750
4751 2006-01-17  Jackson Harper  <jackson@ximian.com>
4752
4753         * ThemeWin32Classic.cs:
4754         * ListView.cs: Do not draw/clip the headers when the header style
4755         is None.
4756
4757 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4758
4759         * DataGrid.cs: Fixes 77260
4760         
4761 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4762
4763         * DataGrid.cs: Clicking on a column on a empty grid was giving
4764           an exception
4765
4766 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4767
4768         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4769           or any keypress will crash the grid.
4770
4771 2006-01-17  Mike Kestner  <mkestner@novell.com>
4772
4773         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4774         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4775         invisible/previously-visible items.
4776         [Fixes #76909]
4777
4778 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4779
4780         * ThemeClearlooks.cs:
4781         - Added CL_Draw_Button method; now other theme controls that are 
4782           not derived from button or do not have a button can draw buttons
4783           too
4784         - Updated ComboBox drawing
4785         - Beautified RadioButton drawing
4786         - Corrected drawing of bottom and left tabs
4787         - Beautified DateTimePicker and MonthCalendar
4788         - Added CPDrawButton and CPDrawRadioButton
4789
4790 2006-01-16  Jackson Harper  <jackson@ximian.com>
4791
4792         * ComboBox.cs: Set the initial value of the scrollbar to the
4793         current index. Reduce the numbers of refreshs and IndexOfs called.
4794
4795 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4796
4797         * FileDialog.cs: When the file listview is focused hitting the
4798           backspace key moves the fileview to the parent directory
4799
4800 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4801
4802         * Form.cs: 
4803           - Added RecreateHandle call when changing taskbar visibility to 
4804             trigger reparenting in Win32 driver (Fixes #75719)
4805           - If a window has minimize or maximize buttons, it cannot have
4806             a help button
4807         * XplatUIWin32.cs:
4808           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4809             the toplevel form with FosterParent (A toolwindow not on the
4810             taskbar) (Fixes #75719)
4811           - Made FosterParent a toolwindow
4812
4813 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4814
4815         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4816
4817 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4818
4819         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4820           is currently over that control, make sure that tooltip_window.Text
4821           gets updated
4822
4823 2006-01-13  Mike Kestner  <mkestner@novell.com>
4824
4825         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4826
4827 2006-01-13  Jackson Harper  <jackson@ximian.com>
4828
4829         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4830         value passed.  Also redraw the selected node when we recieve
4831         focus, so tabbing between trees works correctly.
4832
4833 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4834
4835         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4836           ~/.gconf/%gconf-tree.xml, so use
4837           .gconf/desktop/gnome/interface/%gconf.xml
4838
4839 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4840
4841         * TextControl.cs: Draw text in gray if control is disabled
4842
4843 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4844
4845         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4846           make sure it's always visible. Fixes #76680.
4847
4848 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4849
4850         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4851
4852 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4853
4854         * PageSetupDialog.cs: Added.
4855         * PrintDialog.cs: Attributes.
4856         * PrintPreviewControl.cs: Updates.
4857         * PrintPreviewDialog.cs: Updates.
4858         
4859 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4860
4861         * Control.cs: Undid my selection check fix, since it's not needed
4862         * TextBoxBase.cs:
4863           - Now considering the presence of hscroll/vscroll when sizing
4864             vscroll/hscroll respectively. Fixed bug #77077
4865           - Added Left/Up/Down/Right to IsInputKey list to prevent
4866             ContainerControl from stealing them. This fixes what I broke
4867             with my last checkin.
4868
4869 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4870
4871         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4872           I finally understand how the property can be set without a setter :-)
4873
4874 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4875
4876         * Application.cs:
4877           - Switched RunLoop to use static Message.Create to create a 
4878             Message object
4879           - Added PreProcessMessage call in runloop for keyboard events; this
4880             is part of the fix for #77219, I overlooked this originally in the
4881             MSDN doc for PreProcessMessage
4882         * Control.cs:
4883           - Removed call to PreProcessMessage from handling of keyboard 
4884             messages; it's supposed to be done in the message pump
4885           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4886             per MSDN documentation.
4887           - IsInputChar: All chars are input chars by default; removed the 
4888             parent calling chain, MS does not document that
4889           - PreProcessMessage: If IsInputChar is true, we want to return false
4890             to allow dispatching of the message
4891           - When selecting the next control, now also check that we're not
4892             selecting ourselves again and therefore return a false positive.
4893         * TextBoxBase.cs:
4894           - Tried to match return values for IsInputKey and ProcessDialogKey
4895             to what MS returns; moved processing of our special keys outside
4896             ProcessDialogKey since MS does not seem to return true on those.
4897           - Moved code that previously was in ProcessDialogKey into new private
4898             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4899           - Reworked handling of WM_CHAR to not have to duplicate code from
4900             Control.cs anymore, instead we simply call down to base.
4901            
4902 2006-01-12  Jackson Harper  <jackson@ximian.com>
4903
4904         * ComboBox.cs: We always need to refresh the text area when
4905         EndUpdate is called. Fixes the combobox in the file dialog.
4906         * Control.cs: Don't create the creator_thread until the controls
4907         handle is created.  Also in InvokeRequired we check if the
4908         creator_thread is null. This gives the effect of InvokeRequired
4909         returning true if the controls handle is not created yet, and
4910         matches MS.
4911
4912 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4913
4914         * XplatUI.cs:
4915           - Added StartLoop() driver method. This is used to allow drivers to
4916             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4917             loop for a particular thread
4918           - Added EndLoop() driver method. This is called once the message
4919             pump for the thread is shut down
4920           - Added SupportsTransparency method to allow the driver to indicate
4921             opacity support for windows
4922         * Form.cs:
4923           - Removed TODO attribute, completed AllowTransparency property
4924           - Added documented logic to Opacity
4925         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4926           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4927           versions of CompatibleTextRendering
4928         * X11Structs.cs: Added opacity atom to our atom enumeration
4929         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4930           of a form might be set before it's reparented by the WM, and we need
4931           the opacity value without calling up to Form)
4932         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4933           SupportsTransparency() driver methods
4934         * Application.cs: Now calling StartLoop and EndLoop driver methods
4935         * XplatUIX11.cs:
4936           - Added opacity atom registration
4937           - Added StartLoop()/EndLoop() methods. They're empty right now but
4938             will need to get implemented when we switch to a per-thread queue
4939           - Implemented SupportsTransparency() method
4940           - Implemented SetWindowTransparency() method
4941           - Added support for setting the opacity value when a window is
4942             reparented (since the opacity needs to be set on the WM frame)
4943         * XplatUIOSX.cs, XplatUIWin32.cs:
4944           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4945
4946 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4947
4948         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4949
4950 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4951
4952         * FileDialog.cs: Added ToolTip for MWFFileView
4953         * MimeIcon.cs: Rewrote GnomeHandler.
4954           - Get currently used gnome icon theme from
4955             ($HOME)/.gconf/%gconf-tree.xml
4956           - Make use of inherited icon themes
4957           - Support SVG icon themes like Tango via librsvg
4958
4959 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4960
4961         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4962         builds. 
4963         
4964         * Application.cs: Move the use_compatible_text_rendering outside
4965         the NET_2_0 define.  If we ever need to use the
4966         use_compatible_text_rendering on the individual controls they will
4967         access the variable from the common shared code paths.
4968
4969 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4970
4971         * XplatUI.cs:
4972           - Added more granular debug options
4973           - Added method to print both window text and id
4974           - Switched debug output to use new Window() debug method
4975           - Added IsEnabled() driver method
4976           - Added EnableWindow() driver method
4977         * Form.cs:
4978           - Removed end_modal; no longer needed, new loop handles termination
4979             via 'closing' variable
4980           - If form is modal, setting DialogResult will now initiate loop
4981             termination via 'closing' variable
4982           - Added support for is_enabled/WS_DISABLED to CreateParams
4983           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4984             does all the work
4985           - Removed code that's now in RunLoop from ShowDialog()
4986           - Added various documented sanity checks to ShowDialog()
4987           - Added handling of WM_DESTROY message; we set 'closing' on getting
4988             the message to indicate the message pump to terminate
4989           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4990             send by the Application.ExitThread method. (We send the message
4991             to destroy the window after all other events have been
4992             processed through the queue, instead of destroying the handle 
4993             directly)
4994           - Moved code from Close() method to WM_CLOSE handler; added logic
4995             to only send close-related events if the form is not displayed
4996             modal
4997         * Splitter.cs (..ctor): Fixed typo in resource name
4998         * Control.cs:
4999           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
5000             brush now
5001           - set_Cursor: Now only setting calling into XplatUI if the handle for
5002             the control is already created; this avoids implict handle creation
5003             or crashes if it's not created
5004           - set_Enabled: Now setting the enabled state via the new driver method
5005             instead of just tracking it
5006           - CreateParams: Added logic to set WS_DISABLED based on enabled state
5007           - CreateControl: Reordered event firing and method calls to more
5008             closely fire events in the order MS does. Now setting the
5009             enabled state in the driver when creating the control.
5010           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
5011             match MS order
5012         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
5013           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
5014         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
5015         * Hwnd.cs:
5016           - Added tracking of window enabled state (get_Enabled/set_Enabled)
5017           - Added EnabledHwnd property to easily allow a driver to find the
5018             handle of the first enabled window in the parent chain (this is
5019             used by drivers to pass up input events of disabled windows)
5020         * XplatUIDriver.cs: Added IsEnabled() method
5021         * Application.cs:
5022           - Removed crude and obsolete exiting tracking variable
5023           - Removed internal ModalRun(); replaced by RunLoop()
5024           - Implemented private CloseForms() method to allow closing all 
5025             windows owned by a particular (or all) threads
5026           - Exit() now properly closes all windows without forcing the message
5027             pump to quit
5028           - Removed obsolete InternalExit() method
5029           - Changed Run() methods to use new RunLoop() message pump
5030           - Implemented new RunLoop() method for both modal and non-modal forms
5031         * CommonDialog.cs:
5032           - get_CreateParams: Added setting of WS_DISABLED
5033           - Simplified ShowDialog(); now all the work is done in RunLoop(),
5034             invoked via Form.ShowDialog()
5035         * NativeWindow.cs: We don't remove the window from the collection when
5036           the handle is destroyed; there might still be messages for it in the
5037           queue (mainly the resulting WM_DESTROY); instead it will be removed
5038           when Control calls InvalidateHandle in the WM_DESTROY handler
5039         * XplatUIX11.cs:
5040           - CreateWindow: Added logic to handle the WS_DISABLED window style
5041           - EnableWindow: Implemented based on Hwnd.Enabled
5042           - GetMessage: Reset PostQuitState so the method can be called again
5043           - Implemented support for disabled windows (passing messages to the
5044             first enabled parent) in handling all input messages
5045           - Added optimizations for handling Expose events
5046           - Implemeted new driver method IsEnabled()
5047           - Now always resetting paint pending tracking vars when we start paint
5048           - Re-implemented UpdateWindow via just sending a WM_PAINT message
5049         * XplatUIOSX.cs: Added IsEnabled method stub
5050         * XplatUIWin32.cs: Implemented new IsEnabled() method
5051
5052 2006-01-11  Jackson Harper  <jackson@ximian.com>
5053
5054         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
5055         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
5056         variables a little.
5057         * ColorDialog.cs: Clear out the old form before adding the new
5058         panel.  
5059
5060 2006-01-11  Jackson Harper  <jackson@ximian.com>
5061
5062         * X11Dnd.cs: Make sure to add all the text formats when adding
5063         strings to the data object.
5064         * TreeNodeCollection.cs: When adding to a sorted tree we need to
5065         do some redrawing too.  Also change the UpdateNode to an
5066         UpdateBelow so the newly added node gets painted.
5067         
5068 2006-01-11  Miguel de Icaza  <miguel@novell.com>
5069
5070         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
5071         LinkLabel.cs, PropertyGrid.cs: Implement the
5072         UseCompatibleTextRendering property for 2.x
5073
5074         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
5075
5076 2006-01-11  Jackson Harper  <jackson@ximian.com>
5077
5078         * TreeView.cs: Use the property for setting the selected node so
5079         the correct events get raised.
5080         * TreeNode.cs: Update the tree when the fore/back colours of a
5081         node are set.
5082
5083 2006-01-10  Jackson Harper  <jackson@ximian.com>
5084
5085         * TreeView.cs: Allow setting SelectedNode to null.
5086
5087 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5088
5089         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
5090
5091 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5092
5093         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
5094
5095 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5096
5097         * PrintDialog.cs: Added attributes and set default property values.
5098
5099 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5100
5101         * PrintControllerWithStatusDialog.cs: 
5102         Added PrintControllerWithStatusDialog.
5103
5104 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5105
5106         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
5107         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
5108
5109 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
5110
5111         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
5112
5113 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
5114
5115         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
5116         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
5117
5118 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
5119
5120         * MimeIcon.cs: Added internal class SVGUtil.
5121
5122 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
5123
5124         * FileDialog.cs: Don't crash if there are two files with the
5125           same name but different locations.
5126
5127 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
5128
5129         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
5130         dates across multiple month grids. Used to not highlight entire 
5131         month, but does now.
5132         
5133 2006-01-06  Jackson Harper  <jackson@ximian.com>
5134
5135         * MonthCalendar.cs: Removed DoEvents call to prevent a running
5136         message loop. Change timer intervals to numbers that seem more
5137         natural.
5138
5139 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
5140
5141         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
5142           object for location info since screen object is now implemented.
5143
5144 2006-01-05  Jackson Harper  <jackson@ximian.com>
5145
5146         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
5147         * AsyncMethodResult.cs: We no longer use a WeakReference for the
5148         AsyncMethodResult, this is because we ALWAYS want the
5149         ManualResetEvent to get set.
5150         * Control.cs: When disposing use an async invoke to call shutdown
5151         code, so that thigns don't block on the finalizer thread.  Also
5152         check if we even have a message loop before trying to send
5153         messages, if we don't then don't bother sending messages.
5154         - No more weak references for async methods
5155         * XplatUIDriver.cs: No more weak references for async methods.
5156
5157 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5158
5159         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
5160           returns two FontFamily with the same name
5161
5162 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
5163
5164         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
5165           drawing disabled text. Instead using the ColorGrayText color
5166
5167 2006-01-04  Jackson Harper  <jackson@ximian.com>
5168
5169         * TreeNode.cs: redraw the node when its image index is changed.
5170
5171 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
5172
5173         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
5174           time I checked there are no others like it.
5175
5176 2006-01-04  Jackson Harper  <jackson@ximian.com>
5177
5178         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
5179         this gives the behavoir I was looking for.
5180         * Control.cs: Special case Invoking EventHandlers, this matches MS
5181         and fixes part of bug #76326.
5182
5183 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5184
5185         * ThemeClearlooks.cs, FileDialog.cs:
5186           - Reflect the latest Theme class changes
5187           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
5188             with DateTime
5189             
5190 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5191
5192         * Theme.cs: Cache UI resource images and resize them if needed
5193
5194 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
5195
5196         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
5197           is called. This fixes the crash in Nexxia when setting the font
5198           attributes in the chat. [However, RTF needs a look-over to make sure
5199           that all SelectionXXX methods handle the special case that selection
5200           is empty and therefore the change must be applied to all text starting
5201           at the cursor/selection start]
5202
5203 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
5204
5205         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5206           XplatUIOSX.cs: Added SendMessage and PostMessage methods
5207         * X11Keyboard.cs: Switched to new way of calling PostMessage
5208
5209 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
5210
5211         * Theme.cs: Added theme interface for images to allow the theme to
5212           control what images are used for things like FileDialog, MessageBox
5213           icons, etc.
5214         * MessageBox.cs: Now uses the new Theme icon/image interfaces
5215
5216 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
5217
5218         * FileDialog.cs:
5219           - Removed some dead code
5220           - Opening a recently used file does work now
5221           - Small UI enhancements
5222           - Refactoring
5223
5224 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
5225
5226         * FileDialog.cs: Forgot too add __MonoCS__
5227
5228 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
5229
5230         * FileDialog.cs: We are able to read recently used files now let's
5231           go on and write them.
5232
5233 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
5234
5235         * FileDialog.cs: Breathe some life into "last open"/"recently used"
5236           button
5237         * MimeIcon.cs: Do a check for the top level media type also
5238
5239 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
5240
5241         * ThemeClearlooks.cs:
5242           - Added CPDrawStringDisabled
5243           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
5244             some chars if the text doesn't fit into text_rect
5245           - DrawListViewItem: If View = View.LargeIcon center the image;
5246             rewrote the drawing of ListViewItem.Text if View = 
5247             View.LargeIcon
5248
5249 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
5250
5251         * MimeIcon.cs: Use default KDE icon theme if there is no
5252           "48x48" directory for the current icon theme, fixes #77114
5253         * Mime.cs: Disable not working and actually not used code. 
5254         * ThemeWin32Classic.cs:
5255           - Replace "new SolidBrush" in GetControlBackBrush and
5256             GetControlForeBrush with ResPool.GetSolidBrush
5257           - Changed DrawListViewItem from private to protected virtual
5258         * FileDialog.cs:
5259           - Added form.MaximizeBox = true
5260           - Don't throw an exception if there is a broken symbolic link
5261
5262 2005-12-23  Jackson Harper  <jackson@ximian.com>
5263
5264         * TabControl.cs: Give the panels focus, keyboard navigation is
5265         fixed so this works correctly now.
5266         - We need these key events also.
5267         * ToolBar.cs: Remove some of the poor mans double buffering.
5268         
5269 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
5270
5271         * ComboBox.cs: The internal TextBox now returns the focus.
5272
5273 2005-12-23  Jackson Harper  <jackson@ximian.com>
5274
5275         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
5276
5277 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5278
5279         * Control.cs: Removed debug code
5280         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
5281           implicit children
5282
5283 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
5284
5285         * Control.cs: When creating the control, update the Z-order after
5286           all it's children are created, too. (Fixes nexxia not showing
5287           picturebox bug)
5288
5289 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5290
5291         * Control.cs: Do not update the anchoring distances if layout is
5292           suspended, instead do it once layout is resumed
5293
5294 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
5295
5296         * Control.cs: 
5297           - After many hours of debugging, for both Jackson and
5298             myself, it turns out that it helps to set the parent of a control
5299             if you want to actually see it onscreen. In the spirit of that
5300             discovery, we're now setting the parent of the control and
5301             it's children when the control's handle is created. This fix
5302             will make Lutz Roeder's Reflector run happily. 
5303           - now just creating the handle instead of the whole control when
5304             getting a graphics context for the control.
5305
5306 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5307
5308         * ScrollableControl.cs: When calculating the canvas, don't consider
5309           the scrollbar widths. Instead, predict if horizontal scrollbar
5310           will affect canvas when deciding on vertical display and vice versa.
5311
5312 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5313
5314         * RichTextBox.cs: Set default RTF font for documents that don't
5315           have a font table (Fixes #77076)
5316
5317 2005-12-22  Jackson Harper  <jackson@ximian.com>
5318
5319         * TextBoxBase.cs: It's difficult to do, but you can have an empty
5320         clipboard. This prevents a NullRef in that case.
5321         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
5322         clipboard. PRIMARY is for the currently selected text only. (We
5323         should implement PRIMARY at some point.
5324
5325 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5326
5327         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
5328           a Unicode function with a structure that was defined in Ansi way.
5329           This fixes #76942.
5330
5331 2005-12-21  Jackson Harper  <jackson@ximian.com>
5332
5333         * StatusBar.cs: Statusbar handles its fore/back colours on it's
5334         on. Because thats how it rolls. (and this avoids it using ambient
5335         colours).
5336         * ThemeWin32Classic.cs: Use the proper back color for filling.
5337         * Menu.cs: Use the system menu bar color for drawing menu
5338         bars. Using the window back color will bring ambient colours into
5339         the picture.
5340
5341 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
5342
5343         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
5344           Bitmaps were created and not disposed.
5345
5346 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5347
5348         * Control.cs (CreateControl): Don't do anything if the control is
5349           already created, otherwise we'd fire the OnCreated event more than
5350           once
5351
5352 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5353
5354         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
5355           will always match. Instead return -1. Fixes #76464.
5356
5357 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5358
5359         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
5360           neither the beginning nor the end of the line (Fixes bug #76479)
5361
5362 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5363
5364         * Control.cs:
5365           - ControlNativeWindow.ControlFromHandle(): Now handling situation
5366             where handle is invalid
5367           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
5368             instead of slower linear search
5369         * NativeWindow.cs: Don't remove the window from the hashtable until
5370           after the driver has destroyed it (since the driver might use
5371           Control.FromHandle to lookup the control object
5372         * Hwnd.cs: Added DestroyPending property to track if a window is 
5373           already destroyed as far as the driver is concerned and only hasn't
5374           yet notified the control
5375         * XplatUIX11.cs:
5376           - Activate(): Check if the window is still valid before using the 
5377             handle
5378           - Implemented DestroyChildWindow() method to mark child windows as
5379             destroyed when a window is destroyed. This prevents situations 
5380             where we might call an X method based on queued events for a
5381             window that already has been destroyed but we haven't yet pulled
5382             the destroy method from the queue.
5383           - Added a call to the new DestroyChildWindow() method to the drivers
5384             DestroyWindow code. Also now marking the destroyed window itself
5385             as pending
5386
5387 2005-12-20  Jackson Harper  <jackson@ximian.com>
5388
5389         * StatusBar.cs:
5390         * StatusBarPanel.cs: Don't calculate panel sizes on draw
5391         anymore. Just do them when needed, also track the rects of panels
5392         so that we can optimize refreshing more in the future.
5393
5394 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
5395
5396         * ColorDialog.cs: Fixed focus drawing in small color controls
5397
5398 2005-12-19  Jackson Harper  <jackson@ximian.com>
5399
5400         * InternalWindowManager.cs:
5401         * MdiWindowManager.cs: Cleanup some coordinate system changes so
5402         moving windows works properly.
5403
5404 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
5405
5406         * Control.cs: 
5407           - Removed call to InitLayout() from SetBoundsCore(); doc says
5408             it's only called when a control is added to a container
5409           - Split InitLayout logic, moved to separate UpdateDistances() method
5410             since we need to perform those calculations more often than just
5411             when adding the control to a container. (Needed to fix #77022)
5412           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
5413           - Reduced the OnBindingContextChanged events count, don't send them
5414             unless the control is created, we still aren't totally matching
5415             MS, but I can't quite figure out some of their rules
5416
5417 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5418
5419         * ThemeClearlooks.cs: Corrected distance between ProgressBar
5420           stripes
5421
5422 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5423
5424         * ThemeClearlooks.cs:
5425           - Updated ProgressBar drawing
5426           - Corrected drawing of ScrollBars and scroll buttons
5427           - Some temporary fixes for minor pixel artefacts
5428
5429 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
5430
5431         * Control.cs:
5432           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
5433             cause events to be sent in the same order as MS does.
5434           - Added ChangeParent() method to trigger various OnXXXChanged events
5435             that need to be fired when a parent changes (This is a reworking
5436             of the patch from r54254, with the X11 errors fixed)
5437           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
5438             since on MS we get OnLayoutChanged events when calling Clear()
5439           - Changed Enabled property to consider parent state as well, if a
5440             parent is not enabled, the control will not be either
5441           - Changed Parent property to simply call Controls.Add() since that
5442             now does all the work required, this way we avoid code duplication
5443           - Threw in a few OnBindingsContextChanged calls to try and match
5444             when MS sends them. We seem to send a few too many, though.
5445           - Added call to CreateControl when adding the control to a parent.
5446             We were never calling CreateControl. Still needs some work, in
5447             some places we treat HandleCreated and ControlCreated as equal, 
5448             which is wrong
5449           - Removed obsolete commented out code from UpdateZOrder()
5450
5451 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5452
5453         * ThemeClearlooks.cs: Updated TrackBar drawing.
5454
5455 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5456
5457         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
5458
5459 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5460
5461         * FileDialog.cs: Add the Help button and the open readonly
5462           checkbox only if needed
5463
5464 2005-12-16  Jackson Harper  <jackson@ximian.com>
5465
5466         * Control.cs: Make sure we have an active menu before trying to
5467         process commands on it. Prevents menu-less forms from crashing
5468         when Alt is pressed.
5469         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
5470         Dieter Bremes.
5471         * RichTextBox.cs: Expand statement to help out gmcs and fix the
5472         2.0 build.
5473
5474 2005-12-16  Jackson Harper  <jackson@ximian.com>
5475
5476         * InternalWindowManager.cs: Don't translate tool windows screen
5477         coordinates. This fixes windows 'bouncing' around when being moved.
5478
5479 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5480
5481         * TextBoxBase.cs:
5482           - MaxLength now treats 2^31-1 equal to unlimited length (this is
5483             not quite MS compatible, MS uses that number only for single line
5484             and 2^32-1 for multi-line, but I figure it won't hurt keeping
5485             the limit at 2GB)
5486           - Now enforcing the MaxLength limit when entering characters
5487           - Added argument to internal Paste() method to track if it's called
5488             from programatically or via keyboard, since keyboard driven pastes
5489             need to enforce max-length
5490           - Added logic to Paste to only paste as many chars as MaxLength 
5491             allows
5492         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
5493         * TextControl.cs:
5494           - Added Length property to return number of characters in document
5495           - Added private CharCount property which only tracks actual chars
5496             in the document (no linefeeds) and fires event when CharCount
5497             changes
5498           - Added tracking of character count to all methods that alter it
5499           - Added LengthChanged event to allow applications to subscribe
5500             to any changes to the document
5501
5502 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5503
5504         * TextBox.cs: 
5505           - Removed local password_char field (moved to TextBoxBase)
5506           - Now setting the document's password var when password is
5507             set
5508         * TextBoxBase.cs:
5509           - Added password_char field (needed here so MultiLine can
5510             access it)
5511           - Added logic to MultiLine property setter to set the document's
5512             variable when password display is allowed
5513           - Removed debug code and made some debug code conditional
5514         * TextControl.cs:
5515           - Added RecalculatePasswordLine() method to handle special password
5516             char only lines
5517           - Added PasswordChar property, also added related tracking vars
5518           - Draw() method now uses local text var for grabbing text to draw,
5519             this var is set to line.text unless we're doing password display,
5520             then it is set to the pre-generated all-password-chars line
5521           - Added calling RecalculatePasswordLine() method for password lines
5522
5523 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5524
5525         * Hwnd.cs: 
5526           - Added Reparented property to allow tracking of Window Manager
5527             reparenting actions (which affect X/Y calculations of toplevel 
5528             windows)
5529           - Made ToString() print window handles in hex
5530         * XplatUIX11.cs:
5531           - AddConfigureNotify(): Now uses reparented state off Hwnd to
5532             determine if X/Y needs offsetting
5533           - AddConfigureNotify(): Fixed offset calculations
5534           - Now adds ReparentNotify messages into the queue
5535           - Now processes ReparentNotify messages and causes a 
5536             WM_WINDOWPOSCHANGED message to be sent upstream if a window
5537             is reparented (as most likely it's X/Y coordinates are changed
5538             due to that)
5539
5540 2005-12-14  Jackson Harper  <jackson@ximian.com>
5541
5542         * XplatUIX11.cs: Tool windows still need to respek focus.
5543
5544 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5545
5546         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5547           have a working release
5548
5549 2005-12-13  Jackson Harper  <jackson@ximian.com>
5550
5551         * Form.cs: Update styles after setting the border style regardless
5552         of whether or not the window is using a window manager.
5553
5554 2005-12-13  Jackson Harper  <jackson@ximian.com>
5555
5556         * Form.cs: We now hook into an internal window manager instead of just an
5557         MDI subsystem, this is so we can have properly behaving tool windows.
5558         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5559         * InternalWindowManager.cs: New internal class that acts as a
5560         window manager for tool windows and as a base for mdi windows.
5561         * MdiWindowManager.cs: New class that acts as a window manager for
5562         mdi windows.
5563
5564 2005-12-12  Jackson Harper  <jackson@ximian.com>
5565
5566         * Control.cs: Updates so we match behavoir for for implicit
5567         controls. Fixes explosions in MDI.
5568
5569 2005-12-12  Jackson Harper  <jackson@ximian.com>
5570
5571         * Control.cs: Implement Invalidate (Region).
5572
5573 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
5574
5575         * Control.cs: 
5576           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
5577             the same events as MS does. MS fires events for each property 
5578             except, for unknown reasons, Cursor, when the control is reparented. 
5579             I can't seem to totally match add/remove since MS also fires some 
5580             VisibleChanged events, which makes no sense. Consolidated the
5581             parenting code into a separate method so it can be called from
5582             both Add and Remove. set_Parent no longer needs any special logic
5583             as it calls the parent's add method which implicitly fires
5584             all events
5585           - Removed some obsolete code and debug output
5586           - Enabled state is inherited from parents, if this is enabled
5587
5588 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
5589
5590         * Form.cs: Removed commented out code
5591
5592 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
5593
5594         * Control.cs:
5595           - Added internal version of Invoke, with additional argument 
5596             indicating if we're calling it from a Dispose() handler. That
5597             way we can avoid BeginInvoke throwing an exception if we're
5598             calling for an already destroyed window.
5599           - Added a dispose argument to BeginInvokeInternal, and made the
5600             check if a valid window handle chain exists conditional on
5601             it not being a dispose call
5602           - Removed code in DestroyHandle to destroy our children. Since we
5603             now handle the WM_DESTROY message we will catch all our children
5604             being destroyed.
5605           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5606         * Form.cs:
5607           - Added a field to track the application context of the form.
5608           - No need to set closing variable as response to WM_CLOSE, instead
5609             we destroy the window. We also call PostQuitMessage if the form
5610             has an application context (which makes it the main app form,
5611             which, when closed terminates the app)
5612         * XplatUI.cs:
5613           - Dropped Exit() method, it's naming was confusing
5614           - Added PostQuitMessage() which causes GetMessage to return false
5615             once the message queue is empty
5616         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5617           PostQuitMessage()
5618         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5619           no longer a valid XplatUI method, but left it in since it's used
5620           internally. Added empty PostQuitMessage() method.
5621         * MenuAPI.cs: Replaced call to Exit() with call to
5622           PostQuitMessage, even though this is probably no longer needed.
5623         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5624         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5625         * Application.cs:
5626           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5627           - Removed old debug code that would call XplatUI for exception
5628             display, enabled standard exception handling (Still not enabled
5629             though, until NativeWindow's ExternalExceptionHandler define
5630             is removed
5631         * NativeWindow.cs:
5632           - Added internal method to allow control to update NativeWindow
5633             after a window has been destroyed
5634           - Added handling of already destroyed windows when calling i
5635             DestroyWindow
5636           - Added removal of handle from list on ReleaseHandle
5637         * XplatUIX11.cs:
5638           - Dropped GetMessageResult var and related code
5639           - Added PostQuitState to field to track if PostQuitMessage has been
5640             called
5641           - Dropped Exit() method
5642           - Added PostQuitMessage() method
5643           - GetMessage now will return false if PostQuitState is set and no
5644             more messages are in the queue.
5645           - Expose handler will no longer generate WM_PAINT messages if we are
5646             in PostQuitState since it's very likely any windows have already
5647             been destroyed, and since Hwnd won't get updated until we have
5648             processed the DestroyNotify we'd be causing X errors.
5649         
5650 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5651
5652         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5653           Thanks to Mike for pointing out the err of my ways.
5654
5655 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5656
5657         * Control.cs(PreProcessMessage): Moved menu handling back, but
5658           after all other key handling, to match MS (who handles Menu in
5659           DefWndProc)
5660         * Menu.cs (WndProc): Removed my brainfart
5661
5662 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5663
5664         * Control.cs(PreProcessMessage): Removed special menu handling 
5665         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5666
5667 2005-12-07  Mike Kestner  <mkestner@novell.com>
5668
5669         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5670         state according in tracker.
5671         * Menu.cs : promote tracker field to base class and provide a tracker
5672         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5673         has a tracker. Unparent items that are removed from the collection.
5674         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5675         * Theme*.cs: add always_show_hotkeys field to support configurability
5676         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5677         pressed.
5678
5679 2005-12-07  Jackson Harper  <jackson@ximian.com>
5680
5681         * MdiChildContext.cs: Use Control.ResetCursor.
5682         * Control.cs: ResetCursor needs to set the property so that the
5683         correct XplatUI call gets made.
5684
5685 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5686
5687         * Control.cs: More fixes to make our key events match MS. We
5688           were not setting the modifier state on KeyData, and we were
5689           not generating any events when Alt was pressed with a key
5690           since handling of WM_SYSxxx was missing for the OnKey methods.
5691
5692 2005-12-07  Jackson Harper  <jackson@ximian.com>
5693
5694         * MdiChildContext.cs: reenable the sizing code.
5695         - When the mouse leaves a window reset its cursor.
5696
5697 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5698
5699         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5700
5701 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5702
5703         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5704           widths of Fixed3D borders
5705
5706 2005-12-07  Jackson Harper  <jackson@ximian.com>
5707
5708         * MdiClient.cs: Fix warnings. Earn Mike's love.
5709
5710 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5711
5712         * ThemeClearlooks.cs:
5713           - Adjusted mouse over button color
5714           - Added first parts of CheckBox drawing
5715           - Added correct color for selected text background
5716           - Fixed ComboBox drawing
5717           - Added CPDrawBorder3D and CPDrawBorder
5718
5719 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5720
5721         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5722
5723 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5724
5725         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5726           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5727           alert users via sound. We could add an enum arg with different
5728           types of alerts in the future
5729
5730 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5731
5732         * Control.cs: Fix behaviour problems pointed out by Mike
5733
5734 2005-12-05  Mike Kestner  <mkestner@novell.com>
5735
5736         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5737         prop setters.  Calls parent.Refresh for now, but could be maybe be
5738         optimized with an internal method on StatusBar at some point.
5739         [Fixes #76513]
5740
5741 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5742
5743         * RichTextBox.cs: Implemented get_SelectionColor
5744
5745 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5746
5747         * ThemeClearlooks.cs:
5748           - Removed dead code
5749           - Draw black button border only if button is Form.AcceptButton
5750           - Draw correct button color for pressed RadioButton if the mouse 
5751             has entered the button
5752           - Updated ProgressBar drawing!
5753           - Updated CPDrawSizeGrip drawing
5754           - Updated StatusBarPanel drawing
5755
5756 2005-12-05  Mike Kestner  <mkestner@novell.com>
5757
5758         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5759         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5760
5761 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5762
5763         * ThemeClearlooks.cs: Initial check-in, activate with
5764           export MONO_THEME=clearlooks
5765         * ThemeEngine.cs: Added ThemeClearlooks
5766
5767 2005-12-03  Mike Kestner  <mkestner@novell.com>
5768
5769         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5770         [Fixes #76897]
5771
5772 2005-12-02  Jackson Harper  <jackson@ximian.com>
5773
5774         * Form.cs: If the child form has no menu the default main menu is
5775         used as the active menu.
5776
5777 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5778
5779         * ListBox.cs: Check if any items exist before trying to resolve 
5780           coordinates into items
5781
5782 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5783
5784         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5785           as the second color for the background hatch
5786
5787 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5788
5789         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5790         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5791           sure that what we pass to FormatText is always 1-based. Fixes #76885
5792
5793 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5794
5795         * NumericUpDown.cs (EndInit): When we are done initializing,
5796         reflect any updates on the UI.
5797
5798 2005-12-02  Jackson Harper  <jackson@ximian.com>
5799
5800         * ImplicitHScrollBar.cs:
5801         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5802         their container controls.
5803         * TreeView.cs: Use the new implicit scrollbars.
5804
5805 2005-12-02  Jackson Harper  <jackson@ximian.com>
5806
5807         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5808         can play with it.
5809         * TreeNodeCollection.cs: If we remove the topnode we need to
5810         update topnode to the next node in line.
5811         - When clearing nodes go through the same process as removing
5812         them, so they get depareneted and checked if they are top node.
5813
5814 2005-12-01  Jackson Harper  <jackson@ximian.com>
5815
5816         * TreeView.cs: When imagelists are used the image area is
5817         selectable as well as the text.
5818         - If there are no selected nodes select the first one.
5819         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5820         so don't do it more then we need to.
5821
5822 2005-12-01  Jackson Harper  <jackson@ximian.com>
5823
5824         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5825         that arrows can be scaled.
5826
5827 2005-12-01  Jackson Harper  <jackson@ximian.com>
5828
5829         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5830         fail. Patch by Dieter Bremes
5831
5832 2005-11-30  Jackson Harper  <jackson@ximian.com>
5833
5834         * Form.cs: Property is 2.0 only
5835         * PrintDialog.cs: Signature fix.
5836
5837 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5838
5839         * TextControl.cs: 
5840           - No longer artificially moves text 2 pixels down (now that we have
5841             borders this is no longer needed)
5842           - Added calcs for left, hanging and right indent
5843
5844 2005-11-23  Mike Kestner  <mkestner@novell.com>
5845
5846         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5847
5848 2005-11-30  Jackson Harper  <jackson@ximian.com>
5849
5850         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5851         get cloned as part of CloneMenu ().
5852         * Menu.cs: Make sure the parent of the items get set correctly
5853         when they are added.  And the owners are notified of the changes.
5854         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5855         we can change the menu being displayed/handled by the form without
5856         changing the menu assosciated with the form.
5857         - Don't let Mdi children draw/handle menus.
5858         
5859 2005-11-30  Jackson Harper  <jackson@ximian.com>
5860
5861         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5862         a MenuChanged event. Just to make the API a little more
5863         consistent.
5864         * MainMenu.cs:
5865         * MenuItem.cs: Use the new OnMenuChanged
5866         * MdiChildContext.cs: Handle menu merging.
5867         * Form.cs: Implement MergedMenu.
5868         
5869 2005-11-30  Jackson Harper  <jackson@ximian.com>
5870
5871         * Menu.cs: We were misusing Add. Add goes behind the specified
5872         index according to the docs, and does not replace the specified
5873         index. So I added an Insert method.
5874
5875 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5876
5877         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5878           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5879           is for Jackson
5880         * RichTextBox.cs: Added calls to base for DnD events
5881
5882 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5883
5884         * TextControl.cs:
5885           - Fixed drag-selection related crash; style fixes
5886           - Implemented undo class
5887             o Implemented method to capture document state for specified
5888               range in document tree
5889             o Implemented method to restore captured document state
5890             o Implemented cursor tracking
5891             o Implemented basic undo stack
5892           - Added undo cursor tracking to methods altering cursor location
5893           - Added undo tracking to selection deletion (still missing
5894             other text-altering hookups)
5895         * RichTextBox.cs:
5896           - Added SelectionLength property
5897           - Implemented CanPaste()
5898           - Implemented Paste()
5899           - Added missing protected methods
5900           - Fixed RTF->Document conversion; now uses font index 0 and color 
5901             index 0 as the default font for the parsed text
5902           - Fixed RTF<->Document font size translation
5903           - Fixed RTF generation, now properly handles cross-tag boundaries
5904             for single line selection
5905           - No longer always appends blank line to generated RTF
5906           - Removed TODOs
5907           - Added missing attributes
5908           - Hooked up undo-related methods
5909         * TextBoxBase.cs:
5910           - Implemented Copy()
5911           - Implemented Paste()
5912           - Implemented Cut()
5913           - Fixed caret mis-behaviour on backspace across line-boundaries
5914
5915 2005-11-29  Jackson Harper  <jackson@ximian.com>
5916
5917         * MdiClient.cs: Add a method for activating mdi children. Very
5918         basic right now. I imagine someday it might need more girth.
5919         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5920         children windows names are added to the menu item.
5921         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5922         mdilist. This happens regardless of whether or not there are any
5923         mdi windows to see in the list, and according to my tests happens
5924         before the items are even added. Also happens if there isn't even
5925         an mdi client to get windows from.
5926
5927 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5928
5929         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5930         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5931
5932 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5933
5934         * DataGridTableStyle.cs:
5935           - Create always the styles for the missing columns even if they are
5936             provided by the user (not default table style)
5937         * DataGrid.cs:
5938           - Fixes bug 76770
5939           - Fixes SetDataBinding (always re-attach source)
5940           - Fixes SetNewDataSource (only clear styles if they are not for 
5941             this source)
5942          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5943             and remove properly
5944
5945 2005-11-29  Jackson Harper  <jackson@ximian.com>
5946
5947         * FileDialog.cs: Implement missing bits, remove some dead
5948         code.
5949         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5950         creation of the panel so that the options set on the dialog are
5951         seen when the panel is created.
5952         * TreeView.cs: raise a click when items are clicked.
5953         
5954 2005-11-29  Jackson Harper  <jackson@ximian.com>
5955
5956         * MdiClient.cs: Pass some signature methods through to base.
5957
5958 2005-11-28  Jackson Harper  <jackson@ximian.com>
5959
5960         * ListView.cs: Raise the click event when items are clicked.
5961
5962 2005-11-28  Jackson Harper  <jackson@ximian.com>
5963
5964         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5965         a nullref.
5966
5967 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5968
5969         * ThemeNice.cs: - Removed 1 pixel bitmaps
5970           - Use SmoothingMode.AntiAlias where it makes sense
5971             (ScrollButton arrow for example)
5972           - Enhanced Button focus drawing
5973           - Fixed ComboBox drawing (no artefacts anymore, focus
5974             rectangle is back again, reduced size of ComboButton, etc.)
5975           - Fixed RadioButton focus drawing for Appearence.Button
5976           - Slight ScrollButton redesign
5977           - Some LinearGradientBrush size fixes
5978           - GroupBoxes have now rounded edges
5979           - Fixed StatusBar drawing
5980
5981 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5982
5983         * ThemeNice.cs: - Remove dead code
5984           - use correct background colors for menus, etc.
5985           - Fake pixel drawing with 1 pixel bitmaps
5986
5987 2005-11-24  Jackson Harper  <jackson@ximian.com>
5988
5989         * MdiClient.cs: Size the scrollbars when resizing the window.
5990         - Resize the maximized windows when the client is resized
5991         * Form.cs: Make the child context available
5992         
5993 2005-11-23  Jackson Harper  <jackson@ximian.com>
5994
5995         * MdiChildContext.cs: Don't size windows if they are maximized.
5996
5997 2005-11-23  Mike Kestner  <mkestner@novell.com>
5998
5999         * ContextMenu.cs: use MenuTracker.
6000         * Control.cs: remove menu handle usage.
6001         * Form.cs: remove menu handle usage.
6002         * Hwnd.cs: remove menu handle usage.
6003         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
6004         motion and clicks to the new Tracker handlers.
6005         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
6006         and handle usage.
6007         * MenuAPI.cs: refactored to combine popup and menubar event handling.
6008         Killed the MENU and MENUITEM data types and associated collections
6009         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
6010         MenuTracker class that exposes the leftovers from the old MenuAPI
6011         static methods. Restructured Capture handling so that only one grab is
6012         done for the entire menu hierarchy instead of handing off grabs to
6013         submenus. Tracker now has an invisible control to Capture when active.
6014         * MenuItem.cs: add sizing accessors, kill Create
6015         and handle usage.
6016         * Theme.cs: remove menu handle and MENU(ITEM) usage.
6017         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
6018         MENU(ITEM). remove menu handle usage, use Menu directly.
6019         * XplatUIDriver.cs: remove menu handle usage.
6020         * XplatUIOSX.cs: remove menu handle usage.
6021         * XplatUIWin32.cs: remove menu handle usage.
6022         * XplatUIX11.cs: remove menu handle usage.
6023
6024 2005-11-22  Jackson Harper  <jackson@ximian.com>
6025
6026         * Hwnd.cs: Don't compute the menu size for
6027         DefaultClientRectangle.
6028         - Reenable menu sizes being computed for GetClienRectangle.
6029         * Form.cs: Remove comment of trechery
6030         
6031 2005-11-22  Jackson Harper  <jackson@ximian.com>
6032
6033         * Hwnd.cs: The adjustments for the menu bar are made when it is
6034         attached to the form.
6035
6036 2005-11-19  Jackson Harper  <jackson@ximian.com>
6037
6038         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
6039         (just like on windows).
6040
6041 2005-11-19  Jackson Harper  <jackson@ximian.com>
6042
6043         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
6044         use real buttons anymore because they are in non client area. The
6045         one TODO here is that I need to somehow invalidate a section of
6046         the non client area.
6047
6048 2005-11-18  Jackson Harper  <jackson@ximian.com>
6049
6050         * Control.cs: Put the enum check back in now that MDI doesnt have
6051         to use this to set border styles.
6052         * Form.cs: Only set mdi child windows borders if the handle has
6053         been created.
6054         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
6055         this directly on to the driver.
6056         - Get the move start position before adjusting for the titlebar
6057         height, this fixes the windows "skipping" when they are first
6058         moved.
6059
6060 2005-11-18  Jackson Harper  <jackson@ximian.com>
6061
6062         * XplatUIX11.cs: Just compute the mdi borders separately as they
6063         don't totally match up with normal form borders.
6064
6065 2005-11-18  Jackson Harper  <jackson@ximian.com>
6066
6067         * Control.cs: Set WS_ styles for borders, so that the driver does
6068         not have to retrieve the control instance to figure out what kind
6069         of borders it should have.
6070         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
6071         driver can know its an mdi child easily.
6072         * XplatUIX11.cs: Get the border styles and whether the window is
6073         MDI from the Styles and ExStyles params instead of having to get a
6074         control. This prevents a chicken and egg problem.       
6075
6076 2005-11-18  Jackson Harper  <jackson@ximian.com>
6077
6078         * MdiClient.cs: Fix typo so scrollbars show up correctly.
6079
6080 2005-11-18  Jackson Harper  <jackson@ximian.com>
6081
6082         * MdiClient.cs: Calculate when to add and remove scrollbars
6083         correctly.
6084         * MdiChildContext.cs: Adjust the y position to take the titlebar
6085         into account.
6086         - No height for FormBorderStyle.None
6087
6088 2005-11-18  Jackson Harper  <jackson@ximian.com>
6089
6090         * Control.cs: Allow non enum values to be used for
6091         InternalBorderStyle.  MDI does this to set a special border style.
6092         - New utility methods for converting points to/from client coords
6093         - Add the newly created control to the Controls collection before
6094         updating its style. This way UpdateStyle can walk the control
6095         heirarchy to find the control if needed.
6096         so I don't need to create a new Point object all the time.
6097         * Form.cs: Let MDI windows handle their border styles.
6098         - Set styles on MDI windows so the correct title style is derived.
6099         * MdiChildContext.cs: Move all the painting and window handling
6100         into the non client area.
6101         - Use correct sizing and put correct buttons on frames based on
6102         the FormBorderStyle.
6103         - Notify the mdi client about scrolling
6104         - Need to handle the buttons ourselves now, because they are all
6105         in non client areas and we can't add controls there.
6106         * MdiClient.cs: Halfway to scrolling, this implementation is
6107         somewhat broken though, we need to check to make sure other
6108         windows aren't causing scrolling before removing the bars. Also
6109         the bars need to be drawn on top, maybe I can switch implicit
6110         controls to be on top.
6111         * Hwnd.cs: caption_height and tool_caption_height are now
6112         properties of an hwnd, this way they can be set by the driver
6113         based on the type of window they are.  In X11 the window manager
6114         handles the decorations so caption_height is zero unless its an
6115         MDI window.
6116         - Add 3 pixel borders for MDI windows (0xFFFF).
6117         - Get rid of some code duplication, have DefaultClientRectanle
6118         just call GetClientRectangle.
6119         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
6120         Hwnd now.
6121         - Set border styles differently for mdi windows.
6122         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
6123         Hwnd now.
6124         
6125 2005-11-15  Mike Kestner  <mkestner@novell.com>
6126
6127         * Menu.cs: when adding an item to the collection, if item is already 
6128         parented, remove it from the parent.
6129
6130 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
6131
6132         * X11DesktopColors.cs: Added KDE support
6133
6134 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
6135
6136         * XplatUIWin32.cs: 
6137           - Clipboard methods now can translate Rtf format
6138           - No longer removes clipboard contents whenever a new format is added
6139             to allow placing multiple formats on the clipboard
6140         * Clipboard.cs: Clipboard now supports getting a IDataObject and
6141           will place all formats contained in it onto the clipboard. Also
6142           now cleans the clipboard before placing a new object onto it
6143         * RichTextBox.cs:
6144           - Implemented set_Rtf
6145           - Implemented set_SelectedRtf
6146           - Created InsertRTFFromStream() method to allow single code base
6147             for all properties and methods that insert RTF into document
6148           - Removed debug output
6149         * TextControl.cs:
6150           - Fixed Delete(int) to fix up line numbers
6151           - Fixed ReplaceSelection to combine start and end line
6152           - Fixed serious DeleteChars bug that would leave the document tree
6153             broken
6154           - Improved DumpTree with several logic checks to detect broken
6155             document trees
6156           - Removed debug lines
6157           - Fixed Caret.WordForward/WordBack moving code, now always also 
6158             updates caret.tag (fixes crash when word-selecting across tag
6159             boundaries via keyboard)
6160           - Added Insert() method for inserting multiline text into documents
6161           - Fixed DeleteChars() calculation errors that would cause a broken
6162             tag chain with multiple tag lines
6163           - DeleteChars() no longer crashes on multi-tag lines if not all tags
6164           - Split() no longer moves caret if split is at caret location
6165           - ReplaceSelection() now updates the cursor and re-displays it
6166           - ReplaceSelection() now uses new Insert() method to avoid code
6167             duplication
6168           - FormatText() can now handle formatting partial lines
6169         * TextBoxBase.cs:
6170           - Append now uses new TextControl.Insert() method (this avoids 
6171             duplicate code)
6172           - Implemented Ctrl-X (Cut) (
6173           - Implemented Ctrl-C (Copy)
6174           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
6175             regeneration when pasting text; roundtripping Copy&Paste within
6176             edit control still fails due to some calculation bugs in GenerateRTF)
6177           - The Delete key will now remove the current selection if it is visible
6178         * TextBox.cs: Removed debug lines
6179         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
6180           driver to be initialized and can't therefore be done via a static ctor)
6181
6182 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
6183
6184         * TextControl.cs: Added backend code for finding char arrays and strings
6185         * TextBoxBase.cs:
6186           - Added mouse wheel scroll support
6187           - Added support for VScroll and HScroll events
6188         * RichTextBox.cs:
6189           - Implemented all seven Find() variants
6190           - Implemented GetCharFromPosition()
6191           - Implemented GetCharIndexFromPosition()
6192           - Implemented GetLineFromIndex()
6193           - Implemented GetPositionFromCharIndex();
6194           - Implemented SaveFile for PlainText and UnicodeText
6195           - Fixed set_Font, now setting a new font applies that font to
6196             the whole document
6197           - Implemented generic Document to RTF converter
6198           - Implemented SaveFile for RichText format (still missing unicode
6199             conversion for non-ansi chars)
6200           - Implemented get_Rtf
6201           - Implemented get_SelectedRtf
6202
6203 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
6204
6205         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
6206           to allow any captures to be released before triggering OnClick. This
6207           way a click handler may capture the mouse without interference.
6208         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
6209           This way we send them even though X may not allow a grab (if the window
6210           isn't visible, for example)
6211
6212 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
6213
6214         * DataGridViewRowEventArgs.cs: DataGridView implementation
6215         * DataGridViewElement.cs: DataGridView implementation
6216         * DataGridViewComboBoxCell.cs: DataGridView implementation
6217         * DataGridViewDataErrorContexts.cs: DataGridView implementation
6218         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
6219         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
6220         * ImageLayout.cs: DataGridView implementation
6221         * DataGridViewComboBoxColumn.cs: DataGridView implementation
6222         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
6223         * DataGridViewSelectionMode.cs: DataGridView implementation
6224         * IDataGridViewEditingControl.cs: DataGridView implementation
6225         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
6226         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
6227         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
6228         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
6229         * DataGridViewColumnSortMode.cs: DataGridView implementation
6230         * DataGridView.cs: DataGridView implementation
6231         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
6232         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
6233         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
6234         * Padding.cs: DataGridView implementation
6235         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
6236         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
6237         * DataGridViewRowEventHandler.cs: DataGridView implementation
6238         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
6239         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
6240         * DataGridViewButtonCell.cs: DataGridView implementation
6241         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
6242         * DataGridViewEditMode.cs: DataGridView implementation
6243         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
6244         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
6245         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
6246         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
6247         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
6248         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
6249         * DataGridViewCellEventHandler.cs: DataGridView implementation
6250         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
6251         * DataGridViewCellStyleConverter.cs: DataGridView implementation
6252         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
6253         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
6254         * DataGridViewColumnEventArgs.cs: DataGridView implementation
6255         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
6256         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
6257         * QuestionEventArgs.cs: DataGridView implementation
6258         * IDataGridViewEditingCell.cs: DataGridView implementation
6259         * DataGridViewTriState.cs: DataGridView implementation
6260         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
6261         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
6262         * DataGridViewColumnCollection.cs: DataGridView implementation
6263         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
6264         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
6265         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
6266         * DataGridViewColumn.cs: DataGridView implementation
6267         * DataGridViewCellBorderStyle.cs: DataGridView implementation
6268         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
6269         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
6270         * DataGridViewRow.cs: DataGridView implementation
6271         * DataGridViewImageCellLayout.cs: DataGridView implementation
6272         * DataGridViewImageCell.cs: DataGridView implementation
6273         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
6274         * DataGridViewCheckBoxCell.cs: DataGridView implementation
6275         * DataGridViewHeaderCell.cs: DataGridView implementation
6276         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
6277         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
6278         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
6279         * DataGridViewTextBoxColumn.cs: DataGridView implementation
6280         * QuestionEventHandler.cs: DataGridView implementation
6281         * DataGridViewCellStyleScopes.cs: DataGridView implementation
6282         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
6283         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
6284         * DataGridViewCell.cs: DataGridView implementation
6285         * DataGridViewCellEventArgs.cs: DataGridView implementation
6286         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
6287         * DataGridViewCellStyle.cs: DataGridView implementation
6288         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
6289         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
6290         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
6291         * TextFormatFlags.cs: DataGridView implementation
6292         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
6293         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
6294         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
6295         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
6296         * DataGridViewButtonColumn.cs: DataGridView implementation
6297         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
6298         * HandledMouseEventArgs.cs: DataGridView implementation
6299         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
6300         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
6301         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
6302         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
6303         * DataGridViewRowCollection.cs: DataGridView implementation
6304         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
6305         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
6306         * DataGridViewHitTestType.cs: DataGridView implementation
6307         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
6308         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
6309         * DataGridViewColumnEventHandler.cs: DataGridView implementation
6310         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
6311         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
6312         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
6313         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
6314         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
6315         * DataGridViewContentAlignment.cs: DataGridView implementation
6316         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
6317         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
6318         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
6319         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
6320         * DataGridViewPaintParts.cs: DataGridView implementation
6321         * DataGridViewCellCollection.cs: DataGridView implementation
6322         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
6323         * DataGridViewImageColumn.cs: DataGridView implementation
6324         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
6325         * DataGridViewElementStates.cs: DataGridView implementation
6326         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
6327         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
6328         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
6329         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
6330         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
6331         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
6332         * DataGridViewRowHeaderCell.cs: DataGridView implementation
6333         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
6334         * DataGridViewTextBoxCell.cs: DataGridView implementation
6335         * DataGridViewBand.cs: DataGridView implementation
6336         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
6337         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
6338         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
6339         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
6340         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
6341         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
6342         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
6343         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
6344         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
6345         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
6346         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
6347
6348 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
6349
6350         * ThemeWin32Classic.cs: 
6351           - Draw the outside focus rectangle around buttons
6352           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
6353             doesn't use end caps for every dash of a line anymore. This
6354             workaround ignores the forecolor.
6355
6356 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
6357
6358         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
6359           endian safe.
6360
6361 2005-11-07  Jackson Harper  <jackson@ximian.com>
6362
6363         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
6364
6365 2005-11-07  Jackson Harper  <jackson@ximian.com>
6366
6367         * ScrollableControl.cs: Calculate the maximum and change vars
6368         (more) correctly so that scrollbars appear as a sensible size.
6369
6370 2005-11-04  Jackson Harper  <jackson@ximian.com>
6371
6372         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
6373         collection.
6374         * TreeView.cs: When the tree is sorted null out the top_node so
6375         that it is recalculated.
6376         - Use dotted lines instead of dashed lines to match MS better.
6377
6378 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
6379
6380         * ListView.cs: 
6381           - Implements key search for items. Useful when browsing files with FileDialog
6382           - When changing view mode or when clear the items reset scrollbar positions
6383
6384 2005-11-04  Jackson Harper  <jackson@ximian.com>
6385
6386         * CurrencyManager.cs: Implement the MetaDataChanged event, the
6387         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
6388         as to what the method may do as there is no real way of creating a
6389         derived CurrencyManager and calling the method. 
6390
6391 2005-11-03  Jackson Harper  <jackson@ximian.com>
6392
6393         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
6394         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
6395         method which seems to just be used internally to refresh the tabs.
6396
6397 2005-11-03  Jackson Harper  <jackson@ximian.com>
6398
6399         * TabControl.cs: Implement the remove method. Fix some broken
6400         comments.
6401
6402 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6403
6404         * DateTimePicker.cs:
6405           - Added missing DateTimePickerAccessibleObject class
6406           - Added missing events
6407           - Added OnFontChanged method
6408         * Form.cs: Added missing attributes
6409         * TreeView.cs: Added missing attributes
6410
6411 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
6412
6413         * GridItemCollection.cs: Fix signatures
6414
6415 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6416
6417         * XplatUI.cs: Updated build rev/date
6418         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
6419           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
6420         * Application.cs: Trigger context-specific ExitThread events
6421
6422 2005-11-03  Jackson Harper  <jackson@ximian.com>
6423
6424         * Menu.cs:
6425         * MainMenu.cs:
6426         * GridTableStylesCollection.cs:
6427         * Timer.cs:
6428         * TabPage.cs:
6429         * HelpProvider.cs:
6430         * StatusBar.cs:
6431         * MonthCalendar.cs: Signature fixes
6432
6433 2005-11-03  Jackson Harper  <jackson@ximian.com>
6434
6435         * TreeNodeCollection.cs: Remove should not be virtual.
6436         * TreeView.cs: Implement the last of the missing methods.
6437
6438 2005-11-03  Jackson Harper  <jackson@ximian.com>
6439
6440         * TreeNodeConverter.cs: Implement to get off my class-status back.
6441
6442 2005-11-03  Jackson Harper  <jackson@ximian.com>
6443
6444         * TreeView.cs: Hookup the bits for drag and drop.
6445         * TreeNode.cs: Don't cache the tree_view or index anymore, now
6446         that nodes can be moved from tree to tree easily this just causes
6447         all sorts of problems.
6448         * TreeNodeCollection: Don't need to give treenodes an index and
6449         treeview anymore when they are added, these are computed on the
6450         fly. Also make sure to remove a node before its added.
6451
6452 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6453
6454         * TextControl.cs:
6455           - Added CaretSelection enum
6456           - Added comparison methods to Marker struct, makes selection code
6457             more readable
6458           - Added SelectionStart and SelectionEnd as 'moveable' location for
6459             the CaretDirection enum and handler
6460           - Added selection_prev variable to track optimized invalidation for
6461             word and line selection
6462           - Added SelectionVisible property (returns true if there is a valid 
6463             selection)
6464           - Switched CaretHasFocus to only display the caret if there is no
6465             visible selection
6466           - Avoiding StringBuilder.ToString to retrieve a single char, instead
6467             using the direct character index; should be much faster
6468           - Added various conditional debug statements
6469           - Fixed invalidation calculation for selection ranges
6470           - Added ExpandSelection() method to support word and line selection
6471           - Switched SetSelectionToCaret to use new Marker compare overloads
6472           - Added central IsWordSeparator() method to determine word 
6473             separators/whitespace and FindWordSeparator() to streamline common
6474             usage of IsWordSeparator()
6475         * TextBoxBase.cs:
6476           - Removed unneeded grabbed variable, it was just mirroring
6477             Control.Capture
6478           - No longer firing OnTextChanged event when Text setter is called,
6479             since the base will fire the event for us
6480           - Added handling of Ctrl-Up/Down selection
6481           - Added handling of Shift-Cursorkey selection
6482           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
6483             words
6484           - Added handling of Shift and Ctrl-Shift-Home/End selection
6485           - Removed some debug output
6486           - Added handling for single/double/tripple-click to place caret/
6487             select word/select line respectively (Fixes bug #76031)
6488           - Added support for drag expansion of word/line selection
6489         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
6490           current selection
6491
6492 2005-11-02  Jackson Harper  <jackson@ximian.com>
6493
6494         * X11Dnd.cs: If the drag is going to and from a MWF window just
6495         copy the data instead of sending it out through the X Selection
6496         mechanism.
6497
6498 2005-11-02  Jackson Harper  <jackson@ximian.com>
6499
6500         * X11Dnd.cs:
6501         * XplatUIX11.cs: When in a drag we don't want motion notify
6502         messages to get passed on to the other controls. This prevents
6503         mouse move messages from showing up in the drag source.
6504
6505 2005-11-02  Jackson Harper  <jackson@ximian.com>
6506
6507         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
6508         the correct button is release to end a drag.
6509         * XplatUIX11.cs: Make the button state internal so the drag system
6510         can access it.  Dragging needs to know about all button releases,
6511         not just left button.
6512
6513 2005-11-02  Miguel de Icaza  <miguel@novell.com>
6514
6515         * Form.cs (Icon): If the icon is null, reset the icon to the
6516         default value. 
6517
6518         * Cursor.cs: When writing the AND-mask bitmap do not include the
6519         number of colors, but hardcode those to two (black and white),
6520         fixes the loading of color cursors (Paint Dot Net).
6521
6522         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6523         turn off autoscaling.
6524
6525         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6526
6527 2005-11-02  Jackson Harper  <jackson@ximian.com>
6528
6529         * X11Dnd.cs: Make sure to send a status message if the pointer
6530         enters a control that can not accept a drop, otherwise the cursor
6531         isn't updated correctly. Also tried to compress the lines of code
6532         a bit.
6533
6534 2005-11-02  Jackson Harper  <jackson@ximian.com>
6535
6536         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6537         set actions correctly.  This isn't perfect as XDND and win32 have
6538         some differences on how you allow actions. I'll clear this up by
6539         adding a path for drag from MWF to MWF windows.
6540         * XplatUIX11.cs: Hook into the dnd system.
6541
6542 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
6543
6544         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6545         previously shown but they are no longer need it. Very obvious when 
6546         browsing files with FileDialog.
6547
6548 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
6549
6550         * Control.cs: We always need to call OnPaintBackground. We pretty much
6551           ignore AllPaintingInWmPaint and always do the painting there, whether 
6552           it's set or not, since we always ignore the WM_ERASEBKGND message 
6553           (which we don't generate on X11). This fixes #76616.
6554         * Panel.cs: Removed unneeded background painting. This happens properly
6555           in Control.cs already
6556
6557 2005-10-31  Mike Kestner  <mkestner@novell.com>
6558
6559         * Menu.cs: Add items to collection before setting their index.
6560         * MenuItem.cs : add range checking with ArgumentException like MS.
6561         [Fixes #76510]
6562
6563 2005-10-31  Jackson Harper  <jackson@ximian.com>
6564
6565         * ListBox.cs: Invalidate if the area is visible at all not just
6566         contained in the visible rect. Fixes unselection of semi visible
6567         items.
6568
6569 2005-10-31  Jackson Harper  <jackson@ximian.com>
6570
6571         * Control.cs: Consistently name the dnd methods. Make them
6572         internal so we can override them to match some MS behavoir
6573         internally.
6574         * Win32DnD.cs: Use the new consistent names.
6575
6576 2005-10-31  Jackson Harper  <jackson@ximian.com>
6577
6578         * TreeView.cs: Don't draw the selected node when we lose focus.
6579
6580 2005-10-31  Jackson Harper  <jackson@ximian.com>
6581
6582         * X11Dnd.cs: We still need to reset the state even though a full
6583         reset isn't being done, otherwise status's still get sent all over
6584         the place.
6585
6586 2005-10-31  Jackson Harper  <jackson@ximian.com>
6587
6588         * Control.cs: Make the dnd_aware flag internal so the dnd
6589         subsystem can check it. Catch exceptions thrown in dnd handlers to
6590         match MS behavoir.
6591         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6592         * X11Dnd.cs: Handle null data in the converters. Set the XDND
6593         version when sending a XdndEnter. Use the control/hwnd dnd_aware
6594         flags to reduce the number of dnd enters/status's sent.
6595
6596 2005-10-31  Jackson Harper  <jackson@ximian.com>
6597
6598         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6599
6600 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
6601
6602         * PictureBox.cs: Fixes 76512
6603
6604 2005-10-28  Jackson Harper  <jackson@ximian.com>
6605
6606         * X11Dnd.cs: Early implementation to support winforms being a drag
6607         source for data on X11. Also restructured the converters so they
6608         can go both ways now.
6609         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6610         
6611 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
6612
6613         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6614           clipboard requests
6615
6616 2005-10-27  Jackson Harper  <jackson@ximian.com>
6617
6618         * TreeNode.cs: Implement serialization so my DnD examples will work.
6619
6620 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6621
6622         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6623           TreeView.cs: Don't dispose objects that are not owned.
6624           
6625 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6626
6627         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6628           should retrieve the current cursor and report that, but XplatUI
6629           doesn't (yet) have an interface for that (and I'm not sure I even
6630           can, on X11)
6631         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6632           until any message loop processing is done (and the WM_SETCURSOR
6633           replaces the cursor to the proper one)
6634         * XplatUIX11.cs: 
6635           - Fixed override behaviour, we can't set the cursor globally on X11, 
6636             just for our windows.
6637           - Invalidating the System.Drawing X11 display handle when we are
6638             shutting down
6639         * Control.cs: Fix to make csc happy
6640
6641 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6642
6643         * TextBoxBase.cs: 
6644           - get_Text: Add last line (without trailing newline) to returned
6645             value (Fixes 76212)
6646           - get_TextLength: Count last line in returned length
6647           - ToString: Call Text property instead of duplicating code
6648
6649 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6650
6651         * ImageList.cs: Dispose ImageAttributes objects.
6652
6653 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6654
6655         * ImageList.cs: Use attribute constructors with less arguments where
6656           possible.
6657
6658 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6659
6660         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6661           Use typeof instead of strings when assembly is referenced. Added
6662           some more comments.
6663
6664 2005-10-21  Jackson Harper  <jackson@ximian.com>
6665
6666         * ListView.cs: Raise a double click event. Also tried to somewhat
6667         fix when the selectedindexchanged event is raised. Its still
6668         broken though.
6669
6670 2005-10-21  Jackson Harper  <jackson@ximian.com>
6671
6672         * TreeView.cs: New method to invalidate the plus minus area of a
6673         node without invalidating the whole node (maybe this can be used
6674         in some more places).
6675         * TreeNodeCollection.cs: When adding to an empty node we need to
6676         invalidate its plus minus area so the little block shows up.
6677         
6678 2005-10-21  Jackson Harper  <jackson@ximian.com>
6679
6680         * TreeView.cs: Make sure that when we invalidate a node the bounds
6681         are big enough to cover the selected box and the focus
6682         rectangle. Use a different colour for the lines connecting nodes
6683         so they show up with all themes.
6684
6685 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6686
6687         * NativeWindow.cs: Don't call anything that could call into the driver,
6688           we might be on a different thread.
6689
6690 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6691
6692         * Control.cs(Dispose): Since Dispose might run on a different thread,
6693           make sure that we call methods that could call into the driver via
6694           invoke, to avoid thread issues
6695
6696 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6697
6698         * XplatUI.cs: Removed finalizer
6699         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6700           not allowing to be called on the finalizer thread.
6701
6702 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6703
6704         * ImageList.cs:
6705           - Reverted r51889 and r51891.
6706           - Added ImageListItem class that stores unmodified image items and image
6707             properties required to create list images until handle is created.
6708           - Added AddItem and moved image creation logic to AddItemInternal.
6709           - Added CreateHandle method that creates images based on unmodified items.
6710           - Added DestroyHandle that changes state to store unmodified items.
6711           - Add and AddStrip methods no more create handle.
6712           - ReduceColorDepth has no return value.
6713           - Dispose destroys handle.
6714           - Modified other methods to reflect the above changes.
6715           - Implemented key support.
6716           - Added profile 2.0 members and attributes.
6717           - Added private Reset and ShouldSerialize methods that provide the same
6718             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6719             them as they are private.
6720           - Added some more comments about implementation details.
6721
6722 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6723
6724         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6725
6726 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6727
6728         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6729
6730 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6731
6732         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6733         * DataGridColumnStyle.cs: Remove debug message
6734
6735 2005-10-20  Jackson Harper  <jackson@ximian.com>
6736
6737         * TreeView.cs: We can always get input keys regardless of whether
6738         or not editing is enabled. They are used for navigation.
6739
6740 2005-10-20  Jackson Harper  <jackson@ximian.com>
6741
6742         * TreeNode.cs: Use the viewport rect for determining if a node
6743         needs to be moved for visibility. Don't use Begin/End edit. This
6744         calls a full refresh when its done.
6745         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6746         rect property internal so the treenodes can see it. When clicking
6747         on a node we need to ensure that its visible because it might just
6748         be partly visible when clicked.
6749
6750 2005-10-20  Jackson Harper  <jackson@ximian.com>
6751
6752         * TreeNodeCollection.cs: Remove debug code.
6753
6754 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6755
6756         * Datagrid.cs: Implements column sorting in Datagrid
6757         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6758
6759 2005-10-20  Jackson Harper  <jackson@ximian.com>
6760
6761         * TreeNodeCollection.cs: Remove items properly. Update the correct
6762         area after removing them.
6763
6764 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6765
6766         * Datagrid.cs: Should not call base.OnPaintBackground
6767
6768 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6769
6770         * XplatUIX11.cs (GetMessage):
6771           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6772             window instead of client window
6773           - Now properly calculates NC_xBUTTONUP message coordinates
6774           - ScreenToMenu now properly calculates it's coordinates of whole 
6775             window, since menus are in the whole window, not in the client
6776             window
6777           - Added WholeToScreen coordinate translation method
6778
6779 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6780
6781         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6782           want to return a message, loop back to the beginning of the function
6783           and grab the next real message to process instead.
6784
6785 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6786
6787         * Splitter.cs: Properly set limits if no filler control is used
6788
6789 2005-10-19  Jackson Harper  <jackson@ximian.com>
6790
6791         * ColorDialog.cs: Don't show the help button if it is not enabled
6792         instead of disabling it (this is what MS does). Don't create the
6793         panel until the dialog is run, otherwise the vars (such as
6794         ShowHelp) are not set yet.
6795
6796 2005-10-19  Jackson Harper  <jackson@ximian.com>
6797
6798         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6799         are reduced when adding nodes.
6800         * TreeNode.cs:
6801         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6802         tree.
6803         
6804 2005-10-19  Jackson Harper  <jackson@ximian.com>
6805
6806         * FolderBrowserDialog.cs: End editing our treeview so the window
6807         actually gets refreshed.
6808
6809 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6810
6811         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6812           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6813           inside of WM_PAINT
6814
6815 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6816
6817         * MenuAPI.cs: Returns after Hidding window
6818         * XplatUIX11.cs: Added TODO found while debugging menu issues
6819
6820 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6821
6822         * XplatUIX11.cs: Do not re-map the whole window when it's size
6823           becomes non-zero unless it's supposed to be actually visible
6824
6825 2005-10-18  Jackson Harper  <jackson@ximian.com>
6826
6827         * TreeView.cs: We don't need to keep a count anymore.
6828         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6829         use the Grow method.
6830
6831 2005-10-18  Jackson Harper  <jackson@ximian.com>
6832
6833         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6834         implement it manually here.
6835
6836 2005-10-18  Jackson Harper  <jackson@ximian.com>
6837
6838         * ImageList.cs: Dont kill the list when the colour depth is
6839         changed, just change the colour depth of all the images.
6840         - Same goes for setting the image size. Just resize them all
6841         instead of killing the list softly.
6842
6843 2005-10-18  Jackson Harper  <jackson@ximian.com>
6844
6845         * Control.cs: Don't invalidate empty rectangles.
6846
6847 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6848
6849         * ListViewItem.cs:
6850           - Adds checked item to the Checked/Item lists (where empty before)
6851           - Do not add items to the Selected lists if they are already present
6852         * ListView.cs:
6853           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6854           - When deleting items make sure that we delete them for the Selected
6855           and Checked list also.
6856
6857 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6858
6859         * Label.cs: Dispose objects no longer used
6860         * ThemeWin32Classic.cs: Dispose objects no longer used
6861
6862 2005-10-18  Jackson Harper  <jackson@ximian.com>
6863
6864         * TabControl.cs: Don't refresh the whole control when the tabs are
6865         scrolled, we just need to refresh the tab area.
6866
6867 2005-10-17  Jackson Harper  <jackson@ximian.com>
6868
6869         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6870         after handle when we need it.
6871
6872 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6873
6874         * Control.cs: When the parent size changes, recalculate anchor 
6875           positions. Partial fix for #76462
6876
6877 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6878
6879         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6880           drawn. Fixes #76462
6881
6882 2005-10-17  Jackson Harper  <jackson@ximian.com>
6883
6884         * MonthCalendar.cs: Don't create the numeric up down until our
6885         handle is created. Otherwise our handle is created in the
6886         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6887         yet.
6888
6889 2005-10-17  Jackson Harper  <jackson@ximian.com>
6890
6891         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6892         correctly.
6893
6894 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6895         * TreeNode.cs : small logical fix (was using local var instead of field)
6896         
6897 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6898
6899         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6900
6901 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6902
6903         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6904
6905 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6906
6907         * Control.cs: 
6908           - Re-implemented anchoring code. My first version was really broken.
6909             This fixes bug #76033. Unlike the previous implementation we will
6910             no longer have round errors since all numbers are calculated from
6911             scratch every time. Removed various anchor-related obsolete vars.
6912           - InitLayout no longer causes layout event firing and layout to be 
6913             performed
6914
6915 2005-10-16  Jackson Harper  <jackson@ximian.com>
6916
6917         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6918         which was broken).
6919
6920 2005-10-16  Jackson Harper  <jackson@ximian.com>
6921
6922         * TabControl.cs: Remove debug code.
6923
6924 2005-10-16  Jackson Harper  <jackson@ximian.com>
6925
6926         * XEventQueue.cs: Increase the default queue size (very simple
6927         apps needed to grow the queue).
6928         * Hwnd.cs: No finalizer so we don't need to suppress
6929         finalization. Compute the invalid area manually so a new rectangle
6930         does not newto be created.
6931         * ScrollableControl.cs: Don't set any params (otherwise visibility
6932         isn't set correctly).
6933         * MdiChildContext.cs: New constructor takes the mdi parent so it
6934         doesn't have to be computed and avoids a crash on windows. Draw
6935         the window icon properly, and allow the text to be seen.
6936         * Form.cs: Use new MdiChildContext constructor. Make sure the
6937         child context isn't null in wndproc.
6938         * TabControl.cs: Don't set focus, this is muddling keyboard
6939         behavoir. Expand the tab rows when a window size increase will
6940         allow extra tabs to be seen. Don't allow tabs smaller than the
6941         width of a window to be scrolled out of view.
6942         * TreeNode.cs:
6943         * TreeView.cs: Use measure string to calculate a nodes width, the
6944         width is cached and only updated when the text or the font is
6945         changed. Don't check for expand/collapse clicks on the first level
6946         nodes if root lines are disabled.
6947         
6948 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6949
6950         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6951
6952 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6953
6954         * DataGridBoolColumn.cs: fixes warning
6955
6956 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6957
6958         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6959         to match more to match more precisely the MS Net behavior
6960
6961 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6962
6963         * Hwnd.cs: Added field to track if window is mapped
6964         * XplatUIX11.cs: 
6965           - Unmap windows if they become 0-size, re-map when 
6966             they are >0 again; fixes #76035
6967           - Re-set our error handler after initializing X11Desktop
6968             to override any error handlers Gtk or whatever was called
6969             may have set.
6970
6971 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6972
6973         * CheckedListBox.cs: Removed unused vars
6974         * ListView.cs: Fixed signatures
6975         * RichTextBox.cs: Removed unused vars
6976         * TextBoxBase.cs: Removed unused vars
6977         * XplatUIWin32.cs: Removed unused vars
6978         * XplatUIX11.cs: Removed unused vars
6979         * XplatUI.cs: Updated version and date to latest published
6980
6981 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6982
6983         * Cursor.cs: Added private .ctor to work around a bug in
6984           resourceset (Thanks to Geoff Norton for the help on this)
6985         * SplitterEventArgs.cs: Made fields accessible so we don't
6986           waste boatloads of objects and can reuse the same one
6987           in Splitter
6988         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6989           any captions and borders when generating screen coordinates
6990         * Splitter.cs: Reimplemented control, now fully complete, uses
6991           rubberband drawing, supports and obeys all properties, has
6992           proper cursors
6993
6994 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6995
6996         * Form.cs (Form): Setup default values for autoscale and
6997         autoscale_base_size;  Make these instance variables, not static
6998         variables. 
6999
7000         (OnLoad): on the first load, adjust the size of the form.
7001
7002 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
7003
7004         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
7005           width argument to DrawReversibleRectangle()
7006         * XplatUIWin32.cs, XplatUIX11.cs: 
7007           - Implemented width for DrawReversibleRectangle()
7008           - Added logic to DrawReversibleRectangle that recognizes a zero
7009             width or height and only draws a line in that situation
7010         
7011 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
7012
7013         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
7014         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
7015         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
7016           method (it uses our FosterParent window to get a graphics context)
7017
7018 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
7019
7020         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
7021           and SetWindowBackground methods
7022         * Control.cs:
7023           - Setting proper ControlStyles
7024           - We no longer call XplatUI.SetWindowBackground and XplatUI.
7025             EraseWindowBackground, instead we draw the window background
7026             ourselves in PaintControlBackground. This behaviour is
7027             required to match MS, where, when OnPaintBackground is not
7028             called, the background is not drawn.
7029           - Removed unneeded Refresh() in set_Text
7030         * Hwnd.cs: Dropped the ErasePending support. No longer needed
7031         * XplatUIX11.cs:
7032           - Created DeriveStyles method to translate from CreateParams to
7033             FormBorderStyle and TitleStyle, also handles BorderStyle (which
7034             matches FormBorderStyle enum values)
7035           - Consolidated SetHwndStyles and CalculateWindowRect border/title
7036             style calculations into single DeriveStyles method
7037           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
7038             from redrawing the whole window on any resize or expose.
7039           - Fixed CreateWindow usage of SetWindowValuemask. Before not
7040             all styles were applied to our whole/client window appropriately
7041           - Removed EraseWindowBackground() and SetWindowBackground() methods
7042           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
7043             no longer clear/redraw the background through X
7044           - Removed handling of erase_pending bit, we have no use for it (or
7045             so it seems)
7046         * XplatUIOSX.cs:
7047           - Removed generation and handling of WM_ERASEBKGND message
7048           - Removed EraseWindowBackground() and SetWindowBackground() methods
7049           - Removed handling of hwnd.ErasePending flag
7050         * XplatUIWin32.cs:
7051           - Removed EraseWindowBackground() and SetWindowBackground() methods
7052           - We no longer call EraseWindowBackground on PaintEventStart, we 
7053             ignore the fErase flag, erasing is handled in Control in the
7054             background handler
7055         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
7056           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
7057           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
7058           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
7059           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
7060           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
7061           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
7062
7063 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
7064
7065         * PropertyGrids.cs: Get sub properties
7066         * PropertyGridView.cs: Fix drawing code
7067
7068 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
7069
7070         * ListBox.cs: Fixes 76383
7071
7072 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
7073
7074         * DataGridTextBoxColumn.cs: Sets location and size before attachment
7075         * ThemeWin32Classic.cs: Fixes border drawing and calculations
7076         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
7077
7078
7079 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
7080
7081         * ComboBox.cs: Fixes border drawing
7082
7083 2005-10-10  Miguel de Icaza  <miguel@novell.com>
7084
7085         * MimeIcon.cs: Ignore errors if the file can not be read.
7086
7087 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
7088
7089         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
7090          - Fixed border calculations
7091          - Fixed horizontal scrolling in single column listboxes
7092          - Fixed drawing issues
7093
7094 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
7095
7096         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
7097           FormBorderStyle enum
7098         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
7099           code to determine FormBorderStyles from CreateParams
7100         * Form.cs:
7101           - Fixed bug where we'd set the wrong window styles if we were
7102             not creating an MDI window
7103           - Added call to XplatUI.SetBorderStyle when form borders are set
7104         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
7105         * Hwnd.cs:
7106           - Removed obsolete edge style
7107           - Switched from BorderStyle to FormBorderStyle
7108         
7109 2005-10-10  Jackson Harper  <jackson@ximian.com>
7110
7111         * Form.cs: Use the property to get the window handle instead of
7112         accessing it directly. Prevents a null reference exception.
7113
7114 2005-10-10  Jackson Harper  <jackson@ximian.com>
7115
7116         * TreeView.cs: Don't adjust the rect given to DrawString now that
7117         our libgdiplus draws correctly.
7118
7119 2005-10-08  Jackson Harper  <jackson@ximian.com>
7120
7121         * TreeView.cs: Don't try to find the clicked on node if there are
7122         no nodes in the tree.
7123
7124 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
7125
7126         * RichTextBox.cs:
7127
7128           restore
7129
7130 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
7131
7132         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
7133           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
7134           ErrorProvider.cs:
7135           Use ResPool for brushes and dispose System.Drawing objects that
7136           are not used anymore.
7137
7138 2005-10-07  Jackson Harper  <jackson@ximian.com>
7139
7140         * MdiChildContext.cs: Use the new borders instead of drawing them
7141         ourselves.
7142
7143 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
7144
7145         * Calling UpdateBounds after changing the window's BorderStyle 
7146         since the style can change the ClientSize
7147
7148 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7149
7150         * Control.cs: Made PaintControlBackground virtual
7151         * Panel.cs: Overriding PaintControlBackground instead of using paint
7152           event; paint event method was interfering with 'real' users of the
7153           event.
7154
7155 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
7156
7157         * ThemeWin32Classic.cs: remove border drawing since it is handled
7158         by the base control class now and was causing double border drawing.
7159
7160 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7161
7162         * Panel.cs: Redraw our background on paint. Not a pretty solution,
7163           but it does seem to match MS behaviour. This fixes bug #75324
7164
7165 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7166
7167         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
7168           somewhat hackish looking
7169
7170 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7171
7172         * TextBoxBase.cs:
7173           - We now accept Enter even if AcceptEnter is false, if the containing
7174             form does not have an AcceptButton configured (fixes bug #76355)
7175           - Calculations are now fixed to no longer use Width/Height, but
7176             ClientSize.Width/Height, since we now support borders (this was
7177             a result of fixing borders and therefore bug #76166)
7178           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
7179             true (fixes bug #76354)
7180         
7181 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7182
7183         * Control.cs: 
7184           - Defaulting BorderStyle and setting it in XplatUI when our window 
7185             is created
7186           - Added enum check to InternalBorderStyle setter
7187         * XplatUIX11.cs: 
7188           - Added drawing of window borders
7189           - Now properly calculates WM decorations offset for toplevel 
7190             windows (fixes bug #74763)
7191         * XplatUIWin32.cs: 
7192           - Implemented BorderStyles for windows (we're letting win32 draw 
7193             the border for us)
7194           - Fixed the signature for SetWindowLong
7195         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
7196           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
7197           setting borders
7198         * UpDownBase.cs: Remove drawing of borders, this is handled by
7199           the driver, outside the client area
7200         * ListView.cs: Removed bogus border calculations. The control should
7201           be oblivious to borders, since those are not part of the client
7202           area. 
7203         * X11DesktopColors.cs: Commented out (currently) unneeded variables
7204         * ThemeWin32Classic.cs: Removed border calculations from ListView 
7205           drawing code
7206
7207 2005-10-06  Jackson Harper  <jackson@ximian.com>
7208
7209         * MdiChildContext.cs: Clear out the old virtual position remove
7210         all the unneeded calls to CreateGraphics.
7211
7212 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7213
7214         * TextControl.cs: Use proper color for highlighted text; fixes #76350
7215
7216 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7217
7218         * Form.cs: 
7219           - Added loading and setting of our new default icon
7220           - Only set icon if window is already created
7221
7222 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7223
7224         * Label.cs:
7225           - Do not explicitly set the foreground and background colors, to
7226             allow inheriting from parents (fixes #76302)
7227           - Use Control's InternalBorderStyle property to deal with borders
7228
7229 2005-10-06  Jackson Harper  <jackson@ximian.com>
7230
7231         * MdiChildContext.cs: Use the new xplatui function to draw a
7232         reversible rect.
7233
7234 2005-10-06  Jackson Harper  <jackson@ximian.com>
7235
7236         * Form.cs: Add the parent before creating the child context cause
7237         we need the parent when setting up the child.
7238
7239 2005-10-06  Jackson Harper  <jackson@ximian.com>
7240
7241         * FolderBrowserDialog.cs: redo the tree population code so a
7242         second thread isn't used. Should be a lot faster and more stable
7243         now.
7244
7245 2005-10-05  Jackson Harper  <jackson@ximian.com>
7246
7247         * TreeView.cs: There are no expand/collapse boxes if the node has
7248         no children.
7249
7250 2005-10-05  Jackson Harper  <jackson@ximian.com>
7251
7252         * X11DesktopColors.cs: Get menu colours for the gtk theme.
7253
7254 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
7255
7256         * FileDialog.cs: Fix InitialDirectory
7257
7258 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
7259
7260         * ComboBox.cs:
7261                 - Fixes changing between styles
7262                 - Fixes simple mode
7263                 - Fixes last item crashing when navigating with keyboard
7264
7265 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
7266
7267         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
7268
7269 2005-10-05  Jackson Harper  <jackson@ximian.com>
7270
7271         * TreeView.cs: If updating the root node do a full refresh.
7272         * TreeNode.cs: The root node should be expanded by default. Also
7273         added a utility prop to tell if we are the root node.
7274         * TreeNodeCollection.cs: Only refresh if the node we are being
7275         added to is expanded. Also added a comment on a potential
7276         optimization.
7277         
7278 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
7279
7280         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
7281           in dispose method. Fixes #76330
7282
7283 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
7284
7285         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
7286
7287                 - Implements vertical and horizontal scrolling using XplatUI
7288                 - Fixes keyboard navagation
7289                 - Fixes EnsureVisible
7290                 - Drawing fixes
7291                 - Handles and draws focus properly
7292
7293
7294 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
7295
7296         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
7297           Create handle. NET_2_0: Destroy handle when value is null.
7298
7299 2005-10-03  Jackson Harper  <jackson@ximian.com>
7300
7301         * ScrollBar.cs: My last scrollbar patch was broken. This is a
7302         revert and a new patch to prevent the thumb from refreshing so
7303         much.
7304
7305 2005-10-02  Jackson Harper  <jackson@ximian.com>
7306
7307         * ScrollBar.cs: Don't update position if it hasn't actually
7308         changed. This occurs when you hold down the increment/decrement
7309         buttons and the thumb gets to the max/min.
7310
7311 2005-10-01  Jackson Harper  <jackson@ximian.com>
7312
7313         * Form.cs:
7314         * MdiChildContext.cs:
7315         * MdiClient.cs: Implement ActiveMdiChild in Form.
7316
7317 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
7318
7319         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
7320
7321 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
7322
7323         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
7324           be found
7325
7326 2005-09-30  Jackson Harper  <jackson@ximian.com>
7327
7328         * ListBox.cs: Don't do a full refresh unless some data has
7329         actually changed.
7330
7331 2005-09-30  Jackson Harper  <jackson@ximian.com>
7332
7333         * TreeView.cs: Make sure that the checkboxes size is factored in
7334         even when not visible.
7335
7336 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7337
7338         * FileDialog.cs: Fix Jordi's build break
7339
7340 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7341
7342         * FileDialog.cs: 
7343                 - Use standard the Windows colours for the combobox as espected
7344                 - Dispose objects that use resouces when no longer need them
7345
7346 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7347
7348         * X11DesktopColors.cs: Initial incomplete implementation
7349         * XplatUIX11.cs: Added call to initialize X11DesktopColors
7350
7351 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
7352
7353         * Theme.cs: 
7354           - Switched Theme color names to match the names defined in 
7355             System.Drawing.KnownColors. Life's hard enough, no need to make 
7356             it harder.
7357           - Added setters to all theme color properties so themes can set
7358             their color schemes. The setters also propagate the color changes
7359             to System.Drawing.KnownColors via reflection
7360         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
7361           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
7362           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
7363           use the new, more logical theme color names
7364         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
7365           post-NT colors
7366         * ThemeWin32Classic.cs:
7367           - Removed code to set the old classic Windows colors. Instead it
7368             now relies on the colors returned by System.Drawing.KnownColors
7369             which will be either modern static colors (Unix) or colors
7370             read from the user's configuration (Win32)
7371           - Updated to use the new, more logical theme color names
7372           - Switched DataGrid drawing code to use only Theme colors instead of
7373             a mix of System.Drawing.KnownColors and Theme colors
7374           - DrawFrameControl(): Removed code that fills the button area, the
7375             fill would overwrite any previous fill done by a control. This
7376             fixes bug #75338 
7377           - Added DrawReversibleRectangle() stub
7378         * ScrollableControl.cs: Set visible state to false when scrollbars
7379           are removed (pdn fix)
7380         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
7381           DrawReversibleRectangle() method to allow drawing primitive 
7382           'rubber bands'
7383         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
7384
7385 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7386
7387         * ImageList.cs: Add(Icon): Create handle.
7388
7389 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7390
7391         * ListView.cs:
7392         * ThemeWin32Classic.cs:
7393                 - Fixes detail mode
7394                 - Sets clippings
7395                 - Issues with drawing
7396
7397 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7398
7399         * ImageList.cs: Moved RecreateHandle back to ImageList as event
7400           source has to be the ImageList.
7401
7402 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7403
7404         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
7405
7406 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7407
7408         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
7409
7410 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7411
7412         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
7413
7414 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
7415         * GridItem.cs: Fixed TODOs
7416         * GridItemCollection.cs: Added ICollection interface
7417
7418 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7419
7420         * ImageList.cs: Resize icons when needed.
7421
7422 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
7423
7424         * ListViewItem.cs
7425                 - Fixes GetBounds and returns on screen rects
7426         * ListView.cs:
7427                 - Fixes vertical and horzintal scrolling of items
7428         * ThemeWin32Classic.cs:
7429                 - Fixes drawing
7430                 
7431 2005-09-29  Raja R Harinath  <harinath@gmail.com>
7432
7433         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
7434
7435 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
7436
7437         * ImageList.cs: Added comments about handle creation. Moved Handle,
7438           HandleCreated and OnRecreateHandle implementations to ImageCollection.
7439           Handle is created in Add methods.
7440
7441 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7442          
7443         * DataGridDrawingLogic.cs: 
7444                 - Takes rows into account on Colum calculations
7445                 - Returns the column when clickig
7446         * DataGrid.cs:
7447                 - Fixes default HitTestInfo values
7448                 - Fixes HitTestInfo.ToString
7449                 - Fixes ResetBackColor          
7450         
7451 2005-09-28  Jackson Harper  <jackson@ximian.com>
7452
7453         * MdiChildContext.cs: Obey rules for fixed sized windows (no
7454         sizing or cursor changes). Also added some temp code to draw the
7455         titlebars text (Makes dev a little easier).
7456
7457 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7458
7459         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
7460
7461 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7462          
7463         * ListBox.cs: Fixes bug 76253
7464
7465 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7466
7467         * ImageList.cs: Added comments about the current implementation. Added
7468           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
7469           Format32bppArgb to preserve transparency and can use Graphics.FromImage
7470           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
7471           with Bitmap.LockBits for better performance. Revised the whole file to
7472           match MS.NET behaviour and provide better performance. Non-public
7473           interface members are calling public members even when they throw
7474           NotSupportedException for better maintainability. Moved ColorDepth,
7475           ImageSize, ImageStream and TransparentColor implementations to
7476           ImageCollection for better performance as these properties are not used
7477           by ImageList.
7478         * ImageListStreamer.cs: Added a new internal constructor that takes an
7479           ImageList.ImageCollection and serializes Images based on
7480           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
7481           match ImageList property name.
7482
7483 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
7484
7485         * ListBox.cs: Fixes IndexFromPoint for last item
7486
7487 2005-09-27  Jackson Harper  <jackson@ximian.com>
7488
7489         * Form.cs: Set the position of new mdi children correctly.
7490
7491 2005-09-27  Jackson Harper  <jackson@ximian.com>
7492
7493         * MdiClient.cs: New mdi children need to be added to the back of
7494         the controls collection so the zorder is set correctly. Also add a
7495         count of all the child windows that have been created.
7496
7497 2005-09-27  Jackson Harper  <jackson@ximian.com>
7498
7499         * Form.cs (CreateParams): Setup MDI forms correctly.
7500
7501 2005-09-27  Jackson Harper  <jackson@ximian.com>
7502
7503         * MdiChildContext.cs:
7504         * MonthCalendar.cs:
7505         * UpDownBase.cs:
7506         * ListBox.cs:
7507         * ListView.cs:
7508         * TextBoxBase.cs:
7509         * TreeView.cs:
7510         * ScrollableControl.cs:
7511         * ComboBox.cs: Add implicit controls using the new implict control
7512         functionality in ControlCollection. Also try to block multiple
7513         control add in a suspend/resume layout to save some cycles.
7514         
7515 2005-09-27  Jackson Harper  <jackson@ximian.com>
7516
7517         * Control.cs: Add functionality to the controls collection to add
7518         'implicit controls' these are controls that are created by the
7519         containing control but should not be exposed to the user. Such as
7520         scrollbars in the treeview.
7521         * Form.cs: The list var of the ControlsCollection is no longer
7522         available because of the potential of implicit controls getting
7523         ignored by someone accessing the list directly.
7524
7525 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
7526
7527         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7528           loose it's parent. (Fixed bug introduced in r49103 when we added
7529           setting the child parent to null on Remove)
7530
7531 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
7532
7533         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7534         * Splitter.cs: Added missing attributes for BorderStyle property.
7535         * TextBoxBase.cs: Marked Calculate* methods internal.
7536         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7537         MS.NET.
7538
7539 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
7540          
7541         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7542
7543 2005-09-25  Jackson Harper  <jackson@ximian.com>
7544
7545         * TreeView.cs: Update the node bounds correctly regardless of
7546         whether the node is visible.
7547
7548 2005-09-25  Jackson Harper  <jackson@ximian.com>
7549
7550         * ImageList.cs: Don't dispose the image after it is added to the
7551         image list. Only reformat images that need to be resized.
7552
7553 2005-09-25  Jackson Harper  <jackson@ximian.com>
7554
7555         * ImageList.cs: Don't set the format when changing the image.
7556
7557 2005-09-25  Jackson Harper  <jackson@ximian.com>
7558
7559         * TreeView.cs: We can't just assume the node has a font. Use the
7560         treeviews font if no node font is available.
7561
7562 2005-09-25  Jackson Harper  <jackson@ximian.com>
7563
7564         * TreeView.cs: Allow the scrollbars to be reset with negative
7565         values.
7566         - Don't add scrollbars to negative sized windows.
7567
7568 2005-09-23  Jackson Harper  <jackson@ximian.com>
7569
7570         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7571         old Mono.Posix. Also remove some stray code that shouldn't have
7572         been committed.
7573
7574 2005-09-23  Jackson Harper  <jackson@ximian.com>
7575
7576         * TreeView.cs: Attempt at proper sizing of the horizontal
7577         scrollbar. Also don't resize the scrollbars unless they are
7578         visible.
7579
7580 2005-09-23  Jackson Harper  <jackson@ximian.com>
7581
7582         * TreeView.cs: We don't need to expand the invalid area when the
7583         selection changes, as this is all drawn in the node's bounding
7584         box. The area needs to be expanded (previous typo was contracting
7585         it) when the focus rect moves.
7586
7587 2005-09-23  Jackson Harper  <jackson@ximian.com>
7588
7589         * TreeView.cs: Display the selection box under the correct
7590         circumstances. We were rendering white text with no selection box
7591         before.
7592
7593 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
7594
7595         * TextControl.cs(Split): Now updates selection start/end if it points 
7596           into a line that's being split. Fixes a FIXME and bug #75258
7597
7598 2005-09-23  Jackson Harper  <jackson@ximian.com>
7599
7600         * Binding.cs:
7601         * ListControl.cs: Don't use the path when retrieving binding
7602         managers from the binding context. My bat sense tells me that the
7603         path is only used on insertion.
7604
7605 2005-09-22  Jackson Harper  <jackson@ximian.com>
7606
7607         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7608
7609 2005-09-22  Jackson Harper  <jackson@ximian.com>
7610
7611         * Splitter.cs: There are special cursors used for splitting.
7612         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7613
7614 2005-09-22  Jackson Harper  <jackson@ximian.com>
7615
7616         * Splitter.cs: Change the cursor appropriately when the splitter
7617         is moused over, so the user actually knows there is a splitter
7618         there.
7619
7620 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7621
7622        * Label.cs : Fix ToString method to give same output as MS.NET
7623
7624 2005-09-22  Jackson Harper  <jackson@ximian.com>
7625
7626         * TreeView.cs: Create the scrollbars when the handle is created
7627         and add them right away, just make them invisble. Also account for
7628         the window being shrunk vertically to the point that the vert
7629         scrollbar needs to be added.
7630         - Remove some 0.5 adjustments to get around anti aliasing issues.
7631         
7632 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7633          
7634         * MainMenu.cs: Fixes default value
7635         * MenuItem.cs: Fixes default value
7636
7637 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7638
7639         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7640
7641 2005-09-21  Jackson Harper  <jackson@ximian.com>
7642
7643         * Control.cs: Don't try to set the border style on the window if
7644         it hasn't been created. When the window is created the border
7645         style will be used.
7646
7647 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7648
7649         * Control.cs (Update): Don't call XplatUI if we don't have a
7650           window handle yet
7651
7652 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7653
7654         * ContainerControl.cs: Instead of throwing an exception, print
7655           a one-time warning about Validate not being implemented
7656         * XplatUIWin32.cs: Removed debug output
7657
7658 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7659
7660         * Control.cs: Only set XplatUI background if we expect the windowing
7661           system to handle the background. This stops controls that draw their
7662           own background from flickering
7663
7664         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7665           creation. This allows, amongst other things, using MWF X11 windows 
7666           with OpenGL.
7667
7668 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7669
7670         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7671           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7672           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7673           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7674           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7675           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7676           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7677           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7678           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7679           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7680           GridColumnStylesCollection.cs, 
7681           IDataGridColumnStyleEditingNotificationService.cs,
7682           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7683           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7684           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7685           TreeNodeCollection.cs, AmbientProperties.cs, 
7686           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7687           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7688           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7689           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7690           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7691           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7692           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7693           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7694           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7695           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7696           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7697           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7698           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7699           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7700           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7701           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7702           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7703           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7704           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7705           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7706           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7707           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7708           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7709           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7710           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7711           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7712           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7713           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7714           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7715           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7716           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7717           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7718           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7719           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7720           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7721           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7722           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7723
7724 2005-09-21  Jackson Harper  <jackson@ximian.com>
7725
7726         * TreeNode.cs: Call Before/After Expand not Collapse when
7727         expanding.
7728
7729 2005-09-20  Jackson Harper  <jackson@ximian.com>
7730         
7731         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7732
7733 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7734          
7735         * ListViewItem.cs:
7736                 - Fixes bug 76120
7737                 - Fixes proper storing of subitems
7738                 - Fixes not updated items
7739
7740 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7741
7742         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7743           things if our window handle isn't created yet. Also disabled 
7744           debug for TextBoxBase
7745
7746 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7747
7748         * MenuAPI.cs: Remove filtering of events to allow menu usage
7749
7750 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7751
7752         * Cursor.cs: Allow null to be passed to Cursor.Current.
7753
7754 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7755
7756         * ThemeWin32Classic.cs:
7757           - Change some private methods/fields to protected virtual so that 
7758             they can be accessed and overriden in derived classes
7759           - First refactoring of some methods. Derived themes now don't 
7760             need to duplicate the complete code from ThemeWin32Classic
7761         * ThemeNice.cs:
7762           - Added nice StatusBar
7763           - Derive from ThemeWin32Classic and not Theme
7764           - Removed duplicate ThemeWin32Classic code
7765
7766 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7767
7768         * Control.cs (ControlCollection.Add): If the value null is passed
7769         the control is ignored. 
7770
7771         Optimize this loop.
7772
7773 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7774
7775         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7776           PostQuitMessage state.
7777         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7778
7779 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7780
7781         * Application.cs: Our constructor will never get called, move 
7782           initialization to fields; fixes bug #75933
7783
7784 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7785
7786         * FileDialog.cs :
7787                 - Allow files to be selected properly using file name
7788                 combo box.
7789                 - Add ability to change diretory (absolute / relative)
7790                 using file name combo box.
7791
7792 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7793          
7794         * ListBox.cs: 
7795                 - Fixes Multicolumn listboxes item wrong calculations
7796                 - Allows to click when only one item is in the listbox
7797                 - Fixes crash when no items using keyboard navigation
7798
7799 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7800
7801         * ComboBox.cs: Reverted almost everything from the latest patch which
7802           broke ComboBox
7803
7804 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7805         
7806         * ToolTip.cs:
7807                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7808         * ComboBox.cs:
7809                 - When DropDownStyle is Simple, it does not show scrollbar 
7810                 to the last item of the list.
7811                 - When DropDownStyle is Simple, it crashed when the list was 
7812                 scrolled down with the down cursor key.
7813                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7814                 selected item was not shown.
7815                 - The position of the selected item was not preserved when 
7816                 the next dropdown happened.
7817         * ThemeWin32Classic.cs:
7818                 - Items were wrapped at the right end.
7819         * CheckedListBox.cs:
7820                 - Fixed Add method
7821         * ListBox.cs:
7822                 - Items should be fully shown.
7823                 - When resizing and vertical scrollbar disappeared, the item 
7824                 of index 0 should be on the top of the list.
7825                 - GetItemRectangle should consider the size of ver. scrollbar
7826         * StatusBar.cs:
7827                 - SizingGrip area should not be allocated when it is not 
7828                 displayed.
7829                 - Now it reflects MinWidth of the containing panel and 
7830                 fixed a crash that happens when its width becomes so small.
7831
7832 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7833
7834         * CheckedListBox.cs: Fixes bug 76028
7835         * ListBox.cs: Fixes bug 76028
7836
7837 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7838
7839         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7840         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7841
7842 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7843
7844         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7845
7846 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7847
7848         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7849
7850 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7851
7852         * IRootGridEntry.cs: Added
7853         * PropertyGridCommands.cs: Added
7854         * PropertiesTab.cs: Added missing methods and property
7855         * PropertyGridView.cs: Made class internal
7856         * PropertyGridTextBox.cs: Made class internal
7857
7858 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7859
7860         * MimeIcon.cs: Try to check some other environment variables
7861           if "DESKTOP_SESSION" returns "default"
7862
7863 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7864
7865         * ThemeNice.cs: Corrected background colors (e.g. menus)
7866         * ColorDialog.cs: Use correct background colors for controls
7867
7868 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7869
7870         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7871
7872 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7873
7874         * RichTextBox.cs: Added initial implementation
7875         * lang.cs: Removed. Was accidentally checked in long time ago
7876         * TODO: Removed. Contents were obsolete
7877
7878 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7879                                                                                 
7880         * PropertiesTab.cs : Added
7881
7882 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7883                                                                                 
7884         * PropertyGrid.cs : Update
7885         * PropertyGridView.cs : Update
7886         * System.Windows.Forms.resx : Added images and strings
7887
7888 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7889
7890         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7891  
7892 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7893
7894         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7895           a busy loop right after the Ungrab the X11 display is otherwise 
7896           blocked
7897
7898 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7899
7900         * ThemeWin32Classic.cs: Optimise the use of clipping
7901
7902 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7903
7904         * DataGrid.cs: fixes recursion bug
7905
7906 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7907
7908         * ThemeNice.cs: 
7909           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7910           - Cleanup
7911
7912 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7913
7914         * ThemeNice.cs: Draw nice ProgressBars
7915
7916 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7917
7918         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7919
7920         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7921         bug finder.
7922
7923 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7924
7925         * ThemeNice.cs:
7926           - Added nicer menu drawing
7927           - Updated DrawTab
7928           - some refactoring
7929
7930 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7931
7932         * CreateParams.cs (ToString): Made output match MS
7933         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7934             handle is already created (to avoid forcing window creation)
7935         * XplatUIX11.cs: Set window text to caption after creating window,
7936           in case Text was set before window was created
7937         * Form.cs: Use this.Text instead of a static string as caption
7938
7939 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7940
7941         * NotifyIcon.cs: Don't set the window to visible; this screws
7942           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7943           OnPaint without a bitmap)
7944         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7945           happen very often anyway; we could add the check to the WM_PAINT 
7946           event generation code
7947
7948 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7949
7950         * NotifyIcon.cs: Fill the icon area with a background color, to 
7951           avoid 'residue' when transparent icons are drawn
7952         * XplatUIX11.cs:
7953           - Handle whole_window == client_window when destroying windows
7954           - SystrayAdd(): Set client_window to whole_window value to
7955             get mouse and other events passed to NotifyIcon
7956
7957 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7958
7959         * Form.cs: Set proper default for Opacity property
7960         * NotifyIcon.cs:
7961           - ShowSystray(): Don't bother creating telling the OS
7962             about the systray item if no icon is provided
7963           - Now handles WM_NCPAINT message to deal with whole/client window
7964             split
7965           - Create window as visible to not get caught by Expose optimization
7966         * Hwnd.cs: Removed debug message
7967         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7968           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7969             PaintEventStart/End to use new client argument
7970         * TextBoxBase.cs:
7971           - Commented out debug messages
7972           - Switched PaintEventStart/End to use new client argument
7973         * XplatUI.cs: Added client window bool to PaintEventStart()/
7974           PaintEventEnd() calls, to support drawing in non-client areas
7975         * XplatUIDriver.cs: 
7976           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7977             calls, to support drawing in non-client areas
7978           - Added conditional compile to allow using MWF BeginInvoke 
7979             on MS runtime
7980         * XplatUIX11.cs:
7981           - Added some conditional debug output
7982           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7983             whole/client window split
7984           - Implemented handling of client argument to PaintEventStart()/End()
7985         * Control.cs:
7986           - Throw exception if BeginInvoke() is called and the window handle
7987             or one of the window's parent handles is not created
7988           - Added conditional compile to allow using MWF BeginInvoke on
7989             MS runtime
7990           - get_Parent(): Only sets parent if handle is created. This avoids
7991             forcing window handle creation when parent is set.
7992           - Now fires Layout and Parent changed events in proper order
7993           - Switched to use Handle instead of window.Handle for Z-Order setting,
7994             the get_Parent() patch above causes us to possibly get null for 'window'
7995           - Implemented handling of client argument to PaintEventStart()/End()
7996           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7997             default handling)
7998           - Now sends a Refresh() to all child windows when Refresh() is called
7999
8000 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
8001
8002         * Form.cs: Added (non-functional) Opacity property
8003         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
8004
8005 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
8006         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
8007           use export MONO_THEME=nice to activate it.
8008           Currently supported controls:
8009           - Button
8010           - ComboBox
8011           - ScrollBar
8012           - TabControl (TabAlignment.Top only, other will follow)
8013         * ThemeEngine.cs: Add theme nice
8014         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
8015           if enabled
8016
8017 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
8018
8019         * Splitter.cs: Resize docked control and its neighbor.
8020
8021 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
8022         -- Making Windows with Menus layout correctly --
8023         * Form.cs : The first leg of the fix
8024                 Menu setter - adjust Client Size as needed to make space for the menu
8025                 SetClientSizeCore - doesn't call base version to be able to pass the 
8026                         menu handle to XplatUI.CalculateWindowRect
8027         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
8028         * XplatUIX11.cs: The critical second leg of the fix
8029                 GetWindowPos needs to use a recalculated client_rect
8030                 so that resizing the window doesn't break layout of child controls. 
8031                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
8032                 Lots of \t\n killed
8033
8034 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8035
8036         * Label.cs: Now properly recalculates width and height on Font and Text
8037           changes if AutoSize is set
8038
8039 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
8040         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
8041
8042 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
8043
8044         * ImageList.cs: Makes ToString method compatible with MS
8045
8046 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
8047
8048         * MenuAPI.cs: fixes bug 75716
8049
8050 2005-08-11 Umadevi S <sumadevi@novell.com>
8051         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
8052
8053 2005-08-11 Umadevi S <sumadevi@novell.com>
8054         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
8055
8056 2005-08-10  Umadevi S <sumadevi@novell.com>
8057         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
8058
8059 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
8060
8061         * Menu.cs: fixes bug 75700
8062         * MenuAPI.cs: fixes navigation issues
8063
8064 2005-08-09  Umadevi S <sumadevi@novell.com>
8065         * CheckedListBox.cs - simple fix for GetItemChecked.
8066
8067 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
8068
8069         * ComboBox.cs: Serveral fixes
8070         * ListBox.cs: Serveral fixes
8071
8072 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
8073
8074         * ComboBox.cs: Fixes FindString methods and GetItemHeight
8075         * ListBox.cs: Fixes FindString methods
8076
8077 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
8078
8079         * DataGrid.cs: fixes bugs exposed by new tests
8080
8081 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
8082
8083         * Mime.cs: Compile Mono assembly references only if compiling
8084           with Mono (Allows to build with VS.Net again)
8085
8086 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
8087
8088         * Control.cs (PaintControlBackground): Draw background image
8089         corrrectly.
8090         (CheckForIllegalCrossThreadCalls): Stubbed.
8091         
8092         * Form.cs (OnCreateControl): Center when should be centered.
8093         
8094         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
8095
8096 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
8097
8098         * Binding.cs: Binding to properties should be case unsensitive
8099
8100 2005-07-18 vlindos@nucleusys.com
8101
8102         * DataGrid.cs: fixes setmember order
8103
8104 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
8105
8106         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
8107         * FileDialog.cs: FileDialog is now resizable and uses the new
8108           MimeIconEngine
8109
8110 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
8111
8112         * DataGridTextBoxColumn.cs: default value
8113         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
8114         * GridTableStylesCollection.cs: fixes checking MappingName
8115         * DataGridDrawingLogic.cs: fixes drawing logic issues
8116         * DataSourceHelper.cs: rewritten to make compatible with more data sources
8117         * DataGrid.cs: fixes    
8118
8119 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
8120
8121         * MimeGenerated.cs: Use case sensitive comparer for
8122           NameValueCollections
8123
8124 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
8125
8126         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
8127         * ThemeWin32Classic.cs: bug fixes, code refactoring
8128         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
8129         * DataGrid.cs: bug fixes, code refactoring
8130         * DataGridTextBox.cs: bug fixes, code refactoring
8131         * DataGridColumnStyle.cs:  bug fixes, code refactoring
8132         * Theme.cs:  bug fixes, code refactoring
8133
8134 2005-07-01  Peter Bartok  <pbartok@novell.com> 
8135
8136         * TextControl.cs: Quick fix for the reported crash on ColorDialog
8137           and other text box usage
8138
8139 2005-07-01  Jackson Harper  <jackson@ximian.com>
8140
8141         * TabControl.cs: Make sure the bottom of the tab covers the pages
8142         border.
8143
8144 2005-06-30  Peter Bartok  <pbartok@novell.com> 
8145
8146         * Form.cs (ShowDialog): Assign owner of the dialog
8147         * TextBoxBase.cs: Always refresh caret size when deleting, caret
8148           might have been moved to a tag with different height
8149
8150 2005-06-30  Jackson Harper  <jackson@ximian.com>
8151
8152         * Form.cs: Don't create an infinite loop when setting focus
8153         * MenuItem.cs: Don't dirty the parents if we don't have any
8154
8155 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
8156
8157         * LibSupport.cs: Rename
8158
8159 2005-06-29  Peter Bartok  <pbartok@novell.com>
8160
8161         * TextBoxBase.cs: Re-align caret after deleting a character
8162         * TextControl.cs:
8163           - DeleteChars(): Ensure that tag covers the provided position
8164           - StreamLine(): Drop reference for dropped tag
8165
8166 2005-06-29  Peter Bartok  <pbartok@novell.com> 
8167
8168         * TextControl.cs: 
8169           - Selections now work properly, anchoring at the initial location
8170             and properly extending in either direction (SetSelectionToCaret(),
8171             SetSelectionStart() and SetSelectionEnd())
8172           - No longer redraws the whole control on selection change, now
8173             calculates delta between previous and new selection and only
8174             invalidates/redraws that area
8175           - Fixed FindPos() math off-by-one errors
8176           - Changed DeleteChars() to verify the provided tag covers the
8177             provided position, selections may have a tag that doesn't cover
8178             the position if the selection is at a tag border
8179           - Fixed off-by-one errors in DeleteChars()
8180           - Added missing streamlining check in DeleteChars() to remove
8181             zero-length tags
8182           - Implemented Invalidate() method, now properly calculates exposures
8183             between two given lines/positions
8184           - Implemented SetSelection()
8185           - Obsoleted and removed FixupSelection()
8186           - Improved RecalculateDocument() logic, removing code duplication
8187
8188 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8189
8190         * LibSupport.cs: changes to match different input/output arguments.
8191
8192 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8193
8194         * LibSupport.cs: added libsupport.so init routine.
8195
8196 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
8197         
8198         * ControlBindingsCollection.cs
8199                 - Throws an exception on null datasource when adding
8200                 - Checks for duplicated bindings when adding
8201
8202 2005-06-28  Jackson Harper  <jackson@ximian.com>
8203
8204         * TreeView.cs (OnKeyDown): Support left and right properly
8205         (navigates as well as expanding and collapsing.
8206         - Add support for Multiply, this expands all the selected nodes
8207         children.
8208         - Fix some tabbing.
8209
8210 2005-06-28  Jackson Harper  <jackson@ximian.com>
8211
8212         * TreeView.cs: Implement keyboard navigation, currently supports,
8213         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
8214         support for toggling checkboxes with the space bar.
8215
8216 2005-06-28  Jackson Harper  <jackson@ximian.com>
8217
8218         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
8219         tree.
8220
8221 2005-06-28  Jackson Harper  <jackson@ximian.com>
8222
8223         * TreeView.cs: Add missing event.
8224
8225 2005-06-27  Peter Bartok  <pbartok@novell.com> 
8226
8227         * TextControl.cs:
8228           - Made line ending size configurable (now allows for counting 
8229             lineendings as \n or \r\n)
8230           - Added margin to viewport to keep caret visible on right side
8231           - Fixed translation routines for line/pos to documentpos to consider
8232             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
8233           - Fixed some line-endings to be unix style
8234           - Fixed Document.FormatText to perform it's calculations 1-based
8235           - Added descriptions for a few methods that might otherwise get 
8236             used wrong
8237           - Added NOTE section with some basic conventions to remember at 
8238             the top of the file
8239           - Major fixup for RichTextBox selection drawing:
8240             * Fixed crashes when multiple tags on a single line were selected
8241             * fixed selection box drawing not overlaying text
8242             * fixed bogus offset calculation for tags not starting at index 1
8243             * Switched behaviour from using multiple Substrings of a 
8244               StringBuilder.ToString() to using multiple 
8245               StringBuilder.ToString(start, length) statements, hoping this is
8246               faster (kept original version commented out in the code, in case
8247               original version was faster)
8248         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
8249           alignment != Left
8250         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
8251           call it as well
8252
8253 2005-06-27  Jackson Harper  <jackson@ximian.com>
8254
8255         * TabControl.cs: Move to the left and right with the arrow
8256         keys. These keys don't cycle beyond first and last like
8257         tab. Refresh all the tabs when scrolling them to the left or
8258         right.
8259
8260 2005-06-27  Jackson Harper  <jackson@ximian.com>
8261
8262         * TabControl.cs:
8263           - ToString: Added method
8264           - CreateParams: Remove TODO and comment
8265           - OnKeyDown: Cycle through bounds properly.
8266           - SelectedIndex: Scroll to the right or left if we need to
8267           display the newly selected tab.
8268
8269 2005-06-23  Jackson Harper  <jackson@ximian.com>
8270
8271         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
8272         set.
8273
8274 2005-06-23  Jackson Harper  <jackson@ximian.com>
8275
8276         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
8277         CTRL-SHIFT-TAB, and HOME, END are there any others?
8278
8279 2005-06-23  Jackson Harper  <jackson@ximian.com>
8280
8281         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
8282
8283 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8284         
8285         * DataGridTextBoxColumn.cs: fixes and enhancements
8286         * ThemeWin32Classic.cs: fixes and enhancements
8287         * DataGridBoolColumn.cs:  fixes and enhancements
8288         * DataGridDrawingLogic.cs:  fixes and enhancements
8289         * CurrencyManager.cs: fixes and enhancements
8290         * DataGrid.cs: fixes and enhancements
8291         * DataGridColumnStyle.cs:  fixes and enhancements
8292
8293 2005-06-22  Jackson Harper  <jackson@ximian.com>
8294
8295         * TabControl.cs: Add some missing methods that just call into the
8296         base. Make the TabPageCollection's IList interface behave in the
8297         same manner as the MS implementation.
8298
8299 2005-06-22  Peter Bartok  <pbartok@novell.com> 
8300
8301         * TextControl.cs: Added sanity check
8302         * TextBoxBase.cs: 
8303           - Fixed wrapping behaviour, don't set wrap on single line controls
8304             (this fixes the breakage of colordialog introduced in an earlier
8305              checkin)
8306           - Added rudimentary support for autoscrolling right-aligned controls
8307             (still needs fixing, also, center alignment scroll is missing)
8308
8309 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8310         
8311         * ScrollBar.cs: Fixes thumbpos on Maximum values
8312
8313 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
8314         
8315         * PropertyGridView.cs: Pass context information to UITypeEditors 
8316
8317 2005-06-21  Peter Bartok  <pbartok@novell.com> 
8318
8319         * TextBoxBase.cs:
8320           - Now calling PositionCaret with absolute space coordinates
8321           - Enabled vertical scrolling
8322           - Better tracking of scrollbar changes, tied into WidthChange
8323             event
8324           - Improved cursor tracking
8325           - Removed debug output
8326         * TextControl.cs:
8327           - PositionCaret coordinates are now works in absolute space, not 
8328             the canvas
8329           - Improved tracking of document size
8330           - Added events for width and height changes
8331
8332 2005-06-21  Peter Bartok  <pbartok@novell.com>
8333
8334         * Form.cs: Set focus to active control when form is activated
8335         * TextControl.cs: 
8336           - Added word-wrap functionality to RecalculateLine() 
8337           - Added some short function descriptions for VS.Net to aid in
8338             writing dependent controls
8339           - Added Caret property, returning the current coords of the caret
8340           - Added ViewPortWidth and ViewPortHeight properties
8341           - Added Wrap property
8342           - Added CaretMoved event
8343           - Removed some old debug code
8344           - Split() can now create soft splits
8345           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
8346           - Added method to format existing text
8347           - Fixed size/alignment calculations to use viewport
8348           - RecalculateDocument now can handle changing line-numbers while
8349             calculating lines
8350
8351         * TextBox.cs:
8352           - Added some wrap logic, we don't wrap if alignment is not left
8353           - Added casts for scrollbar var, base class switched types to
8354             also support RichTextBoxA
8355           - Implemented handling of scrollbar visibility flags
8356
8357         * TextBoxBase.cs:
8358           - Switched scrollbars type to RichTextBoxScrollBars to support
8359             RichTextBox
8360           - Added tracking of canvas width/height
8361           - Switched scrollbars to be not selectable (to keep focus on text)
8362           - Added central CalculateDocument() method to handle all redraw
8363             requirements
8364           - Added ReadOnly support
8365           - Added WordWrap support
8366           - Fixed handling of Enter key (we now treat it as a DialogKey)
8367           - Fixed caret positioning when h or v scroll is not zero
8368           - Fixed placing/generation of vertical scrollbar
8369           - Added CalculateScrollBars() method to allow updating scrollbar
8370             limits and visibility
8371           - Fixed handling of horizontal scroll
8372           - Added handling of vertical scroll
8373           - Implemented auto-'jump' when caret moves to close to a left or
8374             right border and there is text to be scrolled into view (currently
8375             there's the potential for a stack overflow, until a bug in
8376             scrollbar is fixed)
8377
8378 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
8379         
8380         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
8381
8382 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
8383
8384         * Mime.cs:
8385         - added inodes.
8386         - return application/x-zerosize for files with size zero
8387           (if no extension pattern matches).
8388         - check matches collection for strings too.
8389         - return only the first mime type if the name value
8390           collection has more than one mime type.
8391
8392 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
8393         
8394         * PropertyGrid.cs: Cleaned up some TODOs
8395         * PropertyGridView.cs: Added support for UITypeEditors
8396
8397 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8398         
8399         * DataGrid.cs: clears cached value
8400
8401 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8402
8403         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
8404         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
8405         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
8406         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
8407         
8408 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
8409
8410         * ThemeWin32Classic.cs: fixes colour
8411
8412 2005-06-15  Peter Bartok  <pbartok@novell.com>
8413
8414         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
8415         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
8416         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
8417         * Control.cs: Added some MWFCategory and MWFDescription attributes
8418         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
8419
8420 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
8421
8422         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
8423         usage
8424
8425 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
8426
8427         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
8428         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
8429         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
8430         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
8431         * DataGrid.cs: default datagrid settings for Default Styles, fixes
8432         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
8433
8434 2005-06-13  Jackson Harper  <jackson@ximian.com>
8435
8436         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
8437         isn't printed when the user enables dropping. (X11 does accept
8438         drops).
8439         
8440 2005-06-13  Jackson Harper  <jackson@ximian.com>
8441
8442         * TreeView.cs: Remove some TODOS.
8443
8444 2005-06-13  Jackson Harper  <jackson@ximian.com>
8445
8446         * Form.cs: Hook into the mdi framework.
8447         * MdiClient.cs: Use the base control collections add method so
8448         parents get setup correctly. Set the default back colour and dock
8449         style.
8450         * MdiChildContext.cs: New class, this bad actor handles an
8451         instance of an MDI window. Right now there is only basic
8452         support. You can drag, close, and resize windows. Minimize and
8453         Maximize are partially implemented.
8454
8455 2005-06-13  Jackson Harper  <jackson@ximian.com>
8456
8457         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
8458         freaky when both vals are negative. NOTE: There are probably other
8459         places in XplatUIX11 that this needs to be done.
8460
8461 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
8462
8463         * DataGrid.cs: implement missing methods, move KeyboardNavigation
8464         * DataGridColumnStyle.cs: fixes signature
8465
8466 2005-06-12  Jackson Harper  <jackson@ximian.com>
8467
8468         * XplatUIX11.cs: Use sizing cursors similar to the ones on
8469         windows.
8470
8471 2005-06-11  Jackson Harper  <jackson@ximian.com>
8472
8473         * StatusBarPanel.cs: Signature cleanups. Implement
8474         BeginInit/EndInit.
8475
8476 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
8477
8478         * DataGridTextBoxColumn.cs: Honors aligment
8479         * GridColumnStylesCollection.cs: Contains is case unsensitive
8480         * GridTableStylesCollection.cs: several fixes
8481         * DataGridTableStyle.cs: default column creation
8482         * DataGridDrawingLogic.cs: fixes
8483         * CurrencyManager.cs: ListName property
8484         * DataGrid.cs: multiple styles support
8485         * DataGridColumnStyle.cs: fixes
8486         
8487
8488 2005-06-10  Peter Bartok  <pbartok@novell.com>
8489
8490         * Control.cs(Select): Moved SetFocus call to avoid potential
8491           loops if controls change the active control when getting focus
8492         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
8493           the up/down buttons
8494
8495 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
8496
8497         * ImageListConverter.cs: Implemented
8498
8499 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8500
8501         * MonthCalendar.cs: Wired in NumericUpDown control for year
8502
8503 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8504
8505         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
8506           DoubleClick events, since they are not meant to be fired.
8507
8508 2005-06-09  Peter Bartok  <pbartok@novell.com>
8509
8510         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8511           Jonathan's standalone controls into MWF, implemented missing
8512           events, attributes and methods; added xxxAccessible classes
8513         * AccessibleObject.cs: Made fields internal so other classes
8514           can change them if needed
8515
8516 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
8517
8518         * UpDownBase.cs: Complete implementation
8519         * NumericUpDown.cs: Complete implementation
8520         * DomainUpDown.cs: Complete implementation
8521
8522 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
8523
8524         * DataGridTextBoxColumn.cs: drawing fixes
8525         * DataGridCell.cs: fixes ToString method to match MSNet
8526         * DataGridTableStyle.cs: fixes
8527         * DataGridBoolColumn.cs: fixes, drawing
8528         * DataGridDrawingLogic.cs: fixes, new methods
8529         * DataGridTextBox.cs: Keyboard and fixes
8530         * DataGrid.cs:
8531                 - Keyboard navigation
8532                 - Scrolling fixes
8533                 - Row selection (single, multiple, deletion, etc)
8534                 - Lots of fixes
8535         
8536 2005-06-07  Jackson Harper  <jackson@ximian.com>
8537
8538         * ThemeWin32Classic.cs: Clear the background area when drawing
8539         buttons.
8540
8541 2005-06-06  Peter Bartok  <pbartok@novell.com>
8542
8543         * ImageListStreamer.cs: Fixed signature for GetData
8544         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8545         * ComboBox.cs:
8546           - Added missing ChildAccessibleObject class
8547           - Added missing OnXXXFocus overrides, switched to using those
8548             instead of the event handler
8549         * Control.cs:
8550           - Added Parent property for ControlAccessibleObject
8551           - Fixed signatures
8552           - Fixed attributes
8553           - Added ResetBindings()
8554         * ListBindingConverter.cs: Implemented some methods
8555         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8556         * ImageList.cs: Implemented basic handle scheme, removed TODOs
8557         * ContainerControl.cs: Fixed signature, now subscribing to the
8558           ControlRemoved event instead of overriding the handler, LAMESPEC
8559         * CurrencyManager.cs: Added missing attribute
8560         * MonthCalendar.cs: Added missing properties
8561
8562 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8563
8564         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8565         
8566 2005-06-06  Gaurav Vaish and Ankit Jain
8567
8568         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8569         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8570         
8571 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8572
8573         * Control.cs: fixes CreateParams Width / Height.
8574
8575 2005-06-05  Peter Bartok  <pbartok@novell.com>
8576
8577         * Win32DnD.cs: Removed compilation warnings
8578
8579 2005-06-05  Peter Bartok  <pbartok@novell.com>
8580
8581         * Control.cs (CreateParams): Since we don't know if one of the
8582           properties we use is overridden, lets make sure if we fail accessing
8583           we continue with a backup plan
8584
8585 2005-06-05  Peter Bartok  <pbartok@novell.com>
8586
8587         * Win32DnD.cs:
8588           - Removed debug output
8589           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8590             struct
8591           - Plugged resource leak
8592         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8593           MS size
8594
8595 2005-06-05  Peter Bartok  <pbartok@novell.com>
8596
8597         * XplatUIWin32.cs: Removed DnD code
8598         * Win32DnD.cs: Implemented drop source and drop target functionality
8599
8600 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8601
8602         * UpDownBase.cs: remove duplicate addition of event, enable some code
8603         that was commented out.
8604         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8605         Validate input when a key is pressed. It works fine now for every
8606         combination of Hexadecimal. Only missing some drawing love when sharing
8607         space with other controls.
8608
8609 2005-06-04  Peter Bartok  <pbartok@novell.com>
8610
8611         * Control.cs:
8612           - We need to pass a window for DragDrop, so enable callback events
8613           - Added DnD callback events when being a DragSource
8614         * XplatUI.cs (StartDrag): Added window handle argument
8615         * XplatUIDriver.cs (StartDrag): Added window handle argument
8616         * QueryContinueDragEventArgs: Made fields internally accessible so
8617           drivers can set them
8618         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8619           can set them
8620
8621 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8622
8623         * DataGridTextBoxColumn.cs: column text editing
8624         * DataGridTableStyle.cs: Respect columns styles created by the user
8625         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8626         * DataGridBoolColumn.cs: bool column editing
8627         * DataGrid.cs: fixes to scrolling, properties, etc
8628         * DataGridTextBox.cs: handle keyboard
8629         * DataGridColumnStyle.cs: fixes
8630
8631 2005-06-02  Jackson Harper  <jackson@ximian.com>
8632
8633         * ImageListStreamer.cs: Somewhat broken implementation of
8634         GetObjectData. The RLE needs some work to match MS properly.
8635
8636 2005-06-02  Jackson Harper  <jackson@ximian.com>
8637
8638         * X11Dnd.cs: Attempting to keep at least one file in MWF
8639         monostyled.
8640
8641 2005-06-02  Peter Bartok  <pbartok@novell.com>
8642
8643         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8644           that way
8645
8646 2005-06-02  Peter Bartok  <pbartok@novell.com>
8647
8648         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8649         * XplatUI.cs: Added DoDragDrop() method
8650         * XplatUIDriver.cs: Added DoDragDrop() method
8651
8652 2005-06-02  Jackson Harper  <jackson@ximian.com>
8653
8654         * Splitter.cs: Implement BorderStyle.
8655
8656 2005-06-02  Jackson Harper  <jackson@ximian.com>
8657
8658         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8659         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8660         X11 using XDND.
8661
8662 2005-06-02  Peter Bartok  <pbartok@novell.com>
8663
8664         * DataObject.cs:
8665           - Added Data setter
8666           - Fixed broken insertion code for SetData, now also
8667             overwrites any existing entry of the same format name
8668         * Hwnd.cs: Added list of pointers that automatically gets
8669           freed when the window is disposed
8670         * XplatUI.cs: Call driver initialization method when loading
8671           a driver
8672         * Control.cs:
8673           - OnDragLeave takes EventArgs, not DragEventArgs
8674           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8675             supported
8676           - Forces style update when drop state changes
8677         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8678           not perfect since we cannot (yet) call the IDataObject.GetData()
8679           method, we keep getting 0x80004005 error, dunno why)
8680
8681 2005-06-02  Peter Bartok  <pbartok@novell.com>
8682
8683         * DragEventArgs.cs: Make fields internal so we can cache the
8684           object and re-set the fields from XplatUI
8685
8686 2005-06-02  Jackson Harper  <jackson@ximian.com>
8687
8688         * Control.cs: Add some internal methods so the DnD subsystem can
8689         raise DnD events. Also call into the driver when AllowDrop is set.
8690         * XplatUI.cs:
8691         * XplatUIDriver.cs: New method for setting whether or not a window
8692         is allowed to accept drag and drop messages.
8693                 
8694 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8695         
8696         * ScrollBar.cs: Make sure that values sent in Scroll events
8697         are always between Maximum and Minimum.
8698
8699 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8700
8701         * Menu.cs: Call MenuChanged when menuitem visibility has been
8702         changed.
8703         * MenuItem.cs: Rebuild menu when item is (not) visible.
8704         * MainMenu.cs: MainMenu has special MenuChanged.
8705         * Theme.cs: Caption and FrameBorderSize are not fixed.
8706         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8707         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8708         * XplatUIX11.cs,
8709         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8710         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8711
8712 2005-05-30  Jackson Harper  <jackson@ximian.com>
8713
8714         * DataFormat.cs: We can't statically initialize this stuff because
8715         it calls into the xplatui and could create a loop. So we lazy init
8716         it.
8717
8718 2005-05-28  Jackson Harper  <jackson@ximian.com>
8719
8720         * Control.cs: Proper implementation of Product(Name/Version).
8721
8722 2005-05-27  Jackson Harper  <jackson@ximian.com>
8723
8724         * DataObject.cs: Dont crash if no data is found.
8725
8726 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8727         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8728                 as per status page, guessing it should be set to true
8729
8730 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8731
8732         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8733         * DataGridTableStyle.cs: set proper formatting text, def header text
8734         * ThemeWin32Classic.cs: new themable paramaters
8735         * DataGridBoolColumn.cs: paint check box, get data, fixes
8736         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8737         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8738         * DataGridColumnStyle.cs: fixes
8739         * Theme.cs: new themable paramaters
8740                 
8741 2005-05-26  Peter Bartok  <pbartok@novell.com>
8742
8743         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8744
8745 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8746         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8747
8748 2005-05-24  Peter Bartok  <pbartok@novell.com>
8749
8750         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8751           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8752           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8753           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8754           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8755           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8756           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8757           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8758           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8759           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8760           missing attributes, etc
8761         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8762
8763 2005-05-24  Peter Bartok  <pbartok@novell.com>
8764
8765         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8766           when user tries to get help
8767         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8768           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8769           to suppress warnings
8770         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8771           avoid unreachable code warning
8772
8773 2005-05-20  Peter Bartok  <pbartok@novell.com>
8774
8775         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8776
8777 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8778
8779         * DataGridTextBoxColumn.cs: Basic painting methods
8780         * DataGridTableStyle.cs: Set table style in the column
8781         * ThemeWin32Classic.cs: Use Theme for colors
8782         * DataGridDrawingLogic.cs: Implement more drawing
8783         * DataGrid.cs: drawing, theming, enhacements, fixes
8784         * DataGridColumnStyle.cs: fixes, drawing
8785         * Theme.cs: theming for Datagrid
8786
8787 2005-05-20  Peter Bartok  <pbartok@novell.com>
8788
8789         * Cursor.cs: Implemented GetObjectData() method
8790
8791 2005-05-20  Peter Bartok  <pbartok@novell.com>
8792
8793         * Cursors.cs: Added setting of cursor name
8794         * Cursor.cs:
8795           - Implemented constructors
8796           - Implemented Draw and DrawStretched
8797           - Implemented Current property
8798           - Implemented == and != operators
8799           - Implemented Dispose()
8800           - Implemented ToString
8801           - Added missing attributes
8802         * XplatUIX11.cs:
8803           - Added missing reset for OverrideCursor when DoEvents is called
8804           - Fixed creation of cursor, logic was wrong
8805         * XplatUIWin32.cs:
8806           - Added missing reset for OverrideCursor when DoEvents is called
8807           - Fixed creation of cursor, bit arrays were swapped
8808         * Clipboard.cs: Removed obsolete MonoTODO attribute
8809
8810 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8811
8812         * ComboBox.cs: fixes OnSelectedItemChanged
8813         * ControlBindingsCollection.cs: fixes item range check
8814
8815 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8816
8817         * UpDownBase.cs:
8818                 - Calc preferred height properly
8819                 - Implement missing properties
8820                 
8821         * NumericUpDown.cs: Implement missing events
8822
8823 2005-05-19  Jackson Harper  <jackson@ximian.com>
8824
8825         * TabControl.cs: New method that resizes the tab pages before
8826         redrawing them. This as needed as the control is double buffered
8827         and sizing will not be recalculated unless ResizeTabPages is
8828         called.
8829         * TabPage.cs: Set base.Text instead of Text in the constructor so
8830         that UpdateOwner does not get called. Use the new Redraw method of
8831         TabControl instead of Refresh so the sizing is recalculated.
8832         * ThemeWin32Classic.cs: Draw the text for button tabs.
8833
8834 2005-05-19  Jackson Harper  <jackson@ximian.com>
8835
8836         * Control.cs: Paint control background images. Fix typo where
8837         PaintControlBackground was not getting called correctly.
8838
8839 2005-05-19  Peter Bartok  <pbartok@novell.com>
8840
8841         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8842           I can investigate, apparently I broke FileDialog
8843
8844 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8845
8846         * AxHost.cs: Some simple properties.
8847         * Control.cs: window must be accessible after ctor.
8848         * Form.cs: Added TransparencyKey property.
8849         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8850         * XplatUIWin32.cs: SetBorderStyle implemented.
8851
8852 2005-05-18  Peter Bartok  <pbartok@novell.com>
8853
8854         * DataObject.cs: Entries are not global but particular to the
8855           DataObject, now it behaves that way
8856         * XplatUIWin32.cs: Implemented Clipboard methods
8857         * Clipboard.cs: Implemented
8858         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8859         * XplatUIOSX.cs: Updated to final clipboard prototypes
8860         * XplatUIX11.cs: Implemented Clipboard methods
8861         * XplatUIDriver.cs: Updated to final clipboard prototypes
8862         * XplatUIStructs.cs:
8863           - Added BITMAPINFOHEADER struct
8864           - Added ClipboardFormats enum
8865         * X11Structs.cs:
8866           - Added ClipboardStruct
8867           - Added Atom enum items for clipboard types
8868           - Fixed atom types for Selection event structures
8869         * DataFormats.cs:
8870           - Added internal properties and methods for drivers to enumerate
8871             all known formats
8872           - Switched initialization method to allow drivers to assign their
8873             own IDs even for the MS predefined clipboard IDs
8874         * XplatUI.cs: Updated to final clipboard interface
8875
8876 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8877         * PropertyGridView.cs: Fixed compiler warnings.
8878
8879 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8880         * PropertyGrid.cs: Added some event calls
8881         * PropertyGridView.cs: Change drawing code to use double buffering
8882         * PropertyGridTextBox.cs: Changed Text property name
8883         * GridItem.cs: Added Bounds property.
8884         * GridEntry.cs: Added Bounds property.
8885
8886 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8887
8888         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8889         since GetType() may not return the correct type if the object is
8890         a remoting proxy.
8891
8892 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8893
8894         * TreeNodeCollection.cs: fixes get/set item ranges
8895         
8896 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8897
8898         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8899                 
8900 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8901
8902         * ComboBox.cs: Fix item range comparation
8903         * ListView.cs: Fix item range comparation
8904
8905 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8906
8907         * FontDialog.cs:
8908           - Clear example panel when OnPaint is called
8909           - Better solution for displaying the example panel text
8910           - Select default indexes in the ListBoxes
8911
8912 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8913
8914         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8915
8916 2005-05-11  Peter Bartok  <pbartok@novell.com>
8917
8918         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8919         * SelectionRangeConverter.cs: Implemented
8920         * PropertyGrid.cs: Fixed attribute value
8921         * Control.cs:
8922           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8923           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8924         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8925           that's common to all drivers. First methods to go there are
8926           Sebastien Pouliot's CAS Stack Propagation helper methods
8927         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8928           Sebastien Pouliot for CAS Stack Propagation
8929
8930 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8931
8932         * OSXStructs.cs:
8933           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8934
8935 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8936
8937         * DataGridTextBoxColumn.cs: fixed some members
8938         * GridColumnStylesCollection.cs: indexed column is case insensitive
8939         * DataGridTableStyle.cs: fixes
8940         * ThemeWin32Classic.cs: add new theme parameter
8941         * Theme.cs: add new theme parameter
8942         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8943         * DataGrid.cs: fixes, new internal properties, etc.
8944         * DataGridColumnStyle.cs: allows to set grid value
8945         *
8946
8947 2005-05-10  Peter Bartok  <pbartok@novell.com>
8948
8949         * AccessibleObject.cs:
8950           - Removed MonoTODO attribute on help, method is correct
8951           - Fixed Bounds property
8952         * AxHost.cs: Moved MonoTODO
8953         * ButtonBase.cs: Now setting AccessibleObject properties
8954         * RadioButton.cs: Setting proper AccessibleObject role
8955         * CheckBox.cs: Setting proper AccessibleObject role
8956         * ControlBindingsCollection.cs: Added properties, methods and attributes
8957         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8958           userdefined DataFormats.Format items as well
8959         * ListControl.cs: Removed data_member from the public eye
8960         * OpenFileDialog.cs:
8961           - Made class sealed
8962           - Added missing attributes
8963         * SaveFileDialog.cs: Added missing attributes
8964         * ImageListStreamer.cs: Fixed code that caused warnings
8965         * LinkLabel.cs: Removed unreachable code
8966         * TreeView.cs: Fixed code that caused warnings
8967         * PropertyGridView.cs: Fixed code that caused warnings
8968         * GridColumnStylesCollection.cs: Added missing attributes
8969         * GridTableStylesCollection: Added missing attribute
8970         * PropertyManager: Added .ctor
8971         * SecurityIDType: Added
8972         * DataObject.cs: Implemented class
8973         * LinkArea.cs: Added missing attribute
8974
8975 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8976
8977         * RadioButton.cs: call base method to allow to fire OnClick event
8978         * UpDownBase.cs: OnMouseUp call base method
8979         * CheckedListBox.cs: call base method before returning
8980         * TrackBar.cs: call base method before returning
8981         
8982
8983 2005-05-10  Peter Bartok  <pbartok@novell.com>
8984
8985         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8986           for messages
8987
8988 2005-05-10  Peter Bartok  <pbartok@novell.com>
8989
8990         * DataFormats.cs: Implemented
8991         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8992           XplatUIX11.cs: Added Clipboard APIs
8993         * XplatUIWin32.cs: Implemented Clipboard APIs
8994         * FolderBrowserDialog.cs: Added missing event, attributes
8995
8996 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8997
8998         * CheckBox.cs: call base method to allow to fire OnClick event
8999
9000 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
9001
9002         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
9003
9004 2005-05-06  Peter Bartok  <pbartok@novell.com>
9005
9006         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
9007         * Screen.cs: Implemented
9008         * HelpNavigator.cs: Added
9009         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
9010           property
9011         * HelpProvider.cs: Implemented all we can do until we have a CHM
9012           help library (which means that "What's This" does work now)
9013
9014 2005-05-06  Jackson Harper  <jackson@ximian.com>
9015
9016         * XplatUIX11.cs: Fix waking up the main loop.
9017                 
9018 2005-05-05  Peter Bartok  <pbartok@novell.com>
9019
9020         * XplatUI.cs: Updated revision
9021         * Form.cs: Removed enless loop
9022         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
9023         * Label.cs (OnPaint): Added call to base.OnPaint()
9024         * ToolTip.cs: Made ToolTipWindow reusable for other controls
9025         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
9026         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
9027         * AxHost.cs: Added
9028         * ButtonBase.cs: Moved base.OnPaint() call to end of method
9029         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
9030           to ToolTip.ToolTipWindow for drawing and size methods; this allows
9031           reuse of ToolTipWindow by other controls
9032         * SizeGrip.cs: Moved base.OnPaint() call to end of method
9033         * XplatUIX11.cs: Now clipping drawing area (experimental)
9034         * PictureBox.cs: Moved base.OnPaint() call to end of method
9035         * Theme.cs: Fixed ToolTip abstracts to match new format
9036         * ErrorProvider.cs: Implemented
9037
9038 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
9039
9040         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
9041         * LinkLabel.cs:
9042                 - Adds cursors
9043                 - Handles focus
9044                 - Implements LinkBehavior
9045                 - Fixes many issues
9046
9047 2005-05-03  Jackson Harper  <jackson@ximian.com>
9048
9049         * ListView.cs: Calculate the scrollbar positioning on resize and
9050         paint, so they get put in the correct place.
9051
9052 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
9053
9054         * ColorDialogs.cs: The small color panels are now handled by
9055           SmallColorControl. This fixes drawing of the focus rectangle
9056           and adds a 3D border.
9057
9058 2005-05-03  Peter Bartok  <pbartok@novell.com>
9059
9060         * Control.cs: Modified version of Jonathan Chamber's fix for
9061           double-buffering
9062
9063 2005-05-03  Jackson Harper  <jackson@ximian.com>
9064
9065         * ListView.cs: Remove redraw variable. Control now handles whether
9066         or not a redraw needs to be done, and will only raise the paint
9067         event if redrawing is needed.
9068
9069 2005-05-03  Jackson Harper  <jackson@ximian.com>
9070
9071         * Splitter.cs: No decorations for the splitter form. Cache the
9072         hatch brush.
9073
9074 2005-05-03  Jackson Harper  <jackson@ximian.com>
9075
9076         * TreeView.cs: Use dashed lines to connect nodes. Use the
9077         ControlPaint method for drawing the focus rect instead of doing
9078         that in treeview.
9079
9080 2005-05-02  Peter Bartok  <pbartok@novell.com>
9081
9082         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
9083
9084 2005-04-29  Jackson Harper  <jackson@ximian.com>
9085
9086         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
9087         entire image buffer. Just clear the clipping rectangle.
9088
9089 2005-04-29  Jackson Harper  <jackson@ximian.com>
9090
9091         * ThemeWin32Classic.cs: Don't draw list view items that are
9092         outside the clipping rectangle.
9093
9094 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
9095
9096         * ListBox.cs: added horizontal item scroll
9097
9098 2005-04-29  Jackson Harper  <jackson@ximian.com>
9099
9100         * ThemeWin32Classic.cs: Remove some old debug code that was
9101         causing flicker with the new double buffering code.
9102
9103 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
9104
9105         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
9106         behave like combobox and comboboxlist (still not sure if this is
9107         correct though).
9108
9109 2005-04-28  Jackson Harper  <jackson@ximian.com>
9110
9111         * ThemeWin32Classic.cs: Don't fill the middle of progress
9112         bars. This fills areas outside of the clip bounds that don't need
9113         to be filled.
9114
9115 2005-04-28  Jackson Harper  <jackson@ximian.com>
9116
9117         * Control.cs: Don't expose functionality to touch the image buffers.
9118         * ProgressBar.cs:
9119         * ListView.cs: We do not need to (and no longer can) manipulate
9120         the image buffers directly. All of this is handled by Control.
9121
9122 2005-04-28  Peter Bartok  <pbartok@novell.com>
9123
9124         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9125           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
9126           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
9127
9128 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
9129
9130         * Combobox:
9131                 - Adjust control's height for non-simple comboboxes (bug fix)
9132                 - Remove dead code
9133         * MenuAPI.cs: remove unused var
9134         * ScrollBar.cs: remove unsed var
9135                  
9136         * ListBox.cs: unselect items when clearing
9137
9138 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
9139
9140         * ListControl.cs: honors OnPositionChanged and default Selected Item
9141         * ListBox.cs: unselect items when clearing
9142
9143 2005-04-27  Jackson Harper  <jackson@ximian.com>
9144
9145         * X11Keyboard.cs: Initialize a default keyboard and give a warning
9146         if a "correct" keyboard is not found. This will make us not crash,
9147         but might give some users bad keyboard layouts...seems to be the
9148         same thing rewind does.
9149
9150 2005-04-27  Jackson Harper  <jackson@ximian.com>
9151
9152         * BindingManagerBase.cs: Attach the current/position changed
9153         handlers to their respective events.
9154
9155 2005-04-27  Jackson Harper  <jackson@ximian.com>
9156
9157         * Control.cs: Make sure that the first WM_PAINT does a full draw,
9158         not just a blit.
9159         * ThemeWin32Classic.cs: Don't fill the background for picture
9160         boxes. This could overright user drawing.
9161         * ComboBox.cs: Just fill the clipping rect not the entire client
9162         rect when drawing the background. This prevents pieces of the
9163         image buffer from getting overwritten and is theoretically faster.
9164
9165 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
9166
9167         * ComboBox.cs: Databinding support fixes, fire missing events
9168         * ListControl.cs: implement missing methods and properties, fixes
9169         * ThemeWin32Classic.cs: Databiding support on Drawing
9170         * CheckedListBox.cs: Databinding support fixes, fire missing events
9171         * ListBox.cs: Databinding support fixes, fire missing events
9172         
9173 2005-04-25  Peter Bartok  <pbartok@novell.com>
9174
9175         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
9176
9177 2005-04-25  Jackson Harper  <jackson@ximian.com>
9178
9179         * TreeView.cs: Use the horizontal scrollbars height not width when
9180         determining how much of the client area is available.
9181
9182 2005-04-25  Jackson Harper  <jackson@ximian.com>
9183
9184         * Control.cs: Double buffering is handled differently now. As per
9185         the spec, the extra buffer is created in the WM_PAINT message and
9186         passed down to the control's drawing code.
9187         * GroupBox.cs:
9188         * Label.cs:
9189         * CheckBox.cs:
9190         * ProgressBar.cs:
9191         * RadioButton.cs:
9192         * ColorDialog.cs:
9193         * ComboBox.cs:
9194         * PropertyGridView.cs:
9195         * UpDownBase.cs:
9196         * MessageBox.cs:
9197         * MenuAPI.cs:
9198         * ListView.cs:
9199         * ButtonBase.cs:
9200         * SizeGrip.cs:
9201         * ScrollBar.cs:
9202         * ListBox.cs:
9203         * TrackBar.cs:
9204         * ToolBar.cs:
9205         * PictureBox.cs:
9206         * DateTimePicker.cs:
9207         * StatusBar.cs:
9208         * TreeView.cs: Update to new double buffering system.
9209         * MonthCalendar.cs: Uncomment block, as Capture is now
9210         working. Update to new double buffering
9211         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
9212         * PaintEventArgs.cs: New internal method allows us to set the
9213         graphics object. This is used for double buffering.
9214         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
9215         rectangle. The internal paint_area var has been removed from
9216         StatusBar. The clipping rect should be used instead.
9217         * Theme.cs: Give the PictureBox drawing method a clipping rect.
9218         * TabPage.cs: The RefreshTabs method was removed, so just call the
9219         tab controls Refresh method now.
9220         * TabControl.cs: Update to new double buffering. Make sure the
9221         handle is created before sizing the tab pages, otherwise we will
9222         get stuck in a loop.
9223
9224 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
9225
9226         * LinkLabel.cs: Fix typo, bug #74719; patch
9227           from Borja Sanchez Zamorano
9228
9229 2005-04-22  Jackson Harper  <jackson@ximian.com>
9230
9231         * TreeNode.cs: Implement Handle stuff.
9232         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
9233
9234 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
9235
9236         * DataGridTextBoxColumn.cs: call base constructors, fixes
9237         * GridColumnStylesCollection.cs: missing events, methods, and functionality
9238         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
9239         * DataGridTableStyle.cs: implements create default column styles
9240         * DataGridBoolColumn.cs: which types can handle
9241         * DataGrid.cs: missing methods, fixes, new functionality
9242         * DataGridColumnStyle.cs: fixes
9243
9244 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
9245         * FolderBrowserDialog.cs:
9246         - Use a thread to fill the TreeView
9247         - Adjusted some sizes
9248
9249 2005-04-19  Peter Bartok  <pbartok@novell.com>
9250
9251         * LinkLabel.cs: (Re-)create the pieces when setting the Text
9252           property. Fixes #74360.
9253
9254 2005-04-19  Jackson Harper  <jackson@ximian.com>
9255
9256         * XEventQueue.cs: Lock when getting the lockqueue size.
9257         * PictureBox.cs: Call base OnPaint
9258         
9259 2005-04-19  Peter Bartok  <pbartok@novell.com>
9260
9261         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
9262           messages were no longer being processed (this broke BeginInvoke)
9263
9264           
9265 2005-04-18  Jackson Harper  <jackson@ximian.com>
9266
9267         * TreeView.cs: buglet that caused node images to get drawn
9268         regardless of whether or not they were in the clipping rectangle.
9269
9270 2005-04-18  Jackson Harper  <jackson@ximian.com>
9271
9272         * CurrencyManager.cs: There are four rules for GetItemProperties:
9273         - If the type is an array use the element type of the array
9274         - If the type is a typed list, use the type
9275         - If the list contains an Item property that is not an object, use
9276         that property
9277         - use the first element of the list if there are any elements in
9278         the list.
9279         
9280 2005-04-17  Jackson Harper  <jackson@ximian.oom>
9281
9282         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
9283         click. This handles offsets for scrolling properly and reduces
9284         memory. Also fixed GetNode to not offset now that TopNode works
9285         properly.
9286         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
9287         
9288 2005-04-17  Jackson Harper  <jackson@ximian.com>
9289
9290         * CursorConverter.cs: Initial implementation.
9291
9292 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9293
9294         * ListControl.cs: work towards complex data binding support on ListControl
9295         * CurrencyManager.cs: work towards complex data binding support on ListControl
9296         * ListBox.cs: work towards complex data binding support on ListControl
9297
9298
9299 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9300
9301         * GridTableStylesCollection.cs: fixes name and constructor
9302         * DataGridTableStyle.cs: fixes
9303         * DataGridBoolColumn.cs: fixes names and constructors
9304         * DataGrid.cs: define methods and properties. Some init implementations
9305         * DataGridCell.cs: define methods and properties. Some init implementations
9306         * GridTablesFactory.cs: Define methods and properties
9307
9308 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
9309
9310         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
9311         graphics port changes.  We still want the coordinates in global screen
9312         coordinates.
9313
9314 2005-04-14  Jackson Harper  <jackson@ximian.com>
9315
9316         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
9317         check plus minus or checkbox clicks unless those features are enabled.
9318
9319 2005-04-14  Jackson Harper  <jackson@ximian.com>
9320
9321         * TreeView.cs: Add methods for setting the top and bottom visible
9322         nodes. TreeNode::EnsureVisible uses these methods.
9323         * TreeNode.cs: Implement EnsureVisible
9324
9325 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
9326
9327         * Form.cs: Pospone menu assignation if the window has not been created yet
9328         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
9329         size and position
9330
9331 2005-04-12  Jackson Harper  <jackson@ximian.com>
9332
9333         * TreeView.cs: Set the TopNode properly when scrolling
9334         occurs. This has the added benifit of reducing the amount of
9335         walking that needs to be done when drawing. Also removed an old
9336         misleading TODO.
9337         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
9338         
9339 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
9340
9341         * Timer.cs: fixes interval setting when the timer is already enabled
9342         
9343 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
9344
9345         * FolderBrowserDialog.cs: First approach
9346
9347 2005-04-09  Peter Bartok  <pbartok@novell.com>
9348
9349         * FolderBrowserDialog: Added
9350
9351 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
9352
9353         * LinkLabel.cs: move drawing code into the theme
9354         * ThemeWin32Classic.cs: drawing code and painting background bugfix
9355         * Theme.cs: define DrawLinkLabel method
9356
9357 2005-04-05  Jackson Harper  <jackson@ximian.com>
9358
9359         * BindingContext.cs: Use weak references so these bad actors don't
9360         stay alive longer then they need to.
9361
9362 2005-04-05  Jackson Harper  <jackson@ximian.com>
9363
9364         * ListControl.cs: Basic implementation of complex databinding.
9365         * ComboBox.cs:
9366         * ListBox.cs: Add calls to ListControl databinding methods.
9367
9368 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
9369
9370         * FileDialog.cs:
9371           - Don't change PopupButtonState to Normal when the
9372             PopupButton gets pressed several times.
9373           - Renamed ButtonPanel to PopupButtonPanel
9374
9375 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
9376
9377         * ColorDialog.cs: Use cached objects instead of creating them
9378         * LinkLabel.cs: Use cached objects instead of creating them
9379         * Splitter.cs: Use cached objects instead of creating them
9380         * FontDialog.cs: Use cached objects instead of creating them
9381         * PropertyGridView.cs: Use cached objects instead of creating them
9382         * MessageBox.cs: Use cached objects instead of creating them
9383         * FileDialog.cs: Use cached objects instead of creating them
9384         * ThemeWin32Classic.cs: Use cached objects instead of creating them
9385         * TreeView.cs: Use cached objects instead of creating them
9386         
9387 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
9388
9389         * Control.cs: use Equals to compare the font since no == op
9390         * ScrollBar.cs: use Equals to compare the font since no == op
9391
9392 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
9393
9394         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
9395
9396 2005-04-01  Jackson Harper  <jackson@ximian.com>
9397
9398         * Binding.cs: Implement IsBinding.
9399         * BindingManagerBase.cs:
9400         * PropertyManager.cs:
9401         * CurrencyManager.cs: Add IsSuspended property.
9402
9403 2005-04-01  Jackson Harper  <jackson@ximian.com>
9404
9405         * Binding.cs: Had some IsAssignableFrom calls backwards.
9406
9407 2005-04-01  Jackson Harper  <jackson@ximian.com>
9408
9409         * Binding.cs: Handle null data members when pulling data.
9410         * PropertyManager.cs: Handle the data member being a property that
9411         does not exist.
9412
9413 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9414
9415         * DataGridTextBoxColumn.cs: fixes signature
9416         * DataGrid.cs: calls right constructor
9417
9418 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9419
9420         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
9421         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
9422         * GridTableStylesCollection.cs: implements GridTableStylesCollection
9423         * DataGridTableStyle.cs: implements DataGridTableStyle
9424         * DataGridBoolColumn.cs: implements DataGridBoolColumn
9425         * DataGridTextBox.cs: implements DataGridTextBox
9426         * DataGridColumnStyle.cs: implements DataGridColumnStyle
9427
9428 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
9429
9430         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
9431
9432 2005-03-29  Peter Bartok  <pbartok@novell.com>
9433
9434         * Application.cs:
9435           - Properly implemented CompanyName property
9436           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
9437             returns a path that includes CompanyName, ProductName and
9438             Version (fixes bug #70330)
9439
9440 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
9441
9442         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
9443           fixes bug #72588.
9444
9445 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9446
9447         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
9448         
9449           - Added ReadOnly CheckBox
9450           - Further refactoring: moved some code from Open-/SaveFileDialog
9451             to FileDialog
9452
9453 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9454
9455         * OpenFileDialog.cs: Fixed CheckFileExists
9456         * FileDialog.cs:
9457           Moved FileView and DirComboBox outside FileDialog class.
9458           They can now be used outside FileDialog
9459
9460 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9461
9462         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
9463         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
9464
9465 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9466
9467         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9468           - Added missing CreatePrompt property in SaveDialog
9469           - Overall SaveDialog handling should be better now
9470           - Added non standard ShowHiddenFiles property
9471           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
9472           - Added InitialDirectory and RestoreDirectory support
9473
9474 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
9475
9476         * FileDialog.cs: Made dirComboBox usable
9477
9478 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
9479
9480         * FileDialog.cs: Added Filter support (case sensitiv)
9481
9482 2005-03-24  Jackson Harper  <jackson@ximian.com>
9483
9484         * TabControl.cs: Need a couple more pixels for the lines.
9485
9486 2005-03-23  Jackson Harper  <jackson@ximian.com>
9487
9488         * TabControl.cs: Give the tab page focus when it is selected.
9489
9490 2005-03-23  Jackson Harper  <jackson@ximian.com>
9491
9492         * TabControl.cs: Account for the drawing of tabs borders when
9493         invalidating. If the slider was clicked dont do click detection on
9494         the tabs.
9495
9496 2005-03-23  Jackson Harper  <jackson@ximian.com>
9497
9498         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
9499
9500 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
9501
9502         * CategoryGridEntry.cs: Added
9503         * GridItem.cs: Added helper properties
9504         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
9505         * GridEntry.cs: Updated code for collection
9506         * PropertyGrid.cs: Cleaned up some formatting
9507         * PropertyGridView.cs: Added drop down functionality for enums.
9508         * GridItemCollection.cs: Added enumerator logic
9509         * PropertyGridEntry.cs: Added
9510
9511 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9512
9513         * FileDialog.cs:
9514           - Removed unnecessary commented code
9515           - Fixed handling for entering the filename manually in the combobox
9516
9517 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9518
9519         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9520
9521 2005-03-18  Peter Bartok  <pbartok@novell.com>
9522
9523         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9524           them being touching the border
9525
9526 2005-03-18  Peter Bartok  <pbartok@novell.com>
9527
9528         * TextControl.cs: Quick hack to center text better
9529
9530 2005-03-18  Peter Bartok  <pbartok@novell.com>
9531
9532         * ControlPaint.cs:
9533           - Don't throw NotImplemented exceptions, just print a notice once
9534             instead (requested by Miguel). This makes running existing SWF
9535             apps a bit easier
9536         * Control.cs:
9537           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9538           - Added context menu trigger on right click
9539         * Panel.cs: Trigger invalidate on resize
9540         * StatusBar.cs:
9541           - Removed old double-buffer drawing
9542           - Added ResizeRedraw style to force proper update of statusbar
9543         * ListView.cs:
9544           - Removed debug output
9545         * ThemeWin32Classic.cs:
9546           - Fixed drawing of status bar, now draws Text property if there
9547             are no defined panels
9548
9549 2005-03-18  Jackson Harper  <jackson@ximian.com>
9550
9551         * ImageList.cs: When the image stream is set pull all the images
9552         from it.
9553         * ImageListStreamer.cs: Implement reading image list streams.
9554
9555 2005-03-18  Peter Bartok  <pbartok@novell.com>
9556
9557         * ThemeWin32Classic.cs (DrawPictureBox):
9558           - Fixed calculations for centered drawing
9559           - Fixed drawing for normal mode, not scaling the image on normal
9560
9561 2005-03-18  Peter Bartok  <pbartok@novell.com>
9562
9563         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9564           textbox
9565         * FileDialog.cs:
9566           - Made Open/Save button the accept button for FileDialog
9567           - Tied the cancel button to the IButtonControl cancel button
9568           - Save/Open now properly builds the pathname
9569           - Now handles user-entered text
9570           - Preventing crash on right-click if no item is selected
9571           - Fixed Text property, now uses contents of textbox
9572           - Fixed SelectedText property, now just returns the text part that
9573             is selected in the text box
9574
9575 2005-03-18  Jackson Harper  <jackson@ximian.com>
9576
9577         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9578         rect, make sure to de-adjust the interior rect after drawing the
9579         tab text.
9580
9581 2005-03-18  Peter Bartok  <pbartok@novell.com>
9582
9583         * MenuAPI.cs: Remove menu *before* executing selected action to
9584           prevent the menu from 'hanging around'
9585           
9586 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
9587
9588         * XplatUIOSX.cs: Implemented WorkingArea property
9589
9590 2005-03-17  Peter Bartok  <pbartok@novell.com>
9591
9592         * XplatUIX11.cs: Fixed menu coord calculations
9593         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9594           for calculating offsets
9595
9596 2005-03-17  Peter Bartok  <pbartok@novell.com>
9597
9598         * Hwnd.cs: Do not consider menu presence for default client
9599           rectangle location/size
9600         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9601           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9602           translation functions
9603         * FileDialog.cs: Fixed (what I presume is a) typo
9604
9605 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
9606
9607         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9608           X access (avoids X-Async errors)
9609
9610 2005-03-16  Jackson Harper  <jackson@ximian.com>
9611
9612         * TabControl.cs: Raise the SelectedIndexChanged event.
9613
9614 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9615
9616         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9617           - Removed vertical ToolBar and replaced it with a custom panel
9618             (desktop and home button already work)
9619           - Added Help button (some controls get resized or relocated then)
9620           - Draw correct text depending on Open or Save.
9621           - Fixed some typos...
9622
9623 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9624
9625         * ScrollBar.cs:
9626           - Only change Maximum and Minimum when need it (bug fix)
9627
9628 2005-03-15  Peter Bartok  <pbartok@novell.com>
9629
9630         * Form.cs: Use Handle for icon, to trigger creation if
9631           the window does not yet exist
9632         * Control.cs:
9633           - CanSelect: Slight performance improvement
9634           - Focus(): Preventing possible recursion
9635           - Invalidate(): Removed ControlStyle based clear flag setting
9636           - WM_PAINT: fixed logic for calling OnPaintBackground
9637           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9638             EraseWindowBackground if the control doesn't paint background
9639         * XplatUIWin32.cs:
9640           - Moved EraseWindowBackground() method to internal methods
9641           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9642             is sent via SendMessage on BeginPaint call on Win32
9643         * XplatUIX11.cs:
9644           - Added EraseWindowBackground() method
9645           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9646             PaintEventStart, which more closely matches Win32 behaviour
9647           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9648           - Fixed SetFocus() to properly deal with client and whole windows
9649         * Hwnd.cs: Added ErasePending property
9650         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9651         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9652
9653 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9654
9655         * XplatUIOSX.cs:
9656           - Fix hard loop when timers exist.
9657           - Fix bugs with middle and right click for 3 button mice.
9658
9659 2005-03-11  Peter Bartok  <pbartok@novell.com>
9660
9661         * XplatUIX11.cs:
9662           - get_WorkingArea: Need to call X directly, GetWindowPos only
9663             returns cached data now
9664           - Added sanity check to GetWindowPos hwnd usage
9665
9666 2005-03-11  Jackson Harper  <jackson@ximian.com>
9667
9668         * BindingManagerBase.cs: This method isn't used anymore as
9669         PullData now updates the data in the control.
9670
9671 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9672
9673         * Form.cs: fixes menu drawing on X11
9674         * MenuAPI.cs:  fixes menu drawing on X11
9675
9676 2005-03-11  Peter Bartok  <pbartok@novell.com>
9677
9678         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9679           from Jonathan Gilbert; should fix bug #73606
9680         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9681           in Screen coordinates. Thanks, Jordi.
9682         * Form.cs: Added missing attribute
9683
9684 2005-03-11  Peter Bartok  <pbartok@novell.com>
9685
9686         * Form.cs:
9687           - Rudimentary Mdi support
9688           - Removed outdated FormParent code
9689           - Implemented lots of missing properties and methods, still missing
9690             transparency support
9691           - Added missing attributes
9692           - Implemented support for MaximumBounds
9693           - Added firing of various events
9694         * XplatUI.cs: Added SetIcon() method
9695         * XplatUIDriver.cs: Added SetIcon() abstract
9696         * XplatUIOSX.cs: Stubbed out SetIcon() method
9697         * XplatUIX11.cs:
9698           - Implemented SetIcon() support
9699           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9700           - Switched to unix line endings
9701         * XplatUIWin32.cs:
9702           - Made POINT internal so for can access it as part of MINMAX
9703           - Implemented SetIcon() support
9704           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9705             native Mdi support again, might have to go managed)
9706         * Control.cs: Now fires the StyleChanged event
9707         * MdiClient.cs: Added; still mostly empty
9708
9709 2005-03-10  Peter Bartok  <pbartok@novell.com>
9710
9711         * SaveFileDialog.cs: Added emtpy file
9712
9713 2005-03-08  Peter Bartok  <pbartok@novell.com>
9714
9715         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9716           in turn triggers OnCreateContro) when creating a handle for the
9717           first time.
9718         * TextControl.cs: Fixed endless loop in certain cases when
9719           replacing the current selection
9720
9721 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9722
9723         * ScrollBar.cs:
9724           - Honors NewValue changes in Scroll events allowing apps to change it
9725           - Adds First and Last Scroll events
9726           - Fixes Thumb events
9727
9728 2005-03-07  Peter Bartok  <pbartok@novell.com>
9729
9730         * Hwnd.cs: Added DefaultClientRectangle property
9731         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9732           more detailed debug information
9733         * XplatUIX11.cs:
9734           - Fixed size-change feedback loop, where we would pull an old size
9735             off the queue and mistakenly change our window's size to an
9736             earlier value
9737           - Now compressing ConfigureNotify events, to reduce looping and
9738             redraw issues
9739         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9740           is called
9741
9742 2005-03-07  Jackson Harper  <jackson@ximian.com>
9743
9744         * Binding.cs: Push data pushes from data -> property. Check if the
9745         property is readonly when attempting to set it.
9746
9747 2005-03-07  Jackson Harper  <jackson@ximian.com>
9748
9749         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9750         instead of IsSubclassOf. Pulling data now sets the value on the
9751         control.
9752         * PropertyManager.cs:
9753         * CurrencyManager.cs: Just need to pull data when updating now,
9754         because PullData will set the value on the control.
9755
9756 2005-03-04  Jackson Harper  <jackson@ximian.com>
9757
9758         * Binding.cs: Implement data type parsing and converting on pulled
9759         data. TODO: Are there more ways the data can be converted?
9760
9761 2005-03-04  Jackson Harper  <jackson@ximian.com>
9762
9763         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9764         controls Validating method so we can repull the data when the
9765         control loses focus.
9766
9767 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9768
9769         * ColumnHeader.cs:
9770           - Fixes null string format
9771           
9772         * ListView.cs:
9773           - Adds enum type checks
9774           - Fixes redrawing and recalc need after changing some properties
9775           - Fixes on focus_item set after the event
9776           - Fixes adding columns after the control has been created
9777           
9778         * ThemeWin32Classic.cs:
9779           - Fixes CheckBox focus rectangle
9780           - Fixes ColumnHeader drawing
9781
9782
9783 2005-03-03  Jackson Harper  <jackson@ximian.com>
9784
9785         * Binding.cs: Bind to <Property>Changed events so we can detect
9786         when properties are changed and update the data.
9787
9788 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9789
9790         * ImageList.cs:
9791           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9792           - Fixes ImageList constructor with ImageList container
9793           - Fixes image scaling (wrong parameters at DrawImage)
9794
9795 2005-02-02  Jackson Harper  <jackson@ximian.com>
9796
9797         * Binding.cs: Make property searches case-insensitive. Eliminate
9798         some duplicated code.
9799
9800 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9801
9802         * ComboBox.cs:
9803                 - Handle focus event
9804                 - Fix scrollbar events
9805                 - Discard highlighted item if remove it
9806                 - Fixes SelectedItem with strings
9807
9808 2005-03-01  Peter Bartok  <pbartok@novell.com>
9809
9810         * Control.cs:
9811           - Fixed Visible property, now follows (once again) parent chain
9812             to return false if any control in the chain is visible=false
9813           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9814           - Fixed several places where is_visible instead of Visible was used
9815           - Implemented FIXME related to focus selection when setting focused
9816             control to be invisible
9817
9818         * XplatUIWin32.cs: Now using proper method to find out if window is
9819           visible. Thanks to Jordi for pointing it out
9820
9821 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9822
9823         * ComboBox.cs: show/hide scrollbar instead of creating it
9824
9825 2005-02-27  Jackson Harper  <jackson@ximian.com>
9826
9827         * CurrencyManager.cs: Add PositionChanged stuff.
9828
9829 2005-02-27  Peter Bartok  <pbartok@novell.com>
9830
9831         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9832         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9833         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9834         * XplatUIX11.cs:
9835           - Implemented GetMenuDC()
9836           - Implemented GetMenuOrigin()
9837           - Implemented ReleaseMenuDC()
9838           - Implemented generation of WM_NCPAINT message
9839           - Implemented generation and handling of WM_NCCALCSIZE message
9840         * Form.cs: Added debug helper message for Jordi's menu work
9841         * Hwnd.cs:
9842           - Modified ClientRect property; added setter, fixed getter to handle
9843             setting of ClientRect
9844           - Added MenuOrigin property
9845
9846 2005-02-26  Peter Bartok  <pbartok@novell.com>
9847
9848         * XplatUIX11.cs:
9849           - Destroys the caret if a window that's being destroyed contains it
9850           - Ignores expose events coming from the X11 queue for windows that
9851             already are destroyed
9852           - Now uses the proper variable for handling DestroyNotify, before we
9853             marked the wrong window as destroyed
9854           - Improved/added some debug output
9855
9856 2005-02-26  Peter Bartok  <pbartok@novell.com>
9857
9858         * X11Keyboard.cs: Fixes to work on 64bit systems
9859
9860 2005-02-26  Peter Bartok  <pbartok@novell.com>
9861
9862         * Control.cs:
9863           - Now calling OnHandleDestroyed from DestroyHandle()
9864             instead of Dispose()
9865           - Removed bogus call to controls.Remove() from DestroyHandle()
9866
9867 2005-02-26  Peter Bartok  <pbartok@novell.com>
9868
9869         * Control.cs: Properly destroy child windows when our handle is
9870           destroyed
9871
9872 2005-02-25  Peter Bartok  <pbartok@novell.com>
9873
9874         * XplatUI.cs:
9875           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9876           - Alphabetized Static Methods and Subclasses
9877
9878         * XplatUIX11.cs:
9879           - Added XException class to allow custom handling of X11 exceptions
9880           - Created custom X11 error handler, tied into XException class
9881           - Added support for MONO_XEXCEPTIONS env var to allow the user
9882             to either throw an exception on X errors or continue running
9883             after displaying the error
9884           - Added handling of DestroyNotify message
9885           - Added handler for CreateNotify message (still disabled)
9886           - Improved (tried to at least) Where method to provide file and lineno
9887         * X11Structs.cs:
9888           - Added XErrorHandler delegate
9889           - Added XRequest enumeration (to suppor translation of errors)
9890
9891 2005-02-25  Jackson Harper  <jackson@ximian.com>
9892
9893         * PropertyManager.cs: Implement editing features
9894         * CurrencyManager.cs:
9895         * Binding.cs: First attempt at UpdateIsBinding
9896         * BindingManagerBase.cs: Call UpdateIsBinding before
9897         pushing/pulling data.
9898
9899 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9900
9901         * MenuAPI.cs: Respect disabled items
9902         * ThemeWin32Classic.cs
9903                 - Caches ImageAttributes creation for DrawImageDisabled
9904                 - Fixes vertical menu line drawing
9905                 - Draws disabled arrows in disable menu items
9906
9907 2005-02-24  Peter Bartok  <pbartok@novell.com>
9908
9909         * Hwnd.cs:
9910           - Added UserData property to allow associating arbitrary objects
9911             with the handle
9912           - Fixed leak; now removing Hwnd references from static windows array
9913         * XplatUIWin32.cs:
9914           - Fixed Graphics leak in PaintEventEnd
9915           - Removed usage of HandleData, switched over to Hwnd class
9916         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9917
9918 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9919
9920         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9921         * ScrollBar.cs: Fixes bug
9922         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9923          keyboard navigation enhancements
9924
9925 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9926
9927         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9928         * GroupBox.cs: Add control styles
9929         * Label.cs: Add control styles
9930         * UpDownBase.cs: Add control styles
9931         * ListBox.cs: Add control styles
9932         * XplatUIWin32.cs: Fixes wrong parameter order
9933
9934
9935 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9936
9937         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9938
9939 2005-02-23  Jackson Harper  <jackson@ximian.com>
9940
9941         * PropertyManager.cs: Implement property binding. This doesn't
9942         seem to work yet though as (I think) there are some bugs in
9943         System.ComponentModel.PropertyDescriptor.
9944         * BindingContext.cs: Use new PropertyManager constructor.
9945
9946 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9947
9948         * ProgressBar.cs: use clip region in ProgressBar
9949         * ThemeWin32Classic.cs: use clip region in ProgressBar
9950
9951 2004-02-22  Jackson Harper  <jackson@ximian.com>
9952
9953         * BindingsCollection.cs: Remove some debug code.
9954
9955 2005-02-22  Jackson Harper  <jackson@ximian.com>
9956
9957         * BindingContext.cs:
9958         * ControlBindingsCollection.cs:
9959         * CurrencyManager.cs:
9960         * Binding.cs:
9961         * BindingManagerBase.cs: Initial implementation
9962         * BindingsCollection.cs: Add an internal contains method that the
9963         BindingManagerBase uses to ensure bindings aren't added twice to
9964         the collection.
9965         * PropertyManager.cs: Stubbed out.
9966         * Control.cs:
9967         * ContainerControl.cs: Hook up databinding
9968         
9969 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9970
9971         * XplatUIOSX.cs:
9972           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9973           Fixed Invalidate/Update chain.
9974           Fixed tons of other minor bugs (this is almost a complete rewrite).
9975
9976 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9977
9978         * ComboBox.cs: do subcontrol creation when the control is created
9979
9980 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9981
9982         * Label.cs: fixes image drawing (image and imagelist)
9983         * ThemeWin32Classic.cs: cache brushes
9984         
9985 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9986
9987         * Form.cs: Move menu drawing code to Theme class
9988         * ComboBox.cs: Move ComboBox drawing code to Theme class
9989         * MenuItem.cs: Move menu drawing code to Theme class
9990         * MenuAPI.cs: Move menu drawing code to Theme class
9991         * ThemeWin32Classic.cs: New methods
9992         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9993         * ListBox.cs: Move Listbox drawing code to Theme class
9994         * Theme.cs: New methods
9995
9996 2005-02-20  Peter Bartok  <pbartok@novell.com>
9997
9998         * Control.cs:
9999           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
10000             only process mnemonics on those)
10001           - Fixed event sequence for key handling; first calling
10002             ProcessKeyEventArgs now
10003         * TextBoxBase.cs:
10004           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
10005             for processing non-character keys
10006           - Fixed WM_CHAR to generate proper event sequence before processing
10007         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
10008           generation
10009
10010 2005-02-19  Peter Bartok  <pbartok@novell.com>
10011
10012         * UserControl.cs: Added TextChanged event; added attributes
10013         * SizeGrip.cs: Implemented resizing and optional display of grip
10014         * Form.cs: Fixed attribute
10015         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10016           Changed meaning of ScrollWindow bool argument; instead of the
10017           clear attribute (which will be true usually anyway), it gives the
10018           option of moving child controls as well.
10019         * XplatUIX11.cs:
10020           - Changed to match new ScrollWindow argument
10021           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
10022             now handles the implicit parent window a WM puts around us
10023         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
10024           to work)
10025         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
10026         * TreeView.cs: Adjusted to new ScrollWindow arguments
10027
10028 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
10029
10030         * Form.cs: Menu integration with non-client area
10031         * MenuItem.cs: Menu integration with non-client area
10032         * MenuAPI.cs: Menu integration with non-client area
10033
10034 2005-02-18  Peter Bartok  <pbartok@novell.com>
10035
10036         * MethodInvoker.cs: Added
10037         * MdiLayout.cs: Added
10038         * SendKeys.cs: Started implementation
10039         * ErrorIconAlignment.cs: Added
10040
10041 2005-02-18  Peter Bartok  <pbartok@novell.com>
10042
10043         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
10044         * Form.cs: Added handling for Menu-related Non-client messages
10045
10046 2005-02-17  Peter Bartok  <pbartok@novell.com>
10047
10048         * UpDownBase.cs: Fixed typo, compilation errors
10049         * DomainUpDown.cs: Fixed attribute value
10050
10051 2005-02-16  Miguel de Icaza  <miguel@novell.com>
10052
10053         * UpDownBase.cs: Attach entry events.
10054         Propagate events.
10055         Add ForeColor property, Focused, InterceptArrowKeys (interception
10056         does not work yet).
10057
10058 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
10059
10060         * Form.cs:
10061                 - Redraw non client are on Setmenu
10062                 - Calc proper menu starting point
10063
10064 2005-02-17  Peter Bartok  <pbartok@novell.com>
10065
10066         * Application.cs: Fixed message_filter check
10067
10068 2005-02-17  Peter Bartok  <pbartok@novell.com>
10069
10070         * Application.cs: Now calls registered message filters
10071         * DockStyle.cs: Fixed attribute
10072         * Form.cs: Fixed attribute
10073         * Menu.cs: Fixed attribute
10074         * ToolTip.cs: Fixed attribute
10075         * TreeNode.cs: Added missing attributes and arranged in regions
10076         * PropertyGrid.cs: Fixed signatures
10077         * TreeNodeCollection.cs: Added attributes
10078         * Splitter.cs: Added missing attributes; arranged into regions
10079         * TabPage.cs: Added missing attributes; arranged into regions
10080         * TextBoxBase.cs: Added missing attributes
10081         * TextBox.cs: Added missing attributes
10082         * ArrangeDirection.cs: Added missing attributes
10083         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
10084         * ToolBarButton.cs: Fixed attributes
10085         * AnchorStyles.cs: Fixed attribute
10086         * TrackBar.cs: Fixed attributes
10087         * TabControl.cs: Added missing attributes and arranged into regions
10088         * ToolBar.cs: Fixed attribute
10089         * StatusBar.cs: Fixed signature, organized into regions and added
10090           attributes
10091         * StatusBarPanel.cs: Fixed attributes
10092         * ContentsResizedEventArgs.cs: Implemented
10093         * ContentsResizedEventHandler.cs: Implemented
10094         * DateBoldEventArgs.cs: Implemented
10095         * DateBoldEventHandler.cs: Implemented
10096         * UpDownEventArgs.cs: Implemented
10097         * UpDownEventHandler.cs: Implemented
10098         
10099 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
10100
10101         * Form.cs: first Menu NC refactoring
10102         * MenuAPI.cs: first Menu NC refactoring
10103         
10104 2005-02-16  Peter Bartok  <pbartok@novell.com>
10105
10106         * ImeMode.cs: Added missing attributes
10107         * Menu.cs: Fixed attribute
10108         * GroupBox.cs: Fixed attribute
10109         * Label.cs: Fixed attribute
10110         * ColorDialog.cs (RunDialog): Removed TODO attribute
10111         * ComboBox.cs: Fixed attributes
10112         * ListControl.cs: Added missing attributes
10113         * PropertyGrid.cs: Fixed attributes
10114         * Control.cs: Fixed attributes
10115         * ListViewItem.cs: Added TypeConverter attribute
10116         * NotifyIcon.cs: Fixed attributes
10117         * ListView.cs: Fixed attributes
10118         * ButtonBase.cs: Fixed attribute
10119         * ImageList.cs: Added missing attributes
10120         * ContainerControl.cs: Fixed signature
10121         * CheckedListBox.cs: Fixed attribute; added missing attributes
10122         * Panel.cs: Fixed attributes
10123         * PropertyTabChangedEventArgs.cs: Added missing attribute
10124         * PropertyValueChangedEventArgs.cs: Added missing attribute
10125         * Binding.cs: Fixed attribute
10126         * ListViewItemConverter: Implemented ListViewSubItemConverter class
10127         * ListBox.cs: Fixed attribute; added missing attributes;
10128         * ScrollableControl.cs: Added missing attributes
10129         * PictureBox.cs: Added missing attributes; implemented missing property
10130         * DateTimePicker.cs: Added missing attributes
10131         * Theme.cs (ToolWindowCaptionHeight): Fixed type
10132         * MonthCalendar.cs: Fixed attributes
10133         * StatusBarPanel.cs: Added missing attributes
10134         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
10135
10136 2005-02-16  Peter Bartok  <pbartok@novell.com>
10137
10138         * TextBoxBase.cs: The previous method to enforce height yet remember
10139           the requested high was less than ideal, this is an attempt to do
10140           it better.
10141         * Control.cs: Added comment about possible problem
10142         * Copyright: Updated format
10143         * GridItemType.cs: Fixed swapped values
10144
10145 2005-02-15  Jackson Harper  <jackson@ximian.com>
10146
10147         * BaseCollection.cs: Use property so we never access an
10148         uninitialized list. Also initialize the list in the property.
10149
10150 2005-02-15  Peter Bartok  <pbartok@novell.com>
10151
10152         * GroupBox.cs (ProcessMnemonic): Implemented
10153         * Label.cs (ProcessMnemonic): Implemented
10154         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
10155           hotkeys
10156
10157 2005-02-15  Peter Bartok  <pbartok@novell.com>
10158
10159         * RadioButton.cs (ProcessMnemonic): Implemented
10160         * CheckBox.cs (ProcessMnemonic): Implemented
10161         * Control.cs:
10162           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
10163             handling
10164           - Added internal method to allow calling ProcessMnemonic from other
10165             controls
10166         * ContainerControl.cs:
10167           - Started support for handling validation chain handling
10168           - Implemented ProcessMnemonic support
10169           - Added Select() call to Active, to make sure the active control
10170             receives focus
10171         * Form.cs: Setting toplevel flag for Forms (this was lost in the
10172           FormParent rewrite)
10173         * ThemeWin32Classic.cs:
10174           - DrawCheckBox(): Fixed stringformat to show hotkeys
10175           - DrawRadioButton(): Fixed stringformat to show hotkeys
10176         * CommonDialog.cs: Removed WndProc override, not needed
10177
10178 2005-02-14  Peter Bartok  <pbartok@novell.com>
10179
10180         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
10181           missed those in the rewrite
10182
10183 2005-02-14  Miguel de Icaza  <miguel@novell.com>
10184
10185         * NumericUpDown.cs (Increment, ToString): Add.
10186         (DecimalPlaces): implement.
10187         
10188         Add attributes.
10189         
10190         * UpDownBase.cs: Add the designer attributes.
10191
10192 2005-02-13  Peter Bartok  <pbartok@novell.com>
10193
10194         * Panel.cs: Removed border_style, now in Control
10195         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
10196           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
10197
10198 2005-02-13  Peter Bartok  <pbartok@novell.com>
10199
10200         * MouseButtons.cs: Added missing attributes
10201         * XplatUIStructs.cs: Added enumeration for title styles
10202         * LeftRightAlignment.cs: Added missing attributes
10203         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
10204           it compatible with Graphics.FromHwnd()
10205         * SelectedGridItemChangedEventArgs.cs: Fixed property type
10206         * Keys.cs: Added missing attributes
10207         * SelectionRange.cs: Added missing attributes
10208         * SelectionRangeConverter.cs: Added
10209         * XplatUI.cs:
10210           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
10211             ReleaseMenuDC methods
10212           - Renamed ReleaseWindow to UngrabWindow
10213           - Added proper startup notice to allow version identification
10214         * Form.cs:
10215           - Added missing attributes
10216           - Removed FormParent concept
10217         * Label.cs: Removed border_style field, now in Control
10218         * RadioButton.cs: Now properly selects RadioButton when focus is
10219           received
10220         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
10221         * Control.cs:
10222           - Added missing attributes
10223           - Added borderstyle handling
10224           - Removed FormParent concept support
10225           - Fixed calls to XplatUI to match changed APIs
10226           - Fixed bug that would case us to use disposed Graphics objects
10227           - Removed unneeded internal methods
10228           - PerformLayout(): Fixed to handle DockStyle.Fill properly
10229           - SelectNextControl(): Fixed to properly check common parents
10230         * TextBoxBase.cs: Removed border_style field (now in Control)
10231         * MessageBox.cs:
10232           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
10233             fixed calculations for form size
10234           - Added support for localized strings and icons
10235           - Improved form size calculations, added border
10236         * ListView.cs: Removed border_style field (now in Control)
10237         * X11Structs.cs: Moved several structs from X11 driver here
10238         * X11Keyboard.cs: Changed debug message
10239         * Application.cs: Removed FormParent concept support
10240         * CommonDialog.cs:
10241           - Resetting end_modal flag
10242           - Removed FormParent concept support
10243         * NativeWindow.cs: Removed FormParent concept support
10244         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
10245           Client area and Non-Client whole window to allow support for WM_NC
10246           messages
10247         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
10248           prevent using it until it supports Hwnd as per Geoff Norton's request
10249         * ToolBar.cs: Fixed drawing, was not doing proper drawing
10250         * PictureBox.cs: Removed border_style field, now in Control
10251         * XplatUIWin32.cs: Added new driver methods
10252
10253 2005-02-12  Peter Bartok  <pbartok@novell.com>
10254
10255         * OpacityConverter.cs: Implemented
10256         * Hwnd.cs: Internal class to support drivers that need to emulate
10257           client area/non-client area window behaviour
10258
10259 2005-02-11  Peter Bartok  <pbartok@novell.com>
10260
10261         * KeysConverter.cs: Implemented
10262
10263 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
10264
10265         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
10266         * LinkLabel: Added missing attributes
10267         * MainMenu.cs: fixes ToString
10268         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
10269         * ListBox.cs: fixes event position
10270         * TrackBar.cs: adds missing attributes and events
10271         
10272 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
10273
10274         * MenuItem.cs: Use SystemInformation and bug fixes
10275         * MenuAPI.cs: Use SystemInformation and bug fixes
10276
10277 2005-02-09  Jackson Harper  <jackson@ximian.com>
10278
10279         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
10280         their keystate otherwise things like VK_MENU get stuck "on".
10281
10282 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
10283
10284         * ListBox.cs: Fixes AddRange bug
10285         
10286 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
10287
10288         * ProgressBar.cs
10289                 - Add missing attributes
10290                 - Add missing method
10291                 
10292         * CheckedListBox.cs: Added missing attributes
10293                 - Add missing attributes
10294                 - Remove extra method
10295         
10296         * ComboBox.cs: Added missing attributes
10297         * VScrollBar.cs: Added missing attributes
10298         * ScrollBar.cs:  Added missing attributes
10299         * ListBox.cs: Fixes signature, add missing consts
10300         * LinkArea.cs:   Added missing attributes
10301         
10302
10303 2005-02-08  Peter Bartok  <pbartok@novell.com>
10304
10305         * Menu.cs: Added missing attributes
10306         * MainMenu.cs: Added missing attributes
10307         * GroupBox.cs: Added missing attributes
10308         * Label.cs: Added missing attributes
10309         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
10310         * ColorDialog.cs:
10311           - Added Instance and Options properties
10312           - Added missing attributes
10313         * Cursor.cs: Made Serializable
10314         * NotifyIcon: Added missing attributes
10315         * MenuItem.cs: Added missing attributes
10316         * TextBoxBase.cs: Implemented AppendText() and Select() methods
10317         * Panel.cs: Added Missing attributes
10318         * MonthCalendar.cs: Fixed CreateParams
10319
10320 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10321         
10322         * LinkLabel.cs:
10323                 - Fixes signature
10324                 - Fixes issues with links
10325                 - Adds the class attributes
10326
10327 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10328         
10329         * ComboBox.cs:
10330                 - Fixes button when no items available in dropdown
10331                 - Fixes repainting problems
10332                 - Adds the class attributes
10333                 
10334 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10335
10336         * XplatUIOSX.cs: Detect the menu bar and title bar height from
10337         the current theme.  Cache these on startup.
10338
10339 2005-02-07  Jackson Harper  <jackson@ximian.com>
10340
10341         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
10342         the scrollbar buttons when they are depressed.
10343
10344 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10345
10346         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
10347         Get the display size from the main displayid.  We currently dont
10348         support multiple display configurations.
10349
10350 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10351
10352         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
10353
10354 2005-02-07  Miguel de Icaza  <miguel@novell.com>
10355
10356         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
10357
10358 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10359
10360         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
10361
10362 2005-02-04  Jackson Harper  <jackson@ximian.com>
10363
10364         * ThemeWin32Classic.cs: Respect the clipping rect when
10365         drawing. Only fill the intersection of clips and rects so there
10366         isn't a lot of large fills.
10367         * ScrollBar.cs: Pass the correct clipping rect to the theme
10368         engine. Remove some debug code.
10369
10370 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
10371         
10372         * DateTimePicker.cs:
10373                 - Fixed crash on DateTime.Parse, use Constructor instead
10374
10375 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10376         
10377         * MenuItem.cs:
10378         * MenuAPI.cs:
10379                 - Owner draw support (MeasureItem and DrawItem)
10380
10381 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10382         
10383         *  Menu.cs:
10384                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
10385                 - Fixes MenuItems.Add range
10386         * MenuItem.cs:
10387                 - MergeMenu and Clone and CloneMenu functions
10388
10389 2005-02-03  Jackson Harper  <jackson@ximian.com>
10390
10391         * ScrollBar.cs: Make abstract
10392         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
10393         is abstract.
10394
10395 2005-02-03  Jackson Harper  <jackson@ximian.com>
10396
10397         * ScrollBar.cs: First part of my scrollbar fixups. This removes
10398         all the unneeded refreshes and uses invalidates with properly
10399         computed rects.
10400
10401 2005-02-03  Peter Bartok  <pbartok@novell.com>
10402
10403         * ComponentModel.cs: Added
10404         * IDataGridEditingService.cs: Added
10405         * Timer.cs: Added missing attributes
10406         * ToolTip.cs: Added missing attributes
10407
10408 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
10409
10410         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
10411
10412 2005-02-03  Peter Bartok  <pbartok@novell.com>
10413
10414         * ListBox.cs: Added missing attributes
10415
10416 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
10417         
10418         * ListBox.cs:
10419                 - Fixes font height after font change
10420                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
10421                 
10422 2005-02-02  Peter Bartok  <pbartok@novell.com>
10423
10424         * HandleData.cs: Introduced static methods to allow class
10425           to be more self-contained and track it's own HandleData objects
10426         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
10427           HandleData to use new static methods
10428
10429 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
10430
10431         * Combobox.cs:
10432                 - Fixes default size and PreferredHeight
10433                 - Missing events
10434                 - ObjectCollection.Insert implementation
10435                 
10436         * ListControl.cs
10437                 - Fixes signature
10438         * ListBox.cs:
10439                 - Several fixes
10440                 - ObjectCollection.Insert implementation
10441                 - No selection after clean
10442                 - Small fixes
10443
10444 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10445
10446         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
10447
10448 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
10449
10450         * Combobox.cs:
10451                 - Caches ItemHeight calculation for OwnerDrawVariable
10452                 - Handles dropdown properly
10453                 - Fixes several minor bugs
10454
10455 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10456
10457         * ListBox.cs:
10458                 - Fixes 71946 and 71950
10459                 - Fixes changing Multicolumn on the fly
10460                 - Fixes keyboard navigation on Multicolumn listboxes
10461
10462 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10463         
10464         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
10465         crash reporter log.
10466
10467 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10468
10469         * XplatUIOSX.cs: Allow applications to actually exit.
10470
10471 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10472
10473         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
10474         their parent at creation time rather than lazily later.  Fixes a major
10475         regression we were experiencing.
10476
10477 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10478
10479         * ThemeWin32Classic.cs: more date time picker painting fixes
10480         * DateTimePicker.cs: more monthcalendar drop down fixes
10481         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
10482
10483 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10484
10485         * ScrollBar.cs:
10486                 - When moving the thumb going outside the control should stop the moving
10487                 - Adds the firing of missing events
10488                 - Fixes no button show if Size is not specified
10489                 - End / Home keys for keyboard navigation
10490
10491 2005-01-30  Peter Bartok  <pbartok@novell.com>
10492
10493         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
10494           sanity check to prevent theoretical loop
10495         * XplatUIWin32.cs (SetVisible): Removed debug output
10496         * XplatUIX11.cs (SystrayChange): Added sanity check
10497         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
10498         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
10499           behaviour, valid until the X11 client window rewrite is done
10500         * TextBox.cs (ctor): Setting proper default foreground and background
10501           colors
10502
10503 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
10504
10505         * Theme: Added DrawDateTimePicker to interface
10506         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
10507         * DateTimePicker.cs: Created (still needs keys and painting code)
10508         * DateTimePickerFormat.cs: added
10509         * MonthCalendar.cs: fixed CreateParams for popup window mode
10510           
10511 2005-01-29  Peter Bartok  <pbartok@novell.com>
10512
10513         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10514           this should also the calculations for ligher/darker
10515         * Theme.cs: Fixed defaults for ScrollBar widths/heights
10516
10517 2005-01-29  Peter Bartok  <pbartok@novell.com>
10518
10519         * ArrangeDirection.cs: Added
10520         * ArrangeStartingPositon.cs: Added
10521         * SystemInformation.cs: Implemented
10522         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10523           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10524           used by SystemInformation class
10525         * X11Strucs.cs: Added XSizeHints structure
10526         * MenuAPI.cs:
10527           - Fixed CreateParams to make sure the menu window is always visible
10528           - TrackPopupMenu: Added check to make sure we don't draw the
10529             menu offscreen
10530
10531 2005-01-29  Peter Bartok  <pbartok@novell.com>
10532
10533         * HandleData.cs: Added method for altering invalid area
10534         * TextBoxBase.cs: Implemented TextLength
10535
10536 2005-01-28  Peter Bartok  <pbartok@novell.com>
10537
10538         * XplatUIX11.cs: Improvement over last patch, not sending
10539           the WM_PAINT directly anymore, instead we scroll any pending
10540           exposed areas and let the system pick out the WM_PAINT later
10541
10542 2005-01-28  Peter Bartok  <pbartok@novell.com>
10543
10544         * SWF.csproj: Deleted, no longer used. Instead,
10545           Managed.Windows.Forms/SWF.csproj should be used
10546         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10547           directly, to avoid a potential race condition with the next
10548           scroll
10549
10550 2005-01-28  Peter Bartok  <pbartok@novell.com>
10551
10552         * XplatUI.cs: Made class internal
10553
10554 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
10555
10556         * CheckedListBox.cs:
10557                 - Draw focus
10558                 - Fixed Drawing
10559                 - Missing methods and events
10560
10561 2005-01-27  Peter Bartok  <pbartok@novell.com>
10562
10563         * Application.cs (Run): Don't use form if we don't have one
10564
10565 2005-01-27  Peter Bartok  <pbartok@novell.com>
10566
10567         * TextBoxBase.cs (get_Lines): Fixed index off by one error
10568
10569 2005-01-27  Peter Bartok  <pbartok@novell.com>
10570
10571         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10572         * GridItem.cs: Added; Patch by Jonathan S. Chambers
10573         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10574         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10575         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10576         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10577         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10578         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10579         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10580         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10581         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10582         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10583
10584 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10585
10586         * Combobox.cs:
10587                 - Draw focus on Simple Combobox
10588                 - Fixes drawing issues
10589                 - fixes 71834
10590
10591 2005-01-27  Peter Bartok  <pbartok@novell.com>
10592
10593         * Form.cs:
10594           - Place window in default location, instead of hardcoded 0/0
10595           - Send initial LocationChanged event
10596         * Control.cs:
10597           - UpdateBounds after creation to find out where the WM placed us
10598           - Make sure that if the ParentForm changes location the Form
10599             is notified
10600         * XplatUIX11.cs: XGetGeometry will not return the coords relative
10601             to the root, but to whatever the WM placed around us.
10602             Translate to root coordinates before returning toplevel
10603             coordinates
10604         * XplatUIWin32.cs: Removed debug output
10605         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10606           flag to GetWindowPos, to allow translation of coordinates on X11
10607
10608 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10609
10610         * ListBox.cs: connect LostFocus Event
10611
10612 2005-01-27  Peter Bartok  <pbartok@novell.com>
10613
10614         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10615           XplatUIX11.cs: Extended the Systray API
10616         * Form.cs: Removed debug output
10617         * Application.cs: Fixed focus assignment, always need to call
10618           XplatUI.Activate() since Form.Activate() has rules that may
10619           prevent activation
10620         * NotifyIcon.cs: Should be complete now
10621         * ToolTip.cs: Worked around possible timer bug
10622
10623 2005-01-27  Jackson Harper  <jackson@ximian.com>
10624
10625         * TabControl.cs:
10626         - Only invalidate the effected tabs when the
10627         selected index changes. This reduces drawing and gets rid of some
10628         flicker.
10629         - Only refresh if the tabs need to be shifted, otherwise only
10630         invalidate the slider button.
10631         - On windows the tabs are not filled to right if the slider is
10632         visible.
10633         
10634 2005-01-27  Jackson Harper  <jackson@ximian.com>
10635
10636         * TabControl.cs: Only refresh on mouseup if we are showing the
10637         slider. Also only invalidate the button whose state has changed.
10638
10639 2005-01-26  Peter Bartok  <pbartok@novell.com>
10640
10641         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10642         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10643           and SystrayRemove() methods
10644         * XplatUIOSX.cs: Stubbed Systray methods
10645         * XplatUIX11.cs:
10646           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10647             methods
10648           - Fixed broken XChangeProperty calls (marshalling messed up things)
10649         * X11Structs.cs: Added enums and structs required for Size hinting
10650         * NotifyIcon.cs: Added & implemented
10651
10652 2005-01-26  Jackson Harper  <jackson@ximian.com>
10653
10654         * TabControl.cs: Space vertically layed out tabs properly.
10655
10656 2005-01-26  Peter Bartok  <pbartok@novell.com>
10657
10658         * Form.cs (CreateClientParams): Always set the location to 0,0
10659           since we're a child window.
10660
10661         * Control.cs (SetVisibleCore): Always explicitly setting the location
10662           of a toplevel window, apparently X11 doesn't like to move windows
10663           while they're not mapped.
10664
10665 2005-01-26  Jackson Harper  <jackson@ximian.com>
10666
10667         * TabControl.cs: Implement FillToRight size mode with vertically
10668         rendered tabs.
10669
10670 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10671
10672         * ControlPaint.cs, ThemeWin32Classic.cs
10673                 - Fixes DrawFocusRectangle
10674
10675 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10676
10677         * MenuAPI.cs:
10678                 - MenuBar tracking only starts when item is first clicked
10679                 - Fixes menu hidding for multiple subitems
10680                 - Unselect item in MenuBar when item Executed
10681                 - Fixes bug 71495
10682
10683 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10684
10685         * ListControl.cs:
10686                 - IsInputKey for ListBox
10687         * ListBox.cs:
10688                 - Focus item
10689                 - Shift and Control item selection
10690                 - Implement SelectionMode.MultiExtended
10691                 - Fixes RightToLeft
10692         * ComboBox.cs:
10693                 - IsInputKey implemented
10694                 - Do not generate OnTextChangedEdit on internal txt changes
10695                 
10696 2005-01-23  Peter Bartok  <pbartok@novell.com>
10697
10698         * AccessibleObject.cs: Partially implemented Select()
10699         * MonthCalendar.cs: Added missing attributes and events
10700         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10701           form can properly override CreateParams.
10702         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10703           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10704           Control performs Invalidate & Update
10705         * NativeWindow (CreateHandle): Added special handling for Form
10706           and Form.FormParent classes to allow overriding of From.CreateParams
10707         * Control.cs:
10708           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10709             name 'owner'
10710           - ControlNativeWindow: Added Owner property
10711           - Removed usage of Refresh() on property changes, changed into
10712             Invalidate(), we need to wait until the queue is processed for
10713             updates, direct calls might cause problems if not all vars for
10714             Paint are initialized
10715           - Added call to UpdateStyles() when creating the window, to set any
10716             styles that CreateWindow might have ignored.
10717           - Added support for Form CreateParent overrides to UpdateStyles()
10718         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10719           CreateParams are now properly overridable
10720         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10721           CreateParams are now properly overridable
10722
10723 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10724
10725         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10726         OnTextBoxChanged.
10727
10728         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10729         recursive invocation that I have not figured out yet.
10730
10731         Reset the timer when not using (it was accumulating).
10732
10733
10734         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10735         user has made changes that require validation.
10736
10737         Reset changing to avoid loops.
10738
10739 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10740
10741         * NumericUpDown.cs: Display value at startup.
10742
10743         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10744         ValidateEditText.
10745
10746         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10747         filled in.  Added some basic parsing of text.
10748
10749         Still missing the OnXXX method overrides, and figuring out the
10750         events that must be emitted.
10751
10752         * UpDownBase.cs: Handle UserEdit on the Text property.
10753         
10754 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10755
10756         * ComboBox.cs:
10757           - Fixes IntegralHeight
10758           - ToString method
10759
10760 2005-01-21  Jackson Harper  <jackson@ximian.com>
10761
10762         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10763         is set so that the page visibility is updated and the tabs are
10764         sized correctly.
10765
10766 2005-01-21  Jackson Harper  <jackson@ximian.com>
10767
10768         * TabControl.cs: Use cliping rectangle for blitting. Give the
10769         theme the clipping rect so we can do clipping while
10770         drawing. Remove some debug code.
10771
10772 2005-01-21  Jackson Harper  <jackson@ximian.com>
10773
10774         * TabPage.cs: Add a new method so tab pages can force the tab
10775         control to recalculate the tab page sizes.
10776         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10777         sizes.
10778
10779 2005-01-20  Jackson Harper  <jackson@ximian.com>
10780
10781         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10782
10783 2005-01-20  Jackson Harper  <jackson@ximian.com>
10784
10785         * TreeView.cs: Set the bounds for nodes properly. They were
10786         getting screwed up when checkboxes were not enabled, but images
10787         were.
10788
10789 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10790
10791         * ListBox.cs:
10792                 - Owner draw support
10793                 - Fixes
10794                 
10795 2005-01-20  Jackson Harper  <jackson@ximian.com>
10796
10797         * XplatUIStructs.cs: More misc keys
10798         * X11Keyboard.cs: Ignore some control keys.
10799
10800 2005-01-20  Jackson Harper  <jackson@ximian.com>
10801
10802         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10803         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10804
10805 2005-01-19  Peter Bartok  <pbartok@novell.com>
10806
10807         * Control.cs: Un-selecting the control when it is loosing focus
10808
10809 2005-01-19  Jackson Harper  <jackson@ximian.com>
10810
10811         * TreeView.cs: Hook up to the text controls leave event so we can
10812         end editing when the users clicks outside the text box.
10813         
10814 2005-01-19  Jackson Harper  <jackson@ximian.com>
10815
10816         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10817         get set in the conversion array.
10818
10819 2005-01-19  Peter Bartok  <pbartok@novell.com>
10820
10821         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10822           focus is properly set
10823         * Button.cs:
10824           - Added missing attributes
10825           - removed styles, those are already set in the base class
10826         * ButtonBase.cs:
10827           - Added missing attributes
10828           - Added clip window styles
10829         * CheckBox.cs: Added missing attributes
10830         * CommonDialog.cs:
10831           - FormParentWindow.CreateParams: Added required clip styles
10832         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10833           also filters modifier keys
10834         * MessageBox.cs:
10835           - Added assignment of Accept and Cancel button to enable Enter
10836             and Esc keys in MessageBox dialogs
10837           - FormParentWindow.CreateParams: Added required clip styles
10838         * RadioButton.cs: Added missing attributes
10839         * TextControl.cs: No longer draws selection if control does not
10840           have focus
10841         * TextBoxBase.cs:
10842           - Now draws simple rectangle around test area to make it obvious
10843             there's a control. This is a hack until we properly support borders
10844           - A few simple fixes to support selections better, now erases selected
10845             text when typing, and resets selection when using movement keys
10846
10847 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10848
10849         * UpDownBase.cs: Added some new properties.
10850
10851         * DomainUpDown.cs: Implement a lot to get my test working.
10852
10853 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10854
10855         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10856
10857 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10858
10859         * OSXStructs (WindowAttributes): Fixed csc complaints
10860
10861 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10862
10863         * XplayUIOSX.cs:
10864           OSXStructs.cs: Initial refactor to move enums and consts into
10865           OSXStructs and use them in the driver for greater readability.
10866
10867 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10868
10869         * XplatUIOSX.cs: Initial support for Standard Cursors.
10870         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10871
10872 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10873
10874         * ComboBox.cs: ability to change style when the ctrl is already
10875         created, missing methods and events, bug fixes, signature fixes
10876
10877 2005-01-19  Peter Bartok  <pbartok@novell.com>
10878
10879         * Cursors.cs (ctor): Added ctor to fix signature
10880
10881 2005-01-18  Peter Bartok  <pbartok@novell.com>
10882
10883         * Button.cs: Implemented DoubleClick event
10884         * ButtonBase.cs:
10885           - Fixed keyboard handling to behave like MS, where the press of
10886             Spacebar is equivalent to a mousedown, and the key release is
10887             equivalent to mouseup. Now a spacebar push will give the same
10888             visual feedback like a mouse click.
10889           - Added missing attributes
10890           - Added ImeModeChanged event
10891           - Added support for generating DoubleClick event for derived classes
10892         * CheckBox.cs:
10893           - Implemented DoubleClick event
10894           - Added missing attributes
10895         * CommonDialog.cs: Added missing attribute
10896         * ContextMenu.cs: Added missing attributes
10897         * RadioButton.cs:
10898           - AutoChecked buttons do not allow to be unselected when clicked
10899             (otherwise we might end up with no selected buttons in a group)
10900           - Added missing attributes
10901           - Implemented DoubleClickEvent
10902         * ThreadExceptionDialog.cs: Enabled TextBox code
10903
10904 2005-01-18  Peter Bartok  <pbartok@novell.com>
10905
10906         * Form.cs: Removed debug output
10907         * Button.cs: Added support for DoubleClick method
10908
10909 2005-01-18  Peter Bartok  <pbartok@novell.com>
10910
10911         * Form.cs:
10912           - Added method to parent window that allows triggering size
10913             calculations when a menu is added/removed
10914           - set_Menu: Cleaned up mess from early days of Form and Control,
10915             now properly triggers a recalc when a menu is added/removed
10916           - Added case to select form itself as focused form if no child
10917             controls exist
10918           - Added PerformLayout call when showing dialog, to ensure properly
10919             placed controls
10920         * Control.cs:
10921           - Select(): Made internal so Form can access it
10922           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10923             status
10924         * Application.cs (Run): Removed hack and calls PerformLayout instead
10925           to trigger calculation when Form becomes visible
10926
10927 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10928
10929         * ComboBox.cs: fixes for ownerdraw
10930
10931 2005-01-18  Peter Bartok  <pbartok@novell.com>
10932
10933         * TextControl.cs:
10934           - Sentinel is no longer static, each Document gets it's own, this
10935             avoids locking or alternatively overwrite problems when more
10936             than one text control is used simultaneously.
10937           - Switched to use Hilight and HilightText brushes for text selection
10938
10939         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10940
10941 2005-01-18  Peter Bartok  <pbartok@novell.com>
10942
10943         * Control.cs:
10944           - Hooked up the following events:
10945                 o ControlAdded
10946                 o ControlRemoved
10947                 o HandleDestroyed
10948                 o ImeModeChanged
10949                 o ParentChanged
10950                 o TabStopChanged
10951                 o Invalidated
10952                 o SystemColorsChanged
10953                 o ParentFontChanged
10954                 o Move
10955           - Removed debug output
10956           - Added a call to the current theme's ResetDefaults when a color change
10957             is detected
10958         * Form.cs: Now setting the proper ImeMode
10959         * Theme.cs: Defined a method to force recreation of cached resources
10960           and rereading of system defaults (ResetDefaults())
10961         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10962
10963 2005-01-17  Peter Bartok  <pbartok@novell.com>
10964
10965         * Control.cs: Added missing attributes
10966
10967 2005-01-17  Jackson Harper  <jackson@ximian.com>
10968
10969         * TreeNode.cs: Implement editing. Add missing properties selected
10970         and visible.
10971         * TreeView.cs: Implement node editing. Also some fixes to use
10972         Invalidate (invalid area) instead of Refresh when selecting.
10973
10974 2005-01-17  Peter Bartok  <pbartok@novell.com>
10975
10976         * Control.cs:
10977           - Implemented InvokeGotFocus() method
10978           - Implemented InvokeLostFocus() method
10979           - Implemented InvokePaint() method
10980           - Implemented InvokePaintBackground() method
10981           - Implemented InvokeClick() method
10982           - Implemented FindForm() method
10983           - Implemented RectangleToClient() method
10984           - Implemented ClientToRectangle() method
10985           - Implemented ResetBackColor() method
10986           - Implemented ResetCursor() method
10987           - Implemented ResetFont() method
10988           - Implemented ResteForeColor() method
10989           - Implemented ResetImeMode() method
10990           - Implemented ResetLeftToRight() method
10991           - Implemented ResetText() method
10992           - Implemented Scale() methods
10993           - Implemented ScaleCore() method
10994           - Implemented Update() method
10995           - Removed unused variables
10996           - Stubbed AccessibilityNotifyClients and
10997             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10998             with those yet)
10999           - Now setting proper default for RightToLeft property
11000           - Fixed bug in SetClientSizeCore that would cause windows to get
11001             really big
11002           - Now sending Click/DoubleClick events
11003           - Now selecting controls when left mouse button is clicked on
11004             selectable control
11005         * AccessibleEvents.cs: Added
11006         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
11007         * XplatUIOSX.cs: Stubbed UpdateWindow() method
11008         * XplatUIWin32.cs: Implemented UpdateWindow() method
11009         * XplatUIX11.cs: Implemented UpdateWindow() method
11010         * Form.cs: Removed stray semicolon causing CS0162 warning
11011         * ThemeWin32Classic.cs: Fixed unused variable warnings
11012         * ScrollableControl.cs: Now calls base method for ScaleCore
11013         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
11014           style to avoid interference with internal click handler (which is
11015           different than standard Control click handling)
11016         * RadioButton.cs:
11017           - Now unchecks all sibling radio buttons when control is
11018             selected (Fixes #68756)
11019           - Removed internal tabstop variable, using the one inherited from
11020             Control
11021
11022 2005-01-17  Jackson Harper  <jackson@ximian.com>
11023
11024         * NavigateEventArgs.cs: Fix base type.
11025         * LinkLabel.cs: Sig fix
11026         
11027 2005-01-17  Jackson Harper  <jackson@ximian.com>
11028
11029         * TreeView.cs: Only invalidate the effected nodes bounds when
11030         selecting nodes.
11031
11032 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
11033
11034         * XplatUIWin32.cs: fixes Win32 marshaling
11035         * XplatUIX11.cs: fixes method signature
11036
11037 2005-01-17  Peter Bartok  <pbartok@novell.com>
11038
11039         * XplatUIX11.cs: Clean up resources when we no longer need them
11040
11041 2005-01-17  Peter Bartok  <pbartok@novell.com>
11042
11043         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
11044           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
11045           and DestroyCursor() methods.
11046         * Cursor.cs: Partially implemented, now supports standard cursors;
11047           still contains some debug code
11048         * Cursors.cs: Implemented class
11049         * Control.cs:
11050           - WndProc(): Added handling of WM_SETCURSOR message, setting the
11051             appropriate cursor
11052           - Implemented Cursor property
11053           - Replaced break; with return; more straightforwar and possibly
11054             faster
11055           - Now properly setting the result for WM_HELP
11056         * X11Structs.cs: Added CursorFontShape enum
11057         * XplatUIStructs.cs:
11058           - Added StdCursor enum (to support DefineStdCursor() method)
11059           - Added HitTest enum (to support sending WM_SETCURSOR message)
11060         * XplatUIX11.cs:
11061           - Now sends the WM_SETCURSOR message
11062           - Implemented new cursor methods
11063         * XplatUIOSX.cs: Stubbed new cursor methods
11064         * XplatUIWin32.cs:
11065           - Implemented new cursor methods
11066           - Added GetSystemMetrics function and associated enumeration
11067
11068 2005-01-15  Peter Bartok  <pbartok@novell.com>
11069
11070         * Control.cs:
11071           - WndProc(): Now handles EnableNotifyMessage
11072           - SelectNextControl(): Fixed bug where if no child or sibling
11073             controls exist we looped endlessly
11074
11075 2005-01-14  Jackson Harper  <jackson@ximian.com>
11076
11077         * TreeView.cs: Recalculate the tab pages when a new one is added
11078         so that the proper bounding rects are created.
11079
11080 2005-01-14  Jackson Harper  <jackson@ximian.com>
11081
11082         * TreeView.cs: Draw a gray box instead of a grip in the lower
11083         right hand corner when there are both horizontal and vertical
11084         scroll bars.
11085
11086 2005-01-14  Jackson Harper  <jackson@ximian.com>
11087
11088         * Control.cs: When erasing backgrounds use FromHwnd instead of
11089         FromHdc when there is a NULL wparam. This occurs on the X driver.
11090         * XplatUIX11.cs: Set the wparam to NULL.
11091
11092 2005-01-13  Jackson Harper  <jackson@ximian.com>
11093
11094         * PictureBox.cs: Implement missing methods (except ToString, need
11095         to test that on windows) and events. When visibility is changed we
11096         need to redraw the image because the buffers are killed. When size
11097         is changed refresh if the sizemode needs it.
11098
11099 2005-01-13  Peter Bartok  <pbartok@novell.com>
11100
11101         * Control.cs (SelectNextControl): Was using wrong method to select
11102           a control
11103
11104 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
11105
11106         * ComboBox.cs: fixes dropstyle
11107
11108 2005-01-13  Peter Bartok  <pbartok@novell.com>
11109
11110         * Form.cs:
11111           - Implemented Select() override
11112           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
11113           - Now sets keyboard focus on startup
11114         * Control.cs (SelectNextControl): Now properly handles directed=true
11115         * TextBoxBase.cs:
11116           - WndProc: Now passes tab key on to base if AcceptTabChar=false
11117           - Added (really bad) focus rectangle (mostly for testing)
11118         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
11119           to enforce redraw on focus changes
11120         * ContainerControl.cs:
11121           - Fixed detection of Shift-Tab key presses
11122           - Fixed traversal with arrow keys
11123         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
11124           gonna keep this or if it's complete yet
11125         
11126 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
11127
11128         * ComboBox.cs: missing properties, fixes
11129
11130 2005-01-13  Peter Bartok  <pbartok@novell.com>
11131
11132         * Panel.cs (ctor): Setting Selectable window style to off
11133         * Splitter.cs (ctor): Setting Selectable window style to off
11134         * GroupBox.cs (ctor): Setting Selectable window style to off
11135         * Label.cs (ctor): Setting Selectable window style to off
11136
11137 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
11138
11139         * UpDownBase.cs (InitTimer): If the timer has been already
11140         created, enable it.
11141
11142         Use a TextBox instead of a Label.
11143
11144 2005-01-12  Jackson Harper  <jackson@ximian.com>
11145
11146         * TreeView.cs: Refresh the tree after sorting the nodes. Always
11147         draw the connecting node lines (when ShowLines is true).
11148         * TreeNode.cs: The nodes index can now be updated. This is used
11149         when a node collection is sorted.
11150         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
11151         insert or an existing unsorted node collection can be sorted.
11152         
11153 2005-01-12  Peter Bartok  <pbartok@novell.com>
11154
11155         * ContainerControl.cs: Implemented ProcessDialogKeys()
11156
11157 2005-01-12  Peter Bartok  <pbartok@novell.com>
11158
11159         * Control.cs:
11160           - Implemented SelectNextControl() method
11161           - Several focus related bug fixes
11162           - Fixed Docking calculations to match MS documentation and
11163             behaviour
11164
11165 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
11166
11167         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
11168         bug fixes
11169
11170 2005-01-12  Peter Bartok  <pbartok@novell.com>
11171
11172         * Control.cs:
11173           - Fixed broken Contains() method
11174           - Implemented GetNextControl() method. Finally. This is the pre-
11175             requisite for focus handling.
11176
11177 2005-01-12  Peter Bartok  <pbartok@novell.com>
11178
11179         * OSXStrucs.cs: Added
11180
11181 2005-01-12  Peter Bartok  <pbartok@novell.com>
11182
11183         * XplatUIWin32.cs:
11184           - Removed PeekMessageFlags
11185           - Implemented SetWindowStyle() method
11186         * XplatUIStructs.cs: Added PeekMessageFlags
11187         * X11Structs: Added missing border_width field to XWindowChanges struct
11188         * XplatUIX11.cs:
11189           - PeekMessage: Now throws exception if flags which are not yet
11190             supported are passed
11191           - Implemented SetWindowStyle() method
11192           - Fixed SetZOrder to handle AfterHwnd properly
11193         * XplatUI.cs: Added SetWindowStyle() method
11194         * XplatUIDriver.cs: Added SetWindowStyle() abstract
11195         * Control.cs:
11196           - Implemented UpdateStyles() method
11197           - Implemented UpdateZOrder() method
11198         * XplatUIOSX.cs: Added SetWindowStyle() stub
11199
11200 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
11201
11202         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
11203         button mouse).
11204
11205
11206 2005-01-11  Jackson Harper  <jackson@ximian.com>
11207
11208         * TreeView.cs: Still need to draw lines to siblings even if out of
11209         the current node is out of the clip.
11210
11211 2005-01-11  Jackson Harper  <jackson@ximian.com>
11212
11213         * TreeView.cs: When setting the hbar/vbar/grip position use
11214         SetBounds so that perform layout is only called once. Also suspend
11215         and resume layout so layout is only done once for all controls.
11216         - Removed some debug fluff
11217         * SizeGrip.cs: Call base implmentation in overriding methods.
11218         - When visibility is changed the drawing buffers are killed so we
11219         need to redraw.
11220
11221 2005-01-11  Jackson Harper  <jackson@ximian.com>
11222
11223         * TreeView.cs: Calculate the open node count while drawing. This
11224         saves us an entire tree traversal for every paint operation. Use
11225         a member var for the open node count so less vars are passed around.
11226
11227 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
11228
11229         * MonthCalendar.cs:
11230         - fixed selection to use mousemove, not mouse polling on timer
11231         * ThemeWin32Classic.cs
11232         - removed redundant unused variable "no_more_content"
11233         
11234 2005-01-11  Peter Bartok  <pbartok@novell.com>
11235
11236         * XplatUIX11.cs (DoEvents): Needs to return when no more events
11237           are pending, so it now calls PeekMessage instead of GetMessage;
11238           implemented a incomplete version of PeekMessage
11239         
11240 2005-01-11  Peter Bartok  <pbartok@novell.com>
11241
11242         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
11243           I18n issues
11244         * TextBoxBase.cs: Added sending of TextChanged event
11245
11246 2005-01-10  Jackson Harper  <jackson@ximian.com>
11247
11248         * TreeView.cs: Try not to draw outside the clipping rectangle on
11249         each node element.
11250
11251 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
11252
11253         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
11254
11255 2005-01-10  Jackson Harper  <jackson@ximian.com>
11256
11257         * TreeView.cs:
11258         - Implement fast scrolling. Now only the newly
11259         exposed nodes are drawn and the old image is moved using the
11260         XplatUI::ScrollWindow method.
11261         - Factor in height of nodes when calculating whether or not the
11262         node is in the clipping rect.
11263
11264 2005-01-10  Jackson Harper  <jackson@ximian.com>
11265
11266         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
11267
11268 2005-01-10  Peter Bartok  <pbartok@novell.com>
11269
11270         * Application.cs: Added temporary hack to resolve all our resize
11271           required issues on startup. This will get fixed properly at
11272           some point in the future
11273
11274 2005-01-10  Jackson Harper  <jackson@ximian.com>
11275
11276         * SizeGrip.cs: New internal class that is used as a sizing
11277         grip control...hence the name.
11278
11279 2005-01-10  Peter Bartok  <pbartok@novell.com>
11280
11281         * Control.cs: Implemented proper TabIndex handling, now assigning
11282           a tabindex when a control is added to a container
11283         * GroupBox.cs (ctor): Now sets the Container style bit, required
11284           for Control.GetNextControl()
11285
11286 2005-01-09  Jackson Harper  <jackson@ximian.com>
11287
11288         * TextBoxBase.cs: Clear window when scrolling (fixes build).
11289
11290 2005-01-09  Peter Bartok <pbartok@novell.com>
11291
11292         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11293           XplatUIX11.cs: Added ability to control ScrollWindow expose and
11294           an overload for ScrollWindow to allow only scrolling a rectangle
11295
11296 2005-01-09  Peter Bartok <pbartok@novell.com>
11297
11298         * Form.cs:
11299           - Implemented SetDesktopBounds method
11300           - Implemented SetDesktopLocation method
11301
11302 2005-01-08  Jackson Harper  <jackson@ximian.com>
11303
11304         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
11305         the node count has changed, this removes to VScroll::Refresh calls
11306         when drawing.
11307
11308 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
11309
11310         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
11311
11312 2005-01-07  Jackson Harper  <jackson@ximian.com>
11313
11314         * TreeNode.cs: Just update the single node when it is
11315         checked. Don't refresh after toggling, the Expand/Collapse already
11316         handles this.
11317         * TreeView.cs: Respect clipping a little more when drawing. Try
11318         not to redraw things that don't need to be redrawn. Just hide the
11319         scrollbars when they are no longer needed instead of removing
11320         them, so they don't have to be created again and again.
11321         
11322 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
11323
11324         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
11325         coordinates to window space to place the caret properly, FIXED.
11326         Implement GetWindowState & SetWindowState
11327
11328 2005-01-06  Peter Bartok <pbartok@novell.com>
11329
11330         * Form.cs:
11331           - Implemented ClientSize property
11332           - Implemented DesktopBounds property
11333           - Implemented DesktopLocation property
11334           - Implemented IsRestrictedWindow property
11335           - Implemented Size property
11336           - Implemented TopLevel property
11337           - Implemented FormWindowState property
11338         * Control.cs:
11339           - Implemented GetTopLevel() method
11340           - Implemented SetTopLevel() method
11341         * X11Structs.cs (Atom):
11342           - Added AnyPropertyType definition
11343           - Added MapState definiton and updated XWindowAttribute struct
11344         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
11345         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
11346         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
11347         * XplatUIWin32.cs:
11348           - Implemented GetWindowState() and SetWindowState() methods
11349           - Fixed Win32GetWindowLong return type
11350         * XplatUIX11.cs:
11351           - Introduced central function for sending NET_WM messages
11352           - Implemented GetWindowState() and SetWindowState() methods
11353         * TextBoxBase.cs (set_Lines):
11354           - Now uses Foreground color for text added via Text property (Duh!)
11355           - Added code to remember programmatically requested size (fixes
11356             behaviour when Multiline is set after Size)
11357           - Added AutoSize logic
11358
11359 2005-01-06  Jackson Harper  <jackson@ximian.com>
11360
11361         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
11362
11363 2005-01-06  Jackson Harper  <jackson@ximian.com>
11364
11365         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
11366         set to less then 0.
11367
11368 2005-01-06  Jackson Harper  <jackson@ximian.com>
11369
11370         * ScrollableControl.cs: Lazy init the scrollbars.
11371         
11372 2005-01-06  Jackson Harper  <jackson@ximian.com>
11373
11374         * Theme.cs: Speed up getting pens and solid brushes, by using
11375         their ARGB as a hash instead of tostring and not calling Contains.
11376
11377 2005-01-06  Peter Bartok <pbartok@novell.com>
11378
11379         * Form.cs:
11380           - Implemented OnActivated and OnDeactivate event trigger
11381           - Implemented Activate() method
11382           - Fixed ShowDialog() to activate the form that was active before
11383             the dialog was shown
11384         * XplatUIX11.cs:
11385           - Added global active_window var that tracks the currently active
11386             X11 window
11387           - Now always grabs Property changes from the root window to always
11388             catch changes on the active window property
11389           - Added code to PropertyNotify handler to send Active/Inactive
11390             messages when state changes. This puts X11 and Win32 en par on
11391             WM_ACTIVATE notifications (except for double notifications when
11392             the user clicks away from our modal window to another one of our
11393             windows)
11394
11395 2005-01-05  Jackson Harper  <jackson@ximian.com>
11396
11397         * ImageList.cs: Implment ctor
11398
11399 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11400
11401         * XplatUIOSX.cs: Implement Activate/SetTopmost
11402
11403 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11404
11405         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
11406
11407 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11408
11409         * XplatUIOSX.cs: Implement GetActive/SetFocus.
11410
11411 2005-01-05  Peter Bartok <pbartok@novell.com>
11412
11413         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
11414           XplatUIOSX.cs: Added GetActive method to return the currently
11415           active window for the application (or null, if none is active)
11416         * Form.cs:
11417           - Implemented ActiveForm
11418           - Commented out owner assignment for modal dialogs (causes problems
11419             on Win32, since the owner will be disabled)
11420           - Reworked some Active/Focus handling (still incomplete)
11421         * CommonDialog.cs: Commented out owner assignment for modal dialogs
11422           (causes problems on Win32, since the owner will be disabled)
11423         * IWin32Window: Added ComVisible attribute
11424
11425 2005-01-05  Peter Bartok <pbartok@novell.com>
11426
11427         * ToolTip.cs (WndProc): Enable setting focus now that we have the
11428           required XplatUI functions.
11429
11430 2005-01-05  Peter Bartok <pbartok@novell.com>
11431
11432         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
11433           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
11434           to implement focus and activation handling; still incomplete and
11435           with debug output
11436
11437 2005-01-04  Peter Bartok <pbartok@novell.com>
11438
11439         * TextBoxBase.cs: Changed access level for Document property to
11440           match switch to internal for TextControl
11441
11442 2005-01-04  Peter Bartok <pbartok@novell.com>
11443
11444         * AccessibleObject: Added ComVisible attribute
11445
11446 2005-01-04  Jackson Harper  <jackson@ximian.com>
11447
11448         * X11Keyboard.cs: Remove unneeded var.
11449
11450 2005-01-04  Jackson Harper  <jackson@ximian.com>
11451
11452         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
11453         but PAINT.
11454         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
11455         ClientMessage. This makes apps exit cleanly (more often).
11456         
11457 2005-01-04  Jackson Harper  <jackson@ximian.com>
11458
11459         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
11460         handling focus, return correct colors and fonts,
11461         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
11462         handle selection, horizontal scrolling, and mouse interaction.
11463
11464 2005-01-04  Peter Bartok <pbartok@novell.com>
11465
11466         * ICommandExecutor.cs: Added
11467         * IDataGridColumnStyleEditingNotificationService.cs: Added
11468         * IFeatureSupport.cs: Added
11469         * IFileReaderService.cs: Added
11470         * IDataObject.cs: Added ComVisible attribute
11471         * AmbientProperties.cs: Added
11472         * BaseCollection.cs: Added missing attributes
11473         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
11474         * BaseCollection.cs: Added missing attributes
11475         * Binding.cs: Added TypeConverter attribute
11476         * BindingContext.cs: Added DefaultEvent attribute
11477         * BindingsCollection.cs: Added DefaultEvent attribute
11478         * Button.cs: Added DefaultValue attribute
11479         * DragEventArgs.cs: Added ComVisible attribute
11480         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
11481         * KeyEventArgs.cs: Added ComVisible attribute
11482         * KeyPressEventArgs.cs: Added ComVisible attribute
11483         * MouseEventArgs.cs: Added ComVisible attribute
11484         * NavigateEventArgs.cs: Added
11485         * NavigateEventHandler.cs: Added
11486         * FeatureSupport.cs: Added
11487         * OSFeature.cs: Added
11488         * Theme.cs: Added abstract Version property to support OSFeature
11489         * ThemeWin32Classic.cs: Added Version property to
11490           support OSFeature.Themes
11491         * ProgressBar.cs: Removed OnPaintBackground override, not required since
11492           the proper styles to avoid background drawing are set, also doesn't
11493           match MS signature
11494         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
11495         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
11496         * ScrollEventArgs.cs: Added ComVisible attribute
11497         * SplitterEventArgs.cs: Added ComVisible attribute
11498         * AccessibleSelection.cs: Added Flags attribute
11499         * Appearance.cs: Added ComVisible attribute
11500         * Border3DSide.cs: Added ComVisible attribute
11501         * Border3DStyle.cs: Added ComVisible attribute
11502         * BorderStyle.cs: Added ComVisible attribute
11503         * DragAction.cs: Added ComVisible attribute
11504         * ErrorBlinkStyle.cs: Added
11505         * ScrollEventType.cs: Added ComVisible attribute
11506         * AnchorStyles.cs: Added Editor attribute
11507         * DockStyle.cs: Added Editor attribute
11508         * HorizontalAlignment.cs: Added ComVisible attribute
11509         * HelpEventArgs.cs: Added ComVisible attribute
11510         * PaintEventArgs.cs: Added IDisposable
11511
11512 2005-01-04  Peter Bartok <pbartok@novell.com>
11513
11514         * TextControl.cs: Switched Line, LineTag and Document classes to
11515           internal
11516
11517 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11518
11519         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11520         Simple mode, fixes, IntegralHeight, etc.
11521
11522 2005-01-04  Peter Bartok <pbartok@novell.com>
11523
11524         * TextBoxBase.cs: Using proper font variable now
11525
11526 2005-01-04  Peter Bartok <pbartok@novell.com>
11527
11528         * Form.cs (ShowDialog): Set parent to owner, if provided
11529         * GroupBox.cs: Removed unused vars
11530         * TextControl.cs:
11531           - Added GetHashCode() for Document and LineTag classes
11532           - Removed unused variables
11533           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11534             to allow translation between continuous char position and line/pos
11535         * CheckBox.cs: Removed vars that are provided by base class
11536         * RadioButton.cs: Removed vars that are provided by base class, added
11537           new keyword where required
11538         * LinkLabel.cs: Added new keyword where required
11539         * Control.cs (WndProc): Removed unused variable
11540         * TextBoxBase.cs:
11541           - Finished SelectionLength property
11542           - Implemented SelectionStart property
11543           - Implemented Text property
11544           - Removed unused vars
11545         * MessageBox.cs: Added new keyword where required
11546         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11547           WndProc signature
11548         * MenuAPI.cs: Added new keyword where required
11549         * ButtonBase.cs: Removed vars that are provided by base class, added
11550           new keyword where required
11551         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11552           argument to double, to allow compiling with csc 2.0 (Atsushi ran
11553           into this)
11554         * Application.cs (Run): Now triggers the ThreadExit event
11555         * CommonDialog.cs: Added new keyword where required; now properly sets
11556           parent (owner) for dialog
11557         * XplatUIX11.cs: Commented out unused vars
11558         * StatusBar.cs: Fixed signature for Text property
11559         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11560
11561 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11562
11563         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11564         TrackBar.cs, MonthCalendar.cs: remove unused vars
11565
11566 2005-01-03  Jackson Harper  <jackson@ximian.com>
11567
11568         * ThemeWin32Classic.cs:
11569         * X11Keyboard.cs: Remove unused vars.
11570
11571 2005-01-03  Peter Bartok  <pbartok@novell.com>
11572
11573         * TextBox.cs:
11574           - set_Text: Tied into TextControl
11575           - set_TextAlignment: Tied into TextControl
11576         * TextControl.cs:
11577           - Added alignment properties and implemented alignment handling
11578             and drawing (still has a bug, not generating proper expose events)
11579           - Added new Line() constructor to allow passing the line alignment
11580           - Fixed selection setting, properly handling end<start now
11581           - Added aligment considerations to RecalculateDocument()
11582         * TextBoxBase.cs:
11583           - Now properly enforces control height for single line controls
11584           - Added support for CharacterCasing
11585           - Added IsInputKey override
11586           - Fixed Keys.Enter logic
11587           - Added SetBoundsCore override
11588           - Fixed mouse selection handling
11589
11590 2005-01-03  Jackson Harper  <jackson@ximian.com>
11591
11592         * TreeView.cs:
11593           - Collapse and uncheck all nodes when CheckBoxes is disabled.
11594           - Checkboxes are always aligned to the bottom of the node,
11595           regardless of item height.
11596           - Use the node bounds to draw the text so we can center it when
11597           the item height is greater then the font height.
11598           - Node::Bounds are only the text part of the node.
11599         * TreeNode.cs: New method to combine collapsing and unchecking all
11600           nodes recursively.
11601
11602 2005-01-02  Jackson Harper  <jackson@ximian.com>
11603
11604         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11605         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11606         tree when a check is changed. TODO: Only refresh the checked node.
11607
11608 2004-12-30  Jackson Harper  <jackson@ximian.com>
11609
11610         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11611         * TreeNode.cs: When collapsing make sure to never collapse the
11612         root node.
11613
11614 2004-12-29  Jackson Harper  <jackson@ximian.com>
11615
11616         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11617         
11618 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11619
11620         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11621
11622 2004-12-28  Peter Bartok  <pbartok@novell.com>
11623
11624         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11625           not yet assigned
11626
11627 2004-12-28  Peter Bartok  <pbartok@novell.com>
11628
11629         * Control.cs (WndProc): Added WM_HELP handler, now generates
11630           HelpRequested event
11631         * Form.cs: Added HelpButton property and required support code
11632         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11633
11634 2004-12-28  Peter Bartok  <pbartok@novell.com>
11635
11636         * CommonDialog.cs:
11637           - Made DialogForm.owner variable internal
11638           - Added check to ensure owner form is set before setting
11639             owner properties in CreateParams
11640
11641 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11642
11643         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11644           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11645           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11646           system to support borderless/titleless windows (implements menus).
11647           Fix GetWindowPos.  Implement initial background color support for
11648           views.
11649
11650 2004-12-28  Peter Bartok  <pbartok@novell.com>
11651
11652         * Form.cs (get_CreateParams): Make sure we have an owner before using
11653           the owner variable. Implement proper default if no owner exists
11654
11655 2004-12-28  Peter Bartok  <pbartok@novell.com>
11656
11657         * In preparation for making Managed.Windows.Forms the default build target
11658           for System.Windows.Forms, the following stubbed files were added.
11659           Dialogs are currently being implemented by contributors and are only
11660           short-term place holders.
11661         * ColorDialog.cs: Initial check-in (minmal stub)
11662         * DataGrid.cs: Initial check-in (minimal stub)
11663         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11664         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11665         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11666         * FontDialog.cs: Initial check-in (minimal stub)
11667         * FileDialog.cs: Initial check-in (minimal stub)
11668         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11669         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11670         * OpenFileDialog: Initial check-in (minimal stub)
11671         * IComponentEditorPageSite.cs: Initial check-in
11672         * Splitter.cs: Initial check-in (for Jackson)
11673         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11674         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11675         * TextBox.cs: Initial check-in; still needs some wiring to
11676           TextControl backend
11677         * Form.cs: Implemented ControlBox property
11678         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11679         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11680         * TextControl.cs: Added selection functionality; added todo header
11681         * TextBoxBase.cs:
11682           - Implemented Lines property
11683           - Implemented TextHeight property
11684           - Implemented SelectedText property
11685           - Implemented SelectionLength property
11686           - Implemented SelectAll method
11687           - Implemented ToString method
11688           - Removed and cleaned up some debug code
11689           - Implemented (still buggy) mouse text selection
11690
11691 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11692
11693         * ComboBox.cs: Complete DropDownList implementation, fixes.
11694
11695 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11696
11697         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11698         * ComboBoxStyle.cs: ComboBoxStyle enum
11699         * ComboBox.cs: Initial work on ComboBox control
11700
11701 2004-12-21  Peter Bartok  <pbartok@novell.com>
11702
11703         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11704           forward so that anything that creates a window gets the default,
11705           also no longer uses Visible property in CreateParams to avoid
11706           walking up the parent chain and possibly get the wrong visible
11707           status. Fixed IsVisible to no longer walk up to the parent.
11708
11709 2004-12-21  Peter Bartok  <pbartok@novell.com>
11710
11711         * Form.cs (ShowDialog): Unset modality for the proper window
11712  
11713 2004-12-20  Peter Bartok  <pbartok@novell.com>
11714
11715         * CommonDialog.cs: Initial check-in
11716
11717 2004-12-20  Peter Bartok  <pbartok@novell.com>
11718
11719         * Control.cs (Visible): Now uses the parent window instead of the
11720           client area window for the property
11721
11722         * Form.cs
11723           - ShowDialog(): Now uses the proper window for modality
11724           - The default visibility state for the form parent is now false. This
11725             will prevent the user from seeing all the changes to the form and
11726             its controls before the application hits Application.Run()
11727           - Removed some stale commented out code
11728
11729         * NativeWindow.cs:
11730           - Added FindWindow() method to have a method to check for existence
11731             of a window handle
11732           - Added ability to override default exception handling (for example
11733             when debugging with VS.Net; to do this the ExternalExceptionHandler
11734             define must be set
11735           - Removed some useless debug output
11736
11737         * XplatUIX11.cs:
11738           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11739             not working as expected
11740           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11741             property to allow switching back to the modal window if focus is
11742             given to another one of our windows (Application Modal)
11743           - Now only sets override_redirect if we create a window
11744             without WS_CAPTION
11745           - Moved EventMask selection before mapping of newly created window
11746             so we can catch the map event as well
11747           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11748           - Added various Atom related DllImports
11749           - Implemented Exit() method
11750           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11751             in the CreateParams
11752
11753         * MessageBox.cs: Now properly deals with the FormParent window by
11754           providing an override the FormParent CreateParams property to
11755           set as POPUP instead of OVERLAPPED window.
11756
11757 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11758
11759         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11760         Minor code cleanup.
11761
11762 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11763         
11764         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11765
11766 2004-12-18  Peter Bartok  <pbartok@novell.com>
11767
11768         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11769           implementing SetModal() method
11770
11771 2004-12-18  Peter Bartok  <pbartok@novell.com>
11772
11773         * X11Structs.cs (XGCValues): Fixed type of function element
11774         * XplatUI.cs: Added ScrollWindow() method
11775         * XplatUIDriver.cs: Added ScrollWindow() abstract
11776         * XplatUIWin32.cs: Implemented ScrollWindow() method
11777         * XplatUIX11.cs: Implemented ScrollWindow() method
11778         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11779
11780 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11781
11782         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11783         Some more keyboard support (INCOMPLETE)
11784
11785 2004-12-17  Peter Bartok  <pbartok@novell.com>
11786
11787         * TextControl.cs:
11788         - Added color attribute to line tags.
11789         - Added color argument to all functions dealing with tags
11790         - Added color argument support to various functions
11791         - Fixed miss-calculation of baseline/shift in certain circumstances
11792
11793         * TextBoxBase.cs: Added new color option to test code
11794
11795 2004-12-17  Jackson Harper  <jackson@ximian.com>
11796
11797         * TreeNode.cs:
11798         * MonthCalendar.cs: Signature fixes
11799
11800 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11801
11802         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11803         keyboard event moved it.  Create a new graphics context for each paint resolves this
11804
11805 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11806
11807         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11808         Make caret exist and go blink blink.  Initial keyboard support.
11809         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11810         works.
11811
11812 2004-12-17  Jackson Harper  <jackson@ximian.com>
11813
11814         * XplatUIStructs.cs: Updated set of virtual keycodes.
11815         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11816
11817 2004-12-17  Jackson Harper  <jackson@ximian.com>
11818
11819         * XplatUIX11.cs: Prune old keyboard code.
11820
11821 2004-12-17  Jackson Harper  <jackson@ximian.com>
11822
11823         * XplatUIX11.cs: When generating mouse wparams get the modifier
11824         keys from the ModifierKeys property.
11825
11826 2004-12-17  Jackson Harper  <jackson@ximian.com>
11827
11828         * X11Keyboard.cs: Send up/down input when generating
11829         messages. Remove some unused vars.
11830
11831 2004-12-17  Jackson Harper  <jackson@ximian.com>
11832
11833         * TabControl.cs:
11834         * TreeView.cs: get rid of warnings.
11835
11836 2004-12-17  Jackson Harper  <jackson@ximian.com>
11837
11838         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11839
11840 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11841
11842         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11843           CheckedListBox.cs: Implementation
11844
11845 2004-12-17  Peter Bartok  <pbartok@novell.com>
11846
11847         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11848
11849 2004-12-16  Peter Bartok  <pbartok@novell.com>
11850
11851         * TextControl.cs:
11852           - InsertCharAtCaret(): Fixed start pos fixup
11853           - CaretLine_get: No longer derives the line from the tag, the tag
11854             could be stale if lines in the document have been added or deleted
11855           - RebalanceAfterDelete(): Fixed bug in balancing code
11856           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11857           - Line.Streamline(): Now can also elminate leading empty tags
11858           - DumpTree(): Added a few more tests and prevented exception on
11859             uninitialized data
11860           - Added Debug section for Combining lines
11861           - Delete(): Now copies all remaining properties of a line
11862           
11863         * TextBoxBase.cs:
11864           - Left mousebutton now sets the caret (and middle button still acts
11865             as formatting tester, which must go away soon)
11866           - Added Debug section for Deleting/Combining lines
11867           - Fixed calculations for UpdateView after Combining lines
11868
11869 2004-12-16  Peter Bartok  <pbartok@novell.com>
11870
11871         * TextControl.cs: Now properly aligns text on a baseline, using the
11872           new XplatUI.GetFontMetrics() method. Simplified several calculations
11873         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11874           defined
11875
11876 2004-12-16  Peter Bartok  <pbartok@novell.com>
11877
11878         * XplatUI.cs: Added GetFontMetrics() method
11879         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11880         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11881           into libgdiplus, our private GetFontMetrics function
11882         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11883         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11884
11885 2004-12-16  Jackson Harper  <jackson@ximain.com>
11886
11887         * XplatUIStruct.cs: Add enum for dead keys
11888         * X11Keyboard.cs: Map and unmap dead keys.
11889
11890 2004-12-16  Jackson Harper  <jackson@ximian.com>
11891
11892         * X11Keyboard.cs: Detect and use the num lock mask.
11893
11894 2004-12-16  Peter Bartok  <pbartok@novell.com>
11895
11896         * Control.cs (CreateGraphics): Added check to make sure the
11897           handle of the window exists before calling Graphics.FromHwnd()
11898
11899 2004-12-16  Peter Bartok  <pbartok@novell.com>
11900
11901         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11902           contains a lot of code that's not supposed to be there for the
11903           real thing, but required for developing/testing the textbox
11904           backend.
11905
11906 2004-12-16  Peter Bartok  <pbartok@novell.com>
11907
11908         * TextControl.cs:
11909         - Fixed Streamline method
11910         - Added FindTag method to Line
11911         - Added DumpTree method for debugging
11912         - Added DecrementLines() method for deleting lines
11913         - Fixed UpdateView to update the cursor to end-of-line on single-line
11914           updates
11915         - Added PositionCaret() method
11916         - Fixed MoveCaret(LineDown) to move into the last line, too
11917         - Added InsertChar overload
11918         - Fixed InsertChar tag offset calculations
11919         - Added DeleteChar() method
11920         - Added Combine() method for folding lines
11921         - Fixed Delete() method, no longer allocates wasted Line object and
11922           now copies all properties when swapping nodes
11923         - Delete() method now updates document line counter
11924
11925 2004-12-15  Jackson Harper  <jackson@ximian.com>
11926
11927         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11928         * X11Keyboard.cs: Expose the currently selected modifier keys
11929         through a property.
11930
11931 2004-12-15  Peter Bartok  <pbartok@novell.com>
11932
11933         * TextControl.cs: Initial check-in. Still incomplete
11934
11935 2004-12-15  Jackson Harper  <jackson@ximian.com>
11936
11937         * TreeNode.cs:
11938         * TreeView.cs: Fix build on csc (second time today ;-))
11939
11940 2004-12-15  Jackson Harper  <jackson@ximian.com>
11941
11942         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11943         is calculated and use this for click testing.
11944         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11945
11946 2004-12-15  Jackson Harper  <jackson@ximian.com>
11947
11948         * TreeView.cs: Pass the nodes image index to the image list when
11949         drawing that image.
11950
11951 2004-12-15  Jackson Harper  <jackson@ximian.com>
11952
11953         * X11Keyboard.cs: Set messages hwnd.
11954         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11955         post_message calls.
11956
11957 2004-12-15  Jackson Harper  <jackson@ximian.com>
11958
11959         * X11Keyboard.cs: Fix to compile with csc.
11960         
11961 2004-12-15  Jackson Harper  <jackson@ximian.com>
11962
11963         * X11Structs.cs: Add key mask values
11964         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11965         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11966         down/up foo into WM_CHAR foo
11967         * KeyboardLayouts.cs: Common keyboard layouts
11968         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11969         post messages into the main queue.
11970
11971 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11972
11973         * Button.cs: implement ProcessMnemonic
11974         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11975           brushes everytime
11976         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11977         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11978
11979 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11980         
11981         * MonthCalendar.cs: Implemented click-hold for next/previous month
11982           and date selection
11983           
11984 2004-12-11  Peter Bartok  <pbartok@novell.com>
11985
11986         * X11Structs.cs:
11987           - Added XKeyboardState (moved from XplatUIX11.cs)
11988           - Added XCreateGC related enums and structures
11989           - Added GXFunction for XSetFunction
11990
11991         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11992
11993         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11994           CaretVisible() calls
11995
11996         * ToolTip.cs: Added code to prevent stealing focus from app windows
11997
11998         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11999           DestroyCaret, SetCaretPos and CaretVisible)
12000
12001         * XplatUIX11.cs:
12002           - Added implementation for caret functions
12003           - Moved hover variables into a struct, to make it a bit easier
12004             on the eyes and to debug
12005           - Removed XKeyboardState (moved to XplatUIX11.cs)
12006           - Moved Keyboard properties into the properties region
12007
12008         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
12009           call to get a graphics context for our control
12010
12011         * XplatUIOSX.cs: Added empty overrides for the new caret functions
12012
12013         * TreeView.cs: Fixed bug. No matter what color was set it would always
12014           return SystemColors.Window
12015
12016         * XplatUIWin32.cs: Implemented caret overrides
12017
12018 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
12019
12020         * ListBox.cs: fire events, implement missing methods and properties,
12021         sorting.
12022
12023 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
12024
12025         * MonthCalendar.cs: invalidation bug fixing
12026         * ThemeWin32Classic.cs: paint fixing
12027
12028 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
12029
12030         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
12031         prepare the CGContextRef there now.
12032
12033 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
12034
12035         * MonthCalendar.cs:
12036           - optimisationL only invalidate areas that have changed
12037         * ThemeWin32Classic.cs:
12038           - only paint parts that intersect with clip_area
12039
12040 2004-12-09  Peter Bartok  <pbartok@novell.com>
12041
12042         * Application.cs: Undid changes from r37004 which cause problems
12043         on X11
12044
12045 2004-12-09  Ravindra  <rkumar@novell.com>
12046
12047         * ToolBar.cs: Added support for displaying ContextMenu
12048         attached to a button on ToolBar.
12049         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
12050         property.
12051
12052 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
12053
12054         * Label.cs: autosize works in text change and removes unnecessary
12055         invalidate
12056
12057 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
12058
12059         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12060         remove warnings
12061
12062 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
12063
12064         * XplatUIOSX.cs: Added mouse move/click/grab support
12065         Remove some debugging WriteLines not needed anymore.
12066         Add window resizing/positioning.
12067         Fix visibility on reparenting.
12068
12069 2004-12-08  Peter Bartok  <pbartok@novell.com>
12070
12071         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
12072
12073 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
12074
12075         * XplatUIOSX.cs: Initial checkin
12076         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
12077
12078 2004-12-03  Ravindra <rkumar@novell.com>
12079
12080         * ListView.cs: Added some keybindings and fixed scrolling.
12081         ScrollBars listen to ValueChanged event instead of Scroll
12082         Event. This would let us take care of all changes being
12083         done in the scrollbars' values programmatically or manually.
12084         * ListView.cs (CanMultiselect): Added a check for shift key.
12085         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
12086         * ListViewItem.cs (Clone): Fixed. We need to make a copy
12087         of ListViewSubItemCollection as well.
12088
12089 2004-12-06  Peter Bartok <pbartok@novell.com>
12090
12091         * Control.cs (Parent): Added check and exception to prevent
12092         circular parenting
12093
12094 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
12095
12096         * ListBox.cs: implemented clipping, selection single and multiple,
12097         bug fixing
12098
12099 2004-12-03  Ravindra <rkumar@novell.com>
12100
12101         * ListView.cs (ListView_KeyDown):
12102         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
12103         when CTRL key is pressed.
12104         * ListViewItem.cs (Selected): Fixed setting the property.
12105
12106 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
12107
12108         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
12109
12110         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
12111         MinimizeBox, ShowInTaskbar, TopMost properties.
12112
12113         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
12114         will be implemented).
12115
12116 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
12117
12118         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
12119
12120         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
12121         tests.
12122         
12123         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
12124         
12125         * TreeView.cs: BackColor is Colors.Window.
12126
12127 2004-12-01  Jackson Harper  <jackson@ximian.com>
12128
12129         * TreeView.cs: When resizing the tree if the user is making it
12130         smaller we don't get expose events, so we need to handle adding
12131         the horizontal scrollbar in the size changed handler as well as
12132         the expose handler.
12133
12134 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
12135
12136         * DrawItemState.cs: fixes wrong enum values
12137
12138 2004-12-01  Jackson Harper  <jackson@ximian.com>
12139
12140         * TreeView.cs: Resize the hbar as well as the vbar on resize.
12141
12142 2004-12-01  Jackson Harper  <jackson@ximian.com>
12143
12144         * NodeLabelEditEventArgs.cs:
12145         * NodeLabelEditEventHandler.cs:
12146         * OpenTreeNodeEnumerator.cs:
12147         * TreeNode.cs:
12148         * TreeNodeCollection.cs:
12149         * TreeView.cs:
12150         * TreeViewAction.cs:
12151         * TreeViewCancelEventArgs.cs:
12152         * TreeViewCancelEventHandler.cs:
12153         * TreeViewEventArgs.cs:
12154         * TreeViewEventHandler.cs: Initial implementation.
12155
12156 2004-12-01  Ravindra <rkumar@novell.com>
12157
12158         * ListView.cs (CalculateListView): Fixed scrolling related
12159         calculations. Also, removed some debug statements from other
12160         places.
12161         * ListViewItem.cs: Changed access to 'selected' instance variable
12162         from private to internal.
12163         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
12164
12165 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
12166
12167         * ThemeWin32Classic.cs: remove cache of brush and pens for
12168         specific controls and use the global system, fixes scrollbutton
12169         bugs (for small sizes, disabled, etc)
12170         
12171         * ScrollBar.cs: does not show the thumb for very small controls
12172         (as MS) and allow smaller buttons that the regular size
12173
12174 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
12175
12176         * UpDownBase.cs: Add abstract methods for the interface.
12177         Add new virtual methods (need to be hooked up to TextEntry when it
12178         exists).
12179         Add override methods for most features.
12180         Computes the size, forces the height of the text entry.
12181
12182         * NumericUpDown.cs: Put here the current testing code.
12183
12184         * Set eol-style property on all files that do not have mixed line
12185         endings, to minimize the future problems.  There are still a few
12186         files with mixed endings, and someone should choose whether they
12187         want to move it or not.
12188
12189 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
12190
12191         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
12192         System.Colors
12193         
12194 2004-11-30  Ravindra <rkumar@novell.com>
12195
12196         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
12197         drawing and replaced use of SystemColors by theme colors.
12198         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
12199         * ListView.cs (ListViewItemCollection.Add): Throw exception when
12200         same ListViewItem is being added more than once.
12201
12202 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
12203
12204         * MonthCalendar.cs:
12205           - ControlStyles love to make the control not flicker
12206           
12207 2004-11-30  Peter Bartok  <pbartok@novell.com>
12208
12209         * CharacterCasing.cs: Added
12210
12211 2004-11-29  Peter Bartok  <pbartok@novell.com>
12212
12213         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12214           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
12215           I am removing these files as they conflict with already completed
12216           work. While it is fantastic to get contributions to MWF, I
12217           respectfully ask that everyone please coordinate their contributions
12218           through mono-winforms-list or #mono-winforms at this time. We're
12219           explicitly avoiding stubbing and don't want controls that don't have
12220           their basic functionality implemented in svn. Please also see
12221           http://www.mono-project.com/contributing/winforms.html
12222
12223
12224 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
12225
12226         * Application.cs (ModalRun): Don't hang after exit.
12227
12228         * Theme.cs: New TreeViewDefaultSize property.
12229
12230         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
12231         with less hardcoded SystemColors constant.
12232         Implemented TreeViewDefaultSize.
12233
12234         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12235         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
12236
12237
12238 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
12239
12240         * MonthCalendar.cs:
12241           - Fix NextMonthDate and PrevMonthDate click moving calendar
12242
12243 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
12244
12245         * MonthCalendar.cs:
12246           - Fix usage of ScrollChange Property when scrolling months
12247
12248 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
12249
12250         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
12251          - Fixes menu destroying
12252          - Support adding and removing items on already created menus
12253
12254 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
12255
12256         * MonthCalendar.cs:
12257           - Re-worked all bolded dates handling to match win32
12258         * ThemeWin32Classic.cs:
12259           - Fixed rendering with bolded dates
12260
12261 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
12262
12263         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
12264         - Horizontal scroolbar
12265         - Multicolumn
12266         - Fixes
12267
12268
12269 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
12270
12271         * MonthCalendar.cs:
12272           - Fix Usage of MaxSelectionCount from SelectionRange
12273           - Fixed Shift + Cursor Selection
12274           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
12275           - Fixed normal cursor selection to be compat with win32
12276           - Fixed Shift + Mouse Click selection
12277
12278 2004-11-24  Peter Bartok <pbartok@novell.com>
12279
12280         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
12281         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
12282         * XplatUIX11.cs:
12283           - CreatedKeyBoardMsg now updates keystate with Alt key
12284           - Added workaround for timer crash to CheckTimers, Jackson will
12285             develop a proper fix and check in later
12286           - Implemented DispatchMessage
12287           - Removed calling the native window proc from GetMessage (call
12288             now moved to DispatchMessage)
12289
12290         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
12291           the keydata (Fixes bug #69831)
12292
12293         * XplatUIWin32.cs:
12294           - (DispatchMessage): Switched to return IntPtr
12295           - Added DllImport for SetFocus
12296
12297 2004-11-24  Ravindra <rkumar@novell.com>
12298
12299         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
12300         background drawing.
12301         * ListViewItem.cs: Fixed various properties, calculations
12302         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
12303         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
12304         and some internal properties. Fixed MouseDown handler and Paint
12305         method.
12306
12307 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12308
12309         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
12310
12311 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12312
12313         * ContainerControl.cs: correct accidental check in of local changes
12314
12315 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12316
12317         * ThemeWin32Classic.cs:
12318                 - Fixed Drawing Last month in grid (sometimes not showing)
12319         * MonthCalendar.cs:
12320                 - Fixed title width calculation bug (makeing title small)
12321
12322 2004-11-23  Peter Bartok <pbartok@novell.com>
12323
12324         * XplatUIX11.cs:
12325           - Added generation of WM_MOUSEHOVER event
12326           - Added missing assignment of async_method atom
12327           - Fixed WM_ERASEBKGND; now only redraws the exposed area
12328
12329 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12330
12331         * ThemeWin32Classic.cs:
12332                 - Fixed Drawing of today circle when showtodaycircle not set
12333                 - fixed drawing of first and last month in the grid (gay dates)
12334         * MonthCalendar.cs:
12335                 - Fixed Drawing of today circle
12336                 - Fixed drawing of grady dates
12337                 - Fixed HitTest for today link when ShowToday set to false
12338                 - Fixed DefaultSize to obey ShowToday
12339
12340 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12341
12342         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
12343         * System.Windows.Forms/Theme.cs
12344         * MonthCalendar.cs: added for MonthCalendar
12345         * SelectionRange.cs: added for MonthCalendar
12346         * Day.cs: added for MonthCalendar: added for MonthCalendar
12347         * DateRangeEventArgs.cs: added for MonthCalendar
12348         * DateRangeEventHandler.cs: added for MonthCalendar
12349
12350 2004-11-22  Ravindra <rkumar@novell.com>
12351
12352         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
12353         property.
12354
12355 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
12356
12357         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
12358         event handler.
12359         
12360         * NumericUpDown.cs: Added new implementation.
12361         * UpDownBase.cs: Added new implementation.
12362
12363         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
12364         implementations.
12365         
12366         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
12367         implementations.
12368
12369         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
12370         methods.
12371
12372 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
12373
12374         * Timer.cs  (Dispose): Should call the base dispose when
12375         overriding.
12376
12377 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12378
12379         * ScrollBar.cs: updates thumb position when max, min or increment
12380         is changed
12381
12382 2004-11-21  Ravindra <rkumar@novell.com>
12383
12384         * ListView.cs: Implemented item selection, activation and
12385         column header style. Fixed properties to do a redraw, if
12386         required. Added support for MouseHover, DoubleClick, KeyDown
12387         and KeyUp event handling and some minor fixes.
12388         * ListViewItem.cs: Fixed constructor.
12389         * ThemeWin32Classic.cs: Improved drawing for ListView.
12390
12391 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12392
12393         * ThemeWin32Classic.cs: initial listbox drawing code
12394         * DrawMode.cs: new enumerator
12395         * ListControl.cs: stubbed class
12396         * ListBox.cs: initial implementation
12397         * Theme.cs: new methods definitions
12398         * SelectionMode.cs: new enumerator
12399
12400 2004-11-17  Peter Bartok  <pbartok@novell.com>
12401
12402         * XplatUIWin32.cs: Added double-click events to the class style
12403         * Control.cs (WndProc):
12404           - Added handling of click-count to MouseDown/ MouseUp events.
12405           - Added handling of middle and right mouse buttons
12406           - Removed old debug code
12407
12408 2004-11-17  Jackson Harper  <jackson@ximian.com>
12409
12410         * XplatUIX11.cs: Use the new Mono.Unix namespace.
12411
12412 2004-11-17  Ravindra <rkumar@novell.com>
12413
12414         * ListView.cs: Added event handling for MouseMove/Up/Down.
12415         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
12416         * ThemeWin32Classic.cs: We need to clear the graphics context and
12417         draw column header in a proper state.
12418
12419
12420 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
12421
12422         *  Menu.cs: fixes signature
12423
12424 2004-11-16  Peter Bartok  <pbartok@novell.com>
12425
12426         * XplatUIX11.cs (GetMessage): Implemented generation of
12427           double click mouse messages
12428
12429 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
12430
12431         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
12432         not by menu
12433
12434 2004-11-11  Peter Bartok  <pbartok@novell.com>
12435
12436         * HandleData.cs: Added Visible property
12437         * XplatUIX11.cs (IsVisible): Now uses Visible property from
12438           HandleData
12439         * XplatUIX11.cs: Removed old debug leftovers
12440         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
12441         * Control.cs (WndProc): Removed old debug leftovers,
12442           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
12443           needed WM_SIZE handling
12444
12445 2004-11-11  Jackson Harper  <jackson@ximian.com>
12446
12447         * OwnerDrawPropertyBag.cs:
12448         * TreeViewImageIndexConverter.cs: Initial implementation
12449
12450 2004-11-10  Jackson Harper  <jackson@ximian.com>
12451
12452         * ThemeWin32Classic.cs:
12453         * TabControl.cs: instead of moving tabs by the slider pos just
12454         start drawing at the tab that is offset by the slider. This way
12455         scrolling always moves by exactly one tab.
12456
12457 2004-11-10  Jackson Harper  <jackson@ximian.com>
12458
12459         * TabControl.cs: You can only scroll left when the slider has
12460         already ben moved right.
12461         
12462 2004-11-10  Jackson Harper  <jackson@ximian.com>
12463
12464         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
12465         the clip area.
12466         
12467 2004-11-10  Jackson Harper  <jackson@ximian.com>
12468
12469         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
12470         clip area.
12471         
12472 2004-11-09  Jackson Harper  <jackson@ximian.com>
12473
12474         * TabControl.cs (CalcXPos): New helper method so we can determine
12475         the proper place to start drawing vertical tabs.
12476         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
12477         
12478 2004-11-09  Jackson Harper  <jackson@ximian.com>
12479
12480         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
12481         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
12482         and Bottom, left and right are illegal values for this and
12483         multiline is enabled when the alignment is set to left or right.
12484         (DrawTab): Each alignment block should draw the text itself now
12485         because Left requires special love. Also add rendering for Left
12486         aligned tabs.
12487         
12488 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
12489
12490         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
12491         does not destroy the windows, removes debugging messages
12492
12493 2004-11-09  jba  <jba-mono@optusnet.com.au>
12494
12495         * ThemeWin32Classic.cs
12496         (DrawButtonBase): Fix verticle text rect clipping in windows
12497         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12498         rendering and incorrect text rect clipping
12499         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12500         rendering and incorrect text rect clipping
12501         
12502 2004-11-08  Jackson Harper  <jackson@ximian.com>
12503
12504         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
12505         bottom when they are bottom aligned so the bottoms of the tabs get
12506         displayed.
12507         * TabControl.cs (DropRow): Move rows up instead of down when the
12508         tab control is bottom aligned.
12509
12510 2004-11-08 13:59  pbartok
12511
12512         * XplatUIX11.cs:
12513           - Added handling for various window styles
12514           - Added handling for popup windows
12515           - Added SetTopmost handling
12516
12517 2004-11-08 13:55  pbartok
12518
12519         * XplatUIWin32.cs:
12520           - Added argument to SetTopmost method
12521           - Fixed broken ClientToScreen function
12522
12523 2004-11-08 13:53  pbartok
12524
12525         * XplatUIStructs.cs:
12526           - Added missing WS_EX styles
12527
12528 2004-11-08 13:53  pbartok
12529
12530         * XplatUI.cs, XplatUIDriver.cs:
12531           - Added argument to SetTopmost
12532
12533 2004-11-08 13:52  pbartok
12534
12535         * X11Structs.cs:
12536           - Added XSetWindowAttributes structure
12537           - Improved XWindowAttributes structure
12538           - Added SetWindowValuemask enum
12539           - Added window creation arguments enum
12540           - Added gravity enum
12541           - Added Motif hints structure
12542           - Added various Motif flags and enums
12543           - Added PropertyMode enum for property functions
12544
12545 2004-11-08 13:50  pbartok
12546
12547         * Form.cs:
12548           - Fixed arguments for updated SetTopmost method
12549
12550 2004-11-08 13:49  pbartok
12551
12552         * ToolTip.cs:
12553           - Fixed arguments for updated SetTopmost function
12554           - Fixed usage of PointToClient
12555
12556 2004-11-08 13:44  pbartok
12557
12558         * MenuAPI.cs:
12559           - Added Clipping of children and siblings
12560
12561 2004-11-08 13:41  pbartok
12562
12563         * MainMenu.cs:
12564           - Removed SetMenuBarWindow call. We do this in Form.cs
12565
12566 2004-11-08 13:40  jackson
12567
12568         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12569           scrolling jimmi in the correct location with bottom aligned tabs
12570
12571 2004-11-08 13:36  pbartok
12572
12573         * ContainerControl.cs:
12574           - Implemented BindingContext
12575           - Implemented ParentForm
12576
12577 2004-11-08 12:46  jackson
12578
12579         * TabControl.cs: Put bottom rendered tabs in the right location
12580
12581 2004-11-08 07:15  jordi
12582
12583         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12584           removes dead code
12585
12586 2004-11-05 17:30  jackson
12587
12588         * TabControl.cs: When selected tabs are expanded make sure they
12589           don't go beyond the edges of the tab control
12590
12591 2004-11-05 14:57  jackson
12592
12593         * TabControl.cs: Reset show_slider so if the control is resized to
12594           a size where it is no longer needed it's not displayed anymore
12595
12596 2004-11-05 13:16  jackson
12597
12598         * TabControl.cs: Make tab pages non visible when added to the
12599           control
12600
12601 2004-11-05 12:42  jackson
12602
12603         * TabControl.cs: Implement SizeMode.FillToRight
12604
12605 2004-11-05 12:16  jackson
12606
12607         * Control.cs: Do not call CreateHandle if the handle is already
12608           created
12609
12610 2004-11-05 11:46  jackson
12611
12612         * TabControl.cs: Remove superflous call to CalcTabRows
12613
12614 2004-11-05 09:07  jackson
12615
12616         * XplatUIX11.cs: Update for Mono.Posix changes
12617
12618 2004-11-05 07:00  ravindra
12619
12620         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12621           scrolling.
12622
12623 2004-11-04 22:47  jba
12624
12625         * ThemeWin32Classic.cs:
12626           - Fix Button rendering for FlatStyle = Flat or Popup
12627           - Fix RadioButton and CheckBox rendering when Appearance = Button
12628             (normal and flatstyle).
12629           - Correct outer rectangle color when drawing focus rectangle
12630           - Adjust button bounds to be 1 px smaller when focused
12631           - Make button not draw sunken 3d border when pushed (windows compat)
12632           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12633           - Offset the text in RadioButton and Checkbox when being rendered as
12634           a button.
12635           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12636           radiobuttons
12637           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12638           - Fixed disabled text rendering for normally rendered radiobuttons
12639
12640 2004-11-04 10:26  jackson
12641
12642         * TabControl.cs: Recalculate tab rows when resizing
12643
12644 2004-11-04 07:47  jordi
12645
12646         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12647           collection completion, drawing issues, missing features
12648
12649 2004-11-04 05:03  ravindra
12650
12651         * ScrollBar.cs:
12652                 - We need to recalculate the Thumb area when
12653                 LargeChange/maximum/minimum values are changed.
12654           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12655                 than minimum. This is required to handle the case if large_change is
12656                 more than max, and use LargeChange property instead of large_change
12657                 variable.
12658           - We return max+1 when large_change is more than max, like MS does.
12659
12660 2004-11-04 04:29  ravindra
12661
12662         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12663                 - Changed default value signatures (prefixed all with ListView).
12664                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12665                 ListView.
12666           - Fixed calculations for ListViewItem and implemented Clone()
12667           method.
12668
12669 2004-11-04 04:26  ravindra
12670
12671         * Theme.cs, ThemeWin32Classic.cs:
12672                 - Changed default ListView values signatures (prefixed all with
12673                 ListView).
12674           - Fixed default size values for VScrollBar and HScrollBar.
12675                 - Fixed DrawListViewItem method.
12676
12677 2004-11-04 04:05  ravindra
12678
12679         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12680
12681 2004-11-04 04:04  ravindra
12682
12683         * ImageList.cs: Implemented the missing overload for Draw method.
12684
12685 2004-11-03 19:29  jackson
12686
12687         * TabControl.cs: Handle dropping rows on selection properly
12688
12689 2004-11-03 11:59  jackson
12690
12691         * TabControl.cs: remove debug code
12692
12693 2004-11-03 11:52  jackson
12694
12695         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12696           the scrolly widgerywoo
12697
12698 2004-11-02 13:52  jackson
12699
12700         * TabControl.cs: Resize the tab pages and tabs when the tab control
12701           is resized
12702
12703 2004-11-02 13:40  jackson
12704
12705         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12706           selected tab to the bottom
12707
12708 2004-11-02 13:39  jackson
12709
12710         * TabPage.cs: Store the tab pages row
12711
12712 2004-11-02 12:33  jordi
12713
12714         * MenuItem.cs: fixes handle creation
12715
12716 2004-11-02 11:42  jackson
12717
12718         * TabControl.cs: signature fix
12719
12720 2004-11-02 08:56  jackson
12721
12722         * TabControl.cs: Calculate whether the tab is on an edge properly.
12723           Remove top secret debugging code
12724
12725 2004-11-01 19:57  jackson
12726
12727         * TabControl.cs: Add click handling, and proper sizing
12728
12729 2004-11-01 19:47  jackson
12730
12731         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12732           tab controls
12733
12734 2004-11-01 19:39  jackson
12735
12736         * TabPage.cs: add internal property to store the bounds of a tab
12737           page
12738
12739 2004-10-30 04:23  ravindra
12740
12741         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12742           values.
12743
12744 2004-10-30 04:21  ravindra
12745
12746         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12747           fixed calculations.
12748
12749 2004-10-30 03:06  pbartok
12750
12751         * XplatUIX11.cs:
12752           - Removed extension of DllImported libs
12753
12754 2004-10-29 09:55  jordi
12755
12756         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12757           navigation, itemcollection completion, menu fixes
12758
12759 2004-10-27 22:58  pbartok
12760
12761         * XplatUIX11.cs:
12762           - Now throws a nice error message when no X display could be opened
12763
12764 2004-10-26 13:51  jordi
12765
12766         * ListView.cs: removes warning
12767
12768 2004-10-26 03:55  ravindra
12769
12770         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12771           ThemeWin32Classic.cs: Some formatting for my last checkins.
12772
12773 2004-10-26 03:36  ravindra
12774
12775         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12776           control and default values.
12777
12778 2004-10-26 03:35  ravindra
12779
12780         * Theme.cs: Added some default values for ListView control.
12781
12782 2004-10-26 03:33  ravindra
12783
12784         * ToolBar.cs: ToolBar should use the user specified button size, if
12785           there is any. Added a size_specified flag for the same.
12786
12787 2004-10-26 03:33  ravindra
12788
12789         * ColumnHeader.cs: Added some internal members and calculations for
12790           ColumnHeader.
12791
12792 2004-10-26 03:32  ravindra
12793
12794         * ListViewItem.cs: Calculations for ListViewItem.
12795
12796 2004-10-26 03:31  ravindra
12797
12798         * ListView.cs: Added some internal members and calculations for
12799           ListView.
12800
12801 2004-10-22 13:31  jordi
12802
12803         * MenuAPI.cs: speedup menus drawing
12804
12805 2004-10-22 13:16  jackson
12806
12807         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12808           expose event
12809
12810 2004-10-22 11:49  jackson
12811
12812         * Control.cs: oops
12813
12814 2004-10-22 11:41  jackson
12815
12816         * Control.cs: Check to see if the window should have its background
12817           repainted by X when drawing.
12818
12819 2004-10-22 11:31  jackson
12820
12821         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12822           clear is true, this way we do not get flicker from X repainting the
12823           background
12824
12825 2004-10-22 11:28  jackson
12826
12827         * XEventQueue.cs: Queue properly
12828
12829 2004-10-21 09:38  jackson
12830
12831         * XEventQueue.cs: Fix access modifier
12832
12833 2004-10-21 09:36  jackson
12834
12835         * XEventQueue.cs: Don't loose messages
12836
12837 2004-10-21 09:22  jackson
12838
12839         * XEventQueue.cs: Don't loose messages
12840
12841 2004-10-20 04:15  jordi
12842
12843         * BootMode.cs: enum need it by SystemInfo
12844
12845 2004-10-19 21:58  pbartok
12846
12847         * XplatUIWin32.cs:
12848           - Small sanity check
12849
12850 2004-10-19 21:56  pbartok
12851
12852         * Form.cs:
12853           - Added private FormParentWindow class which acts as the container
12854             for our form and as the non-client area where menus are drawn
12855           - Added/Moved required tie-ins to Jordi's menus
12856           - Fixed/Implemented the FormStartPosition functionality
12857
12858 2004-10-19 21:52  pbartok
12859
12860         * Control.cs:
12861           - Removed unneeded locals
12862           - Added code to all size and location properties to understand and
12863             deal with the parent container of Form
12864
12865 2004-10-19 21:33  pbartok
12866
12867         * Application.cs:
12868           - Fixed to deal with new Form subclasses for menus
12869
12870 2004-10-19 17:48  jackson
12871
12872         * XEventQueue.cs: commit correct version of file
12873
12874 2004-10-19 16:50  jackson
12875
12876         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12877
12878 2004-10-19 16:15  jordi
12879
12880         * MenuAPI.cs: MenuBarCalcSize returns the height
12881
12882 2004-10-19 08:31  pbartok
12883
12884         * Control.cs:
12885           - Added missing call to PreProcessMessage before calling OnXXXKey
12886           methods
12887
12888 2004-10-19 00:04  ravindra
12889
12890         * ToolTip.cs: Fixed constructor.
12891
12892 2004-10-18 09:31  jordi
12893
12894         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12895
12896 2004-10-18 09:26  jordi
12897
12898         * MenuItem.cs: fixes MenuItem class signature
12899
12900 2004-10-18 08:56  jordi
12901
12902         * MenuAPI.cs: prevents windows from showing in the taskbar
12903
12904 2004-10-18 00:28  ravindra
12905
12906         * ToolTip.cs: Suppressed a warning message.
12907
12908 2004-10-18 00:27  ravindra
12909
12910         * Control.cs: Default value of visible property must be true.
12911
12912 2004-10-17 23:19  pbartok
12913
12914         * ToolTip.cs:
12915           - Complete implementation
12916
12917 2004-10-17 23:19  pbartok
12918
12919         * XplatUIX11.cs:
12920           - Added EnableWindow method
12921           - Added SetModal stub
12922           - Added generation of WM_ACTIVATE message (still needs testing)
12923           - Added SetTopMost stub
12924           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12925
12926 2004-10-17 23:17  pbartok
12927
12928         * XplatUIWin32.cs:
12929           - Removed VirtualKeys to XplatUIStructs
12930           - Implemented SetTopMost method
12931           - Implemented EnableWindow method
12932           - Bugfix in ScreenToClient()
12933           - Bugfixes in ClientToScreen()
12934
12935 2004-10-17 22:51  pbartok
12936
12937         * XplatUIStructs.cs:
12938           - Added WS_EX styles to WindowStyles enumeration
12939
12940 2004-10-17 22:50  pbartok
12941
12942         * XplatUI.cs, XplatUIDriver.cs:
12943           - Added method for enabling/disabling windows
12944           - Added method for setting window modality
12945           - Added method for setting topmost window
12946
12947 2004-10-17 22:49  pbartok
12948
12949         * ThemeWin32Classic.cs:
12950           - Added ToolTip drawing code
12951
12952 2004-10-17 22:49  pbartok
12953
12954         * Theme.cs:
12955           - Added ToolTip abstracts
12956
12957 2004-10-17 22:47  pbartok
12958
12959         * Form.cs:
12960           - Fixed Form.ControlCollection to handle owner relations
12961           - Added Owner/OwnedForms handling
12962           - Implemented Z-Ordering for owned forms
12963           - Removed unneeded private overload of ShowDialog
12964           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12965             so I hope)
12966           - Fixed Close(), had wrong default
12967           - Added firing of OnLoad event
12968           - Added some commented out debug code for Ownership handling
12969
12970 2004-10-17 22:16  pbartok
12971
12972         * Control.cs:
12973           - Fixed/implemented flat list of controls
12974
12975 2004-10-17 22:14  pbartok
12976
12977         * Application.cs:
12978           - Added code to simulate modal dialogs on Win32
12979
12980 2004-10-17 16:11  jordi
12981
12982         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12983           mouse event
12984
12985 2004-10-17 13:39  jordi
12986
12987         * MenuAPI.cs: menu drawing fixes
12988
12989 2004-10-15 09:10  ravindra
12990
12991         * StructFormat.cs: General Enum.
12992
12993 2004-10-15 09:09  ravindra
12994
12995         * SizeGripStyle.cs: Enum for Form.
12996
12997 2004-10-15 09:08  ravindra
12998
12999         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
13000           in Theme for ListView.
13001
13002 2004-10-15 09:06  ravindra
13003
13004         * ColumnHeader.cs: Flushing some formatting changes.
13005
13006 2004-10-15 09:05  ravindra
13007
13008         * ListViewItem.cs: Implemented GetBounds method and fixed coding
13009           style.
13010
13011 2004-10-15 09:03  ravindra
13012
13013         * ListView.cs: Implemented Paint method and fixed coding style.
13014
13015 2004-10-15 07:34  jordi
13016
13017         * MenuAPI.cs: fix for X11
13018
13019 2004-10-15 07:32  ravindra
13020
13021         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
13022                 - Renamed Paint() method to Draw() for clarity. Also, moved
13023                 DrawImage() to OnPaint().
13024
13025 2004-10-15 07:25  ravindra
13026
13027         * CheckBox.cs, RadioButton.cs:
13028                 - Removed Redraw (), we get it from ButtonBase.
13029                 - Implemented Paint (), to do class specific painting.
13030
13031 2004-10-15 07:16  ravindra
13032
13033         * ButtonBase.cs:
13034                 - Redraw () is not virtual now.
13035                 - Added an internal virtual method Paint (), so that
13036                 derived classes can do their painting on their own.
13037                 - Modified OnPaint () to call Paint ().
13038
13039 2004-10-15 06:43  jordi
13040
13041         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
13042           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
13043
13044 2004-10-15 00:30  ravindra
13045
13046         * MessageBox.cs:
13047                 - MessageBox on windows does not have min/max buttons.
13048                 This change in CreateParams fixes this on Windows. We
13049                 still need to implement this windowstyle behavior in
13050                 our X11 driver.
13051
13052 2004-10-14 05:14  ravindra
13053
13054         * ToolBar.cs:
13055                 - Changed Redraw () to do a Refresh () always.
13056                 - Fixed the MouseMove event handling when mouse is pressed,
13057                 ie drag event handling.
13058                 - Replaced the usage of ToolBarButton.Pressed property to
13059                 ToolBarButton.pressed internal variable.
13060
13061 2004-10-14 05:10  ravindra
13062
13063         * ToolBarButton.cs:
13064                 - Added an internal member 'inside' to handle mouse move
13065                 with mouse pressed ie mouse drag event.
13066                 - Changed 'Pressed' property to return true only when
13067                 'inside' and 'pressed' are both true.
13068                 - Some coding style love.
13069
13070 2004-10-14 00:17  ravindra
13071
13072         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
13073           public method.
13074
13075 2004-10-14 00:15  ravindra
13076
13077         * ButtonBase.cs: Redraw () related improvements.
13078
13079 2004-10-14 00:14  ravindra
13080
13081         * MessageBox.cs: Moved InitFormSize () out of Paint method and
13082           removed unnecessary calls to Button.Show () method.
13083
13084 2004-10-13 17:50  pbartok
13085
13086         * XplatUIX11.cs:
13087           - Formatting fix
13088           - Removed destroying of window until we solve the problem of X
13089             destroying the window before us on shutdown
13090
13091 2004-10-13 16:32  pbartok
13092
13093         * ButtonBase.cs:
13094           - Now Redraws on MouseUp for FlatStyle Flat and Popup
13095
13096 2004-10-13 14:18  pbartok
13097
13098         * XplatUIX11.cs:
13099           - Added code to destroy the X window
13100
13101 2004-10-13 14:18  pbartok
13102
13103         * XplatUIWin32.cs:
13104           - Added code to destroy a window
13105
13106 2004-10-13 14:12  pbartok
13107
13108         * ButtonBase.cs:
13109           - Added the Redraw on Resize that got dropped in the last rev
13110
13111 2004-10-13 09:06  pbartok
13112
13113         * ThemeWin32Classic.cs:
13114           - Path from John BouAntoun:
13115             * Fix check rendering (centre correctly for normal style, offset
13116               correctly for FlatStyle).
13117             * Fix border color usage (use backcolor) for FlatStyle.Popup
13118             * Use checkbox.Capture instead of checkbox.is_pressed when
13119               rendering flatstyle states.
13120
13121 2004-10-12 21:48  pbartok
13122
13123         * ThemeWin32Classic.cs:
13124           - Removed all occurences of SystemColors and replaced them with the
13125             matching theme color
13126
13127 2004-10-12 21:41  pbartok
13128
13129         * ThemeWin32Classic.cs:
13130           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
13131             him using the function for flatstyle drawing
13132           - Changed functions to use the new version of CPDrawBorder3D
13133
13134 2004-10-12 21:15  pbartok
13135
13136         * ControlPaint.cs:
13137           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
13138             match MS documentation. They need to return defined colors if the
13139             passed color matches the configured control color. Thanks to John
13140             BouAntoun for pointing this out.
13141
13142 2004-10-12 20:57  pbartok
13143
13144         * Control.cs:
13145           - Fix from John BouAntoun: Raise ForeColorChanged event when text
13146             color is changed
13147
13148 2004-10-12 20:46  pbartok
13149
13150         * CheckBox.cs:
13151           - Fix from John BouAntoun: Now properly sets the Appearance property
13152
13153 2004-10-12 20:45  pbartok
13154
13155         * ThemeWin32Classic.cs:
13156           - Fixes from John BouAntoun: now handles forecolors and backcolors
13157             for flatstyle rendered controls much better; It also fixes normal
13158             checkbox rendering when pushed or disabled.
13159
13160 2004-10-08 02:50  jordi
13161
13162         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
13163           work
13164
13165 2004-10-07 08:56  jordi
13166
13167         * ThemeWin32Classic.cs: Removes deletion of cached brushes
13168
13169 2004-10-06 03:59  jordi
13170
13171         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
13172           XplatUIWin32.cs: removes warnings from compilation
13173
13174 2004-10-05 12:23  jackson
13175
13176         * RadioButton.cs: Fix ctor
13177
13178 2004-10-05 11:10  pbartok
13179
13180         * MessageBox.cs:
13181           - Partial implementation by Benjamin Dasnois
13182
13183 2004-10-05 10:15  jackson
13184
13185         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
13186           by John BouAntoun
13187
13188 2004-10-05 03:07  ravindra
13189
13190         * ToolBar.cs:
13191                 - Removed a private method, Draw ().
13192                 - Fixed the ButtonDropDown event handling.
13193                 - Fixed MouseMove event handling.
13194
13195 2004-10-05 03:04  ravindra
13196
13197         * ThemeWin32Classic.cs:
13198                 - Added DrawListView method and ListViewDefaultSize property.
13199                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
13200                 - Changed DOS style CRLF to Unix format (dos2unix).
13201
13202 2004-10-05 03:03  ravindra
13203
13204         * Theme.cs:
13205                 - Added DrawListView method and ListViewDefaultSize property.
13206
13207 2004-10-05 02:42  ravindra
13208
13209         * ToolBarButton.cs: Added an internal member dd_pressed to handle
13210           clicks on DropDown arrow.
13211
13212 2004-10-04 22:56  jackson
13213
13214         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
13215           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
13216           Control handle the buffers, derived classes should not have to
13217           CreateBuffers themselves.
13218
13219 2004-10-04 21:20  jackson
13220
13221         * StatusBar.cs: The control handles resizing the buffers now.
13222
13223 2004-10-04 21:18  jackson
13224
13225         * Control.cs: When resizing the buffers should be invalidated. This
13226           should be handled in Control not in derived classes.
13227
13228 2004-10-04 14:45  jackson
13229
13230         * TabPage.cs: oops
13231
13232 2004-10-04 02:14  pbartok
13233
13234         * LeftRightAlignment.cs:
13235           - Initial check-in
13236
13237 2004-10-04 01:09  jordi
13238
13239         * ThemeWin32Classic.cs: fixes right button position causing right
13240           button not showing on horizontal scrollbars
13241
13242 2004-10-02 13:12  pbartok
13243
13244         * XplatUIX11.cs:
13245           - Simplified the Invalidate method by using an X call instead of
13246             generating the expose ourselves
13247           - Added an expose when the window background is changed
13248           - Implemented ClientToScreen method
13249
13250 2004-10-02 13:08  pbartok
13251
13252         * XplatUIWin32.cs:
13253           - Added Win32EnableWindow method (test for implementing modal
13254           dialogs)
13255           - Added ClientToScreen method and imports
13256
13257 2004-10-02 13:07  pbartok
13258
13259         * XplatUI.cs, XplatUIDriver.cs:
13260           - Added ClientToScreen coordinate translation method
13261
13262 2004-10-02 13:06  pbartok
13263
13264         * KeyPressEventArgs.cs:
13265           - Fixed access level for constructor
13266
13267 2004-10-02 13:06  pbartok
13268
13269         * NativeWindow.cs:
13270           - Changed access level for the window_collection hash table
13271
13272 2004-10-02 13:05  pbartok
13273
13274         * Form.cs:
13275           - Added KeyPreview property
13276           - Added Menu property (still incomplete, pending Jordi's menu work)
13277           - Implemented ProcessCmdKey
13278           - Implemented ProcessDialogKey
13279           - Implemented ProcessKeyPreview
13280
13281 2004-10-02 13:02  pbartok
13282
13283         * Control.cs:
13284           - Added private method to get the Control object from the window
13285           handle
13286           - Implemented ContextMenu property
13287           - Implemented PointToScreen
13288           - Implemented PreProcessMessage
13289           - Implemented IsInputChar
13290           - Implemented IsInputKey
13291           - Implemented ProcessCmdKey
13292           - Completed ProcessKeyEventArgs
13293           - Fixed message loop to call the proper chain of functions on key
13294           events
13295           - Implemented ProcessDialogChar
13296           - Implemented ProcessDialogKey
13297           - Implemented ProcessKeyMessage
13298           - Implemented ProcessKeyPreview
13299           - Added RaiseDragEvent stub (MS internal method)
13300           - Added RaiseKeyEvent stub (MS internal method)
13301           - Added RaiseMouseEvent stub (MS Internal method)
13302           - Added RaisePaintEvent stub (MS Internal method)
13303           - Added ResetMouseEventArgs stub (MS Internal method)
13304           - Implemented RtlTranslateAlignment
13305           - Implemented RtlTranslateContent
13306           - Implemented RtlTranslateHorizontal
13307           - Implemented RtlTranslateLeftRight
13308           - Added generation of KeyPress event
13309
13310 2004-10-02 05:57  ravindra
13311
13312         * ListViewItem.cs: Added attributes.
13313
13314 2004-10-02 05:32  ravindra
13315
13316         * ListView.cs: Added attributes.
13317
13318 2004-10-01 11:53  jackson
13319
13320         * Form.cs: Implement the Close method so work on MessageBox can
13321           continue.
13322
13323 2004-09-30 14:06  pbartok
13324
13325         * XplatUIX11.cs:
13326           - Bug fixes
13327
13328 2004-09-30 11:34  jackson
13329
13330         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
13331
13332 2004-09-30 07:26  ravindra
13333
13334         * ListViewItemConverter.cs: Converter for ListViewItem.
13335
13336 2004-09-30 07:26  ravindra
13337
13338         * SortOrder.cs: Enum for ListView control.
13339
13340 2004-09-30 07:25  ravindra
13341
13342         * ColumnHeader.cs: Supporting class for ListView control.
13343
13344 2004-09-30 07:24  ravindra
13345
13346         * ListView.cs, ListViewItem.cs: Initial implementation.
13347
13348 2004-09-30 07:20  ravindra
13349
13350         * ItemActivation.cs: Enum for ListView Control.
13351
13352 2004-09-29 20:29  pbartok
13353
13354         * XplatUIX11.cs:
13355           - Added lookup of pixel value for background color; tries to get a
13356             color 'close' to the requested color, it avoids having to create a
13357             colormap.  Depending on the display this could mean the used color
13358             is slightly off the desired color. Might have to change it to a more
13359             resource intensive colormap approach, but it will work as a
13360           workaround to avoid red screens.
13361
13362 2004-09-29 14:27  jackson
13363
13364         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
13365
13366 2004-09-28 12:44  pbartok
13367
13368         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
13369           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
13370           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
13371           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
13372           TrackBar.cs, VScrollBar.cs:
13373           - Streamlined Theme interfaces:
13374             * Each DrawXXX method for a control now is passed the object for
13375               the control to be drawn in order to allow accessing any state the
13376               theme might require
13377
13378             * ControlPaint methods for the theme now have a CP prefix to avoid
13379               name clashes with the Draw methods for controls
13380
13381             * Every control now retrieves it's DefaultSize from the current
13382             theme
13383
13384 2004-09-28 12:17  jackson
13385
13386         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
13387           drawing
13388
13389 2004-09-24 14:57  jackson
13390
13391         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
13392           Gives us a nice little performance boost.
13393
13394 2004-09-24 12:02  jackson
13395
13396         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
13397           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
13398           Control and supporting classes. Initial checkin
13399
13400 2004-09-23 13:08  jackson
13401
13402         * Form.cs: Temp build fixage
13403
13404 2004-09-23 01:39  ravindra
13405
13406         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
13407           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
13408           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
13409           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
13410           EventHandlers needed by ListView Control.
13411
13412 2004-09-22 14:12  pbartok
13413
13414         * ScrollableControl.cs:
13415           - Implemented DockPadding property
13416           - Implemented AutoScroll property
13417           - Implemented AutoScrollMargin property
13418           - Implemented AutoScrollMinSize property
13419           - Implemented AutoScrollPosition property
13420           - Implemented DisplayRectangle property (still incomplete)
13421           - Implemented CreateParams property
13422           - Implemented HScroll property
13423           - Implemented VScroll property
13424           - Implemented OnVisibleChanged property
13425
13426 2004-09-22 14:09  pbartok
13427
13428         * Form.cs:
13429           - Added Form.ControllCollection class
13430           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
13431             RemoveOwnedForm (still incomplete, missing on-top and common
13432             minimize/maximize behaviour)
13433           - Added StartPosition property (still incomplete, does not use when
13434             creating the form)
13435           - Added ShowDialog() methods (still incomplete, missing forcing the
13436             dialog modal)
13437
13438 2004-09-22 14:05  pbartok
13439
13440         * Application.cs:
13441           - Added message loop for modal dialogs
13442
13443 2004-09-22 14:02  pbartok
13444
13445         * GroupBox.cs:
13446           - Fixed wrong types for events
13447
13448 2004-09-22 14:00  pbartok
13449
13450         * Shortcut.cs, FormWindowState.cs:
13451           - Fixed wrong values
13452
13453 2004-09-22 12:01  jackson
13454
13455         * Control.cs: Text is never null
13456
13457 2004-09-20 22:14  pbartok
13458
13459         * XplatUIWin32.cs:
13460           - Fixed accessibility level for Idle handler
13461
13462 2004-09-20 18:54  jackson
13463
13464         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13465           XplatUIX11.cs: New message loop that uses poll so we don't get a
13466           busy loop
13467
13468 2004-09-17 10:43  pbartok
13469
13470         * ScrollBar.cs:
13471           - Fixed behaviour of arrow buttons. Now properly behaves like
13472             Buttons (and like Microsoft's scrollbar arrow buttons)
13473
13474 2004-09-17 10:14  pbartok
13475
13476         * ScrollBar.cs:
13477           - Added missing release of keyboard/mouse capture
13478
13479 2004-09-17 06:18  jordi
13480
13481         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
13482           Theme.cs: Very early menu support
13483
13484 2004-09-16 17:45  pbartok
13485
13486         * XplatUIWin32.cs:
13487           - Fixed sending a window to the front
13488           - Added overload for SetWindowPos to avoid casting
13489
13490 2004-09-16 17:44  pbartok
13491
13492         * Control.cs:
13493           - Added SendToBack and BringToFront methods
13494
13495 2004-09-16 07:00  ravindra
13496
13497         * Copyright: Added Novell URL.
13498
13499 2004-09-16 07:00  ravindra
13500
13501         * ToolBar.cs: Invalidate should be done before redrawing.
13502
13503 2004-09-15 21:19  ravindra
13504
13505         * ColumnHeaderStyle.cs: Enum for ListView Control.
13506
13507 2004-09-15 21:18  ravindra
13508
13509         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13510           ListView Control.
13511
13512 2004-09-13 18:26  jackson
13513
13514         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13515           properly
13516
13517 2004-09-13 18:13  jackson
13518
13519         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13520           a second thread and post messages into the main threads message
13521           queue. This makes timing much more consistent. Both win2K and XP
13522           have a minimum timer value of 15 milliseconds, so we now do this
13523           too.
13524
13525 2004-09-13 15:18  pbartok
13526
13527         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13528           XplatUIX11.cs:
13529           - Added Z-Ordering methods
13530
13531 2004-09-13 10:56  pbartok
13532
13533         * Form.cs:
13534           - Fixed #region names
13535           - Moved properties and methods into their proper #regions
13536
13537 2004-09-13 10:51  pbartok
13538
13539         * Form.cs:
13540           - Added Accept and CancelButton properties
13541           - Added ProcessDialogKey() method
13542
13543 2004-09-13 08:18  pbartok
13544
13545         * IWindowTarget.cs:
13546           - Initial check-in
13547
13548 2004-09-10 21:50  pbartok
13549
13550         * Control.cs:
13551           - Added DoDragDrop() [incomplete]
13552           - Properly implemented 'Visible' handling
13553           - Added SetVisibleCore()
13554           - Implemented FindChildAtPoint()
13555           - Implemented GetContainerControl()
13556           - Implemented Hide()
13557
13558 2004-09-10 19:28  pbartok
13559
13560         * Control.cs:
13561           - Moved methods into their appropriate #regions
13562           - Reordered methods within regions alphabetically
13563
13564 2004-09-10 18:57  pbartok
13565
13566         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13567           - Added method to retrieve text from window
13568
13569 2004-09-10 18:56  pbartok
13570
13571         * Control.cs:
13572           - Moved some internal functions into the internal region
13573           - Implemented FontHeight
13574           - Implemented RenderRightToLeft
13575           - Implemented ResizeRedraw
13576           - Implemented ShowFocusCues
13577           - Implemented ShowKeyboardCues
13578           - Implemented FromChildHandle
13579           - Implemented FromHandle
13580           - Implemented IsMnemonic
13581           - Implemented ReflectMessage
13582           - All public and protected Static Methods are now complete
13583
13584 2004-09-10 16:54  pbartok
13585
13586         * Control.cs:
13587           - Implemented remaining missing public instance properties
13588           - Alphabetized some out of order properties
13589
13590 2004-09-10 05:51  ravindra
13591
13592         * PictureBox.cs: Added a check for null image.
13593
13594 2004-09-10 00:59  jordi
13595
13596         * GroupBox.cs: remove cvs tag
13597
13598 2004-09-09 05:25  ravindra
13599
13600         * ToolBar.cs: Make redraw accessible from ToolBarButton.
13601
13602 2004-09-09 05:23  ravindra
13603
13604         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13605           parent redraw.
13606
13607 2004-09-09 02:28  pbartok
13608
13609         * ThemeWin32Classic.cs:
13610           - Improve disabled string look
13611
13612 2004-09-09 01:15  jordi
13613
13614         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13615           args and handler
13616
13617 2004-09-08 23:56  ravindra
13618
13619         * ItemBoundsPortion.cs: It's enum, not a class!
13620
13621 2004-09-08 23:47  ravindra
13622
13623         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13624           Enums for Form.
13625
13626 2004-09-08 21:13  ravindra
13627
13628         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13629           ListView control.
13630
13631 2004-09-08 21:03  ravindra
13632
13633         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13634           avoid crash.
13635
13636 2004-09-08 21:01  ravindra
13637
13638         * ScrollableControl.cs: Removed unreachable code.
13639
13640 2004-09-08 06:45  jordi
13641
13642         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13643
13644 2004-09-08 01:00  jackson
13645
13646         * XplatUIX11.cs: Only run the timers when updating the message
13647           queue. This effectively gives X messages a higher priority then
13648           timer messages. Timers still need love though
13649
13650 2004-09-07 14:01  jackson
13651
13652         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13653           this for us and the handle is no longer valid.
13654
13655 2004-09-07 13:59  jackson
13656
13657         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13658           loop that manages to not crash. TODO: Add poll and cleanup timers
13659
13660 2004-09-07 11:12  jordi
13661
13662         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13663
13664 2004-09-07 03:40  jordi
13665
13666         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13667           fixes, methods, multiple links
13668
13669 2004-09-06 06:55  jordi
13670
13671         * Control.cs: Caches ClientRectangle rectangle value
13672
13673 2004-09-05 02:03  jordi
13674
13675         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13676           certain situations
13677
13678 2004-09-04 11:10  jordi
13679
13680         * Label.cs: Refresh when font changed
13681
13682 2004-09-02 16:24  pbartok
13683
13684         * Control.cs:
13685           - Added sanity check to creation of double buffer bitmap
13686
13687 2004-09-02 16:24  pbartok
13688
13689         * ButtonBase.cs:
13690           - Fixed selection of text color
13691           - Fixed handling of resize event; now properly recreates double
13692             buffering bitmap
13693           - Added missing assignment of TextAlignment
13694           - Added proper default for TextAlignment
13695
13696 2004-09-02 14:26  pbartok
13697
13698         * RadioButton.cs:
13699           - Added missing RadioButton.RadioButtonAccessibleObject class
13700
13701 2004-09-02 14:26  pbartok
13702
13703         * Control.cs:
13704           - Added missing Control.ControlAccessibleObject class
13705           - Started to implement Select()ion mechanisms, still very incomplete
13706
13707 2004-09-02 14:25  pbartok
13708
13709         * AccessibleObject.cs:
13710           - Added missing methods
13711
13712 2004-09-02 14:23  pbartok
13713
13714         * AccessibleNavigation.cs, AccessibleSelection.cs:
13715           - Initial check-in
13716
13717 2004-09-02 10:32  jordi
13718
13719         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13720           pool for pens, brushes, and hatchbruses
13721
13722 2004-09-01 15:30  jackson
13723
13724         * StatusBar.cs: Fix typo
13725
13726 2004-09-01 14:44  pbartok
13727
13728         * RadioButton.cs:
13729           - Fixed state
13730
13731 2004-09-01 14:39  pbartok
13732
13733         * Button.cs, RadioButton.cs:
13734           - Functional initial check-in
13735
13736 2004-09-01 14:01  pbartok
13737
13738         * CheckBox.cs:
13739           - Added missing default
13740           - Added missing region mark
13741
13742 2004-09-01 09:10  jordi
13743
13744         * Label.cs: fixes method signatures, new methods, events, fixes
13745           autosize
13746
13747 2004-09-01 07:19  jordi
13748
13749         * Control.cs: Init string variables with an empty object
13750
13751 2004-09-01 04:20  jordi
13752
13753         * Control.cs: fires OnFontChanged event
13754
13755 2004-08-31 20:07  pbartok
13756
13757         * ButtonBase.cs:
13758           - Enabled display of strings
13759
13760 2004-08-31 20:05  pbartok
13761
13762         * Form.cs:
13763           - Added (partial) implementation of DialogResult; rest needs to be
13764             implemented when the modal loop code is done
13765
13766 2004-08-31 19:55  pbartok
13767
13768         * CheckBox.cs:
13769           - Fixed to match the removal of the needs_redraw concept
13770
13771 2004-08-31 19:55  pbartok
13772
13773         * ButtonBase.cs:
13774           - Removed the rather odd split between 'needs redraw' and redrawing
13775           - Now handles the events that require regeneration (ambient
13776             properties and size)
13777
13778 2004-08-31 19:41  pbartok
13779
13780         * Control.cs:
13781           - Added firing of BackColorChanged event
13782           - Added TopLevelControl property
13783           - Fixed handling of WM_ERASEBKGRND message
13784
13785 2004-08-31 12:49  pbartok
13786
13787         * ButtonBase.cs:
13788           - Removed debug
13789           - Minor fixes
13790
13791 2004-08-31 12:48  pbartok
13792
13793         * CheckBox.cs:
13794           - Finished (famous last words)
13795
13796 2004-08-31 04:35  jordi
13797
13798         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13799           scrolling bugs, adds new methods
13800
13801 2004-08-30 14:42  pbartok
13802
13803         * CheckBox.cs:
13804           - Implemented CheckBox drawing code
13805
13806 2004-08-30 14:42  pbartok
13807
13808         * ButtonBase.cs:
13809           - Made Redraw() and CheckRedraw() virtual
13810           - Improved mouse up/down/move logic to properly track buttons
13811
13812 2004-08-30 09:44  pbartok
13813
13814         * CheckBox.cs:
13815           - Updated to fix broken build. Not complete yet.
13816
13817 2004-08-30 09:28  pbartok
13818
13819         * CheckState.cs:
13820           - Initial checkin
13821
13822 2004-08-30 09:17  pbartok
13823
13824         * Appearance.cs:
13825           - Initial check-in
13826
13827 2004-08-27 16:12  ravindra
13828
13829         * ToolBarButton.cs: Added TypeConverter attribute.
13830
13831 2004-08-27 16:07  ravindra
13832
13833         * ImageIndexConverter.cs: Implemented.
13834
13835 2004-08-27 14:17  pbartok
13836
13837         * Control.cs:
13838           - Removed unneeded stack vars
13839           - First attempt to fix sizing issues when layout is suspended
13840
13841 2004-08-25 15:35  jordi
13842
13843         * ScrollBar.cs: more fixes to scrollbar
13844
13845 2004-08-25 14:04  ravindra
13846
13847         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13848           Added the missing divider code and grip for ToolBar Control.
13849
13850 2004-08-25 13:20  pbartok
13851
13852         * Control.cs:
13853           - Control now properly passes the ambient background color to child
13854             controls
13855
13856 2004-08-25 13:20  jordi
13857
13858         * ScrollBar.cs: small bug fix regarding bar position
13859
13860 2004-08-25 12:33  pbartok
13861
13862         * Timer.cs:
13863           - Now only calls SetTimer or KillTimer if the enabled state has
13864           changed
13865
13866 2004-08-25 12:33  pbartok
13867
13868         * XplatUIWin32.cs:
13869           - Fixed timer handling, now seems to work
13870           - Improved error message for window creation
13871
13872 2004-08-25 12:32  pbartok
13873
13874         * Control.cs:
13875           - Fixed generation of MouseUp message
13876
13877 2004-08-25 12:29  jordi
13878
13879         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13880           and fixes for progressbar
13881
13882 2004-08-24 18:43  ravindra
13883
13884         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13885           in ToolBar control.
13886
13887 2004-08-24 17:15  pbartok
13888
13889         * Panel.cs:
13890           - Added #region
13891           - Added missing events
13892           - Alphabetized
13893
13894 2004-08-24 17:14  pbartok
13895
13896         * StatusBar.cs, PictureBox.cs:
13897           - Now uses Control's CreateParams
13898
13899 2004-08-24 16:36  pbartok
13900
13901         * XplatUIX11.cs:
13902           - Fixed background color handling
13903           - Fixed sending of enter/leave events on a grab
13904
13905 2004-08-24 16:35  pbartok
13906
13907         * X11Structs.cs:
13908           - Refined definitions for CrossingEvent
13909
13910 2004-08-24 12:37  jordi
13911
13912         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13913           formmating, methods signature, and adds missing events
13914
13915 2004-08-24 12:24  jordi
13916
13917         * Control.cs: fire OnEnabledChanged event
13918
13919 2004-08-24 11:17  pbartok
13920
13921         * XplatUIWin32.cs:
13922           - Implemented SetTimer() and KillTimer()
13923
13924 2004-08-24 11:16  pbartok
13925
13926         * XplatUIX11.cs:
13927           - Now uses Remove instead of Add to kill the timer
13928
13929 2004-08-24 10:16  jackson
13930
13931         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13932           picture boxes in the theme now. Draw picture box borders and obey
13933           sizing modes
13934
13935 2004-08-24 05:49  jackson
13936
13937         * Timer.cs: Remove top secret debugging code
13938
13939 2004-08-24 05:34  jackson
13940
13941         * PictureBox.cs: Temp hack to make picture boxes draw their full
13942           image
13943
13944 2004-08-24 05:29  jackson
13945
13946         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13947           XplatUIX11.cs: Move timers to the driver level. On X they are
13948           queued by the driver and checked on idle.
13949
13950 2004-08-24 01:07  jackson
13951
13952         * XplatUIX11.cs: Use a queue for async messages instead of passing
13953           them as ClientMessages since that was totally broken. Also simply
13954           check for events and return an idle message if none are found. This
13955           gives us an idle handler, and prevents deadlocking when no messages
13956           are in the queue.
13957
13958 2004-08-23 18:19  ravindra
13959
13960         * XplatUIWin32.cs: Removed the unwanted destructor.
13961
13962 2004-08-23 17:27  pbartok
13963
13964         * ButtonBase.cs:
13965           - Finishing touches. Works now, just needs some optimizations.
13966
13967 2004-08-23 16:53  jordi
13968
13969         * ScrollBar.cs: small fix
13970
13971 2004-08-23 16:45  pbartok
13972
13973         * Application.cs:
13974           - Removed debug output
13975           - Simplifications
13976
13977 2004-08-23 16:43  jordi
13978
13979         * ScrollBar.cs: [no log message]
13980
13981 2004-08-23 16:10  pbartok
13982
13983         * Form.cs:
13984           - Fixed handling of WM_CLOSE message
13985           - Removed debug output
13986
13987 2004-08-23 16:09  pbartok
13988
13989         * Application.cs:
13990           - Added handling of Idle event
13991           - Added handling of form closing
13992           - Fixed reporting of MessageLoop property
13993           - Removed some unneeded code, should provide a bit of a speedup
13994
13995 2004-08-23 15:22  pbartok
13996
13997         * Control.cs:
13998           - Added InitLayout() method
13999           - Added code to properly perform layout when Anchor or Dock property
14000             is changed
14001           - Changed 'interpretation' of ResumeLayout. MS seems to have a
14002             LAMESPEC, tried to do it in a way that makes sense
14003
14004 2004-08-23 14:10  jordi
14005
14006         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
14007           properties and methods
14008
14009 2004-08-23 13:55  pbartok
14010
14011         * Control.cs:
14012           - Properly fixed Jordi's last fix
14013           - Now uses Cursor's Position property instead of calling XplatUI
14014           directly
14015
14016 2004-08-23 13:44  jordi
14017
14018         * PaintEventHandler.cs: Adding missing attribute
14019
14020 2004-08-23 13:39  pbartok
14021
14022         * Cursor.cs:
14023           - Implemented Position property
14024
14025 2004-08-23 13:39  pbartok
14026
14027         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14028           - Added method to move mouse cursor
14029
14030 2004-08-23 13:39  pbartok
14031
14032         * XplatUIX11.cs:
14033           - Fixed setting of background color
14034           - Added method to move mouse cursor
14035
14036 2004-08-23 13:16  jordi
14037
14038         * Control.cs: avoids null exception
14039
14040 2004-08-22 17:46  jackson
14041
14042         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
14043           PictureBox
14044
14045 2004-08-22 17:40  jackson
14046
14047         * XplatUIX11.cs: Add some missing locks
14048
14049 2004-08-22 15:10  pbartok
14050
14051         * Control.cs, Form.cs:
14052           - Removed OverlappedWindow style from Control, instead it's default
14053             now is child
14054           - Made form windows OverlappedWindow by default
14055
14056 2004-08-22 13:34  jackson
14057
14058         * ScrollBar.cs: Update the position through the Value property so
14059           the OnValueChanged event is raised.
14060
14061 2004-08-22 12:04  pbartok
14062
14063         * SWF.csproj:
14064           - Added Cursor.cs and UserControl.cs
14065
14066 2004-08-22 12:03  pbartok
14067
14068         * Cursor.cs:
14069           - Started implementation, not usable yet
14070
14071 2004-08-22 12:00  pbartok
14072
14073         * UserControl.cs:
14074           - Implemented UserControl (complete)
14075
14076 2004-08-21 19:20  ravindra
14077
14078         * ToolBar.cs: Correcting the formatting mess of VS.NET.
14079
14080 2004-08-21 18:49  ravindra
14081
14082         * ToolBar.cs: Probably this completes the missing attributes in
14083           toolbar control.
14084
14085 2004-08-21 18:03  ravindra
14086
14087         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
14088           Fixed toolbar control signatures.
14089
14090 2004-08-21 16:32  pbartok
14091
14092         * LinkLabel.cs:
14093           - Signature Fixes
14094
14095 2004-08-21 16:30  pbartok
14096
14097         * Label.cs:
14098           - Signature fixes
14099
14100 2004-08-21 16:19  pbartok
14101
14102         * Control.cs, Label.cs:
14103           - Signature fixes
14104
14105 2004-08-21 15:57  pbartok
14106
14107         * ButtonBase.cs:
14108           - Added loads of debug output for development
14109           - Fixed typo in method name
14110
14111 2004-08-21 15:52  pbartok
14112
14113         * ToolBarButtonClickEventArgs.cs:
14114           - Added missing base class
14115
14116 2004-08-21 14:53  pbartok
14117
14118         * Control.cs:
14119           - Updated to match new GrabWindow signature
14120
14121 2004-08-21 14:51  pbartok
14122
14123         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14124           - Added method to get default display size
14125
14126 2004-08-21 14:23  pbartok
14127
14128         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14129           - Added method to query current grab state
14130           - Added argument to allow confining a grab to a window
14131
14132 2004-08-21 14:22  pbartok
14133
14134         * Keys.cs:
14135           - Added [Flags] attribute so that modifiers can be used in bitwise
14136           ops
14137
14138 2004-08-21 14:21  pbartok
14139
14140         * TrackBar.cs, ScrollBar.cs:
14141           - Replaced direct XplatUI calls with their Control counterpart
14142
14143 2004-08-21 13:32  pbartok
14144
14145         * Control.cs:
14146           - Implemented Created property
14147
14148 2004-08-21 13:28  pbartok
14149
14150         * Control.cs:
14151           - Implemented ContainsFocus
14152
14153 2004-08-21 13:26  pbartok
14154
14155         * Control.cs:
14156           - Implemented CausesValidation
14157
14158 2004-08-21 13:21  pbartok
14159
14160         * Control.cs:
14161           - Implemented CanFocus
14162           - Implemented CanSelect
14163           - Implemented Capture
14164
14165 2004-08-21 12:35  pbartok
14166
14167         * XplatUIWin32.cs:
14168           - Fixed bug with Async message handling
14169           - Implemented getting the ModifierKeys
14170
14171 2004-08-21 12:32  jackson
14172
14173         * AsyncMethodResult.cs: Make sure we have the mutex before we
14174           release it. Fixes BeginInvoke on windows
14175
14176 2004-08-21 11:31  pbartok
14177
14178         * XplatUIWin32.cs, XplatUIX11.cs:
14179           - Drivers now return proper mouse state
14180
14181 2004-08-21 10:54  jackson
14182
14183         * Control.cs: Implement EndInvoke
14184
14185 2004-08-21 10:48  jackson
14186
14187         * Timer.cs: Remove unneeded finalizer
14188
14189 2004-08-20 19:52  ravindra
14190
14191         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
14192           in mouse event handling in the ToolBar control.
14193
14194 2004-08-20 19:50  ravindra
14195
14196         * ImageList.cs: Changed draw method to use the arguments passed in
14197           to draw the image.
14198
14199 2004-08-20 18:58  pbartok
14200
14201         * XplatUIStructs.cs:
14202           - Added private message for async communication
14203
14204 2004-08-20 17:38  ravindra
14205
14206         * Control.cs: Made RightToLeft property virtual and removed a
14207           Console.WriteLine.
14208
14209 2004-08-20 14:39  jordi
14210
14211         * ThemeGtk.cs: use style_attach
14212
14213 2004-08-20 14:39  pbartok
14214
14215         * XplatUIWin32.cs:
14216           - Added jackson's Async code from X11 to Win32
14217
14218 2004-08-20 14:09  pbartok
14219
14220         * SWF.csproj:
14221           - Added all new files
14222
14223 2004-08-20 14:09  pbartok
14224
14225         * Control.cs:
14226           - Added call to set window background color
14227
14228 2004-08-20 14:03  pbartok
14229
14230         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14231           - Added method for setting the window background
14232
14233 2004-08-20 14:02  pbartok
14234
14235         * XplatUIWin32.cs:
14236           - Added method for setting the background color
14237           - Added handling for erasing the window background
14238
14239 2004-08-20 13:45  jordi
14240
14241         * TrackBar.cs: fixes timer, new properties and methods
14242
14243 2004-08-20 13:34  jackson
14244
14245         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
14246           correct thread
14247
14248 2004-08-20 13:22  jackson
14249
14250         * Timer.cs: Timer Tick events are now handed through Controls Async
14251           mechanism so the callbacks are executed in the same thread as X
14252
14253 2004-08-20 13:19  jackson
14254
14255         * XplatUIDriver.cs: Expose functionality to send async messages
14256           through the driver
14257
14258 2004-08-20 13:18  jackson
14259
14260         * Control.cs: Implement Begininvoke
14261
14262 2004-08-20 13:14  jackson
14263
14264         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
14265           messages through the driver
14266
14267 2004-08-20 13:12  jackson
14268
14269         * XplatUIX11.cs: Lock before all X operations. Also added Async
14270           method functionality through XSendEvent
14271
14272 2004-08-20 13:11  jackson
14273
14274         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
14275           This will screw up on 64 bit systems)
14276
14277 2004-08-20 13:10  jackson
14278
14279         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
14280           Async messages through X/Win32
14281
14282 2004-08-19 19:39  pbartok
14283
14284         * XplatUIX11.cs:
14285           - Updated code to match new HandleData.DeviceContext type
14286
14287 2004-08-19 19:38  pbartok
14288
14289         * HandleData.cs:
14290           - Made DeviceContext a generic object to allow usage from various
14291           drivers
14292           - Added support for queueing Windows messages
14293
14294 2004-08-19 19:37  pbartok
14295
14296         * XplatUIWin32.cs:
14297           - Added generation of MouseEnter, MouseLeave and MouseHover events
14298           - Added cleanup on EndPaint
14299
14300 2004-08-19 19:17  pbartok
14301
14302         * Control.cs:
14303           - Added handling of WM_MOUSEHOVER
14304           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
14305           code
14306
14307 2004-08-19 18:55  jordi
14308
14309         * ThemeGtk.cs: fixes button order
14310
14311 2004-08-19 18:12  jordi
14312
14313         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
14314
14315 2004-08-19 17:09  pbartok
14316
14317         * Control.cs:
14318           - Added Right property
14319           - Added RightToLeft property
14320
14321 2004-08-19 16:27  jordi
14322
14323         * ThemeGtk.cs: experimental GTK theme support
14324
14325 2004-08-19 16:26  jordi
14326
14327         * ITheme.cs, Theme.cs: move themes from an interface to a class
14328
14329 2004-08-19 16:25  jordi
14330
14331         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
14332           theme enhancaments
14333
14334 2004-08-19 16:04  pbartok
14335
14336         * XplatUIX11.cs:
14337           - Added colormap basics
14338           - Added a way to re-initialize with a different display handle
14339           - Fixed setting of the window background color
14340           - Added various X11 imports related to colors and colormaps
14341
14342 2004-08-19 15:51  pbartok
14343
14344         * X11Structs.cs:
14345           - Removed packing hints (Paolo suggested this a while back)
14346           - fixed colormap type
14347           - Added default Atom types
14348           - Added Screen and color structs and enums
14349
14350 2004-08-19 15:39  pbartok
14351
14352         * ImageList.cs:
14353           - Added missing Draw() method
14354           - Added missing RecreateHandle event
14355
14356 2004-08-19 15:30  pbartok
14357
14358         * Form.cs:
14359           - Added handling of WM_CLOSE
14360
14361 2004-08-18 13:16  jordi
14362
14363         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
14364           a table
14365
14366 2004-08-18 09:56  jordi
14367
14368         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
14369
14370 2004-08-17 15:31  ravindra
14371
14372         * SWF.csproj: Updated project.
14373
14374 2004-08-17 15:25  pbartok
14375
14376         * Control.cs:
14377           - Drawing improvement; don't call UpdateBounds if we are not visible
14378             (or have been minimized)
14379
14380 2004-08-17 15:24  pbartok
14381
14382         * XplatUIWin32.cs:
14383           - Finished IsVisible
14384           - Added Win32GetWindowPlacement
14385
14386 2004-08-17 15:08  jackson
14387
14388         * Panel.cs: Initial checkin of the Panel
14389
14390 2004-08-17 14:25  pbartok
14391
14392         * Control.cs:
14393           - Fixed broken handling of default window sizes
14394
14395 2004-08-17 13:29  jackson
14396
14397         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
14398           has a large startup time.
14399
14400 2004-08-17 10:25  jackson
14401
14402         * HandleData.cs: union areas properly
14403
14404 2004-08-17 10:12  jackson
14405
14406         * HandleData.cs: union areas properly
14407
14408 2004-08-16 20:00  ravindra
14409
14410         * ToolBar.cs, ToolBarButton.cs: Added attributes.
14411
14412 2004-08-16 18:48  ravindra
14413
14414         * ToolBar.cs: Added attributes.
14415
14416 2004-08-16 17:17  ravindra
14417
14418         * SWF.csproj: Updated project.
14419
14420 2004-08-16 17:16  jackson
14421
14422         * XplatUIX11.cs: Check for more expose events before sending a
14423           WM_PAINT so they can all be grouped together. This makes dragging a
14424           window across another window redraw in a sane way.
14425
14426 2004-08-16 15:47  pbartok
14427
14428         * Control.cs:
14429           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
14430             support OnMouseEnter/Leave()
14431           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
14432             exposure handling
14433
14434 2004-08-16 15:46  pbartok
14435
14436         * XplatUIStructs.cs, XplatUIX11.cs:
14437           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
14438           OnMouseEnter/Leave()
14439
14440 2004-08-16 15:34  jackson
14441
14442         * XplatUIX11.cs: Group multiple expose events in HandleData, make
14443           sure messages get the message field set to WM_NULL if they are not
14444           handled.
14445
14446 2004-08-16 15:24  jackson
14447
14448         * HandleData.cs: HandleData is used for storing message information
14449           for window handles
14450
14451 2004-08-15 17:23  ravindra
14452
14453         * ColorDepth.cs: Added attribute.
14454
14455 2004-08-15 17:23  ravindra
14456
14457         * SWF.csproj: Updated project for ToolBar Control.
14458
14459 2004-08-15 17:20  ravindra
14460
14461         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
14462           control and also dos2unix format.
14463
14464 2004-08-15 17:13  ravindra
14465
14466         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
14467           ToolBarButtonClickEventArgs.cs,
14468           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
14469           ToolBarTextAlign.cs: First Implementation of ToolBar control.
14470
14471 2004-08-15 15:31  pbartok
14472
14473         * ButtonBase.cs:
14474           - First (mostly) working version
14475
14476 2004-08-13 16:15  pbartok
14477
14478         * Control.cs:
14479           - Fixed Anchor default
14480
14481 2004-08-13 15:43  pbartok
14482
14483         * Control.cs:
14484           - Changed GetCursorPos signature
14485
14486 2004-08-13 15:42  pbartok
14487
14488         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14489           - Changed signature for GetCursorPos
14490
14491 2004-08-13 15:25  pbartok
14492
14493         * XplatUIX11.cs:
14494           - Cleanup
14495           - Fixed resizing/exposure handling
14496
14497 2004-08-13 15:22  jordi
14498
14499         * ThemeWin32Classic.cs: removes redundant code and fixes issues
14500           with tickposition
14501
14502 2004-08-13 14:55  jordi
14503
14504         * TrackBar.cs: change from wndproc to events
14505
14506 2004-08-13 13:00  jordi
14507
14508         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14509           XplatUIX11.cs: implements PointToClient (ScreenToClient)
14510
14511 2004-08-13 12:53  pbartok
14512
14513         * XplatUIWin32.cs:
14514           - Changed GetWindowPos to also provide client area size
14515           - Fixed broken prototypes for several win32 functions
14516
14517 2004-08-13 12:53  pbartok
14518
14519         * XplatUI.cs, XplatUIDriver.cs:
14520           - Changed GetWindowPos to also provide client area size
14521
14522 2004-08-13 12:52  pbartok
14523
14524         * XplatUIX11.cs:
14525           - Added generation of WM_POSCHANGED
14526           - Changed GetWindowPos to also provide client area size
14527
14528 2004-08-13 12:52  pbartok
14529
14530         * Control.cs:
14531           - Added Dispose() and destructor
14532           - Fixed resizing and bounds calculation
14533           - Fixed Layout
14534           - Added memory savings for invisible windows
14535
14536 2004-08-13 12:46  jordi
14537
14538         * TrackBar.cs: adds timer and grap window
14539
14540 2004-08-13 10:25  jackson
14541
14542         * Timer.cs: SWF Timer
14543
14544 2004-08-12 16:59  pbartok
14545
14546         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14547           - Implemented method to get current mouse position
14548
14549 2004-08-12 14:29  jordi
14550
14551         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14552           enhancement, fix mouse problems, highli thumb, etc
14553
14554 2004-08-12 13:31  pbartok
14555
14556         * Control.cs:
14557           - Fixed Anchoring bugs
14558
14559 2004-08-12 13:01  jackson
14560
14561         * StatusBar.cs: Don't forget things
14562
14563 2004-08-12 12:54  jackson
14564
14565         * ThemeWin32Classic.cs: Handle owner draw status bars
14566
14567 2004-08-12 12:54  jackson
14568
14569         * StatusBar.cs: Implement missing properties, events, and methods.
14570           Handle mouse clicking
14571
14572 2004-08-12 10:19  jackson
14573
14574         * StatusBarPanelClickEventArgs.cs,
14575           StatusBarPanelClickEventHandler.cs: Classes for handling status
14576           bar panel click events
14577
14578 2004-08-12 10:10  jackson
14579
14580         * Control.cs: Add missing properties
14581
14582 2004-08-12 09:46  pbartok
14583
14584         * BindingsManagerBase.cs:
14585           - Name changed to BindingManagerBase.cs
14586
14587 2004-08-12 09:25  jordi
14588
14589         * ScrollableControl.cs: calls ctrlbase instead of exeception
14590
14591 2004-08-11 16:28  pbartok
14592
14593         * InputLanguageChangingEventArgs.cs:
14594           - Never check in before compiling. Fixes the last check-in
14595
14596 2004-08-11 16:26  pbartok
14597
14598         * InputLanguageChangingEventArgs.cs:
14599           - More signature fixes
14600
14601 2004-08-11 16:20  pbartok
14602
14603         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14604           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14605           ImageListStreamer.cs, InputLanguage.cs,
14606           InputLanguageChangedEventArgs.cs,
14607           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14608           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14609           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14610           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14611           - Signature fixes
14612
14613 2004-08-11 16:16  pbartok
14614
14615         * Application.cs:
14616           - Fixed Signature
14617           - Added .Net 1.1 method
14618
14619 2004-08-11 15:25  pbartok
14620
14621         * SWF.csproj:
14622           - Fixed BindingManagerBase.cs filename
14623
14624 2004-08-11 15:22  pbartok
14625
14626         * BindingManagerBase.cs:
14627           - Was checked in with wrong filename
14628
14629 2004-08-11 14:50  pbartok
14630
14631         * SWF.csproj:
14632           - Updated
14633
14634 2004-08-11 13:41  jordi
14635
14636         * XplatUIWin32.cs: Fixes ClientRect
14637
14638 2004-08-11 13:19  pbartok
14639
14640         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14641           XplatUIX11.cs:
14642           - We had SetWindowPos and MoveWindow to set window positions and
14643             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14644             keep SetWindowPos as matching counterpart
14645           - Added some X11 sanity checking
14646
14647 2004-08-11 12:59  pbartok
14648
14649         * Control.cs:
14650           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14651             (It seems that SetBounds is just a front for SetBoundsCore and
14652              SetBoundsCore updates the underlying window system and
14653              UpdateBounds is responsible for updating the variables associated
14654              with the Control and sending the events)
14655           - Major cleanup of Size handling; we now have two sizes, client_size
14656             and bounds. Bounds defines the window with decorations, client_size
14657             without them.
14658
14659 2004-08-11 12:55  pbartok
14660
14661         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14662           - Added method to calculate difference between decorated window and
14663             raw client area
14664
14665 2004-08-11 12:54  pbartok
14666
14667         * Label.cs:
14668           - Forcing redraw on resize
14669
14670 2004-08-11 11:43  pbartok
14671
14672         * ImageList.cs:
14673           - Removed disposing of the actual images when the list is disposed
14674
14675 2004-08-11 09:13  pbartok
14676
14677         * Control.cs:
14678           - Now properly reparents windows
14679
14680 2004-08-11 08:37  pbartok
14681
14682         * Control.cs:
14683           - Duh!
14684
14685 2004-08-11 07:47  pbartok
14686
14687         * Control.cs:
14688           - Rewrote the collection stuff. Might not be as fast now, not
14689             keeping the number of children around and accessible directly, but
14690             it's more straightforward
14691
14692 2004-08-11 07:44  pbartok
14693
14694         * AccessibleObject.cs:
14695           - Fixed to match ControlCollection rewrite
14696
14697 2004-08-11 07:43  pbartok
14698
14699         * ImageList.cs:
14700           - Added missing creation of the collection list
14701
14702 2004-08-10 20:08  jackson
14703
14704         * StatusBar.cs: Get the paint message from WndProc
14705
14706 2004-08-10 19:31  jackson
14707
14708         * ThemeWin32Classic.cs: Create Brushes as little as possible
14709
14710 2004-08-10 19:20  jackson
14711
14712         * UICues.cs: Add Flags attribute
14713
14714 2004-08-10 19:19  jackson
14715
14716         * StatusBarPanel.cs: Signature cleanup
14717
14718 2004-08-10 19:10  jackson
14719
14720         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14721           Initial implementation of status bar item drawing
14722
14723 2004-08-10 17:27  jordi
14724
14725         * TrackBar.cs: add missing methods, properties, and restructure to
14726           hide extra ones
14727
14728 2004-08-10 16:24  jackson
14729
14730         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14731           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14732           attribute
14733
14734 2004-08-10 13:21  jordi
14735
14736         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14737           enhancements and standarize on win colors defaults
14738
14739 2004-08-10 12:52  jackson
14740
14741         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14742           ThemeWin32Classic.cs: Implement DrawItem functionality
14743
14744 2004-08-10 12:47  jordi
14745
14746         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14747
14748 2004-08-10 12:32  jordi
14749
14750         * Control.cs: throw ontextchange event
14751
14752 2004-08-10 11:43  pbartok
14753
14754         * Control.cs:
14755           - Added more to the still unfinished Dock/Anchor layout code
14756
14757 2004-08-10 11:39  pbartok
14758
14759         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14760           - Added GetWindowPos method
14761
14762 2004-08-10 11:36  pbartok
14763
14764         * XplatUIWin32.cs:
14765           - Implemented several methods
14766
14767 2004-08-10 09:47  jackson
14768
14769         * TrackBar.cs: Allow control to handle buffering
14770
14771 2004-08-10 09:41  jackson
14772
14773         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14774
14775 2004-08-10 09:24  jackson
14776
14777         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14778
14779 2004-08-10 09:09  jackson
14780
14781         * StatusBar.cs: Let Control handle all the buffering.
14782
14783 2004-08-10 09:08  jackson
14784
14785         * Control.cs: Control will now handle the buffering code, so each
14786           control does not have to implement this.
14787
14788 2004-08-10 08:34  jackson
14789
14790         * XplatUIDriver.cs: Use default colors from the theme
14791
14792 2004-08-09 17:12  pbartok
14793
14794         * ImageList.cs:
14795           - Fixed several bugs Ravindra pointed out
14796
14797 2004-08-09 16:11  pbartok
14798
14799         * Control.cs:
14800           - Added incomplete dock layout code
14801           - Added support for mouse wheel
14802
14803 2004-08-09 16:09  pbartok
14804
14805         * XplatUIX11.cs:
14806           - Added handling for middle and right mousebutton
14807           - Added handling for mouse wheel
14808           - Added handling for key state and mouse state and position
14809           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14810           messages
14811
14812 2004-08-09 15:40  jackson
14813
14814         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14815           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14816           checkin
14817
14818 2004-08-09 15:37  jackson
14819
14820         * StatusBar.cs: Initial implementation of StatusBar
14821
14822 2004-08-09 15:36  jackson
14823
14824         * ITheme.cs: Add support for drawing status bar and getting status
14825           bar item sizes
14826
14827 2004-08-09 15:35  pbartok
14828
14829         * MouseButtons.cs:
14830           - Fixed values
14831
14832 2004-08-09 15:34  jackson
14833
14834         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14835           status bar item sizes
14836
14837 2004-08-09 15:21  jackson
14838
14839         * ThemeWin32Classic.cs: Use known colors for default control
14840           colours
14841
14842 2004-08-09 15:12  jackson
14843
14844         * ThemeWin32Classic.cs: Make the default font static, it is static
14845           in control so this doesn't change functionality and creating fonts
14846           is sloooooow.
14847
14848 2004-08-09 14:56  pbartok
14849
14850         * X11Structs.cs:
14851           - Added GrabMode enum
14852
14853 2004-08-09 14:55  pbartok
14854
14855         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14856           - Removed Run method, was only required for initial development
14857
14858 2004-08-09 14:51  pbartok
14859
14860         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14861           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14862           capture
14863
14864 2004-08-09 13:48  pbartok
14865
14866         * XplatUIX11.cs:
14867           - Fixed default sizing for child windows
14868
14869 2004-08-09 12:56  pbartok
14870
14871         * XplatUIX11.cs:
14872           - Added generation of WM_DESTROY message
14873           - Added handling of window manager induced shutdown
14874
14875 2004-08-09 11:31  jackson
14876
14877         * ThemeWin32Classic.cs: New names for control properties
14878
14879 2004-08-09 11:25  jackson
14880
14881         * Control.cs: Use new color names
14882
14883 2004-08-09 11:02  jackson
14884
14885         * XplatUI.cs: Get default window properties from the theme
14886
14887 2004-08-09 11:01  jackson
14888
14889         * ITheme.cs: The theme engine now controls default window
14890           properties
14891
14892 2004-08-09 11:00  jackson
14893
14894         * ThemeWin32Classic.cs: Add default window color properties
14895
14896 2004-08-09 10:17  jackson
14897
14898         * ThemeWin32Classic.cs: Use correct default back color
14899
14900 2004-08-09 10:05  jackson
14901
14902         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14903           the theme now.
14904
14905 2004-08-09 09:56  jackson
14906
14907         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14908
14909 2004-08-09 09:54  jackson
14910
14911         * Control.cs: Get default properties from the theme.
14912
14913 2004-08-09 09:53  jackson
14914
14915         * ITheme.cs: Themes now handle default control properties
14916
14917 2004-08-09 09:53  jackson
14918
14919         * ThemeWin32Classic.cs: Themes now handle default control
14920           properties so coloring will be consistent
14921
14922 2004-08-08 16:54  jordi
14923
14924         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14925
14926 2004-08-08 15:08  jordi
14927
14928         * XplatUIX11.cs: fixes keyboard crash
14929
14930 2004-08-08 13:47  jordi
14931
14932         * Label.cs: add cvs header info
14933
14934 2004-08-08 12:09  jackson
14935
14936         * ThemeWin32Classic.cs: Add pen_buttonface
14937
14938 2004-08-08 11:52  jordi
14939
14940         * Label.cs, LinkLabel.cs: [no log message]
14941
14942 2004-08-08 11:34  jordi
14943
14944         * ThemeWin32Classic.cs: Use Windows Standard Colours
14945
14946 2004-08-07 17:32  jordi
14947
14948         * TrackBar.cs: throw exceptions of invalid enums values
14949
14950 2004-08-07 17:31  jordi
14951
14952         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14953           draw method name
14954
14955 2004-08-07 16:56  jackson
14956
14957         * HorizontalAlignment.cs: Initial checkin
14958
14959 2004-08-07 13:16  jordi
14960
14961         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14962           methods
14963
14964 2004-08-07 13:05  jordi
14965
14966         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14967           GetSysColor defines
14968
14969 2004-08-06 18:01  pbartok
14970
14971         * ThemeWin32Classic.cs:
14972           - Fixed some rounding issues with float/int
14973
14974 2004-08-06 18:00  jackson
14975
14976         * DockStyle.cs, AnchorStyles.cs:
14977
14978                   Add flags and serializable attributes.
14979
14980 2004-08-06 17:46  pbartok
14981
14982         * XplatUIX11.cs:
14983           - Implemented GetParent
14984
14985 2004-08-06 17:18  pbartok
14986
14987         * TrackBar.cs:
14988           - Fixed some rounding issues with float/int
14989
14990 2004-08-06 17:17  pbartok
14991
14992         * X11Structs.cs, XplatUIX11.cs:
14993           - Fixed Refresh and Invalidate
14994
14995 2004-08-06 15:30  pbartok
14996
14997         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14998           - Fixed recursive loop when resizing
14999           - Improved/fixed redrawing on expose messages
15000
15001 2004-08-06 09:53  jordi
15002
15003         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
15004           keyboard navigation
15005
15006 2004-08-06 08:02  pbartok
15007
15008         * X11Structs.cs, XplatUIX11.cs:
15009           - Fixed reparenting
15010           - Fixed window border creation
15011
15012 2004-08-05 15:38  pbartok
15013
15014         * XplatUIX11.cs:
15015           - Attempted fix for reparenting problems
15016
15017 2004-08-04 15:14  pbartok
15018
15019         * Control.cs:
15020           - Fixed Invalidation bug (calculated wrong client area)
15021           - Added ClientSize setter
15022
15023 2004-08-04 15:13  pbartok
15024
15025         * Form.cs:
15026           - Added AutoScale properties
15027
15028 2004-08-04 15:13  pbartok
15029
15030         * SWF.csproj:
15031           - Added latest files
15032
15033 2004-08-04 14:11  pbartok
15034
15035         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15036           XplatUIX11.cs:
15037           - Added Invalidate handling
15038
15039 2004-08-03 17:09  jordi
15040
15041         * XplatUIDriver.cs: fixes spelling mistake
15042
15043 2004-07-27 09:53  jordi
15044
15045         * TrackBar.cs: fixes trackbar events, def classname, methods
15046           signature
15047
15048 2004-07-27 09:29  jordi
15049
15050         * ScrollBar.cs: fixes scrollbar events
15051
15052 2004-07-27 04:38  jordi
15053
15054         * Control.cs: changes to be able to run winforms samples
15055
15056 2004-07-26 11:42  jordi
15057
15058         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
15059           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
15060
15061 2004-07-26 05:41  jordi
15062
15063         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
15064           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
15065           implementation
15066
15067 2004-07-22 09:22  jordi
15068
15069         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
15070           check link overlapping, implement events, and fixes
15071
15072 2004-07-21 10:28  jordi
15073
15074         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
15075
15076 2004-07-21 10:19  jordi
15077
15078         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
15079           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
15080           LinkLabelLinkClickedEventArgs.cs,
15081           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
15082           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
15083           implementation
15084
15085 2004-07-19 13:09  jordi
15086
15087         * Control.cs, Label.cs: label control re-written: added missing
15088           functionlity, events, and properties
15089
15090 2004-07-19 10:49  jordi
15091
15092         * Control.cs: fixes SetBounds logic
15093
15094 2004-07-19 01:29  jordi
15095
15096         * Control.cs: Call RefreshWindow only if the window has created
15097
15098 2004-07-15 14:05  pbartok
15099
15100         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
15101           - Implemented ImageList and ImageList.ImageCollection classes
15102           - Added ColorDepth enumeration
15103           - Updated SWF VS.Net project
15104
15105 2004-07-15 11:06  jordi
15106
15107         * XplatUIStructs.cs: added MsgButons enum
15108
15109 2004-07-15 11:03  jordi
15110
15111         * Control.cs: added basic mouse handeling events
15112
15113 2004-07-15 03:38  jordi
15114
15115         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
15116           Vertical TrackBar control implementation
15117
15118 2004-07-13 09:33  jordi
15119
15120         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
15121
15122 2004-07-13 09:31  jordi
15123
15124         * Control.cs, Form.cs: commit: new properties and fixes form size
15125           problems
15126
15127 2004-07-09 14:13  miguel
15128
15129         * ProgressBar.cs: Spelling
15130
15131 2004-07-09 11:25  pbartok
15132
15133         * ProgressBar.cs:
15134           - Removed usage of Rectangle for drawing. Miguel pointed out it's
15135           faster
15136
15137 2004-07-09 11:17  miguel
15138
15139         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
15140
15141                 * ProgressBar.cs: Fixed spelling for `block'
15142
15143                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
15144                 style guidelines.
15145
15146                 Avoid using the += on rect.X, that exposed a bug in the compiler.
15147
15148 2004-07-08 23:21  pbartok
15149
15150         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
15151           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
15152           BaseCollection.cs, Binding.cs, BindingContext.cs,
15153           BindingMemberInfo.cs, BindingsCollection.cs,
15154           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
15155           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
15156           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
15157           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
15158           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
15159           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
15160           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
15161           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
15162           FrameStyle.cs, GiveFeedbackEventArgs.cs,
15163           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
15164           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
15165           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
15166           InputLanguageChangedEventArgs.cs,
15167           InputLanguageChangedEventHandler.cs,
15168           InputLanguageChangingEventArgs.cs,
15169           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
15170           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
15171           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
15172           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
15173           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
15174           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
15175           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
15176           QueryAccessibilityHelpEventArgs.cs,
15177           QueryAccessibilityHelpEventHandler.cs,
15178           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
15179           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
15180           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
15181           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
15182           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
15183           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
15184           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
15185           XplatUIX11.cs, lang.cs:
15186           - Initial check-in
15187