* LinkLabel.cs: revert the SetStyle change.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-07-06  Chris Toshok  <toshok@ximian.com>
2
3         * LinkLabel.cs: revert the SetStyle change.
4
5 2006-07-06  Chris Toshok  <toshok@ximian.com>
6
7         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
8         (OnEnableChanged): s/Refresh/Invalidate
9         (OnGotFocus): if we have a focused index already, refocus it (so
10         if we mouse out/in to the window it'll focus the right link).
11         (OnKeyDown): move the tab handling out of here.
12         (OnLostFocus): don't set focused_index to -1, so we can refocus it
13         when we lose focus.
14         (OnMouseDown): don't Capture here - Control handles it.  Also,
15         focus the active link.
16         (OnMouseUp): don't deal with Capture.
17         (OnPaintBackgroundInternal): remove.
18         (OnTextAlignChanged): CreateLinkPieces before calling the
19         superclass's method.
20         (OnTextChanged): call CreateLinkPieces before calling superclass's
21         method.
22         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
23         move around.
24         (Select): implement this, moving the selection between different
25         links, and call parent.SelectNextControl if we don't have another
26         link to focus in the given direction.
27         (CreateLinkPieces): call Invalidate instead of Refresh.
28         
29 2006-07-06  Chris Toshok  <toshok@ximian.com>
30
31         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
32         new LinkLabel internals.
33
34         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
35         over pieces looking for active/focused/etc links.  also, deal with
36         runs of text (and links) with embedded \n's in them, and use
37         MeasureCharacterRanges instead of MeasureString to figure out the
38         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
39         two-step.
40
41 2006-07-04  Jackson Harper  <jackson@ximian.com>
42
43         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
44         XKB or key auto repeat, do it manually.  Without key auto repeat,
45         when a key is held down we get key press, key release, key press,
46         key release, ... with auto repeat we get key press, key press, key
47         press ..., and then a release when the key is actually released.
48
49 2006-07-03  Jackson Harper  <jackson@ximian.com>
50
51         * TabControl.cs:
52         * ThemeWin32Classic.cs: Tabs do not obey normal background color
53         rules, they are always control color regardless of the background
54         color.
55
56 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
57
58         * FileDialog.cs: Added internal class MWFConfig.
59           Removed Registry support and replaced it with support for the new
60           MWFConfig class. See MWFConfig comments for more information.
61
62 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
63
64         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
65           rectangle. Added some patches from eno from bug #78490 and fixed
66           the arrow position for small up and down CPDrawScrollButtons.
67
68 2006-06-30  Jackson Harper  <jackson@ximian.com>
69
70         * InternalWindowManager.cs: Remove some debug code.
71         * Form.cs: When an MdiParent is set to null, the window is
72         "detatched" and becomes a normal window.
73         * MdiClient.cs: Don't bring the new child form to the front until
74         it is activated (setting it as active does this), this makes the
75         previously active forms titlebar get redrawn as inactive.
76
77 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
78
79         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
80           with later controls
81
82 2006-06-29  Mike Kestner  <mkestner@novell.com>
83
84         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
85         arrow in keynav state.  Fixes #78682.
86
87 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
88
89         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
90           order (fixes #78393)
91
92 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
93
94         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
95           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
96           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
97           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
98           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
99           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
100           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
101           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
102           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
103           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
104           enumerations (FlagsAttribute, SerializableAttribute, added/removed
105           values)
106
107 2006-06-28  Mike Kestner  <mkestner@novell.com>
108
109         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
110
111 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
112
113         * PropertyGrid.cs,
114           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
115           item lines from other area (It also makes BackColor consistent and
116           compatible with .NET). Fixed bug #78564.
117
118 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
119
120         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
121         Patch from Eno for #78555.
122
123 2006-06-27  Chris Toshok  <toshok@ximian.com>
124
125         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
126
127         * DataGridColumnStyle.cs: same.
128
129         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
130         
131         * DataGridDrawingLogic.cs: nuke.
132
133 2006-06-27  Chris Toshok  <toshok@ximian.com>
134
135         * DataGridTableStyle.cs: clean up the constructors, and build the
136         list of child relations for this table.  I have no idea if this is
137         where we should be doing it (it probably isn't), but since we're
138         already iterating over the properties..
139
140         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
141         struct and array for keeping track of row information, similar to
142         what's shown in a hack on
143         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
144
145         * Theme.cs: be consistent about the naming of DataGrid methods,
146         prefering ColumnWidths and RowHeights over columnsWidths and
147         RowsHeights.
148
149         * ThemeWin32Classic.cs: same, and also add support for variable
150         sized rows (and the +/- expansion icons for related rows).
151
152 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
153
154         * TextBoxBase.cs: Applied Eno's patch from #78660
155
156 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
157
158         * Form.cs (ScaleCore): We don't want to scale our form if it's
159           state is minimized or maximized, but we still need to scale our
160           child windows. Also, added try/finally block to ensure layout
161           gets reset (Fixes #78697)
162
163 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
164
165         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
166
167 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
168
169         * Form.cs: Fixed c+p error and added check to resize form if minimum
170           size is bigger than current size (Fixes #78709)
171
172 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
173
174         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
175
176 2006-06-26  Mike Kestner  <mkestner@novell.com>
177
178         * ComboBox.cs: only do Keypress handling in the combo when there  
179         are items in the collection. Fixes #78710.
180
181 2006-06-26  Chris Toshok  <toshok@ximian.com>
182
183         * Binding.cs: make this work bi-directionally.  also, clear up
184         other mixups between Push/Pull Data (e.g. we're supposed to pull
185         data when validating).
186
187         * BindingManagerBase.cs: trim some fully qualified collection
188         types.
189
190         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
191
192 2006-06-23  Chris Toshok  <toshok@ximian.com>
193
194         * PropertyManager.cs: It appears (according to the unit tests)
195         that PropertyManager doesn't use
196         PropertyDescriptor.AddValueChanged to track propery value changes
197         in its datasource, but uses the same scheme as Binding, where it
198         looks for a <Property>Changed event and binds to it.
199
200         Also, according to the docs, IsSuspended always returns false for
201         a property manager with a non-null datasource.
202
203 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
204
205         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
206           need to update the actual DialogResult. (Fixes #78613)
207
208 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
209
210         * Form.cs (ShowDialog): Release any captures before running the
211           new message pump (fixes #78680)
212
213 2006-06-22  Mike Kestner  <mkestner@novell.com>
214
215         * ListView.cs: Layout column widths properly in details mode even 
216         if HeaderStyle.None is set.  Fixes #78691.
217
218 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
219
220         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
221
222 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
223
224         * Control.cs (ContainsFocus): Using new driver method to get focused
225           window, instead of trying to use internal tracking var, which can
226           recursion issues (Fixes #78685)
227         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
228           XplatUIWin32.cs: Added GetFocus method to return focused window
229
230 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
231
232         * ColorDialog.cs: when the mouse button is pressed inside the color
233         matrix, don't let the cursor move out of it until the button is
234         released, which is the behavior on windows. Changed 'colours' by
235         'colors' to use the same word consistently.
236
237 2006-06-21  Chris Toshok  <toshok@ximian.com>
238
239         * DataGrid.cs: add in some basic navigation stuff (navigating to a
240         child relation and back, using a stack).  Also, remove
241         GetDataSource and the code that calls it - it's not needed.  Also,
242         track CurrencyManager.ListName's removal.
243
244 2006-06-21  Chris Toshok  <toshok@ximian.com>
245
246         * CurrencyManager.cs: push some of the original type checking from
247         BindingContext.CreateBindingManager to here, and remove some of
248         the finalType stuff.  Need more tests to make sure I've got the
249         ListName part right, and we might need more in SetDataSource.
250
251         * PropertyManager.cs: add a ctor that takes just the datasource,
252         and no property name.  Make SetDataSource work with a null
253         property_name, and make Current return the data_source if the
254         property descriptor is null.  this makes 'string foo = "hi";
255         BindingContext[foo].Current' return "hi" as it should.
256
257         * RelatedCurrencyManager.cs: make this code more generic - there's
258         no reason the parent manager has to be CurrencyManager, and
259         there's no reason to pass the DataRelation.  It suffices to use a
260         BindingManagerBase and PropetyDescriptor.
261
262         * RelatedPropertyManager.cs: make a similar change here.
263         
264         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
265         flower I knew it could be.
266
267 2006-06-20  Chris Toshok  <toshok@ximian.com>
268
269         * PropertyManager.cs: the PropertyChangedHandler is invoked when
270         data in the source has changed and we need to update the control,
271         so s/PullData/PushData.
272
273         * CurrencyManager.cs: Refresh is meant to update the control from
274         data in the datasource.  So, s/PullData/PushData.
275
276         * BindingContext.cs: add more ugliness (we weren't handling the
277         case where data_source = DataTable and data_member = column_name).
278
279         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
280         from the perspective of the datasource.  PullData pulls from the
281         control, PushData pushes to the control.
282
283 2006-06-20  Chris Toshok  <toshok@ximian.com>
284
285         * BindingContext.cs: rewrite the CreateBindingManager code to
286         handle navigation paths more or less properly.  This could
287         definitely stand some more work, in particular to push the
288         recursion up to the toplevel.  But that relies on fixes in other
289         places (System.Data comes to mind).
290
291         Also, move to a flat hashtable (and encode the twolevel nature of
292         the dictionary into the hash key).  This lets us implement the
293         IEnumerable.GetEnumerator method.
294
295         * RelatedCurrencyManager.cs: new class.  Update our view based on
296         our relation and our parent CurrencyManager's position.
297
298         * CurrencyManager.cs: split out some logic from the ctor into
299         SetView, so it can be called from the new RelatedCurrencyManager
300         subclass.
301
302         * RelatedPropertyManager.cs: new class.  Update our datasource
303         based on the position of our parent CurrencyManager.
304
305         * PropertyManager.cs: split out some logic from the ctor into
306         SetDataSource, so it can be called from the new RelatedDataSource
307         subclass.  Also, make the Current getter return the value
308         of the PropertyDescriptor, not the data_source.
309
310         * Binding.cs: no need to duplicate the string splitting code here.
311
312 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
313
314         * Control.cs:
315           - set_Enabled: OnEnabledChanged is not called if the inherited state 
316             of the control is not altered, even though  we might be changing the
317             internal state of the control (#78458)
318           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
319             OnEnabledChanged, to allow easy altering of any child window state
320           - OnEnabledChanged: Added code to enable/disable driver window state
321           - OnParentEnabledChanged: Instead of firing the event, call 
322             OnEnabledChanged, which will fire the event and also a) set driver
323             window state and pass the enabled state to any grandchildren (#78458)
324
325 2006-06-19  Jackson Harper  <jackson@ximian.com>
326
327         * InternalWindowManager.cs: We don't set the cursor explicitly
328         thats done via the response to NCHITTESTs.
329         - Don't need to adjust for titlebar heights anymore, the
330         coordinates are coming in the correct coordinates now (see peters
331         last patch).
332
333
334 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
335
336         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
337           being translated relative to whole window, instead of client window.
338           That caused broken offsets on mouseclick (and caused gas for our
339           InternalWindowManager)
340
341 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
342
343         * TextControl.cs:
344           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
345           - Undo(): Added replay of cursor move on DeleteChars action; added
346             calling Undo() again if a recorded cursor move is invalid (to
347             ensure that some action is performed on Undo)
348         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
349
350 2006-06-16  Jackson Harper  <jackson@ximian.com>
351
352         * MdiClient.cs: Instead of just sizing maximized windows when
353         there is a resize we also have to adjust the Y of minimized
354         windows, so they stay pinned to the bottom of the mdi container.
355         - Eliminate separate tracking of the active control, we can just
356         get this from the controls collection.
357         - Paint the decorations for the newly activated titlebar so we get
358         a pretty blue bar.
359         * InternalWindowManager.cs:
360         * ThemeWin32Classic.cs: Minimized windows get all three buttons
361         even if they are a tool window.
362         
363 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
364
365         * TextControl.cs (Undo): Handle non-existent cursor locations in the
366           undo buffer, these can happen when text was deleted and the cursor
367           was recorded first. Since we will also have a recorded cursor
368           after the delete this is not an issue. (Fixes #78651)
369
370 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
371
372         * AccessibleObject.cs: Remove dependence on Control.is_selected;
373           instead properly track control states internally (allows us to
374           remove is_selected from Control)
375
376 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
377
378         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
379         whose width is not a multiple of 8.
380
381 2006-06-13  Jackson Harper  <jackson@ximian.com>
382
383         * MdiClient.cs:  Only maximize the next child if the current one
384         is maximized.
385
386 2006-06-13  Chris Toshok  <toshok@ximian.com>
387
388         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
389         modified.  Also, guard against grid or grid_drawing being null in
390         Invalidate.
391
392         * DataGrid.cs: Reformat tons of getters/setters.  In the
393         DataMember setter, just call SetNewDataSource instead of
394         duplicating some of its functionality.  In SetNewDataSource, don't
395         check ListManager for null, since the property getter creates the
396         object if needed.
397
398         * DataGridTableStyle.cs: don't set TableStyle or call
399         SetDataGridInternal on the column here, it's done in
400         GridColumnStylesCollection.Add.
401
402         * GridColumnStylesCollection.cs: fix all the explicit interface
403         implementations to just call our methods.  Nuke AddInternal() and
404         move the body of it to Add().  Also, add a call to
405         column.SetDataGridInternal to Add().
406
407         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
408         base()+duplicate code.  Also, use the Format property instead of
409         format to generate an Invalidate ala MS.  Lastly, create the
410         textbox here, unconditionally.
411         (set_Format): call Invalidate.
412         (get_TextBox): no need to call EnsureTextBox.
413         (Commit): remove the message box.
414         (Edit) remove the call to EnsureTextBox.
415         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
416         (EnterNullValue): no need to check textbox for null.
417         (HideEditBox): no need to check textbox for null.
418         (SetDataGridInColumn): add the textbox to the grid's controls.
419         (EnsureTextBox): nuke.
420         
421 2006-06-13  Jackson Harper  <jackson@ximian.com>
422
423         * MdiWindowManager.cs: Hook up to the maximized menus paint event
424         and redraw the buttons when needed. Unhook when the window is
425         unmaximized.
426         * MainMenu.cs: Add an internal Paint event, the mdi window manager
427         needs this so that it can redraw its buttons when the menu is
428         repainted.
429         * InternalWindowManager.cs:
430         * Form.cs: The method order has changed for DrawMaximizedButtons,
431         so that it can be a PaintEventHandler.
432         
433 2006-06-13  Jackson Harper  <jackson@ximian.com>
434
435         * MdiClient.cs: When we close a maximized mdi window, the next mdi
436         window is activated and maximized, even if it wasn't before.
437         - When  a new window is activated repaint the decorations of the
438         old one, so that it no longer has the Active "look" (the blue
439         titlebar).
440         * InternalWindowManager.cs: Open up CreateButtons to base classes
441         so they can recreate the buttons on state changes.
442         - If a window is maximized give it all three buttons
443         * MdiWindowManager.cs: Create the titlebar buttons when the state
444         is changed, this is needed because a toolwindow will not have all
445         three buttons until it is maximized.
446
447 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
448
449         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
450           Fixed bug #78609.
451
452 2006-06-12  Jackson Harper  <jackson@ximian.com>
453
454         * KeysConverter.cs: Make sure we handle the Ctrl special case
455         if its the only key.
456         
457 2006-06-12  Jackson Harper  <jackson@ximian.com>
458
459         * Theme.cs: Add a method to get the size of a managed window
460         toolbar button.
461         * InternalWindowManager.cs: Remove the ButtonSize property, this
462         should be retrieved from the theme.
463         * MdiWindowManager.cs: Get the button size from the theme
464         * ThemeWin32Classic.cs: Make the method to get the managed window
465         titlebar button size public.
466         - Handle the different button sizes of maximized toolwindows
467         (should match any maximized window).
468         - Get the titlebar height from the theme, not the WM (which gets
469         it from the theme).
470
471 2006-06-12  Jackson Harper  <jackson@ximian.com>
472
473         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
474         event down to the mdi window manager.
475         - Expose some extra stuff to base classes
476         - Make sure to end the Capture on an NC Mouse up, so that we can
477         get double clicks properly, and the sizing doens't stick.
478         - When doing PointToClient contain it in the workable desktop
479         area, this prevents windows from changing size when the cursor is
480         pulled outside of the working area while sizing.
481         * MdiWindowManager.cs: When we get a double click maximize the
482         window.
483         - Reset the cursor after handling mode changes.
484
485 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
486
487         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
488           current desktop, instead of just assuming a 0, 0 origin. This
489           is needed for our internal window manager, to know the top
490           margin of the desktop
491
492 2006-06-12  Chris Toshok  <toshok@ximian.com>
493
494         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
495         we need this to get rid of the selected background in the bool
496         column.
497         (CancelEditing): move the ConcedeFocus call to above the Abort
498         call.  Also, set is_changing to false and invalidate the row
499         header if we were changing before.
500         (ProcessKeyPreviewInternal): remove, since noone outside this
501         class calls it anymore.  Roll the code into ProcessKeyPreview.
502         (EndEdit): remove the internal version.
503         (InvalidateCurrentRowHeader): make private.
504
505         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
506         Keys.Escape handling (and with it the last call to
507         DataGrid.EndEdit from outside the class.)
508
509
510 2006-06-12  Chris Toshok  <toshok@ximian.com>
511
512         * DataGridTextBox.cs (.ctor): isedit defaults to false.
513         (OnKeyPress): set isedit to true.
514         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
515         already handled by the grid.
516
517         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
518         right.  ugh.
519         (set_DataSource): SetDataSource always returns true, so stop
520         putting it in an if statement.
521         (EndEdit): get rid of some {}'s
522         (ProcessGridKey): return true in case Keys.Escape.
523         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
524         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
525         PositionChanged, stopped connecting to CurrentChanged.
526         (GetDataSource): simplify this a bunch.
527         (SetDataSource): change return type from bool to void.
528         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
529         to this, and make sure we don't set ListManager.Position inside
530         set_CurrentCell.
531         (OnListManagerItemChanged): if we're passed an actual index,
532         redraw that row.
533
534         * CurrencyManager.cs (set_Position): don't call PullData here.
535
536 2006-06-09  Jackson Harper  <jackson@ximian.com>
537
538         * TreeNode.cs:  Recalculate the visible order before doing the
539         Expand/Collapse Below calls, because those calls generate an
540         expose.
541         - Reduce calls to the TreeView property, which is mildly expensive
542         by using a local var.
543         * Form.cs: Layout the MDI child windows when creating the parent
544         form.
545         - Don't use the internal constructor anymore
546         * MdiClient.cs: use the parent form width/height (if available)
547         when laying out the child windows, we do this because the
548         mdiclient isn't docked yet when the initial layout is done.
549         - Don't need an internal constructor anymore.
550
551 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
552
553         * FileDialog.cs: handle access errors when trying to create a folder
554         or changing to a directory. No need to initialize out parameters.
555
556 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
557
558         * FileDialog.cs: Append a number when creating a new folder if the
559           folder already exists (use parenthesis instead of square brackets)
560
561 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
562
563         * FileDialog.cs:
564           - Disabled registry support for windows and added better registry
565             error checking for other systems (need to investigate why it
566             works perfectly on my system)
567           - If a folder already exist show an error MessageBox instead of
568             trying to create an indexed name.
569           - Fixed a non intentional typo.
570
571 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
572
573         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
574
575 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
576
577         * FileDialog.cs: When creating a new folder don't crash if the
578           folder already exists.
579
580 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
581
582         * FileDialog.cs: Allmost a complete rewrite.
583           - added a "virtual" file system that handles the differences
584             between unix and windows file systems (especially the directory
585             structure). Moved most of the directory and file handling code
586             into the vfs.
587             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
588             UnixFileSystem and FSEntry.
589           - Recently used folder/directory, size, location and used file names
590             (file name ComboBox) are now stored in the registry and get read
591             before the dialog shows up (fixes part 6 of bug #78446).
592           - Creation of new folders/directories is now possible (context menu
593             or ToolBar). Added TextEntryDialog for this that fills in the gap
594             until ListView.LabelEdit works.
595           - Fixed cursor handling (bug #78527) and focus handling for
596             PopupButtonPanel
597           - Various "Search in" ComboBox enhancements. The content of the
598             dropdown listbox now almost matches ms.
599           - Changed the behaviour when the user switches to SpecialFolder
600             Recent to show the ListView in View.Details.
601           - Beside using the ToolBar to change the View property of the
602             file ListView it is now possible to use the context menu too.
603
604 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
605
606         * ComboBox.cs: Don't create a new ObjectCollection when an item
607           gets inserted. Just insert the item in the existing object_items
608           ArrayList.
609
610 2006-06-08  Jackson Harper  <jackson@ximian.com>
611
612         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
613         that the treeview and root node checks are done also, this fixes a
614         regression i caused in the unit tests.
615
616 2006-06-07  Wade Berrier <wberrier@novell.com> 
617
618         * RichTextBox.cs: More ISO8859-1 -> unicode
619
620 2006-06-07  Mike Kestner  <mkestner@novell.com>
621
622         * ComboBox.cs : use items to hold highlight/selection so that
623         collection insertions don't require synchronization.
624
625 2006-06-07  Jackson Harper  <jackson@ximian.com>
626
627         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
628         routine.  We now always keep the sized edge at the cursor instead
629         of computing movement and adjusting rects.  There is one buglet
630         with this method though when the cursor is moved over area that
631         the window can not expand too (such as the toolbars on the desktop).
632
633 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
634
635         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
636         here. Fixes crash on startup in AlbumSurfer.
637
638 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
639
640         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
641           values
642
643 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
644
645         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
646         statement to avoid calling XNextEvent which will block if another thread
647         took the event that we were expecting. Fixes bug #78605.
648
649 2006-06-07  Mike Kestner  <mkestner@novell.com>
650
651         * ListView.cs : isolated checkbox clicking from the selection logic.
652         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
653
654 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
655
656         * Form.cs: Check that the value passed to Form.DialogResult
657         is a valid enum value.
658
659 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
660
661         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
662         Computer'. Clicking it in the network view goes to 'My Computer'.
663         Added CIFS filesystem type. Display the mount point of filesystems.
664         Avoid duplicate mount points (happens for me with CIFS);
665
666 2006-06-06  Jackson Harper  <jackson@ximian.com>
667
668         * InternalWindowManager.cs: Draw the maximized windows buttons
669         when resizing.
670
671 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
672
673         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
674         all other dialogs. Fixes bug #78585.
675
676 2006-06-06  Mike Kestner  <mkestner@novell.com>
677
678         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
679         Only invalidate checkbox on checkstate changes to avoid flicker.
680         * ListBox.cs : avoid unselect/select when clicking selected item.
681         avoid reselection flicker for already multiselected items.
682         Fixes #78382.
683
684 2006-06-06  Jackson Harper  <jackson@ximian.com>
685
686         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
687         the parent form so that the menu is removed if needed.
688
689 2006-06-06  Mike Kestner  <mkestner@novell.com>
690
691         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
692         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
693
694 2006-06-06  Mike Kestner  <mkestner@novell.com>
695
696         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
697
698
699 2006-06-06  Jackson Harper  <jackson@ximian.com>
700
701         * Control.cs: Use the property (instead of the field) to get the
702         default cursor so it is instantiated correctly.
703         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
704         resizes so we need to manually repaint the window decorations here.
705         - Set the titlebar button locations as soon as they are created,
706         otherwise they are not set correctly on win32.
707         
708 2006-06-06  Chris Toshok  <toshok@ximian.com>
709
710         * CurrencyManager.cs (set_Position): call PullData before
711         OnCurrentChanged.
712         (AddNew): after calling IBindingList.AddNew, update our
713         listposition, and call OnCurrentChanged/OnPositionChanged (without
714         calling PullData).
715         (OnCurrentChanged): remove the call to PullData from here.
716         (OnItemChanged): remove the call to PushData from here.
717         (OnPositionChanged): change the test from == null to != null to
718         match the other methods.
719         (ListChangedHandler): the grossest part of the patch.  Implement
720         this such that it passes the unit tests in CurrencyManagerTest and
721         the output more or less matches that of MS's implementation.
722  
723 2006-06-06  Mike Kestner  <mkestner@novell.com>
724
725         * ListView.cs : only update check state on single click.
726         * ThemeWin32Classic.cs : fix focus drawing for details view without
727         fullrowselect.  Fixes #78454.
728         * XplatUIX11.cs : fix for double click emission.
729
730 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
731
732         * PropertyGridView.cs : Applied Atsushi's patch to fix
733         font dialog bug  (#78197).
734
735 2006-06-05  Jackson Harper  <jackson@ximian.com>
736
737         * TreeNode.cs: Compute the next node for expanding/collapsing
738         correctly. We now factor in nodes without a NextNode
739         correctly. (Fixes somes cases in nunit-gui).
740         * InternalWindowManager.cs: Set the bounds when updating the
741         virtual position of a tool window.
742         
743 2006-06-05  Chris Toshok  <toshok@ximian.com>
744
745         * DataGrid.cs: rename cached_currencymgr to list_manager.
746         (set_CurrentCell): move SetCurrentCell code here, and clean it up
747         some.
748         (CurrentRow, CurrentColumn): single accessors so we can make the
749         cursor movement code a lot easier to understand.
750         (CurrentRowIndex): implement this in terms of CurrentRow.
751         (BeginEdit): clean this up a bit.
752         (CancelEditing): sort out the is_editing/is_changing/is_adding
753         stuff a little.
754         (EndEdit): minor changes.
755         (OnKeyDown): add a comment about a (most likely) unnecessary
756         check.
757         (OnMouseDown): cancel editing when we click on a row header.  And
758         use the CurrentRow setter, not CurrentCell.
759         (ProcessDialogKey): directly call ProcessGridKey.
760         (UpdateSelectionAfterCursorMove): factor out this common block of
761         code (it's used everywhere that we move the cursor by updating row
762         or column).
763         (ProcessGridKey): pretty substantial overhaul.  Use the
764         CurrentRow/CurrentColumn properties to make the code a lot more
765         readable.  Only use the CurrentCell property when we have to
766         modify both row and column at once.  Tab behavior is still broken,
767         and Delete is untested.
768         (Select): if we have no selected rows, set selection_start to
769         @row.
770         (EditCurrentCell): rename EditCell this.  It was only ever invoked
771         with CurrentCell as the arg, so drop the arg and rename it.
772
773         * DataGridColumnStyle.cs: clean up the constructors a little, and
774         drop CommonConstructor().
775
776         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
777         actually get notified when the user hits it.
778         (ProcessKeyMessage): *substantially* simplify this method.
779         There's no reason (that I can see) for the textbox to be making
780         calls into the datagrid at all.  Remove all of them but the ones
781         for Enter handling.  those will take some more work.
782
783         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
784         calling HideEditBox.
785         (HideEditBox): if we have an active textbox, render it invisible
786         without causing a re-layout of the datagrid.
787
788 2006-06-05  Mike Kestner  <mkestner@novell.com>
789
790         * ListView.cs : fix NRE crasher when focuseditem is cleared by
791         collection changes by resetting it to Items[0].  Fixes #78587.
792
793 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
794
795         * MessageBox.cs: if the height of the text is larger than the icon_size,
796         use that. Fixes bug #78575.
797
798 2006-06-05  Jackson Harper  <jackson@ximian.com>
799
800         * TreeView.cs: Fix line drawing when scrolling.  To do this each
801         node is basically responsible for drawing its entire horizontal
802         area.  When drawing a node it draws its parent node lines if
803         needed.
804         - Adjust the clip area to the viewport rectangle
805         - Fix Left/Right key handling to match MS. (It expand/collapses
806         and moves to parents/first child but does not move selection to
807         sibling nodes).
808         - Fix SetTop to work with new bound calculation code
809         - When scrollbars are no longer needed we need to reset scrolling
810         vars and recalculate the visible order so the redraw is correct
811         * TreeNode.cs: We can't expand/collapse nodes with no children.
812
813 2006-06-03  John Luke  <john.luke@gmail.com> 
814
815         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
816         so the colors work without dev packages
817         
818 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
819
820         * Control.cs 
821           - Select: Implemented to just use activate. Seems to match MS 
822             behaviour closest. Documented to only do actual control walking 
823             based on it's parameters if in a container control so I moved 
824             the code there.
825           - Removed selection check logic from our internal Select() method
826         * ContainerControl.cs:
827           - Select: Moved selection logic from Control here, since MS documents
828             that containers obey the bool arguments. No longer calling base
829
830 2006-06-02  Jackson Harper  <jackson@ximian.com>
831
832         * TreeView.cs: If the selected node isn't changed when we get
833         focus update the previously selected node so that we see the
834         selection box.
835
836 2006-06-02  Mike Kestner  <mkestner@novell.com>
837
838         * ComboBox.cs: restructure grab and general mouse event handling.
839         Make the composite control raise mouse events like it was a single
840         control for leaves/enters/motion/up/down events.  fix dropdown list
841         coordinate mangling and refactor it into the scrollbar subclass to
842         reduce code duplication.  Fixes #78282 #78361 and #78457.
843
844 2006-06-02  Mike Kestner  <mkestner@novell.com>
845
846         * ScrollBar.cs: remove Capture setting/clearing, as it happens
847         automatically in the Control.WndProc.
848
849 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
850
851         * FileDialog.cs: fix crash when running SharpChess, which sets the
852         FilterIndex to 2 with only one Filter.
853
854 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
855
856         * ToolBar.cs: add SizeSpecified property.
857         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
858         try to figure out our real size, otherwise fallback to what the
859         container says.
860
861 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
862
863         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
864         * Control.cs (WndProc): MS always calls the DefWndProc to pass
865           up the event
866
867 2006-06-01  Mike Kestner  <mkestner@novell.com>
868
869         * ListView.cs: revamp the focus management in ListView.  It still
870         causes churn of LostFocus/GotFocus emissions on clicks, but it's
871         better than not handling focus at all.  Will revisit when pdb feels
872         the general focus handling is solid.  Fixes #78526.
873
874 2006-06-01  Jackson Harper  <jackson@ximian.com>
875
876         * TreeView.cs: Set the default border style in the constructor.
877         - Move painting to use OnPaintInternal instead of capturing
878         WM_PAINT, this is the correct way of doing things
879         - UpdateBelow shouldn't invalidate the scrollbar area
880         - Cap the top on update below in case the node was above the top
881         of the viewport rectangle.
882         - ExpandBelow and Collapse below need to obey Begin/End Update.
883         * TreeNode.cs: Make is_expanded internal so the treenode
884         collection can change it without firing the whole event chain.
885         * TreeNodeCollection.cs: When clearing all the child nodes make
886         sure to recalc the visible order.
887         - Improve algo for remove the top node
888
889 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
890
891         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
892           SendMessage directly calling window procedures, which in turn might
893           call SetFocus()
894
895 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
896
897         * Control.cs: Don't handle WM_SETFOCUS if the same window already
898           has focus (works around X11 sending a FocusIn after our SetFocus)
899         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
900
901 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
902
903         * Mime.cs: Fix for the NET_2_0 build.
904           NameValueCollection needs StringComparer now.
905
906 2006-05-31  Chris Toshok  <toshok@ximian.com>
907
908         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
909         return (via an out parameter) the starting X of the column.
910         (UpdateVisibleColumn): track change to FromPixelToColumn.
911         (HitTest): add a ColumnResize case here.
912         (DrawResizeLine): new function, probably poorly named.
913
914         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
915         only need to keep one reference.
916         (set_ListManager): same.
917         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
918         Also, add support for HitTestType.ColumnResize.
919         (OnMouseMove): add column resize behavior here, and change the
920         cursor to the correct one as we move around the datagrid.
921         (OnMouseUp): terminate the column resize if we're resizing.
922         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
923         for the current cell.
924         (ConnectListManagerEvents): use cached_currencymgr.
925         (DisconnectListManagerEvents): fill this in, using
926         cached_currencymgr.
927         (SetCurrentCell): remove cached_currencymgr_events handling.
928         (SetDataMember): only call DisconnectListManagerEvents if
929         cached_currencymgr is != null.
930         (SetDataSource): same.
931         (OnListManagerCurrentChanged): cached_currencymgr_events ->
932         cached_currencymgr.
933
934 2006-05-31  Jackson Harper  <jackson@ximian.com>
935
936         * BindingManagerBase.cs: Remove somedebug code that creeped into
937         SVN.
938         * TreeNode.cs: We get the indent level dynamically right now, so
939         don't track it as a member.
940         * TreeNodeCollection.cs: Make sure all nodes added to the list
941         have parents, treeviews/topnodes setup properly.
942         - Don't attempt to track indent level.
943
944 2006-05-30  Jackson Harper  <jackson@ximian.com>
945
946         * BindingContext.cs: Create the currency manager tables here.
947         This allows us to more easily create null tables (when bad data
948         members are used), and more easily create related currency
949         managers.
950         * CurrencyManager.cs: All the table creation stuff is done by the
951         binding context now.
952         - Current should throw an exception if listposition is -1.
953         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
954         been bound yet.
955
956 2006-05-30  Mike Kestner  <mkestner@novell.com>
957
958         * ListView.cs: allow reexpansion of zero-width column headers.
959         Fixes #78528.
960
961 2006-05-28  Chris Toshok  <toshok@ximian.com>
962
963         * CurrencyManager.cs (get_Current): after the late binding
964         listposition = -1 fix, we need to guard against it here and return
965         null, otherwise we raise an exception (which is swallowed
966         elsewhere, and breaks datagrid databinding.)
967
968 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
969
970         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
971           than WM_SYSKEY, don't throw if get something unexpected (#78507)
972
973 2006-05-26  Jackson Harper  <jackson@ximian.com>
974
975         * ControlPaint.cs:
976         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
977         values, it's faster and it's all we care about (we don't care if
978         the names aren't equal).
979         * KeyboardLayouts.cs: Eliminate some dead code.
980         - Lazy init things
981         * X11Keyboard.cs: Lazy init keyboard detection.
982         - Cleanup access modifiers a little.
983
984 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
985
986         * XplatUIX11.cs: Once again, attempting to get layout just right.
987
988 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
989
990         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
991           the sizes of each link section, that will result in sizes that
992           match DrawString's layout (Fixes #78391)
993
994 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
995
996         * FileDialog.cs: If AddExtension property is true autocomplete the
997           extensions in SaveFileDialog correctly. Fixes bug #78453.
998           Set MyNetwork and MyComputer to "C:\" for windows. This should
999           fix part 8 of bug #78446 for now.
1000
1001 2006-05-26  Chris Toshok  <toshok@ximian.com>
1002
1003         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
1004         invalidate the current row header if we need to, but presumably
1005         we'll invalidate the row corrsponding to the bounds or
1006         editingControl.
1007         (GridHScrolled): switch back to this method, as it's part of the
1008         public api.  *sigh*.
1009         (GridVScrolled): same.
1010         (OnMouseWheel): hack up something that more or less works.  Call
1011         GridHScrolled/GridVScrolled directly, instead of duplicating much
1012         of their code here.
1013         (EnsureCellVisibility): reinstate a bunch of this code, since we
1014         can't just set the scrollbar Value and expect to do all the work
1015         in the ValueChanged handler.  Also, Call Update() after scrolling
1016         in one direction so the other XplatX11.ScrollWindow call has the
1017         proper stuff in the proper places.
1018         (EditCell): set is_editing to true before calling .Edit.
1019
1020         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
1021         don't bother comparing first.
1022         (OnKeyPress): call grid.ColumnStartedEditing before calling
1023         base.OnKeyPress.  this will set is_changing and invalidate the row
1024         header if necessary.
1025         (ProcessKeyMessage): for WM_CHAR messages, call
1026         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
1027         and WM_KEYDOWN.
1028         
1029         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
1030         it's done in the DataGrid.
1031         (NextState): call grid.ColumnStartedEditing, which takes care of
1032         invalidating the row header (and setting is_changing).
1033
1034         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
1035         here.  it's done in the DataGrid.
1036
1037 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1038
1039         * Control.cs: allow changing the cursor when the mouse position is
1040         out of bounds but Capture is set.
1041         * LinkLabel.cs: handle the case when the mouse button is pressed on the
1042         linklabel but released somewhere else.
1043
1044 2006-05-25  Jackson Harper  <jackson@ximian.com>
1045
1046         * TreeView.cs: When we get focus if there is no selected node make
1047         it the top node
1048         - Remove some uneeded setup code from Draw.
1049         * TreeNodeCollection.cs: If the tree doesn't have a top node when
1050         a new node is inserted make the new node the top.
1051         * XplatUIX11.cs:
1052         * Timer.cs: Use Utc time so that no local time zone stuff needs to
1053         be used (should be faster).
1054         
1055 2006-05-25  Chris Toshok  <toshok@ximian.com>
1056
1057         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
1058         problem with the last commit.
1059
1060 2006-05-25  Chris Toshok  <toshok@ximian.com>
1061
1062         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
1063         need the invalidate call here, while scrolling right-to-left via
1064         the left arrow key (i.e. moving the editing cell while scrolling).
1065
1066         * DataGrid.cs (.ctor): remove the initialization of
1067         ctrl_pressed/shift_pressed.  We no longer track them using key
1068         up/down handlers, but by using Control.ModifierKeys.  Also, switch
1069         to using ValueChanged handlers on the scrollbars instead of
1070         Scrolled event handlers.  This simplifies a bunch of the scrolling
1071         code.
1072         (GridHValueChanged): rename from GridHScrolled, and change it to
1073         work with the new event args.
1074         (GridVValueChanged): same.
1075         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
1076         (OnMouseWheel): actually scroll the datagrid.  Don't change the
1077         selected cell.
1078         (ProcessGridKey): correct all the keyboard navigation stuff I
1079         could find.  Ctrl up/down/left/right/home/end work now.
1080         (EnsureCellVisibility): correct method name spelling.  Also,
1081         simplify this a touch by not explicitly calling the
1082         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
1083         scrollbar value.
1084         (OnKeyUpDG): no need for this method now.
1085         
1086 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1087
1088         * LinkLabel.cs: display the OverrideCursor when hovering the label.
1089         Fixes bug #78392.
1090
1091 2006-05-25  Chris Toshok  <toshok@ximian.com>
1092
1093         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
1094         r61019.
1095
1096 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1097
1098         * Application.cs: Moved setting of is_modal and closing to before
1099           we create the control, to allow the event handlers called as a
1100           result of creation affect closing. Also removed Gonzalo's previous
1101           change to setting DialogResult, the behaviour has been moved to 
1102           Form.ShowDialog()
1103         * Form.cs: 
1104           - ShowDialog(): Removed explicit creation of the form, let RunLoop
1105             handle it instead
1106           - ShowDialog(): If no dialog result is set, we need to return Cancel
1107           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
1108             the close is cancelled
1109
1110 2006-05-25  Jackson Harper  <jackson@ximian.com>
1111
1112         * StatusBar.cs: We only need to update the sizes of the other
1113         panels when we have auto size contents.  Also we are only updating
1114         the contents of the panel, not the borders, so compensate for the
1115         border width (TODO: get this width from the theme somehow).
1116         * TreeView.cs: Scrollable is true by default
1117         - Use invalidate instead of refresh where needed
1118         - Factor the scrollable value into scrollbar updating
1119         - Update the scrollbars if the Scrollable property is altered
1120         - Update the selected node if its ImageIndex is changed
1121         - Handle null nodes in UpdateNode (mainly so we don't have to
1122         check if selected is null when updating it
1123         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
1124         are factored into the visible count
1125         - Use VisibleCount for clarity in the code
1126         - When the font is changed we need to recurse through all the
1127         nodes and invalidate their sizes
1128         
1129 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1130
1131         * Application.cs: set the DialogResult to fixed when the main form is
1132         hidden or destroyed while being modal.
1133
1134 2006-05-25  Miguel de Icaza  <miguel@novell.com>
1135
1136         * Theme.cs: Use Tangoified messagebox icons. 
1137
1138         (GetSizedResourceImage): Also cope with width = 0 and do not
1139         trigger a warning in that case (0 means "give me your icon from
1140         the resouce, no special size needed).
1141
1142 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1143
1144         * Application.cs: Leave runloop if the the main modal form is 
1145           hidden (fixes #78484)
1146
1147 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1148
1149         * BindingContext.cs : reject null datasource in Contains() and
1150           Item[].
1151         * CurrencyManager.cs : check data_member validity when data_source
1152           is dataset. When it is late binding, the initial position is -1.
1153
1154 2006-05-24  Jackson Harper  <jackson@ximian.com>
1155
1156         * TreeNodeCollection.cs: Dont't recalculate the visible order on
1157         inserted nodes that aren't visible.  This changes the
1158         max_visible_order which confuses scrollbar settings.
1159         - Use the enumerator to get the prev node instead of duplicating
1160         code.
1161         * TreeView.cs: Use new method for setting scrollbar values
1162         - Don't set the bounds every time the scrollbar is updated
1163         - When updating below the root node use an invalidate instead of a
1164         refresh to prevent the child controls (scrollbars) from being
1165         refreshed. (UpdateBelow still needs to be reworked anyways).
1166         - Reenable SetBottom now that visible orders are set correctly,
1167         added some debug code incase we ever get bad values there again.
1168         - Set the scrollbar max to 2 less then the max value, this
1169         compensates for the max value being one above the node count, and
1170         for scrollbars adding one extra "notch".
1171         - When drawing image nodes if there is an imagelist we draw the
1172         first image in the list if the supplied image index is out of the
1173         image list's bounds.
1174         
1175 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1176
1177         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
1178           we receive a size change from the WM (Fixes #78503)
1179
1180 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
1181
1182         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
1183           rectangle (Fixes #78501)
1184
1185 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1186
1187         * ButtonBase.cs: 
1188           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
1189             as a bitfield.
1190           - Fixed MouseMove to no longer switch pressed state unless the left
1191             mouse button is pressed. Atsushi provided the original patch (#78485)
1192           
1193 2006-05-24  Jackson Harper  <jackson@ximian.com>
1194
1195         * ScrollBar.cs: New internal methods that allow us to change a
1196         couple values on the scrollbar (the most common case is maximum
1197         and large change) without getting multiple invalidates.
1198
1199 2006-05-24  Chris Toshok  <toshok@ximian.com>
1200
1201         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
1202         (Edit): save off the original state in oldState, and set
1203         grid.is_editing to true.
1204         (OnKeyDown): abort editing if escape is pressed.  also, call
1205         NextState if space is pressed.
1206         (OnMouseDown): call NextState.
1207         (NextState): factor out shared code from OnKeyDown and OnMouseDown
1208         here.  Also, only invalidate the row header once (on the initial
1209         is_changing switch) to save on redraws.
1210
1211 2006-05-24  Chris Toshok  <toshok@ximian.com>
1212
1213         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
1214         if the value in the cell is different than it was before.  This
1215         keeps us from triggering a layout when we move around a datarid
1216         with a highlighted cell.
1217         (Edit): suspend layout when creating/positining the text box, and
1218         resume passing false so we don't ever actually re-layout.
1219         (ReleaseHostedControl): same.
1220         (EnsureTextBox): reformat slightly, and set WordWrap to false.
1221
1222         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
1223         control-key sequences should go to the datagrid - remove that
1224         lock.  Also, modify the conditions under which we move between
1225         cells when moving the cursor within a cell, and remove the "this"
1226         and "base" from field accesses.  We weren't even consistent, given
1227         they all were in the base class.
1228
1229 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
1230
1231         * Binding.cs : (.ctor)
1232           An obvious NRE fix for BindingTest.CtorNullTest().
1233
1234 2006-05-23  Chris Toshok  <toshok@ximian.com>
1235
1236         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1237         them between lines.  This fixes some quirks editing cells in the
1238         datagrid.
1239
1240 2006-05-23  Jackson Harper  <jackson@ximian.com>
1241
1242         * TreeView.cs: Use begin/end update when doing expand/collapse all
1243         so that we don't get flicker on the scrollbar.
1244
1245 2006-05-23  Jackson Harper  <jackson@ximian.com>
1246
1247         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
1248         treenode calculations to be independant of the painting code. To
1249         do this nodes track a visible order which is calculated by the
1250         treeview.
1251         - Call new methods for expanding/collapsing nodes.  These methods
1252         use scrollwindow so we don't have to update everything below the
1253         node.
1254         * TreeView.cs: Refactored drawing and scrolling code.  We don't
1255         need to update nodes when drawing anymore or calculate scrollbar
1256         stuff.
1257         - Added new methods for expanding/collapsing nodes. These methods
1258         use ScrollWindow so as to not have to redraw all the nodes below.
1259         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1260         we add/remove nodes or sort.
1261         - Handle removing the selected and the top node properly.
1262
1263 2006-05-23  Chris Toshok  <toshok@ximian.com>
1264
1265         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1266         maybe this should actually happen in the datagrid code?
1267         (EndEdit): no need to invalidate anything, given that
1268         ReleaseHostedControl causes the datagrid to relayout, which
1269         invalidates everything anyway.
1270
1271         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1272         in SetCurrentCell).
1273         (set_SelectionBackColor): call InvalidateSelection instead of
1274         Refresh.
1275         (set_SelectionForeColor): same.
1276         (BeginEdit): Flesh this out a bit.
1277         (CancelEditing): only do any of this if we're editing/adding.
1278         (EndEdit): same.
1279         (OnMouseDown): there's no need to cancel editing here, it's done
1280         in SetCurrentCell.
1281         (SetCurrentCell): only invalidate the current row header if it's a
1282         different row than the new one.
1283         (ShiftSelection): fix this to work like MS does.
1284         (ResetSelection): factor out the invalidation of selected_rows to
1285         InvalidateSelection.
1286         (SetDataSource): cancel any editing that's going on.
1287
1288         * DataGridColumnStyle.cs
1289         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1290         call the non-interface version.
1291
1292         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1293         header rectangle with the clip rectangle so we don't redraw the
1294         entire header for just a small area.  Gets rid of the last flicker
1295         when horizontally scrolling.
1296         (DataGridPaintRow): same.
1297
1298 2006-05-23  Mike Kestner  <mkestner@novell.com>
1299
1300         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1301         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
1302         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
1303         Critical bug report.
1304
1305 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1306
1307         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1308           and this fixes #78493
1309
1310 2006-05-23  Miguel de Icaza  <miguel@novell.com>
1311
1312         * Theme.cs (GetSizedResourceImage): Scale images if the proper
1313         size is not found.  
1314         
1315         * FileDialog.cs: Do not change the background for the side bar as
1316         it wont work nicely with the theme, and also reduces the artifacts
1317         in rendering the icons (which I want to fix too).
1318
1319         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1320         resources, not resgen resources. 
1321
1322         (PlatformDefaultHandler): Pull images using the new API.
1323
1324 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1325
1326         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1327           a reference to the hwnd and will not remove it unless there are
1328           no pending exposures (fixes #78341)
1329         * XplatUI.cs: Improved debug
1330
1331 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
1332
1333         * MenuAPI.cs : don't handle OnClick event when it was not the left
1334           button. Fixed bug #78487.
1335
1336 2006-05-23  Mike Kestner  <mkestner@novell.com>
1337
1338         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1339         prefer submenus to the top menu for item lookup, to avoid popping down
1340         top-row items.
1341
1342 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1343
1344         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1345           Graphics.FillRectangle as the visual results are really bad (even
1346           on win). We now draw perfect arrows (and perfect shadows when the
1347           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1348           Pen.DashPattern to draw the dots of each line.
1349
1350 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1351
1352         * FileDialog.cs: Update the filename combobox when navigating through
1353           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1354
1355 2006-05-22  Mike Kestner  <mkestner@novell.com>
1356
1357         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1358         Fixes #78463.
1359
1360 2006-05-22  Mike Kestner  <mkestner@novell.com>
1361
1362         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1363         requests. Fix a misspelled parameter and a copy paste exception error
1364         in Select.
1365
1366 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1367
1368         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1369           to get the same width/height (5/13) on X11 as the default font has on
1370           win32. This means that our DefaultFont emSize is smaller than the 
1371           the MS SWF equivalent (even thought the width/height stays the same)
1372
1373 2006-05-20  Jackson Harper  <jackson@ximian.com>
1374
1375         * MdiClient.cs:
1376         * MdiWindowManager.cs:
1377         * InternalWindowManager.cs: Make sure to use the border width from
1378         the theme.
1379
1380 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1381
1382         * PrintDialog.cs: Implements printer details
1383
1384 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1385
1386         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1387           Fixes part 1 and 2 of bug #78446
1388
1389 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1390
1391         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1392           instead of sticking to the first ever calculated value
1393
1394 2006-05-19  Mike Kestner  <mkestner@novell.com>
1395
1396         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1397         PointToClient, since Capture is set. Fixes #78344.
1398
1399 2006-05-19  Mike Kestner  <mkestner@novell.com>
1400
1401         * ListView.cs: match MS behavior in Details view where items are not
1402         drawn if Columns.Count == 0. 
1403         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1404         Use a separate pen to draw the check, since changing the width affects
1405         the box as well.  Fixes #78454.
1406
1407 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1408
1409         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1410         exception should throw the name of the invalid argument.
1411
1412         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1413         there are no files listed. 
1414
1415 2006-05-18  Jackson Harper  <jackson@ximian.com>
1416
1417         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1418         up.
1419
1420 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1421
1422         * Control.cs: Brought back our old UpdateZOrder method as a private
1423           function and switched our calls from UpdateZOrder to the new one.
1424           This fixes the Paint.Net canvas disappearing bug.
1425
1426 2006-05-18  Jackson Harper  <jackson@ximian.com>
1427
1428         * Theme.cs:
1429         * ThemeWin32Classic.cs:
1430         * InternalWindowManager.cs: Move the drawing into the theme,
1431         expose everything the theme should need from the window manager.
1432
1433 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1434
1435         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1436           from the call to NativeWindow to avoid walking up the parent chain
1437           further than needed (speeds up setting cursors and avoids setting
1438           the wrong cursor if a parent has another cursor defined)
1439         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1440           the icon as hotspot, not what's contained as hotspot in the icon
1441           file. This fixes the perceived drawing offset seen with Paint.Net
1442         
1443 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1444
1445         * XplatUIX11.cs: 
1446           - Store the calculated rectangle in Hwnd object and use it when 
1447             setting the client size
1448           - Force Toolwindows to always be type Dock, to ensure they're on top
1449
1450 2006-05-18  Mike Kestner  <mkestner@novell.com>
1451
1452         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1453         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1454         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1455         Substantial refactoring to remove confusing nested classes. Coding
1456         standard and Get+Set->property refactorings.  Shift to index based
1457         highlighting in ComboListBox instead of constantly using IndexOf and
1458         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1459         in FileDialog growth.  Draw borders manually since Simple mode needs
1460         to look like two independent controls.  Make listbox border
1461         conditional to DropDownStyle.  Improved OwnerDraw support.
1462
1463 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1464
1465         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1466         Don't set the disposed graphics to null, so we can throw the "right"
1467         exception if the graphics is reused later (added a flag to avoid 
1468         double disposing). Some behaviours are different under 2.0 and are
1469         filled under bug #78448.
1470
1471 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1472
1473         * Control.cs: When double-buffering is enabled, we need to reset
1474           our graphics context between paint calls. Otherwise, any 
1475           transformations and other alterations on the context will 
1476           become cumulative (#77734)
1477
1478 2006-05-18  Mike Kestner  <mkestner@novell.com>
1479
1480         * ListView.cs: do focused item selection like MS on clicks. 
1481         Rework focus handling for ItemControl so LostFocus invalidates as
1482         well.
1483         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1484         the ListView ItemControl has focus.
1485
1486 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1487
1488         * XplatUIX11.cs: If client_window ends up being width or height zero
1489           due to border settings, move it off window inside whole_window (#78433)
1490
1491 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1492
1493         * Mime.cs: Shrink the mime file cache correctly.
1494
1495 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1496
1497         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1498
1499 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1500
1501         * XplatUIX11.cs (AddExpose): More sanity checks
1502
1503 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1504
1505         * XplatUIX11.cs:
1506           - AddExpose: Don't add expose ranges outside the size of our
1507             window
1508           - Cast opacity values to Int32 to avoid crashes with certain
1509             values
1510           - Added disabled code paths that protect against illegal cross-
1511             thread painting (Developers.exe)
1512
1513 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1514
1515         * ProgressBar.cs: Invalidate the control when it's resized
1516           since block size is based on control size. (#78388)
1517
1518 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1519
1520         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1521         of setting the incoming argument to the "reset" value, we set the
1522         this.datamember to string.empty (before we were invalidating the
1523         incoming data).   
1524
1525         Fixes 78420
1526
1527 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1528
1529         * Form.cs: Only apply transparency settings after the form
1530           is created. (Fixes #77800)
1531
1532 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1533
1534         * ApplicationContext.cs: Grab the HandleDestroyed event so
1535           we know when to fire OnMainFormClosed 
1536
1537 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1538
1539         * Application.cs: Introduced sub-class to allow tracking of
1540           threads and centralized triggering of the event mess for
1541           ThreadExit, AppExit, etc..  (#76156)
1542
1543 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1544
1545         * MimeIcon.cs:
1546           - Do not return a null icon index value for a mime subclass.
1547             Instead try the main mime type class too.
1548           - Seems that some newer distributions don't have a link to some
1549             gnome default icons anymore. So check the default gnome dir too.
1550           
1551
1552 2006-05-16  Jackson Harper  <jackson@ximian.com>
1553
1554         * MdiClient.cs: Don't paint the parent background image if we have
1555         our own background image.
1556
1557 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1558
1559         * Control.cs:
1560           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1561             controls, all filled controls are supposed to overlap (#78080)
1562           - UpdateZOrder is supposed to update the control's z-order in the
1563             parent's z-order chain. Fixed to behave like that
1564           - BringToFront: Removed obsolete code
1565           - SendToBack: Simplyfied
1566           - SetChildIndex: Trigger layout calculations when Z-order changes
1567             since layout is done by z-order
1568
1569 2006-05-16  Chris Toshok  <toshok@ximian.com>
1570
1571         [ fixes bug #78410 ]
1572         * DataGrid.cs (set_AlternatingBackColor): use
1573         grid_drawing.InvalidateCells instead of Refresh().
1574         (set_BackColor): call grid_drawing.InvalidateCells.
1575         (set_BackgroundColor): use Invalidate instead of Refresh.
1576
1577         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1578         invalidate the cell area.
1579
1580 2006-05-15  Chris Toshok  <toshok@ximian.com>
1581
1582         [ fixes bug #78011 ]
1583         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1584         on to DataGridPaintRow.
1585         (DataGridPaintRow): take a clip argument, and only draw the cells
1586         which intersect it.  same with the not_usedarea.
1587
1588         * Theme.cs (DataGridPaintRow) add @clip parameter.
1589
1590         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1591         XplatUI.ScrollWindow.
1592         (ScrollToRow): same.
1593
1594         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1595         with last column which was causing a gray swath to appear with the
1596         XplatUI.ScrollWindow code.
1597
1598 2006-05-15  Chris Toshok  <toshok@ximian.com>
1599
1600         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1601         use XplatUI.ScrollWindow.
1602         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1603
1604 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1605
1606         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1607
1608 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1609
1610         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1611           file since there are no equivalent X11 cursors
1612
1613 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1614
1615         * MonthCalendar.cs : DateTimePicker should reflect selected date
1616           on mouse*up*, not mouse*down*. Fixed originally reported part of
1617           bug #76474.
1618
1619 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1620
1621         * TabControl.cs : When argument index is equal or more than tab
1622           count, just ignore. Fixed bug #78395.
1623
1624 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1625
1626         * Control.cs: Dispose all child controls when control is diposed (#78394)
1627
1628 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1629
1630         * ColorDialog.cs: Finally it is possible to select the color with
1631           the text boxes
1632
1633 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1634
1635         * PrintDialog.cs: Fix typo
1636
1637 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1638
1639         * PrintDialog.cs: PrintDialog is not resizable
1640         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1641           color. Made some ToolBar drawing methods protected virtual.
1642
1643 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1644
1645         * PrintDialog.cs: Implementation of the PrintDialog
1646
1647 2006-05-12  Chris Toshok  <toshok@ximian.com>
1648
1649         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1650         thumb, instead use MoveThumb.  This has the side effect of making
1651         most of the other thumb moving machinery use MoveThumb as well.
1652         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1653         need to actually invalidate the rectangle where the new thumb will
1654         go.
1655         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1656         We force an Update() after, so it's not as fast as it could be,
1657         but at least there's zero flicker and no droppings.
1658         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1659         (UpdateThumbPos): add another argument (dirty), which says whether
1660         or not to calculate/add dirty regions which we later invalidate.
1661         For cases where we know we're going to use MoveThumb, we pass
1662         false for this.  Otherwise, pass true.
1663
1664 2006-05-12  Jackson Harper  <jackson@ximian.com>
1665
1666         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1667         the status bar.
1668         
1669 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1670
1671         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1672           and GetClipRegion methods and UserClipWontExposeParent property.
1673         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1674           overriding UserClipWontExposeParent property, setting to false, since
1675           Win32 handles the required expose messages to draw our clipped parent
1676           areas internally
1677         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1678           PaintEventStart to set the user clip region if set.
1679         * Control.cs: 
1680           - Now internally tracking the Region for the control since we need to
1681             store it if the handle is not yet created and only set it when it
1682             becomes created. Before setting the region forced handle creation
1683           - Added code to draw the parents underneath a user-clipped region
1684         * Hwnd.cs: Added UserClip property
1685
1686 2006-05-12  Chris Toshok  <toshok@ximian.com>
1687
1688         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1689         (set_Maximum): same.
1690         (set_Minimum): same.
1691         (set_SmallChange): same.
1692         (OnMouseUpSB): remove the call to refresh when releasing the
1693         thumb.  We shouldn't need it.
1694         
1695 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1696
1697         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1698         AutoSize set to None, we do not need to relayout everything, we
1699         just need to invalidate the current region.
1700
1701         (Draw): Do not draw the entire ClientArea, just redraw the
1702         clip area being passed.
1703
1704         * MdiClient.cs: Make MdiClient constructor with the Form argument
1705         internal. 
1706
1707 2006-05-12  Jackson Harper  <jackson@ximian.com>
1708
1709         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1710         parents background image,  but strangely not their own.
1711         - (DrawStatusBarPanel): Take into account horizontal alignment
1712         when drawing the strings and icons.
1713
1714 2006-05-12  Mike Kestner  <mkestner@novell.com>
1715
1716         * ListBox.cs: avoid invalidations for focus when the collection is
1717         empty. 
1718
1719 2006-05-12  Chris Toshok  <toshok@ximian.com>
1720
1721         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1722         invalidate the entire thumb area.  Call InvalidateDirty which
1723         limits the redraw to the thumb itself and surrounding pixels.
1724
1725         * XplatUIX11.cs (ScrollWindow): optimize copying.
1726         
1727 2006-05-12  Chris Toshok  <toshok@ximian.com>
1728
1729         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1730         Figure out the positioning/layout in a single pass instead of
1731         multiple recursive invocations.  Speeds up the initial display of
1732         the data grid.  Also, make many things private that were
1733         originally public but unused outside this class.
1734
1735 2006-05-11  Jackson Harper  <jackson@ximian.com>
1736
1737         * MdiClient.cs: Improved layout code.
1738
1739 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1740
1741         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1742           not SelectedObject.
1743
1744 2006-05-11  Chris Toshok  <toshok@ximian.com>
1745
1746         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1747         union of that will always be {0,0,width,height}.
1748
1749 2006-05-11  Jackson Harper  <jackson@ximian.com>
1750
1751         * Form.cs: Match MS's DefaultSize for forms (they must have
1752         changed the size in sp2).
1753
1754 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1755
1756         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1757
1758 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1759
1760         * TextControl.cs : Fixed bug #78109. This incorrect position
1761           comparison caused crash on automatic line split.
1762         * TextBoxBase.cs : reduce duplicate code.
1763
1764 2006-05-10  Jackson Harper  <jackson@ximian.com>
1765
1766         * MdiClient.cs: Active form is only sent to the back when using
1767         the Next form functionality, when a form is clicked the current
1768         active shouldn't be sent to the back.
1769         - Layout the mdi windows when the container is first made visible.
1770         * Form.cs: Give the MdiClient a ref to the containing form when we
1771         create it.
1772         
1773 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1774
1775         * LinkLabel.cs : link_font could be uninitialized, so populate one
1776           before actual use. Fixed bug #78340.
1777
1778 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1779
1780         * XplatUIX11.cs : clipboard format native value is IntPtr.
1781           Fixed bug #78283.
1782
1783 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1784
1785         * Control.cs: 
1786           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1787             which is passed up the parent chain by DefWndProc
1788           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1789             to DefWndProc (#77956)
1790         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1791
1792 2006-05-10  Jackson Harper  <jackson@ximian.com>
1793
1794         * MdiClient.cs: We need to remove the controls from the mdi
1795         collection, when we close the window.
1796         * MdiWindowManager.cs: Special handling of closing mdi windows.
1797         * InternalWindowManager.cs: Make the close method virtual so the
1798         mdi window manager can handle it specially.
1799
1800 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1801
1802         * DataGrid.cs:
1803           - Recalculate grid when the data source has changed
1804           - Matches styles provided by user from all data sources types
1805         * DataGridTableStyle.cs: For columns that provided by the user set the
1806         with the preferred value is there was unassigned.
1807         * CurrencyManager.cs: throw OnItemChanged event
1808
1809 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1810
1811         * PictureBox.cs: Don't animate until handle is created. Start animation
1812           when handle is created.
1813
1814 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1815
1816         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1817           current codebase.
1818         * XEventQueue.cs: We don't need to provide the extra info
1819
1820 2006-05-10  Jackson Harper  <jackson@ximian.com>
1821
1822         * MdiClient.cs: If the mdi clients parent form has a background
1823         image set, we draw that background image for the mdi area's
1824         background.
1825
1826 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1827
1828         * TextBoxBase.cs: Set IBeam cursor (#78347)
1829
1830 2006-05-10  Mike Kestner  <mkestner@novell.com>
1831
1832         * ToolBar.cs: fix some text padding issues with ButtonSize
1833         calculation. Update the default size to match MS documentation.
1834         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1835         button size. Fixes #78296.
1836
1837 2006-05-10  Mike Kestner  <mkestner@novell.com>
1838
1839         * ListBox.cs: use is_visible for scrollbar positioning in case the
1840         control isn't on screen yet.  Fix off by one with Right vs Width
1841         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1842         
1843 2006-05-10  Jackson Harper  <jackson@ximian.com>
1844
1845         * X11Dnd.cs: Drop to a control with another control on top of it.
1846         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1847         be modified in click handlers. TODO: Look for similar problems in
1848         other controls.
1849
1850 2006-05-09  Jackson Harper  <jackson@ximian.com>
1851
1852         * Form.cs: Window managers need the old window state when setting
1853         window state now.
1854         * InternalWindowManager.cs: Allow the base mdi window manager to
1855         handle more of the MDI only stuff (like maximize buttons).
1856         * MdiWindowManager.cs: Fix some snafus in changing the window
1857         state.  Add all the menu functionality, for both popup and
1858         maximized menus.
1859         * MdiClient.cs: When a new form is selected the currently
1860         activated form is sent to the back, this matches MS.
1861         - Implement a new method to activate the next mdi child window.
1862
1863 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1864
1865         * Control.cs: 
1866           - Added new InternalCapture method to allow controls to prevent
1867             the capture behaviour on the click handlers
1868           - Switched to use InternalCapture
1869         * ComboBox.cs:
1870           - Using InternalCapture to prevent mouse captures from being released
1871             on mouse button release (Fixes #78100)
1872         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1873           returns Form borders if a caption is present. (Fixes #78310)
1874
1875 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1876
1877         * TreeNode.cs: Changed serialization .ctor to not require every field
1878           to be present. (#78265)
1879         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1880
1881 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1882
1883         * MimeIcon.cs: for is faster than foreach for strings.
1884
1885 2006-05-05  Mike Kestner  <mkestner@novell.com>
1886
1887         * CheckedListBox.cs: update check handling code to not use selected.
1888         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1889         behavior for visual feedback, motion response, shift/ctrl handling,
1890         and properly deal with all 4 selection modes. Updates to bounds
1891         handling logic.  Add scroll wheel support. [Fixes #77842]
1892
1893 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1894
1895         * ListView.cs:
1896           - Moved adding of Implicit controls into .ctor. That way, subsequent
1897             creation of the controls will not cause them to think they are 
1898             toplevel windows (fixes #78200 header problem)
1899           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1900           - Switched visibility setting of header control to use internal field
1901             to avoid triggering handle creation
1902           - Now checking if handle is created before causing a refresh when items
1903             are added (This makes us now match handle creation time with MS)
1904         * Splitter.cs: Removed loading of private splitter cursor, switched to
1905           Cursors version now that that is loading the right ones
1906         * Cursors.cs: Load proper splitter cursors from resources
1907         * Cursor.cs: Added second method of loading resource cursors for the 
1908           VS.Net users amongst us
1909
1910 2006-05-05  Mike Kestner  <mkestner@novell.com>
1911
1912         * ListView.cs: give header_control a minimum size based on the
1913         ListView size.
1914
1915 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1916
1917         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1918           window seems to do that with metacity, so set that type. (#78120)
1919
1920 2006-05-05  Mike Kestner  <mkestner@novell.com>
1921
1922         * ListViewItem.cs: fix Details mode checkbox layout bug.
1923         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1924         at the end of the header, if it exists. [Fixes for #78200]
1925
1926 2006-05-04  Jackson Harper  <jackson@ximian.com>
1927
1928         * MdiClient.cs: Add a helper property to get the container form.
1929         * MdiWindowManager.cs: We have to make sure to use the menu origin
1930         when drawing the icons and buttons, this fixes maximized window
1931         icons/buttons on win32.
1932         * InternalWindowManager.cs: Reset the restore captions when a
1933         window goes from Maximized to Minimized and vice versa. Move the
1934         DrawMaximizedButtons into the MdiWindowManager source, tool
1935         windows can't be maximized. NOTE: This could use a little
1936         refactoring if time ever permits.
1937         
1938 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1939
1940         * TextBox.cs: Add MWFCategoryAttributes
1941         * TextBoxBase.cs: Add MWFCategoryAttributes
1942         * Form.cs: Add MWFCategoryAttributes
1943
1944 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1945
1946         * Control.cs: Add MWFCategoryAttributes
1947         * ScrollableControl.cs: Add MWFCategoryAttributes
1948
1949 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1950
1951         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1952           Divider is true. Fix a little glitch in PropertyToolBar
1953           drawing code
1954
1955 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1956
1957         * Control.cs:
1958           - Dispose: Call base.Dispose, this causes the disposed event
1959             to be fired (and probably other, more important stuff)
1960           - SetVisibleCore: Set is_visible to true after creating the
1961             window so that the window still gets created invisible (if
1962             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1963             to generate a WM_ACTIVE message
1964         * Form.cs: Call Dispose when we want to destroy the window, instead of
1965           just destroying the handle (Dispose will do that for us)
1966         * XplatUIX11.cs:
1967           - RootWindow also needs a queue, so we can properly process the
1968             property change events from RootWindow (like Activate)
1969           - Generatic synthetic WM_ACTIVE message when the active window is
1970             being destroyed
1971
1972 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1973
1974         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1975           bounds are changed
1976
1977 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1978
1979         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1980           for determining width and height (image might not be assigned if
1981           we're drawing an imagelist)
1982
1983 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1984
1985         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1986         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1987           height from system
1988         * Theme.cs: No longer returns hardcoded menu height, instead calls
1989           new driver method
1990         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1991           on MS (# 78257)
1992
1993 2006-05-01  Mike Kestner  <mkestner@novell.com>
1994
1995         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1996
1997 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1998
1999         * TextBoxBase.cs: Removed Fixme
2000         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
2001
2002 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
2003
2004         * XplatUIX11.cs:
2005           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
2006             the rectangle relative to the parent, considering borders. We
2007             don't really want that.
2008           - ScrollWindow: Fixed warning to be more understandable
2009         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
2010           scrollbars and scroll only the visible area
2011         * RichTextBox.cs: Removed debug output
2012
2013 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2014
2015         * NumericUpDown.cs (Text): Just use base
2016         * UpDownBase.cs: Ensure txtView is created before using it
2017
2018 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2019
2020         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
2021           casting to IntPtr to avoid 64bit overflow errors
2022
2023 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2024
2025         * Control.cs:
2026           - AllowDrop: Don't force handle creation.
2027           - CreateHandle: Added call to tell driver if we're allowed to drop
2028
2029 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2030
2031         * FileDialog.cs: Remember the last directory not only for the
2032           current instance but also for new FileDialog instances.
2033
2034 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2035         
2036         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
2037           broke sending async messages
2038
2039 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2040
2041         * XplatUIX11.cs:
2042           - ScrollWindow: Fixed method. We finally generate expose events again
2043             for scrolled areas. This was causing 'garbage' when scrolling
2044             textbox and other controls that used ScrollWindow
2045           - Switched from using the regular queue for paint events to the MS 
2046             model of 'generating' paint events when the queue is empty.
2047             We use the new XQueueEvent.Paint subclass to store which windows
2048             need painting.
2049           - AddExpose now takes the x/y/width/height of the exposed area
2050             and inserts the window into the paint queue if not already there
2051           - InvalidateWholeWindow: Switched to use new AddExpose method
2052           - UpdateMessageQueue: Added which queue to monitor for paint events
2053           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
2054             the unlikely case nothing above handles it. We reset the expose
2055             pending states to get them off the queue.
2056           - GetMessage: Now pulls a paint event if no other events are in the
2057             queue
2058           - Invalidate: Switched to new AddExpose method
2059           - PeekMessage: Updated to understand pending paint events
2060           - UpdateWindow: Fixed logic bug. We were only updating if the window
2061             didn't need updating. Also switched to sending WM_PAINT directly,
2062             like MS does.
2063         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
2064           and random access Remove(). The random access is needed to handle
2065           UpdateWindow() where a WM_PAINT is sent directly without accessing
2066           the queue.
2067         * ScrollBar.cs: Added Update() calls to cause immediate updates to
2068           allow for better feedback when scrolling. Scrollbars are small and
2069           the immediate update should make it 'feel' more responsive without
2070           slowing things down. ScrollBar still needs it's invaliate logic
2071           updated to not always invalidate the whole bar on certain changes.
2072
2073 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2074
2075         * Control.cs:
2076         (BackColor): if the control does not support a transparent background,
2077         return the default backcolor when the parent backcolor is transparent.
2078
2079 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
2080
2081         * Application.cs: Updated to new StartLoop/GetMessage API
2082         * RichTextBox.cs: Provide some output on RTF parsing errors
2083         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
2084           new queue_id argument to GetMessage and PeekMessage to allow faster
2085           handling of per-thread queues in drivers.
2086         * Hwnd.cs: Added Queue tracking and property
2087         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
2088         * XEventQueue.cs: Added thread trackingA
2089         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
2090         * XplatUIX11.cs:
2091           - Implemented new per-thread queue
2092           - GetMessage: Fixed return/break behaviour on several cases. We were
2093             returning stale messages in some cases, instead of just processing
2094             the next message
2095
2096 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2097
2098         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2099
2100 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
2101
2102         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
2103           fixed off-by-one comparisons between Width/Height and Right/Bottom.
2104
2105 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2106
2107         * PropertyGridView.cs: Fix drop down width.
2108
2109 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2110
2111         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
2112           a mess in DrawToolBar, so I removed one of them.
2113
2114 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2115
2116         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
2117           needed (clip). Otherwise we get artifacts.
2118
2119 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2120
2121         * FixedSizeTextBox.cs: Added constructor to allow specifying which
2122           dimension is fixed
2123         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
2124           and switched FixedSizeTextBox to only be fixed vertical (#78116)
2125         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
2126           if it matches the scale base font (avoids unneeded scaling)
2127
2128 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2129
2130         * X11DesktopColors.cs: One gtk_init_check should be enough
2131
2132 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
2133
2134         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
2135           match MS behaviour
2136
2137 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2138
2139         * TextBoxBase.cs: 
2140           - Generate OnTextChanged for Backspace even if we're only deleting
2141             the current selection
2142           - When setting the Text property, only select all text if the
2143             control does not have focus when it is being set. Otherwise
2144             just place the cursor at the beginning of the control
2145
2146 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2147
2148         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
2149           Added a little helper to draw PropertyGrid ToolBar with a different
2150           border and a different BackColor.
2151         * PropertyGrid.cs: Some background parts didn't get painted with the
2152           correct background color. Added a class that helps us to draw the
2153           correct border for PropertyGridView and a class that helps us to
2154           draw ToolBars with a different backcolor
2155         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
2156
2157 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
2158
2159         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
2160         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
2161
2162 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2163
2164         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
2165           into the palette entries. Also, since we're working on a copy
2166           we needed to copy the palette back onto the bitmap.
2167         * Cursor.cs: Same fix as XplatUIWin32.cs.
2168
2169 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
2170
2171         * ImageListStreamer.cs: Need to read the var (or we're off)
2172
2173 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2174
2175         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
2176           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
2177           TextBoxBase.cs: Unused var fixes
2178         * AxHost.cs: Small 2.0 fix
2179         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
2180           as it seems that is what at least Metacity expects. This will make
2181           icons show up on 64bit platforms. We still have some 64bit size
2182           issues, though, since the startup app window size still won't match.
2183
2184 2006-04-25  Mike Kestner  <mkestner@novell.com>
2185
2186         * *.cs: cleanup newly reported exception var unused warnings.
2187
2188 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2189
2190         * ThemeWin32Classic.cs: Button image alignment now matches exactly
2191           ms
2192
2193 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2194
2195         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
2196           image. The image position is always the same, no matter if the
2197           button is pressed or not.
2198
2199 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2200
2201         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
2202           selection and set the correct filename for SaveFileDialog.
2203           Patch by Emery Conrad.
2204
2205 2006-04-24  Mike Kestner  <mkestner@novell.com>
2206
2207         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
2208         check for item.X outside the ClientRect instead of item.Y. Fixes
2209         #78151.
2210
2211 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2212
2213         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
2214         trust that value blindly and do some sanity check. Fixes bug #77814.
2215
2216 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217
2218         * ImageListStreamer.cs: save the mask as a 1bpp image.
2219
2220 2006-04-21  Mike Kestner  <mkestner@novell.com>
2221
2222         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
2223         pass Checked and Indeterminate to the Theme Engine. Improve
2224         encapsulation with ListBox.
2225         * ListBox.cs: Keep a StringFormat instead of calculating it every item
2226         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
2227         nested types.  Move all CheckState functionality to CheckedListBox.
2228         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
2229         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
2230         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2231         single base list. Fix scrollbar sizing and placement to mirror MS.
2232         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2233         used.
2234         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2235         for CheckedListBox by using new DrawItemState info.  Center the
2236         checkboxes on the items. Use new StringFormat property.
2237
2238 2006-04-18  Jackson Harper  <jackson@ximian.com>
2239
2240         * Form.cs: MdiChildren don't do default locations the same way as
2241         regular forms.  This prevents a crash when trying to position the
2242         mdi windows.
2243
2244 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
2245
2246         * PropertyGridTextBox.cs: Formatting, copyright
2247         * PropertiesTab.cs: Formatting
2248         * PropertyGrid.cs: Formatting
2249         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
2250           click toggling of values
2251           
2252 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
2253
2254         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2255         * Control.cs (.ctor): verify_thread_handle is static, don't reset
2256           every time a control is created
2257         * Application.cs: Removed obsolete EnableRTLMirroring method
2258
2259 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
2260
2261         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2262         SelectedIndex to -1. Fixes bug #78121.
2263
2264 2006-04-17  Jackson Harper  <jackson@ximian.com>
2265
2266         * Binding.cs: Handle null values for Current and BindingContext.
2267         This occurs when binding is a little delayed.
2268         * CurrencyManager.cs: return null for Current when there are no
2269         items in the list.
2270         - Hookup to the listchanged event on the DataView and update
2271         bindings when the list is changed.  This fixes late binding of
2272         controls.
2273
2274 2006-04-17  Jackson Harper  <jackson@ximian.com>
2275
2276         * X11Dnd.cs:
2277         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2278         Ringenbach.
2279
2280 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
2281
2282         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2283           place
2284         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2285           with the correct ButtonState
2286
2287 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
2288
2289         * XplatUIX11.cs: Improved distinguishing between window types to
2290           tell the WM a type closer to what the app wants (Fixes #78107)
2291
2292 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2293
2294         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2295           GrabHandle
2296
2297 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2298
2299         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2300           drawing code to reflect the size grip changes
2301
2302 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2303
2304         * ImageListStreamer.cs: fix handling of the mask that follows the main
2305         bitmap when deserializing and serialize it properly. The generated mask
2306         should better be a 1bpp image, but I'll do that later.
2307
2308 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2309
2310         * FileDialog.cs: Show something in the DirComboBox on *nix if the
2311           path doesn't fit into some of our Current.Places
2312
2313 2006-04-13  Jackson Harper  <jackson@ximian.com>
2314
2315         * ComboBox.cs: Use borders instead of drawing our own decorations,
2316         try to obey correct rules for heights.
2317         * Theme.cs:
2318         * ThemeNice.cs:
2319         * ThemeClearLooks.cs:
2320         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2321         this is now handled by borders.
2322         - Remove unused DrawListBoxDecorationSize method.
2323         
2324 2006-04-13  Mike Kestner  <mkestner@novell.com>
2325
2326         * MenuAPI.cs: null guarding for the disbled click check fixes crash
2327         reported by Alex.
2328
2329 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2330
2331         * ThemeWin32Classic.cs: 
2332           - Fixed CPDrawStringDisabled
2333           - Corrected drawing of disabled menu items
2334           - Fixed drawing of disabled radio buttons (bug #78095)
2335           - Draw check in a disabled CheckBox with color ControlDark 
2336
2337 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2338
2339         * Form.cs: Use the provided width when calculating the menu size;
2340           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2341           and ClientSize.Width won't be updated yet
2342         * Application.cs: Use Visible instead of Show() to make form visible,
2343           this way we create the handle later and menusize is considered
2344
2345 2006-04-12  Mike Kestner  <mkestner@novell.com>
2346
2347         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2348         reporting.
2349
2350 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2351
2352         * TextBox.cs: Implemented context menu
2353
2354 2006-04-12  Mike Kestner  <mkestner@novell.com>
2355
2356         * ListView.cs: implement box selection. fixes #77838.
2357         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2358
2359 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2360
2361         * XplatUIX11.cs: Added setting of window type when transient window
2362           is created (metacity would move it otherwise)
2363         * X11Structs.cs: Added WINDOW_TYPE atoms
2364         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2365           background (the control is Opaque but still wants transparent
2366           backgrounds)
2367
2368 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2369
2370         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2371           that set Opaque but don't mean it (like all ButtonBase-derived
2372           controls) to still draw their background
2373         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2374           the background
2375
2376 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2377
2378         * Control.cs (PaintControlBackground): Set the graphics object
2379           on our PaintEvent to null to prevent it from being disposed
2380           when the PaintEvent gets disposed
2381
2382 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2383
2384         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2385         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2386
2387 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2388
2389         * Control.cs: 
2390           - Added transparency check to BackColor property. Transparent
2391             backgrounds are only allowed if the control styles permit it
2392           - Added recursive painting of parent control background and
2393             foreground if a control with a transparent backcolor is drawn
2394             (Thanks to Tim Ringenback for providing his 'hack' as a base
2395              for this patch) Fixes #77985 and #78026.
2396           - Added Opaque style check before calling OnPaintBackground, no
2397             need to draw the background if the control is opaque
2398           - Removed ControlAccessibleObject owner variable (inherited from
2399             base, no need to define again)
2400           - Added some documentation links explaining the drawing events
2401             and styles
2402
2403 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2404
2405         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2406           that the affected control is the located at the left border of our
2407           parent (Fixes #77936)
2408
2409 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2410
2411         * TextBoxBase.cs: When rendering disabled or readonly controls,
2412           draw the background with 'Control' instead of 'Window' color as
2413           long as the user hasn't specifically set a color
2414
2415 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2416
2417         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2418           since that won't be updated if the user types text (only if it's
2419           programatically set)
2420
2421 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2422
2423         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2424           layout changes do to app-triggered resizes will have the proper
2425           display rectangle for layout
2426
2427 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2428
2429         * ThemeWin32Classic.cs:
2430           - Make use of the SystemBrushes and SystemPens wherever possible
2431           - Corrected some highlight colors
2432           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2433             drawing
2434         * Theme.cs: Added Empty field to CPColor struct
2435
2436 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2437
2438         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2439           is displayed when calculating the display rectangle. Thanks to Mike
2440           for teaching me the err of my ways.
2441
2442 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2443
2444         * ScrollableControl.cs:
2445           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2446             (instead of 0,0) and we now return the real width/height instead of
2447             just the clientrectangle, adjusted for padding. The rectangle is
2448             now cached and created by the new CalculateDisplayRectangle method.
2449           - Created new CalculateDisplayRectange method, which basically does
2450             what get_DisplayRectangle() did originally, but now using the 
2451             right edge instead of DisplayRectangle to determine the size of
2452             our scrollbars
2453           - get_Canvas(): Fixed it to properly calculate canvas for 
2454             right/bottom controls which seem to be placed to the right/bottom
2455             of any controls that have a fixed location
2456           - Removed TODO that's taken care of
2457           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2458             and SetDisplayRectLocation according to new MSDN2 docs
2459           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2460             event when that is called, this is added for compatibility
2461           - ScrollControlIntoView(): Implemented.
2462           - Switched scrollbars to be implicit, they shouldn't be selectable
2463         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2464           call it when the active control is set/changed
2465         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2466         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2467           implicit_control variable (used for native Win32 message generation)
2468         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2469           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2470         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2471         * XplatUIStructs.cs: Added ScrollBarCommands enum
2472
2473 2006-04-10  Jackson Harper  <jackson@ximian.com>
2474
2475         * ButtonBase.cs:
2476         * CheckedListBox.cs:
2477         * ComboBox.cs:
2478         * DataGrid.cs:
2479         * DataGridView.cs:
2480         * Form.cs:
2481         * GroupBox.cs:
2482         * ListBox.cs:
2483         * PrintPreviewControl.cs:
2484         * ProgressBar.cs:
2485         * PropertyGrid.cs:
2486         * Splitter.cs:
2487         * StatusBar.cs:
2488         * TrackBar.cs:
2489         * UpDownBase.cs: Fixup base event overrides.
2490         
2491 2006-04-06  Mike Kestner  <mkestner@novell.com>
2492
2493         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2494         all user-initiated value changes to min <= value <= max-thumbsz+1.
2495         (set_Value): check for vert/horiz when calculating new thumb position.
2496         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2497         like MS does.
2498         (OnMouseMoveSB): refactor the thumb dragging code and refine
2499         invalidation logic to reduce flicker.
2500         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2501         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2502         (UpdateThumbPosition): small code readability cleanup
2503
2504 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2505
2506         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2507           different
2508
2509 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2510
2511         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2512
2513 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2514
2515         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2516         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2517           This dramatically reduces the number of Pen.Dispose calls. 
2518           Where possible call ResPool methods only once instead of calling it
2519           over and over again (for example for the same color).
2520
2521 2006-04-06  Mike Kestner  <mkestner@novell.com>
2522
2523         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2524         Also remove an unused private field on the collection. Fixes #77972.
2525
2526 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2527
2528         * ThemeNice.cs: Added ToolBar drawing code
2529
2530 2006-04-06  Mike Kestner  <mkestner@novell.com>
2531
2532         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2533         I'm assuming that means we need to look up the toplevel for the
2534         provided control. Fixes the crash trace in #77911 but exposes another
2535         crash in some strange reflection usage in NDocGui.
2536
2537 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2538
2539         * ThemeNice.cs: Gave it a little silver touch and added Images
2540           method
2541         * FontDialog.cs: FontDialog is not resizable
2542         * FileDialg.cs: Added SizeGripStyle.Show
2543
2544 2006-04-05  Jackson Harper  <jackson@ximian.com>
2545
2546         * KeyboardLayouts.cs: Remove warning.
2547
2548 2006-04-05  Jackson Harper  <jackson@ximian.com>
2549
2550         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2551         all of our controls instead of Paint +=.
2552         * ListBox.cs:
2553         * ListView.cs:
2554         * MenuAPI.cs:
2555         * MessageBox.cs:
2556         * NotifyIcon.cs:
2557         * ProgressBar.cs:
2558         * ScrollBar.cs:
2559         * Splitter.cs:
2560         * StatusBar.cs:
2561         * TabControl.cs:
2562         * TextBoxBase.cs:
2563         * ToolBar.cs:
2564         * TrackBar.cs:
2565         * UpDownBase.cs:
2566         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2567         use OnPaintInternal. Remove Width/Height and Visible checks in
2568         paint handler, this is done at a higher level now.
2569         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2570         * PaintEventArgs.cs: Add a handled flag so controls that don't
2571         want anymore painting after OnPaintInternal can make sure OnPaint
2572         isn't called.
2573
2574 2006-04-05  Mike Kestner  <mkestner@novell.com>
2575
2576         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2577         state of the form, so that we don't process events when Modal dialogs
2578         are up. Fixes #77922.
2579
2580 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2581
2582         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2583           checking is done.
2584
2585 2006-04-05  Mike Kestner  <mkestner@novell.com>
2586
2587         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2588
2589 2006-04-05  Mike Kestner  <mkestner@novell.com>
2590
2591         * ListView.cs (HeaderMouseMove): null guarding for the over column
2592         when setting up the drag_to_index.  Fixes #78015.
2593
2594 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2595
2596         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2597           in the taskbar. Transient windows seem to accomplish that.
2598
2599 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2600
2601         * Form.cs:
2602           - Re-enabled CreateParams.X/Y code for FormStartPosition
2603           - Added code for manual placement when creating the Control
2604           - Incomplete patch to treat MDI forms differently when
2605             setting the ClientSizeCore. (Still need to figure out handling
2606             x/y coords there)
2607         * XplatUIX11.cs:
2608           - When we're explicitly setting the X/Y position of a non-Child
2609             window, let the WM know. Metacity really wants this.
2610
2611 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2612
2613         * ThemeNice.cs: Added CPDrawButton
2614
2615 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2616
2617         * ThemeNice.cs: Changed the color for focused buttons and activated
2618           the arrows for small scroll buttons.
2619
2620 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2621
2622         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2623           anymore. Changed some method modifiers to protected (virtual)
2624         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2625           changes
2626         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2627           Updated drawing of menus, buttons and progressbars; added
2628           CPDrawBorder3D 
2629
2630 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2631
2632         * ImageListStreamer.cs: implemented serialization/deserialization
2633         of the images.
2634
2635 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2636
2637         * ThemeWin32Classic.cs:
2638           - Removed all the DrawFrameControl stuff; CPDrawButton,
2639             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2640             inside the methods
2641           - Updated and corrected the drawing code of CPDrawButton,
2642             CPDrawCheckBox and CPDrawRadioButton to better match ms
2643           - Updated theme checkbox and radiobutton code to use the CP*
2644             methods
2645
2646 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2647
2648         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2649           bug is fixed
2650
2651 2006-03-31  Jackson Harper  <jackson@ximian.com>
2652
2653         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2654         sometimes.
2655         * UpDownBase.cs: Don't CreateGraphics manually, use a
2656         Refresh. Ideally we would invalidate the correct areas here.
2657
2658 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2659
2660         * XplatUIX11.cs: 
2661           - We now track the mapping state of windows. If a window (or 
2662             one of it's parents) is not mapped we no longer permit
2663             WM_PAINT messages to be generated since we'd otherwise get 
2664             lots of BadMatch X errors. Jackson did all the work figuring
2665             out the problem.
2666           - Destroying the caret if the window it's contained in is 
2667             destroyed. Can't use regular DestroyCaret method since it
2668             might fall into a drawing function (trying to remove the
2669             caret) and with that generate new BadMatch errors. Again,
2670             Jackson tracked this down.
2671           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2672             make sure we send the messages to all windows. (The old code
2673             would send the WM_DESTROY to the window, and then all child
2674             windows would be 'gone' because the WM_DESTROY handle lookup
2675             would no longer find the destroyed window)
2676         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2677         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2678
2679 2006-03-31  Jackson Harper  <jackson@ximian.com>
2680
2681         * ScrollableControl.cs: Dont recalc if we are not visible.
2682
2683 2006-03-31  Mike Kestner  <mkestner@novell.com>
2684
2685         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2686         the visibility branch.
2687
2688 2006-03-31  Jackson Harper  <jackson@ximian.com>
2689
2690         * ScrollBar.cs: Cap values when incrementing/decrementing.
2691
2692 2006-03-31  Mike Kestner  <mkestner@novell.com>
2693
2694         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2695         * ToolTip.cs: guard against timer expirations with no active control.
2696         Not sure why it happened.
2697
2698 2006-03-31  Mike Kestner  <mkestner@novell.com>
2699
2700         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2701         text.
2702         * ToolTip.cs: Position the tooltip based on where the cursor is at
2703         popup time, not at MouseEnter time.  Add a Down state so that we don't
2704         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2705         positioning offset. Lookup DisplaySize at positioning time, since it
2706         can theoretically change during invocation.
2707         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2708         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2709
2710 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2711
2712         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2713           Fixes behaviour when the Text property of the box is String.Empty
2714
2715 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2716
2717         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2718           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2719           a window)
2720
2721 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2722
2723         * FileDialog.cs: Visual enhancement for the popup buttons in 
2724           PopupButtonPanel
2725
2726 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2727
2728         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2729           code
2730
2731 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2732
2733         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2734           highlighted menu items to match ms
2735
2736 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2737
2738         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2739
2740 2006-03-30  Mike Kestner  <mkestner@novell.com>
2741
2742         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2743         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2744         go active to account for HotLight to Selected transition.
2745         * MenuItem.cs: add internal Selected prop. Fill out the Status
2746         property by calculating it from item info. Add HotLight,
2747         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2748
2749 2006-03-30  Mike Kestner  <mkestner@novell.com>
2750
2751         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2752
2753 2006-03-29  Jackson Harper  <jackson@ximian.com>
2754
2755         * Form.cs: Implement TODO.
2756
2757 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2758
2759         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2760           missing proper dialog setup in the constructor
2761
2762 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2763
2764         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2765         * Control.cs:
2766           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2767           - Fixed ResetBindings and removed TODO
2768           - Added check for cross-thread calls to get_Handle()
2769           - Added Marshaller attribute for set_Font to satisfy class status
2770         * FontDialog.cs: Removed TODOs that seemed implemented
2771         * UpDownBase.cs: Removed unneeded TODO and Fixme
2772         * MessageBox.cs: Implemented support for Default button and removed TODO
2773         * FileDialog.cs: Removed obsolete TODO
2774         * DomainUpDown.cs: Removed obsolete TODO
2775         * ButtonBase.cs: Removed obsolete TODO
2776         * XplatUIWin32.cs: Removed obsolete TODO
2777         * Form.cs:
2778           - Removed obsolete TODO
2779           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2780             internal status updates
2781           - Making sure the active control is selected when the control is created
2782         * CurrencyManager.cs: Removed obsolete TODO
2783
2784 2006-03-29  Mike Kestner  <mkestner@novell.com>
2785
2786         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2787         of PrintPreviewDialog and RichTextBox.
2788
2789 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2790
2791         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2792           DarkDark, Light and LightLight colors for a specific color
2793         * ThemeWin32Classic.cs:
2794           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2795             Appearance = Button 
2796           - Make use of the new ResPool helper CPColor
2797           - Draw ProgressBar and StatusBar with correct 3D borders
2798
2799 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2800
2801         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2802
2803 2006-03-28  Mike Kestner  <mkestner@novell.com>
2804
2805         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2806         calculating col/row counts.
2807
2808 2006-03-28  Mike Kestner  <mkestner@novell.com>
2809
2810         * ColumnHeader.cs:
2811         * ListView.cs:
2812         * ListViewItem.cs:
2813         * Menu.cs: 
2814         switch to explicit interface method implementation for some methods
2815         corcompare identifies as inconsistent with MS.
2816
2817 2006-03-28  Mike Kestner  <mkestner@novell.com>
2818
2819         * MainMenu.cs: 
2820         * Menu.cs:
2821         add a few missing methods from the class status output.
2822
2823 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2824
2825         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2826           correct.
2827
2828 2006-03-28  Mike Kestner  <mkestner@novell.com>
2829
2830         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2831
2832 2006-03-27  Mike Kestner  <mkestner@novell.com>
2833
2834         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2835         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2836
2837 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2838
2839         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2840
2841 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2842
2843         * ThemeWin32Classic.cs:
2844           - GroupBox: Inserted a little gap between the text and the lines
2845             on the right side
2846           - Made the code in CPDrawBorder3D more readable
2847           - Corrected the drawing location of the up and down arrows in 
2848             CPDrawScrollButton
2849
2850 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2851
2852         * ControlPaint.cs: Corrected line widths in DrawBorder for
2853           ButtonBorderStyle Inset and Outset
2854
2855 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2856
2857         * ThemeWin32Classic.cs:
2858           - Rewrote the totally broken CPDrawBorder3D method. That was
2859             one of the main problems for the terrific ThemeWin32Classic
2860             look
2861           - Updated and corrected Button drawing
2862           - Correct the dimensions of the SizeGrip to match ms ones
2863           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2864         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2865           Border3DStyle.Sunken to match ms.
2866
2867 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2868
2869         * ThemeWin32Classic.cs: First small part of the "de-uglify
2870           ThemeWin32Classic" effort, SizeGrip
2871
2872 2006-03-24  Jackson Harper  <jackson@ximian.com>
2873
2874         * XplatUIX11.cs: Give a max idle time of one second, this matches
2875         MS and forces an Idle event every second when there are no other
2876         events in the queue.
2877
2878 2006-03-24  Mike Kestner  <mkestner@novell.com>
2879
2880         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2881         * ListView.Item.cs: fix layout issues with null image lists and images
2882         smaller than checkbox size.
2883         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2884         mode like MS does.  It's weird, but consistent.  ;-)
2885         Fixes #77890.
2886
2887 2006-03-24  Mike Kestner  <mkestner@novell.com>
2888
2889         * ListView.cs: Scroll wheel support for the item control.  Fixes
2890         #77839.
2891
2892 2006-03-23  Jackson Harper  <jackson@ximian.com>
2893
2894         * ScrollableControl.cs: Special case negative sized areas, not
2895         zero.
2896         * MonthCalendar.cs: Save the rect of the clicked date so we can
2897         use it for invalidation.
2898         - Try to cut down on the number of invalidates
2899         - Invalidate the rect the mouse is over and was over when moving
2900         the mouse, so we get the focus box following the cursor.
2901
2902 2006-03-23  Mike Kestner  <mkestner@novell.com>
2903
2904         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2905         focus rectangle drawing. Fixes #77835.
2906
2907 2006-03-23  Mike Kestner  <mkestner@novell.com>
2908
2909         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2910         the if and else if and reverting back to the original == check on the
2911         None conditional.
2912
2913 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2914
2915         * FontDialog.cs: Update the example panel if the selected index of
2916           the fontListBox changes.
2917
2918 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2919
2920         * FileDialog.cs: Make FileDialog remember which directory it was in
2921           last in the same execution.
2922
2923 2006-03-22  Mike Kestner  <mkestner@novell.com>
2924
2925         * FileDialog.cs: make the DropDownMenu on the toolbar display
2926         RadioChecks since they are mutually exclusive and that's what MS does.
2927
2928 2006-03-22  Mike Kestner  <mkestner@novell.com>
2929
2930         * Theme.cs: add Color param to CPDrawMenuGlyph.
2931         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2932         checks and radio marks and arrows are visible on highlighted items.
2933         * ControlPaint.cs: update to use new Theme signature.
2934
2935 2006-03-22  Mike Kestner  <mkestner@novell.com>
2936
2937         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2938         is active. Fixes #77870.
2939
2940 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2941
2942         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2943           to be focused/selected after startup
2944
2945 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2946
2947         * ColorDialog.cs: 
2948           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2949             CustomColors and ShowHelp properties
2950           - Some internal rewrites to get better results when using the
2951             ColorMatrix
2952
2953 2006-03-22  Mike Kestner  <mkestner@novell.com>
2954
2955         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2956         HoverSelection.  Fixes #77836.
2957
2958 2006-03-22  Mike Kestner  <mkestner@novell.com>
2959
2960         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2961         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2962         1, not 0.  Update ButtonSize based on a pixel count of the win32
2963         control.  Adjust the toolbar size/location for new button size.
2964
2965 2006-03-22  Jackson Harper  <jackson@ximian.com>
2966
2967         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2968         true.
2969         * ScrollBar.cs: When doing increments and decrements we need to
2970         set the Value property so that ValueChanged gets raised. A
2971         possible optimization here would be to make an internal SetValue
2972         that doesn't invalidate immediately.
2973         * ToolTip.cs: Tooltips get added to their container (when
2974         supplied) so they get disposed when the container is disposed.
2975         - Don't create tooltips for String.Empty. This prevents all these
2976         little 2-3 pixel windows from showing up when running nunit-gui
2977         and driving me mad.
2978         * Form.cs: Don't set topmost when setting the owner if the handles
2979         haven't been created yet.  The topmost set will happen when the
2980         handles are created.
2981
2982 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2983
2984         * XplatUIX11.cs:
2985           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2986           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2987             visible (to allow them to recalculate their sizes)
2988
2989 2006-03-21  Mike Kestner  <mkestner@novell.com>
2990
2991         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2992         methods. Removed a ton of redundant code.  Still not really happy with
2993         the border rendering, but I think that's mainly because of the
2994         ControlDarkDark being black instead of a dark grey. Depending on how 
2995         close we want to be, we might want to revisit those color choices.
2996         Among the new features added during the refactor were DropDownArrow
2997         pressed rendering, Disabled image rendering.  Proper flat appearance
2998         boundary rendering.  Removed the Divider and Wrapping dividers since I
2999         can't figure out any combination of themes and conditions to make the
3000         MS control draw a horizontal line on a toolbar despite what the
3001         Divider property docs indicate.
3002         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
3003         conditions and incorrect layout.  Updated to coding standard.
3004         * ToolBarButton.cs: refactored layout and positioning code from
3005         ToolBar to here.  Invalidate wherever possible instead of forcing
3006         redraws of the whole toolbar. 
3007         (Known remaining issues: explicit ButtonSize smaller than provided
3008         images.)
3009
3010 2006-03-21  Mike Kestner  <mkestner@novell.com>
3011
3012         * ContextMenu.cs (Show): use the position parameter instead of just
3013         showing at the MousePosition.
3014
3015 2006-03-21  Jackson Harper  <jackson@ximian.com>
3016
3017         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
3018         control handle this.
3019         * TreeNodeCollection.cs: If we are clearing the root node we need
3020         to reset top_node so calcs can still happen.
3021         * ThemeWin32Classic.cs: This is a Flags so we need to check
3022         properly.
3023         
3024 2006-03-21  Jackson Harper  <jackson@ximian.com>
3025
3026         * DataGrid.cs: Create columns when the binding context has been
3027         changed.
3028         * X11Structs.cs: Keysyms are uints.
3029         - Add size to fix build.
3030
3031 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
3032
3033         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3034           XplatUIOSX.cs: 
3035           - Added ResetMouseHover method to allow controls to retrigger
3036             hovering if they need it more than once
3037           - Implemented MouseHoverTime and MouseHoverSize properties
3038         * Timer.cs: Start() must reset the interval
3039         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
3040           properties
3041
3042 2006-03-21  Jackson Harper  <jackson@ximian.com>
3043
3044         * X11Keyboard.cs: improved layout detection. Move the nonchar
3045         tables into this file.
3046         * KeyboardLayouts.cs: Move the tables into resource files.
3047
3048 2006-03-21  Mike Kestner  <mkestner@novell.com>
3049
3050         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
3051
3052 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
3053
3054         * Mime.cs: Various speed optimizations. Looking up mime types
3055           is now 2 times faster than before
3056
3057 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
3058
3059         * CreateParams.cs: Added internal menu field
3060         * Control.cs: 
3061           - Switched call order for UpdateBounds; now we always call
3062             the one that also takes ClientSize, and we're calculating the 
3063             client size via driver method in the others. The previous
3064             method of tracking client size by difference wasn't working
3065             for forms where even the starting client size wouldn't match
3066             the overall form size (due to borders) (Part of fix for #77729)
3067           - CreateParams(): Do not use parent.Handle unless the handle is
3068             already created. Causes havoc with Nexxia and throws off our
3069             creation of controls
3070         * XplatUIX11.cs:
3071           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
3072           - Switched handling of ConfigureNotify over to new PerformNCCalc 
3073             method (consolidates code)
3074           - Changed RequestNCRecalc to use new PerformNCCalc method
3075           - Added calls to RequestNCRecalc when menus and borders are changed
3076             to allow app to set NC size. (Part of fix for #77729) This matches
3077             when MS send a WM_NCRECALC on Win32 windows.
3078           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
3079             (Part of fix for #77729). This matches what MS does, they also
3080             send that message when the form is made visible.
3081           - XException.GetMessage: Improved usability of X errors by including
3082             a translation of the window into Hwnd and Control class
3083           - Improved debug info for window creation, reparenting and destruction
3084           - Created helper method WindowIsMapped() [Currently not used]
3085         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
3086         * Form.cs:
3087           - CreateParams: Now setting our menu on the new internal menu field
3088           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
3089             avoid calculating the same property twice
3090         * Hwnd.cs:
3091           - Improved usability of ToString() for debugging purposes
3092           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
3093             determine the height of the menu, instead of just the font. This
3094             required to also create a graphics context and to keep a bmp 
3095             around (for performance reasons)
3096
3097 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
3098
3099         * MenuAPI.cs: Added OnMouseUp method
3100         * Form.cs:
3101           - Now remembering the requested client size, avoids size errors
3102           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
3103             instead of base if the menu is active. This is required due to
3104             control now capturing and releasing on down/up and it would
3105             prematurely release our menu capture
3106
3107 2006-03-17  Jackson Harper  <jackson@ximian.com>
3108
3109         * KeyboardLayouts.cs: Add the czech layouts.
3110
3111 2006-03-16  Jackson Harper  <jackson@ximian.com>
3112
3113         * Control.cs: Use the viewport space when sizing not the controls
3114         client size, so things like ScrollableControl that effect the
3115         viewport size (when scrollbars are added) are computed correctly.
3116         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
3117         of ManagerEntrys.
3118         - Handle creating BindingManagers for null data sources.
3119         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
3120         source, otherwise when rows are added they are added to the 'fake'
3121         datasource and we will crash when trying to set the position in
3122         those rows.
3123         - Use Implicit scrollbars on the datagrid so they arent
3124         selectable.
3125         
3126 2006-03-16  Jackson Harper  <jackson@ximian.com>
3127
3128         * Binding.cs:
3129         * InternalWindowManager.cs:
3130         * MdiWindowManager.cs:
3131         * X11Keyboard.cs: I really want Mike to love me again (fix
3132         compiler warnings).
3133
3134 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
3135
3136         * DataGrid.cs:
3137           - OnMouseDown: Switch to editing mode when clicking on the cell
3138                          even if we're clicking on the cell that's currently 
3139                          selected
3140           - ProcessGridKey: Left/Right now wrap like MS.Net does
3141           - ProcessGridKey: Tab now knows to add a new row when tab is
3142                             pressed in the cell of the last column of the 
3143                             last row
3144           - ProcessGridKey: Enter now adds another row  if pressed in the last
3145                             row and selectes the new row, same column cell
3146           - ProcessGridKey: Home/End navigate columns, not rows, like 
3147                             originally implemented
3148           - Broke ProcessKeyPreview code out into an extra Internal method
3149             so it can be called from the edit code
3150         * DataGridTextBox.cs (ProcessKeyMessage):
3151           - Switched to accept Tab keypresses
3152           - Added F2 handling to allow jumping to the end of the edited cell
3153           - Added logic to allow moving caret left/right inside edited cell
3154             and making the edited cell jump when the caret hits cell borders
3155           - Tab and Enter are now passed to the datagrid after being handled
3156         * TextBoxBase.cs:
3157           - Removed capture code now that Control handles it
3158           - set_SelectionStart now ensures caret is visible
3159
3160 2006-03-16  Jackson Harper  <jackson@ximian.com>
3161
3162         * TrackBar.cs: Debackwards the increment/decrement for handling
3163         mouse clicks on the bar with vertical trackbars.
3164         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
3165         bottom to match MS.
3166
3167 2006-03-16  Mike Kestner  <mkestner@novell.com>
3168
3169         * ListView.cs: make shift/ctrl keyboard and mouse selection 
3170         consistent with the MS control. Fix a bug in
3171         SelectedListViewItemCollection.Clear that was pissing me off for the
3172         better part of a day because the collection was being altered
3173         underneath us as we walked the list.
3174
3175 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
3176
3177         * Control.cs: Not sure how we could miss this so long, but it seems
3178           that MS.Net has Capture set all the way from before calling 
3179           OnMouseDown through sending the mouse events until after
3180           OnMouseUp. This will fix DataGrid's selection being set to end
3181           at the location of the MouseUp.
3182
3183 2006-03-15  Jackson Harper  <jackson@ximian.com>
3184
3185         * BindingContext.cs: Check the binding after its added so that it
3186           can initialize the binding managers and hookup to events.
3187         * Binding.cs: Data members seem to sometimes include rows/cols in
3188           the format Row.Column we now take this into account.
3189           - Hookup to the position changed event so we can update the
3190           control when the position has changed in the data set.
3191         * CurrencyManager.cs: Take into account the row/col naming
3192           convention when creating dataset tables.
3193         * BindingContext.cs: Using a newer better way of storing
3194           datasource/datamember pairs.  Hopefully this better matches MS for
3195           looking up binding managers.
3196
3197
3198 2006-03-15  Jackson Harper  <jackson@ximian.com>
3199
3200         * BindingContext.cs: The currency manager needs the data member
3201         name, if the member is a data set we use the name to find the
3202         correct table.
3203         * CurrencyManager.cs: When creating the list prefer an IList over
3204         an IListSource.
3205         - Attempt to create a DataTable from a DataSet (TODO: might need
3206         some better error checking here, although MS doesn't seem to have much)
3207         - If we have a DataTable create a view and use it as our list.
3208
3209 2006-03-15  Mike Kestner  <mkestner@novell.com>
3210
3211         * ListView.cs: keep a matrix of the icon mode layout to facilitate
3212         keyboard navigation. Support Up/Down/Left/Right selection correctly
3213         for all 4 View modes.
3214         * ListViewItem.cs: add internal row/col fields for icon layouts.
3215
3216 2006-03-15  Jackson Harper  <jackson@ximian.com>
3217
3218         * TabControl.cs: Redraw the tabs when we resize so their newly
3219         calculated sizes are drawn on screen.
3220         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
3221         composite characters.
3222         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
3223         - filter events so that composite characters can be created
3224         patches by peter
3225         * X11Structs.cs: Add XIMProperties enum.
3226
3227 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3228
3229         * Control.cs (BringToFront, SendToBack): Don't use window or handle
3230           unless it's created
3231
3232 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3233
3234         * Control.cs (PerformLayout): We don't need to consider visiblity
3235           for anchoring, only for docking. This fixes 'whacky' alignment
3236           in listbox and other controls that use implicit scrollbars after
3237           the previous PerformLayout patch
3238         * ListBox.cs: Switched to use implicit scrollbars
3239           
3240 2006-03-14  Mike Kestner  <mkestner@novell.com>
3241
3242         * ToolBar.cs: 
3243         * VScrollBar.cs:
3244         - chain up the "new event" overrides to base and use
3245         OnEvent to raise them.  Part of fix for bug #76509.
3246
3247 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
3248
3249         * FileDialog.cs: Do not select an item in the parent directory
3250           on backspace
3251
3252 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3253
3254         * Control.cs (PerformLayout): It would seem that we considered
3255           invisible windows for our layout. Not quite the right thing
3256           to do. Now we don't any longer, thereby fixing bug #76889.
3257
3258 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3259
3260         * Control.cs (CanFocus): I goofed. A control can have focus 
3261           even though it's not selectable. Made it match MS docs.
3262
3263 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3264
3265         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3266           center by default (fixes #76895)
3267         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
3268           all uses of Border3DSides.All with the explicit ORd together
3269           Left|Right|Top|Bottom because I assume that nobody was aware 
3270           that All also implies a center fill. Most places I checked had
3271           a fill right above.
3272         * ProgressBarStyle.cs: Added
3273
3274 2006-03-13  Mike Kestner  <mkestner@novell.com>
3275
3276         * ListView.cs: fix breakage in drag shadow header positioning 
3277         from Peter's csc compilation fix.
3278
3279 2006-03-13  Mike Kestner  <mkestner@novell.com>
3280
3281         * ListView.cs: fix NRE produced by backspacing twice in a focused
3282         FileDialog.
3283
3284 2006-03-13  Mike Kestner  <mkestner@novell.com>
3285
3286         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3287
3288 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3289
3290         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3291           be changed
3292         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3293           the allowed size before making programmatic size changes
3294
3295 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
3296
3297         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
3298           set, metacity is broken and will still use the emty sizes in 
3299           the struct. (Fix for #77089)
3300
3301 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3302
3303         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
3304           WindowExStyles and marked both enums as Flags
3305         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3306           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3307           to match WindowStyles split
3308         * XplatUIX11.cs:
3309           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3310           - Updated to match WindowStyles split
3311         * XplatUIWin32.cs:
3312           - Fixed FosterParent creation, was using ExStyle on the Style field
3313             (This should help with Popup focus issues)
3314           - Updated to match WindowStyles split
3315
3316 2006-03-13  Jackson Harper  <jackson@ximian.com>
3317
3318         * MdiWindowManager.cs: Use the system menu height. Fixes some
3319         strange sizing issues.
3320
3321 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3322
3323         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3324         * TextBoxBase.cs:
3325           - Scroll to caret after inserting text (#77672)
3326           - Make scroll range one pixel higher, fixes off-by-one error (and
3327             makes underlines visible on the last line)
3328
3329 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
3330
3331         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3332           the keyboard state from being stuck with keys in 'pressed' state when
3333           focus is switched away via keyboard
3334         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3335           reset the keyboard if no X11 KeyUp events are expected to come
3336         * X11Structs.cs: Switched type of Visible to bool to match driver
3337
3338 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3339
3340         * TextControl.cs:
3341           - Switched caret to be just 1 pixel wide, matches MS and looks less
3342             clunky
3343           - Moved caret display 1 pixel down from the top of the control
3344             to improve view
3345           - InsertCharAtCharet: Update the selection start if moving the caret
3346             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3347           - No longer always creating the caret when the caret methods are
3348             called. Only the actual ShowCaret/HideCaret will do that now
3349           - Only setting caret visible if the owner control has focus
3350           - UpdateView: Added invalidation-shortcut logic for center and right 
3351             aligned text. Previously we'd update all according to the left
3352             logic which caused drawing errors. Also fixed height of invalidated
3353             areas, now properly invalidating the whole area (was off-by-one)
3354           - owner_HandleCreated: Always generate the document when the
3355             handle is created; this ensures that 
3356         * TextBoxBase.cs:
3357           - Fixed situation where caret would disappear under the right
3358             window border, also improved scrolling behaviour on left-
3359             aligned textboxes
3360           - Fixed right-aligned textboxes to have a border to the
3361             right instead of the caret being under the right border
3362         * XplatUIX11.cs:
3363           - Switched from 'nested' to simple visible/not visible tracking 
3364             for caret (part of fix for #77671)
3365           - No longer passing through translated FocusIn/FocusOut messages
3366             since we were notifying too often and the wrong windows. Instead
3367             we just notify our focussed window of receiving or loosing focus
3368         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3369           counting for caret to simple visible yes/no behaviour (part of 
3370           fix for #77671)
3371
3372 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3373
3374         * Mime.cs: Remove debug code...
3375
3376 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3377
3378         * MimeGenerated.cs: Removed
3379         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3380           and subclasses) from /usr/(local/)share/mime and
3381           $HOME/.local/share/mime.
3382
3383 2006-03-10  Jackson Harper  <jackson@ximian.com>
3384
3385         * MdiWindowManager.cs: Recalc the NC area when a window is
3386         maximized/restored so that the menu area is drawn on forms that
3387         don't have a menu.
3388
3389 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3390
3391         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3392           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3393           us to force a WM_NCCALCRESIZE message being sent. This is needed
3394           for MDI maximizing.
3395
3396 2006-03-10  Jackson Harper  <jackson@ximian.com>
3397
3398         * Form.cs: We need to use the ActiveMenu when calculating menu
3399         height.
3400         - Fix nullref when the window manager hasn't been created yet.
3401         * Control.cs: Fix nullref when we try to bring a control to the
3402         front that has no parent.
3403         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3404         height.
3405         - Add a dummy item to the maximized menu so it always has the
3406         correct height. Otherwise when there are no menus we don't get our
3407         icon and buttons.
3408         
3409
3410 2006-03-10  Jackson Harper  <jackson@ximian.com>
3411
3412         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3413         stuff.
3414         * Form.cs: Make the window_state internal so the window managers
3415         can track it.
3416         - When an MDI child is maximized let its window manager create the
3417         main menu (so it can add its icon).
3418         - Notify the window managers of state changes
3419         - Let the window manager paint its buttons and handle button
3420         clicks on the menu when it is maximized.
3421         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3422         window manager, since tool windows don't use it, only mdi windows.
3423         - Tell the main form that we don't want it to handle NCPAINT
3424         itself to avoid extra painting.
3425         - Handle clicks on a maximized windows menu.
3426         - Handle window state changes
3427         - Handle minimize/maximize clicks correctly by setting the window state.
3428         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3429         when clicking on the forms icon).
3430         - New method to create a forms maximized menu. This is its normal
3431         menu + an icon.
3432         - Handle window state changes.
3433         - Handle sizing of maximized windows.  Maximized windows are just
3434         drawn bigger then the parent visible area. All controls are still
3435         there, they are just outside the visible area (this matches windows).
3436         * MdiClient.cs: No scrollbars when a child window is maximized.
3437         - Let the children windows figure out how big they should be when
3438         sizing maximized windows.
3439         - Implement a version of ArrangeIconicWindows somewhat similar to
3440         Windows version.  There are some little differences, but I don't
3441         think any app will rely on the layout of minimized mdi windows.
3442
3443 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3444
3445         * Padding.cs: Several fixes to allow compiling with csc 2.0
3446
3447 2006-03-09  Jackson Harper  <jackson@ximian.com>
3448
3449         * Menu.cs:
3450         * MenuItem.cs: Cheap hack so we can add items to the list without
3451         the events being raised.  This allows adding mdi items during
3452         drawing. TODO: Should probably find a better time to add the items.
3453
3454 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3455
3456         * ThemeWin32Classic.cs:
3457           - CheckBox_DrawText: Added logic to not wrap if not enough space
3458             is available (Fix for bug #77727)
3459           - RadioButton_DrawText: Added logic not to wrap if not enough
3460             space is available (Fix for bug #77727). Also removed some
3461             duplicate code, DrawString always drawing the regular text
3462             before hitting the if statement.
3463
3464 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3465
3466         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3467
3468 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3469
3470         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3471         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3472           methods. Moved the new 2.0 properties into alphabetical order with
3473           other properties and added MonoTODO tags
3474
3475 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3476
3477         * AutoScaleMode.cs: Added. Fix build.
3478
3479 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3480
3481         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3482           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3483           and was requiring premature handle creation for calls from above
3484         * Form.cs, Control.cs: Removed handle arguments from calls to
3485           CalculateClientRect()
3486
3487 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3488
3489         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3490           drag_column.column_rect is MarshalByRef and can't be used that way
3491
3492 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3493
3494         * AxHost.cs: Added deserialization constructor for 
3495           AxHost+State (fixes 77743)
3496
3497 2006-03-09  Mike Kestner  <mkestner@novell.com>
3498
3499         * ListView.cs: 
3500         - Added column drag reordering for details view.
3501         - fixed behavior when mouse is dragged off column and
3502         AllowColumnReorder is false.
3503         * ColumnHeader.cs: clone the format too in Clone.
3504         * Theme.cs: add DrawListViewHeaderDragDetails method.
3505         * ThemeWin32Classic.cs:
3506         - impl new method for drawing drag column shadows and targets.
3507         - support column offset for details mode in DrawListViewItem.
3508
3509 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3510
3511         * TextControl.cs: Reset the char_count when the document is cleared
3512           (Fixes bug reported on mono-winforms mailing list)
3513
3514 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3515
3516         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3517           of calling base we simply process the key ourselves, since both
3518           DefWindowProc and the handled method would set m.Result. 
3519           (Fixes #77732)
3520
3521 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3522
3523         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3524           method also moves the window; instead implemented a copy of
3525           Control.ScaleCore (Part of fix for #77456)
3526         * TextBoxBase.cs: 
3527           - Created new CreateGraphicsInternal method to allow providing
3528             a graphics context when no handle is created without triggering
3529             handle creation. (Part of fix for #77456)
3530           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3531         * TextControl.cs: 
3532           - Switched Constructor to require TextBoxBase instead of Control (to
3533             allow uncast access to CreateGraphicsInternal)
3534           - Safeguarded use of owner.Handle property. No longer accessing it
3535             unless the handle is already created.
3536           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3537           - Now triggering a recalc when owning control becomes visible
3538         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3539           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3540           premature handle creation (Part of fix for #77456)
3541         * Control.cs:
3542           - We now only destroy our double-buffering buffers when the
3543             control is resized or disposed, but not when visibility
3544             changes. (The code even re-created them twice every time)
3545           - Now requiring a redraw of the buffer on visibility changes
3546             (fixes bug 77654 part 2)
3547           - Not passing OnParentVisibleChanged up unless the control
3548             is visible
3549           - CanFocus: Fixed to match MS documentation
3550           - Focus: Fixed to return actual focus state and to check if
3551             setting focus is legal before setting it
3552
3553 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3554
3555         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3556           when to draw focus rectangle by looking at parent focus and
3557           selected state instead. This fixes TabPages on Linux sometimes
3558           having none or multiple focus rectangles.
3559         * XplatUIX11.cs (SetFocus): 
3560           - Don't set the focus if the same window already has focus
3561           - Use SendMessage instead of PostMessage (like it's Win32
3562             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3563             to match MS behaviour
3564         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3565           are not selectable.
3566
3567 2006-03-07  Jackson Harper  <jackson@ximian.com>
3568
3569         * PictureBox.cs: Revert line I accidently committed last week.
3570
3571 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3572
3573         * Control.cs: 
3574           - Added new IsRecreating and ParentIsRecreating properties to
3575             allow testing if RecreateHandle has been called on ourselves
3576             or one of our parents
3577           - WndProc(WM_DESTROY): If our control handle is being recreated
3578             we immediately need to create the handle when receiving the
3579             destroy, that way our child windows find a valid parent handle
3580             when they themselves are being recreated upon WM_DESTROY receipt
3581             (fix for bug #77654 part 1)
3582         * XplatUIX11.cs:
3583           - DestroyWindow: WM_DESTROY must be sent to our own window before
3584             notifying any child windows. MS documents that child windows
3585             are still valid when WM_DESTROY is received. (Control now relies on
3586             this behaviour)
3587           - Added some fine-grain debug options
3588
3589 2006-03-06  Jackson Harper  <jackson@ximian.com>
3590
3591         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3592         box and base calculations off this.
3593         * MdiChildContext.cs:
3594         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3595         anymore.
3596         
3597 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3598
3599         * Splitter.cs: In situations where the affected control is added
3600           to the parent's control list after the splitter, we would not
3601           populate affected. Now we try populating it on mousedown, if
3602           it's not already set, and force it to be re-set whenever our
3603           parent changes.
3604
3605 2006-03-03  Matt Hargett  <matt@use.net>
3606
3607         * Control.cs: implement Control.Padding
3608         * Padding.cs: -Padding.All returns -1 when constructing with the
3609         implicit default ctor
3610         -Padding.ToString() matches MS.NET
3611         * ContainerControl.cs: implement
3612         ContainerControl.AutoScaleDimensions
3613         * ListControl.cs: implement ListControl.FormattingEnabled
3614         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3615         * ButtonBase.cs:
3616         * TabPage.cs: Implement UseVisualStyleBackColor.
3617         * PictureBox.cs: Implement PictureBox.InitialImage.
3618
3619 2006-03-03  Mike Kestner  <mkestner@novell.com>
3620
3621         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3622         event declarations to proxy to base event.
3623         * ListViewItem.cs: update to use ItemControl.
3624         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3625         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3626         column header label rendering for 0 width columns.
3627
3628 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3629
3630         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3631           that causes the control to be created. Fixes #77476.
3632
3633 2006-03-02  Jackson Harper  <jackson@ximian.com>
3634
3635         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3636         expose_pending.
3637
3638 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3639
3640         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3641           passed in for the EventArgs (fixes #77690)
3642
3643 2006-03-01  Jackson Harper  <jackson@ximian.com>
3644
3645         * ScrollBar.cs: Refresh afterbeing resized.
3646
3647 2006-02-28  Mike Kestner  <mkestner@novell.com>
3648
3649         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3650         Clean up a tracker compile warning.
3651         * MenuItem.cs: add internal PerformPopup method.
3652         [Fixes #77457]
3653
3654 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3655
3656         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3657           implicit expose) when the text is set to null
3658
3659 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3660
3661         * RichTextBox.cs (FlushText): When newline is true, we always
3662           need to split the line, even if no text is on it and we may
3663           never eat newlines. (Fixes #77669)
3664
3665 2006-02-28  Mike Kestner  <mkestner@novell.com>
3666
3667         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3668         and set Selected instead.
3669         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3670         collections.
3671
3672 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3673
3674         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3675
3676 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3677
3678         * FontDialog.cs:
3679           - Got rid of the panel. All controls are now directly added to
3680             the dialog form
3681           - It is now possible to set a font with the Font property
3682           - MinSize and MaxSize property do now what they should
3683           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3684           - Searching and selecting a font with the font textbox works now,
3685             the same applies to the style and size textbox
3686           - Draw the correct 3D border in the example panel
3687           - Fixed a little mem leak (unused fonts didn't get disposed)
3688           - Many other internal updates/rewrites...
3689           - Fix typo
3690
3691 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3692
3693         * TextControl.cs: 
3694           - InsertRTFFromStream: Added 'number of characters inserted' argument
3695           - set_SelectedRTF: Now using the number of characters to calculate
3696             the new location for the selection and cursor (x/y cannot be used
3697             due to potentially already wrapped text)
3698
3699 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3700
3701         * TextControl.cs: Added property and implemented means to allow 
3702           disabling recalculation of a document (can be used to speed up
3703           multiple inserts and is needed to make RTF inserts predictable, see
3704           bug #77659)
3705         * RichTextBox.cs: Using the new NoRecalc property of Document to
3706           keep x/y insert locations predictable. Also makes it faster inserting
3707           large chunks of RTF
3708
3709 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3710
3711         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3712           it's easier for a child control to handle the other messages without
3713           having to duplicate the special functionality
3714         * TextBoxBase.cs
3715           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3716             code to handle processing the key ourselves, in order to get 
3717             access to the result of KeyEventArgs.Handled. We now only call 
3718             ProcessKey if they key hasn't been handled already. Fixes #77526.
3719           - set_Text: If null or empty string is given, just clear the 
3720             document. Fixes part of #77526
3721
3722 2006-02-27  Jackson Harper  <jackson@ximian.com>
3723
3724         * SizeGrip.cs: Paint the background color before painting the grip
3725         so things look right.
3726         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3727
3728 2006-02-27  Mike Kestner  <mkestner@novell.com>
3729
3730         * ListView.cs:
3731           - Restructure layout and invalidation model to remove a ton of
3732           flicker from the control and speed up performance in general.
3733           - Add manual column resize, flickers like crazy, but I already have
3734           some ideas on how I'll fix that. (#76822)
3735           - Merge the three Icon-based views into a single layout method.
3736           - Move item selection interaction logic from the item since 
3737           interaction with the collections is more appropriate to the view.
3738           - Deselection on non-item clicks.
3739         * ListViewItem.cs:
3740           - Encapsulate most of the layout. Add some internal props to trigger
3741           layout.  Move to a model where Items invalidate themselves instead
3742           of just invalidating the whole control every time something changes.
3743           - Invalidate on Text/Caption changes.
3744           - switch to an offset based layout model to avoid having to absolute
3745           position every element on item moves.
3746           - correct checkbox layout to conform to MS layout.
3747         * ThemeWin32Classic.cs:
3748           - refactor some column header drawing code.
3749           - fix string justification for column headers (#76821)
3750           - make SmallIcon labels top justified for compat with MS impl.
3751         * ThemeClearlooks.cs:
3752           - adjust to new ListViewItem internal checkbox bounds api.
3753
3754 2006-02-27  Jackson Harper  <jackson@ximian.com>
3755
3756         * Control.cs:  Change where implicit controls fall in the zorder.
3757         They are now on top of all children.
3758         - Synced AddImplicit code with Add
3759         - Removed unused enumerator.
3760         * SizeGrip.cs: Remove the TODO as its been TODONE.
3761
3762 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3763
3764         * TextControl.cs(Insert): Combine the last lines unless the insertion
3765           string ends with \n\n, otherwise we leave one line too many (Fixes
3766           something I noticed with the testapp for #77526; the bug itself was
3767           already fixed in the previous checkin)
3768
3769 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3770
3771         * RichTextBox.cs:
3772           - SelectionColor and SelectionFont methods no longer set absolute
3773             styles. Instead, the keep font or color respectively (This 
3774             resolves a long-standing FIXME in the code)
3775           - When flushing RTF text, the insert code now considers text trailing
3776             behind the insertion point (Fixes the bug where when replacing
3777             the selected text via SelectedRTF the remainder of the line behind 
3778             the selection would stay on the first insertion line)
3779         * TextBoxBase.cs:
3780           - AppendText now updates the selection points after inserting text
3781           - AppendText now ensures that the last tag (sometimes 0-length) of
3782             the document is used for the style information (Fixes part of 
3783             bug #77220)
3784         * TextControl.cs:
3785           - Created new FontDefiniton class to allow describing partial style
3786             changes
3787           - StreamLine() now takes a lines argument, to allow it to decide
3788             whether an encountered zero-length tag is the last in the document
3789             (which must be kept to not loose the font/color contained in it,
3790             for later appends)
3791           - Created Combine() and Split() methods for Marker structs, to 
3792             support marker updates due to reformatted documents (soft line
3793             wraps)
3794           - Implemented Document.CaretTag setter
3795           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3796             of the last line (Not the cause, but also exposed by bug #77220)
3797           - Added LineTag argument to InsertString method, to allow callers
3798             to force a certain tag to be used (required to force use of the
3799             trailing zero-length tag of a document)
3800           - Now updating markers in Combine(), to avoid stale tag markers
3801           - Added some method descriptions to aid maintenance
3802           - Implemented new FormatText concept, allowing additive/subtractive
3803             formatting by only specifying the components that are to be 
3804             changed. This was needed for resolving the RTB.SelectedColor/
3805             RTB.SelectedFont fixmes
3806           - Added Break() support method to allow breaking up linetags (used
3807             for partial formatting)
3808           - Added GenerateTextFormat() method. It is used for partial 
3809             formatting and allows to generate a full font/color from given
3810             attributes and an existing tag.
3811
3812 2006-02-26  Jackson Harper  <jackson@ximian.com>
3813
3814         * XplatUIX11.cs:  Use the correct caption height.
3815         - Translate hittest coordinates to screen coords to match MS.
3816         * XplatUIWin32.cs: When we create MDI windows we need to reset
3817         some of the style flags, so we get a nice blank window, and can
3818         draw all the decorations ourselves.
3819         - Set a clipping rectangle on the non client paint event, the
3820         window manager drawing code needs one.
3821         * Form.cs: The window manager needs to know when the window state
3822         has been updated.
3823         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3824         don't need to factor in border and title sizes in these
3825         methods. TODO: Remove the args and fix the call points.
3826         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3827         properly.
3828         - Let the driver set the cursors.
3829         - Improve active window handling
3830         - Correct sizes for title bars and buttons.
3831         - Match MS drawing better
3832         * MdiWindowManager.cs: We don't need to handle border style
3833         updates specially anymore.
3834         - Check for scrollbars when windows are done moving
3835         - Handle Active properly.
3836         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3837         correctly. I am spewing the exception though, so we don't hide the
3838         bugs.
3839         
3840 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3841
3842         * DataGridViewRowPostPaintEventArgs.cs,
3843           DataGridViewCellPaintingEventArgs.cs,
3844           DataGridViewRowCollection.cs,
3845           DataGridViewRowPrePaintEventArgs.cs,
3846           DataGridViewCell.cs: Clear a few warnings and implement a few
3847           exceptions that should be thrown.
3848
3849 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3850
3851         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3852           'inheriting' our parent's (non-default) cursor. (Part of
3853            the fix for #77479)
3854
3855 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3856
3857         * XplatUIX11.cs: Fixed cast to make csc happy
3858
3859 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3860
3861         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3862           it's for the client area (part of fix for #77479 and needed
3863           for MDI window cursor handling)
3864         * XplatUIX11.cs
3865           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3866             the appropriate default cursors and also passing the message
3867             up the parent chain 
3868           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3869             for non-client areas
3870
3871 2006-02-15  Jackson Harper  <jackson@ximian.com>
3872
3873         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3874         is a real MDI window
3875
3876 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3877
3878         * X11DesktopColors.cs: Instead of checking the desktop session
3879           string for "KDE" check if it starts with "KDE"
3880
3881 2006-02-10  Jackson Harper  <jackson@ximian.com>
3882
3883         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3884         systems).
3885
3886 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3887
3888         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3889           errors
3890         * ColorDialog.cs:
3891           - Got rid of the panel. All controls are now directly added to
3892             the dialog form
3893           - Changed to mono coding style
3894
3895 2006-02-10  Jackson Harper  <jackson@ximian.com>
3896
3897         * InternalWindowManager.cs: We don't need the set visibility to
3898         false hack anymore now that peter has written beautiful shutdown
3899         code.
3900
3901 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3902
3903         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3904           where already explicitly destroyed
3905
3906 2006-02-10  Jackson Harper  <jackson@ximian.com>
3907
3908         * MdiClient.cs: Handle the case where windows are too high or to
3909         the left and we need scrollbars.
3910
3911 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3912
3913         * MimeIcon.cs: Added some icons
3914         * FileDialog.cs:
3915           - Fixed bug #77477
3916           - Got rid of the panel. All controls are now directly added to
3917             the dialog form
3918           - Changed to mono coding style
3919           - On Linux "My Computer" and "My Network" will now show some
3920             more usefull information. A new class, MasterMount, gathers
3921             this information from /proc/mount. Updated MWFFileView to make
3922             use of this information
3923           - Fixed a bug that caused FileDialog to crash when
3924             ".recently_used" file had a zero size
3925           - FilterIndex does now what it should
3926           - Some Refactoring
3927         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3928             FileDialog changes
3929
3930 2006-02-09  Jackson Harper  <jackson@ximian.com>
3931
3932         * ComboBox.cs: Don't touch if null.
3933
3934 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3935
3936         * Cursor.cs: 64bit safeness fix
3937         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3938
3939 2006-02-09  Jackson Harper  <jackson@ximian.com>
3940
3941         * Form.cs: If a form is made into an MDI form update the styles so
3942         all the props can get set correctly.
3943         - Kill the mdi_container when we dont need it anymore.
3944         * InternalWindowManager.cs: Add missing NOT
3945
3946 2006-02-08  Jackson Harper  <jackson@ximian.com>
3947
3948         * InternalWindowManager.cs: Respek clipping when drawing MDi
3949         decorations.
3950
3951 2006-02-08  Jackson Harper  <jackson@ximian.com>
3952
3953         * Hwnd.cs: Add bits to track non client expose events.
3954         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3955         gives us a proper invalid rect and will allow for some nice
3956         optimizations with NC client drawing
3957         - MDI windows are children windows, so move their style handling
3958         into the child window block.
3959         * InternalWindowManager.cs: Remove a state reset that was
3960         getting invoked at the wrong time. Fixes managed windows getting
3961         into a 'stuck' captured state.
3962
3963 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3964
3965         * TextControl.cs (Document.ctor): Now initializing 
3966           selection_anchor. Fixes #77493
3967
3968 2006-02-07  Jackson Harper  <jackson@ximian.com>
3969
3970         * TrackBar.cs: The increment/decrements were backwards.
3971
3972 2006-02-07  Mike Kestner  <mkestner@novell.com>
3973
3974         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3975         to the instance itself.
3976
3977 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3978
3979         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3980           on ulongs and pointers, the size differs between 32bit and 64bit
3981           systems. 
3982
3983 2006-02-07  Mike Kestner  <mkestner@novell.com>
3984
3985         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3986         for 64 bit platforms to work around a metacity bug. 
3987
3988 2006-02-07  Jackson Harper  <jackson@ximian.com>
3989
3990         * TrackBar.cs: Process the input keys we need, and hookup to
3991         KeyDown instead of using WndProc, so we get key messages.
3992
3993 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3994
3995         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3996           machine we're on. 
3997         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3998           we need to translate the XdndVersion atoms array before sending it
3999
4000 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
4001
4002         * XplatUIX11.cs: 
4003           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
4004             number of bits for the property, not the number of bytes. The
4005             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
4006             but would not crash since it specified 8 bits instead of 4 bits)
4007           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
4008             defined as XID -> long in the C headers)
4009           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
4010             references since those are now IntPtr to begin with
4011           - Switched all Atom.XXX 'int' casts to IntPtr casts
4012           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
4013           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
4014           - Added XChangeActivePointerGrab DllImport (for X11DnD)
4015         * X11Structs.cs:
4016           - Changed 'int' type for Atoms in XEvent structures to IntPtr
4017           - Changed atom in HoverStruct to be IntPtr
4018         * X11DnD.cs:
4019           - Removed local DllImports, switched code to use those from XplatUIX11
4020           - Removed/fixed casts related to the switch of Atom to be a IntPtr
4021
4022 2006-02-06  Mike Kestner  <mkestner@novell.com>
4023
4024         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
4025         method signatures in the import region.  There may still be some
4026         lingering struct marshaling issues, as I didn't drill down into those.
4027         Yet.
4028
4029 2006-02-06  Jackson Harper  <jackson@ximian.com>
4030
4031         * ComboBox.cs: Dont manually set the top_item, this is computed
4032         when the scrollbar position is set.
4033
4034 2006-02-06  Mike Kestner  <mkestner@novell.com>
4035
4036         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
4037         startup crashes on amd64.  There's other fixes needed.  All pinvoke
4038         usage of Atom needs to be mapped to IntPtr for example.  And there are
4039         likely other int/long issues to be addressed.
4040
4041 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
4042
4043         * FileDialog.cs: One more...
4044
4045 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4046
4047         * FileDialog.cs: Next try
4048
4049 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4050
4051         * FileDialog.cs: First part of fix for #77464
4052
4053 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4054
4055         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
4056           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
4057           AcceptButton border drawing.
4058
4059 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
4060
4061         * Form.cs: Moved positioning of form after auto scaling is applied,
4062           otherwise it would possibly use wrong form size.
4063
4064 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
4065
4066         * Control.cs (RecreateHandle): No need to re-create any child
4067           controls, the child windows will get destroyed automatically by
4068           the windowing system or driver, and re-created when the handle
4069           is being accessed the first time. Fixes #77456
4070         * Form.cs: No longer setting the form to closing if the handle is 
4071           being recreated. This seems like the right thing to do, don't
4072           have a bug or testcase for this, though.
4073
4074 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4075
4076         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
4077           controls to avoid unwanted side effects
4078
4079 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
4080
4081         * Control.cs: 
4082           - ScaleCore needs to scale the bounds, not the ClientSize of the 
4083             control. Fixes #77416.
4084           - DefaultSize is 0,0 for control
4085         * TextBoxBase.cs: 
4086           - DefaultSize is 100, 20
4087           - SetBoundsCore: Now enforcing the height, no matter if the provided
4088             height is more or less than the preferred one, as long as AutoSize
4089             is on
4090         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
4091
4092 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4093
4094         * Control.cs:
4095           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
4096             call unless both performLayout is true *and* we have a pending
4097             layout change
4098           - ResumeLayout: MS does not completely nest Suspend and Resume,
4099             they bottom out at 0, fixed our code to match that.
4100           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
4101             SetBoundsCore, we were updating even when we shouldn't. This fixes
4102             swf-anchors mis-anchoring when resizing the app fast and lots.
4103           - UpdateDistances: Now only setting the left and top distance if 
4104             we have a parent and are not suspended, this is based on
4105             a suggestion by Don Edvaldson in bug #77355.
4106           - OnVisibleChanged: Fixed logic when to create the control. We may
4107             not create the control if we have no parent or if it's not visible;
4108             switched to using Visible property instead of is_visible field 
4109             since the property also considers parent states. This fixes a bug
4110             when starting Paint.Net
4111
4112 2006-02-02  Jackson Harper  <jackson@ximian.com>
4113
4114         * Form.cs: If the forms handle hasn't been created yet don't call
4115         into xplatui to make it top most, just set the topmost flag on the
4116         form in CreateParams
4117         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
4118
4119 2006-02-01  Jackson Harper  <jackson@ximian.com>
4120
4121         * ScrollableControl.cs: Refactored the Recalculate method a
4122         little, this wasn't handling all the variants of bottom and right
4123         bars needed to be added and added/removed based on their
4124         counterparts being added/removed (which changes the drawable
4125         size). Also we special case client widths and heights of 0 and
4126         don't add the scrollbar for those.
4127
4128 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
4129
4130         * XplatUIX11.cs: 
4131           - Added method to get AbsoluteGeometry(); currently unused, but might
4132             be used in the future, if we try again to figure out toplevel
4133             coordinates with some more crappy window managers
4134           - Added FrameExtents() method to retrieve the WM set decoration size
4135           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
4136             to deal with at least KDE, FVWM and metacity (Fixes #77092)
4137         * Hwnd.cs: 
4138           - Added whacky_wm tracking var for metacity
4139           - Added logic to have default menu height if the actual menu height
4140             has not yet been calculated (part of fix for #77426)
4141         * Form.cs: Keep track whether client size has been set and re-set 
4142           it if a menu is added/removed afterwards (Fixes #77426)
4143
4144 2006-01-31  Jackson Harper  <jackson@ximian.com>
4145
4146         * Control.cs: When a new Site is set on the component attempt to
4147         pull the AmbientProperties from it.
4148
4149 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
4150
4151         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
4152           in the background of the owning form. Fixes #77332
4153
4154 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4155
4156         * MimeIcon.cs: Fix for #77409
4157
4158 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4159
4160         * XplatUIX11GTK.cs: Initial import
4161
4162 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
4163
4164         * FixedSizeTextBox: fixes class signature
4165
4166 2006-01-30  Jackson Harper  <jackson@ximian.com>
4167
4168         * FixedSizeTextBox.cs: New internal class that represents a
4169         textBox that will not be scaled.
4170         * TreeView.cs:
4171         * ComboBox.cs:
4172         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
4173         standard TextBox.
4174                 
4175 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
4176
4177         * XplatUIX11.cs: Retrieve default screen number instead of
4178           assuming 0. Attempted fix for #77318
4179
4180 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
4181
4182         * XplatUIWin32.cs: 
4183           - GetWindowPos: When a window is parented by FosterParent, use 
4184             the desktop instead of FosterParent as the base to get coordinates
4185           - CreateWindow: Don't make FosterParent the parent window for Popups
4186             if we don't want a taskbar entry, Popups automatically don't get one
4187         * Hwnd.cs: Need to call remove to actually remove the key from the
4188           hash table
4189
4190 2006-01-30  Mike Kestner  <mkestner@novell.com>
4191
4192         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
4193
4194 2006-01-30  Jackson Harper  <jackson@ximian.com>
4195
4196         * TreeView.cs:
4197         * TreeNode.cs: Raise events no matter how the treenode is
4198         checked. Patch by Don Edvalson.
4199
4200 2006-01-30  Jackson Harper  <jackson@ximian.com>
4201
4202         * TreeNode.cs: Signature fix.
4203
4204 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
4205
4206         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
4207
4208 2006-01-20  Mike Kestner  <mkestner@novell.com>
4209
4210         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
4211         event forwarding when menus are active.
4212         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
4213         Most of the patch is pdb's with a little rework.
4214
4215 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4216
4217         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
4218           Removed GetMenuDC and ReleaseMenuDC methods; replaced
4219           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
4220         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
4221         * InternalWindowManager.cs: Added use of PaintEventStart/End to
4222           handling of WM_NCPAINT message, now passing the PaintEventArgs to
4223           the PaintWindowDecorations method
4224         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
4225         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
4226         * MenuAPI.cs: Made tracker window invisible
4227         * XplatUIWin32.cs:
4228           - Removed GetMenuDC and ReleaseMenuDC methods
4229           - Implemented the client=false path for PaintEventStart and
4230             PaintEventEnd
4231
4232 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4233
4234         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4235         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4236           styles
4237         * Form.cs: 
4238           - MaximizeBox, MinimizeBox: Recreate the handle when setting
4239             the style
4240           - CreateParams: Reworked the styles to match MS look'n'feel,
4241             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4242             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4243
4244 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4245
4246         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
4247           window is not mapped, since otherwise every form that's being 
4248           created is considered minimized, which is wrong.
4249         * Form.cs: Catching the exception and returning our internal value
4250           instead
4251
4252 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4253
4254         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4255           SetWindowMinMax() to have means to tell the driver about the minimum,
4256           maximum and maximized state window sizes. (Part of the fix for #76485)
4257         * Form.cs:
4258           - Implemented tracking of minimum and maximum window size, now calling
4259             new SetWindowMinMax() driver method to tell the driver (Part of the
4260             fix for #76485)
4261           - Finished handling of WM_GETMINMAXINFO method, now setting all values
4262             (Completes fix for #76485)
4263           - Calling new SetWindowMinMax driver method when the handle for a 
4264             form is created, to make sure the driver knows about it even if
4265             the values have been set before the window was created
4266           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4267             to avoid messing up our anchoring calculations (partial fix
4268             for #77355)
4269         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4270         * XplatUIX11.cs:
4271           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4272           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
4273             (and presumably other freedesktop.org compliant WMs). Left the
4274             assumption unmapped=minimized, needed for SetVisible to work.
4275           - Now setting the window state when creating windows
4276           - Fixed SetVisible to consider/set the window state when mapping
4277             a Form. We cannot set the state before it's mapped, and we cannot
4278             use Form.WindowState once it's mapped (since it would ask the
4279             driver and get 'normal'. Therefore, we grab the state before
4280             mapping, map, and then set state.
4281           - Implmemented SetWindowMinMax method; Metacity does not seem to
4282             honor the ZoomHints, though.
4283         * XplatUIWin32.cs:
4284           - Removed MINMAXINFO (moved to XplatUIStructs)
4285           - Added SetWindowMinMax stub (on Win32 the only way to set that
4286             information is in response to the WM_GETMINMAXINFO message, which
4287             is handled in Form.cs)
4288           - Added logic to SetVisible to set the proper window state when a 
4289             form is made visible (fixes #75720)
4290
4291 2006-01-26  Jackson Harper  <jackson@ximian.com>
4292
4293         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4294         same way we handle them with Invoke.
4295
4296 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
4297
4298         * Form.cs:
4299           - Added tracking of window state so CreateParams can return
4300             the appropriate style
4301           - Moved setting of WS_CAPTION style in CreateParams to allow
4302             styles without caption
4303         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
4304           control if the TextBox property is accessed. Fixes #77345
4305         * Control.cs:
4306           - get_Created: now uses is_disposed and is_created to determine
4307             return value (suggested by Jackson)
4308           - CreateHandle: No longer exits if the handle is being recreated
4309           - RecreateHandle: If the handle is not yet created call the 
4310             appropriate method to create either control or handle. If the
4311             control is already created CreateHandle will simply exit instead
4312             of just creating the handle
4313         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4314           now SendMessage WM_DESTROY directly to the control when DestroyWindow
4315           is called.
4316         * XplatUIX11.cs: 
4317           - When DestroyWindow is called, instead of waiting for the 
4318             DestroyNotification from X11, we directly post it to the WndProc
4319             and immediately dispose the hwnd object.
4320             Same applies to DestroyChildWindows, and this obsoletes the
4321             expose_pending tracking. Contrary to Win32 behaviour we destroy our
4322             child windows before our own, to avoid X11 errors.
4323           - Removed the direct sending of WM_PAINT on UpdateWindow
4324         * XplatUIWin32.cs:
4325           - Reworked DoEvents and GetMessage to allow access to internal queue
4326             even when trying non-blocking access to the queue.  Fixes #77335. 
4327             Based on a patch suggestion by Don Edvalson. The new private
4328             GetMessage can now also be used as a backend for a PeekMessage
4329             frontend version.
4330         * XplatUI.cs: Improved debug output for CreateWindow
4331
4332 2006-01-25  Jackson Harper  <jackson@ximian.com>
4333
4334         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4335
4336 2006-01-24  Jackson Harper  <jackson@ximian.com>
4337
4338         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4339         when we have a MaxDropItems lower then the selected index.
4340
4341 2006-01-24  Jackson Harper  <jackson@ximian.com>
4342
4343         * Control.cs: Don't allow selection of non visible controls, allow
4344         selection of controls without parents.
4345
4346 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4347
4348         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4349         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4350
4351 2006-01-23  Jackson Harper  <jackson@ximian.com>
4352
4353         * UpDownBase.cs: Make the textbox handle all the selection and
4354         tabbing. This fixes tabing to updown controls.
4355
4356 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4357
4358         * TextBoxBase.cs: fixes exception thown the object was null
4359
4360 2006-01-23  Jackson Harper  <jackson@ximian.com>
4361
4362         * ButtonBase.cs: Just use the base CreateParams. They set
4363         visibility and enabled correctly.
4364         * ComboBox.cs:
4365         * TrackBar.cs:
4366         * MonthCalendar.cs: Lets let the base set as much of the
4367         createparams as possible so we don't have duplicate code all over
4368         the place.
4369
4370 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4371
4372         * ThemeGtk.cs: Added TrackBar and some experimental code to
4373           get double buffering back
4374
4375 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4376
4377         * DataGrid.cs: Allows row number set internally higher than the last
4378         when creating a new row. Restores the editing functionality.
4379
4380 2006-01-20  Mike Kestner  <mkestner@novell.com>
4381
4382         * MimeIcon.cs: delay Image creation until the icons are accessed
4383         instead of creating 190 scaled images on GnomeHandler startup.
4384
4385 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4386
4387         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4388           first call base before processing the event. Fixes #77279
4389
4390 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4391
4392         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4393           that the stride for the GDI bitmap would match the stride of
4394           a DIB or a Cursor.
4395
4396 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4397
4398         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4399
4400 2006-01-19  Jackson Harper  <jackson@ximian.com>
4401
4402         * ComboBox.cs: Hookup the text controls keydown event so we get
4403         those when the text control has the focus.
4404
4405 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4406
4407         * Label.cs: Now using the base events instead of defining new ones;
4408           this allows us to just call the base properties without having to
4409           duplicate all base property logic 
4410
4411 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4412
4413         * Label.cs: A label by default is not a tabstop (Fixes one of our
4414           failing nunit tests)
4415
4416 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4417
4418         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4419         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4420
4421 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4422
4423         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4424           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4425           This fixes #77218
4426         * XplatUIWin32.cs: 
4427           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4428             constructor creates images that can't be saved. Part of the fix
4429             for #76103
4430           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4431           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4432             bug fix for handling window state in forms properly)
4433
4434 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4435
4436         * ThemeGtk.cs: Simplify ScrollBar drawing
4437
4438 2006-01-18  Jackson Harper  <jackson@ximian.com>
4439
4440         * Splitter.cs: Set the default dock style for the splitter control
4441         in the constructor.
4442
4443 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4444
4445         * ThemeGtk.cs: Corrected StateType and ShadowType for
4446           gtk_paint_box
4447
4448 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4449
4450         * Control.cs: Make use of Theme.DoubleBufferingSupported
4451         * ThemeGtk.cs:
4452           - Added drawing for flat style buttons
4453           - Added ScrollBar drawing
4454
4455 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4456
4457         * ThemeClearlooks.cs: Removed some unneeded code.
4458         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4459
4460 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4461
4462         * LinkLabel.cs: We need to update the hover drawing when
4463           leaving the control as well.
4464
4465 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4466
4467         * DataGrid.cs: Clicking on non empty areas in the columns
4468            area was giving an exception
4469
4470 2006-01-17  Jackson Harper  <jackson@ximian.com>
4471
4472         * ThemeWin32Classic.cs:
4473         * ListView.cs: Do not draw/clip the headers when the header style
4474         is None.
4475
4476 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4477
4478         * DataGrid.cs: Fixes 77260
4479         
4480 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4481
4482         * DataGrid.cs: Clicking on a column on a empty grid was giving
4483           an exception
4484
4485 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4486
4487         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4488           or any keypress will crash the grid.
4489
4490 2006-01-17  Mike Kestner  <mkestner@novell.com>
4491
4492         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4493         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4494         invisible/previously-visible items.
4495         [Fixes #76909]
4496
4497 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4498
4499         * ThemeClearlooks.cs:
4500         - Added CL_Draw_Button method; now other theme controls that are 
4501           not derived from button or do not have a button can draw buttons
4502           too
4503         - Updated ComboBox drawing
4504         - Beautified RadioButton drawing
4505         - Corrected drawing of bottom and left tabs
4506         - Beautified DateTimePicker and MonthCalendar
4507         - Added CPDrawButton and CPDrawRadioButton
4508
4509 2006-01-16  Jackson Harper  <jackson@ximian.com>
4510
4511         * ComboBox.cs: Set the initial value of the scrollbar to the
4512         current index. Reduce the numbers of refreshs and IndexOfs called.
4513
4514 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4515
4516         * FileDialog.cs: When the file listview is focused hitting the
4517           backspace key moves the fileview to the parent directory
4518
4519 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4520
4521         * Form.cs: 
4522           - Added RecreateHandle call when changing taskbar visibility to 
4523             trigger reparenting in Win32 driver (Fixes #75719)
4524           - If a window has minimize or maximize buttons, it cannot have
4525             a help button
4526         * XplatUIWin32.cs:
4527           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4528             the toplevel form with FosterParent (A toolwindow not on the
4529             taskbar) (Fixes #75719)
4530           - Made FosterParent a toolwindow
4531
4532 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4533
4534         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4535
4536 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4537
4538         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4539           is currently over that control, make sure that tooltip_window.Text
4540           gets updated
4541
4542 2006-01-13  Mike Kestner  <mkestner@novell.com>
4543
4544         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4545
4546 2006-01-13  Jackson Harper  <jackson@ximian.com>
4547
4548         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4549         value passed.  Also redraw the selected node when we recieve
4550         focus, so tabbing between trees works correctly.
4551
4552 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4553
4554         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4555           ~/.gconf/%gconf-tree.xml, so use
4556           .gconf/desktop/gnome/interface/%gconf.xml
4557
4558 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4559
4560         * TextControl.cs: Draw text in gray if control is disabled
4561
4562 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4563
4564         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4565           make sure it's always visible. Fixes #76680.
4566
4567 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4568
4569         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4570
4571 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4572
4573         * PageSetupDialog.cs: Added.
4574         * PrintDialog.cs: Attributes.
4575         * PrintPreviewControl.cs: Updates.
4576         * PrintPreviewDialog.cs: Updates.
4577         
4578 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4579
4580         * Control.cs: Undid my selection check fix, since it's not needed
4581         * TextBoxBase.cs:
4582           - Now considering the presence of hscroll/vscroll when sizing
4583             vscroll/hscroll respectively. Fixed bug #77077
4584           - Added Left/Up/Down/Right to IsInputKey list to prevent
4585             ContainerControl from stealing them. This fixes what I broke
4586             with my last checkin.
4587
4588 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4589
4590         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4591           I finally understand how the property can be set without a setter :-)
4592
4593 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4594
4595         * Application.cs:
4596           - Switched RunLoop to use static Message.Create to create a 
4597             Message object
4598           - Added PreProcessMessage call in runloop for keyboard events; this
4599             is part of the fix for #77219, I overlooked this originally in the
4600             MSDN doc for PreProcessMessage
4601         * Control.cs:
4602           - Removed call to PreProcessMessage from handling of keyboard 
4603             messages; it's supposed to be done in the message pump
4604           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4605             per MSDN documentation.
4606           - IsInputChar: All chars are input chars by default; removed the 
4607             parent calling chain, MS does not document that
4608           - PreProcessMessage: If IsInputChar is true, we want to return false
4609             to allow dispatching of the message
4610           - When selecting the next control, now also check that we're not
4611             selecting ourselves again and therefore return a false positive.
4612         * TextBoxBase.cs:
4613           - Tried to match return values for IsInputKey and ProcessDialogKey
4614             to what MS returns; moved processing of our special keys outside
4615             ProcessDialogKey since MS does not seem to return true on those.
4616           - Moved code that previously was in ProcessDialogKey into new private
4617             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4618           - Reworked handling of WM_CHAR to not have to duplicate code from
4619             Control.cs anymore, instead we simply call down to base.
4620            
4621 2006-01-12  Jackson Harper  <jackson@ximian.com>
4622
4623         * ComboBox.cs: We always need to refresh the text area when
4624         EndUpdate is called. Fixes the combobox in the file dialog.
4625         * Control.cs: Don't create the creator_thread until the controls
4626         handle is created.  Also in InvokeRequired we check if the
4627         creator_thread is null. This gives the effect of InvokeRequired
4628         returning true if the controls handle is not created yet, and
4629         matches MS.
4630
4631 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4632
4633         * XplatUI.cs:
4634           - Added StartLoop() driver method. This is used to allow drivers to
4635             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4636             loop for a particular thread
4637           - Added EndLoop() driver method. This is called once the message
4638             pump for the thread is shut down
4639           - Added SupportsTransparency method to allow the driver to indicate
4640             opacity support for windows
4641         * Form.cs:
4642           - Removed TODO attribute, completed AllowTransparency property
4643           - Added documented logic to Opacity
4644         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4645           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4646           versions of CompatibleTextRendering
4647         * X11Structs.cs: Added opacity atom to our atom enumeration
4648         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4649           of a form might be set before it's reparented by the WM, and we need
4650           the opacity value without calling up to Form)
4651         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4652           SupportsTransparency() driver methods
4653         * Application.cs: Now calling StartLoop and EndLoop driver methods
4654         * XplatUIX11.cs:
4655           - Added opacity atom registration
4656           - Added StartLoop()/EndLoop() methods. They're empty right now but
4657             will need to get implemented when we switch to a per-thread queue
4658           - Implemented SupportsTransparency() method
4659           - Implemented SetWindowTransparency() method
4660           - Added support for setting the opacity value when a window is
4661             reparented (since the opacity needs to be set on the WM frame)
4662         * XplatUIOSX.cs, XplatUIWin32.cs:
4663           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4664
4665 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4666
4667         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4668
4669 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4670
4671         * FileDialog.cs: Added ToolTip for MWFFileView
4672         * MimeIcon.cs: Rewrote GnomeHandler.
4673           - Get currently used gnome icon theme from
4674             ($HOME)/.gconf/%gconf-tree.xml
4675           - Make use of inherited icon themes
4676           - Support SVG icon themes like Tango via librsvg
4677
4678 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4679
4680         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4681         builds. 
4682         
4683         * Application.cs: Move the use_compatible_text_rendering outside
4684         the NET_2_0 define.  If we ever need to use the
4685         use_compatible_text_rendering on the individual controls they will
4686         access the variable from the common shared code paths.
4687
4688 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4689
4690         * XplatUI.cs:
4691           - Added more granular debug options
4692           - Added method to print both window text and id
4693           - Switched debug output to use new Window() debug method
4694           - Added IsEnabled() driver method
4695           - Added EnableWindow() driver method
4696         * Form.cs:
4697           - Removed end_modal; no longer needed, new loop handles termination
4698             via 'closing' variable
4699           - If form is modal, setting DialogResult will now initiate loop
4700             termination via 'closing' variable
4701           - Added support for is_enabled/WS_DISABLED to CreateParams
4702           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4703             does all the work
4704           - Removed code that's now in RunLoop from ShowDialog()
4705           - Added various documented sanity checks to ShowDialog()
4706           - Added handling of WM_DESTROY message; we set 'closing' on getting
4707             the message to indicate the message pump to terminate
4708           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4709             send by the Application.ExitThread method. (We send the message
4710             to destroy the window after all other events have been
4711             processed through the queue, instead of destroying the handle 
4712             directly)
4713           - Moved code from Close() method to WM_CLOSE handler; added logic
4714             to only send close-related events if the form is not displayed
4715             modal
4716         * Splitter.cs (..ctor): Fixed typo in resource name
4717         * Control.cs:
4718           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4719             brush now
4720           - set_Cursor: Now only setting calling into XplatUI if the handle for
4721             the control is already created; this avoids implict handle creation
4722             or crashes if it's not created
4723           - set_Enabled: Now setting the enabled state via the new driver method
4724             instead of just tracking it
4725           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4726           - CreateControl: Reordered event firing and method calls to more
4727             closely fire events in the order MS does. Now setting the
4728             enabled state in the driver when creating the control.
4729           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4730             match MS order
4731         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4732           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4733         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4734         * Hwnd.cs:
4735           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4736           - Added EnabledHwnd property to easily allow a driver to find the
4737             handle of the first enabled window in the parent chain (this is
4738             used by drivers to pass up input events of disabled windows)
4739         * XplatUIDriver.cs: Added IsEnabled() method
4740         * Application.cs:
4741           - Removed crude and obsolete exiting tracking variable
4742           - Removed internal ModalRun(); replaced by RunLoop()
4743           - Implemented private CloseForms() method to allow closing all 
4744             windows owned by a particular (or all) threads
4745           - Exit() now properly closes all windows without forcing the message
4746             pump to quit
4747           - Removed obsolete InternalExit() method
4748           - Changed Run() methods to use new RunLoop() message pump
4749           - Implemented new RunLoop() method for both modal and non-modal forms
4750         * CommonDialog.cs:
4751           - get_CreateParams: Added setting of WS_DISABLED
4752           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4753             invoked via Form.ShowDialog()
4754         * NativeWindow.cs: We don't remove the window from the collection when
4755           the handle is destroyed; there might still be messages for it in the
4756           queue (mainly the resulting WM_DESTROY); instead it will be removed
4757           when Control calls InvalidateHandle in the WM_DESTROY handler
4758         * XplatUIX11.cs:
4759           - CreateWindow: Added logic to handle the WS_DISABLED window style
4760           - EnableWindow: Implemented based on Hwnd.Enabled
4761           - GetMessage: Reset PostQuitState so the method can be called again
4762           - Implemented support for disabled windows (passing messages to the
4763             first enabled parent) in handling all input messages
4764           - Added optimizations for handling Expose events
4765           - Implemeted new driver method IsEnabled()
4766           - Now always resetting paint pending tracking vars when we start paint
4767           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4768         * XplatUIOSX.cs: Added IsEnabled method stub
4769         * XplatUIWin32.cs: Implemented new IsEnabled() method
4770
4771 2006-01-11  Jackson Harper  <jackson@ximian.com>
4772
4773         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4774         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4775         variables a little.
4776         * ColorDialog.cs: Clear out the old form before adding the new
4777         panel.  
4778
4779 2006-01-11  Jackson Harper  <jackson@ximian.com>
4780
4781         * X11Dnd.cs: Make sure to add all the text formats when adding
4782         strings to the data object.
4783         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4784         do some redrawing too.  Also change the UpdateNode to an
4785         UpdateBelow so the newly added node gets painted.
4786         
4787 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4788
4789         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4790         LinkLabel.cs, PropertyGrid.cs: Implement the
4791         UseCompatibleTextRendering property for 2.x
4792
4793         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4794
4795 2006-01-11  Jackson Harper  <jackson@ximian.com>
4796
4797         * TreeView.cs: Use the property for setting the selected node so
4798         the correct events get raised.
4799         * TreeNode.cs: Update the tree when the fore/back colours of a
4800         node are set.
4801
4802 2006-01-10  Jackson Harper  <jackson@ximian.com>
4803
4804         * TreeView.cs: Allow setting SelectedNode to null.
4805
4806 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4807
4808         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4809
4810 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4811
4812         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4813
4814 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4815
4816         * PrintDialog.cs: Added attributes and set default property values.
4817
4818 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4819
4820         * PrintControllerWithStatusDialog.cs: 
4821         Added PrintControllerWithStatusDialog.
4822
4823 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4824
4825         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4826         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4827
4828 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4829
4830         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4831
4832 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4833
4834         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4835         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4836
4837 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4838
4839         * MimeIcon.cs: Added internal class SVGUtil.
4840
4841 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4842
4843         * FileDialog.cs: Don't crash if there are two files with the
4844           same name but different locations.
4845
4846 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4847
4848         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4849         dates across multiple month grids. Used to not highlight entire 
4850         month, but does now.
4851         
4852 2006-01-06  Jackson Harper  <jackson@ximian.com>
4853
4854         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4855         message loop. Change timer intervals to numbers that seem more
4856         natural.
4857
4858 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4859
4860         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4861           object for location info since screen object is now implemented.
4862
4863 2006-01-05  Jackson Harper  <jackson@ximian.com>
4864
4865         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4866         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4867         AsyncMethodResult, this is because we ALWAYS want the
4868         ManualResetEvent to get set.
4869         * Control.cs: When disposing use an async invoke to call shutdown
4870         code, so that thigns don't block on the finalizer thread.  Also
4871         check if we even have a message loop before trying to send
4872         messages, if we don't then don't bother sending messages.
4873         - No more weak references for async methods
4874         * XplatUIDriver.cs: No more weak references for async methods.
4875
4876 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4877
4878         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4879           returns two FontFamily with the same name
4880
4881 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4882
4883         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4884           drawing disabled text. Instead using the ColorGrayText color
4885
4886 2006-01-04  Jackson Harper  <jackson@ximian.com>
4887
4888         * TreeNode.cs: redraw the node when its image index is changed.
4889
4890 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4891
4892         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4893           time I checked there are no others like it.
4894
4895 2006-01-04  Jackson Harper  <jackson@ximian.com>
4896
4897         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4898         this gives the behavoir I was looking for.
4899         * Control.cs: Special case Invoking EventHandlers, this matches MS
4900         and fixes part of bug #76326.
4901
4902 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4903
4904         * ThemeClearlooks.cs, FileDialog.cs:
4905           - Reflect the latest Theme class changes
4906           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4907             with DateTime
4908             
4909 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4910
4911         * Theme.cs: Cache UI resource images and resize them if needed
4912
4913 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4914
4915         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4916           is called. This fixes the crash in Nexxia when setting the font
4917           attributes in the chat. [However, RTF needs a look-over to make sure
4918           that all SelectionXXX methods handle the special case that selection
4919           is empty and therefore the change must be applied to all text starting
4920           at the cursor/selection start]
4921
4922 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4923
4924         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4925           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4926         * X11Keyboard.cs: Switched to new way of calling PostMessage
4927
4928 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4929
4930         * Theme.cs: Added theme interface for images to allow the theme to
4931           control what images are used for things like FileDialog, MessageBox
4932           icons, etc.
4933         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4934
4935 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4936
4937         * FileDialog.cs:
4938           - Removed some dead code
4939           - Opening a recently used file does work now
4940           - Small UI enhancements
4941           - Refactoring
4942
4943 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4944
4945         * FileDialog.cs: Forgot too add __MonoCS__
4946
4947 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4948
4949         * FileDialog.cs: We are able to read recently used files now let's
4950           go on and write them.
4951
4952 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4953
4954         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4955           button
4956         * MimeIcon.cs: Do a check for the top level media type also
4957
4958 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4959
4960         * ThemeClearlooks.cs:
4961           - Added CPDrawStringDisabled
4962           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4963             some chars if the text doesn't fit into text_rect
4964           - DrawListViewItem: If View = View.LargeIcon center the image;
4965             rewrote the drawing of ListViewItem.Text if View = 
4966             View.LargeIcon
4967
4968 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4969
4970         * MimeIcon.cs: Use default KDE icon theme if there is no
4971           "48x48" directory for the current icon theme, fixes #77114
4972         * Mime.cs: Disable not working and actually not used code. 
4973         * ThemeWin32Classic.cs:
4974           - Replace "new SolidBrush" in GetControlBackBrush and
4975             GetControlForeBrush with ResPool.GetSolidBrush
4976           - Changed DrawListViewItem from private to protected virtual
4977         * FileDialog.cs:
4978           - Added form.MaximizeBox = true
4979           - Don't throw an exception if there is a broken symbolic link
4980
4981 2005-12-23  Jackson Harper  <jackson@ximian.com>
4982
4983         * TabControl.cs: Give the panels focus, keyboard navigation is
4984         fixed so this works correctly now.
4985         - We need these key events also.
4986         * ToolBar.cs: Remove some of the poor mans double buffering.
4987         
4988 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4989
4990         * ComboBox.cs: The internal TextBox now returns the focus.
4991
4992 2005-12-23  Jackson Harper  <jackson@ximian.com>
4993
4994         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4995
4996 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4997
4998         * Control.cs: Removed debug code
4999         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
5000           implicit children
5001
5002 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
5003
5004         * Control.cs: When creating the control, update the Z-order after
5005           all it's children are created, too. (Fixes nexxia not showing
5006           picturebox bug)
5007
5008 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5009
5010         * Control.cs: Do not update the anchoring distances if layout is
5011           suspended, instead do it once layout is resumed
5012
5013 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
5014
5015         * Control.cs: 
5016           - After many hours of debugging, for both Jackson and
5017             myself, it turns out that it helps to set the parent of a control
5018             if you want to actually see it onscreen. In the spirit of that
5019             discovery, we're now setting the parent of the control and
5020             it's children when the control's handle is created. This fix
5021             will make Lutz Roeder's Reflector run happily. 
5022           - now just creating the handle instead of the whole control when
5023             getting a graphics context for the control.
5024
5025 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5026
5027         * ScrollableControl.cs: When calculating the canvas, don't consider
5028           the scrollbar widths. Instead, predict if horizontal scrollbar
5029           will affect canvas when deciding on vertical display and vice versa.
5030
5031 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5032
5033         * RichTextBox.cs: Set default RTF font for documents that don't
5034           have a font table (Fixes #77076)
5035
5036 2005-12-22  Jackson Harper  <jackson@ximian.com>
5037
5038         * TextBoxBase.cs: It's difficult to do, but you can have an empty
5039         clipboard. This prevents a NullRef in that case.
5040         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
5041         clipboard. PRIMARY is for the currently selected text only. (We
5042         should implement PRIMARY at some point.
5043
5044 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5045
5046         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
5047           a Unicode function with a structure that was defined in Ansi way.
5048           This fixes #76942.
5049
5050 2005-12-21  Jackson Harper  <jackson@ximian.com>
5051
5052         * StatusBar.cs: Statusbar handles its fore/back colours on it's
5053         on. Because thats how it rolls. (and this avoids it using ambient
5054         colours).
5055         * ThemeWin32Classic.cs: Use the proper back color for filling.
5056         * Menu.cs: Use the system menu bar color for drawing menu
5057         bars. Using the window back color will bring ambient colours into
5058         the picture.
5059
5060 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
5061
5062         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
5063           Bitmaps were created and not disposed.
5064
5065 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5066
5067         * Control.cs (CreateControl): Don't do anything if the control is
5068           already created, otherwise we'd fire the OnCreated event more than
5069           once
5070
5071 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5072
5073         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
5074           will always match. Instead return -1. Fixes #76464.
5075
5076 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5077
5078         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
5079           neither the beginning nor the end of the line (Fixes bug #76479)
5080
5081 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5082
5083         * Control.cs:
5084           - ControlNativeWindow.ControlFromHandle(): Now handling situation
5085             where handle is invalid
5086           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
5087             instead of slower linear search
5088         * NativeWindow.cs: Don't remove the window from the hashtable until
5089           after the driver has destroyed it (since the driver might use
5090           Control.FromHandle to lookup the control object
5091         * Hwnd.cs: Added DestroyPending property to track if a window is 
5092           already destroyed as far as the driver is concerned and only hasn't
5093           yet notified the control
5094         * XplatUIX11.cs:
5095           - Activate(): Check if the window is still valid before using the 
5096             handle
5097           - Implemented DestroyChildWindow() method to mark child windows as
5098             destroyed when a window is destroyed. This prevents situations 
5099             where we might call an X method based on queued events for a
5100             window that already has been destroyed but we haven't yet pulled
5101             the destroy method from the queue.
5102           - Added a call to the new DestroyChildWindow() method to the drivers
5103             DestroyWindow code. Also now marking the destroyed window itself
5104             as pending
5105
5106 2005-12-20  Jackson Harper  <jackson@ximian.com>
5107
5108         * StatusBar.cs:
5109         * StatusBarPanel.cs: Don't calculate panel sizes on draw
5110         anymore. Just do them when needed, also track the rects of panels
5111         so that we can optimize refreshing more in the future.
5112
5113 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
5114
5115         * ColorDialog.cs: Fixed focus drawing in small color controls
5116
5117 2005-12-19  Jackson Harper  <jackson@ximian.com>
5118
5119         * InternalWindowManager.cs:
5120         * MdiWindowManager.cs: Cleanup some coordinate system changes so
5121         moving windows works properly.
5122
5123 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
5124
5125         * Control.cs: 
5126           - Removed call to InitLayout() from SetBoundsCore(); doc says
5127             it's only called when a control is added to a container
5128           - Split InitLayout logic, moved to separate UpdateDistances() method
5129             since we need to perform those calculations more often than just
5130             when adding the control to a container. (Needed to fix #77022)
5131           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
5132           - Reduced the OnBindingContextChanged events count, don't send them
5133             unless the control is created, we still aren't totally matching
5134             MS, but I can't quite figure out some of their rules
5135
5136 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5137
5138         * ThemeClearlooks.cs: Corrected distance between ProgressBar
5139           stripes
5140
5141 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5142
5143         * ThemeClearlooks.cs:
5144           - Updated ProgressBar drawing
5145           - Corrected drawing of ScrollBars and scroll buttons
5146           - Some temporary fixes for minor pixel artefacts
5147
5148 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
5149
5150         * Control.cs:
5151           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
5152             cause events to be sent in the same order as MS does.
5153           - Added ChangeParent() method to trigger various OnXXXChanged events
5154             that need to be fired when a parent changes (This is a reworking
5155             of the patch from r54254, with the X11 errors fixed)
5156           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
5157             since on MS we get OnLayoutChanged events when calling Clear()
5158           - Changed Enabled property to consider parent state as well, if a
5159             parent is not enabled, the control will not be either
5160           - Changed Parent property to simply call Controls.Add() since that
5161             now does all the work required, this way we avoid code duplication
5162           - Threw in a few OnBindingsContextChanged calls to try and match
5163             when MS sends them. We seem to send a few too many, though.
5164           - Added call to CreateControl when adding the control to a parent.
5165             We were never calling CreateControl. Still needs some work, in
5166             some places we treat HandleCreated and ControlCreated as equal, 
5167             which is wrong
5168           - Removed obsolete commented out code from UpdateZOrder()
5169
5170 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5171
5172         * ThemeClearlooks.cs: Updated TrackBar drawing.
5173
5174 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5175
5176         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
5177
5178 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5179
5180         * FileDialog.cs: Add the Help button and the open readonly
5181           checkbox only if needed
5182
5183 2005-12-16  Jackson Harper  <jackson@ximian.com>
5184
5185         * Control.cs: Make sure we have an active menu before trying to
5186         process commands on it. Prevents menu-less forms from crashing
5187         when Alt is pressed.
5188         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
5189         Dieter Bremes.
5190         * RichTextBox.cs: Expand statement to help out gmcs and fix the
5191         2.0 build.
5192
5193 2005-12-16  Jackson Harper  <jackson@ximian.com>
5194
5195         * InternalWindowManager.cs: Don't translate tool windows screen
5196         coordinates. This fixes windows 'bouncing' around when being moved.
5197
5198 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5199
5200         * TextBoxBase.cs:
5201           - MaxLength now treats 2^31-1 equal to unlimited length (this is
5202             not quite MS compatible, MS uses that number only for single line
5203             and 2^32-1 for multi-line, but I figure it won't hurt keeping
5204             the limit at 2GB)
5205           - Now enforcing the MaxLength limit when entering characters
5206           - Added argument to internal Paste() method to track if it's called
5207             from programatically or via keyboard, since keyboard driven pastes
5208             need to enforce max-length
5209           - Added logic to Paste to only paste as many chars as MaxLength 
5210             allows
5211         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
5212         * TextControl.cs:
5213           - Added Length property to return number of characters in document
5214           - Added private CharCount property which only tracks actual chars
5215             in the document (no linefeeds) and fires event when CharCount
5216             changes
5217           - Added tracking of character count to all methods that alter it
5218           - Added LengthChanged event to allow applications to subscribe
5219             to any changes to the document
5220
5221 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5222
5223         * TextBox.cs: 
5224           - Removed local password_char field (moved to TextBoxBase)
5225           - Now setting the document's password var when password is
5226             set
5227         * TextBoxBase.cs:
5228           - Added password_char field (needed here so MultiLine can
5229             access it)
5230           - Added logic to MultiLine property setter to set the document's
5231             variable when password display is allowed
5232           - Removed debug code and made some debug code conditional
5233         * TextControl.cs:
5234           - Added RecalculatePasswordLine() method to handle special password
5235             char only lines
5236           - Added PasswordChar property, also added related tracking vars
5237           - Draw() method now uses local text var for grabbing text to draw,
5238             this var is set to line.text unless we're doing password display,
5239             then it is set to the pre-generated all-password-chars line
5240           - Added calling RecalculatePasswordLine() method for password lines
5241
5242 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5243
5244         * Hwnd.cs: 
5245           - Added Reparented property to allow tracking of Window Manager
5246             reparenting actions (which affect X/Y calculations of toplevel 
5247             windows)
5248           - Made ToString() print window handles in hex
5249         * XplatUIX11.cs:
5250           - AddConfigureNotify(): Now uses reparented state off Hwnd to
5251             determine if X/Y needs offsetting
5252           - AddConfigureNotify(): Fixed offset calculations
5253           - Now adds ReparentNotify messages into the queue
5254           - Now processes ReparentNotify messages and causes a 
5255             WM_WINDOWPOSCHANGED message to be sent upstream if a window
5256             is reparented (as most likely it's X/Y coordinates are changed
5257             due to that)
5258
5259 2005-12-14  Jackson Harper  <jackson@ximian.com>
5260
5261         * XplatUIX11.cs: Tool windows still need to respek focus.
5262
5263 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5264
5265         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5266           have a working release
5267
5268 2005-12-13  Jackson Harper  <jackson@ximian.com>
5269
5270         * Form.cs: Update styles after setting the border style regardless
5271         of whether or not the window is using a window manager.
5272
5273 2005-12-13  Jackson Harper  <jackson@ximian.com>
5274
5275         * Form.cs: We now hook into an internal window manager instead of just an
5276         MDI subsystem, this is so we can have properly behaving tool windows.
5277         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5278         * InternalWindowManager.cs: New internal class that acts as a
5279         window manager for tool windows and as a base for mdi windows.
5280         * MdiWindowManager.cs: New class that acts as a window manager for
5281         mdi windows.
5282
5283 2005-12-12  Jackson Harper  <jackson@ximian.com>
5284
5285         * Control.cs: Updates so we match behavoir for for implicit
5286         controls. Fixes explosions in MDI.
5287
5288 2005-12-12  Jackson Harper  <jackson@ximian.com>
5289
5290         * Control.cs: Implement Invalidate (Region).
5291
5292 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
5293
5294         * Control.cs: 
5295           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
5296             the same events as MS does. MS fires events for each property 
5297             except, for unknown reasons, Cursor, when the control is reparented. 
5298             I can't seem to totally match add/remove since MS also fires some 
5299             VisibleChanged events, which makes no sense. Consolidated the
5300             parenting code into a separate method so it can be called from
5301             both Add and Remove. set_Parent no longer needs any special logic
5302             as it calls the parent's add method which implicitly fires
5303             all events
5304           - Removed some obsolete code and debug output
5305           - Enabled state is inherited from parents, if this is enabled
5306
5307 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
5308
5309         * Form.cs: Removed commented out code
5310
5311 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
5312
5313         * Control.cs:
5314           - Added internal version of Invoke, with additional argument 
5315             indicating if we're calling it from a Dispose() handler. That
5316             way we can avoid BeginInvoke throwing an exception if we're
5317             calling for an already destroyed window.
5318           - Added a dispose argument to BeginInvokeInternal, and made the
5319             check if a valid window handle chain exists conditional on
5320             it not being a dispose call
5321           - Removed code in DestroyHandle to destroy our children. Since we
5322             now handle the WM_DESTROY message we will catch all our children
5323             being destroyed.
5324           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5325         * Form.cs:
5326           - Added a field to track the application context of the form.
5327           - No need to set closing variable as response to WM_CLOSE, instead
5328             we destroy the window. We also call PostQuitMessage if the form
5329             has an application context (which makes it the main app form,
5330             which, when closed terminates the app)
5331         * XplatUI.cs:
5332           - Dropped Exit() method, it's naming was confusing
5333           - Added PostQuitMessage() which causes GetMessage to return false
5334             once the message queue is empty
5335         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5336           PostQuitMessage()
5337         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5338           no longer a valid XplatUI method, but left it in since it's used
5339           internally. Added empty PostQuitMessage() method.
5340         * MenuAPI.cs: Replaced call to Exit() with call to
5341           PostQuitMessage, even though this is probably no longer needed.
5342         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5343         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5344         * Application.cs:
5345           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5346           - Removed old debug code that would call XplatUI for exception
5347             display, enabled standard exception handling (Still not enabled
5348             though, until NativeWindow's ExternalExceptionHandler define
5349             is removed
5350         * NativeWindow.cs:
5351           - Added internal method to allow control to update NativeWindow
5352             after a window has been destroyed
5353           - Added handling of already destroyed windows when calling i
5354             DestroyWindow
5355           - Added removal of handle from list on ReleaseHandle
5356         * XplatUIX11.cs:
5357           - Dropped GetMessageResult var and related code
5358           - Added PostQuitState to field to track if PostQuitMessage has been
5359             called
5360           - Dropped Exit() method
5361           - Added PostQuitMessage() method
5362           - GetMessage now will return false if PostQuitState is set and no
5363             more messages are in the queue.
5364           - Expose handler will no longer generate WM_PAINT messages if we are
5365             in PostQuitState since it's very likely any windows have already
5366             been destroyed, and since Hwnd won't get updated until we have
5367             processed the DestroyNotify we'd be causing X errors.
5368         
5369 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5370
5371         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5372           Thanks to Mike for pointing out the err of my ways.
5373
5374 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5375
5376         * Control.cs(PreProcessMessage): Moved menu handling back, but
5377           after all other key handling, to match MS (who handles Menu in
5378           DefWndProc)
5379         * Menu.cs (WndProc): Removed my brainfart
5380
5381 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5382
5383         * Control.cs(PreProcessMessage): Removed special menu handling 
5384         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5385
5386 2005-12-07  Mike Kestner  <mkestner@novell.com>
5387
5388         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5389         state according in tracker.
5390         * Menu.cs : promote tracker field to base class and provide a tracker
5391         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5392         has a tracker. Unparent items that are removed from the collection.
5393         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5394         * Theme*.cs: add always_show_hotkeys field to support configurability
5395         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5396         pressed.
5397
5398 2005-12-07  Jackson Harper  <jackson@ximian.com>
5399
5400         * MdiChildContext.cs: Use Control.ResetCursor.
5401         * Control.cs: ResetCursor needs to set the property so that the
5402         correct XplatUI call gets made.
5403
5404 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5405
5406         * Control.cs: More fixes to make our key events match MS. We
5407           were not setting the modifier state on KeyData, and we were
5408           not generating any events when Alt was pressed with a key
5409           since handling of WM_SYSxxx was missing for the OnKey methods.
5410
5411 2005-12-07  Jackson Harper  <jackson@ximian.com>
5412
5413         * MdiChildContext.cs: reenable the sizing code.
5414         - When the mouse leaves a window reset its cursor.
5415
5416 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5417
5418         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5419
5420 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5421
5422         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5423           widths of Fixed3D borders
5424
5425 2005-12-07  Jackson Harper  <jackson@ximian.com>
5426
5427         * MdiClient.cs: Fix warnings. Earn Mike's love.
5428
5429 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5430
5431         * ThemeClearlooks.cs:
5432           - Adjusted mouse over button color
5433           - Added first parts of CheckBox drawing
5434           - Added correct color for selected text background
5435           - Fixed ComboBox drawing
5436           - Added CPDrawBorder3D and CPDrawBorder
5437
5438 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5439
5440         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5441
5442 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5443
5444         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5445           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5446           alert users via sound. We could add an enum arg with different
5447           types of alerts in the future
5448
5449 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5450
5451         * Control.cs: Fix behaviour problems pointed out by Mike
5452
5453 2005-12-05  Mike Kestner  <mkestner@novell.com>
5454
5455         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5456         prop setters.  Calls parent.Refresh for now, but could be maybe be
5457         optimized with an internal method on StatusBar at some point.
5458         [Fixes #76513]
5459
5460 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5461
5462         * RichTextBox.cs: Implemented get_SelectionColor
5463
5464 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5465
5466         * ThemeClearlooks.cs:
5467           - Removed dead code
5468           - Draw black button border only if button is Form.AcceptButton
5469           - Draw correct button color for pressed RadioButton if the mouse 
5470             has entered the button
5471           - Updated ProgressBar drawing!
5472           - Updated CPDrawSizeGrip drawing
5473           - Updated StatusBarPanel drawing
5474
5475 2005-12-05  Mike Kestner  <mkestner@novell.com>
5476
5477         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5478         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5479
5480 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5481
5482         * ThemeClearlooks.cs: Initial check-in, activate with
5483           export MONO_THEME=clearlooks
5484         * ThemeEngine.cs: Added ThemeClearlooks
5485
5486 2005-12-03  Mike Kestner  <mkestner@novell.com>
5487
5488         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5489         [Fixes #76897]
5490
5491 2005-12-02  Jackson Harper  <jackson@ximian.com>
5492
5493         * Form.cs: If the child form has no menu the default main menu is
5494         used as the active menu.
5495
5496 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5497
5498         * ListBox.cs: Check if any items exist before trying to resolve 
5499           coordinates into items
5500
5501 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5502
5503         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5504           as the second color for the background hatch
5505
5506 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5507
5508         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5509         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5510           sure that what we pass to FormatText is always 1-based. Fixes #76885
5511
5512 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5513
5514         * NumericUpDown.cs (EndInit): When we are done initializing,
5515         reflect any updates on the UI.
5516
5517 2005-12-02  Jackson Harper  <jackson@ximian.com>
5518
5519         * ImplicitHScrollBar.cs:
5520         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5521         their container controls.
5522         * TreeView.cs: Use the new implicit scrollbars.
5523
5524 2005-12-02  Jackson Harper  <jackson@ximian.com>
5525
5526         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5527         can play with it.
5528         * TreeNodeCollection.cs: If we remove the topnode we need to
5529         update topnode to the next node in line.
5530         - When clearing nodes go through the same process as removing
5531         them, so they get depareneted and checked if they are top node.
5532
5533 2005-12-01  Jackson Harper  <jackson@ximian.com>
5534
5535         * TreeView.cs: When imagelists are used the image area is
5536         selectable as well as the text.
5537         - If there are no selected nodes select the first one.
5538         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5539         so don't do it more then we need to.
5540
5541 2005-12-01  Jackson Harper  <jackson@ximian.com>
5542
5543         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5544         that arrows can be scaled.
5545
5546 2005-12-01  Jackson Harper  <jackson@ximian.com>
5547
5548         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5549         fail. Patch by Dieter Bremes
5550
5551 2005-11-30  Jackson Harper  <jackson@ximian.com>
5552
5553         * Form.cs: Property is 2.0 only
5554         * PrintDialog.cs: Signature fix.
5555
5556 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5557
5558         * TextControl.cs: 
5559           - No longer artificially moves text 2 pixels down (now that we have
5560             borders this is no longer needed)
5561           - Added calcs for left, hanging and right indent
5562
5563 2005-11-23  Mike Kestner  <mkestner@novell.com>
5564
5565         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5566
5567 2005-11-30  Jackson Harper  <jackson@ximian.com>
5568
5569         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5570         get cloned as part of CloneMenu ().
5571         * Menu.cs: Make sure the parent of the items get set correctly
5572         when they are added.  And the owners are notified of the changes.
5573         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5574         we can change the menu being displayed/handled by the form without
5575         changing the menu assosciated with the form.
5576         - Don't let Mdi children draw/handle menus.
5577         
5578 2005-11-30  Jackson Harper  <jackson@ximian.com>
5579
5580         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5581         a MenuChanged event. Just to make the API a little more
5582         consistent.
5583         * MainMenu.cs:
5584         * MenuItem.cs: Use the new OnMenuChanged
5585         * MdiChildContext.cs: Handle menu merging.
5586         * Form.cs: Implement MergedMenu.
5587         
5588 2005-11-30  Jackson Harper  <jackson@ximian.com>
5589
5590         * Menu.cs: We were misusing Add. Add goes behind the specified
5591         index according to the docs, and does not replace the specified
5592         index. So I added an Insert method.
5593
5594 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5595
5596         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5597           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5598           is for Jackson
5599         * RichTextBox.cs: Added calls to base for DnD events
5600
5601 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5602
5603         * TextControl.cs:
5604           - Fixed drag-selection related crash; style fixes
5605           - Implemented undo class
5606             o Implemented method to capture document state for specified
5607               range in document tree
5608             o Implemented method to restore captured document state
5609             o Implemented cursor tracking
5610             o Implemented basic undo stack
5611           - Added undo cursor tracking to methods altering cursor location
5612           - Added undo tracking to selection deletion (still missing
5613             other text-altering hookups)
5614         * RichTextBox.cs:
5615           - Added SelectionLength property
5616           - Implemented CanPaste()
5617           - Implemented Paste()
5618           - Added missing protected methods
5619           - Fixed RTF->Document conversion; now uses font index 0 and color 
5620             index 0 as the default font for the parsed text
5621           - Fixed RTF<->Document font size translation
5622           - Fixed RTF generation, now properly handles cross-tag boundaries
5623             for single line selection
5624           - No longer always appends blank line to generated RTF
5625           - Removed TODOs
5626           - Added missing attributes
5627           - Hooked up undo-related methods
5628         * TextBoxBase.cs:
5629           - Implemented Copy()
5630           - Implemented Paste()
5631           - Implemented Cut()
5632           - Fixed caret mis-behaviour on backspace across line-boundaries
5633
5634 2005-11-29  Jackson Harper  <jackson@ximian.com>
5635
5636         * MdiClient.cs: Add a method for activating mdi children. Very
5637         basic right now. I imagine someday it might need more girth.
5638         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5639         children windows names are added to the menu item.
5640         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5641         mdilist. This happens regardless of whether or not there are any
5642         mdi windows to see in the list, and according to my tests happens
5643         before the items are even added. Also happens if there isn't even
5644         an mdi client to get windows from.
5645
5646 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5647
5648         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5649         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5650
5651 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5652
5653         * DataGridTableStyle.cs:
5654           - Create always the styles for the missing columns even if they are
5655             provided by the user (not default table style)
5656         * DataGrid.cs:
5657           - Fixes bug 76770
5658           - Fixes SetDataBinding (always re-attach source)
5659           - Fixes SetNewDataSource (only clear styles if they are not for 
5660             this source)
5661          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5662             and remove properly
5663
5664 2005-11-29  Jackson Harper  <jackson@ximian.com>
5665
5666         * FileDialog.cs: Implement missing bits, remove some dead
5667         code.
5668         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5669         creation of the panel so that the options set on the dialog are
5670         seen when the panel is created.
5671         * TreeView.cs: raise a click when items are clicked.
5672         
5673 2005-11-29  Jackson Harper  <jackson@ximian.com>
5674
5675         * MdiClient.cs: Pass some signature methods through to base.
5676
5677 2005-11-28  Jackson Harper  <jackson@ximian.com>
5678
5679         * ListView.cs: Raise the click event when items are clicked.
5680
5681 2005-11-28  Jackson Harper  <jackson@ximian.com>
5682
5683         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5684         a nullref.
5685
5686 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5687
5688         * ThemeNice.cs: - Removed 1 pixel bitmaps
5689           - Use SmoothingMode.AntiAlias where it makes sense
5690             (ScrollButton arrow for example)
5691           - Enhanced Button focus drawing
5692           - Fixed ComboBox drawing (no artefacts anymore, focus
5693             rectangle is back again, reduced size of ComboButton, etc.)
5694           - Fixed RadioButton focus drawing for Appearence.Button
5695           - Slight ScrollButton redesign
5696           - Some LinearGradientBrush size fixes
5697           - GroupBoxes have now rounded edges
5698           - Fixed StatusBar drawing
5699
5700 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5701
5702         * ThemeNice.cs: - Remove dead code
5703           - use correct background colors for menus, etc.
5704           - Fake pixel drawing with 1 pixel bitmaps
5705
5706 2005-11-24  Jackson Harper  <jackson@ximian.com>
5707
5708         * MdiClient.cs: Size the scrollbars when resizing the window.
5709         - Resize the maximized windows when the client is resized
5710         * Form.cs: Make the child context available
5711         
5712 2005-11-23  Jackson Harper  <jackson@ximian.com>
5713
5714         * MdiChildContext.cs: Don't size windows if they are maximized.
5715
5716 2005-11-23  Mike Kestner  <mkestner@novell.com>
5717
5718         * ContextMenu.cs: use MenuTracker.
5719         * Control.cs: remove menu handle usage.
5720         * Form.cs: remove menu handle usage.
5721         * Hwnd.cs: remove menu handle usage.
5722         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5723         motion and clicks to the new Tracker handlers.
5724         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5725         and handle usage.
5726         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5727         Killed the MENU and MENUITEM data types and associated collections
5728         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5729         MenuTracker class that exposes the leftovers from the old MenuAPI
5730         static methods. Restructured Capture handling so that only one grab is
5731         done for the entire menu hierarchy instead of handing off grabs to
5732         submenus. Tracker now has an invisible control to Capture when active.
5733         * MenuItem.cs: add sizing accessors, kill Create
5734         and handle usage.
5735         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5736         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5737         MENU(ITEM). remove menu handle usage, use Menu directly.
5738         * XplatUIDriver.cs: remove menu handle usage.
5739         * XplatUIOSX.cs: remove menu handle usage.
5740         * XplatUIWin32.cs: remove menu handle usage.
5741         * XplatUIX11.cs: remove menu handle usage.
5742
5743 2005-11-22  Jackson Harper  <jackson@ximian.com>
5744
5745         * Hwnd.cs: Don't compute the menu size for
5746         DefaultClientRectangle.
5747         - Reenable menu sizes being computed for GetClienRectangle.
5748         * Form.cs: Remove comment of trechery
5749         
5750 2005-11-22  Jackson Harper  <jackson@ximian.com>
5751
5752         * Hwnd.cs: The adjustments for the menu bar are made when it is
5753         attached to the form.
5754
5755 2005-11-19  Jackson Harper  <jackson@ximian.com>
5756
5757         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5758         (just like on windows).
5759
5760 2005-11-19  Jackson Harper  <jackson@ximian.com>
5761
5762         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5763         use real buttons anymore because they are in non client area. The
5764         one TODO here is that I need to somehow invalidate a section of
5765         the non client area.
5766
5767 2005-11-18  Jackson Harper  <jackson@ximian.com>
5768
5769         * Control.cs: Put the enum check back in now that MDI doesnt have
5770         to use this to set border styles.
5771         * Form.cs: Only set mdi child windows borders if the handle has
5772         been created.
5773         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5774         this directly on to the driver.
5775         - Get the move start position before adjusting for the titlebar
5776         height, this fixes the windows "skipping" when they are first
5777         moved.
5778
5779 2005-11-18  Jackson Harper  <jackson@ximian.com>
5780
5781         * XplatUIX11.cs: Just compute the mdi borders separately as they
5782         don't totally match up with normal form borders.
5783
5784 2005-11-18  Jackson Harper  <jackson@ximian.com>
5785
5786         * Control.cs: Set WS_ styles for borders, so that the driver does
5787         not have to retrieve the control instance to figure out what kind
5788         of borders it should have.
5789         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5790         driver can know its an mdi child easily.
5791         * XplatUIX11.cs: Get the border styles and whether the window is
5792         MDI from the Styles and ExStyles params instead of having to get a
5793         control. This prevents a chicken and egg problem.       
5794
5795 2005-11-18  Jackson Harper  <jackson@ximian.com>
5796
5797         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5798
5799 2005-11-18  Jackson Harper  <jackson@ximian.com>
5800
5801         * MdiClient.cs: Calculate when to add and remove scrollbars
5802         correctly.
5803         * MdiChildContext.cs: Adjust the y position to take the titlebar
5804         into account.
5805         - No height for FormBorderStyle.None
5806
5807 2005-11-18  Jackson Harper  <jackson@ximian.com>
5808
5809         * Control.cs: Allow non enum values to be used for
5810         InternalBorderStyle.  MDI does this to set a special border style.
5811         - New utility methods for converting points to/from client coords
5812         - Add the newly created control to the Controls collection before
5813         updating its style. This way UpdateStyle can walk the control
5814         heirarchy to find the control if needed.
5815         so I don't need to create a new Point object all the time.
5816         * Form.cs: Let MDI windows handle their border styles.
5817         - Set styles on MDI windows so the correct title style is derived.
5818         * MdiChildContext.cs: Move all the painting and window handling
5819         into the non client area.
5820         - Use correct sizing and put correct buttons on frames based on
5821         the FormBorderStyle.
5822         - Notify the mdi client about scrolling
5823         - Need to handle the buttons ourselves now, because they are all
5824         in non client areas and we can't add controls there.
5825         * MdiClient.cs: Halfway to scrolling, this implementation is
5826         somewhat broken though, we need to check to make sure other
5827         windows aren't causing scrolling before removing the bars. Also
5828         the bars need to be drawn on top, maybe I can switch implicit
5829         controls to be on top.
5830         * Hwnd.cs: caption_height and tool_caption_height are now
5831         properties of an hwnd, this way they can be set by the driver
5832         based on the type of window they are.  In X11 the window manager
5833         handles the decorations so caption_height is zero unless its an
5834         MDI window.
5835         - Add 3 pixel borders for MDI windows (0xFFFF).
5836         - Get rid of some code duplication, have DefaultClientRectanle
5837         just call GetClientRectangle.
5838         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5839         Hwnd now.
5840         - Set border styles differently for mdi windows.
5841         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5842         Hwnd now.
5843         
5844 2005-11-15  Mike Kestner  <mkestner@novell.com>
5845
5846         * Menu.cs: when adding an item to the collection, if item is already 
5847         parented, remove it from the parent.
5848
5849 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5850
5851         * X11DesktopColors.cs: Added KDE support
5852
5853 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5854
5855         * XplatUIWin32.cs: 
5856           - Clipboard methods now can translate Rtf format
5857           - No longer removes clipboard contents whenever a new format is added
5858             to allow placing multiple formats on the clipboard
5859         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5860           will place all formats contained in it onto the clipboard. Also
5861           now cleans the clipboard before placing a new object onto it
5862         * RichTextBox.cs:
5863           - Implemented set_Rtf
5864           - Implemented set_SelectedRtf
5865           - Created InsertRTFFromStream() method to allow single code base
5866             for all properties and methods that insert RTF into document
5867           - Removed debug output
5868         * TextControl.cs:
5869           - Fixed Delete(int) to fix up line numbers
5870           - Fixed ReplaceSelection to combine start and end line
5871           - Fixed serious DeleteChars bug that would leave the document tree
5872             broken
5873           - Improved DumpTree with several logic checks to detect broken
5874             document trees
5875           - Removed debug lines
5876           - Fixed Caret.WordForward/WordBack moving code, now always also 
5877             updates caret.tag (fixes crash when word-selecting across tag
5878             boundaries via keyboard)
5879           - Added Insert() method for inserting multiline text into documents
5880           - Fixed DeleteChars() calculation errors that would cause a broken
5881             tag chain with multiple tag lines
5882           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5883           - Split() no longer moves caret if split is at caret location
5884           - ReplaceSelection() now updates the cursor and re-displays it
5885           - ReplaceSelection() now uses new Insert() method to avoid code
5886             duplication
5887           - FormatText() can now handle formatting partial lines
5888         * TextBoxBase.cs:
5889           - Append now uses new TextControl.Insert() method (this avoids 
5890             duplicate code)
5891           - Implemented Ctrl-X (Cut) (
5892           - Implemented Ctrl-C (Copy)
5893           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5894             regeneration when pasting text; roundtripping Copy&Paste within
5895             edit control still fails due to some calculation bugs in GenerateRTF)
5896           - The Delete key will now remove the current selection if it is visible
5897         * TextBox.cs: Removed debug lines
5898         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5899           driver to be initialized and can't therefore be done via a static ctor)
5900
5901 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5902
5903         * TextControl.cs: Added backend code for finding char arrays and strings
5904         * TextBoxBase.cs:
5905           - Added mouse wheel scroll support
5906           - Added support for VScroll and HScroll events
5907         * RichTextBox.cs:
5908           - Implemented all seven Find() variants
5909           - Implemented GetCharFromPosition()
5910           - Implemented GetCharIndexFromPosition()
5911           - Implemented GetLineFromIndex()
5912           - Implemented GetPositionFromCharIndex();
5913           - Implemented SaveFile for PlainText and UnicodeText
5914           - Fixed set_Font, now setting a new font applies that font to
5915             the whole document
5916           - Implemented generic Document to RTF converter
5917           - Implemented SaveFile for RichText format (still missing unicode
5918             conversion for non-ansi chars)
5919           - Implemented get_Rtf
5920           - Implemented get_SelectedRtf
5921
5922 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5923
5924         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5925           to allow any captures to be released before triggering OnClick. This
5926           way a click handler may capture the mouse without interference.
5927         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5928           This way we send them even though X may not allow a grab (if the window
5929           isn't visible, for example)
5930
5931 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5932
5933         * DataGridViewRowEventArgs.cs: DataGridView implementation
5934         * DataGridViewElement.cs: DataGridView implementation
5935         * DataGridViewComboBoxCell.cs: DataGridView implementation
5936         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5937         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5938         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5939         * ImageLayout.cs: DataGridView implementation
5940         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5941         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5942         * DataGridViewSelectionMode.cs: DataGridView implementation
5943         * IDataGridViewEditingControl.cs: DataGridView implementation
5944         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5945         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5946         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5947         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5948         * DataGridViewColumnSortMode.cs: DataGridView implementation
5949         * DataGridView.cs: DataGridView implementation
5950         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5951         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5952         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5953         * Padding.cs: DataGridView implementation
5954         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5955         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5956         * DataGridViewRowEventHandler.cs: DataGridView implementation
5957         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5958         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5959         * DataGridViewButtonCell.cs: DataGridView implementation
5960         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5961         * DataGridViewEditMode.cs: DataGridView implementation
5962         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5963         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5964         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5965         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5966         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5967         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5968         * DataGridViewCellEventHandler.cs: DataGridView implementation
5969         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5970         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5971         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5972         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5973         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5974         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5975         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5976         * QuestionEventArgs.cs: DataGridView implementation
5977         * IDataGridViewEditingCell.cs: DataGridView implementation
5978         * DataGridViewTriState.cs: DataGridView implementation
5979         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5980         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5981         * DataGridViewColumnCollection.cs: DataGridView implementation
5982         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5983         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5984         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5985         * DataGridViewColumn.cs: DataGridView implementation
5986         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5987         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5988         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5989         * DataGridViewRow.cs: DataGridView implementation
5990         * DataGridViewImageCellLayout.cs: DataGridView implementation
5991         * DataGridViewImageCell.cs: DataGridView implementation
5992         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5993         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5994         * DataGridViewHeaderCell.cs: DataGridView implementation
5995         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5996         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5997         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5998         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5999         * QuestionEventHandler.cs: DataGridView implementation
6000         * DataGridViewCellStyleScopes.cs: DataGridView implementation
6001         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
6002         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
6003         * DataGridViewCell.cs: DataGridView implementation
6004         * DataGridViewCellEventArgs.cs: DataGridView implementation
6005         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
6006         * DataGridViewCellStyle.cs: DataGridView implementation
6007         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
6008         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
6009         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
6010         * TextFormatFlags.cs: DataGridView implementation
6011         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
6012         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
6013         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
6014         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
6015         * DataGridViewButtonColumn.cs: DataGridView implementation
6016         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
6017         * HandledMouseEventArgs.cs: DataGridView implementation
6018         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
6019         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
6020         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
6021         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
6022         * DataGridViewRowCollection.cs: DataGridView implementation
6023         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
6024         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
6025         * DataGridViewHitTestType.cs: DataGridView implementation
6026         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
6027         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
6028         * DataGridViewColumnEventHandler.cs: DataGridView implementation
6029         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
6030         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
6031         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
6032         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
6033         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
6034         * DataGridViewContentAlignment.cs: DataGridView implementation
6035         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
6036         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
6037         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
6038         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
6039         * DataGridViewPaintParts.cs: DataGridView implementation
6040         * DataGridViewCellCollection.cs: DataGridView implementation
6041         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
6042         * DataGridViewImageColumn.cs: DataGridView implementation
6043         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
6044         * DataGridViewElementStates.cs: DataGridView implementation
6045         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
6046         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
6047         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
6048         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
6049         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
6050         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
6051         * DataGridViewRowHeaderCell.cs: DataGridView implementation
6052         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
6053         * DataGridViewTextBoxCell.cs: DataGridView implementation
6054         * DataGridViewBand.cs: DataGridView implementation
6055         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
6056         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
6057         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
6058         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
6059         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
6060         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
6061         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
6062         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
6063         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
6064         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
6065         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
6066
6067 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
6068
6069         * ThemeWin32Classic.cs: 
6070           - Draw the outside focus rectangle around buttons
6071           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
6072             doesn't use end caps for every dash of a line anymore. This
6073             workaround ignores the forecolor.
6074
6075 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
6076
6077         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
6078           endian safe.
6079
6080 2005-11-07  Jackson Harper  <jackson@ximian.com>
6081
6082         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
6083
6084 2005-11-07  Jackson Harper  <jackson@ximian.com>
6085
6086         * ScrollableControl.cs: Calculate the maximum and change vars
6087         (more) correctly so that scrollbars appear as a sensible size.
6088
6089 2005-11-04  Jackson Harper  <jackson@ximian.com>
6090
6091         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
6092         collection.
6093         * TreeView.cs: When the tree is sorted null out the top_node so
6094         that it is recalculated.
6095         - Use dotted lines instead of dashed lines to match MS better.
6096
6097 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
6098
6099         * ListView.cs: 
6100           - Implements key search for items. Useful when browsing files with FileDialog
6101           - When changing view mode or when clear the items reset scrollbar positions
6102
6103 2005-11-04  Jackson Harper  <jackson@ximian.com>
6104
6105         * CurrencyManager.cs: Implement the MetaDataChanged event, the
6106         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
6107         as to what the method may do as there is no real way of creating a
6108         derived CurrencyManager and calling the method. 
6109
6110 2005-11-03  Jackson Harper  <jackson@ximian.com>
6111
6112         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
6113         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
6114         method which seems to just be used internally to refresh the tabs.
6115
6116 2005-11-03  Jackson Harper  <jackson@ximian.com>
6117
6118         * TabControl.cs: Implement the remove method. Fix some broken
6119         comments.
6120
6121 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6122
6123         * DateTimePicker.cs:
6124           - Added missing DateTimePickerAccessibleObject class
6125           - Added missing events
6126           - Added OnFontChanged method
6127         * Form.cs: Added missing attributes
6128         * TreeView.cs: Added missing attributes
6129
6130 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
6131
6132         * GridItemCollection.cs: Fix signatures
6133
6134 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6135
6136         * XplatUI.cs: Updated build rev/date
6137         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
6138           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
6139         * Application.cs: Trigger context-specific ExitThread events
6140
6141 2005-11-03  Jackson Harper  <jackson@ximian.com>
6142
6143         * Menu.cs:
6144         * MainMenu.cs:
6145         * GridTableStylesCollection.cs:
6146         * Timer.cs:
6147         * TabPage.cs:
6148         * HelpProvider.cs:
6149         * StatusBar.cs:
6150         * MonthCalendar.cs: Signature fixes
6151
6152 2005-11-03  Jackson Harper  <jackson@ximian.com>
6153
6154         * TreeNodeCollection.cs: Remove should not be virtual.
6155         * TreeView.cs: Implement the last of the missing methods.
6156
6157 2005-11-03  Jackson Harper  <jackson@ximian.com>
6158
6159         * TreeNodeConverter.cs: Implement to get off my class-status back.
6160
6161 2005-11-03  Jackson Harper  <jackson@ximian.com>
6162
6163         * TreeView.cs: Hookup the bits for drag and drop.
6164         * TreeNode.cs: Don't cache the tree_view or index anymore, now
6165         that nodes can be moved from tree to tree easily this just causes
6166         all sorts of problems.
6167         * TreeNodeCollection: Don't need to give treenodes an index and
6168         treeview anymore when they are added, these are computed on the
6169         fly. Also make sure to remove a node before its added.
6170
6171 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6172
6173         * TextControl.cs:
6174           - Added CaretSelection enum
6175           - Added comparison methods to Marker struct, makes selection code
6176             more readable
6177           - Added SelectionStart and SelectionEnd as 'moveable' location for
6178             the CaretDirection enum and handler
6179           - Added selection_prev variable to track optimized invalidation for
6180             word and line selection
6181           - Added SelectionVisible property (returns true if there is a valid 
6182             selection)
6183           - Switched CaretHasFocus to only display the caret if there is no
6184             visible selection
6185           - Avoiding StringBuilder.ToString to retrieve a single char, instead
6186             using the direct character index; should be much faster
6187           - Added various conditional debug statements
6188           - Fixed invalidation calculation for selection ranges
6189           - Added ExpandSelection() method to support word and line selection
6190           - Switched SetSelectionToCaret to use new Marker compare overloads
6191           - Added central IsWordSeparator() method to determine word 
6192             separators/whitespace and FindWordSeparator() to streamline common
6193             usage of IsWordSeparator()
6194         * TextBoxBase.cs:
6195           - Removed unneeded grabbed variable, it was just mirroring
6196             Control.Capture
6197           - No longer firing OnTextChanged event when Text setter is called,
6198             since the base will fire the event for us
6199           - Added handling of Ctrl-Up/Down selection
6200           - Added handling of Shift-Cursorkey selection
6201           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
6202             words
6203           - Added handling of Shift and Ctrl-Shift-Home/End selection
6204           - Removed some debug output
6205           - Added handling for single/double/tripple-click to place caret/
6206             select word/select line respectively (Fixes bug #76031)
6207           - Added support for drag expansion of word/line selection
6208         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
6209           current selection
6210
6211 2005-11-02  Jackson Harper  <jackson@ximian.com>
6212
6213         * X11Dnd.cs: If the drag is going to and from a MWF window just
6214         copy the data instead of sending it out through the X Selection
6215         mechanism.
6216
6217 2005-11-02  Jackson Harper  <jackson@ximian.com>
6218
6219         * X11Dnd.cs:
6220         * XplatUIX11.cs: When in a drag we don't want motion notify
6221         messages to get passed on to the other controls. This prevents
6222         mouse move messages from showing up in the drag source.
6223
6224 2005-11-02  Jackson Harper  <jackson@ximian.com>
6225
6226         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
6227         the correct button is release to end a drag.
6228         * XplatUIX11.cs: Make the button state internal so the drag system
6229         can access it.  Dragging needs to know about all button releases,
6230         not just left button.
6231
6232 2005-11-02  Miguel de Icaza  <miguel@novell.com>
6233
6234         * Form.cs (Icon): If the icon is null, reset the icon to the
6235         default value. 
6236
6237         * Cursor.cs: When writing the AND-mask bitmap do not include the
6238         number of colors, but hardcode those to two (black and white),
6239         fixes the loading of color cursors (Paint Dot Net).
6240
6241         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6242         turn off autoscaling.
6243
6244         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6245
6246 2005-11-02  Jackson Harper  <jackson@ximian.com>
6247
6248         * X11Dnd.cs: Make sure to send a status message if the pointer
6249         enters a control that can not accept a drop, otherwise the cursor
6250         isn't updated correctly. Also tried to compress the lines of code
6251         a bit.
6252
6253 2005-11-02  Jackson Harper  <jackson@ximian.com>
6254
6255         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6256         set actions correctly.  This isn't perfect as XDND and win32 have
6257         some differences on how you allow actions. I'll clear this up by
6258         adding a path for drag from MWF to MWF windows.
6259         * XplatUIX11.cs: Hook into the dnd system.
6260
6261 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
6262
6263         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6264         previously shown but they are no longer need it. Very obvious when 
6265         browsing files with FileDialog.
6266
6267 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
6268
6269         * Control.cs: We always need to call OnPaintBackground. We pretty much
6270           ignore AllPaintingInWmPaint and always do the painting there, whether 
6271           it's set or not, since we always ignore the WM_ERASEBKGND message 
6272           (which we don't generate on X11). This fixes #76616.
6273         * Panel.cs: Removed unneeded background painting. This happens properly
6274           in Control.cs already
6275
6276 2005-10-31  Mike Kestner  <mkestner@novell.com>
6277
6278         * Menu.cs: Add items to collection before setting their index.
6279         * MenuItem.cs : add range checking with ArgumentException like MS.
6280         [Fixes #76510]
6281
6282 2005-10-31  Jackson Harper  <jackson@ximian.com>
6283
6284         * ListBox.cs: Invalidate if the area is visible at all not just
6285         contained in the visible rect. Fixes unselection of semi visible
6286         items.
6287
6288 2005-10-31  Jackson Harper  <jackson@ximian.com>
6289
6290         * Control.cs: Consistently name the dnd methods. Make them
6291         internal so we can override them to match some MS behavoir
6292         internally.
6293         * Win32DnD.cs: Use the new consistent names.
6294
6295 2005-10-31  Jackson Harper  <jackson@ximian.com>
6296
6297         * TreeView.cs: Don't draw the selected node when we lose focus.
6298
6299 2005-10-31  Jackson Harper  <jackson@ximian.com>
6300
6301         * X11Dnd.cs: We still need to reset the state even though a full
6302         reset isn't being done, otherwise status's still get sent all over
6303         the place.
6304
6305 2005-10-31  Jackson Harper  <jackson@ximian.com>
6306
6307         * Control.cs: Make the dnd_aware flag internal so the dnd
6308         subsystem can check it. Catch exceptions thrown in dnd handlers to
6309         match MS behavoir.
6310         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6311         * X11Dnd.cs: Handle null data in the converters. Set the XDND
6312         version when sending a XdndEnter. Use the control/hwnd dnd_aware
6313         flags to reduce the number of dnd enters/status's sent.
6314
6315 2005-10-31  Jackson Harper  <jackson@ximian.com>
6316
6317         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6318
6319 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
6320
6321         * PictureBox.cs: Fixes 76512
6322
6323 2005-10-28  Jackson Harper  <jackson@ximian.com>
6324
6325         * X11Dnd.cs: Early implementation to support winforms being a drag
6326         source for data on X11. Also restructured the converters so they
6327         can go both ways now.
6328         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6329         
6330 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
6331
6332         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6333           clipboard requests
6334
6335 2005-10-27  Jackson Harper  <jackson@ximian.com>
6336
6337         * TreeNode.cs: Implement serialization so my DnD examples will work.
6338
6339 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6340
6341         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6342           TreeView.cs: Don't dispose objects that are not owned.
6343           
6344 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6345
6346         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6347           should retrieve the current cursor and report that, but XplatUI
6348           doesn't (yet) have an interface for that (and I'm not sure I even
6349           can, on X11)
6350         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6351           until any message loop processing is done (and the WM_SETCURSOR
6352           replaces the cursor to the proper one)
6353         * XplatUIX11.cs: 
6354           - Fixed override behaviour, we can't set the cursor globally on X11, 
6355             just for our windows.
6356           - Invalidating the System.Drawing X11 display handle when we are
6357             shutting down
6358         * Control.cs: Fix to make csc happy
6359
6360 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6361
6362         * TextBoxBase.cs: 
6363           - get_Text: Add last line (without trailing newline) to returned
6364             value (Fixes 76212)
6365           - get_TextLength: Count last line in returned length
6366           - ToString: Call Text property instead of duplicating code
6367
6368 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6369
6370         * ImageList.cs: Dispose ImageAttributes objects.
6371
6372 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6373
6374         * ImageList.cs: Use attribute constructors with less arguments where
6375           possible.
6376
6377 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6378
6379         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6380           Use typeof instead of strings when assembly is referenced. Added
6381           some more comments.
6382
6383 2005-10-21  Jackson Harper  <jackson@ximian.com>
6384
6385         * ListView.cs: Raise a double click event. Also tried to somewhat
6386         fix when the selectedindexchanged event is raised. Its still
6387         broken though.
6388
6389 2005-10-21  Jackson Harper  <jackson@ximian.com>
6390
6391         * TreeView.cs: New method to invalidate the plus minus area of a
6392         node without invalidating the whole node (maybe this can be used
6393         in some more places).
6394         * TreeNodeCollection.cs: When adding to an empty node we need to
6395         invalidate its plus minus area so the little block shows up.
6396         
6397 2005-10-21  Jackson Harper  <jackson@ximian.com>
6398
6399         * TreeView.cs: Make sure that when we invalidate a node the bounds
6400         are big enough to cover the selected box and the focus
6401         rectangle. Use a different colour for the lines connecting nodes
6402         so they show up with all themes.
6403
6404 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6405
6406         * NativeWindow.cs: Don't call anything that could call into the driver,
6407           we might be on a different thread.
6408
6409 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6410
6411         * Control.cs(Dispose): Since Dispose might run on a different thread,
6412           make sure that we call methods that could call into the driver via
6413           invoke, to avoid thread issues
6414
6415 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6416
6417         * XplatUI.cs: Removed finalizer
6418         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6419           not allowing to be called on the finalizer thread.
6420
6421 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6422
6423         * ImageList.cs:
6424           - Reverted r51889 and r51891.
6425           - Added ImageListItem class that stores unmodified image items and image
6426             properties required to create list images until handle is created.
6427           - Added AddItem and moved image creation logic to AddItemInternal.
6428           - Added CreateHandle method that creates images based on unmodified items.
6429           - Added DestroyHandle that changes state to store unmodified items.
6430           - Add and AddStrip methods no more create handle.
6431           - ReduceColorDepth has no return value.
6432           - Dispose destroys handle.
6433           - Modified other methods to reflect the above changes.
6434           - Implemented key support.
6435           - Added profile 2.0 members and attributes.
6436           - Added private Reset and ShouldSerialize methods that provide the same
6437             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6438             them as they are private.
6439           - Added some more comments about implementation details.
6440
6441 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6442
6443         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6444
6445 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6446
6447         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6448
6449 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6450
6451         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6452         * DataGridColumnStyle.cs: Remove debug message
6453
6454 2005-10-20  Jackson Harper  <jackson@ximian.com>
6455
6456         * TreeView.cs: We can always get input keys regardless of whether
6457         or not editing is enabled. They are used for navigation.
6458
6459 2005-10-20  Jackson Harper  <jackson@ximian.com>
6460
6461         * TreeNode.cs: Use the viewport rect for determining if a node
6462         needs to be moved for visibility. Don't use Begin/End edit. This
6463         calls a full refresh when its done.
6464         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6465         rect property internal so the treenodes can see it. When clicking
6466         on a node we need to ensure that its visible because it might just
6467         be partly visible when clicked.
6468
6469 2005-10-20  Jackson Harper  <jackson@ximian.com>
6470
6471         * TreeNodeCollection.cs: Remove debug code.
6472
6473 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6474
6475         * Datagrid.cs: Implements column sorting in Datagrid
6476         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6477
6478 2005-10-20  Jackson Harper  <jackson@ximian.com>
6479
6480         * TreeNodeCollection.cs: Remove items properly. Update the correct
6481         area after removing them.
6482
6483 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6484
6485         * Datagrid.cs: Should not call base.OnPaintBackground
6486
6487 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6488
6489         * XplatUIX11.cs (GetMessage):
6490           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6491             window instead of client window
6492           - Now properly calculates NC_xBUTTONUP message coordinates
6493           - ScreenToMenu now properly calculates it's coordinates of whole 
6494             window, since menus are in the whole window, not in the client
6495             window
6496           - Added WholeToScreen coordinate translation method
6497
6498 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6499
6500         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6501           want to return a message, loop back to the beginning of the function
6502           and grab the next real message to process instead.
6503
6504 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6505
6506         * Splitter.cs: Properly set limits if no filler control is used
6507
6508 2005-10-19  Jackson Harper  <jackson@ximian.com>
6509
6510         * ColorDialog.cs: Don't show the help button if it is not enabled
6511         instead of disabling it (this is what MS does). Don't create the
6512         panel until the dialog is run, otherwise the vars (such as
6513         ShowHelp) are not set yet.
6514
6515 2005-10-19  Jackson Harper  <jackson@ximian.com>
6516
6517         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6518         are reduced when adding nodes.
6519         * TreeNode.cs:
6520         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6521         tree.
6522         
6523 2005-10-19  Jackson Harper  <jackson@ximian.com>
6524
6525         * FolderBrowserDialog.cs: End editing our treeview so the window
6526         actually gets refreshed.
6527
6528 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6529
6530         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6531           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6532           inside of WM_PAINT
6533
6534 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6535
6536         * MenuAPI.cs: Returns after Hidding window
6537         * XplatUIX11.cs: Added TODO found while debugging menu issues
6538
6539 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6540
6541         * XplatUIX11.cs: Do not re-map the whole window when it's size
6542           becomes non-zero unless it's supposed to be actually visible
6543
6544 2005-10-18  Jackson Harper  <jackson@ximian.com>
6545
6546         * TreeView.cs: We don't need to keep a count anymore.
6547         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6548         use the Grow method.
6549
6550 2005-10-18  Jackson Harper  <jackson@ximian.com>
6551
6552         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6553         implement it manually here.
6554
6555 2005-10-18  Jackson Harper  <jackson@ximian.com>
6556
6557         * ImageList.cs: Dont kill the list when the colour depth is
6558         changed, just change the colour depth of all the images.
6559         - Same goes for setting the image size. Just resize them all
6560         instead of killing the list softly.
6561
6562 2005-10-18  Jackson Harper  <jackson@ximian.com>
6563
6564         * Control.cs: Don't invalidate empty rectangles.
6565
6566 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6567
6568         * ListViewItem.cs:
6569           - Adds checked item to the Checked/Item lists (where empty before)
6570           - Do not add items to the Selected lists if they are already present
6571         * ListView.cs:
6572           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6573           - When deleting items make sure that we delete them for the Selected
6574           and Checked list also.
6575
6576 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6577
6578         * Label.cs: Dispose objects no longer used
6579         * ThemeWin32Classic.cs: Dispose objects no longer used
6580
6581 2005-10-18  Jackson Harper  <jackson@ximian.com>
6582
6583         * TabControl.cs: Don't refresh the whole control when the tabs are
6584         scrolled, we just need to refresh the tab area.
6585
6586 2005-10-17  Jackson Harper  <jackson@ximian.com>
6587
6588         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6589         after handle when we need it.
6590
6591 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6592
6593         * Control.cs: When the parent size changes, recalculate anchor 
6594           positions. Partial fix for #76462
6595
6596 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6597
6598         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6599           drawn. Fixes #76462
6600
6601 2005-10-17  Jackson Harper  <jackson@ximian.com>
6602
6603         * MonthCalendar.cs: Don't create the numeric up down until our
6604         handle is created. Otherwise our handle is created in the
6605         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6606         yet.
6607
6608 2005-10-17  Jackson Harper  <jackson@ximian.com>
6609
6610         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6611         correctly.
6612
6613 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6614         * TreeNode.cs : small logical fix (was using local var instead of field)
6615         
6616 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6617
6618         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6619
6620 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6621
6622         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6623
6624 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6625
6626         * Control.cs: 
6627           - Re-implemented anchoring code. My first version was really broken.
6628             This fixes bug #76033. Unlike the previous implementation we will
6629             no longer have round errors since all numbers are calculated from
6630             scratch every time. Removed various anchor-related obsolete vars.
6631           - InitLayout no longer causes layout event firing and layout to be 
6632             performed
6633
6634 2005-10-16  Jackson Harper  <jackson@ximian.com>
6635
6636         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6637         which was broken).
6638
6639 2005-10-16  Jackson Harper  <jackson@ximian.com>
6640
6641         * TabControl.cs: Remove debug code.
6642
6643 2005-10-16  Jackson Harper  <jackson@ximian.com>
6644
6645         * XEventQueue.cs: Increase the default queue size (very simple
6646         apps needed to grow the queue).
6647         * Hwnd.cs: No finalizer so we don't need to suppress
6648         finalization. Compute the invalid area manually so a new rectangle
6649         does not newto be created.
6650         * ScrollableControl.cs: Don't set any params (otherwise visibility
6651         isn't set correctly).
6652         * MdiChildContext.cs: New constructor takes the mdi parent so it
6653         doesn't have to be computed and avoids a crash on windows. Draw
6654         the window icon properly, and allow the text to be seen.
6655         * Form.cs: Use new MdiChildContext constructor. Make sure the
6656         child context isn't null in wndproc.
6657         * TabControl.cs: Don't set focus, this is muddling keyboard
6658         behavoir. Expand the tab rows when a window size increase will
6659         allow extra tabs to be seen. Don't allow tabs smaller than the
6660         width of a window to be scrolled out of view.
6661         * TreeNode.cs:
6662         * TreeView.cs: Use measure string to calculate a nodes width, the
6663         width is cached and only updated when the text or the font is
6664         changed. Don't check for expand/collapse clicks on the first level
6665         nodes if root lines are disabled.
6666         
6667 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6668
6669         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6670
6671 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6672
6673         * DataGridBoolColumn.cs: fixes warning
6674
6675 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6676
6677         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6678         to match more to match more precisely the MS Net behavior
6679
6680 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6681
6682         * Hwnd.cs: Added field to track if window is mapped
6683         * XplatUIX11.cs: 
6684           - Unmap windows if they become 0-size, re-map when 
6685             they are >0 again; fixes #76035
6686           - Re-set our error handler after initializing X11Desktop
6687             to override any error handlers Gtk or whatever was called
6688             may have set.
6689
6690 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6691
6692         * CheckedListBox.cs: Removed unused vars
6693         * ListView.cs: Fixed signatures
6694         * RichTextBox.cs: Removed unused vars
6695         * TextBoxBase.cs: Removed unused vars
6696         * XplatUIWin32.cs: Removed unused vars
6697         * XplatUIX11.cs: Removed unused vars
6698         * XplatUI.cs: Updated version and date to latest published
6699
6700 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6701
6702         * Cursor.cs: Added private .ctor to work around a bug in
6703           resourceset (Thanks to Geoff Norton for the help on this)
6704         * SplitterEventArgs.cs: Made fields accessible so we don't
6705           waste boatloads of objects and can reuse the same one
6706           in Splitter
6707         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6708           any captions and borders when generating screen coordinates
6709         * Splitter.cs: Reimplemented control, now fully complete, uses
6710           rubberband drawing, supports and obeys all properties, has
6711           proper cursors
6712
6713 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6714
6715         * Form.cs (Form): Setup default values for autoscale and
6716         autoscale_base_size;  Make these instance variables, not static
6717         variables. 
6718
6719         (OnLoad): on the first load, adjust the size of the form.
6720
6721 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6722
6723         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6724           width argument to DrawReversibleRectangle()
6725         * XplatUIWin32.cs, XplatUIX11.cs: 
6726           - Implemented width for DrawReversibleRectangle()
6727           - Added logic to DrawReversibleRectangle that recognizes a zero
6728             width or height and only draws a line in that situation
6729         
6730 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6731
6732         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6733         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6734         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6735           method (it uses our FosterParent window to get a graphics context)
6736
6737 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6738
6739         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6740           and SetWindowBackground methods
6741         * Control.cs:
6742           - Setting proper ControlStyles
6743           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6744             EraseWindowBackground, instead we draw the window background
6745             ourselves in PaintControlBackground. This behaviour is
6746             required to match MS, where, when OnPaintBackground is not
6747             called, the background is not drawn.
6748           - Removed unneeded Refresh() in set_Text
6749         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6750         * XplatUIX11.cs:
6751           - Created DeriveStyles method to translate from CreateParams to
6752             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6753             matches FormBorderStyle enum values)
6754           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6755             style calculations into single DeriveStyles method
6756           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6757             from redrawing the whole window on any resize or expose.
6758           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6759             all styles were applied to our whole/client window appropriately
6760           - Removed EraseWindowBackground() and SetWindowBackground() methods
6761           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6762             no longer clear/redraw the background through X
6763           - Removed handling of erase_pending bit, we have no use for it (or
6764             so it seems)
6765         * XplatUIOSX.cs:
6766           - Removed generation and handling of WM_ERASEBKGND message
6767           - Removed EraseWindowBackground() and SetWindowBackground() methods
6768           - Removed handling of hwnd.ErasePending flag
6769         * XplatUIWin32.cs:
6770           - Removed EraseWindowBackground() and SetWindowBackground() methods
6771           - We no longer call EraseWindowBackground on PaintEventStart, we 
6772             ignore the fErase flag, erasing is handled in Control in the
6773             background handler
6774         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6775           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6776           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6777           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6778           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6779           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6780           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6781
6782 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6783
6784         * PropertyGrids.cs: Get sub properties
6785         * PropertyGridView.cs: Fix drawing code
6786
6787 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6788
6789         * ListBox.cs: Fixes 76383
6790
6791 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6792
6793         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6794         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6795         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6796
6797
6798 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6799
6800         * ComboBox.cs: Fixes border drawing
6801
6802 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6803
6804         * MimeIcon.cs: Ignore errors if the file can not be read.
6805
6806 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6807
6808         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6809          - Fixed border calculations
6810          - Fixed horizontal scrolling in single column listboxes
6811          - Fixed drawing issues
6812
6813 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6814
6815         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6816           FormBorderStyle enum
6817         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6818           code to determine FormBorderStyles from CreateParams
6819         * Form.cs:
6820           - Fixed bug where we'd set the wrong window styles if we were
6821             not creating an MDI window
6822           - Added call to XplatUI.SetBorderStyle when form borders are set
6823         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6824         * Hwnd.cs:
6825           - Removed obsolete edge style
6826           - Switched from BorderStyle to FormBorderStyle
6827         
6828 2005-10-10  Jackson Harper  <jackson@ximian.com>
6829
6830         * Form.cs: Use the property to get the window handle instead of
6831         accessing it directly. Prevents a null reference exception.
6832
6833 2005-10-10  Jackson Harper  <jackson@ximian.com>
6834
6835         * TreeView.cs: Don't adjust the rect given to DrawString now that
6836         our libgdiplus draws correctly.
6837
6838 2005-10-08  Jackson Harper  <jackson@ximian.com>
6839
6840         * TreeView.cs: Don't try to find the clicked on node if there are
6841         no nodes in the tree.
6842
6843 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6844
6845         * RichTextBox.cs:
6846
6847           restore
6848
6849 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6850
6851         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6852           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6853           ErrorProvider.cs:
6854           Use ResPool for brushes and dispose System.Drawing objects that
6855           are not used anymore.
6856
6857 2005-10-07  Jackson Harper  <jackson@ximian.com>
6858
6859         * MdiChildContext.cs: Use the new borders instead of drawing them
6860         ourselves.
6861
6862 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6863
6864         * Calling UpdateBounds after changing the window's BorderStyle 
6865         since the style can change the ClientSize
6866
6867 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6868
6869         * Control.cs: Made PaintControlBackground virtual
6870         * Panel.cs: Overriding PaintControlBackground instead of using paint
6871           event; paint event method was interfering with 'real' users of the
6872           event.
6873
6874 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6875
6876         * ThemeWin32Classic.cs: remove border drawing since it is handled
6877         by the base control class now and was causing double border drawing.
6878
6879 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6880
6881         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6882           but it does seem to match MS behaviour. This fixes bug #75324
6883
6884 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6885
6886         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6887           somewhat hackish looking
6888
6889 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6890
6891         * TextBoxBase.cs:
6892           - We now accept Enter even if AcceptEnter is false, if the containing
6893             form does not have an AcceptButton configured (fixes bug #76355)
6894           - Calculations are now fixed to no longer use Width/Height, but
6895             ClientSize.Width/Height, since we now support borders (this was
6896             a result of fixing borders and therefore bug #76166)
6897           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6898             true (fixes bug #76354)
6899         
6900 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6901
6902         * Control.cs: 
6903           - Defaulting BorderStyle and setting it in XplatUI when our window 
6904             is created
6905           - Added enum check to InternalBorderStyle setter
6906         * XplatUIX11.cs: 
6907           - Added drawing of window borders
6908           - Now properly calculates WM decorations offset for toplevel 
6909             windows (fixes bug #74763)
6910         * XplatUIWin32.cs: 
6911           - Implemented BorderStyles for windows (we're letting win32 draw 
6912             the border for us)
6913           - Fixed the signature for SetWindowLong
6914         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6915           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6916           setting borders
6917         * UpDownBase.cs: Remove drawing of borders, this is handled by
6918           the driver, outside the client area
6919         * ListView.cs: Removed bogus border calculations. The control should
6920           be oblivious to borders, since those are not part of the client
6921           area. 
6922         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6923         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6924           drawing code
6925
6926 2005-10-06  Jackson Harper  <jackson@ximian.com>
6927
6928         * MdiChildContext.cs: Clear out the old virtual position remove
6929         all the unneeded calls to CreateGraphics.
6930
6931 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6932
6933         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6934
6935 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6936
6937         * Form.cs: 
6938           - Added loading and setting of our new default icon
6939           - Only set icon if window is already created
6940
6941 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6942
6943         * Label.cs:
6944           - Do not explicitly set the foreground and background colors, to
6945             allow inheriting from parents (fixes #76302)
6946           - Use Control's InternalBorderStyle property to deal with borders
6947
6948 2005-10-06  Jackson Harper  <jackson@ximian.com>
6949
6950         * MdiChildContext.cs: Use the new xplatui function to draw a
6951         reversible rect.
6952
6953 2005-10-06  Jackson Harper  <jackson@ximian.com>
6954
6955         * Form.cs: Add the parent before creating the child context cause
6956         we need the parent when setting up the child.
6957
6958 2005-10-06  Jackson Harper  <jackson@ximian.com>
6959
6960         * FolderBrowserDialog.cs: redo the tree population code so a
6961         second thread isn't used. Should be a lot faster and more stable
6962         now.
6963
6964 2005-10-05  Jackson Harper  <jackson@ximian.com>
6965
6966         * TreeView.cs: There are no expand/collapse boxes if the node has
6967         no children.
6968
6969 2005-10-05  Jackson Harper  <jackson@ximian.com>
6970
6971         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6972
6973 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6974
6975         * FileDialog.cs: Fix InitialDirectory
6976
6977 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6978
6979         * ComboBox.cs:
6980                 - Fixes changing between styles
6981                 - Fixes simple mode
6982                 - Fixes last item crashing when navigating with keyboard
6983
6984 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6985
6986         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6987
6988 2005-10-05  Jackson Harper  <jackson@ximian.com>
6989
6990         * TreeView.cs: If updating the root node do a full refresh.
6991         * TreeNode.cs: The root node should be expanded by default. Also
6992         added a utility prop to tell if we are the root node.
6993         * TreeNodeCollection.cs: Only refresh if the node we are being
6994         added to is expanded. Also added a comment on a potential
6995         optimization.
6996         
6997 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6998
6999         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
7000           in dispose method. Fixes #76330
7001
7002 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
7003
7004         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
7005
7006                 - Implements vertical and horizontal scrolling using XplatUI
7007                 - Fixes keyboard navagation
7008                 - Fixes EnsureVisible
7009                 - Drawing fixes
7010                 - Handles and draws focus properly
7011
7012
7013 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
7014
7015         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
7016           Create handle. NET_2_0: Destroy handle when value is null.
7017
7018 2005-10-03  Jackson Harper  <jackson@ximian.com>
7019
7020         * ScrollBar.cs: My last scrollbar patch was broken. This is a
7021         revert and a new patch to prevent the thumb from refreshing so
7022         much.
7023
7024 2005-10-02  Jackson Harper  <jackson@ximian.com>
7025
7026         * ScrollBar.cs: Don't update position if it hasn't actually
7027         changed. This occurs when you hold down the increment/decrement
7028         buttons and the thumb gets to the max/min.
7029
7030 2005-10-01  Jackson Harper  <jackson@ximian.com>
7031
7032         * Form.cs:
7033         * MdiChildContext.cs:
7034         * MdiClient.cs: Implement ActiveMdiChild in Form.
7035
7036 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
7037
7038         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
7039
7040 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
7041
7042         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
7043           be found
7044
7045 2005-09-30  Jackson Harper  <jackson@ximian.com>
7046
7047         * ListBox.cs: Don't do a full refresh unless some data has
7048         actually changed.
7049
7050 2005-09-30  Jackson Harper  <jackson@ximian.com>
7051
7052         * TreeView.cs: Make sure that the checkboxes size is factored in
7053         even when not visible.
7054
7055 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7056
7057         * FileDialog.cs: Fix Jordi's build break
7058
7059 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7060
7061         * FileDialog.cs: 
7062                 - Use standard the Windows colours for the combobox as espected
7063                 - Dispose objects that use resouces when no longer need them
7064
7065 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7066
7067         * X11DesktopColors.cs: Initial incomplete implementation
7068         * XplatUIX11.cs: Added call to initialize X11DesktopColors
7069
7070 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
7071
7072         * Theme.cs: 
7073           - Switched Theme color names to match the names defined in 
7074             System.Drawing.KnownColors. Life's hard enough, no need to make 
7075             it harder.
7076           - Added setters to all theme color properties so themes can set
7077             their color schemes. The setters also propagate the color changes
7078             to System.Drawing.KnownColors via reflection
7079         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
7080           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
7081           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
7082           use the new, more logical theme color names
7083         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
7084           post-NT colors
7085         * ThemeWin32Classic.cs:
7086           - Removed code to set the old classic Windows colors. Instead it
7087             now relies on the colors returned by System.Drawing.KnownColors
7088             which will be either modern static colors (Unix) or colors
7089             read from the user's configuration (Win32)
7090           - Updated to use the new, more logical theme color names
7091           - Switched DataGrid drawing code to use only Theme colors instead of
7092             a mix of System.Drawing.KnownColors and Theme colors
7093           - DrawFrameControl(): Removed code that fills the button area, the
7094             fill would overwrite any previous fill done by a control. This
7095             fixes bug #75338 
7096           - Added DrawReversibleRectangle() stub
7097         * ScrollableControl.cs: Set visible state to false when scrollbars
7098           are removed (pdn fix)
7099         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
7100           DrawReversibleRectangle() method to allow drawing primitive 
7101           'rubber bands'
7102         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
7103
7104 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7105
7106         * ImageList.cs: Add(Icon): Create handle.
7107
7108 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7109
7110         * ListView.cs:
7111         * ThemeWin32Classic.cs:
7112                 - Fixes detail mode
7113                 - Sets clippings
7114                 - Issues with drawing
7115
7116 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7117
7118         * ImageList.cs: Moved RecreateHandle back to ImageList as event
7119           source has to be the ImageList.
7120
7121 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7122
7123         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
7124
7125 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7126
7127         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
7128
7129 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7130
7131         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
7132
7133 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
7134         * GridItem.cs: Fixed TODOs
7135         * GridItemCollection.cs: Added ICollection interface
7136
7137 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7138
7139         * ImageList.cs: Resize icons when needed.
7140
7141 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
7142
7143         * ListViewItem.cs
7144                 - Fixes GetBounds and returns on screen rects
7145         * ListView.cs:
7146                 - Fixes vertical and horzintal scrolling of items
7147         * ThemeWin32Classic.cs:
7148                 - Fixes drawing
7149                 
7150 2005-09-29  Raja R Harinath  <harinath@gmail.com>
7151
7152         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
7153
7154 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
7155
7156         * ImageList.cs: Added comments about handle creation. Moved Handle,
7157           HandleCreated and OnRecreateHandle implementations to ImageCollection.
7158           Handle is created in Add methods.
7159
7160 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7161          
7162         * DataGridDrawingLogic.cs: 
7163                 - Takes rows into account on Colum calculations
7164                 - Returns the column when clickig
7165         * DataGrid.cs:
7166                 - Fixes default HitTestInfo values
7167                 - Fixes HitTestInfo.ToString
7168                 - Fixes ResetBackColor          
7169         
7170 2005-09-28  Jackson Harper  <jackson@ximian.com>
7171
7172         * MdiChildContext.cs: Obey rules for fixed sized windows (no
7173         sizing or cursor changes). Also added some temp code to draw the
7174         titlebars text (Makes dev a little easier).
7175
7176 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7177
7178         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
7179
7180 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7181          
7182         * ListBox.cs: Fixes bug 76253
7183
7184 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7185
7186         * ImageList.cs: Added comments about the current implementation. Added
7187           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
7188           Format32bppArgb to preserve transparency and can use Graphics.FromImage
7189           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
7190           with Bitmap.LockBits for better performance. Revised the whole file to
7191           match MS.NET behaviour and provide better performance. Non-public
7192           interface members are calling public members even when they throw
7193           NotSupportedException for better maintainability. Moved ColorDepth,
7194           ImageSize, ImageStream and TransparentColor implementations to
7195           ImageCollection for better performance as these properties are not used
7196           by ImageList.
7197         * ImageListStreamer.cs: Added a new internal constructor that takes an
7198           ImageList.ImageCollection and serializes Images based on
7199           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
7200           match ImageList property name.
7201
7202 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
7203
7204         * ListBox.cs: Fixes IndexFromPoint for last item
7205
7206 2005-09-27  Jackson Harper  <jackson@ximian.com>
7207
7208         * Form.cs: Set the position of new mdi children correctly.
7209
7210 2005-09-27  Jackson Harper  <jackson@ximian.com>
7211
7212         * MdiClient.cs: New mdi children need to be added to the back of
7213         the controls collection so the zorder is set correctly. Also add a
7214         count of all the child windows that have been created.
7215
7216 2005-09-27  Jackson Harper  <jackson@ximian.com>
7217
7218         * Form.cs (CreateParams): Setup MDI forms correctly.
7219
7220 2005-09-27  Jackson Harper  <jackson@ximian.com>
7221
7222         * MdiChildContext.cs:
7223         * MonthCalendar.cs:
7224         * UpDownBase.cs:
7225         * ListBox.cs:
7226         * ListView.cs:
7227         * TextBoxBase.cs:
7228         * TreeView.cs:
7229         * ScrollableControl.cs:
7230         * ComboBox.cs: Add implicit controls using the new implict control
7231         functionality in ControlCollection. Also try to block multiple
7232         control add in a suspend/resume layout to save some cycles.
7233         
7234 2005-09-27  Jackson Harper  <jackson@ximian.com>
7235
7236         * Control.cs: Add functionality to the controls collection to add
7237         'implicit controls' these are controls that are created by the
7238         containing control but should not be exposed to the user. Such as
7239         scrollbars in the treeview.
7240         * Form.cs: The list var of the ControlsCollection is no longer
7241         available because of the potential of implicit controls getting
7242         ignored by someone accessing the list directly.
7243
7244 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
7245
7246         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7247           loose it's parent. (Fixed bug introduced in r49103 when we added
7248           setting the child parent to null on Remove)
7249
7250 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
7251
7252         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7253         * Splitter.cs: Added missing attributes for BorderStyle property.
7254         * TextBoxBase.cs: Marked Calculate* methods internal.
7255         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7256         MS.NET.
7257
7258 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
7259          
7260         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7261
7262 2005-09-25  Jackson Harper  <jackson@ximian.com>
7263
7264         * TreeView.cs: Update the node bounds correctly regardless of
7265         whether the node is visible.
7266
7267 2005-09-25  Jackson Harper  <jackson@ximian.com>
7268
7269         * ImageList.cs: Don't dispose the image after it is added to the
7270         image list. Only reformat images that need to be resized.
7271
7272 2005-09-25  Jackson Harper  <jackson@ximian.com>
7273
7274         * ImageList.cs: Don't set the format when changing the image.
7275
7276 2005-09-25  Jackson Harper  <jackson@ximian.com>
7277
7278         * TreeView.cs: We can't just assume the node has a font. Use the
7279         treeviews font if no node font is available.
7280
7281 2005-09-25  Jackson Harper  <jackson@ximian.com>
7282
7283         * TreeView.cs: Allow the scrollbars to be reset with negative
7284         values.
7285         - Don't add scrollbars to negative sized windows.
7286
7287 2005-09-23  Jackson Harper  <jackson@ximian.com>
7288
7289         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7290         old Mono.Posix. Also remove some stray code that shouldn't have
7291         been committed.
7292
7293 2005-09-23  Jackson Harper  <jackson@ximian.com>
7294
7295         * TreeView.cs: Attempt at proper sizing of the horizontal
7296         scrollbar. Also don't resize the scrollbars unless they are
7297         visible.
7298
7299 2005-09-23  Jackson Harper  <jackson@ximian.com>
7300
7301         * TreeView.cs: We don't need to expand the invalid area when the
7302         selection changes, as this is all drawn in the node's bounding
7303         box. The area needs to be expanded (previous typo was contracting
7304         it) when the focus rect moves.
7305
7306 2005-09-23  Jackson Harper  <jackson@ximian.com>
7307
7308         * TreeView.cs: Display the selection box under the correct
7309         circumstances. We were rendering white text with no selection box
7310         before.
7311
7312 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
7313
7314         * TextControl.cs(Split): Now updates selection start/end if it points 
7315           into a line that's being split. Fixes a FIXME and bug #75258
7316
7317 2005-09-23  Jackson Harper  <jackson@ximian.com>
7318
7319         * Binding.cs:
7320         * ListControl.cs: Don't use the path when retrieving binding
7321         managers from the binding context. My bat sense tells me that the
7322         path is only used on insertion.
7323
7324 2005-09-22  Jackson Harper  <jackson@ximian.com>
7325
7326         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7327
7328 2005-09-22  Jackson Harper  <jackson@ximian.com>
7329
7330         * Splitter.cs: There are special cursors used for splitting.
7331         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7332
7333 2005-09-22  Jackson Harper  <jackson@ximian.com>
7334
7335         * Splitter.cs: Change the cursor appropriately when the splitter
7336         is moused over, so the user actually knows there is a splitter
7337         there.
7338
7339 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7340
7341        * Label.cs : Fix ToString method to give same output as MS.NET
7342
7343 2005-09-22  Jackson Harper  <jackson@ximian.com>
7344
7345         * TreeView.cs: Create the scrollbars when the handle is created
7346         and add them right away, just make them invisble. Also account for
7347         the window being shrunk vertically to the point that the vert
7348         scrollbar needs to be added.
7349         - Remove some 0.5 adjustments to get around anti aliasing issues.
7350         
7351 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7352          
7353         * MainMenu.cs: Fixes default value
7354         * MenuItem.cs: Fixes default value
7355
7356 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7357
7358         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7359
7360 2005-09-21  Jackson Harper  <jackson@ximian.com>
7361
7362         * Control.cs: Don't try to set the border style on the window if
7363         it hasn't been created. When the window is created the border
7364         style will be used.
7365
7366 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7367
7368         * Control.cs (Update): Don't call XplatUI if we don't have a
7369           window handle yet
7370
7371 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7372
7373         * ContainerControl.cs: Instead of throwing an exception, print
7374           a one-time warning about Validate not being implemented
7375         * XplatUIWin32.cs: Removed debug output
7376
7377 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7378
7379         * Control.cs: Only set XplatUI background if we expect the windowing
7380           system to handle the background. This stops controls that draw their
7381           own background from flickering
7382
7383         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7384           creation. This allows, amongst other things, using MWF X11 windows 
7385           with OpenGL.
7386
7387 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7388
7389         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7390           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7391           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7392           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7393           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7394           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7395           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7396           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7397           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7398           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7399           GridColumnStylesCollection.cs, 
7400           IDataGridColumnStyleEditingNotificationService.cs,
7401           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7402           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7403           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7404           TreeNodeCollection.cs, AmbientProperties.cs, 
7405           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7406           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7407           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7408           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7409           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7410           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7411           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7412           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7413           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7414           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7415           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7416           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7417           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7418           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7419           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7420           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7421           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7422           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7423           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7424           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7425           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7426           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7427           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7428           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7429           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7430           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7431           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7432           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7433           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7434           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7435           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7436           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7437           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7438           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7439           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7440           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7441           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7442
7443 2005-09-21  Jackson Harper  <jackson@ximian.com>
7444
7445         * TreeNode.cs: Call Before/After Expand not Collapse when
7446         expanding.
7447
7448 2005-09-20  Jackson Harper  <jackson@ximian.com>
7449         
7450         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7451
7452 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7453          
7454         * ListViewItem.cs:
7455                 - Fixes bug 76120
7456                 - Fixes proper storing of subitems
7457                 - Fixes not updated items
7458
7459 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7460
7461         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7462           things if our window handle isn't created yet. Also disabled 
7463           debug for TextBoxBase
7464
7465 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7466
7467         * MenuAPI.cs: Remove filtering of events to allow menu usage
7468
7469 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7470
7471         * Cursor.cs: Allow null to be passed to Cursor.Current.
7472
7473 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7474
7475         * ThemeWin32Classic.cs:
7476           - Change some private methods/fields to protected virtual so that 
7477             they can be accessed and overriden in derived classes
7478           - First refactoring of some methods. Derived themes now don't 
7479             need to duplicate the complete code from ThemeWin32Classic
7480         * ThemeNice.cs:
7481           - Added nice StatusBar
7482           - Derive from ThemeWin32Classic and not Theme
7483           - Removed duplicate ThemeWin32Classic code
7484
7485 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7486
7487         * Control.cs (ControlCollection.Add): If the value null is passed
7488         the control is ignored. 
7489
7490         Optimize this loop.
7491
7492 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7493
7494         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7495           PostQuitMessage state.
7496         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7497
7498 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7499
7500         * Application.cs: Our constructor will never get called, move 
7501           initialization to fields; fixes bug #75933
7502
7503 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7504
7505         * FileDialog.cs :
7506                 - Allow files to be selected properly using file name
7507                 combo box.
7508                 - Add ability to change diretory (absolute / relative)
7509                 using file name combo box.
7510
7511 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7512          
7513         * ListBox.cs: 
7514                 - Fixes Multicolumn listboxes item wrong calculations
7515                 - Allows to click when only one item is in the listbox
7516                 - Fixes crash when no items using keyboard navigation
7517
7518 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7519
7520         * ComboBox.cs: Reverted almost everything from the latest patch which
7521           broke ComboBox
7522
7523 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7524         
7525         * ToolTip.cs:
7526                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7527         * ComboBox.cs:
7528                 - When DropDownStyle is Simple, it does not show scrollbar 
7529                 to the last item of the list.
7530                 - When DropDownStyle is Simple, it crashed when the list was 
7531                 scrolled down with the down cursor key.
7532                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7533                 selected item was not shown.
7534                 - The position of the selected item was not preserved when 
7535                 the next dropdown happened.
7536         * ThemeWin32Classic.cs:
7537                 - Items were wrapped at the right end.
7538         * CheckedListBox.cs:
7539                 - Fixed Add method
7540         * ListBox.cs:
7541                 - Items should be fully shown.
7542                 - When resizing and vertical scrollbar disappeared, the item 
7543                 of index 0 should be on the top of the list.
7544                 - GetItemRectangle should consider the size of ver. scrollbar
7545         * StatusBar.cs:
7546                 - SizingGrip area should not be allocated when it is not 
7547                 displayed.
7548                 - Now it reflects MinWidth of the containing panel and 
7549                 fixed a crash that happens when its width becomes so small.
7550
7551 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7552
7553         * CheckedListBox.cs: Fixes bug 76028
7554         * ListBox.cs: Fixes bug 76028
7555
7556 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7557
7558         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7559         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7560
7561 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7562
7563         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7564
7565 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7566
7567         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7568
7569 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7570
7571         * IRootGridEntry.cs: Added
7572         * PropertyGridCommands.cs: Added
7573         * PropertiesTab.cs: Added missing methods and property
7574         * PropertyGridView.cs: Made class internal
7575         * PropertyGridTextBox.cs: Made class internal
7576
7577 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7578
7579         * MimeIcon.cs: Try to check some other environment variables
7580           if "DESKTOP_SESSION" returns "default"
7581
7582 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7583
7584         * ThemeNice.cs: Corrected background colors (e.g. menus)
7585         * ColorDialog.cs: Use correct background colors for controls
7586
7587 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7588
7589         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7590
7591 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7592
7593         * RichTextBox.cs: Added initial implementation
7594         * lang.cs: Removed. Was accidentally checked in long time ago
7595         * TODO: Removed. Contents were obsolete
7596
7597 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7598                                                                                 
7599         * PropertiesTab.cs : Added
7600
7601 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7602                                                                                 
7603         * PropertyGrid.cs : Update
7604         * PropertyGridView.cs : Update
7605         * System.Windows.Forms.resx : Added images and strings
7606
7607 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7608
7609         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7610  
7611 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7612
7613         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7614           a busy loop right after the Ungrab the X11 display is otherwise 
7615           blocked
7616
7617 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7618
7619         * ThemeWin32Classic.cs: Optimise the use of clipping
7620
7621 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7622
7623         * DataGrid.cs: fixes recursion bug
7624
7625 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7626
7627         * ThemeNice.cs: 
7628           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7629           - Cleanup
7630
7631 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7632
7633         * ThemeNice.cs: Draw nice ProgressBars
7634
7635 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7636
7637         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7638
7639         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7640         bug finder.
7641
7642 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7643
7644         * ThemeNice.cs:
7645           - Added nicer menu drawing
7646           - Updated DrawTab
7647           - some refactoring
7648
7649 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7650
7651         * CreateParams.cs (ToString): Made output match MS
7652         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7653             handle is already created (to avoid forcing window creation)
7654         * XplatUIX11.cs: Set window text to caption after creating window,
7655           in case Text was set before window was created
7656         * Form.cs: Use this.Text instead of a static string as caption
7657
7658 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7659
7660         * NotifyIcon.cs: Don't set the window to visible; this screws
7661           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7662           OnPaint without a bitmap)
7663         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7664           happen very often anyway; we could add the check to the WM_PAINT 
7665           event generation code
7666
7667 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7668
7669         * NotifyIcon.cs: Fill the icon area with a background color, to 
7670           avoid 'residue' when transparent icons are drawn
7671         * XplatUIX11.cs:
7672           - Handle whole_window == client_window when destroying windows
7673           - SystrayAdd(): Set client_window to whole_window value to
7674             get mouse and other events passed to NotifyIcon
7675
7676 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7677
7678         * Form.cs: Set proper default for Opacity property
7679         * NotifyIcon.cs:
7680           - ShowSystray(): Don't bother creating telling the OS
7681             about the systray item if no icon is provided
7682           - Now handles WM_NCPAINT message to deal with whole/client window
7683             split
7684           - Create window as visible to not get caught by Expose optimization
7685         * Hwnd.cs: Removed debug message
7686         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7687           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7688             PaintEventStart/End to use new client argument
7689         * TextBoxBase.cs:
7690           - Commented out debug messages
7691           - Switched PaintEventStart/End to use new client argument
7692         * XplatUI.cs: Added client window bool to PaintEventStart()/
7693           PaintEventEnd() calls, to support drawing in non-client areas
7694         * XplatUIDriver.cs: 
7695           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7696             calls, to support drawing in non-client areas
7697           - Added conditional compile to allow using MWF BeginInvoke 
7698             on MS runtime
7699         * XplatUIX11.cs:
7700           - Added some conditional debug output
7701           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7702             whole/client window split
7703           - Implemented handling of client argument to PaintEventStart()/End()
7704         * Control.cs:
7705           - Throw exception if BeginInvoke() is called and the window handle
7706             or one of the window's parent handles is not created
7707           - Added conditional compile to allow using MWF BeginInvoke on
7708             MS runtime
7709           - get_Parent(): Only sets parent if handle is created. This avoids
7710             forcing window handle creation when parent is set.
7711           - Now fires Layout and Parent changed events in proper order
7712           - Switched to use Handle instead of window.Handle for Z-Order setting,
7713             the get_Parent() patch above causes us to possibly get null for 'window'
7714           - Implemented handling of client argument to PaintEventStart()/End()
7715           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7716             default handling)
7717           - Now sends a Refresh() to all child windows when Refresh() is called
7718
7719 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7720
7721         * Form.cs: Added (non-functional) Opacity property
7722         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7723
7724 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7725         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7726           use export MONO_THEME=nice to activate it.
7727           Currently supported controls:
7728           - Button
7729           - ComboBox
7730           - ScrollBar
7731           - TabControl (TabAlignment.Top only, other will follow)
7732         * ThemeEngine.cs: Add theme nice
7733         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7734           if enabled
7735
7736 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7737
7738         * Splitter.cs: Resize docked control and its neighbor.
7739
7740 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7741         -- Making Windows with Menus layout correctly --
7742         * Form.cs : The first leg of the fix
7743                 Menu setter - adjust Client Size as needed to make space for the menu
7744                 SetClientSizeCore - doesn't call base version to be able to pass the 
7745                         menu handle to XplatUI.CalculateWindowRect
7746         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7747         * XplatUIX11.cs: The critical second leg of the fix
7748                 GetWindowPos needs to use a recalculated client_rect
7749                 so that resizing the window doesn't break layout of child controls. 
7750                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7751                 Lots of \t\n killed
7752
7753 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7754
7755         * Label.cs: Now properly recalculates width and height on Font and Text
7756           changes if AutoSize is set
7757
7758 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7759         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7760
7761 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7762
7763         * ImageList.cs: Makes ToString method compatible with MS
7764
7765 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7766
7767         * MenuAPI.cs: fixes bug 75716
7768
7769 2005-08-11 Umadevi S <sumadevi@novell.com>
7770         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7771
7772 2005-08-11 Umadevi S <sumadevi@novell.com>
7773         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7774
7775 2005-08-10  Umadevi S <sumadevi@novell.com>
7776         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7777
7778 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7779
7780         * Menu.cs: fixes bug 75700
7781         * MenuAPI.cs: fixes navigation issues
7782
7783 2005-08-09  Umadevi S <sumadevi@novell.com>
7784         * CheckedListBox.cs - simple fix for GetItemChecked.
7785
7786 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7787
7788         * ComboBox.cs: Serveral fixes
7789         * ListBox.cs: Serveral fixes
7790
7791 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7792
7793         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7794         * ListBox.cs: Fixes FindString methods
7795
7796 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7797
7798         * DataGrid.cs: fixes bugs exposed by new tests
7799
7800 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7801
7802         * Mime.cs: Compile Mono assembly references only if compiling
7803           with Mono (Allows to build with VS.Net again)
7804
7805 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7806
7807         * Control.cs (PaintControlBackground): Draw background image
7808         corrrectly.
7809         (CheckForIllegalCrossThreadCalls): Stubbed.
7810         
7811         * Form.cs (OnCreateControl): Center when should be centered.
7812         
7813         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7814
7815 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7816
7817         * Binding.cs: Binding to properties should be case unsensitive
7818
7819 2005-07-18 vlindos@nucleusys.com
7820
7821         * DataGrid.cs: fixes setmember order
7822
7823 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7824
7825         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7826         * FileDialog.cs: FileDialog is now resizable and uses the new
7827           MimeIconEngine
7828
7829 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7830
7831         * DataGridTextBoxColumn.cs: default value
7832         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7833         * GridTableStylesCollection.cs: fixes checking MappingName
7834         * DataGridDrawingLogic.cs: fixes drawing logic issues
7835         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7836         * DataGrid.cs: fixes    
7837
7838 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7839
7840         * MimeGenerated.cs: Use case sensitive comparer for
7841           NameValueCollections
7842
7843 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7844
7845         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7846         * ThemeWin32Classic.cs: bug fixes, code refactoring
7847         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7848         * DataGrid.cs: bug fixes, code refactoring
7849         * DataGridTextBox.cs: bug fixes, code refactoring
7850         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7851         * Theme.cs:  bug fixes, code refactoring
7852
7853 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7854
7855         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7856           and other text box usage
7857
7858 2005-07-01  Jackson Harper  <jackson@ximian.com>
7859
7860         * TabControl.cs: Make sure the bottom of the tab covers the pages
7861         border.
7862
7863 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7864
7865         * Form.cs (ShowDialog): Assign owner of the dialog
7866         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7867           might have been moved to a tag with different height
7868
7869 2005-06-30  Jackson Harper  <jackson@ximian.com>
7870
7871         * Form.cs: Don't create an infinite loop when setting focus
7872         * MenuItem.cs: Don't dirty the parents if we don't have any
7873
7874 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7875
7876         * LibSupport.cs: Rename
7877
7878 2005-06-29  Peter Bartok  <pbartok@novell.com>
7879
7880         * TextBoxBase.cs: Re-align caret after deleting a character
7881         * TextControl.cs:
7882           - DeleteChars(): Ensure that tag covers the provided position
7883           - StreamLine(): Drop reference for dropped tag
7884
7885 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7886
7887         * TextControl.cs: 
7888           - Selections now work properly, anchoring at the initial location
7889             and properly extending in either direction (SetSelectionToCaret(),
7890             SetSelectionStart() and SetSelectionEnd())
7891           - No longer redraws the whole control on selection change, now
7892             calculates delta between previous and new selection and only
7893             invalidates/redraws that area
7894           - Fixed FindPos() math off-by-one errors
7895           - Changed DeleteChars() to verify the provided tag covers the
7896             provided position, selections may have a tag that doesn't cover
7897             the position if the selection is at a tag border
7898           - Fixed off-by-one errors in DeleteChars()
7899           - Added missing streamlining check in DeleteChars() to remove
7900             zero-length tags
7901           - Implemented Invalidate() method, now properly calculates exposures
7902             between two given lines/positions
7903           - Implemented SetSelection()
7904           - Obsoleted and removed FixupSelection()
7905           - Improved RecalculateDocument() logic, removing code duplication
7906
7907 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7908
7909         * LibSupport.cs: changes to match different input/output arguments.
7910
7911 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7912
7913         * LibSupport.cs: added libsupport.so init routine.
7914
7915 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7916         
7917         * ControlBindingsCollection.cs
7918                 - Throws an exception on null datasource when adding
7919                 - Checks for duplicated bindings when adding
7920
7921 2005-06-28  Jackson Harper  <jackson@ximian.com>
7922
7923         * TreeView.cs (OnKeyDown): Support left and right properly
7924         (navigates as well as expanding and collapsing.
7925         - Add support for Multiply, this expands all the selected nodes
7926         children.
7927         - Fix some tabbing.
7928
7929 2005-06-28  Jackson Harper  <jackson@ximian.com>
7930
7931         * TreeView.cs: Implement keyboard navigation, currently supports,
7932         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7933         support for toggling checkboxes with the space bar.
7934
7935 2005-06-28  Jackson Harper  <jackson@ximian.com>
7936
7937         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7938         tree.
7939
7940 2005-06-28  Jackson Harper  <jackson@ximian.com>
7941
7942         * TreeView.cs: Add missing event.
7943
7944 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7945
7946         * TextControl.cs:
7947           - Made line ending size configurable (now allows for counting 
7948             lineendings as \n or \r\n)
7949           - Added margin to viewport to keep caret visible on right side
7950           - Fixed translation routines for line/pos to documentpos to consider
7951             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7952           - Fixed some line-endings to be unix style
7953           - Fixed Document.FormatText to perform it's calculations 1-based
7954           - Added descriptions for a few methods that might otherwise get 
7955             used wrong
7956           - Added NOTE section with some basic conventions to remember at 
7957             the top of the file
7958           - Major fixup for RichTextBox selection drawing:
7959             * Fixed crashes when multiple tags on a single line were selected
7960             * fixed selection box drawing not overlaying text
7961             * fixed bogus offset calculation for tags not starting at index 1
7962             * Switched behaviour from using multiple Substrings of a 
7963               StringBuilder.ToString() to using multiple 
7964               StringBuilder.ToString(start, length) statements, hoping this is
7965               faster (kept original version commented out in the code, in case
7966               original version was faster)
7967         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7968           alignment != Left
7969         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7970           call it as well
7971
7972 2005-06-27  Jackson Harper  <jackson@ximian.com>
7973
7974         * TabControl.cs: Move to the left and right with the arrow
7975         keys. These keys don't cycle beyond first and last like
7976         tab. Refresh all the tabs when scrolling them to the left or
7977         right.
7978
7979 2005-06-27  Jackson Harper  <jackson@ximian.com>
7980
7981         * TabControl.cs:
7982           - ToString: Added method
7983           - CreateParams: Remove TODO and comment
7984           - OnKeyDown: Cycle through bounds properly.
7985           - SelectedIndex: Scroll to the right or left if we need to
7986           display the newly selected tab.
7987
7988 2005-06-23  Jackson Harper  <jackson@ximian.com>
7989
7990         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7991         set.
7992
7993 2005-06-23  Jackson Harper  <jackson@ximian.com>
7994
7995         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7996         CTRL-SHIFT-TAB, and HOME, END are there any others?
7997
7998 2005-06-23  Jackson Harper  <jackson@ximian.com>
7999
8000         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
8001
8002 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8003         
8004         * DataGridTextBoxColumn.cs: fixes and enhancements
8005         * ThemeWin32Classic.cs: fixes and enhancements
8006         * DataGridBoolColumn.cs:  fixes and enhancements
8007         * DataGridDrawingLogic.cs:  fixes and enhancements
8008         * CurrencyManager.cs: fixes and enhancements
8009         * DataGrid.cs: fixes and enhancements
8010         * DataGridColumnStyle.cs:  fixes and enhancements
8011
8012 2005-06-22  Jackson Harper  <jackson@ximian.com>
8013
8014         * TabControl.cs: Add some missing methods that just call into the
8015         base. Make the TabPageCollection's IList interface behave in the
8016         same manner as the MS implementation.
8017
8018 2005-06-22  Peter Bartok  <pbartok@novell.com> 
8019
8020         * TextControl.cs: Added sanity check
8021         * TextBoxBase.cs: 
8022           - Fixed wrapping behaviour, don't set wrap on single line controls
8023             (this fixes the breakage of colordialog introduced in an earlier
8024              checkin)
8025           - Added rudimentary support for autoscrolling right-aligned controls
8026             (still needs fixing, also, center alignment scroll is missing)
8027
8028 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8029         
8030         * ScrollBar.cs: Fixes thumbpos on Maximum values
8031
8032 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
8033         
8034         * PropertyGridView.cs: Pass context information to UITypeEditors 
8035
8036 2005-06-21  Peter Bartok  <pbartok@novell.com> 
8037
8038         * TextBoxBase.cs:
8039           - Now calling PositionCaret with absolute space coordinates
8040           - Enabled vertical scrolling
8041           - Better tracking of scrollbar changes, tied into WidthChange
8042             event
8043           - Improved cursor tracking
8044           - Removed debug output
8045         * TextControl.cs:
8046           - PositionCaret coordinates are now works in absolute space, not 
8047             the canvas
8048           - Improved tracking of document size
8049           - Added events for width and height changes
8050
8051 2005-06-21  Peter Bartok  <pbartok@novell.com>
8052
8053         * Form.cs: Set focus to active control when form is activated
8054         * TextControl.cs: 
8055           - Added word-wrap functionality to RecalculateLine() 
8056           - Added some short function descriptions for VS.Net to aid in
8057             writing dependent controls
8058           - Added Caret property, returning the current coords of the caret
8059           - Added ViewPortWidth and ViewPortHeight properties
8060           - Added Wrap property
8061           - Added CaretMoved event
8062           - Removed some old debug code
8063           - Split() can now create soft splits
8064           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
8065           - Added method to format existing text
8066           - Fixed size/alignment calculations to use viewport
8067           - RecalculateDocument now can handle changing line-numbers while
8068             calculating lines
8069
8070         * TextBox.cs:
8071           - Added some wrap logic, we don't wrap if alignment is not left
8072           - Added casts for scrollbar var, base class switched types to
8073             also support RichTextBoxA
8074           - Implemented handling of scrollbar visibility flags
8075
8076         * TextBoxBase.cs:
8077           - Switched scrollbars type to RichTextBoxScrollBars to support
8078             RichTextBox
8079           - Added tracking of canvas width/height
8080           - Switched scrollbars to be not selectable (to keep focus on text)
8081           - Added central CalculateDocument() method to handle all redraw
8082             requirements
8083           - Added ReadOnly support
8084           - Added WordWrap support
8085           - Fixed handling of Enter key (we now treat it as a DialogKey)
8086           - Fixed caret positioning when h or v scroll is not zero
8087           - Fixed placing/generation of vertical scrollbar
8088           - Added CalculateScrollBars() method to allow updating scrollbar
8089             limits and visibility
8090           - Fixed handling of horizontal scroll
8091           - Added handling of vertical scroll
8092           - Implemented auto-'jump' when caret moves to close to a left or
8093             right border and there is text to be scrolled into view (currently
8094             there's the potential for a stack overflow, until a bug in
8095             scrollbar is fixed)
8096
8097 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
8098         
8099         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
8100
8101 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
8102
8103         * Mime.cs:
8104         - added inodes.
8105         - return application/x-zerosize for files with size zero
8106           (if no extension pattern matches).
8107         - check matches collection for strings too.
8108         - return only the first mime type if the name value
8109           collection has more than one mime type.
8110
8111 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
8112         
8113         * PropertyGrid.cs: Cleaned up some TODOs
8114         * PropertyGridView.cs: Added support for UITypeEditors
8115
8116 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8117         
8118         * DataGrid.cs: clears cached value
8119
8120 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8121
8122         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
8123         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
8124         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
8125         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
8126         
8127 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
8128
8129         * ThemeWin32Classic.cs: fixes colour
8130
8131 2005-06-15  Peter Bartok  <pbartok@novell.com>
8132
8133         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
8134         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
8135         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
8136         * Control.cs: Added some MWFCategory and MWFDescription attributes
8137         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
8138
8139 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
8140
8141         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
8142         usage
8143
8144 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
8145
8146         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
8147         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
8148         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
8149         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
8150         * DataGrid.cs: default datagrid settings for Default Styles, fixes
8151         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
8152
8153 2005-06-13  Jackson Harper  <jackson@ximian.com>
8154
8155         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
8156         isn't printed when the user enables dropping. (X11 does accept
8157         drops).
8158         
8159 2005-06-13  Jackson Harper  <jackson@ximian.com>
8160
8161         * TreeView.cs: Remove some TODOS.
8162
8163 2005-06-13  Jackson Harper  <jackson@ximian.com>
8164
8165         * Form.cs: Hook into the mdi framework.
8166         * MdiClient.cs: Use the base control collections add method so
8167         parents get setup correctly. Set the default back colour and dock
8168         style.
8169         * MdiChildContext.cs: New class, this bad actor handles an
8170         instance of an MDI window. Right now there is only basic
8171         support. You can drag, close, and resize windows. Minimize and
8172         Maximize are partially implemented.
8173
8174 2005-06-13  Jackson Harper  <jackson@ximian.com>
8175
8176         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
8177         freaky when both vals are negative. NOTE: There are probably other
8178         places in XplatUIX11 that this needs to be done.
8179
8180 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
8181
8182         * DataGrid.cs: implement missing methods, move KeyboardNavigation
8183         * DataGridColumnStyle.cs: fixes signature
8184
8185 2005-06-12  Jackson Harper  <jackson@ximian.com>
8186
8187         * XplatUIX11.cs: Use sizing cursors similar to the ones on
8188         windows.
8189
8190 2005-06-11  Jackson Harper  <jackson@ximian.com>
8191
8192         * StatusBarPanel.cs: Signature cleanups. Implement
8193         BeginInit/EndInit.
8194
8195 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
8196
8197         * DataGridTextBoxColumn.cs: Honors aligment
8198         * GridColumnStylesCollection.cs: Contains is case unsensitive
8199         * GridTableStylesCollection.cs: several fixes
8200         * DataGridTableStyle.cs: default column creation
8201         * DataGridDrawingLogic.cs: fixes
8202         * CurrencyManager.cs: ListName property
8203         * DataGrid.cs: multiple styles support
8204         * DataGridColumnStyle.cs: fixes
8205         
8206
8207 2005-06-10  Peter Bartok  <pbartok@novell.com>
8208
8209         * Control.cs(Select): Moved SetFocus call to avoid potential
8210           loops if controls change the active control when getting focus
8211         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
8212           the up/down buttons
8213
8214 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
8215
8216         * ImageListConverter.cs: Implemented
8217
8218 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8219
8220         * MonthCalendar.cs: Wired in NumericUpDown control for year
8221
8222 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8223
8224         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
8225           DoubleClick events, since they are not meant to be fired.
8226
8227 2005-06-09  Peter Bartok  <pbartok@novell.com>
8228
8229         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8230           Jonathan's standalone controls into MWF, implemented missing
8231           events, attributes and methods; added xxxAccessible classes
8232         * AccessibleObject.cs: Made fields internal so other classes
8233           can change them if needed
8234
8235 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
8236
8237         * UpDownBase.cs: Complete implementation
8238         * NumericUpDown.cs: Complete implementation
8239         * DomainUpDown.cs: Complete implementation
8240
8241 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
8242
8243         * DataGridTextBoxColumn.cs: drawing fixes
8244         * DataGridCell.cs: fixes ToString method to match MSNet
8245         * DataGridTableStyle.cs: fixes
8246         * DataGridBoolColumn.cs: fixes, drawing
8247         * DataGridDrawingLogic.cs: fixes, new methods
8248         * DataGridTextBox.cs: Keyboard and fixes
8249         * DataGrid.cs:
8250                 - Keyboard navigation
8251                 - Scrolling fixes
8252                 - Row selection (single, multiple, deletion, etc)
8253                 - Lots of fixes
8254         
8255 2005-06-07  Jackson Harper  <jackson@ximian.com>
8256
8257         * ThemeWin32Classic.cs: Clear the background area when drawing
8258         buttons.
8259
8260 2005-06-06  Peter Bartok  <pbartok@novell.com>
8261
8262         * ImageListStreamer.cs: Fixed signature for GetData
8263         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8264         * ComboBox.cs:
8265           - Added missing ChildAccessibleObject class
8266           - Added missing OnXXXFocus overrides, switched to using those
8267             instead of the event handler
8268         * Control.cs:
8269           - Added Parent property for ControlAccessibleObject
8270           - Fixed signatures
8271           - Fixed attributes
8272           - Added ResetBindings()
8273         * ListBindingConverter.cs: Implemented some methods
8274         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8275         * ImageList.cs: Implemented basic handle scheme, removed TODOs
8276         * ContainerControl.cs: Fixed signature, now subscribing to the
8277           ControlRemoved event instead of overriding the handler, LAMESPEC
8278         * CurrencyManager.cs: Added missing attribute
8279         * MonthCalendar.cs: Added missing properties
8280
8281 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8282
8283         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8284         
8285 2005-06-06  Gaurav Vaish and Ankit Jain
8286
8287         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8288         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8289         
8290 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8291
8292         * Control.cs: fixes CreateParams Width / Height.
8293
8294 2005-06-05  Peter Bartok  <pbartok@novell.com>
8295
8296         * Win32DnD.cs: Removed compilation warnings
8297
8298 2005-06-05  Peter Bartok  <pbartok@novell.com>
8299
8300         * Control.cs (CreateParams): Since we don't know if one of the
8301           properties we use is overridden, lets make sure if we fail accessing
8302           we continue with a backup plan
8303
8304 2005-06-05  Peter Bartok  <pbartok@novell.com>
8305
8306         * Win32DnD.cs:
8307           - Removed debug output
8308           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8309             struct
8310           - Plugged resource leak
8311         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8312           MS size
8313
8314 2005-06-05  Peter Bartok  <pbartok@novell.com>
8315
8316         * XplatUIWin32.cs: Removed DnD code
8317         * Win32DnD.cs: Implemented drop source and drop target functionality
8318
8319 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8320
8321         * UpDownBase.cs: remove duplicate addition of event, enable some code
8322         that was commented out.
8323         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8324         Validate input when a key is pressed. It works fine now for every
8325         combination of Hexadecimal. Only missing some drawing love when sharing
8326         space with other controls.
8327
8328 2005-06-04  Peter Bartok  <pbartok@novell.com>
8329
8330         * Control.cs:
8331           - We need to pass a window for DragDrop, so enable callback events
8332           - Added DnD callback events when being a DragSource
8333         * XplatUI.cs (StartDrag): Added window handle argument
8334         * XplatUIDriver.cs (StartDrag): Added window handle argument
8335         * QueryContinueDragEventArgs: Made fields internally accessible so
8336           drivers can set them
8337         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8338           can set them
8339
8340 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8341
8342         * DataGridTextBoxColumn.cs: column text editing
8343         * DataGridTableStyle.cs: Respect columns styles created by the user
8344         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8345         * DataGridBoolColumn.cs: bool column editing
8346         * DataGrid.cs: fixes to scrolling, properties, etc
8347         * DataGridTextBox.cs: handle keyboard
8348         * DataGridColumnStyle.cs: fixes
8349
8350 2005-06-02  Jackson Harper  <jackson@ximian.com>
8351
8352         * ImageListStreamer.cs: Somewhat broken implementation of
8353         GetObjectData. The RLE needs some work to match MS properly.
8354
8355 2005-06-02  Jackson Harper  <jackson@ximian.com>
8356
8357         * X11Dnd.cs: Attempting to keep at least one file in MWF
8358         monostyled.
8359
8360 2005-06-02  Peter Bartok  <pbartok@novell.com>
8361
8362         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8363           that way
8364
8365 2005-06-02  Peter Bartok  <pbartok@novell.com>
8366
8367         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8368         * XplatUI.cs: Added DoDragDrop() method
8369         * XplatUIDriver.cs: Added DoDragDrop() method
8370
8371 2005-06-02  Jackson Harper  <jackson@ximian.com>
8372
8373         * Splitter.cs: Implement BorderStyle.
8374
8375 2005-06-02  Jackson Harper  <jackson@ximian.com>
8376
8377         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8378         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8379         X11 using XDND.
8380
8381 2005-06-02  Peter Bartok  <pbartok@novell.com>
8382
8383         * DataObject.cs:
8384           - Added Data setter
8385           - Fixed broken insertion code for SetData, now also
8386             overwrites any existing entry of the same format name
8387         * Hwnd.cs: Added list of pointers that automatically gets
8388           freed when the window is disposed
8389         * XplatUI.cs: Call driver initialization method when loading
8390           a driver
8391         * Control.cs:
8392           - OnDragLeave takes EventArgs, not DragEventArgs
8393           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8394             supported
8395           - Forces style update when drop state changes
8396         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8397           not perfect since we cannot (yet) call the IDataObject.GetData()
8398           method, we keep getting 0x80004005 error, dunno why)
8399
8400 2005-06-02  Peter Bartok  <pbartok@novell.com>
8401
8402         * DragEventArgs.cs: Make fields internal so we can cache the
8403           object and re-set the fields from XplatUI
8404
8405 2005-06-02  Jackson Harper  <jackson@ximian.com>
8406
8407         * Control.cs: Add some internal methods so the DnD subsystem can
8408         raise DnD events. Also call into the driver when AllowDrop is set.
8409         * XplatUI.cs:
8410         * XplatUIDriver.cs: New method for setting whether or not a window
8411         is allowed to accept drag and drop messages.
8412                 
8413 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8414         
8415         * ScrollBar.cs: Make sure that values sent in Scroll events
8416         are always between Maximum and Minimum.
8417
8418 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8419
8420         * Menu.cs: Call MenuChanged when menuitem visibility has been
8421         changed.
8422         * MenuItem.cs: Rebuild menu when item is (not) visible.
8423         * MainMenu.cs: MainMenu has special MenuChanged.
8424         * Theme.cs: Caption and FrameBorderSize are not fixed.
8425         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8426         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8427         * XplatUIX11.cs,
8428         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8429         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8430
8431 2005-05-30  Jackson Harper  <jackson@ximian.com>
8432
8433         * DataFormat.cs: We can't statically initialize this stuff because
8434         it calls into the xplatui and could create a loop. So we lazy init
8435         it.
8436
8437 2005-05-28  Jackson Harper  <jackson@ximian.com>
8438
8439         * Control.cs: Proper implementation of Product(Name/Version).
8440
8441 2005-05-27  Jackson Harper  <jackson@ximian.com>
8442
8443         * DataObject.cs: Dont crash if no data is found.
8444
8445 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8446         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8447                 as per status page, guessing it should be set to true
8448
8449 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8450
8451         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8452         * DataGridTableStyle.cs: set proper formatting text, def header text
8453         * ThemeWin32Classic.cs: new themable paramaters
8454         * DataGridBoolColumn.cs: paint check box, get data, fixes
8455         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8456         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8457         * DataGridColumnStyle.cs: fixes
8458         * Theme.cs: new themable paramaters
8459                 
8460 2005-05-26  Peter Bartok  <pbartok@novell.com>
8461
8462         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8463
8464 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8465         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8466
8467 2005-05-24  Peter Bartok  <pbartok@novell.com>
8468
8469         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8470           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8471           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8472           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8473           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8474           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8475           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8476           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8477           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8478           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8479           missing attributes, etc
8480         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8481
8482 2005-05-24  Peter Bartok  <pbartok@novell.com>
8483
8484         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8485           when user tries to get help
8486         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8487           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8488           to suppress warnings
8489         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8490           avoid unreachable code warning
8491
8492 2005-05-20  Peter Bartok  <pbartok@novell.com>
8493
8494         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8495
8496 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8497
8498         * DataGridTextBoxColumn.cs: Basic painting methods
8499         * DataGridTableStyle.cs: Set table style in the column
8500         * ThemeWin32Classic.cs: Use Theme for colors
8501         * DataGridDrawingLogic.cs: Implement more drawing
8502         * DataGrid.cs: drawing, theming, enhacements, fixes
8503         * DataGridColumnStyle.cs: fixes, drawing
8504         * Theme.cs: theming for Datagrid
8505
8506 2005-05-20  Peter Bartok  <pbartok@novell.com>
8507
8508         * Cursor.cs: Implemented GetObjectData() method
8509
8510 2005-05-20  Peter Bartok  <pbartok@novell.com>
8511
8512         * Cursors.cs: Added setting of cursor name
8513         * Cursor.cs:
8514           - Implemented constructors
8515           - Implemented Draw and DrawStretched
8516           - Implemented Current property
8517           - Implemented == and != operators
8518           - Implemented Dispose()
8519           - Implemented ToString
8520           - Added missing attributes
8521         * XplatUIX11.cs:
8522           - Added missing reset for OverrideCursor when DoEvents is called
8523           - Fixed creation of cursor, logic was wrong
8524         * XplatUIWin32.cs:
8525           - Added missing reset for OverrideCursor when DoEvents is called
8526           - Fixed creation of cursor, bit arrays were swapped
8527         * Clipboard.cs: Removed obsolete MonoTODO attribute
8528
8529 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8530
8531         * ComboBox.cs: fixes OnSelectedItemChanged
8532         * ControlBindingsCollection.cs: fixes item range check
8533
8534 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8535
8536         * UpDownBase.cs:
8537                 - Calc preferred height properly
8538                 - Implement missing properties
8539                 
8540         * NumericUpDown.cs: Implement missing events
8541
8542 2005-05-19  Jackson Harper  <jackson@ximian.com>
8543
8544         * TabControl.cs: New method that resizes the tab pages before
8545         redrawing them. This as needed as the control is double buffered
8546         and sizing will not be recalculated unless ResizeTabPages is
8547         called.
8548         * TabPage.cs: Set base.Text instead of Text in the constructor so
8549         that UpdateOwner does not get called. Use the new Redraw method of
8550         TabControl instead of Refresh so the sizing is recalculated.
8551         * ThemeWin32Classic.cs: Draw the text for button tabs.
8552
8553 2005-05-19  Jackson Harper  <jackson@ximian.com>
8554
8555         * Control.cs: Paint control background images. Fix typo where
8556         PaintControlBackground was not getting called correctly.
8557
8558 2005-05-19  Peter Bartok  <pbartok@novell.com>
8559
8560         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8561           I can investigate, apparently I broke FileDialog
8562
8563 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8564
8565         * AxHost.cs: Some simple properties.
8566         * Control.cs: window must be accessible after ctor.
8567         * Form.cs: Added TransparencyKey property.
8568         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8569         * XplatUIWin32.cs: SetBorderStyle implemented.
8570
8571 2005-05-18  Peter Bartok  <pbartok@novell.com>
8572
8573         * DataObject.cs: Entries are not global but particular to the
8574           DataObject, now it behaves that way
8575         * XplatUIWin32.cs: Implemented Clipboard methods
8576         * Clipboard.cs: Implemented
8577         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8578         * XplatUIOSX.cs: Updated to final clipboard prototypes
8579         * XplatUIX11.cs: Implemented Clipboard methods
8580         * XplatUIDriver.cs: Updated to final clipboard prototypes
8581         * XplatUIStructs.cs:
8582           - Added BITMAPINFOHEADER struct
8583           - Added ClipboardFormats enum
8584         * X11Structs.cs:
8585           - Added ClipboardStruct
8586           - Added Atom enum items for clipboard types
8587           - Fixed atom types for Selection event structures
8588         * DataFormats.cs:
8589           - Added internal properties and methods for drivers to enumerate
8590             all known formats
8591           - Switched initialization method to allow drivers to assign their
8592             own IDs even for the MS predefined clipboard IDs
8593         * XplatUI.cs: Updated to final clipboard interface
8594
8595 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8596         * PropertyGridView.cs: Fixed compiler warnings.
8597
8598 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8599         * PropertyGrid.cs: Added some event calls
8600         * PropertyGridView.cs: Change drawing code to use double buffering
8601         * PropertyGridTextBox.cs: Changed Text property name
8602         * GridItem.cs: Added Bounds property.
8603         * GridEntry.cs: Added Bounds property.
8604
8605 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8606
8607         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8608         since GetType() may not return the correct type if the object is
8609         a remoting proxy.
8610
8611 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8612
8613         * TreeNodeCollection.cs: fixes get/set item ranges
8614         
8615 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8616
8617         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8618                 
8619 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8620
8621         * ComboBox.cs: Fix item range comparation
8622         * ListView.cs: Fix item range comparation
8623
8624 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8625
8626         * FontDialog.cs:
8627           - Clear example panel when OnPaint is called
8628           - Better solution for displaying the example panel text
8629           - Select default indexes in the ListBoxes
8630
8631 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8632
8633         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8634
8635 2005-05-11  Peter Bartok  <pbartok@novell.com>
8636
8637         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8638         * SelectionRangeConverter.cs: Implemented
8639         * PropertyGrid.cs: Fixed attribute value
8640         * Control.cs:
8641           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8642           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8643         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8644           that's common to all drivers. First methods to go there are
8645           Sebastien Pouliot's CAS Stack Propagation helper methods
8646         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8647           Sebastien Pouliot for CAS Stack Propagation
8648
8649 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8650
8651         * OSXStructs.cs:
8652           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8653
8654 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8655
8656         * DataGridTextBoxColumn.cs: fixed some members
8657         * GridColumnStylesCollection.cs: indexed column is case insensitive
8658         * DataGridTableStyle.cs: fixes
8659         * ThemeWin32Classic.cs: add new theme parameter
8660         * Theme.cs: add new theme parameter
8661         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8662         * DataGrid.cs: fixes, new internal properties, etc.
8663         * DataGridColumnStyle.cs: allows to set grid value
8664         *
8665
8666 2005-05-10  Peter Bartok  <pbartok@novell.com>
8667
8668         * AccessibleObject.cs:
8669           - Removed MonoTODO attribute on help, method is correct
8670           - Fixed Bounds property
8671         * AxHost.cs: Moved MonoTODO
8672         * ButtonBase.cs: Now setting AccessibleObject properties
8673         * RadioButton.cs: Setting proper AccessibleObject role
8674         * CheckBox.cs: Setting proper AccessibleObject role
8675         * ControlBindingsCollection.cs: Added properties, methods and attributes
8676         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8677           userdefined DataFormats.Format items as well
8678         * ListControl.cs: Removed data_member from the public eye
8679         * OpenFileDialog.cs:
8680           - Made class sealed
8681           - Added missing attributes
8682         * SaveFileDialog.cs: Added missing attributes
8683         * ImageListStreamer.cs: Fixed code that caused warnings
8684         * LinkLabel.cs: Removed unreachable code
8685         * TreeView.cs: Fixed code that caused warnings
8686         * PropertyGridView.cs: Fixed code that caused warnings
8687         * GridColumnStylesCollection.cs: Added missing attributes
8688         * GridTableStylesCollection: Added missing attribute
8689         * PropertyManager: Added .ctor
8690         * SecurityIDType: Added
8691         * DataObject.cs: Implemented class
8692         * LinkArea.cs: Added missing attribute
8693
8694 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8695
8696         * RadioButton.cs: call base method to allow to fire OnClick event
8697         * UpDownBase.cs: OnMouseUp call base method
8698         * CheckedListBox.cs: call base method before returning
8699         * TrackBar.cs: call base method before returning
8700         
8701
8702 2005-05-10  Peter Bartok  <pbartok@novell.com>
8703
8704         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8705           for messages
8706
8707 2005-05-10  Peter Bartok  <pbartok@novell.com>
8708
8709         * DataFormats.cs: Implemented
8710         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8711           XplatUIX11.cs: Added Clipboard APIs
8712         * XplatUIWin32.cs: Implemented Clipboard APIs
8713         * FolderBrowserDialog.cs: Added missing event, attributes
8714
8715 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8716
8717         * CheckBox.cs: call base method to allow to fire OnClick event
8718
8719 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8720
8721         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8722
8723 2005-05-06  Peter Bartok  <pbartok@novell.com>
8724
8725         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8726         * Screen.cs: Implemented
8727         * HelpNavigator.cs: Added
8728         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8729           property
8730         * HelpProvider.cs: Implemented all we can do until we have a CHM
8731           help library (which means that "What's This" does work now)
8732
8733 2005-05-06  Jackson Harper  <jackson@ximian.com>
8734
8735         * XplatUIX11.cs: Fix waking up the main loop.
8736                 
8737 2005-05-05  Peter Bartok  <pbartok@novell.com>
8738
8739         * XplatUI.cs: Updated revision
8740         * Form.cs: Removed enless loop
8741         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8742         * Label.cs (OnPaint): Added call to base.OnPaint()
8743         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8744         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8745         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8746         * AxHost.cs: Added
8747         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8748         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8749           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8750           reuse of ToolTipWindow by other controls
8751         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8752         * XplatUIX11.cs: Now clipping drawing area (experimental)
8753         * PictureBox.cs: Moved base.OnPaint() call to end of method
8754         * Theme.cs: Fixed ToolTip abstracts to match new format
8755         * ErrorProvider.cs: Implemented
8756
8757 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8758
8759         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8760         * LinkLabel.cs:
8761                 - Adds cursors
8762                 - Handles focus
8763                 - Implements LinkBehavior
8764                 - Fixes many issues
8765
8766 2005-05-03  Jackson Harper  <jackson@ximian.com>
8767
8768         * ListView.cs: Calculate the scrollbar positioning on resize and
8769         paint, so they get put in the correct place.
8770
8771 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8772
8773         * ColorDialogs.cs: The small color panels are now handled by
8774           SmallColorControl. This fixes drawing of the focus rectangle
8775           and adds a 3D border.
8776
8777 2005-05-03  Peter Bartok  <pbartok@novell.com>
8778
8779         * Control.cs: Modified version of Jonathan Chamber's fix for
8780           double-buffering
8781
8782 2005-05-03  Jackson Harper  <jackson@ximian.com>
8783
8784         * ListView.cs: Remove redraw variable. Control now handles whether
8785         or not a redraw needs to be done, and will only raise the paint
8786         event if redrawing is needed.
8787
8788 2005-05-03  Jackson Harper  <jackson@ximian.com>
8789
8790         * Splitter.cs: No decorations for the splitter form. Cache the
8791         hatch brush.
8792
8793 2005-05-03  Jackson Harper  <jackson@ximian.com>
8794
8795         * TreeView.cs: Use dashed lines to connect nodes. Use the
8796         ControlPaint method for drawing the focus rect instead of doing
8797         that in treeview.
8798
8799 2005-05-02  Peter Bartok  <pbartok@novell.com>
8800
8801         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8802
8803 2005-04-29  Jackson Harper  <jackson@ximian.com>
8804
8805         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8806         entire image buffer. Just clear the clipping rectangle.
8807
8808 2005-04-29  Jackson Harper  <jackson@ximian.com>
8809
8810         * ThemeWin32Classic.cs: Don't draw list view items that are
8811         outside the clipping rectangle.
8812
8813 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8814
8815         * ListBox.cs: added horizontal item scroll
8816
8817 2005-04-29  Jackson Harper  <jackson@ximian.com>
8818
8819         * ThemeWin32Classic.cs: Remove some old debug code that was
8820         causing flicker with the new double buffering code.
8821
8822 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8823
8824         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8825         behave like combobox and comboboxlist (still not sure if this is
8826         correct though).
8827
8828 2005-04-28  Jackson Harper  <jackson@ximian.com>
8829
8830         * ThemeWin32Classic.cs: Don't fill the middle of progress
8831         bars. This fills areas outside of the clip bounds that don't need
8832         to be filled.
8833
8834 2005-04-28  Jackson Harper  <jackson@ximian.com>
8835
8836         * Control.cs: Don't expose functionality to touch the image buffers.
8837         * ProgressBar.cs:
8838         * ListView.cs: We do not need to (and no longer can) manipulate
8839         the image buffers directly. All of this is handled by Control.
8840
8841 2005-04-28  Peter Bartok  <pbartok@novell.com>
8842
8843         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8844           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8845           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8846
8847 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8848
8849         * Combobox:
8850                 - Adjust control's height for non-simple comboboxes (bug fix)
8851                 - Remove dead code
8852         * MenuAPI.cs: remove unused var
8853         * ScrollBar.cs: remove unsed var
8854                  
8855         * ListBox.cs: unselect items when clearing
8856
8857 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8858
8859         * ListControl.cs: honors OnPositionChanged and default Selected Item
8860         * ListBox.cs: unselect items when clearing
8861
8862 2005-04-27  Jackson Harper  <jackson@ximian.com>
8863
8864         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8865         if a "correct" keyboard is not found. This will make us not crash,
8866         but might give some users bad keyboard layouts...seems to be the
8867         same thing rewind does.
8868
8869 2005-04-27  Jackson Harper  <jackson@ximian.com>
8870
8871         * BindingManagerBase.cs: Attach the current/position changed
8872         handlers to their respective events.
8873
8874 2005-04-27  Jackson Harper  <jackson@ximian.com>
8875
8876         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8877         not just a blit.
8878         * ThemeWin32Classic.cs: Don't fill the background for picture
8879         boxes. This could overright user drawing.
8880         * ComboBox.cs: Just fill the clipping rect not the entire client
8881         rect when drawing the background. This prevents pieces of the
8882         image buffer from getting overwritten and is theoretically faster.
8883
8884 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8885
8886         * ComboBox.cs: Databinding support fixes, fire missing events
8887         * ListControl.cs: implement missing methods and properties, fixes
8888         * ThemeWin32Classic.cs: Databiding support on Drawing
8889         * CheckedListBox.cs: Databinding support fixes, fire missing events
8890         * ListBox.cs: Databinding support fixes, fire missing events
8891         
8892 2005-04-25  Peter Bartok  <pbartok@novell.com>
8893
8894         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8895
8896 2005-04-25  Jackson Harper  <jackson@ximian.com>
8897
8898         * TreeView.cs: Use the horizontal scrollbars height not width when
8899         determining how much of the client area is available.
8900
8901 2005-04-25  Jackson Harper  <jackson@ximian.com>
8902
8903         * Control.cs: Double buffering is handled differently now. As per
8904         the spec, the extra buffer is created in the WM_PAINT message and
8905         passed down to the control's drawing code.
8906         * GroupBox.cs:
8907         * Label.cs:
8908         * CheckBox.cs:
8909         * ProgressBar.cs:
8910         * RadioButton.cs:
8911         * ColorDialog.cs:
8912         * ComboBox.cs:
8913         * PropertyGridView.cs:
8914         * UpDownBase.cs:
8915         * MessageBox.cs:
8916         * MenuAPI.cs:
8917         * ListView.cs:
8918         * ButtonBase.cs:
8919         * SizeGrip.cs:
8920         * ScrollBar.cs:
8921         * ListBox.cs:
8922         * TrackBar.cs:
8923         * ToolBar.cs:
8924         * PictureBox.cs:
8925         * DateTimePicker.cs:
8926         * StatusBar.cs:
8927         * TreeView.cs: Update to new double buffering system.
8928         * MonthCalendar.cs: Uncomment block, as Capture is now
8929         working. Update to new double buffering
8930         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8931         * PaintEventArgs.cs: New internal method allows us to set the
8932         graphics object. This is used for double buffering.
8933         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8934         rectangle. The internal paint_area var has been removed from
8935         StatusBar. The clipping rect should be used instead.
8936         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8937         * TabPage.cs: The RefreshTabs method was removed, so just call the
8938         tab controls Refresh method now.
8939         * TabControl.cs: Update to new double buffering. Make sure the
8940         handle is created before sizing the tab pages, otherwise we will
8941         get stuck in a loop.
8942
8943 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8944
8945         * LinkLabel.cs: Fix typo, bug #74719; patch
8946           from Borja Sanchez Zamorano
8947
8948 2005-04-22  Jackson Harper  <jackson@ximian.com>
8949
8950         * TreeNode.cs: Implement Handle stuff.
8951         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8952
8953 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8954
8955         * DataGridTextBoxColumn.cs: call base constructors, fixes
8956         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8957         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8958         * DataGridTableStyle.cs: implements create default column styles
8959         * DataGridBoolColumn.cs: which types can handle
8960         * DataGrid.cs: missing methods, fixes, new functionality
8961         * DataGridColumnStyle.cs: fixes
8962
8963 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8964         * FolderBrowserDialog.cs:
8965         - Use a thread to fill the TreeView
8966         - Adjusted some sizes
8967
8968 2005-04-19  Peter Bartok  <pbartok@novell.com>
8969
8970         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8971           property. Fixes #74360.
8972
8973 2005-04-19  Jackson Harper  <jackson@ximian.com>
8974
8975         * XEventQueue.cs: Lock when getting the lockqueue size.
8976         * PictureBox.cs: Call base OnPaint
8977         
8978 2005-04-19  Peter Bartok  <pbartok@novell.com>
8979
8980         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8981           messages were no longer being processed (this broke BeginInvoke)
8982
8983           
8984 2005-04-18  Jackson Harper  <jackson@ximian.com>
8985
8986         * TreeView.cs: buglet that caused node images to get drawn
8987         regardless of whether or not they were in the clipping rectangle.
8988
8989 2005-04-18  Jackson Harper  <jackson@ximian.com>
8990
8991         * CurrencyManager.cs: There are four rules for GetItemProperties:
8992         - If the type is an array use the element type of the array
8993         - If the type is a typed list, use the type
8994         - If the list contains an Item property that is not an object, use
8995         that property
8996         - use the first element of the list if there are any elements in
8997         the list.
8998         
8999 2005-04-17  Jackson Harper  <jackson@ximian.oom>
9000
9001         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
9002         click. This handles offsets for scrolling properly and reduces
9003         memory. Also fixed GetNode to not offset now that TopNode works
9004         properly.
9005         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
9006         
9007 2005-04-17  Jackson Harper  <jackson@ximian.com>
9008
9009         * CursorConverter.cs: Initial implementation.
9010
9011 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9012
9013         * ListControl.cs: work towards complex data binding support on ListControl
9014         * CurrencyManager.cs: work towards complex data binding support on ListControl
9015         * ListBox.cs: work towards complex data binding support on ListControl
9016
9017
9018 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9019
9020         * GridTableStylesCollection.cs: fixes name and constructor
9021         * DataGridTableStyle.cs: fixes
9022         * DataGridBoolColumn.cs: fixes names and constructors
9023         * DataGrid.cs: define methods and properties. Some init implementations
9024         * DataGridCell.cs: define methods and properties. Some init implementations
9025         * GridTablesFactory.cs: Define methods and properties
9026
9027 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
9028
9029         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
9030         graphics port changes.  We still want the coordinates in global screen
9031         coordinates.
9032
9033 2005-04-14  Jackson Harper  <jackson@ximian.com>
9034
9035         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
9036         check plus minus or checkbox clicks unless those features are enabled.
9037
9038 2005-04-14  Jackson Harper  <jackson@ximian.com>
9039
9040         * TreeView.cs: Add methods for setting the top and bottom visible
9041         nodes. TreeNode::EnsureVisible uses these methods.
9042         * TreeNode.cs: Implement EnsureVisible
9043
9044 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
9045
9046         * Form.cs: Pospone menu assignation if the window has not been created yet
9047         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
9048         size and position
9049
9050 2005-04-12  Jackson Harper  <jackson@ximian.com>
9051
9052         * TreeView.cs: Set the TopNode properly when scrolling
9053         occurs. This has the added benifit of reducing the amount of
9054         walking that needs to be done when drawing. Also removed an old
9055         misleading TODO.
9056         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
9057         
9058 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
9059
9060         * Timer.cs: fixes interval setting when the timer is already enabled
9061         
9062 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
9063
9064         * FolderBrowserDialog.cs: First approach
9065
9066 2005-04-09  Peter Bartok  <pbartok@novell.com>
9067
9068         * FolderBrowserDialog: Added
9069
9070 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
9071
9072         * LinkLabel.cs: move drawing code into the theme
9073         * ThemeWin32Classic.cs: drawing code and painting background bugfix
9074         * Theme.cs: define DrawLinkLabel method
9075
9076 2005-04-05  Jackson Harper  <jackson@ximian.com>
9077
9078         * BindingContext.cs: Use weak references so these bad actors don't
9079         stay alive longer then they need to.
9080
9081 2005-04-05  Jackson Harper  <jackson@ximian.com>
9082
9083         * ListControl.cs: Basic implementation of complex databinding.
9084         * ComboBox.cs:
9085         * ListBox.cs: Add calls to ListControl databinding methods.
9086
9087 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
9088
9089         * FileDialog.cs:
9090           - Don't change PopupButtonState to Normal when the
9091             PopupButton gets pressed several times.
9092           - Renamed ButtonPanel to PopupButtonPanel
9093
9094 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
9095
9096         * ColorDialog.cs: Use cached objects instead of creating them
9097         * LinkLabel.cs: Use cached objects instead of creating them
9098         * Splitter.cs: Use cached objects instead of creating them
9099         * FontDialog.cs: Use cached objects instead of creating them
9100         * PropertyGridView.cs: Use cached objects instead of creating them
9101         * MessageBox.cs: Use cached objects instead of creating them
9102         * FileDialog.cs: Use cached objects instead of creating them
9103         * ThemeWin32Classic.cs: Use cached objects instead of creating them
9104         * TreeView.cs: Use cached objects instead of creating them
9105         
9106 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
9107
9108         * Control.cs: use Equals to compare the font since no == op
9109         * ScrollBar.cs: use Equals to compare the font since no == op
9110
9111 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
9112
9113         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
9114
9115 2005-04-01  Jackson Harper  <jackson@ximian.com>
9116
9117         * Binding.cs: Implement IsBinding.
9118         * BindingManagerBase.cs:
9119         * PropertyManager.cs:
9120         * CurrencyManager.cs: Add IsSuspended property.
9121
9122 2005-04-01  Jackson Harper  <jackson@ximian.com>
9123
9124         * Binding.cs: Had some IsAssignableFrom calls backwards.
9125
9126 2005-04-01  Jackson Harper  <jackson@ximian.com>
9127
9128         * Binding.cs: Handle null data members when pulling data.
9129         * PropertyManager.cs: Handle the data member being a property that
9130         does not exist.
9131
9132 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9133
9134         * DataGridTextBoxColumn.cs: fixes signature
9135         * DataGrid.cs: calls right constructor
9136
9137 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9138
9139         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
9140         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
9141         * GridTableStylesCollection.cs: implements GridTableStylesCollection
9142         * DataGridTableStyle.cs: implements DataGridTableStyle
9143         * DataGridBoolColumn.cs: implements DataGridBoolColumn
9144         * DataGridTextBox.cs: implements DataGridTextBox
9145         * DataGridColumnStyle.cs: implements DataGridColumnStyle
9146
9147 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
9148
9149         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
9150
9151 2005-03-29  Peter Bartok  <pbartok@novell.com>
9152
9153         * Application.cs:
9154           - Properly implemented CompanyName property
9155           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
9156             returns a path that includes CompanyName, ProductName and
9157             Version (fixes bug #70330)
9158
9159 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
9160
9161         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
9162           fixes bug #72588.
9163
9164 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9165
9166         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
9167         
9168           - Added ReadOnly CheckBox
9169           - Further refactoring: moved some code from Open-/SaveFileDialog
9170             to FileDialog
9171
9172 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9173
9174         * OpenFileDialog.cs: Fixed CheckFileExists
9175         * FileDialog.cs:
9176           Moved FileView and DirComboBox outside FileDialog class.
9177           They can now be used outside FileDialog
9178
9179 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9180
9181         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
9182         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
9183
9184 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9185
9186         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9187           - Added missing CreatePrompt property in SaveDialog
9188           - Overall SaveDialog handling should be better now
9189           - Added non standard ShowHiddenFiles property
9190           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
9191           - Added InitialDirectory and RestoreDirectory support
9192
9193 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
9194
9195         * FileDialog.cs: Made dirComboBox usable
9196
9197 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
9198
9199         * FileDialog.cs: Added Filter support (case sensitiv)
9200
9201 2005-03-24  Jackson Harper  <jackson@ximian.com>
9202
9203         * TabControl.cs: Need a couple more pixels for the lines.
9204
9205 2005-03-23  Jackson Harper  <jackson@ximian.com>
9206
9207         * TabControl.cs: Give the tab page focus when it is selected.
9208
9209 2005-03-23  Jackson Harper  <jackson@ximian.com>
9210
9211         * TabControl.cs: Account for the drawing of tabs borders when
9212         invalidating. If the slider was clicked dont do click detection on
9213         the tabs.
9214
9215 2005-03-23  Jackson Harper  <jackson@ximian.com>
9216
9217         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
9218
9219 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
9220
9221         * CategoryGridEntry.cs: Added
9222         * GridItem.cs: Added helper properties
9223         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
9224         * GridEntry.cs: Updated code for collection
9225         * PropertyGrid.cs: Cleaned up some formatting
9226         * PropertyGridView.cs: Added drop down functionality for enums.
9227         * GridItemCollection.cs: Added enumerator logic
9228         * PropertyGridEntry.cs: Added
9229
9230 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9231
9232         * FileDialog.cs:
9233           - Removed unnecessary commented code
9234           - Fixed handling for entering the filename manually in the combobox
9235
9236 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9237
9238         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9239
9240 2005-03-18  Peter Bartok  <pbartok@novell.com>
9241
9242         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9243           them being touching the border
9244
9245 2005-03-18  Peter Bartok  <pbartok@novell.com>
9246
9247         * TextControl.cs: Quick hack to center text better
9248
9249 2005-03-18  Peter Bartok  <pbartok@novell.com>
9250
9251         * ControlPaint.cs:
9252           - Don't throw NotImplemented exceptions, just print a notice once
9253             instead (requested by Miguel). This makes running existing SWF
9254             apps a bit easier
9255         * Control.cs:
9256           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9257           - Added context menu trigger on right click
9258         * Panel.cs: Trigger invalidate on resize
9259         * StatusBar.cs:
9260           - Removed old double-buffer drawing
9261           - Added ResizeRedraw style to force proper update of statusbar
9262         * ListView.cs:
9263           - Removed debug output
9264         * ThemeWin32Classic.cs:
9265           - Fixed drawing of status bar, now draws Text property if there
9266             are no defined panels
9267
9268 2005-03-18  Jackson Harper  <jackson@ximian.com>
9269
9270         * ImageList.cs: When the image stream is set pull all the images
9271         from it.
9272         * ImageListStreamer.cs: Implement reading image list streams.
9273
9274 2005-03-18  Peter Bartok  <pbartok@novell.com>
9275
9276         * ThemeWin32Classic.cs (DrawPictureBox):
9277           - Fixed calculations for centered drawing
9278           - Fixed drawing for normal mode, not scaling the image on normal
9279
9280 2005-03-18  Peter Bartok  <pbartok@novell.com>
9281
9282         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9283           textbox
9284         * FileDialog.cs:
9285           - Made Open/Save button the accept button for FileDialog
9286           - Tied the cancel button to the IButtonControl cancel button
9287           - Save/Open now properly builds the pathname
9288           - Now handles user-entered text
9289           - Preventing crash on right-click if no item is selected
9290           - Fixed Text property, now uses contents of textbox
9291           - Fixed SelectedText property, now just returns the text part that
9292             is selected in the text box
9293
9294 2005-03-18  Jackson Harper  <jackson@ximian.com>
9295
9296         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9297         rect, make sure to de-adjust the interior rect after drawing the
9298         tab text.
9299
9300 2005-03-18  Peter Bartok  <pbartok@novell.com>
9301
9302         * MenuAPI.cs: Remove menu *before* executing selected action to
9303           prevent the menu from 'hanging around'
9304           
9305 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
9306
9307         * XplatUIOSX.cs: Implemented WorkingArea property
9308
9309 2005-03-17  Peter Bartok  <pbartok@novell.com>
9310
9311         * XplatUIX11.cs: Fixed menu coord calculations
9312         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9313           for calculating offsets
9314
9315 2005-03-17  Peter Bartok  <pbartok@novell.com>
9316
9317         * Hwnd.cs: Do not consider menu presence for default client
9318           rectangle location/size
9319         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9320           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9321           translation functions
9322         * FileDialog.cs: Fixed (what I presume is a) typo
9323
9324 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
9325
9326         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9327           X access (avoids X-Async errors)
9328
9329 2005-03-16  Jackson Harper  <jackson@ximian.com>
9330
9331         * TabControl.cs: Raise the SelectedIndexChanged event.
9332
9333 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9334
9335         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9336           - Removed vertical ToolBar and replaced it with a custom panel
9337             (desktop and home button already work)
9338           - Added Help button (some controls get resized or relocated then)
9339           - Draw correct text depending on Open or Save.
9340           - Fixed some typos...
9341
9342 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9343
9344         * ScrollBar.cs:
9345           - Only change Maximum and Minimum when need it (bug fix)
9346
9347 2005-03-15  Peter Bartok  <pbartok@novell.com>
9348
9349         * Form.cs: Use Handle for icon, to trigger creation if
9350           the window does not yet exist
9351         * Control.cs:
9352           - CanSelect: Slight performance improvement
9353           - Focus(): Preventing possible recursion
9354           - Invalidate(): Removed ControlStyle based clear flag setting
9355           - WM_PAINT: fixed logic for calling OnPaintBackground
9356           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9357             EraseWindowBackground if the control doesn't paint background
9358         * XplatUIWin32.cs:
9359           - Moved EraseWindowBackground() method to internal methods
9360           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9361             is sent via SendMessage on BeginPaint call on Win32
9362         * XplatUIX11.cs:
9363           - Added EraseWindowBackground() method
9364           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9365             PaintEventStart, which more closely matches Win32 behaviour
9366           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9367           - Fixed SetFocus() to properly deal with client and whole windows
9368         * Hwnd.cs: Added ErasePending property
9369         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9370         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9371
9372 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9373
9374         * XplatUIOSX.cs:
9375           - Fix hard loop when timers exist.
9376           - Fix bugs with middle and right click for 3 button mice.
9377
9378 2005-03-11  Peter Bartok  <pbartok@novell.com>
9379
9380         * XplatUIX11.cs:
9381           - get_WorkingArea: Need to call X directly, GetWindowPos only
9382             returns cached data now
9383           - Added sanity check to GetWindowPos hwnd usage
9384
9385 2005-03-11  Jackson Harper  <jackson@ximian.com>
9386
9387         * BindingManagerBase.cs: This method isn't used anymore as
9388         PullData now updates the data in the control.
9389
9390 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9391
9392         * Form.cs: fixes menu drawing on X11
9393         * MenuAPI.cs:  fixes menu drawing on X11
9394
9395 2005-03-11  Peter Bartok  <pbartok@novell.com>
9396
9397         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9398           from Jonathan Gilbert; should fix bug #73606
9399         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9400           in Screen coordinates. Thanks, Jordi.
9401         * Form.cs: Added missing attribute
9402
9403 2005-03-11  Peter Bartok  <pbartok@novell.com>
9404
9405         * Form.cs:
9406           - Rudimentary Mdi support
9407           - Removed outdated FormParent code
9408           - Implemented lots of missing properties and methods, still missing
9409             transparency support
9410           - Added missing attributes
9411           - Implemented support for MaximumBounds
9412           - Added firing of various events
9413         * XplatUI.cs: Added SetIcon() method
9414         * XplatUIDriver.cs: Added SetIcon() abstract
9415         * XplatUIOSX.cs: Stubbed out SetIcon() method
9416         * XplatUIX11.cs:
9417           - Implemented SetIcon() support
9418           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9419           - Switched to unix line endings
9420         * XplatUIWin32.cs:
9421           - Made POINT internal so for can access it as part of MINMAX
9422           - Implemented SetIcon() support
9423           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9424             native Mdi support again, might have to go managed)
9425         * Control.cs: Now fires the StyleChanged event
9426         * MdiClient.cs: Added; still mostly empty
9427
9428 2005-03-10  Peter Bartok  <pbartok@novell.com>
9429
9430         * SaveFileDialog.cs: Added emtpy file
9431
9432 2005-03-08  Peter Bartok  <pbartok@novell.com>
9433
9434         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9435           in turn triggers OnCreateContro) when creating a handle for the
9436           first time.
9437         * TextControl.cs: Fixed endless loop in certain cases when
9438           replacing the current selection
9439
9440 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9441
9442         * ScrollBar.cs:
9443           - Honors NewValue changes in Scroll events allowing apps to change it
9444           - Adds First and Last Scroll events
9445           - Fixes Thumb events
9446
9447 2005-03-07  Peter Bartok  <pbartok@novell.com>
9448
9449         * Hwnd.cs: Added DefaultClientRectangle property
9450         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9451           more detailed debug information
9452         * XplatUIX11.cs:
9453           - Fixed size-change feedback loop, where we would pull an old size
9454             off the queue and mistakenly change our window's size to an
9455             earlier value
9456           - Now compressing ConfigureNotify events, to reduce looping and
9457             redraw issues
9458         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9459           is called
9460
9461 2005-03-07  Jackson Harper  <jackson@ximian.com>
9462
9463         * Binding.cs: Push data pushes from data -> property. Check if the
9464         property is readonly when attempting to set it.
9465
9466 2005-03-07  Jackson Harper  <jackson@ximian.com>
9467
9468         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9469         instead of IsSubclassOf. Pulling data now sets the value on the
9470         control.
9471         * PropertyManager.cs:
9472         * CurrencyManager.cs: Just need to pull data when updating now,
9473         because PullData will set the value on the control.
9474
9475 2005-03-04  Jackson Harper  <jackson@ximian.com>
9476
9477         * Binding.cs: Implement data type parsing and converting on pulled
9478         data. TODO: Are there more ways the data can be converted?
9479
9480 2005-03-04  Jackson Harper  <jackson@ximian.com>
9481
9482         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9483         controls Validating method so we can repull the data when the
9484         control loses focus.
9485
9486 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9487
9488         * ColumnHeader.cs:
9489           - Fixes null string format
9490           
9491         * ListView.cs:
9492           - Adds enum type checks
9493           - Fixes redrawing and recalc need after changing some properties
9494           - Fixes on focus_item set after the event
9495           - Fixes adding columns after the control has been created
9496           
9497         * ThemeWin32Classic.cs:
9498           - Fixes CheckBox focus rectangle
9499           - Fixes ColumnHeader drawing
9500
9501
9502 2005-03-03  Jackson Harper  <jackson@ximian.com>
9503
9504         * Binding.cs: Bind to <Property>Changed events so we can detect
9505         when properties are changed and update the data.
9506
9507 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9508
9509         * ImageList.cs:
9510           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9511           - Fixes ImageList constructor with ImageList container
9512           - Fixes image scaling (wrong parameters at DrawImage)
9513
9514 2005-02-02  Jackson Harper  <jackson@ximian.com>
9515
9516         * Binding.cs: Make property searches case-insensitive. Eliminate
9517         some duplicated code.
9518
9519 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9520
9521         * ComboBox.cs:
9522                 - Handle focus event
9523                 - Fix scrollbar events
9524                 - Discard highlighted item if remove it
9525                 - Fixes SelectedItem with strings
9526
9527 2005-03-01  Peter Bartok  <pbartok@novell.com>
9528
9529         * Control.cs:
9530           - Fixed Visible property, now follows (once again) parent chain
9531             to return false if any control in the chain is visible=false
9532           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9533           - Fixed several places where is_visible instead of Visible was used
9534           - Implemented FIXME related to focus selection when setting focused
9535             control to be invisible
9536
9537         * XplatUIWin32.cs: Now using proper method to find out if window is
9538           visible. Thanks to Jordi for pointing it out
9539
9540 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9541
9542         * ComboBox.cs: show/hide scrollbar instead of creating it
9543
9544 2005-02-27  Jackson Harper  <jackson@ximian.com>
9545
9546         * CurrencyManager.cs: Add PositionChanged stuff.
9547
9548 2005-02-27  Peter Bartok  <pbartok@novell.com>
9549
9550         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9551         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9552         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9553         * XplatUIX11.cs:
9554           - Implemented GetMenuDC()
9555           - Implemented GetMenuOrigin()
9556           - Implemented ReleaseMenuDC()
9557           - Implemented generation of WM_NCPAINT message
9558           - Implemented generation and handling of WM_NCCALCSIZE message
9559         * Form.cs: Added debug helper message for Jordi's menu work
9560         * Hwnd.cs:
9561           - Modified ClientRect property; added setter, fixed getter to handle
9562             setting of ClientRect
9563           - Added MenuOrigin property
9564
9565 2005-02-26  Peter Bartok  <pbartok@novell.com>
9566
9567         * XplatUIX11.cs:
9568           - Destroys the caret if a window that's being destroyed contains it
9569           - Ignores expose events coming from the X11 queue for windows that
9570             already are destroyed
9571           - Now uses the proper variable for handling DestroyNotify, before we
9572             marked the wrong window as destroyed
9573           - Improved/added some debug output
9574
9575 2005-02-26  Peter Bartok  <pbartok@novell.com>
9576
9577         * X11Keyboard.cs: Fixes to work on 64bit systems
9578
9579 2005-02-26  Peter Bartok  <pbartok@novell.com>
9580
9581         * Control.cs:
9582           - Now calling OnHandleDestroyed from DestroyHandle()
9583             instead of Dispose()
9584           - Removed bogus call to controls.Remove() from DestroyHandle()
9585
9586 2005-02-26  Peter Bartok  <pbartok@novell.com>
9587
9588         * Control.cs: Properly destroy child windows when our handle is
9589           destroyed
9590
9591 2005-02-25  Peter Bartok  <pbartok@novell.com>
9592
9593         * XplatUI.cs:
9594           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9595           - Alphabetized Static Methods and Subclasses
9596
9597         * XplatUIX11.cs:
9598           - Added XException class to allow custom handling of X11 exceptions
9599           - Created custom X11 error handler, tied into XException class
9600           - Added support for MONO_XEXCEPTIONS env var to allow the user
9601             to either throw an exception on X errors or continue running
9602             after displaying the error
9603           - Added handling of DestroyNotify message
9604           - Added handler for CreateNotify message (still disabled)
9605           - Improved (tried to at least) Where method to provide file and lineno
9606         * X11Structs.cs:
9607           - Added XErrorHandler delegate
9608           - Added XRequest enumeration (to suppor translation of errors)
9609
9610 2005-02-25  Jackson Harper  <jackson@ximian.com>
9611
9612         * PropertyManager.cs: Implement editing features
9613         * CurrencyManager.cs:
9614         * Binding.cs: First attempt at UpdateIsBinding
9615         * BindingManagerBase.cs: Call UpdateIsBinding before
9616         pushing/pulling data.
9617
9618 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9619
9620         * MenuAPI.cs: Respect disabled items
9621         * ThemeWin32Classic.cs
9622                 - Caches ImageAttributes creation for DrawImageDisabled
9623                 - Fixes vertical menu line drawing
9624                 - Draws disabled arrows in disable menu items
9625
9626 2005-02-24  Peter Bartok  <pbartok@novell.com>
9627
9628         * Hwnd.cs:
9629           - Added UserData property to allow associating arbitrary objects
9630             with the handle
9631           - Fixed leak; now removing Hwnd references from static windows array
9632         * XplatUIWin32.cs:
9633           - Fixed Graphics leak in PaintEventEnd
9634           - Removed usage of HandleData, switched over to Hwnd class
9635         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9636
9637 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9638
9639         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9640         * ScrollBar.cs: Fixes bug
9641         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9642          keyboard navigation enhancements
9643
9644 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9645
9646         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9647         * GroupBox.cs: Add control styles
9648         * Label.cs: Add control styles
9649         * UpDownBase.cs: Add control styles
9650         * ListBox.cs: Add control styles
9651         * XplatUIWin32.cs: Fixes wrong parameter order
9652
9653
9654 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9655
9656         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9657
9658 2005-02-23  Jackson Harper  <jackson@ximian.com>
9659
9660         * PropertyManager.cs: Implement property binding. This doesn't
9661         seem to work yet though as (I think) there are some bugs in
9662         System.ComponentModel.PropertyDescriptor.
9663         * BindingContext.cs: Use new PropertyManager constructor.
9664
9665 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9666
9667         * ProgressBar.cs: use clip region in ProgressBar
9668         * ThemeWin32Classic.cs: use clip region in ProgressBar
9669
9670 2004-02-22  Jackson Harper  <jackson@ximian.com>
9671
9672         * BindingsCollection.cs: Remove some debug code.
9673
9674 2005-02-22  Jackson Harper  <jackson@ximian.com>
9675
9676         * BindingContext.cs:
9677         * ControlBindingsCollection.cs:
9678         * CurrencyManager.cs:
9679         * Binding.cs:
9680         * BindingManagerBase.cs: Initial implementation
9681         * BindingsCollection.cs: Add an internal contains method that the
9682         BindingManagerBase uses to ensure bindings aren't added twice to
9683         the collection.
9684         * PropertyManager.cs: Stubbed out.
9685         * Control.cs:
9686         * ContainerControl.cs: Hook up databinding
9687         
9688 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9689
9690         * XplatUIOSX.cs:
9691           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9692           Fixed Invalidate/Update chain.
9693           Fixed tons of other minor bugs (this is almost a complete rewrite).
9694
9695 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9696
9697         * ComboBox.cs: do subcontrol creation when the control is created
9698
9699 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9700
9701         * Label.cs: fixes image drawing (image and imagelist)
9702         * ThemeWin32Classic.cs: cache brushes
9703         
9704 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9705
9706         * Form.cs: Move menu drawing code to Theme class
9707         * ComboBox.cs: Move ComboBox drawing code to Theme class
9708         * MenuItem.cs: Move menu drawing code to Theme class
9709         * MenuAPI.cs: Move menu drawing code to Theme class
9710         * ThemeWin32Classic.cs: New methods
9711         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9712         * ListBox.cs: Move Listbox drawing code to Theme class
9713         * Theme.cs: New methods
9714
9715 2005-02-20  Peter Bartok  <pbartok@novell.com>
9716
9717         * Control.cs:
9718           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9719             only process mnemonics on those)
9720           - Fixed event sequence for key handling; first calling
9721             ProcessKeyEventArgs now
9722         * TextBoxBase.cs:
9723           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9724             for processing non-character keys
9725           - Fixed WM_CHAR to generate proper event sequence before processing
9726         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9727           generation
9728
9729 2005-02-19  Peter Bartok  <pbartok@novell.com>
9730
9731         * UserControl.cs: Added TextChanged event; added attributes
9732         * SizeGrip.cs: Implemented resizing and optional display of grip
9733         * Form.cs: Fixed attribute
9734         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9735           Changed meaning of ScrollWindow bool argument; instead of the
9736           clear attribute (which will be true usually anyway), it gives the
9737           option of moving child controls as well.
9738         * XplatUIX11.cs:
9739           - Changed to match new ScrollWindow argument
9740           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9741             now handles the implicit parent window a WM puts around us
9742         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9743           to work)
9744         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9745         * TreeView.cs: Adjusted to new ScrollWindow arguments
9746
9747 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9748
9749         * Form.cs: Menu integration with non-client area
9750         * MenuItem.cs: Menu integration with non-client area
9751         * MenuAPI.cs: Menu integration with non-client area
9752
9753 2005-02-18  Peter Bartok  <pbartok@novell.com>
9754
9755         * MethodInvoker.cs: Added
9756         * MdiLayout.cs: Added
9757         * SendKeys.cs: Started implementation
9758         * ErrorIconAlignment.cs: Added
9759
9760 2005-02-18  Peter Bartok  <pbartok@novell.com>
9761
9762         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9763         * Form.cs: Added handling for Menu-related Non-client messages
9764
9765 2005-02-17  Peter Bartok  <pbartok@novell.com>
9766
9767         * UpDownBase.cs: Fixed typo, compilation errors
9768         * DomainUpDown.cs: Fixed attribute value
9769
9770 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9771
9772         * UpDownBase.cs: Attach entry events.
9773         Propagate events.
9774         Add ForeColor property, Focused, InterceptArrowKeys (interception
9775         does not work yet).
9776
9777 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9778
9779         * Form.cs:
9780                 - Redraw non client are on Setmenu
9781                 - Calc proper menu starting point
9782
9783 2005-02-17  Peter Bartok  <pbartok@novell.com>
9784
9785         * Application.cs: Fixed message_filter check
9786
9787 2005-02-17  Peter Bartok  <pbartok@novell.com>
9788
9789         * Application.cs: Now calls registered message filters
9790         * DockStyle.cs: Fixed attribute
9791         * Form.cs: Fixed attribute
9792         * Menu.cs: Fixed attribute
9793         * ToolTip.cs: Fixed attribute
9794         * TreeNode.cs: Added missing attributes and arranged in regions
9795         * PropertyGrid.cs: Fixed signatures
9796         * TreeNodeCollection.cs: Added attributes
9797         * Splitter.cs: Added missing attributes; arranged into regions
9798         * TabPage.cs: Added missing attributes; arranged into regions
9799         * TextBoxBase.cs: Added missing attributes
9800         * TextBox.cs: Added missing attributes
9801         * ArrangeDirection.cs: Added missing attributes
9802         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9803         * ToolBarButton.cs: Fixed attributes
9804         * AnchorStyles.cs: Fixed attribute
9805         * TrackBar.cs: Fixed attributes
9806         * TabControl.cs: Added missing attributes and arranged into regions
9807         * ToolBar.cs: Fixed attribute
9808         * StatusBar.cs: Fixed signature, organized into regions and added
9809           attributes
9810         * StatusBarPanel.cs: Fixed attributes
9811         * ContentsResizedEventArgs.cs: Implemented
9812         * ContentsResizedEventHandler.cs: Implemented
9813         * DateBoldEventArgs.cs: Implemented
9814         * DateBoldEventHandler.cs: Implemented
9815         * UpDownEventArgs.cs: Implemented
9816         * UpDownEventHandler.cs: Implemented
9817         
9818 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9819
9820         * Form.cs: first Menu NC refactoring
9821         * MenuAPI.cs: first Menu NC refactoring
9822         
9823 2005-02-16  Peter Bartok  <pbartok@novell.com>
9824
9825         * ImeMode.cs: Added missing attributes
9826         * Menu.cs: Fixed attribute
9827         * GroupBox.cs: Fixed attribute
9828         * Label.cs: Fixed attribute
9829         * ColorDialog.cs (RunDialog): Removed TODO attribute
9830         * ComboBox.cs: Fixed attributes
9831         * ListControl.cs: Added missing attributes
9832         * PropertyGrid.cs: Fixed attributes
9833         * Control.cs: Fixed attributes
9834         * ListViewItem.cs: Added TypeConverter attribute
9835         * NotifyIcon.cs: Fixed attributes
9836         * ListView.cs: Fixed attributes
9837         * ButtonBase.cs: Fixed attribute
9838         * ImageList.cs: Added missing attributes
9839         * ContainerControl.cs: Fixed signature
9840         * CheckedListBox.cs: Fixed attribute; added missing attributes
9841         * Panel.cs: Fixed attributes
9842         * PropertyTabChangedEventArgs.cs: Added missing attribute
9843         * PropertyValueChangedEventArgs.cs: Added missing attribute
9844         * Binding.cs: Fixed attribute
9845         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9846         * ListBox.cs: Fixed attribute; added missing attributes;
9847         * ScrollableControl.cs: Added missing attributes
9848         * PictureBox.cs: Added missing attributes; implemented missing property
9849         * DateTimePicker.cs: Added missing attributes
9850         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9851         * MonthCalendar.cs: Fixed attributes
9852         * StatusBarPanel.cs: Added missing attributes
9853         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9854
9855 2005-02-16  Peter Bartok  <pbartok@novell.com>
9856
9857         * TextBoxBase.cs: The previous method to enforce height yet remember
9858           the requested high was less than ideal, this is an attempt to do
9859           it better.
9860         * Control.cs: Added comment about possible problem
9861         * Copyright: Updated format
9862         * GridItemType.cs: Fixed swapped values
9863
9864 2005-02-15  Jackson Harper  <jackson@ximian.com>
9865
9866         * BaseCollection.cs: Use property so we never access an
9867         uninitialized list. Also initialize the list in the property.
9868
9869 2005-02-15  Peter Bartok  <pbartok@novell.com>
9870
9871         * GroupBox.cs (ProcessMnemonic): Implemented
9872         * Label.cs (ProcessMnemonic): Implemented
9873         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9874           hotkeys
9875
9876 2005-02-15  Peter Bartok  <pbartok@novell.com>
9877
9878         * RadioButton.cs (ProcessMnemonic): Implemented
9879         * CheckBox.cs (ProcessMnemonic): Implemented
9880         * Control.cs:
9881           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9882             handling
9883           - Added internal method to allow calling ProcessMnemonic from other
9884             controls
9885         * ContainerControl.cs:
9886           - Started support for handling validation chain handling
9887           - Implemented ProcessMnemonic support
9888           - Added Select() call to Active, to make sure the active control
9889             receives focus
9890         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9891           FormParent rewrite)
9892         * ThemeWin32Classic.cs:
9893           - DrawCheckBox(): Fixed stringformat to show hotkeys
9894           - DrawRadioButton(): Fixed stringformat to show hotkeys
9895         * CommonDialog.cs: Removed WndProc override, not needed
9896
9897 2005-02-14  Peter Bartok  <pbartok@novell.com>
9898
9899         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9900           missed those in the rewrite
9901
9902 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9903
9904         * NumericUpDown.cs (Increment, ToString): Add.
9905         (DecimalPlaces): implement.
9906         
9907         Add attributes.
9908         
9909         * UpDownBase.cs: Add the designer attributes.
9910
9911 2005-02-13  Peter Bartok  <pbartok@novell.com>
9912
9913         * Panel.cs: Removed border_style, now in Control
9914         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9915           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9916
9917 2005-02-13  Peter Bartok  <pbartok@novell.com>
9918
9919         * MouseButtons.cs: Added missing attributes
9920         * XplatUIStructs.cs: Added enumeration for title styles
9921         * LeftRightAlignment.cs: Added missing attributes
9922         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9923           it compatible with Graphics.FromHwnd()
9924         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9925         * Keys.cs: Added missing attributes
9926         * SelectionRange.cs: Added missing attributes
9927         * SelectionRangeConverter.cs: Added
9928         * XplatUI.cs:
9929           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9930             ReleaseMenuDC methods
9931           - Renamed ReleaseWindow to UngrabWindow
9932           - Added proper startup notice to allow version identification
9933         * Form.cs:
9934           - Added missing attributes
9935           - Removed FormParent concept
9936         * Label.cs: Removed border_style field, now in Control
9937         * RadioButton.cs: Now properly selects RadioButton when focus is
9938           received
9939         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9940         * Control.cs:
9941           - Added missing attributes
9942           - Added borderstyle handling
9943           - Removed FormParent concept support
9944           - Fixed calls to XplatUI to match changed APIs
9945           - Fixed bug that would case us to use disposed Graphics objects
9946           - Removed unneeded internal methods
9947           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9948           - SelectNextControl(): Fixed to properly check common parents
9949         * TextBoxBase.cs: Removed border_style field (now in Control)
9950         * MessageBox.cs:
9951           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9952             fixed calculations for form size
9953           - Added support for localized strings and icons
9954           - Improved form size calculations, added border
9955         * ListView.cs: Removed border_style field (now in Control)
9956         * X11Structs.cs: Moved several structs from X11 driver here
9957         * X11Keyboard.cs: Changed debug message
9958         * Application.cs: Removed FormParent concept support
9959         * CommonDialog.cs:
9960           - Resetting end_modal flag
9961           - Removed FormParent concept support
9962         * NativeWindow.cs: Removed FormParent concept support
9963         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9964           Client area and Non-Client whole window to allow support for WM_NC
9965           messages
9966         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9967           prevent using it until it supports Hwnd as per Geoff Norton's request
9968         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9969         * PictureBox.cs: Removed border_style field, now in Control
9970         * XplatUIWin32.cs: Added new driver methods
9971
9972 2005-02-12  Peter Bartok  <pbartok@novell.com>
9973
9974         * OpacityConverter.cs: Implemented
9975         * Hwnd.cs: Internal class to support drivers that need to emulate
9976           client area/non-client area window behaviour
9977
9978 2005-02-11  Peter Bartok  <pbartok@novell.com>
9979
9980         * KeysConverter.cs: Implemented
9981
9982 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9983
9984         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9985         * LinkLabel: Added missing attributes
9986         * MainMenu.cs: fixes ToString
9987         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9988         * ListBox.cs: fixes event position
9989         * TrackBar.cs: adds missing attributes and events
9990         
9991 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9992
9993         * MenuItem.cs: Use SystemInformation and bug fixes
9994         * MenuAPI.cs: Use SystemInformation and bug fixes
9995
9996 2005-02-09  Jackson Harper  <jackson@ximian.com>
9997
9998         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9999         their keystate otherwise things like VK_MENU get stuck "on".
10000
10001 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
10002
10003         * ListBox.cs: Fixes AddRange bug
10004         
10005 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
10006
10007         * ProgressBar.cs
10008                 - Add missing attributes
10009                 - Add missing method
10010                 
10011         * CheckedListBox.cs: Added missing attributes
10012                 - Add missing attributes
10013                 - Remove extra method
10014         
10015         * ComboBox.cs: Added missing attributes
10016         * VScrollBar.cs: Added missing attributes
10017         * ScrollBar.cs:  Added missing attributes
10018         * ListBox.cs: Fixes signature, add missing consts
10019         * LinkArea.cs:   Added missing attributes
10020         
10021
10022 2005-02-08  Peter Bartok  <pbartok@novell.com>
10023
10024         * Menu.cs: Added missing attributes
10025         * MainMenu.cs: Added missing attributes
10026         * GroupBox.cs: Added missing attributes
10027         * Label.cs: Added missing attributes
10028         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
10029         * ColorDialog.cs:
10030           - Added Instance and Options properties
10031           - Added missing attributes
10032         * Cursor.cs: Made Serializable
10033         * NotifyIcon: Added missing attributes
10034         * MenuItem.cs: Added missing attributes
10035         * TextBoxBase.cs: Implemented AppendText() and Select() methods
10036         * Panel.cs: Added Missing attributes
10037         * MonthCalendar.cs: Fixed CreateParams
10038
10039 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10040         
10041         * LinkLabel.cs:
10042                 - Fixes signature
10043                 - Fixes issues with links
10044                 - Adds the class attributes
10045
10046 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10047         
10048         * ComboBox.cs:
10049                 - Fixes button when no items available in dropdown
10050                 - Fixes repainting problems
10051                 - Adds the class attributes
10052                 
10053 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10054
10055         * XplatUIOSX.cs: Detect the menu bar and title bar height from
10056         the current theme.  Cache these on startup.
10057
10058 2005-02-07  Jackson Harper  <jackson@ximian.com>
10059
10060         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
10061         the scrollbar buttons when they are depressed.
10062
10063 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10064
10065         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
10066         Get the display size from the main displayid.  We currently dont
10067         support multiple display configurations.
10068
10069 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10070
10071         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
10072
10073 2005-02-07  Miguel de Icaza  <miguel@novell.com>
10074
10075         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
10076
10077 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10078
10079         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
10080
10081 2005-02-04  Jackson Harper  <jackson@ximian.com>
10082
10083         * ThemeWin32Classic.cs: Respect the clipping rect when
10084         drawing. Only fill the intersection of clips and rects so there
10085         isn't a lot of large fills.
10086         * ScrollBar.cs: Pass the correct clipping rect to the theme
10087         engine. Remove some debug code.
10088
10089 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
10090         
10091         * DateTimePicker.cs:
10092                 - Fixed crash on DateTime.Parse, use Constructor instead
10093
10094 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10095         
10096         * MenuItem.cs:
10097         * MenuAPI.cs:
10098                 - Owner draw support (MeasureItem and DrawItem)
10099
10100 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10101         
10102         *  Menu.cs:
10103                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
10104                 - Fixes MenuItems.Add range
10105         * MenuItem.cs:
10106                 - MergeMenu and Clone and CloneMenu functions
10107
10108 2005-02-03  Jackson Harper  <jackson@ximian.com>
10109
10110         * ScrollBar.cs: Make abstract
10111         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
10112         is abstract.
10113
10114 2005-02-03  Jackson Harper  <jackson@ximian.com>
10115
10116         * ScrollBar.cs: First part of my scrollbar fixups. This removes
10117         all the unneeded refreshes and uses invalidates with properly
10118         computed rects.
10119
10120 2005-02-03  Peter Bartok  <pbartok@novell.com>
10121
10122         * ComponentModel.cs: Added
10123         * IDataGridEditingService.cs: Added
10124         * Timer.cs: Added missing attributes
10125         * ToolTip.cs: Added missing attributes
10126
10127 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
10128
10129         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
10130
10131 2005-02-03  Peter Bartok  <pbartok@novell.com>
10132
10133         * ListBox.cs: Added missing attributes
10134
10135 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
10136         
10137         * ListBox.cs:
10138                 - Fixes font height after font change
10139                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
10140                 
10141 2005-02-02  Peter Bartok  <pbartok@novell.com>
10142
10143         * HandleData.cs: Introduced static methods to allow class
10144           to be more self-contained and track it's own HandleData objects
10145         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
10146           HandleData to use new static methods
10147
10148 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
10149
10150         * Combobox.cs:
10151                 - Fixes default size and PreferredHeight
10152                 - Missing events
10153                 - ObjectCollection.Insert implementation
10154                 
10155         * ListControl.cs
10156                 - Fixes signature
10157         * ListBox.cs:
10158                 - Several fixes
10159                 - ObjectCollection.Insert implementation
10160                 - No selection after clean
10161                 - Small fixes
10162
10163 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10164
10165         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
10166
10167 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
10168
10169         * Combobox.cs:
10170                 - Caches ItemHeight calculation for OwnerDrawVariable
10171                 - Handles dropdown properly
10172                 - Fixes several minor bugs
10173
10174 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10175
10176         * ListBox.cs:
10177                 - Fixes 71946 and 71950
10178                 - Fixes changing Multicolumn on the fly
10179                 - Fixes keyboard navigation on Multicolumn listboxes
10180
10181 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10182         
10183         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
10184         crash reporter log.
10185
10186 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10187
10188         * XplatUIOSX.cs: Allow applications to actually exit.
10189
10190 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10191
10192         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
10193         their parent at creation time rather than lazily later.  Fixes a major
10194         regression we were experiencing.
10195
10196 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10197
10198         * ThemeWin32Classic.cs: more date time picker painting fixes
10199         * DateTimePicker.cs: more monthcalendar drop down fixes
10200         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
10201
10202 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10203
10204         * ScrollBar.cs:
10205                 - When moving the thumb going outside the control should stop the moving
10206                 - Adds the firing of missing events
10207                 - Fixes no button show if Size is not specified
10208                 - End / Home keys for keyboard navigation
10209
10210 2005-01-30  Peter Bartok  <pbartok@novell.com>
10211
10212         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
10213           sanity check to prevent theoretical loop
10214         * XplatUIWin32.cs (SetVisible): Removed debug output
10215         * XplatUIX11.cs (SystrayChange): Added sanity check
10216         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
10217         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
10218           behaviour, valid until the X11 client window rewrite is done
10219         * TextBox.cs (ctor): Setting proper default foreground and background
10220           colors
10221
10222 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
10223
10224         * Theme: Added DrawDateTimePicker to interface
10225         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
10226         * DateTimePicker.cs: Created (still needs keys and painting code)
10227         * DateTimePickerFormat.cs: added
10228         * MonthCalendar.cs: fixed CreateParams for popup window mode
10229           
10230 2005-01-29  Peter Bartok  <pbartok@novell.com>
10231
10232         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10233           this should also the calculations for ligher/darker
10234         * Theme.cs: Fixed defaults for ScrollBar widths/heights
10235
10236 2005-01-29  Peter Bartok  <pbartok@novell.com>
10237
10238         * ArrangeDirection.cs: Added
10239         * ArrangeStartingPositon.cs: Added
10240         * SystemInformation.cs: Implemented
10241         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10242           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10243           used by SystemInformation class
10244         * X11Strucs.cs: Added XSizeHints structure
10245         * MenuAPI.cs:
10246           - Fixed CreateParams to make sure the menu window is always visible
10247           - TrackPopupMenu: Added check to make sure we don't draw the
10248             menu offscreen
10249
10250 2005-01-29  Peter Bartok  <pbartok@novell.com>
10251
10252         * HandleData.cs: Added method for altering invalid area
10253         * TextBoxBase.cs: Implemented TextLength
10254
10255 2005-01-28  Peter Bartok  <pbartok@novell.com>
10256
10257         * XplatUIX11.cs: Improvement over last patch, not sending
10258           the WM_PAINT directly anymore, instead we scroll any pending
10259           exposed areas and let the system pick out the WM_PAINT later
10260
10261 2005-01-28  Peter Bartok  <pbartok@novell.com>
10262
10263         * SWF.csproj: Deleted, no longer used. Instead,
10264           Managed.Windows.Forms/SWF.csproj should be used
10265         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10266           directly, to avoid a potential race condition with the next
10267           scroll
10268
10269 2005-01-28  Peter Bartok  <pbartok@novell.com>
10270
10271         * XplatUI.cs: Made class internal
10272
10273 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
10274
10275         * CheckedListBox.cs:
10276                 - Draw focus
10277                 - Fixed Drawing
10278                 - Missing methods and events
10279
10280 2005-01-27  Peter Bartok  <pbartok@novell.com>
10281
10282         * Application.cs (Run): Don't use form if we don't have one
10283
10284 2005-01-27  Peter Bartok  <pbartok@novell.com>
10285
10286         * TextBoxBase.cs (get_Lines): Fixed index off by one error
10287
10288 2005-01-27  Peter Bartok  <pbartok@novell.com>
10289
10290         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10291         * GridItem.cs: Added; Patch by Jonathan S. Chambers
10292         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10293         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10294         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10295         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10296         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10297         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10298         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10299         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10300         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10301         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10302
10303 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10304
10305         * Combobox.cs:
10306                 - Draw focus on Simple Combobox
10307                 - Fixes drawing issues
10308                 - fixes 71834
10309
10310 2005-01-27  Peter Bartok  <pbartok@novell.com>
10311
10312         * Form.cs:
10313           - Place window in default location, instead of hardcoded 0/0
10314           - Send initial LocationChanged event
10315         * Control.cs:
10316           - UpdateBounds after creation to find out where the WM placed us
10317           - Make sure that if the ParentForm changes location the Form
10318             is notified
10319         * XplatUIX11.cs: XGetGeometry will not return the coords relative
10320             to the root, but to whatever the WM placed around us.
10321             Translate to root coordinates before returning toplevel
10322             coordinates
10323         * XplatUIWin32.cs: Removed debug output
10324         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10325           flag to GetWindowPos, to allow translation of coordinates on X11
10326
10327 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10328
10329         * ListBox.cs: connect LostFocus Event
10330
10331 2005-01-27  Peter Bartok  <pbartok@novell.com>
10332
10333         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10334           XplatUIX11.cs: Extended the Systray API
10335         * Form.cs: Removed debug output
10336         * Application.cs: Fixed focus assignment, always need to call
10337           XplatUI.Activate() since Form.Activate() has rules that may
10338           prevent activation
10339         * NotifyIcon.cs: Should be complete now
10340         * ToolTip.cs: Worked around possible timer bug
10341
10342 2005-01-27  Jackson Harper  <jackson@ximian.com>
10343
10344         * TabControl.cs:
10345         - Only invalidate the effected tabs when the
10346         selected index changes. This reduces drawing and gets rid of some
10347         flicker.
10348         - Only refresh if the tabs need to be shifted, otherwise only
10349         invalidate the slider button.
10350         - On windows the tabs are not filled to right if the slider is
10351         visible.
10352         
10353 2005-01-27  Jackson Harper  <jackson@ximian.com>
10354
10355         * TabControl.cs: Only refresh on mouseup if we are showing the
10356         slider. Also only invalidate the button whose state has changed.
10357
10358 2005-01-26  Peter Bartok  <pbartok@novell.com>
10359
10360         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10361         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10362           and SystrayRemove() methods
10363         * XplatUIOSX.cs: Stubbed Systray methods
10364         * XplatUIX11.cs:
10365           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10366             methods
10367           - Fixed broken XChangeProperty calls (marshalling messed up things)
10368         * X11Structs.cs: Added enums and structs required for Size hinting
10369         * NotifyIcon.cs: Added & implemented
10370
10371 2005-01-26  Jackson Harper  <jackson@ximian.com>
10372
10373         * TabControl.cs: Space vertically layed out tabs properly.
10374
10375 2005-01-26  Peter Bartok  <pbartok@novell.com>
10376
10377         * Form.cs (CreateClientParams): Always set the location to 0,0
10378           since we're a child window.
10379
10380         * Control.cs (SetVisibleCore): Always explicitly setting the location
10381           of a toplevel window, apparently X11 doesn't like to move windows
10382           while they're not mapped.
10383
10384 2005-01-26  Jackson Harper  <jackson@ximian.com>
10385
10386         * TabControl.cs: Implement FillToRight size mode with vertically
10387         rendered tabs.
10388
10389 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10390
10391         * ControlPaint.cs, ThemeWin32Classic.cs
10392                 - Fixes DrawFocusRectangle
10393
10394 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10395
10396         * MenuAPI.cs:
10397                 - MenuBar tracking only starts when item is first clicked
10398                 - Fixes menu hidding for multiple subitems
10399                 - Unselect item in MenuBar when item Executed
10400                 - Fixes bug 71495
10401
10402 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10403
10404         * ListControl.cs:
10405                 - IsInputKey for ListBox
10406         * ListBox.cs:
10407                 - Focus item
10408                 - Shift and Control item selection
10409                 - Implement SelectionMode.MultiExtended
10410                 - Fixes RightToLeft
10411         * ComboBox.cs:
10412                 - IsInputKey implemented
10413                 - Do not generate OnTextChangedEdit on internal txt changes
10414                 
10415 2005-01-23  Peter Bartok  <pbartok@novell.com>
10416
10417         * AccessibleObject.cs: Partially implemented Select()
10418         * MonthCalendar.cs: Added missing attributes and events
10419         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10420           form can properly override CreateParams.
10421         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10422           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10423           Control performs Invalidate & Update
10424         * NativeWindow (CreateHandle): Added special handling for Form
10425           and Form.FormParent classes to allow overriding of From.CreateParams
10426         * Control.cs:
10427           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10428             name 'owner'
10429           - ControlNativeWindow: Added Owner property
10430           - Removed usage of Refresh() on property changes, changed into
10431             Invalidate(), we need to wait until the queue is processed for
10432             updates, direct calls might cause problems if not all vars for
10433             Paint are initialized
10434           - Added call to UpdateStyles() when creating the window, to set any
10435             styles that CreateWindow might have ignored.
10436           - Added support for Form CreateParent overrides to UpdateStyles()
10437         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10438           CreateParams are now properly overridable
10439         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10440           CreateParams are now properly overridable
10441
10442 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10443
10444         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10445         OnTextBoxChanged.
10446
10447         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10448         recursive invocation that I have not figured out yet.
10449
10450         Reset the timer when not using (it was accumulating).
10451
10452
10453         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10454         user has made changes that require validation.
10455
10456         Reset changing to avoid loops.
10457
10458 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10459
10460         * NumericUpDown.cs: Display value at startup.
10461
10462         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10463         ValidateEditText.
10464
10465         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10466         filled in.  Added some basic parsing of text.
10467
10468         Still missing the OnXXX method overrides, and figuring out the
10469         events that must be emitted.
10470
10471         * UpDownBase.cs: Handle UserEdit on the Text property.
10472         
10473 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10474
10475         * ComboBox.cs:
10476           - Fixes IntegralHeight
10477           - ToString method
10478
10479 2005-01-21  Jackson Harper  <jackson@ximian.com>
10480
10481         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10482         is set so that the page visibility is updated and the tabs are
10483         sized correctly.
10484
10485 2005-01-21  Jackson Harper  <jackson@ximian.com>
10486
10487         * TabControl.cs: Use cliping rectangle for blitting. Give the
10488         theme the clipping rect so we can do clipping while
10489         drawing. Remove some debug code.
10490
10491 2005-01-21  Jackson Harper  <jackson@ximian.com>
10492
10493         * TabPage.cs: Add a new method so tab pages can force the tab
10494         control to recalculate the tab page sizes.
10495         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10496         sizes.
10497
10498 2005-01-20  Jackson Harper  <jackson@ximian.com>
10499
10500         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10501
10502 2005-01-20  Jackson Harper  <jackson@ximian.com>
10503
10504         * TreeView.cs: Set the bounds for nodes properly. They were
10505         getting screwed up when checkboxes were not enabled, but images
10506         were.
10507
10508 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10509
10510         * ListBox.cs:
10511                 - Owner draw support
10512                 - Fixes
10513                 
10514 2005-01-20  Jackson Harper  <jackson@ximian.com>
10515
10516         * XplatUIStructs.cs: More misc keys
10517         * X11Keyboard.cs: Ignore some control keys.
10518
10519 2005-01-20  Jackson Harper  <jackson@ximian.com>
10520
10521         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10522         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10523
10524 2005-01-19  Peter Bartok  <pbartok@novell.com>
10525
10526         * Control.cs: Un-selecting the control when it is loosing focus
10527
10528 2005-01-19  Jackson Harper  <jackson@ximian.com>
10529
10530         * TreeView.cs: Hook up to the text controls leave event so we can
10531         end editing when the users clicks outside the text box.
10532         
10533 2005-01-19  Jackson Harper  <jackson@ximian.com>
10534
10535         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10536         get set in the conversion array.
10537
10538 2005-01-19  Peter Bartok  <pbartok@novell.com>
10539
10540         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10541           focus is properly set
10542         * Button.cs:
10543           - Added missing attributes
10544           - removed styles, those are already set in the base class
10545         * ButtonBase.cs:
10546           - Added missing attributes
10547           - Added clip window styles
10548         * CheckBox.cs: Added missing attributes
10549         * CommonDialog.cs:
10550           - FormParentWindow.CreateParams: Added required clip styles
10551         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10552           also filters modifier keys
10553         * MessageBox.cs:
10554           - Added assignment of Accept and Cancel button to enable Enter
10555             and Esc keys in MessageBox dialogs
10556           - FormParentWindow.CreateParams: Added required clip styles
10557         * RadioButton.cs: Added missing attributes
10558         * TextControl.cs: No longer draws selection if control does not
10559           have focus
10560         * TextBoxBase.cs:
10561           - Now draws simple rectangle around test area to make it obvious
10562             there's a control. This is a hack until we properly support borders
10563           - A few simple fixes to support selections better, now erases selected
10564             text when typing, and resets selection when using movement keys
10565
10566 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10567
10568         * UpDownBase.cs: Added some new properties.
10569
10570         * DomainUpDown.cs: Implement a lot to get my test working.
10571
10572 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10573
10574         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10575
10576 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10577
10578         * OSXStructs (WindowAttributes): Fixed csc complaints
10579
10580 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10581
10582         * XplayUIOSX.cs:
10583           OSXStructs.cs: Initial refactor to move enums and consts into
10584           OSXStructs and use them in the driver for greater readability.
10585
10586 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10587
10588         * XplatUIOSX.cs: Initial support for Standard Cursors.
10589         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10590
10591 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10592
10593         * ComboBox.cs: ability to change style when the ctrl is already
10594         created, missing methods and events, bug fixes, signature fixes
10595
10596 2005-01-19  Peter Bartok  <pbartok@novell.com>
10597
10598         * Cursors.cs (ctor): Added ctor to fix signature
10599
10600 2005-01-18  Peter Bartok  <pbartok@novell.com>
10601
10602         * Button.cs: Implemented DoubleClick event
10603         * ButtonBase.cs:
10604           - Fixed keyboard handling to behave like MS, where the press of
10605             Spacebar is equivalent to a mousedown, and the key release is
10606             equivalent to mouseup. Now a spacebar push will give the same
10607             visual feedback like a mouse click.
10608           - Added missing attributes
10609           - Added ImeModeChanged event
10610           - Added support for generating DoubleClick event for derived classes
10611         * CheckBox.cs:
10612           - Implemented DoubleClick event
10613           - Added missing attributes
10614         * CommonDialog.cs: Added missing attribute
10615         * ContextMenu.cs: Added missing attributes
10616         * RadioButton.cs:
10617           - AutoChecked buttons do not allow to be unselected when clicked
10618             (otherwise we might end up with no selected buttons in a group)
10619           - Added missing attributes
10620           - Implemented DoubleClickEvent
10621         * ThreadExceptionDialog.cs: Enabled TextBox code
10622
10623 2005-01-18  Peter Bartok  <pbartok@novell.com>
10624
10625         * Form.cs: Removed debug output
10626         * Button.cs: Added support for DoubleClick method
10627
10628 2005-01-18  Peter Bartok  <pbartok@novell.com>
10629
10630         * Form.cs:
10631           - Added method to parent window that allows triggering size
10632             calculations when a menu is added/removed
10633           - set_Menu: Cleaned up mess from early days of Form and Control,
10634             now properly triggers a recalc when a menu is added/removed
10635           - Added case to select form itself as focused form if no child
10636             controls exist
10637           - Added PerformLayout call when showing dialog, to ensure properly
10638             placed controls
10639         * Control.cs:
10640           - Select(): Made internal so Form can access it
10641           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10642             status
10643         * Application.cs (Run): Removed hack and calls PerformLayout instead
10644           to trigger calculation when Form becomes visible
10645
10646 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10647
10648         * ComboBox.cs: fixes for ownerdraw
10649
10650 2005-01-18  Peter Bartok  <pbartok@novell.com>
10651
10652         * TextControl.cs:
10653           - Sentinel is no longer static, each Document gets it's own, this
10654             avoids locking or alternatively overwrite problems when more
10655             than one text control is used simultaneously.
10656           - Switched to use Hilight and HilightText brushes for text selection
10657
10658         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10659
10660 2005-01-18  Peter Bartok  <pbartok@novell.com>
10661
10662         * Control.cs:
10663           - Hooked up the following events:
10664                 o ControlAdded
10665                 o ControlRemoved
10666                 o HandleDestroyed
10667                 o ImeModeChanged
10668                 o ParentChanged
10669                 o TabStopChanged
10670                 o Invalidated
10671                 o SystemColorsChanged
10672                 o ParentFontChanged
10673                 o Move
10674           - Removed debug output
10675           - Added a call to the current theme's ResetDefaults when a color change
10676             is detected
10677         * Form.cs: Now setting the proper ImeMode
10678         * Theme.cs: Defined a method to force recreation of cached resources
10679           and rereading of system defaults (ResetDefaults())
10680         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10681
10682 2005-01-17  Peter Bartok  <pbartok@novell.com>
10683
10684         * Control.cs: Added missing attributes
10685
10686 2005-01-17  Jackson Harper  <jackson@ximian.com>
10687
10688         * TreeNode.cs: Implement editing. Add missing properties selected
10689         and visible.
10690         * TreeView.cs: Implement node editing. Also some fixes to use
10691         Invalidate (invalid area) instead of Refresh when selecting.
10692
10693 2005-01-17  Peter Bartok  <pbartok@novell.com>
10694
10695         * Control.cs:
10696           - Implemented InvokeGotFocus() method
10697           - Implemented InvokeLostFocus() method
10698           - Implemented InvokePaint() method
10699           - Implemented InvokePaintBackground() method
10700           - Implemented InvokeClick() method
10701           - Implemented FindForm() method
10702           - Implemented RectangleToClient() method
10703           - Implemented ClientToRectangle() method
10704           - Implemented ResetBackColor() method
10705           - Implemented ResetCursor() method
10706           - Implemented ResetFont() method
10707           - Implemented ResteForeColor() method
10708           - Implemented ResetImeMode() method
10709           - Implemented ResetLeftToRight() method
10710           - Implemented ResetText() method
10711           - Implemented Scale() methods
10712           - Implemented ScaleCore() method
10713           - Implemented Update() method
10714           - Removed unused variables
10715           - Stubbed AccessibilityNotifyClients and
10716             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10717             with those yet)
10718           - Now setting proper default for RightToLeft property
10719           - Fixed bug in SetClientSizeCore that would cause windows to get
10720             really big
10721           - Now sending Click/DoubleClick events
10722           - Now selecting controls when left mouse button is clicked on
10723             selectable control
10724         * AccessibleEvents.cs: Added
10725         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10726         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10727         * XplatUIWin32.cs: Implemented UpdateWindow() method
10728         * XplatUIX11.cs: Implemented UpdateWindow() method
10729         * Form.cs: Removed stray semicolon causing CS0162 warning
10730         * ThemeWin32Classic.cs: Fixed unused variable warnings
10731         * ScrollableControl.cs: Now calls base method for ScaleCore
10732         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10733           style to avoid interference with internal click handler (which is
10734           different than standard Control click handling)
10735         * RadioButton.cs:
10736           - Now unchecks all sibling radio buttons when control is
10737             selected (Fixes #68756)
10738           - Removed internal tabstop variable, using the one inherited from
10739             Control
10740
10741 2005-01-17  Jackson Harper  <jackson@ximian.com>
10742
10743         * NavigateEventArgs.cs: Fix base type.
10744         * LinkLabel.cs: Sig fix
10745         
10746 2005-01-17  Jackson Harper  <jackson@ximian.com>
10747
10748         * TreeView.cs: Only invalidate the effected nodes bounds when
10749         selecting nodes.
10750
10751 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10752
10753         * XplatUIWin32.cs: fixes Win32 marshaling
10754         * XplatUIX11.cs: fixes method signature
10755
10756 2005-01-17  Peter Bartok  <pbartok@novell.com>
10757
10758         * XplatUIX11.cs: Clean up resources when we no longer need them
10759
10760 2005-01-17  Peter Bartok  <pbartok@novell.com>
10761
10762         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10763           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10764           and DestroyCursor() methods.
10765         * Cursor.cs: Partially implemented, now supports standard cursors;
10766           still contains some debug code
10767         * Cursors.cs: Implemented class
10768         * Control.cs:
10769           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10770             appropriate cursor
10771           - Implemented Cursor property
10772           - Replaced break; with return; more straightforwar and possibly
10773             faster
10774           - Now properly setting the result for WM_HELP
10775         * X11Structs.cs: Added CursorFontShape enum
10776         * XplatUIStructs.cs:
10777           - Added StdCursor enum (to support DefineStdCursor() method)
10778           - Added HitTest enum (to support sending WM_SETCURSOR message)
10779         * XplatUIX11.cs:
10780           - Now sends the WM_SETCURSOR message
10781           - Implemented new cursor methods
10782         * XplatUIOSX.cs: Stubbed new cursor methods
10783         * XplatUIWin32.cs:
10784           - Implemented new cursor methods
10785           - Added GetSystemMetrics function and associated enumeration
10786
10787 2005-01-15  Peter Bartok  <pbartok@novell.com>
10788
10789         * Control.cs:
10790           - WndProc(): Now handles EnableNotifyMessage
10791           - SelectNextControl(): Fixed bug where if no child or sibling
10792             controls exist we looped endlessly
10793
10794 2005-01-14  Jackson Harper  <jackson@ximian.com>
10795
10796         * TreeView.cs: Recalculate the tab pages when a new one is added
10797         so that the proper bounding rects are created.
10798
10799 2005-01-14  Jackson Harper  <jackson@ximian.com>
10800
10801         * TreeView.cs: Draw a gray box instead of a grip in the lower
10802         right hand corner when there are both horizontal and vertical
10803         scroll bars.
10804
10805 2005-01-14  Jackson Harper  <jackson@ximian.com>
10806
10807         * Control.cs: When erasing backgrounds use FromHwnd instead of
10808         FromHdc when there is a NULL wparam. This occurs on the X driver.
10809         * XplatUIX11.cs: Set the wparam to NULL.
10810
10811 2005-01-13  Jackson Harper  <jackson@ximian.com>
10812
10813         * PictureBox.cs: Implement missing methods (except ToString, need
10814         to test that on windows) and events. When visibility is changed we
10815         need to redraw the image because the buffers are killed. When size
10816         is changed refresh if the sizemode needs it.
10817
10818 2005-01-13  Peter Bartok  <pbartok@novell.com>
10819
10820         * Control.cs (SelectNextControl): Was using wrong method to select
10821           a control
10822
10823 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10824
10825         * ComboBox.cs: fixes dropstyle
10826
10827 2005-01-13  Peter Bartok  <pbartok@novell.com>
10828
10829         * Form.cs:
10830           - Implemented Select() override
10831           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10832           - Now sets keyboard focus on startup
10833         * Control.cs (SelectNextControl): Now properly handles directed=true
10834         * TextBoxBase.cs:
10835           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10836           - Added (really bad) focus rectangle (mostly for testing)
10837         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10838           to enforce redraw on focus changes
10839         * ContainerControl.cs:
10840           - Fixed detection of Shift-Tab key presses
10841           - Fixed traversal with arrow keys
10842         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10843           gonna keep this or if it's complete yet
10844         
10845 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10846
10847         * ComboBox.cs: missing properties, fixes
10848
10849 2005-01-13  Peter Bartok  <pbartok@novell.com>
10850
10851         * Panel.cs (ctor): Setting Selectable window style to off
10852         * Splitter.cs (ctor): Setting Selectable window style to off
10853         * GroupBox.cs (ctor): Setting Selectable window style to off
10854         * Label.cs (ctor): Setting Selectable window style to off
10855
10856 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10857
10858         * UpDownBase.cs (InitTimer): If the timer has been already
10859         created, enable it.
10860
10861         Use a TextBox instead of a Label.
10862
10863 2005-01-12  Jackson Harper  <jackson@ximian.com>
10864
10865         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10866         draw the connecting node lines (when ShowLines is true).
10867         * TreeNode.cs: The nodes index can now be updated. This is used
10868         when a node collection is sorted.
10869         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10870         insert or an existing unsorted node collection can be sorted.
10871         
10872 2005-01-12  Peter Bartok  <pbartok@novell.com>
10873
10874         * ContainerControl.cs: Implemented ProcessDialogKeys()
10875
10876 2005-01-12  Peter Bartok  <pbartok@novell.com>
10877
10878         * Control.cs:
10879           - Implemented SelectNextControl() method
10880           - Several focus related bug fixes
10881           - Fixed Docking calculations to match MS documentation and
10882             behaviour
10883
10884 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10885
10886         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10887         bug fixes
10888
10889 2005-01-12  Peter Bartok  <pbartok@novell.com>
10890
10891         * Control.cs:
10892           - Fixed broken Contains() method
10893           - Implemented GetNextControl() method. Finally. This is the pre-
10894             requisite for focus handling.
10895
10896 2005-01-12  Peter Bartok  <pbartok@novell.com>
10897
10898         * OSXStrucs.cs: Added
10899
10900 2005-01-12  Peter Bartok  <pbartok@novell.com>
10901
10902         * XplatUIWin32.cs:
10903           - Removed PeekMessageFlags
10904           - Implemented SetWindowStyle() method
10905         * XplatUIStructs.cs: Added PeekMessageFlags
10906         * X11Structs: Added missing border_width field to XWindowChanges struct
10907         * XplatUIX11.cs:
10908           - PeekMessage: Now throws exception if flags which are not yet
10909             supported are passed
10910           - Implemented SetWindowStyle() method
10911           - Fixed SetZOrder to handle AfterHwnd properly
10912         * XplatUI.cs: Added SetWindowStyle() method
10913         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10914         * Control.cs:
10915           - Implemented UpdateStyles() method
10916           - Implemented UpdateZOrder() method
10917         * XplatUIOSX.cs: Added SetWindowStyle() stub
10918
10919 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10920
10921         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10922         button mouse).
10923
10924
10925 2005-01-11  Jackson Harper  <jackson@ximian.com>
10926
10927         * TreeView.cs: Still need to draw lines to siblings even if out of
10928         the current node is out of the clip.
10929
10930 2005-01-11  Jackson Harper  <jackson@ximian.com>
10931
10932         * TreeView.cs: When setting the hbar/vbar/grip position use
10933         SetBounds so that perform layout is only called once. Also suspend
10934         and resume layout so layout is only done once for all controls.
10935         - Removed some debug fluff
10936         * SizeGrip.cs: Call base implmentation in overriding methods.
10937         - When visibility is changed the drawing buffers are killed so we
10938         need to redraw.
10939
10940 2005-01-11  Jackson Harper  <jackson@ximian.com>
10941
10942         * TreeView.cs: Calculate the open node count while drawing. This
10943         saves us an entire tree traversal for every paint operation. Use
10944         a member var for the open node count so less vars are passed around.
10945
10946 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10947
10948         * MonthCalendar.cs:
10949         - fixed selection to use mousemove, not mouse polling on timer
10950         * ThemeWin32Classic.cs
10951         - removed redundant unused variable "no_more_content"
10952         
10953 2005-01-11  Peter Bartok  <pbartok@novell.com>
10954
10955         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10956           are pending, so it now calls PeekMessage instead of GetMessage;
10957           implemented a incomplete version of PeekMessage
10958         
10959 2005-01-11  Peter Bartok  <pbartok@novell.com>
10960
10961         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10962           I18n issues
10963         * TextBoxBase.cs: Added sending of TextChanged event
10964
10965 2005-01-10  Jackson Harper  <jackson@ximian.com>
10966
10967         * TreeView.cs: Try not to draw outside the clipping rectangle on
10968         each node element.
10969
10970 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10971
10972         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10973
10974 2005-01-10  Jackson Harper  <jackson@ximian.com>
10975
10976         * TreeView.cs:
10977         - Implement fast scrolling. Now only the newly
10978         exposed nodes are drawn and the old image is moved using the
10979         XplatUI::ScrollWindow method.
10980         - Factor in height of nodes when calculating whether or not the
10981         node is in the clipping rect.
10982
10983 2005-01-10  Jackson Harper  <jackson@ximian.com>
10984
10985         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10986
10987 2005-01-10  Peter Bartok  <pbartok@novell.com>
10988
10989         * Application.cs: Added temporary hack to resolve all our resize
10990           required issues on startup. This will get fixed properly at
10991           some point in the future
10992
10993 2005-01-10  Jackson Harper  <jackson@ximian.com>
10994
10995         * SizeGrip.cs: New internal class that is used as a sizing
10996         grip control...hence the name.
10997
10998 2005-01-10  Peter Bartok  <pbartok@novell.com>
10999
11000         * Control.cs: Implemented proper TabIndex handling, now assigning
11001           a tabindex when a control is added to a container
11002         * GroupBox.cs (ctor): Now sets the Container style bit, required
11003           for Control.GetNextControl()
11004
11005 2005-01-09  Jackson Harper  <jackson@ximian.com>
11006
11007         * TextBoxBase.cs: Clear window when scrolling (fixes build).
11008
11009 2005-01-09  Peter Bartok <pbartok@novell.com>
11010
11011         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11012           XplatUIX11.cs: Added ability to control ScrollWindow expose and
11013           an overload for ScrollWindow to allow only scrolling a rectangle
11014
11015 2005-01-09  Peter Bartok <pbartok@novell.com>
11016
11017         * Form.cs:
11018           - Implemented SetDesktopBounds method
11019           - Implemented SetDesktopLocation method
11020
11021 2005-01-08  Jackson Harper  <jackson@ximian.com>
11022
11023         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
11024         the node count has changed, this removes to VScroll::Refresh calls
11025         when drawing.
11026
11027 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
11028
11029         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
11030
11031 2005-01-07  Jackson Harper  <jackson@ximian.com>
11032
11033         * TreeNode.cs: Just update the single node when it is
11034         checked. Don't refresh after toggling, the Expand/Collapse already
11035         handles this.
11036         * TreeView.cs: Respect clipping a little more when drawing. Try
11037         not to redraw things that don't need to be redrawn. Just hide the
11038         scrollbars when they are no longer needed instead of removing
11039         them, so they don't have to be created again and again.
11040         
11041 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
11042
11043         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
11044         coordinates to window space to place the caret properly, FIXED.
11045         Implement GetWindowState & SetWindowState
11046
11047 2005-01-06  Peter Bartok <pbartok@novell.com>
11048
11049         * Form.cs:
11050           - Implemented ClientSize property
11051           - Implemented DesktopBounds property
11052           - Implemented DesktopLocation property
11053           - Implemented IsRestrictedWindow property
11054           - Implemented Size property
11055           - Implemented TopLevel property
11056           - Implemented FormWindowState property
11057         * Control.cs:
11058           - Implemented GetTopLevel() method
11059           - Implemented SetTopLevel() method
11060         * X11Structs.cs (Atom):
11061           - Added AnyPropertyType definition
11062           - Added MapState definiton and updated XWindowAttribute struct
11063         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
11064         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
11065         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
11066         * XplatUIWin32.cs:
11067           - Implemented GetWindowState() and SetWindowState() methods
11068           - Fixed Win32GetWindowLong return type
11069         * XplatUIX11.cs:
11070           - Introduced central function for sending NET_WM messages
11071           - Implemented GetWindowState() and SetWindowState() methods
11072         * TextBoxBase.cs (set_Lines):
11073           - Now uses Foreground color for text added via Text property (Duh!)
11074           - Added code to remember programmatically requested size (fixes
11075             behaviour when Multiline is set after Size)
11076           - Added AutoSize logic
11077
11078 2005-01-06  Jackson Harper  <jackson@ximian.com>
11079
11080         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
11081
11082 2005-01-06  Jackson Harper  <jackson@ximian.com>
11083
11084         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
11085         set to less then 0.
11086
11087 2005-01-06  Jackson Harper  <jackson@ximian.com>
11088
11089         * ScrollableControl.cs: Lazy init the scrollbars.
11090         
11091 2005-01-06  Jackson Harper  <jackson@ximian.com>
11092
11093         * Theme.cs: Speed up getting pens and solid brushes, by using
11094         their ARGB as a hash instead of tostring and not calling Contains.
11095
11096 2005-01-06  Peter Bartok <pbartok@novell.com>
11097
11098         * Form.cs:
11099           - Implemented OnActivated and OnDeactivate event trigger
11100           - Implemented Activate() method
11101           - Fixed ShowDialog() to activate the form that was active before
11102             the dialog was shown
11103         * XplatUIX11.cs:
11104           - Added global active_window var that tracks the currently active
11105             X11 window
11106           - Now always grabs Property changes from the root window to always
11107             catch changes on the active window property
11108           - Added code to PropertyNotify handler to send Active/Inactive
11109             messages when state changes. This puts X11 and Win32 en par on
11110             WM_ACTIVATE notifications (except for double notifications when
11111             the user clicks away from our modal window to another one of our
11112             windows)
11113
11114 2005-01-05  Jackson Harper  <jackson@ximian.com>
11115
11116         * ImageList.cs: Implment ctor
11117
11118 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11119
11120         * XplatUIOSX.cs: Implement Activate/SetTopmost
11121
11122 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11123
11124         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
11125
11126 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11127
11128         * XplatUIOSX.cs: Implement GetActive/SetFocus.
11129
11130 2005-01-05  Peter Bartok <pbartok@novell.com>
11131
11132         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
11133           XplatUIOSX.cs: Added GetActive method to return the currently
11134           active window for the application (or null, if none is active)
11135         * Form.cs:
11136           - Implemented ActiveForm
11137           - Commented out owner assignment for modal dialogs (causes problems
11138             on Win32, since the owner will be disabled)
11139           - Reworked some Active/Focus handling (still incomplete)
11140         * CommonDialog.cs: Commented out owner assignment for modal dialogs
11141           (causes problems on Win32, since the owner will be disabled)
11142         * IWin32Window: Added ComVisible attribute
11143
11144 2005-01-05  Peter Bartok <pbartok@novell.com>
11145
11146         * ToolTip.cs (WndProc): Enable setting focus now that we have the
11147           required XplatUI functions.
11148
11149 2005-01-05  Peter Bartok <pbartok@novell.com>
11150
11151         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
11152           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
11153           to implement focus and activation handling; still incomplete and
11154           with debug output
11155
11156 2005-01-04  Peter Bartok <pbartok@novell.com>
11157
11158         * TextBoxBase.cs: Changed access level for Document property to
11159           match switch to internal for TextControl
11160
11161 2005-01-04  Peter Bartok <pbartok@novell.com>
11162
11163         * AccessibleObject: Added ComVisible attribute
11164
11165 2005-01-04  Jackson Harper  <jackson@ximian.com>
11166
11167         * X11Keyboard.cs: Remove unneeded var.
11168
11169 2005-01-04  Jackson Harper  <jackson@ximian.com>
11170
11171         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
11172         but PAINT.
11173         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
11174         ClientMessage. This makes apps exit cleanly (more often).
11175         
11176 2005-01-04  Jackson Harper  <jackson@ximian.com>
11177
11178         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
11179         handling focus, return correct colors and fonts,
11180         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
11181         handle selection, horizontal scrolling, and mouse interaction.
11182
11183 2005-01-04  Peter Bartok <pbartok@novell.com>
11184
11185         * ICommandExecutor.cs: Added
11186         * IDataGridColumnStyleEditingNotificationService.cs: Added
11187         * IFeatureSupport.cs: Added
11188         * IFileReaderService.cs: Added
11189         * IDataObject.cs: Added ComVisible attribute
11190         * AmbientProperties.cs: Added
11191         * BaseCollection.cs: Added missing attributes
11192         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
11193         * BaseCollection.cs: Added missing attributes
11194         * Binding.cs: Added TypeConverter attribute
11195         * BindingContext.cs: Added DefaultEvent attribute
11196         * BindingsCollection.cs: Added DefaultEvent attribute
11197         * Button.cs: Added DefaultValue attribute
11198         * DragEventArgs.cs: Added ComVisible attribute
11199         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
11200         * KeyEventArgs.cs: Added ComVisible attribute
11201         * KeyPressEventArgs.cs: Added ComVisible attribute
11202         * MouseEventArgs.cs: Added ComVisible attribute
11203         * NavigateEventArgs.cs: Added
11204         * NavigateEventHandler.cs: Added
11205         * FeatureSupport.cs: Added
11206         * OSFeature.cs: Added
11207         * Theme.cs: Added abstract Version property to support OSFeature
11208         * ThemeWin32Classic.cs: Added Version property to
11209           support OSFeature.Themes
11210         * ProgressBar.cs: Removed OnPaintBackground override, not required since
11211           the proper styles to avoid background drawing are set, also doesn't
11212           match MS signature
11213         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
11214         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
11215         * ScrollEventArgs.cs: Added ComVisible attribute
11216         * SplitterEventArgs.cs: Added ComVisible attribute
11217         * AccessibleSelection.cs: Added Flags attribute
11218         * Appearance.cs: Added ComVisible attribute
11219         * Border3DSide.cs: Added ComVisible attribute
11220         * Border3DStyle.cs: Added ComVisible attribute
11221         * BorderStyle.cs: Added ComVisible attribute
11222         * DragAction.cs: Added ComVisible attribute
11223         * ErrorBlinkStyle.cs: Added
11224         * ScrollEventType.cs: Added ComVisible attribute
11225         * AnchorStyles.cs: Added Editor attribute
11226         * DockStyle.cs: Added Editor attribute
11227         * HorizontalAlignment.cs: Added ComVisible attribute
11228         * HelpEventArgs.cs: Added ComVisible attribute
11229         * PaintEventArgs.cs: Added IDisposable
11230
11231 2005-01-04  Peter Bartok <pbartok@novell.com>
11232
11233         * TextControl.cs: Switched Line, LineTag and Document classes to
11234           internal
11235
11236 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11237
11238         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11239         Simple mode, fixes, IntegralHeight, etc.
11240
11241 2005-01-04  Peter Bartok <pbartok@novell.com>
11242
11243         * TextBoxBase.cs: Using proper font variable now
11244
11245 2005-01-04  Peter Bartok <pbartok@novell.com>
11246
11247         * Form.cs (ShowDialog): Set parent to owner, if provided
11248         * GroupBox.cs: Removed unused vars
11249         * TextControl.cs:
11250           - Added GetHashCode() for Document and LineTag classes
11251           - Removed unused variables
11252           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11253             to allow translation between continuous char position and line/pos
11254         * CheckBox.cs: Removed vars that are provided by base class
11255         * RadioButton.cs: Removed vars that are provided by base class, added
11256           new keyword where required
11257         * LinkLabel.cs: Added new keyword where required
11258         * Control.cs (WndProc): Removed unused variable
11259         * TextBoxBase.cs:
11260           - Finished SelectionLength property
11261           - Implemented SelectionStart property
11262           - Implemented Text property
11263           - Removed unused vars
11264         * MessageBox.cs: Added new keyword where required
11265         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11266           WndProc signature
11267         * MenuAPI.cs: Added new keyword where required
11268         * ButtonBase.cs: Removed vars that are provided by base class, added
11269           new keyword where required
11270         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11271           argument to double, to allow compiling with csc 2.0 (Atsushi ran
11272           into this)
11273         * Application.cs (Run): Now triggers the ThreadExit event
11274         * CommonDialog.cs: Added new keyword where required; now properly sets
11275           parent (owner) for dialog
11276         * XplatUIX11.cs: Commented out unused vars
11277         * StatusBar.cs: Fixed signature for Text property
11278         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11279
11280 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11281
11282         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11283         TrackBar.cs, MonthCalendar.cs: remove unused vars
11284
11285 2005-01-03  Jackson Harper  <jackson@ximian.com>
11286
11287         * ThemeWin32Classic.cs:
11288         * X11Keyboard.cs: Remove unused vars.
11289
11290 2005-01-03  Peter Bartok  <pbartok@novell.com>
11291
11292         * TextBox.cs:
11293           - set_Text: Tied into TextControl
11294           - set_TextAlignment: Tied into TextControl
11295         * TextControl.cs:
11296           - Added alignment properties and implemented alignment handling
11297             and drawing (still has a bug, not generating proper expose events)
11298           - Added new Line() constructor to allow passing the line alignment
11299           - Fixed selection setting, properly handling end<start now
11300           - Added aligment considerations to RecalculateDocument()
11301         * TextBoxBase.cs:
11302           - Now properly enforces control height for single line controls
11303           - Added support for CharacterCasing
11304           - Added IsInputKey override
11305           - Fixed Keys.Enter logic
11306           - Added SetBoundsCore override
11307           - Fixed mouse selection handling
11308
11309 2005-01-03  Jackson Harper  <jackson@ximian.com>
11310
11311         * TreeView.cs:
11312           - Collapse and uncheck all nodes when CheckBoxes is disabled.
11313           - Checkboxes are always aligned to the bottom of the node,
11314           regardless of item height.
11315           - Use the node bounds to draw the text so we can center it when
11316           the item height is greater then the font height.
11317           - Node::Bounds are only the text part of the node.
11318         * TreeNode.cs: New method to combine collapsing and unchecking all
11319           nodes recursively.
11320
11321 2005-01-02  Jackson Harper  <jackson@ximian.com>
11322
11323         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11324         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11325         tree when a check is changed. TODO: Only refresh the checked node.
11326
11327 2004-12-30  Jackson Harper  <jackson@ximian.com>
11328
11329         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11330         * TreeNode.cs: When collapsing make sure to never collapse the
11331         root node.
11332
11333 2004-12-29  Jackson Harper  <jackson@ximian.com>
11334
11335         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11336         
11337 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11338
11339         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11340
11341 2004-12-28  Peter Bartok  <pbartok@novell.com>
11342
11343         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11344           not yet assigned
11345
11346 2004-12-28  Peter Bartok  <pbartok@novell.com>
11347
11348         * Control.cs (WndProc): Added WM_HELP handler, now generates
11349           HelpRequested event
11350         * Form.cs: Added HelpButton property and required support code
11351         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11352
11353 2004-12-28  Peter Bartok  <pbartok@novell.com>
11354
11355         * CommonDialog.cs:
11356           - Made DialogForm.owner variable internal
11357           - Added check to ensure owner form is set before setting
11358             owner properties in CreateParams
11359
11360 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11361
11362         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11363           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11364           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11365           system to support borderless/titleless windows (implements menus).
11366           Fix GetWindowPos.  Implement initial background color support for
11367           views.
11368
11369 2004-12-28  Peter Bartok  <pbartok@novell.com>
11370
11371         * Form.cs (get_CreateParams): Make sure we have an owner before using
11372           the owner variable. Implement proper default if no owner exists
11373
11374 2004-12-28  Peter Bartok  <pbartok@novell.com>
11375
11376         * In preparation for making Managed.Windows.Forms the default build target
11377           for System.Windows.Forms, the following stubbed files were added.
11378           Dialogs are currently being implemented by contributors and are only
11379           short-term place holders.
11380         * ColorDialog.cs: Initial check-in (minmal stub)
11381         * DataGrid.cs: Initial check-in (minimal stub)
11382         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11383         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11384         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11385         * FontDialog.cs: Initial check-in (minimal stub)
11386         * FileDialog.cs: Initial check-in (minimal stub)
11387         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11388         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11389         * OpenFileDialog: Initial check-in (minimal stub)
11390         * IComponentEditorPageSite.cs: Initial check-in
11391         * Splitter.cs: Initial check-in (for Jackson)
11392         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11393         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11394         * TextBox.cs: Initial check-in; still needs some wiring to
11395           TextControl backend
11396         * Form.cs: Implemented ControlBox property
11397         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11398         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11399         * TextControl.cs: Added selection functionality; added todo header
11400         * TextBoxBase.cs:
11401           - Implemented Lines property
11402           - Implemented TextHeight property
11403           - Implemented SelectedText property
11404           - Implemented SelectionLength property
11405           - Implemented SelectAll method
11406           - Implemented ToString method
11407           - Removed and cleaned up some debug code
11408           - Implemented (still buggy) mouse text selection
11409
11410 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11411
11412         * ComboBox.cs: Complete DropDownList implementation, fixes.
11413
11414 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11415
11416         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11417         * ComboBoxStyle.cs: ComboBoxStyle enum
11418         * ComboBox.cs: Initial work on ComboBox control
11419
11420 2004-12-21  Peter Bartok  <pbartok@novell.com>
11421
11422         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11423           forward so that anything that creates a window gets the default,
11424           also no longer uses Visible property in CreateParams to avoid
11425           walking up the parent chain and possibly get the wrong visible
11426           status. Fixed IsVisible to no longer walk up to the parent.
11427
11428 2004-12-21  Peter Bartok  <pbartok@novell.com>
11429
11430         * Form.cs (ShowDialog): Unset modality for the proper window
11431  
11432 2004-12-20  Peter Bartok  <pbartok@novell.com>
11433
11434         * CommonDialog.cs: Initial check-in
11435
11436 2004-12-20  Peter Bartok  <pbartok@novell.com>
11437
11438         * Control.cs (Visible): Now uses the parent window instead of the
11439           client area window for the property
11440
11441         * Form.cs
11442           - ShowDialog(): Now uses the proper window for modality
11443           - The default visibility state for the form parent is now false. This
11444             will prevent the user from seeing all the changes to the form and
11445             its controls before the application hits Application.Run()
11446           - Removed some stale commented out code
11447
11448         * NativeWindow.cs:
11449           - Added FindWindow() method to have a method to check for existence
11450             of a window handle
11451           - Added ability to override default exception handling (for example
11452             when debugging with VS.Net; to do this the ExternalExceptionHandler
11453             define must be set
11454           - Removed some useless debug output
11455
11456         * XplatUIX11.cs:
11457           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11458             not working as expected
11459           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11460             property to allow switching back to the modal window if focus is
11461             given to another one of our windows (Application Modal)
11462           - Now only sets override_redirect if we create a window
11463             without WS_CAPTION
11464           - Moved EventMask selection before mapping of newly created window
11465             so we can catch the map event as well
11466           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11467           - Added various Atom related DllImports
11468           - Implemented Exit() method
11469           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11470             in the CreateParams
11471
11472         * MessageBox.cs: Now properly deals with the FormParent window by
11473           providing an override the FormParent CreateParams property to
11474           set as POPUP instead of OVERLAPPED window.
11475
11476 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11477
11478         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11479         Minor code cleanup.
11480
11481 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11482         
11483         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11484
11485 2004-12-18  Peter Bartok  <pbartok@novell.com>
11486
11487         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11488           implementing SetModal() method
11489
11490 2004-12-18  Peter Bartok  <pbartok@novell.com>
11491
11492         * X11Structs.cs (XGCValues): Fixed type of function element
11493         * XplatUI.cs: Added ScrollWindow() method
11494         * XplatUIDriver.cs: Added ScrollWindow() abstract
11495         * XplatUIWin32.cs: Implemented ScrollWindow() method
11496         * XplatUIX11.cs: Implemented ScrollWindow() method
11497         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11498
11499 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11500
11501         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11502         Some more keyboard support (INCOMPLETE)
11503
11504 2004-12-17  Peter Bartok  <pbartok@novell.com>
11505
11506         * TextControl.cs:
11507         - Added color attribute to line tags.
11508         - Added color argument to all functions dealing with tags
11509         - Added color argument support to various functions
11510         - Fixed miss-calculation of baseline/shift in certain circumstances
11511
11512         * TextBoxBase.cs: Added new color option to test code
11513
11514 2004-12-17  Jackson Harper  <jackson@ximian.com>
11515
11516         * TreeNode.cs:
11517         * MonthCalendar.cs: Signature fixes
11518
11519 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11520
11521         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11522         keyboard event moved it.  Create a new graphics context for each paint resolves this
11523
11524 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11525
11526         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11527         Make caret exist and go blink blink.  Initial keyboard support.
11528         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11529         works.
11530
11531 2004-12-17  Jackson Harper  <jackson@ximian.com>
11532
11533         * XplatUIStructs.cs: Updated set of virtual keycodes.
11534         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11535
11536 2004-12-17  Jackson Harper  <jackson@ximian.com>
11537
11538         * XplatUIX11.cs: Prune old keyboard code.
11539
11540 2004-12-17  Jackson Harper  <jackson@ximian.com>
11541
11542         * XplatUIX11.cs: When generating mouse wparams get the modifier
11543         keys from the ModifierKeys property.
11544
11545 2004-12-17  Jackson Harper  <jackson@ximian.com>
11546
11547         * X11Keyboard.cs: Send up/down input when generating
11548         messages. Remove some unused vars.
11549
11550 2004-12-17  Jackson Harper  <jackson@ximian.com>
11551
11552         * TabControl.cs:
11553         * TreeView.cs: get rid of warnings.
11554
11555 2004-12-17  Jackson Harper  <jackson@ximian.com>
11556
11557         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11558
11559 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11560
11561         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11562           CheckedListBox.cs: Implementation
11563
11564 2004-12-17  Peter Bartok  <pbartok@novell.com>
11565
11566         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11567
11568 2004-12-16  Peter Bartok  <pbartok@novell.com>
11569
11570         * TextControl.cs:
11571           - InsertCharAtCaret(): Fixed start pos fixup
11572           - CaretLine_get: No longer derives the line from the tag, the tag
11573             could be stale if lines in the document have been added or deleted
11574           - RebalanceAfterDelete(): Fixed bug in balancing code
11575           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11576           - Line.Streamline(): Now can also elminate leading empty tags
11577           - DumpTree(): Added a few more tests and prevented exception on
11578             uninitialized data
11579           - Added Debug section for Combining lines
11580           - Delete(): Now copies all remaining properties of a line
11581           
11582         * TextBoxBase.cs:
11583           - Left mousebutton now sets the caret (and middle button still acts
11584             as formatting tester, which must go away soon)
11585           - Added Debug section for Deleting/Combining lines
11586           - Fixed calculations for UpdateView after Combining lines
11587
11588 2004-12-16  Peter Bartok  <pbartok@novell.com>
11589
11590         * TextControl.cs: Now properly aligns text on a baseline, using the
11591           new XplatUI.GetFontMetrics() method. Simplified several calculations
11592         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11593           defined
11594
11595 2004-12-16  Peter Bartok  <pbartok@novell.com>
11596
11597         * XplatUI.cs: Added GetFontMetrics() method
11598         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11599         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11600           into libgdiplus, our private GetFontMetrics function
11601         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11602         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11603
11604 2004-12-16  Jackson Harper  <jackson@ximain.com>
11605
11606         * XplatUIStruct.cs: Add enum for dead keys
11607         * X11Keyboard.cs: Map and unmap dead keys.
11608
11609 2004-12-16  Jackson Harper  <jackson@ximian.com>
11610
11611         * X11Keyboard.cs: Detect and use the num lock mask.
11612
11613 2004-12-16  Peter Bartok  <pbartok@novell.com>
11614
11615         * Control.cs (CreateGraphics): Added check to make sure the
11616           handle of the window exists before calling Graphics.FromHwnd()
11617
11618 2004-12-16  Peter Bartok  <pbartok@novell.com>
11619
11620         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11621           contains a lot of code that's not supposed to be there for the
11622           real thing, but required for developing/testing the textbox
11623           backend.
11624
11625 2004-12-16  Peter Bartok  <pbartok@novell.com>
11626
11627         * TextControl.cs:
11628         - Fixed Streamline method
11629         - Added FindTag method to Line
11630         - Added DumpTree method for debugging
11631         - Added DecrementLines() method for deleting lines
11632         - Fixed UpdateView to update the cursor to end-of-line on single-line
11633           updates
11634         - Added PositionCaret() method
11635         - Fixed MoveCaret(LineDown) to move into the last line, too
11636         - Added InsertChar overload
11637         - Fixed InsertChar tag offset calculations
11638         - Added DeleteChar() method
11639         - Added Combine() method for folding lines
11640         - Fixed Delete() method, no longer allocates wasted Line object and
11641           now copies all properties when swapping nodes
11642         - Delete() method now updates document line counter
11643
11644 2004-12-15  Jackson Harper  <jackson@ximian.com>
11645
11646         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11647         * X11Keyboard.cs: Expose the currently selected modifier keys
11648         through a property.
11649
11650 2004-12-15  Peter Bartok  <pbartok@novell.com>
11651
11652         * TextControl.cs: Initial check-in. Still incomplete
11653
11654 2004-12-15  Jackson Harper  <jackson@ximian.com>
11655
11656         * TreeNode.cs:
11657         * TreeView.cs: Fix build on csc (second time today ;-))
11658
11659 2004-12-15  Jackson Harper  <jackson@ximian.com>
11660
11661         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11662         is calculated and use this for click testing.
11663         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11664
11665 2004-12-15  Jackson Harper  <jackson@ximian.com>
11666
11667         * TreeView.cs: Pass the nodes image index to the image list when
11668         drawing that image.
11669
11670 2004-12-15  Jackson Harper  <jackson@ximian.com>
11671
11672         * X11Keyboard.cs: Set messages hwnd.
11673         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11674         post_message calls.
11675
11676 2004-12-15  Jackson Harper  <jackson@ximian.com>
11677
11678         * X11Keyboard.cs: Fix to compile with csc.
11679         
11680 2004-12-15  Jackson Harper  <jackson@ximian.com>
11681
11682         * X11Structs.cs: Add key mask values
11683         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11684         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11685         down/up foo into WM_CHAR foo
11686         * KeyboardLayouts.cs: Common keyboard layouts
11687         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11688         post messages into the main queue.
11689
11690 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11691
11692         * Button.cs: implement ProcessMnemonic
11693         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11694           brushes everytime
11695         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11696         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11697
11698 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11699         
11700         * MonthCalendar.cs: Implemented click-hold for next/previous month
11701           and date selection
11702           
11703 2004-12-11  Peter Bartok  <pbartok@novell.com>
11704
11705         * X11Structs.cs:
11706           - Added XKeyboardState (moved from XplatUIX11.cs)
11707           - Added XCreateGC related enums and structures
11708           - Added GXFunction for XSetFunction
11709
11710         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11711
11712         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11713           CaretVisible() calls
11714
11715         * ToolTip.cs: Added code to prevent stealing focus from app windows
11716
11717         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11718           DestroyCaret, SetCaretPos and CaretVisible)
11719
11720         * XplatUIX11.cs:
11721           - Added implementation for caret functions
11722           - Moved hover variables into a struct, to make it a bit easier
11723             on the eyes and to debug
11724           - Removed XKeyboardState (moved to XplatUIX11.cs)
11725           - Moved Keyboard properties into the properties region
11726
11727         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11728           call to get a graphics context for our control
11729
11730         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11731
11732         * TreeView.cs: Fixed bug. No matter what color was set it would always
11733           return SystemColors.Window
11734
11735         * XplatUIWin32.cs: Implemented caret overrides
11736
11737 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11738
11739         * ListBox.cs: fire events, implement missing methods and properties,
11740         sorting.
11741
11742 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11743
11744         * MonthCalendar.cs: invalidation bug fixing
11745         * ThemeWin32Classic.cs: paint fixing
11746
11747 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11748
11749         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11750         prepare the CGContextRef there now.
11751
11752 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11753
11754         * MonthCalendar.cs:
11755           - optimisationL only invalidate areas that have changed
11756         * ThemeWin32Classic.cs:
11757           - only paint parts that intersect with clip_area
11758
11759 2004-12-09  Peter Bartok  <pbartok@novell.com>
11760
11761         * Application.cs: Undid changes from r37004 which cause problems
11762         on X11
11763
11764 2004-12-09  Ravindra  <rkumar@novell.com>
11765
11766         * ToolBar.cs: Added support for displaying ContextMenu
11767         attached to a button on ToolBar.
11768         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11769         property.
11770
11771 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11772
11773         * Label.cs: autosize works in text change and removes unnecessary
11774         invalidate
11775
11776 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11777
11778         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11779         remove warnings
11780
11781 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11782
11783         * XplatUIOSX.cs: Added mouse move/click/grab support
11784         Remove some debugging WriteLines not needed anymore.
11785         Add window resizing/positioning.
11786         Fix visibility on reparenting.
11787
11788 2004-12-08  Peter Bartok  <pbartok@novell.com>
11789
11790         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11791
11792 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11793
11794         * XplatUIOSX.cs: Initial checkin
11795         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11796
11797 2004-12-03  Ravindra <rkumar@novell.com>
11798
11799         * ListView.cs: Added some keybindings and fixed scrolling.
11800         ScrollBars listen to ValueChanged event instead of Scroll
11801         Event. This would let us take care of all changes being
11802         done in the scrollbars' values programmatically or manually.
11803         * ListView.cs (CanMultiselect): Added a check for shift key.
11804         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11805         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11806         of ListViewSubItemCollection as well.
11807
11808 2004-12-06  Peter Bartok <pbartok@novell.com>
11809
11810         * Control.cs (Parent): Added check and exception to prevent
11811         circular parenting
11812
11813 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11814
11815         * ListBox.cs: implemented clipping, selection single and multiple,
11816         bug fixing
11817
11818 2004-12-03  Ravindra <rkumar@novell.com>
11819
11820         * ListView.cs (ListView_KeyDown):
11821         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11822         when CTRL key is pressed.
11823         * ListViewItem.cs (Selected): Fixed setting the property.
11824
11825 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11826
11827         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11828
11829         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11830         MinimizeBox, ShowInTaskbar, TopMost properties.
11831
11832         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11833         will be implemented).
11834
11835 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11836
11837         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11838
11839         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11840         tests.
11841         
11842         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11843         
11844         * TreeView.cs: BackColor is Colors.Window.
11845
11846 2004-12-01  Jackson Harper  <jackson@ximian.com>
11847
11848         * TreeView.cs: When resizing the tree if the user is making it
11849         smaller we don't get expose events, so we need to handle adding
11850         the horizontal scrollbar in the size changed handler as well as
11851         the expose handler.
11852
11853 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11854
11855         * DrawItemState.cs: fixes wrong enum values
11856
11857 2004-12-01  Jackson Harper  <jackson@ximian.com>
11858
11859         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11860
11861 2004-12-01  Jackson Harper  <jackson@ximian.com>
11862
11863         * NodeLabelEditEventArgs.cs:
11864         * NodeLabelEditEventHandler.cs:
11865         * OpenTreeNodeEnumerator.cs:
11866         * TreeNode.cs:
11867         * TreeNodeCollection.cs:
11868         * TreeView.cs:
11869         * TreeViewAction.cs:
11870         * TreeViewCancelEventArgs.cs:
11871         * TreeViewCancelEventHandler.cs:
11872         * TreeViewEventArgs.cs:
11873         * TreeViewEventHandler.cs: Initial implementation.
11874
11875 2004-12-01  Ravindra <rkumar@novell.com>
11876
11877         * ListView.cs (CalculateListView): Fixed scrolling related
11878         calculations. Also, removed some debug statements from other
11879         places.
11880         * ListViewItem.cs: Changed access to 'selected' instance variable
11881         from private to internal.
11882         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11883
11884 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11885
11886         * ThemeWin32Classic.cs: remove cache of brush and pens for
11887         specific controls and use the global system, fixes scrollbutton
11888         bugs (for small sizes, disabled, etc)
11889         
11890         * ScrollBar.cs: does not show the thumb for very small controls
11891         (as MS) and allow smaller buttons that the regular size
11892
11893 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11894
11895         * UpDownBase.cs: Add abstract methods for the interface.
11896         Add new virtual methods (need to be hooked up to TextEntry when it
11897         exists).
11898         Add override methods for most features.
11899         Computes the size, forces the height of the text entry.
11900
11901         * NumericUpDown.cs: Put here the current testing code.
11902
11903         * Set eol-style property on all files that do not have mixed line
11904         endings, to minimize the future problems.  There are still a few
11905         files with mixed endings, and someone should choose whether they
11906         want to move it or not.
11907
11908 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11909
11910         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11911         System.Colors
11912         
11913 2004-11-30  Ravindra <rkumar@novell.com>
11914
11915         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11916         drawing and replaced use of SystemColors by theme colors.
11917         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11918         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11919         same ListViewItem is being added more than once.
11920
11921 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11922
11923         * MonthCalendar.cs:
11924           - ControlStyles love to make the control not flicker
11925           
11926 2004-11-30  Peter Bartok  <pbartok@novell.com>
11927
11928         * CharacterCasing.cs: Added
11929
11930 2004-11-29  Peter Bartok  <pbartok@novell.com>
11931
11932         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11933           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11934           I am removing these files as they conflict with already completed
11935           work. While it is fantastic to get contributions to MWF, I
11936           respectfully ask that everyone please coordinate their contributions
11937           through mono-winforms-list or #mono-winforms at this time. We're
11938           explicitly avoiding stubbing and don't want controls that don't have
11939           their basic functionality implemented in svn. Please also see
11940           http://www.mono-project.com/contributing/winforms.html
11941
11942
11943 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11944
11945         * Application.cs (ModalRun): Don't hang after exit.
11946
11947         * Theme.cs: New TreeViewDefaultSize property.
11948
11949         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11950         with less hardcoded SystemColors constant.
11951         Implemented TreeViewDefaultSize.
11952
11953         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11954         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11955
11956
11957 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11958
11959         * MonthCalendar.cs:
11960           - Fix NextMonthDate and PrevMonthDate click moving calendar
11961
11962 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11963
11964         * MonthCalendar.cs:
11965           - Fix usage of ScrollChange Property when scrolling months
11966
11967 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11968
11969         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11970          - Fixes menu destroying
11971          - Support adding and removing items on already created menus
11972
11973 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11974
11975         * MonthCalendar.cs:
11976           - Re-worked all bolded dates handling to match win32
11977         * ThemeWin32Classic.cs:
11978           - Fixed rendering with bolded dates
11979
11980 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11981
11982         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11983         - Horizontal scroolbar
11984         - Multicolumn
11985         - Fixes
11986
11987
11988 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11989
11990         * MonthCalendar.cs:
11991           - Fix Usage of MaxSelectionCount from SelectionRange
11992           - Fixed Shift + Cursor Selection
11993           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11994           - Fixed normal cursor selection to be compat with win32
11995           - Fixed Shift + Mouse Click selection
11996
11997 2004-11-24  Peter Bartok <pbartok@novell.com>
11998
11999         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
12000         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
12001         * XplatUIX11.cs:
12002           - CreatedKeyBoardMsg now updates keystate with Alt key
12003           - Added workaround for timer crash to CheckTimers, Jackson will
12004             develop a proper fix and check in later
12005           - Implemented DispatchMessage
12006           - Removed calling the native window proc from GetMessage (call
12007             now moved to DispatchMessage)
12008
12009         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
12010           the keydata (Fixes bug #69831)
12011
12012         * XplatUIWin32.cs:
12013           - (DispatchMessage): Switched to return IntPtr
12014           - Added DllImport for SetFocus
12015
12016 2004-11-24  Ravindra <rkumar@novell.com>
12017
12018         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
12019         background drawing.
12020         * ListViewItem.cs: Fixed various properties, calculations
12021         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
12022         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
12023         and some internal properties. Fixed MouseDown handler and Paint
12024         method.
12025
12026 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12027
12028         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
12029
12030 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12031
12032         * ContainerControl.cs: correct accidental check in of local changes
12033
12034 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12035
12036         * ThemeWin32Classic.cs:
12037                 - Fixed Drawing Last month in grid (sometimes not showing)
12038         * MonthCalendar.cs:
12039                 - Fixed title width calculation bug (makeing title small)
12040
12041 2004-11-23  Peter Bartok <pbartok@novell.com>
12042
12043         * XplatUIX11.cs:
12044           - Added generation of WM_MOUSEHOVER event
12045           - Added missing assignment of async_method atom
12046           - Fixed WM_ERASEBKGND; now only redraws the exposed area
12047
12048 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12049
12050         * ThemeWin32Classic.cs:
12051                 - Fixed Drawing of today circle when showtodaycircle not set
12052                 - fixed drawing of first and last month in the grid (gay dates)
12053         * MonthCalendar.cs:
12054                 - Fixed Drawing of today circle
12055                 - Fixed drawing of grady dates
12056                 - Fixed HitTest for today link when ShowToday set to false
12057                 - Fixed DefaultSize to obey ShowToday
12058
12059 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12060
12061         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
12062         * System.Windows.Forms/Theme.cs
12063         * MonthCalendar.cs: added for MonthCalendar
12064         * SelectionRange.cs: added for MonthCalendar
12065         * Day.cs: added for MonthCalendar: added for MonthCalendar
12066         * DateRangeEventArgs.cs: added for MonthCalendar
12067         * DateRangeEventHandler.cs: added for MonthCalendar
12068
12069 2004-11-22  Ravindra <rkumar@novell.com>
12070
12071         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
12072         property.
12073
12074 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
12075
12076         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
12077         event handler.
12078         
12079         * NumericUpDown.cs: Added new implementation.
12080         * UpDownBase.cs: Added new implementation.
12081
12082         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
12083         implementations.
12084         
12085         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
12086         implementations.
12087
12088         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
12089         methods.
12090
12091 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
12092
12093         * Timer.cs  (Dispose): Should call the base dispose when
12094         overriding.
12095
12096 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12097
12098         * ScrollBar.cs: updates thumb position when max, min or increment
12099         is changed
12100
12101 2004-11-21  Ravindra <rkumar@novell.com>
12102
12103         * ListView.cs: Implemented item selection, activation and
12104         column header style. Fixed properties to do a redraw, if
12105         required. Added support for MouseHover, DoubleClick, KeyDown
12106         and KeyUp event handling and some minor fixes.
12107         * ListViewItem.cs: Fixed constructor.
12108         * ThemeWin32Classic.cs: Improved drawing for ListView.
12109
12110 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12111
12112         * ThemeWin32Classic.cs: initial listbox drawing code
12113         * DrawMode.cs: new enumerator
12114         * ListControl.cs: stubbed class
12115         * ListBox.cs: initial implementation
12116         * Theme.cs: new methods definitions
12117         * SelectionMode.cs: new enumerator
12118
12119 2004-11-17  Peter Bartok  <pbartok@novell.com>
12120
12121         * XplatUIWin32.cs: Added double-click events to the class style
12122         * Control.cs (WndProc):
12123           - Added handling of click-count to MouseDown/ MouseUp events.
12124           - Added handling of middle and right mouse buttons
12125           - Removed old debug code
12126
12127 2004-11-17  Jackson Harper  <jackson@ximian.com>
12128
12129         * XplatUIX11.cs: Use the new Mono.Unix namespace.
12130
12131 2004-11-17  Ravindra <rkumar@novell.com>
12132
12133         * ListView.cs: Added event handling for MouseMove/Up/Down.
12134         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
12135         * ThemeWin32Classic.cs: We need to clear the graphics context and
12136         draw column header in a proper state.
12137
12138
12139 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
12140
12141         *  Menu.cs: fixes signature
12142
12143 2004-11-16  Peter Bartok  <pbartok@novell.com>
12144
12145         * XplatUIX11.cs (GetMessage): Implemented generation of
12146           double click mouse messages
12147
12148 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
12149
12150         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
12151         not by menu
12152
12153 2004-11-11  Peter Bartok  <pbartok@novell.com>
12154
12155         * HandleData.cs: Added Visible property
12156         * XplatUIX11.cs (IsVisible): Now uses Visible property from
12157           HandleData
12158         * XplatUIX11.cs: Removed old debug leftovers
12159         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
12160         * Control.cs (WndProc): Removed old debug leftovers,
12161           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
12162           needed WM_SIZE handling
12163
12164 2004-11-11  Jackson Harper  <jackson@ximian.com>
12165
12166         * OwnerDrawPropertyBag.cs:
12167         * TreeViewImageIndexConverter.cs: Initial implementation
12168
12169 2004-11-10  Jackson Harper  <jackson@ximian.com>
12170
12171         * ThemeWin32Classic.cs:
12172         * TabControl.cs: instead of moving tabs by the slider pos just
12173         start drawing at the tab that is offset by the slider. This way
12174         scrolling always moves by exactly one tab.
12175
12176 2004-11-10  Jackson Harper  <jackson@ximian.com>
12177
12178         * TabControl.cs: You can only scroll left when the slider has
12179         already ben moved right.
12180         
12181 2004-11-10  Jackson Harper  <jackson@ximian.com>
12182
12183         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
12184         the clip area.
12185         
12186 2004-11-10  Jackson Harper  <jackson@ximian.com>
12187
12188         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
12189         clip area.
12190         
12191 2004-11-09  Jackson Harper  <jackson@ximian.com>
12192
12193         * TabControl.cs (CalcXPos): New helper method so we can determine
12194         the proper place to start drawing vertical tabs.
12195         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
12196         
12197 2004-11-09  Jackson Harper  <jackson@ximian.com>
12198
12199         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
12200         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
12201         and Bottom, left and right are illegal values for this and
12202         multiline is enabled when the alignment is set to left or right.
12203         (DrawTab): Each alignment block should draw the text itself now
12204         because Left requires special love. Also add rendering for Left
12205         aligned tabs.
12206         
12207 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
12208
12209         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
12210         does not destroy the windows, removes debugging messages
12211
12212 2004-11-09  jba  <jba-mono@optusnet.com.au>
12213
12214         * ThemeWin32Classic.cs
12215         (DrawButtonBase): Fix verticle text rect clipping in windows
12216         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12217         rendering and incorrect text rect clipping
12218         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12219         rendering and incorrect text rect clipping
12220         
12221 2004-11-08  Jackson Harper  <jackson@ximian.com>
12222
12223         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
12224         bottom when they are bottom aligned so the bottoms of the tabs get
12225         displayed.
12226         * TabControl.cs (DropRow): Move rows up instead of down when the
12227         tab control is bottom aligned.
12228
12229 2004-11-08 13:59  pbartok
12230
12231         * XplatUIX11.cs:
12232           - Added handling for various window styles
12233           - Added handling for popup windows
12234           - Added SetTopmost handling
12235
12236 2004-11-08 13:55  pbartok
12237
12238         * XplatUIWin32.cs:
12239           - Added argument to SetTopmost method
12240           - Fixed broken ClientToScreen function
12241
12242 2004-11-08 13:53  pbartok
12243
12244         * XplatUIStructs.cs:
12245           - Added missing WS_EX styles
12246
12247 2004-11-08 13:53  pbartok
12248
12249         * XplatUI.cs, XplatUIDriver.cs:
12250           - Added argument to SetTopmost
12251
12252 2004-11-08 13:52  pbartok
12253
12254         * X11Structs.cs:
12255           - Added XSetWindowAttributes structure
12256           - Improved XWindowAttributes structure
12257           - Added SetWindowValuemask enum
12258           - Added window creation arguments enum
12259           - Added gravity enum
12260           - Added Motif hints structure
12261           - Added various Motif flags and enums
12262           - Added PropertyMode enum for property functions
12263
12264 2004-11-08 13:50  pbartok
12265
12266         * Form.cs:
12267           - Fixed arguments for updated SetTopmost method
12268
12269 2004-11-08 13:49  pbartok
12270
12271         * ToolTip.cs:
12272           - Fixed arguments for updated SetTopmost function
12273           - Fixed usage of PointToClient
12274
12275 2004-11-08 13:44  pbartok
12276
12277         * MenuAPI.cs:
12278           - Added Clipping of children and siblings
12279
12280 2004-11-08 13:41  pbartok
12281
12282         * MainMenu.cs:
12283           - Removed SetMenuBarWindow call. We do this in Form.cs
12284
12285 2004-11-08 13:40  jackson
12286
12287         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12288           scrolling jimmi in the correct location with bottom aligned tabs
12289
12290 2004-11-08 13:36  pbartok
12291
12292         * ContainerControl.cs:
12293           - Implemented BindingContext
12294           - Implemented ParentForm
12295
12296 2004-11-08 12:46  jackson
12297
12298         * TabControl.cs: Put bottom rendered tabs in the right location
12299
12300 2004-11-08 07:15  jordi
12301
12302         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12303           removes dead code
12304
12305 2004-11-05 17:30  jackson
12306
12307         * TabControl.cs: When selected tabs are expanded make sure they
12308           don't go beyond the edges of the tab control
12309
12310 2004-11-05 14:57  jackson
12311
12312         * TabControl.cs: Reset show_slider so if the control is resized to
12313           a size where it is no longer needed it's not displayed anymore
12314
12315 2004-11-05 13:16  jackson
12316
12317         * TabControl.cs: Make tab pages non visible when added to the
12318           control
12319
12320 2004-11-05 12:42  jackson
12321
12322         * TabControl.cs: Implement SizeMode.FillToRight
12323
12324 2004-11-05 12:16  jackson
12325
12326         * Control.cs: Do not call CreateHandle if the handle is already
12327           created
12328
12329 2004-11-05 11:46  jackson
12330
12331         * TabControl.cs: Remove superflous call to CalcTabRows
12332
12333 2004-11-05 09:07  jackson
12334
12335         * XplatUIX11.cs: Update for Mono.Posix changes
12336
12337 2004-11-05 07:00  ravindra
12338
12339         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12340           scrolling.
12341
12342 2004-11-04 22:47  jba
12343
12344         * ThemeWin32Classic.cs:
12345           - Fix Button rendering for FlatStyle = Flat or Popup
12346           - Fix RadioButton and CheckBox rendering when Appearance = Button
12347             (normal and flatstyle).
12348           - Correct outer rectangle color when drawing focus rectangle
12349           - Adjust button bounds to be 1 px smaller when focused
12350           - Make button not draw sunken 3d border when pushed (windows compat)
12351           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12352           - Offset the text in RadioButton and Checkbox when being rendered as
12353           a button.
12354           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12355           radiobuttons
12356           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12357           - Fixed disabled text rendering for normally rendered radiobuttons
12358
12359 2004-11-04 10:26  jackson
12360
12361         * TabControl.cs: Recalculate tab rows when resizing
12362
12363 2004-11-04 07:47  jordi
12364
12365         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12366           collection completion, drawing issues, missing features
12367
12368 2004-11-04 05:03  ravindra
12369
12370         * ScrollBar.cs:
12371                 - We need to recalculate the Thumb area when
12372                 LargeChange/maximum/minimum values are changed.
12373           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12374                 than minimum. This is required to handle the case if large_change is
12375                 more than max, and use LargeChange property instead of large_change
12376                 variable.
12377           - We return max+1 when large_change is more than max, like MS does.
12378
12379 2004-11-04 04:29  ravindra
12380
12381         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12382                 - Changed default value signatures (prefixed all with ListView).
12383                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12384                 ListView.
12385           - Fixed calculations for ListViewItem and implemented Clone()
12386           method.
12387
12388 2004-11-04 04:26  ravindra
12389
12390         * Theme.cs, ThemeWin32Classic.cs:
12391                 - Changed default ListView values signatures (prefixed all with
12392                 ListView).
12393           - Fixed default size values for VScrollBar and HScrollBar.
12394                 - Fixed DrawListViewItem method.
12395
12396 2004-11-04 04:05  ravindra
12397
12398         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12399
12400 2004-11-04 04:04  ravindra
12401
12402         * ImageList.cs: Implemented the missing overload for Draw method.
12403
12404 2004-11-03 19:29  jackson
12405
12406         * TabControl.cs: Handle dropping rows on selection properly
12407
12408 2004-11-03 11:59  jackson
12409
12410         * TabControl.cs: remove debug code
12411
12412 2004-11-03 11:52  jackson
12413
12414         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12415           the scrolly widgerywoo
12416
12417 2004-11-02 13:52  jackson
12418
12419         * TabControl.cs: Resize the tab pages and tabs when the tab control
12420           is resized
12421
12422 2004-11-02 13:40  jackson
12423
12424         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12425           selected tab to the bottom
12426
12427 2004-11-02 13:39  jackson
12428
12429         * TabPage.cs: Store the tab pages row
12430
12431 2004-11-02 12:33  jordi
12432
12433         * MenuItem.cs: fixes handle creation
12434
12435 2004-11-02 11:42  jackson
12436
12437         * TabControl.cs: signature fix
12438
12439 2004-11-02 08:56  jackson
12440
12441         * TabControl.cs: Calculate whether the tab is on an edge properly.
12442           Remove top secret debugging code
12443
12444 2004-11-01 19:57  jackson
12445
12446         * TabControl.cs: Add click handling, and proper sizing
12447
12448 2004-11-01 19:47  jackson
12449
12450         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12451           tab controls
12452
12453 2004-11-01 19:39  jackson
12454
12455         * TabPage.cs: add internal property to store the bounds of a tab
12456           page
12457
12458 2004-10-30 04:23  ravindra
12459
12460         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12461           values.
12462
12463 2004-10-30 04:21  ravindra
12464
12465         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12466           fixed calculations.
12467
12468 2004-10-30 03:06  pbartok
12469
12470         * XplatUIX11.cs:
12471           - Removed extension of DllImported libs
12472
12473 2004-10-29 09:55  jordi
12474
12475         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12476           navigation, itemcollection completion, menu fixes
12477
12478 2004-10-27 22:58  pbartok
12479
12480         * XplatUIX11.cs:
12481           - Now throws a nice error message when no X display could be opened
12482
12483 2004-10-26 13:51  jordi
12484
12485         * ListView.cs: removes warning
12486
12487 2004-10-26 03:55  ravindra
12488
12489         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12490           ThemeWin32Classic.cs: Some formatting for my last checkins.
12491
12492 2004-10-26 03:36  ravindra
12493
12494         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12495           control and default values.
12496
12497 2004-10-26 03:35  ravindra
12498
12499         * Theme.cs: Added some default values for ListView control.
12500
12501 2004-10-26 03:33  ravindra
12502
12503         * ToolBar.cs: ToolBar should use the user specified button size, if
12504           there is any. Added a size_specified flag for the same.
12505
12506 2004-10-26 03:33  ravindra
12507
12508         * ColumnHeader.cs: Added some internal members and calculations for
12509           ColumnHeader.
12510
12511 2004-10-26 03:32  ravindra
12512
12513         * ListViewItem.cs: Calculations for ListViewItem.
12514
12515 2004-10-26 03:31  ravindra
12516
12517         * ListView.cs: Added some internal members and calculations for
12518           ListView.
12519
12520 2004-10-22 13:31  jordi
12521
12522         * MenuAPI.cs: speedup menus drawing
12523
12524 2004-10-22 13:16  jackson
12525
12526         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12527           expose event
12528
12529 2004-10-22 11:49  jackson
12530
12531         * Control.cs: oops
12532
12533 2004-10-22 11:41  jackson
12534
12535         * Control.cs: Check to see if the window should have its background
12536           repainted by X when drawing.
12537
12538 2004-10-22 11:31  jackson
12539
12540         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12541           clear is true, this way we do not get flicker from X repainting the
12542           background
12543
12544 2004-10-22 11:28  jackson
12545
12546         * XEventQueue.cs: Queue properly
12547
12548 2004-10-21 09:38  jackson
12549
12550         * XEventQueue.cs: Fix access modifier
12551
12552 2004-10-21 09:36  jackson
12553
12554         * XEventQueue.cs: Don't loose messages
12555
12556 2004-10-21 09:22  jackson
12557
12558         * XEventQueue.cs: Don't loose messages
12559
12560 2004-10-20 04:15  jordi
12561
12562         * BootMode.cs: enum need it by SystemInfo
12563
12564 2004-10-19 21:58  pbartok
12565
12566         * XplatUIWin32.cs:
12567           - Small sanity check
12568
12569 2004-10-19 21:56  pbartok
12570
12571         * Form.cs:
12572           - Added private FormParentWindow class which acts as the container
12573             for our form and as the non-client area where menus are drawn
12574           - Added/Moved required tie-ins to Jordi's menus
12575           - Fixed/Implemented the FormStartPosition functionality
12576
12577 2004-10-19 21:52  pbartok
12578
12579         * Control.cs:
12580           - Removed unneeded locals
12581           - Added code to all size and location properties to understand and
12582             deal with the parent container of Form
12583
12584 2004-10-19 21:33  pbartok
12585
12586         * Application.cs:
12587           - Fixed to deal with new Form subclasses for menus
12588
12589 2004-10-19 17:48  jackson
12590
12591         * XEventQueue.cs: commit correct version of file
12592
12593 2004-10-19 16:50  jackson
12594
12595         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12596
12597 2004-10-19 16:15  jordi
12598
12599         * MenuAPI.cs: MenuBarCalcSize returns the height
12600
12601 2004-10-19 08:31  pbartok
12602
12603         * Control.cs:
12604           - Added missing call to PreProcessMessage before calling OnXXXKey
12605           methods
12606
12607 2004-10-19 00:04  ravindra
12608
12609         * ToolTip.cs: Fixed constructor.
12610
12611 2004-10-18 09:31  jordi
12612
12613         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12614
12615 2004-10-18 09:26  jordi
12616
12617         * MenuItem.cs: fixes MenuItem class signature
12618
12619 2004-10-18 08:56  jordi
12620
12621         * MenuAPI.cs: prevents windows from showing in the taskbar
12622
12623 2004-10-18 00:28  ravindra
12624
12625         * ToolTip.cs: Suppressed a warning message.
12626
12627 2004-10-18 00:27  ravindra
12628
12629         * Control.cs: Default value of visible property must be true.
12630
12631 2004-10-17 23:19  pbartok
12632
12633         * ToolTip.cs:
12634           - Complete implementation
12635
12636 2004-10-17 23:19  pbartok
12637
12638         * XplatUIX11.cs:
12639           - Added EnableWindow method
12640           - Added SetModal stub
12641           - Added generation of WM_ACTIVATE message (still needs testing)
12642           - Added SetTopMost stub
12643           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12644
12645 2004-10-17 23:17  pbartok
12646
12647         * XplatUIWin32.cs:
12648           - Removed VirtualKeys to XplatUIStructs
12649           - Implemented SetTopMost method
12650           - Implemented EnableWindow method
12651           - Bugfix in ScreenToClient()
12652           - Bugfixes in ClientToScreen()
12653
12654 2004-10-17 22:51  pbartok
12655
12656         * XplatUIStructs.cs:
12657           - Added WS_EX styles to WindowStyles enumeration
12658
12659 2004-10-17 22:50  pbartok
12660
12661         * XplatUI.cs, XplatUIDriver.cs:
12662           - Added method for enabling/disabling windows
12663           - Added method for setting window modality
12664           - Added method for setting topmost window
12665
12666 2004-10-17 22:49  pbartok
12667
12668         * ThemeWin32Classic.cs:
12669           - Added ToolTip drawing code
12670
12671 2004-10-17 22:49  pbartok
12672
12673         * Theme.cs:
12674           - Added ToolTip abstracts
12675
12676 2004-10-17 22:47  pbartok
12677
12678         * Form.cs:
12679           - Fixed Form.ControlCollection to handle owner relations
12680           - Added Owner/OwnedForms handling
12681           - Implemented Z-Ordering for owned forms
12682           - Removed unneeded private overload of ShowDialog
12683           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12684             so I hope)
12685           - Fixed Close(), had wrong default
12686           - Added firing of OnLoad event
12687           - Added some commented out debug code for Ownership handling
12688
12689 2004-10-17 22:16  pbartok
12690
12691         * Control.cs:
12692           - Fixed/implemented flat list of controls
12693
12694 2004-10-17 22:14  pbartok
12695
12696         * Application.cs:
12697           - Added code to simulate modal dialogs on Win32
12698
12699 2004-10-17 16:11  jordi
12700
12701         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12702           mouse event
12703
12704 2004-10-17 13:39  jordi
12705
12706         * MenuAPI.cs: menu drawing fixes
12707
12708 2004-10-15 09:10  ravindra
12709
12710         * StructFormat.cs: General Enum.
12711
12712 2004-10-15 09:09  ravindra
12713
12714         * SizeGripStyle.cs: Enum for Form.
12715
12716 2004-10-15 09:08  ravindra
12717
12718         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12719           in Theme for ListView.
12720
12721 2004-10-15 09:06  ravindra
12722
12723         * ColumnHeader.cs: Flushing some formatting changes.
12724
12725 2004-10-15 09:05  ravindra
12726
12727         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12728           style.
12729
12730 2004-10-15 09:03  ravindra
12731
12732         * ListView.cs: Implemented Paint method and fixed coding style.
12733
12734 2004-10-15 07:34  jordi
12735
12736         * MenuAPI.cs: fix for X11
12737
12738 2004-10-15 07:32  ravindra
12739
12740         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12741                 - Renamed Paint() method to Draw() for clarity. Also, moved
12742                 DrawImage() to OnPaint().
12743
12744 2004-10-15 07:25  ravindra
12745
12746         * CheckBox.cs, RadioButton.cs:
12747                 - Removed Redraw (), we get it from ButtonBase.
12748                 - Implemented Paint (), to do class specific painting.
12749
12750 2004-10-15 07:16  ravindra
12751
12752         * ButtonBase.cs:
12753                 - Redraw () is not virtual now.
12754                 - Added an internal virtual method Paint (), so that
12755                 derived classes can do their painting on their own.
12756                 - Modified OnPaint () to call Paint ().
12757
12758 2004-10-15 06:43  jordi
12759
12760         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12761           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12762
12763 2004-10-15 00:30  ravindra
12764
12765         * MessageBox.cs:
12766                 - MessageBox on windows does not have min/max buttons.
12767                 This change in CreateParams fixes this on Windows. We
12768                 still need to implement this windowstyle behavior in
12769                 our X11 driver.
12770
12771 2004-10-14 05:14  ravindra
12772
12773         * ToolBar.cs:
12774                 - Changed Redraw () to do a Refresh () always.
12775                 - Fixed the MouseMove event handling when mouse is pressed,
12776                 ie drag event handling.
12777                 - Replaced the usage of ToolBarButton.Pressed property to
12778                 ToolBarButton.pressed internal variable.
12779
12780 2004-10-14 05:10  ravindra
12781
12782         * ToolBarButton.cs:
12783                 - Added an internal member 'inside' to handle mouse move
12784                 with mouse pressed ie mouse drag event.
12785                 - Changed 'Pressed' property to return true only when
12786                 'inside' and 'pressed' are both true.
12787                 - Some coding style love.
12788
12789 2004-10-14 00:17  ravindra
12790
12791         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12792           public method.
12793
12794 2004-10-14 00:15  ravindra
12795
12796         * ButtonBase.cs: Redraw () related improvements.
12797
12798 2004-10-14 00:14  ravindra
12799
12800         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12801           removed unnecessary calls to Button.Show () method.
12802
12803 2004-10-13 17:50  pbartok
12804
12805         * XplatUIX11.cs:
12806           - Formatting fix
12807           - Removed destroying of window until we solve the problem of X
12808             destroying the window before us on shutdown
12809
12810 2004-10-13 16:32  pbartok
12811
12812         * ButtonBase.cs:
12813           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12814
12815 2004-10-13 14:18  pbartok
12816
12817         * XplatUIX11.cs:
12818           - Added code to destroy the X window
12819
12820 2004-10-13 14:18  pbartok
12821
12822         * XplatUIWin32.cs:
12823           - Added code to destroy a window
12824
12825 2004-10-13 14:12  pbartok
12826
12827         * ButtonBase.cs:
12828           - Added the Redraw on Resize that got dropped in the last rev
12829
12830 2004-10-13 09:06  pbartok
12831
12832         * ThemeWin32Classic.cs:
12833           - Path from John BouAntoun:
12834             * Fix check rendering (centre correctly for normal style, offset
12835               correctly for FlatStyle).
12836             * Fix border color usage (use backcolor) for FlatStyle.Popup
12837             * Use checkbox.Capture instead of checkbox.is_pressed when
12838               rendering flatstyle states.
12839
12840 2004-10-12 21:48  pbartok
12841
12842         * ThemeWin32Classic.cs:
12843           - Removed all occurences of SystemColors and replaced them with the
12844             matching theme color
12845
12846 2004-10-12 21:41  pbartok
12847
12848         * ThemeWin32Classic.cs:
12849           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12850             him using the function for flatstyle drawing
12851           - Changed functions to use the new version of CPDrawBorder3D
12852
12853 2004-10-12 21:15  pbartok
12854
12855         * ControlPaint.cs:
12856           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12857             match MS documentation. They need to return defined colors if the
12858             passed color matches the configured control color. Thanks to John
12859             BouAntoun for pointing this out.
12860
12861 2004-10-12 20:57  pbartok
12862
12863         * Control.cs:
12864           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12865             color is changed
12866
12867 2004-10-12 20:46  pbartok
12868
12869         * CheckBox.cs:
12870           - Fix from John BouAntoun: Now properly sets the Appearance property
12871
12872 2004-10-12 20:45  pbartok
12873
12874         * ThemeWin32Classic.cs:
12875           - Fixes from John BouAntoun: now handles forecolors and backcolors
12876             for flatstyle rendered controls much better; It also fixes normal
12877             checkbox rendering when pushed or disabled.
12878
12879 2004-10-08 02:50  jordi
12880
12881         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12882           work
12883
12884 2004-10-07 08:56  jordi
12885
12886         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12887
12888 2004-10-06 03:59  jordi
12889
12890         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12891           XplatUIWin32.cs: removes warnings from compilation
12892
12893 2004-10-05 12:23  jackson
12894
12895         * RadioButton.cs: Fix ctor
12896
12897 2004-10-05 11:10  pbartok
12898
12899         * MessageBox.cs:
12900           - Partial implementation by Benjamin Dasnois
12901
12902 2004-10-05 10:15  jackson
12903
12904         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12905           by John BouAntoun
12906
12907 2004-10-05 03:07  ravindra
12908
12909         * ToolBar.cs:
12910                 - Removed a private method, Draw ().
12911                 - Fixed the ButtonDropDown event handling.
12912                 - Fixed MouseMove event handling.
12913
12914 2004-10-05 03:04  ravindra
12915
12916         * ThemeWin32Classic.cs:
12917                 - Added DrawListView method and ListViewDefaultSize property.
12918                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12919                 - Changed DOS style CRLF to Unix format (dos2unix).
12920
12921 2004-10-05 03:03  ravindra
12922
12923         * Theme.cs:
12924                 - Added DrawListView method and ListViewDefaultSize property.
12925
12926 2004-10-05 02:42  ravindra
12927
12928         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12929           clicks on DropDown arrow.
12930
12931 2004-10-04 22:56  jackson
12932
12933         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12934           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12935           Control handle the buffers, derived classes should not have to
12936           CreateBuffers themselves.
12937
12938 2004-10-04 21:20  jackson
12939
12940         * StatusBar.cs: The control handles resizing the buffers now.
12941
12942 2004-10-04 21:18  jackson
12943
12944         * Control.cs: When resizing the buffers should be invalidated. This
12945           should be handled in Control not in derived classes.
12946
12947 2004-10-04 14:45  jackson
12948
12949         * TabPage.cs: oops
12950
12951 2004-10-04 02:14  pbartok
12952
12953         * LeftRightAlignment.cs:
12954           - Initial check-in
12955
12956 2004-10-04 01:09  jordi
12957
12958         * ThemeWin32Classic.cs: fixes right button position causing right
12959           button not showing on horizontal scrollbars
12960
12961 2004-10-02 13:12  pbartok
12962
12963         * XplatUIX11.cs:
12964           - Simplified the Invalidate method by using an X call instead of
12965             generating the expose ourselves
12966           - Added an expose when the window background is changed
12967           - Implemented ClientToScreen method
12968
12969 2004-10-02 13:08  pbartok
12970
12971         * XplatUIWin32.cs:
12972           - Added Win32EnableWindow method (test for implementing modal
12973           dialogs)
12974           - Added ClientToScreen method and imports
12975
12976 2004-10-02 13:07  pbartok
12977
12978         * XplatUI.cs, XplatUIDriver.cs:
12979           - Added ClientToScreen coordinate translation method
12980
12981 2004-10-02 13:06  pbartok
12982
12983         * KeyPressEventArgs.cs:
12984           - Fixed access level for constructor
12985
12986 2004-10-02 13:06  pbartok
12987
12988         * NativeWindow.cs:
12989           - Changed access level for the window_collection hash table
12990
12991 2004-10-02 13:05  pbartok
12992
12993         * Form.cs:
12994           - Added KeyPreview property
12995           - Added Menu property (still incomplete, pending Jordi's menu work)
12996           - Implemented ProcessCmdKey
12997           - Implemented ProcessDialogKey
12998           - Implemented ProcessKeyPreview
12999
13000 2004-10-02 13:02  pbartok
13001
13002         * Control.cs:
13003           - Added private method to get the Control object from the window
13004           handle
13005           - Implemented ContextMenu property
13006           - Implemented PointToScreen
13007           - Implemented PreProcessMessage
13008           - Implemented IsInputChar
13009           - Implemented IsInputKey
13010           - Implemented ProcessCmdKey
13011           - Completed ProcessKeyEventArgs
13012           - Fixed message loop to call the proper chain of functions on key
13013           events
13014           - Implemented ProcessDialogChar
13015           - Implemented ProcessDialogKey
13016           - Implemented ProcessKeyMessage
13017           - Implemented ProcessKeyPreview
13018           - Added RaiseDragEvent stub (MS internal method)
13019           - Added RaiseKeyEvent stub (MS internal method)
13020           - Added RaiseMouseEvent stub (MS Internal method)
13021           - Added RaisePaintEvent stub (MS Internal method)
13022           - Added ResetMouseEventArgs stub (MS Internal method)
13023           - Implemented RtlTranslateAlignment
13024           - Implemented RtlTranslateContent
13025           - Implemented RtlTranslateHorizontal
13026           - Implemented RtlTranslateLeftRight
13027           - Added generation of KeyPress event
13028
13029 2004-10-02 05:57  ravindra
13030
13031         * ListViewItem.cs: Added attributes.
13032
13033 2004-10-02 05:32  ravindra
13034
13035         * ListView.cs: Added attributes.
13036
13037 2004-10-01 11:53  jackson
13038
13039         * Form.cs: Implement the Close method so work on MessageBox can
13040           continue.
13041
13042 2004-09-30 14:06  pbartok
13043
13044         * XplatUIX11.cs:
13045           - Bug fixes
13046
13047 2004-09-30 11:34  jackson
13048
13049         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
13050
13051 2004-09-30 07:26  ravindra
13052
13053         * ListViewItemConverter.cs: Converter for ListViewItem.
13054
13055 2004-09-30 07:26  ravindra
13056
13057         * SortOrder.cs: Enum for ListView control.
13058
13059 2004-09-30 07:25  ravindra
13060
13061         * ColumnHeader.cs: Supporting class for ListView control.
13062
13063 2004-09-30 07:24  ravindra
13064
13065         * ListView.cs, ListViewItem.cs: Initial implementation.
13066
13067 2004-09-30 07:20  ravindra
13068
13069         * ItemActivation.cs: Enum for ListView Control.
13070
13071 2004-09-29 20:29  pbartok
13072
13073         * XplatUIX11.cs:
13074           - Added lookup of pixel value for background color; tries to get a
13075             color 'close' to the requested color, it avoids having to create a
13076             colormap.  Depending on the display this could mean the used color
13077             is slightly off the desired color. Might have to change it to a more
13078             resource intensive colormap approach, but it will work as a
13079           workaround to avoid red screens.
13080
13081 2004-09-29 14:27  jackson
13082
13083         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
13084
13085 2004-09-28 12:44  pbartok
13086
13087         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
13088           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
13089           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
13090           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
13091           TrackBar.cs, VScrollBar.cs:
13092           - Streamlined Theme interfaces:
13093             * Each DrawXXX method for a control now is passed the object for
13094               the control to be drawn in order to allow accessing any state the
13095               theme might require
13096
13097             * ControlPaint methods for the theme now have a CP prefix to avoid
13098               name clashes with the Draw methods for controls
13099
13100             * Every control now retrieves it's DefaultSize from the current
13101             theme
13102
13103 2004-09-28 12:17  jackson
13104
13105         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
13106           drawing
13107
13108 2004-09-24 14:57  jackson
13109
13110         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
13111           Gives us a nice little performance boost.
13112
13113 2004-09-24 12:02  jackson
13114
13115         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
13116           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
13117           Control and supporting classes. Initial checkin
13118
13119 2004-09-23 13:08  jackson
13120
13121         * Form.cs: Temp build fixage
13122
13123 2004-09-23 01:39  ravindra
13124
13125         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
13126           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
13127           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
13128           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
13129           EventHandlers needed by ListView Control.
13130
13131 2004-09-22 14:12  pbartok
13132
13133         * ScrollableControl.cs:
13134           - Implemented DockPadding property
13135           - Implemented AutoScroll property
13136           - Implemented AutoScrollMargin property
13137           - Implemented AutoScrollMinSize property
13138           - Implemented AutoScrollPosition property
13139           - Implemented DisplayRectangle property (still incomplete)
13140           - Implemented CreateParams property
13141           - Implemented HScroll property
13142           - Implemented VScroll property
13143           - Implemented OnVisibleChanged property
13144
13145 2004-09-22 14:09  pbartok
13146
13147         * Form.cs:
13148           - Added Form.ControllCollection class
13149           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
13150             RemoveOwnedForm (still incomplete, missing on-top and common
13151             minimize/maximize behaviour)
13152           - Added StartPosition property (still incomplete, does not use when
13153             creating the form)
13154           - Added ShowDialog() methods (still incomplete, missing forcing the
13155             dialog modal)
13156
13157 2004-09-22 14:05  pbartok
13158
13159         * Application.cs:
13160           - Added message loop for modal dialogs
13161
13162 2004-09-22 14:02  pbartok
13163
13164         * GroupBox.cs:
13165           - Fixed wrong types for events
13166
13167 2004-09-22 14:00  pbartok
13168
13169         * Shortcut.cs, FormWindowState.cs:
13170           - Fixed wrong values
13171
13172 2004-09-22 12:01  jackson
13173
13174         * Control.cs: Text is never null
13175
13176 2004-09-20 22:14  pbartok
13177
13178         * XplatUIWin32.cs:
13179           - Fixed accessibility level for Idle handler
13180
13181 2004-09-20 18:54  jackson
13182
13183         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13184           XplatUIX11.cs: New message loop that uses poll so we don't get a
13185           busy loop
13186
13187 2004-09-17 10:43  pbartok
13188
13189         * ScrollBar.cs:
13190           - Fixed behaviour of arrow buttons. Now properly behaves like
13191             Buttons (and like Microsoft's scrollbar arrow buttons)
13192
13193 2004-09-17 10:14  pbartok
13194
13195         * ScrollBar.cs:
13196           - Added missing release of keyboard/mouse capture
13197
13198 2004-09-17 06:18  jordi
13199
13200         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
13201           Theme.cs: Very early menu support
13202
13203 2004-09-16 17:45  pbartok
13204
13205         * XplatUIWin32.cs:
13206           - Fixed sending a window to the front
13207           - Added overload for SetWindowPos to avoid casting
13208
13209 2004-09-16 17:44  pbartok
13210
13211         * Control.cs:
13212           - Added SendToBack and BringToFront methods
13213
13214 2004-09-16 07:00  ravindra
13215
13216         * Copyright: Added Novell URL.
13217
13218 2004-09-16 07:00  ravindra
13219
13220         * ToolBar.cs: Invalidate should be done before redrawing.
13221
13222 2004-09-15 21:19  ravindra
13223
13224         * ColumnHeaderStyle.cs: Enum for ListView Control.
13225
13226 2004-09-15 21:18  ravindra
13227
13228         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13229           ListView Control.
13230
13231 2004-09-13 18:26  jackson
13232
13233         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13234           properly
13235
13236 2004-09-13 18:13  jackson
13237
13238         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13239           a second thread and post messages into the main threads message
13240           queue. This makes timing much more consistent. Both win2K and XP
13241           have a minimum timer value of 15 milliseconds, so we now do this
13242           too.
13243
13244 2004-09-13 15:18  pbartok
13245
13246         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13247           XplatUIX11.cs:
13248           - Added Z-Ordering methods
13249
13250 2004-09-13 10:56  pbartok
13251
13252         * Form.cs:
13253           - Fixed #region names
13254           - Moved properties and methods into their proper #regions
13255
13256 2004-09-13 10:51  pbartok
13257
13258         * Form.cs:
13259           - Added Accept and CancelButton properties
13260           - Added ProcessDialogKey() method
13261
13262 2004-09-13 08:18  pbartok
13263
13264         * IWindowTarget.cs:
13265           - Initial check-in
13266
13267 2004-09-10 21:50  pbartok
13268
13269         * Control.cs:
13270           - Added DoDragDrop() [incomplete]
13271           - Properly implemented 'Visible' handling
13272           - Added SetVisibleCore()
13273           - Implemented FindChildAtPoint()
13274           - Implemented GetContainerControl()
13275           - Implemented Hide()
13276
13277 2004-09-10 19:28  pbartok
13278
13279         * Control.cs:
13280           - Moved methods into their appropriate #regions
13281           - Reordered methods within regions alphabetically
13282
13283 2004-09-10 18:57  pbartok
13284
13285         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13286           - Added method to retrieve text from window
13287
13288 2004-09-10 18:56  pbartok
13289
13290         * Control.cs:
13291           - Moved some internal functions into the internal region
13292           - Implemented FontHeight
13293           - Implemented RenderRightToLeft
13294           - Implemented ResizeRedraw
13295           - Implemented ShowFocusCues
13296           - Implemented ShowKeyboardCues
13297           - Implemented FromChildHandle
13298           - Implemented FromHandle
13299           - Implemented IsMnemonic
13300           - Implemented ReflectMessage
13301           - All public and protected Static Methods are now complete
13302
13303 2004-09-10 16:54  pbartok
13304
13305         * Control.cs:
13306           - Implemented remaining missing public instance properties
13307           - Alphabetized some out of order properties
13308
13309 2004-09-10 05:51  ravindra
13310
13311         * PictureBox.cs: Added a check for null image.
13312
13313 2004-09-10 00:59  jordi
13314
13315         * GroupBox.cs: remove cvs tag
13316
13317 2004-09-09 05:25  ravindra
13318
13319         * ToolBar.cs: Make redraw accessible from ToolBarButton.
13320
13321 2004-09-09 05:23  ravindra
13322
13323         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13324           parent redraw.
13325
13326 2004-09-09 02:28  pbartok
13327
13328         * ThemeWin32Classic.cs:
13329           - Improve disabled string look
13330
13331 2004-09-09 01:15  jordi
13332
13333         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13334           args and handler
13335
13336 2004-09-08 23:56  ravindra
13337
13338         * ItemBoundsPortion.cs: It's enum, not a class!
13339
13340 2004-09-08 23:47  ravindra
13341
13342         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13343           Enums for Form.
13344
13345 2004-09-08 21:13  ravindra
13346
13347         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13348           ListView control.
13349
13350 2004-09-08 21:03  ravindra
13351
13352         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13353           avoid crash.
13354
13355 2004-09-08 21:01  ravindra
13356
13357         * ScrollableControl.cs: Removed unreachable code.
13358
13359 2004-09-08 06:45  jordi
13360
13361         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13362
13363 2004-09-08 01:00  jackson
13364
13365         * XplatUIX11.cs: Only run the timers when updating the message
13366           queue. This effectively gives X messages a higher priority then
13367           timer messages. Timers still need love though
13368
13369 2004-09-07 14:01  jackson
13370
13371         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13372           this for us and the handle is no longer valid.
13373
13374 2004-09-07 13:59  jackson
13375
13376         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13377           loop that manages to not crash. TODO: Add poll and cleanup timers
13378
13379 2004-09-07 11:12  jordi
13380
13381         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13382
13383 2004-09-07 03:40  jordi
13384
13385         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13386           fixes, methods, multiple links
13387
13388 2004-09-06 06:55  jordi
13389
13390         * Control.cs: Caches ClientRectangle rectangle value
13391
13392 2004-09-05 02:03  jordi
13393
13394         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13395           certain situations
13396
13397 2004-09-04 11:10  jordi
13398
13399         * Label.cs: Refresh when font changed
13400
13401 2004-09-02 16:24  pbartok
13402
13403         * Control.cs:
13404           - Added sanity check to creation of double buffer bitmap
13405
13406 2004-09-02 16:24  pbartok
13407
13408         * ButtonBase.cs:
13409           - Fixed selection of text color
13410           - Fixed handling of resize event; now properly recreates double
13411             buffering bitmap
13412           - Added missing assignment of TextAlignment
13413           - Added proper default for TextAlignment
13414
13415 2004-09-02 14:26  pbartok
13416
13417         * RadioButton.cs:
13418           - Added missing RadioButton.RadioButtonAccessibleObject class
13419
13420 2004-09-02 14:26  pbartok
13421
13422         * Control.cs:
13423           - Added missing Control.ControlAccessibleObject class
13424           - Started to implement Select()ion mechanisms, still very incomplete
13425
13426 2004-09-02 14:25  pbartok
13427
13428         * AccessibleObject.cs:
13429           - Added missing methods
13430
13431 2004-09-02 14:23  pbartok
13432
13433         * AccessibleNavigation.cs, AccessibleSelection.cs:
13434           - Initial check-in
13435
13436 2004-09-02 10:32  jordi
13437
13438         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13439           pool for pens, brushes, and hatchbruses
13440
13441 2004-09-01 15:30  jackson
13442
13443         * StatusBar.cs: Fix typo
13444
13445 2004-09-01 14:44  pbartok
13446
13447         * RadioButton.cs:
13448           - Fixed state
13449
13450 2004-09-01 14:39  pbartok
13451
13452         * Button.cs, RadioButton.cs:
13453           - Functional initial check-in
13454
13455 2004-09-01 14:01  pbartok
13456
13457         * CheckBox.cs:
13458           - Added missing default
13459           - Added missing region mark
13460
13461 2004-09-01 09:10  jordi
13462
13463         * Label.cs: fixes method signatures, new methods, events, fixes
13464           autosize
13465
13466 2004-09-01 07:19  jordi
13467
13468         * Control.cs: Init string variables with an empty object
13469
13470 2004-09-01 04:20  jordi
13471
13472         * Control.cs: fires OnFontChanged event
13473
13474 2004-08-31 20:07  pbartok
13475
13476         * ButtonBase.cs:
13477           - Enabled display of strings
13478
13479 2004-08-31 20:05  pbartok
13480
13481         * Form.cs:
13482           - Added (partial) implementation of DialogResult; rest needs to be
13483             implemented when the modal loop code is done
13484
13485 2004-08-31 19:55  pbartok
13486
13487         * CheckBox.cs:
13488           - Fixed to match the removal of the needs_redraw concept
13489
13490 2004-08-31 19:55  pbartok
13491
13492         * ButtonBase.cs:
13493           - Removed the rather odd split between 'needs redraw' and redrawing
13494           - Now handles the events that require regeneration (ambient
13495             properties and size)
13496
13497 2004-08-31 19:41  pbartok
13498
13499         * Control.cs:
13500           - Added firing of BackColorChanged event
13501           - Added TopLevelControl property
13502           - Fixed handling of WM_ERASEBKGRND message
13503
13504 2004-08-31 12:49  pbartok
13505
13506         * ButtonBase.cs:
13507           - Removed debug
13508           - Minor fixes
13509
13510 2004-08-31 12:48  pbartok
13511
13512         * CheckBox.cs:
13513           - Finished (famous last words)
13514
13515 2004-08-31 04:35  jordi
13516
13517         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13518           scrolling bugs, adds new methods
13519
13520 2004-08-30 14:42  pbartok
13521
13522         * CheckBox.cs:
13523           - Implemented CheckBox drawing code
13524
13525 2004-08-30 14:42  pbartok
13526
13527         * ButtonBase.cs:
13528           - Made Redraw() and CheckRedraw() virtual
13529           - Improved mouse up/down/move logic to properly track buttons
13530
13531 2004-08-30 09:44  pbartok
13532
13533         * CheckBox.cs:
13534           - Updated to fix broken build. Not complete yet.
13535
13536 2004-08-30 09:28  pbartok
13537
13538         * CheckState.cs:
13539           - Initial checkin
13540
13541 2004-08-30 09:17  pbartok
13542
13543         * Appearance.cs:
13544           - Initial check-in
13545
13546 2004-08-27 16:12  ravindra
13547
13548         * ToolBarButton.cs: Added TypeConverter attribute.
13549
13550 2004-08-27 16:07  ravindra
13551
13552         * ImageIndexConverter.cs: Implemented.
13553
13554 2004-08-27 14:17  pbartok
13555
13556         * Control.cs:
13557           - Removed unneeded stack vars
13558           - First attempt to fix sizing issues when layout is suspended
13559
13560 2004-08-25 15:35  jordi
13561
13562         * ScrollBar.cs: more fixes to scrollbar
13563
13564 2004-08-25 14:04  ravindra
13565
13566         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13567           Added the missing divider code and grip for ToolBar Control.
13568
13569 2004-08-25 13:20  pbartok
13570
13571         * Control.cs:
13572           - Control now properly passes the ambient background color to child
13573             controls
13574
13575 2004-08-25 13:20  jordi
13576
13577         * ScrollBar.cs: small bug fix regarding bar position
13578
13579 2004-08-25 12:33  pbartok
13580
13581         * Timer.cs:
13582           - Now only calls SetTimer or KillTimer if the enabled state has
13583           changed
13584
13585 2004-08-25 12:33  pbartok
13586
13587         * XplatUIWin32.cs:
13588           - Fixed timer handling, now seems to work
13589           - Improved error message for window creation
13590
13591 2004-08-25 12:32  pbartok
13592
13593         * Control.cs:
13594           - Fixed generation of MouseUp message
13595
13596 2004-08-25 12:29  jordi
13597
13598         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13599           and fixes for progressbar
13600
13601 2004-08-24 18:43  ravindra
13602
13603         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13604           in ToolBar control.
13605
13606 2004-08-24 17:15  pbartok
13607
13608         * Panel.cs:
13609           - Added #region
13610           - Added missing events
13611           - Alphabetized
13612
13613 2004-08-24 17:14  pbartok
13614
13615         * StatusBar.cs, PictureBox.cs:
13616           - Now uses Control's CreateParams
13617
13618 2004-08-24 16:36  pbartok
13619
13620         * XplatUIX11.cs:
13621           - Fixed background color handling
13622           - Fixed sending of enter/leave events on a grab
13623
13624 2004-08-24 16:35  pbartok
13625
13626         * X11Structs.cs:
13627           - Refined definitions for CrossingEvent
13628
13629 2004-08-24 12:37  jordi
13630
13631         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13632           formmating, methods signature, and adds missing events
13633
13634 2004-08-24 12:24  jordi
13635
13636         * Control.cs: fire OnEnabledChanged event
13637
13638 2004-08-24 11:17  pbartok
13639
13640         * XplatUIWin32.cs:
13641           - Implemented SetTimer() and KillTimer()
13642
13643 2004-08-24 11:16  pbartok
13644
13645         * XplatUIX11.cs:
13646           - Now uses Remove instead of Add to kill the timer
13647
13648 2004-08-24 10:16  jackson
13649
13650         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13651           picture boxes in the theme now. Draw picture box borders and obey
13652           sizing modes
13653
13654 2004-08-24 05:49  jackson
13655
13656         * Timer.cs: Remove top secret debugging code
13657
13658 2004-08-24 05:34  jackson
13659
13660         * PictureBox.cs: Temp hack to make picture boxes draw their full
13661           image
13662
13663 2004-08-24 05:29  jackson
13664
13665         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13666           XplatUIX11.cs: Move timers to the driver level. On X they are
13667           queued by the driver and checked on idle.
13668
13669 2004-08-24 01:07  jackson
13670
13671         * XplatUIX11.cs: Use a queue for async messages instead of passing
13672           them as ClientMessages since that was totally broken. Also simply
13673           check for events and return an idle message if none are found. This
13674           gives us an idle handler, and prevents deadlocking when no messages
13675           are in the queue.
13676
13677 2004-08-23 18:19  ravindra
13678
13679         * XplatUIWin32.cs: Removed the unwanted destructor.
13680
13681 2004-08-23 17:27  pbartok
13682
13683         * ButtonBase.cs:
13684           - Finishing touches. Works now, just needs some optimizations.
13685
13686 2004-08-23 16:53  jordi
13687
13688         * ScrollBar.cs: small fix
13689
13690 2004-08-23 16:45  pbartok
13691
13692         * Application.cs:
13693           - Removed debug output
13694           - Simplifications
13695
13696 2004-08-23 16:43  jordi
13697
13698         * ScrollBar.cs: [no log message]
13699
13700 2004-08-23 16:10  pbartok
13701
13702         * Form.cs:
13703           - Fixed handling of WM_CLOSE message
13704           - Removed debug output
13705
13706 2004-08-23 16:09  pbartok
13707
13708         * Application.cs:
13709           - Added handling of Idle event
13710           - Added handling of form closing
13711           - Fixed reporting of MessageLoop property
13712           - Removed some unneeded code, should provide a bit of a speedup
13713
13714 2004-08-23 15:22  pbartok
13715
13716         * Control.cs:
13717           - Added InitLayout() method
13718           - Added code to properly perform layout when Anchor or Dock property
13719             is changed
13720           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13721             LAMESPEC, tried to do it in a way that makes sense
13722
13723 2004-08-23 14:10  jordi
13724
13725         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13726           properties and methods
13727
13728 2004-08-23 13:55  pbartok
13729
13730         * Control.cs:
13731           - Properly fixed Jordi's last fix
13732           - Now uses Cursor's Position property instead of calling XplatUI
13733           directly
13734
13735 2004-08-23 13:44  jordi
13736
13737         * PaintEventHandler.cs: Adding missing attribute
13738
13739 2004-08-23 13:39  pbartok
13740
13741         * Cursor.cs:
13742           - Implemented Position property
13743
13744 2004-08-23 13:39  pbartok
13745
13746         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13747           - Added method to move mouse cursor
13748
13749 2004-08-23 13:39  pbartok
13750
13751         * XplatUIX11.cs:
13752           - Fixed setting of background color
13753           - Added method to move mouse cursor
13754
13755 2004-08-23 13:16  jordi
13756
13757         * Control.cs: avoids null exception
13758
13759 2004-08-22 17:46  jackson
13760
13761         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13762           PictureBox
13763
13764 2004-08-22 17:40  jackson
13765
13766         * XplatUIX11.cs: Add some missing locks
13767
13768 2004-08-22 15:10  pbartok
13769
13770         * Control.cs, Form.cs:
13771           - Removed OverlappedWindow style from Control, instead it's default
13772             now is child
13773           - Made form windows OverlappedWindow by default
13774
13775 2004-08-22 13:34  jackson
13776
13777         * ScrollBar.cs: Update the position through the Value property so
13778           the OnValueChanged event is raised.
13779
13780 2004-08-22 12:04  pbartok
13781
13782         * SWF.csproj:
13783           - Added Cursor.cs and UserControl.cs
13784
13785 2004-08-22 12:03  pbartok
13786
13787         * Cursor.cs:
13788           - Started implementation, not usable yet
13789
13790 2004-08-22 12:00  pbartok
13791
13792         * UserControl.cs:
13793           - Implemented UserControl (complete)
13794
13795 2004-08-21 19:20  ravindra
13796
13797         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13798
13799 2004-08-21 18:49  ravindra
13800
13801         * ToolBar.cs: Probably this completes the missing attributes in
13802           toolbar control.
13803
13804 2004-08-21 18:03  ravindra
13805
13806         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13807           Fixed toolbar control signatures.
13808
13809 2004-08-21 16:32  pbartok
13810
13811         * LinkLabel.cs:
13812           - Signature Fixes
13813
13814 2004-08-21 16:30  pbartok
13815
13816         * Label.cs:
13817           - Signature fixes
13818
13819 2004-08-21 16:19  pbartok
13820
13821         * Control.cs, Label.cs:
13822           - Signature fixes
13823
13824 2004-08-21 15:57  pbartok
13825
13826         * ButtonBase.cs:
13827           - Added loads of debug output for development
13828           - Fixed typo in method name
13829
13830 2004-08-21 15:52  pbartok
13831
13832         * ToolBarButtonClickEventArgs.cs:
13833           - Added missing base class
13834
13835 2004-08-21 14:53  pbartok
13836
13837         * Control.cs:
13838           - Updated to match new GrabWindow signature
13839
13840 2004-08-21 14:51  pbartok
13841
13842         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13843           - Added method to get default display size
13844
13845 2004-08-21 14:23  pbartok
13846
13847         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13848           - Added method to query current grab state
13849           - Added argument to allow confining a grab to a window
13850
13851 2004-08-21 14:22  pbartok
13852
13853         * Keys.cs:
13854           - Added [Flags] attribute so that modifiers can be used in bitwise
13855           ops
13856
13857 2004-08-21 14:21  pbartok
13858
13859         * TrackBar.cs, ScrollBar.cs:
13860           - Replaced direct XplatUI calls with their Control counterpart
13861
13862 2004-08-21 13:32  pbartok
13863
13864         * Control.cs:
13865           - Implemented Created property
13866
13867 2004-08-21 13:28  pbartok
13868
13869         * Control.cs:
13870           - Implemented ContainsFocus
13871
13872 2004-08-21 13:26  pbartok
13873
13874         * Control.cs:
13875           - Implemented CausesValidation
13876
13877 2004-08-21 13:21  pbartok
13878
13879         * Control.cs:
13880           - Implemented CanFocus
13881           - Implemented CanSelect
13882           - Implemented Capture
13883
13884 2004-08-21 12:35  pbartok
13885
13886         * XplatUIWin32.cs:
13887           - Fixed bug with Async message handling
13888           - Implemented getting the ModifierKeys
13889
13890 2004-08-21 12:32  jackson
13891
13892         * AsyncMethodResult.cs: Make sure we have the mutex before we
13893           release it. Fixes BeginInvoke on windows
13894
13895 2004-08-21 11:31  pbartok
13896
13897         * XplatUIWin32.cs, XplatUIX11.cs:
13898           - Drivers now return proper mouse state
13899
13900 2004-08-21 10:54  jackson
13901
13902         * Control.cs: Implement EndInvoke
13903
13904 2004-08-21 10:48  jackson
13905
13906         * Timer.cs: Remove unneeded finalizer
13907
13908 2004-08-20 19:52  ravindra
13909
13910         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13911           in mouse event handling in the ToolBar control.
13912
13913 2004-08-20 19:50  ravindra
13914
13915         * ImageList.cs: Changed draw method to use the arguments passed in
13916           to draw the image.
13917
13918 2004-08-20 18:58  pbartok
13919
13920         * XplatUIStructs.cs:
13921           - Added private message for async communication
13922
13923 2004-08-20 17:38  ravindra
13924
13925         * Control.cs: Made RightToLeft property virtual and removed a
13926           Console.WriteLine.
13927
13928 2004-08-20 14:39  jordi
13929
13930         * ThemeGtk.cs: use style_attach
13931
13932 2004-08-20 14:39  pbartok
13933
13934         * XplatUIWin32.cs:
13935           - Added jackson's Async code from X11 to Win32
13936
13937 2004-08-20 14:09  pbartok
13938
13939         * SWF.csproj:
13940           - Added all new files
13941
13942 2004-08-20 14:09  pbartok
13943
13944         * Control.cs:
13945           - Added call to set window background color
13946
13947 2004-08-20 14:03  pbartok
13948
13949         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13950           - Added method for setting the window background
13951
13952 2004-08-20 14:02  pbartok
13953
13954         * XplatUIWin32.cs:
13955           - Added method for setting the background color
13956           - Added handling for erasing the window background
13957
13958 2004-08-20 13:45  jordi
13959
13960         * TrackBar.cs: fixes timer, new properties and methods
13961
13962 2004-08-20 13:34  jackson
13963
13964         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13965           correct thread
13966
13967 2004-08-20 13:22  jackson
13968
13969         * Timer.cs: Timer Tick events are now handed through Controls Async
13970           mechanism so the callbacks are executed in the same thread as X
13971
13972 2004-08-20 13:19  jackson
13973
13974         * XplatUIDriver.cs: Expose functionality to send async messages
13975           through the driver
13976
13977 2004-08-20 13:18  jackson
13978
13979         * Control.cs: Implement Begininvoke
13980
13981 2004-08-20 13:14  jackson
13982
13983         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13984           messages through the driver
13985
13986 2004-08-20 13:12  jackson
13987
13988         * XplatUIX11.cs: Lock before all X operations. Also added Async
13989           method functionality through XSendEvent
13990
13991 2004-08-20 13:11  jackson
13992
13993         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13994           This will screw up on 64 bit systems)
13995
13996 2004-08-20 13:10  jackson
13997
13998         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13999           Async messages through X/Win32
14000
14001 2004-08-19 19:39  pbartok
14002
14003         * XplatUIX11.cs:
14004           - Updated code to match new HandleData.DeviceContext type
14005
14006 2004-08-19 19:38  pbartok
14007
14008         * HandleData.cs:
14009           - Made DeviceContext a generic object to allow usage from various
14010           drivers
14011           - Added support for queueing Windows messages
14012
14013 2004-08-19 19:37  pbartok
14014
14015         * XplatUIWin32.cs:
14016           - Added generation of MouseEnter, MouseLeave and MouseHover events
14017           - Added cleanup on EndPaint
14018
14019 2004-08-19 19:17  pbartok
14020
14021         * Control.cs:
14022           - Added handling of WM_MOUSEHOVER
14023           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
14024           code
14025
14026 2004-08-19 18:55  jordi
14027
14028         * ThemeGtk.cs: fixes button order
14029
14030 2004-08-19 18:12  jordi
14031
14032         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
14033
14034 2004-08-19 17:09  pbartok
14035
14036         * Control.cs:
14037           - Added Right property
14038           - Added RightToLeft property
14039
14040 2004-08-19 16:27  jordi
14041
14042         * ThemeGtk.cs: experimental GTK theme support
14043
14044 2004-08-19 16:26  jordi
14045
14046         * ITheme.cs, Theme.cs: move themes from an interface to a class
14047
14048 2004-08-19 16:25  jordi
14049
14050         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
14051           theme enhancaments
14052
14053 2004-08-19 16:04  pbartok
14054
14055         * XplatUIX11.cs:
14056           - Added colormap basics
14057           - Added a way to re-initialize with a different display handle
14058           - Fixed setting of the window background color
14059           - Added various X11 imports related to colors and colormaps
14060
14061 2004-08-19 15:51  pbartok
14062
14063         * X11Structs.cs:
14064           - Removed packing hints (Paolo suggested this a while back)
14065           - fixed colormap type
14066           - Added default Atom types
14067           - Added Screen and color structs and enums
14068
14069 2004-08-19 15:39  pbartok
14070
14071         * ImageList.cs:
14072           - Added missing Draw() method
14073           - Added missing RecreateHandle event
14074
14075 2004-08-19 15:30  pbartok
14076
14077         * Form.cs:
14078           - Added handling of WM_CLOSE
14079
14080 2004-08-18 13:16  jordi
14081
14082         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
14083           a table
14084
14085 2004-08-18 09:56  jordi
14086
14087         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
14088
14089 2004-08-17 15:31  ravindra
14090
14091         * SWF.csproj: Updated project.
14092
14093 2004-08-17 15:25  pbartok
14094
14095         * Control.cs:
14096           - Drawing improvement; don't call UpdateBounds if we are not visible
14097             (or have been minimized)
14098
14099 2004-08-17 15:24  pbartok
14100
14101         * XplatUIWin32.cs:
14102           - Finished IsVisible
14103           - Added Win32GetWindowPlacement
14104
14105 2004-08-17 15:08  jackson
14106
14107         * Panel.cs: Initial checkin of the Panel
14108
14109 2004-08-17 14:25  pbartok
14110
14111         * Control.cs:
14112           - Fixed broken handling of default window sizes
14113
14114 2004-08-17 13:29  jackson
14115
14116         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
14117           has a large startup time.
14118
14119 2004-08-17 10:25  jackson
14120
14121         * HandleData.cs: union areas properly
14122
14123 2004-08-17 10:12  jackson
14124
14125         * HandleData.cs: union areas properly
14126
14127 2004-08-16 20:00  ravindra
14128
14129         * ToolBar.cs, ToolBarButton.cs: Added attributes.
14130
14131 2004-08-16 18:48  ravindra
14132
14133         * ToolBar.cs: Added attributes.
14134
14135 2004-08-16 17:17  ravindra
14136
14137         * SWF.csproj: Updated project.
14138
14139 2004-08-16 17:16  jackson
14140
14141         * XplatUIX11.cs: Check for more expose events before sending a
14142           WM_PAINT so they can all be grouped together. This makes dragging a
14143           window across another window redraw in a sane way.
14144
14145 2004-08-16 15:47  pbartok
14146
14147         * Control.cs:
14148           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
14149             support OnMouseEnter/Leave()
14150           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
14151             exposure handling
14152
14153 2004-08-16 15:46  pbartok
14154
14155         * XplatUIStructs.cs, XplatUIX11.cs:
14156           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
14157           OnMouseEnter/Leave()
14158
14159 2004-08-16 15:34  jackson
14160
14161         * XplatUIX11.cs: Group multiple expose events in HandleData, make
14162           sure messages get the message field set to WM_NULL if they are not
14163           handled.
14164
14165 2004-08-16 15:24  jackson
14166
14167         * HandleData.cs: HandleData is used for storing message information
14168           for window handles
14169
14170 2004-08-15 17:23  ravindra
14171
14172         * ColorDepth.cs: Added attribute.
14173
14174 2004-08-15 17:23  ravindra
14175
14176         * SWF.csproj: Updated project for ToolBar Control.
14177
14178 2004-08-15 17:20  ravindra
14179
14180         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
14181           control and also dos2unix format.
14182
14183 2004-08-15 17:13  ravindra
14184
14185         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
14186           ToolBarButtonClickEventArgs.cs,
14187           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
14188           ToolBarTextAlign.cs: First Implementation of ToolBar control.
14189
14190 2004-08-15 15:31  pbartok
14191
14192         * ButtonBase.cs:
14193           - First (mostly) working version
14194
14195 2004-08-13 16:15  pbartok
14196
14197         * Control.cs:
14198           - Fixed Anchor default
14199
14200 2004-08-13 15:43  pbartok
14201
14202         * Control.cs:
14203           - Changed GetCursorPos signature
14204
14205 2004-08-13 15:42  pbartok
14206
14207         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14208           - Changed signature for GetCursorPos
14209
14210 2004-08-13 15:25  pbartok
14211
14212         * XplatUIX11.cs:
14213           - Cleanup
14214           - Fixed resizing/exposure handling
14215
14216 2004-08-13 15:22  jordi
14217
14218         * ThemeWin32Classic.cs: removes redundant code and fixes issues
14219           with tickposition
14220
14221 2004-08-13 14:55  jordi
14222
14223         * TrackBar.cs: change from wndproc to events
14224
14225 2004-08-13 13:00  jordi
14226
14227         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14228           XplatUIX11.cs: implements PointToClient (ScreenToClient)
14229
14230 2004-08-13 12:53  pbartok
14231
14232         * XplatUIWin32.cs:
14233           - Changed GetWindowPos to also provide client area size
14234           - Fixed broken prototypes for several win32 functions
14235
14236 2004-08-13 12:53  pbartok
14237
14238         * XplatUI.cs, XplatUIDriver.cs:
14239           - Changed GetWindowPos to also provide client area size
14240
14241 2004-08-13 12:52  pbartok
14242
14243         * XplatUIX11.cs:
14244           - Added generation of WM_POSCHANGED
14245           - Changed GetWindowPos to also provide client area size
14246
14247 2004-08-13 12:52  pbartok
14248
14249         * Control.cs:
14250           - Added Dispose() and destructor
14251           - Fixed resizing and bounds calculation
14252           - Fixed Layout
14253           - Added memory savings for invisible windows
14254
14255 2004-08-13 12:46  jordi
14256
14257         * TrackBar.cs: adds timer and grap window
14258
14259 2004-08-13 10:25  jackson
14260
14261         * Timer.cs: SWF Timer
14262
14263 2004-08-12 16:59  pbartok
14264
14265         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14266           - Implemented method to get current mouse position
14267
14268 2004-08-12 14:29  jordi
14269
14270         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14271           enhancement, fix mouse problems, highli thumb, etc
14272
14273 2004-08-12 13:31  pbartok
14274
14275         * Control.cs:
14276           - Fixed Anchoring bugs
14277
14278 2004-08-12 13:01  jackson
14279
14280         * StatusBar.cs: Don't forget things
14281
14282 2004-08-12 12:54  jackson
14283
14284         * ThemeWin32Classic.cs: Handle owner draw status bars
14285
14286 2004-08-12 12:54  jackson
14287
14288         * StatusBar.cs: Implement missing properties, events, and methods.
14289           Handle mouse clicking
14290
14291 2004-08-12 10:19  jackson
14292
14293         * StatusBarPanelClickEventArgs.cs,
14294           StatusBarPanelClickEventHandler.cs: Classes for handling status
14295           bar panel click events
14296
14297 2004-08-12 10:10  jackson
14298
14299         * Control.cs: Add missing properties
14300
14301 2004-08-12 09:46  pbartok
14302
14303         * BindingsManagerBase.cs:
14304           - Name changed to BindingManagerBase.cs
14305
14306 2004-08-12 09:25  jordi
14307
14308         * ScrollableControl.cs: calls ctrlbase instead of exeception
14309
14310 2004-08-11 16:28  pbartok
14311
14312         * InputLanguageChangingEventArgs.cs:
14313           - Never check in before compiling. Fixes the last check-in
14314
14315 2004-08-11 16:26  pbartok
14316
14317         * InputLanguageChangingEventArgs.cs:
14318           - More signature fixes
14319
14320 2004-08-11 16:20  pbartok
14321
14322         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14323           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14324           ImageListStreamer.cs, InputLanguage.cs,
14325           InputLanguageChangedEventArgs.cs,
14326           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14327           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14328           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14329           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14330           - Signature fixes
14331
14332 2004-08-11 16:16  pbartok
14333
14334         * Application.cs:
14335           - Fixed Signature
14336           - Added .Net 1.1 method
14337
14338 2004-08-11 15:25  pbartok
14339
14340         * SWF.csproj:
14341           - Fixed BindingManagerBase.cs filename
14342
14343 2004-08-11 15:22  pbartok
14344
14345         * BindingManagerBase.cs:
14346           - Was checked in with wrong filename
14347
14348 2004-08-11 14:50  pbartok
14349
14350         * SWF.csproj:
14351           - Updated
14352
14353 2004-08-11 13:41  jordi
14354
14355         * XplatUIWin32.cs: Fixes ClientRect
14356
14357 2004-08-11 13:19  pbartok
14358
14359         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14360           XplatUIX11.cs:
14361           - We had SetWindowPos and MoveWindow to set window positions and
14362             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14363             keep SetWindowPos as matching counterpart
14364           - Added some X11 sanity checking
14365
14366 2004-08-11 12:59  pbartok
14367
14368         * Control.cs:
14369           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14370             (It seems that SetBounds is just a front for SetBoundsCore and
14371              SetBoundsCore updates the underlying window system and
14372              UpdateBounds is responsible for updating the variables associated
14373              with the Control and sending the events)
14374           - Major cleanup of Size handling; we now have two sizes, client_size
14375             and bounds. Bounds defines the window with decorations, client_size
14376             without them.
14377
14378 2004-08-11 12:55  pbartok
14379
14380         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14381           - Added method to calculate difference between decorated window and
14382             raw client area
14383
14384 2004-08-11 12:54  pbartok
14385
14386         * Label.cs:
14387           - Forcing redraw on resize
14388
14389 2004-08-11 11:43  pbartok
14390
14391         * ImageList.cs:
14392           - Removed disposing of the actual images when the list is disposed
14393
14394 2004-08-11 09:13  pbartok
14395
14396         * Control.cs:
14397           - Now properly reparents windows
14398
14399 2004-08-11 08:37  pbartok
14400
14401         * Control.cs:
14402           - Duh!
14403
14404 2004-08-11 07:47  pbartok
14405
14406         * Control.cs:
14407           - Rewrote the collection stuff. Might not be as fast now, not
14408             keeping the number of children around and accessible directly, but
14409             it's more straightforward
14410
14411 2004-08-11 07:44  pbartok
14412
14413         * AccessibleObject.cs:
14414           - Fixed to match ControlCollection rewrite
14415
14416 2004-08-11 07:43  pbartok
14417
14418         * ImageList.cs:
14419           - Added missing creation of the collection list
14420
14421 2004-08-10 20:08  jackson
14422
14423         * StatusBar.cs: Get the paint message from WndProc
14424
14425 2004-08-10 19:31  jackson
14426
14427         * ThemeWin32Classic.cs: Create Brushes as little as possible
14428
14429 2004-08-10 19:20  jackson
14430
14431         * UICues.cs: Add Flags attribute
14432
14433 2004-08-10 19:19  jackson
14434
14435         * StatusBarPanel.cs: Signature cleanup
14436
14437 2004-08-10 19:10  jackson
14438
14439         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14440           Initial implementation of status bar item drawing
14441
14442 2004-08-10 17:27  jordi
14443
14444         * TrackBar.cs: add missing methods, properties, and restructure to
14445           hide extra ones
14446
14447 2004-08-10 16:24  jackson
14448
14449         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14450           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14451           attribute
14452
14453 2004-08-10 13:21  jordi
14454
14455         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14456           enhancements and standarize on win colors defaults
14457
14458 2004-08-10 12:52  jackson
14459
14460         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14461           ThemeWin32Classic.cs: Implement DrawItem functionality
14462
14463 2004-08-10 12:47  jordi
14464
14465         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14466
14467 2004-08-10 12:32  jordi
14468
14469         * Control.cs: throw ontextchange event
14470
14471 2004-08-10 11:43  pbartok
14472
14473         * Control.cs:
14474           - Added more to the still unfinished Dock/Anchor layout code
14475
14476 2004-08-10 11:39  pbartok
14477
14478         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14479           - Added GetWindowPos method
14480
14481 2004-08-10 11:36  pbartok
14482
14483         * XplatUIWin32.cs:
14484           - Implemented several methods
14485
14486 2004-08-10 09:47  jackson
14487
14488         * TrackBar.cs: Allow control to handle buffering
14489
14490 2004-08-10 09:41  jackson
14491
14492         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14493
14494 2004-08-10 09:24  jackson
14495
14496         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14497
14498 2004-08-10 09:09  jackson
14499
14500         * StatusBar.cs: Let Control handle all the buffering.
14501
14502 2004-08-10 09:08  jackson
14503
14504         * Control.cs: Control will now handle the buffering code, so each
14505           control does not have to implement this.
14506
14507 2004-08-10 08:34  jackson
14508
14509         * XplatUIDriver.cs: Use default colors from the theme
14510
14511 2004-08-09 17:12  pbartok
14512
14513         * ImageList.cs:
14514           - Fixed several bugs Ravindra pointed out
14515
14516 2004-08-09 16:11  pbartok
14517
14518         * Control.cs:
14519           - Added incomplete dock layout code
14520           - Added support for mouse wheel
14521
14522 2004-08-09 16:09  pbartok
14523
14524         * XplatUIX11.cs:
14525           - Added handling for middle and right mousebutton
14526           - Added handling for mouse wheel
14527           - Added handling for key state and mouse state and position
14528           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14529           messages
14530
14531 2004-08-09 15:40  jackson
14532
14533         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14534           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14535           checkin
14536
14537 2004-08-09 15:37  jackson
14538
14539         * StatusBar.cs: Initial implementation of StatusBar
14540
14541 2004-08-09 15:36  jackson
14542
14543         * ITheme.cs: Add support for drawing status bar and getting status
14544           bar item sizes
14545
14546 2004-08-09 15:35  pbartok
14547
14548         * MouseButtons.cs:
14549           - Fixed values
14550
14551 2004-08-09 15:34  jackson
14552
14553         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14554           status bar item sizes
14555
14556 2004-08-09 15:21  jackson
14557
14558         * ThemeWin32Classic.cs: Use known colors for default control
14559           colours
14560
14561 2004-08-09 15:12  jackson
14562
14563         * ThemeWin32Classic.cs: Make the default font static, it is static
14564           in control so this doesn't change functionality and creating fonts
14565           is sloooooow.
14566
14567 2004-08-09 14:56  pbartok
14568
14569         * X11Structs.cs:
14570           - Added GrabMode enum
14571
14572 2004-08-09 14:55  pbartok
14573
14574         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14575           - Removed Run method, was only required for initial development
14576
14577 2004-08-09 14:51  pbartok
14578
14579         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14580           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14581           capture
14582
14583 2004-08-09 13:48  pbartok
14584
14585         * XplatUIX11.cs:
14586           - Fixed default sizing for child windows
14587
14588 2004-08-09 12:56  pbartok
14589
14590         * XplatUIX11.cs:
14591           - Added generation of WM_DESTROY message
14592           - Added handling of window manager induced shutdown
14593
14594 2004-08-09 11:31  jackson
14595
14596         * ThemeWin32Classic.cs: New names for control properties
14597
14598 2004-08-09 11:25  jackson
14599
14600         * Control.cs: Use new color names
14601
14602 2004-08-09 11:02  jackson
14603
14604         * XplatUI.cs: Get default window properties from the theme
14605
14606 2004-08-09 11:01  jackson
14607
14608         * ITheme.cs: The theme engine now controls default window
14609           properties
14610
14611 2004-08-09 11:00  jackson
14612
14613         * ThemeWin32Classic.cs: Add default window color properties
14614
14615 2004-08-09 10:17  jackson
14616
14617         * ThemeWin32Classic.cs: Use correct default back color
14618
14619 2004-08-09 10:05  jackson
14620
14621         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14622           the theme now.
14623
14624 2004-08-09 09:56  jackson
14625
14626         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14627
14628 2004-08-09 09:54  jackson
14629
14630         * Control.cs: Get default properties from the theme.
14631
14632 2004-08-09 09:53  jackson
14633
14634         * ITheme.cs: Themes now handle default control properties
14635
14636 2004-08-09 09:53  jackson
14637
14638         * ThemeWin32Classic.cs: Themes now handle default control
14639           properties so coloring will be consistent
14640
14641 2004-08-08 16:54  jordi
14642
14643         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14644
14645 2004-08-08 15:08  jordi
14646
14647         * XplatUIX11.cs: fixes keyboard crash
14648
14649 2004-08-08 13:47  jordi
14650
14651         * Label.cs: add cvs header info
14652
14653 2004-08-08 12:09  jackson
14654
14655         * ThemeWin32Classic.cs: Add pen_buttonface
14656
14657 2004-08-08 11:52  jordi
14658
14659         * Label.cs, LinkLabel.cs: [no log message]
14660
14661 2004-08-08 11:34  jordi
14662
14663         * ThemeWin32Classic.cs: Use Windows Standard Colours
14664
14665 2004-08-07 17:32  jordi
14666
14667         * TrackBar.cs: throw exceptions of invalid enums values
14668
14669 2004-08-07 17:31  jordi
14670
14671         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14672           draw method name
14673
14674 2004-08-07 16:56  jackson
14675
14676         * HorizontalAlignment.cs: Initial checkin
14677
14678 2004-08-07 13:16  jordi
14679
14680         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14681           methods
14682
14683 2004-08-07 13:05  jordi
14684
14685         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14686           GetSysColor defines
14687
14688 2004-08-06 18:01  pbartok
14689
14690         * ThemeWin32Classic.cs:
14691           - Fixed some rounding issues with float/int
14692
14693 2004-08-06 18:00  jackson
14694
14695         * DockStyle.cs, AnchorStyles.cs:
14696
14697                   Add flags and serializable attributes.
14698
14699 2004-08-06 17:46  pbartok
14700
14701         * XplatUIX11.cs:
14702           - Implemented GetParent
14703
14704 2004-08-06 17:18  pbartok
14705
14706         * TrackBar.cs:
14707           - Fixed some rounding issues with float/int
14708
14709 2004-08-06 17:17  pbartok
14710
14711         * X11Structs.cs, XplatUIX11.cs:
14712           - Fixed Refresh and Invalidate
14713
14714 2004-08-06 15:30  pbartok
14715
14716         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14717           - Fixed recursive loop when resizing
14718           - Improved/fixed redrawing on expose messages
14719
14720 2004-08-06 09:53  jordi
14721
14722         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14723           keyboard navigation
14724
14725 2004-08-06 08:02  pbartok
14726
14727         * X11Structs.cs, XplatUIX11.cs:
14728           - Fixed reparenting
14729           - Fixed window border creation
14730
14731 2004-08-05 15:38  pbartok
14732
14733         * XplatUIX11.cs:
14734           - Attempted fix for reparenting problems
14735
14736 2004-08-04 15:14  pbartok
14737
14738         * Control.cs:
14739           - Fixed Invalidation bug (calculated wrong client area)
14740           - Added ClientSize setter
14741
14742 2004-08-04 15:13  pbartok
14743
14744         * Form.cs:
14745           - Added AutoScale properties
14746
14747 2004-08-04 15:13  pbartok
14748
14749         * SWF.csproj:
14750           - Added latest files
14751
14752 2004-08-04 14:11  pbartok
14753
14754         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14755           XplatUIX11.cs:
14756           - Added Invalidate handling
14757
14758 2004-08-03 17:09  jordi
14759
14760         * XplatUIDriver.cs: fixes spelling mistake
14761
14762 2004-07-27 09:53  jordi
14763
14764         * TrackBar.cs: fixes trackbar events, def classname, methods
14765           signature
14766
14767 2004-07-27 09:29  jordi
14768
14769         * ScrollBar.cs: fixes scrollbar events
14770
14771 2004-07-27 04:38  jordi
14772
14773         * Control.cs: changes to be able to run winforms samples
14774
14775 2004-07-26 11:42  jordi
14776
14777         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14778           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14779
14780 2004-07-26 05:41  jordi
14781
14782         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14783           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14784           implementation
14785
14786 2004-07-22 09:22  jordi
14787
14788         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14789           check link overlapping, implement events, and fixes
14790
14791 2004-07-21 10:28  jordi
14792
14793         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14794
14795 2004-07-21 10:19  jordi
14796
14797         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14798           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14799           LinkLabelLinkClickedEventArgs.cs,
14800           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14801           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14802           implementation
14803
14804 2004-07-19 13:09  jordi
14805
14806         * Control.cs, Label.cs: label control re-written: added missing
14807           functionlity, events, and properties
14808
14809 2004-07-19 10:49  jordi
14810
14811         * Control.cs: fixes SetBounds logic
14812
14813 2004-07-19 01:29  jordi
14814
14815         * Control.cs: Call RefreshWindow only if the window has created
14816
14817 2004-07-15 14:05  pbartok
14818
14819         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14820           - Implemented ImageList and ImageList.ImageCollection classes
14821           - Added ColorDepth enumeration
14822           - Updated SWF VS.Net project
14823
14824 2004-07-15 11:06  jordi
14825
14826         * XplatUIStructs.cs: added MsgButons enum
14827
14828 2004-07-15 11:03  jordi
14829
14830         * Control.cs: added basic mouse handeling events
14831
14832 2004-07-15 03:38  jordi
14833
14834         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14835           Vertical TrackBar control implementation
14836
14837 2004-07-13 09:33  jordi
14838
14839         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14840
14841 2004-07-13 09:31  jordi
14842
14843         * Control.cs, Form.cs: commit: new properties and fixes form size
14844           problems
14845
14846 2004-07-09 14:13  miguel
14847
14848         * ProgressBar.cs: Spelling
14849
14850 2004-07-09 11:25  pbartok
14851
14852         * ProgressBar.cs:
14853           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14854           faster
14855
14856 2004-07-09 11:17  miguel
14857
14858         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14859
14860                 * ProgressBar.cs: Fixed spelling for `block'
14861
14862                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14863                 style guidelines.
14864
14865                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14866
14867 2004-07-08 23:21  pbartok
14868
14869         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14870           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14871           BaseCollection.cs, Binding.cs, BindingContext.cs,
14872           BindingMemberInfo.cs, BindingsCollection.cs,
14873           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14874           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14875           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14876           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14877           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14878           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14879           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14880           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14881           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14882           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14883           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14884           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14885           InputLanguageChangedEventArgs.cs,
14886           InputLanguageChangedEventHandler.cs,
14887           InputLanguageChangingEventArgs.cs,
14888           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14889           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14890           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14891           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14892           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14893           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14894           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14895           QueryAccessibilityHelpEventArgs.cs,
14896           QueryAccessibilityHelpEventHandler.cs,
14897           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14898           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14899           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14900           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14901           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14902           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14903           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14904           XplatUIX11.cs, lang.cs:
14905           - Initial check-in
14906