* LinkLabel.cs (.ctor): SetStyle Selectable to true.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-07-06  Chris Toshok  <toshok@ximian.com>
2
3         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
4         (OnEnableChanged): s/Refresh/Invalidate
5         (OnGotFocus): if we have a focused index already, refocus it (so
6         if we mouse out/in to the window it'll focus the right link).
7         (OnKeyDown): move the tab handling out of here.
8         (OnLostFocus): don't set focused_index to -1, so we can refocus it
9         when we lose focus.
10         (OnMouseDown): don't Capture here - Control handles it.  Also,
11         focus the active link.
12         (OnMouseUp): don't deal with Capture.
13         (OnPaintBackgroundInternal): remove.
14         (OnTextAlignChanged): CreateLinkPieces before calling the
15         superclass's method.
16         (OnTextChanged): call CreateLinkPieces before calling superclass's
17         method.
18         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19         move around.
20         (Select): implement this, moving the selection between different
21         links, and call parent.SelectNextControl if we don't have another
22         link to focus in the given direction.
23         (CreateLinkPieces): call Invalidate instead of Refresh.
24
25 2006-07-06  Chris Toshok  <toshok@ximian.com>
26
27         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
28         new LinkLabel internals.
29
30         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
31         over pieces looking for active/focused/etc links.  also, deal with
32         runs of text (and links) with embedded \n's in them, and use
33         MeasureCharacterRanges instead of MeasureString to figure out the
34         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
35         two-step.
36
37 2006-07-04  Jackson Harper  <jackson@ximian.com>
38
39         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
40         XKB or key auto repeat, do it manually.  Without key auto repeat,
41         when a key is held down we get key press, key release, key press,
42         key release, ... with auto repeat we get key press, key press, key
43         press ..., and then a release when the key is actually released.
44
45 2006-07-03  Jackson Harper  <jackson@ximian.com>
46
47         * TabControl.cs:
48         * ThemeWin32Classic.cs: Tabs do not obey normal background color
49         rules, they are always control color regardless of the background
50         color.
51
52 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
53
54         * FileDialog.cs: Added internal class MWFConfig.
55           Removed Registry support and replaced it with support for the new
56           MWFConfig class. See MWFConfig comments for more information.
57
58 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
59
60         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
61           rectangle. Added some patches from eno from bug #78490 and fixed
62           the arrow position for small up and down CPDrawScrollButtons.
63
64 2006-06-30  Jackson Harper  <jackson@ximian.com>
65
66         * InternalWindowManager.cs: Remove some debug code.
67         * Form.cs: When an MdiParent is set to null, the window is
68         "detatched" and becomes a normal window.
69         * MdiClient.cs: Don't bring the new child form to the front until
70         it is activated (setting it as active does this), this makes the
71         previously active forms titlebar get redrawn as inactive.
72
73 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
74
75         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
76           with later controls
77
78 2006-06-29  Mike Kestner  <mkestner@novell.com>
79
80         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
81         arrow in keynav state.  Fixes #78682.
82
83 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
84
85         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
86           order (fixes #78393)
87
88 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
89
90         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
91           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
92           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
93           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
94           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
95           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
96           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
97           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
98           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
99           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
100           enumerations (FlagsAttribute, SerializableAttribute, added/removed
101           values)
102
103 2006-06-28  Mike Kestner  <mkestner@novell.com>
104
105         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
106
107 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
108
109         * PropertyGrid.cs,
110           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
111           item lines from other area (It also makes BackColor consistent and
112           compatible with .NET). Fixed bug #78564.
113
114 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
115
116         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
117         Patch from Eno for #78555.
118
119 2006-06-27  Chris Toshok  <toshok@ximian.com>
120
121         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
122
123         * DataGridColumnStyle.cs: same.
124
125         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
126         
127         * DataGridDrawingLogic.cs: nuke.
128
129 2006-06-27  Chris Toshok  <toshok@ximian.com>
130
131         * DataGridTableStyle.cs: clean up the constructors, and build the
132         list of child relations for this table.  I have no idea if this is
133         where we should be doing it (it probably isn't), but since we're
134         already iterating over the properties..
135
136         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
137         struct and array for keeping track of row information, similar to
138         what's shown in a hack on
139         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
140
141         * Theme.cs: be consistent about the naming of DataGrid methods,
142         prefering ColumnWidths and RowHeights over columnsWidths and
143         RowsHeights.
144
145         * ThemeWin32Classic.cs: same, and also add support for variable
146         sized rows (and the +/- expansion icons for related rows).
147
148 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
149
150         * TextBoxBase.cs: Applied Eno's patch from #78660
151
152 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
153
154         * Form.cs (ScaleCore): We don't want to scale our form if it's
155           state is minimized or maximized, but we still need to scale our
156           child windows. Also, added try/finally block to ensure layout
157           gets reset (Fixes #78697)
158
159 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
160
161         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
162
163 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
164
165         * Form.cs: Fixed c+p error and added check to resize form if minimum
166           size is bigger than current size (Fixes #78709)
167
168 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
169
170         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
171
172 2006-06-26  Mike Kestner  <mkestner@novell.com>
173
174         * ComboBox.cs: only do Keypress handling in the combo when there  
175         are items in the collection. Fixes #78710.
176
177 2006-06-26  Chris Toshok  <toshok@ximian.com>
178
179         * Binding.cs: make this work bi-directionally.  also, clear up
180         other mixups between Push/Pull Data (e.g. we're supposed to pull
181         data when validating).
182
183         * BindingManagerBase.cs: trim some fully qualified collection
184         types.
185
186         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
187
188 2006-06-23  Chris Toshok  <toshok@ximian.com>
189
190         * PropertyManager.cs: It appears (according to the unit tests)
191         that PropertyManager doesn't use
192         PropertyDescriptor.AddValueChanged to track propery value changes
193         in its datasource, but uses the same scheme as Binding, where it
194         looks for a <Property>Changed event and binds to it.
195
196         Also, according to the docs, IsSuspended always returns false for
197         a property manager with a non-null datasource.
198
199 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
200
201         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
202           need to update the actual DialogResult. (Fixes #78613)
203
204 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
205
206         * Form.cs (ShowDialog): Release any captures before running the
207           new message pump (fixes #78680)
208
209 2006-06-22  Mike Kestner  <mkestner@novell.com>
210
211         * ListView.cs: Layout column widths properly in details mode even 
212         if HeaderStyle.None is set.  Fixes #78691.
213
214 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
215
216         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
217
218 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
219
220         * Control.cs (ContainsFocus): Using new driver method to get focused
221           window, instead of trying to use internal tracking var, which can
222           recursion issues (Fixes #78685)
223         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
224           XplatUIWin32.cs: Added GetFocus method to return focused window
225
226 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
227
228         * ColorDialog.cs: when the mouse button is pressed inside the color
229         matrix, don't let the cursor move out of it until the button is
230         released, which is the behavior on windows. Changed 'colours' by
231         'colors' to use the same word consistently.
232
233 2006-06-21  Chris Toshok  <toshok@ximian.com>
234
235         * DataGrid.cs: add in some basic navigation stuff (navigating to a
236         child relation and back, using a stack).  Also, remove
237         GetDataSource and the code that calls it - it's not needed.  Also,
238         track CurrencyManager.ListName's removal.
239
240 2006-06-21  Chris Toshok  <toshok@ximian.com>
241
242         * CurrencyManager.cs: push some of the original type checking from
243         BindingContext.CreateBindingManager to here, and remove some of
244         the finalType stuff.  Need more tests to make sure I've got the
245         ListName part right, and we might need more in SetDataSource.
246
247         * PropertyManager.cs: add a ctor that takes just the datasource,
248         and no property name.  Make SetDataSource work with a null
249         property_name, and make Current return the data_source if the
250         property descriptor is null.  this makes 'string foo = "hi";
251         BindingContext[foo].Current' return "hi" as it should.
252
253         * RelatedCurrencyManager.cs: make this code more generic - there's
254         no reason the parent manager has to be CurrencyManager, and
255         there's no reason to pass the DataRelation.  It suffices to use a
256         BindingManagerBase and PropetyDescriptor.
257
258         * RelatedPropertyManager.cs: make a similar change here.
259         
260         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
261         flower I knew it could be.
262
263 2006-06-20  Chris Toshok  <toshok@ximian.com>
264
265         * PropertyManager.cs: the PropertyChangedHandler is invoked when
266         data in the source has changed and we need to update the control,
267         so s/PullData/PushData.
268
269         * CurrencyManager.cs: Refresh is meant to update the control from
270         data in the datasource.  So, s/PullData/PushData.
271
272         * BindingContext.cs: add more ugliness (we weren't handling the
273         case where data_source = DataTable and data_member = column_name).
274
275         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
276         from the perspective of the datasource.  PullData pulls from the
277         control, PushData pushes to the control.
278
279 2006-06-20  Chris Toshok  <toshok@ximian.com>
280
281         * BindingContext.cs: rewrite the CreateBindingManager code to
282         handle navigation paths more or less properly.  This could
283         definitely stand some more work, in particular to push the
284         recursion up to the toplevel.  But that relies on fixes in other
285         places (System.Data comes to mind).
286
287         Also, move to a flat hashtable (and encode the twolevel nature of
288         the dictionary into the hash key).  This lets us implement the
289         IEnumerable.GetEnumerator method.
290
291         * RelatedCurrencyManager.cs: new class.  Update our view based on
292         our relation and our parent CurrencyManager's position.
293
294         * CurrencyManager.cs: split out some logic from the ctor into
295         SetView, so it can be called from the new RelatedCurrencyManager
296         subclass.
297
298         * RelatedPropertyManager.cs: new class.  Update our datasource
299         based on the position of our parent CurrencyManager.
300
301         * PropertyManager.cs: split out some logic from the ctor into
302         SetDataSource, so it can be called from the new RelatedDataSource
303         subclass.  Also, make the Current getter return the value
304         of the PropertyDescriptor, not the data_source.
305
306         * Binding.cs: no need to duplicate the string splitting code here.
307
308 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
309
310         * Control.cs:
311           - set_Enabled: OnEnabledChanged is not called if the inherited state 
312             of the control is not altered, even though  we might be changing the
313             internal state of the control (#78458)
314           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
315             OnEnabledChanged, to allow easy altering of any child window state
316           - OnEnabledChanged: Added code to enable/disable driver window state
317           - OnParentEnabledChanged: Instead of firing the event, call 
318             OnEnabledChanged, which will fire the event and also a) set driver
319             window state and pass the enabled state to any grandchildren (#78458)
320
321 2006-06-19  Jackson Harper  <jackson@ximian.com>
322
323         * InternalWindowManager.cs: We don't set the cursor explicitly
324         thats done via the response to NCHITTESTs.
325         - Don't need to adjust for titlebar heights anymore, the
326         coordinates are coming in the correct coordinates now (see peters
327         last patch).
328
329
330 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
331
332         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
333           being translated relative to whole window, instead of client window.
334           That caused broken offsets on mouseclick (and caused gas for our
335           InternalWindowManager)
336
337 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
338
339         * TextControl.cs:
340           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
341           - Undo(): Added replay of cursor move on DeleteChars action; added
342             calling Undo() again if a recorded cursor move is invalid (to
343             ensure that some action is performed on Undo)
344         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
345
346 2006-06-16  Jackson Harper  <jackson@ximian.com>
347
348         * MdiClient.cs: Instead of just sizing maximized windows when
349         there is a resize we also have to adjust the Y of minimized
350         windows, so they stay pinned to the bottom of the mdi container.
351         - Eliminate separate tracking of the active control, we can just
352         get this from the controls collection.
353         - Paint the decorations for the newly activated titlebar so we get
354         a pretty blue bar.
355         * InternalWindowManager.cs:
356         * ThemeWin32Classic.cs: Minimized windows get all three buttons
357         even if they are a tool window.
358         
359 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
360
361         * TextControl.cs (Undo): Handle non-existent cursor locations in the
362           undo buffer, these can happen when text was deleted and the cursor
363           was recorded first. Since we will also have a recorded cursor
364           after the delete this is not an issue. (Fixes #78651)
365
366 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
367
368         * AccessibleObject.cs: Remove dependence on Control.is_selected;
369           instead properly track control states internally (allows us to
370           remove is_selected from Control)
371
372 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
373
374         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
375         whose width is not a multiple of 8.
376
377 2006-06-13  Jackson Harper  <jackson@ximian.com>
378
379         * MdiClient.cs:  Only maximize the next child if the current one
380         is maximized.
381
382 2006-06-13  Chris Toshok  <toshok@ximian.com>
383
384         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
385         modified.  Also, guard against grid or grid_drawing being null in
386         Invalidate.
387
388         * DataGrid.cs: Reformat tons of getters/setters.  In the
389         DataMember setter, just call SetNewDataSource instead of
390         duplicating some of its functionality.  In SetNewDataSource, don't
391         check ListManager for null, since the property getter creates the
392         object if needed.
393
394         * DataGridTableStyle.cs: don't set TableStyle or call
395         SetDataGridInternal on the column here, it's done in
396         GridColumnStylesCollection.Add.
397
398         * GridColumnStylesCollection.cs: fix all the explicit interface
399         implementations to just call our methods.  Nuke AddInternal() and
400         move the body of it to Add().  Also, add a call to
401         column.SetDataGridInternal to Add().
402
403         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
404         base()+duplicate code.  Also, use the Format property instead of
405         format to generate an Invalidate ala MS.  Lastly, create the
406         textbox here, unconditionally.
407         (set_Format): call Invalidate.
408         (get_TextBox): no need to call EnsureTextBox.
409         (Commit): remove the message box.
410         (Edit) remove the call to EnsureTextBox.
411         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
412         (EnterNullValue): no need to check textbox for null.
413         (HideEditBox): no need to check textbox for null.
414         (SetDataGridInColumn): add the textbox to the grid's controls.
415         (EnsureTextBox): nuke.
416         
417 2006-06-13  Jackson Harper  <jackson@ximian.com>
418
419         * MdiWindowManager.cs: Hook up to the maximized menus paint event
420         and redraw the buttons when needed. Unhook when the window is
421         unmaximized.
422         * MainMenu.cs: Add an internal Paint event, the mdi window manager
423         needs this so that it can redraw its buttons when the menu is
424         repainted.
425         * InternalWindowManager.cs:
426         * Form.cs: The method order has changed for DrawMaximizedButtons,
427         so that it can be a PaintEventHandler.
428         
429 2006-06-13  Jackson Harper  <jackson@ximian.com>
430
431         * MdiClient.cs: When we close a maximized mdi window, the next mdi
432         window is activated and maximized, even if it wasn't before.
433         - When  a new window is activated repaint the decorations of the
434         old one, so that it no longer has the Active "look" (the blue
435         titlebar).
436         * InternalWindowManager.cs: Open up CreateButtons to base classes
437         so they can recreate the buttons on state changes.
438         - If a window is maximized give it all three buttons
439         * MdiWindowManager.cs: Create the titlebar buttons when the state
440         is changed, this is needed because a toolwindow will not have all
441         three buttons until it is maximized.
442
443 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
444
445         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
446           Fixed bug #78609.
447
448 2006-06-12  Jackson Harper  <jackson@ximian.com>
449
450         * KeysConverter.cs: Make sure we handle the Ctrl special case
451         if its the only key.
452         
453 2006-06-12  Jackson Harper  <jackson@ximian.com>
454
455         * Theme.cs: Add a method to get the size of a managed window
456         toolbar button.
457         * InternalWindowManager.cs: Remove the ButtonSize property, this
458         should be retrieved from the theme.
459         * MdiWindowManager.cs: Get the button size from the theme
460         * ThemeWin32Classic.cs: Make the method to get the managed window
461         titlebar button size public.
462         - Handle the different button sizes of maximized toolwindows
463         (should match any maximized window).
464         - Get the titlebar height from the theme, not the WM (which gets
465         it from the theme).
466
467 2006-06-12  Jackson Harper  <jackson@ximian.com>
468
469         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
470         event down to the mdi window manager.
471         - Expose some extra stuff to base classes
472         - Make sure to end the Capture on an NC Mouse up, so that we can
473         get double clicks properly, and the sizing doens't stick.
474         - When doing PointToClient contain it in the workable desktop
475         area, this prevents windows from changing size when the cursor is
476         pulled outside of the working area while sizing.
477         * MdiWindowManager.cs: When we get a double click maximize the
478         window.
479         - Reset the cursor after handling mode changes.
480
481 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
482
483         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
484           current desktop, instead of just assuming a 0, 0 origin. This
485           is needed for our internal window manager, to know the top
486           margin of the desktop
487
488 2006-06-12  Chris Toshok  <toshok@ximian.com>
489
490         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
491         we need this to get rid of the selected background in the bool
492         column.
493         (CancelEditing): move the ConcedeFocus call to above the Abort
494         call.  Also, set is_changing to false and invalidate the row
495         header if we were changing before.
496         (ProcessKeyPreviewInternal): remove, since noone outside this
497         class calls it anymore.  Roll the code into ProcessKeyPreview.
498         (EndEdit): remove the internal version.
499         (InvalidateCurrentRowHeader): make private.
500
501         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
502         Keys.Escape handling (and with it the last call to
503         DataGrid.EndEdit from outside the class.)
504
505
506 2006-06-12  Chris Toshok  <toshok@ximian.com>
507
508         * DataGridTextBox.cs (.ctor): isedit defaults to false.
509         (OnKeyPress): set isedit to true.
510         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
511         already handled by the grid.
512
513         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
514         right.  ugh.
515         (set_DataSource): SetDataSource always returns true, so stop
516         putting it in an if statement.
517         (EndEdit): get rid of some {}'s
518         (ProcessGridKey): return true in case Keys.Escape.
519         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
520         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
521         PositionChanged, stopped connecting to CurrentChanged.
522         (GetDataSource): simplify this a bunch.
523         (SetDataSource): change return type from bool to void.
524         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
525         to this, and make sure we don't set ListManager.Position inside
526         set_CurrentCell.
527         (OnListManagerItemChanged): if we're passed an actual index,
528         redraw that row.
529
530         * CurrencyManager.cs (set_Position): don't call PullData here.
531
532 2006-06-09  Jackson Harper  <jackson@ximian.com>
533
534         * TreeNode.cs:  Recalculate the visible order before doing the
535         Expand/Collapse Below calls, because those calls generate an
536         expose.
537         - Reduce calls to the TreeView property, which is mildly expensive
538         by using a local var.
539         * Form.cs: Layout the MDI child windows when creating the parent
540         form.
541         - Don't use the internal constructor anymore
542         * MdiClient.cs: use the parent form width/height (if available)
543         when laying out the child windows, we do this because the
544         mdiclient isn't docked yet when the initial layout is done.
545         - Don't need an internal constructor anymore.
546
547 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
548
549         * FileDialog.cs: handle access errors when trying to create a folder
550         or changing to a directory. No need to initialize out parameters.
551
552 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
553
554         * FileDialog.cs: Append a number when creating a new folder if the
555           folder already exists (use parenthesis instead of square brackets)
556
557 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
558
559         * FileDialog.cs:
560           - Disabled registry support for windows and added better registry
561             error checking for other systems (need to investigate why it
562             works perfectly on my system)
563           - If a folder already exist show an error MessageBox instead of
564             trying to create an indexed name.
565           - Fixed a non intentional typo.
566
567 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
568
569         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
570
571 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
572
573         * FileDialog.cs: When creating a new folder don't crash if the
574           folder already exists.
575
576 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
577
578         * FileDialog.cs: Allmost a complete rewrite.
579           - added a "virtual" file system that handles the differences
580             between unix and windows file systems (especially the directory
581             structure). Moved most of the directory and file handling code
582             into the vfs.
583             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
584             UnixFileSystem and FSEntry.
585           - Recently used folder/directory, size, location and used file names
586             (file name ComboBox) are now stored in the registry and get read
587             before the dialog shows up (fixes part 6 of bug #78446).
588           - Creation of new folders/directories is now possible (context menu
589             or ToolBar). Added TextEntryDialog for this that fills in the gap
590             until ListView.LabelEdit works.
591           - Fixed cursor handling (bug #78527) and focus handling for
592             PopupButtonPanel
593           - Various "Search in" ComboBox enhancements. The content of the
594             dropdown listbox now almost matches ms.
595           - Changed the behaviour when the user switches to SpecialFolder
596             Recent to show the ListView in View.Details.
597           - Beside using the ToolBar to change the View property of the
598             file ListView it is now possible to use the context menu too.
599
600 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
601
602         * ComboBox.cs: Don't create a new ObjectCollection when an item
603           gets inserted. Just insert the item in the existing object_items
604           ArrayList.
605
606 2006-06-08  Jackson Harper  <jackson@ximian.com>
607
608         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
609         that the treeview and root node checks are done also, this fixes a
610         regression i caused in the unit tests.
611
612 2006-06-07  Wade Berrier <wberrier@novell.com> 
613
614         * RichTextBox.cs: More ISO8859-1 -> unicode
615
616 2006-06-07  Mike Kestner  <mkestner@novell.com>
617
618         * ComboBox.cs : use items to hold highlight/selection so that
619         collection insertions don't require synchronization.
620
621 2006-06-07  Jackson Harper  <jackson@ximian.com>
622
623         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
624         routine.  We now always keep the sized edge at the cursor instead
625         of computing movement and adjusting rects.  There is one buglet
626         with this method though when the cursor is moved over area that
627         the window can not expand too (such as the toolbars on the desktop).
628
629 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
630
631         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
632         here. Fixes crash on startup in AlbumSurfer.
633
634 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
635
636         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
637           values
638
639 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
640
641         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
642         statement to avoid calling XNextEvent which will block if another thread
643         took the event that we were expecting. Fixes bug #78605.
644
645 2006-06-07  Mike Kestner  <mkestner@novell.com>
646
647         * ListView.cs : isolated checkbox clicking from the selection logic.
648         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
649
650 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
651
652         * Form.cs: Check that the value passed to Form.DialogResult
653         is a valid enum value.
654
655 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
656
657         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
658         Computer'. Clicking it in the network view goes to 'My Computer'.
659         Added CIFS filesystem type. Display the mount point of filesystems.
660         Avoid duplicate mount points (happens for me with CIFS);
661
662 2006-06-06  Jackson Harper  <jackson@ximian.com>
663
664         * InternalWindowManager.cs: Draw the maximized windows buttons
665         when resizing.
666
667 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
668
669         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
670         all other dialogs. Fixes bug #78585.
671
672 2006-06-06  Mike Kestner  <mkestner@novell.com>
673
674         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
675         Only invalidate checkbox on checkstate changes to avoid flicker.
676         * ListBox.cs : avoid unselect/select when clicking selected item.
677         avoid reselection flicker for already multiselected items.
678         Fixes #78382.
679
680 2006-06-06  Jackson Harper  <jackson@ximian.com>
681
682         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
683         the parent form so that the menu is removed if needed.
684
685 2006-06-06  Mike Kestner  <mkestner@novell.com>
686
687         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
688         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
689
690 2006-06-06  Mike Kestner  <mkestner@novell.com>
691
692         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
693
694
695 2006-06-06  Jackson Harper  <jackson@ximian.com>
696
697         * Control.cs: Use the property (instead of the field) to get the
698         default cursor so it is instantiated correctly.
699         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
700         resizes so we need to manually repaint the window decorations here.
701         - Set the titlebar button locations as soon as they are created,
702         otherwise they are not set correctly on win32.
703         
704 2006-06-06  Chris Toshok  <toshok@ximian.com>
705
706         * CurrencyManager.cs (set_Position): call PullData before
707         OnCurrentChanged.
708         (AddNew): after calling IBindingList.AddNew, update our
709         listposition, and call OnCurrentChanged/OnPositionChanged (without
710         calling PullData).
711         (OnCurrentChanged): remove the call to PullData from here.
712         (OnItemChanged): remove the call to PushData from here.
713         (OnPositionChanged): change the test from == null to != null to
714         match the other methods.
715         (ListChangedHandler): the grossest part of the patch.  Implement
716         this such that it passes the unit tests in CurrencyManagerTest and
717         the output more or less matches that of MS's implementation.
718  
719 2006-06-06  Mike Kestner  <mkestner@novell.com>
720
721         * ListView.cs : only update check state on single click.
722         * ThemeWin32Classic.cs : fix focus drawing for details view without
723         fullrowselect.  Fixes #78454.
724         * XplatUIX11.cs : fix for double click emission.
725
726 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
727
728         * PropertyGridView.cs : Applied Atsushi's patch to fix
729         font dialog bug  (#78197).
730
731 2006-06-05  Jackson Harper  <jackson@ximian.com>
732
733         * TreeNode.cs: Compute the next node for expanding/collapsing
734         correctly. We now factor in nodes without a NextNode
735         correctly. (Fixes somes cases in nunit-gui).
736         * InternalWindowManager.cs: Set the bounds when updating the
737         virtual position of a tool window.
738         
739 2006-06-05  Chris Toshok  <toshok@ximian.com>
740
741         * DataGrid.cs: rename cached_currencymgr to list_manager.
742         (set_CurrentCell): move SetCurrentCell code here, and clean it up
743         some.
744         (CurrentRow, CurrentColumn): single accessors so we can make the
745         cursor movement code a lot easier to understand.
746         (CurrentRowIndex): implement this in terms of CurrentRow.
747         (BeginEdit): clean this up a bit.
748         (CancelEditing): sort out the is_editing/is_changing/is_adding
749         stuff a little.
750         (EndEdit): minor changes.
751         (OnKeyDown): add a comment about a (most likely) unnecessary
752         check.
753         (OnMouseDown): cancel editing when we click on a row header.  And
754         use the CurrentRow setter, not CurrentCell.
755         (ProcessDialogKey): directly call ProcessGridKey.
756         (UpdateSelectionAfterCursorMove): factor out this common block of
757         code (it's used everywhere that we move the cursor by updating row
758         or column).
759         (ProcessGridKey): pretty substantial overhaul.  Use the
760         CurrentRow/CurrentColumn properties to make the code a lot more
761         readable.  Only use the CurrentCell property when we have to
762         modify both row and column at once.  Tab behavior is still broken,
763         and Delete is untested.
764         (Select): if we have no selected rows, set selection_start to
765         @row.
766         (EditCurrentCell): rename EditCell this.  It was only ever invoked
767         with CurrentCell as the arg, so drop the arg and rename it.
768
769         * DataGridColumnStyle.cs: clean up the constructors a little, and
770         drop CommonConstructor().
771
772         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
773         actually get notified when the user hits it.
774         (ProcessKeyMessage): *substantially* simplify this method.
775         There's no reason (that I can see) for the textbox to be making
776         calls into the datagrid at all.  Remove all of them but the ones
777         for Enter handling.  those will take some more work.
778
779         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
780         calling HideEditBox.
781         (HideEditBox): if we have an active textbox, render it invisible
782         without causing a re-layout of the datagrid.
783
784 2006-06-05  Mike Kestner  <mkestner@novell.com>
785
786         * ListView.cs : fix NRE crasher when focuseditem is cleared by
787         collection changes by resetting it to Items[0].  Fixes #78587.
788
789 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
790
791         * MessageBox.cs: if the height of the text is larger than the icon_size,
792         use that. Fixes bug #78575.
793
794 2006-06-05  Jackson Harper  <jackson@ximian.com>
795
796         * TreeView.cs: Fix line drawing when scrolling.  To do this each
797         node is basically responsible for drawing its entire horizontal
798         area.  When drawing a node it draws its parent node lines if
799         needed.
800         - Adjust the clip area to the viewport rectangle
801         - Fix Left/Right key handling to match MS. (It expand/collapses
802         and moves to parents/first child but does not move selection to
803         sibling nodes).
804         - Fix SetTop to work with new bound calculation code
805         - When scrollbars are no longer needed we need to reset scrolling
806         vars and recalculate the visible order so the redraw is correct
807         * TreeNode.cs: We can't expand/collapse nodes with no children.
808
809 2006-06-03  John Luke  <john.luke@gmail.com> 
810
811         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
812         so the colors work without dev packages
813         
814 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
815
816         * Control.cs 
817           - Select: Implemented to just use activate. Seems to match MS 
818             behaviour closest. Documented to only do actual control walking 
819             based on it's parameters if in a container control so I moved 
820             the code there.
821           - Removed selection check logic from our internal Select() method
822         * ContainerControl.cs:
823           - Select: Moved selection logic from Control here, since MS documents
824             that containers obey the bool arguments. No longer calling base
825
826 2006-06-02  Jackson Harper  <jackson@ximian.com>
827
828         * TreeView.cs: If the selected node isn't changed when we get
829         focus update the previously selected node so that we see the
830         selection box.
831
832 2006-06-02  Mike Kestner  <mkestner@novell.com>
833
834         * ComboBox.cs: restructure grab and general mouse event handling.
835         Make the composite control raise mouse events like it was a single
836         control for leaves/enters/motion/up/down events.  fix dropdown list
837         coordinate mangling and refactor it into the scrollbar subclass to
838         reduce code duplication.  Fixes #78282 #78361 and #78457.
839
840 2006-06-02  Mike Kestner  <mkestner@novell.com>
841
842         * ScrollBar.cs: remove Capture setting/clearing, as it happens
843         automatically in the Control.WndProc.
844
845 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
846
847         * FileDialog.cs: fix crash when running SharpChess, which sets the
848         FilterIndex to 2 with only one Filter.
849
850 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
851
852         * ToolBar.cs: add SizeSpecified property.
853         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
854         try to figure out our real size, otherwise fallback to what the
855         container says.
856
857 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
858
859         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
860         * Control.cs (WndProc): MS always calls the DefWndProc to pass
861           up the event
862
863 2006-06-01  Mike Kestner  <mkestner@novell.com>
864
865         * ListView.cs: revamp the focus management in ListView.  It still
866         causes churn of LostFocus/GotFocus emissions on clicks, but it's
867         better than not handling focus at all.  Will revisit when pdb feels
868         the general focus handling is solid.  Fixes #78526.
869
870 2006-06-01  Jackson Harper  <jackson@ximian.com>
871
872         * TreeView.cs: Set the default border style in the constructor.
873         - Move painting to use OnPaintInternal instead of capturing
874         WM_PAINT, this is the correct way of doing things
875         - UpdateBelow shouldn't invalidate the scrollbar area
876         - Cap the top on update below in case the node was above the top
877         of the viewport rectangle.
878         - ExpandBelow and Collapse below need to obey Begin/End Update.
879         * TreeNode.cs: Make is_expanded internal so the treenode
880         collection can change it without firing the whole event chain.
881         * TreeNodeCollection.cs: When clearing all the child nodes make
882         sure to recalc the visible order.
883         - Improve algo for remove the top node
884
885 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
886
887         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
888           SendMessage directly calling window procedures, which in turn might
889           call SetFocus()
890
891 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
892
893         * Control.cs: Don't handle WM_SETFOCUS if the same window already
894           has focus (works around X11 sending a FocusIn after our SetFocus)
895         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
896
897 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
898
899         * Mime.cs: Fix for the NET_2_0 build.
900           NameValueCollection needs StringComparer now.
901
902 2006-05-31  Chris Toshok  <toshok@ximian.com>
903
904         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
905         return (via an out parameter) the starting X of the column.
906         (UpdateVisibleColumn): track change to FromPixelToColumn.
907         (HitTest): add a ColumnResize case here.
908         (DrawResizeLine): new function, probably poorly named.
909
910         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
911         only need to keep one reference.
912         (set_ListManager): same.
913         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
914         Also, add support for HitTestType.ColumnResize.
915         (OnMouseMove): add column resize behavior here, and change the
916         cursor to the correct one as we move around the datagrid.
917         (OnMouseUp): terminate the column resize if we're resizing.
918         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
919         for the current cell.
920         (ConnectListManagerEvents): use cached_currencymgr.
921         (DisconnectListManagerEvents): fill this in, using
922         cached_currencymgr.
923         (SetCurrentCell): remove cached_currencymgr_events handling.
924         (SetDataMember): only call DisconnectListManagerEvents if
925         cached_currencymgr is != null.
926         (SetDataSource): same.
927         (OnListManagerCurrentChanged): cached_currencymgr_events ->
928         cached_currencymgr.
929
930 2006-05-31  Jackson Harper  <jackson@ximian.com>
931
932         * BindingManagerBase.cs: Remove somedebug code that creeped into
933         SVN.
934         * TreeNode.cs: We get the indent level dynamically right now, so
935         don't track it as a member.
936         * TreeNodeCollection.cs: Make sure all nodes added to the list
937         have parents, treeviews/topnodes setup properly.
938         - Don't attempt to track indent level.
939
940 2006-05-30  Jackson Harper  <jackson@ximian.com>
941
942         * BindingContext.cs: Create the currency manager tables here.
943         This allows us to more easily create null tables (when bad data
944         members are used), and more easily create related currency
945         managers.
946         * CurrencyManager.cs: All the table creation stuff is done by the
947         binding context now.
948         - Current should throw an exception if listposition is -1.
949         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
950         been bound yet.
951
952 2006-05-30  Mike Kestner  <mkestner@novell.com>
953
954         * ListView.cs: allow reexpansion of zero-width column headers.
955         Fixes #78528.
956
957 2006-05-28  Chris Toshok  <toshok@ximian.com>
958
959         * CurrencyManager.cs (get_Current): after the late binding
960         listposition = -1 fix, we need to guard against it here and return
961         null, otherwise we raise an exception (which is swallowed
962         elsewhere, and breaks datagrid databinding.)
963
964 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
965
966         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
967           than WM_SYSKEY, don't throw if get something unexpected (#78507)
968
969 2006-05-26  Jackson Harper  <jackson@ximian.com>
970
971         * ControlPaint.cs:
972         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
973         values, it's faster and it's all we care about (we don't care if
974         the names aren't equal).
975         * KeyboardLayouts.cs: Eliminate some dead code.
976         - Lazy init things
977         * X11Keyboard.cs: Lazy init keyboard detection.
978         - Cleanup access modifiers a little.
979
980 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
981
982         * XplatUIX11.cs: Once again, attempting to get layout just right.
983
984 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
985
986         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
987           the sizes of each link section, that will result in sizes that
988           match DrawString's layout (Fixes #78391)
989
990 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
991
992         * FileDialog.cs: If AddExtension property is true autocomplete the
993           extensions in SaveFileDialog correctly. Fixes bug #78453.
994           Set MyNetwork and MyComputer to "C:\" for windows. This should
995           fix part 8 of bug #78446 for now.
996
997 2006-05-26  Chris Toshok  <toshok@ximian.com>
998
999         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
1000         invalidate the current row header if we need to, but presumably
1001         we'll invalidate the row corrsponding to the bounds or
1002         editingControl.
1003         (GridHScrolled): switch back to this method, as it's part of the
1004         public api.  *sigh*.
1005         (GridVScrolled): same.
1006         (OnMouseWheel): hack up something that more or less works.  Call
1007         GridHScrolled/GridVScrolled directly, instead of duplicating much
1008         of their code here.
1009         (EnsureCellVisibility): reinstate a bunch of this code, since we
1010         can't just set the scrollbar Value and expect to do all the work
1011         in the ValueChanged handler.  Also, Call Update() after scrolling
1012         in one direction so the other XplatX11.ScrollWindow call has the
1013         proper stuff in the proper places.
1014         (EditCell): set is_editing to true before calling .Edit.
1015
1016         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
1017         don't bother comparing first.
1018         (OnKeyPress): call grid.ColumnStartedEditing before calling
1019         base.OnKeyPress.  this will set is_changing and invalidate the row
1020         header if necessary.
1021         (ProcessKeyMessage): for WM_CHAR messages, call
1022         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
1023         and WM_KEYDOWN.
1024         
1025         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
1026         it's done in the DataGrid.
1027         (NextState): call grid.ColumnStartedEditing, which takes care of
1028         invalidating the row header (and setting is_changing).
1029
1030         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
1031         here.  it's done in the DataGrid.
1032
1033 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1034
1035         * Control.cs: allow changing the cursor when the mouse position is
1036         out of bounds but Capture is set.
1037         * LinkLabel.cs: handle the case when the mouse button is pressed on the
1038         linklabel but released somewhere else.
1039
1040 2006-05-25  Jackson Harper  <jackson@ximian.com>
1041
1042         * TreeView.cs: When we get focus if there is no selected node make
1043         it the top node
1044         - Remove some uneeded setup code from Draw.
1045         * TreeNodeCollection.cs: If the tree doesn't have a top node when
1046         a new node is inserted make the new node the top.
1047         * XplatUIX11.cs:
1048         * Timer.cs: Use Utc time so that no local time zone stuff needs to
1049         be used (should be faster).
1050         
1051 2006-05-25  Chris Toshok  <toshok@ximian.com>
1052
1053         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
1054         problem with the last commit.
1055
1056 2006-05-25  Chris Toshok  <toshok@ximian.com>
1057
1058         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
1059         need the invalidate call here, while scrolling right-to-left via
1060         the left arrow key (i.e. moving the editing cell while scrolling).
1061
1062         * DataGrid.cs (.ctor): remove the initialization of
1063         ctrl_pressed/shift_pressed.  We no longer track them using key
1064         up/down handlers, but by using Control.ModifierKeys.  Also, switch
1065         to using ValueChanged handlers on the scrollbars instead of
1066         Scrolled event handlers.  This simplifies a bunch of the scrolling
1067         code.
1068         (GridHValueChanged): rename from GridHScrolled, and change it to
1069         work with the new event args.
1070         (GridVValueChanged): same.
1071         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
1072         (OnMouseWheel): actually scroll the datagrid.  Don't change the
1073         selected cell.
1074         (ProcessGridKey): correct all the keyboard navigation stuff I
1075         could find.  Ctrl up/down/left/right/home/end work now.
1076         (EnsureCellVisibility): correct method name spelling.  Also,
1077         simplify this a touch by not explicitly calling the
1078         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
1079         scrollbar value.
1080         (OnKeyUpDG): no need for this method now.
1081         
1082 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1083
1084         * LinkLabel.cs: display the OverrideCursor when hovering the label.
1085         Fixes bug #78392.
1086
1087 2006-05-25  Chris Toshok  <toshok@ximian.com>
1088
1089         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
1090         r61019.
1091
1092 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1093
1094         * Application.cs: Moved setting of is_modal and closing to before
1095           we create the control, to allow the event handlers called as a
1096           result of creation affect closing. Also removed Gonzalo's previous
1097           change to setting DialogResult, the behaviour has been moved to 
1098           Form.ShowDialog()
1099         * Form.cs: 
1100           - ShowDialog(): Removed explicit creation of the form, let RunLoop
1101             handle it instead
1102           - ShowDialog(): If no dialog result is set, we need to return Cancel
1103           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
1104             the close is cancelled
1105
1106 2006-05-25  Jackson Harper  <jackson@ximian.com>
1107
1108         * StatusBar.cs: We only need to update the sizes of the other
1109         panels when we have auto size contents.  Also we are only updating
1110         the contents of the panel, not the borders, so compensate for the
1111         border width (TODO: get this width from the theme somehow).
1112         * TreeView.cs: Scrollable is true by default
1113         - Use invalidate instead of refresh where needed
1114         - Factor the scrollable value into scrollbar updating
1115         - Update the scrollbars if the Scrollable property is altered
1116         - Update the selected node if its ImageIndex is changed
1117         - Handle null nodes in UpdateNode (mainly so we don't have to
1118         check if selected is null when updating it
1119         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
1120         are factored into the visible count
1121         - Use VisibleCount for clarity in the code
1122         - When the font is changed we need to recurse through all the
1123         nodes and invalidate their sizes
1124         
1125 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1126
1127         * Application.cs: set the DialogResult to fixed when the main form is
1128         hidden or destroyed while being modal.
1129
1130 2006-05-25  Miguel de Icaza  <miguel@novell.com>
1131
1132         * Theme.cs: Use Tangoified messagebox icons. 
1133
1134         (GetSizedResourceImage): Also cope with width = 0 and do not
1135         trigger a warning in that case (0 means "give me your icon from
1136         the resouce, no special size needed).
1137
1138 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1139
1140         * Application.cs: Leave runloop if the the main modal form is 
1141           hidden (fixes #78484)
1142
1143 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1144
1145         * BindingContext.cs : reject null datasource in Contains() and
1146           Item[].
1147         * CurrencyManager.cs : check data_member validity when data_source
1148           is dataset. When it is late binding, the initial position is -1.
1149
1150 2006-05-24  Jackson Harper  <jackson@ximian.com>
1151
1152         * TreeNodeCollection.cs: Dont't recalculate the visible order on
1153         inserted nodes that aren't visible.  This changes the
1154         max_visible_order which confuses scrollbar settings.
1155         - Use the enumerator to get the prev node instead of duplicating
1156         code.
1157         * TreeView.cs: Use new method for setting scrollbar values
1158         - Don't set the bounds every time the scrollbar is updated
1159         - When updating below the root node use an invalidate instead of a
1160         refresh to prevent the child controls (scrollbars) from being
1161         refreshed. (UpdateBelow still needs to be reworked anyways).
1162         - Reenable SetBottom now that visible orders are set correctly,
1163         added some debug code incase we ever get bad values there again.
1164         - Set the scrollbar max to 2 less then the max value, this
1165         compensates for the max value being one above the node count, and
1166         for scrollbars adding one extra "notch".
1167         - When drawing image nodes if there is an imagelist we draw the
1168         first image in the list if the supplied image index is out of the
1169         image list's bounds.
1170         
1171 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1172
1173         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
1174           we receive a size change from the WM (Fixes #78503)
1175
1176 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
1177
1178         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
1179           rectangle (Fixes #78501)
1180
1181 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1182
1183         * ButtonBase.cs: 
1184           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
1185             as a bitfield.
1186           - Fixed MouseMove to no longer switch pressed state unless the left
1187             mouse button is pressed. Atsushi provided the original patch (#78485)
1188           
1189 2006-05-24  Jackson Harper  <jackson@ximian.com>
1190
1191         * ScrollBar.cs: New internal methods that allow us to change a
1192         couple values on the scrollbar (the most common case is maximum
1193         and large change) without getting multiple invalidates.
1194
1195 2006-05-24  Chris Toshok  <toshok@ximian.com>
1196
1197         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
1198         (Edit): save off the original state in oldState, and set
1199         grid.is_editing to true.
1200         (OnKeyDown): abort editing if escape is pressed.  also, call
1201         NextState if space is pressed.
1202         (OnMouseDown): call NextState.
1203         (NextState): factor out shared code from OnKeyDown and OnMouseDown
1204         here.  Also, only invalidate the row header once (on the initial
1205         is_changing switch) to save on redraws.
1206
1207 2006-05-24  Chris Toshok  <toshok@ximian.com>
1208
1209         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
1210         if the value in the cell is different than it was before.  This
1211         keeps us from triggering a layout when we move around a datarid
1212         with a highlighted cell.
1213         (Edit): suspend layout when creating/positining the text box, and
1214         resume passing false so we don't ever actually re-layout.
1215         (ReleaseHostedControl): same.
1216         (EnsureTextBox): reformat slightly, and set WordWrap to false.
1217
1218         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
1219         control-key sequences should go to the datagrid - remove that
1220         lock.  Also, modify the conditions under which we move between
1221         cells when moving the cursor within a cell, and remove the "this"
1222         and "base" from field accesses.  We weren't even consistent, given
1223         they all were in the base class.
1224
1225 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
1226
1227         * Binding.cs : (.ctor)
1228           An obvious NRE fix for BindingTest.CtorNullTest().
1229
1230 2006-05-23  Chris Toshok  <toshok@ximian.com>
1231
1232         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1233         them between lines.  This fixes some quirks editing cells in the
1234         datagrid.
1235
1236 2006-05-23  Jackson Harper  <jackson@ximian.com>
1237
1238         * TreeView.cs: Use begin/end update when doing expand/collapse all
1239         so that we don't get flicker on the scrollbar.
1240
1241 2006-05-23  Jackson Harper  <jackson@ximian.com>
1242
1243         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
1244         treenode calculations to be independant of the painting code. To
1245         do this nodes track a visible order which is calculated by the
1246         treeview.
1247         - Call new methods for expanding/collapsing nodes.  These methods
1248         use scrollwindow so we don't have to update everything below the
1249         node.
1250         * TreeView.cs: Refactored drawing and scrolling code.  We don't
1251         need to update nodes when drawing anymore or calculate scrollbar
1252         stuff.
1253         - Added new methods for expanding/collapsing nodes. These methods
1254         use ScrollWindow so as to not have to redraw all the nodes below.
1255         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1256         we add/remove nodes or sort.
1257         - Handle removing the selected and the top node properly.
1258
1259 2006-05-23  Chris Toshok  <toshok@ximian.com>
1260
1261         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1262         maybe this should actually happen in the datagrid code?
1263         (EndEdit): no need to invalidate anything, given that
1264         ReleaseHostedControl causes the datagrid to relayout, which
1265         invalidates everything anyway.
1266
1267         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1268         in SetCurrentCell).
1269         (set_SelectionBackColor): call InvalidateSelection instead of
1270         Refresh.
1271         (set_SelectionForeColor): same.
1272         (BeginEdit): Flesh this out a bit.
1273         (CancelEditing): only do any of this if we're editing/adding.
1274         (EndEdit): same.
1275         (OnMouseDown): there's no need to cancel editing here, it's done
1276         in SetCurrentCell.
1277         (SetCurrentCell): only invalidate the current row header if it's a
1278         different row than the new one.
1279         (ShiftSelection): fix this to work like MS does.
1280         (ResetSelection): factor out the invalidation of selected_rows to
1281         InvalidateSelection.
1282         (SetDataSource): cancel any editing that's going on.
1283
1284         * DataGridColumnStyle.cs
1285         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1286         call the non-interface version.
1287
1288         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1289         header rectangle with the clip rectangle so we don't redraw the
1290         entire header for just a small area.  Gets rid of the last flicker
1291         when horizontally scrolling.
1292         (DataGridPaintRow): same.
1293
1294 2006-05-23  Mike Kestner  <mkestner@novell.com>
1295
1296         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1297         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
1298         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
1299         Critical bug report.
1300
1301 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1302
1303         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1304           and this fixes #78493
1305
1306 2006-05-23  Miguel de Icaza  <miguel@novell.com>
1307
1308         * Theme.cs (GetSizedResourceImage): Scale images if the proper
1309         size is not found.  
1310         
1311         * FileDialog.cs: Do not change the background for the side bar as
1312         it wont work nicely with the theme, and also reduces the artifacts
1313         in rendering the icons (which I want to fix too).
1314
1315         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1316         resources, not resgen resources. 
1317
1318         (PlatformDefaultHandler): Pull images using the new API.
1319
1320 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1321
1322         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1323           a reference to the hwnd and will not remove it unless there are
1324           no pending exposures (fixes #78341)
1325         * XplatUI.cs: Improved debug
1326
1327 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
1328
1329         * MenuAPI.cs : don't handle OnClick event when it was not the left
1330           button. Fixed bug #78487.
1331
1332 2006-05-23  Mike Kestner  <mkestner@novell.com>
1333
1334         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1335         prefer submenus to the top menu for item lookup, to avoid popping down
1336         top-row items.
1337
1338 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1339
1340         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1341           Graphics.FillRectangle as the visual results are really bad (even
1342           on win). We now draw perfect arrows (and perfect shadows when the
1343           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1344           Pen.DashPattern to draw the dots of each line.
1345
1346 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1347
1348         * FileDialog.cs: Update the filename combobox when navigating through
1349           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1350
1351 2006-05-22  Mike Kestner  <mkestner@novell.com>
1352
1353         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1354         Fixes #78463.
1355
1356 2006-05-22  Mike Kestner  <mkestner@novell.com>
1357
1358         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1359         requests. Fix a misspelled parameter and a copy paste exception error
1360         in Select.
1361
1362 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1363
1364         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1365           to get the same width/height (5/13) on X11 as the default font has on
1366           win32. This means that our DefaultFont emSize is smaller than the 
1367           the MS SWF equivalent (even thought the width/height stays the same)
1368
1369 2006-05-20  Jackson Harper  <jackson@ximian.com>
1370
1371         * MdiClient.cs:
1372         * MdiWindowManager.cs:
1373         * InternalWindowManager.cs: Make sure to use the border width from
1374         the theme.
1375
1376 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1377
1378         * PrintDialog.cs: Implements printer details
1379
1380 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1381
1382         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1383           Fixes part 1 and 2 of bug #78446
1384
1385 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1386
1387         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1388           instead of sticking to the first ever calculated value
1389
1390 2006-05-19  Mike Kestner  <mkestner@novell.com>
1391
1392         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1393         PointToClient, since Capture is set. Fixes #78344.
1394
1395 2006-05-19  Mike Kestner  <mkestner@novell.com>
1396
1397         * ListView.cs: match MS behavior in Details view where items are not
1398         drawn if Columns.Count == 0. 
1399         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1400         Use a separate pen to draw the check, since changing the width affects
1401         the box as well.  Fixes #78454.
1402
1403 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1404
1405         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1406         exception should throw the name of the invalid argument.
1407
1408         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1409         there are no files listed. 
1410
1411 2006-05-18  Jackson Harper  <jackson@ximian.com>
1412
1413         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1414         up.
1415
1416 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1417
1418         * Control.cs: Brought back our old UpdateZOrder method as a private
1419           function and switched our calls from UpdateZOrder to the new one.
1420           This fixes the Paint.Net canvas disappearing bug.
1421
1422 2006-05-18  Jackson Harper  <jackson@ximian.com>
1423
1424         * Theme.cs:
1425         * ThemeWin32Classic.cs:
1426         * InternalWindowManager.cs: Move the drawing into the theme,
1427         expose everything the theme should need from the window manager.
1428
1429 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1430
1431         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1432           from the call to NativeWindow to avoid walking up the parent chain
1433           further than needed (speeds up setting cursors and avoids setting
1434           the wrong cursor if a parent has another cursor defined)
1435         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1436           the icon as hotspot, not what's contained as hotspot in the icon
1437           file. This fixes the perceived drawing offset seen with Paint.Net
1438         
1439 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1440
1441         * XplatUIX11.cs: 
1442           - Store the calculated rectangle in Hwnd object and use it when 
1443             setting the client size
1444           - Force Toolwindows to always be type Dock, to ensure they're on top
1445
1446 2006-05-18  Mike Kestner  <mkestner@novell.com>
1447
1448         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1449         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1450         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1451         Substantial refactoring to remove confusing nested classes. Coding
1452         standard and Get+Set->property refactorings.  Shift to index based
1453         highlighting in ComboListBox instead of constantly using IndexOf and
1454         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1455         in FileDialog growth.  Draw borders manually since Simple mode needs
1456         to look like two independent controls.  Make listbox border
1457         conditional to DropDownStyle.  Improved OwnerDraw support.
1458
1459 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1460
1461         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1462         Don't set the disposed graphics to null, so we can throw the "right"
1463         exception if the graphics is reused later (added a flag to avoid 
1464         double disposing). Some behaviours are different under 2.0 and are
1465         filled under bug #78448.
1466
1467 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1468
1469         * Control.cs: When double-buffering is enabled, we need to reset
1470           our graphics context between paint calls. Otherwise, any 
1471           transformations and other alterations on the context will 
1472           become cumulative (#77734)
1473
1474 2006-05-18  Mike Kestner  <mkestner@novell.com>
1475
1476         * ListView.cs: do focused item selection like MS on clicks. 
1477         Rework focus handling for ItemControl so LostFocus invalidates as
1478         well.
1479         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1480         the ListView ItemControl has focus.
1481
1482 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1483
1484         * XplatUIX11.cs: If client_window ends up being width or height zero
1485           due to border settings, move it off window inside whole_window (#78433)
1486
1487 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1488
1489         * Mime.cs: Shrink the mime file cache correctly.
1490
1491 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1492
1493         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1494
1495 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1496
1497         * XplatUIX11.cs (AddExpose): More sanity checks
1498
1499 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1500
1501         * XplatUIX11.cs:
1502           - AddExpose: Don't add expose ranges outside the size of our
1503             window
1504           - Cast opacity values to Int32 to avoid crashes with certain
1505             values
1506           - Added disabled code paths that protect against illegal cross-
1507             thread painting (Developers.exe)
1508
1509 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1510
1511         * ProgressBar.cs: Invalidate the control when it's resized
1512           since block size is based on control size. (#78388)
1513
1514 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1515
1516         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1517         of setting the incoming argument to the "reset" value, we set the
1518         this.datamember to string.empty (before we were invalidating the
1519         incoming data).   
1520
1521         Fixes 78420
1522
1523 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1524
1525         * Form.cs: Only apply transparency settings after the form
1526           is created. (Fixes #77800)
1527
1528 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1529
1530         * ApplicationContext.cs: Grab the HandleDestroyed event so
1531           we know when to fire OnMainFormClosed 
1532
1533 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1534
1535         * Application.cs: Introduced sub-class to allow tracking of
1536           threads and centralized triggering of the event mess for
1537           ThreadExit, AppExit, etc..  (#76156)
1538
1539 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1540
1541         * MimeIcon.cs:
1542           - Do not return a null icon index value for a mime subclass.
1543             Instead try the main mime type class too.
1544           - Seems that some newer distributions don't have a link to some
1545             gnome default icons anymore. So check the default gnome dir too.
1546           
1547
1548 2006-05-16  Jackson Harper  <jackson@ximian.com>
1549
1550         * MdiClient.cs: Don't paint the parent background image if we have
1551         our own background image.
1552
1553 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1554
1555         * Control.cs:
1556           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1557             controls, all filled controls are supposed to overlap (#78080)
1558           - UpdateZOrder is supposed to update the control's z-order in the
1559             parent's z-order chain. Fixed to behave like that
1560           - BringToFront: Removed obsolete code
1561           - SendToBack: Simplyfied
1562           - SetChildIndex: Trigger layout calculations when Z-order changes
1563             since layout is done by z-order
1564
1565 2006-05-16  Chris Toshok  <toshok@ximian.com>
1566
1567         [ fixes bug #78410 ]
1568         * DataGrid.cs (set_AlternatingBackColor): use
1569         grid_drawing.InvalidateCells instead of Refresh().
1570         (set_BackColor): call grid_drawing.InvalidateCells.
1571         (set_BackgroundColor): use Invalidate instead of Refresh.
1572
1573         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1574         invalidate the cell area.
1575
1576 2006-05-15  Chris Toshok  <toshok@ximian.com>
1577
1578         [ fixes bug #78011 ]
1579         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1580         on to DataGridPaintRow.
1581         (DataGridPaintRow): take a clip argument, and only draw the cells
1582         which intersect it.  same with the not_usedarea.
1583
1584         * Theme.cs (DataGridPaintRow) add @clip parameter.
1585
1586         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1587         XplatUI.ScrollWindow.
1588         (ScrollToRow): same.
1589
1590         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1591         with last column which was causing a gray swath to appear with the
1592         XplatUI.ScrollWindow code.
1593
1594 2006-05-15  Chris Toshok  <toshok@ximian.com>
1595
1596         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1597         use XplatUI.ScrollWindow.
1598         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1599
1600 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1601
1602         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1603
1604 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1605
1606         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1607           file since there are no equivalent X11 cursors
1608
1609 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1610
1611         * MonthCalendar.cs : DateTimePicker should reflect selected date
1612           on mouse*up*, not mouse*down*. Fixed originally reported part of
1613           bug #76474.
1614
1615 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1616
1617         * TabControl.cs : When argument index is equal or more than tab
1618           count, just ignore. Fixed bug #78395.
1619
1620 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1621
1622         * Control.cs: Dispose all child controls when control is diposed (#78394)
1623
1624 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1625
1626         * ColorDialog.cs: Finally it is possible to select the color with
1627           the text boxes
1628
1629 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1630
1631         * PrintDialog.cs: Fix typo
1632
1633 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1634
1635         * PrintDialog.cs: PrintDialog is not resizable
1636         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1637           color. Made some ToolBar drawing methods protected virtual.
1638
1639 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1640
1641         * PrintDialog.cs: Implementation of the PrintDialog
1642
1643 2006-05-12  Chris Toshok  <toshok@ximian.com>
1644
1645         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1646         thumb, instead use MoveThumb.  This has the side effect of making
1647         most of the other thumb moving machinery use MoveThumb as well.
1648         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1649         need to actually invalidate the rectangle where the new thumb will
1650         go.
1651         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1652         We force an Update() after, so it's not as fast as it could be,
1653         but at least there's zero flicker and no droppings.
1654         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1655         (UpdateThumbPos): add another argument (dirty), which says whether
1656         or not to calculate/add dirty regions which we later invalidate.
1657         For cases where we know we're going to use MoveThumb, we pass
1658         false for this.  Otherwise, pass true.
1659
1660 2006-05-12  Jackson Harper  <jackson@ximian.com>
1661
1662         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1663         the status bar.
1664         
1665 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1666
1667         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1668           and GetClipRegion methods and UserClipWontExposeParent property.
1669         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1670           overriding UserClipWontExposeParent property, setting to false, since
1671           Win32 handles the required expose messages to draw our clipped parent
1672           areas internally
1673         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1674           PaintEventStart to set the user clip region if set.
1675         * Control.cs: 
1676           - Now internally tracking the Region for the control since we need to
1677             store it if the handle is not yet created and only set it when it
1678             becomes created. Before setting the region forced handle creation
1679           - Added code to draw the parents underneath a user-clipped region
1680         * Hwnd.cs: Added UserClip property
1681
1682 2006-05-12  Chris Toshok  <toshok@ximian.com>
1683
1684         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1685         (set_Maximum): same.
1686         (set_Minimum): same.
1687         (set_SmallChange): same.
1688         (OnMouseUpSB): remove the call to refresh when releasing the
1689         thumb.  We shouldn't need it.
1690         
1691 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1692
1693         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1694         AutoSize set to None, we do not need to relayout everything, we
1695         just need to invalidate the current region.
1696
1697         (Draw): Do not draw the entire ClientArea, just redraw the
1698         clip area being passed.
1699
1700         * MdiClient.cs: Make MdiClient constructor with the Form argument
1701         internal. 
1702
1703 2006-05-12  Jackson Harper  <jackson@ximian.com>
1704
1705         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1706         parents background image,  but strangely not their own.
1707         - (DrawStatusBarPanel): Take into account horizontal alignment
1708         when drawing the strings and icons.
1709
1710 2006-05-12  Mike Kestner  <mkestner@novell.com>
1711
1712         * ListBox.cs: avoid invalidations for focus when the collection is
1713         empty. 
1714
1715 2006-05-12  Chris Toshok  <toshok@ximian.com>
1716
1717         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1718         invalidate the entire thumb area.  Call InvalidateDirty which
1719         limits the redraw to the thumb itself and surrounding pixels.
1720
1721         * XplatUIX11.cs (ScrollWindow): optimize copying.
1722         
1723 2006-05-12  Chris Toshok  <toshok@ximian.com>
1724
1725         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1726         Figure out the positioning/layout in a single pass instead of
1727         multiple recursive invocations.  Speeds up the initial display of
1728         the data grid.  Also, make many things private that were
1729         originally public but unused outside this class.
1730
1731 2006-05-11  Jackson Harper  <jackson@ximian.com>
1732
1733         * MdiClient.cs: Improved layout code.
1734
1735 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1736
1737         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1738           not SelectedObject.
1739
1740 2006-05-11  Chris Toshok  <toshok@ximian.com>
1741
1742         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1743         union of that will always be {0,0,width,height}.
1744
1745 2006-05-11  Jackson Harper  <jackson@ximian.com>
1746
1747         * Form.cs: Match MS's DefaultSize for forms (they must have
1748         changed the size in sp2).
1749
1750 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1751
1752         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1753
1754 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1755
1756         * TextControl.cs : Fixed bug #78109. This incorrect position
1757           comparison caused crash on automatic line split.
1758         * TextBoxBase.cs : reduce duplicate code.
1759
1760 2006-05-10  Jackson Harper  <jackson@ximian.com>
1761
1762         * MdiClient.cs: Active form is only sent to the back when using
1763         the Next form functionality, when a form is clicked the current
1764         active shouldn't be sent to the back.
1765         - Layout the mdi windows when the container is first made visible.
1766         * Form.cs: Give the MdiClient a ref to the containing form when we
1767         create it.
1768         
1769 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1770
1771         * LinkLabel.cs : link_font could be uninitialized, so populate one
1772           before actual use. Fixed bug #78340.
1773
1774 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1775
1776         * XplatUIX11.cs : clipboard format native value is IntPtr.
1777           Fixed bug #78283.
1778
1779 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1780
1781         * Control.cs: 
1782           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1783             which is passed up the parent chain by DefWndProc
1784           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1785             to DefWndProc (#77956)
1786         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1787
1788 2006-05-10  Jackson Harper  <jackson@ximian.com>
1789
1790         * MdiClient.cs: We need to remove the controls from the mdi
1791         collection, when we close the window.
1792         * MdiWindowManager.cs: Special handling of closing mdi windows.
1793         * InternalWindowManager.cs: Make the close method virtual so the
1794         mdi window manager can handle it specially.
1795
1796 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1797
1798         * DataGrid.cs:
1799           - Recalculate grid when the data source has changed
1800           - Matches styles provided by user from all data sources types
1801         * DataGridTableStyle.cs: For columns that provided by the user set the
1802         with the preferred value is there was unassigned.
1803         * CurrencyManager.cs: throw OnItemChanged event
1804
1805 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1806
1807         * PictureBox.cs: Don't animate until handle is created. Start animation
1808           when handle is created.
1809
1810 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1811
1812         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1813           current codebase.
1814         * XEventQueue.cs: We don't need to provide the extra info
1815
1816 2006-05-10  Jackson Harper  <jackson@ximian.com>
1817
1818         * MdiClient.cs: If the mdi clients parent form has a background
1819         image set, we draw that background image for the mdi area's
1820         background.
1821
1822 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1823
1824         * TextBoxBase.cs: Set IBeam cursor (#78347)
1825
1826 2006-05-10  Mike Kestner  <mkestner@novell.com>
1827
1828         * ToolBar.cs: fix some text padding issues with ButtonSize
1829         calculation. Update the default size to match MS documentation.
1830         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1831         button size. Fixes #78296.
1832
1833 2006-05-10  Mike Kestner  <mkestner@novell.com>
1834
1835         * ListBox.cs: use is_visible for scrollbar positioning in case the
1836         control isn't on screen yet.  Fix off by one with Right vs Width
1837         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1838         
1839 2006-05-10  Jackson Harper  <jackson@ximian.com>
1840
1841         * X11Dnd.cs: Drop to a control with another control on top of it.
1842         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1843         be modified in click handlers. TODO: Look for similar problems in
1844         other controls.
1845
1846 2006-05-09  Jackson Harper  <jackson@ximian.com>
1847
1848         * Form.cs: Window managers need the old window state when setting
1849         window state now.
1850         * InternalWindowManager.cs: Allow the base mdi window manager to
1851         handle more of the MDI only stuff (like maximize buttons).
1852         * MdiWindowManager.cs: Fix some snafus in changing the window
1853         state.  Add all the menu functionality, for both popup and
1854         maximized menus.
1855         * MdiClient.cs: When a new form is selected the currently
1856         activated form is sent to the back, this matches MS.
1857         - Implement a new method to activate the next mdi child window.
1858
1859 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1860
1861         * Control.cs: 
1862           - Added new InternalCapture method to allow controls to prevent
1863             the capture behaviour on the click handlers
1864           - Switched to use InternalCapture
1865         * ComboBox.cs:
1866           - Using InternalCapture to prevent mouse captures from being released
1867             on mouse button release (Fixes #78100)
1868         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1869           returns Form borders if a caption is present. (Fixes #78310)
1870
1871 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1872
1873         * TreeNode.cs: Changed serialization .ctor to not require every field
1874           to be present. (#78265)
1875         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1876
1877 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1878
1879         * MimeIcon.cs: for is faster than foreach for strings.
1880
1881 2006-05-05  Mike Kestner  <mkestner@novell.com>
1882
1883         * CheckedListBox.cs: update check handling code to not use selected.
1884         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1885         behavior for visual feedback, motion response, shift/ctrl handling,
1886         and properly deal with all 4 selection modes. Updates to bounds
1887         handling logic.  Add scroll wheel support. [Fixes #77842]
1888
1889 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1890
1891         * ListView.cs:
1892           - Moved adding of Implicit controls into .ctor. That way, subsequent
1893             creation of the controls will not cause them to think they are 
1894             toplevel windows (fixes #78200 header problem)
1895           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1896           - Switched visibility setting of header control to use internal field
1897             to avoid triggering handle creation
1898           - Now checking if handle is created before causing a refresh when items
1899             are added (This makes us now match handle creation time with MS)
1900         * Splitter.cs: Removed loading of private splitter cursor, switched to
1901           Cursors version now that that is loading the right ones
1902         * Cursors.cs: Load proper splitter cursors from resources
1903         * Cursor.cs: Added second method of loading resource cursors for the 
1904           VS.Net users amongst us
1905
1906 2006-05-05  Mike Kestner  <mkestner@novell.com>
1907
1908         * ListView.cs: give header_control a minimum size based on the
1909         ListView size.
1910
1911 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1912
1913         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1914           window seems to do that with metacity, so set that type. (#78120)
1915
1916 2006-05-05  Mike Kestner  <mkestner@novell.com>
1917
1918         * ListViewItem.cs: fix Details mode checkbox layout bug.
1919         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1920         at the end of the header, if it exists. [Fixes for #78200]
1921
1922 2006-05-04  Jackson Harper  <jackson@ximian.com>
1923
1924         * MdiClient.cs: Add a helper property to get the container form.
1925         * MdiWindowManager.cs: We have to make sure to use the menu origin
1926         when drawing the icons and buttons, this fixes maximized window
1927         icons/buttons on win32.
1928         * InternalWindowManager.cs: Reset the restore captions when a
1929         window goes from Maximized to Minimized and vice versa. Move the
1930         DrawMaximizedButtons into the MdiWindowManager source, tool
1931         windows can't be maximized. NOTE: This could use a little
1932         refactoring if time ever permits.
1933         
1934 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1935
1936         * TextBox.cs: Add MWFCategoryAttributes
1937         * TextBoxBase.cs: Add MWFCategoryAttributes
1938         * Form.cs: Add MWFCategoryAttributes
1939
1940 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1941
1942         * Control.cs: Add MWFCategoryAttributes
1943         * ScrollableControl.cs: Add MWFCategoryAttributes
1944
1945 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1946
1947         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1948           Divider is true. Fix a little glitch in PropertyToolBar
1949           drawing code
1950
1951 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1952
1953         * Control.cs:
1954           - Dispose: Call base.Dispose, this causes the disposed event
1955             to be fired (and probably other, more important stuff)
1956           - SetVisibleCore: Set is_visible to true after creating the
1957             window so that the window still gets created invisible (if
1958             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1959             to generate a WM_ACTIVE message
1960         * Form.cs: Call Dispose when we want to destroy the window, instead of
1961           just destroying the handle (Dispose will do that for us)
1962         * XplatUIX11.cs:
1963           - RootWindow also needs a queue, so we can properly process the
1964             property change events from RootWindow (like Activate)
1965           - Generatic synthetic WM_ACTIVE message when the active window is
1966             being destroyed
1967
1968 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1969
1970         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1971           bounds are changed
1972
1973 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1974
1975         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1976           for determining width and height (image might not be assigned if
1977           we're drawing an imagelist)
1978
1979 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1980
1981         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1982         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1983           height from system
1984         * Theme.cs: No longer returns hardcoded menu height, instead calls
1985           new driver method
1986         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1987           on MS (# 78257)
1988
1989 2006-05-01  Mike Kestner  <mkestner@novell.com>
1990
1991         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1992
1993 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1994
1995         * TextBoxBase.cs: Removed Fixme
1996         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1997
1998 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1999
2000         * XplatUIX11.cs:
2001           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
2002             the rectangle relative to the parent, considering borders. We
2003             don't really want that.
2004           - ScrollWindow: Fixed warning to be more understandable
2005         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
2006           scrollbars and scroll only the visible area
2007         * RichTextBox.cs: Removed debug output
2008
2009 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2010
2011         * NumericUpDown.cs (Text): Just use base
2012         * UpDownBase.cs: Ensure txtView is created before using it
2013
2014 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2015
2016         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
2017           casting to IntPtr to avoid 64bit overflow errors
2018
2019 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2020
2021         * Control.cs:
2022           - AllowDrop: Don't force handle creation.
2023           - CreateHandle: Added call to tell driver if we're allowed to drop
2024
2025 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2026
2027         * FileDialog.cs: Remember the last directory not only for the
2028           current instance but also for new FileDialog instances.
2029
2030 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2031         
2032         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
2033           broke sending async messages
2034
2035 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2036
2037         * XplatUIX11.cs:
2038           - ScrollWindow: Fixed method. We finally generate expose events again
2039             for scrolled areas. This was causing 'garbage' when scrolling
2040             textbox and other controls that used ScrollWindow
2041           - Switched from using the regular queue for paint events to the MS 
2042             model of 'generating' paint events when the queue is empty.
2043             We use the new XQueueEvent.Paint subclass to store which windows
2044             need painting.
2045           - AddExpose now takes the x/y/width/height of the exposed area
2046             and inserts the window into the paint queue if not already there
2047           - InvalidateWholeWindow: Switched to use new AddExpose method
2048           - UpdateMessageQueue: Added which queue to monitor for paint events
2049           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
2050             the unlikely case nothing above handles it. We reset the expose
2051             pending states to get them off the queue.
2052           - GetMessage: Now pulls a paint event if no other events are in the
2053             queue
2054           - Invalidate: Switched to new AddExpose method
2055           - PeekMessage: Updated to understand pending paint events
2056           - UpdateWindow: Fixed logic bug. We were only updating if the window
2057             didn't need updating. Also switched to sending WM_PAINT directly,
2058             like MS does.
2059         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
2060           and random access Remove(). The random access is needed to handle
2061           UpdateWindow() where a WM_PAINT is sent directly without accessing
2062           the queue.
2063         * ScrollBar.cs: Added Update() calls to cause immediate updates to
2064           allow for better feedback when scrolling. Scrollbars are small and
2065           the immediate update should make it 'feel' more responsive without
2066           slowing things down. ScrollBar still needs it's invaliate logic
2067           updated to not always invalidate the whole bar on certain changes.
2068
2069 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2070
2071         * Control.cs:
2072         (BackColor): if the control does not support a transparent background,
2073         return the default backcolor when the parent backcolor is transparent.
2074
2075 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
2076
2077         * Application.cs: Updated to new StartLoop/GetMessage API
2078         * RichTextBox.cs: Provide some output on RTF parsing errors
2079         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
2080           new queue_id argument to GetMessage and PeekMessage to allow faster
2081           handling of per-thread queues in drivers.
2082         * Hwnd.cs: Added Queue tracking and property
2083         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
2084         * XEventQueue.cs: Added thread trackingA
2085         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
2086         * XplatUIX11.cs:
2087           - Implemented new per-thread queue
2088           - GetMessage: Fixed return/break behaviour on several cases. We were
2089             returning stale messages in some cases, instead of just processing
2090             the next message
2091
2092 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2093
2094         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2095
2096 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
2097
2098         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
2099           fixed off-by-one comparisons between Width/Height and Right/Bottom.
2100
2101 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2102
2103         * PropertyGridView.cs: Fix drop down width.
2104
2105 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2106
2107         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
2108           a mess in DrawToolBar, so I removed one of them.
2109
2110 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2111
2112         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
2113           needed (clip). Otherwise we get artifacts.
2114
2115 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2116
2117         * FixedSizeTextBox.cs: Added constructor to allow specifying which
2118           dimension is fixed
2119         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
2120           and switched FixedSizeTextBox to only be fixed vertical (#78116)
2121         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
2122           if it matches the scale base font (avoids unneeded scaling)
2123
2124 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2125
2126         * X11DesktopColors.cs: One gtk_init_check should be enough
2127
2128 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
2129
2130         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
2131           match MS behaviour
2132
2133 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2134
2135         * TextBoxBase.cs: 
2136           - Generate OnTextChanged for Backspace even if we're only deleting
2137             the current selection
2138           - When setting the Text property, only select all text if the
2139             control does not have focus when it is being set. Otherwise
2140             just place the cursor at the beginning of the control
2141
2142 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2143
2144         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
2145           Added a little helper to draw PropertyGrid ToolBar with a different
2146           border and a different BackColor.
2147         * PropertyGrid.cs: Some background parts didn't get painted with the
2148           correct background color. Added a class that helps us to draw the
2149           correct border for PropertyGridView and a class that helps us to
2150           draw ToolBars with a different backcolor
2151         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
2152
2153 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
2154
2155         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
2156         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
2157
2158 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2159
2160         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
2161           into the palette entries. Also, since we're working on a copy
2162           we needed to copy the palette back onto the bitmap.
2163         * Cursor.cs: Same fix as XplatUIWin32.cs.
2164
2165 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
2166
2167         * ImageListStreamer.cs: Need to read the var (or we're off)
2168
2169 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2170
2171         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
2172           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
2173           TextBoxBase.cs: Unused var fixes
2174         * AxHost.cs: Small 2.0 fix
2175         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
2176           as it seems that is what at least Metacity expects. This will make
2177           icons show up on 64bit platforms. We still have some 64bit size
2178           issues, though, since the startup app window size still won't match.
2179
2180 2006-04-25  Mike Kestner  <mkestner@novell.com>
2181
2182         * *.cs: cleanup newly reported exception var unused warnings.
2183
2184 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2185
2186         * ThemeWin32Classic.cs: Button image alignment now matches exactly
2187           ms
2188
2189 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2190
2191         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
2192           image. The image position is always the same, no matter if the
2193           button is pressed or not.
2194
2195 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2196
2197         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
2198           selection and set the correct filename for SaveFileDialog.
2199           Patch by Emery Conrad.
2200
2201 2006-04-24  Mike Kestner  <mkestner@novell.com>
2202
2203         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
2204         check for item.X outside the ClientRect instead of item.Y. Fixes
2205         #78151.
2206
2207 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2208
2209         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
2210         trust that value blindly and do some sanity check. Fixes bug #77814.
2211
2212 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2213
2214         * ImageListStreamer.cs: save the mask as a 1bpp image.
2215
2216 2006-04-21  Mike Kestner  <mkestner@novell.com>
2217
2218         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
2219         pass Checked and Indeterminate to the Theme Engine. Improve
2220         encapsulation with ListBox.
2221         * ListBox.cs: Keep a StringFormat instead of calculating it every item
2222         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
2223         nested types.  Move all CheckState functionality to CheckedListBox.
2224         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
2225         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
2226         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2227         single base list. Fix scrollbar sizing and placement to mirror MS.
2228         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2229         used.
2230         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2231         for CheckedListBox by using new DrawItemState info.  Center the
2232         checkboxes on the items. Use new StringFormat property.
2233
2234 2006-04-18  Jackson Harper  <jackson@ximian.com>
2235
2236         * Form.cs: MdiChildren don't do default locations the same way as
2237         regular forms.  This prevents a crash when trying to position the
2238         mdi windows.
2239
2240 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
2241
2242         * PropertyGridTextBox.cs: Formatting, copyright
2243         * PropertiesTab.cs: Formatting
2244         * PropertyGrid.cs: Formatting
2245         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
2246           click toggling of values
2247           
2248 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
2249
2250         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2251         * Control.cs (.ctor): verify_thread_handle is static, don't reset
2252           every time a control is created
2253         * Application.cs: Removed obsolete EnableRTLMirroring method
2254
2255 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
2256
2257         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2258         SelectedIndex to -1. Fixes bug #78121.
2259
2260 2006-04-17  Jackson Harper  <jackson@ximian.com>
2261
2262         * Binding.cs: Handle null values for Current and BindingContext.
2263         This occurs when binding is a little delayed.
2264         * CurrencyManager.cs: return null for Current when there are no
2265         items in the list.
2266         - Hookup to the listchanged event on the DataView and update
2267         bindings when the list is changed.  This fixes late binding of
2268         controls.
2269
2270 2006-04-17  Jackson Harper  <jackson@ximian.com>
2271
2272         * X11Dnd.cs:
2273         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2274         Ringenbach.
2275
2276 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
2277
2278         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2279           place
2280         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2281           with the correct ButtonState
2282
2283 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
2284
2285         * XplatUIX11.cs: Improved distinguishing between window types to
2286           tell the WM a type closer to what the app wants (Fixes #78107)
2287
2288 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2289
2290         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2291           GrabHandle
2292
2293 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2294
2295         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2296           drawing code to reflect the size grip changes
2297
2298 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2299
2300         * ImageListStreamer.cs: fix handling of the mask that follows the main
2301         bitmap when deserializing and serialize it properly. The generated mask
2302         should better be a 1bpp image, but I'll do that later.
2303
2304 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2305
2306         * FileDialog.cs: Show something in the DirComboBox on *nix if the
2307           path doesn't fit into some of our Current.Places
2308
2309 2006-04-13  Jackson Harper  <jackson@ximian.com>
2310
2311         * ComboBox.cs: Use borders instead of drawing our own decorations,
2312         try to obey correct rules for heights.
2313         * Theme.cs:
2314         * ThemeNice.cs:
2315         * ThemeClearLooks.cs:
2316         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2317         this is now handled by borders.
2318         - Remove unused DrawListBoxDecorationSize method.
2319         
2320 2006-04-13  Mike Kestner  <mkestner@novell.com>
2321
2322         * MenuAPI.cs: null guarding for the disbled click check fixes crash
2323         reported by Alex.
2324
2325 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2326
2327         * ThemeWin32Classic.cs: 
2328           - Fixed CPDrawStringDisabled
2329           - Corrected drawing of disabled menu items
2330           - Fixed drawing of disabled radio buttons (bug #78095)
2331           - Draw check in a disabled CheckBox with color ControlDark 
2332
2333 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2334
2335         * Form.cs: Use the provided width when calculating the menu size;
2336           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2337           and ClientSize.Width won't be updated yet
2338         * Application.cs: Use Visible instead of Show() to make form visible,
2339           this way we create the handle later and menusize is considered
2340
2341 2006-04-12  Mike Kestner  <mkestner@novell.com>
2342
2343         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2344         reporting.
2345
2346 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2347
2348         * TextBox.cs: Implemented context menu
2349
2350 2006-04-12  Mike Kestner  <mkestner@novell.com>
2351
2352         * ListView.cs: implement box selection. fixes #77838.
2353         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2354
2355 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2356
2357         * XplatUIX11.cs: Added setting of window type when transient window
2358           is created (metacity would move it otherwise)
2359         * X11Structs.cs: Added WINDOW_TYPE atoms
2360         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2361           background (the control is Opaque but still wants transparent
2362           backgrounds)
2363
2364 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2365
2366         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2367           that set Opaque but don't mean it (like all ButtonBase-derived
2368           controls) to still draw their background
2369         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2370           the background
2371
2372 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2373
2374         * Control.cs (PaintControlBackground): Set the graphics object
2375           on our PaintEvent to null to prevent it from being disposed
2376           when the PaintEvent gets disposed
2377
2378 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2379
2380         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2381         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2382
2383 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2384
2385         * Control.cs: 
2386           - Added transparency check to BackColor property. Transparent
2387             backgrounds are only allowed if the control styles permit it
2388           - Added recursive painting of parent control background and
2389             foreground if a control with a transparent backcolor is drawn
2390             (Thanks to Tim Ringenback for providing his 'hack' as a base
2391              for this patch) Fixes #77985 and #78026.
2392           - Added Opaque style check before calling OnPaintBackground, no
2393             need to draw the background if the control is opaque
2394           - Removed ControlAccessibleObject owner variable (inherited from
2395             base, no need to define again)
2396           - Added some documentation links explaining the drawing events
2397             and styles
2398
2399 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2400
2401         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2402           that the affected control is the located at the left border of our
2403           parent (Fixes #77936)
2404
2405 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2406
2407         * TextBoxBase.cs: When rendering disabled or readonly controls,
2408           draw the background with 'Control' instead of 'Window' color as
2409           long as the user hasn't specifically set a color
2410
2411 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2412
2413         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2414           since that won't be updated if the user types text (only if it's
2415           programatically set)
2416
2417 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2418
2419         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2420           layout changes do to app-triggered resizes will have the proper
2421           display rectangle for layout
2422
2423 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2424
2425         * ThemeWin32Classic.cs:
2426           - Make use of the SystemBrushes and SystemPens wherever possible
2427           - Corrected some highlight colors
2428           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2429             drawing
2430         * Theme.cs: Added Empty field to CPColor struct
2431
2432 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2433
2434         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2435           is displayed when calculating the display rectangle. Thanks to Mike
2436           for teaching me the err of my ways.
2437
2438 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2439
2440         * ScrollableControl.cs:
2441           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2442             (instead of 0,0) and we now return the real width/height instead of
2443             just the clientrectangle, adjusted for padding. The rectangle is
2444             now cached and created by the new CalculateDisplayRectangle method.
2445           - Created new CalculateDisplayRectange method, which basically does
2446             what get_DisplayRectangle() did originally, but now using the 
2447             right edge instead of DisplayRectangle to determine the size of
2448             our scrollbars
2449           - get_Canvas(): Fixed it to properly calculate canvas for 
2450             right/bottom controls which seem to be placed to the right/bottom
2451             of any controls that have a fixed location
2452           - Removed TODO that's taken care of
2453           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2454             and SetDisplayRectLocation according to new MSDN2 docs
2455           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2456             event when that is called, this is added for compatibility
2457           - ScrollControlIntoView(): Implemented.
2458           - Switched scrollbars to be implicit, they shouldn't be selectable
2459         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2460           call it when the active control is set/changed
2461         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2462         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2463           implicit_control variable (used for native Win32 message generation)
2464         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2465           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2466         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2467         * XplatUIStructs.cs: Added ScrollBarCommands enum
2468
2469 2006-04-10  Jackson Harper  <jackson@ximian.com>
2470
2471         * ButtonBase.cs:
2472         * CheckedListBox.cs:
2473         * ComboBox.cs:
2474         * DataGrid.cs:
2475         * DataGridView.cs:
2476         * Form.cs:
2477         * GroupBox.cs:
2478         * ListBox.cs:
2479         * PrintPreviewControl.cs:
2480         * ProgressBar.cs:
2481         * PropertyGrid.cs:
2482         * Splitter.cs:
2483         * StatusBar.cs:
2484         * TrackBar.cs:
2485         * UpDownBase.cs: Fixup base event overrides.
2486         
2487 2006-04-06  Mike Kestner  <mkestner@novell.com>
2488
2489         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2490         all user-initiated value changes to min <= value <= max-thumbsz+1.
2491         (set_Value): check for vert/horiz when calculating new thumb position.
2492         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2493         like MS does.
2494         (OnMouseMoveSB): refactor the thumb dragging code and refine
2495         invalidation logic to reduce flicker.
2496         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2497         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2498         (UpdateThumbPosition): small code readability cleanup
2499
2500 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2501
2502         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2503           different
2504
2505 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2506
2507         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2508
2509 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2510
2511         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2512         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2513           This dramatically reduces the number of Pen.Dispose calls. 
2514           Where possible call ResPool methods only once instead of calling it
2515           over and over again (for example for the same color).
2516
2517 2006-04-06  Mike Kestner  <mkestner@novell.com>
2518
2519         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2520         Also remove an unused private field on the collection. Fixes #77972.
2521
2522 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2523
2524         * ThemeNice.cs: Added ToolBar drawing code
2525
2526 2006-04-06  Mike Kestner  <mkestner@novell.com>
2527
2528         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2529         I'm assuming that means we need to look up the toplevel for the
2530         provided control. Fixes the crash trace in #77911 but exposes another
2531         crash in some strange reflection usage in NDocGui.
2532
2533 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2534
2535         * ThemeNice.cs: Gave it a little silver touch and added Images
2536           method
2537         * FontDialog.cs: FontDialog is not resizable
2538         * FileDialg.cs: Added SizeGripStyle.Show
2539
2540 2006-04-05  Jackson Harper  <jackson@ximian.com>
2541
2542         * KeyboardLayouts.cs: Remove warning.
2543
2544 2006-04-05  Jackson Harper  <jackson@ximian.com>
2545
2546         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2547         all of our controls instead of Paint +=.
2548         * ListBox.cs:
2549         * ListView.cs:
2550         * MenuAPI.cs:
2551         * MessageBox.cs:
2552         * NotifyIcon.cs:
2553         * ProgressBar.cs:
2554         * ScrollBar.cs:
2555         * Splitter.cs:
2556         * StatusBar.cs:
2557         * TabControl.cs:
2558         * TextBoxBase.cs:
2559         * ToolBar.cs:
2560         * TrackBar.cs:
2561         * UpDownBase.cs:
2562         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2563         use OnPaintInternal. Remove Width/Height and Visible checks in
2564         paint handler, this is done at a higher level now.
2565         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2566         * PaintEventArgs.cs: Add a handled flag so controls that don't
2567         want anymore painting after OnPaintInternal can make sure OnPaint
2568         isn't called.
2569
2570 2006-04-05  Mike Kestner  <mkestner@novell.com>
2571
2572         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2573         state of the form, so that we don't process events when Modal dialogs
2574         are up. Fixes #77922.
2575
2576 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2577
2578         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2579           checking is done.
2580
2581 2006-04-05  Mike Kestner  <mkestner@novell.com>
2582
2583         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2584
2585 2006-04-05  Mike Kestner  <mkestner@novell.com>
2586
2587         * ListView.cs (HeaderMouseMove): null guarding for the over column
2588         when setting up the drag_to_index.  Fixes #78015.
2589
2590 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2591
2592         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2593           in the taskbar. Transient windows seem to accomplish that.
2594
2595 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2596
2597         * Form.cs:
2598           - Re-enabled CreateParams.X/Y code for FormStartPosition
2599           - Added code for manual placement when creating the Control
2600           - Incomplete patch to treat MDI forms differently when
2601             setting the ClientSizeCore. (Still need to figure out handling
2602             x/y coords there)
2603         * XplatUIX11.cs:
2604           - When we're explicitly setting the X/Y position of a non-Child
2605             window, let the WM know. Metacity really wants this.
2606
2607 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2608
2609         * ThemeNice.cs: Added CPDrawButton
2610
2611 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2612
2613         * ThemeNice.cs: Changed the color for focused buttons and activated
2614           the arrows for small scroll buttons.
2615
2616 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2617
2618         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2619           anymore. Changed some method modifiers to protected (virtual)
2620         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2621           changes
2622         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2623           Updated drawing of menus, buttons and progressbars; added
2624           CPDrawBorder3D 
2625
2626 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2627
2628         * ImageListStreamer.cs: implemented serialization/deserialization
2629         of the images.
2630
2631 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2632
2633         * ThemeWin32Classic.cs:
2634           - Removed all the DrawFrameControl stuff; CPDrawButton,
2635             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2636             inside the methods
2637           - Updated and corrected the drawing code of CPDrawButton,
2638             CPDrawCheckBox and CPDrawRadioButton to better match ms
2639           - Updated theme checkbox and radiobutton code to use the CP*
2640             methods
2641
2642 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2643
2644         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2645           bug is fixed
2646
2647 2006-03-31  Jackson Harper  <jackson@ximian.com>
2648
2649         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2650         sometimes.
2651         * UpDownBase.cs: Don't CreateGraphics manually, use a
2652         Refresh. Ideally we would invalidate the correct areas here.
2653
2654 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2655
2656         * XplatUIX11.cs: 
2657           - We now track the mapping state of windows. If a window (or 
2658             one of it's parents) is not mapped we no longer permit
2659             WM_PAINT messages to be generated since we'd otherwise get 
2660             lots of BadMatch X errors. Jackson did all the work figuring
2661             out the problem.
2662           - Destroying the caret if the window it's contained in is 
2663             destroyed. Can't use regular DestroyCaret method since it
2664             might fall into a drawing function (trying to remove the
2665             caret) and with that generate new BadMatch errors. Again,
2666             Jackson tracked this down.
2667           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2668             make sure we send the messages to all windows. (The old code
2669             would send the WM_DESTROY to the window, and then all child
2670             windows would be 'gone' because the WM_DESTROY handle lookup
2671             would no longer find the destroyed window)
2672         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2673         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2674
2675 2006-03-31  Jackson Harper  <jackson@ximian.com>
2676
2677         * ScrollableControl.cs: Dont recalc if we are not visible.
2678
2679 2006-03-31  Mike Kestner  <mkestner@novell.com>
2680
2681         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2682         the visibility branch.
2683
2684 2006-03-31  Jackson Harper  <jackson@ximian.com>
2685
2686         * ScrollBar.cs: Cap values when incrementing/decrementing.
2687
2688 2006-03-31  Mike Kestner  <mkestner@novell.com>
2689
2690         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2691         * ToolTip.cs: guard against timer expirations with no active control.
2692         Not sure why it happened.
2693
2694 2006-03-31  Mike Kestner  <mkestner@novell.com>
2695
2696         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2697         text.
2698         * ToolTip.cs: Position the tooltip based on where the cursor is at
2699         popup time, not at MouseEnter time.  Add a Down state so that we don't
2700         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2701         positioning offset. Lookup DisplaySize at positioning time, since it
2702         can theoretically change during invocation.
2703         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2704         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2705
2706 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2707
2708         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2709           Fixes behaviour when the Text property of the box is String.Empty
2710
2711 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2712
2713         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2714           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2715           a window)
2716
2717 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2718
2719         * FileDialog.cs: Visual enhancement for the popup buttons in 
2720           PopupButtonPanel
2721
2722 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2723
2724         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2725           code
2726
2727 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2728
2729         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2730           highlighted menu items to match ms
2731
2732 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2733
2734         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2735
2736 2006-03-30  Mike Kestner  <mkestner@novell.com>
2737
2738         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2739         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2740         go active to account for HotLight to Selected transition.
2741         * MenuItem.cs: add internal Selected prop. Fill out the Status
2742         property by calculating it from item info. Add HotLight,
2743         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2744
2745 2006-03-30  Mike Kestner  <mkestner@novell.com>
2746
2747         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2748
2749 2006-03-29  Jackson Harper  <jackson@ximian.com>
2750
2751         * Form.cs: Implement TODO.
2752
2753 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2754
2755         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2756           missing proper dialog setup in the constructor
2757
2758 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2759
2760         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2761         * Control.cs:
2762           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2763           - Fixed ResetBindings and removed TODO
2764           - Added check for cross-thread calls to get_Handle()
2765           - Added Marshaller attribute for set_Font to satisfy class status
2766         * FontDialog.cs: Removed TODOs that seemed implemented
2767         * UpDownBase.cs: Removed unneeded TODO and Fixme
2768         * MessageBox.cs: Implemented support for Default button and removed TODO
2769         * FileDialog.cs: Removed obsolete TODO
2770         * DomainUpDown.cs: Removed obsolete TODO
2771         * ButtonBase.cs: Removed obsolete TODO
2772         * XplatUIWin32.cs: Removed obsolete TODO
2773         * Form.cs:
2774           - Removed obsolete TODO
2775           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2776             internal status updates
2777           - Making sure the active control is selected when the control is created
2778         * CurrencyManager.cs: Removed obsolete TODO
2779
2780 2006-03-29  Mike Kestner  <mkestner@novell.com>
2781
2782         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2783         of PrintPreviewDialog and RichTextBox.
2784
2785 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2786
2787         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2788           DarkDark, Light and LightLight colors for a specific color
2789         * ThemeWin32Classic.cs:
2790           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2791             Appearance = Button 
2792           - Make use of the new ResPool helper CPColor
2793           - Draw ProgressBar and StatusBar with correct 3D borders
2794
2795 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2796
2797         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2798
2799 2006-03-28  Mike Kestner  <mkestner@novell.com>
2800
2801         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2802         calculating col/row counts.
2803
2804 2006-03-28  Mike Kestner  <mkestner@novell.com>
2805
2806         * ColumnHeader.cs:
2807         * ListView.cs:
2808         * ListViewItem.cs:
2809         * Menu.cs: 
2810         switch to explicit interface method implementation for some methods
2811         corcompare identifies as inconsistent with MS.
2812
2813 2006-03-28  Mike Kestner  <mkestner@novell.com>
2814
2815         * MainMenu.cs: 
2816         * Menu.cs:
2817         add a few missing methods from the class status output.
2818
2819 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2820
2821         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2822           correct.
2823
2824 2006-03-28  Mike Kestner  <mkestner@novell.com>
2825
2826         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2827
2828 2006-03-27  Mike Kestner  <mkestner@novell.com>
2829
2830         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2831         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2832
2833 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2834
2835         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2836
2837 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2838
2839         * ThemeWin32Classic.cs:
2840           - GroupBox: Inserted a little gap between the text and the lines
2841             on the right side
2842           - Made the code in CPDrawBorder3D more readable
2843           - Corrected the drawing location of the up and down arrows in 
2844             CPDrawScrollButton
2845
2846 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2847
2848         * ControlPaint.cs: Corrected line widths in DrawBorder for
2849           ButtonBorderStyle Inset and Outset
2850
2851 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2852
2853         * ThemeWin32Classic.cs:
2854           - Rewrote the totally broken CPDrawBorder3D method. That was
2855             one of the main problems for the terrific ThemeWin32Classic
2856             look
2857           - Updated and corrected Button drawing
2858           - Correct the dimensions of the SizeGrip to match ms ones
2859           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2860         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2861           Border3DStyle.Sunken to match ms.
2862
2863 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2864
2865         * ThemeWin32Classic.cs: First small part of the "de-uglify
2866           ThemeWin32Classic" effort, SizeGrip
2867
2868 2006-03-24  Jackson Harper  <jackson@ximian.com>
2869
2870         * XplatUIX11.cs: Give a max idle time of one second, this matches
2871         MS and forces an Idle event every second when there are no other
2872         events in the queue.
2873
2874 2006-03-24  Mike Kestner  <mkestner@novell.com>
2875
2876         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2877         * ListView.Item.cs: fix layout issues with null image lists and images
2878         smaller than checkbox size.
2879         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2880         mode like MS does.  It's weird, but consistent.  ;-)
2881         Fixes #77890.
2882
2883 2006-03-24  Mike Kestner  <mkestner@novell.com>
2884
2885         * ListView.cs: Scroll wheel support for the item control.  Fixes
2886         #77839.
2887
2888 2006-03-23  Jackson Harper  <jackson@ximian.com>
2889
2890         * ScrollableControl.cs: Special case negative sized areas, not
2891         zero.
2892         * MonthCalendar.cs: Save the rect of the clicked date so we can
2893         use it for invalidation.
2894         - Try to cut down on the number of invalidates
2895         - Invalidate the rect the mouse is over and was over when moving
2896         the mouse, so we get the focus box following the cursor.
2897
2898 2006-03-23  Mike Kestner  <mkestner@novell.com>
2899
2900         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2901         focus rectangle drawing. Fixes #77835.
2902
2903 2006-03-23  Mike Kestner  <mkestner@novell.com>
2904
2905         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2906         the if and else if and reverting back to the original == check on the
2907         None conditional.
2908
2909 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2910
2911         * FontDialog.cs: Update the example panel if the selected index of
2912           the fontListBox changes.
2913
2914 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2915
2916         * FileDialog.cs: Make FileDialog remember which directory it was in
2917           last in the same execution.
2918
2919 2006-03-22  Mike Kestner  <mkestner@novell.com>
2920
2921         * FileDialog.cs: make the DropDownMenu on the toolbar display
2922         RadioChecks since they are mutually exclusive and that's what MS does.
2923
2924 2006-03-22  Mike Kestner  <mkestner@novell.com>
2925
2926         * Theme.cs: add Color param to CPDrawMenuGlyph.
2927         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2928         checks and radio marks and arrows are visible on highlighted items.
2929         * ControlPaint.cs: update to use new Theme signature.
2930
2931 2006-03-22  Mike Kestner  <mkestner@novell.com>
2932
2933         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2934         is active. Fixes #77870.
2935
2936 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2937
2938         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2939           to be focused/selected after startup
2940
2941 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2942
2943         * ColorDialog.cs: 
2944           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2945             CustomColors and ShowHelp properties
2946           - Some internal rewrites to get better results when using the
2947             ColorMatrix
2948
2949 2006-03-22  Mike Kestner  <mkestner@novell.com>
2950
2951         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2952         HoverSelection.  Fixes #77836.
2953
2954 2006-03-22  Mike Kestner  <mkestner@novell.com>
2955
2956         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2957         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2958         1, not 0.  Update ButtonSize based on a pixel count of the win32
2959         control.  Adjust the toolbar size/location for new button size.
2960
2961 2006-03-22  Jackson Harper  <jackson@ximian.com>
2962
2963         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2964         true.
2965         * ScrollBar.cs: When doing increments and decrements we need to
2966         set the Value property so that ValueChanged gets raised. A
2967         possible optimization here would be to make an internal SetValue
2968         that doesn't invalidate immediately.
2969         * ToolTip.cs: Tooltips get added to their container (when
2970         supplied) so they get disposed when the container is disposed.
2971         - Don't create tooltips for String.Empty. This prevents all these
2972         little 2-3 pixel windows from showing up when running nunit-gui
2973         and driving me mad.
2974         * Form.cs: Don't set topmost when setting the owner if the handles
2975         haven't been created yet.  The topmost set will happen when the
2976         handles are created.
2977
2978 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2979
2980         * XplatUIX11.cs:
2981           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2982           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2983             visible (to allow them to recalculate their sizes)
2984
2985 2006-03-21  Mike Kestner  <mkestner@novell.com>
2986
2987         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2988         methods. Removed a ton of redundant code.  Still not really happy with
2989         the border rendering, but I think that's mainly because of the
2990         ControlDarkDark being black instead of a dark grey. Depending on how 
2991         close we want to be, we might want to revisit those color choices.
2992         Among the new features added during the refactor were DropDownArrow
2993         pressed rendering, Disabled image rendering.  Proper flat appearance
2994         boundary rendering.  Removed the Divider and Wrapping dividers since I
2995         can't figure out any combination of themes and conditions to make the
2996         MS control draw a horizontal line on a toolbar despite what the
2997         Divider property docs indicate.
2998         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2999         conditions and incorrect layout.  Updated to coding standard.
3000         * ToolBarButton.cs: refactored layout and positioning code from
3001         ToolBar to here.  Invalidate wherever possible instead of forcing
3002         redraws of the whole toolbar. 
3003         (Known remaining issues: explicit ButtonSize smaller than provided
3004         images.)
3005
3006 2006-03-21  Mike Kestner  <mkestner@novell.com>
3007
3008         * ContextMenu.cs (Show): use the position parameter instead of just
3009         showing at the MousePosition.
3010
3011 2006-03-21  Jackson Harper  <jackson@ximian.com>
3012
3013         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
3014         control handle this.
3015         * TreeNodeCollection.cs: If we are clearing the root node we need
3016         to reset top_node so calcs can still happen.
3017         * ThemeWin32Classic.cs: This is a Flags so we need to check
3018         properly.
3019         
3020 2006-03-21  Jackson Harper  <jackson@ximian.com>
3021
3022         * DataGrid.cs: Create columns when the binding context has been
3023         changed.
3024         * X11Structs.cs: Keysyms are uints.
3025         - Add size to fix build.
3026
3027 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
3028
3029         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3030           XplatUIOSX.cs: 
3031           - Added ResetMouseHover method to allow controls to retrigger
3032             hovering if they need it more than once
3033           - Implemented MouseHoverTime and MouseHoverSize properties
3034         * Timer.cs: Start() must reset the interval
3035         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
3036           properties
3037
3038 2006-03-21  Jackson Harper  <jackson@ximian.com>
3039
3040         * X11Keyboard.cs: improved layout detection. Move the nonchar
3041         tables into this file.
3042         * KeyboardLayouts.cs: Move the tables into resource files.
3043
3044 2006-03-21  Mike Kestner  <mkestner@novell.com>
3045
3046         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
3047
3048 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
3049
3050         * Mime.cs: Various speed optimizations. Looking up mime types
3051           is now 2 times faster than before
3052
3053 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
3054
3055         * CreateParams.cs: Added internal menu field
3056         * Control.cs: 
3057           - Switched call order for UpdateBounds; now we always call
3058             the one that also takes ClientSize, and we're calculating the 
3059             client size via driver method in the others. The previous
3060             method of tracking client size by difference wasn't working
3061             for forms where even the starting client size wouldn't match
3062             the overall form size (due to borders) (Part of fix for #77729)
3063           - CreateParams(): Do not use parent.Handle unless the handle is
3064             already created. Causes havoc with Nexxia and throws off our
3065             creation of controls
3066         * XplatUIX11.cs:
3067           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
3068           - Switched handling of ConfigureNotify over to new PerformNCCalc 
3069             method (consolidates code)
3070           - Changed RequestNCRecalc to use new PerformNCCalc method
3071           - Added calls to RequestNCRecalc when menus and borders are changed
3072             to allow app to set NC size. (Part of fix for #77729) This matches
3073             when MS send a WM_NCRECALC on Win32 windows.
3074           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
3075             (Part of fix for #77729). This matches what MS does, they also
3076             send that message when the form is made visible.
3077           - XException.GetMessage: Improved usability of X errors by including
3078             a translation of the window into Hwnd and Control class
3079           - Improved debug info for window creation, reparenting and destruction
3080           - Created helper method WindowIsMapped() [Currently not used]
3081         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
3082         * Form.cs:
3083           - CreateParams: Now setting our menu on the new internal menu field
3084           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
3085             avoid calculating the same property twice
3086         * Hwnd.cs:
3087           - Improved usability of ToString() for debugging purposes
3088           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
3089             determine the height of the menu, instead of just the font. This
3090             required to also create a graphics context and to keep a bmp 
3091             around (for performance reasons)
3092
3093 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
3094
3095         * MenuAPI.cs: Added OnMouseUp method
3096         * Form.cs:
3097           - Now remembering the requested client size, avoids size errors
3098           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
3099             instead of base if the menu is active. This is required due to
3100             control now capturing and releasing on down/up and it would
3101             prematurely release our menu capture
3102
3103 2006-03-17  Jackson Harper  <jackson@ximian.com>
3104
3105         * KeyboardLayouts.cs: Add the czech layouts.
3106
3107 2006-03-16  Jackson Harper  <jackson@ximian.com>
3108
3109         * Control.cs: Use the viewport space when sizing not the controls
3110         client size, so things like ScrollableControl that effect the
3111         viewport size (when scrollbars are added) are computed correctly.
3112         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
3113         of ManagerEntrys.
3114         - Handle creating BindingManagers for null data sources.
3115         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
3116         source, otherwise when rows are added they are added to the 'fake'
3117         datasource and we will crash when trying to set the position in
3118         those rows.
3119         - Use Implicit scrollbars on the datagrid so they arent
3120         selectable.
3121         
3122 2006-03-16  Jackson Harper  <jackson@ximian.com>
3123
3124         * Binding.cs:
3125         * InternalWindowManager.cs:
3126         * MdiWindowManager.cs:
3127         * X11Keyboard.cs: I really want Mike to love me again (fix
3128         compiler warnings).
3129
3130 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
3131
3132         * DataGrid.cs:
3133           - OnMouseDown: Switch to editing mode when clicking on the cell
3134                          even if we're clicking on the cell that's currently 
3135                          selected
3136           - ProcessGridKey: Left/Right now wrap like MS.Net does
3137           - ProcessGridKey: Tab now knows to add a new row when tab is
3138                             pressed in the cell of the last column of the 
3139                             last row
3140           - ProcessGridKey: Enter now adds another row  if pressed in the last
3141                             row and selectes the new row, same column cell
3142           - ProcessGridKey: Home/End navigate columns, not rows, like 
3143                             originally implemented
3144           - Broke ProcessKeyPreview code out into an extra Internal method
3145             so it can be called from the edit code
3146         * DataGridTextBox.cs (ProcessKeyMessage):
3147           - Switched to accept Tab keypresses
3148           - Added F2 handling to allow jumping to the end of the edited cell
3149           - Added logic to allow moving caret left/right inside edited cell
3150             and making the edited cell jump when the caret hits cell borders
3151           - Tab and Enter are now passed to the datagrid after being handled
3152         * TextBoxBase.cs:
3153           - Removed capture code now that Control handles it
3154           - set_SelectionStart now ensures caret is visible
3155
3156 2006-03-16  Jackson Harper  <jackson@ximian.com>
3157
3158         * TrackBar.cs: Debackwards the increment/decrement for handling
3159         mouse clicks on the bar with vertical trackbars.
3160         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
3161         bottom to match MS.
3162
3163 2006-03-16  Mike Kestner  <mkestner@novell.com>
3164
3165         * ListView.cs: make shift/ctrl keyboard and mouse selection 
3166         consistent with the MS control. Fix a bug in
3167         SelectedListViewItemCollection.Clear that was pissing me off for the
3168         better part of a day because the collection was being altered
3169         underneath us as we walked the list.
3170
3171 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
3172
3173         * Control.cs: Not sure how we could miss this so long, but it seems
3174           that MS.Net has Capture set all the way from before calling 
3175           OnMouseDown through sending the mouse events until after
3176           OnMouseUp. This will fix DataGrid's selection being set to end
3177           at the location of the MouseUp.
3178
3179 2006-03-15  Jackson Harper  <jackson@ximian.com>
3180
3181         * BindingContext.cs: Check the binding after its added so that it
3182           can initialize the binding managers and hookup to events.
3183         * Binding.cs: Data members seem to sometimes include rows/cols in
3184           the format Row.Column we now take this into account.
3185           - Hookup to the position changed event so we can update the
3186           control when the position has changed in the data set.
3187         * CurrencyManager.cs: Take into account the row/col naming
3188           convention when creating dataset tables.
3189         * BindingContext.cs: Using a newer better way of storing
3190           datasource/datamember pairs.  Hopefully this better matches MS for
3191           looking up binding managers.
3192
3193
3194 2006-03-15  Jackson Harper  <jackson@ximian.com>
3195
3196         * BindingContext.cs: The currency manager needs the data member
3197         name, if the member is a data set we use the name to find the
3198         correct table.
3199         * CurrencyManager.cs: When creating the list prefer an IList over
3200         an IListSource.
3201         - Attempt to create a DataTable from a DataSet (TODO: might need
3202         some better error checking here, although MS doesn't seem to have much)
3203         - If we have a DataTable create a view and use it as our list.
3204
3205 2006-03-15  Mike Kestner  <mkestner@novell.com>
3206
3207         * ListView.cs: keep a matrix of the icon mode layout to facilitate
3208         keyboard navigation. Support Up/Down/Left/Right selection correctly
3209         for all 4 View modes.
3210         * ListViewItem.cs: add internal row/col fields for icon layouts.
3211
3212 2006-03-15  Jackson Harper  <jackson@ximian.com>
3213
3214         * TabControl.cs: Redraw the tabs when we resize so their newly
3215         calculated sizes are drawn on screen.
3216         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
3217         composite characters.
3218         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
3219         - filter events so that composite characters can be created
3220         patches by peter
3221         * X11Structs.cs: Add XIMProperties enum.
3222
3223 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3224
3225         * Control.cs (BringToFront, SendToBack): Don't use window or handle
3226           unless it's created
3227
3228 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3229
3230         * Control.cs (PerformLayout): We don't need to consider visiblity
3231           for anchoring, only for docking. This fixes 'whacky' alignment
3232           in listbox and other controls that use implicit scrollbars after
3233           the previous PerformLayout patch
3234         * ListBox.cs: Switched to use implicit scrollbars
3235           
3236 2006-03-14  Mike Kestner  <mkestner@novell.com>
3237
3238         * ToolBar.cs: 
3239         * VScrollBar.cs:
3240         - chain up the "new event" overrides to base and use
3241         OnEvent to raise them.  Part of fix for bug #76509.
3242
3243 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
3244
3245         * FileDialog.cs: Do not select an item in the parent directory
3246           on backspace
3247
3248 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3249
3250         * Control.cs (PerformLayout): It would seem that we considered
3251           invisible windows for our layout. Not quite the right thing
3252           to do. Now we don't any longer, thereby fixing bug #76889.
3253
3254 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3255
3256         * Control.cs (CanFocus): I goofed. A control can have focus 
3257           even though it's not selectable. Made it match MS docs.
3258
3259 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3260
3261         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3262           center by default (fixes #76895)
3263         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
3264           all uses of Border3DSides.All with the explicit ORd together
3265           Left|Right|Top|Bottom because I assume that nobody was aware 
3266           that All also implies a center fill. Most places I checked had
3267           a fill right above.
3268         * ProgressBarStyle.cs: Added
3269
3270 2006-03-13  Mike Kestner  <mkestner@novell.com>
3271
3272         * ListView.cs: fix breakage in drag shadow header positioning 
3273         from Peter's csc compilation fix.
3274
3275 2006-03-13  Mike Kestner  <mkestner@novell.com>
3276
3277         * ListView.cs: fix NRE produced by backspacing twice in a focused
3278         FileDialog.
3279
3280 2006-03-13  Mike Kestner  <mkestner@novell.com>
3281
3282         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3283
3284 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3285
3286         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3287           be changed
3288         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3289           the allowed size before making programmatic size changes
3290
3291 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
3292
3293         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
3294           set, metacity is broken and will still use the emty sizes in 
3295           the struct. (Fix for #77089)
3296
3297 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3298
3299         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
3300           WindowExStyles and marked both enums as Flags
3301         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3302           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3303           to match WindowStyles split
3304         * XplatUIX11.cs:
3305           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3306           - Updated to match WindowStyles split
3307         * XplatUIWin32.cs:
3308           - Fixed FosterParent creation, was using ExStyle on the Style field
3309             (This should help with Popup focus issues)
3310           - Updated to match WindowStyles split
3311
3312 2006-03-13  Jackson Harper  <jackson@ximian.com>
3313
3314         * MdiWindowManager.cs: Use the system menu height. Fixes some
3315         strange sizing issues.
3316
3317 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3318
3319         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3320         * TextBoxBase.cs:
3321           - Scroll to caret after inserting text (#77672)
3322           - Make scroll range one pixel higher, fixes off-by-one error (and
3323             makes underlines visible on the last line)
3324
3325 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
3326
3327         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3328           the keyboard state from being stuck with keys in 'pressed' state when
3329           focus is switched away via keyboard
3330         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3331           reset the keyboard if no X11 KeyUp events are expected to come
3332         * X11Structs.cs: Switched type of Visible to bool to match driver
3333
3334 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3335
3336         * TextControl.cs:
3337           - Switched caret to be just 1 pixel wide, matches MS and looks less
3338             clunky
3339           - Moved caret display 1 pixel down from the top of the control
3340             to improve view
3341           - InsertCharAtCharet: Update the selection start if moving the caret
3342             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3343           - No longer always creating the caret when the caret methods are
3344             called. Only the actual ShowCaret/HideCaret will do that now
3345           - Only setting caret visible if the owner control has focus
3346           - UpdateView: Added invalidation-shortcut logic for center and right 
3347             aligned text. Previously we'd update all according to the left
3348             logic which caused drawing errors. Also fixed height of invalidated
3349             areas, now properly invalidating the whole area (was off-by-one)
3350           - owner_HandleCreated: Always generate the document when the
3351             handle is created; this ensures that 
3352         * TextBoxBase.cs:
3353           - Fixed situation where caret would disappear under the right
3354             window border, also improved scrolling behaviour on left-
3355             aligned textboxes
3356           - Fixed right-aligned textboxes to have a border to the
3357             right instead of the caret being under the right border
3358         * XplatUIX11.cs:
3359           - Switched from 'nested' to simple visible/not visible tracking 
3360             for caret (part of fix for #77671)
3361           - No longer passing through translated FocusIn/FocusOut messages
3362             since we were notifying too often and the wrong windows. Instead
3363             we just notify our focussed window of receiving or loosing focus
3364         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3365           counting for caret to simple visible yes/no behaviour (part of 
3366           fix for #77671)
3367
3368 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3369
3370         * Mime.cs: Remove debug code...
3371
3372 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3373
3374         * MimeGenerated.cs: Removed
3375         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3376           and subclasses) from /usr/(local/)share/mime and
3377           $HOME/.local/share/mime.
3378
3379 2006-03-10  Jackson Harper  <jackson@ximian.com>
3380
3381         * MdiWindowManager.cs: Recalc the NC area when a window is
3382         maximized/restored so that the menu area is drawn on forms that
3383         don't have a menu.
3384
3385 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3386
3387         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3388           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3389           us to force a WM_NCCALCRESIZE message being sent. This is needed
3390           for MDI maximizing.
3391
3392 2006-03-10  Jackson Harper  <jackson@ximian.com>
3393
3394         * Form.cs: We need to use the ActiveMenu when calculating menu
3395         height.
3396         - Fix nullref when the window manager hasn't been created yet.
3397         * Control.cs: Fix nullref when we try to bring a control to the
3398         front that has no parent.
3399         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3400         height.
3401         - Add a dummy item to the maximized menu so it always has the
3402         correct height. Otherwise when there are no menus we don't get our
3403         icon and buttons.
3404         
3405
3406 2006-03-10  Jackson Harper  <jackson@ximian.com>
3407
3408         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3409         stuff.
3410         * Form.cs: Make the window_state internal so the window managers
3411         can track it.
3412         - When an MDI child is maximized let its window manager create the
3413         main menu (so it can add its icon).
3414         - Notify the window managers of state changes
3415         - Let the window manager paint its buttons and handle button
3416         clicks on the menu when it is maximized.
3417         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3418         window manager, since tool windows don't use it, only mdi windows.
3419         - Tell the main form that we don't want it to handle NCPAINT
3420         itself to avoid extra painting.
3421         - Handle clicks on a maximized windows menu.
3422         - Handle window state changes
3423         - Handle minimize/maximize clicks correctly by setting the window state.
3424         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3425         when clicking on the forms icon).
3426         - New method to create a forms maximized menu. This is its normal
3427         menu + an icon.
3428         - Handle window state changes.
3429         - Handle sizing of maximized windows.  Maximized windows are just
3430         drawn bigger then the parent visible area. All controls are still
3431         there, they are just outside the visible area (this matches windows).
3432         * MdiClient.cs: No scrollbars when a child window is maximized.
3433         - Let the children windows figure out how big they should be when
3434         sizing maximized windows.
3435         - Implement a version of ArrangeIconicWindows somewhat similar to
3436         Windows version.  There are some little differences, but I don't
3437         think any app will rely on the layout of minimized mdi windows.
3438
3439 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3440
3441         * Padding.cs: Several fixes to allow compiling with csc 2.0
3442
3443 2006-03-09  Jackson Harper  <jackson@ximian.com>
3444
3445         * Menu.cs:
3446         * MenuItem.cs: Cheap hack so we can add items to the list without
3447         the events being raised.  This allows adding mdi items during
3448         drawing. TODO: Should probably find a better time to add the items.
3449
3450 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3451
3452         * ThemeWin32Classic.cs:
3453           - CheckBox_DrawText: Added logic to not wrap if not enough space
3454             is available (Fix for bug #77727)
3455           - RadioButton_DrawText: Added logic not to wrap if not enough
3456             space is available (Fix for bug #77727). Also removed some
3457             duplicate code, DrawString always drawing the regular text
3458             before hitting the if statement.
3459
3460 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3461
3462         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3463
3464 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3465
3466         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3467         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3468           methods. Moved the new 2.0 properties into alphabetical order with
3469           other properties and added MonoTODO tags
3470
3471 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3472
3473         * AutoScaleMode.cs: Added. Fix build.
3474
3475 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3476
3477         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3478           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3479           and was requiring premature handle creation for calls from above
3480         * Form.cs, Control.cs: Removed handle arguments from calls to
3481           CalculateClientRect()
3482
3483 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3484
3485         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3486           drag_column.column_rect is MarshalByRef and can't be used that way
3487
3488 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3489
3490         * AxHost.cs: Added deserialization constructor for 
3491           AxHost+State (fixes 77743)
3492
3493 2006-03-09  Mike Kestner  <mkestner@novell.com>
3494
3495         * ListView.cs: 
3496         - Added column drag reordering for details view.
3497         - fixed behavior when mouse is dragged off column and
3498         AllowColumnReorder is false.
3499         * ColumnHeader.cs: clone the format too in Clone.
3500         * Theme.cs: add DrawListViewHeaderDragDetails method.
3501         * ThemeWin32Classic.cs:
3502         - impl new method for drawing drag column shadows and targets.
3503         - support column offset for details mode in DrawListViewItem.
3504
3505 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3506
3507         * TextControl.cs: Reset the char_count when the document is cleared
3508           (Fixes bug reported on mono-winforms mailing list)
3509
3510 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3511
3512         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3513           of calling base we simply process the key ourselves, since both
3514           DefWindowProc and the handled method would set m.Result. 
3515           (Fixes #77732)
3516
3517 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3518
3519         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3520           method also moves the window; instead implemented a copy of
3521           Control.ScaleCore (Part of fix for #77456)
3522         * TextBoxBase.cs: 
3523           - Created new CreateGraphicsInternal method to allow providing
3524             a graphics context when no handle is created without triggering
3525             handle creation. (Part of fix for #77456)
3526           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3527         * TextControl.cs: 
3528           - Switched Constructor to require TextBoxBase instead of Control (to
3529             allow uncast access to CreateGraphicsInternal)
3530           - Safeguarded use of owner.Handle property. No longer accessing it
3531             unless the handle is already created.
3532           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3533           - Now triggering a recalc when owning control becomes visible
3534         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3535           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3536           premature handle creation (Part of fix for #77456)
3537         * Control.cs:
3538           - We now only destroy our double-buffering buffers when the
3539             control is resized or disposed, but not when visibility
3540             changes. (The code even re-created them twice every time)
3541           - Now requiring a redraw of the buffer on visibility changes
3542             (fixes bug 77654 part 2)
3543           - Not passing OnParentVisibleChanged up unless the control
3544             is visible
3545           - CanFocus: Fixed to match MS documentation
3546           - Focus: Fixed to return actual focus state and to check if
3547             setting focus is legal before setting it
3548
3549 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3550
3551         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3552           when to draw focus rectangle by looking at parent focus and
3553           selected state instead. This fixes TabPages on Linux sometimes
3554           having none or multiple focus rectangles.
3555         * XplatUIX11.cs (SetFocus): 
3556           - Don't set the focus if the same window already has focus
3557           - Use SendMessage instead of PostMessage (like it's Win32
3558             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3559             to match MS behaviour
3560         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3561           are not selectable.
3562
3563 2006-03-07  Jackson Harper  <jackson@ximian.com>
3564
3565         * PictureBox.cs: Revert line I accidently committed last week.
3566
3567 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3568
3569         * Control.cs: 
3570           - Added new IsRecreating and ParentIsRecreating properties to
3571             allow testing if RecreateHandle has been called on ourselves
3572             or one of our parents
3573           - WndProc(WM_DESTROY): If our control handle is being recreated
3574             we immediately need to create the handle when receiving the
3575             destroy, that way our child windows find a valid parent handle
3576             when they themselves are being recreated upon WM_DESTROY receipt
3577             (fix for bug #77654 part 1)
3578         * XplatUIX11.cs:
3579           - DestroyWindow: WM_DESTROY must be sent to our own window before
3580             notifying any child windows. MS documents that child windows
3581             are still valid when WM_DESTROY is received. (Control now relies on
3582             this behaviour)
3583           - Added some fine-grain debug options
3584
3585 2006-03-06  Jackson Harper  <jackson@ximian.com>
3586
3587         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3588         box and base calculations off this.
3589         * MdiChildContext.cs:
3590         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3591         anymore.
3592         
3593 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3594
3595         * Splitter.cs: In situations where the affected control is added
3596           to the parent's control list after the splitter, we would not
3597           populate affected. Now we try populating it on mousedown, if
3598           it's not already set, and force it to be re-set whenever our
3599           parent changes.
3600
3601 2006-03-03  Matt Hargett  <matt@use.net>
3602
3603         * Control.cs: implement Control.Padding
3604         * Padding.cs: -Padding.All returns -1 when constructing with the
3605         implicit default ctor
3606         -Padding.ToString() matches MS.NET
3607         * ContainerControl.cs: implement
3608         ContainerControl.AutoScaleDimensions
3609         * ListControl.cs: implement ListControl.FormattingEnabled
3610         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3611         * ButtonBase.cs:
3612         * TabPage.cs: Implement UseVisualStyleBackColor.
3613         * PictureBox.cs: Implement PictureBox.InitialImage.
3614
3615 2006-03-03  Mike Kestner  <mkestner@novell.com>
3616
3617         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3618         event declarations to proxy to base event.
3619         * ListViewItem.cs: update to use ItemControl.
3620         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3621         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3622         column header label rendering for 0 width columns.
3623
3624 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3625
3626         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3627           that causes the control to be created. Fixes #77476.
3628
3629 2006-03-02  Jackson Harper  <jackson@ximian.com>
3630
3631         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3632         expose_pending.
3633
3634 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3635
3636         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3637           passed in for the EventArgs (fixes #77690)
3638
3639 2006-03-01  Jackson Harper  <jackson@ximian.com>
3640
3641         * ScrollBar.cs: Refresh afterbeing resized.
3642
3643 2006-02-28  Mike Kestner  <mkestner@novell.com>
3644
3645         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3646         Clean up a tracker compile warning.
3647         * MenuItem.cs: add internal PerformPopup method.
3648         [Fixes #77457]
3649
3650 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3651
3652         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3653           implicit expose) when the text is set to null
3654
3655 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3656
3657         * RichTextBox.cs (FlushText): When newline is true, we always
3658           need to split the line, even if no text is on it and we may
3659           never eat newlines. (Fixes #77669)
3660
3661 2006-02-28  Mike Kestner  <mkestner@novell.com>
3662
3663         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3664         and set Selected instead.
3665         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3666         collections.
3667
3668 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3669
3670         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3671
3672 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3673
3674         * FontDialog.cs:
3675           - Got rid of the panel. All controls are now directly added to
3676             the dialog form
3677           - It is now possible to set a font with the Font property
3678           - MinSize and MaxSize property do now what they should
3679           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3680           - Searching and selecting a font with the font textbox works now,
3681             the same applies to the style and size textbox
3682           - Draw the correct 3D border in the example panel
3683           - Fixed a little mem leak (unused fonts didn't get disposed)
3684           - Many other internal updates/rewrites...
3685           - Fix typo
3686
3687 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3688
3689         * TextControl.cs: 
3690           - InsertRTFFromStream: Added 'number of characters inserted' argument
3691           - set_SelectedRTF: Now using the number of characters to calculate
3692             the new location for the selection and cursor (x/y cannot be used
3693             due to potentially already wrapped text)
3694
3695 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3696
3697         * TextControl.cs: Added property and implemented means to allow 
3698           disabling recalculation of a document (can be used to speed up
3699           multiple inserts and is needed to make RTF inserts predictable, see
3700           bug #77659)
3701         * RichTextBox.cs: Using the new NoRecalc property of Document to
3702           keep x/y insert locations predictable. Also makes it faster inserting
3703           large chunks of RTF
3704
3705 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3706
3707         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3708           it's easier for a child control to handle the other messages without
3709           having to duplicate the special functionality
3710         * TextBoxBase.cs
3711           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3712             code to handle processing the key ourselves, in order to get 
3713             access to the result of KeyEventArgs.Handled. We now only call 
3714             ProcessKey if they key hasn't been handled already. Fixes #77526.
3715           - set_Text: If null or empty string is given, just clear the 
3716             document. Fixes part of #77526
3717
3718 2006-02-27  Jackson Harper  <jackson@ximian.com>
3719
3720         * SizeGrip.cs: Paint the background color before painting the grip
3721         so things look right.
3722         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3723
3724 2006-02-27  Mike Kestner  <mkestner@novell.com>
3725
3726         * ListView.cs:
3727           - Restructure layout and invalidation model to remove a ton of
3728           flicker from the control and speed up performance in general.
3729           - Add manual column resize, flickers like crazy, but I already have
3730           some ideas on how I'll fix that. (#76822)
3731           - Merge the three Icon-based views into a single layout method.
3732           - Move item selection interaction logic from the item since 
3733           interaction with the collections is more appropriate to the view.
3734           - Deselection on non-item clicks.
3735         * ListViewItem.cs:
3736           - Encapsulate most of the layout. Add some internal props to trigger
3737           layout.  Move to a model where Items invalidate themselves instead
3738           of just invalidating the whole control every time something changes.
3739           - Invalidate on Text/Caption changes.
3740           - switch to an offset based layout model to avoid having to absolute
3741           position every element on item moves.
3742           - correct checkbox layout to conform to MS layout.
3743         * ThemeWin32Classic.cs:
3744           - refactor some column header drawing code.
3745           - fix string justification for column headers (#76821)
3746           - make SmallIcon labels top justified for compat with MS impl.
3747         * ThemeClearlooks.cs:
3748           - adjust to new ListViewItem internal checkbox bounds api.
3749
3750 2006-02-27  Jackson Harper  <jackson@ximian.com>
3751
3752         * Control.cs:  Change where implicit controls fall in the zorder.
3753         They are now on top of all children.
3754         - Synced AddImplicit code with Add
3755         - Removed unused enumerator.
3756         * SizeGrip.cs: Remove the TODO as its been TODONE.
3757
3758 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3759
3760         * TextControl.cs(Insert): Combine the last lines unless the insertion
3761           string ends with \n\n, otherwise we leave one line too many (Fixes
3762           something I noticed with the testapp for #77526; the bug itself was
3763           already fixed in the previous checkin)
3764
3765 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3766
3767         * RichTextBox.cs:
3768           - SelectionColor and SelectionFont methods no longer set absolute
3769             styles. Instead, the keep font or color respectively (This 
3770             resolves a long-standing FIXME in the code)
3771           - When flushing RTF text, the insert code now considers text trailing
3772             behind the insertion point (Fixes the bug where when replacing
3773             the selected text via SelectedRTF the remainder of the line behind 
3774             the selection would stay on the first insertion line)
3775         * TextBoxBase.cs:
3776           - AppendText now updates the selection points after inserting text
3777           - AppendText now ensures that the last tag (sometimes 0-length) of
3778             the document is used for the style information (Fixes part of 
3779             bug #77220)
3780         * TextControl.cs:
3781           - Created new FontDefiniton class to allow describing partial style
3782             changes
3783           - StreamLine() now takes a lines argument, to allow it to decide
3784             whether an encountered zero-length tag is the last in the document
3785             (which must be kept to not loose the font/color contained in it,
3786             for later appends)
3787           - Created Combine() and Split() methods for Marker structs, to 
3788             support marker updates due to reformatted documents (soft line
3789             wraps)
3790           - Implemented Document.CaretTag setter
3791           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3792             of the last line (Not the cause, but also exposed by bug #77220)
3793           - Added LineTag argument to InsertString method, to allow callers
3794             to force a certain tag to be used (required to force use of the
3795             trailing zero-length tag of a document)
3796           - Now updating markers in Combine(), to avoid stale tag markers
3797           - Added some method descriptions to aid maintenance
3798           - Implemented new FormatText concept, allowing additive/subtractive
3799             formatting by only specifying the components that are to be 
3800             changed. This was needed for resolving the RTB.SelectedColor/
3801             RTB.SelectedFont fixmes
3802           - Added Break() support method to allow breaking up linetags (used
3803             for partial formatting)
3804           - Added GenerateTextFormat() method. It is used for partial 
3805             formatting and allows to generate a full font/color from given
3806             attributes and an existing tag.
3807
3808 2006-02-26  Jackson Harper  <jackson@ximian.com>
3809
3810         * XplatUIX11.cs:  Use the correct caption height.
3811         - Translate hittest coordinates to screen coords to match MS.
3812         * XplatUIWin32.cs: When we create MDI windows we need to reset
3813         some of the style flags, so we get a nice blank window, and can
3814         draw all the decorations ourselves.
3815         - Set a clipping rectangle on the non client paint event, the
3816         window manager drawing code needs one.
3817         * Form.cs: The window manager needs to know when the window state
3818         has been updated.
3819         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3820         don't need to factor in border and title sizes in these
3821         methods. TODO: Remove the args and fix the call points.
3822         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3823         properly.
3824         - Let the driver set the cursors.
3825         - Improve active window handling
3826         - Correct sizes for title bars and buttons.
3827         - Match MS drawing better
3828         * MdiWindowManager.cs: We don't need to handle border style
3829         updates specially anymore.
3830         - Check for scrollbars when windows are done moving
3831         - Handle Active properly.
3832         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3833         correctly. I am spewing the exception though, so we don't hide the
3834         bugs.
3835         
3836 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3837
3838         * DataGridViewRowPostPaintEventArgs.cs,
3839           DataGridViewCellPaintingEventArgs.cs,
3840           DataGridViewRowCollection.cs,
3841           DataGridViewRowPrePaintEventArgs.cs,
3842           DataGridViewCell.cs: Clear a few warnings and implement a few
3843           exceptions that should be thrown.
3844
3845 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3846
3847         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3848           'inheriting' our parent's (non-default) cursor. (Part of
3849            the fix for #77479)
3850
3851 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3852
3853         * XplatUIX11.cs: Fixed cast to make csc happy
3854
3855 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3856
3857         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3858           it's for the client area (part of fix for #77479 and needed
3859           for MDI window cursor handling)
3860         * XplatUIX11.cs
3861           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3862             the appropriate default cursors and also passing the message
3863             up the parent chain 
3864           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3865             for non-client areas
3866
3867 2006-02-15  Jackson Harper  <jackson@ximian.com>
3868
3869         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3870         is a real MDI window
3871
3872 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3873
3874         * X11DesktopColors.cs: Instead of checking the desktop session
3875           string for "KDE" check if it starts with "KDE"
3876
3877 2006-02-10  Jackson Harper  <jackson@ximian.com>
3878
3879         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3880         systems).
3881
3882 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3883
3884         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3885           errors
3886         * ColorDialog.cs:
3887           - Got rid of the panel. All controls are now directly added to
3888             the dialog form
3889           - Changed to mono coding style
3890
3891 2006-02-10  Jackson Harper  <jackson@ximian.com>
3892
3893         * InternalWindowManager.cs: We don't need the set visibility to
3894         false hack anymore now that peter has written beautiful shutdown
3895         code.
3896
3897 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3898
3899         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3900           where already explicitly destroyed
3901
3902 2006-02-10  Jackson Harper  <jackson@ximian.com>
3903
3904         * MdiClient.cs: Handle the case where windows are too high or to
3905         the left and we need scrollbars.
3906
3907 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3908
3909         * MimeIcon.cs: Added some icons
3910         * FileDialog.cs:
3911           - Fixed bug #77477
3912           - Got rid of the panel. All controls are now directly added to
3913             the dialog form
3914           - Changed to mono coding style
3915           - On Linux "My Computer" and "My Network" will now show some
3916             more usefull information. A new class, MasterMount, gathers
3917             this information from /proc/mount. Updated MWFFileView to make
3918             use of this information
3919           - Fixed a bug that caused FileDialog to crash when
3920             ".recently_used" file had a zero size
3921           - FilterIndex does now what it should
3922           - Some Refactoring
3923         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3924             FileDialog changes
3925
3926 2006-02-09  Jackson Harper  <jackson@ximian.com>
3927
3928         * ComboBox.cs: Don't touch if null.
3929
3930 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3931
3932         * Cursor.cs: 64bit safeness fix
3933         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3934
3935 2006-02-09  Jackson Harper  <jackson@ximian.com>
3936
3937         * Form.cs: If a form is made into an MDI form update the styles so
3938         all the props can get set correctly.
3939         - Kill the mdi_container when we dont need it anymore.
3940         * InternalWindowManager.cs: Add missing NOT
3941
3942 2006-02-08  Jackson Harper  <jackson@ximian.com>
3943
3944         * InternalWindowManager.cs: Respek clipping when drawing MDi
3945         decorations.
3946
3947 2006-02-08  Jackson Harper  <jackson@ximian.com>
3948
3949         * Hwnd.cs: Add bits to track non client expose events.
3950         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3951         gives us a proper invalid rect and will allow for some nice
3952         optimizations with NC client drawing
3953         - MDI windows are children windows, so move their style handling
3954         into the child window block.
3955         * InternalWindowManager.cs: Remove a state reset that was
3956         getting invoked at the wrong time. Fixes managed windows getting
3957         into a 'stuck' captured state.
3958
3959 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3960
3961         * TextControl.cs (Document.ctor): Now initializing 
3962           selection_anchor. Fixes #77493
3963
3964 2006-02-07  Jackson Harper  <jackson@ximian.com>
3965
3966         * TrackBar.cs: The increment/decrements were backwards.
3967
3968 2006-02-07  Mike Kestner  <mkestner@novell.com>
3969
3970         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3971         to the instance itself.
3972
3973 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3974
3975         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3976           on ulongs and pointers, the size differs between 32bit and 64bit
3977           systems. 
3978
3979 2006-02-07  Mike Kestner  <mkestner@novell.com>
3980
3981         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3982         for 64 bit platforms to work around a metacity bug. 
3983
3984 2006-02-07  Jackson Harper  <jackson@ximian.com>
3985
3986         * TrackBar.cs: Process the input keys we need, and hookup to
3987         KeyDown instead of using WndProc, so we get key messages.
3988
3989 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3990
3991         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3992           machine we're on. 
3993         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3994           we need to translate the XdndVersion atoms array before sending it
3995
3996 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3997
3998         * XplatUIX11.cs: 
3999           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
4000             number of bits for the property, not the number of bytes. The
4001             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
4002             but would not crash since it specified 8 bits instead of 4 bits)
4003           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
4004             defined as XID -> long in the C headers)
4005           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
4006             references since those are now IntPtr to begin with
4007           - Switched all Atom.XXX 'int' casts to IntPtr casts
4008           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
4009           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
4010           - Added XChangeActivePointerGrab DllImport (for X11DnD)
4011         * X11Structs.cs:
4012           - Changed 'int' type for Atoms in XEvent structures to IntPtr
4013           - Changed atom in HoverStruct to be IntPtr
4014         * X11DnD.cs:
4015           - Removed local DllImports, switched code to use those from XplatUIX11
4016           - Removed/fixed casts related to the switch of Atom to be a IntPtr
4017
4018 2006-02-06  Mike Kestner  <mkestner@novell.com>
4019
4020         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
4021         method signatures in the import region.  There may still be some
4022         lingering struct marshaling issues, as I didn't drill down into those.
4023         Yet.
4024
4025 2006-02-06  Jackson Harper  <jackson@ximian.com>
4026
4027         * ComboBox.cs: Dont manually set the top_item, this is computed
4028         when the scrollbar position is set.
4029
4030 2006-02-06  Mike Kestner  <mkestner@novell.com>
4031
4032         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
4033         startup crashes on amd64.  There's other fixes needed.  All pinvoke
4034         usage of Atom needs to be mapped to IntPtr for example.  And there are
4035         likely other int/long issues to be addressed.
4036
4037 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
4038
4039         * FileDialog.cs: One more...
4040
4041 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4042
4043         * FileDialog.cs: Next try
4044
4045 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4046
4047         * FileDialog.cs: First part of fix for #77464
4048
4049 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4050
4051         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
4052           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
4053           AcceptButton border drawing.
4054
4055 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
4056
4057         * Form.cs: Moved positioning of form after auto scaling is applied,
4058           otherwise it would possibly use wrong form size.
4059
4060 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
4061
4062         * Control.cs (RecreateHandle): No need to re-create any child
4063           controls, the child windows will get destroyed automatically by
4064           the windowing system or driver, and re-created when the handle
4065           is being accessed the first time. Fixes #77456
4066         * Form.cs: No longer setting the form to closing if the handle is 
4067           being recreated. This seems like the right thing to do, don't
4068           have a bug or testcase for this, though.
4069
4070 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4071
4072         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
4073           controls to avoid unwanted side effects
4074
4075 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
4076
4077         * Control.cs: 
4078           - ScaleCore needs to scale the bounds, not the ClientSize of the 
4079             control. Fixes #77416.
4080           - DefaultSize is 0,0 for control
4081         * TextBoxBase.cs: 
4082           - DefaultSize is 100, 20
4083           - SetBoundsCore: Now enforcing the height, no matter if the provided
4084             height is more or less than the preferred one, as long as AutoSize
4085             is on
4086         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
4087
4088 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4089
4090         * Control.cs:
4091           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
4092             call unless both performLayout is true *and* we have a pending
4093             layout change
4094           - ResumeLayout: MS does not completely nest Suspend and Resume,
4095             they bottom out at 0, fixed our code to match that.
4096           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
4097             SetBoundsCore, we were updating even when we shouldn't. This fixes
4098             swf-anchors mis-anchoring when resizing the app fast and lots.
4099           - UpdateDistances: Now only setting the left and top distance if 
4100             we have a parent and are not suspended, this is based on
4101             a suggestion by Don Edvaldson in bug #77355.
4102           - OnVisibleChanged: Fixed logic when to create the control. We may
4103             not create the control if we have no parent or if it's not visible;
4104             switched to using Visible property instead of is_visible field 
4105             since the property also considers parent states. This fixes a bug
4106             when starting Paint.Net
4107
4108 2006-02-02  Jackson Harper  <jackson@ximian.com>
4109
4110         * Form.cs: If the forms handle hasn't been created yet don't call
4111         into xplatui to make it top most, just set the topmost flag on the
4112         form in CreateParams
4113         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
4114
4115 2006-02-01  Jackson Harper  <jackson@ximian.com>
4116
4117         * ScrollableControl.cs: Refactored the Recalculate method a
4118         little, this wasn't handling all the variants of bottom and right
4119         bars needed to be added and added/removed based on their
4120         counterparts being added/removed (which changes the drawable
4121         size). Also we special case client widths and heights of 0 and
4122         don't add the scrollbar for those.
4123
4124 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
4125
4126         * XplatUIX11.cs: 
4127           - Added method to get AbsoluteGeometry(); currently unused, but might
4128             be used in the future, if we try again to figure out toplevel
4129             coordinates with some more crappy window managers
4130           - Added FrameExtents() method to retrieve the WM set decoration size
4131           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
4132             to deal with at least KDE, FVWM and metacity (Fixes #77092)
4133         * Hwnd.cs: 
4134           - Added whacky_wm tracking var for metacity
4135           - Added logic to have default menu height if the actual menu height
4136             has not yet been calculated (part of fix for #77426)
4137         * Form.cs: Keep track whether client size has been set and re-set 
4138           it if a menu is added/removed afterwards (Fixes #77426)
4139
4140 2006-01-31  Jackson Harper  <jackson@ximian.com>
4141
4142         * Control.cs: When a new Site is set on the component attempt to
4143         pull the AmbientProperties from it.
4144
4145 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
4146
4147         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
4148           in the background of the owning form. Fixes #77332
4149
4150 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4151
4152         * MimeIcon.cs: Fix for #77409
4153
4154 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4155
4156         * XplatUIX11GTK.cs: Initial import
4157
4158 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
4159
4160         * FixedSizeTextBox: fixes class signature
4161
4162 2006-01-30  Jackson Harper  <jackson@ximian.com>
4163
4164         * FixedSizeTextBox.cs: New internal class that represents a
4165         textBox that will not be scaled.
4166         * TreeView.cs:
4167         * ComboBox.cs:
4168         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
4169         standard TextBox.
4170                 
4171 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
4172
4173         * XplatUIX11.cs: Retrieve default screen number instead of
4174           assuming 0. Attempted fix for #77318
4175
4176 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
4177
4178         * XplatUIWin32.cs: 
4179           - GetWindowPos: When a window is parented by FosterParent, use 
4180             the desktop instead of FosterParent as the base to get coordinates
4181           - CreateWindow: Don't make FosterParent the parent window for Popups
4182             if we don't want a taskbar entry, Popups automatically don't get one
4183         * Hwnd.cs: Need to call remove to actually remove the key from the
4184           hash table
4185
4186 2006-01-30  Mike Kestner  <mkestner@novell.com>
4187
4188         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
4189
4190 2006-01-30  Jackson Harper  <jackson@ximian.com>
4191
4192         * TreeView.cs:
4193         * TreeNode.cs: Raise events no matter how the treenode is
4194         checked. Patch by Don Edvalson.
4195
4196 2006-01-30  Jackson Harper  <jackson@ximian.com>
4197
4198         * TreeNode.cs: Signature fix.
4199
4200 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
4201
4202         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
4203
4204 2006-01-20  Mike Kestner  <mkestner@novell.com>
4205
4206         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
4207         event forwarding when menus are active.
4208         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
4209         Most of the patch is pdb's with a little rework.
4210
4211 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4212
4213         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
4214           Removed GetMenuDC and ReleaseMenuDC methods; replaced
4215           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
4216         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
4217         * InternalWindowManager.cs: Added use of PaintEventStart/End to
4218           handling of WM_NCPAINT message, now passing the PaintEventArgs to
4219           the PaintWindowDecorations method
4220         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
4221         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
4222         * MenuAPI.cs: Made tracker window invisible
4223         * XplatUIWin32.cs:
4224           - Removed GetMenuDC and ReleaseMenuDC methods
4225           - Implemented the client=false path for PaintEventStart and
4226             PaintEventEnd
4227
4228 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4229
4230         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4231         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4232           styles
4233         * Form.cs: 
4234           - MaximizeBox, MinimizeBox: Recreate the handle when setting
4235             the style
4236           - CreateParams: Reworked the styles to match MS look'n'feel,
4237             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4238             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4239
4240 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4241
4242         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
4243           window is not mapped, since otherwise every form that's being 
4244           created is considered minimized, which is wrong.
4245         * Form.cs: Catching the exception and returning our internal value
4246           instead
4247
4248 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4249
4250         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4251           SetWindowMinMax() to have means to tell the driver about the minimum,
4252           maximum and maximized state window sizes. (Part of the fix for #76485)
4253         * Form.cs:
4254           - Implemented tracking of minimum and maximum window size, now calling
4255             new SetWindowMinMax() driver method to tell the driver (Part of the
4256             fix for #76485)
4257           - Finished handling of WM_GETMINMAXINFO method, now setting all values
4258             (Completes fix for #76485)
4259           - Calling new SetWindowMinMax driver method when the handle for a 
4260             form is created, to make sure the driver knows about it even if
4261             the values have been set before the window was created
4262           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4263             to avoid messing up our anchoring calculations (partial fix
4264             for #77355)
4265         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4266         * XplatUIX11.cs:
4267           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4268           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
4269             (and presumably other freedesktop.org compliant WMs). Left the
4270             assumption unmapped=minimized, needed for SetVisible to work.
4271           - Now setting the window state when creating windows
4272           - Fixed SetVisible to consider/set the window state when mapping
4273             a Form. We cannot set the state before it's mapped, and we cannot
4274             use Form.WindowState once it's mapped (since it would ask the
4275             driver and get 'normal'. Therefore, we grab the state before
4276             mapping, map, and then set state.
4277           - Implmemented SetWindowMinMax method; Metacity does not seem to
4278             honor the ZoomHints, though.
4279         * XplatUIWin32.cs:
4280           - Removed MINMAXINFO (moved to XplatUIStructs)
4281           - Added SetWindowMinMax stub (on Win32 the only way to set that
4282             information is in response to the WM_GETMINMAXINFO message, which
4283             is handled in Form.cs)
4284           - Added logic to SetVisible to set the proper window state when a 
4285             form is made visible (fixes #75720)
4286
4287 2006-01-26  Jackson Harper  <jackson@ximian.com>
4288
4289         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4290         same way we handle them with Invoke.
4291
4292 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
4293
4294         * Form.cs:
4295           - Added tracking of window state so CreateParams can return
4296             the appropriate style
4297           - Moved setting of WS_CAPTION style in CreateParams to allow
4298             styles without caption
4299         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
4300           control if the TextBox property is accessed. Fixes #77345
4301         * Control.cs:
4302           - get_Created: now uses is_disposed and is_created to determine
4303             return value (suggested by Jackson)
4304           - CreateHandle: No longer exits if the handle is being recreated
4305           - RecreateHandle: If the handle is not yet created call the 
4306             appropriate method to create either control or handle. If the
4307             control is already created CreateHandle will simply exit instead
4308             of just creating the handle
4309         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4310           now SendMessage WM_DESTROY directly to the control when DestroyWindow
4311           is called.
4312         * XplatUIX11.cs: 
4313           - When DestroyWindow is called, instead of waiting for the 
4314             DestroyNotification from X11, we directly post it to the WndProc
4315             and immediately dispose the hwnd object.
4316             Same applies to DestroyChildWindows, and this obsoletes the
4317             expose_pending tracking. Contrary to Win32 behaviour we destroy our
4318             child windows before our own, to avoid X11 errors.
4319           - Removed the direct sending of WM_PAINT on UpdateWindow
4320         * XplatUIWin32.cs:
4321           - Reworked DoEvents and GetMessage to allow access to internal queue
4322             even when trying non-blocking access to the queue.  Fixes #77335. 
4323             Based on a patch suggestion by Don Edvalson. The new private
4324             GetMessage can now also be used as a backend for a PeekMessage
4325             frontend version.
4326         * XplatUI.cs: Improved debug output for CreateWindow
4327
4328 2006-01-25  Jackson Harper  <jackson@ximian.com>
4329
4330         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4331
4332 2006-01-24  Jackson Harper  <jackson@ximian.com>
4333
4334         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4335         when we have a MaxDropItems lower then the selected index.
4336
4337 2006-01-24  Jackson Harper  <jackson@ximian.com>
4338
4339         * Control.cs: Don't allow selection of non visible controls, allow
4340         selection of controls without parents.
4341
4342 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4343
4344         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4345         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4346
4347 2006-01-23  Jackson Harper  <jackson@ximian.com>
4348
4349         * UpDownBase.cs: Make the textbox handle all the selection and
4350         tabbing. This fixes tabing to updown controls.
4351
4352 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4353
4354         * TextBoxBase.cs: fixes exception thown the object was null
4355
4356 2006-01-23  Jackson Harper  <jackson@ximian.com>
4357
4358         * ButtonBase.cs: Just use the base CreateParams. They set
4359         visibility and enabled correctly.
4360         * ComboBox.cs:
4361         * TrackBar.cs:
4362         * MonthCalendar.cs: Lets let the base set as much of the
4363         createparams as possible so we don't have duplicate code all over
4364         the place.
4365
4366 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4367
4368         * ThemeGtk.cs: Added TrackBar and some experimental code to
4369           get double buffering back
4370
4371 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4372
4373         * DataGrid.cs: Allows row number set internally higher than the last
4374         when creating a new row. Restores the editing functionality.
4375
4376 2006-01-20  Mike Kestner  <mkestner@novell.com>
4377
4378         * MimeIcon.cs: delay Image creation until the icons are accessed
4379         instead of creating 190 scaled images on GnomeHandler startup.
4380
4381 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4382
4383         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4384           first call base before processing the event. Fixes #77279
4385
4386 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4387
4388         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4389           that the stride for the GDI bitmap would match the stride of
4390           a DIB or a Cursor.
4391
4392 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4393
4394         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4395
4396 2006-01-19  Jackson Harper  <jackson@ximian.com>
4397
4398         * ComboBox.cs: Hookup the text controls keydown event so we get
4399         those when the text control has the focus.
4400
4401 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4402
4403         * Label.cs: Now using the base events instead of defining new ones;
4404           this allows us to just call the base properties without having to
4405           duplicate all base property logic 
4406
4407 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4408
4409         * Label.cs: A label by default is not a tabstop (Fixes one of our
4410           failing nunit tests)
4411
4412 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4413
4414         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4415         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4416
4417 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4418
4419         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4420           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4421           This fixes #77218
4422         * XplatUIWin32.cs: 
4423           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4424             constructor creates images that can't be saved. Part of the fix
4425             for #76103
4426           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4427           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4428             bug fix for handling window state in forms properly)
4429
4430 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4431
4432         * ThemeGtk.cs: Simplify ScrollBar drawing
4433
4434 2006-01-18  Jackson Harper  <jackson@ximian.com>
4435
4436         * Splitter.cs: Set the default dock style for the splitter control
4437         in the constructor.
4438
4439 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4440
4441         * ThemeGtk.cs: Corrected StateType and ShadowType for
4442           gtk_paint_box
4443
4444 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4445
4446         * Control.cs: Make use of Theme.DoubleBufferingSupported
4447         * ThemeGtk.cs:
4448           - Added drawing for flat style buttons
4449           - Added ScrollBar drawing
4450
4451 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4452
4453         * ThemeClearlooks.cs: Removed some unneeded code.
4454         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4455
4456 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4457
4458         * LinkLabel.cs: We need to update the hover drawing when
4459           leaving the control as well.
4460
4461 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4462
4463         * DataGrid.cs: Clicking on non empty areas in the columns
4464            area was giving an exception
4465
4466 2006-01-17  Jackson Harper  <jackson@ximian.com>
4467
4468         * ThemeWin32Classic.cs:
4469         * ListView.cs: Do not draw/clip the headers when the header style
4470         is None.
4471
4472 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4473
4474         * DataGrid.cs: Fixes 77260
4475         
4476 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4477
4478         * DataGrid.cs: Clicking on a column on a empty grid was giving
4479           an exception
4480
4481 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4482
4483         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4484           or any keypress will crash the grid.
4485
4486 2006-01-17  Mike Kestner  <mkestner@novell.com>
4487
4488         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4489         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4490         invisible/previously-visible items.
4491         [Fixes #76909]
4492
4493 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4494
4495         * ThemeClearlooks.cs:
4496         - Added CL_Draw_Button method; now other theme controls that are 
4497           not derived from button or do not have a button can draw buttons
4498           too
4499         - Updated ComboBox drawing
4500         - Beautified RadioButton drawing
4501         - Corrected drawing of bottom and left tabs
4502         - Beautified DateTimePicker and MonthCalendar
4503         - Added CPDrawButton and CPDrawRadioButton
4504
4505 2006-01-16  Jackson Harper  <jackson@ximian.com>
4506
4507         * ComboBox.cs: Set the initial value of the scrollbar to the
4508         current index. Reduce the numbers of refreshs and IndexOfs called.
4509
4510 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4511
4512         * FileDialog.cs: When the file listview is focused hitting the
4513           backspace key moves the fileview to the parent directory
4514
4515 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4516
4517         * Form.cs: 
4518           - Added RecreateHandle call when changing taskbar visibility to 
4519             trigger reparenting in Win32 driver (Fixes #75719)
4520           - If a window has minimize or maximize buttons, it cannot have
4521             a help button
4522         * XplatUIWin32.cs:
4523           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4524             the toplevel form with FosterParent (A toolwindow not on the
4525             taskbar) (Fixes #75719)
4526           - Made FosterParent a toolwindow
4527
4528 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4529
4530         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4531
4532 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4533
4534         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4535           is currently over that control, make sure that tooltip_window.Text
4536           gets updated
4537
4538 2006-01-13  Mike Kestner  <mkestner@novell.com>
4539
4540         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4541
4542 2006-01-13  Jackson Harper  <jackson@ximian.com>
4543
4544         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4545         value passed.  Also redraw the selected node when we recieve
4546         focus, so tabbing between trees works correctly.
4547
4548 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4549
4550         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4551           ~/.gconf/%gconf-tree.xml, so use
4552           .gconf/desktop/gnome/interface/%gconf.xml
4553
4554 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4555
4556         * TextControl.cs: Draw text in gray if control is disabled
4557
4558 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4559
4560         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4561           make sure it's always visible. Fixes #76680.
4562
4563 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4564
4565         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4566
4567 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4568
4569         * PageSetupDialog.cs: Added.
4570         * PrintDialog.cs: Attributes.
4571         * PrintPreviewControl.cs: Updates.
4572         * PrintPreviewDialog.cs: Updates.
4573         
4574 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4575
4576         * Control.cs: Undid my selection check fix, since it's not needed
4577         * TextBoxBase.cs:
4578           - Now considering the presence of hscroll/vscroll when sizing
4579             vscroll/hscroll respectively. Fixed bug #77077
4580           - Added Left/Up/Down/Right to IsInputKey list to prevent
4581             ContainerControl from stealing them. This fixes what I broke
4582             with my last checkin.
4583
4584 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4585
4586         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4587           I finally understand how the property can be set without a setter :-)
4588
4589 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4590
4591         * Application.cs:
4592           - Switched RunLoop to use static Message.Create to create a 
4593             Message object
4594           - Added PreProcessMessage call in runloop for keyboard events; this
4595             is part of the fix for #77219, I overlooked this originally in the
4596             MSDN doc for PreProcessMessage
4597         * Control.cs:
4598           - Removed call to PreProcessMessage from handling of keyboard 
4599             messages; it's supposed to be done in the message pump
4600           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4601             per MSDN documentation.
4602           - IsInputChar: All chars are input chars by default; removed the 
4603             parent calling chain, MS does not document that
4604           - PreProcessMessage: If IsInputChar is true, we want to return false
4605             to allow dispatching of the message
4606           - When selecting the next control, now also check that we're not
4607             selecting ourselves again and therefore return a false positive.
4608         * TextBoxBase.cs:
4609           - Tried to match return values for IsInputKey and ProcessDialogKey
4610             to what MS returns; moved processing of our special keys outside
4611             ProcessDialogKey since MS does not seem to return true on those.
4612           - Moved code that previously was in ProcessDialogKey into new private
4613             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4614           - Reworked handling of WM_CHAR to not have to duplicate code from
4615             Control.cs anymore, instead we simply call down to base.
4616            
4617 2006-01-12  Jackson Harper  <jackson@ximian.com>
4618
4619         * ComboBox.cs: We always need to refresh the text area when
4620         EndUpdate is called. Fixes the combobox in the file dialog.
4621         * Control.cs: Don't create the creator_thread until the controls
4622         handle is created.  Also in InvokeRequired we check if the
4623         creator_thread is null. This gives the effect of InvokeRequired
4624         returning true if the controls handle is not created yet, and
4625         matches MS.
4626
4627 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4628
4629         * XplatUI.cs:
4630           - Added StartLoop() driver method. This is used to allow drivers to
4631             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4632             loop for a particular thread
4633           - Added EndLoop() driver method. This is called once the message
4634             pump for the thread is shut down
4635           - Added SupportsTransparency method to allow the driver to indicate
4636             opacity support for windows
4637         * Form.cs:
4638           - Removed TODO attribute, completed AllowTransparency property
4639           - Added documented logic to Opacity
4640         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4641           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4642           versions of CompatibleTextRendering
4643         * X11Structs.cs: Added opacity atom to our atom enumeration
4644         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4645           of a form might be set before it's reparented by the WM, and we need
4646           the opacity value without calling up to Form)
4647         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4648           SupportsTransparency() driver methods
4649         * Application.cs: Now calling StartLoop and EndLoop driver methods
4650         * XplatUIX11.cs:
4651           - Added opacity atom registration
4652           - Added StartLoop()/EndLoop() methods. They're empty right now but
4653             will need to get implemented when we switch to a per-thread queue
4654           - Implemented SupportsTransparency() method
4655           - Implemented SetWindowTransparency() method
4656           - Added support for setting the opacity value when a window is
4657             reparented (since the opacity needs to be set on the WM frame)
4658         * XplatUIOSX.cs, XplatUIWin32.cs:
4659           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4660
4661 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4662
4663         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4664
4665 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4666
4667         * FileDialog.cs: Added ToolTip for MWFFileView
4668         * MimeIcon.cs: Rewrote GnomeHandler.
4669           - Get currently used gnome icon theme from
4670             ($HOME)/.gconf/%gconf-tree.xml
4671           - Make use of inherited icon themes
4672           - Support SVG icon themes like Tango via librsvg
4673
4674 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4675
4676         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4677         builds. 
4678         
4679         * Application.cs: Move the use_compatible_text_rendering outside
4680         the NET_2_0 define.  If we ever need to use the
4681         use_compatible_text_rendering on the individual controls they will
4682         access the variable from the common shared code paths.
4683
4684 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4685
4686         * XplatUI.cs:
4687           - Added more granular debug options
4688           - Added method to print both window text and id
4689           - Switched debug output to use new Window() debug method
4690           - Added IsEnabled() driver method
4691           - Added EnableWindow() driver method
4692         * Form.cs:
4693           - Removed end_modal; no longer needed, new loop handles termination
4694             via 'closing' variable
4695           - If form is modal, setting DialogResult will now initiate loop
4696             termination via 'closing' variable
4697           - Added support for is_enabled/WS_DISABLED to CreateParams
4698           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4699             does all the work
4700           - Removed code that's now in RunLoop from ShowDialog()
4701           - Added various documented sanity checks to ShowDialog()
4702           - Added handling of WM_DESTROY message; we set 'closing' on getting
4703             the message to indicate the message pump to terminate
4704           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4705             send by the Application.ExitThread method. (We send the message
4706             to destroy the window after all other events have been
4707             processed through the queue, instead of destroying the handle 
4708             directly)
4709           - Moved code from Close() method to WM_CLOSE handler; added logic
4710             to only send close-related events if the form is not displayed
4711             modal
4712         * Splitter.cs (..ctor): Fixed typo in resource name
4713         * Control.cs:
4714           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4715             brush now
4716           - set_Cursor: Now only setting calling into XplatUI if the handle for
4717             the control is already created; this avoids implict handle creation
4718             or crashes if it's not created
4719           - set_Enabled: Now setting the enabled state via the new driver method
4720             instead of just tracking it
4721           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4722           - CreateControl: Reordered event firing and method calls to more
4723             closely fire events in the order MS does. Now setting the
4724             enabled state in the driver when creating the control.
4725           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4726             match MS order
4727         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4728           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4729         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4730         * Hwnd.cs:
4731           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4732           - Added EnabledHwnd property to easily allow a driver to find the
4733             handle of the first enabled window in the parent chain (this is
4734             used by drivers to pass up input events of disabled windows)
4735         * XplatUIDriver.cs: Added IsEnabled() method
4736         * Application.cs:
4737           - Removed crude and obsolete exiting tracking variable
4738           - Removed internal ModalRun(); replaced by RunLoop()
4739           - Implemented private CloseForms() method to allow closing all 
4740             windows owned by a particular (or all) threads
4741           - Exit() now properly closes all windows without forcing the message
4742             pump to quit
4743           - Removed obsolete InternalExit() method
4744           - Changed Run() methods to use new RunLoop() message pump
4745           - Implemented new RunLoop() method for both modal and non-modal forms
4746         * CommonDialog.cs:
4747           - get_CreateParams: Added setting of WS_DISABLED
4748           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4749             invoked via Form.ShowDialog()
4750         * NativeWindow.cs: We don't remove the window from the collection when
4751           the handle is destroyed; there might still be messages for it in the
4752           queue (mainly the resulting WM_DESTROY); instead it will be removed
4753           when Control calls InvalidateHandle in the WM_DESTROY handler
4754         * XplatUIX11.cs:
4755           - CreateWindow: Added logic to handle the WS_DISABLED window style
4756           - EnableWindow: Implemented based on Hwnd.Enabled
4757           - GetMessage: Reset PostQuitState so the method can be called again
4758           - Implemented support for disabled windows (passing messages to the
4759             first enabled parent) in handling all input messages
4760           - Added optimizations for handling Expose events
4761           - Implemeted new driver method IsEnabled()
4762           - Now always resetting paint pending tracking vars when we start paint
4763           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4764         * XplatUIOSX.cs: Added IsEnabled method stub
4765         * XplatUIWin32.cs: Implemented new IsEnabled() method
4766
4767 2006-01-11  Jackson Harper  <jackson@ximian.com>
4768
4769         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4770         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4771         variables a little.
4772         * ColorDialog.cs: Clear out the old form before adding the new
4773         panel.  
4774
4775 2006-01-11  Jackson Harper  <jackson@ximian.com>
4776
4777         * X11Dnd.cs: Make sure to add all the text formats when adding
4778         strings to the data object.
4779         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4780         do some redrawing too.  Also change the UpdateNode to an
4781         UpdateBelow so the newly added node gets painted.
4782         
4783 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4784
4785         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4786         LinkLabel.cs, PropertyGrid.cs: Implement the
4787         UseCompatibleTextRendering property for 2.x
4788
4789         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4790
4791 2006-01-11  Jackson Harper  <jackson@ximian.com>
4792
4793         * TreeView.cs: Use the property for setting the selected node so
4794         the correct events get raised.
4795         * TreeNode.cs: Update the tree when the fore/back colours of a
4796         node are set.
4797
4798 2006-01-10  Jackson Harper  <jackson@ximian.com>
4799
4800         * TreeView.cs: Allow setting SelectedNode to null.
4801
4802 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4803
4804         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4805
4806 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4807
4808         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4809
4810 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4811
4812         * PrintDialog.cs: Added attributes and set default property values.
4813
4814 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4815
4816         * PrintControllerWithStatusDialog.cs: 
4817         Added PrintControllerWithStatusDialog.
4818
4819 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4820
4821         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4822         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4823
4824 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4825
4826         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4827
4828 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4829
4830         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4831         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4832
4833 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4834
4835         * MimeIcon.cs: Added internal class SVGUtil.
4836
4837 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4838
4839         * FileDialog.cs: Don't crash if there are two files with the
4840           same name but different locations.
4841
4842 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4843
4844         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4845         dates across multiple month grids. Used to not highlight entire 
4846         month, but does now.
4847         
4848 2006-01-06  Jackson Harper  <jackson@ximian.com>
4849
4850         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4851         message loop. Change timer intervals to numbers that seem more
4852         natural.
4853
4854 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4855
4856         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4857           object for location info since screen object is now implemented.
4858
4859 2006-01-05  Jackson Harper  <jackson@ximian.com>
4860
4861         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4862         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4863         AsyncMethodResult, this is because we ALWAYS want the
4864         ManualResetEvent to get set.
4865         * Control.cs: When disposing use an async invoke to call shutdown
4866         code, so that thigns don't block on the finalizer thread.  Also
4867         check if we even have a message loop before trying to send
4868         messages, if we don't then don't bother sending messages.
4869         - No more weak references for async methods
4870         * XplatUIDriver.cs: No more weak references for async methods.
4871
4872 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4873
4874         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4875           returns two FontFamily with the same name
4876
4877 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4878
4879         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4880           drawing disabled text. Instead using the ColorGrayText color
4881
4882 2006-01-04  Jackson Harper  <jackson@ximian.com>
4883
4884         * TreeNode.cs: redraw the node when its image index is changed.
4885
4886 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4887
4888         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4889           time I checked there are no others like it.
4890
4891 2006-01-04  Jackson Harper  <jackson@ximian.com>
4892
4893         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4894         this gives the behavoir I was looking for.
4895         * Control.cs: Special case Invoking EventHandlers, this matches MS
4896         and fixes part of bug #76326.
4897
4898 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4899
4900         * ThemeClearlooks.cs, FileDialog.cs:
4901           - Reflect the latest Theme class changes
4902           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4903             with DateTime
4904             
4905 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4906
4907         * Theme.cs: Cache UI resource images and resize them if needed
4908
4909 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4910
4911         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4912           is called. This fixes the crash in Nexxia when setting the font
4913           attributes in the chat. [However, RTF needs a look-over to make sure
4914           that all SelectionXXX methods handle the special case that selection
4915           is empty and therefore the change must be applied to all text starting
4916           at the cursor/selection start]
4917
4918 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4919
4920         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4921           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4922         * X11Keyboard.cs: Switched to new way of calling PostMessage
4923
4924 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4925
4926         * Theme.cs: Added theme interface for images to allow the theme to
4927           control what images are used for things like FileDialog, MessageBox
4928           icons, etc.
4929         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4930
4931 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4932
4933         * FileDialog.cs:
4934           - Removed some dead code
4935           - Opening a recently used file does work now
4936           - Small UI enhancements
4937           - Refactoring
4938
4939 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4940
4941         * FileDialog.cs: Forgot too add __MonoCS__
4942
4943 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4944
4945         * FileDialog.cs: We are able to read recently used files now let's
4946           go on and write them.
4947
4948 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4949
4950         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4951           button
4952         * MimeIcon.cs: Do a check for the top level media type also
4953
4954 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4955
4956         * ThemeClearlooks.cs:
4957           - Added CPDrawStringDisabled
4958           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4959             some chars if the text doesn't fit into text_rect
4960           - DrawListViewItem: If View = View.LargeIcon center the image;
4961             rewrote the drawing of ListViewItem.Text if View = 
4962             View.LargeIcon
4963
4964 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4965
4966         * MimeIcon.cs: Use default KDE icon theme if there is no
4967           "48x48" directory for the current icon theme, fixes #77114
4968         * Mime.cs: Disable not working and actually not used code. 
4969         * ThemeWin32Classic.cs:
4970           - Replace "new SolidBrush" in GetControlBackBrush and
4971             GetControlForeBrush with ResPool.GetSolidBrush
4972           - Changed DrawListViewItem from private to protected virtual
4973         * FileDialog.cs:
4974           - Added form.MaximizeBox = true
4975           - Don't throw an exception if there is a broken symbolic link
4976
4977 2005-12-23  Jackson Harper  <jackson@ximian.com>
4978
4979         * TabControl.cs: Give the panels focus, keyboard navigation is
4980         fixed so this works correctly now.
4981         - We need these key events also.
4982         * ToolBar.cs: Remove some of the poor mans double buffering.
4983         
4984 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4985
4986         * ComboBox.cs: The internal TextBox now returns the focus.
4987
4988 2005-12-23  Jackson Harper  <jackson@ximian.com>
4989
4990         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4991
4992 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4993
4994         * Control.cs: Removed debug code
4995         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4996           implicit children
4997
4998 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4999
5000         * Control.cs: When creating the control, update the Z-order after
5001           all it's children are created, too. (Fixes nexxia not showing
5002           picturebox bug)
5003
5004 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5005
5006         * Control.cs: Do not update the anchoring distances if layout is
5007           suspended, instead do it once layout is resumed
5008
5009 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
5010
5011         * Control.cs: 
5012           - After many hours of debugging, for both Jackson and
5013             myself, it turns out that it helps to set the parent of a control
5014             if you want to actually see it onscreen. In the spirit of that
5015             discovery, we're now setting the parent of the control and
5016             it's children when the control's handle is created. This fix
5017             will make Lutz Roeder's Reflector run happily. 
5018           - now just creating the handle instead of the whole control when
5019             getting a graphics context for the control.
5020
5021 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5022
5023         * ScrollableControl.cs: When calculating the canvas, don't consider
5024           the scrollbar widths. Instead, predict if horizontal scrollbar
5025           will affect canvas when deciding on vertical display and vice versa.
5026
5027 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5028
5029         * RichTextBox.cs: Set default RTF font for documents that don't
5030           have a font table (Fixes #77076)
5031
5032 2005-12-22  Jackson Harper  <jackson@ximian.com>
5033
5034         * TextBoxBase.cs: It's difficult to do, but you can have an empty
5035         clipboard. This prevents a NullRef in that case.
5036         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
5037         clipboard. PRIMARY is for the currently selected text only. (We
5038         should implement PRIMARY at some point.
5039
5040 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5041
5042         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
5043           a Unicode function with a structure that was defined in Ansi way.
5044           This fixes #76942.
5045
5046 2005-12-21  Jackson Harper  <jackson@ximian.com>
5047
5048         * StatusBar.cs: Statusbar handles its fore/back colours on it's
5049         on. Because thats how it rolls. (and this avoids it using ambient
5050         colours).
5051         * ThemeWin32Classic.cs: Use the proper back color for filling.
5052         * Menu.cs: Use the system menu bar color for drawing menu
5053         bars. Using the window back color will bring ambient colours into
5054         the picture.
5055
5056 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
5057
5058         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
5059           Bitmaps were created and not disposed.
5060
5061 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5062
5063         * Control.cs (CreateControl): Don't do anything if the control is
5064           already created, otherwise we'd fire the OnCreated event more than
5065           once
5066
5067 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5068
5069         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
5070           will always match. Instead return -1. Fixes #76464.
5071
5072 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5073
5074         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
5075           neither the beginning nor the end of the line (Fixes bug #76479)
5076
5077 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5078
5079         * Control.cs:
5080           - ControlNativeWindow.ControlFromHandle(): Now handling situation
5081             where handle is invalid
5082           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
5083             instead of slower linear search
5084         * NativeWindow.cs: Don't remove the window from the hashtable until
5085           after the driver has destroyed it (since the driver might use
5086           Control.FromHandle to lookup the control object
5087         * Hwnd.cs: Added DestroyPending property to track if a window is 
5088           already destroyed as far as the driver is concerned and only hasn't
5089           yet notified the control
5090         * XplatUIX11.cs:
5091           - Activate(): Check if the window is still valid before using the 
5092             handle
5093           - Implemented DestroyChildWindow() method to mark child windows as
5094             destroyed when a window is destroyed. This prevents situations 
5095             where we might call an X method based on queued events for a
5096             window that already has been destroyed but we haven't yet pulled
5097             the destroy method from the queue.
5098           - Added a call to the new DestroyChildWindow() method to the drivers
5099             DestroyWindow code. Also now marking the destroyed window itself
5100             as pending
5101
5102 2005-12-20  Jackson Harper  <jackson@ximian.com>
5103
5104         * StatusBar.cs:
5105         * StatusBarPanel.cs: Don't calculate panel sizes on draw
5106         anymore. Just do them when needed, also track the rects of panels
5107         so that we can optimize refreshing more in the future.
5108
5109 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
5110
5111         * ColorDialog.cs: Fixed focus drawing in small color controls
5112
5113 2005-12-19  Jackson Harper  <jackson@ximian.com>
5114
5115         * InternalWindowManager.cs:
5116         * MdiWindowManager.cs: Cleanup some coordinate system changes so
5117         moving windows works properly.
5118
5119 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
5120
5121         * Control.cs: 
5122           - Removed call to InitLayout() from SetBoundsCore(); doc says
5123             it's only called when a control is added to a container
5124           - Split InitLayout logic, moved to separate UpdateDistances() method
5125             since we need to perform those calculations more often than just
5126             when adding the control to a container. (Needed to fix #77022)
5127           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
5128           - Reduced the OnBindingContextChanged events count, don't send them
5129             unless the control is created, we still aren't totally matching
5130             MS, but I can't quite figure out some of their rules
5131
5132 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5133
5134         * ThemeClearlooks.cs: Corrected distance between ProgressBar
5135           stripes
5136
5137 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5138
5139         * ThemeClearlooks.cs:
5140           - Updated ProgressBar drawing
5141           - Corrected drawing of ScrollBars and scroll buttons
5142           - Some temporary fixes for minor pixel artefacts
5143
5144 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
5145
5146         * Control.cs:
5147           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
5148             cause events to be sent in the same order as MS does.
5149           - Added ChangeParent() method to trigger various OnXXXChanged events
5150             that need to be fired when a parent changes (This is a reworking
5151             of the patch from r54254, with the X11 errors fixed)
5152           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
5153             since on MS we get OnLayoutChanged events when calling Clear()
5154           - Changed Enabled property to consider parent state as well, if a
5155             parent is not enabled, the control will not be either
5156           - Changed Parent property to simply call Controls.Add() since that
5157             now does all the work required, this way we avoid code duplication
5158           - Threw in a few OnBindingsContextChanged calls to try and match
5159             when MS sends them. We seem to send a few too many, though.
5160           - Added call to CreateControl when adding the control to a parent.
5161             We were never calling CreateControl. Still needs some work, in
5162             some places we treat HandleCreated and ControlCreated as equal, 
5163             which is wrong
5164           - Removed obsolete commented out code from UpdateZOrder()
5165
5166 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5167
5168         * ThemeClearlooks.cs: Updated TrackBar drawing.
5169
5170 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5171
5172         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
5173
5174 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5175
5176         * FileDialog.cs: Add the Help button and the open readonly
5177           checkbox only if needed
5178
5179 2005-12-16  Jackson Harper  <jackson@ximian.com>
5180
5181         * Control.cs: Make sure we have an active menu before trying to
5182         process commands on it. Prevents menu-less forms from crashing
5183         when Alt is pressed.
5184         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
5185         Dieter Bremes.
5186         * RichTextBox.cs: Expand statement to help out gmcs and fix the
5187         2.0 build.
5188
5189 2005-12-16  Jackson Harper  <jackson@ximian.com>
5190
5191         * InternalWindowManager.cs: Don't translate tool windows screen
5192         coordinates. This fixes windows 'bouncing' around when being moved.
5193
5194 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5195
5196         * TextBoxBase.cs:
5197           - MaxLength now treats 2^31-1 equal to unlimited length (this is
5198             not quite MS compatible, MS uses that number only for single line
5199             and 2^32-1 for multi-line, but I figure it won't hurt keeping
5200             the limit at 2GB)
5201           - Now enforcing the MaxLength limit when entering characters
5202           - Added argument to internal Paste() method to track if it's called
5203             from programatically or via keyboard, since keyboard driven pastes
5204             need to enforce max-length
5205           - Added logic to Paste to only paste as many chars as MaxLength 
5206             allows
5207         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
5208         * TextControl.cs:
5209           - Added Length property to return number of characters in document
5210           - Added private CharCount property which only tracks actual chars
5211             in the document (no linefeeds) and fires event when CharCount
5212             changes
5213           - Added tracking of character count to all methods that alter it
5214           - Added LengthChanged event to allow applications to subscribe
5215             to any changes to the document
5216
5217 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5218
5219         * TextBox.cs: 
5220           - Removed local password_char field (moved to TextBoxBase)
5221           - Now setting the document's password var when password is
5222             set
5223         * TextBoxBase.cs:
5224           - Added password_char field (needed here so MultiLine can
5225             access it)
5226           - Added logic to MultiLine property setter to set the document's
5227             variable when password display is allowed
5228           - Removed debug code and made some debug code conditional
5229         * TextControl.cs:
5230           - Added RecalculatePasswordLine() method to handle special password
5231             char only lines
5232           - Added PasswordChar property, also added related tracking vars
5233           - Draw() method now uses local text var for grabbing text to draw,
5234             this var is set to line.text unless we're doing password display,
5235             then it is set to the pre-generated all-password-chars line
5236           - Added calling RecalculatePasswordLine() method for password lines
5237
5238 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5239
5240         * Hwnd.cs: 
5241           - Added Reparented property to allow tracking of Window Manager
5242             reparenting actions (which affect X/Y calculations of toplevel 
5243             windows)
5244           - Made ToString() print window handles in hex
5245         * XplatUIX11.cs:
5246           - AddConfigureNotify(): Now uses reparented state off Hwnd to
5247             determine if X/Y needs offsetting
5248           - AddConfigureNotify(): Fixed offset calculations
5249           - Now adds ReparentNotify messages into the queue
5250           - Now processes ReparentNotify messages and causes a 
5251             WM_WINDOWPOSCHANGED message to be sent upstream if a window
5252             is reparented (as most likely it's X/Y coordinates are changed
5253             due to that)
5254
5255 2005-12-14  Jackson Harper  <jackson@ximian.com>
5256
5257         * XplatUIX11.cs: Tool windows still need to respek focus.
5258
5259 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5260
5261         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5262           have a working release
5263
5264 2005-12-13  Jackson Harper  <jackson@ximian.com>
5265
5266         * Form.cs: Update styles after setting the border style regardless
5267         of whether or not the window is using a window manager.
5268
5269 2005-12-13  Jackson Harper  <jackson@ximian.com>
5270
5271         * Form.cs: We now hook into an internal window manager instead of just an
5272         MDI subsystem, this is so we can have properly behaving tool windows.
5273         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5274         * InternalWindowManager.cs: New internal class that acts as a
5275         window manager for tool windows and as a base for mdi windows.
5276         * MdiWindowManager.cs: New class that acts as a window manager for
5277         mdi windows.
5278
5279 2005-12-12  Jackson Harper  <jackson@ximian.com>
5280
5281         * Control.cs: Updates so we match behavoir for for implicit
5282         controls. Fixes explosions in MDI.
5283
5284 2005-12-12  Jackson Harper  <jackson@ximian.com>
5285
5286         * Control.cs: Implement Invalidate (Region).
5287
5288 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
5289
5290         * Control.cs: 
5291           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
5292             the same events as MS does. MS fires events for each property 
5293             except, for unknown reasons, Cursor, when the control is reparented. 
5294             I can't seem to totally match add/remove since MS also fires some 
5295             VisibleChanged events, which makes no sense. Consolidated the
5296             parenting code into a separate method so it can be called from
5297             both Add and Remove. set_Parent no longer needs any special logic
5298             as it calls the parent's add method which implicitly fires
5299             all events
5300           - Removed some obsolete code and debug output
5301           - Enabled state is inherited from parents, if this is enabled
5302
5303 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
5304
5305         * Form.cs: Removed commented out code
5306
5307 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
5308
5309         * Control.cs:
5310           - Added internal version of Invoke, with additional argument 
5311             indicating if we're calling it from a Dispose() handler. That
5312             way we can avoid BeginInvoke throwing an exception if we're
5313             calling for an already destroyed window.
5314           - Added a dispose argument to BeginInvokeInternal, and made the
5315             check if a valid window handle chain exists conditional on
5316             it not being a dispose call
5317           - Removed code in DestroyHandle to destroy our children. Since we
5318             now handle the WM_DESTROY message we will catch all our children
5319             being destroyed.
5320           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5321         * Form.cs:
5322           - Added a field to track the application context of the form.
5323           - No need to set closing variable as response to WM_CLOSE, instead
5324             we destroy the window. We also call PostQuitMessage if the form
5325             has an application context (which makes it the main app form,
5326             which, when closed terminates the app)
5327         * XplatUI.cs:
5328           - Dropped Exit() method, it's naming was confusing
5329           - Added PostQuitMessage() which causes GetMessage to return false
5330             once the message queue is empty
5331         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5332           PostQuitMessage()
5333         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5334           no longer a valid XplatUI method, but left it in since it's used
5335           internally. Added empty PostQuitMessage() method.
5336         * MenuAPI.cs: Replaced call to Exit() with call to
5337           PostQuitMessage, even though this is probably no longer needed.
5338         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5339         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5340         * Application.cs:
5341           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5342           - Removed old debug code that would call XplatUI for exception
5343             display, enabled standard exception handling (Still not enabled
5344             though, until NativeWindow's ExternalExceptionHandler define
5345             is removed
5346         * NativeWindow.cs:
5347           - Added internal method to allow control to update NativeWindow
5348             after a window has been destroyed
5349           - Added handling of already destroyed windows when calling i
5350             DestroyWindow
5351           - Added removal of handle from list on ReleaseHandle
5352         * XplatUIX11.cs:
5353           - Dropped GetMessageResult var and related code
5354           - Added PostQuitState to field to track if PostQuitMessage has been
5355             called
5356           - Dropped Exit() method
5357           - Added PostQuitMessage() method
5358           - GetMessage now will return false if PostQuitState is set and no
5359             more messages are in the queue.
5360           - Expose handler will no longer generate WM_PAINT messages if we are
5361             in PostQuitState since it's very likely any windows have already
5362             been destroyed, and since Hwnd won't get updated until we have
5363             processed the DestroyNotify we'd be causing X errors.
5364         
5365 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5366
5367         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5368           Thanks to Mike for pointing out the err of my ways.
5369
5370 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5371
5372         * Control.cs(PreProcessMessage): Moved menu handling back, but
5373           after all other key handling, to match MS (who handles Menu in
5374           DefWndProc)
5375         * Menu.cs (WndProc): Removed my brainfart
5376
5377 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5378
5379         * Control.cs(PreProcessMessage): Removed special menu handling 
5380         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5381
5382 2005-12-07  Mike Kestner  <mkestner@novell.com>
5383
5384         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5385         state according in tracker.
5386         * Menu.cs : promote tracker field to base class and provide a tracker
5387         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5388         has a tracker. Unparent items that are removed from the collection.
5389         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5390         * Theme*.cs: add always_show_hotkeys field to support configurability
5391         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5392         pressed.
5393
5394 2005-12-07  Jackson Harper  <jackson@ximian.com>
5395
5396         * MdiChildContext.cs: Use Control.ResetCursor.
5397         * Control.cs: ResetCursor needs to set the property so that the
5398         correct XplatUI call gets made.
5399
5400 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5401
5402         * Control.cs: More fixes to make our key events match MS. We
5403           were not setting the modifier state on KeyData, and we were
5404           not generating any events when Alt was pressed with a key
5405           since handling of WM_SYSxxx was missing for the OnKey methods.
5406
5407 2005-12-07  Jackson Harper  <jackson@ximian.com>
5408
5409         * MdiChildContext.cs: reenable the sizing code.
5410         - When the mouse leaves a window reset its cursor.
5411
5412 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5413
5414         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5415
5416 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5417
5418         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5419           widths of Fixed3D borders
5420
5421 2005-12-07  Jackson Harper  <jackson@ximian.com>
5422
5423         * MdiClient.cs: Fix warnings. Earn Mike's love.
5424
5425 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5426
5427         * ThemeClearlooks.cs:
5428           - Adjusted mouse over button color
5429           - Added first parts of CheckBox drawing
5430           - Added correct color for selected text background
5431           - Fixed ComboBox drawing
5432           - Added CPDrawBorder3D and CPDrawBorder
5433
5434 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5435
5436         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5437
5438 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5439
5440         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5441           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5442           alert users via sound. We could add an enum arg with different
5443           types of alerts in the future
5444
5445 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5446
5447         * Control.cs: Fix behaviour problems pointed out by Mike
5448
5449 2005-12-05  Mike Kestner  <mkestner@novell.com>
5450
5451         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5452         prop setters.  Calls parent.Refresh for now, but could be maybe be
5453         optimized with an internal method on StatusBar at some point.
5454         [Fixes #76513]
5455
5456 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5457
5458         * RichTextBox.cs: Implemented get_SelectionColor
5459
5460 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5461
5462         * ThemeClearlooks.cs:
5463           - Removed dead code
5464           - Draw black button border only if button is Form.AcceptButton
5465           - Draw correct button color for pressed RadioButton if the mouse 
5466             has entered the button
5467           - Updated ProgressBar drawing!
5468           - Updated CPDrawSizeGrip drawing
5469           - Updated StatusBarPanel drawing
5470
5471 2005-12-05  Mike Kestner  <mkestner@novell.com>
5472
5473         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5474         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5475
5476 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5477
5478         * ThemeClearlooks.cs: Initial check-in, activate with
5479           export MONO_THEME=clearlooks
5480         * ThemeEngine.cs: Added ThemeClearlooks
5481
5482 2005-12-03  Mike Kestner  <mkestner@novell.com>
5483
5484         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5485         [Fixes #76897]
5486
5487 2005-12-02  Jackson Harper  <jackson@ximian.com>
5488
5489         * Form.cs: If the child form has no menu the default main menu is
5490         used as the active menu.
5491
5492 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5493
5494         * ListBox.cs: Check if any items exist before trying to resolve 
5495           coordinates into items
5496
5497 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5498
5499         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5500           as the second color for the background hatch
5501
5502 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5503
5504         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5505         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5506           sure that what we pass to FormatText is always 1-based. Fixes #76885
5507
5508 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5509
5510         * NumericUpDown.cs (EndInit): When we are done initializing,
5511         reflect any updates on the UI.
5512
5513 2005-12-02  Jackson Harper  <jackson@ximian.com>
5514
5515         * ImplicitHScrollBar.cs:
5516         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5517         their container controls.
5518         * TreeView.cs: Use the new implicit scrollbars.
5519
5520 2005-12-02  Jackson Harper  <jackson@ximian.com>
5521
5522         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5523         can play with it.
5524         * TreeNodeCollection.cs: If we remove the topnode we need to
5525         update topnode to the next node in line.
5526         - When clearing nodes go through the same process as removing
5527         them, so they get depareneted and checked if they are top node.
5528
5529 2005-12-01  Jackson Harper  <jackson@ximian.com>
5530
5531         * TreeView.cs: When imagelists are used the image area is
5532         selectable as well as the text.
5533         - If there are no selected nodes select the first one.
5534         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5535         so don't do it more then we need to.
5536
5537 2005-12-01  Jackson Harper  <jackson@ximian.com>
5538
5539         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5540         that arrows can be scaled.
5541
5542 2005-12-01  Jackson Harper  <jackson@ximian.com>
5543
5544         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5545         fail. Patch by Dieter Bremes
5546
5547 2005-11-30  Jackson Harper  <jackson@ximian.com>
5548
5549         * Form.cs: Property is 2.0 only
5550         * PrintDialog.cs: Signature fix.
5551
5552 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5553
5554         * TextControl.cs: 
5555           - No longer artificially moves text 2 pixels down (now that we have
5556             borders this is no longer needed)
5557           - Added calcs for left, hanging and right indent
5558
5559 2005-11-23  Mike Kestner  <mkestner@novell.com>
5560
5561         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5562
5563 2005-11-30  Jackson Harper  <jackson@ximian.com>
5564
5565         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5566         get cloned as part of CloneMenu ().
5567         * Menu.cs: Make sure the parent of the items get set correctly
5568         when they are added.  And the owners are notified of the changes.
5569         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5570         we can change the menu being displayed/handled by the form without
5571         changing the menu assosciated with the form.
5572         - Don't let Mdi children draw/handle menus.
5573         
5574 2005-11-30  Jackson Harper  <jackson@ximian.com>
5575
5576         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5577         a MenuChanged event. Just to make the API a little more
5578         consistent.
5579         * MainMenu.cs:
5580         * MenuItem.cs: Use the new OnMenuChanged
5581         * MdiChildContext.cs: Handle menu merging.
5582         * Form.cs: Implement MergedMenu.
5583         
5584 2005-11-30  Jackson Harper  <jackson@ximian.com>
5585
5586         * Menu.cs: We were misusing Add. Add goes behind the specified
5587         index according to the docs, and does not replace the specified
5588         index. So I added an Insert method.
5589
5590 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5591
5592         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5593           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5594           is for Jackson
5595         * RichTextBox.cs: Added calls to base for DnD events
5596
5597 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5598
5599         * TextControl.cs:
5600           - Fixed drag-selection related crash; style fixes
5601           - Implemented undo class
5602             o Implemented method to capture document state for specified
5603               range in document tree
5604             o Implemented method to restore captured document state
5605             o Implemented cursor tracking
5606             o Implemented basic undo stack
5607           - Added undo cursor tracking to methods altering cursor location
5608           - Added undo tracking to selection deletion (still missing
5609             other text-altering hookups)
5610         * RichTextBox.cs:
5611           - Added SelectionLength property
5612           - Implemented CanPaste()
5613           - Implemented Paste()
5614           - Added missing protected methods
5615           - Fixed RTF->Document conversion; now uses font index 0 and color 
5616             index 0 as the default font for the parsed text
5617           - Fixed RTF<->Document font size translation
5618           - Fixed RTF generation, now properly handles cross-tag boundaries
5619             for single line selection
5620           - No longer always appends blank line to generated RTF
5621           - Removed TODOs
5622           - Added missing attributes
5623           - Hooked up undo-related methods
5624         * TextBoxBase.cs:
5625           - Implemented Copy()
5626           - Implemented Paste()
5627           - Implemented Cut()
5628           - Fixed caret mis-behaviour on backspace across line-boundaries
5629
5630 2005-11-29  Jackson Harper  <jackson@ximian.com>
5631
5632         * MdiClient.cs: Add a method for activating mdi children. Very
5633         basic right now. I imagine someday it might need more girth.
5634         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5635         children windows names are added to the menu item.
5636         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5637         mdilist. This happens regardless of whether or not there are any
5638         mdi windows to see in the list, and according to my tests happens
5639         before the items are even added. Also happens if there isn't even
5640         an mdi client to get windows from.
5641
5642 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5643
5644         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5645         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5646
5647 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5648
5649         * DataGridTableStyle.cs:
5650           - Create always the styles for the missing columns even if they are
5651             provided by the user (not default table style)
5652         * DataGrid.cs:
5653           - Fixes bug 76770
5654           - Fixes SetDataBinding (always re-attach source)
5655           - Fixes SetNewDataSource (only clear styles if they are not for 
5656             this source)
5657          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5658             and remove properly
5659
5660 2005-11-29  Jackson Harper  <jackson@ximian.com>
5661
5662         * FileDialog.cs: Implement missing bits, remove some dead
5663         code.
5664         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5665         creation of the panel so that the options set on the dialog are
5666         seen when the panel is created.
5667         * TreeView.cs: raise a click when items are clicked.
5668         
5669 2005-11-29  Jackson Harper  <jackson@ximian.com>
5670
5671         * MdiClient.cs: Pass some signature methods through to base.
5672
5673 2005-11-28  Jackson Harper  <jackson@ximian.com>
5674
5675         * ListView.cs: Raise the click event when items are clicked.
5676
5677 2005-11-28  Jackson Harper  <jackson@ximian.com>
5678
5679         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5680         a nullref.
5681
5682 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5683
5684         * ThemeNice.cs: - Removed 1 pixel bitmaps
5685           - Use SmoothingMode.AntiAlias where it makes sense
5686             (ScrollButton arrow for example)
5687           - Enhanced Button focus drawing
5688           - Fixed ComboBox drawing (no artefacts anymore, focus
5689             rectangle is back again, reduced size of ComboButton, etc.)
5690           - Fixed RadioButton focus drawing for Appearence.Button
5691           - Slight ScrollButton redesign
5692           - Some LinearGradientBrush size fixes
5693           - GroupBoxes have now rounded edges
5694           - Fixed StatusBar drawing
5695
5696 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5697
5698         * ThemeNice.cs: - Remove dead code
5699           - use correct background colors for menus, etc.
5700           - Fake pixel drawing with 1 pixel bitmaps
5701
5702 2005-11-24  Jackson Harper  <jackson@ximian.com>
5703
5704         * MdiClient.cs: Size the scrollbars when resizing the window.
5705         - Resize the maximized windows when the client is resized
5706         * Form.cs: Make the child context available
5707         
5708 2005-11-23  Jackson Harper  <jackson@ximian.com>
5709
5710         * MdiChildContext.cs: Don't size windows if they are maximized.
5711
5712 2005-11-23  Mike Kestner  <mkestner@novell.com>
5713
5714         * ContextMenu.cs: use MenuTracker.
5715         * Control.cs: remove menu handle usage.
5716         * Form.cs: remove menu handle usage.
5717         * Hwnd.cs: remove menu handle usage.
5718         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5719         motion and clicks to the new Tracker handlers.
5720         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5721         and handle usage.
5722         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5723         Killed the MENU and MENUITEM data types and associated collections
5724         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5725         MenuTracker class that exposes the leftovers from the old MenuAPI
5726         static methods. Restructured Capture handling so that only one grab is
5727         done for the entire menu hierarchy instead of handing off grabs to
5728         submenus. Tracker now has an invisible control to Capture when active.
5729         * MenuItem.cs: add sizing accessors, kill Create
5730         and handle usage.
5731         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5732         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5733         MENU(ITEM). remove menu handle usage, use Menu directly.
5734         * XplatUIDriver.cs: remove menu handle usage.
5735         * XplatUIOSX.cs: remove menu handle usage.
5736         * XplatUIWin32.cs: remove menu handle usage.
5737         * XplatUIX11.cs: remove menu handle usage.
5738
5739 2005-11-22  Jackson Harper  <jackson@ximian.com>
5740
5741         * Hwnd.cs: Don't compute the menu size for
5742         DefaultClientRectangle.
5743         - Reenable menu sizes being computed for GetClienRectangle.
5744         * Form.cs: Remove comment of trechery
5745         
5746 2005-11-22  Jackson Harper  <jackson@ximian.com>
5747
5748         * Hwnd.cs: The adjustments for the menu bar are made when it is
5749         attached to the form.
5750
5751 2005-11-19  Jackson Harper  <jackson@ximian.com>
5752
5753         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5754         (just like on windows).
5755
5756 2005-11-19  Jackson Harper  <jackson@ximian.com>
5757
5758         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5759         use real buttons anymore because they are in non client area. The
5760         one TODO here is that I need to somehow invalidate a section of
5761         the non client area.
5762
5763 2005-11-18  Jackson Harper  <jackson@ximian.com>
5764
5765         * Control.cs: Put the enum check back in now that MDI doesnt have
5766         to use this to set border styles.
5767         * Form.cs: Only set mdi child windows borders if the handle has
5768         been created.
5769         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5770         this directly on to the driver.
5771         - Get the move start position before adjusting for the titlebar
5772         height, this fixes the windows "skipping" when they are first
5773         moved.
5774
5775 2005-11-18  Jackson Harper  <jackson@ximian.com>
5776
5777         * XplatUIX11.cs: Just compute the mdi borders separately as they
5778         don't totally match up with normal form borders.
5779
5780 2005-11-18  Jackson Harper  <jackson@ximian.com>
5781
5782         * Control.cs: Set WS_ styles for borders, so that the driver does
5783         not have to retrieve the control instance to figure out what kind
5784         of borders it should have.
5785         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5786         driver can know its an mdi child easily.
5787         * XplatUIX11.cs: Get the border styles and whether the window is
5788         MDI from the Styles and ExStyles params instead of having to get a
5789         control. This prevents a chicken and egg problem.       
5790
5791 2005-11-18  Jackson Harper  <jackson@ximian.com>
5792
5793         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5794
5795 2005-11-18  Jackson Harper  <jackson@ximian.com>
5796
5797         * MdiClient.cs: Calculate when to add and remove scrollbars
5798         correctly.
5799         * MdiChildContext.cs: Adjust the y position to take the titlebar
5800         into account.
5801         - No height for FormBorderStyle.None
5802
5803 2005-11-18  Jackson Harper  <jackson@ximian.com>
5804
5805         * Control.cs: Allow non enum values to be used for
5806         InternalBorderStyle.  MDI does this to set a special border style.
5807         - New utility methods for converting points to/from client coords
5808         - Add the newly created control to the Controls collection before
5809         updating its style. This way UpdateStyle can walk the control
5810         heirarchy to find the control if needed.
5811         so I don't need to create a new Point object all the time.
5812         * Form.cs: Let MDI windows handle their border styles.
5813         - Set styles on MDI windows so the correct title style is derived.
5814         * MdiChildContext.cs: Move all the painting and window handling
5815         into the non client area.
5816         - Use correct sizing and put correct buttons on frames based on
5817         the FormBorderStyle.
5818         - Notify the mdi client about scrolling
5819         - Need to handle the buttons ourselves now, because they are all
5820         in non client areas and we can't add controls there.
5821         * MdiClient.cs: Halfway to scrolling, this implementation is
5822         somewhat broken though, we need to check to make sure other
5823         windows aren't causing scrolling before removing the bars. Also
5824         the bars need to be drawn on top, maybe I can switch implicit
5825         controls to be on top.
5826         * Hwnd.cs: caption_height and tool_caption_height are now
5827         properties of an hwnd, this way they can be set by the driver
5828         based on the type of window they are.  In X11 the window manager
5829         handles the decorations so caption_height is zero unless its an
5830         MDI window.
5831         - Add 3 pixel borders for MDI windows (0xFFFF).
5832         - Get rid of some code duplication, have DefaultClientRectanle
5833         just call GetClientRectangle.
5834         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5835         Hwnd now.
5836         - Set border styles differently for mdi windows.
5837         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5838         Hwnd now.
5839         
5840 2005-11-15  Mike Kestner  <mkestner@novell.com>
5841
5842         * Menu.cs: when adding an item to the collection, if item is already 
5843         parented, remove it from the parent.
5844
5845 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5846
5847         * X11DesktopColors.cs: Added KDE support
5848
5849 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5850
5851         * XplatUIWin32.cs: 
5852           - Clipboard methods now can translate Rtf format
5853           - No longer removes clipboard contents whenever a new format is added
5854             to allow placing multiple formats on the clipboard
5855         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5856           will place all formats contained in it onto the clipboard. Also
5857           now cleans the clipboard before placing a new object onto it
5858         * RichTextBox.cs:
5859           - Implemented set_Rtf
5860           - Implemented set_SelectedRtf
5861           - Created InsertRTFFromStream() method to allow single code base
5862             for all properties and methods that insert RTF into document
5863           - Removed debug output
5864         * TextControl.cs:
5865           - Fixed Delete(int) to fix up line numbers
5866           - Fixed ReplaceSelection to combine start and end line
5867           - Fixed serious DeleteChars bug that would leave the document tree
5868             broken
5869           - Improved DumpTree with several logic checks to detect broken
5870             document trees
5871           - Removed debug lines
5872           - Fixed Caret.WordForward/WordBack moving code, now always also 
5873             updates caret.tag (fixes crash when word-selecting across tag
5874             boundaries via keyboard)
5875           - Added Insert() method for inserting multiline text into documents
5876           - Fixed DeleteChars() calculation errors that would cause a broken
5877             tag chain with multiple tag lines
5878           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5879           - Split() no longer moves caret if split is at caret location
5880           - ReplaceSelection() now updates the cursor and re-displays it
5881           - ReplaceSelection() now uses new Insert() method to avoid code
5882             duplication
5883           - FormatText() can now handle formatting partial lines
5884         * TextBoxBase.cs:
5885           - Append now uses new TextControl.Insert() method (this avoids 
5886             duplicate code)
5887           - Implemented Ctrl-X (Cut) (
5888           - Implemented Ctrl-C (Copy)
5889           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5890             regeneration when pasting text; roundtripping Copy&Paste within
5891             edit control still fails due to some calculation bugs in GenerateRTF)
5892           - The Delete key will now remove the current selection if it is visible
5893         * TextBox.cs: Removed debug lines
5894         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5895           driver to be initialized and can't therefore be done via a static ctor)
5896
5897 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5898
5899         * TextControl.cs: Added backend code for finding char arrays and strings
5900         * TextBoxBase.cs:
5901           - Added mouse wheel scroll support
5902           - Added support for VScroll and HScroll events
5903         * RichTextBox.cs:
5904           - Implemented all seven Find() variants
5905           - Implemented GetCharFromPosition()
5906           - Implemented GetCharIndexFromPosition()
5907           - Implemented GetLineFromIndex()
5908           - Implemented GetPositionFromCharIndex();
5909           - Implemented SaveFile for PlainText and UnicodeText
5910           - Fixed set_Font, now setting a new font applies that font to
5911             the whole document
5912           - Implemented generic Document to RTF converter
5913           - Implemented SaveFile for RichText format (still missing unicode
5914             conversion for non-ansi chars)
5915           - Implemented get_Rtf
5916           - Implemented get_SelectedRtf
5917
5918 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5919
5920         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5921           to allow any captures to be released before triggering OnClick. This
5922           way a click handler may capture the mouse without interference.
5923         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5924           This way we send them even though X may not allow a grab (if the window
5925           isn't visible, for example)
5926
5927 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5928
5929         * DataGridViewRowEventArgs.cs: DataGridView implementation
5930         * DataGridViewElement.cs: DataGridView implementation
5931         * DataGridViewComboBoxCell.cs: DataGridView implementation
5932         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5933         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5934         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5935         * ImageLayout.cs: DataGridView implementation
5936         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5937         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5938         * DataGridViewSelectionMode.cs: DataGridView implementation
5939         * IDataGridViewEditingControl.cs: DataGridView implementation
5940         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5941         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5942         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5943         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5944         * DataGridViewColumnSortMode.cs: DataGridView implementation
5945         * DataGridView.cs: DataGridView implementation
5946         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5947         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5948         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5949         * Padding.cs: DataGridView implementation
5950         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5951         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5952         * DataGridViewRowEventHandler.cs: DataGridView implementation
5953         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5954         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5955         * DataGridViewButtonCell.cs: DataGridView implementation
5956         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5957         * DataGridViewEditMode.cs: DataGridView implementation
5958         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5959         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5960         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5961         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5962         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5963         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5964         * DataGridViewCellEventHandler.cs: DataGridView implementation
5965         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5966         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5967         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5968         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5969         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5970         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5971         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5972         * QuestionEventArgs.cs: DataGridView implementation
5973         * IDataGridViewEditingCell.cs: DataGridView implementation
5974         * DataGridViewTriState.cs: DataGridView implementation
5975         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5976         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5977         * DataGridViewColumnCollection.cs: DataGridView implementation
5978         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5979         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5980         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5981         * DataGridViewColumn.cs: DataGridView implementation
5982         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5983         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5984         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5985         * DataGridViewRow.cs: DataGridView implementation
5986         * DataGridViewImageCellLayout.cs: DataGridView implementation
5987         * DataGridViewImageCell.cs: DataGridView implementation
5988         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5989         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5990         * DataGridViewHeaderCell.cs: DataGridView implementation
5991         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5992         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5993         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5994         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5995         * QuestionEventHandler.cs: DataGridView implementation
5996         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5997         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5998         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5999         * DataGridViewCell.cs: DataGridView implementation
6000         * DataGridViewCellEventArgs.cs: DataGridView implementation
6001         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
6002         * DataGridViewCellStyle.cs: DataGridView implementation
6003         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
6004         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
6005         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
6006         * TextFormatFlags.cs: DataGridView implementation
6007         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
6008         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
6009         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
6010         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
6011         * DataGridViewButtonColumn.cs: DataGridView implementation
6012         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
6013         * HandledMouseEventArgs.cs: DataGridView implementation
6014         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
6015         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
6016         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
6017         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
6018         * DataGridViewRowCollection.cs: DataGridView implementation
6019         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
6020         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
6021         * DataGridViewHitTestType.cs: DataGridView implementation
6022         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
6023         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
6024         * DataGridViewColumnEventHandler.cs: DataGridView implementation
6025         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
6026         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
6027         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
6028         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
6029         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
6030         * DataGridViewContentAlignment.cs: DataGridView implementation
6031         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
6032         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
6033         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
6034         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
6035         * DataGridViewPaintParts.cs: DataGridView implementation
6036         * DataGridViewCellCollection.cs: DataGridView implementation
6037         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
6038         * DataGridViewImageColumn.cs: DataGridView implementation
6039         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
6040         * DataGridViewElementStates.cs: DataGridView implementation
6041         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
6042         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
6043         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
6044         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
6045         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
6046         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
6047         * DataGridViewRowHeaderCell.cs: DataGridView implementation
6048         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
6049         * DataGridViewTextBoxCell.cs: DataGridView implementation
6050         * DataGridViewBand.cs: DataGridView implementation
6051         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
6052         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
6053         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
6054         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
6055         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
6056         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
6057         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
6058         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
6059         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
6060         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
6061         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
6062
6063 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
6064
6065         * ThemeWin32Classic.cs: 
6066           - Draw the outside focus rectangle around buttons
6067           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
6068             doesn't use end caps for every dash of a line anymore. This
6069             workaround ignores the forecolor.
6070
6071 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
6072
6073         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
6074           endian safe.
6075
6076 2005-11-07  Jackson Harper  <jackson@ximian.com>
6077
6078         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
6079
6080 2005-11-07  Jackson Harper  <jackson@ximian.com>
6081
6082         * ScrollableControl.cs: Calculate the maximum and change vars
6083         (more) correctly so that scrollbars appear as a sensible size.
6084
6085 2005-11-04  Jackson Harper  <jackson@ximian.com>
6086
6087         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
6088         collection.
6089         * TreeView.cs: When the tree is sorted null out the top_node so
6090         that it is recalculated.
6091         - Use dotted lines instead of dashed lines to match MS better.
6092
6093 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
6094
6095         * ListView.cs: 
6096           - Implements key search for items. Useful when browsing files with FileDialog
6097           - When changing view mode or when clear the items reset scrollbar positions
6098
6099 2005-11-04  Jackson Harper  <jackson@ximian.com>
6100
6101         * CurrencyManager.cs: Implement the MetaDataChanged event, the
6102         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
6103         as to what the method may do as there is no real way of creating a
6104         derived CurrencyManager and calling the method. 
6105
6106 2005-11-03  Jackson Harper  <jackson@ximian.com>
6107
6108         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
6109         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
6110         method which seems to just be used internally to refresh the tabs.
6111
6112 2005-11-03  Jackson Harper  <jackson@ximian.com>
6113
6114         * TabControl.cs: Implement the remove method. Fix some broken
6115         comments.
6116
6117 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6118
6119         * DateTimePicker.cs:
6120           - Added missing DateTimePickerAccessibleObject class
6121           - Added missing events
6122           - Added OnFontChanged method
6123         * Form.cs: Added missing attributes
6124         * TreeView.cs: Added missing attributes
6125
6126 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
6127
6128         * GridItemCollection.cs: Fix signatures
6129
6130 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6131
6132         * XplatUI.cs: Updated build rev/date
6133         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
6134           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
6135         * Application.cs: Trigger context-specific ExitThread events
6136
6137 2005-11-03  Jackson Harper  <jackson@ximian.com>
6138
6139         * Menu.cs:
6140         * MainMenu.cs:
6141         * GridTableStylesCollection.cs:
6142         * Timer.cs:
6143         * TabPage.cs:
6144         * HelpProvider.cs:
6145         * StatusBar.cs:
6146         * MonthCalendar.cs: Signature fixes
6147
6148 2005-11-03  Jackson Harper  <jackson@ximian.com>
6149
6150         * TreeNodeCollection.cs: Remove should not be virtual.
6151         * TreeView.cs: Implement the last of the missing methods.
6152
6153 2005-11-03  Jackson Harper  <jackson@ximian.com>
6154
6155         * TreeNodeConverter.cs: Implement to get off my class-status back.
6156
6157 2005-11-03  Jackson Harper  <jackson@ximian.com>
6158
6159         * TreeView.cs: Hookup the bits for drag and drop.
6160         * TreeNode.cs: Don't cache the tree_view or index anymore, now
6161         that nodes can be moved from tree to tree easily this just causes
6162         all sorts of problems.
6163         * TreeNodeCollection: Don't need to give treenodes an index and
6164         treeview anymore when they are added, these are computed on the
6165         fly. Also make sure to remove a node before its added.
6166
6167 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6168
6169         * TextControl.cs:
6170           - Added CaretSelection enum
6171           - Added comparison methods to Marker struct, makes selection code
6172             more readable
6173           - Added SelectionStart and SelectionEnd as 'moveable' location for
6174             the CaretDirection enum and handler
6175           - Added selection_prev variable to track optimized invalidation for
6176             word and line selection
6177           - Added SelectionVisible property (returns true if there is a valid 
6178             selection)
6179           - Switched CaretHasFocus to only display the caret if there is no
6180             visible selection
6181           - Avoiding StringBuilder.ToString to retrieve a single char, instead
6182             using the direct character index; should be much faster
6183           - Added various conditional debug statements
6184           - Fixed invalidation calculation for selection ranges
6185           - Added ExpandSelection() method to support word and line selection
6186           - Switched SetSelectionToCaret to use new Marker compare overloads
6187           - Added central IsWordSeparator() method to determine word 
6188             separators/whitespace and FindWordSeparator() to streamline common
6189             usage of IsWordSeparator()
6190         * TextBoxBase.cs:
6191           - Removed unneeded grabbed variable, it was just mirroring
6192             Control.Capture
6193           - No longer firing OnTextChanged event when Text setter is called,
6194             since the base will fire the event for us
6195           - Added handling of Ctrl-Up/Down selection
6196           - Added handling of Shift-Cursorkey selection
6197           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
6198             words
6199           - Added handling of Shift and Ctrl-Shift-Home/End selection
6200           - Removed some debug output
6201           - Added handling for single/double/tripple-click to place caret/
6202             select word/select line respectively (Fixes bug #76031)
6203           - Added support for drag expansion of word/line selection
6204         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
6205           current selection
6206
6207 2005-11-02  Jackson Harper  <jackson@ximian.com>
6208
6209         * X11Dnd.cs: If the drag is going to and from a MWF window just
6210         copy the data instead of sending it out through the X Selection
6211         mechanism.
6212
6213 2005-11-02  Jackson Harper  <jackson@ximian.com>
6214
6215         * X11Dnd.cs:
6216         * XplatUIX11.cs: When in a drag we don't want motion notify
6217         messages to get passed on to the other controls. This prevents
6218         mouse move messages from showing up in the drag source.
6219
6220 2005-11-02  Jackson Harper  <jackson@ximian.com>
6221
6222         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
6223         the correct button is release to end a drag.
6224         * XplatUIX11.cs: Make the button state internal so the drag system
6225         can access it.  Dragging needs to know about all button releases,
6226         not just left button.
6227
6228 2005-11-02  Miguel de Icaza  <miguel@novell.com>
6229
6230         * Form.cs (Icon): If the icon is null, reset the icon to the
6231         default value. 
6232
6233         * Cursor.cs: When writing the AND-mask bitmap do not include the
6234         number of colors, but hardcode those to two (black and white),
6235         fixes the loading of color cursors (Paint Dot Net).
6236
6237         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6238         turn off autoscaling.
6239
6240         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6241
6242 2005-11-02  Jackson Harper  <jackson@ximian.com>
6243
6244         * X11Dnd.cs: Make sure to send a status message if the pointer
6245         enters a control that can not accept a drop, otherwise the cursor
6246         isn't updated correctly. Also tried to compress the lines of code
6247         a bit.
6248
6249 2005-11-02  Jackson Harper  <jackson@ximian.com>
6250
6251         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6252         set actions correctly.  This isn't perfect as XDND and win32 have
6253         some differences on how you allow actions. I'll clear this up by
6254         adding a path for drag from MWF to MWF windows.
6255         * XplatUIX11.cs: Hook into the dnd system.
6256
6257 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
6258
6259         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6260         previously shown but they are no longer need it. Very obvious when 
6261         browsing files with FileDialog.
6262
6263 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
6264
6265         * Control.cs: We always need to call OnPaintBackground. We pretty much
6266           ignore AllPaintingInWmPaint and always do the painting there, whether 
6267           it's set or not, since we always ignore the WM_ERASEBKGND message 
6268           (which we don't generate on X11). This fixes #76616.
6269         * Panel.cs: Removed unneeded background painting. This happens properly
6270           in Control.cs already
6271
6272 2005-10-31  Mike Kestner  <mkestner@novell.com>
6273
6274         * Menu.cs: Add items to collection before setting their index.
6275         * MenuItem.cs : add range checking with ArgumentException like MS.
6276         [Fixes #76510]
6277
6278 2005-10-31  Jackson Harper  <jackson@ximian.com>
6279
6280         * ListBox.cs: Invalidate if the area is visible at all not just
6281         contained in the visible rect. Fixes unselection of semi visible
6282         items.
6283
6284 2005-10-31  Jackson Harper  <jackson@ximian.com>
6285
6286         * Control.cs: Consistently name the dnd methods. Make them
6287         internal so we can override them to match some MS behavoir
6288         internally.
6289         * Win32DnD.cs: Use the new consistent names.
6290
6291 2005-10-31  Jackson Harper  <jackson@ximian.com>
6292
6293         * TreeView.cs: Don't draw the selected node when we lose focus.
6294
6295 2005-10-31  Jackson Harper  <jackson@ximian.com>
6296
6297         * X11Dnd.cs: We still need to reset the state even though a full
6298         reset isn't being done, otherwise status's still get sent all over
6299         the place.
6300
6301 2005-10-31  Jackson Harper  <jackson@ximian.com>
6302
6303         * Control.cs: Make the dnd_aware flag internal so the dnd
6304         subsystem can check it. Catch exceptions thrown in dnd handlers to
6305         match MS behavoir.
6306         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6307         * X11Dnd.cs: Handle null data in the converters. Set the XDND
6308         version when sending a XdndEnter. Use the control/hwnd dnd_aware
6309         flags to reduce the number of dnd enters/status's sent.
6310
6311 2005-10-31  Jackson Harper  <jackson@ximian.com>
6312
6313         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6314
6315 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
6316
6317         * PictureBox.cs: Fixes 76512
6318
6319 2005-10-28  Jackson Harper  <jackson@ximian.com>
6320
6321         * X11Dnd.cs: Early implementation to support winforms being a drag
6322         source for data on X11. Also restructured the converters so they
6323         can go both ways now.
6324         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6325         
6326 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
6327
6328         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6329           clipboard requests
6330
6331 2005-10-27  Jackson Harper  <jackson@ximian.com>
6332
6333         * TreeNode.cs: Implement serialization so my DnD examples will work.
6334
6335 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6336
6337         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6338           TreeView.cs: Don't dispose objects that are not owned.
6339           
6340 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6341
6342         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6343           should retrieve the current cursor and report that, but XplatUI
6344           doesn't (yet) have an interface for that (and I'm not sure I even
6345           can, on X11)
6346         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6347           until any message loop processing is done (and the WM_SETCURSOR
6348           replaces the cursor to the proper one)
6349         * XplatUIX11.cs: 
6350           - Fixed override behaviour, we can't set the cursor globally on X11, 
6351             just for our windows.
6352           - Invalidating the System.Drawing X11 display handle when we are
6353             shutting down
6354         * Control.cs: Fix to make csc happy
6355
6356 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6357
6358         * TextBoxBase.cs: 
6359           - get_Text: Add last line (without trailing newline) to returned
6360             value (Fixes 76212)
6361           - get_TextLength: Count last line in returned length
6362           - ToString: Call Text property instead of duplicating code
6363
6364 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6365
6366         * ImageList.cs: Dispose ImageAttributes objects.
6367
6368 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6369
6370         * ImageList.cs: Use attribute constructors with less arguments where
6371           possible.
6372
6373 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6374
6375         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6376           Use typeof instead of strings when assembly is referenced. Added
6377           some more comments.
6378
6379 2005-10-21  Jackson Harper  <jackson@ximian.com>
6380
6381         * ListView.cs: Raise a double click event. Also tried to somewhat
6382         fix when the selectedindexchanged event is raised. Its still
6383         broken though.
6384
6385 2005-10-21  Jackson Harper  <jackson@ximian.com>
6386
6387         * TreeView.cs: New method to invalidate the plus minus area of a
6388         node without invalidating the whole node (maybe this can be used
6389         in some more places).
6390         * TreeNodeCollection.cs: When adding to an empty node we need to
6391         invalidate its plus minus area so the little block shows up.
6392         
6393 2005-10-21  Jackson Harper  <jackson@ximian.com>
6394
6395         * TreeView.cs: Make sure that when we invalidate a node the bounds
6396         are big enough to cover the selected box and the focus
6397         rectangle. Use a different colour for the lines connecting nodes
6398         so they show up with all themes.
6399
6400 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6401
6402         * NativeWindow.cs: Don't call anything that could call into the driver,
6403           we might be on a different thread.
6404
6405 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6406
6407         * Control.cs(Dispose): Since Dispose might run on a different thread,
6408           make sure that we call methods that could call into the driver via
6409           invoke, to avoid thread issues
6410
6411 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6412
6413         * XplatUI.cs: Removed finalizer
6414         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6415           not allowing to be called on the finalizer thread.
6416
6417 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6418
6419         * ImageList.cs:
6420           - Reverted r51889 and r51891.
6421           - Added ImageListItem class that stores unmodified image items and image
6422             properties required to create list images until handle is created.
6423           - Added AddItem and moved image creation logic to AddItemInternal.
6424           - Added CreateHandle method that creates images based on unmodified items.
6425           - Added DestroyHandle that changes state to store unmodified items.
6426           - Add and AddStrip methods no more create handle.
6427           - ReduceColorDepth has no return value.
6428           - Dispose destroys handle.
6429           - Modified other methods to reflect the above changes.
6430           - Implemented key support.
6431           - Added profile 2.0 members and attributes.
6432           - Added private Reset and ShouldSerialize methods that provide the same
6433             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6434             them as they are private.
6435           - Added some more comments about implementation details.
6436
6437 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6438
6439         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6440
6441 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6442
6443         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6444
6445 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6446
6447         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6448         * DataGridColumnStyle.cs: Remove debug message
6449
6450 2005-10-20  Jackson Harper  <jackson@ximian.com>
6451
6452         * TreeView.cs: We can always get input keys regardless of whether
6453         or not editing is enabled. They are used for navigation.
6454
6455 2005-10-20  Jackson Harper  <jackson@ximian.com>
6456
6457         * TreeNode.cs: Use the viewport rect for determining if a node
6458         needs to be moved for visibility. Don't use Begin/End edit. This
6459         calls a full refresh when its done.
6460         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6461         rect property internal so the treenodes can see it. When clicking
6462         on a node we need to ensure that its visible because it might just
6463         be partly visible when clicked.
6464
6465 2005-10-20  Jackson Harper  <jackson@ximian.com>
6466
6467         * TreeNodeCollection.cs: Remove debug code.
6468
6469 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6470
6471         * Datagrid.cs: Implements column sorting in Datagrid
6472         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6473
6474 2005-10-20  Jackson Harper  <jackson@ximian.com>
6475
6476         * TreeNodeCollection.cs: Remove items properly. Update the correct
6477         area after removing them.
6478
6479 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6480
6481         * Datagrid.cs: Should not call base.OnPaintBackground
6482
6483 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6484
6485         * XplatUIX11.cs (GetMessage):
6486           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6487             window instead of client window
6488           - Now properly calculates NC_xBUTTONUP message coordinates
6489           - ScreenToMenu now properly calculates it's coordinates of whole 
6490             window, since menus are in the whole window, not in the client
6491             window
6492           - Added WholeToScreen coordinate translation method
6493
6494 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6495
6496         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6497           want to return a message, loop back to the beginning of the function
6498           and grab the next real message to process instead.
6499
6500 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6501
6502         * Splitter.cs: Properly set limits if no filler control is used
6503
6504 2005-10-19  Jackson Harper  <jackson@ximian.com>
6505
6506         * ColorDialog.cs: Don't show the help button if it is not enabled
6507         instead of disabling it (this is what MS does). Don't create the
6508         panel until the dialog is run, otherwise the vars (such as
6509         ShowHelp) are not set yet.
6510
6511 2005-10-19  Jackson Harper  <jackson@ximian.com>
6512
6513         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6514         are reduced when adding nodes.
6515         * TreeNode.cs:
6516         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6517         tree.
6518         
6519 2005-10-19  Jackson Harper  <jackson@ximian.com>
6520
6521         * FolderBrowserDialog.cs: End editing our treeview so the window
6522         actually gets refreshed.
6523
6524 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6525
6526         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6527           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6528           inside of WM_PAINT
6529
6530 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6531
6532         * MenuAPI.cs: Returns after Hidding window
6533         * XplatUIX11.cs: Added TODO found while debugging menu issues
6534
6535 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6536
6537         * XplatUIX11.cs: Do not re-map the whole window when it's size
6538           becomes non-zero unless it's supposed to be actually visible
6539
6540 2005-10-18  Jackson Harper  <jackson@ximian.com>
6541
6542         * TreeView.cs: We don't need to keep a count anymore.
6543         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6544         use the Grow method.
6545
6546 2005-10-18  Jackson Harper  <jackson@ximian.com>
6547
6548         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6549         implement it manually here.
6550
6551 2005-10-18  Jackson Harper  <jackson@ximian.com>
6552
6553         * ImageList.cs: Dont kill the list when the colour depth is
6554         changed, just change the colour depth of all the images.
6555         - Same goes for setting the image size. Just resize them all
6556         instead of killing the list softly.
6557
6558 2005-10-18  Jackson Harper  <jackson@ximian.com>
6559
6560         * Control.cs: Don't invalidate empty rectangles.
6561
6562 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6563
6564         * ListViewItem.cs:
6565           - Adds checked item to the Checked/Item lists (where empty before)
6566           - Do not add items to the Selected lists if they are already present
6567         * ListView.cs:
6568           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6569           - When deleting items make sure that we delete them for the Selected
6570           and Checked list also.
6571
6572 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6573
6574         * Label.cs: Dispose objects no longer used
6575         * ThemeWin32Classic.cs: Dispose objects no longer used
6576
6577 2005-10-18  Jackson Harper  <jackson@ximian.com>
6578
6579         * TabControl.cs: Don't refresh the whole control when the tabs are
6580         scrolled, we just need to refresh the tab area.
6581
6582 2005-10-17  Jackson Harper  <jackson@ximian.com>
6583
6584         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6585         after handle when we need it.
6586
6587 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6588
6589         * Control.cs: When the parent size changes, recalculate anchor 
6590           positions. Partial fix for #76462
6591
6592 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6593
6594         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6595           drawn. Fixes #76462
6596
6597 2005-10-17  Jackson Harper  <jackson@ximian.com>
6598
6599         * MonthCalendar.cs: Don't create the numeric up down until our
6600         handle is created. Otherwise our handle is created in the
6601         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6602         yet.
6603
6604 2005-10-17  Jackson Harper  <jackson@ximian.com>
6605
6606         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6607         correctly.
6608
6609 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6610         * TreeNode.cs : small logical fix (was using local var instead of field)
6611         
6612 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6613
6614         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6615
6616 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6617
6618         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6619
6620 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6621
6622         * Control.cs: 
6623           - Re-implemented anchoring code. My first version was really broken.
6624             This fixes bug #76033. Unlike the previous implementation we will
6625             no longer have round errors since all numbers are calculated from
6626             scratch every time. Removed various anchor-related obsolete vars.
6627           - InitLayout no longer causes layout event firing and layout to be 
6628             performed
6629
6630 2005-10-16  Jackson Harper  <jackson@ximian.com>
6631
6632         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6633         which was broken).
6634
6635 2005-10-16  Jackson Harper  <jackson@ximian.com>
6636
6637         * TabControl.cs: Remove debug code.
6638
6639 2005-10-16  Jackson Harper  <jackson@ximian.com>
6640
6641         * XEventQueue.cs: Increase the default queue size (very simple
6642         apps needed to grow the queue).
6643         * Hwnd.cs: No finalizer so we don't need to suppress
6644         finalization. Compute the invalid area manually so a new rectangle
6645         does not newto be created.
6646         * ScrollableControl.cs: Don't set any params (otherwise visibility
6647         isn't set correctly).
6648         * MdiChildContext.cs: New constructor takes the mdi parent so it
6649         doesn't have to be computed and avoids a crash on windows. Draw
6650         the window icon properly, and allow the text to be seen.
6651         * Form.cs: Use new MdiChildContext constructor. Make sure the
6652         child context isn't null in wndproc.
6653         * TabControl.cs: Don't set focus, this is muddling keyboard
6654         behavoir. Expand the tab rows when a window size increase will
6655         allow extra tabs to be seen. Don't allow tabs smaller than the
6656         width of a window to be scrolled out of view.
6657         * TreeNode.cs:
6658         * TreeView.cs: Use measure string to calculate a nodes width, the
6659         width is cached and only updated when the text or the font is
6660         changed. Don't check for expand/collapse clicks on the first level
6661         nodes if root lines are disabled.
6662         
6663 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6664
6665         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6666
6667 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6668
6669         * DataGridBoolColumn.cs: fixes warning
6670
6671 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6672
6673         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6674         to match more to match more precisely the MS Net behavior
6675
6676 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6677
6678         * Hwnd.cs: Added field to track if window is mapped
6679         * XplatUIX11.cs: 
6680           - Unmap windows if they become 0-size, re-map when 
6681             they are >0 again; fixes #76035
6682           - Re-set our error handler after initializing X11Desktop
6683             to override any error handlers Gtk or whatever was called
6684             may have set.
6685
6686 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6687
6688         * CheckedListBox.cs: Removed unused vars
6689         * ListView.cs: Fixed signatures
6690         * RichTextBox.cs: Removed unused vars
6691         * TextBoxBase.cs: Removed unused vars
6692         * XplatUIWin32.cs: Removed unused vars
6693         * XplatUIX11.cs: Removed unused vars
6694         * XplatUI.cs: Updated version and date to latest published
6695
6696 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6697
6698         * Cursor.cs: Added private .ctor to work around a bug in
6699           resourceset (Thanks to Geoff Norton for the help on this)
6700         * SplitterEventArgs.cs: Made fields accessible so we don't
6701           waste boatloads of objects and can reuse the same one
6702           in Splitter
6703         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6704           any captions and borders when generating screen coordinates
6705         * Splitter.cs: Reimplemented control, now fully complete, uses
6706           rubberband drawing, supports and obeys all properties, has
6707           proper cursors
6708
6709 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6710
6711         * Form.cs (Form): Setup default values for autoscale and
6712         autoscale_base_size;  Make these instance variables, not static
6713         variables. 
6714
6715         (OnLoad): on the first load, adjust the size of the form.
6716
6717 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6718
6719         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6720           width argument to DrawReversibleRectangle()
6721         * XplatUIWin32.cs, XplatUIX11.cs: 
6722           - Implemented width for DrawReversibleRectangle()
6723           - Added logic to DrawReversibleRectangle that recognizes a zero
6724             width or height and only draws a line in that situation
6725         
6726 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6727
6728         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6729         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6730         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6731           method (it uses our FosterParent window to get a graphics context)
6732
6733 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6734
6735         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6736           and SetWindowBackground methods
6737         * Control.cs:
6738           - Setting proper ControlStyles
6739           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6740             EraseWindowBackground, instead we draw the window background
6741             ourselves in PaintControlBackground. This behaviour is
6742             required to match MS, where, when OnPaintBackground is not
6743             called, the background is not drawn.
6744           - Removed unneeded Refresh() in set_Text
6745         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6746         * XplatUIX11.cs:
6747           - Created DeriveStyles method to translate from CreateParams to
6748             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6749             matches FormBorderStyle enum values)
6750           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6751             style calculations into single DeriveStyles method
6752           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6753             from redrawing the whole window on any resize or expose.
6754           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6755             all styles were applied to our whole/client window appropriately
6756           - Removed EraseWindowBackground() and SetWindowBackground() methods
6757           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6758             no longer clear/redraw the background through X
6759           - Removed handling of erase_pending bit, we have no use for it (or
6760             so it seems)
6761         * XplatUIOSX.cs:
6762           - Removed generation and handling of WM_ERASEBKGND message
6763           - Removed EraseWindowBackground() and SetWindowBackground() methods
6764           - Removed handling of hwnd.ErasePending flag
6765         * XplatUIWin32.cs:
6766           - Removed EraseWindowBackground() and SetWindowBackground() methods
6767           - We no longer call EraseWindowBackground on PaintEventStart, we 
6768             ignore the fErase flag, erasing is handled in Control in the
6769             background handler
6770         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6771           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6772           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6773           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6774           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6775           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6776           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6777
6778 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6779
6780         * PropertyGrids.cs: Get sub properties
6781         * PropertyGridView.cs: Fix drawing code
6782
6783 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6784
6785         * ListBox.cs: Fixes 76383
6786
6787 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6788
6789         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6790         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6791         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6792
6793
6794 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6795
6796         * ComboBox.cs: Fixes border drawing
6797
6798 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6799
6800         * MimeIcon.cs: Ignore errors if the file can not be read.
6801
6802 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6803
6804         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6805          - Fixed border calculations
6806          - Fixed horizontal scrolling in single column listboxes
6807          - Fixed drawing issues
6808
6809 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6810
6811         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6812           FormBorderStyle enum
6813         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6814           code to determine FormBorderStyles from CreateParams
6815         * Form.cs:
6816           - Fixed bug where we'd set the wrong window styles if we were
6817             not creating an MDI window
6818           - Added call to XplatUI.SetBorderStyle when form borders are set
6819         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6820         * Hwnd.cs:
6821           - Removed obsolete edge style
6822           - Switched from BorderStyle to FormBorderStyle
6823         
6824 2005-10-10  Jackson Harper  <jackson@ximian.com>
6825
6826         * Form.cs: Use the property to get the window handle instead of
6827         accessing it directly. Prevents a null reference exception.
6828
6829 2005-10-10  Jackson Harper  <jackson@ximian.com>
6830
6831         * TreeView.cs: Don't adjust the rect given to DrawString now that
6832         our libgdiplus draws correctly.
6833
6834 2005-10-08  Jackson Harper  <jackson@ximian.com>
6835
6836         * TreeView.cs: Don't try to find the clicked on node if there are
6837         no nodes in the tree.
6838
6839 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6840
6841         * RichTextBox.cs:
6842
6843           restore
6844
6845 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6846
6847         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6848           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6849           ErrorProvider.cs:
6850           Use ResPool for brushes and dispose System.Drawing objects that
6851           are not used anymore.
6852
6853 2005-10-07  Jackson Harper  <jackson@ximian.com>
6854
6855         * MdiChildContext.cs: Use the new borders instead of drawing them
6856         ourselves.
6857
6858 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6859
6860         * Calling UpdateBounds after changing the window's BorderStyle 
6861         since the style can change the ClientSize
6862
6863 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6864
6865         * Control.cs: Made PaintControlBackground virtual
6866         * Panel.cs: Overriding PaintControlBackground instead of using paint
6867           event; paint event method was interfering with 'real' users of the
6868           event.
6869
6870 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6871
6872         * ThemeWin32Classic.cs: remove border drawing since it is handled
6873         by the base control class now and was causing double border drawing.
6874
6875 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6876
6877         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6878           but it does seem to match MS behaviour. This fixes bug #75324
6879
6880 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6881
6882         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6883           somewhat hackish looking
6884
6885 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6886
6887         * TextBoxBase.cs:
6888           - We now accept Enter even if AcceptEnter is false, if the containing
6889             form does not have an AcceptButton configured (fixes bug #76355)
6890           - Calculations are now fixed to no longer use Width/Height, but
6891             ClientSize.Width/Height, since we now support borders (this was
6892             a result of fixing borders and therefore bug #76166)
6893           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6894             true (fixes bug #76354)
6895         
6896 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6897
6898         * Control.cs: 
6899           - Defaulting BorderStyle and setting it in XplatUI when our window 
6900             is created
6901           - Added enum check to InternalBorderStyle setter
6902         * XplatUIX11.cs: 
6903           - Added drawing of window borders
6904           - Now properly calculates WM decorations offset for toplevel 
6905             windows (fixes bug #74763)
6906         * XplatUIWin32.cs: 
6907           - Implemented BorderStyles for windows (we're letting win32 draw 
6908             the border for us)
6909           - Fixed the signature for SetWindowLong
6910         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6911           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6912           setting borders
6913         * UpDownBase.cs: Remove drawing of borders, this is handled by
6914           the driver, outside the client area
6915         * ListView.cs: Removed bogus border calculations. The control should
6916           be oblivious to borders, since those are not part of the client
6917           area. 
6918         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6919         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6920           drawing code
6921
6922 2005-10-06  Jackson Harper  <jackson@ximian.com>
6923
6924         * MdiChildContext.cs: Clear out the old virtual position remove
6925         all the unneeded calls to CreateGraphics.
6926
6927 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6928
6929         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6930
6931 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6932
6933         * Form.cs: 
6934           - Added loading and setting of our new default icon
6935           - Only set icon if window is already created
6936
6937 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6938
6939         * Label.cs:
6940           - Do not explicitly set the foreground and background colors, to
6941             allow inheriting from parents (fixes #76302)
6942           - Use Control's InternalBorderStyle property to deal with borders
6943
6944 2005-10-06  Jackson Harper  <jackson@ximian.com>
6945
6946         * MdiChildContext.cs: Use the new xplatui function to draw a
6947         reversible rect.
6948
6949 2005-10-06  Jackson Harper  <jackson@ximian.com>
6950
6951         * Form.cs: Add the parent before creating the child context cause
6952         we need the parent when setting up the child.
6953
6954 2005-10-06  Jackson Harper  <jackson@ximian.com>
6955
6956         * FolderBrowserDialog.cs: redo the tree population code so a
6957         second thread isn't used. Should be a lot faster and more stable
6958         now.
6959
6960 2005-10-05  Jackson Harper  <jackson@ximian.com>
6961
6962         * TreeView.cs: There are no expand/collapse boxes if the node has
6963         no children.
6964
6965 2005-10-05  Jackson Harper  <jackson@ximian.com>
6966
6967         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6968
6969 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6970
6971         * FileDialog.cs: Fix InitialDirectory
6972
6973 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6974
6975         * ComboBox.cs:
6976                 - Fixes changing between styles
6977                 - Fixes simple mode
6978                 - Fixes last item crashing when navigating with keyboard
6979
6980 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6981
6982         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6983
6984 2005-10-05  Jackson Harper  <jackson@ximian.com>
6985
6986         * TreeView.cs: If updating the root node do a full refresh.
6987         * TreeNode.cs: The root node should be expanded by default. Also
6988         added a utility prop to tell if we are the root node.
6989         * TreeNodeCollection.cs: Only refresh if the node we are being
6990         added to is expanded. Also added a comment on a potential
6991         optimization.
6992         
6993 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6994
6995         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6996           in dispose method. Fixes #76330
6997
6998 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6999
7000         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
7001
7002                 - Implements vertical and horizontal scrolling using XplatUI
7003                 - Fixes keyboard navagation
7004                 - Fixes EnsureVisible
7005                 - Drawing fixes
7006                 - Handles and draws focus properly
7007
7008
7009 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
7010
7011         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
7012           Create handle. NET_2_0: Destroy handle when value is null.
7013
7014 2005-10-03  Jackson Harper  <jackson@ximian.com>
7015
7016         * ScrollBar.cs: My last scrollbar patch was broken. This is a
7017         revert and a new patch to prevent the thumb from refreshing so
7018         much.
7019
7020 2005-10-02  Jackson Harper  <jackson@ximian.com>
7021
7022         * ScrollBar.cs: Don't update position if it hasn't actually
7023         changed. This occurs when you hold down the increment/decrement
7024         buttons and the thumb gets to the max/min.
7025
7026 2005-10-01  Jackson Harper  <jackson@ximian.com>
7027
7028         * Form.cs:
7029         * MdiChildContext.cs:
7030         * MdiClient.cs: Implement ActiveMdiChild in Form.
7031
7032 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
7033
7034         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
7035
7036 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
7037
7038         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
7039           be found
7040
7041 2005-09-30  Jackson Harper  <jackson@ximian.com>
7042
7043         * ListBox.cs: Don't do a full refresh unless some data has
7044         actually changed.
7045
7046 2005-09-30  Jackson Harper  <jackson@ximian.com>
7047
7048         * TreeView.cs: Make sure that the checkboxes size is factored in
7049         even when not visible.
7050
7051 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7052
7053         * FileDialog.cs: Fix Jordi's build break
7054
7055 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7056
7057         * FileDialog.cs: 
7058                 - Use standard the Windows colours for the combobox as espected
7059                 - Dispose objects that use resouces when no longer need them
7060
7061 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7062
7063         * X11DesktopColors.cs: Initial incomplete implementation
7064         * XplatUIX11.cs: Added call to initialize X11DesktopColors
7065
7066 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
7067
7068         * Theme.cs: 
7069           - Switched Theme color names to match the names defined in 
7070             System.Drawing.KnownColors. Life's hard enough, no need to make 
7071             it harder.
7072           - Added setters to all theme color properties so themes can set
7073             their color schemes. The setters also propagate the color changes
7074             to System.Drawing.KnownColors via reflection
7075         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
7076           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
7077           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
7078           use the new, more logical theme color names
7079         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
7080           post-NT colors
7081         * ThemeWin32Classic.cs:
7082           - Removed code to set the old classic Windows colors. Instead it
7083             now relies on the colors returned by System.Drawing.KnownColors
7084             which will be either modern static colors (Unix) or colors
7085             read from the user's configuration (Win32)
7086           - Updated to use the new, more logical theme color names
7087           - Switched DataGrid drawing code to use only Theme colors instead of
7088             a mix of System.Drawing.KnownColors and Theme colors
7089           - DrawFrameControl(): Removed code that fills the button area, the
7090             fill would overwrite any previous fill done by a control. This
7091             fixes bug #75338 
7092           - Added DrawReversibleRectangle() stub
7093         * ScrollableControl.cs: Set visible state to false when scrollbars
7094           are removed (pdn fix)
7095         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
7096           DrawReversibleRectangle() method to allow drawing primitive 
7097           'rubber bands'
7098         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
7099
7100 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7101
7102         * ImageList.cs: Add(Icon): Create handle.
7103
7104 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7105
7106         * ListView.cs:
7107         * ThemeWin32Classic.cs:
7108                 - Fixes detail mode
7109                 - Sets clippings
7110                 - Issues with drawing
7111
7112 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7113
7114         * ImageList.cs: Moved RecreateHandle back to ImageList as event
7115           source has to be the ImageList.
7116
7117 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7118
7119         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
7120
7121 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7122
7123         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
7124
7125 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7126
7127         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
7128
7129 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
7130         * GridItem.cs: Fixed TODOs
7131         * GridItemCollection.cs: Added ICollection interface
7132
7133 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7134
7135         * ImageList.cs: Resize icons when needed.
7136
7137 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
7138
7139         * ListViewItem.cs
7140                 - Fixes GetBounds and returns on screen rects
7141         * ListView.cs:
7142                 - Fixes vertical and horzintal scrolling of items
7143         * ThemeWin32Classic.cs:
7144                 - Fixes drawing
7145                 
7146 2005-09-29  Raja R Harinath  <harinath@gmail.com>
7147
7148         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
7149
7150 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
7151
7152         * ImageList.cs: Added comments about handle creation. Moved Handle,
7153           HandleCreated and OnRecreateHandle implementations to ImageCollection.
7154           Handle is created in Add methods.
7155
7156 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7157          
7158         * DataGridDrawingLogic.cs: 
7159                 - Takes rows into account on Colum calculations
7160                 - Returns the column when clickig
7161         * DataGrid.cs:
7162                 - Fixes default HitTestInfo values
7163                 - Fixes HitTestInfo.ToString
7164                 - Fixes ResetBackColor          
7165         
7166 2005-09-28  Jackson Harper  <jackson@ximian.com>
7167
7168         * MdiChildContext.cs: Obey rules for fixed sized windows (no
7169         sizing or cursor changes). Also added some temp code to draw the
7170         titlebars text (Makes dev a little easier).
7171
7172 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7173
7174         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
7175
7176 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7177          
7178         * ListBox.cs: Fixes bug 76253
7179
7180 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7181
7182         * ImageList.cs: Added comments about the current implementation. Added
7183           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
7184           Format32bppArgb to preserve transparency and can use Graphics.FromImage
7185           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
7186           with Bitmap.LockBits for better performance. Revised the whole file to
7187           match MS.NET behaviour and provide better performance. Non-public
7188           interface members are calling public members even when they throw
7189           NotSupportedException for better maintainability. Moved ColorDepth,
7190           ImageSize, ImageStream and TransparentColor implementations to
7191           ImageCollection for better performance as these properties are not used
7192           by ImageList.
7193         * ImageListStreamer.cs: Added a new internal constructor that takes an
7194           ImageList.ImageCollection and serializes Images based on
7195           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
7196           match ImageList property name.
7197
7198 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
7199
7200         * ListBox.cs: Fixes IndexFromPoint for last item
7201
7202 2005-09-27  Jackson Harper  <jackson@ximian.com>
7203
7204         * Form.cs: Set the position of new mdi children correctly.
7205
7206 2005-09-27  Jackson Harper  <jackson@ximian.com>
7207
7208         * MdiClient.cs: New mdi children need to be added to the back of
7209         the controls collection so the zorder is set correctly. Also add a
7210         count of all the child windows that have been created.
7211
7212 2005-09-27  Jackson Harper  <jackson@ximian.com>
7213
7214         * Form.cs (CreateParams): Setup MDI forms correctly.
7215
7216 2005-09-27  Jackson Harper  <jackson@ximian.com>
7217
7218         * MdiChildContext.cs:
7219         * MonthCalendar.cs:
7220         * UpDownBase.cs:
7221         * ListBox.cs:
7222         * ListView.cs:
7223         * TextBoxBase.cs:
7224         * TreeView.cs:
7225         * ScrollableControl.cs:
7226         * ComboBox.cs: Add implicit controls using the new implict control
7227         functionality in ControlCollection. Also try to block multiple
7228         control add in a suspend/resume layout to save some cycles.
7229         
7230 2005-09-27  Jackson Harper  <jackson@ximian.com>
7231
7232         * Control.cs: Add functionality to the controls collection to add
7233         'implicit controls' these are controls that are created by the
7234         containing control but should not be exposed to the user. Such as
7235         scrollbars in the treeview.
7236         * Form.cs: The list var of the ControlsCollection is no longer
7237         available because of the potential of implicit controls getting
7238         ignored by someone accessing the list directly.
7239
7240 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
7241
7242         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7243           loose it's parent. (Fixed bug introduced in r49103 when we added
7244           setting the child parent to null on Remove)
7245
7246 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
7247
7248         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7249         * Splitter.cs: Added missing attributes for BorderStyle property.
7250         * TextBoxBase.cs: Marked Calculate* methods internal.
7251         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7252         MS.NET.
7253
7254 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
7255          
7256         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7257
7258 2005-09-25  Jackson Harper  <jackson@ximian.com>
7259
7260         * TreeView.cs: Update the node bounds correctly regardless of
7261         whether the node is visible.
7262
7263 2005-09-25  Jackson Harper  <jackson@ximian.com>
7264
7265         * ImageList.cs: Don't dispose the image after it is added to the
7266         image list. Only reformat images that need to be resized.
7267
7268 2005-09-25  Jackson Harper  <jackson@ximian.com>
7269
7270         * ImageList.cs: Don't set the format when changing the image.
7271
7272 2005-09-25  Jackson Harper  <jackson@ximian.com>
7273
7274         * TreeView.cs: We can't just assume the node has a font. Use the
7275         treeviews font if no node font is available.
7276
7277 2005-09-25  Jackson Harper  <jackson@ximian.com>
7278
7279         * TreeView.cs: Allow the scrollbars to be reset with negative
7280         values.
7281         - Don't add scrollbars to negative sized windows.
7282
7283 2005-09-23  Jackson Harper  <jackson@ximian.com>
7284
7285         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7286         old Mono.Posix. Also remove some stray code that shouldn't have
7287         been committed.
7288
7289 2005-09-23  Jackson Harper  <jackson@ximian.com>
7290
7291         * TreeView.cs: Attempt at proper sizing of the horizontal
7292         scrollbar. Also don't resize the scrollbars unless they are
7293         visible.
7294
7295 2005-09-23  Jackson Harper  <jackson@ximian.com>
7296
7297         * TreeView.cs: We don't need to expand the invalid area when the
7298         selection changes, as this is all drawn in the node's bounding
7299         box. The area needs to be expanded (previous typo was contracting
7300         it) when the focus rect moves.
7301
7302 2005-09-23  Jackson Harper  <jackson@ximian.com>
7303
7304         * TreeView.cs: Display the selection box under the correct
7305         circumstances. We were rendering white text with no selection box
7306         before.
7307
7308 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
7309
7310         * TextControl.cs(Split): Now updates selection start/end if it points 
7311           into a line that's being split. Fixes a FIXME and bug #75258
7312
7313 2005-09-23  Jackson Harper  <jackson@ximian.com>
7314
7315         * Binding.cs:
7316         * ListControl.cs: Don't use the path when retrieving binding
7317         managers from the binding context. My bat sense tells me that the
7318         path is only used on insertion.
7319
7320 2005-09-22  Jackson Harper  <jackson@ximian.com>
7321
7322         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7323
7324 2005-09-22  Jackson Harper  <jackson@ximian.com>
7325
7326         * Splitter.cs: There are special cursors used for splitting.
7327         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7328
7329 2005-09-22  Jackson Harper  <jackson@ximian.com>
7330
7331         * Splitter.cs: Change the cursor appropriately when the splitter
7332         is moused over, so the user actually knows there is a splitter
7333         there.
7334
7335 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7336
7337        * Label.cs : Fix ToString method to give same output as MS.NET
7338
7339 2005-09-22  Jackson Harper  <jackson@ximian.com>
7340
7341         * TreeView.cs: Create the scrollbars when the handle is created
7342         and add them right away, just make them invisble. Also account for
7343         the window being shrunk vertically to the point that the vert
7344         scrollbar needs to be added.
7345         - Remove some 0.5 adjustments to get around anti aliasing issues.
7346         
7347 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7348          
7349         * MainMenu.cs: Fixes default value
7350         * MenuItem.cs: Fixes default value
7351
7352 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7353
7354         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7355
7356 2005-09-21  Jackson Harper  <jackson@ximian.com>
7357
7358         * Control.cs: Don't try to set the border style on the window if
7359         it hasn't been created. When the window is created the border
7360         style will be used.
7361
7362 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7363
7364         * Control.cs (Update): Don't call XplatUI if we don't have a
7365           window handle yet
7366
7367 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7368
7369         * ContainerControl.cs: Instead of throwing an exception, print
7370           a one-time warning about Validate not being implemented
7371         * XplatUIWin32.cs: Removed debug output
7372
7373 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7374
7375         * Control.cs: Only set XplatUI background if we expect the windowing
7376           system to handle the background. This stops controls that draw their
7377           own background from flickering
7378
7379         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7380           creation. This allows, amongst other things, using MWF X11 windows 
7381           with OpenGL.
7382
7383 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7384
7385         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7386           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7387           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7388           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7389           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7390           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7391           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7392           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7393           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7394           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7395           GridColumnStylesCollection.cs, 
7396           IDataGridColumnStyleEditingNotificationService.cs,
7397           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7398           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7399           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7400           TreeNodeCollection.cs, AmbientProperties.cs, 
7401           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7402           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7403           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7404           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7405           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7406           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7407           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7408           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7409           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7410           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7411           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7412           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7413           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7414           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7415           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7416           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7417           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7418           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7419           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7420           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7421           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7422           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7423           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7424           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7425           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7426           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7427           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7428           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7429           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7430           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7431           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7432           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7433           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7434           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7435           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7436           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7437           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7438
7439 2005-09-21  Jackson Harper  <jackson@ximian.com>
7440
7441         * TreeNode.cs: Call Before/After Expand not Collapse when
7442         expanding.
7443
7444 2005-09-20  Jackson Harper  <jackson@ximian.com>
7445         
7446         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7447
7448 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7449          
7450         * ListViewItem.cs:
7451                 - Fixes bug 76120
7452                 - Fixes proper storing of subitems
7453                 - Fixes not updated items
7454
7455 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7456
7457         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7458           things if our window handle isn't created yet. Also disabled 
7459           debug for TextBoxBase
7460
7461 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7462
7463         * MenuAPI.cs: Remove filtering of events to allow menu usage
7464
7465 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7466
7467         * Cursor.cs: Allow null to be passed to Cursor.Current.
7468
7469 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7470
7471         * ThemeWin32Classic.cs:
7472           - Change some private methods/fields to protected virtual so that 
7473             they can be accessed and overriden in derived classes
7474           - First refactoring of some methods. Derived themes now don't 
7475             need to duplicate the complete code from ThemeWin32Classic
7476         * ThemeNice.cs:
7477           - Added nice StatusBar
7478           - Derive from ThemeWin32Classic and not Theme
7479           - Removed duplicate ThemeWin32Classic code
7480
7481 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7482
7483         * Control.cs (ControlCollection.Add): If the value null is passed
7484         the control is ignored. 
7485
7486         Optimize this loop.
7487
7488 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7489
7490         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7491           PostQuitMessage state.
7492         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7493
7494 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7495
7496         * Application.cs: Our constructor will never get called, move 
7497           initialization to fields; fixes bug #75933
7498
7499 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7500
7501         * FileDialog.cs :
7502                 - Allow files to be selected properly using file name
7503                 combo box.
7504                 - Add ability to change diretory (absolute / relative)
7505                 using file name combo box.
7506
7507 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7508          
7509         * ListBox.cs: 
7510                 - Fixes Multicolumn listboxes item wrong calculations
7511                 - Allows to click when only one item is in the listbox
7512                 - Fixes crash when no items using keyboard navigation
7513
7514 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7515
7516         * ComboBox.cs: Reverted almost everything from the latest patch which
7517           broke ComboBox
7518
7519 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7520         
7521         * ToolTip.cs:
7522                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7523         * ComboBox.cs:
7524                 - When DropDownStyle is Simple, it does not show scrollbar 
7525                 to the last item of the list.
7526                 - When DropDownStyle is Simple, it crashed when the list was 
7527                 scrolled down with the down cursor key.
7528                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7529                 selected item was not shown.
7530                 - The position of the selected item was not preserved when 
7531                 the next dropdown happened.
7532         * ThemeWin32Classic.cs:
7533                 - Items were wrapped at the right end.
7534         * CheckedListBox.cs:
7535                 - Fixed Add method
7536         * ListBox.cs:
7537                 - Items should be fully shown.
7538                 - When resizing and vertical scrollbar disappeared, the item 
7539                 of index 0 should be on the top of the list.
7540                 - GetItemRectangle should consider the size of ver. scrollbar
7541         * StatusBar.cs:
7542                 - SizingGrip area should not be allocated when it is not 
7543                 displayed.
7544                 - Now it reflects MinWidth of the containing panel and 
7545                 fixed a crash that happens when its width becomes so small.
7546
7547 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7548
7549         * CheckedListBox.cs: Fixes bug 76028
7550         * ListBox.cs: Fixes bug 76028
7551
7552 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7553
7554         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7555         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7556
7557 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7558
7559         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7560
7561 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7562
7563         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7564
7565 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7566
7567         * IRootGridEntry.cs: Added
7568         * PropertyGridCommands.cs: Added
7569         * PropertiesTab.cs: Added missing methods and property
7570         * PropertyGridView.cs: Made class internal
7571         * PropertyGridTextBox.cs: Made class internal
7572
7573 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7574
7575         * MimeIcon.cs: Try to check some other environment variables
7576           if "DESKTOP_SESSION" returns "default"
7577
7578 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7579
7580         * ThemeNice.cs: Corrected background colors (e.g. menus)
7581         * ColorDialog.cs: Use correct background colors for controls
7582
7583 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7584
7585         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7586
7587 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7588
7589         * RichTextBox.cs: Added initial implementation
7590         * lang.cs: Removed. Was accidentally checked in long time ago
7591         * TODO: Removed. Contents were obsolete
7592
7593 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7594                                                                                 
7595         * PropertiesTab.cs : Added
7596
7597 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7598                                                                                 
7599         * PropertyGrid.cs : Update
7600         * PropertyGridView.cs : Update
7601         * System.Windows.Forms.resx : Added images and strings
7602
7603 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7604
7605         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7606  
7607 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7608
7609         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7610           a busy loop right after the Ungrab the X11 display is otherwise 
7611           blocked
7612
7613 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7614
7615         * ThemeWin32Classic.cs: Optimise the use of clipping
7616
7617 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7618
7619         * DataGrid.cs: fixes recursion bug
7620
7621 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7622
7623         * ThemeNice.cs: 
7624           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7625           - Cleanup
7626
7627 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7628
7629         * ThemeNice.cs: Draw nice ProgressBars
7630
7631 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7632
7633         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7634
7635         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7636         bug finder.
7637
7638 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7639
7640         * ThemeNice.cs:
7641           - Added nicer menu drawing
7642           - Updated DrawTab
7643           - some refactoring
7644
7645 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7646
7647         * CreateParams.cs (ToString): Made output match MS
7648         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7649             handle is already created (to avoid forcing window creation)
7650         * XplatUIX11.cs: Set window text to caption after creating window,
7651           in case Text was set before window was created
7652         * Form.cs: Use this.Text instead of a static string as caption
7653
7654 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7655
7656         * NotifyIcon.cs: Don't set the window to visible; this screws
7657           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7658           OnPaint without a bitmap)
7659         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7660           happen very often anyway; we could add the check to the WM_PAINT 
7661           event generation code
7662
7663 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7664
7665         * NotifyIcon.cs: Fill the icon area with a background color, to 
7666           avoid 'residue' when transparent icons are drawn
7667         * XplatUIX11.cs:
7668           - Handle whole_window == client_window when destroying windows
7669           - SystrayAdd(): Set client_window to whole_window value to
7670             get mouse and other events passed to NotifyIcon
7671
7672 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7673
7674         * Form.cs: Set proper default for Opacity property
7675         * NotifyIcon.cs:
7676           - ShowSystray(): Don't bother creating telling the OS
7677             about the systray item if no icon is provided
7678           - Now handles WM_NCPAINT message to deal with whole/client window
7679             split
7680           - Create window as visible to not get caught by Expose optimization
7681         * Hwnd.cs: Removed debug message
7682         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7683           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7684             PaintEventStart/End to use new client argument
7685         * TextBoxBase.cs:
7686           - Commented out debug messages
7687           - Switched PaintEventStart/End to use new client argument
7688         * XplatUI.cs: Added client window bool to PaintEventStart()/
7689           PaintEventEnd() calls, to support drawing in non-client areas
7690         * XplatUIDriver.cs: 
7691           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7692             calls, to support drawing in non-client areas
7693           - Added conditional compile to allow using MWF BeginInvoke 
7694             on MS runtime
7695         * XplatUIX11.cs:
7696           - Added some conditional debug output
7697           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7698             whole/client window split
7699           - Implemented handling of client argument to PaintEventStart()/End()
7700         * Control.cs:
7701           - Throw exception if BeginInvoke() is called and the window handle
7702             or one of the window's parent handles is not created
7703           - Added conditional compile to allow using MWF BeginInvoke on
7704             MS runtime
7705           - get_Parent(): Only sets parent if handle is created. This avoids
7706             forcing window handle creation when parent is set.
7707           - Now fires Layout and Parent changed events in proper order
7708           - Switched to use Handle instead of window.Handle for Z-Order setting,
7709             the get_Parent() patch above causes us to possibly get null for 'window'
7710           - Implemented handling of client argument to PaintEventStart()/End()
7711           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7712             default handling)
7713           - Now sends a Refresh() to all child windows when Refresh() is called
7714
7715 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7716
7717         * Form.cs: Added (non-functional) Opacity property
7718         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7719
7720 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7721         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7722           use export MONO_THEME=nice to activate it.
7723           Currently supported controls:
7724           - Button
7725           - ComboBox
7726           - ScrollBar
7727           - TabControl (TabAlignment.Top only, other will follow)
7728         * ThemeEngine.cs: Add theme nice
7729         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7730           if enabled
7731
7732 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7733
7734         * Splitter.cs: Resize docked control and its neighbor.
7735
7736 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7737         -- Making Windows with Menus layout correctly --
7738         * Form.cs : The first leg of the fix
7739                 Menu setter - adjust Client Size as needed to make space for the menu
7740                 SetClientSizeCore - doesn't call base version to be able to pass the 
7741                         menu handle to XplatUI.CalculateWindowRect
7742         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7743         * XplatUIX11.cs: The critical second leg of the fix
7744                 GetWindowPos needs to use a recalculated client_rect
7745                 so that resizing the window doesn't break layout of child controls. 
7746                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7747                 Lots of \t\n killed
7748
7749 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7750
7751         * Label.cs: Now properly recalculates width and height on Font and Text
7752           changes if AutoSize is set
7753
7754 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7755         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7756
7757 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7758
7759         * ImageList.cs: Makes ToString method compatible with MS
7760
7761 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7762
7763         * MenuAPI.cs: fixes bug 75716
7764
7765 2005-08-11 Umadevi S <sumadevi@novell.com>
7766         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7767
7768 2005-08-11 Umadevi S <sumadevi@novell.com>
7769         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7770
7771 2005-08-10  Umadevi S <sumadevi@novell.com>
7772         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7773
7774 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7775
7776         * Menu.cs: fixes bug 75700
7777         * MenuAPI.cs: fixes navigation issues
7778
7779 2005-08-09  Umadevi S <sumadevi@novell.com>
7780         * CheckedListBox.cs - simple fix for GetItemChecked.
7781
7782 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7783
7784         * ComboBox.cs: Serveral fixes
7785         * ListBox.cs: Serveral fixes
7786
7787 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7788
7789         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7790         * ListBox.cs: Fixes FindString methods
7791
7792 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7793
7794         * DataGrid.cs: fixes bugs exposed by new tests
7795
7796 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7797
7798         * Mime.cs: Compile Mono assembly references only if compiling
7799           with Mono (Allows to build with VS.Net again)
7800
7801 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7802
7803         * Control.cs (PaintControlBackground): Draw background image
7804         corrrectly.
7805         (CheckForIllegalCrossThreadCalls): Stubbed.
7806         
7807         * Form.cs (OnCreateControl): Center when should be centered.
7808         
7809         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7810
7811 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7812
7813         * Binding.cs: Binding to properties should be case unsensitive
7814
7815 2005-07-18 vlindos@nucleusys.com
7816
7817         * DataGrid.cs: fixes setmember order
7818
7819 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7820
7821         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7822         * FileDialog.cs: FileDialog is now resizable and uses the new
7823           MimeIconEngine
7824
7825 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7826
7827         * DataGridTextBoxColumn.cs: default value
7828         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7829         * GridTableStylesCollection.cs: fixes checking MappingName
7830         * DataGridDrawingLogic.cs: fixes drawing logic issues
7831         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7832         * DataGrid.cs: fixes    
7833
7834 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7835
7836         * MimeGenerated.cs: Use case sensitive comparer for
7837           NameValueCollections
7838
7839 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7840
7841         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7842         * ThemeWin32Classic.cs: bug fixes, code refactoring
7843         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7844         * DataGrid.cs: bug fixes, code refactoring
7845         * DataGridTextBox.cs: bug fixes, code refactoring
7846         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7847         * Theme.cs:  bug fixes, code refactoring
7848
7849 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7850
7851         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7852           and other text box usage
7853
7854 2005-07-01  Jackson Harper  <jackson@ximian.com>
7855
7856         * TabControl.cs: Make sure the bottom of the tab covers the pages
7857         border.
7858
7859 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7860
7861         * Form.cs (ShowDialog): Assign owner of the dialog
7862         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7863           might have been moved to a tag with different height
7864
7865 2005-06-30  Jackson Harper  <jackson@ximian.com>
7866
7867         * Form.cs: Don't create an infinite loop when setting focus
7868         * MenuItem.cs: Don't dirty the parents if we don't have any
7869
7870 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7871
7872         * LibSupport.cs: Rename
7873
7874 2005-06-29  Peter Bartok  <pbartok@novell.com>
7875
7876         * TextBoxBase.cs: Re-align caret after deleting a character
7877         * TextControl.cs:
7878           - DeleteChars(): Ensure that tag covers the provided position
7879           - StreamLine(): Drop reference for dropped tag
7880
7881 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7882
7883         * TextControl.cs: 
7884           - Selections now work properly, anchoring at the initial location
7885             and properly extending in either direction (SetSelectionToCaret(),
7886             SetSelectionStart() and SetSelectionEnd())
7887           - No longer redraws the whole control on selection change, now
7888             calculates delta between previous and new selection and only
7889             invalidates/redraws that area
7890           - Fixed FindPos() math off-by-one errors
7891           - Changed DeleteChars() to verify the provided tag covers the
7892             provided position, selections may have a tag that doesn't cover
7893             the position if the selection is at a tag border
7894           - Fixed off-by-one errors in DeleteChars()
7895           - Added missing streamlining check in DeleteChars() to remove
7896             zero-length tags
7897           - Implemented Invalidate() method, now properly calculates exposures
7898             between two given lines/positions
7899           - Implemented SetSelection()
7900           - Obsoleted and removed FixupSelection()
7901           - Improved RecalculateDocument() logic, removing code duplication
7902
7903 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7904
7905         * LibSupport.cs: changes to match different input/output arguments.
7906
7907 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7908
7909         * LibSupport.cs: added libsupport.so init routine.
7910
7911 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7912         
7913         * ControlBindingsCollection.cs
7914                 - Throws an exception on null datasource when adding
7915                 - Checks for duplicated bindings when adding
7916
7917 2005-06-28  Jackson Harper  <jackson@ximian.com>
7918
7919         * TreeView.cs (OnKeyDown): Support left and right properly
7920         (navigates as well as expanding and collapsing.
7921         - Add support for Multiply, this expands all the selected nodes
7922         children.
7923         - Fix some tabbing.
7924
7925 2005-06-28  Jackson Harper  <jackson@ximian.com>
7926
7927         * TreeView.cs: Implement keyboard navigation, currently supports,
7928         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7929         support for toggling checkboxes with the space bar.
7930
7931 2005-06-28  Jackson Harper  <jackson@ximian.com>
7932
7933         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7934         tree.
7935
7936 2005-06-28  Jackson Harper  <jackson@ximian.com>
7937
7938         * TreeView.cs: Add missing event.
7939
7940 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7941
7942         * TextControl.cs:
7943           - Made line ending size configurable (now allows for counting 
7944             lineendings as \n or \r\n)
7945           - Added margin to viewport to keep caret visible on right side
7946           - Fixed translation routines for line/pos to documentpos to consider
7947             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7948           - Fixed some line-endings to be unix style
7949           - Fixed Document.FormatText to perform it's calculations 1-based
7950           - Added descriptions for a few methods that might otherwise get 
7951             used wrong
7952           - Added NOTE section with some basic conventions to remember at 
7953             the top of the file
7954           - Major fixup for RichTextBox selection drawing:
7955             * Fixed crashes when multiple tags on a single line were selected
7956             * fixed selection box drawing not overlaying text
7957             * fixed bogus offset calculation for tags not starting at index 1
7958             * Switched behaviour from using multiple Substrings of a 
7959               StringBuilder.ToString() to using multiple 
7960               StringBuilder.ToString(start, length) statements, hoping this is
7961               faster (kept original version commented out in the code, in case
7962               original version was faster)
7963         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7964           alignment != Left
7965         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7966           call it as well
7967
7968 2005-06-27  Jackson Harper  <jackson@ximian.com>
7969
7970         * TabControl.cs: Move to the left and right with the arrow
7971         keys. These keys don't cycle beyond first and last like
7972         tab. Refresh all the tabs when scrolling them to the left or
7973         right.
7974
7975 2005-06-27  Jackson Harper  <jackson@ximian.com>
7976
7977         * TabControl.cs:
7978           - ToString: Added method
7979           - CreateParams: Remove TODO and comment
7980           - OnKeyDown: Cycle through bounds properly.
7981           - SelectedIndex: Scroll to the right or left if we need to
7982           display the newly selected tab.
7983
7984 2005-06-23  Jackson Harper  <jackson@ximian.com>
7985
7986         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7987         set.
7988
7989 2005-06-23  Jackson Harper  <jackson@ximian.com>
7990
7991         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7992         CTRL-SHIFT-TAB, and HOME, END are there any others?
7993
7994 2005-06-23  Jackson Harper  <jackson@ximian.com>
7995
7996         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7997
7998 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7999         
8000         * DataGridTextBoxColumn.cs: fixes and enhancements
8001         * ThemeWin32Classic.cs: fixes and enhancements
8002         * DataGridBoolColumn.cs:  fixes and enhancements
8003         * DataGridDrawingLogic.cs:  fixes and enhancements
8004         * CurrencyManager.cs: fixes and enhancements
8005         * DataGrid.cs: fixes and enhancements
8006         * DataGridColumnStyle.cs:  fixes and enhancements
8007
8008 2005-06-22  Jackson Harper  <jackson@ximian.com>
8009
8010         * TabControl.cs: Add some missing methods that just call into the
8011         base. Make the TabPageCollection's IList interface behave in the
8012         same manner as the MS implementation.
8013
8014 2005-06-22  Peter Bartok  <pbartok@novell.com> 
8015
8016         * TextControl.cs: Added sanity check
8017         * TextBoxBase.cs: 
8018           - Fixed wrapping behaviour, don't set wrap on single line controls
8019             (this fixes the breakage of colordialog introduced in an earlier
8020              checkin)
8021           - Added rudimentary support for autoscrolling right-aligned controls
8022             (still needs fixing, also, center alignment scroll is missing)
8023
8024 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8025         
8026         * ScrollBar.cs: Fixes thumbpos on Maximum values
8027
8028 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
8029         
8030         * PropertyGridView.cs: Pass context information to UITypeEditors 
8031
8032 2005-06-21  Peter Bartok  <pbartok@novell.com> 
8033
8034         * TextBoxBase.cs:
8035           - Now calling PositionCaret with absolute space coordinates
8036           - Enabled vertical scrolling
8037           - Better tracking of scrollbar changes, tied into WidthChange
8038             event
8039           - Improved cursor tracking
8040           - Removed debug output
8041         * TextControl.cs:
8042           - PositionCaret coordinates are now works in absolute space, not 
8043             the canvas
8044           - Improved tracking of document size
8045           - Added events for width and height changes
8046
8047 2005-06-21  Peter Bartok  <pbartok@novell.com>
8048
8049         * Form.cs: Set focus to active control when form is activated
8050         * TextControl.cs: 
8051           - Added word-wrap functionality to RecalculateLine() 
8052           - Added some short function descriptions for VS.Net to aid in
8053             writing dependent controls
8054           - Added Caret property, returning the current coords of the caret
8055           - Added ViewPortWidth and ViewPortHeight properties
8056           - Added Wrap property
8057           - Added CaretMoved event
8058           - Removed some old debug code
8059           - Split() can now create soft splits
8060           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
8061           - Added method to format existing text
8062           - Fixed size/alignment calculations to use viewport
8063           - RecalculateDocument now can handle changing line-numbers while
8064             calculating lines
8065
8066         * TextBox.cs:
8067           - Added some wrap logic, we don't wrap if alignment is not left
8068           - Added casts for scrollbar var, base class switched types to
8069             also support RichTextBoxA
8070           - Implemented handling of scrollbar visibility flags
8071
8072         * TextBoxBase.cs:
8073           - Switched scrollbars type to RichTextBoxScrollBars to support
8074             RichTextBox
8075           - Added tracking of canvas width/height
8076           - Switched scrollbars to be not selectable (to keep focus on text)
8077           - Added central CalculateDocument() method to handle all redraw
8078             requirements
8079           - Added ReadOnly support
8080           - Added WordWrap support
8081           - Fixed handling of Enter key (we now treat it as a DialogKey)
8082           - Fixed caret positioning when h or v scroll is not zero
8083           - Fixed placing/generation of vertical scrollbar
8084           - Added CalculateScrollBars() method to allow updating scrollbar
8085             limits and visibility
8086           - Fixed handling of horizontal scroll
8087           - Added handling of vertical scroll
8088           - Implemented auto-'jump' when caret moves to close to a left or
8089             right border and there is text to be scrolled into view (currently
8090             there's the potential for a stack overflow, until a bug in
8091             scrollbar is fixed)
8092
8093 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
8094         
8095         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
8096
8097 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
8098
8099         * Mime.cs:
8100         - added inodes.
8101         - return application/x-zerosize for files with size zero
8102           (if no extension pattern matches).
8103         - check matches collection for strings too.
8104         - return only the first mime type if the name value
8105           collection has more than one mime type.
8106
8107 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
8108         
8109         * PropertyGrid.cs: Cleaned up some TODOs
8110         * PropertyGridView.cs: Added support for UITypeEditors
8111
8112 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8113         
8114         * DataGrid.cs: clears cached value
8115
8116 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8117
8118         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
8119         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
8120         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
8121         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
8122         
8123 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
8124
8125         * ThemeWin32Classic.cs: fixes colour
8126
8127 2005-06-15  Peter Bartok  <pbartok@novell.com>
8128
8129         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
8130         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
8131         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
8132         * Control.cs: Added some MWFCategory and MWFDescription attributes
8133         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
8134
8135 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
8136
8137         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
8138         usage
8139
8140 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
8141
8142         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
8143         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
8144         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
8145         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
8146         * DataGrid.cs: default datagrid settings for Default Styles, fixes
8147         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
8148
8149 2005-06-13  Jackson Harper  <jackson@ximian.com>
8150
8151         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
8152         isn't printed when the user enables dropping. (X11 does accept
8153         drops).
8154         
8155 2005-06-13  Jackson Harper  <jackson@ximian.com>
8156
8157         * TreeView.cs: Remove some TODOS.
8158
8159 2005-06-13  Jackson Harper  <jackson@ximian.com>
8160
8161         * Form.cs: Hook into the mdi framework.
8162         * MdiClient.cs: Use the base control collections add method so
8163         parents get setup correctly. Set the default back colour and dock
8164         style.
8165         * MdiChildContext.cs: New class, this bad actor handles an
8166         instance of an MDI window. Right now there is only basic
8167         support. You can drag, close, and resize windows. Minimize and
8168         Maximize are partially implemented.
8169
8170 2005-06-13  Jackson Harper  <jackson@ximian.com>
8171
8172         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
8173         freaky when both vals are negative. NOTE: There are probably other
8174         places in XplatUIX11 that this needs to be done.
8175
8176 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
8177
8178         * DataGrid.cs: implement missing methods, move KeyboardNavigation
8179         * DataGridColumnStyle.cs: fixes signature
8180
8181 2005-06-12  Jackson Harper  <jackson@ximian.com>
8182
8183         * XplatUIX11.cs: Use sizing cursors similar to the ones on
8184         windows.
8185
8186 2005-06-11  Jackson Harper  <jackson@ximian.com>
8187
8188         * StatusBarPanel.cs: Signature cleanups. Implement
8189         BeginInit/EndInit.
8190
8191 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
8192
8193         * DataGridTextBoxColumn.cs: Honors aligment
8194         * GridColumnStylesCollection.cs: Contains is case unsensitive
8195         * GridTableStylesCollection.cs: several fixes
8196         * DataGridTableStyle.cs: default column creation
8197         * DataGridDrawingLogic.cs: fixes
8198         * CurrencyManager.cs: ListName property
8199         * DataGrid.cs: multiple styles support
8200         * DataGridColumnStyle.cs: fixes
8201         
8202
8203 2005-06-10  Peter Bartok  <pbartok@novell.com>
8204
8205         * Control.cs(Select): Moved SetFocus call to avoid potential
8206           loops if controls change the active control when getting focus
8207         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
8208           the up/down buttons
8209
8210 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
8211
8212         * ImageListConverter.cs: Implemented
8213
8214 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8215
8216         * MonthCalendar.cs: Wired in NumericUpDown control for year
8217
8218 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8219
8220         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
8221           DoubleClick events, since they are not meant to be fired.
8222
8223 2005-06-09  Peter Bartok  <pbartok@novell.com>
8224
8225         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8226           Jonathan's standalone controls into MWF, implemented missing
8227           events, attributes and methods; added xxxAccessible classes
8228         * AccessibleObject.cs: Made fields internal so other classes
8229           can change them if needed
8230
8231 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
8232
8233         * UpDownBase.cs: Complete implementation
8234         * NumericUpDown.cs: Complete implementation
8235         * DomainUpDown.cs: Complete implementation
8236
8237 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
8238
8239         * DataGridTextBoxColumn.cs: drawing fixes
8240         * DataGridCell.cs: fixes ToString method to match MSNet
8241         * DataGridTableStyle.cs: fixes
8242         * DataGridBoolColumn.cs: fixes, drawing
8243         * DataGridDrawingLogic.cs: fixes, new methods
8244         * DataGridTextBox.cs: Keyboard and fixes
8245         * DataGrid.cs:
8246                 - Keyboard navigation
8247                 - Scrolling fixes
8248                 - Row selection (single, multiple, deletion, etc)
8249                 - Lots of fixes
8250         
8251 2005-06-07  Jackson Harper  <jackson@ximian.com>
8252
8253         * ThemeWin32Classic.cs: Clear the background area when drawing
8254         buttons.
8255
8256 2005-06-06  Peter Bartok  <pbartok@novell.com>
8257
8258         * ImageListStreamer.cs: Fixed signature for GetData
8259         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8260         * ComboBox.cs:
8261           - Added missing ChildAccessibleObject class
8262           - Added missing OnXXXFocus overrides, switched to using those
8263             instead of the event handler
8264         * Control.cs:
8265           - Added Parent property for ControlAccessibleObject
8266           - Fixed signatures
8267           - Fixed attributes
8268           - Added ResetBindings()
8269         * ListBindingConverter.cs: Implemented some methods
8270         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8271         * ImageList.cs: Implemented basic handle scheme, removed TODOs
8272         * ContainerControl.cs: Fixed signature, now subscribing to the
8273           ControlRemoved event instead of overriding the handler, LAMESPEC
8274         * CurrencyManager.cs: Added missing attribute
8275         * MonthCalendar.cs: Added missing properties
8276
8277 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8278
8279         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8280         
8281 2005-06-06  Gaurav Vaish and Ankit Jain
8282
8283         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8284         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8285         
8286 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8287
8288         * Control.cs: fixes CreateParams Width / Height.
8289
8290 2005-06-05  Peter Bartok  <pbartok@novell.com>
8291
8292         * Win32DnD.cs: Removed compilation warnings
8293
8294 2005-06-05  Peter Bartok  <pbartok@novell.com>
8295
8296         * Control.cs (CreateParams): Since we don't know if one of the
8297           properties we use is overridden, lets make sure if we fail accessing
8298           we continue with a backup plan
8299
8300 2005-06-05  Peter Bartok  <pbartok@novell.com>
8301
8302         * Win32DnD.cs:
8303           - Removed debug output
8304           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8305             struct
8306           - Plugged resource leak
8307         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8308           MS size
8309
8310 2005-06-05  Peter Bartok  <pbartok@novell.com>
8311
8312         * XplatUIWin32.cs: Removed DnD code
8313         * Win32DnD.cs: Implemented drop source and drop target functionality
8314
8315 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8316
8317         * UpDownBase.cs: remove duplicate addition of event, enable some code
8318         that was commented out.
8319         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8320         Validate input when a key is pressed. It works fine now for every
8321         combination of Hexadecimal. Only missing some drawing love when sharing
8322         space with other controls.
8323
8324 2005-06-04  Peter Bartok  <pbartok@novell.com>
8325
8326         * Control.cs:
8327           - We need to pass a window for DragDrop, so enable callback events
8328           - Added DnD callback events when being a DragSource
8329         * XplatUI.cs (StartDrag): Added window handle argument
8330         * XplatUIDriver.cs (StartDrag): Added window handle argument
8331         * QueryContinueDragEventArgs: Made fields internally accessible so
8332           drivers can set them
8333         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8334           can set them
8335
8336 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8337
8338         * DataGridTextBoxColumn.cs: column text editing
8339         * DataGridTableStyle.cs: Respect columns styles created by the user
8340         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8341         * DataGridBoolColumn.cs: bool column editing
8342         * DataGrid.cs: fixes to scrolling, properties, etc
8343         * DataGridTextBox.cs: handle keyboard
8344         * DataGridColumnStyle.cs: fixes
8345
8346 2005-06-02  Jackson Harper  <jackson@ximian.com>
8347
8348         * ImageListStreamer.cs: Somewhat broken implementation of
8349         GetObjectData. The RLE needs some work to match MS properly.
8350
8351 2005-06-02  Jackson Harper  <jackson@ximian.com>
8352
8353         * X11Dnd.cs: Attempting to keep at least one file in MWF
8354         monostyled.
8355
8356 2005-06-02  Peter Bartok  <pbartok@novell.com>
8357
8358         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8359           that way
8360
8361 2005-06-02  Peter Bartok  <pbartok@novell.com>
8362
8363         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8364         * XplatUI.cs: Added DoDragDrop() method
8365         * XplatUIDriver.cs: Added DoDragDrop() method
8366
8367 2005-06-02  Jackson Harper  <jackson@ximian.com>
8368
8369         * Splitter.cs: Implement BorderStyle.
8370
8371 2005-06-02  Jackson Harper  <jackson@ximian.com>
8372
8373         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8374         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8375         X11 using XDND.
8376
8377 2005-06-02  Peter Bartok  <pbartok@novell.com>
8378
8379         * DataObject.cs:
8380           - Added Data setter
8381           - Fixed broken insertion code for SetData, now also
8382             overwrites any existing entry of the same format name
8383         * Hwnd.cs: Added list of pointers that automatically gets
8384           freed when the window is disposed
8385         * XplatUI.cs: Call driver initialization method when loading
8386           a driver
8387         * Control.cs:
8388           - OnDragLeave takes EventArgs, not DragEventArgs
8389           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8390             supported
8391           - Forces style update when drop state changes
8392         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8393           not perfect since we cannot (yet) call the IDataObject.GetData()
8394           method, we keep getting 0x80004005 error, dunno why)
8395
8396 2005-06-02  Peter Bartok  <pbartok@novell.com>
8397
8398         * DragEventArgs.cs: Make fields internal so we can cache the
8399           object and re-set the fields from XplatUI
8400
8401 2005-06-02  Jackson Harper  <jackson@ximian.com>
8402
8403         * Control.cs: Add some internal methods so the DnD subsystem can
8404         raise DnD events. Also call into the driver when AllowDrop is set.
8405         * XplatUI.cs:
8406         * XplatUIDriver.cs: New method for setting whether or not a window
8407         is allowed to accept drag and drop messages.
8408                 
8409 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8410         
8411         * ScrollBar.cs: Make sure that values sent in Scroll events
8412         are always between Maximum and Minimum.
8413
8414 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8415
8416         * Menu.cs: Call MenuChanged when menuitem visibility has been
8417         changed.
8418         * MenuItem.cs: Rebuild menu when item is (not) visible.
8419         * MainMenu.cs: MainMenu has special MenuChanged.
8420         * Theme.cs: Caption and FrameBorderSize are not fixed.
8421         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8422         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8423         * XplatUIX11.cs,
8424         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8425         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8426
8427 2005-05-30  Jackson Harper  <jackson@ximian.com>
8428
8429         * DataFormat.cs: We can't statically initialize this stuff because
8430         it calls into the xplatui and could create a loop. So we lazy init
8431         it.
8432
8433 2005-05-28  Jackson Harper  <jackson@ximian.com>
8434
8435         * Control.cs: Proper implementation of Product(Name/Version).
8436
8437 2005-05-27  Jackson Harper  <jackson@ximian.com>
8438
8439         * DataObject.cs: Dont crash if no data is found.
8440
8441 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8442         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8443                 as per status page, guessing it should be set to true
8444
8445 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8446
8447         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8448         * DataGridTableStyle.cs: set proper formatting text, def header text
8449         * ThemeWin32Classic.cs: new themable paramaters
8450         * DataGridBoolColumn.cs: paint check box, get data, fixes
8451         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8452         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8453         * DataGridColumnStyle.cs: fixes
8454         * Theme.cs: new themable paramaters
8455                 
8456 2005-05-26  Peter Bartok  <pbartok@novell.com>
8457
8458         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8459
8460 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8461         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8462
8463 2005-05-24  Peter Bartok  <pbartok@novell.com>
8464
8465         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8466           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8467           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8468           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8469           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8470           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8471           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8472           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8473           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8474           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8475           missing attributes, etc
8476         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8477
8478 2005-05-24  Peter Bartok  <pbartok@novell.com>
8479
8480         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8481           when user tries to get help
8482         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8483           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8484           to suppress warnings
8485         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8486           avoid unreachable code warning
8487
8488 2005-05-20  Peter Bartok  <pbartok@novell.com>
8489
8490         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8491
8492 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8493
8494         * DataGridTextBoxColumn.cs: Basic painting methods
8495         * DataGridTableStyle.cs: Set table style in the column
8496         * ThemeWin32Classic.cs: Use Theme for colors
8497         * DataGridDrawingLogic.cs: Implement more drawing
8498         * DataGrid.cs: drawing, theming, enhacements, fixes
8499         * DataGridColumnStyle.cs: fixes, drawing
8500         * Theme.cs: theming for Datagrid
8501
8502 2005-05-20  Peter Bartok  <pbartok@novell.com>
8503
8504         * Cursor.cs: Implemented GetObjectData() method
8505
8506 2005-05-20  Peter Bartok  <pbartok@novell.com>
8507
8508         * Cursors.cs: Added setting of cursor name
8509         * Cursor.cs:
8510           - Implemented constructors
8511           - Implemented Draw and DrawStretched
8512           - Implemented Current property
8513           - Implemented == and != operators
8514           - Implemented Dispose()
8515           - Implemented ToString
8516           - Added missing attributes
8517         * XplatUIX11.cs:
8518           - Added missing reset for OverrideCursor when DoEvents is called
8519           - Fixed creation of cursor, logic was wrong
8520         * XplatUIWin32.cs:
8521           - Added missing reset for OverrideCursor when DoEvents is called
8522           - Fixed creation of cursor, bit arrays were swapped
8523         * Clipboard.cs: Removed obsolete MonoTODO attribute
8524
8525 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8526
8527         * ComboBox.cs: fixes OnSelectedItemChanged
8528         * ControlBindingsCollection.cs: fixes item range check
8529
8530 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8531
8532         * UpDownBase.cs:
8533                 - Calc preferred height properly
8534                 - Implement missing properties
8535                 
8536         * NumericUpDown.cs: Implement missing events
8537
8538 2005-05-19  Jackson Harper  <jackson@ximian.com>
8539
8540         * TabControl.cs: New method that resizes the tab pages before
8541         redrawing them. This as needed as the control is double buffered
8542         and sizing will not be recalculated unless ResizeTabPages is
8543         called.
8544         * TabPage.cs: Set base.Text instead of Text in the constructor so
8545         that UpdateOwner does not get called. Use the new Redraw method of
8546         TabControl instead of Refresh so the sizing is recalculated.
8547         * ThemeWin32Classic.cs: Draw the text for button tabs.
8548
8549 2005-05-19  Jackson Harper  <jackson@ximian.com>
8550
8551         * Control.cs: Paint control background images. Fix typo where
8552         PaintControlBackground was not getting called correctly.
8553
8554 2005-05-19  Peter Bartok  <pbartok@novell.com>
8555
8556         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8557           I can investigate, apparently I broke FileDialog
8558
8559 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8560
8561         * AxHost.cs: Some simple properties.
8562         * Control.cs: window must be accessible after ctor.
8563         * Form.cs: Added TransparencyKey property.
8564         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8565         * XplatUIWin32.cs: SetBorderStyle implemented.
8566
8567 2005-05-18  Peter Bartok  <pbartok@novell.com>
8568
8569         * DataObject.cs: Entries are not global but particular to the
8570           DataObject, now it behaves that way
8571         * XplatUIWin32.cs: Implemented Clipboard methods
8572         * Clipboard.cs: Implemented
8573         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8574         * XplatUIOSX.cs: Updated to final clipboard prototypes
8575         * XplatUIX11.cs: Implemented Clipboard methods
8576         * XplatUIDriver.cs: Updated to final clipboard prototypes
8577         * XplatUIStructs.cs:
8578           - Added BITMAPINFOHEADER struct
8579           - Added ClipboardFormats enum
8580         * X11Structs.cs:
8581           - Added ClipboardStruct
8582           - Added Atom enum items for clipboard types
8583           - Fixed atom types for Selection event structures
8584         * DataFormats.cs:
8585           - Added internal properties and methods for drivers to enumerate
8586             all known formats
8587           - Switched initialization method to allow drivers to assign their
8588             own IDs even for the MS predefined clipboard IDs
8589         * XplatUI.cs: Updated to final clipboard interface
8590
8591 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8592         * PropertyGridView.cs: Fixed compiler warnings.
8593
8594 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8595         * PropertyGrid.cs: Added some event calls
8596         * PropertyGridView.cs: Change drawing code to use double buffering
8597         * PropertyGridTextBox.cs: Changed Text property name
8598         * GridItem.cs: Added Bounds property.
8599         * GridEntry.cs: Added Bounds property.
8600
8601 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8602
8603         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8604         since GetType() may not return the correct type if the object is
8605         a remoting proxy.
8606
8607 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8608
8609         * TreeNodeCollection.cs: fixes get/set item ranges
8610         
8611 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8612
8613         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8614                 
8615 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8616
8617         * ComboBox.cs: Fix item range comparation
8618         * ListView.cs: Fix item range comparation
8619
8620 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8621
8622         * FontDialog.cs:
8623           - Clear example panel when OnPaint is called
8624           - Better solution for displaying the example panel text
8625           - Select default indexes in the ListBoxes
8626
8627 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8628
8629         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8630
8631 2005-05-11  Peter Bartok  <pbartok@novell.com>
8632
8633         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8634         * SelectionRangeConverter.cs: Implemented
8635         * PropertyGrid.cs: Fixed attribute value
8636         * Control.cs:
8637           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8638           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8639         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8640           that's common to all drivers. First methods to go there are
8641           Sebastien Pouliot's CAS Stack Propagation helper methods
8642         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8643           Sebastien Pouliot for CAS Stack Propagation
8644
8645 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8646
8647         * OSXStructs.cs:
8648           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8649
8650 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8651
8652         * DataGridTextBoxColumn.cs: fixed some members
8653         * GridColumnStylesCollection.cs: indexed column is case insensitive
8654         * DataGridTableStyle.cs: fixes
8655         * ThemeWin32Classic.cs: add new theme parameter
8656         * Theme.cs: add new theme parameter
8657         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8658         * DataGrid.cs: fixes, new internal properties, etc.
8659         * DataGridColumnStyle.cs: allows to set grid value
8660         *
8661
8662 2005-05-10  Peter Bartok  <pbartok@novell.com>
8663
8664         * AccessibleObject.cs:
8665           - Removed MonoTODO attribute on help, method is correct
8666           - Fixed Bounds property
8667         * AxHost.cs: Moved MonoTODO
8668         * ButtonBase.cs: Now setting AccessibleObject properties
8669         * RadioButton.cs: Setting proper AccessibleObject role
8670         * CheckBox.cs: Setting proper AccessibleObject role
8671         * ControlBindingsCollection.cs: Added properties, methods and attributes
8672         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8673           userdefined DataFormats.Format items as well
8674         * ListControl.cs: Removed data_member from the public eye
8675         * OpenFileDialog.cs:
8676           - Made class sealed
8677           - Added missing attributes
8678         * SaveFileDialog.cs: Added missing attributes
8679         * ImageListStreamer.cs: Fixed code that caused warnings
8680         * LinkLabel.cs: Removed unreachable code
8681         * TreeView.cs: Fixed code that caused warnings
8682         * PropertyGridView.cs: Fixed code that caused warnings
8683         * GridColumnStylesCollection.cs: Added missing attributes
8684         * GridTableStylesCollection: Added missing attribute
8685         * PropertyManager: Added .ctor
8686         * SecurityIDType: Added
8687         * DataObject.cs: Implemented class
8688         * LinkArea.cs: Added missing attribute
8689
8690 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8691
8692         * RadioButton.cs: call base method to allow to fire OnClick event
8693         * UpDownBase.cs: OnMouseUp call base method
8694         * CheckedListBox.cs: call base method before returning
8695         * TrackBar.cs: call base method before returning
8696         
8697
8698 2005-05-10  Peter Bartok  <pbartok@novell.com>
8699
8700         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8701           for messages
8702
8703 2005-05-10  Peter Bartok  <pbartok@novell.com>
8704
8705         * DataFormats.cs: Implemented
8706         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8707           XplatUIX11.cs: Added Clipboard APIs
8708         * XplatUIWin32.cs: Implemented Clipboard APIs
8709         * FolderBrowserDialog.cs: Added missing event, attributes
8710
8711 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8712
8713         * CheckBox.cs: call base method to allow to fire OnClick event
8714
8715 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8716
8717         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8718
8719 2005-05-06  Peter Bartok  <pbartok@novell.com>
8720
8721         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8722         * Screen.cs: Implemented
8723         * HelpNavigator.cs: Added
8724         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8725           property
8726         * HelpProvider.cs: Implemented all we can do until we have a CHM
8727           help library (which means that "What's This" does work now)
8728
8729 2005-05-06  Jackson Harper  <jackson@ximian.com>
8730
8731         * XplatUIX11.cs: Fix waking up the main loop.
8732                 
8733 2005-05-05  Peter Bartok  <pbartok@novell.com>
8734
8735         * XplatUI.cs: Updated revision
8736         * Form.cs: Removed enless loop
8737         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8738         * Label.cs (OnPaint): Added call to base.OnPaint()
8739         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8740         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8741         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8742         * AxHost.cs: Added
8743         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8744         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8745           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8746           reuse of ToolTipWindow by other controls
8747         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8748         * XplatUIX11.cs: Now clipping drawing area (experimental)
8749         * PictureBox.cs: Moved base.OnPaint() call to end of method
8750         * Theme.cs: Fixed ToolTip abstracts to match new format
8751         * ErrorProvider.cs: Implemented
8752
8753 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8754
8755         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8756         * LinkLabel.cs:
8757                 - Adds cursors
8758                 - Handles focus
8759                 - Implements LinkBehavior
8760                 - Fixes many issues
8761
8762 2005-05-03  Jackson Harper  <jackson@ximian.com>
8763
8764         * ListView.cs: Calculate the scrollbar positioning on resize and
8765         paint, so they get put in the correct place.
8766
8767 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8768
8769         * ColorDialogs.cs: The small color panels are now handled by
8770           SmallColorControl. This fixes drawing of the focus rectangle
8771           and adds a 3D border.
8772
8773 2005-05-03  Peter Bartok  <pbartok@novell.com>
8774
8775         * Control.cs: Modified version of Jonathan Chamber's fix for
8776           double-buffering
8777
8778 2005-05-03  Jackson Harper  <jackson@ximian.com>
8779
8780         * ListView.cs: Remove redraw variable. Control now handles whether
8781         or not a redraw needs to be done, and will only raise the paint
8782         event if redrawing is needed.
8783
8784 2005-05-03  Jackson Harper  <jackson@ximian.com>
8785
8786         * Splitter.cs: No decorations for the splitter form. Cache the
8787         hatch brush.
8788
8789 2005-05-03  Jackson Harper  <jackson@ximian.com>
8790
8791         * TreeView.cs: Use dashed lines to connect nodes. Use the
8792         ControlPaint method for drawing the focus rect instead of doing
8793         that in treeview.
8794
8795 2005-05-02  Peter Bartok  <pbartok@novell.com>
8796
8797         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8798
8799 2005-04-29  Jackson Harper  <jackson@ximian.com>
8800
8801         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8802         entire image buffer. Just clear the clipping rectangle.
8803
8804 2005-04-29  Jackson Harper  <jackson@ximian.com>
8805
8806         * ThemeWin32Classic.cs: Don't draw list view items that are
8807         outside the clipping rectangle.
8808
8809 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8810
8811         * ListBox.cs: added horizontal item scroll
8812
8813 2005-04-29  Jackson Harper  <jackson@ximian.com>
8814
8815         * ThemeWin32Classic.cs: Remove some old debug code that was
8816         causing flicker with the new double buffering code.
8817
8818 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8819
8820         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8821         behave like combobox and comboboxlist (still not sure if this is
8822         correct though).
8823
8824 2005-04-28  Jackson Harper  <jackson@ximian.com>
8825
8826         * ThemeWin32Classic.cs: Don't fill the middle of progress
8827         bars. This fills areas outside of the clip bounds that don't need
8828         to be filled.
8829
8830 2005-04-28  Jackson Harper  <jackson@ximian.com>
8831
8832         * Control.cs: Don't expose functionality to touch the image buffers.
8833         * ProgressBar.cs:
8834         * ListView.cs: We do not need to (and no longer can) manipulate
8835         the image buffers directly. All of this is handled by Control.
8836
8837 2005-04-28  Peter Bartok  <pbartok@novell.com>
8838
8839         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8840           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8841           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8842
8843 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8844
8845         * Combobox:
8846                 - Adjust control's height for non-simple comboboxes (bug fix)
8847                 - Remove dead code
8848         * MenuAPI.cs: remove unused var
8849         * ScrollBar.cs: remove unsed var
8850                  
8851         * ListBox.cs: unselect items when clearing
8852
8853 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8854
8855         * ListControl.cs: honors OnPositionChanged and default Selected Item
8856         * ListBox.cs: unselect items when clearing
8857
8858 2005-04-27  Jackson Harper  <jackson@ximian.com>
8859
8860         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8861         if a "correct" keyboard is not found. This will make us not crash,
8862         but might give some users bad keyboard layouts...seems to be the
8863         same thing rewind does.
8864
8865 2005-04-27  Jackson Harper  <jackson@ximian.com>
8866
8867         * BindingManagerBase.cs: Attach the current/position changed
8868         handlers to their respective events.
8869
8870 2005-04-27  Jackson Harper  <jackson@ximian.com>
8871
8872         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8873         not just a blit.
8874         * ThemeWin32Classic.cs: Don't fill the background for picture
8875         boxes. This could overright user drawing.
8876         * ComboBox.cs: Just fill the clipping rect not the entire client
8877         rect when drawing the background. This prevents pieces of the
8878         image buffer from getting overwritten and is theoretically faster.
8879
8880 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8881
8882         * ComboBox.cs: Databinding support fixes, fire missing events
8883         * ListControl.cs: implement missing methods and properties, fixes
8884         * ThemeWin32Classic.cs: Databiding support on Drawing
8885         * CheckedListBox.cs: Databinding support fixes, fire missing events
8886         * ListBox.cs: Databinding support fixes, fire missing events
8887         
8888 2005-04-25  Peter Bartok  <pbartok@novell.com>
8889
8890         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8891
8892 2005-04-25  Jackson Harper  <jackson@ximian.com>
8893
8894         * TreeView.cs: Use the horizontal scrollbars height not width when
8895         determining how much of the client area is available.
8896
8897 2005-04-25  Jackson Harper  <jackson@ximian.com>
8898
8899         * Control.cs: Double buffering is handled differently now. As per
8900         the spec, the extra buffer is created in the WM_PAINT message and
8901         passed down to the control's drawing code.
8902         * GroupBox.cs:
8903         * Label.cs:
8904         * CheckBox.cs:
8905         * ProgressBar.cs:
8906         * RadioButton.cs:
8907         * ColorDialog.cs:
8908         * ComboBox.cs:
8909         * PropertyGridView.cs:
8910         * UpDownBase.cs:
8911         * MessageBox.cs:
8912         * MenuAPI.cs:
8913         * ListView.cs:
8914         * ButtonBase.cs:
8915         * SizeGrip.cs:
8916         * ScrollBar.cs:
8917         * ListBox.cs:
8918         * TrackBar.cs:
8919         * ToolBar.cs:
8920         * PictureBox.cs:
8921         * DateTimePicker.cs:
8922         * StatusBar.cs:
8923         * TreeView.cs: Update to new double buffering system.
8924         * MonthCalendar.cs: Uncomment block, as Capture is now
8925         working. Update to new double buffering
8926         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8927         * PaintEventArgs.cs: New internal method allows us to set the
8928         graphics object. This is used for double buffering.
8929         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8930         rectangle. The internal paint_area var has been removed from
8931         StatusBar. The clipping rect should be used instead.
8932         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8933         * TabPage.cs: The RefreshTabs method was removed, so just call the
8934         tab controls Refresh method now.
8935         * TabControl.cs: Update to new double buffering. Make sure the
8936         handle is created before sizing the tab pages, otherwise we will
8937         get stuck in a loop.
8938
8939 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8940
8941         * LinkLabel.cs: Fix typo, bug #74719; patch
8942           from Borja Sanchez Zamorano
8943
8944 2005-04-22  Jackson Harper  <jackson@ximian.com>
8945
8946         * TreeNode.cs: Implement Handle stuff.
8947         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8948
8949 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8950
8951         * DataGridTextBoxColumn.cs: call base constructors, fixes
8952         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8953         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8954         * DataGridTableStyle.cs: implements create default column styles
8955         * DataGridBoolColumn.cs: which types can handle
8956         * DataGrid.cs: missing methods, fixes, new functionality
8957         * DataGridColumnStyle.cs: fixes
8958
8959 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8960         * FolderBrowserDialog.cs:
8961         - Use a thread to fill the TreeView
8962         - Adjusted some sizes
8963
8964 2005-04-19  Peter Bartok  <pbartok@novell.com>
8965
8966         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8967           property. Fixes #74360.
8968
8969 2005-04-19  Jackson Harper  <jackson@ximian.com>
8970
8971         * XEventQueue.cs: Lock when getting the lockqueue size.
8972         * PictureBox.cs: Call base OnPaint
8973         
8974 2005-04-19  Peter Bartok  <pbartok@novell.com>
8975
8976         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8977           messages were no longer being processed (this broke BeginInvoke)
8978
8979           
8980 2005-04-18  Jackson Harper  <jackson@ximian.com>
8981
8982         * TreeView.cs: buglet that caused node images to get drawn
8983         regardless of whether or not they were in the clipping rectangle.
8984
8985 2005-04-18  Jackson Harper  <jackson@ximian.com>
8986
8987         * CurrencyManager.cs: There are four rules for GetItemProperties:
8988         - If the type is an array use the element type of the array
8989         - If the type is a typed list, use the type
8990         - If the list contains an Item property that is not an object, use
8991         that property
8992         - use the first element of the list if there are any elements in
8993         the list.
8994         
8995 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8996
8997         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8998         click. This handles offsets for scrolling properly and reduces
8999         memory. Also fixed GetNode to not offset now that TopNode works
9000         properly.
9001         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
9002         
9003 2005-04-17  Jackson Harper  <jackson@ximian.com>
9004
9005         * CursorConverter.cs: Initial implementation.
9006
9007 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9008
9009         * ListControl.cs: work towards complex data binding support on ListControl
9010         * CurrencyManager.cs: work towards complex data binding support on ListControl
9011         * ListBox.cs: work towards complex data binding support on ListControl
9012
9013
9014 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9015
9016         * GridTableStylesCollection.cs: fixes name and constructor
9017         * DataGridTableStyle.cs: fixes
9018         * DataGridBoolColumn.cs: fixes names and constructors
9019         * DataGrid.cs: define methods and properties. Some init implementations
9020         * DataGridCell.cs: define methods and properties. Some init implementations
9021         * GridTablesFactory.cs: Define methods and properties
9022
9023 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
9024
9025         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
9026         graphics port changes.  We still want the coordinates in global screen
9027         coordinates.
9028
9029 2005-04-14  Jackson Harper  <jackson@ximian.com>
9030
9031         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
9032         check plus minus or checkbox clicks unless those features are enabled.
9033
9034 2005-04-14  Jackson Harper  <jackson@ximian.com>
9035
9036         * TreeView.cs: Add methods for setting the top and bottom visible
9037         nodes. TreeNode::EnsureVisible uses these methods.
9038         * TreeNode.cs: Implement EnsureVisible
9039
9040 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
9041
9042         * Form.cs: Pospone menu assignation if the window has not been created yet
9043         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
9044         size and position
9045
9046 2005-04-12  Jackson Harper  <jackson@ximian.com>
9047
9048         * TreeView.cs: Set the TopNode properly when scrolling
9049         occurs. This has the added benifit of reducing the amount of
9050         walking that needs to be done when drawing. Also removed an old
9051         misleading TODO.
9052         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
9053         
9054 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
9055
9056         * Timer.cs: fixes interval setting when the timer is already enabled
9057         
9058 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
9059
9060         * FolderBrowserDialog.cs: First approach
9061
9062 2005-04-09  Peter Bartok  <pbartok@novell.com>
9063
9064         * FolderBrowserDialog: Added
9065
9066 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
9067
9068         * LinkLabel.cs: move drawing code into the theme
9069         * ThemeWin32Classic.cs: drawing code and painting background bugfix
9070         * Theme.cs: define DrawLinkLabel method
9071
9072 2005-04-05  Jackson Harper  <jackson@ximian.com>
9073
9074         * BindingContext.cs: Use weak references so these bad actors don't
9075         stay alive longer then they need to.
9076
9077 2005-04-05  Jackson Harper  <jackson@ximian.com>
9078
9079         * ListControl.cs: Basic implementation of complex databinding.
9080         * ComboBox.cs:
9081         * ListBox.cs: Add calls to ListControl databinding methods.
9082
9083 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
9084
9085         * FileDialog.cs:
9086           - Don't change PopupButtonState to Normal when the
9087             PopupButton gets pressed several times.
9088           - Renamed ButtonPanel to PopupButtonPanel
9089
9090 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
9091
9092         * ColorDialog.cs: Use cached objects instead of creating them
9093         * LinkLabel.cs: Use cached objects instead of creating them
9094         * Splitter.cs: Use cached objects instead of creating them
9095         * FontDialog.cs: Use cached objects instead of creating them
9096         * PropertyGridView.cs: Use cached objects instead of creating them
9097         * MessageBox.cs: Use cached objects instead of creating them
9098         * FileDialog.cs: Use cached objects instead of creating them
9099         * ThemeWin32Classic.cs: Use cached objects instead of creating them
9100         * TreeView.cs: Use cached objects instead of creating them
9101         
9102 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
9103
9104         * Control.cs: use Equals to compare the font since no == op
9105         * ScrollBar.cs: use Equals to compare the font since no == op
9106
9107 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
9108
9109         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
9110
9111 2005-04-01  Jackson Harper  <jackson@ximian.com>
9112
9113         * Binding.cs: Implement IsBinding.
9114         * BindingManagerBase.cs:
9115         * PropertyManager.cs:
9116         * CurrencyManager.cs: Add IsSuspended property.
9117
9118 2005-04-01  Jackson Harper  <jackson@ximian.com>
9119
9120         * Binding.cs: Had some IsAssignableFrom calls backwards.
9121
9122 2005-04-01  Jackson Harper  <jackson@ximian.com>
9123
9124         * Binding.cs: Handle null data members when pulling data.
9125         * PropertyManager.cs: Handle the data member being a property that
9126         does not exist.
9127
9128 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9129
9130         * DataGridTextBoxColumn.cs: fixes signature
9131         * DataGrid.cs: calls right constructor
9132
9133 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9134
9135         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
9136         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
9137         * GridTableStylesCollection.cs: implements GridTableStylesCollection
9138         * DataGridTableStyle.cs: implements DataGridTableStyle
9139         * DataGridBoolColumn.cs: implements DataGridBoolColumn
9140         * DataGridTextBox.cs: implements DataGridTextBox
9141         * DataGridColumnStyle.cs: implements DataGridColumnStyle
9142
9143 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
9144
9145         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
9146
9147 2005-03-29  Peter Bartok  <pbartok@novell.com>
9148
9149         * Application.cs:
9150           - Properly implemented CompanyName property
9151           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
9152             returns a path that includes CompanyName, ProductName and
9153             Version (fixes bug #70330)
9154
9155 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
9156
9157         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
9158           fixes bug #72588.
9159
9160 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9161
9162         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
9163         
9164           - Added ReadOnly CheckBox
9165           - Further refactoring: moved some code from Open-/SaveFileDialog
9166             to FileDialog
9167
9168 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9169
9170         * OpenFileDialog.cs: Fixed CheckFileExists
9171         * FileDialog.cs:
9172           Moved FileView and DirComboBox outside FileDialog class.
9173           They can now be used outside FileDialog
9174
9175 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9176
9177         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
9178         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
9179
9180 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9181
9182         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9183           - Added missing CreatePrompt property in SaveDialog
9184           - Overall SaveDialog handling should be better now
9185           - Added non standard ShowHiddenFiles property
9186           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
9187           - Added InitialDirectory and RestoreDirectory support
9188
9189 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
9190
9191         * FileDialog.cs: Made dirComboBox usable
9192
9193 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
9194
9195         * FileDialog.cs: Added Filter support (case sensitiv)
9196
9197 2005-03-24  Jackson Harper  <jackson@ximian.com>
9198
9199         * TabControl.cs: Need a couple more pixels for the lines.
9200
9201 2005-03-23  Jackson Harper  <jackson@ximian.com>
9202
9203         * TabControl.cs: Give the tab page focus when it is selected.
9204
9205 2005-03-23  Jackson Harper  <jackson@ximian.com>
9206
9207         * TabControl.cs: Account for the drawing of tabs borders when
9208         invalidating. If the slider was clicked dont do click detection on
9209         the tabs.
9210
9211 2005-03-23  Jackson Harper  <jackson@ximian.com>
9212
9213         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
9214
9215 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
9216
9217         * CategoryGridEntry.cs: Added
9218         * GridItem.cs: Added helper properties
9219         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
9220         * GridEntry.cs: Updated code for collection
9221         * PropertyGrid.cs: Cleaned up some formatting
9222         * PropertyGridView.cs: Added drop down functionality for enums.
9223         * GridItemCollection.cs: Added enumerator logic
9224         * PropertyGridEntry.cs: Added
9225
9226 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9227
9228         * FileDialog.cs:
9229           - Removed unnecessary commented code
9230           - Fixed handling for entering the filename manually in the combobox
9231
9232 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9233
9234         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9235
9236 2005-03-18  Peter Bartok  <pbartok@novell.com>
9237
9238         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9239           them being touching the border
9240
9241 2005-03-18  Peter Bartok  <pbartok@novell.com>
9242
9243         * TextControl.cs: Quick hack to center text better
9244
9245 2005-03-18  Peter Bartok  <pbartok@novell.com>
9246
9247         * ControlPaint.cs:
9248           - Don't throw NotImplemented exceptions, just print a notice once
9249             instead (requested by Miguel). This makes running existing SWF
9250             apps a bit easier
9251         * Control.cs:
9252           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9253           - Added context menu trigger on right click
9254         * Panel.cs: Trigger invalidate on resize
9255         * StatusBar.cs:
9256           - Removed old double-buffer drawing
9257           - Added ResizeRedraw style to force proper update of statusbar
9258         * ListView.cs:
9259           - Removed debug output
9260         * ThemeWin32Classic.cs:
9261           - Fixed drawing of status bar, now draws Text property if there
9262             are no defined panels
9263
9264 2005-03-18  Jackson Harper  <jackson@ximian.com>
9265
9266         * ImageList.cs: When the image stream is set pull all the images
9267         from it.
9268         * ImageListStreamer.cs: Implement reading image list streams.
9269
9270 2005-03-18  Peter Bartok  <pbartok@novell.com>
9271
9272         * ThemeWin32Classic.cs (DrawPictureBox):
9273           - Fixed calculations for centered drawing
9274           - Fixed drawing for normal mode, not scaling the image on normal
9275
9276 2005-03-18  Peter Bartok  <pbartok@novell.com>
9277
9278         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9279           textbox
9280         * FileDialog.cs:
9281           - Made Open/Save button the accept button for FileDialog
9282           - Tied the cancel button to the IButtonControl cancel button
9283           - Save/Open now properly builds the pathname
9284           - Now handles user-entered text
9285           - Preventing crash on right-click if no item is selected
9286           - Fixed Text property, now uses contents of textbox
9287           - Fixed SelectedText property, now just returns the text part that
9288             is selected in the text box
9289
9290 2005-03-18  Jackson Harper  <jackson@ximian.com>
9291
9292         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9293         rect, make sure to de-adjust the interior rect after drawing the
9294         tab text.
9295
9296 2005-03-18  Peter Bartok  <pbartok@novell.com>
9297
9298         * MenuAPI.cs: Remove menu *before* executing selected action to
9299           prevent the menu from 'hanging around'
9300           
9301 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
9302
9303         * XplatUIOSX.cs: Implemented WorkingArea property
9304
9305 2005-03-17  Peter Bartok  <pbartok@novell.com>
9306
9307         * XplatUIX11.cs: Fixed menu coord calculations
9308         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9309           for calculating offsets
9310
9311 2005-03-17  Peter Bartok  <pbartok@novell.com>
9312
9313         * Hwnd.cs: Do not consider menu presence for default client
9314           rectangle location/size
9315         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9316           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9317           translation functions
9318         * FileDialog.cs: Fixed (what I presume is a) typo
9319
9320 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
9321
9322         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9323           X access (avoids X-Async errors)
9324
9325 2005-03-16  Jackson Harper  <jackson@ximian.com>
9326
9327         * TabControl.cs: Raise the SelectedIndexChanged event.
9328
9329 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9330
9331         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9332           - Removed vertical ToolBar and replaced it with a custom panel
9333             (desktop and home button already work)
9334           - Added Help button (some controls get resized or relocated then)
9335           - Draw correct text depending on Open or Save.
9336           - Fixed some typos...
9337
9338 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9339
9340         * ScrollBar.cs:
9341           - Only change Maximum and Minimum when need it (bug fix)
9342
9343 2005-03-15  Peter Bartok  <pbartok@novell.com>
9344
9345         * Form.cs: Use Handle for icon, to trigger creation if
9346           the window does not yet exist
9347         * Control.cs:
9348           - CanSelect: Slight performance improvement
9349           - Focus(): Preventing possible recursion
9350           - Invalidate(): Removed ControlStyle based clear flag setting
9351           - WM_PAINT: fixed logic for calling OnPaintBackground
9352           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9353             EraseWindowBackground if the control doesn't paint background
9354         * XplatUIWin32.cs:
9355           - Moved EraseWindowBackground() method to internal methods
9356           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9357             is sent via SendMessage on BeginPaint call on Win32
9358         * XplatUIX11.cs:
9359           - Added EraseWindowBackground() method
9360           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9361             PaintEventStart, which more closely matches Win32 behaviour
9362           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9363           - Fixed SetFocus() to properly deal with client and whole windows
9364         * Hwnd.cs: Added ErasePending property
9365         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9366         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9367
9368 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9369
9370         * XplatUIOSX.cs:
9371           - Fix hard loop when timers exist.
9372           - Fix bugs with middle and right click for 3 button mice.
9373
9374 2005-03-11  Peter Bartok  <pbartok@novell.com>
9375
9376         * XplatUIX11.cs:
9377           - get_WorkingArea: Need to call X directly, GetWindowPos only
9378             returns cached data now
9379           - Added sanity check to GetWindowPos hwnd usage
9380
9381 2005-03-11  Jackson Harper  <jackson@ximian.com>
9382
9383         * BindingManagerBase.cs: This method isn't used anymore as
9384         PullData now updates the data in the control.
9385
9386 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9387
9388         * Form.cs: fixes menu drawing on X11
9389         * MenuAPI.cs:  fixes menu drawing on X11
9390
9391 2005-03-11  Peter Bartok  <pbartok@novell.com>
9392
9393         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9394           from Jonathan Gilbert; should fix bug #73606
9395         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9396           in Screen coordinates. Thanks, Jordi.
9397         * Form.cs: Added missing attribute
9398
9399 2005-03-11  Peter Bartok  <pbartok@novell.com>
9400
9401         * Form.cs:
9402           - Rudimentary Mdi support
9403           - Removed outdated FormParent code
9404           - Implemented lots of missing properties and methods, still missing
9405             transparency support
9406           - Added missing attributes
9407           - Implemented support for MaximumBounds
9408           - Added firing of various events
9409         * XplatUI.cs: Added SetIcon() method
9410         * XplatUIDriver.cs: Added SetIcon() abstract
9411         * XplatUIOSX.cs: Stubbed out SetIcon() method
9412         * XplatUIX11.cs:
9413           - Implemented SetIcon() support
9414           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9415           - Switched to unix line endings
9416         * XplatUIWin32.cs:
9417           - Made POINT internal so for can access it as part of MINMAX
9418           - Implemented SetIcon() support
9419           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9420             native Mdi support again, might have to go managed)
9421         * Control.cs: Now fires the StyleChanged event
9422         * MdiClient.cs: Added; still mostly empty
9423
9424 2005-03-10  Peter Bartok  <pbartok@novell.com>
9425
9426         * SaveFileDialog.cs: Added emtpy file
9427
9428 2005-03-08  Peter Bartok  <pbartok@novell.com>
9429
9430         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9431           in turn triggers OnCreateContro) when creating a handle for the
9432           first time.
9433         * TextControl.cs: Fixed endless loop in certain cases when
9434           replacing the current selection
9435
9436 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9437
9438         * ScrollBar.cs:
9439           - Honors NewValue changes in Scroll events allowing apps to change it
9440           - Adds First and Last Scroll events
9441           - Fixes Thumb events
9442
9443 2005-03-07  Peter Bartok  <pbartok@novell.com>
9444
9445         * Hwnd.cs: Added DefaultClientRectangle property
9446         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9447           more detailed debug information
9448         * XplatUIX11.cs:
9449           - Fixed size-change feedback loop, where we would pull an old size
9450             off the queue and mistakenly change our window's size to an
9451             earlier value
9452           - Now compressing ConfigureNotify events, to reduce looping and
9453             redraw issues
9454         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9455           is called
9456
9457 2005-03-07  Jackson Harper  <jackson@ximian.com>
9458
9459         * Binding.cs: Push data pushes from data -> property. Check if the
9460         property is readonly when attempting to set it.
9461
9462 2005-03-07  Jackson Harper  <jackson@ximian.com>
9463
9464         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9465         instead of IsSubclassOf. Pulling data now sets the value on the
9466         control.
9467         * PropertyManager.cs:
9468         * CurrencyManager.cs: Just need to pull data when updating now,
9469         because PullData will set the value on the control.
9470
9471 2005-03-04  Jackson Harper  <jackson@ximian.com>
9472
9473         * Binding.cs: Implement data type parsing and converting on pulled
9474         data. TODO: Are there more ways the data can be converted?
9475
9476 2005-03-04  Jackson Harper  <jackson@ximian.com>
9477
9478         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9479         controls Validating method so we can repull the data when the
9480         control loses focus.
9481
9482 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9483
9484         * ColumnHeader.cs:
9485           - Fixes null string format
9486           
9487         * ListView.cs:
9488           - Adds enum type checks
9489           - Fixes redrawing and recalc need after changing some properties
9490           - Fixes on focus_item set after the event
9491           - Fixes adding columns after the control has been created
9492           
9493         * ThemeWin32Classic.cs:
9494           - Fixes CheckBox focus rectangle
9495           - Fixes ColumnHeader drawing
9496
9497
9498 2005-03-03  Jackson Harper  <jackson@ximian.com>
9499
9500         * Binding.cs: Bind to <Property>Changed events so we can detect
9501         when properties are changed and update the data.
9502
9503 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9504
9505         * ImageList.cs:
9506           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9507           - Fixes ImageList constructor with ImageList container
9508           - Fixes image scaling (wrong parameters at DrawImage)
9509
9510 2005-02-02  Jackson Harper  <jackson@ximian.com>
9511
9512         * Binding.cs: Make property searches case-insensitive. Eliminate
9513         some duplicated code.
9514
9515 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9516
9517         * ComboBox.cs:
9518                 - Handle focus event
9519                 - Fix scrollbar events
9520                 - Discard highlighted item if remove it
9521                 - Fixes SelectedItem with strings
9522
9523 2005-03-01  Peter Bartok  <pbartok@novell.com>
9524
9525         * Control.cs:
9526           - Fixed Visible property, now follows (once again) parent chain
9527             to return false if any control in the chain is visible=false
9528           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9529           - Fixed several places where is_visible instead of Visible was used
9530           - Implemented FIXME related to focus selection when setting focused
9531             control to be invisible
9532
9533         * XplatUIWin32.cs: Now using proper method to find out if window is
9534           visible. Thanks to Jordi for pointing it out
9535
9536 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9537
9538         * ComboBox.cs: show/hide scrollbar instead of creating it
9539
9540 2005-02-27  Jackson Harper  <jackson@ximian.com>
9541
9542         * CurrencyManager.cs: Add PositionChanged stuff.
9543
9544 2005-02-27  Peter Bartok  <pbartok@novell.com>
9545
9546         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9547         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9548         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9549         * XplatUIX11.cs:
9550           - Implemented GetMenuDC()
9551           - Implemented GetMenuOrigin()
9552           - Implemented ReleaseMenuDC()
9553           - Implemented generation of WM_NCPAINT message
9554           - Implemented generation and handling of WM_NCCALCSIZE message
9555         * Form.cs: Added debug helper message for Jordi's menu work
9556         * Hwnd.cs:
9557           - Modified ClientRect property; added setter, fixed getter to handle
9558             setting of ClientRect
9559           - Added MenuOrigin property
9560
9561 2005-02-26  Peter Bartok  <pbartok@novell.com>
9562
9563         * XplatUIX11.cs:
9564           - Destroys the caret if a window that's being destroyed contains it
9565           - Ignores expose events coming from the X11 queue for windows that
9566             already are destroyed
9567           - Now uses the proper variable for handling DestroyNotify, before we
9568             marked the wrong window as destroyed
9569           - Improved/added some debug output
9570
9571 2005-02-26  Peter Bartok  <pbartok@novell.com>
9572
9573         * X11Keyboard.cs: Fixes to work on 64bit systems
9574
9575 2005-02-26  Peter Bartok  <pbartok@novell.com>
9576
9577         * Control.cs:
9578           - Now calling OnHandleDestroyed from DestroyHandle()
9579             instead of Dispose()
9580           - Removed bogus call to controls.Remove() from DestroyHandle()
9581
9582 2005-02-26  Peter Bartok  <pbartok@novell.com>
9583
9584         * Control.cs: Properly destroy child windows when our handle is
9585           destroyed
9586
9587 2005-02-25  Peter Bartok  <pbartok@novell.com>
9588
9589         * XplatUI.cs:
9590           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9591           - Alphabetized Static Methods and Subclasses
9592
9593         * XplatUIX11.cs:
9594           - Added XException class to allow custom handling of X11 exceptions
9595           - Created custom X11 error handler, tied into XException class
9596           - Added support for MONO_XEXCEPTIONS env var to allow the user
9597             to either throw an exception on X errors or continue running
9598             after displaying the error
9599           - Added handling of DestroyNotify message
9600           - Added handler for CreateNotify message (still disabled)
9601           - Improved (tried to at least) Where method to provide file and lineno
9602         * X11Structs.cs:
9603           - Added XErrorHandler delegate
9604           - Added XRequest enumeration (to suppor translation of errors)
9605
9606 2005-02-25  Jackson Harper  <jackson@ximian.com>
9607
9608         * PropertyManager.cs: Implement editing features
9609         * CurrencyManager.cs:
9610         * Binding.cs: First attempt at UpdateIsBinding
9611         * BindingManagerBase.cs: Call UpdateIsBinding before
9612         pushing/pulling data.
9613
9614 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9615
9616         * MenuAPI.cs: Respect disabled items
9617         * ThemeWin32Classic.cs
9618                 - Caches ImageAttributes creation for DrawImageDisabled
9619                 - Fixes vertical menu line drawing
9620                 - Draws disabled arrows in disable menu items
9621
9622 2005-02-24  Peter Bartok  <pbartok@novell.com>
9623
9624         * Hwnd.cs:
9625           - Added UserData property to allow associating arbitrary objects
9626             with the handle
9627           - Fixed leak; now removing Hwnd references from static windows array
9628         * XplatUIWin32.cs:
9629           - Fixed Graphics leak in PaintEventEnd
9630           - Removed usage of HandleData, switched over to Hwnd class
9631         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9632
9633 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9634
9635         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9636         * ScrollBar.cs: Fixes bug
9637         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9638          keyboard navigation enhancements
9639
9640 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9641
9642         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9643         * GroupBox.cs: Add control styles
9644         * Label.cs: Add control styles
9645         * UpDownBase.cs: Add control styles
9646         * ListBox.cs: Add control styles
9647         * XplatUIWin32.cs: Fixes wrong parameter order
9648
9649
9650 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9651
9652         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9653
9654 2005-02-23  Jackson Harper  <jackson@ximian.com>
9655
9656         * PropertyManager.cs: Implement property binding. This doesn't
9657         seem to work yet though as (I think) there are some bugs in
9658         System.ComponentModel.PropertyDescriptor.
9659         * BindingContext.cs: Use new PropertyManager constructor.
9660
9661 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9662
9663         * ProgressBar.cs: use clip region in ProgressBar
9664         * ThemeWin32Classic.cs: use clip region in ProgressBar
9665
9666 2004-02-22  Jackson Harper  <jackson@ximian.com>
9667
9668         * BindingsCollection.cs: Remove some debug code.
9669
9670 2005-02-22  Jackson Harper  <jackson@ximian.com>
9671
9672         * BindingContext.cs:
9673         * ControlBindingsCollection.cs:
9674         * CurrencyManager.cs:
9675         * Binding.cs:
9676         * BindingManagerBase.cs: Initial implementation
9677         * BindingsCollection.cs: Add an internal contains method that the
9678         BindingManagerBase uses to ensure bindings aren't added twice to
9679         the collection.
9680         * PropertyManager.cs: Stubbed out.
9681         * Control.cs:
9682         * ContainerControl.cs: Hook up databinding
9683         
9684 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9685
9686         * XplatUIOSX.cs:
9687           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9688           Fixed Invalidate/Update chain.
9689           Fixed tons of other minor bugs (this is almost a complete rewrite).
9690
9691 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9692
9693         * ComboBox.cs: do subcontrol creation when the control is created
9694
9695 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9696
9697         * Label.cs: fixes image drawing (image and imagelist)
9698         * ThemeWin32Classic.cs: cache brushes
9699         
9700 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9701
9702         * Form.cs: Move menu drawing code to Theme class
9703         * ComboBox.cs: Move ComboBox drawing code to Theme class
9704         * MenuItem.cs: Move menu drawing code to Theme class
9705         * MenuAPI.cs: Move menu drawing code to Theme class
9706         * ThemeWin32Classic.cs: New methods
9707         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9708         * ListBox.cs: Move Listbox drawing code to Theme class
9709         * Theme.cs: New methods
9710
9711 2005-02-20  Peter Bartok  <pbartok@novell.com>
9712
9713         * Control.cs:
9714           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9715             only process mnemonics on those)
9716           - Fixed event sequence for key handling; first calling
9717             ProcessKeyEventArgs now
9718         * TextBoxBase.cs:
9719           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9720             for processing non-character keys
9721           - Fixed WM_CHAR to generate proper event sequence before processing
9722         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9723           generation
9724
9725 2005-02-19  Peter Bartok  <pbartok@novell.com>
9726
9727         * UserControl.cs: Added TextChanged event; added attributes
9728         * SizeGrip.cs: Implemented resizing and optional display of grip
9729         * Form.cs: Fixed attribute
9730         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9731           Changed meaning of ScrollWindow bool argument; instead of the
9732           clear attribute (which will be true usually anyway), it gives the
9733           option of moving child controls as well.
9734         * XplatUIX11.cs:
9735           - Changed to match new ScrollWindow argument
9736           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9737             now handles the implicit parent window a WM puts around us
9738         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9739           to work)
9740         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9741         * TreeView.cs: Adjusted to new ScrollWindow arguments
9742
9743 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9744
9745         * Form.cs: Menu integration with non-client area
9746         * MenuItem.cs: Menu integration with non-client area
9747         * MenuAPI.cs: Menu integration with non-client area
9748
9749 2005-02-18  Peter Bartok  <pbartok@novell.com>
9750
9751         * MethodInvoker.cs: Added
9752         * MdiLayout.cs: Added
9753         * SendKeys.cs: Started implementation
9754         * ErrorIconAlignment.cs: Added
9755
9756 2005-02-18  Peter Bartok  <pbartok@novell.com>
9757
9758         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9759         * Form.cs: Added handling for Menu-related Non-client messages
9760
9761 2005-02-17  Peter Bartok  <pbartok@novell.com>
9762
9763         * UpDownBase.cs: Fixed typo, compilation errors
9764         * DomainUpDown.cs: Fixed attribute value
9765
9766 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9767
9768         * UpDownBase.cs: Attach entry events.
9769         Propagate events.
9770         Add ForeColor property, Focused, InterceptArrowKeys (interception
9771         does not work yet).
9772
9773 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9774
9775         * Form.cs:
9776                 - Redraw non client are on Setmenu
9777                 - Calc proper menu starting point
9778
9779 2005-02-17  Peter Bartok  <pbartok@novell.com>
9780
9781         * Application.cs: Fixed message_filter check
9782
9783 2005-02-17  Peter Bartok  <pbartok@novell.com>
9784
9785         * Application.cs: Now calls registered message filters
9786         * DockStyle.cs: Fixed attribute
9787         * Form.cs: Fixed attribute
9788         * Menu.cs: Fixed attribute
9789         * ToolTip.cs: Fixed attribute
9790         * TreeNode.cs: Added missing attributes and arranged in regions
9791         * PropertyGrid.cs: Fixed signatures
9792         * TreeNodeCollection.cs: Added attributes
9793         * Splitter.cs: Added missing attributes; arranged into regions
9794         * TabPage.cs: Added missing attributes; arranged into regions
9795         * TextBoxBase.cs: Added missing attributes
9796         * TextBox.cs: Added missing attributes
9797         * ArrangeDirection.cs: Added missing attributes
9798         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9799         * ToolBarButton.cs: Fixed attributes
9800         * AnchorStyles.cs: Fixed attribute
9801         * TrackBar.cs: Fixed attributes
9802         * TabControl.cs: Added missing attributes and arranged into regions
9803         * ToolBar.cs: Fixed attribute
9804         * StatusBar.cs: Fixed signature, organized into regions and added
9805           attributes
9806         * StatusBarPanel.cs: Fixed attributes
9807         * ContentsResizedEventArgs.cs: Implemented
9808         * ContentsResizedEventHandler.cs: Implemented
9809         * DateBoldEventArgs.cs: Implemented
9810         * DateBoldEventHandler.cs: Implemented
9811         * UpDownEventArgs.cs: Implemented
9812         * UpDownEventHandler.cs: Implemented
9813         
9814 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9815
9816         * Form.cs: first Menu NC refactoring
9817         * MenuAPI.cs: first Menu NC refactoring
9818         
9819 2005-02-16  Peter Bartok  <pbartok@novell.com>
9820
9821         * ImeMode.cs: Added missing attributes
9822         * Menu.cs: Fixed attribute
9823         * GroupBox.cs: Fixed attribute
9824         * Label.cs: Fixed attribute
9825         * ColorDialog.cs (RunDialog): Removed TODO attribute
9826         * ComboBox.cs: Fixed attributes
9827         * ListControl.cs: Added missing attributes
9828         * PropertyGrid.cs: Fixed attributes
9829         * Control.cs: Fixed attributes
9830         * ListViewItem.cs: Added TypeConverter attribute
9831         * NotifyIcon.cs: Fixed attributes
9832         * ListView.cs: Fixed attributes
9833         * ButtonBase.cs: Fixed attribute
9834         * ImageList.cs: Added missing attributes
9835         * ContainerControl.cs: Fixed signature
9836         * CheckedListBox.cs: Fixed attribute; added missing attributes
9837         * Panel.cs: Fixed attributes
9838         * PropertyTabChangedEventArgs.cs: Added missing attribute
9839         * PropertyValueChangedEventArgs.cs: Added missing attribute
9840         * Binding.cs: Fixed attribute
9841         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9842         * ListBox.cs: Fixed attribute; added missing attributes;
9843         * ScrollableControl.cs: Added missing attributes
9844         * PictureBox.cs: Added missing attributes; implemented missing property
9845         * DateTimePicker.cs: Added missing attributes
9846         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9847         * MonthCalendar.cs: Fixed attributes
9848         * StatusBarPanel.cs: Added missing attributes
9849         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9850
9851 2005-02-16  Peter Bartok  <pbartok@novell.com>
9852
9853         * TextBoxBase.cs: The previous method to enforce height yet remember
9854           the requested high was less than ideal, this is an attempt to do
9855           it better.
9856         * Control.cs: Added comment about possible problem
9857         * Copyright: Updated format
9858         * GridItemType.cs: Fixed swapped values
9859
9860 2005-02-15  Jackson Harper  <jackson@ximian.com>
9861
9862         * BaseCollection.cs: Use property so we never access an
9863         uninitialized list. Also initialize the list in the property.
9864
9865 2005-02-15  Peter Bartok  <pbartok@novell.com>
9866
9867         * GroupBox.cs (ProcessMnemonic): Implemented
9868         * Label.cs (ProcessMnemonic): Implemented
9869         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9870           hotkeys
9871
9872 2005-02-15  Peter Bartok  <pbartok@novell.com>
9873
9874         * RadioButton.cs (ProcessMnemonic): Implemented
9875         * CheckBox.cs (ProcessMnemonic): Implemented
9876         * Control.cs:
9877           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9878             handling
9879           - Added internal method to allow calling ProcessMnemonic from other
9880             controls
9881         * ContainerControl.cs:
9882           - Started support for handling validation chain handling
9883           - Implemented ProcessMnemonic support
9884           - Added Select() call to Active, to make sure the active control
9885             receives focus
9886         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9887           FormParent rewrite)
9888         * ThemeWin32Classic.cs:
9889           - DrawCheckBox(): Fixed stringformat to show hotkeys
9890           - DrawRadioButton(): Fixed stringformat to show hotkeys
9891         * CommonDialog.cs: Removed WndProc override, not needed
9892
9893 2005-02-14  Peter Bartok  <pbartok@novell.com>
9894
9895         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9896           missed those in the rewrite
9897
9898 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9899
9900         * NumericUpDown.cs (Increment, ToString): Add.
9901         (DecimalPlaces): implement.
9902         
9903         Add attributes.
9904         
9905         * UpDownBase.cs: Add the designer attributes.
9906
9907 2005-02-13  Peter Bartok  <pbartok@novell.com>
9908
9909         * Panel.cs: Removed border_style, now in Control
9910         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9911           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9912
9913 2005-02-13  Peter Bartok  <pbartok@novell.com>
9914
9915         * MouseButtons.cs: Added missing attributes
9916         * XplatUIStructs.cs: Added enumeration for title styles
9917         * LeftRightAlignment.cs: Added missing attributes
9918         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9919           it compatible with Graphics.FromHwnd()
9920         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9921         * Keys.cs: Added missing attributes
9922         * SelectionRange.cs: Added missing attributes
9923         * SelectionRangeConverter.cs: Added
9924         * XplatUI.cs:
9925           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9926             ReleaseMenuDC methods
9927           - Renamed ReleaseWindow to UngrabWindow
9928           - Added proper startup notice to allow version identification
9929         * Form.cs:
9930           - Added missing attributes
9931           - Removed FormParent concept
9932         * Label.cs: Removed border_style field, now in Control
9933         * RadioButton.cs: Now properly selects RadioButton when focus is
9934           received
9935         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9936         * Control.cs:
9937           - Added missing attributes
9938           - Added borderstyle handling
9939           - Removed FormParent concept support
9940           - Fixed calls to XplatUI to match changed APIs
9941           - Fixed bug that would case us to use disposed Graphics objects
9942           - Removed unneeded internal methods
9943           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9944           - SelectNextControl(): Fixed to properly check common parents
9945         * TextBoxBase.cs: Removed border_style field (now in Control)
9946         * MessageBox.cs:
9947           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9948             fixed calculations for form size
9949           - Added support for localized strings and icons
9950           - Improved form size calculations, added border
9951         * ListView.cs: Removed border_style field (now in Control)
9952         * X11Structs.cs: Moved several structs from X11 driver here
9953         * X11Keyboard.cs: Changed debug message
9954         * Application.cs: Removed FormParent concept support
9955         * CommonDialog.cs:
9956           - Resetting end_modal flag
9957           - Removed FormParent concept support
9958         * NativeWindow.cs: Removed FormParent concept support
9959         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9960           Client area and Non-Client whole window to allow support for WM_NC
9961           messages
9962         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9963           prevent using it until it supports Hwnd as per Geoff Norton's request
9964         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9965         * PictureBox.cs: Removed border_style field, now in Control
9966         * XplatUIWin32.cs: Added new driver methods
9967
9968 2005-02-12  Peter Bartok  <pbartok@novell.com>
9969
9970         * OpacityConverter.cs: Implemented
9971         * Hwnd.cs: Internal class to support drivers that need to emulate
9972           client area/non-client area window behaviour
9973
9974 2005-02-11  Peter Bartok  <pbartok@novell.com>
9975
9976         * KeysConverter.cs: Implemented
9977
9978 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9979
9980         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9981         * LinkLabel: Added missing attributes
9982         * MainMenu.cs: fixes ToString
9983         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9984         * ListBox.cs: fixes event position
9985         * TrackBar.cs: adds missing attributes and events
9986         
9987 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9988
9989         * MenuItem.cs: Use SystemInformation and bug fixes
9990         * MenuAPI.cs: Use SystemInformation and bug fixes
9991
9992 2005-02-09  Jackson Harper  <jackson@ximian.com>
9993
9994         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9995         their keystate otherwise things like VK_MENU get stuck "on".
9996
9997 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9998
9999         * ListBox.cs: Fixes AddRange bug
10000         
10001 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
10002
10003         * ProgressBar.cs
10004                 - Add missing attributes
10005                 - Add missing method
10006                 
10007         * CheckedListBox.cs: Added missing attributes
10008                 - Add missing attributes
10009                 - Remove extra method
10010         
10011         * ComboBox.cs: Added missing attributes
10012         * VScrollBar.cs: Added missing attributes
10013         * ScrollBar.cs:  Added missing attributes
10014         * ListBox.cs: Fixes signature, add missing consts
10015         * LinkArea.cs:   Added missing attributes
10016         
10017
10018 2005-02-08  Peter Bartok  <pbartok@novell.com>
10019
10020         * Menu.cs: Added missing attributes
10021         * MainMenu.cs: Added missing attributes
10022         * GroupBox.cs: Added missing attributes
10023         * Label.cs: Added missing attributes
10024         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
10025         * ColorDialog.cs:
10026           - Added Instance and Options properties
10027           - Added missing attributes
10028         * Cursor.cs: Made Serializable
10029         * NotifyIcon: Added missing attributes
10030         * MenuItem.cs: Added missing attributes
10031         * TextBoxBase.cs: Implemented AppendText() and Select() methods
10032         * Panel.cs: Added Missing attributes
10033         * MonthCalendar.cs: Fixed CreateParams
10034
10035 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10036         
10037         * LinkLabel.cs:
10038                 - Fixes signature
10039                 - Fixes issues with links
10040                 - Adds the class attributes
10041
10042 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10043         
10044         * ComboBox.cs:
10045                 - Fixes button when no items available in dropdown
10046                 - Fixes repainting problems
10047                 - Adds the class attributes
10048                 
10049 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10050
10051         * XplatUIOSX.cs: Detect the menu bar and title bar height from
10052         the current theme.  Cache these on startup.
10053
10054 2005-02-07  Jackson Harper  <jackson@ximian.com>
10055
10056         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
10057         the scrollbar buttons when they are depressed.
10058
10059 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10060
10061         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
10062         Get the display size from the main displayid.  We currently dont
10063         support multiple display configurations.
10064
10065 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10066
10067         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
10068
10069 2005-02-07  Miguel de Icaza  <miguel@novell.com>
10070
10071         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
10072
10073 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10074
10075         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
10076
10077 2005-02-04  Jackson Harper  <jackson@ximian.com>
10078
10079         * ThemeWin32Classic.cs: Respect the clipping rect when
10080         drawing. Only fill the intersection of clips and rects so there
10081         isn't a lot of large fills.
10082         * ScrollBar.cs: Pass the correct clipping rect to the theme
10083         engine. Remove some debug code.
10084
10085 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
10086         
10087         * DateTimePicker.cs:
10088                 - Fixed crash on DateTime.Parse, use Constructor instead
10089
10090 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10091         
10092         * MenuItem.cs:
10093         * MenuAPI.cs:
10094                 - Owner draw support (MeasureItem and DrawItem)
10095
10096 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10097         
10098         *  Menu.cs:
10099                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
10100                 - Fixes MenuItems.Add range
10101         * MenuItem.cs:
10102                 - MergeMenu and Clone and CloneMenu functions
10103
10104 2005-02-03  Jackson Harper  <jackson@ximian.com>
10105
10106         * ScrollBar.cs: Make abstract
10107         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
10108         is abstract.
10109
10110 2005-02-03  Jackson Harper  <jackson@ximian.com>
10111
10112         * ScrollBar.cs: First part of my scrollbar fixups. This removes
10113         all the unneeded refreshes and uses invalidates with properly
10114         computed rects.
10115
10116 2005-02-03  Peter Bartok  <pbartok@novell.com>
10117
10118         * ComponentModel.cs: Added
10119         * IDataGridEditingService.cs: Added
10120         * Timer.cs: Added missing attributes
10121         * ToolTip.cs: Added missing attributes
10122
10123 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
10124
10125         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
10126
10127 2005-02-03  Peter Bartok  <pbartok@novell.com>
10128
10129         * ListBox.cs: Added missing attributes
10130
10131 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
10132         
10133         * ListBox.cs:
10134                 - Fixes font height after font change
10135                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
10136                 
10137 2005-02-02  Peter Bartok  <pbartok@novell.com>
10138
10139         * HandleData.cs: Introduced static methods to allow class
10140           to be more self-contained and track it's own HandleData objects
10141         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
10142           HandleData to use new static methods
10143
10144 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
10145
10146         * Combobox.cs:
10147                 - Fixes default size and PreferredHeight
10148                 - Missing events
10149                 - ObjectCollection.Insert implementation
10150                 
10151         * ListControl.cs
10152                 - Fixes signature
10153         * ListBox.cs:
10154                 - Several fixes
10155                 - ObjectCollection.Insert implementation
10156                 - No selection after clean
10157                 - Small fixes
10158
10159 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10160
10161         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
10162
10163 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
10164
10165         * Combobox.cs:
10166                 - Caches ItemHeight calculation for OwnerDrawVariable
10167                 - Handles dropdown properly
10168                 - Fixes several minor bugs
10169
10170 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10171
10172         * ListBox.cs:
10173                 - Fixes 71946 and 71950
10174                 - Fixes changing Multicolumn on the fly
10175                 - Fixes keyboard navigation on Multicolumn listboxes
10176
10177 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10178         
10179         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
10180         crash reporter log.
10181
10182 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10183
10184         * XplatUIOSX.cs: Allow applications to actually exit.
10185
10186 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10187
10188         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
10189         their parent at creation time rather than lazily later.  Fixes a major
10190         regression we were experiencing.
10191
10192 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10193
10194         * ThemeWin32Classic.cs: more date time picker painting fixes
10195         * DateTimePicker.cs: more monthcalendar drop down fixes
10196         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
10197
10198 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10199
10200         * ScrollBar.cs:
10201                 - When moving the thumb going outside the control should stop the moving
10202                 - Adds the firing of missing events
10203                 - Fixes no button show if Size is not specified
10204                 - End / Home keys for keyboard navigation
10205
10206 2005-01-30  Peter Bartok  <pbartok@novell.com>
10207
10208         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
10209           sanity check to prevent theoretical loop
10210         * XplatUIWin32.cs (SetVisible): Removed debug output
10211         * XplatUIX11.cs (SystrayChange): Added sanity check
10212         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
10213         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
10214           behaviour, valid until the X11 client window rewrite is done
10215         * TextBox.cs (ctor): Setting proper default foreground and background
10216           colors
10217
10218 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
10219
10220         * Theme: Added DrawDateTimePicker to interface
10221         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
10222         * DateTimePicker.cs: Created (still needs keys and painting code)
10223         * DateTimePickerFormat.cs: added
10224         * MonthCalendar.cs: fixed CreateParams for popup window mode
10225           
10226 2005-01-29  Peter Bartok  <pbartok@novell.com>
10227
10228         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10229           this should also the calculations for ligher/darker
10230         * Theme.cs: Fixed defaults for ScrollBar widths/heights
10231
10232 2005-01-29  Peter Bartok  <pbartok@novell.com>
10233
10234         * ArrangeDirection.cs: Added
10235         * ArrangeStartingPositon.cs: Added
10236         * SystemInformation.cs: Implemented
10237         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10238           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10239           used by SystemInformation class
10240         * X11Strucs.cs: Added XSizeHints structure
10241         * MenuAPI.cs:
10242           - Fixed CreateParams to make sure the menu window is always visible
10243           - TrackPopupMenu: Added check to make sure we don't draw the
10244             menu offscreen
10245
10246 2005-01-29  Peter Bartok  <pbartok@novell.com>
10247
10248         * HandleData.cs: Added method for altering invalid area
10249         * TextBoxBase.cs: Implemented TextLength
10250
10251 2005-01-28  Peter Bartok  <pbartok@novell.com>
10252
10253         * XplatUIX11.cs: Improvement over last patch, not sending
10254           the WM_PAINT directly anymore, instead we scroll any pending
10255           exposed areas and let the system pick out the WM_PAINT later
10256
10257 2005-01-28  Peter Bartok  <pbartok@novell.com>
10258
10259         * SWF.csproj: Deleted, no longer used. Instead,
10260           Managed.Windows.Forms/SWF.csproj should be used
10261         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10262           directly, to avoid a potential race condition with the next
10263           scroll
10264
10265 2005-01-28  Peter Bartok  <pbartok@novell.com>
10266
10267         * XplatUI.cs: Made class internal
10268
10269 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
10270
10271         * CheckedListBox.cs:
10272                 - Draw focus
10273                 - Fixed Drawing
10274                 - Missing methods and events
10275
10276 2005-01-27  Peter Bartok  <pbartok@novell.com>
10277
10278         * Application.cs (Run): Don't use form if we don't have one
10279
10280 2005-01-27  Peter Bartok  <pbartok@novell.com>
10281
10282         * TextBoxBase.cs (get_Lines): Fixed index off by one error
10283
10284 2005-01-27  Peter Bartok  <pbartok@novell.com>
10285
10286         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10287         * GridItem.cs: Added; Patch by Jonathan S. Chambers
10288         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10289         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10290         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10291         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10292         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10293         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10294         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10295         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10296         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10297         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10298
10299 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10300
10301         * Combobox.cs:
10302                 - Draw focus on Simple Combobox
10303                 - Fixes drawing issues
10304                 - fixes 71834
10305
10306 2005-01-27  Peter Bartok  <pbartok@novell.com>
10307
10308         * Form.cs:
10309           - Place window in default location, instead of hardcoded 0/0
10310           - Send initial LocationChanged event
10311         * Control.cs:
10312           - UpdateBounds after creation to find out where the WM placed us
10313           - Make sure that if the ParentForm changes location the Form
10314             is notified
10315         * XplatUIX11.cs: XGetGeometry will not return the coords relative
10316             to the root, but to whatever the WM placed around us.
10317             Translate to root coordinates before returning toplevel
10318             coordinates
10319         * XplatUIWin32.cs: Removed debug output
10320         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10321           flag to GetWindowPos, to allow translation of coordinates on X11
10322
10323 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10324
10325         * ListBox.cs: connect LostFocus Event
10326
10327 2005-01-27  Peter Bartok  <pbartok@novell.com>
10328
10329         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10330           XplatUIX11.cs: Extended the Systray API
10331         * Form.cs: Removed debug output
10332         * Application.cs: Fixed focus assignment, always need to call
10333           XplatUI.Activate() since Form.Activate() has rules that may
10334           prevent activation
10335         * NotifyIcon.cs: Should be complete now
10336         * ToolTip.cs: Worked around possible timer bug
10337
10338 2005-01-27  Jackson Harper  <jackson@ximian.com>
10339
10340         * TabControl.cs:
10341         - Only invalidate the effected tabs when the
10342         selected index changes. This reduces drawing and gets rid of some
10343         flicker.
10344         - Only refresh if the tabs need to be shifted, otherwise only
10345         invalidate the slider button.
10346         - On windows the tabs are not filled to right if the slider is
10347         visible.
10348         
10349 2005-01-27  Jackson Harper  <jackson@ximian.com>
10350
10351         * TabControl.cs: Only refresh on mouseup if we are showing the
10352         slider. Also only invalidate the button whose state has changed.
10353
10354 2005-01-26  Peter Bartok  <pbartok@novell.com>
10355
10356         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10357         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10358           and SystrayRemove() methods
10359         * XplatUIOSX.cs: Stubbed Systray methods
10360         * XplatUIX11.cs:
10361           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10362             methods
10363           - Fixed broken XChangeProperty calls (marshalling messed up things)
10364         * X11Structs.cs: Added enums and structs required for Size hinting
10365         * NotifyIcon.cs: Added & implemented
10366
10367 2005-01-26  Jackson Harper  <jackson@ximian.com>
10368
10369         * TabControl.cs: Space vertically layed out tabs properly.
10370
10371 2005-01-26  Peter Bartok  <pbartok@novell.com>
10372
10373         * Form.cs (CreateClientParams): Always set the location to 0,0
10374           since we're a child window.
10375
10376         * Control.cs (SetVisibleCore): Always explicitly setting the location
10377           of a toplevel window, apparently X11 doesn't like to move windows
10378           while they're not mapped.
10379
10380 2005-01-26  Jackson Harper  <jackson@ximian.com>
10381
10382         * TabControl.cs: Implement FillToRight size mode with vertically
10383         rendered tabs.
10384
10385 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10386
10387         * ControlPaint.cs, ThemeWin32Classic.cs
10388                 - Fixes DrawFocusRectangle
10389
10390 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10391
10392         * MenuAPI.cs:
10393                 - MenuBar tracking only starts when item is first clicked
10394                 - Fixes menu hidding for multiple subitems
10395                 - Unselect item in MenuBar when item Executed
10396                 - Fixes bug 71495
10397
10398 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10399
10400         * ListControl.cs:
10401                 - IsInputKey for ListBox
10402         * ListBox.cs:
10403                 - Focus item
10404                 - Shift and Control item selection
10405                 - Implement SelectionMode.MultiExtended
10406                 - Fixes RightToLeft
10407         * ComboBox.cs:
10408                 - IsInputKey implemented
10409                 - Do not generate OnTextChangedEdit on internal txt changes
10410                 
10411 2005-01-23  Peter Bartok  <pbartok@novell.com>
10412
10413         * AccessibleObject.cs: Partially implemented Select()
10414         * MonthCalendar.cs: Added missing attributes and events
10415         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10416           form can properly override CreateParams.
10417         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10418           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10419           Control performs Invalidate & Update
10420         * NativeWindow (CreateHandle): Added special handling for Form
10421           and Form.FormParent classes to allow overriding of From.CreateParams
10422         * Control.cs:
10423           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10424             name 'owner'
10425           - ControlNativeWindow: Added Owner property
10426           - Removed usage of Refresh() on property changes, changed into
10427             Invalidate(), we need to wait until the queue is processed for
10428             updates, direct calls might cause problems if not all vars for
10429             Paint are initialized
10430           - Added call to UpdateStyles() when creating the window, to set any
10431             styles that CreateWindow might have ignored.
10432           - Added support for Form CreateParent overrides to UpdateStyles()
10433         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10434           CreateParams are now properly overridable
10435         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10436           CreateParams are now properly overridable
10437
10438 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10439
10440         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10441         OnTextBoxChanged.
10442
10443         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10444         recursive invocation that I have not figured out yet.
10445
10446         Reset the timer when not using (it was accumulating).
10447
10448
10449         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10450         user has made changes that require validation.
10451
10452         Reset changing to avoid loops.
10453
10454 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10455
10456         * NumericUpDown.cs: Display value at startup.
10457
10458         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10459         ValidateEditText.
10460
10461         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10462         filled in.  Added some basic parsing of text.
10463
10464         Still missing the OnXXX method overrides, and figuring out the
10465         events that must be emitted.
10466
10467         * UpDownBase.cs: Handle UserEdit on the Text property.
10468         
10469 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10470
10471         * ComboBox.cs:
10472           - Fixes IntegralHeight
10473           - ToString method
10474
10475 2005-01-21  Jackson Harper  <jackson@ximian.com>
10476
10477         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10478         is set so that the page visibility is updated and the tabs are
10479         sized correctly.
10480
10481 2005-01-21  Jackson Harper  <jackson@ximian.com>
10482
10483         * TabControl.cs: Use cliping rectangle for blitting. Give the
10484         theme the clipping rect so we can do clipping while
10485         drawing. Remove some debug code.
10486
10487 2005-01-21  Jackson Harper  <jackson@ximian.com>
10488
10489         * TabPage.cs: Add a new method so tab pages can force the tab
10490         control to recalculate the tab page sizes.
10491         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10492         sizes.
10493
10494 2005-01-20  Jackson Harper  <jackson@ximian.com>
10495
10496         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10497
10498 2005-01-20  Jackson Harper  <jackson@ximian.com>
10499
10500         * TreeView.cs: Set the bounds for nodes properly. They were
10501         getting screwed up when checkboxes were not enabled, but images
10502         were.
10503
10504 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10505
10506         * ListBox.cs:
10507                 - Owner draw support
10508                 - Fixes
10509                 
10510 2005-01-20  Jackson Harper  <jackson@ximian.com>
10511
10512         * XplatUIStructs.cs: More misc keys
10513         * X11Keyboard.cs: Ignore some control keys.
10514
10515 2005-01-20  Jackson Harper  <jackson@ximian.com>
10516
10517         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10518         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10519
10520 2005-01-19  Peter Bartok  <pbartok@novell.com>
10521
10522         * Control.cs: Un-selecting the control when it is loosing focus
10523
10524 2005-01-19  Jackson Harper  <jackson@ximian.com>
10525
10526         * TreeView.cs: Hook up to the text controls leave event so we can
10527         end editing when the users clicks outside the text box.
10528         
10529 2005-01-19  Jackson Harper  <jackson@ximian.com>
10530
10531         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10532         get set in the conversion array.
10533
10534 2005-01-19  Peter Bartok  <pbartok@novell.com>
10535
10536         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10537           focus is properly set
10538         * Button.cs:
10539           - Added missing attributes
10540           - removed styles, those are already set in the base class
10541         * ButtonBase.cs:
10542           - Added missing attributes
10543           - Added clip window styles
10544         * CheckBox.cs: Added missing attributes
10545         * CommonDialog.cs:
10546           - FormParentWindow.CreateParams: Added required clip styles
10547         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10548           also filters modifier keys
10549         * MessageBox.cs:
10550           - Added assignment of Accept and Cancel button to enable Enter
10551             and Esc keys in MessageBox dialogs
10552           - FormParentWindow.CreateParams: Added required clip styles
10553         * RadioButton.cs: Added missing attributes
10554         * TextControl.cs: No longer draws selection if control does not
10555           have focus
10556         * TextBoxBase.cs:
10557           - Now draws simple rectangle around test area to make it obvious
10558             there's a control. This is a hack until we properly support borders
10559           - A few simple fixes to support selections better, now erases selected
10560             text when typing, and resets selection when using movement keys
10561
10562 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10563
10564         * UpDownBase.cs: Added some new properties.
10565
10566         * DomainUpDown.cs: Implement a lot to get my test working.
10567
10568 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10569
10570         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10571
10572 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10573
10574         * OSXStructs (WindowAttributes): Fixed csc complaints
10575
10576 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10577
10578         * XplayUIOSX.cs:
10579           OSXStructs.cs: Initial refactor to move enums and consts into
10580           OSXStructs and use them in the driver for greater readability.
10581
10582 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10583
10584         * XplatUIOSX.cs: Initial support for Standard Cursors.
10585         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10586
10587 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10588
10589         * ComboBox.cs: ability to change style when the ctrl is already
10590         created, missing methods and events, bug fixes, signature fixes
10591
10592 2005-01-19  Peter Bartok  <pbartok@novell.com>
10593
10594         * Cursors.cs (ctor): Added ctor to fix signature
10595
10596 2005-01-18  Peter Bartok  <pbartok@novell.com>
10597
10598         * Button.cs: Implemented DoubleClick event
10599         * ButtonBase.cs:
10600           - Fixed keyboard handling to behave like MS, where the press of
10601             Spacebar is equivalent to a mousedown, and the key release is
10602             equivalent to mouseup. Now a spacebar push will give the same
10603             visual feedback like a mouse click.
10604           - Added missing attributes
10605           - Added ImeModeChanged event
10606           - Added support for generating DoubleClick event for derived classes
10607         * CheckBox.cs:
10608           - Implemented DoubleClick event
10609           - Added missing attributes
10610         * CommonDialog.cs: Added missing attribute
10611         * ContextMenu.cs: Added missing attributes
10612         * RadioButton.cs:
10613           - AutoChecked buttons do not allow to be unselected when clicked
10614             (otherwise we might end up with no selected buttons in a group)
10615           - Added missing attributes
10616           - Implemented DoubleClickEvent
10617         * ThreadExceptionDialog.cs: Enabled TextBox code
10618
10619 2005-01-18  Peter Bartok  <pbartok@novell.com>
10620
10621         * Form.cs: Removed debug output
10622         * Button.cs: Added support for DoubleClick method
10623
10624 2005-01-18  Peter Bartok  <pbartok@novell.com>
10625
10626         * Form.cs:
10627           - Added method to parent window that allows triggering size
10628             calculations when a menu is added/removed
10629           - set_Menu: Cleaned up mess from early days of Form and Control,
10630             now properly triggers a recalc when a menu is added/removed
10631           - Added case to select form itself as focused form if no child
10632             controls exist
10633           - Added PerformLayout call when showing dialog, to ensure properly
10634             placed controls
10635         * Control.cs:
10636           - Select(): Made internal so Form can access it
10637           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10638             status
10639         * Application.cs (Run): Removed hack and calls PerformLayout instead
10640           to trigger calculation when Form becomes visible
10641
10642 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10643
10644         * ComboBox.cs: fixes for ownerdraw
10645
10646 2005-01-18  Peter Bartok  <pbartok@novell.com>
10647
10648         * TextControl.cs:
10649           - Sentinel is no longer static, each Document gets it's own, this
10650             avoids locking or alternatively overwrite problems when more
10651             than one text control is used simultaneously.
10652           - Switched to use Hilight and HilightText brushes for text selection
10653
10654         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10655
10656 2005-01-18  Peter Bartok  <pbartok@novell.com>
10657
10658         * Control.cs:
10659           - Hooked up the following events:
10660                 o ControlAdded
10661                 o ControlRemoved
10662                 o HandleDestroyed
10663                 o ImeModeChanged
10664                 o ParentChanged
10665                 o TabStopChanged
10666                 o Invalidated
10667                 o SystemColorsChanged
10668                 o ParentFontChanged
10669                 o Move
10670           - Removed debug output
10671           - Added a call to the current theme's ResetDefaults when a color change
10672             is detected
10673         * Form.cs: Now setting the proper ImeMode
10674         * Theme.cs: Defined a method to force recreation of cached resources
10675           and rereading of system defaults (ResetDefaults())
10676         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10677
10678 2005-01-17  Peter Bartok  <pbartok@novell.com>
10679
10680         * Control.cs: Added missing attributes
10681
10682 2005-01-17  Jackson Harper  <jackson@ximian.com>
10683
10684         * TreeNode.cs: Implement editing. Add missing properties selected
10685         and visible.
10686         * TreeView.cs: Implement node editing. Also some fixes to use
10687         Invalidate (invalid area) instead of Refresh when selecting.
10688
10689 2005-01-17  Peter Bartok  <pbartok@novell.com>
10690
10691         * Control.cs:
10692           - Implemented InvokeGotFocus() method
10693           - Implemented InvokeLostFocus() method
10694           - Implemented InvokePaint() method
10695           - Implemented InvokePaintBackground() method
10696           - Implemented InvokeClick() method
10697           - Implemented FindForm() method
10698           - Implemented RectangleToClient() method
10699           - Implemented ClientToRectangle() method
10700           - Implemented ResetBackColor() method
10701           - Implemented ResetCursor() method
10702           - Implemented ResetFont() method
10703           - Implemented ResteForeColor() method
10704           - Implemented ResetImeMode() method
10705           - Implemented ResetLeftToRight() method
10706           - Implemented ResetText() method
10707           - Implemented Scale() methods
10708           - Implemented ScaleCore() method
10709           - Implemented Update() method
10710           - Removed unused variables
10711           - Stubbed AccessibilityNotifyClients and
10712             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10713             with those yet)
10714           - Now setting proper default for RightToLeft property
10715           - Fixed bug in SetClientSizeCore that would cause windows to get
10716             really big
10717           - Now sending Click/DoubleClick events
10718           - Now selecting controls when left mouse button is clicked on
10719             selectable control
10720         * AccessibleEvents.cs: Added
10721         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10722         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10723         * XplatUIWin32.cs: Implemented UpdateWindow() method
10724         * XplatUIX11.cs: Implemented UpdateWindow() method
10725         * Form.cs: Removed stray semicolon causing CS0162 warning
10726         * ThemeWin32Classic.cs: Fixed unused variable warnings
10727         * ScrollableControl.cs: Now calls base method for ScaleCore
10728         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10729           style to avoid interference with internal click handler (which is
10730           different than standard Control click handling)
10731         * RadioButton.cs:
10732           - Now unchecks all sibling radio buttons when control is
10733             selected (Fixes #68756)
10734           - Removed internal tabstop variable, using the one inherited from
10735             Control
10736
10737 2005-01-17  Jackson Harper  <jackson@ximian.com>
10738
10739         * NavigateEventArgs.cs: Fix base type.
10740         * LinkLabel.cs: Sig fix
10741         
10742 2005-01-17  Jackson Harper  <jackson@ximian.com>
10743
10744         * TreeView.cs: Only invalidate the effected nodes bounds when
10745         selecting nodes.
10746
10747 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10748
10749         * XplatUIWin32.cs: fixes Win32 marshaling
10750         * XplatUIX11.cs: fixes method signature
10751
10752 2005-01-17  Peter Bartok  <pbartok@novell.com>
10753
10754         * XplatUIX11.cs: Clean up resources when we no longer need them
10755
10756 2005-01-17  Peter Bartok  <pbartok@novell.com>
10757
10758         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10759           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10760           and DestroyCursor() methods.
10761         * Cursor.cs: Partially implemented, now supports standard cursors;
10762           still contains some debug code
10763         * Cursors.cs: Implemented class
10764         * Control.cs:
10765           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10766             appropriate cursor
10767           - Implemented Cursor property
10768           - Replaced break; with return; more straightforwar and possibly
10769             faster
10770           - Now properly setting the result for WM_HELP
10771         * X11Structs.cs: Added CursorFontShape enum
10772         * XplatUIStructs.cs:
10773           - Added StdCursor enum (to support DefineStdCursor() method)
10774           - Added HitTest enum (to support sending WM_SETCURSOR message)
10775         * XplatUIX11.cs:
10776           - Now sends the WM_SETCURSOR message
10777           - Implemented new cursor methods
10778         * XplatUIOSX.cs: Stubbed new cursor methods
10779         * XplatUIWin32.cs:
10780           - Implemented new cursor methods
10781           - Added GetSystemMetrics function and associated enumeration
10782
10783 2005-01-15  Peter Bartok  <pbartok@novell.com>
10784
10785         * Control.cs:
10786           - WndProc(): Now handles EnableNotifyMessage
10787           - SelectNextControl(): Fixed bug where if no child or sibling
10788             controls exist we looped endlessly
10789
10790 2005-01-14  Jackson Harper  <jackson@ximian.com>
10791
10792         * TreeView.cs: Recalculate the tab pages when a new one is added
10793         so that the proper bounding rects are created.
10794
10795 2005-01-14  Jackson Harper  <jackson@ximian.com>
10796
10797         * TreeView.cs: Draw a gray box instead of a grip in the lower
10798         right hand corner when there are both horizontal and vertical
10799         scroll bars.
10800
10801 2005-01-14  Jackson Harper  <jackson@ximian.com>
10802
10803         * Control.cs: When erasing backgrounds use FromHwnd instead of
10804         FromHdc when there is a NULL wparam. This occurs on the X driver.
10805         * XplatUIX11.cs: Set the wparam to NULL.
10806
10807 2005-01-13  Jackson Harper  <jackson@ximian.com>
10808
10809         * PictureBox.cs: Implement missing methods (except ToString, need
10810         to test that on windows) and events. When visibility is changed we
10811         need to redraw the image because the buffers are killed. When size
10812         is changed refresh if the sizemode needs it.
10813
10814 2005-01-13  Peter Bartok  <pbartok@novell.com>
10815
10816         * Control.cs (SelectNextControl): Was using wrong method to select
10817           a control
10818
10819 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10820
10821         * ComboBox.cs: fixes dropstyle
10822
10823 2005-01-13  Peter Bartok  <pbartok@novell.com>
10824
10825         * Form.cs:
10826           - Implemented Select() override
10827           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10828           - Now sets keyboard focus on startup
10829         * Control.cs (SelectNextControl): Now properly handles directed=true
10830         * TextBoxBase.cs:
10831           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10832           - Added (really bad) focus rectangle (mostly for testing)
10833         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10834           to enforce redraw on focus changes
10835         * ContainerControl.cs:
10836           - Fixed detection of Shift-Tab key presses
10837           - Fixed traversal with arrow keys
10838         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10839           gonna keep this or if it's complete yet
10840         
10841 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10842
10843         * ComboBox.cs: missing properties, fixes
10844
10845 2005-01-13  Peter Bartok  <pbartok@novell.com>
10846
10847         * Panel.cs (ctor): Setting Selectable window style to off
10848         * Splitter.cs (ctor): Setting Selectable window style to off
10849         * GroupBox.cs (ctor): Setting Selectable window style to off
10850         * Label.cs (ctor): Setting Selectable window style to off
10851
10852 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10853
10854         * UpDownBase.cs (InitTimer): If the timer has been already
10855         created, enable it.
10856
10857         Use a TextBox instead of a Label.
10858
10859 2005-01-12  Jackson Harper  <jackson@ximian.com>
10860
10861         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10862         draw the connecting node lines (when ShowLines is true).
10863         * TreeNode.cs: The nodes index can now be updated. This is used
10864         when a node collection is sorted.
10865         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10866         insert or an existing unsorted node collection can be sorted.
10867         
10868 2005-01-12  Peter Bartok  <pbartok@novell.com>
10869
10870         * ContainerControl.cs: Implemented ProcessDialogKeys()
10871
10872 2005-01-12  Peter Bartok  <pbartok@novell.com>
10873
10874         * Control.cs:
10875           - Implemented SelectNextControl() method
10876           - Several focus related bug fixes
10877           - Fixed Docking calculations to match MS documentation and
10878             behaviour
10879
10880 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10881
10882         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10883         bug fixes
10884
10885 2005-01-12  Peter Bartok  <pbartok@novell.com>
10886
10887         * Control.cs:
10888           - Fixed broken Contains() method
10889           - Implemented GetNextControl() method. Finally. This is the pre-
10890             requisite for focus handling.
10891
10892 2005-01-12  Peter Bartok  <pbartok@novell.com>
10893
10894         * OSXStrucs.cs: Added
10895
10896 2005-01-12  Peter Bartok  <pbartok@novell.com>
10897
10898         * XplatUIWin32.cs:
10899           - Removed PeekMessageFlags
10900           - Implemented SetWindowStyle() method
10901         * XplatUIStructs.cs: Added PeekMessageFlags
10902         * X11Structs: Added missing border_width field to XWindowChanges struct
10903         * XplatUIX11.cs:
10904           - PeekMessage: Now throws exception if flags which are not yet
10905             supported are passed
10906           - Implemented SetWindowStyle() method
10907           - Fixed SetZOrder to handle AfterHwnd properly
10908         * XplatUI.cs: Added SetWindowStyle() method
10909         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10910         * Control.cs:
10911           - Implemented UpdateStyles() method
10912           - Implemented UpdateZOrder() method
10913         * XplatUIOSX.cs: Added SetWindowStyle() stub
10914
10915 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10916
10917         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10918         button mouse).
10919
10920
10921 2005-01-11  Jackson Harper  <jackson@ximian.com>
10922
10923         * TreeView.cs: Still need to draw lines to siblings even if out of
10924         the current node is out of the clip.
10925
10926 2005-01-11  Jackson Harper  <jackson@ximian.com>
10927
10928         * TreeView.cs: When setting the hbar/vbar/grip position use
10929         SetBounds so that perform layout is only called once. Also suspend
10930         and resume layout so layout is only done once for all controls.
10931         - Removed some debug fluff
10932         * SizeGrip.cs: Call base implmentation in overriding methods.
10933         - When visibility is changed the drawing buffers are killed so we
10934         need to redraw.
10935
10936 2005-01-11  Jackson Harper  <jackson@ximian.com>
10937
10938         * TreeView.cs: Calculate the open node count while drawing. This
10939         saves us an entire tree traversal for every paint operation. Use
10940         a member var for the open node count so less vars are passed around.
10941
10942 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10943
10944         * MonthCalendar.cs:
10945         - fixed selection to use mousemove, not mouse polling on timer
10946         * ThemeWin32Classic.cs
10947         - removed redundant unused variable "no_more_content"
10948         
10949 2005-01-11  Peter Bartok  <pbartok@novell.com>
10950
10951         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10952           are pending, so it now calls PeekMessage instead of GetMessage;
10953           implemented a incomplete version of PeekMessage
10954         
10955 2005-01-11  Peter Bartok  <pbartok@novell.com>
10956
10957         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10958           I18n issues
10959         * TextBoxBase.cs: Added sending of TextChanged event
10960
10961 2005-01-10  Jackson Harper  <jackson@ximian.com>
10962
10963         * TreeView.cs: Try not to draw outside the clipping rectangle on
10964         each node element.
10965
10966 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10967
10968         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10969
10970 2005-01-10  Jackson Harper  <jackson@ximian.com>
10971
10972         * TreeView.cs:
10973         - Implement fast scrolling. Now only the newly
10974         exposed nodes are drawn and the old image is moved using the
10975         XplatUI::ScrollWindow method.
10976         - Factor in height of nodes when calculating whether or not the
10977         node is in the clipping rect.
10978
10979 2005-01-10  Jackson Harper  <jackson@ximian.com>
10980
10981         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10982
10983 2005-01-10  Peter Bartok  <pbartok@novell.com>
10984
10985         * Application.cs: Added temporary hack to resolve all our resize
10986           required issues on startup. This will get fixed properly at
10987           some point in the future
10988
10989 2005-01-10  Jackson Harper  <jackson@ximian.com>
10990
10991         * SizeGrip.cs: New internal class that is used as a sizing
10992         grip control...hence the name.
10993
10994 2005-01-10  Peter Bartok  <pbartok@novell.com>
10995
10996         * Control.cs: Implemented proper TabIndex handling, now assigning
10997           a tabindex when a control is added to a container
10998         * GroupBox.cs (ctor): Now sets the Container style bit, required
10999           for Control.GetNextControl()
11000
11001 2005-01-09  Jackson Harper  <jackson@ximian.com>
11002
11003         * TextBoxBase.cs: Clear window when scrolling (fixes build).
11004
11005 2005-01-09  Peter Bartok <pbartok@novell.com>
11006
11007         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11008           XplatUIX11.cs: Added ability to control ScrollWindow expose and
11009           an overload for ScrollWindow to allow only scrolling a rectangle
11010
11011 2005-01-09  Peter Bartok <pbartok@novell.com>
11012
11013         * Form.cs:
11014           - Implemented SetDesktopBounds method
11015           - Implemented SetDesktopLocation method
11016
11017 2005-01-08  Jackson Harper  <jackson@ximian.com>
11018
11019         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
11020         the node count has changed, this removes to VScroll::Refresh calls
11021         when drawing.
11022
11023 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
11024
11025         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
11026
11027 2005-01-07  Jackson Harper  <jackson@ximian.com>
11028
11029         * TreeNode.cs: Just update the single node when it is
11030         checked. Don't refresh after toggling, the Expand/Collapse already
11031         handles this.
11032         * TreeView.cs: Respect clipping a little more when drawing. Try
11033         not to redraw things that don't need to be redrawn. Just hide the
11034         scrollbars when they are no longer needed instead of removing
11035         them, so they don't have to be created again and again.
11036         
11037 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
11038
11039         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
11040         coordinates to window space to place the caret properly, FIXED.
11041         Implement GetWindowState & SetWindowState
11042
11043 2005-01-06  Peter Bartok <pbartok@novell.com>
11044
11045         * Form.cs:
11046           - Implemented ClientSize property
11047           - Implemented DesktopBounds property
11048           - Implemented DesktopLocation property
11049           - Implemented IsRestrictedWindow property
11050           - Implemented Size property
11051           - Implemented TopLevel property
11052           - Implemented FormWindowState property
11053         * Control.cs:
11054           - Implemented GetTopLevel() method
11055           - Implemented SetTopLevel() method
11056         * X11Structs.cs (Atom):
11057           - Added AnyPropertyType definition
11058           - Added MapState definiton and updated XWindowAttribute struct
11059         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
11060         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
11061         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
11062         * XplatUIWin32.cs:
11063           - Implemented GetWindowState() and SetWindowState() methods
11064           - Fixed Win32GetWindowLong return type
11065         * XplatUIX11.cs:
11066           - Introduced central function for sending NET_WM messages
11067           - Implemented GetWindowState() and SetWindowState() methods
11068         * TextBoxBase.cs (set_Lines):
11069           - Now uses Foreground color for text added via Text property (Duh!)
11070           - Added code to remember programmatically requested size (fixes
11071             behaviour when Multiline is set after Size)
11072           - Added AutoSize logic
11073
11074 2005-01-06  Jackson Harper  <jackson@ximian.com>
11075
11076         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
11077
11078 2005-01-06  Jackson Harper  <jackson@ximian.com>
11079
11080         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
11081         set to less then 0.
11082
11083 2005-01-06  Jackson Harper  <jackson@ximian.com>
11084
11085         * ScrollableControl.cs: Lazy init the scrollbars.
11086         
11087 2005-01-06  Jackson Harper  <jackson@ximian.com>
11088
11089         * Theme.cs: Speed up getting pens and solid brushes, by using
11090         their ARGB as a hash instead of tostring and not calling Contains.
11091
11092 2005-01-06  Peter Bartok <pbartok@novell.com>
11093
11094         * Form.cs:
11095           - Implemented OnActivated and OnDeactivate event trigger
11096           - Implemented Activate() method
11097           - Fixed ShowDialog() to activate the form that was active before
11098             the dialog was shown
11099         * XplatUIX11.cs:
11100           - Added global active_window var that tracks the currently active
11101             X11 window
11102           - Now always grabs Property changes from the root window to always
11103             catch changes on the active window property
11104           - Added code to PropertyNotify handler to send Active/Inactive
11105             messages when state changes. This puts X11 and Win32 en par on
11106             WM_ACTIVATE notifications (except for double notifications when
11107             the user clicks away from our modal window to another one of our
11108             windows)
11109
11110 2005-01-05  Jackson Harper  <jackson@ximian.com>
11111
11112         * ImageList.cs: Implment ctor
11113
11114 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11115
11116         * XplatUIOSX.cs: Implement Activate/SetTopmost
11117
11118 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11119
11120         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
11121
11122 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11123
11124         * XplatUIOSX.cs: Implement GetActive/SetFocus.
11125
11126 2005-01-05  Peter Bartok <pbartok@novell.com>
11127
11128         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
11129           XplatUIOSX.cs: Added GetActive method to return the currently
11130           active window for the application (or null, if none is active)
11131         * Form.cs:
11132           - Implemented ActiveForm
11133           - Commented out owner assignment for modal dialogs (causes problems
11134             on Win32, since the owner will be disabled)
11135           - Reworked some Active/Focus handling (still incomplete)
11136         * CommonDialog.cs: Commented out owner assignment for modal dialogs
11137           (causes problems on Win32, since the owner will be disabled)
11138         * IWin32Window: Added ComVisible attribute
11139
11140 2005-01-05  Peter Bartok <pbartok@novell.com>
11141
11142         * ToolTip.cs (WndProc): Enable setting focus now that we have the
11143           required XplatUI functions.
11144
11145 2005-01-05  Peter Bartok <pbartok@novell.com>
11146
11147         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
11148           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
11149           to implement focus and activation handling; still incomplete and
11150           with debug output
11151
11152 2005-01-04  Peter Bartok <pbartok@novell.com>
11153
11154         * TextBoxBase.cs: Changed access level for Document property to
11155           match switch to internal for TextControl
11156
11157 2005-01-04  Peter Bartok <pbartok@novell.com>
11158
11159         * AccessibleObject: Added ComVisible attribute
11160
11161 2005-01-04  Jackson Harper  <jackson@ximian.com>
11162
11163         * X11Keyboard.cs: Remove unneeded var.
11164
11165 2005-01-04  Jackson Harper  <jackson@ximian.com>
11166
11167         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
11168         but PAINT.
11169         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
11170         ClientMessage. This makes apps exit cleanly (more often).
11171         
11172 2005-01-04  Jackson Harper  <jackson@ximian.com>
11173
11174         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
11175         handling focus, return correct colors and fonts,
11176         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
11177         handle selection, horizontal scrolling, and mouse interaction.
11178
11179 2005-01-04  Peter Bartok <pbartok@novell.com>
11180
11181         * ICommandExecutor.cs: Added
11182         * IDataGridColumnStyleEditingNotificationService.cs: Added
11183         * IFeatureSupport.cs: Added
11184         * IFileReaderService.cs: Added
11185         * IDataObject.cs: Added ComVisible attribute
11186         * AmbientProperties.cs: Added
11187         * BaseCollection.cs: Added missing attributes
11188         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
11189         * BaseCollection.cs: Added missing attributes
11190         * Binding.cs: Added TypeConverter attribute
11191         * BindingContext.cs: Added DefaultEvent attribute
11192         * BindingsCollection.cs: Added DefaultEvent attribute
11193         * Button.cs: Added DefaultValue attribute
11194         * DragEventArgs.cs: Added ComVisible attribute
11195         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
11196         * KeyEventArgs.cs: Added ComVisible attribute
11197         * KeyPressEventArgs.cs: Added ComVisible attribute
11198         * MouseEventArgs.cs: Added ComVisible attribute
11199         * NavigateEventArgs.cs: Added
11200         * NavigateEventHandler.cs: Added
11201         * FeatureSupport.cs: Added
11202         * OSFeature.cs: Added
11203         * Theme.cs: Added abstract Version property to support OSFeature
11204         * ThemeWin32Classic.cs: Added Version property to
11205           support OSFeature.Themes
11206         * ProgressBar.cs: Removed OnPaintBackground override, not required since
11207           the proper styles to avoid background drawing are set, also doesn't
11208           match MS signature
11209         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
11210         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
11211         * ScrollEventArgs.cs: Added ComVisible attribute
11212         * SplitterEventArgs.cs: Added ComVisible attribute
11213         * AccessibleSelection.cs: Added Flags attribute
11214         * Appearance.cs: Added ComVisible attribute
11215         * Border3DSide.cs: Added ComVisible attribute
11216         * Border3DStyle.cs: Added ComVisible attribute
11217         * BorderStyle.cs: Added ComVisible attribute
11218         * DragAction.cs: Added ComVisible attribute
11219         * ErrorBlinkStyle.cs: Added
11220         * ScrollEventType.cs: Added ComVisible attribute
11221         * AnchorStyles.cs: Added Editor attribute
11222         * DockStyle.cs: Added Editor attribute
11223         * HorizontalAlignment.cs: Added ComVisible attribute
11224         * HelpEventArgs.cs: Added ComVisible attribute
11225         * PaintEventArgs.cs: Added IDisposable
11226
11227 2005-01-04  Peter Bartok <pbartok@novell.com>
11228
11229         * TextControl.cs: Switched Line, LineTag and Document classes to
11230           internal
11231
11232 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11233
11234         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11235         Simple mode, fixes, IntegralHeight, etc.
11236
11237 2005-01-04  Peter Bartok <pbartok@novell.com>
11238
11239         * TextBoxBase.cs: Using proper font variable now
11240
11241 2005-01-04  Peter Bartok <pbartok@novell.com>
11242
11243         * Form.cs (ShowDialog): Set parent to owner, if provided
11244         * GroupBox.cs: Removed unused vars
11245         * TextControl.cs:
11246           - Added GetHashCode() for Document and LineTag classes
11247           - Removed unused variables
11248           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11249             to allow translation between continuous char position and line/pos
11250         * CheckBox.cs: Removed vars that are provided by base class
11251         * RadioButton.cs: Removed vars that are provided by base class, added
11252           new keyword where required
11253         * LinkLabel.cs: Added new keyword where required
11254         * Control.cs (WndProc): Removed unused variable
11255         * TextBoxBase.cs:
11256           - Finished SelectionLength property
11257           - Implemented SelectionStart property
11258           - Implemented Text property
11259           - Removed unused vars
11260         * MessageBox.cs: Added new keyword where required
11261         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11262           WndProc signature
11263         * MenuAPI.cs: Added new keyword where required
11264         * ButtonBase.cs: Removed vars that are provided by base class, added
11265           new keyword where required
11266         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11267           argument to double, to allow compiling with csc 2.0 (Atsushi ran
11268           into this)
11269         * Application.cs (Run): Now triggers the ThreadExit event
11270         * CommonDialog.cs: Added new keyword where required; now properly sets
11271           parent (owner) for dialog
11272         * XplatUIX11.cs: Commented out unused vars
11273         * StatusBar.cs: Fixed signature for Text property
11274         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11275
11276 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11277
11278         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11279         TrackBar.cs, MonthCalendar.cs: remove unused vars
11280
11281 2005-01-03  Jackson Harper  <jackson@ximian.com>
11282
11283         * ThemeWin32Classic.cs:
11284         * X11Keyboard.cs: Remove unused vars.
11285
11286 2005-01-03  Peter Bartok  <pbartok@novell.com>
11287
11288         * TextBox.cs:
11289           - set_Text: Tied into TextControl
11290           - set_TextAlignment: Tied into TextControl
11291         * TextControl.cs:
11292           - Added alignment properties and implemented alignment handling
11293             and drawing (still has a bug, not generating proper expose events)
11294           - Added new Line() constructor to allow passing the line alignment
11295           - Fixed selection setting, properly handling end<start now
11296           - Added aligment considerations to RecalculateDocument()
11297         * TextBoxBase.cs:
11298           - Now properly enforces control height for single line controls
11299           - Added support for CharacterCasing
11300           - Added IsInputKey override
11301           - Fixed Keys.Enter logic
11302           - Added SetBoundsCore override
11303           - Fixed mouse selection handling
11304
11305 2005-01-03  Jackson Harper  <jackson@ximian.com>
11306
11307         * TreeView.cs:
11308           - Collapse and uncheck all nodes when CheckBoxes is disabled.
11309           - Checkboxes are always aligned to the bottom of the node,
11310           regardless of item height.
11311           - Use the node bounds to draw the text so we can center it when
11312           the item height is greater then the font height.
11313           - Node::Bounds are only the text part of the node.
11314         * TreeNode.cs: New method to combine collapsing and unchecking all
11315           nodes recursively.
11316
11317 2005-01-02  Jackson Harper  <jackson@ximian.com>
11318
11319         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11320         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11321         tree when a check is changed. TODO: Only refresh the checked node.
11322
11323 2004-12-30  Jackson Harper  <jackson@ximian.com>
11324
11325         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11326         * TreeNode.cs: When collapsing make sure to never collapse the
11327         root node.
11328
11329 2004-12-29  Jackson Harper  <jackson@ximian.com>
11330
11331         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11332         
11333 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11334
11335         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11336
11337 2004-12-28  Peter Bartok  <pbartok@novell.com>
11338
11339         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11340           not yet assigned
11341
11342 2004-12-28  Peter Bartok  <pbartok@novell.com>
11343
11344         * Control.cs (WndProc): Added WM_HELP handler, now generates
11345           HelpRequested event
11346         * Form.cs: Added HelpButton property and required support code
11347         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11348
11349 2004-12-28  Peter Bartok  <pbartok@novell.com>
11350
11351         * CommonDialog.cs:
11352           - Made DialogForm.owner variable internal
11353           - Added check to ensure owner form is set before setting
11354             owner properties in CreateParams
11355
11356 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11357
11358         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11359           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11360           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11361           system to support borderless/titleless windows (implements menus).
11362           Fix GetWindowPos.  Implement initial background color support for
11363           views.
11364
11365 2004-12-28  Peter Bartok  <pbartok@novell.com>
11366
11367         * Form.cs (get_CreateParams): Make sure we have an owner before using
11368           the owner variable. Implement proper default if no owner exists
11369
11370 2004-12-28  Peter Bartok  <pbartok@novell.com>
11371
11372         * In preparation for making Managed.Windows.Forms the default build target
11373           for System.Windows.Forms, the following stubbed files were added.
11374           Dialogs are currently being implemented by contributors and are only
11375           short-term place holders.
11376         * ColorDialog.cs: Initial check-in (minmal stub)
11377         * DataGrid.cs: Initial check-in (minimal stub)
11378         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11379         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11380         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11381         * FontDialog.cs: Initial check-in (minimal stub)
11382         * FileDialog.cs: Initial check-in (minimal stub)
11383         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11384         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11385         * OpenFileDialog: Initial check-in (minimal stub)
11386         * IComponentEditorPageSite.cs: Initial check-in
11387         * Splitter.cs: Initial check-in (for Jackson)
11388         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11389         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11390         * TextBox.cs: Initial check-in; still needs some wiring to
11391           TextControl backend
11392         * Form.cs: Implemented ControlBox property
11393         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11394         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11395         * TextControl.cs: Added selection functionality; added todo header
11396         * TextBoxBase.cs:
11397           - Implemented Lines property
11398           - Implemented TextHeight property
11399           - Implemented SelectedText property
11400           - Implemented SelectionLength property
11401           - Implemented SelectAll method
11402           - Implemented ToString method
11403           - Removed and cleaned up some debug code
11404           - Implemented (still buggy) mouse text selection
11405
11406 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11407
11408         * ComboBox.cs: Complete DropDownList implementation, fixes.
11409
11410 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11411
11412         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11413         * ComboBoxStyle.cs: ComboBoxStyle enum
11414         * ComboBox.cs: Initial work on ComboBox control
11415
11416 2004-12-21  Peter Bartok  <pbartok@novell.com>
11417
11418         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11419           forward so that anything that creates a window gets the default,
11420           also no longer uses Visible property in CreateParams to avoid
11421           walking up the parent chain and possibly get the wrong visible
11422           status. Fixed IsVisible to no longer walk up to the parent.
11423
11424 2004-12-21  Peter Bartok  <pbartok@novell.com>
11425
11426         * Form.cs (ShowDialog): Unset modality for the proper window
11427  
11428 2004-12-20  Peter Bartok  <pbartok@novell.com>
11429
11430         * CommonDialog.cs: Initial check-in
11431
11432 2004-12-20  Peter Bartok  <pbartok@novell.com>
11433
11434         * Control.cs (Visible): Now uses the parent window instead of the
11435           client area window for the property
11436
11437         * Form.cs
11438           - ShowDialog(): Now uses the proper window for modality
11439           - The default visibility state for the form parent is now false. This
11440             will prevent the user from seeing all the changes to the form and
11441             its controls before the application hits Application.Run()
11442           - Removed some stale commented out code
11443
11444         * NativeWindow.cs:
11445           - Added FindWindow() method to have a method to check for existence
11446             of a window handle
11447           - Added ability to override default exception handling (for example
11448             when debugging with VS.Net; to do this the ExternalExceptionHandler
11449             define must be set
11450           - Removed some useless debug output
11451
11452         * XplatUIX11.cs:
11453           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11454             not working as expected
11455           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11456             property to allow switching back to the modal window if focus is
11457             given to another one of our windows (Application Modal)
11458           - Now only sets override_redirect if we create a window
11459             without WS_CAPTION
11460           - Moved EventMask selection before mapping of newly created window
11461             so we can catch the map event as well
11462           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11463           - Added various Atom related DllImports
11464           - Implemented Exit() method
11465           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11466             in the CreateParams
11467
11468         * MessageBox.cs: Now properly deals with the FormParent window by
11469           providing an override the FormParent CreateParams property to
11470           set as POPUP instead of OVERLAPPED window.
11471
11472 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11473
11474         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11475         Minor code cleanup.
11476
11477 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11478         
11479         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11480
11481 2004-12-18  Peter Bartok  <pbartok@novell.com>
11482
11483         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11484           implementing SetModal() method
11485
11486 2004-12-18  Peter Bartok  <pbartok@novell.com>
11487
11488         * X11Structs.cs (XGCValues): Fixed type of function element
11489         * XplatUI.cs: Added ScrollWindow() method
11490         * XplatUIDriver.cs: Added ScrollWindow() abstract
11491         * XplatUIWin32.cs: Implemented ScrollWindow() method
11492         * XplatUIX11.cs: Implemented ScrollWindow() method
11493         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11494
11495 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11496
11497         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11498         Some more keyboard support (INCOMPLETE)
11499
11500 2004-12-17  Peter Bartok  <pbartok@novell.com>
11501
11502         * TextControl.cs:
11503         - Added color attribute to line tags.
11504         - Added color argument to all functions dealing with tags
11505         - Added color argument support to various functions
11506         - Fixed miss-calculation of baseline/shift in certain circumstances
11507
11508         * TextBoxBase.cs: Added new color option to test code
11509
11510 2004-12-17  Jackson Harper  <jackson@ximian.com>
11511
11512         * TreeNode.cs:
11513         * MonthCalendar.cs: Signature fixes
11514
11515 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11516
11517         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11518         keyboard event moved it.  Create a new graphics context for each paint resolves this
11519
11520 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11521
11522         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11523         Make caret exist and go blink blink.  Initial keyboard support.
11524         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11525         works.
11526
11527 2004-12-17  Jackson Harper  <jackson@ximian.com>
11528
11529         * XplatUIStructs.cs: Updated set of virtual keycodes.
11530         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11531
11532 2004-12-17  Jackson Harper  <jackson@ximian.com>
11533
11534         * XplatUIX11.cs: Prune old keyboard code.
11535
11536 2004-12-17  Jackson Harper  <jackson@ximian.com>
11537
11538         * XplatUIX11.cs: When generating mouse wparams get the modifier
11539         keys from the ModifierKeys property.
11540
11541 2004-12-17  Jackson Harper  <jackson@ximian.com>
11542
11543         * X11Keyboard.cs: Send up/down input when generating
11544         messages. Remove some unused vars.
11545
11546 2004-12-17  Jackson Harper  <jackson@ximian.com>
11547
11548         * TabControl.cs:
11549         * TreeView.cs: get rid of warnings.
11550
11551 2004-12-17  Jackson Harper  <jackson@ximian.com>
11552
11553         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11554
11555 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11556
11557         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11558           CheckedListBox.cs: Implementation
11559
11560 2004-12-17  Peter Bartok  <pbartok@novell.com>
11561
11562         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11563
11564 2004-12-16  Peter Bartok  <pbartok@novell.com>
11565
11566         * TextControl.cs:
11567           - InsertCharAtCaret(): Fixed start pos fixup
11568           - CaretLine_get: No longer derives the line from the tag, the tag
11569             could be stale if lines in the document have been added or deleted
11570           - RebalanceAfterDelete(): Fixed bug in balancing code
11571           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11572           - Line.Streamline(): Now can also elminate leading empty tags
11573           - DumpTree(): Added a few more tests and prevented exception on
11574             uninitialized data
11575           - Added Debug section for Combining lines
11576           - Delete(): Now copies all remaining properties of a line
11577           
11578         * TextBoxBase.cs:
11579           - Left mousebutton now sets the caret (and middle button still acts
11580             as formatting tester, which must go away soon)
11581           - Added Debug section for Deleting/Combining lines
11582           - Fixed calculations for UpdateView after Combining lines
11583
11584 2004-12-16  Peter Bartok  <pbartok@novell.com>
11585
11586         * TextControl.cs: Now properly aligns text on a baseline, using the
11587           new XplatUI.GetFontMetrics() method. Simplified several calculations
11588         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11589           defined
11590
11591 2004-12-16  Peter Bartok  <pbartok@novell.com>
11592
11593         * XplatUI.cs: Added GetFontMetrics() method
11594         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11595         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11596           into libgdiplus, our private GetFontMetrics function
11597         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11598         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11599
11600 2004-12-16  Jackson Harper  <jackson@ximain.com>
11601
11602         * XplatUIStruct.cs: Add enum for dead keys
11603         * X11Keyboard.cs: Map and unmap dead keys.
11604
11605 2004-12-16  Jackson Harper  <jackson@ximian.com>
11606
11607         * X11Keyboard.cs: Detect and use the num lock mask.
11608
11609 2004-12-16  Peter Bartok  <pbartok@novell.com>
11610
11611         * Control.cs (CreateGraphics): Added check to make sure the
11612           handle of the window exists before calling Graphics.FromHwnd()
11613
11614 2004-12-16  Peter Bartok  <pbartok@novell.com>
11615
11616         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11617           contains a lot of code that's not supposed to be there for the
11618           real thing, but required for developing/testing the textbox
11619           backend.
11620
11621 2004-12-16  Peter Bartok  <pbartok@novell.com>
11622
11623         * TextControl.cs:
11624         - Fixed Streamline method
11625         - Added FindTag method to Line
11626         - Added DumpTree method for debugging
11627         - Added DecrementLines() method for deleting lines
11628         - Fixed UpdateView to update the cursor to end-of-line on single-line
11629           updates
11630         - Added PositionCaret() method
11631         - Fixed MoveCaret(LineDown) to move into the last line, too
11632         - Added InsertChar overload
11633         - Fixed InsertChar tag offset calculations
11634         - Added DeleteChar() method
11635         - Added Combine() method for folding lines
11636         - Fixed Delete() method, no longer allocates wasted Line object and
11637           now copies all properties when swapping nodes
11638         - Delete() method now updates document line counter
11639
11640 2004-12-15  Jackson Harper  <jackson@ximian.com>
11641
11642         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11643         * X11Keyboard.cs: Expose the currently selected modifier keys
11644         through a property.
11645
11646 2004-12-15  Peter Bartok  <pbartok@novell.com>
11647
11648         * TextControl.cs: Initial check-in. Still incomplete
11649
11650 2004-12-15  Jackson Harper  <jackson@ximian.com>
11651
11652         * TreeNode.cs:
11653         * TreeView.cs: Fix build on csc (second time today ;-))
11654
11655 2004-12-15  Jackson Harper  <jackson@ximian.com>
11656
11657         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11658         is calculated and use this for click testing.
11659         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11660
11661 2004-12-15  Jackson Harper  <jackson@ximian.com>
11662
11663         * TreeView.cs: Pass the nodes image index to the image list when
11664         drawing that image.
11665
11666 2004-12-15  Jackson Harper  <jackson@ximian.com>
11667
11668         * X11Keyboard.cs: Set messages hwnd.
11669         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11670         post_message calls.
11671
11672 2004-12-15  Jackson Harper  <jackson@ximian.com>
11673
11674         * X11Keyboard.cs: Fix to compile with csc.
11675         
11676 2004-12-15  Jackson Harper  <jackson@ximian.com>
11677
11678         * X11Structs.cs: Add key mask values
11679         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11680         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11681         down/up foo into WM_CHAR foo
11682         * KeyboardLayouts.cs: Common keyboard layouts
11683         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11684         post messages into the main queue.
11685
11686 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11687
11688         * Button.cs: implement ProcessMnemonic
11689         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11690           brushes everytime
11691         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11692         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11693
11694 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11695         
11696         * MonthCalendar.cs: Implemented click-hold for next/previous month
11697           and date selection
11698           
11699 2004-12-11  Peter Bartok  <pbartok@novell.com>
11700
11701         * X11Structs.cs:
11702           - Added XKeyboardState (moved from XplatUIX11.cs)
11703           - Added XCreateGC related enums and structures
11704           - Added GXFunction for XSetFunction
11705
11706         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11707
11708         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11709           CaretVisible() calls
11710
11711         * ToolTip.cs: Added code to prevent stealing focus from app windows
11712
11713         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11714           DestroyCaret, SetCaretPos and CaretVisible)
11715
11716         * XplatUIX11.cs:
11717           - Added implementation for caret functions
11718           - Moved hover variables into a struct, to make it a bit easier
11719             on the eyes and to debug
11720           - Removed XKeyboardState (moved to XplatUIX11.cs)
11721           - Moved Keyboard properties into the properties region
11722
11723         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11724           call to get a graphics context for our control
11725
11726         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11727
11728         * TreeView.cs: Fixed bug. No matter what color was set it would always
11729           return SystemColors.Window
11730
11731         * XplatUIWin32.cs: Implemented caret overrides
11732
11733 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11734
11735         * ListBox.cs: fire events, implement missing methods and properties,
11736         sorting.
11737
11738 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11739
11740         * MonthCalendar.cs: invalidation bug fixing
11741         * ThemeWin32Classic.cs: paint fixing
11742
11743 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11744
11745         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11746         prepare the CGContextRef there now.
11747
11748 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11749
11750         * MonthCalendar.cs:
11751           - optimisationL only invalidate areas that have changed
11752         * ThemeWin32Classic.cs:
11753           - only paint parts that intersect with clip_area
11754
11755 2004-12-09  Peter Bartok  <pbartok@novell.com>
11756
11757         * Application.cs: Undid changes from r37004 which cause problems
11758         on X11
11759
11760 2004-12-09  Ravindra  <rkumar@novell.com>
11761
11762         * ToolBar.cs: Added support for displaying ContextMenu
11763         attached to a button on ToolBar.
11764         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11765         property.
11766
11767 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11768
11769         * Label.cs: autosize works in text change and removes unnecessary
11770         invalidate
11771
11772 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11773
11774         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11775         remove warnings
11776
11777 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11778
11779         * XplatUIOSX.cs: Added mouse move/click/grab support
11780         Remove some debugging WriteLines not needed anymore.
11781         Add window resizing/positioning.
11782         Fix visibility on reparenting.
11783
11784 2004-12-08  Peter Bartok  <pbartok@novell.com>
11785
11786         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11787
11788 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11789
11790         * XplatUIOSX.cs: Initial checkin
11791         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11792
11793 2004-12-03  Ravindra <rkumar@novell.com>
11794
11795         * ListView.cs: Added some keybindings and fixed scrolling.
11796         ScrollBars listen to ValueChanged event instead of Scroll
11797         Event. This would let us take care of all changes being
11798         done in the scrollbars' values programmatically or manually.
11799         * ListView.cs (CanMultiselect): Added a check for shift key.
11800         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11801         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11802         of ListViewSubItemCollection as well.
11803
11804 2004-12-06  Peter Bartok <pbartok@novell.com>
11805
11806         * Control.cs (Parent): Added check and exception to prevent
11807         circular parenting
11808
11809 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11810
11811         * ListBox.cs: implemented clipping, selection single and multiple,
11812         bug fixing
11813
11814 2004-12-03  Ravindra <rkumar@novell.com>
11815
11816         * ListView.cs (ListView_KeyDown):
11817         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11818         when CTRL key is pressed.
11819         * ListViewItem.cs (Selected): Fixed setting the property.
11820
11821 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11822
11823         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11824
11825         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11826         MinimizeBox, ShowInTaskbar, TopMost properties.
11827
11828         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11829         will be implemented).
11830
11831 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11832
11833         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11834
11835         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11836         tests.
11837         
11838         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11839         
11840         * TreeView.cs: BackColor is Colors.Window.
11841
11842 2004-12-01  Jackson Harper  <jackson@ximian.com>
11843
11844         * TreeView.cs: When resizing the tree if the user is making it
11845         smaller we don't get expose events, so we need to handle adding
11846         the horizontal scrollbar in the size changed handler as well as
11847         the expose handler.
11848
11849 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11850
11851         * DrawItemState.cs: fixes wrong enum values
11852
11853 2004-12-01  Jackson Harper  <jackson@ximian.com>
11854
11855         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11856
11857 2004-12-01  Jackson Harper  <jackson@ximian.com>
11858
11859         * NodeLabelEditEventArgs.cs:
11860         * NodeLabelEditEventHandler.cs:
11861         * OpenTreeNodeEnumerator.cs:
11862         * TreeNode.cs:
11863         * TreeNodeCollection.cs:
11864         * TreeView.cs:
11865         * TreeViewAction.cs:
11866         * TreeViewCancelEventArgs.cs:
11867         * TreeViewCancelEventHandler.cs:
11868         * TreeViewEventArgs.cs:
11869         * TreeViewEventHandler.cs: Initial implementation.
11870
11871 2004-12-01  Ravindra <rkumar@novell.com>
11872
11873         * ListView.cs (CalculateListView): Fixed scrolling related
11874         calculations. Also, removed some debug statements from other
11875         places.
11876         * ListViewItem.cs: Changed access to 'selected' instance variable
11877         from private to internal.
11878         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11879
11880 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11881
11882         * ThemeWin32Classic.cs: remove cache of brush and pens for
11883         specific controls and use the global system, fixes scrollbutton
11884         bugs (for small sizes, disabled, etc)
11885         
11886         * ScrollBar.cs: does not show the thumb for very small controls
11887         (as MS) and allow smaller buttons that the regular size
11888
11889 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11890
11891         * UpDownBase.cs: Add abstract methods for the interface.
11892         Add new virtual methods (need to be hooked up to TextEntry when it
11893         exists).
11894         Add override methods for most features.
11895         Computes the size, forces the height of the text entry.
11896
11897         * NumericUpDown.cs: Put here the current testing code.
11898
11899         * Set eol-style property on all files that do not have mixed line
11900         endings, to minimize the future problems.  There are still a few
11901         files with mixed endings, and someone should choose whether they
11902         want to move it or not.
11903
11904 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11905
11906         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11907         System.Colors
11908         
11909 2004-11-30  Ravindra <rkumar@novell.com>
11910
11911         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11912         drawing and replaced use of SystemColors by theme colors.
11913         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11914         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11915         same ListViewItem is being added more than once.
11916
11917 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11918
11919         * MonthCalendar.cs:
11920           - ControlStyles love to make the control not flicker
11921           
11922 2004-11-30  Peter Bartok  <pbartok@novell.com>
11923
11924         * CharacterCasing.cs: Added
11925
11926 2004-11-29  Peter Bartok  <pbartok@novell.com>
11927
11928         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11929           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11930           I am removing these files as they conflict with already completed
11931           work. While it is fantastic to get contributions to MWF, I
11932           respectfully ask that everyone please coordinate their contributions
11933           through mono-winforms-list or #mono-winforms at this time. We're
11934           explicitly avoiding stubbing and don't want controls that don't have
11935           their basic functionality implemented in svn. Please also see
11936           http://www.mono-project.com/contributing/winforms.html
11937
11938
11939 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11940
11941         * Application.cs (ModalRun): Don't hang after exit.
11942
11943         * Theme.cs: New TreeViewDefaultSize property.
11944
11945         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11946         with less hardcoded SystemColors constant.
11947         Implemented TreeViewDefaultSize.
11948
11949         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11950         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11951
11952
11953 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11954
11955         * MonthCalendar.cs:
11956           - Fix NextMonthDate and PrevMonthDate click moving calendar
11957
11958 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11959
11960         * MonthCalendar.cs:
11961           - Fix usage of ScrollChange Property when scrolling months
11962
11963 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11964
11965         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11966          - Fixes menu destroying
11967          - Support adding and removing items on already created menus
11968
11969 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11970
11971         * MonthCalendar.cs:
11972           - Re-worked all bolded dates handling to match win32
11973         * ThemeWin32Classic.cs:
11974           - Fixed rendering with bolded dates
11975
11976 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11977
11978         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11979         - Horizontal scroolbar
11980         - Multicolumn
11981         - Fixes
11982
11983
11984 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11985
11986         * MonthCalendar.cs:
11987           - Fix Usage of MaxSelectionCount from SelectionRange
11988           - Fixed Shift + Cursor Selection
11989           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11990           - Fixed normal cursor selection to be compat with win32
11991           - Fixed Shift + Mouse Click selection
11992
11993 2004-11-24  Peter Bartok <pbartok@novell.com>
11994
11995         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11996         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11997         * XplatUIX11.cs:
11998           - CreatedKeyBoardMsg now updates keystate with Alt key
11999           - Added workaround for timer crash to CheckTimers, Jackson will
12000             develop a proper fix and check in later
12001           - Implemented DispatchMessage
12002           - Removed calling the native window proc from GetMessage (call
12003             now moved to DispatchMessage)
12004
12005         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
12006           the keydata (Fixes bug #69831)
12007
12008         * XplatUIWin32.cs:
12009           - (DispatchMessage): Switched to return IntPtr
12010           - Added DllImport for SetFocus
12011
12012 2004-11-24  Ravindra <rkumar@novell.com>
12013
12014         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
12015         background drawing.
12016         * ListViewItem.cs: Fixed various properties, calculations
12017         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
12018         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
12019         and some internal properties. Fixed MouseDown handler and Paint
12020         method.
12021
12022 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12023
12024         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
12025
12026 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12027
12028         * ContainerControl.cs: correct accidental check in of local changes
12029
12030 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12031
12032         * ThemeWin32Classic.cs:
12033                 - Fixed Drawing Last month in grid (sometimes not showing)
12034         * MonthCalendar.cs:
12035                 - Fixed title width calculation bug (makeing title small)
12036
12037 2004-11-23  Peter Bartok <pbartok@novell.com>
12038
12039         * XplatUIX11.cs:
12040           - Added generation of WM_MOUSEHOVER event
12041           - Added missing assignment of async_method atom
12042           - Fixed WM_ERASEBKGND; now only redraws the exposed area
12043
12044 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12045
12046         * ThemeWin32Classic.cs:
12047                 - Fixed Drawing of today circle when showtodaycircle not set
12048                 - fixed drawing of first and last month in the grid (gay dates)
12049         * MonthCalendar.cs:
12050                 - Fixed Drawing of today circle
12051                 - Fixed drawing of grady dates
12052                 - Fixed HitTest for today link when ShowToday set to false
12053                 - Fixed DefaultSize to obey ShowToday
12054
12055 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12056
12057         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
12058         * System.Windows.Forms/Theme.cs
12059         * MonthCalendar.cs: added for MonthCalendar
12060         * SelectionRange.cs: added for MonthCalendar
12061         * Day.cs: added for MonthCalendar: added for MonthCalendar
12062         * DateRangeEventArgs.cs: added for MonthCalendar
12063         * DateRangeEventHandler.cs: added for MonthCalendar
12064
12065 2004-11-22  Ravindra <rkumar@novell.com>
12066
12067         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
12068         property.
12069
12070 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
12071
12072         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
12073         event handler.
12074         
12075         * NumericUpDown.cs: Added new implementation.
12076         * UpDownBase.cs: Added new implementation.
12077
12078         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
12079         implementations.
12080         
12081         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
12082         implementations.
12083
12084         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
12085         methods.
12086
12087 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
12088
12089         * Timer.cs  (Dispose): Should call the base dispose when
12090         overriding.
12091
12092 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12093
12094         * ScrollBar.cs: updates thumb position when max, min or increment
12095         is changed
12096
12097 2004-11-21  Ravindra <rkumar@novell.com>
12098
12099         * ListView.cs: Implemented item selection, activation and
12100         column header style. Fixed properties to do a redraw, if
12101         required. Added support for MouseHover, DoubleClick, KeyDown
12102         and KeyUp event handling and some minor fixes.
12103         * ListViewItem.cs: Fixed constructor.
12104         * ThemeWin32Classic.cs: Improved drawing for ListView.
12105
12106 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12107
12108         * ThemeWin32Classic.cs: initial listbox drawing code
12109         * DrawMode.cs: new enumerator
12110         * ListControl.cs: stubbed class
12111         * ListBox.cs: initial implementation
12112         * Theme.cs: new methods definitions
12113         * SelectionMode.cs: new enumerator
12114
12115 2004-11-17  Peter Bartok  <pbartok@novell.com>
12116
12117         * XplatUIWin32.cs: Added double-click events to the class style
12118         * Control.cs (WndProc):
12119           - Added handling of click-count to MouseDown/ MouseUp events.
12120           - Added handling of middle and right mouse buttons
12121           - Removed old debug code
12122
12123 2004-11-17  Jackson Harper  <jackson@ximian.com>
12124
12125         * XplatUIX11.cs: Use the new Mono.Unix namespace.
12126
12127 2004-11-17  Ravindra <rkumar@novell.com>
12128
12129         * ListView.cs: Added event handling for MouseMove/Up/Down.
12130         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
12131         * ThemeWin32Classic.cs: We need to clear the graphics context and
12132         draw column header in a proper state.
12133
12134
12135 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
12136
12137         *  Menu.cs: fixes signature
12138
12139 2004-11-16  Peter Bartok  <pbartok@novell.com>
12140
12141         * XplatUIX11.cs (GetMessage): Implemented generation of
12142           double click mouse messages
12143
12144 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
12145
12146         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
12147         not by menu
12148
12149 2004-11-11  Peter Bartok  <pbartok@novell.com>
12150
12151         * HandleData.cs: Added Visible property
12152         * XplatUIX11.cs (IsVisible): Now uses Visible property from
12153           HandleData
12154         * XplatUIX11.cs: Removed old debug leftovers
12155         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
12156         * Control.cs (WndProc): Removed old debug leftovers,
12157           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
12158           needed WM_SIZE handling
12159
12160 2004-11-11  Jackson Harper  <jackson@ximian.com>
12161
12162         * OwnerDrawPropertyBag.cs:
12163         * TreeViewImageIndexConverter.cs: Initial implementation
12164
12165 2004-11-10  Jackson Harper  <jackson@ximian.com>
12166
12167         * ThemeWin32Classic.cs:
12168         * TabControl.cs: instead of moving tabs by the slider pos just
12169         start drawing at the tab that is offset by the slider. This way
12170         scrolling always moves by exactly one tab.
12171
12172 2004-11-10  Jackson Harper  <jackson@ximian.com>
12173
12174         * TabControl.cs: You can only scroll left when the slider has
12175         already ben moved right.
12176         
12177 2004-11-10  Jackson Harper  <jackson@ximian.com>
12178
12179         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
12180         the clip area.
12181         
12182 2004-11-10  Jackson Harper  <jackson@ximian.com>
12183
12184         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
12185         clip area.
12186         
12187 2004-11-09  Jackson Harper  <jackson@ximian.com>
12188
12189         * TabControl.cs (CalcXPos): New helper method so we can determine
12190         the proper place to start drawing vertical tabs.
12191         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
12192         
12193 2004-11-09  Jackson Harper  <jackson@ximian.com>
12194
12195         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
12196         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
12197         and Bottom, left and right are illegal values for this and
12198         multiline is enabled when the alignment is set to left or right.
12199         (DrawTab): Each alignment block should draw the text itself now
12200         because Left requires special love. Also add rendering for Left
12201         aligned tabs.
12202         
12203 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
12204
12205         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
12206         does not destroy the windows, removes debugging messages
12207
12208 2004-11-09  jba  <jba-mono@optusnet.com.au>
12209
12210         * ThemeWin32Classic.cs
12211         (DrawButtonBase): Fix verticle text rect clipping in windows
12212         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12213         rendering and incorrect text rect clipping
12214         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12215         rendering and incorrect text rect clipping
12216         
12217 2004-11-08  Jackson Harper  <jackson@ximian.com>
12218
12219         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
12220         bottom when they are bottom aligned so the bottoms of the tabs get
12221         displayed.
12222         * TabControl.cs (DropRow): Move rows up instead of down when the
12223         tab control is bottom aligned.
12224
12225 2004-11-08 13:59  pbartok
12226
12227         * XplatUIX11.cs:
12228           - Added handling for various window styles
12229           - Added handling for popup windows
12230           - Added SetTopmost handling
12231
12232 2004-11-08 13:55  pbartok
12233
12234         * XplatUIWin32.cs:
12235           - Added argument to SetTopmost method
12236           - Fixed broken ClientToScreen function
12237
12238 2004-11-08 13:53  pbartok
12239
12240         * XplatUIStructs.cs:
12241           - Added missing WS_EX styles
12242
12243 2004-11-08 13:53  pbartok
12244
12245         * XplatUI.cs, XplatUIDriver.cs:
12246           - Added argument to SetTopmost
12247
12248 2004-11-08 13:52  pbartok
12249
12250         * X11Structs.cs:
12251           - Added XSetWindowAttributes structure
12252           - Improved XWindowAttributes structure
12253           - Added SetWindowValuemask enum
12254           - Added window creation arguments enum
12255           - Added gravity enum
12256           - Added Motif hints structure
12257           - Added various Motif flags and enums
12258           - Added PropertyMode enum for property functions
12259
12260 2004-11-08 13:50  pbartok
12261
12262         * Form.cs:
12263           - Fixed arguments for updated SetTopmost method
12264
12265 2004-11-08 13:49  pbartok
12266
12267         * ToolTip.cs:
12268           - Fixed arguments for updated SetTopmost function
12269           - Fixed usage of PointToClient
12270
12271 2004-11-08 13:44  pbartok
12272
12273         * MenuAPI.cs:
12274           - Added Clipping of children and siblings
12275
12276 2004-11-08 13:41  pbartok
12277
12278         * MainMenu.cs:
12279           - Removed SetMenuBarWindow call. We do this in Form.cs
12280
12281 2004-11-08 13:40  jackson
12282
12283         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12284           scrolling jimmi in the correct location with bottom aligned tabs
12285
12286 2004-11-08 13:36  pbartok
12287
12288         * ContainerControl.cs:
12289           - Implemented BindingContext
12290           - Implemented ParentForm
12291
12292 2004-11-08 12:46  jackson
12293
12294         * TabControl.cs: Put bottom rendered tabs in the right location
12295
12296 2004-11-08 07:15  jordi
12297
12298         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12299           removes dead code
12300
12301 2004-11-05 17:30  jackson
12302
12303         * TabControl.cs: When selected tabs are expanded make sure they
12304           don't go beyond the edges of the tab control
12305
12306 2004-11-05 14:57  jackson
12307
12308         * TabControl.cs: Reset show_slider so if the control is resized to
12309           a size where it is no longer needed it's not displayed anymore
12310
12311 2004-11-05 13:16  jackson
12312
12313         * TabControl.cs: Make tab pages non visible when added to the
12314           control
12315
12316 2004-11-05 12:42  jackson
12317
12318         * TabControl.cs: Implement SizeMode.FillToRight
12319
12320 2004-11-05 12:16  jackson
12321
12322         * Control.cs: Do not call CreateHandle if the handle is already
12323           created
12324
12325 2004-11-05 11:46  jackson
12326
12327         * TabControl.cs: Remove superflous call to CalcTabRows
12328
12329 2004-11-05 09:07  jackson
12330
12331         * XplatUIX11.cs: Update for Mono.Posix changes
12332
12333 2004-11-05 07:00  ravindra
12334
12335         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12336           scrolling.
12337
12338 2004-11-04 22:47  jba
12339
12340         * ThemeWin32Classic.cs:
12341           - Fix Button rendering for FlatStyle = Flat or Popup
12342           - Fix RadioButton and CheckBox rendering when Appearance = Button
12343             (normal and flatstyle).
12344           - Correct outer rectangle color when drawing focus rectangle
12345           - Adjust button bounds to be 1 px smaller when focused
12346           - Make button not draw sunken 3d border when pushed (windows compat)
12347           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12348           - Offset the text in RadioButton and Checkbox when being rendered as
12349           a button.
12350           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12351           radiobuttons
12352           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12353           - Fixed disabled text rendering for normally rendered radiobuttons
12354
12355 2004-11-04 10:26  jackson
12356
12357         * TabControl.cs: Recalculate tab rows when resizing
12358
12359 2004-11-04 07:47  jordi
12360
12361         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12362           collection completion, drawing issues, missing features
12363
12364 2004-11-04 05:03  ravindra
12365
12366         * ScrollBar.cs:
12367                 - We need to recalculate the Thumb area when
12368                 LargeChange/maximum/minimum values are changed.
12369           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12370                 than minimum. This is required to handle the case if large_change is
12371                 more than max, and use LargeChange property instead of large_change
12372                 variable.
12373           - We return max+1 when large_change is more than max, like MS does.
12374
12375 2004-11-04 04:29  ravindra
12376
12377         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12378                 - Changed default value signatures (prefixed all with ListView).
12379                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12380                 ListView.
12381           - Fixed calculations for ListViewItem and implemented Clone()
12382           method.
12383
12384 2004-11-04 04:26  ravindra
12385
12386         * Theme.cs, ThemeWin32Classic.cs:
12387                 - Changed default ListView values signatures (prefixed all with
12388                 ListView).
12389           - Fixed default size values for VScrollBar and HScrollBar.
12390                 - Fixed DrawListViewItem method.
12391
12392 2004-11-04 04:05  ravindra
12393
12394         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12395
12396 2004-11-04 04:04  ravindra
12397
12398         * ImageList.cs: Implemented the missing overload for Draw method.
12399
12400 2004-11-03 19:29  jackson
12401
12402         * TabControl.cs: Handle dropping rows on selection properly
12403
12404 2004-11-03 11:59  jackson
12405
12406         * TabControl.cs: remove debug code
12407
12408 2004-11-03 11:52  jackson
12409
12410         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12411           the scrolly widgerywoo
12412
12413 2004-11-02 13:52  jackson
12414
12415         * TabControl.cs: Resize the tab pages and tabs when the tab control
12416           is resized
12417
12418 2004-11-02 13:40  jackson
12419
12420         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12421           selected tab to the bottom
12422
12423 2004-11-02 13:39  jackson
12424
12425         * TabPage.cs: Store the tab pages row
12426
12427 2004-11-02 12:33  jordi
12428
12429         * MenuItem.cs: fixes handle creation
12430
12431 2004-11-02 11:42  jackson
12432
12433         * TabControl.cs: signature fix
12434
12435 2004-11-02 08:56  jackson
12436
12437         * TabControl.cs: Calculate whether the tab is on an edge properly.
12438           Remove top secret debugging code
12439
12440 2004-11-01 19:57  jackson
12441
12442         * TabControl.cs: Add click handling, and proper sizing
12443
12444 2004-11-01 19:47  jackson
12445
12446         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12447           tab controls
12448
12449 2004-11-01 19:39  jackson
12450
12451         * TabPage.cs: add internal property to store the bounds of a tab
12452           page
12453
12454 2004-10-30 04:23  ravindra
12455
12456         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12457           values.
12458
12459 2004-10-30 04:21  ravindra
12460
12461         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12462           fixed calculations.
12463
12464 2004-10-30 03:06  pbartok
12465
12466         * XplatUIX11.cs:
12467           - Removed extension of DllImported libs
12468
12469 2004-10-29 09:55  jordi
12470
12471         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12472           navigation, itemcollection completion, menu fixes
12473
12474 2004-10-27 22:58  pbartok
12475
12476         * XplatUIX11.cs:
12477           - Now throws a nice error message when no X display could be opened
12478
12479 2004-10-26 13:51  jordi
12480
12481         * ListView.cs: removes warning
12482
12483 2004-10-26 03:55  ravindra
12484
12485         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12486           ThemeWin32Classic.cs: Some formatting for my last checkins.
12487
12488 2004-10-26 03:36  ravindra
12489
12490         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12491           control and default values.
12492
12493 2004-10-26 03:35  ravindra
12494
12495         * Theme.cs: Added some default values for ListView control.
12496
12497 2004-10-26 03:33  ravindra
12498
12499         * ToolBar.cs: ToolBar should use the user specified button size, if
12500           there is any. Added a size_specified flag for the same.
12501
12502 2004-10-26 03:33  ravindra
12503
12504         * ColumnHeader.cs: Added some internal members and calculations for
12505           ColumnHeader.
12506
12507 2004-10-26 03:32  ravindra
12508
12509         * ListViewItem.cs: Calculations for ListViewItem.
12510
12511 2004-10-26 03:31  ravindra
12512
12513         * ListView.cs: Added some internal members and calculations for
12514           ListView.
12515
12516 2004-10-22 13:31  jordi
12517
12518         * MenuAPI.cs: speedup menus drawing
12519
12520 2004-10-22 13:16  jackson
12521
12522         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12523           expose event
12524
12525 2004-10-22 11:49  jackson
12526
12527         * Control.cs: oops
12528
12529 2004-10-22 11:41  jackson
12530
12531         * Control.cs: Check to see if the window should have its background
12532           repainted by X when drawing.
12533
12534 2004-10-22 11:31  jackson
12535
12536         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12537           clear is true, this way we do not get flicker from X repainting the
12538           background
12539
12540 2004-10-22 11:28  jackson
12541
12542         * XEventQueue.cs: Queue properly
12543
12544 2004-10-21 09:38  jackson
12545
12546         * XEventQueue.cs: Fix access modifier
12547
12548 2004-10-21 09:36  jackson
12549
12550         * XEventQueue.cs: Don't loose messages
12551
12552 2004-10-21 09:22  jackson
12553
12554         * XEventQueue.cs: Don't loose messages
12555
12556 2004-10-20 04:15  jordi
12557
12558         * BootMode.cs: enum need it by SystemInfo
12559
12560 2004-10-19 21:58  pbartok
12561
12562         * XplatUIWin32.cs:
12563           - Small sanity check
12564
12565 2004-10-19 21:56  pbartok
12566
12567         * Form.cs:
12568           - Added private FormParentWindow class which acts as the container
12569             for our form and as the non-client area where menus are drawn
12570           - Added/Moved required tie-ins to Jordi's menus
12571           - Fixed/Implemented the FormStartPosition functionality
12572
12573 2004-10-19 21:52  pbartok
12574
12575         * Control.cs:
12576           - Removed unneeded locals
12577           - Added code to all size and location properties to understand and
12578             deal with the parent container of Form
12579
12580 2004-10-19 21:33  pbartok
12581
12582         * Application.cs:
12583           - Fixed to deal with new Form subclasses for menus
12584
12585 2004-10-19 17:48  jackson
12586
12587         * XEventQueue.cs: commit correct version of file
12588
12589 2004-10-19 16:50  jackson
12590
12591         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12592
12593 2004-10-19 16:15  jordi
12594
12595         * MenuAPI.cs: MenuBarCalcSize returns the height
12596
12597 2004-10-19 08:31  pbartok
12598
12599         * Control.cs:
12600           - Added missing call to PreProcessMessage before calling OnXXXKey
12601           methods
12602
12603 2004-10-19 00:04  ravindra
12604
12605         * ToolTip.cs: Fixed constructor.
12606
12607 2004-10-18 09:31  jordi
12608
12609         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12610
12611 2004-10-18 09:26  jordi
12612
12613         * MenuItem.cs: fixes MenuItem class signature
12614
12615 2004-10-18 08:56  jordi
12616
12617         * MenuAPI.cs: prevents windows from showing in the taskbar
12618
12619 2004-10-18 00:28  ravindra
12620
12621         * ToolTip.cs: Suppressed a warning message.
12622
12623 2004-10-18 00:27  ravindra
12624
12625         * Control.cs: Default value of visible property must be true.
12626
12627 2004-10-17 23:19  pbartok
12628
12629         * ToolTip.cs:
12630           - Complete implementation
12631
12632 2004-10-17 23:19  pbartok
12633
12634         * XplatUIX11.cs:
12635           - Added EnableWindow method
12636           - Added SetModal stub
12637           - Added generation of WM_ACTIVATE message (still needs testing)
12638           - Added SetTopMost stub
12639           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12640
12641 2004-10-17 23:17  pbartok
12642
12643         * XplatUIWin32.cs:
12644           - Removed VirtualKeys to XplatUIStructs
12645           - Implemented SetTopMost method
12646           - Implemented EnableWindow method
12647           - Bugfix in ScreenToClient()
12648           - Bugfixes in ClientToScreen()
12649
12650 2004-10-17 22:51  pbartok
12651
12652         * XplatUIStructs.cs:
12653           - Added WS_EX styles to WindowStyles enumeration
12654
12655 2004-10-17 22:50  pbartok
12656
12657         * XplatUI.cs, XplatUIDriver.cs:
12658           - Added method for enabling/disabling windows
12659           - Added method for setting window modality
12660           - Added method for setting topmost window
12661
12662 2004-10-17 22:49  pbartok
12663
12664         * ThemeWin32Classic.cs:
12665           - Added ToolTip drawing code
12666
12667 2004-10-17 22:49  pbartok
12668
12669         * Theme.cs:
12670           - Added ToolTip abstracts
12671
12672 2004-10-17 22:47  pbartok
12673
12674         * Form.cs:
12675           - Fixed Form.ControlCollection to handle owner relations
12676           - Added Owner/OwnedForms handling
12677           - Implemented Z-Ordering for owned forms
12678           - Removed unneeded private overload of ShowDialog
12679           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12680             so I hope)
12681           - Fixed Close(), had wrong default
12682           - Added firing of OnLoad event
12683           - Added some commented out debug code for Ownership handling
12684
12685 2004-10-17 22:16  pbartok
12686
12687         * Control.cs:
12688           - Fixed/implemented flat list of controls
12689
12690 2004-10-17 22:14  pbartok
12691
12692         * Application.cs:
12693           - Added code to simulate modal dialogs on Win32
12694
12695 2004-10-17 16:11  jordi
12696
12697         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12698           mouse event
12699
12700 2004-10-17 13:39  jordi
12701
12702         * MenuAPI.cs: menu drawing fixes
12703
12704 2004-10-15 09:10  ravindra
12705
12706         * StructFormat.cs: General Enum.
12707
12708 2004-10-15 09:09  ravindra
12709
12710         * SizeGripStyle.cs: Enum for Form.
12711
12712 2004-10-15 09:08  ravindra
12713
12714         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12715           in Theme for ListView.
12716
12717 2004-10-15 09:06  ravindra
12718
12719         * ColumnHeader.cs: Flushing some formatting changes.
12720
12721 2004-10-15 09:05  ravindra
12722
12723         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12724           style.
12725
12726 2004-10-15 09:03  ravindra
12727
12728         * ListView.cs: Implemented Paint method and fixed coding style.
12729
12730 2004-10-15 07:34  jordi
12731
12732         * MenuAPI.cs: fix for X11
12733
12734 2004-10-15 07:32  ravindra
12735
12736         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12737                 - Renamed Paint() method to Draw() for clarity. Also, moved
12738                 DrawImage() to OnPaint().
12739
12740 2004-10-15 07:25  ravindra
12741
12742         * CheckBox.cs, RadioButton.cs:
12743                 - Removed Redraw (), we get it from ButtonBase.
12744                 - Implemented Paint (), to do class specific painting.
12745
12746 2004-10-15 07:16  ravindra
12747
12748         * ButtonBase.cs:
12749                 - Redraw () is not virtual now.
12750                 - Added an internal virtual method Paint (), so that
12751                 derived classes can do their painting on their own.
12752                 - Modified OnPaint () to call Paint ().
12753
12754 2004-10-15 06:43  jordi
12755
12756         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12757           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12758
12759 2004-10-15 00:30  ravindra
12760
12761         * MessageBox.cs:
12762                 - MessageBox on windows does not have min/max buttons.
12763                 This change in CreateParams fixes this on Windows. We
12764                 still need to implement this windowstyle behavior in
12765                 our X11 driver.
12766
12767 2004-10-14 05:14  ravindra
12768
12769         * ToolBar.cs:
12770                 - Changed Redraw () to do a Refresh () always.
12771                 - Fixed the MouseMove event handling when mouse is pressed,
12772                 ie drag event handling.
12773                 - Replaced the usage of ToolBarButton.Pressed property to
12774                 ToolBarButton.pressed internal variable.
12775
12776 2004-10-14 05:10  ravindra
12777
12778         * ToolBarButton.cs:
12779                 - Added an internal member 'inside' to handle mouse move
12780                 with mouse pressed ie mouse drag event.
12781                 - Changed 'Pressed' property to return true only when
12782                 'inside' and 'pressed' are both true.
12783                 - Some coding style love.
12784
12785 2004-10-14 00:17  ravindra
12786
12787         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12788           public method.
12789
12790 2004-10-14 00:15  ravindra
12791
12792         * ButtonBase.cs: Redraw () related improvements.
12793
12794 2004-10-14 00:14  ravindra
12795
12796         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12797           removed unnecessary calls to Button.Show () method.
12798
12799 2004-10-13 17:50  pbartok
12800
12801         * XplatUIX11.cs:
12802           - Formatting fix
12803           - Removed destroying of window until we solve the problem of X
12804             destroying the window before us on shutdown
12805
12806 2004-10-13 16:32  pbartok
12807
12808         * ButtonBase.cs:
12809           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12810
12811 2004-10-13 14:18  pbartok
12812
12813         * XplatUIX11.cs:
12814           - Added code to destroy the X window
12815
12816 2004-10-13 14:18  pbartok
12817
12818         * XplatUIWin32.cs:
12819           - Added code to destroy a window
12820
12821 2004-10-13 14:12  pbartok
12822
12823         * ButtonBase.cs:
12824           - Added the Redraw on Resize that got dropped in the last rev
12825
12826 2004-10-13 09:06  pbartok
12827
12828         * ThemeWin32Classic.cs:
12829           - Path from John BouAntoun:
12830             * Fix check rendering (centre correctly for normal style, offset
12831               correctly for FlatStyle).
12832             * Fix border color usage (use backcolor) for FlatStyle.Popup
12833             * Use checkbox.Capture instead of checkbox.is_pressed when
12834               rendering flatstyle states.
12835
12836 2004-10-12 21:48  pbartok
12837
12838         * ThemeWin32Classic.cs:
12839           - Removed all occurences of SystemColors and replaced them with the
12840             matching theme color
12841
12842 2004-10-12 21:41  pbartok
12843
12844         * ThemeWin32Classic.cs:
12845           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12846             him using the function for flatstyle drawing
12847           - Changed functions to use the new version of CPDrawBorder3D
12848
12849 2004-10-12 21:15  pbartok
12850
12851         * ControlPaint.cs:
12852           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12853             match MS documentation. They need to return defined colors if the
12854             passed color matches the configured control color. Thanks to John
12855             BouAntoun for pointing this out.
12856
12857 2004-10-12 20:57  pbartok
12858
12859         * Control.cs:
12860           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12861             color is changed
12862
12863 2004-10-12 20:46  pbartok
12864
12865         * CheckBox.cs:
12866           - Fix from John BouAntoun: Now properly sets the Appearance property
12867
12868 2004-10-12 20:45  pbartok
12869
12870         * ThemeWin32Classic.cs:
12871           - Fixes from John BouAntoun: now handles forecolors and backcolors
12872             for flatstyle rendered controls much better; It also fixes normal
12873             checkbox rendering when pushed or disabled.
12874
12875 2004-10-08 02:50  jordi
12876
12877         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12878           work
12879
12880 2004-10-07 08:56  jordi
12881
12882         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12883
12884 2004-10-06 03:59  jordi
12885
12886         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12887           XplatUIWin32.cs: removes warnings from compilation
12888
12889 2004-10-05 12:23  jackson
12890
12891         * RadioButton.cs: Fix ctor
12892
12893 2004-10-05 11:10  pbartok
12894
12895         * MessageBox.cs:
12896           - Partial implementation by Benjamin Dasnois
12897
12898 2004-10-05 10:15  jackson
12899
12900         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12901           by John BouAntoun
12902
12903 2004-10-05 03:07  ravindra
12904
12905         * ToolBar.cs:
12906                 - Removed a private method, Draw ().
12907                 - Fixed the ButtonDropDown event handling.
12908                 - Fixed MouseMove event handling.
12909
12910 2004-10-05 03:04  ravindra
12911
12912         * ThemeWin32Classic.cs:
12913                 - Added DrawListView method and ListViewDefaultSize property.
12914                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12915                 - Changed DOS style CRLF to Unix format (dos2unix).
12916
12917 2004-10-05 03:03  ravindra
12918
12919         * Theme.cs:
12920                 - Added DrawListView method and ListViewDefaultSize property.
12921
12922 2004-10-05 02:42  ravindra
12923
12924         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12925           clicks on DropDown arrow.
12926
12927 2004-10-04 22:56  jackson
12928
12929         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12930           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12931           Control handle the buffers, derived classes should not have to
12932           CreateBuffers themselves.
12933
12934 2004-10-04 21:20  jackson
12935
12936         * StatusBar.cs: The control handles resizing the buffers now.
12937
12938 2004-10-04 21:18  jackson
12939
12940         * Control.cs: When resizing the buffers should be invalidated. This
12941           should be handled in Control not in derived classes.
12942
12943 2004-10-04 14:45  jackson
12944
12945         * TabPage.cs: oops
12946
12947 2004-10-04 02:14  pbartok
12948
12949         * LeftRightAlignment.cs:
12950           - Initial check-in
12951
12952 2004-10-04 01:09  jordi
12953
12954         * ThemeWin32Classic.cs: fixes right button position causing right
12955           button not showing on horizontal scrollbars
12956
12957 2004-10-02 13:12  pbartok
12958
12959         * XplatUIX11.cs:
12960           - Simplified the Invalidate method by using an X call instead of
12961             generating the expose ourselves
12962           - Added an expose when the window background is changed
12963           - Implemented ClientToScreen method
12964
12965 2004-10-02 13:08  pbartok
12966
12967         * XplatUIWin32.cs:
12968           - Added Win32EnableWindow method (test for implementing modal
12969           dialogs)
12970           - Added ClientToScreen method and imports
12971
12972 2004-10-02 13:07  pbartok
12973
12974         * XplatUI.cs, XplatUIDriver.cs:
12975           - Added ClientToScreen coordinate translation method
12976
12977 2004-10-02 13:06  pbartok
12978
12979         * KeyPressEventArgs.cs:
12980           - Fixed access level for constructor
12981
12982 2004-10-02 13:06  pbartok
12983
12984         * NativeWindow.cs:
12985           - Changed access level for the window_collection hash table
12986
12987 2004-10-02 13:05  pbartok
12988
12989         * Form.cs:
12990           - Added KeyPreview property
12991           - Added Menu property (still incomplete, pending Jordi's menu work)
12992           - Implemented ProcessCmdKey
12993           - Implemented ProcessDialogKey
12994           - Implemented ProcessKeyPreview
12995
12996 2004-10-02 13:02  pbartok
12997
12998         * Control.cs:
12999           - Added private method to get the Control object from the window
13000           handle
13001           - Implemented ContextMenu property
13002           - Implemented PointToScreen
13003           - Implemented PreProcessMessage
13004           - Implemented IsInputChar
13005           - Implemented IsInputKey
13006           - Implemented ProcessCmdKey
13007           - Completed ProcessKeyEventArgs
13008           - Fixed message loop to call the proper chain of functions on key
13009           events
13010           - Implemented ProcessDialogChar
13011           - Implemented ProcessDialogKey
13012           - Implemented ProcessKeyMessage
13013           - Implemented ProcessKeyPreview
13014           - Added RaiseDragEvent stub (MS internal method)
13015           - Added RaiseKeyEvent stub (MS internal method)
13016           - Added RaiseMouseEvent stub (MS Internal method)
13017           - Added RaisePaintEvent stub (MS Internal method)
13018           - Added ResetMouseEventArgs stub (MS Internal method)
13019           - Implemented RtlTranslateAlignment
13020           - Implemented RtlTranslateContent
13021           - Implemented RtlTranslateHorizontal
13022           - Implemented RtlTranslateLeftRight
13023           - Added generation of KeyPress event
13024
13025 2004-10-02 05:57  ravindra
13026
13027         * ListViewItem.cs: Added attributes.
13028
13029 2004-10-02 05:32  ravindra
13030
13031         * ListView.cs: Added attributes.
13032
13033 2004-10-01 11:53  jackson
13034
13035         * Form.cs: Implement the Close method so work on MessageBox can
13036           continue.
13037
13038 2004-09-30 14:06  pbartok
13039
13040         * XplatUIX11.cs:
13041           - Bug fixes
13042
13043 2004-09-30 11:34  jackson
13044
13045         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
13046
13047 2004-09-30 07:26  ravindra
13048
13049         * ListViewItemConverter.cs: Converter for ListViewItem.
13050
13051 2004-09-30 07:26  ravindra
13052
13053         * SortOrder.cs: Enum for ListView control.
13054
13055 2004-09-30 07:25  ravindra
13056
13057         * ColumnHeader.cs: Supporting class for ListView control.
13058
13059 2004-09-30 07:24  ravindra
13060
13061         * ListView.cs, ListViewItem.cs: Initial implementation.
13062
13063 2004-09-30 07:20  ravindra
13064
13065         * ItemActivation.cs: Enum for ListView Control.
13066
13067 2004-09-29 20:29  pbartok
13068
13069         * XplatUIX11.cs:
13070           - Added lookup of pixel value for background color; tries to get a
13071             color 'close' to the requested color, it avoids having to create a
13072             colormap.  Depending on the display this could mean the used color
13073             is slightly off the desired color. Might have to change it to a more
13074             resource intensive colormap approach, but it will work as a
13075           workaround to avoid red screens.
13076
13077 2004-09-29 14:27  jackson
13078
13079         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
13080
13081 2004-09-28 12:44  pbartok
13082
13083         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
13084           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
13085           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
13086           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
13087           TrackBar.cs, VScrollBar.cs:
13088           - Streamlined Theme interfaces:
13089             * Each DrawXXX method for a control now is passed the object for
13090               the control to be drawn in order to allow accessing any state the
13091               theme might require
13092
13093             * ControlPaint methods for the theme now have a CP prefix to avoid
13094               name clashes with the Draw methods for controls
13095
13096             * Every control now retrieves it's DefaultSize from the current
13097             theme
13098
13099 2004-09-28 12:17  jackson
13100
13101         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
13102           drawing
13103
13104 2004-09-24 14:57  jackson
13105
13106         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
13107           Gives us a nice little performance boost.
13108
13109 2004-09-24 12:02  jackson
13110
13111         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
13112           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
13113           Control and supporting classes. Initial checkin
13114
13115 2004-09-23 13:08  jackson
13116
13117         * Form.cs: Temp build fixage
13118
13119 2004-09-23 01:39  ravindra
13120
13121         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
13122           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
13123           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
13124           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
13125           EventHandlers needed by ListView Control.
13126
13127 2004-09-22 14:12  pbartok
13128
13129         * ScrollableControl.cs:
13130           - Implemented DockPadding property
13131           - Implemented AutoScroll property
13132           - Implemented AutoScrollMargin property
13133           - Implemented AutoScrollMinSize property
13134           - Implemented AutoScrollPosition property
13135           - Implemented DisplayRectangle property (still incomplete)
13136           - Implemented CreateParams property
13137           - Implemented HScroll property
13138           - Implemented VScroll property
13139           - Implemented OnVisibleChanged property
13140
13141 2004-09-22 14:09  pbartok
13142
13143         * Form.cs:
13144           - Added Form.ControllCollection class
13145           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
13146             RemoveOwnedForm (still incomplete, missing on-top and common
13147             minimize/maximize behaviour)
13148           - Added StartPosition property (still incomplete, does not use when
13149             creating the form)
13150           - Added ShowDialog() methods (still incomplete, missing forcing the
13151             dialog modal)
13152
13153 2004-09-22 14:05  pbartok
13154
13155         * Application.cs:
13156           - Added message loop for modal dialogs
13157
13158 2004-09-22 14:02  pbartok
13159
13160         * GroupBox.cs:
13161           - Fixed wrong types for events
13162
13163 2004-09-22 14:00  pbartok
13164
13165         * Shortcut.cs, FormWindowState.cs:
13166           - Fixed wrong values
13167
13168 2004-09-22 12:01  jackson
13169
13170         * Control.cs: Text is never null
13171
13172 2004-09-20 22:14  pbartok
13173
13174         * XplatUIWin32.cs:
13175           - Fixed accessibility level for Idle handler
13176
13177 2004-09-20 18:54  jackson
13178
13179         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13180           XplatUIX11.cs: New message loop that uses poll so we don't get a
13181           busy loop
13182
13183 2004-09-17 10:43  pbartok
13184
13185         * ScrollBar.cs:
13186           - Fixed behaviour of arrow buttons. Now properly behaves like
13187             Buttons (and like Microsoft's scrollbar arrow buttons)
13188
13189 2004-09-17 10:14  pbartok
13190
13191         * ScrollBar.cs:
13192           - Added missing release of keyboard/mouse capture
13193
13194 2004-09-17 06:18  jordi
13195
13196         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
13197           Theme.cs: Very early menu support
13198
13199 2004-09-16 17:45  pbartok
13200
13201         * XplatUIWin32.cs:
13202           - Fixed sending a window to the front
13203           - Added overload for SetWindowPos to avoid casting
13204
13205 2004-09-16 17:44  pbartok
13206
13207         * Control.cs:
13208           - Added SendToBack and BringToFront methods
13209
13210 2004-09-16 07:00  ravindra
13211
13212         * Copyright: Added Novell URL.
13213
13214 2004-09-16 07:00  ravindra
13215
13216         * ToolBar.cs: Invalidate should be done before redrawing.
13217
13218 2004-09-15 21:19  ravindra
13219
13220         * ColumnHeaderStyle.cs: Enum for ListView Control.
13221
13222 2004-09-15 21:18  ravindra
13223
13224         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13225           ListView Control.
13226
13227 2004-09-13 18:26  jackson
13228
13229         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13230           properly
13231
13232 2004-09-13 18:13  jackson
13233
13234         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13235           a second thread and post messages into the main threads message
13236           queue. This makes timing much more consistent. Both win2K and XP
13237           have a minimum timer value of 15 milliseconds, so we now do this
13238           too.
13239
13240 2004-09-13 15:18  pbartok
13241
13242         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13243           XplatUIX11.cs:
13244           - Added Z-Ordering methods
13245
13246 2004-09-13 10:56  pbartok
13247
13248         * Form.cs:
13249           - Fixed #region names
13250           - Moved properties and methods into their proper #regions
13251
13252 2004-09-13 10:51  pbartok
13253
13254         * Form.cs:
13255           - Added Accept and CancelButton properties
13256           - Added ProcessDialogKey() method
13257
13258 2004-09-13 08:18  pbartok
13259
13260         * IWindowTarget.cs:
13261           - Initial check-in
13262
13263 2004-09-10 21:50  pbartok
13264
13265         * Control.cs:
13266           - Added DoDragDrop() [incomplete]
13267           - Properly implemented 'Visible' handling
13268           - Added SetVisibleCore()
13269           - Implemented FindChildAtPoint()
13270           - Implemented GetContainerControl()
13271           - Implemented Hide()
13272
13273 2004-09-10 19:28  pbartok
13274
13275         * Control.cs:
13276           - Moved methods into their appropriate #regions
13277           - Reordered methods within regions alphabetically
13278
13279 2004-09-10 18:57  pbartok
13280
13281         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13282           - Added method to retrieve text from window
13283
13284 2004-09-10 18:56  pbartok
13285
13286         * Control.cs:
13287           - Moved some internal functions into the internal region
13288           - Implemented FontHeight
13289           - Implemented RenderRightToLeft
13290           - Implemented ResizeRedraw
13291           - Implemented ShowFocusCues
13292           - Implemented ShowKeyboardCues
13293           - Implemented FromChildHandle
13294           - Implemented FromHandle
13295           - Implemented IsMnemonic
13296           - Implemented ReflectMessage
13297           - All public and protected Static Methods are now complete
13298
13299 2004-09-10 16:54  pbartok
13300
13301         * Control.cs:
13302           - Implemented remaining missing public instance properties
13303           - Alphabetized some out of order properties
13304
13305 2004-09-10 05:51  ravindra
13306
13307         * PictureBox.cs: Added a check for null image.
13308
13309 2004-09-10 00:59  jordi
13310
13311         * GroupBox.cs: remove cvs tag
13312
13313 2004-09-09 05:25  ravindra
13314
13315         * ToolBar.cs: Make redraw accessible from ToolBarButton.
13316
13317 2004-09-09 05:23  ravindra
13318
13319         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13320           parent redraw.
13321
13322 2004-09-09 02:28  pbartok
13323
13324         * ThemeWin32Classic.cs:
13325           - Improve disabled string look
13326
13327 2004-09-09 01:15  jordi
13328
13329         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13330           args and handler
13331
13332 2004-09-08 23:56  ravindra
13333
13334         * ItemBoundsPortion.cs: It's enum, not a class!
13335
13336 2004-09-08 23:47  ravindra
13337
13338         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13339           Enums for Form.
13340
13341 2004-09-08 21:13  ravindra
13342
13343         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13344           ListView control.
13345
13346 2004-09-08 21:03  ravindra
13347
13348         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13349           avoid crash.
13350
13351 2004-09-08 21:01  ravindra
13352
13353         * ScrollableControl.cs: Removed unreachable code.
13354
13355 2004-09-08 06:45  jordi
13356
13357         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13358
13359 2004-09-08 01:00  jackson
13360
13361         * XplatUIX11.cs: Only run the timers when updating the message
13362           queue. This effectively gives X messages a higher priority then
13363           timer messages. Timers still need love though
13364
13365 2004-09-07 14:01  jackson
13366
13367         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13368           this for us and the handle is no longer valid.
13369
13370 2004-09-07 13:59  jackson
13371
13372         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13373           loop that manages to not crash. TODO: Add poll and cleanup timers
13374
13375 2004-09-07 11:12  jordi
13376
13377         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13378
13379 2004-09-07 03:40  jordi
13380
13381         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13382           fixes, methods, multiple links
13383
13384 2004-09-06 06:55  jordi
13385
13386         * Control.cs: Caches ClientRectangle rectangle value
13387
13388 2004-09-05 02:03  jordi
13389
13390         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13391           certain situations
13392
13393 2004-09-04 11:10  jordi
13394
13395         * Label.cs: Refresh when font changed
13396
13397 2004-09-02 16:24  pbartok
13398
13399         * Control.cs:
13400           - Added sanity check to creation of double buffer bitmap
13401
13402 2004-09-02 16:24  pbartok
13403
13404         * ButtonBase.cs:
13405           - Fixed selection of text color
13406           - Fixed handling of resize event; now properly recreates double
13407             buffering bitmap
13408           - Added missing assignment of TextAlignment
13409           - Added proper default for TextAlignment
13410
13411 2004-09-02 14:26  pbartok
13412
13413         * RadioButton.cs:
13414           - Added missing RadioButton.RadioButtonAccessibleObject class
13415
13416 2004-09-02 14:26  pbartok
13417
13418         * Control.cs:
13419           - Added missing Control.ControlAccessibleObject class
13420           - Started to implement Select()ion mechanisms, still very incomplete
13421
13422 2004-09-02 14:25  pbartok
13423
13424         * AccessibleObject.cs:
13425           - Added missing methods
13426
13427 2004-09-02 14:23  pbartok
13428
13429         * AccessibleNavigation.cs, AccessibleSelection.cs:
13430           - Initial check-in
13431
13432 2004-09-02 10:32  jordi
13433
13434         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13435           pool for pens, brushes, and hatchbruses
13436
13437 2004-09-01 15:30  jackson
13438
13439         * StatusBar.cs: Fix typo
13440
13441 2004-09-01 14:44  pbartok
13442
13443         * RadioButton.cs:
13444           - Fixed state
13445
13446 2004-09-01 14:39  pbartok
13447
13448         * Button.cs, RadioButton.cs:
13449           - Functional initial check-in
13450
13451 2004-09-01 14:01  pbartok
13452
13453         * CheckBox.cs:
13454           - Added missing default
13455           - Added missing region mark
13456
13457 2004-09-01 09:10  jordi
13458
13459         * Label.cs: fixes method signatures, new methods, events, fixes
13460           autosize
13461
13462 2004-09-01 07:19  jordi
13463
13464         * Control.cs: Init string variables with an empty object
13465
13466 2004-09-01 04:20  jordi
13467
13468         * Control.cs: fires OnFontChanged event
13469
13470 2004-08-31 20:07  pbartok
13471
13472         * ButtonBase.cs:
13473           - Enabled display of strings
13474
13475 2004-08-31 20:05  pbartok
13476
13477         * Form.cs:
13478           - Added (partial) implementation of DialogResult; rest needs to be
13479             implemented when the modal loop code is done
13480
13481 2004-08-31 19:55  pbartok
13482
13483         * CheckBox.cs:
13484           - Fixed to match the removal of the needs_redraw concept
13485
13486 2004-08-31 19:55  pbartok
13487
13488         * ButtonBase.cs:
13489           - Removed the rather odd split between 'needs redraw' and redrawing
13490           - Now handles the events that require regeneration (ambient
13491             properties and size)
13492
13493 2004-08-31 19:41  pbartok
13494
13495         * Control.cs:
13496           - Added firing of BackColorChanged event
13497           - Added TopLevelControl property
13498           - Fixed handling of WM_ERASEBKGRND message
13499
13500 2004-08-31 12:49  pbartok
13501
13502         * ButtonBase.cs:
13503           - Removed debug
13504           - Minor fixes
13505
13506 2004-08-31 12:48  pbartok
13507
13508         * CheckBox.cs:
13509           - Finished (famous last words)
13510
13511 2004-08-31 04:35  jordi
13512
13513         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13514           scrolling bugs, adds new methods
13515
13516 2004-08-30 14:42  pbartok
13517
13518         * CheckBox.cs:
13519           - Implemented CheckBox drawing code
13520
13521 2004-08-30 14:42  pbartok
13522
13523         * ButtonBase.cs:
13524           - Made Redraw() and CheckRedraw() virtual
13525           - Improved mouse up/down/move logic to properly track buttons
13526
13527 2004-08-30 09:44  pbartok
13528
13529         * CheckBox.cs:
13530           - Updated to fix broken build. Not complete yet.
13531
13532 2004-08-30 09:28  pbartok
13533
13534         * CheckState.cs:
13535           - Initial checkin
13536
13537 2004-08-30 09:17  pbartok
13538
13539         * Appearance.cs:
13540           - Initial check-in
13541
13542 2004-08-27 16:12  ravindra
13543
13544         * ToolBarButton.cs: Added TypeConverter attribute.
13545
13546 2004-08-27 16:07  ravindra
13547
13548         * ImageIndexConverter.cs: Implemented.
13549
13550 2004-08-27 14:17  pbartok
13551
13552         * Control.cs:
13553           - Removed unneeded stack vars
13554           - First attempt to fix sizing issues when layout is suspended
13555
13556 2004-08-25 15:35  jordi
13557
13558         * ScrollBar.cs: more fixes to scrollbar
13559
13560 2004-08-25 14:04  ravindra
13561
13562         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13563           Added the missing divider code and grip for ToolBar Control.
13564
13565 2004-08-25 13:20  pbartok
13566
13567         * Control.cs:
13568           - Control now properly passes the ambient background color to child
13569             controls
13570
13571 2004-08-25 13:20  jordi
13572
13573         * ScrollBar.cs: small bug fix regarding bar position
13574
13575 2004-08-25 12:33  pbartok
13576
13577         * Timer.cs:
13578           - Now only calls SetTimer or KillTimer if the enabled state has
13579           changed
13580
13581 2004-08-25 12:33  pbartok
13582
13583         * XplatUIWin32.cs:
13584           - Fixed timer handling, now seems to work
13585           - Improved error message for window creation
13586
13587 2004-08-25 12:32  pbartok
13588
13589         * Control.cs:
13590           - Fixed generation of MouseUp message
13591
13592 2004-08-25 12:29  jordi
13593
13594         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13595           and fixes for progressbar
13596
13597 2004-08-24 18:43  ravindra
13598
13599         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13600           in ToolBar control.
13601
13602 2004-08-24 17:15  pbartok
13603
13604         * Panel.cs:
13605           - Added #region
13606           - Added missing events
13607           - Alphabetized
13608
13609 2004-08-24 17:14  pbartok
13610
13611         * StatusBar.cs, PictureBox.cs:
13612           - Now uses Control's CreateParams
13613
13614 2004-08-24 16:36  pbartok
13615
13616         * XplatUIX11.cs:
13617           - Fixed background color handling
13618           - Fixed sending of enter/leave events on a grab
13619
13620 2004-08-24 16:35  pbartok
13621
13622         * X11Structs.cs:
13623           - Refined definitions for CrossingEvent
13624
13625 2004-08-24 12:37  jordi
13626
13627         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13628           formmating, methods signature, and adds missing events
13629
13630 2004-08-24 12:24  jordi
13631
13632         * Control.cs: fire OnEnabledChanged event
13633
13634 2004-08-24 11:17  pbartok
13635
13636         * XplatUIWin32.cs:
13637           - Implemented SetTimer() and KillTimer()
13638
13639 2004-08-24 11:16  pbartok
13640
13641         * XplatUIX11.cs:
13642           - Now uses Remove instead of Add to kill the timer
13643
13644 2004-08-24 10:16  jackson
13645
13646         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13647           picture boxes in the theme now. Draw picture box borders and obey
13648           sizing modes
13649
13650 2004-08-24 05:49  jackson
13651
13652         * Timer.cs: Remove top secret debugging code
13653
13654 2004-08-24 05:34  jackson
13655
13656         * PictureBox.cs: Temp hack to make picture boxes draw their full
13657           image
13658
13659 2004-08-24 05:29  jackson
13660
13661         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13662           XplatUIX11.cs: Move timers to the driver level. On X they are
13663           queued by the driver and checked on idle.
13664
13665 2004-08-24 01:07  jackson
13666
13667         * XplatUIX11.cs: Use a queue for async messages instead of passing
13668           them as ClientMessages since that was totally broken. Also simply
13669           check for events and return an idle message if none are found. This
13670           gives us an idle handler, and prevents deadlocking when no messages
13671           are in the queue.
13672
13673 2004-08-23 18:19  ravindra
13674
13675         * XplatUIWin32.cs: Removed the unwanted destructor.
13676
13677 2004-08-23 17:27  pbartok
13678
13679         * ButtonBase.cs:
13680           - Finishing touches. Works now, just needs some optimizations.
13681
13682 2004-08-23 16:53  jordi
13683
13684         * ScrollBar.cs: small fix
13685
13686 2004-08-23 16:45  pbartok
13687
13688         * Application.cs:
13689           - Removed debug output
13690           - Simplifications
13691
13692 2004-08-23 16:43  jordi
13693
13694         * ScrollBar.cs: [no log message]
13695
13696 2004-08-23 16:10  pbartok
13697
13698         * Form.cs:
13699           - Fixed handling of WM_CLOSE message
13700           - Removed debug output
13701
13702 2004-08-23 16:09  pbartok
13703
13704         * Application.cs:
13705           - Added handling of Idle event
13706           - Added handling of form closing
13707           - Fixed reporting of MessageLoop property
13708           - Removed some unneeded code, should provide a bit of a speedup
13709
13710 2004-08-23 15:22  pbartok
13711
13712         * Control.cs:
13713           - Added InitLayout() method
13714           - Added code to properly perform layout when Anchor or Dock property
13715             is changed
13716           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13717             LAMESPEC, tried to do it in a way that makes sense
13718
13719 2004-08-23 14:10  jordi
13720
13721         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13722           properties and methods
13723
13724 2004-08-23 13:55  pbartok
13725
13726         * Control.cs:
13727           - Properly fixed Jordi's last fix
13728           - Now uses Cursor's Position property instead of calling XplatUI
13729           directly
13730
13731 2004-08-23 13:44  jordi
13732
13733         * PaintEventHandler.cs: Adding missing attribute
13734
13735 2004-08-23 13:39  pbartok
13736
13737         * Cursor.cs:
13738           - Implemented Position property
13739
13740 2004-08-23 13:39  pbartok
13741
13742         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13743           - Added method to move mouse cursor
13744
13745 2004-08-23 13:39  pbartok
13746
13747         * XplatUIX11.cs:
13748           - Fixed setting of background color
13749           - Added method to move mouse cursor
13750
13751 2004-08-23 13:16  jordi
13752
13753         * Control.cs: avoids null exception
13754
13755 2004-08-22 17:46  jackson
13756
13757         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13758           PictureBox
13759
13760 2004-08-22 17:40  jackson
13761
13762         * XplatUIX11.cs: Add some missing locks
13763
13764 2004-08-22 15:10  pbartok
13765
13766         * Control.cs, Form.cs:
13767           - Removed OverlappedWindow style from Control, instead it's default
13768             now is child
13769           - Made form windows OverlappedWindow by default
13770
13771 2004-08-22 13:34  jackson
13772
13773         * ScrollBar.cs: Update the position through the Value property so
13774           the OnValueChanged event is raised.
13775
13776 2004-08-22 12:04  pbartok
13777
13778         * SWF.csproj:
13779           - Added Cursor.cs and UserControl.cs
13780
13781 2004-08-22 12:03  pbartok
13782
13783         * Cursor.cs:
13784           - Started implementation, not usable yet
13785
13786 2004-08-22 12:00  pbartok
13787
13788         * UserControl.cs:
13789           - Implemented UserControl (complete)
13790
13791 2004-08-21 19:20  ravindra
13792
13793         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13794
13795 2004-08-21 18:49  ravindra
13796
13797         * ToolBar.cs: Probably this completes the missing attributes in
13798           toolbar control.
13799
13800 2004-08-21 18:03  ravindra
13801
13802         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13803           Fixed toolbar control signatures.
13804
13805 2004-08-21 16:32  pbartok
13806
13807         * LinkLabel.cs:
13808           - Signature Fixes
13809
13810 2004-08-21 16:30  pbartok
13811
13812         * Label.cs:
13813           - Signature fixes
13814
13815 2004-08-21 16:19  pbartok
13816
13817         * Control.cs, Label.cs:
13818           - Signature fixes
13819
13820 2004-08-21 15:57  pbartok
13821
13822         * ButtonBase.cs:
13823           - Added loads of debug output for development
13824           - Fixed typo in method name
13825
13826 2004-08-21 15:52  pbartok
13827
13828         * ToolBarButtonClickEventArgs.cs:
13829           - Added missing base class
13830
13831 2004-08-21 14:53  pbartok
13832
13833         * Control.cs:
13834           - Updated to match new GrabWindow signature
13835
13836 2004-08-21 14:51  pbartok
13837
13838         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13839           - Added method to get default display size
13840
13841 2004-08-21 14:23  pbartok
13842
13843         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13844           - Added method to query current grab state
13845           - Added argument to allow confining a grab to a window
13846
13847 2004-08-21 14:22  pbartok
13848
13849         * Keys.cs:
13850           - Added [Flags] attribute so that modifiers can be used in bitwise
13851           ops
13852
13853 2004-08-21 14:21  pbartok
13854
13855         * TrackBar.cs, ScrollBar.cs:
13856           - Replaced direct XplatUI calls with their Control counterpart
13857
13858 2004-08-21 13:32  pbartok
13859
13860         * Control.cs:
13861           - Implemented Created property
13862
13863 2004-08-21 13:28  pbartok
13864
13865         * Control.cs:
13866           - Implemented ContainsFocus
13867
13868 2004-08-21 13:26  pbartok
13869
13870         * Control.cs:
13871           - Implemented CausesValidation
13872
13873 2004-08-21 13:21  pbartok
13874
13875         * Control.cs:
13876           - Implemented CanFocus
13877           - Implemented CanSelect
13878           - Implemented Capture
13879
13880 2004-08-21 12:35  pbartok
13881
13882         * XplatUIWin32.cs:
13883           - Fixed bug with Async message handling
13884           - Implemented getting the ModifierKeys
13885
13886 2004-08-21 12:32  jackson
13887
13888         * AsyncMethodResult.cs: Make sure we have the mutex before we
13889           release it. Fixes BeginInvoke on windows
13890
13891 2004-08-21 11:31  pbartok
13892
13893         * XplatUIWin32.cs, XplatUIX11.cs:
13894           - Drivers now return proper mouse state
13895
13896 2004-08-21 10:54  jackson
13897
13898         * Control.cs: Implement EndInvoke
13899
13900 2004-08-21 10:48  jackson
13901
13902         * Timer.cs: Remove unneeded finalizer
13903
13904 2004-08-20 19:52  ravindra
13905
13906         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13907           in mouse event handling in the ToolBar control.
13908
13909 2004-08-20 19:50  ravindra
13910
13911         * ImageList.cs: Changed draw method to use the arguments passed in
13912           to draw the image.
13913
13914 2004-08-20 18:58  pbartok
13915
13916         * XplatUIStructs.cs:
13917           - Added private message for async communication
13918
13919 2004-08-20 17:38  ravindra
13920
13921         * Control.cs: Made RightToLeft property virtual and removed a
13922           Console.WriteLine.
13923
13924 2004-08-20 14:39  jordi
13925
13926         * ThemeGtk.cs: use style_attach
13927
13928 2004-08-20 14:39  pbartok
13929
13930         * XplatUIWin32.cs:
13931           - Added jackson's Async code from X11 to Win32
13932
13933 2004-08-20 14:09  pbartok
13934
13935         * SWF.csproj:
13936           - Added all new files
13937
13938 2004-08-20 14:09  pbartok
13939
13940         * Control.cs:
13941           - Added call to set window background color
13942
13943 2004-08-20 14:03  pbartok
13944
13945         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13946           - Added method for setting the window background
13947
13948 2004-08-20 14:02  pbartok
13949
13950         * XplatUIWin32.cs:
13951           - Added method for setting the background color
13952           - Added handling for erasing the window background
13953
13954 2004-08-20 13:45  jordi
13955
13956         * TrackBar.cs: fixes timer, new properties and methods
13957
13958 2004-08-20 13:34  jackson
13959
13960         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13961           correct thread
13962
13963 2004-08-20 13:22  jackson
13964
13965         * Timer.cs: Timer Tick events are now handed through Controls Async
13966           mechanism so the callbacks are executed in the same thread as X
13967
13968 2004-08-20 13:19  jackson
13969
13970         * XplatUIDriver.cs: Expose functionality to send async messages
13971           through the driver
13972
13973 2004-08-20 13:18  jackson
13974
13975         * Control.cs: Implement Begininvoke
13976
13977 2004-08-20 13:14  jackson
13978
13979         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13980           messages through the driver
13981
13982 2004-08-20 13:12  jackson
13983
13984         * XplatUIX11.cs: Lock before all X operations. Also added Async
13985           method functionality through XSendEvent
13986
13987 2004-08-20 13:11  jackson
13988
13989         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13990           This will screw up on 64 bit systems)
13991
13992 2004-08-20 13:10  jackson
13993
13994         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13995           Async messages through X/Win32
13996
13997 2004-08-19 19:39  pbartok
13998
13999         * XplatUIX11.cs:
14000           - Updated code to match new HandleData.DeviceContext type
14001
14002 2004-08-19 19:38  pbartok
14003
14004         * HandleData.cs:
14005           - Made DeviceContext a generic object to allow usage from various
14006           drivers
14007           - Added support for queueing Windows messages
14008
14009 2004-08-19 19:37  pbartok
14010
14011         * XplatUIWin32.cs:
14012           - Added generation of MouseEnter, MouseLeave and MouseHover events
14013           - Added cleanup on EndPaint
14014
14015 2004-08-19 19:17  pbartok
14016
14017         * Control.cs:
14018           - Added handling of WM_MOUSEHOVER
14019           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
14020           code
14021
14022 2004-08-19 18:55  jordi
14023
14024         * ThemeGtk.cs: fixes button order
14025
14026 2004-08-19 18:12  jordi
14027
14028         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
14029
14030 2004-08-19 17:09  pbartok
14031
14032         * Control.cs:
14033           - Added Right property
14034           - Added RightToLeft property
14035
14036 2004-08-19 16:27  jordi
14037
14038         * ThemeGtk.cs: experimental GTK theme support
14039
14040 2004-08-19 16:26  jordi
14041
14042         * ITheme.cs, Theme.cs: move themes from an interface to a class
14043
14044 2004-08-19 16:25  jordi
14045
14046         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
14047           theme enhancaments
14048
14049 2004-08-19 16:04  pbartok
14050
14051         * XplatUIX11.cs:
14052           - Added colormap basics
14053           - Added a way to re-initialize with a different display handle
14054           - Fixed setting of the window background color
14055           - Added various X11 imports related to colors and colormaps
14056
14057 2004-08-19 15:51  pbartok
14058
14059         * X11Structs.cs:
14060           - Removed packing hints (Paolo suggested this a while back)
14061           - fixed colormap type
14062           - Added default Atom types
14063           - Added Screen and color structs and enums
14064
14065 2004-08-19 15:39  pbartok
14066
14067         * ImageList.cs:
14068           - Added missing Draw() method
14069           - Added missing RecreateHandle event
14070
14071 2004-08-19 15:30  pbartok
14072
14073         * Form.cs:
14074           - Added handling of WM_CLOSE
14075
14076 2004-08-18 13:16  jordi
14077
14078         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
14079           a table
14080
14081 2004-08-18 09:56  jordi
14082
14083         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
14084
14085 2004-08-17 15:31  ravindra
14086
14087         * SWF.csproj: Updated project.
14088
14089 2004-08-17 15:25  pbartok
14090
14091         * Control.cs:
14092           - Drawing improvement; don't call UpdateBounds if we are not visible
14093             (or have been minimized)
14094
14095 2004-08-17 15:24  pbartok
14096
14097         * XplatUIWin32.cs:
14098           - Finished IsVisible
14099           - Added Win32GetWindowPlacement
14100
14101 2004-08-17 15:08  jackson
14102
14103         * Panel.cs: Initial checkin of the Panel
14104
14105 2004-08-17 14:25  pbartok
14106
14107         * Control.cs:
14108           - Fixed broken handling of default window sizes
14109
14110 2004-08-17 13:29  jackson
14111
14112         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
14113           has a large startup time.
14114
14115 2004-08-17 10:25  jackson
14116
14117         * HandleData.cs: union areas properly
14118
14119 2004-08-17 10:12  jackson
14120
14121         * HandleData.cs: union areas properly
14122
14123 2004-08-16 20:00  ravindra
14124
14125         * ToolBar.cs, ToolBarButton.cs: Added attributes.
14126
14127 2004-08-16 18:48  ravindra
14128
14129         * ToolBar.cs: Added attributes.
14130
14131 2004-08-16 17:17  ravindra
14132
14133         * SWF.csproj: Updated project.
14134
14135 2004-08-16 17:16  jackson
14136
14137         * XplatUIX11.cs: Check for more expose events before sending a
14138           WM_PAINT so they can all be grouped together. This makes dragging a
14139           window across another window redraw in a sane way.
14140
14141 2004-08-16 15:47  pbartok
14142
14143         * Control.cs:
14144           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
14145             support OnMouseEnter/Leave()
14146           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
14147             exposure handling
14148
14149 2004-08-16 15:46  pbartok
14150
14151         * XplatUIStructs.cs, XplatUIX11.cs:
14152           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
14153           OnMouseEnter/Leave()
14154
14155 2004-08-16 15:34  jackson
14156
14157         * XplatUIX11.cs: Group multiple expose events in HandleData, make
14158           sure messages get the message field set to WM_NULL if they are not
14159           handled.
14160
14161 2004-08-16 15:24  jackson
14162
14163         * HandleData.cs: HandleData is used for storing message information
14164           for window handles
14165
14166 2004-08-15 17:23  ravindra
14167
14168         * ColorDepth.cs: Added attribute.
14169
14170 2004-08-15 17:23  ravindra
14171
14172         * SWF.csproj: Updated project for ToolBar Control.
14173
14174 2004-08-15 17:20  ravindra
14175
14176         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
14177           control and also dos2unix format.
14178
14179 2004-08-15 17:13  ravindra
14180
14181         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
14182           ToolBarButtonClickEventArgs.cs,
14183           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
14184           ToolBarTextAlign.cs: First Implementation of ToolBar control.
14185
14186 2004-08-15 15:31  pbartok
14187
14188         * ButtonBase.cs:
14189           - First (mostly) working version
14190
14191 2004-08-13 16:15  pbartok
14192
14193         * Control.cs:
14194           - Fixed Anchor default
14195
14196 2004-08-13 15:43  pbartok
14197
14198         * Control.cs:
14199           - Changed GetCursorPos signature
14200
14201 2004-08-13 15:42  pbartok
14202
14203         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14204           - Changed signature for GetCursorPos
14205
14206 2004-08-13 15:25  pbartok
14207
14208         * XplatUIX11.cs:
14209           - Cleanup
14210           - Fixed resizing/exposure handling
14211
14212 2004-08-13 15:22  jordi
14213
14214         * ThemeWin32Classic.cs: removes redundant code and fixes issues
14215           with tickposition
14216
14217 2004-08-13 14:55  jordi
14218
14219         * TrackBar.cs: change from wndproc to events
14220
14221 2004-08-13 13:00  jordi
14222
14223         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14224           XplatUIX11.cs: implements PointToClient (ScreenToClient)
14225
14226 2004-08-13 12:53  pbartok
14227
14228         * XplatUIWin32.cs:
14229           - Changed GetWindowPos to also provide client area size
14230           - Fixed broken prototypes for several win32 functions
14231
14232 2004-08-13 12:53  pbartok
14233
14234         * XplatUI.cs, XplatUIDriver.cs:
14235           - Changed GetWindowPos to also provide client area size
14236
14237 2004-08-13 12:52  pbartok
14238
14239         * XplatUIX11.cs:
14240           - Added generation of WM_POSCHANGED
14241           - Changed GetWindowPos to also provide client area size
14242
14243 2004-08-13 12:52  pbartok
14244
14245         * Control.cs:
14246           - Added Dispose() and destructor
14247           - Fixed resizing and bounds calculation
14248           - Fixed Layout
14249           - Added memory savings for invisible windows
14250
14251 2004-08-13 12:46  jordi
14252
14253         * TrackBar.cs: adds timer and grap window
14254
14255 2004-08-13 10:25  jackson
14256
14257         * Timer.cs: SWF Timer
14258
14259 2004-08-12 16:59  pbartok
14260
14261         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14262           - Implemented method to get current mouse position
14263
14264 2004-08-12 14:29  jordi
14265
14266         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14267           enhancement, fix mouse problems, highli thumb, etc
14268
14269 2004-08-12 13:31  pbartok
14270
14271         * Control.cs:
14272           - Fixed Anchoring bugs
14273
14274 2004-08-12 13:01  jackson
14275
14276         * StatusBar.cs: Don't forget things
14277
14278 2004-08-12 12:54  jackson
14279
14280         * ThemeWin32Classic.cs: Handle owner draw status bars
14281
14282 2004-08-12 12:54  jackson
14283
14284         * StatusBar.cs: Implement missing properties, events, and methods.
14285           Handle mouse clicking
14286
14287 2004-08-12 10:19  jackson
14288
14289         * StatusBarPanelClickEventArgs.cs,
14290           StatusBarPanelClickEventHandler.cs: Classes for handling status
14291           bar panel click events
14292
14293 2004-08-12 10:10  jackson
14294
14295         * Control.cs: Add missing properties
14296
14297 2004-08-12 09:46  pbartok
14298
14299         * BindingsManagerBase.cs:
14300           - Name changed to BindingManagerBase.cs
14301
14302 2004-08-12 09:25  jordi
14303
14304         * ScrollableControl.cs: calls ctrlbase instead of exeception
14305
14306 2004-08-11 16:28  pbartok
14307
14308         * InputLanguageChangingEventArgs.cs:
14309           - Never check in before compiling. Fixes the last check-in
14310
14311 2004-08-11 16:26  pbartok
14312
14313         * InputLanguageChangingEventArgs.cs:
14314           - More signature fixes
14315
14316 2004-08-11 16:20  pbartok
14317
14318         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14319           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14320           ImageListStreamer.cs, InputLanguage.cs,
14321           InputLanguageChangedEventArgs.cs,
14322           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14323           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14324           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14325           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14326           - Signature fixes
14327
14328 2004-08-11 16:16  pbartok
14329
14330         * Application.cs:
14331           - Fixed Signature
14332           - Added .Net 1.1 method
14333
14334 2004-08-11 15:25  pbartok
14335
14336         * SWF.csproj:
14337           - Fixed BindingManagerBase.cs filename
14338
14339 2004-08-11 15:22  pbartok
14340
14341         * BindingManagerBase.cs:
14342           - Was checked in with wrong filename
14343
14344 2004-08-11 14:50  pbartok
14345
14346         * SWF.csproj:
14347           - Updated
14348
14349 2004-08-11 13:41  jordi
14350
14351         * XplatUIWin32.cs: Fixes ClientRect
14352
14353 2004-08-11 13:19  pbartok
14354
14355         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14356           XplatUIX11.cs:
14357           - We had SetWindowPos and MoveWindow to set window positions and
14358             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14359             keep SetWindowPos as matching counterpart
14360           - Added some X11 sanity checking
14361
14362 2004-08-11 12:59  pbartok
14363
14364         * Control.cs:
14365           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14366             (It seems that SetBounds is just a front for SetBoundsCore and
14367              SetBoundsCore updates the underlying window system and
14368              UpdateBounds is responsible for updating the variables associated
14369              with the Control and sending the events)
14370           - Major cleanup of Size handling; we now have two sizes, client_size
14371             and bounds. Bounds defines the window with decorations, client_size
14372             without them.
14373
14374 2004-08-11 12:55  pbartok
14375
14376         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14377           - Added method to calculate difference between decorated window and
14378             raw client area
14379
14380 2004-08-11 12:54  pbartok
14381
14382         * Label.cs:
14383           - Forcing redraw on resize
14384
14385 2004-08-11 11:43  pbartok
14386
14387         * ImageList.cs:
14388           - Removed disposing of the actual images when the list is disposed
14389
14390 2004-08-11 09:13  pbartok
14391
14392         * Control.cs:
14393           - Now properly reparents windows
14394
14395 2004-08-11 08:37  pbartok
14396
14397         * Control.cs:
14398           - Duh!
14399
14400 2004-08-11 07:47  pbartok
14401
14402         * Control.cs:
14403           - Rewrote the collection stuff. Might not be as fast now, not
14404             keeping the number of children around and accessible directly, but
14405             it's more straightforward
14406
14407 2004-08-11 07:44  pbartok
14408
14409         * AccessibleObject.cs:
14410           - Fixed to match ControlCollection rewrite
14411
14412 2004-08-11 07:43  pbartok
14413
14414         * ImageList.cs:
14415           - Added missing creation of the collection list
14416
14417 2004-08-10 20:08  jackson
14418
14419         * StatusBar.cs: Get the paint message from WndProc
14420
14421 2004-08-10 19:31  jackson
14422
14423         * ThemeWin32Classic.cs: Create Brushes as little as possible
14424
14425 2004-08-10 19:20  jackson
14426
14427         * UICues.cs: Add Flags attribute
14428
14429 2004-08-10 19:19  jackson
14430
14431         * StatusBarPanel.cs: Signature cleanup
14432
14433 2004-08-10 19:10  jackson
14434
14435         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14436           Initial implementation of status bar item drawing
14437
14438 2004-08-10 17:27  jordi
14439
14440         * TrackBar.cs: add missing methods, properties, and restructure to
14441           hide extra ones
14442
14443 2004-08-10 16:24  jackson
14444
14445         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14446           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14447           attribute
14448
14449 2004-08-10 13:21  jordi
14450
14451         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14452           enhancements and standarize on win colors defaults
14453
14454 2004-08-10 12:52  jackson
14455
14456         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14457           ThemeWin32Classic.cs: Implement DrawItem functionality
14458
14459 2004-08-10 12:47  jordi
14460
14461         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14462
14463 2004-08-10 12:32  jordi
14464
14465         * Control.cs: throw ontextchange event
14466
14467 2004-08-10 11:43  pbartok
14468
14469         * Control.cs:
14470           - Added more to the still unfinished Dock/Anchor layout code
14471
14472 2004-08-10 11:39  pbartok
14473
14474         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14475           - Added GetWindowPos method
14476
14477 2004-08-10 11:36  pbartok
14478
14479         * XplatUIWin32.cs:
14480           - Implemented several methods
14481
14482 2004-08-10 09:47  jackson
14483
14484         * TrackBar.cs: Allow control to handle buffering
14485
14486 2004-08-10 09:41  jackson
14487
14488         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14489
14490 2004-08-10 09:24  jackson
14491
14492         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14493
14494 2004-08-10 09:09  jackson
14495
14496         * StatusBar.cs: Let Control handle all the buffering.
14497
14498 2004-08-10 09:08  jackson
14499
14500         * Control.cs: Control will now handle the buffering code, so each
14501           control does not have to implement this.
14502
14503 2004-08-10 08:34  jackson
14504
14505         * XplatUIDriver.cs: Use default colors from the theme
14506
14507 2004-08-09 17:12  pbartok
14508
14509         * ImageList.cs:
14510           - Fixed several bugs Ravindra pointed out
14511
14512 2004-08-09 16:11  pbartok
14513
14514         * Control.cs:
14515           - Added incomplete dock layout code
14516           - Added support for mouse wheel
14517
14518 2004-08-09 16:09  pbartok
14519
14520         * XplatUIX11.cs:
14521           - Added handling for middle and right mousebutton
14522           - Added handling for mouse wheel
14523           - Added handling for key state and mouse state and position
14524           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14525           messages
14526
14527 2004-08-09 15:40  jackson
14528
14529         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14530           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14531           checkin
14532
14533 2004-08-09 15:37  jackson
14534
14535         * StatusBar.cs: Initial implementation of StatusBar
14536
14537 2004-08-09 15:36  jackson
14538
14539         * ITheme.cs: Add support for drawing status bar and getting status
14540           bar item sizes
14541
14542 2004-08-09 15:35  pbartok
14543
14544         * MouseButtons.cs:
14545           - Fixed values
14546
14547 2004-08-09 15:34  jackson
14548
14549         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14550           status bar item sizes
14551
14552 2004-08-09 15:21  jackson
14553
14554         * ThemeWin32Classic.cs: Use known colors for default control
14555           colours
14556
14557 2004-08-09 15:12  jackson
14558
14559         * ThemeWin32Classic.cs: Make the default font static, it is static
14560           in control so this doesn't change functionality and creating fonts
14561           is sloooooow.
14562
14563 2004-08-09 14:56  pbartok
14564
14565         * X11Structs.cs:
14566           - Added GrabMode enum
14567
14568 2004-08-09 14:55  pbartok
14569
14570         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14571           - Removed Run method, was only required for initial development
14572
14573 2004-08-09 14:51  pbartok
14574
14575         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14576           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14577           capture
14578
14579 2004-08-09 13:48  pbartok
14580
14581         * XplatUIX11.cs:
14582           - Fixed default sizing for child windows
14583
14584 2004-08-09 12:56  pbartok
14585
14586         * XplatUIX11.cs:
14587           - Added generation of WM_DESTROY message
14588           - Added handling of window manager induced shutdown
14589
14590 2004-08-09 11:31  jackson
14591
14592         * ThemeWin32Classic.cs: New names for control properties
14593
14594 2004-08-09 11:25  jackson
14595
14596         * Control.cs: Use new color names
14597
14598 2004-08-09 11:02  jackson
14599
14600         * XplatUI.cs: Get default window properties from the theme
14601
14602 2004-08-09 11:01  jackson
14603
14604         * ITheme.cs: The theme engine now controls default window
14605           properties
14606
14607 2004-08-09 11:00  jackson
14608
14609         * ThemeWin32Classic.cs: Add default window color properties
14610
14611 2004-08-09 10:17  jackson
14612
14613         * ThemeWin32Classic.cs: Use correct default back color
14614
14615 2004-08-09 10:05  jackson
14616
14617         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14618           the theme now.
14619
14620 2004-08-09 09:56  jackson
14621
14622         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14623
14624 2004-08-09 09:54  jackson
14625
14626         * Control.cs: Get default properties from the theme.
14627
14628 2004-08-09 09:53  jackson
14629
14630         * ITheme.cs: Themes now handle default control properties
14631
14632 2004-08-09 09:53  jackson
14633
14634         * ThemeWin32Classic.cs: Themes now handle default control
14635           properties so coloring will be consistent
14636
14637 2004-08-08 16:54  jordi
14638
14639         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14640
14641 2004-08-08 15:08  jordi
14642
14643         * XplatUIX11.cs: fixes keyboard crash
14644
14645 2004-08-08 13:47  jordi
14646
14647         * Label.cs: add cvs header info
14648
14649 2004-08-08 12:09  jackson
14650
14651         * ThemeWin32Classic.cs: Add pen_buttonface
14652
14653 2004-08-08 11:52  jordi
14654
14655         * Label.cs, LinkLabel.cs: [no log message]
14656
14657 2004-08-08 11:34  jordi
14658
14659         * ThemeWin32Classic.cs: Use Windows Standard Colours
14660
14661 2004-08-07 17:32  jordi
14662
14663         * TrackBar.cs: throw exceptions of invalid enums values
14664
14665 2004-08-07 17:31  jordi
14666
14667         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14668           draw method name
14669
14670 2004-08-07 16:56  jackson
14671
14672         * HorizontalAlignment.cs: Initial checkin
14673
14674 2004-08-07 13:16  jordi
14675
14676         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14677           methods
14678
14679 2004-08-07 13:05  jordi
14680
14681         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14682           GetSysColor defines
14683
14684 2004-08-06 18:01  pbartok
14685
14686         * ThemeWin32Classic.cs:
14687           - Fixed some rounding issues with float/int
14688
14689 2004-08-06 18:00  jackson
14690
14691         * DockStyle.cs, AnchorStyles.cs:
14692
14693                   Add flags and serializable attributes.
14694
14695 2004-08-06 17:46  pbartok
14696
14697         * XplatUIX11.cs:
14698           - Implemented GetParent
14699
14700 2004-08-06 17:18  pbartok
14701
14702         * TrackBar.cs:
14703           - Fixed some rounding issues with float/int
14704
14705 2004-08-06 17:17  pbartok
14706
14707         * X11Structs.cs, XplatUIX11.cs:
14708           - Fixed Refresh and Invalidate
14709
14710 2004-08-06 15:30  pbartok
14711
14712         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14713           - Fixed recursive loop when resizing
14714           - Improved/fixed redrawing on expose messages
14715
14716 2004-08-06 09:53  jordi
14717
14718         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14719           keyboard navigation
14720
14721 2004-08-06 08:02  pbartok
14722
14723         * X11Structs.cs, XplatUIX11.cs:
14724           - Fixed reparenting
14725           - Fixed window border creation
14726
14727 2004-08-05 15:38  pbartok
14728
14729         * XplatUIX11.cs:
14730           - Attempted fix for reparenting problems
14731
14732 2004-08-04 15:14  pbartok
14733
14734         * Control.cs:
14735           - Fixed Invalidation bug (calculated wrong client area)
14736           - Added ClientSize setter
14737
14738 2004-08-04 15:13  pbartok
14739
14740         * Form.cs:
14741           - Added AutoScale properties
14742
14743 2004-08-04 15:13  pbartok
14744
14745         * SWF.csproj:
14746           - Added latest files
14747
14748 2004-08-04 14:11  pbartok
14749
14750         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14751           XplatUIX11.cs:
14752           - Added Invalidate handling
14753
14754 2004-08-03 17:09  jordi
14755
14756         * XplatUIDriver.cs: fixes spelling mistake
14757
14758 2004-07-27 09:53  jordi
14759
14760         * TrackBar.cs: fixes trackbar events, def classname, methods
14761           signature
14762
14763 2004-07-27 09:29  jordi
14764
14765         * ScrollBar.cs: fixes scrollbar events
14766
14767 2004-07-27 04:38  jordi
14768
14769         * Control.cs: changes to be able to run winforms samples
14770
14771 2004-07-26 11:42  jordi
14772
14773         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14774           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14775
14776 2004-07-26 05:41  jordi
14777
14778         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14779           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14780           implementation
14781
14782 2004-07-22 09:22  jordi
14783
14784         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14785           check link overlapping, implement events, and fixes
14786
14787 2004-07-21 10:28  jordi
14788
14789         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14790
14791 2004-07-21 10:19  jordi
14792
14793         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14794           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14795           LinkLabelLinkClickedEventArgs.cs,
14796           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14797           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14798           implementation
14799
14800 2004-07-19 13:09  jordi
14801
14802         * Control.cs, Label.cs: label control re-written: added missing
14803           functionlity, events, and properties
14804
14805 2004-07-19 10:49  jordi
14806
14807         * Control.cs: fixes SetBounds logic
14808
14809 2004-07-19 01:29  jordi
14810
14811         * Control.cs: Call RefreshWindow only if the window has created
14812
14813 2004-07-15 14:05  pbartok
14814
14815         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14816           - Implemented ImageList and ImageList.ImageCollection classes
14817           - Added ColorDepth enumeration
14818           - Updated SWF VS.Net project
14819
14820 2004-07-15 11:06  jordi
14821
14822         * XplatUIStructs.cs: added MsgButons enum
14823
14824 2004-07-15 11:03  jordi
14825
14826         * Control.cs: added basic mouse handeling events
14827
14828 2004-07-15 03:38  jordi
14829
14830         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14831           Vertical TrackBar control implementation
14832
14833 2004-07-13 09:33  jordi
14834
14835         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14836
14837 2004-07-13 09:31  jordi
14838
14839         * Control.cs, Form.cs: commit: new properties and fixes form size
14840           problems
14841
14842 2004-07-09 14:13  miguel
14843
14844         * ProgressBar.cs: Spelling
14845
14846 2004-07-09 11:25  pbartok
14847
14848         * ProgressBar.cs:
14849           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14850           faster
14851
14852 2004-07-09 11:17  miguel
14853
14854         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14855
14856                 * ProgressBar.cs: Fixed spelling for `block'
14857
14858                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14859                 style guidelines.
14860
14861                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14862
14863 2004-07-08 23:21  pbartok
14864
14865         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14866           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14867           BaseCollection.cs, Binding.cs, BindingContext.cs,
14868           BindingMemberInfo.cs, BindingsCollection.cs,
14869           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14870           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14871           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14872           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14873           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14874           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14875           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14876           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14877           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14878           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14879           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14880           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14881           InputLanguageChangedEventArgs.cs,
14882           InputLanguageChangedEventHandler.cs,
14883           InputLanguageChangingEventArgs.cs,
14884           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14885           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14886           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14887           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14888           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14889           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14890           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14891           QueryAccessibilityHelpEventArgs.cs,
14892           QueryAccessibilityHelpEventHandler.cs,
14893           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14894           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14895           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14896           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14897           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14898           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14899           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14900           XplatUIX11.cs, lang.cs:
14901           - Initial check-in
14902